@carto/ps-react-ui 4.3.9 → 4.4.0-chat-ui.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 (154) hide show
  1. package/dist/chat.js +798 -0
  2. package/dist/chat.js.map +1 -0
  3. package/dist/components.js +723 -711
  4. package/dist/components.js.map +1 -1
  5. package/dist/{lasso-tool-jl4YK02H.js → lasso-tool-BYbxrJ-7.js} +184 -190
  6. package/dist/lasso-tool-BYbxrJ-7.js.map +1 -0
  7. package/dist/{row-BKmVAUN5.js → row-DTCV0Ocm.js} +2 -2
  8. package/dist/row-DTCV0Ocm.js.map +1 -0
  9. package/dist/{series-D1pynfeh.js → series-CYNOu2Ju.js} +2 -2
  10. package/dist/{series-D1pynfeh.js.map → series-CYNOu2Ju.js.map} +1 -1
  11. package/dist/smart-tooltip-D4vwQpFf.js +37 -0
  12. package/dist/smart-tooltip-D4vwQpFf.js.map +1 -0
  13. package/dist/{styles-DrPyd0y5.js → styles-CAroD5Rc.js} +12 -12
  14. package/dist/styles-CAroD5Rc.js.map +1 -0
  15. package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
  16. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
  17. package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
  18. package/dist/types/chat/bubbles/index.d.ts +4 -0
  19. package/dist/types/chat/const.d.ts +3 -0
  20. package/dist/types/chat/containers/chat-content.d.ts +2 -0
  21. package/dist/types/chat/containers/chat-footer.d.ts +2 -0
  22. package/dist/types/chat/containers/chat-header.d.ts +2 -0
  23. package/dist/types/chat/containers/chat-starter.d.ts +2 -0
  24. package/dist/types/chat/containers/index.d.ts +4 -0
  25. package/dist/types/chat/containers/styles.d.ts +101 -0
  26. package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
  27. package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
  28. package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
  29. package/dist/types/chat/feedback/chat-tools.d.ts +2 -0
  30. package/dist/types/chat/feedback/index.d.ts +5 -0
  31. package/dist/types/chat/feedback/styles.d.ts +65 -0
  32. package/dist/types/chat/index.d.ts +16 -0
  33. package/dist/types/chat/types.d.ts +99 -0
  34. package/dist/types/components/copy-button/copy-button.d.ts +2 -0
  35. package/dist/types/components/copy-button/types.d.ts +6 -0
  36. package/dist/types/components/index.d.ts +2 -0
  37. package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +1 -1
  38. package/dist/types/widgets/category/config.d.ts +3 -10
  39. package/dist/types/widgets/range/config.d.ts +0 -4
  40. package/dist/types/widgets/spread/config.d.ts +0 -5
  41. package/dist/types/widgets/table/config.d.ts +1 -2
  42. package/dist/types/widgets/table/table-ui.d.ts +1 -1
  43. package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
  44. package/dist/widgets/actions.js +614 -627
  45. package/dist/widgets/actions.js.map +1 -1
  46. package/dist/widgets/bar.js +49 -49
  47. package/dist/widgets/bar.js.map +1 -1
  48. package/dist/widgets/category.js +37 -36
  49. package/dist/widgets/category.js.map +1 -1
  50. package/dist/widgets/formula.js +14 -13
  51. package/dist/widgets/formula.js.map +1 -1
  52. package/dist/widgets/histogram.js +53 -52
  53. package/dist/widgets/histogram.js.map +1 -1
  54. package/dist/widgets/markdown.js +10 -9
  55. package/dist/widgets/markdown.js.map +1 -1
  56. package/dist/widgets/pie.js +16 -15
  57. package/dist/widgets/pie.js.map +1 -1
  58. package/dist/widgets/range.js +1 -1
  59. package/dist/widgets/range.js.map +1 -1
  60. package/dist/widgets/scatterplot.js +20 -19
  61. package/dist/widgets/scatterplot.js.map +1 -1
  62. package/dist/widgets/spread.js +60 -59
  63. package/dist/widgets/spread.js.map +1 -1
  64. package/dist/widgets/table.js +68 -67
  65. package/dist/widgets/table.js.map +1 -1
  66. package/dist/widgets/timeseries.js +26 -25
  67. package/dist/widgets/timeseries.js.map +1 -1
  68. package/dist/widgets/wrapper.js +153 -162
  69. package/dist/widgets/wrapper.js.map +1 -1
  70. package/package.json +7 -3
  71. package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
  72. package/src/chat/bubbles/chat-agent-message.tsx +11 -0
  73. package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
  74. package/src/chat/bubbles/chat-error-message.tsx +47 -0
  75. package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
  76. package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
  77. package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
  78. package/src/chat/bubbles/chat-user-message.tsx +27 -0
  79. package/src/chat/bubbles/index.ts +4 -0
  80. package/src/chat/bubbles/styles.ts +106 -0
  81. package/src/chat/const.ts +3 -0
  82. package/src/chat/containers/chat-content.test.tsx +15 -0
  83. package/src/chat/containers/chat-content.tsx +32 -0
  84. package/src/chat/containers/chat-footer.test.tsx +34 -0
  85. package/src/chat/containers/chat-footer.tsx +78 -0
  86. package/src/chat/containers/chat-header.test.tsx +28 -0
  87. package/src/chat/containers/chat-header.tsx +29 -0
  88. package/src/chat/containers/chat-starter.test.tsx +32 -0
  89. package/src/chat/containers/chat-starter.tsx +75 -0
  90. package/src/chat/containers/index.ts +4 -0
  91. package/src/chat/containers/styles.ts +107 -0
  92. package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
  93. package/src/chat/feedback/chat-actions-container.tsx +7 -0
  94. package/src/chat/feedback/chat-loader.test.tsx +10 -0
  95. package/src/chat/feedback/chat-loader.tsx +31 -0
  96. package/src/chat/feedback/chat-rating-action.tsx +43 -0
  97. package/src/chat/feedback/chat-thinking.test.tsx +15 -0
  98. package/src/chat/feedback/chat-thinking.tsx +23 -0
  99. package/src/chat/feedback/chat-tools.test.tsx +23 -0
  100. package/src/chat/feedback/chat-tools.tsx +54 -0
  101. package/src/chat/feedback/index.ts +5 -0
  102. package/src/chat/feedback/styles.ts +80 -0
  103. package/src/chat/index.ts +45 -0
  104. package/src/chat/types.ts +124 -0
  105. package/src/components/basemaps/basemaps.tsx +3 -1
  106. package/src/components/copy-button/copy-button.test.tsx +41 -0
  107. package/src/components/copy-button/copy-button.tsx +31 -0
  108. package/src/components/copy-button/types.ts +10 -0
  109. package/src/components/geolocation-controls/geolocation-controls.tsx +10 -6
  110. package/src/components/index.ts +3 -0
  111. package/src/components/lasso-tool/lasso-tool-inline.tsx +6 -2
  112. package/src/components/lasso-tool/lasso-tool.tsx +9 -3
  113. package/src/components/list-data/list-data-skeleton.tsx +1 -1
  114. package/src/components/list-data/list-data.tsx +5 -3
  115. package/src/components/measurement-tools/measurement-tools.tsx +5 -1
  116. package/src/components/smart-tooltip/smart-tooltip.tsx +3 -1
  117. package/src/widgets/_shared/chart-config/option-builders.test.ts +2 -2
  118. package/src/widgets/_shared/chart-config/option-builders.ts +6 -4
  119. package/src/widgets/actions/download/download.test.tsx +6 -2
  120. package/src/widgets/actions/download/download.tsx +3 -1
  121. package/src/widgets/actions/fullscreen/fullscreen.tsx +8 -1
  122. package/src/widgets/actions/relative-data/relative-data.tsx +2 -6
  123. package/src/widgets/actions/searcher/searcher.tsx +0 -6
  124. package/src/widgets/bar/config.ts +8 -4
  125. package/src/widgets/bar/skeleton.tsx +1 -1
  126. package/src/widgets/category/components/category-row-multi.tsx +1 -1
  127. package/src/widgets/category/config.ts +1 -11
  128. package/src/widgets/formula/components/row.tsx +1 -1
  129. package/src/widgets/histogram/config.ts +7 -2
  130. package/src/widgets/histogram/skeleton.tsx +2 -2
  131. package/src/widgets/pie/skeleton.tsx +1 -1
  132. package/src/widgets/range/config.ts +0 -5
  133. package/src/widgets/scatterplot/skeleton.tsx +2 -2
  134. package/src/widgets/spread/config.ts +0 -6
  135. package/src/widgets/table/config.ts +1 -1
  136. package/src/widgets/table/table-ui.tsx +1 -1
  137. package/src/widgets/timeseries/skeleton.tsx +1 -1
  138. package/src/widgets/wrapper/components/actions.test.tsx +6 -2
  139. package/src/widgets/wrapper/components/actions.tsx +3 -1
  140. package/src/widgets/wrapper/components/options.test.tsx +12 -4
  141. package/src/widgets/wrapper/components/options.tsx +8 -3
  142. package/src/widgets/wrapper/wrapper-ui.tsx +5 -2
  143. package/src/widgets/wrapper/wrapper.tsx +2 -4
  144. package/dist/lasso-tool-jl4YK02H.js.map +0 -1
  145. package/dist/row-BKmVAUN5.js.map +0 -1
  146. package/dist/smart-tooltip-BEtBaIdz.js +0 -39
  147. package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
  148. package/dist/styles-DrPyd0y5.js.map +0 -1
  149. package/dist/types/widgets/actions/relative-data/style.d.ts +0 -8
  150. package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
  151. package/dist/types/widgets/table/components/index.d.ts +0 -4
  152. package/src/widgets/actions/relative-data/style.ts +0 -9
  153. package/src/widgets/actions/zoom-toggle/index.ts +0 -2
  154. package/src/widgets/table/components/index.ts +0 -4
