@carto/ps-react-ui 4.9.1 → 4.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/category-Dnd2_j0x.js +719 -0
- package/dist/category-Dnd2_j0x.js.map +1 -0
- package/dist/change-column-DjjwoPt1.js +1143 -0
- package/dist/change-column-DjjwoPt1.js.map +1 -0
- package/dist/chat.js +1507 -0
- package/dist/chat.js.map +1 -0
- package/dist/components.js +122 -120
- package/dist/components.js.map +1 -1
- package/dist/copy-button-DGL1tyli.js +26 -0
- package/dist/copy-button-DGL1tyli.js.map +1 -0
- package/dist/{data-zoom-layout-0QSptXG_.js → data-zoom-layout-CkVnm6ej.js} +3 -3
- package/dist/{data-zoom-layout-0QSptXG_.js.map → data-zoom-layout-CkVnm6ej.js.map} +1 -1
- package/dist/{download-config-CzmjOT2T.js → download-config-oJIFZ2WC.js} +9 -8
- package/dist/{download-config-CzmjOT2T.js.map → download-config-oJIFZ2WC.js.map} +1 -1
- package/dist/{png-item-CS4z1iSH.js → png-item-BE9uEqlD.js} +2 -2
- package/dist/png-item-BE9uEqlD.js.map +1 -0
- package/dist/{spread-Y9R1f5dm.js → spread-DYNpzgh_.js} +10 -11
- package/dist/{spread-Y9R1f5dm.js.map → spread-DYNpzgh_.js.map} +1 -1
- package/dist/{table-CQCAnDLb.js → table-C9IMbTr0.js} +50 -53
- package/dist/table-C9IMbTr0.js.map +1 -0
- package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
- package/dist/types/chat/bubbles/index.d.ts +4 -0
- package/dist/types/chat/const.d.ts +4 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -0
- package/dist/types/chat/containers/chat-footer.d.ts +2 -0
- package/dist/types/chat/containers/chat-header.d.ts +2 -0
- package/dist/types/chat/containers/chat-starter.d.ts +2 -0
- package/dist/types/chat/containers/index.d.ts +4 -0
- package/dist/types/chat/containers/styles.d.ts +93 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
- package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
- package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
- package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
- package/dist/types/chat/feedback/index.d.ts +8 -0
- package/dist/types/chat/feedback/styles.d.ts +211 -0
- package/dist/types/chat/index.d.ts +20 -0
- package/dist/types/chat/types.d.ts +184 -0
- package/dist/types/chat/use-typewriter.d.ts +30 -0
- package/dist/types/components/copy-button/copy-button.d.ts +2 -0
- package/dist/types/components/copy-button/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets/actions/shared/styles.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets/echart/types.d.ts +1 -1
- package/dist/types/widgets/toolbar-actions/styles.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/index.d.ts +1 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
- package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
- package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/category/category-ui.d.ts +9 -2
- package/dist/types/widgets-v2/category/category.d.ts +9 -2
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +19 -6
- package/dist/types/widgets-v2/category/style.d.ts +21 -2
- package/dist/types/widgets-v2/category/types.d.ts +2 -0
- package/dist/types/widgets-v2/index.d.ts +3 -2
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +7 -2
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +13 -6
- package/dist/types/widgets-v2/selection-summary/style.d.ts +15 -0
- package/dist/widgets/actions.js +115 -114
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +1 -1
- package/dist/widgets/category.js +9 -8
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/formula.js +11 -10
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +7 -6
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/markdown.js +9 -8
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/pie.js +1 -1
- package/dist/widgets/scatterplot.js +1 -1
- package/dist/widgets/spread.js +9 -8
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/table.js +17 -16
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +1 -1
- package/dist/widgets/utils.js +1 -1
- package/dist/widgets/wrapper.js +3 -2
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +41 -37
- package/dist/widgets-v2/bar.js +9 -10
- package/dist/widgets-v2/bar.js.map +1 -1
- package/dist/widgets-v2/category.js +25 -26
- package/dist/widgets-v2/category.js.map +1 -1
- package/dist/widgets-v2/formula.js +3 -3
- package/dist/widgets-v2/histogram.js +11 -13
- package/dist/widgets-v2/histogram.js.map +1 -1
- package/dist/widgets-v2/markdown.js +26 -27
- package/dist/widgets-v2/markdown.js.map +1 -1
- package/dist/widgets-v2/pie.js +8 -10
- package/dist/widgets-v2/pie.js.map +1 -1
- package/dist/widgets-v2/scatterplot.js +10 -12
- package/dist/widgets-v2/scatterplot.js.map +1 -1
- package/dist/widgets-v2/spread.js +15 -16
- package/dist/widgets-v2/spread.js.map +1 -1
- package/dist/widgets-v2/table.js +39 -40
- package/dist/widgets-v2/table.js.map +1 -1
- package/dist/widgets-v2/timeseries.js +9 -11
- package/dist/widgets-v2/timeseries.js.map +1 -1
- package/dist/widgets-v2/utils.js +1 -1
- package/dist/widgets-v2.js +284 -282
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +5 -1
- package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
- package/src/chat/bubbles/chat-agent-message.tsx +11 -0
- package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
- package/src/chat/bubbles/chat-error-message.tsx +47 -0
- package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
- package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.tsx +27 -0
- package/src/chat/bubbles/index.ts +4 -0
- package/src/chat/bubbles/styles.ts +148 -0
- package/src/chat/const.ts +4 -0
- package/src/chat/containers/chat-content.test.tsx +269 -0
- package/src/chat/containers/chat-content.tsx +142 -0
- package/src/chat/containers/chat-footer.test.tsx +34 -0
- package/src/chat/containers/chat-footer.tsx +78 -0
- package/src/chat/containers/chat-header.test.tsx +28 -0
- package/src/chat/containers/chat-header.tsx +29 -0
- package/src/chat/containers/chat-starter.test.tsx +32 -0
- package/src/chat/containers/chat-starter.tsx +75 -0
- package/src/chat/containers/index.ts +4 -0
- package/src/chat/containers/styles.ts +96 -0
- package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
- package/src/chat/feedback/chat-actions-container.tsx +7 -0
- package/src/chat/feedback/chat-loader.test.tsx +10 -0
- package/src/chat/feedback/chat-loader.tsx +31 -0
- package/src/chat/feedback/chat-rating-action.tsx +43 -0
- package/src/chat/feedback/chat-thinking.test.tsx +15 -0
- package/src/chat/feedback/chat-thinking.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
- package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
- package/src/chat/feedback/chat-tool-group.tsx +156 -0
- package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
- package/src/chat/feedback/chat-tool-trace.tsx +192 -0
- package/src/chat/feedback/get-tool-label.test.tsx +91 -0
- package/src/chat/feedback/get-tool-label.ts +13 -0
- package/src/chat/feedback/index.ts +8 -0
- package/src/chat/feedback/styles.ts +229 -0
- package/src/chat/index.ts +59 -0
- package/src/chat/types.ts +215 -0
- package/src/chat/use-typewriter.test.tsx +38 -0
- package/src/chat/use-typewriter.ts +82 -0
- package/src/components/copy-button/copy-button.test.tsx +41 -0
- package/src/components/copy-button/copy-button.tsx +31 -0
- package/src/components/copy-button/types.ts +10 -0
- package/src/components/index.ts +3 -0
- package/src/widgets/echart/types.ts +1 -1
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +1 -1
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +1 -1
- package/src/widgets-v2/actions/download/download.tsx +1 -1
- package/src/widgets-v2/actions/download/icons.tsx +1 -1
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +3 -3
- package/src/widgets-v2/actions/index.ts +8 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +2 -2
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +1 -1
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +1 -1
- package/src/widgets-v2/actions/searcher/searcher.tsx +2 -2
- package/src/widgets-v2/actions/show-all/index.ts +7 -0
- package/src/widgets-v2/actions/show-all/labels.ts +8 -0
- package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
- package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
- package/src/widgets-v2/actions/show-all/style.ts +8 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +1 -1
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +1 -1
- package/src/widgets-v2/category/category-ui.test.tsx +26 -10
- package/src/widgets-v2/category/category-ui.tsx +13 -3
- package/src/widgets-v2/category/category.test.tsx +4 -4
- package/src/widgets-v2/category/category.tsx +10 -1
- package/src/widgets-v2/category/components/category-row-other.test.tsx +36 -7
- package/src/widgets-v2/category/components/category-row-other.tsx +64 -13
- package/src/widgets-v2/category/style.ts +35 -4
- package/src/widgets-v2/category/types.ts +2 -0
- package/src/widgets-v2/index.ts +3 -0
- package/src/widgets-v2/selection-summary/labels.ts +8 -4
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +15 -9
- package/src/widgets-v2/selection-summary/selection-summary.tsx +42 -22
- package/src/widgets-v2/selection-summary/style.ts +15 -0
- package/src/widgets-v2/table/table-ui.tsx +4 -4
- package/src/widgets-v2/toolbox/toolbox.tsx +1 -1
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +1 -1
- package/dist/category-DwaeYjpX.js +0 -656
- package/dist/category-DwaeYjpX.js.map +0 -1
- package/dist/change-column-B4IT0rh6.js +0 -1110
- package/dist/change-column-B4IT0rh6.js.map +0 -1
- package/dist/png-item-CS4z1iSH.js.map +0 -1
- package/dist/table-CQCAnDLb.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { s as be, L as
|
|
1
|
+
import { s as be, L as Be, a as re } from "./lasso-tool-CDFj4zKY.js";
|
|
2
2
|
import { D as co, b as mo, c as uo, d as po, e as fo, f as ho, S as go } from "./lasso-tool-CDFj4zKY.js";
|
|
3
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 ue, Box as Y, ToggleButton as ve, SvgIcon as De, ToggleButtonGroup as Ie, Typography as Q, Button as ye, alpha as
|
|
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 ie, Menu as Ve, DialogTitle as Ze, FormControlLabel as We, Radio as je, RadioGroup as Fe, FormControl as Ne, DialogContent as Ge, DialogActions as ze, 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
6
|
import { useState as se, useRef as Le, useReducer as ot, useEffect as Pe } from "react";
|
|
7
7
|
import { d as we } from "./cjs-D4KH3azB.js";
|
|
8
8
|
import { T as fe } from "./tooltip-BDnrRKrp.js";
|
|
9
9
|
import { s as vo } from "./tooltip-BDnrRKrp.js";
|
|
10
10
|
import { ArrowDropDown as lt, Close as Oe, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
|
|
11
11
|
import { S as ct } from "./smart-tooltip-D4vwQpFf.js";
|
|
12
|
+
import { C as xo } from "./copy-button-DGL1tyli.js";
|
|
12
13
|
const dt = [], mt = {};
|
|
13
14
|
function to(t) {
|
|
14
15
|
const e = F(55), {
|
|
@@ -31,9 +32,9 @@ function to(t) {
|
|
|
31
32
|
sx: M,
|
|
32
33
|
...L
|
|
33
34
|
} = g, e[0] = g, e[1] = L, e[2] = M) : (L = e[1], M = e[2]);
|
|
34
|
-
let
|
|
35
|
-
e[3] !== i || e[4] !== a ? (
|
|
36
|
-
const y =
|
|
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;
|
|
37
38
|
let x, k;
|
|
38
39
|
e[6] !== y ? ({
|
|
39
40
|
edit: k,
|
|
@@ -41,7 +42,7 @@ function to(t) {
|
|
|
41
42
|
} = y, e[6] = y, e[7] = x, e[8] = k) : (x = e[7], k = e[8]);
|
|
42
43
|
let b;
|
|
43
44
|
e[9] !== u ? (b = (q) => u(q), e[9] = u, e[10] = b) : b = e[10];
|
|
44
|
-
const
|
|
45
|
+
const _ = b;
|
|
45
46
|
let T;
|
|
46
47
|
e[11] !== f ? (T = (q, le) => {
|
|
47
48
|
q.preventDefault(), f?.(le);
|
|
@@ -58,39 +59,39 @@ function to(t) {
|
|
|
58
59
|
const R = r?.options, V = D?.value, Z = r?.options;
|
|
59
60
|
let A;
|
|
60
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];
|
|
61
|
-
let
|
|
62
|
-
e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (
|
|
62
|
+
let B;
|
|
63
|
+
e[20] !== k || e[21] !== r?.options || e[22] !== h.length ? (B = !!k && /* @__PURE__ */ E(J, { children: [
|
|
63
64
|
/* @__PURE__ */ o(ue, { orientation: "vertical" }),
|
|
64
65
|
/* @__PURE__ */ o(Te, { labels: r?.options, data: [{
|
|
65
66
|
...k,
|
|
66
67
|
disabled: !h.length
|
|
67
68
|
}] })
|
|
68
|
-
] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] =
|
|
69
|
+
] }), e[20] = k, e[21] = r?.options, e[22] = h.length, e[23] = B) : B = e[23];
|
|
69
70
|
let W;
|
|
70
|
-
e[24] !== S || e[25] !== V || e[26] !== A || e[27] !==
|
|
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: [
|
|
71
72
|
A,
|
|
72
|
-
|
|
73
|
-
] }), e[24] = S, e[25] = V, e[26] = A, e[27] =
|
|
73
|
+
B
|
|
74
|
+
] }), e[24] = S, e[25] = V, e[26] = A, e[27] = B, e[28] = W) : W = e[28];
|
|
74
75
|
let G;
|
|
75
76
|
e[29] !== U || e[30] !== W || e[31] !== R ? (G = /* @__PURE__ */ o(ut, { data: U, labels: R, children: W }), e[29] = U, e[30] = W, e[31] = R, e[32] = G) : G = e[32];
|
|
76
77
|
let N;
|
|
77
78
|
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o(ue, { flexItem: !0 }), e[33] = N) : N = e[33];
|
|
78
79
|
const j = !!h.length, z = r?.noData;
|
|
79
|
-
let
|
|
80
|
-
e[34] !== j || e[35] !== z ? (
|
|
80
|
+
let $;
|
|
81
|
+
e[34] !== j || e[35] !== z ? ($ = /* @__PURE__ */ o(pt, { hasValues: j, labels: z }), e[34] = j, e[35] = z, e[36] = $) : $ = e[36];
|
|
81
82
|
let H;
|
|
82
|
-
e[37] !== n || e[38] !==
|
|
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];
|
|
83
84
|
const ee = r?.actions;
|
|
84
85
|
let X;
|
|
85
86
|
e[43] !== v || e[44] !== w || e[45] !== ee || e[46] !== h ? (X = /* @__PURE__ */ o(ft, { 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];
|
|
86
87
|
let te;
|
|
87
|
-
return e[48] !== L || e[49] !== G || e[50] !==
|
|
88
|
+
return e[48] !== L || e[49] !== G || e[50] !== $ || e[51] !== H || e[52] !== X || e[53] !== P ? (te = /* @__PURE__ */ E(Y, { sx: P, ...L, className: "inline", children: [
|
|
88
89
|
G,
|
|
89
90
|
N,
|
|
90
|
-
|
|
91
|
+
$,
|
|
91
92
|
H,
|
|
92
93
|
X
|
|
93
|
-
] }), e[48] = L, e[49] = G, e[50] =
|
|
94
|
+
] }), e[48] = L, e[49] = G, e[50] = $, e[51] = H, e[52] = X, e[53] = P, e[54] = te) : te = e[54], te;
|
|
94
95
|
}
|
|
95
96
|
function ut(t) {
|
|
96
97
|
const e = F(5), {
|
|
@@ -343,7 +344,7 @@ const oe = {
|
|
|
343
344
|
}) => t.primary.main,
|
|
344
345
|
backgroundColor: ({
|
|
345
346
|
palette: t
|
|
346
|
-
}) =>
|
|
347
|
+
}) => $e(t.primary.main, 0.08)
|
|
347
348
|
},
|
|
348
349
|
modal: {
|
|
349
350
|
toggle: {
|
|
@@ -419,20 +420,20 @@ function oo(t) {
|
|
|
419
420
|
onChangeMode: v,
|
|
420
421
|
onChangeUnit: w
|
|
421
422
|
} = t, h = n === void 0 ? oe : n, g = i === void 0 ? xt : i, L = a === void 0 ? yt : a, M = m === void 0 ? St : m;
|
|
422
|
-
let
|
|
423
|
+
let C, y;
|
|
423
424
|
e[0] !== M ? ({
|
|
424
425
|
sx: y,
|
|
425
|
-
...
|
|
426
|
-
} = M, e[0] = M, e[1] =
|
|
426
|
+
...C
|
|
427
|
+
} = M, e[0] = M, e[1] = C, e[2] = y) : (C = e[1], y = e[2]);
|
|
427
428
|
let x;
|
|
428
|
-
e[3] !== f ? (x = (
|
|
429
|
+
e[3] !== f ? (x = ($) => f(!!$), e[3] = f, e[4] = x) : x = e[4];
|
|
429
430
|
const k = x;
|
|
430
431
|
let b;
|
|
431
432
|
e[5] !== r || e[6] !== g ? (b = we(r, g), e[5] = r, e[6] = g, e[7] = b) : b = e[7];
|
|
432
|
-
const
|
|
433
|
+
const _ = b, T = (c ?? "") in _;
|
|
433
434
|
let S;
|
|
434
|
-
e[8] !==
|
|
435
|
-
const p = S, I =
|
|
435
|
+
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];
|
|
436
|
+
const p = S, I = _[p], D = d[p];
|
|
436
437
|
let O;
|
|
437
438
|
e[12] !== p || e[13] !== D || e[14] !== d ? (O = Object.keys(d).length >= 1 ? d : {
|
|
438
439
|
[p]: D.slice(0, 1)
|
|
@@ -440,11 +441,11 @@ function oo(t) {
|
|
|
440
441
|
const P = O[p];
|
|
441
442
|
let R;
|
|
442
443
|
if (e[16] !== P || e[17] !== L) {
|
|
443
|
-
let
|
|
444
|
-
e[19] !== L ? (
|
|
444
|
+
let $;
|
|
445
|
+
e[19] !== L ? ($ = (H) => ({
|
|
445
446
|
...H,
|
|
446
447
|
...L[H.value]
|
|
447
|
-
}), e[19] = L, e[20] =
|
|
448
|
+
}), e[19] = L, e[20] = $) : $ = e[20], R = P.map($), e[16] = P, e[17] = L, e[18] = R;
|
|
448
449
|
} else
|
|
449
450
|
R = e[18];
|
|
450
451
|
const V = R;
|
|
@@ -453,21 +454,21 @@ function oo(t) {
|
|
|
453
454
|
...K.container,
|
|
454
455
|
...y
|
|
455
456
|
}, e[21] = y, e[22] = Z) : Z = e[22];
|
|
456
|
-
const A = h?.action,
|
|
457
|
+
const A = h?.action, B = I?.icon;
|
|
457
458
|
let W;
|
|
458
|
-
e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !==
|
|
459
|
+
e[23] !== l || e[24] !== s || e[25] !== k || e[26] !== A || e[27] !== B ? (W = /* @__PURE__ */ o(Ct, { 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
460
|
const G = h?.options;
|
|
460
461
|
let N;
|
|
461
|
-
e[29] !== V || e[30] !==
|
|
462
|
+
e[29] !== V || e[30] !== _ || e[31] !== p || e[32] !== v || e[33] !== w || e[34] !== G || e[35] !== u ? (N = /* @__PURE__ */ o(_t, { labels: G, 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] = G, e[35] = u, e[36] = N) : N = e[36];
|
|
462
463
|
let j;
|
|
463
464
|
e[37] !== W || e[38] !== N ? (j = /* @__PURE__ */ E(Y, { children: [
|
|
464
465
|
W,
|
|
465
466
|
N
|
|
466
467
|
] }), e[37] = W, e[38] = N, e[39] = j) : j = e[39];
|
|
467
468
|
let z;
|
|
468
|
-
return e[40] !==
|
|
469
|
+
return e[40] !== C || e[41] !== Z || e[42] !== j ? (z = /* @__PURE__ */ o(Se, { sx: Z, ...C, children: j }), e[40] = C, e[41] = Z, e[42] = j, e[43] = z) : z = e[43], z;
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
+
function Ct(t) {
|
|
471
472
|
const e = F(12), {
|
|
472
473
|
actionProps: s,
|
|
473
474
|
labels: l,
|
|
@@ -482,7 +483,7 @@ function _t(t) {
|
|
|
482
483
|
let f;
|
|
483
484
|
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;
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function _t(t) {
|
|
486
487
|
const e = F(41), {
|
|
487
488
|
modes: s,
|
|
488
489
|
modeSelected: l,
|
|
@@ -501,21 +502,21 @@ function Ct(t) {
|
|
|
501
502
|
if (!(w.length > 1 || g.length > 1))
|
|
502
503
|
return null;
|
|
503
504
|
const M = !!m;
|
|
504
|
-
let
|
|
505
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
506
|
-
d(
|
|
507
|
-
}, e[4] =
|
|
508
|
-
const y =
|
|
505
|
+
let C;
|
|
506
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = ($) => {
|
|
507
|
+
d($.currentTarget);
|
|
508
|
+
}, e[4] = C) : C = e[4];
|
|
509
|
+
const y = C;
|
|
509
510
|
let x;
|
|
510
511
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
|
|
511
512
|
d(null);
|
|
512
513
|
}, e[5] = x) : x = e[5];
|
|
513
514
|
const k = x;
|
|
514
515
|
let b;
|
|
515
|
-
e[6] !== a ? (b = (
|
|
516
|
-
|
|
516
|
+
e[6] !== a ? (b = ($, H) => {
|
|
517
|
+
$.preventDefault(), a(H.value), k();
|
|
517
518
|
}, e[6] = a, e[7] = b) : b = e[7];
|
|
518
|
-
const
|
|
519
|
+
const _ = b;
|
|
519
520
|
let T;
|
|
520
521
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
521
522
|
f(!0);
|
|
@@ -527,31 +528,31 @@ function Ct(t) {
|
|
|
527
528
|
}, e[9] = p) : p = e[9];
|
|
528
529
|
const I = p;
|
|
529
530
|
let D;
|
|
530
|
-
e[10] !== c ? (D = (
|
|
531
|
-
I(), c(
|
|
531
|
+
e[10] !== c ? (D = ($) => {
|
|
532
|
+
I(), c($);
|
|
532
533
|
}, e[10] = c, e[11] = D) : D = e[11];
|
|
533
534
|
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;
|
|
534
535
|
let V;
|
|
535
|
-
e[12] !== r || e[13] !== n ? (V = n.find((
|
|
536
|
+
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
537
|
const Z = V;
|
|
537
538
|
let A;
|
|
538
539
|
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ o(ie, { sx: K.options.icon, onClick: y, children: /* @__PURE__ */ o(lt, {}) }), e[15] = A) : A = e[15];
|
|
539
|
-
let
|
|
540
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
540
|
+
let B;
|
|
541
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
541
542
|
"aria-labelledby": "basic-button",
|
|
542
543
|
sx: K.options.menu
|
|
543
|
-
}, e[16] =
|
|
544
|
+
}, e[16] = B) : B = e[16];
|
|
544
545
|
let W;
|
|
545
|
-
e[17] !==
|
|
546
|
+
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
547
|
/* @__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)[
|
|
549
|
-
return /* @__PURE__ */ E(Me, { onClick: (X) =>
|
|
550
|
-
/* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children:
|
|
548
|
+
w.map(($) => {
|
|
549
|
+
const ee = (i?.mode?.options ?? oe.options.mode.options)[$.value];
|
|
550
|
+
return /* @__PURE__ */ E(Me, { onClick: (X) => _(X, $), selected: $.value === l, children: [
|
|
551
|
+
/* @__PURE__ */ o(Ue, { sx: K.options.icons, children: /* @__PURE__ */ o(De, { children: $.icon }) }),
|
|
551
552
|
/* @__PURE__ */ o(xe, { children: ee })
|
|
552
|
-
] },
|
|
553
|
+
] }, $.value);
|
|
553
554
|
})
|
|
554
|
-
] }), e[17] =
|
|
555
|
+
] }), e[17] = _, e[18] = i?.mode?.options, e[19] = l, e[20] = U, e[21] = w, e[22] = W) : W = e[22];
|
|
555
556
|
let G;
|
|
556
557
|
e[23] !== R ? (G = R && /* @__PURE__ */ o(ue, {}), e[23] = R, e[24] = G) : G = e[24];
|
|
557
558
|
let N;
|
|
@@ -571,7 +572,7 @@ function Ct(t) {
|
|
|
571
572
|
let z;
|
|
572
573
|
return e[37] !== m || e[38] !== M || e[39] !== j ? (z = /* @__PURE__ */ E(J, { children: [
|
|
573
574
|
A,
|
|
574
|
-
/* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps:
|
|
575
|
+
/* @__PURE__ */ o(Ve, { id: "measurement-menu", anchorEl: m, open: M, onClose: k, MenuListProps: B, children: j })
|
|
575
576
|
] }), e[37] = m, e[38] = M, e[39] = j, e[40] = z) : z = e[40], z;
|
|
576
577
|
}
|
|
577
578
|
function wt(t) {
|
|
@@ -586,22 +587,22 @@ function wt(t) {
|
|
|
586
587
|
let d;
|
|
587
588
|
if (e[0] !== c || e[1] !== n) {
|
|
588
589
|
let A;
|
|
589
|
-
e[3] !== c ? (A = (
|
|
590
|
+
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;
|
|
590
591
|
} else
|
|
591
592
|
d = e[2];
|
|
592
593
|
const u = d;
|
|
593
594
|
let f;
|
|
594
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A,
|
|
595
|
-
m(
|
|
595
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (A, B) => {
|
|
596
|
+
m(B);
|
|
596
597
|
}, e[5] = f) : f = e[5];
|
|
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,
|
|
598
|
+
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
599
|
let y;
|
|
599
600
|
e[6] !== a ? (y = {
|
|
600
601
|
component: "form",
|
|
601
602
|
onSubmit: (A) => {
|
|
602
603
|
A.preventDefault();
|
|
603
|
-
const
|
|
604
|
-
a(
|
|
604
|
+
const B = new FormData(A.currentTarget);
|
|
605
|
+
a(B.get("unit-value"));
|
|
605
606
|
}
|
|
606
607
|
}, e[6] = a, e[7] = y) : y = e[7];
|
|
607
608
|
let x;
|
|
@@ -613,8 +614,8 @@ function wt(t) {
|
|
|
613
614
|
g,
|
|
614
615
|
k
|
|
615
616
|
] }), e[11] = g, e[12] = k, e[13] = b) : b = e[13];
|
|
616
|
-
let
|
|
617
|
-
e[14] !== L ? (
|
|
617
|
+
let _;
|
|
618
|
+
e[14] !== L ? (_ = /* @__PURE__ */ o(Q, { sx: K.options.modal.subtitle, children: L }), e[14] = L, e[15] = _) : _ = e[15];
|
|
618
619
|
let T;
|
|
619
620
|
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
621
|
let S;
|
|
@@ -624,13 +625,13 @@ function wt(t) {
|
|
|
624
625
|
T,
|
|
625
626
|
S
|
|
626
627
|
] }), e[20] = c, e[21] = T, e[22] = S, e[23] = p) : p = e[23];
|
|
627
|
-
const I =
|
|
628
|
+
const I = C?.value, D = C?.value;
|
|
628
629
|
let O;
|
|
629
630
|
if (e[24] !== u || e[25] !== h) {
|
|
630
631
|
let A;
|
|
631
|
-
e[27] !== h ? (A = (
|
|
632
|
-
const W = h[
|
|
633
|
-
return /* @__PURE__ */ o(We, { value:
|
|
632
|
+
e[27] !== h ? (A = (B) => {
|
|
633
|
+
const W = h[B.value];
|
|
634
|
+
return /* @__PURE__ */ o(We, { value: B.value, control: /* @__PURE__ */ o(je, {}), label: W }, B.value);
|
|
634
635
|
}, e[27] = h, e[28] = A) : A = e[28], O = u.map(A), e[24] = u, e[25] = h, e[26] = O;
|
|
635
636
|
} else
|
|
636
637
|
O = e[26];
|
|
@@ -639,11 +640,11 @@ function wt(t) {
|
|
|
639
640
|
let P;
|
|
640
641
|
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
642
|
let R;
|
|
642
|
-
e[35] !== p || e[36] !== P || e[37] !==
|
|
643
|
-
|
|
643
|
+
e[35] !== p || e[36] !== P || e[37] !== _ ? (R = /* @__PURE__ */ E(Ge, { sx: K.options.modal.content, children: [
|
|
644
|
+
_,
|
|
644
645
|
p,
|
|
645
646
|
P
|
|
646
|
-
] }), e[35] = p, e[36] = P, e[37] =
|
|
647
|
+
] }), e[35] = p, e[36] = P, e[37] = _, e[38] = R) : R = e[38];
|
|
647
648
|
let V;
|
|
648
649
|
e[39] !== M ? (V = /* @__PURE__ */ o(ze, { 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
650
|
let Z;
|
|
@@ -689,19 +690,19 @@ function lo(t) {
|
|
|
689
690
|
f("denied"), c?.(D);
|
|
690
691
|
}, e[5] = c, e[6] = L) : L = e[6];
|
|
691
692
|
const M = L;
|
|
692
|
-
let
|
|
693
|
-
e[7] !== M || e[8] !== g || e[9] !== i ? (
|
|
693
|
+
let C;
|
|
694
|
+
e[7] !== M || e[8] !== g || e[9] !== i ? (C = () => {
|
|
694
695
|
if (m.current && navigator.geolocation.clearWatch(m.current), i) {
|
|
695
696
|
m.current = navigator.geolocation.watchPosition(g, M);
|
|
696
697
|
return;
|
|
697
698
|
}
|
|
698
699
|
navigator.geolocation.getCurrentPosition(g, M);
|
|
699
|
-
}, e[7] = M, e[8] = g, e[9] = i, e[10] =
|
|
700
|
-
const y =
|
|
700
|
+
}, e[7] = M, e[8] = g, e[9] = i, e[10] = C) : C = e[10];
|
|
701
|
+
const y = C, k = (l?.tooltip ?? Mt)[u ? "enabled" : "disabled"], b = l?.ariaLabel ?? Tt, _ = !d || s;
|
|
701
702
|
let T;
|
|
702
703
|
e[11] !== u ? (T = u ? /* @__PURE__ */ o(nt, {}) : /* @__PURE__ */ o(it, {}), e[11] = u, e[12] = T) : T = e[12];
|
|
703
704
|
let S;
|
|
704
|
-
e[13] !== y || e[14] !== b || e[15] !==
|
|
705
|
+
e[13] !== y || e[14] !== b || e[15] !== _ || e[16] !== T ? (S = /* @__PURE__ */ o(ie, { 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
706
|
let p;
|
|
706
707
|
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
708
|
let I;
|
|
@@ -710,7 +711,7 @@ function lo(t) {
|
|
|
710
711
|
function At(t, e) {
|
|
711
712
|
return e === "granted";
|
|
712
713
|
}
|
|
713
|
-
const
|
|
714
|
+
const _e = {
|
|
714
715
|
zoom: {
|
|
715
716
|
position: "relative",
|
|
716
717
|
height: ({
|
|
@@ -761,31 +762,31 @@ function no(t) {
|
|
|
761
762
|
e[0] !== d ? (M = d === void 0 ? {
|
|
762
763
|
Icon: st
|
|
763
764
|
} : d, e[0] = d, e[1] = M) : M = e[1];
|
|
764
|
-
const
|
|
765
|
+
const C = M, y = u === void 0 ? !0 : u;
|
|
765
766
|
let x;
|
|
766
767
|
e[2] !== g || e[3] !== f || e[4] !== s ? (x = () => {
|
|
767
|
-
const
|
|
768
|
-
f(
|
|
768
|
+
const B = Math.min(g, s + 1);
|
|
769
|
+
f(B);
|
|
769
770
|
}, e[2] = g, e[3] = f, e[4] = s, e[5] = x) : x = e[5];
|
|
770
771
|
const k = x;
|
|
771
772
|
let b;
|
|
772
773
|
e[6] !== L || e[7] !== f || e[8] !== s ? (b = () => {
|
|
773
|
-
const
|
|
774
|
-
f(
|
|
774
|
+
const B = Math.max(L, s - 1);
|
|
775
|
+
f(B);
|
|
775
776
|
}, e[6] = L, e[7] = f, e[8] = s, e[9] = b) : b = e[9];
|
|
776
|
-
const
|
|
777
|
+
const _ = b, T = Math.floor(s), S = w === "vertical" ? "horizontal" : "vertical";
|
|
777
778
|
let p = w === "vertical" ? "column" : "row";
|
|
778
779
|
h && (p = p + "-reverse");
|
|
779
780
|
let I;
|
|
780
781
|
e[10] !== p ? (I = {
|
|
781
|
-
...
|
|
782
|
+
..._e.paper,
|
|
782
783
|
flexDirection: p
|
|
783
784
|
}, e[10] = p, e[11] = I) : I = e[11];
|
|
784
785
|
let D;
|
|
785
|
-
e[12] !==
|
|
786
|
-
/* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(
|
|
786
|
+
e[12] !== C || e[13] !== l || e[14] !== S || e[15] !== v ? (D = v && /* @__PURE__ */ E(J, { children: [
|
|
787
|
+
/* @__PURE__ */ o(ie, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ o(C.Icon, {}) }),
|
|
787
788
|
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
788
|
-
] }), e[12] =
|
|
789
|
+
] }), e[12] = C, e[13] = l, e[14] = S, e[15] = v, e[16] = D) : D = e[16];
|
|
789
790
|
let O;
|
|
790
791
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(rt, {}), e[17] = O) : O = e[17];
|
|
791
792
|
let U;
|
|
@@ -794,16 +795,16 @@ function no(t) {
|
|
|
794
795
|
e[21] !== S ? (P = /* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 }), e[21] = S, e[22] = P) : P = e[22];
|
|
795
796
|
let R;
|
|
796
797
|
e[23] !== T || e[24] !== S || e[25] !== i || e[26] !== y ? (R = y && /* @__PURE__ */ E(J, { children: [
|
|
797
|
-
/* @__PURE__ */ E(Y, { sx:
|
|
798
|
+
/* @__PURE__ */ E(Y, { sx: _e.zoom, children: [
|
|
798
799
|
/* @__PURE__ */ o(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
|
|
799
|
-
i && /* @__PURE__ */ o(Ye, { sx:
|
|
800
|
+
i && /* @__PURE__ */ o(Ye, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
|
|
800
801
|
] }),
|
|
801
802
|
/* @__PURE__ */ o(ue, { orientation: S, flexItem: !0 })
|
|
802
803
|
] }), e[23] = T, e[24] = S, e[25] = i, e[26] = y, e[27] = R) : R = e[27];
|
|
803
804
|
let V;
|
|
804
805
|
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ o(at, {}), e[28] = V) : V = e[28];
|
|
805
806
|
let Z;
|
|
806
|
-
e[29] !==
|
|
807
|
+
e[29] !== _ || e[30] !== l ? (Z = /* @__PURE__ */ o(ie, { onClick: _, "aria-label": "Decrease zoom", disabled: l, children: V }), e[29] = _, e[30] = l, e[31] = Z) : Z = e[31];
|
|
807
808
|
let A;
|
|
808
809
|
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
810
|
D,
|
|
@@ -825,10 +826,10 @@ function kt(t) {
|
|
|
825
826
|
function Dt(t, e) {
|
|
826
827
|
return /* @__PURE__ */ E(pe, { container: !0, spacing: 1, children: [
|
|
827
828
|
/* @__PURE__ */ E(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
828
|
-
/* @__PURE__ */ o(
|
|
829
|
-
/* @__PURE__ */ o(
|
|
829
|
+
/* @__PURE__ */ o(Ce, { width: Ot(e) ? 72 : 48, height: 20 }),
|
|
830
|
+
/* @__PURE__ */ o(Ce, { width: 48, height: 8 })
|
|
830
831
|
] }),
|
|
831
|
-
/* @__PURE__ */ o(
|
|
832
|
+
/* @__PURE__ */ o(Ce, { sx: {
|
|
832
833
|
height: Pt,
|
|
833
834
|
marginTop: Lt,
|
|
834
835
|
marginBottom: It,
|
|
@@ -941,10 +942,10 @@ const ke = {
|
|
|
941
942
|
opacity: 0.5,
|
|
942
943
|
pointerEvents: "none"
|
|
943
944
|
}
|
|
944
|
-
},
|
|
945
|
+
}, Bt = {
|
|
945
946
|
showMore: "Show More",
|
|
946
947
|
showLess: "Show Less"
|
|
947
|
-
},
|
|
948
|
+
}, $t = [];
|
|
948
949
|
function io(t) {
|
|
949
950
|
const e = F(32), {
|
|
950
951
|
data: s,
|
|
@@ -956,10 +957,10 @@ function io(t) {
|
|
|
956
957
|
tooltipProps: c,
|
|
957
958
|
onExpand: m,
|
|
958
959
|
onItemClick: d
|
|
959
|
-
} = t, u = s === void 0 ?
|
|
960
|
-
let
|
|
961
|
-
e[0] !== u || e[1] !== v || e[2] !== g ? (
|
|
962
|
-
const y =
|
|
960
|
+
} = t, u = s === void 0 ? $t : s, f = l === void 0 ? !1 : l, v = n === void 0 ? 5 : n, w = r === void 0 ? Bt : r, h = i === void 0 ? !0 : i, [g, L] = se(!1), M = Rt(f);
|
|
961
|
+
let C;
|
|
962
|
+
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];
|
|
963
|
+
const y = C;
|
|
963
964
|
let x;
|
|
964
965
|
e[4] !== m || e[5] !== g ? (x = () => {
|
|
965
966
|
L(!g), m?.(g);
|
|
@@ -994,15 +995,15 @@ function io(t) {
|
|
|
994
995
|
} }, 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;
|
|
995
996
|
} else
|
|
996
997
|
b = e[15];
|
|
997
|
-
let
|
|
998
|
-
e[21] !== b ? (
|
|
998
|
+
let _;
|
|
999
|
+
e[21] !== b ? (_ = /* @__PURE__ */ o(Ke, { id: "expandable-list", role: "list", children: b }), e[21] = b, e[22] = _) : _ = e[22];
|
|
999
1000
|
let T;
|
|
1000
1001
|
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
1002
|
let S;
|
|
1002
|
-
return e[29] !== T || e[30] !==
|
|
1003
|
-
|
|
1003
|
+
return e[29] !== T || e[30] !== _ ? (S = /* @__PURE__ */ E(J, { children: [
|
|
1004
|
+
_,
|
|
1004
1005
|
T
|
|
1005
|
-
] }), e[29] = T, e[30] =
|
|
1006
|
+
] }), e[29] = T, e[30] = _, e[31] = S) : S = e[31], S;
|
|
1006
1007
|
}
|
|
1007
1008
|
const Ut = 288, ae = {
|
|
1008
1009
|
root: {
|
|
@@ -1200,8 +1201,8 @@ function Ft(t) {
|
|
|
1200
1201
|
vertical: g,
|
|
1201
1202
|
horizontal: L
|
|
1202
1203
|
}, e[9] = g, e[10] = L, e[11] = M) : M = e[11];
|
|
1203
|
-
let
|
|
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 ? (
|
|
1204
|
+
let C;
|
|
1205
|
+
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;
|
|
1205
1206
|
}
|
|
1206
1207
|
const Nt = [];
|
|
1207
1208
|
function so(t) {
|
|
@@ -1213,21 +1214,21 @@ function so(t) {
|
|
|
1213
1214
|
onChange: i,
|
|
1214
1215
|
TooltipProps: a
|
|
1215
1216
|
} = t, c = s === void 0 ? Nt : 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
|
|
1217
|
-
e[0] !== M.breakpoints ? (
|
|
1218
|
-
const y = tt(
|
|
1217
|
+
let C;
|
|
1218
|
+
e[0] !== M.breakpoints ? (C = M.breakpoints.down("sm"), e[0] = M.breakpoints, e[1] = C) : C = e[1];
|
|
1219
|
+
const y = tt(C);
|
|
1219
1220
|
let x;
|
|
1220
1221
|
e[2] !== l ? (x = l ?? {}, e[2] = l, e[3] = x) : x = e[3];
|
|
1221
1222
|
let k;
|
|
1222
1223
|
e[4] !== x ? (k = we(Vt, x), e[4] = x, e[5] = k) : k = e[5];
|
|
1223
1224
|
const b = k;
|
|
1224
|
-
let
|
|
1225
|
+
let _;
|
|
1225
1226
|
if (e[6] !== c || e[7] !== d) {
|
|
1226
1227
|
let ne;
|
|
1227
|
-
e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10],
|
|
1228
|
+
e[9] !== d ? (ne = (ge) => ge.id === d, e[9] = d, e[10] = ne) : ne = e[10], _ = c.find(ne), e[6] = c, e[7] = d, e[8] = _;
|
|
1228
1229
|
} else
|
|
1229
|
-
|
|
1230
|
-
const T =
|
|
1230
|
+
_ = e[8];
|
|
1231
|
+
const T = _;
|
|
1231
1232
|
let S;
|
|
1232
1233
|
e[11] !== c ? (S = Object.groupBy(c, Gt), e[11] = c, e[12] = S) : S = e[12];
|
|
1233
1234
|
const p = S;
|
|
@@ -1257,7 +1258,7 @@ function so(t) {
|
|
|
1257
1258
|
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
1258
1259
|
L(400);
|
|
1259
1260
|
}, e[20] = A) : A = e[20];
|
|
1260
|
-
const
|
|
1261
|
+
const B = A;
|
|
1261
1262
|
let W;
|
|
1262
1263
|
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (ne) => {
|
|
1263
1264
|
f(ne.currentTarget), w(!0);
|
|
@@ -1267,18 +1268,18 @@ function so(t) {
|
|
|
1267
1268
|
e[22] !== G || e[23] !== N ? (j = /* @__PURE__ */ o(ie, { sx: ae.toggle, onClick: W, children: /* @__PURE__ */ o("img", { src: G, alt: N }) }), e[22] = G, e[23] = N, e[24] = j) : j = e[24];
|
|
1268
1269
|
let z;
|
|
1269
1270
|
e[25] !== a || e[26] !== b.toggle.title || e[27] !== j ? (z = /* @__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] = z) : z = e[28];
|
|
1270
|
-
const
|
|
1271
|
+
const $ = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1271
1272
|
let H;
|
|
1272
|
-
e[29] !==
|
|
1273
|
+
e[29] !== $ ? (H = {
|
|
1273
1274
|
paper: {
|
|
1274
1275
|
sx: {
|
|
1275
1276
|
...ae.root,
|
|
1276
|
-
transform:
|
|
1277
|
+
transform: $
|
|
1277
1278
|
},
|
|
1278
1279
|
onMouseOver: Z,
|
|
1279
|
-
onMouseLeave:
|
|
1280
|
+
onMouseLeave: B
|
|
1280
1281
|
}
|
|
1281
|
-
}, e[29] =
|
|
1282
|
+
}, e[29] = $, e[30] = H) : H = e[30];
|
|
1282
1283
|
const ee = !v;
|
|
1283
1284
|
let X;
|
|
1284
1285
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => U(), e[31] = X) : X = e[31];
|
|
@@ -1313,6 +1314,7 @@ export {
|
|
|
1313
1314
|
vt as AreaIcon,
|
|
1314
1315
|
so as BasemapsUI,
|
|
1315
1316
|
bt as BufferIcon,
|
|
1317
|
+
xo as CopyButton,
|
|
1316
1318
|
co as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1317
1319
|
oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1318
1320
|
xt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|