@@ -1,194 +1,191 @@
1
- import { s as ve, L as Be, a as ae } from "./lasso-tool-jl4YK02H.js";
2
- import { D as ol, b as nl, c as il, d as sl, e as rl, f as al, S as cl } from "./lasso-tool-jl4YK02H.js";
3
- import { jsxs as $, Fragment as ee, jsx as l } from "react/jsx-runtime";
1
+ import { s as be, L as Be, a as re } from "./lasso-tool-BYbxrJ-7.js";
2
+ import { D as fo, b as ho, c as go, d as bo, e as vo, f as yo, S as xo } from "./lasso-tool-BYbxrJ-7.js";
3
+ import { jsxs as E, Fragment as J, jsx as o } from "react/jsx-runtime";
4
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-D4KH3azB.js";
8
- import { T as he } from "./tooltip-BDnrRKrp.js";
9
- import { s as ml } from "./tooltip-BDnrRKrp.js";
10
- 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";
11
- import { S as ct } from "./smart-tooltip-BEtBaIdz.js";
12
- function qt(t) {
13
- const e = F(59), {
14
- enabled: i,
15
- values: o,
5
+ import { Divider as ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as $e, Paper as Se, MenuItem as Me, ListItemIcon as Ue, ListItemText as xe, IconButton as le, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as ze, DialogActions as Ge, Dialog as He, CircularProgress as Ye, Grid as pe, Skeleton as Ce, Alert as Xe, ListItem as qe, List as Ke, Drawer as Qe, Popover as Je, useTheme as et, useMediaQuery as tt } from "@mui/material";
6
+ import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
7
+ import { d as we } from "./cjs-D4KH3azB.js";
8
+ import { T as fe } from "./tooltip-BDnrRKrp.js";
9
+ import { s as Co } from "./tooltip-BDnrRKrp.js";
10
+ import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at, ContentCopyOutlined as ct } from "@mui/icons-material";
11
+ import { S as dt } from "./smart-tooltip-D4vwQpFf.js";
12
+ import { copy as mt } from "@carto/ps-utils";
13
+ const ut = [], pt = {};
14
+ function no(t) {
15
+ const e = F(55), {
16
+ enabled: s,
17
+ values: l,
16
18
  chipProps: n,
17
19
  labels: r,
18
- modes: s,
20
+ modes: i,
19
21
  modesMapping: a,
20
22
  modeSelected: c,
21
- BoxProps: d,
22
- onChipToggle: m,
23
+ BoxProps: m,
24
+ onChipToggle: d,
23
25
  onDelete: u,
24
26
  onChangeMode: f,
25
- onAllChipToggle: I,
26
- onAllDelete: v
27
- } = t;
28
- let k;
29
- e[0] !== o ? (k = o === void 0 ? [] : o, e[0] = o, e[1] = k) : k = e[1];
30
- const p = k;
31
- let g;
32
- e[2] !== d ? (g = d === void 0 ? {} : d, e[2] = d, e[3] = g) : g = e[3];
33
- let S, A;
34
- e[4] !== g ? ({
35
- sx: A,
36
- ...S
37
- } = g, e[4] = g, e[5] = S, e[6] = A) : (S = e[5], A = e[6]);
38
- let _;
39
- e[7] !== s || e[8] !== a ? (_ = Me(s, a), e[7] = s, e[8] = a, e[9] = _) : _ = e[9];
40
- const C = _;
41
- let D, M;
42
- e[10] !== C ? ({
43
- edit: M,
44
- ...D
45
- } = C, e[10] = C, e[11] = D, e[12] = M) : (D = e[11], M = e[12]);
46
- let h;
47
- e[13] !== u ? (h = (K) => u(K), e[13] = u, e[14] = h) : h = e[14];
48
- const T = h;
49
- let y;
50
- e[15] !== f ? (y = (K, ie) => {
51
- K.preventDefault(), f?.(ie);
52
- }, e[15] = f, e[16] = y) : y = e[16];
53
- const b = y, x = (c ?? "") in s ? c : Object.keys(C)[0], Z = i ? C[x] : null;
54
- let U;
55
- e[17] !== D ? (U = Object.values(D), e[17] = D, e[18] = U) : U = e[18];
56
- const L = U;
57
- let P;
58
- e[19] !== A ? (P = {
59
- ...ve.container,
60
- ...A
61
- }, e[19] = A, e[20] = P) : P = e[20];
62
- const V = r?.options, E = Z?.value, R = r?.options;
27
+ onAllChipToggle: v,
28
+ onAllDelete: w
29
+ } = t, h = l === void 0 ? ut : l, g = m === void 0 ? pt : m;
30
+ let L, M;
31
+ e[0] !== g ? ({
32
+ sx: M,
33
+ ...L
34
+ } = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
35
+ let C;
36
+ e[3] !== i || e[4] !== a ? (C = we(i, a), e[3] = i, e[4] = a, e[5] = C) : C = e[5];
37
+ const y = C;
38
+ let x, k;
39
+ e[6] !== y ? ({
40
+ edit: k,
41
+ ...x
42
+ } = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
43
+ let b;
44
+ e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
45
+ const _ = b;
46
+ let T;
47
+ e[11] !== f ? (T = (q, ne) => {
48
+ q.preventDefault(), f?.(ne);
49
+ }, e[11] = f, e[12] = T) : T = e[12];
50
+ const S = T, I = (c ?? "") in i ? c : Object.keys(y)[0], D = s ? y[I] : null;
63
51
  let O;
64
- 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];
65
- let W;
66
- e[24] !== M || e[25] !== r?.options || e[26] !== p.length ? (W = !!M && /* @__PURE__ */ $(ee, { children: [
67
- /* @__PURE__ */ l(fe, { orientation: "vertical" }),
68
- /* @__PURE__ */ l(Ae, { labels: r?.options, data: [{
69
- ...M,
70
- disabled: !p.length
52
+ e[13] !== x ? (O = Object.values(x), e[13] = x, e[14] = O) : O = e[14];
53
+ const U = O;
54
+ let P;
55
+ e[15] !== M ? (P = {
56
+ ...be.container,
57
+ ...M
58
+ }, e[15] = M, e[16] = P) : P = e[16];
59
+ const R = r?.options, V = D?.value, Z = r?.options;
60
+ let A;
61
+ e[17] !== U || e[18] !== Z ? (A = /* @__PURE__ */ o(Te, { labels: Z, data: U }), e[17] = U, e[18] = Z, e[19] = A) : A = e[19];
62
+ let B;
63
+ e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (B = !!k && /* @__PURE__ */ E(J, { children: [
64
+ /* @__PURE__ */ o(ue, { orientation: "vertical" }),
65
+ /* @__PURE__ */ o(Te, { labels: r?.options, data: [{
66
+ ...k,
67
+ disabled: !h.length
71
68
  }] })
72
- ] }), e[24] = M, e[25] = r?.options, e[26] = p.length, e[27] = W) : W = e[27];
73
- let G;
74
- 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: [
75
- O,
76
- W
77
- ] }), e[28] = b, e[29] = E, e[30] = O, e[31] = W, e[32] = G) : G = e[32];
78
- let j;
79
- 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];
69
+ ] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = B) : B = e[23];
70
+ let W;
71
+ e[24] !== S || e[25] !== V || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ E(Ie, { value: V, exclusive: !0, className: "inline", sx: be.options.menu, onChange: S, children: [
72
+ A,
73
+ B
74
+ ] }), e[24] = S, e[25] = V, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
75
+ let z;
76
+ e[29] !== U || e[30] !== W || e[31] !== R ? (z = /* @__PURE__ */ o(ft, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = z) : z = e[32];
80
77
  let N;
81
- e[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(fe, { flexItem: !0 }), e[37] = N) : N = e[37];
82
- const z = !!p.length, B = r?.noData;
78
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
79
+ const j = !!h.length, G = r?.noData;
80
+ let $;
81
+ e[34] !== j || e[35] !== G ? ($ = /* @__PURE__ */ o(ht, { hasValues: j, labels: G }), e[34] = j, e[35] = G, e[36] = $) : $ = e[36];
83
82
  let H;
84
- 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
+ e[37] !== n || e[38] !== _ || e[39] !== r?.chip || e[40] !== d || e[41] !== h ? (H = !!h.length && /* @__PURE__ */ o(Y, { sx: be.chip.container, className: "inline", children: h.map((q) => /* @__PURE__ */ o(Be, { value: q, labels: r?.chip, chipProps: n, onDelete: _, onChipToggle: d }, q.id)) }), e[37] = n, e[38] = _, e[39] = r?.chip, e[40] = d, e[41] = h, e[42] = H) : H = e[42];
84
+ const ee = r?.actions;
85
85
  let X;
86
- 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];
87
- const te = r?.actions;
88
- let J;
89
- 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];
90
- let le;
91
- 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: [
92
- j,
86
+ e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(gt, { values: h, labels: ee, onAllChipToggle: v, onAllDelete: w }), e[43] = v, e[44] = w, e[45] = ee, e[46] = h, e[47] = X) : X = e[47];
87
+ let te;
88
+ return e[48] !== L || e[49] !== z || e[50] !== $ || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
89
+ z,
93
90
  N,
91
+ $,
94
92
  H,
95
- X,
96
- J
97
- ] }), 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;
93
+ X
94
+ ] }), e[48] = L, e[49] = z, e[50] = $, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
98
95
  }
99
- function dt(t) {
96
+ function ft(t) {
100
97
  const e = F(5), {
101
- data: i,
102
- labels: o,
98
+ data: s,
99
+ labels: l,
103
100
  children: n
104
101
  } = t;
105
- if (i.length <= 1)
102
+ if (s.length <= 1)
106
103
  return null;
107
- const r = o?.mode?.title ?? ae.options.mode.title;
108
- let s;
109
- e[0] !== r ? (s = /* @__PURE__ */ l(Q, { variant: "subtitle2", color: "text.secondary", sx: ve.options.title, className: "inline", children: r }), e[0] = r, e[1] = s) : s = e[1];
104
+ const r = l?.mode?.title ?? re.options.mode.title;
105
+ let i;
106
+ e[0] !== r ? (i = /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: be.options.title, className: "inline", children: r }), e[0] = r, e[1] = i) : i = e[1];
110
107
  let a;
111
- return e[2] !== n || e[3] !== s ? (a = /* @__PURE__ */ $(ee, { children: [
112
- s,
108
+ return e[2] !== n || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
109
+ i,
113
110
  n
114
- ] }), e[2] = n, e[3] = s, e[4] = a) : a = e[4], a;
111
+ ] }), e[2] = n, e[3] = i, e[4] = a) : a = e[4], a;
115
112
  }
116
- function Ae({
113
+ function Te({
117
114
  data: t,
118
115
  labels: e
119
116
  }) {
120
- return t.filter((i) => !!i).map((i) => {
121
- const n = (e?.mode?.options ?? ae.options.mode.options)[i.value];
122
- return /* @__PURE__ */ l(he, { title: n, placement: "bottom", children: /* @__PURE__ */ l(ye, { disabled: !!i.disabled, value: i.value, "aria-label": i.value, children: /* @__PURE__ */ l(Ie, { children: i.icon }) }) }, i.value);
117
+ return t.filter((s) => !!s).map((s) => {
118
+ const n = (e?.mode?.options ?? re.options.mode.options)[s.value];
119
+ return /* @__PURE__ */ o(fe, { title: n, placement: "bottom", children: /* @__PURE__ */ o(ve, { disabled: !!s.disabled, value: s.value, "aria-label": s.value, children: /* @__PURE__ */ o(De, { children: s.icon }) }) }, s.value);
123
120
  });
124
121
  }
125
- function mt(t) {
122
+ function ht(t) {
126
123
  const e = F(7), {
127
- hasValues: i,
128
- labels: o
124
+ hasValues: s,
125
+ labels: l
129
126
  } = t;
130
- if (i)
127
+ if (s)
131
128
  return null;
132
- const n = o?.title ?? ae.noData.title, r = o?.description ?? ae.noData.description;
133
- let s;
134
- e[0] !== n ? (s = /* @__PURE__ */ l(Q, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = s) : s = e[1];
129
+ const n = l?.title ?? re.noData.title, r = l?.description ?? re.noData.description;
130
+ let i;
131
+ e[0] !== n ? (i = /* @__PURE__ */ o(Q, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = i) : i = e[1];
135
132
  let a;
136
- e[2] !== r ? (a = /* @__PURE__ */ l(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
133
+ e[2] !== r ? (a = /* @__PURE__ */ o(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
137
134
  let c;
138
- return e[4] !== s || e[5] !== a ? (c = /* @__PURE__ */ $(ee, { children: [
139
- s,
135
+ return e[4] !== i || e[5] !== a ? (c = /* @__PURE__ */ E(J, { children: [
136
+ i,
140
137
  a
141
- ] }), e[4] = s, e[5] = a, e[6] = c) : c = e[6], c;
138
+ ] }), e[4] = i, e[5] = a, e[6] = c) : c = e[6], c;
142
139
  }
143
- function ut(t) {
140
+ function gt(t) {
144
141
  const e = F(13), {
145
- values: i,
146
- labels: o,
142
+ values: s,
143
+ labels: l,
147
144
  onAllChipToggle: n,
148
145
  onAllDelete: r
149
146
  } = t;
150
- if (i.length <= 1)
147
+ if (s.length <= 1)
151
148
  return null;
152
- const a = i.some(ft) ? o?.toggleAll?.active ?? ae.actions.toggleAll.active : o?.toggleAll?.inactive ?? ae.actions.toggleAll.inactive, c = o?.deleteAll ?? ae.actions.deleteAll;
153
- let d;
154
- e[0] !== n ? (d = () => n(), e[0] = n, e[1] = d) : d = e[1];
149
+ const a = s.some(bt) ? l?.toggleAll?.active ?? re.actions.toggleAll.active : l?.toggleAll?.inactive ?? re.actions.toggleAll.inactive, c = l?.deleteAll ?? re.actions.deleteAll;
155
150
  let m;
156
- 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];
151
+ e[0] !== n ? (m = () => n(), e[0] = n, e[1] = m) : m = e[1];
152
+ let d;
153
+ e[2] !== m || e[3] !== a ? (d = /* @__PURE__ */ o(ye, { color: "inherit", onClick: m, children: a }), e[2] = m, e[3] = a, e[4] = d) : d = e[4];
157
154
  let u;
158
155
  e[5] !== r ? (u = () => r(), e[5] = r, e[6] = u) : u = e[6];
159
156
  let f;
160
- 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];
161
- let I;
162
- return e[10] !== m || e[11] !== f ? (I = /* @__PURE__ */ $(q, { children: [
163
- m,
157
+ e[7] !== c || e[8] !== u ? (f = /* @__PURE__ */ o(ye, { color: "error", onClick: u, children: c }), e[7] = c, e[8] = u, e[9] = f) : f = e[9];
158
+ let v;
159
+ return e[10] !== d || e[11] !== f ? (v = /* @__PURE__ */ E(Y, { children: [
160
+ d,
164
161
  f
165
- ] }), e[10] = m, e[11] = f, e[12] = I) : I = e[12], I;
162
+ ] }), e[10] = d, e[11] = f, e[12] = v) : v = e[12], v;
166
163
  }
167
- function ft(t) {
164
+ function bt(t) {
168
165
  return t.visible;
169
166
  }
170
- function pt(t) {
167
+ function vt(t) {
171
168
  const e = F(3);
172
- let i;
173
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z" }), e[0] = i) : i = e[0];
174
- let o;
175
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
169
+ let s;
170
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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];
171
+ let l;
172
+ return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
176
173
  }
177
- function ht(t) {
174
+ function yt(t) {
178
175
  const e = F(3);
179
- let i;
180
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z", clipRule: "evenodd" }), e[0] = i) : i = e[0];
181
- let o;
182
- return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
176
+ let s;
177
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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];
178
+ let l;
179
+ return e[1] !== t ? (l = /* @__PURE__ */ o("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: s }), e[1] = t, e[2] = l) : l = e[2], l;
183
180
  }
184
- function gt(t) {
181
+ function xt(t) {
185
182
  const e = F(4);
186
- let i, o;
187
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z", clipRule: "evenodd" }), e[0] = i, e[1] = o) : (i = e[0], o = e[1]);
183
+ let s, l;
184
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o("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__ */ o("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] = l) : (s = e[0], l = e[1]);
188
185
  let n;
189
- return e[2] !== t ? (n = /* @__PURE__ */ $("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
190
- i,
191
- o
186
+ return e[2] !== t ? (n = /* @__PURE__ */ E("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
187
+ s,
188
+ l
192
189
  ] }), e[2] = t, e[3] = n) : n = e[3], n;
193
190
  }
194
191
  const oe = {
@@ -243,7 +240,7 @@ const oe = {
243
240
  }
244
241
  }
245
242
  }
246
- }, bt = {
243
+ }, St = {
247
244
  "m-km": {
248
245
  short: "m-km"
249
246
  },
@@ -271,17 +268,17 @@ const oe = {
271
268
  feet: {
272
269
  short: "ft"
273
270
  }
274
- }, vt = {
271
+ }, Ct = {
275
272
  distance: {
276
- icon: /* @__PURE__ */ l(pt, {})
273
+ icon: /* @__PURE__ */ o(vt, {})
277
274
  },
278
275
  buffer: {
279
- icon: /* @__PURE__ */ l(ht, {})
276
+ icon: /* @__PURE__ */ o(yt, {})
280
277
  },
281
278
  area: {
282
- icon: /* @__PURE__ */ l(gt, {})
279
+ icon: /* @__PURE__ */ o(xt, {})
283
280
  }
284
- }, Y = {
281
+ }, K = {
285
282
  container: {
286
283
  display: "flex",
287
284
  flexDirection: "row",
@@ -346,7 +343,7 @@ const oe = {
346
343
  }) => t.primary.main,
347
344
  backgroundColor: ({
348
345
  palette: t
349
- }) => Ue(t.primary.main, 0.08)
346
+ }) => $e(t.primary.main, 0.08)
350
347
  },
351
348
  modal: {
352
349
  toggle: {
@@ -405,312 +402,313 @@ const oe = {
405
402
  }
406
403
  }
407
404
  }
408
- };
409
- function Kt(t) {
410
- const e = F(46), {
411
- enabled: i,
412
- actionProps: o,
405
+ }, _t = {};
406
+ function io(t) {
407
+ const e = F(44), {
408
+ enabled: s,
409
+ actionProps: l,
413
410
  labels: n,
414
411
  modes: r,
415
- modesMapping: s,
412
+ modesMapping: i,
416
413
  unitsMapping: a,
417
414
  modeSelected: c,
418
- PaperProps: d,
419
- units: m,
415
+ PaperProps: m,
416
+ units: d,
420
417
  unitSelected: u,
421
418
  onActionToggle: f,
422
- onChangeMode: I,
423
- onChangeUnit: v
424
- } = t, k = n === void 0 ? oe : n, p = s === void 0 ? vt : s, g = a === void 0 ? bt : a;
419
+ onChangeMode: v,
420
+ onChangeUnit: w
421
+ } = t, h = n === void 0 ? oe : n, g = i === void 0 ? Ct : i, L = a === void 0 ? St : a, M = m === void 0 ? _t : m;
422
+ let C, y;
423
+ e[0] !== M ? ({
424
+ sx: y,
425
+ ...C
426
+ } = M, e[0] = M, e[1] = C, e[2] = y) : (C = e[1], y = e[2]);
427
+ let x;
428
+ e[3] !== f ? (x = ($) => f(!!$), e[3] = f, e[4] = x) : x = e[4];
429
+ const k = x;
430
+ let b;
431
+ e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
432
+ const _ = b, T = (c ?? "") in _;
425
433
  let S;
426
- e[0] !== d ? (S = d === void 0 ? {} : d, e[0] = d, e[1] = S) : S = e[1];
427
- let A, _;
428
- e[2] !== S ? ({
429
- sx: _,
430
- ...A
431
- } = S, e[2] = S, e[3] = A, e[4] = _) : (A = e[3], _ = e[4]);
432
- let C;
433
- e[5] !== f ? (C = (B) => f(!!B), e[5] = f, e[6] = C) : C = e[6];
434
- const D = C;
435
- let M;
436
- e[7] !== r || e[8] !== p ? (M = Me(r, p), e[7] = r, e[8] = p, e[9] = M) : M = e[9];
437
- const h = M, T = (c ?? "") in h;
438
- let y;
439
- 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];
440
- const b = y, w = h[b], x = m[b];
441
- let Z;
442
- e[14] !== b || e[15] !== x || e[16] !== m ? (Z = Object.keys(m).length >= 1 ? m : {
443
- [b]: x.slice(0, 1)
444
- }, e[14] = b, e[15] = x, e[16] = m, e[17] = Z) : Z = e[17];
445
- const L = Z[b];
446
- let P;
447
- if (e[18] !== L || e[19] !== g) {
448
- let B;
449
- e[21] !== g ? (B = (H) => ({
434
+ e[8] !== _ || e[9] !== T || e[10] !== c ? (S = T ? c : Object.keys(_)[0], e[8] = _, e[9] = T, e[10] = c, e[11] = S) : S = e[11];
435
+ const p = S, I = _[p], D = d[p];
436
+ let O;
437
+ e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
438
+ [p]: D.slice(0, 1)
439
+ }, e[12] = p, e[13] = D, e[14] = d, e[15] = O) : O = e[15];
440
+ const P = O[p];
441
+ let R;
442
+ if (e[16] !== P || e[17] !== L) {
443
+ let $;
444
+ e[19] !== L ? ($ = (H) => ({
450
445
  ...H,
451
- ...g[H.value]
452
- }), e[21] = g, e[22] = B) : B = e[22], P = L.map(B), e[18] = L, e[19] = g, e[20] = P;
446
+ ...L[H.value]
447
+ }), e[19] = L, e[20] = $) : $ = e[20], R = P.map($), e[16] = P, e[17] = L, e[18] = R;
453
448
  } else
454
- P = e[20];
455
- const V = P;
456
- let E;
457
- e[23] !== _ ? (E = {
458
- ...Y.container,
459
- ..._
460
- }, e[23] = _, e[24] = E) : E = e[24];
461
- const R = k?.action, O = w?.icon;
449
+ R = e[18];
450
+ const V = R;
451
+ let Z;
452
+ e[21] !== y ? (Z = {
453
+ ...K.container,
454
+ ...y
455
+ }, e[21] = y, e[22] = Z) : Z = e[22];
456
+ const A = h?.action, B = I?.icon;
462
457
  let W;
463
- e[25] !== o || e[26] !== i || e[27] !== D || e[28] !== R || e[29] !== O ? (W = /* @__PURE__ */ l(yt, { actionProps: o, labels: R, enabled: i, onActionToggle: D, children: O }), e[25] = o, e[26] = i, e[27] = D, e[28] = R, e[29] = O, e[30] = W) : W = e[30];
464
- const G = k?.options;
465
- let j;
466
- 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];
458
+ e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ o(wt, { actionProps: l, labels: A, enabled: s, onActionToggle: k, children: B }), e[23] = l, e[24] = s, e[25] = k, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
459
+ const z = h?.options;
467
460
  let N;
468
- e[39] !== W || e[40] !== j ? (N = /* @__PURE__ */ $(q, { children: [
461
+ e[29] !== V || e[30] !== _ || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== z || e[35] !== u ? (N = /* @__PURE__ */ o(Mt, { labels: z, modes: _, modeSelected: p, units: V, unitSelected: u, onChangeMode: v, onChangeUnit: w }), e[29] = V, e[30] = _, e[31] = p, e[32] = v, e[33] = w, e[34] = z, e[35] = u, e[36] = N) : N = e[36];
462
+ let j;
463
+ e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
469
464
  W,
470
- j
471
- ] }), e[39] = W, e[40] = j, e[41] = N) : N = e[41];
472
- let z;
473
- 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;
465
+ N
466
+ ] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
467
+ let G;
468
+ return e[40] !== C || e[41] !== Z || e[42] !== j ? (G = /* @__PURE__ */ o(Se, { sx: Z, ...C, children: j }), e[40] = C, e[41] = Z, e[42] = j, e[43] = G) : G = e[43], G;
474
469
  }
475
- function yt(t) {
470
+ function wt(t) {
476
471
  const e = F(12), {
477
- actionProps: i,
478
- labels: o,
472
+ actionProps: s,
473
+ labels: l,
479
474
  enabled: n,
480
475
  children: r,
481
- onActionToggle: s
482
- } = t, a = n ? "active" : "inactive", c = o?.tooltip?.[a] ?? oe.action.tooltip[a], d = i?.TooltipProps;
483
- let m;
484
- e[0] !== n || e[1] !== s ? (m = () => s(!n), e[0] = n, e[1] = s, e[2] = m) : m = e[2];
476
+ onActionToggle: i
477
+ } = t, a = n ? "active" : "inactive", c = l?.tooltip?.[a] ?? oe.action.tooltip[a], m = s?.TooltipProps;
478
+ let d;
479
+ e[0] !== n || e[1] !== i ? (d = () => i(!n), e[0] = n, e[1] = i, e[2] = d) : d = e[2];
485
480
  let u;
486
- 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];
481
+ e[3] !== c || e[4] !== r || e[5] !== n || e[6] !== d ? (u = /* @__PURE__ */ o(ve, { value: "toggle", sx: K.actions.icon, onClick: d, "aria-label": c, selected: n, children: r }), e[3] = c, e[4] = r, e[5] = n, e[6] = d, e[7] = u) : u = e[7];
487
482
  let f;
488
- 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;
483
+ return e[8] !== c || e[9] !== m || e[10] !== u ? (f = /* @__PURE__ */ o(fe, { title: c, placement: "right", ...m, children: u }), e[8] = c, e[9] = m, e[10] = u, e[11] = f) : f = e[11], f;
489
484
  }
490
- function xt(t) {
485
+ function Mt(t) {
491
486
  const e = F(41), {
492
- modes: i,
493
- modeSelected: o,
487
+ modes: s,
488
+ modeSelected: l,
494
489
  units: n,
495
490
  unitSelected: r,
496
- labels: s,
491
+ labels: i,
497
492
  onChangeMode: a,
498
493
  onChangeUnit: c
499
- } = t, [d, m] = ne(null), [u, f] = ne(!1);
500
- let I;
501
- e[0] !== i ? (I = Object.values(i), e[0] = i, e[1] = I) : I = e[1];
502
- const v = I;
503
- let k;
504
- e[2] !== n ? (k = Object.values(n), e[2] = n, e[3] = k) : k = e[3];
505
- const p = k;
506
- if (!(v.length > 1 || p.length > 1))
494
+ } = t, [m, d] = se(null), [u, f] = se(!1);
495
+ let v;
496
+ e[0] !== s ? (v = Object.values(s), e[0] = s, e[1] = v) : v = e[1];
497
+ const w = v;
498
+ let h;
499
+ e[2] !== n ? (h = Object.values(n), e[2] = n, e[3] = h) : h = e[3];
500
+ const g = h;
501
+ if (!(w.length > 1 || g.length > 1))
507
502
  return null;
508
- const S = !!d;
509
- let A;
510
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = (B) => {
511
- m(B.currentTarget);
512
- }, e[4] = A) : A = e[4];
513
- const _ = A;
503
+ const M = !!m;
514
504
  let C;
515
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => {
516
- m(null);
517
- }, e[5] = C) : C = e[5];
518
- const D = C;
519
- let M;
520
- e[6] !== a ? (M = (B, H) => {
521
- B.preventDefault(), a(H.value), D();
522
- }, e[6] = a, e[7] = M) : M = e[7];
523
- const h = M;
505
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = ($) => {
506
+ d($.currentTarget);
507
+ }, e[4] = C) : C = e[4];
508
+ const y = C;
509
+ let x;
510
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
511
+ d(null);
512
+ }, e[5] = x) : x = e[5];
513
+ const k = x;
514
+ let b;
515
+ e[6] !== a ? (b = ($, H) => {
516
+ $.preventDefault(), a(H.value), k();
517
+ }, e[6] = a, e[7] = b) : b = e[7];
518
+ const _ = b;
524
519
  let T;
525
520
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
526
521
  f(!0);
527
522
  }, e[8] = T) : T = e[8];
528
- const y = T;
529
- let b;
530
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
523
+ const S = T;
524
+ let p;
525
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
531
526
  f(!1);
532
- }, e[9] = b) : b = e[9];
533
- const w = b;
534
- let x;
535
- e[10] !== c ? (x = (B) => {
536
- w(), c(B);
537
- }, e[10] = c, e[11] = x) : x = e[11];
538
- const Z = x, U = s?.mode?.title ?? oe.options.mode.title, L = s?.units?.title ?? oe.options.units.title, P = v.length > 1 && p.length > 1;
527
+ }, e[9] = p) : p = e[9];
528
+ const I = p;
529
+ let D;
530
+ e[10] !== c ? (D = ($) => {
531
+ I(), c($);
532
+ }, e[10] = c, e[11] = D) : D = e[11];
533
+ const O = D, U = i?.mode?.title ?? oe.options.mode.title, P = i?.units?.title ?? oe.options.units.title, R = w.length > 1 && g.length > 1;
539
534
  let V;
540
- 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];
541
- const E = V;
542
- let R;
543
- e[15] === /* @__PURE__ */ 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];
544
- let O;
545
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
535
+ e[12] !== r || e[13] !== n ? (V = n.find(($) => $.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
536
+ const Z = V;
537
+ let A;
538
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(le, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
539
+ let B;
540
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
546
541
  "aria-labelledby": "basic-button",
547
- sx: Y.options.menu
548
- }, e[16] = O) : O = e[16];
542
+ sx: K.options.menu
543
+ }, e[16] = B) : B = e[16];
549
544
  let W;
550
- e[17] !== h || e[18] !== s?.mode?.options || e[19] !== o || e[20] !== U || e[21] !== v ? (W = v.length > 1 && /* @__PURE__ */ $(ee, { children: [
551
- /* @__PURE__ */ l(Q, { variant: "subtitle2", color: "text.secondary", sx: Y.options.title, children: U }),
552
- v.map((B) => {
553
- const X = (s?.mode?.options ?? oe.options.mode.options)[B.value];
554
- return /* @__PURE__ */ $(Te, { onClick: (te) => h(te, B), selected: B.value === o, children: [
555
- /* @__PURE__ */ l(Ve, { sx: Y.options.icons, children: /* @__PURE__ */ l(Ie, { children: B.icon }) }),
556
- /* @__PURE__ */ l(Se, { children: X })
557
- ] }, B.value);
545
+ e[17] !== _ || e[18] !== i?.mode?.options || e[19] !== l || e[20] !== U || e[21] !== w ? (W = w.length > 1 && /* @__PURE__ */ E(J, { children: [
546
+ /* @__PURE__ */ o(Q, { variant: "subtitle2", color: "text.secondary", sx: K.options.title, children: U }),
547
+ w.map(($) => {
548
+ const ee = (i?.mode?.options ?? oe.options.mode.options)[$.value];
549
+ return /* @__PURE__ */ E(Me, { onClick: (X) => _(X, $), selected: $.value === l, children: [
550
+ /* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: $.icon }) }),
551
+ /* @__PURE__ */ o(xe, { children: ee })
552
+ ] }, $.value);
558
553
  })
559
- ] }), e[17] = h, e[18] = s?.mode?.options, e[19] = o, e[20] = U, e[21] = v, e[22] = W) : W = e[22];
560
- let G;
561
- e[23] !== P ? (G = P && /* @__PURE__ */ l(fe, {}), e[23] = P, e[24] = G) : G = e[24];
562
- let j;
563
- e[25] !== Z || e[26] !== s || e[27] !== u || e[28] !== E || e[29] !== L || e[30] !== n || e[31] !== p.length ? (j = p.length > 1 && /* @__PURE__ */ $(ee, { children: [
564
- /* @__PURE__ */ $(Te, { onClick: y, children: [
565
- /* @__PURE__ */ l(Se, { children: L }),
566
- /* @__PURE__ */ l(Q, { variant: "caption", fontWeight: 500, sx: Y.options.tag, children: E.short })
567
- ] }),
568
- /* @__PURE__ */ l(St, { open: u, labels: s, units: n, unitSelectedValue: E, onClose: w, onSubmit: Z })
569
- ] }), e[25] = Z, e[26] = s, e[27] = u, e[28] = E, e[29] = L, e[30] = n, e[31] = p.length, e[32] = j) : j = e[32];
554
+ ] }), e[17] = _, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
555
+ let z;
556
+ e[23] !== R ? (z = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = z) : z = e[24];
570
557
  let N;
571
- e[33] !== W || e[34] !== G || e[35] !== j ? (N = /* @__PURE__ */ $("div", { children: [
558
+ e[25] !== O || e[26] !== i || e[27] !== u || e[28] !== Z || e[29] !== P || e[30] !== n || e[31] !== g.length ? (N = g.length > 1 && /* @__PURE__ */ E(J, { children: [
559
+ /* @__PURE__ */ E(Me, { onClick: S, children: [
560
+ /* @__PURE__ */ o(xe, { children: P }),
561
+ /* @__PURE__ */ o(Q, { variant: "caption", fontWeight: 500, sx: K.options.tag, children: Z.short })
562
+ ] }),
563
+ /* @__PURE__ */ o(Tt, { open: u, labels: i, units: n, unitSelectedValue: Z, onClose: I, onSubmit: O })
564
+ ] }), e[25] = O, e[26] = i, e[27] = u, e[28] = Z, e[29] = P, e[30] = n, e[31] = g.length, e[32] = N) : N = e[32];
565
+ let j;
566
+ e[33] !== W || e[34] !== z || e[35] !== N ? (j = /* @__PURE__ */ E("div", { children: [
572
567
  W,
573
- G,
574
- j
575
- ] }), e[33] = W, e[34] = G, e[35] = j, e[36] = N) : N = e[36];
576
- let z;
577
- return e[37] !== d || e[38] !== S || e[39] !== N ? (z = /* @__PURE__ */ $(ee, { children: [
578
- R,
579
- /* @__PURE__ */ l(Ze, { id: "measurement-menu", anchorEl: d, open: S, onClose: D, MenuListProps: O, children: N })
580
- ] }), e[37] = d, e[38] = S, e[39] = N, e[40] = z) : z = e[40], z;
568
+ z,
569
+ N
570
+ ] }), e[33] = W, e[34] = z, e[35] = N, e[36] = j) : j = e[36];
571
+ let G;
572
+ return e[37] !== m || e[38] !== M || e[39] !== j ? (G = /* @__PURE__ */ E(J, { children: [
573
+ A,
574
+ /* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: B, children: j })
575
+ ] }), e[37] = m, e[38] = M, e[39] = j, e[40] = G) : G = e[40], G;
581
576
  }
582
- function St(t) {
577
+ function Tt(t) {
583
578
  const e = F(48), {
584
- open: i,
585
- labels: o,
579
+ open: s,
580
+ labels: l,
586
581
  units: n,
587
582
  unitSelectedValue: r,
588
- onClose: s,
583
+ onClose: i,
589
584
  onSubmit: a
590
- } = t, [c, d] = ne("metric");
591
- let m;
585
+ } = t, [c, m] = se("metric");
586
+ let d;
592
587
  if (e[0] !== c || e[1] !== n) {
593
- let R;
594
- 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;
588
+ let A;
589
+ e[3] !== c ? (A = (B) => B.system === c, e[3] = c, e[4] = A) : A = e[4], d = n.filter(A), e[0] = c, e[1] = n, e[2] = d;
595
590
  } else
596
- m = e[2];
597
- const u = m;
591
+ d = e[2];
592
+ const u = d;
598
593
  let f;
599
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (R, O) => {
600
- d(O);
594
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, B) => {
595
+ m(B);
601
596
  }, e[5] = f) : f = e[5];
602
- 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];
603
- let _;
604
- e[6] !== a ? (_ = {
597
+ const v = f, w = l?.units?.modal?.options ?? oe.options.units.modal.options, h = w[c].options, g = l?.units?.modal?.title ?? oe.options.units.modal.title, L = l?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, M = l?.units?.modal?.apply ?? oe.options.units.modal.apply, C = r.system === c ? r : u[0];
598
+ let y;
599
+ e[6] !== a ? (y = {
605
600
  component: "form",
606
- onSubmit: (R) => {
607
- R.preventDefault();
608
- const O = new FormData(R.currentTarget);
609
- a(O.get("unit-value"));
601
+ onSubmit: (A) => {
602
+ A.preventDefault();
603
+ const B = new FormData(A.currentTarget);
604
+ a(B.get("unit-value"));
610
605
  }
611
- }, e[6] = a, e[7] = _) : _ = e[7];
612
- let C;
613
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ l(Re, {}), e[8] = C) : C = e[8];
614
- let D;
615
- e[9] !== s ? (D = /* @__PURE__ */ l(re, { onClick: s, children: C }), e[9] = s, e[10] = D) : D = e[10];
616
- let M;
617
- e[11] !== p || e[12] !== D ? (M = /* @__PURE__ */ $(We, { sx: Y.options.modal.title, children: [
618
- p,
619
- D
620
- ] }), e[11] = p, e[12] = D, e[13] = M) : M = e[13];
621
- let h;
622
- e[14] !== g ? (h = /* @__PURE__ */ l(Q, { sx: Y.options.modal.subtitle, children: g }), e[14] = g, e[15] = h) : h = e[15];
623
- let T;
624
- 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];
625
- let y;
626
- 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];
606
+ }, e[6] = a, e[7] = y) : y = e[7];
607
+ let x;
608
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(Oe, {}), e[8] = x) : x = e[8];
609
+ let k;
610
+ e[9] !== i ? (k = /* @__PURE__ */ o(le, { onClick: i, children: x }), e[9] = i, e[10] = k) : k = e[10];
627
611
  let b;
628
- 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: [
612
+ e[11] !== g || e[12] !== k ? (b = /* @__PURE__ */ E(Ze, { sx: K.options.modal.title, children: [
613
+ g,
614
+ k
615
+ ] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
616
+ let _;
617
+ e[14] !== L ? (_ = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = _) : _ = e[15];
618
+ let T;
619
+ e[16] !== w.metric.title ? (T = /* @__PURE__ */ o(ve, { value: "metric", children: w.metric.title }), e[16] = w.metric.title, e[17] = T) : T = e[17];
620
+ let S;
621
+ e[18] !== w.imperial.title ? (S = /* @__PURE__ */ o(ve, { value: "imperial", children: w.imperial.title }), e[18] = w.imperial.title, e[19] = S) : S = e[19];
622
+ let p;
623
+ e[20] !== c || e[21] !== T || e[22] !== S ? (p = /* @__PURE__ */ E(Ie, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: v, "aria-label": "system", sx: K.options.modal.toggle, children: [
629
624
  T,
630
- y
631
- ] }), e[20] = c, e[21] = T, e[22] = y, e[23] = b) : b = e[23];
632
- const w = A?.value, x = A?.value;
633
- let Z;
634
- if (e[24] !== u || e[25] !== k) {
635
- let R;
636
- e[27] !== k ? (R = (O) => {
637
- const W = k[O.value];
638
- return /* @__PURE__ */ l(je, { value: O.value, control: /* @__PURE__ */ l(Fe, {}), label: W }, O.value);
639
- }, e[27] = k, e[28] = R) : R = e[28], Z = u.map(R), e[24] = u, e[25] = k, e[26] = Z;
625
+ S
626
+ ] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
627
+ const I = C?.value, D = C?.value;
628
+ let O;
629
+ if (e[24] !== u || e[25] !== h) {
630
+ let A;
631
+ e[27] !== h ? (A = (B) => {
632
+ const W = h[B.value];
633
+ return /* @__PURE__ */ o(We, { value: B.value, control: /* @__PURE__ */ o(je, {}), label: W }, B.value);
634
+ }, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
640
635
  } else
641
- Z = e[26];
636
+ O = e[26];
642
637
  let U;
643
- 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];
644
- let L;
645
- 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];
638
+ e[29] !== D || e[30] !== O ? (U = /* @__PURE__ */ o(Fe, { "aria-labelledby": "unit-value", defaultValue: D, name: "unit-value", sx: K.options.modal.optionsGroup, children: O }), e[29] = D, e[30] = O, e[31] = U) : U = e[31];
646
639
  let P;
647
- e[35] !== b || e[36] !== L || e[37] !== h ? (P = /* @__PURE__ */ $(ze, { sx: Y.options.modal.content, children: [
648
- h,
649
- b,
650
- L
651
- ] }), e[35] = b, e[36] = L, e[37] = h, e[38] = P) : P = e[38];
640
+ e[32] !== I || e[33] !== U ? (P = /* @__PURE__ */ o(Ne, { children: U }, I), e[32] = I, e[33] = U, e[34] = P) : P = e[34];
641
+ let R;
642
+ e[35] !== p || e[36] !== P || e[37] !== _ ? (R = /* @__PURE__ */ E(ze, { sx: K.options.modal.content, children: [
643
+ _,
644
+ p,
645
+ P
646
+ ] }), e[35] = p, e[36] = P, e[37] = _, e[38] = R) : R = e[38];
652
647
  let V;
653
- 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];
654
- let E;
655
- return e[41] !== s || e[42] !== i || e[43] !== P || e[44] !== V || e[45] !== _ || e[46] !== M ? (E = /* @__PURE__ */ $(Xe, { open: i, component: q, onClose: s, maxWidth: "xs", PaperProps: _, children: [
656
- M,
657
- P,
648
+ e[39] !== M ? (V = /* @__PURE__ */ o(Ge, { sx: K.options.modal.actions, children: /* @__PURE__ */ o(ye, { variant: "contained", type: "submit", children: M }) }), e[39] = M, e[40] = V) : V = e[40];
649
+ let Z;
650
+ return e[41] !== i || e[42] !== s || e[43] !== R || e[44] !== V || e[45] !== y || e[46] !== b ? (Z = /* @__PURE__ */ E(He, { open: s, component: Y, onClose: i, maxWidth: "xs", PaperProps: y, children: [
651
+ b,
652
+ R,
658
653
  V
659
- ] }), e[41] = s, e[42] = i, e[43] = P, e[44] = V, e[45] = _, e[46] = M, e[47] = E) : E = e[47], E;
654
+ ] }), e[41] = i, e[42] = s, e[43] = R, e[44] = V, e[45] = y, e[46] = b, e[47] = Z) : Z = e[47], Z;
660
655
  }
661
- const Ct = {
656
+ const At = {
662
657
  enabled: "Show your current location",
663
658
  disabled: "Location unavailable"
664
- }, wt = "geolocation";
665
- function Yt(t) {
659
+ }, kt = "geolocation";
660
+ function so(t) {
666
661
  const e = F(25), {
667
- disabled: i,
668
- labels: o,
662
+ disabled: s,
663
+ labels: l,
669
664
  PaperProps: n,
670
665
  TooltipProps: r,
671
- watch: s,
666
+ watch: i,
672
667
  onChange: a,
673
668
  onError: c
674
- } = t, d = Pe(null), m = "geolocation" in navigator, [u, f] = ne(m);
675
- let I, v;
676
- e[0] !== c ? (I = () => (m && navigator.permissions.query({
669
+ } = t, m = Le(null), d = "geolocation" in navigator, [u, f] = ot(Dt, d);
670
+ let v, w;
671
+ e[0] !== c ? (v = () => (d && navigator.permissions.query({
677
672
  name: "geolocation"
678
- }).then((x) => {
679
- f(x.state === "granted"), x.onchange = () => {
680
- f(x.state === "granted");
673
+ }).then((D) => {
674
+ f(D.state === "granted" ? "granted" : "denied"), D.onchange = () => {
675
+ f(D.state === "granted" ? "granted" : "denied");
681
676
  };
682
- }).catch((x) => {
683
- f(!1), c?.(x);
677
+ }).catch((D) => {
678
+ f("denied"), c?.(D);
684
679
  }), () => {
685
- d.current && navigator.geolocation.clearWatch(d.current);
686
- }), v = [m, c], e[0] = c, e[1] = I, e[2] = v) : (I = e[1], v = e[2]), Oe(I, v);
687
- let k;
688
- e[3] !== a ? (k = (x) => {
689
- a(x.coords);
690
- }, e[3] = a, e[4] = k) : k = e[4];
691
- const p = k;
692
- let g;
693
- e[5] !== c ? (g = (x) => {
694
- f(!1), c?.(x);
695
- }, e[5] = c, e[6] = g) : g = e[6];
696
- const S = g;
697
- let A;
698
- e[7] !== S || e[8] !== p || e[9] !== s ? (A = () => {
699
- if (d.current && navigator.geolocation.clearWatch(d.current), s) {
700
- d.current = navigator.geolocation.watchPosition(p, S);
680
+ m.current && navigator.geolocation.clearWatch(m.current);
681
+ }), w = [d, c], e[0] = c, e[1] = v, e[2] = w) : (v = e[1], w = e[2]), Pe(v, w);
682
+ let h;
683
+ e[3] !== a ? (h = (D) => {
684
+ a(D.coords);
685
+ }, e[3] = a, e[4] = h) : h = e[4];
686
+ const g = h;
687
+ let L;
688
+ e[5] !== c ? (L = (D) => {
689
+ f("denied"), c?.(D);
690
+ }, e[5] = c, e[6] = L) : L = e[6];
691
+ const M = L;
692
+ let C;
693
+ e[7] !== M || e[8] !== g || e[9] !== i ? (C = () => {
694
+ if (m.current && navigator.geolocation.clearWatch(m.current), i) {
695
+ m.current = navigator.geolocation.watchPosition(g, M);
701
696
  return;
702
697
  }
703
- navigator.geolocation.getCurrentPosition(p, S);
704
- }, e[7] = S, e[8] = p, e[9] = s, e[10] = A) : A = e[10];
705
- const _ = A, D = (o?.tooltip ?? Ct)[u ? "enabled" : "disabled"], M = o?.ariaLabel ?? wt, h = !m || i;
698
+ navigator.geolocation.getCurrentPosition(g, M);
699
+ }, e[7] = M, e[8] = g, e[9] = i, e[10] = C) : C = e[10];
700
+ const y = C, k = (l?.tooltip ?? At)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? kt, _ = !d || s;
706
701
  let T;
707
- e[11] !== u ? (T = u ? /* @__PURE__ */ l(nt, {}) : /* @__PURE__ */ l(it, {}), e[11] = u, e[12] = T) : T = e[12];
708
- let y;
709
- 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];
710
- let b;
711
- 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];
712
- let w;
713
- 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;
702
+ e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
703
+ let S;
704
+ e[13] !== y || e[14] !== b || e[15] !== _ || e[16] !== T ? (S = /* @__PURE__ */ o(le, { onClick: y, "aria-label": b, disabled: _, children: T }), e[13] = y, e[14] = b, e[15] = _, e[16] = T, e[17] = S) : S = e[17];
705
+ let p;
706
+ e[18] !== r || e[19] !== S || e[20] !== k ? (p = /* @__PURE__ */ o(fe, { arrow: !0, placement: "right", title: k, ...r, children: S }), e[18] = r, e[19] = S, e[20] = k, e[21] = p) : p = e[21];
707
+ let I;
708
+ return e[22] !== n || e[23] !== p ? (I = /* @__PURE__ */ o(Se, { ...n, children: p }), e[22] = n, e[23] = p, e[24] = I) : I = e[24], I;
709
+ }
710
+ function Dt(t, e) {
711
+ return e === "granted";
714
712
  }
715
713
  const _e = {
716
714
  zoom: {
@@ -744,180 +742,180 @@ const _e = {
744
742
  position: "absolute"
745
743
  }
746
744
  };
747
- function Qt(t) {
745
+ function ro(t) {
748
746
  const e = F(40), {
749
- zoom: i,
750
- disabled: o,
747
+ zoom: s,
748
+ disabled: l,
751
749
  direction: n,
752
750
  reverse: r,
753
- isLoading: s,
751
+ isLoading: i,
754
752
  maxZoom: a,
755
753
  minZoom: c,
756
- PaperProps: d,
757
- ResetViewProps: m,
754
+ PaperProps: m,
755
+ ResetViewProps: d,
758
756
  showZoom: u,
759
757
  onChange: f,
760
- onReset: I
761
- } = 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;
762
- let S;
763
- e[0] !== m ? (S = m === void 0 ? {
764
- Icon: st
765
- } : m, e[0] = m, e[1] = S) : S = e[1];
766
- const A = S, _ = u === void 0 ? !0 : u;
767
- let C;
768
- e[2] !== p || e[3] !== f || e[4] !== i ? (C = () => {
769
- const O = Math.min(p, i + 1);
770
- f(O);
771
- }, e[2] = p, e[3] = f, e[4] = i, e[5] = C) : C = e[5];
772
- const D = C;
758
+ onReset: v
759
+ } = t, w = n === void 0 ? "vertical" : n, h = r === void 0 ? !1 : r, g = a === void 0 ? 24 : a, L = c === void 0 ? 0 : c;
773
760
  let M;
774
- e[6] !== g || e[7] !== f || e[8] !== i ? (M = () => {
775
- const O = Math.max(g, i - 1);
776
- f(O);
777
- }, e[6] = g, e[7] = f, e[8] = i, e[9] = M) : M = e[9];
778
- const h = M, T = Math.floor(i), y = v === "vertical" ? "horizontal" : "vertical";
779
- let b = v === "vertical" ? "column" : "row";
780
- k && (b = b + "-reverse");
781
- let w;
782
- e[10] !== b ? (w = {
783
- ..._e.paper,
784
- flexDirection: b
785
- }, e[10] = b, e[11] = w) : w = e[11];
761
+ e[0] !== d ? (M = d === void 0 ? {
762
+ Icon: st
763
+ } : d, e[0] = d, e[1] = M) : M = e[1];
764
+ const C = M, y = u === void 0 ? !0 : u;
786
765
  let x;
787
- e[12] !== A || e[13] !== o || e[14] !== y || e[15] !== I ? (x = I && /* @__PURE__ */ $(ee, { children: [
788
- /* @__PURE__ */ l(re, { onClick: I, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(A.Icon, {}) }),
789
- /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 })
790
- ] }), e[12] = A, e[13] = o, e[14] = y, e[15] = I, e[16] = x) : x = e[16];
791
- let Z;
792
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ l(rt, {}), e[17] = Z) : Z = e[17];
766
+ e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
767
+ const B = Math.min(g, s + 1);
768
+ f(B);
769
+ }, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
770
+ const k = x;
771
+ let b;
772
+ e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
773
+ const B = Math.max(L, s - 1);
774
+ f(B);
775
+ }, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
776
+ const _ = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
777
+ let p = w === "vertical" ? "column" : "row";
778
+ h && (p = p + "-reverse");
779
+ let I;
780
+ e[10] !== p ? (I = {
781
+ ..._e.paper,
782
+ flexDirection: p
783
+ }, e[10] = p, e[11] = I) : I = e[11];
784
+ let D;
785
+ e[12] !== C || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
786
+ /* @__PURE__ */ o(le, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(C.Icon, {}) }),
787
+ /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
788
+ ] }), e[12] = C, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
789
+ let O;
790
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
793
791
  let U;
794
- 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];
795
- let L;
796
- e[21] !== y ? (L = /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 }), e[21] = y, e[22] = L) : L = e[22];
792
+ e[18] !== l || e[19] !== k ? (U = /* @__PURE__ */ o(le, { onClick: k, "aria-label": "Increase zoom", disabled: l, children: O }), e[18] = l, e[19] = k, e[20] = U) : U = e[20];
797
793
  let P;
798
- e[23] !== T || e[24] !== y || e[25] !== s || e[26] !== _ ? (P = _ && /* @__PURE__ */ $(ee, { children: [
799
- /* @__PURE__ */ $(q, { sx: _e.zoom, children: [
800
- /* @__PURE__ */ l(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
801
- s && /* @__PURE__ */ l(qe, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
794
+ e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
795
+ let R;
796
+ e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
797
+ /* @__PURE__ */ E(Y, { sx: _e.zoom, children: [
798
+ /* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
799
+ i && /* @__PURE__ */ o(Ye, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
802
800
  ] }),
803
- /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 })
804
- ] }), e[23] = T, e[24] = y, e[25] = s, e[26] = _, e[27] = P) : P = e[27];
801
+ /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
802
+ ] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
805
803
  let V;
806
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ l(at, {}), e[28] = V) : V = e[28];
807
- let E;
808
- 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];
809
- let R;
810
- 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: [
811
- x,
804
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
805
+ let Z;
806
+ e[29] !== _ || e[30] !== l ? (Z = /* @__PURE__ */ o(le, { onClick: _, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = _, e[30] = l, e[31] = Z) : Z = e[31];
807
+ let A;
808
+ return e[32] !== m || e[33] !== I || e[34] !== D || e[35] !== U || e[36] !== P || e[37] !== R || e[38] !== Z ? (A = /* @__PURE__ */ E(Se, { sx: I, ...m, children: [
809
+ D,
812
810
  U,
813
- L,
814
811
  P,
815
- E
816
- ] }), 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;
812
+ R,
813
+ Z
814
+ ] }), e[32] = m, e[33] = I, e[34] = D, e[35] = U, e[36] = P, e[37] = R, e[38] = Z, e[39] = A) : A = e[39], A;
817
815
  }
818
- function _t(t) {
816
+ function It(t) {
819
817
  const e = F(4), {
820
- length: i
821
- } = t, o = i === void 0 ? 5 : i;
818
+ length: s
819
+ } = t, l = s === void 0 ? 5 : s;
822
820
  let n;
823
- e[0] !== o ? (n = new Array(o).fill(null).map(Mt), e[0] = o, e[1] = n) : n = e[1];
821
+ e[0] !== l ? (n = new Array(l).fill(null).map(Lt), e[0] = l, e[1] = n) : n = e[1];
824
822
  let r;
825
- 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;
823
+ return e[2] !== n ? (r = /* @__PURE__ */ o(Y, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = r) : r = e[3], r;
826
824
  }
827
- function Mt(t, e) {
828
- return /* @__PURE__ */ $(pe, { container: !0, spacing: 1, children: [
829
- /* @__PURE__ */ $(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
830
- /* @__PURE__ */ l(we, { width: Dt(e) ? 72 : 48, height: 20 }),
831
- /* @__PURE__ */ l(we, { width: 48, height: 8 })
825
+ function Lt(t, e) {
826
+ return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
827
+ /* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
828
+ /* @__PURE__ */ o(Ce, { width: Rt(e) ? 72 : 48, height: 20 }),
829
+ /* @__PURE__ */ o(Ce, { width: 48, height: 8 })
832
830
  ] }),
833
- /* @__PURE__ */ l(we, { sx: {
834
- height: kt,
835
- marginTop: At,
836
- marginBottom: Tt,
831
+ /* @__PURE__ */ o(Ce, { sx: {
832
+ height: Et,
833
+ marginTop: Ot,
834
+ marginBottom: Pt,
837
835
  width: "100%"
838
836
  } })
839
- ] }, e);
837
+ ] }, `skeleton-${e}`);
840
838
  }
841
- function Tt(t) {
839
+ function Pt(t) {
842
840
  const {
843
841
  spacing: e
844
842
  } = t;
845
843
  return e(1.75);
846
844
  }
847
- function At(t) {
845
+ function Ot(t) {
848
846
  const {
849
847
  spacing: e
850
848
  } = t;
851
849
  return e(1.25);
852
850
  }
853
- function kt(t) {
851
+ function Et(t) {
854
852
  const {
855
853
  spacing: e
856
854
  } = t;
857
855
  return e(0.5);
858
856
  }
859
- function Dt(t) {
857
+ function Rt(t) {
860
858
  return t % 2 === 1;
861
859
  }
862
- function It(t) {
860
+ function Bt(t) {
863
861
  const e = F(13), {
864
- title: i,
865
- body: o,
862
+ title: s,
863
+ body: l,
866
864
  severity: n
867
- } = t, r = i === void 0 ? "No data available" : i, s = o === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : o;
865
+ } = t, r = s === void 0 ? "No data available" : s, i = 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;
868
866
  if (n) {
869
- let m;
870
- e[0] !== s ? (m = /* @__PURE__ */ l(ke, { children: s }), e[0] = s, e[1] = m) : m = e[1];
867
+ let d;
868
+ e[0] !== i ? (d = /* @__PURE__ */ o(Ae, { children: i }), e[0] = i, e[1] = d) : d = e[1];
871
869
  let u;
872
- 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;
870
+ return e[2] !== n || e[3] !== d || e[4] !== r ? (u = /* @__PURE__ */ o(Xe, { title: r, severity: n, children: d }), e[2] = n, e[3] = d, e[4] = r, e[5] = u) : u = e[5], u;
873
871
  }
874
872
  let a;
875
- e[6] !== r ? (a = r && /* @__PURE__ */ l(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
873
+ e[6] !== r ? (a = r && /* @__PURE__ */ o(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
876
874
  let c;
877
- e[8] !== s ? (c = /* @__PURE__ */ l(ke, { color: "textSecondary", children: s }), e[8] = s, e[9] = c) : c = e[9];
878
- let d;
879
- return e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ $(q, { children: [
875
+ e[8] !== i ? (c = /* @__PURE__ */ o(Ae, { color: "textSecondary", children: i }), e[8] = i, e[9] = c) : c = e[9];
876
+ let m;
877
+ return e[10] !== a || e[11] !== c ? (m = /* @__PURE__ */ E(Y, { children: [
880
878
  a,
881
879
  c
882
- ] }), e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
880
+ ] }), e[10] = a, e[11] = c, e[12] = m) : m = e[12], m;
883
881
  }
884
- function ke(t) {
882
+ function Ae(t) {
885
883
  const e = F(5), {
886
- color: i,
887
- children: o
884
+ color: s,
885
+ children: l
888
886
  } = t;
889
- if (o) {
890
- const r = i ?? "inherit";
891
- let s;
892
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
887
+ if (l) {
888
+ const r = s ?? "inherit";
889
+ let i;
890
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
893
891
  fontWeight: "normal"
894
- }, e[0] = s) : s = e[0];
892
+ }, e[0] = i) : i = e[0];
895
893
  let a;
896
- 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: s, children: o }) }), e[1] = o, e[2] = r, e[3] = a) : a = e[3], a;
894
+ return e[1] !== l || e[2] !== r ? (a = /* @__PURE__ */ o(Y, { mt: 0.5, children: /* @__PURE__ */ o(Q, { component: "div", variant: "caption", color: r, style: i, children: l }) }), e[1] = l, e[2] = r, e[3] = a) : a = e[3], a;
897
895
  }
898
896
  let n;
899
- return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l(q, { mt: -1 }), e[4] = n) : n = e[4], n;
897
+ return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ o(Y, { mt: -1 }), e[4] = n) : n = e[4], n;
900
898
  }
901
- function Lt(t) {
899
+ function $t(t) {
902
900
  const e = F(2);
903
- let i;
904
- e[0] !== t ? (i = () => t ? 1 : 0, e[0] = t, e[1] = i) : i = e[1];
905
- const [o, n] = ne(i);
906
- return t && o === 0 && n(1), !t && o === 1 && n(2), o === 1;
901
+ let s;
902
+ e[0] !== t ? (s = () => t ? 1 : 0, e[0] = t, e[1] = s) : s = e[1];
903
+ const [l, n] = se(s);
904
+ return t && l === 0 && n(1), !t && l === 1 && n(2), l === 1;
907
905
  }
908
- const De = {
906
+ const ke = {
909
907
  overflow: "hidden",
910
908
  textOverflow: "ellipsis",
911
909
  whiteSpace: "nowrap"
912
- }, ue = {
910
+ }, me = {
913
911
  label: {
914
912
  "& .MuiListItemText-primary": {
915
- ...De
913
+ ...ke
916
914
  }
917
915
  },
918
916
  value: {
919
917
  "& .MuiListItemText-primary": {
920
- ...De,
918
+ ...ke,
921
919
  textAlign: "right"
922
920
  }
923
921
  },
@@ -943,75 +941,72 @@ const De = {
943
941
  opacity: 0.5,
944
942
  pointerEvents: "none"
945
943
  }
946
- }, Pt = {
944
+ }, Ut = {
947
945
  showMore: "Show More",
948
946
  showLess: "Show Less"
949
- };
950
- function Jt(t) {
951
- const e = F(34), {
952
- data: i,
953
- isLoading: o,
947
+ }, Vt = [];
948
+ function ao(t) {
949
+ const e = F(32), {
950
+ data: s,
951
+ isLoading: l,
954
952
  maxItems: n,
955
953
  labels: r,
956
- showDivider: s,
954
+ showDivider: i,
957
955
  selectedItemId: a,
958
956
  tooltipProps: c,
959
- onExpand: d,
960
- onItemClick: m
961
- } = t;
962
- let u;
963
- e[0] !== i ? (u = i === void 0 ? [] : i, e[0] = i, e[1] = u) : u = e[1];
964
- const f = u, I = o === void 0 ? !1 : o, v = n === void 0 ? 5 : n, k = r === void 0 ? Pt : r, p = s === void 0 ? !0 : s, [g, S] = ne(!1), A = Lt(I);
965
- let _;
966
- 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];
967
- const C = _;
968
- let D;
969
- e[6] !== d || e[7] !== g ? (D = () => {
970
- S(!g), d?.(g);
971
- }, e[6] = d, e[7] = g, e[8] = D) : D = e[8];
972
- const M = D;
973
- if (A) {
974
- let w;
975
- return e[9] !== v ? (w = /* @__PURE__ */ l(_t, { length: v }), e[9] = v, e[10] = w) : w = e[10], w;
957
+ onExpand: m,
958
+ onItemClick: d
959
+ } = t, u = s === void 0 ? Vt : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? Ut : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = $t(f);
960
+ let C;
961
+ e[0] !== u || e[1] !== v || e[2] !== g ? (C = g ? u : u.slice(0, v), e[0] = u, e[1] = v, e[2] = g, e[3] = C) : C = e[3];
962
+ const y = C;
963
+ let x;
964
+ e[4] !== m || e[5] !== g ? (x = () => {
965
+ L(!g), m?.(g);
966
+ }, e[4] = m, e[5] = g, e[6] = x) : x = e[6];
967
+ const k = x;
968
+ if (M) {
969
+ let p;
970
+ return e[7] !== v ? (p = /* @__PURE__ */ o(It, { length: v }), e[7] = v, e[8] = p) : p = e[8], p;
976
971
  }
977
- if (C.length === 0) {
978
- let w;
979
- return e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ l(It, {}), e[11] = w) : w = e[11], w;
972
+ if (y.length === 0) {
973
+ let p;
974
+ return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Bt, {}), e[9] = p) : p = e[9], p;
980
975
  }
981
- let h;
982
- if (e[12] !== C || e[13] !== m || e[14] !== a || e[15] !== p || e[16] !== c) {
983
- let w;
984
- 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) => {
976
+ let b;
977
+ if (e[10] !== y || e[11] !== d || e[12] !== a || e[13] !== h || e[14] !== c) {
978
+ let p;
979
+ e[16] !== d || e[17] !== a || e[18] !== h || e[19] !== c ? (p = (I) => /* @__PURE__ */ o(dt, { followCursor: !1, placement: "top", arrow: !0, title: I.tooltipTitle, enterDelay: 10, ...c, children: (D) => {
985
980
  const {
986
- ref: L
987
- } = U;
988
- return /* @__PURE__ */ l(Ye, { ref: L, role: "listitem", sx: {
989
- ...p && ue.showDivider,
990
- ...m && ue.clickable,
991
- ...a === x.id && ue.selected,
992
- ...x.disabled && ue.disabled
981
+ ref: O
982
+ } = D;
983
+ return /* @__PURE__ */ o(qe, { ref: O, role: "listitem", sx: {
984
+ ...h && me.showDivider,
985
+ ...d && me.clickable,
986
+ ...a === I.id && me.selected,
987
+ ...I.disabled && me.disabled
993
988
  }, onClick: () => {
994
- x.disabled || m?.(x);
995
- }, children: /* @__PURE__ */ $(pe, { container: !0, alignItems: "center", children: [
996
- /* @__PURE__ */ l(pe, { item: !0, xs: 8, children: /* @__PURE__ */ l(Se, { primary: x.label, sx: ue.label }) }),
997
- /* @__PURE__ */ l(pe, { item: !0, xs: 4, children: /* @__PURE__ */ l(Se, { primary: x.value, sx: ue.value }) })
989
+ I.disabled || d?.(I);
990
+ }, children: /* @__PURE__ */ E(pe, { container: !0, alignItems: "center", children: [
991
+ /* @__PURE__ */ o(pe, { item: !0, xs: 8, children: /* @__PURE__ */ o(xe, { primary: I.label, sx: me.label }) }),
992
+ /* @__PURE__ */ o(pe, { item: !0, xs: 4, children: /* @__PURE__ */ o(xe, { primary: I.value, sx: me.value }) })
998
993
  ] }) });
999
- } }, `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;
994
+ } }, I.id), e[16] = d, e[17] = a, e[18] = h, e[19] = c, e[20] = p) : p = e[20], b = y.map(p), e[10] = y, e[11] = d, e[12] = a, e[13] = h, e[14] = c, e[15] = b;
1000
995
  } else
1001
- h = e[17];
996
+ b = e[15];
997
+ let _;
998
+ e[21] !== b ? (_ = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = _) : _ = e[22];
1002
999
  let T;
1003
- e[23] !== h ? (T = /* @__PURE__ */ l(Qe, { id: "expandable-list", role: "list", children: h }), e[23] = h, e[24] = T) : T = e[24];
1004
- let y;
1005
- 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];
1006
- let b;
1007
- return e[31] !== T || e[32] !== y ? (b = /* @__PURE__ */ $(ee, { children: [
1008
- T,
1009
- y
1010
- ] }), e[31] = T, e[32] = y, e[33] = b) : b = e[33], b;
1000
+ e[23] !== u.length || e[24] !== k || e[25] !== w || e[26] !== v || e[27] !== g ? (T = u.length > v && /* @__PURE__ */ o(Y, { my: 2, children: /* @__PURE__ */ o(ye, { onClick: k, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? w.showLess : w.showMore }) }), e[23] = u.length, e[24] = k, e[25] = w, e[26] = v, e[27] = g, e[28] = T) : T = e[28];
1001
+ let S;
1002
+ return e[29] !== T || e[30] !== _ ? (S = /* @__PURE__ */ E(J, { children: [
1003
+ _,
1004
+ T
1005
+ ] }), e[29] = T, e[30] = _, e[31] = S) : S = e[31], S;
1011
1006
  }
1012
- const Ot = 288, ce = {
1007
+ const Zt = 288, ae = {
1013
1008
  root: {
1014
- width: Ot,
1009
+ width: Zt,
1015
1010
  overflow: "auto"
1016
1011
  },
1017
1012
  toggle: {
@@ -1110,7 +1105,7 @@ const Ot = 288, ce = {
1110
1105
  }) => t.primary.main
1111
1106
  }
1112
1107
  }
1113
- }, Rt = {
1108
+ }, Wt = {
1114
1109
  toggle: {
1115
1110
  title: "Toggle basemaps controls"
1116
1111
  },
@@ -1121,224 +1116,241 @@ const Ot = 288, ce = {
1121
1116
  }
1122
1117
  }
1123
1118
  };
1124
- function Et(t) {
1119
+ function jt(t) {
1125
1120
  const e = F(6), {
1126
- isMobile: i,
1127
- labels: o,
1121
+ isMobile: s,
1122
+ labels: l,
1128
1123
  onChangeCollapsed: n
1129
- } = t, r = i === void 0 ? !1 : i;
1130
- let s;
1131
- e[0] !== r || e[1] !== o || e[2] !== n ? (s = r && /* @__PURE__ */ $(ee, { children: [
1132
- /* @__PURE__ */ l(Q, { variant: "caption", flexGrow: 1, children: o.title }),
1133
- /* @__PURE__ */ l(he, { title: o.actions.close, children: /* @__PURE__ */ l(re, { size: "small", onClick: n, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Re, {}) }) })
1134
- ] }), e[0] = r, e[1] = o, e[2] = n, e[3] = s) : s = e[3];
1124
+ } = t, r = s === void 0 ? !1 : s;
1125
+ let i;
1126
+ e[0] !== r || e[1] !== l || e[2] !== n ? (i = r && /* @__PURE__ */ E(J, { children: [
1127
+ /* @__PURE__ */ o(Q, { variant: "caption", flexGrow: 1, children: l.title }),
1128
+ /* @__PURE__ */ o(fe, { title: l.actions.close, children: /* @__PURE__ */ o(le, { size: "small", onClick: n, "aria-label": l.actions.close, children: /* @__PURE__ */ o(Oe, {}) }) })
1129
+ ] }), e[0] = r, e[1] = l, e[2] = n, e[3] = i) : i = e[3];
1135
1130
  let a;
1136
- return e[4] !== s ? (a = /* @__PURE__ */ l(q, { sx: ce.header, children: s }), e[4] = s, e[5] = a) : a = e[5], a;
1131
+ return e[4] !== i ? (a = /* @__PURE__ */ o(Y, { sx: ae.header, children: i }), e[4] = i, e[5] = a) : a = e[5], a;
1137
1132
  }
1138
- function $t(t) {
1133
+ function Ft(t) {
1139
1134
  const e = F(5), {
1140
- title: i,
1141
- children: o,
1135
+ title: s,
1136
+ children: l,
1142
1137
  collapsed: n
1143
1138
  } = t;
1144
1139
  if (n === void 0 ? !1 : n)
1145
- return o;
1146
- let s;
1147
- e[0] !== i ? (s = /* @__PURE__ */ l(Q, { variant: "caption", color: "textSecondary", sx: ce.groupWrapper.content, children: i }), e[0] = i, e[1] = s) : s = e[1];
1140
+ return l;
1141
+ let i;
1142
+ e[0] !== s ? (i = /* @__PURE__ */ o(Q, { variant: "caption", color: "textSecondary", sx: ae.groupWrapper.content, children: s }), e[0] = s, e[1] = i) : i = e[1];
1148
1143
  let a;
1149
- return e[2] !== o || e[3] !== s ? (a = /* @__PURE__ */ $(ee, { children: [
1150
- s,
1151
- o
1152
- ] }), e[2] = o, e[3] = s, e[4] = a) : a = e[4], a;
1144
+ return e[2] !== l || e[3] !== i ? (a = /* @__PURE__ */ E(J, { children: [
1145
+ i,
1146
+ l
1147
+ ] }), e[2] = l, e[3] = i, e[4] = a) : a = e[4], a;
1153
1148
  }
1154
- function Bt(t) {
1149
+ function Nt(t) {
1155
1150
  const e = F(9), {
1156
- values: i,
1157
- selected: o,
1151
+ values: s,
1152
+ selected: l,
1158
1153
  onChange: n
1159
1154
  } = t;
1160
1155
  let r;
1161
- if (e[0] !== n || e[1] !== o || e[2] !== i) {
1156
+ if (e[0] !== n || e[1] !== l || e[2] !== s) {
1162
1157
  let a;
1163
- e[4] !== n || e[5] !== o ? (a = (c) => {
1164
- const d = c.id === o;
1165
- return /* @__PURE__ */ $(q, { sx: ce.item.container, component: "button", "aria-label": c.label, onClick: () => n(c.id), children: [
1166
- /* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": d }),
1167
- /* @__PURE__ */ l(Q, { variant: "caption", sx: {
1168
- ...d && ce.item.selected
1158
+ e[4] !== n || e[5] !== l ? (a = (c) => {
1159
+ const m = c.id === l;
1160
+ return /* @__PURE__ */ E(Y, { sx: ae.item.container, component: "button", "aria-label": c.label, onClick: () => n(c.id), children: [
1161
+ /* @__PURE__ */ o("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": m }),
1162
+ /* @__PURE__ */ o(Q, { variant: "caption", sx: {
1163
+ ...m && ae.item.selected
1169
1164
  }, children: c.label })
1170
1165
  ] }, c.id);
1171
- }, e[4] = n, e[5] = o, e[6] = a) : a = e[6], r = i.map(a), e[0] = n, e[1] = o, e[2] = i, e[3] = r;
1166
+ }, e[4] = n, e[5] = l, e[6] = a) : a = e[6], r = s.map(a), e[0] = n, e[1] = l, e[2] = s, e[3] = r;
1172
1167
  } else
1173
1168
  r = e[3];
1174
- let s;
1175
- return e[7] !== r ? (s = /* @__PURE__ */ l(q, { sx: ce.group, children: r }), e[7] = r, e[8] = s) : s = e[8], s;
1169
+ let i;
1170
+ return e[7] !== r ? (i = /* @__PURE__ */ o(Y, { sx: ae.group, children: r }), e[7] = r, e[8] = i) : i = e[8], i;
1176
1171
  }
1177
- function Ut(t) {
1172
+ function zt(t) {
1178
1173
  const e = F(21), {
1179
- ref: i,
1180
- children: o,
1174
+ ref: s,
1175
+ children: l,
1181
1176
  collapsed: n,
1182
1177
  isMobile: r,
1183
- position: s,
1178
+ position: i,
1184
1179
  sx: a,
1185
1180
  slotProps: c,
1186
- onChangeCollapsed: d
1181
+ onChangeCollapsed: m
1187
1182
  } = t;
1188
1183
  if (r === void 0 ? !1 : r) {
1189
- const _ = !n;
1190
- let C;
1191
- 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;
1184
+ const y = !n;
1185
+ let x;
1186
+ return e[0] !== l || e[1] !== m || e[2] !== y ? (x = /* @__PURE__ */ o(Qe, { anchor: "bottom", open: y, onClose: m, children: l }), e[0] = l, e[1] = m, e[2] = y, e[3] = x) : x = e[3], x;
1192
1187
  }
1193
1188
  const u = !n;
1194
1189
  let f;
1195
- e[4] !== d ? (f = () => d(!0), e[4] = d, e[5] = f) : f = e[5];
1196
- const I = s.startsWith("bottom") ? "bottom" : "top", v = s.endsWith("right") ? "left" : "right";
1197
- let k;
1198
- e[6] !== I || e[7] !== v ? (k = {
1199
- vertical: I,
1200
- horizontal: v
1201
- }, e[6] = I, e[7] = v, e[8] = k) : k = e[8];
1202
- const p = s.startsWith("bottom") ? "bottom" : "top", g = s.endsWith("right") ? "right" : "left";
1203
- let S;
1204
- e[9] !== p || e[10] !== g ? (S = {
1205
- vertical: p,
1206
- horizontal: g
1207
- }, e[9] = p, e[10] = g, e[11] = S) : S = e[11];
1208
- let A;
1209
- return e[12] !== o || e[13] !== i || 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: i, open: u, onClose: f, anchorOrigin: k, transformOrigin: S, slotProps: c, children: o }), e[12] = o, e[13] = i, 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;
1190
+ e[4] !== m ? (f = () => m(!0), e[4] = m, e[5] = f) : f = e[5];
1191
+ const v = i.startsWith("bottom") ? "bottom" : "top", w = i.endsWith("right") ? "left" : "right";
1192
+ let h;
1193
+ e[6] !== v || e[7] !== w ? (h = {
1194
+ vertical: v,
1195
+ horizontal: w
1196
+ }, e[6] = v, e[7] = w, e[8] = h) : h = e[8];
1197
+ const g = i.startsWith("bottom") ? "bottom" : "top", L = i.endsWith("right") ? "right" : "left";
1198
+ let M;
1199
+ e[9] !== g || e[10] !== L ? (M = {
1200
+ vertical: g,
1201
+ horizontal: L
1202
+ }, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
1203
+ let C;
1204
+ return e[12] !== l || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== h || e[19] !== M ? (C = /* @__PURE__ */ o(Je, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: h, transformOrigin: M, slotProps: c, children: l }), e[12] = l, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = h, e[19] = M, e[20] = C) : C = e[20], C;
1210
1205
  }
1211
- function el(t) {
1212
- const e = F(56), {
1213
- options: i,
1214
- labels: o,
1206
+ const Gt = [];
1207
+ function co(t) {
1208
+ const e = F(54), {
1209
+ options: s,
1210
+ labels: l,
1215
1211
  position: n,
1216
1212
  selected: r,
1217
- onChange: s,
1213
+ onChange: i,
1218
1214
  TooltipProps: a
1219
- } = t;
1220
- let c;
1221
- e[0] !== i ? (c = i === void 0 ? [] : i, e[0] = i, e[1] = c) : c = e[1];
1222
- 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();
1215
+ } = t, c = s === void 0 ? Gt : s, m = n === void 0 ? "bottom-right" : n, d = r === void 0 ? null : r, [u, f] = se(null), [v, w] = se(!1), h = Le(null), [g, L] = se(null), M = et();
1216
+ let C;
1217
+ e[0] !== M.breakpoints ? (C = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = C) : C = e[1];
1218
+ const y = tt(C);
1219
+ let x;
1220
+ e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
1221
+ let k;
1222
+ e[4] !== x ? (k = we(Wt, x), e[4] = x, e[5] = k) : k = e[5];
1223
+ const b = k;
1223
1224
  let _;
1224
- e[2] !== A.breakpoints ? (_ = A.breakpoints.down("sm"), e[2] = A.breakpoints, e[3] = _) : _ = e[3];
1225
- const C = lt(_);
1226
- let D;
1227
- e[4] !== o ? (D = o ?? {}, e[4] = o, e[5] = D) : D = e[5];
1228
- let M;
1229
- e[6] !== D ? (M = Me(Rt, D), e[6] = D, e[7] = M) : M = e[7];
1230
- const h = M;
1231
- let T;
1232
- if (e[8] !== d || e[9] !== u) {
1233
- let se;
1234
- 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;
1225
+ if (e[6] !== c || e[7] !== d) {
1226
+ let ie;
1227
+ e[9] !== d ? (ie = (ge) => ge.id === d, e[9] = d, e[10] = ie) : ie = e[10], _ = c.find(ie), e[6] = c, e[7] = d, e[8] = _;
1235
1228
  } else
1236
- T = e[10];
1237
- const y = T;
1238
- let b;
1239
- e[13] !== d ? (b = Object.groupBy(d, Vt), e[13] = d, e[14] = b) : b = e[14];
1240
- const w = b;
1241
- let x;
1242
- e[15] !== w ? (x = Object.keys(w), e[15] = w, e[16] = x) : x = e[16];
1243
- const Z = x.length;
1244
- let U;
1245
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = () => {
1246
- I(null), k(!1);
1247
- }, e[17] = U) : U = e[17];
1248
- const L = U;
1249
- let P, V;
1250
- e[18] !== g ? (P = () => {
1251
- if (p.current && clearTimeout(p.current), !!g)
1252
- return p.current = setTimeout(() => {
1253
- L();
1229
+ _ = e[8];
1230
+ const T = _;
1231
+ let S;
1232
+ e[11] !== c ? (S = Object.groupBy(c, Ht), e[11] = c, e[12] = S) : S = e[12];
1233
+ const p = S;
1234
+ let I;
1235
+ e[13] !== p ? (I = Object.keys(p), e[13] = p, e[14] = I) : I = e[14];
1236
+ const D = I.length;
1237
+ let O;
1238
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = () => {
1239
+ f(null), w(!1);
1240
+ }, e[15] = O) : O = e[15];
1241
+ const U = O;
1242
+ let P, R;
1243
+ e[16] !== g ? (P = () => {
1244
+ if (h.current && clearTimeout(h.current), !!g)
1245
+ return h.current = setTimeout(() => {
1246
+ U();
1254
1247
  }, g), () => {
1255
- p.current && clearTimeout(p.current);
1248
+ h.current && clearTimeout(h.current);
1256
1249
  };
1257
- }, V = [g], e[18] = g, e[19] = P, e[20] = V) : (P = e[19], V = e[20]), Oe(P, V);
1258
- let E;
1259
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => {
1260
- S(null);
1261
- }, e[21] = E) : E = e[21];
1262
- const R = E;
1263
- let O;
1264
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = () => {
1265
- S(400);
1266
- }, e[22] = O) : O = e[22];
1267
- const W = O;
1250
+ }, R = [g], e[16] = g, e[17] = P, e[18] = R) : (P = e[17], R = e[18]), Pe(P, R);
1251
+ let V;
1252
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = () => {
1253
+ L(null);
1254
+ }, e[19] = V) : V = e[19];
1255
+ const Z = V;
1256
+ let A;
1257
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
1258
+ L(400);
1259
+ }, e[20] = A) : A = e[20];
1260
+ const B = A;
1261
+ let W;
1262
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ie) => {
1263
+ f(ie.currentTarget), w(!0);
1264
+ }, e[21] = W) : W = e[21];
1265
+ const z = T?.icon, N = T?.label ?? "Basemap";
1266
+ let j;
1267
+ e[22] !== z || e[23] !== N ? (j = /* @__PURE__ */ o(le, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: z, alt: N }) }), e[22] = z, e[23] = N, e[24] = j) : j = e[24];
1268
1268
  let G;
1269
- e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (se) => {
1270
- I(se.currentTarget), k(!0);
1271
- }, e[23] = G) : G = e[23];
1272
- const j = y?.icon, N = y?.label ?? "Basemap";
1273
- let z;
1274
- 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];
1275
- let B;
1276
- 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];
1277
- const H = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1278
- let X;
1279
- e[31] !== H ? (X = {
1269
+ e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (G = /* @__PURE__ */ o(fe, { title: b.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = b.toggle.title, e[27] = j, e[28] = G) : G = e[28];
1270
+ const $ = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1271
+ let H;
1272
+ e[29] !== $ ? (H = {
1280
1273
  paper: {
1281
1274
  sx: {
1282
- ...ce.root,
1283
- transform: H
1275
+ ...ae.root,
1276
+ transform: $
1284
1277
  },
1285
- onMouseOver: R,
1286
- onMouseLeave: W
1278
+ onMouseOver: Z,
1279
+ onMouseLeave: B
1287
1280
  }
1288
- }, e[31] = H, e[32] = X) : X = e[32];
1289
- const te = !v;
1290
- let J;
1291
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = () => L(), e[33] = J) : J = e[33];
1292
- let le;
1293
- e[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = () => L(), e[34] = le) : le = e[34];
1294
- let K;
1295
- 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];
1296
- let ie;
1297
- e[38] !== w ? (ie = Object.entries(w), e[38] = w, e[39] = ie) : ie = e[39];
1281
+ }, e[29] = $, e[30] = H) : H = e[30];
1282
+ const ee = !v;
1283
+ let X;
1284
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
1285
+ let te;
1286
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = () => U(), e[32] = te) : te = e[32];
1287
+ let q;
1288
+ e[33] !== y || e[34] !== b.header ? (q = /* @__PURE__ */ o(jt, { isMobile: y, labels: b.header, onChangeCollapsed: te }), e[33] = y, e[34] = b.header, e[35] = q) : q = e[35];
1289
+ let ne;
1290
+ e[36] !== p ? (ne = Object.entries(p), e[36] = p, e[37] = ne) : ne = e[37];
1291
+ let ce;
1292
+ e[38] !== D || e[39] !== b.header || e[40] !== i || e[41] !== d || e[42] !== ne ? (ce = ne.map((ie) => {
1293
+ const [ge, Ee] = ie;
1294
+ return /* @__PURE__ */ o(Ft, { title: ge + " " + b.header.title, collapsed: D < 2, children: /* @__PURE__ */ o(Nt, { values: Ee, selected: d, onChange: (Re) => {
1295
+ U(), i(Re);
1296
+ } }) }, ge);
1297
+ }), e[38] = D, e[39] = b.header, e[40] = i, e[41] = d, e[42] = ne, e[43] = ce) : ce = e[43];
1298
1298
  let de;
1299
- e[40] !== Z || e[41] !== h.header || e[42] !== s || e[43] !== u || e[44] !== ie ? (de = ie.map((se) => {
1300
- const [be, Ee] = se;
1301
- return /* @__PURE__ */ l($t, { title: be + " " + h.header.title, collapsed: Z < 2, children: /* @__PURE__ */ l(Bt, { values: Ee, selected: u, onChange: ($e) => {
1302
- L(), s($e);
1303
- } }) }, be);
1304
- }), e[40] = Z, e[41] = h.header, e[42] = s, e[43] = u, e[44] = ie, e[45] = de) : de = e[45];
1305
- let me;
1306
- 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: [
1307
- K,
1299
+ e[44] !== y || e[45] !== m || e[46] !== H || e[47] !== ee || e[48] !== q || e[49] !== ce ? (de = /* @__PURE__ */ E(zt, { ref: u, slotProps: H, collapsed: ee, position: m, isMobile: y, onChangeCollapsed: X, children: [
1300
+ q,
1301
+ ce
1302
+ ] }), e[44] = y, e[45] = m, e[46] = H, e[47] = ee, e[48] = q, e[49] = ce, e[50] = de) : de = e[50];
1303
+ let he;
1304
+ return e[51] !== G || e[52] !== de ? (he = /* @__PURE__ */ E(Se, { children: [
1305
+ G,
1308
1306
  de
1309
- ] }), e[46] = C, e[47] = m, e[48] = X, e[49] = te, e[50] = K, e[51] = de, e[52] = me) : me = e[52];
1310
- let ge;
1311
- return e[53] !== B || e[54] !== me ? (ge = /* @__PURE__ */ $(Ce, { children: [
1312
- B,
1313
- me
1314
- ] }), e[53] = B, e[54] = me, e[55] = ge) : ge = e[55], ge;
1307
+ ] }), e[51] = G, e[52] = de, e[53] = he) : he = e[53], he;
1315
1308
  }
1316
- function Vt(t) {
1309
+ function Ht(t) {
1317
1310
  return t.group ?? "default";
1318
1311
  }
1312
+ function mo({
1313
+ copyText: t,
1314
+ onSuccess: e,
1315
+ onError: s,
1316
+ "aria-label": l,
1317
+ ...n
1318
+ }) {
1319
+ async function r() {
1320
+ try {
1321
+ await mt(t), e?.();
1322
+ } catch (i) {
1323
+ s?.(i);
1324
+ }
1325
+ }
1326
+ return /* @__PURE__ */ o(le, { size: "small", onClick: () => {
1327
+ r();
1328
+ }, "aria-label": l ?? "Copy", ...n, children: /* @__PURE__ */ o(ct, { fontSize: "small" }) });
1329
+ }
1319
1330
  export {
1320
- gt as AreaIcon,
1321
- el as BasemapsUI,
1322
- ht as BufferIcon,
1323
- ol as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1331
+ xt as AreaIcon,
1332
+ co as BasemapsUI,
1333
+ yt as BufferIcon,
1334
+ mo as CopyButton,
1335
+ fo as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1324
1336
  oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1325
- vt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1326
- bt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1327
- nl as DrawCircleIcon,
1328
- il as DrawLassoIcon,
1329
- sl as DrawPolygonIcon,
1330
- rl as DrawSquareIcon,
1331
- Yt as GeolocationControls,
1332
- ae as LASSO_TOOLS_LABELS,
1333
- qt as LassoToolsInlineUI,
1334
- al as LassoToolsUI,
1335
- Jt as ListDataUI,
1336
- Kt as MeasurementToolsUI,
1337
- pt as RulerIcon,
1338
- cl as SelectToolIcon,
1339
- ct as SmartTooltip,
1340
- he as Tooltip,
1341
- Qt as ZoomControlsUI,
1342
- ml as setTooltipEnterDelay
1337
+ Ct as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1338
+ St as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1339
+ ho as DrawCircleIcon,
1340
+ go as DrawLassoIcon,
1341
+ bo as DrawPolygonIcon,
1342
+ vo as DrawSquareIcon,
1343
+ so as GeolocationControls,
1344
+ re as LASSO_TOOLS_LABELS,
1345
+ no as LassoToolsInlineUI,
1346
+ yo as LassoToolsUI,
1347
+ ao as ListDataUI,
1348
+ io as MeasurementToolsUI,
1349
+ vt as RulerIcon,
1350
+ xo as SelectToolIcon,
1351
+ dt as SmartTooltip,
1352
+ fe as Tooltip,
1353
+ ro as ZoomControlsUI,
1354
+ Co as setTooltipEnterDelay
1343
1355
  };
1344
1356
  //# sourceMappingURL=components.js.map