@overmap-ai/blocks 0.0.8 → 0.0.9-alpha.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.
- package/dist/Flex/Flex.d.ts +17 -0
- package/dist/Flex/index.d.ts +1 -0
- package/dist/Toolbar/Toolbar.d.ts +23 -0
- package/dist/Toolbar/index.d.ts +1 -0
- package/dist/blocks.js +688 -632
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +4 -3
package/dist/blocks.js
CHANGED
|
@@ -1,152 +1,153 @@
|
|
|
1
1
|
import "@radix-ui/themes/styles.css";
|
|
2
2
|
export * from "@radix-ui/colors";
|
|
3
|
-
import { Cross1Icon as
|
|
3
|
+
import { Cross1Icon as Ke, DragHandleDots2Icon as ue, Cross2Icon as Qe } from "@radix-ui/react-icons";
|
|
4
4
|
export * from "@radix-ui/react-icons";
|
|
5
|
-
import { useThemeContext as
|
|
6
|
-
import { AccessibleIcon as
|
|
7
|
-
import { jsx as e, jsxs as
|
|
8
|
-
import Z, { useMemo as j, forwardRef as
|
|
5
|
+
import { useThemeContext as Ye, Badge as Je, Button as Ze, IconButton as Ee, Flex as P, Box as W, Card as et, Inset as re, Dialog as F, AlertDialog as M, DropdownMenu as I, Select as B, Checkbox as tt, Switch as nt, Portal as ot, TextField as ie, Text as he, Popover as se, TextArea as rt, Callout as ae, Theme as it, Separator as Oe } from "@radix-ui/themes";
|
|
6
|
+
import { AccessibleIcon as Bo, AspectRatio as Lo, Avatar as Mo, Blockquote as Wo, Box as jo, Callout as Ho, Card as Go, Checkbox as Vo, Code as Fo, Container as Xo, ContextMenu as Uo, Em as qo, Grid as Ko, Heading as Qo, HoverCard as Yo, Inset as Jo, Kbd as Zo, Link as er, Portal as tr, Quote as nr, RadioGroup as or, ScrollArea as rr, Section as ir, Slider as sr, Slot as ar, Strong as cr, Table as lr, Tabs as ur, TextField as dr, Theme as hr, Tooltip as pr, VisuallyHidden as mr, updateThemeAppearanceClass as fr, useThemeContext as gr } from "@radix-ui/themes";
|
|
7
|
+
import { jsx as e, jsxs as v, Fragment as pe } from "react/jsx-runtime";
|
|
8
|
+
import Z, { useMemo as j, forwardRef as x, memo as C, createContext as we, useContext as xe, useState as b, useCallback as w, createElement as ke, useEffect as ee, useRef as Y, useLayoutEffect as st } from "react";
|
|
9
9
|
import "react-responsive";
|
|
10
10
|
import * as ce from "@radix-ui/react-dialog";
|
|
11
|
-
import { Root as
|
|
11
|
+
import { Root as at, Portal as ct, Overlay as lt, Content as ut } from "@radix-ui/react-dialog";
|
|
12
12
|
import { Resizable as de } from "re-resizable";
|
|
13
13
|
import { Transition as Ce } from "react-transition-group";
|
|
14
|
-
import { Root as
|
|
14
|
+
import { Root as dt, Item as ht } from "@radix-ui/react-toggle-group";
|
|
15
|
+
import { Root as pt } from "@radix-ui/react-toolbar";
|
|
15
16
|
import * as K from "@radix-ui/react-toast";
|
|
16
|
-
import { ToastProvider as
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
import { ToastProvider as mt, ToastViewport as ft } from "@radix-ui/react-toast";
|
|
18
|
+
function gt(r) {
|
|
19
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
19
20
|
}
|
|
20
|
-
var
|
|
21
|
+
var Ae = { exports: {} };
|
|
21
22
|
/*!
|
|
22
23
|
Copyright (c) 2018 Jed Watson.
|
|
23
24
|
Licensed under the MIT License (MIT), see
|
|
24
25
|
http://jedwatson.github.io/classnames
|
|
25
26
|
*/
|
|
26
|
-
(function(
|
|
27
|
+
(function(r) {
|
|
27
28
|
(function() {
|
|
28
|
-
var
|
|
29
|
+
var i = {}.hasOwnProperty;
|
|
29
30
|
function o() {
|
|
30
|
-
for (var
|
|
31
|
-
var
|
|
32
|
-
if (
|
|
33
|
-
var c = typeof
|
|
31
|
+
for (var t = [], s = 0; s < arguments.length; s++) {
|
|
32
|
+
var n = arguments[s];
|
|
33
|
+
if (n) {
|
|
34
|
+
var c = typeof n;
|
|
34
35
|
if (c === "string" || c === "number")
|
|
35
|
-
|
|
36
|
-
else if (Array.isArray(
|
|
37
|
-
if (
|
|
38
|
-
var
|
|
39
|
-
|
|
36
|
+
t.push(n);
|
|
37
|
+
else if (Array.isArray(n)) {
|
|
38
|
+
if (n.length) {
|
|
39
|
+
var a = o.apply(null, n);
|
|
40
|
+
a && t.push(a);
|
|
40
41
|
}
|
|
41
42
|
} else if (c === "object") {
|
|
42
|
-
if (
|
|
43
|
-
|
|
43
|
+
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
44
|
+
t.push(n.toString());
|
|
44
45
|
continue;
|
|
45
46
|
}
|
|
46
|
-
for (var u in
|
|
47
|
-
|
|
47
|
+
for (var u in n)
|
|
48
|
+
i.call(n, u) && n[u] && t.push(u);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
return
|
|
52
|
+
return t.join(" ");
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
+
r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
|
|
54
55
|
})();
|
|
55
|
-
})(
|
|
56
|
-
var
|
|
57
|
-
const
|
|
58
|
-
function L(
|
|
56
|
+
})(Ae);
|
|
57
|
+
var _t = Ae.exports;
|
|
58
|
+
const S = /* @__PURE__ */ gt(_t);
|
|
59
|
+
function L(r, i) {
|
|
59
60
|
return j(() => {
|
|
60
|
-
if (
|
|
61
|
-
if (typeof
|
|
62
|
-
if (!("initial" in
|
|
61
|
+
if (r !== void 0)
|
|
62
|
+
if (typeof r == "object") {
|
|
63
|
+
if (!("initial" in r))
|
|
63
64
|
throw new Error("Expected initial property to be set in Responsive object");
|
|
64
|
-
return Object.fromEntries(Object.entries(
|
|
65
|
+
return Object.fromEntries(Object.entries(r).map(([o, t]) => [o, i[t]]));
|
|
65
66
|
} else
|
|
66
|
-
return
|
|
67
|
-
}, [
|
|
67
|
+
return i[r];
|
|
68
|
+
}, [i, r]);
|
|
68
69
|
}
|
|
69
|
-
const
|
|
70
|
+
const Ct = {
|
|
70
71
|
success: "green",
|
|
71
72
|
danger: "red",
|
|
72
73
|
info: "gray"
|
|
73
|
-
}, O = (
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
},
|
|
78
|
-
const
|
|
74
|
+
}, O = (r) => {
|
|
75
|
+
const i = Ye();
|
|
76
|
+
if (r)
|
|
77
|
+
return r === "primary" ? i.accentColor : Ct[r];
|
|
78
|
+
}, vt = x(function({ className: i, severity: o = "primary", color: t, children: s, ...n }, c) {
|
|
79
|
+
const a = O(o);
|
|
79
80
|
return /* @__PURE__ */ e(
|
|
80
|
-
|
|
81
|
+
Je,
|
|
81
82
|
{
|
|
82
|
-
className:
|
|
83
|
+
className: S("overmap-badge", i),
|
|
83
84
|
ref: c,
|
|
84
|
-
color:
|
|
85
|
-
...
|
|
86
|
-
children:
|
|
85
|
+
color: t || a,
|
|
86
|
+
...n,
|
|
87
|
+
children: s
|
|
87
88
|
}
|
|
88
89
|
);
|
|
89
|
-
}),
|
|
90
|
-
fluid:
|
|
91
|
-
hoverSpin90Clockwise:
|
|
92
|
-
hoverSpin180Clockwise:
|
|
93
|
-
hoverSpin360Clockwise:
|
|
94
|
-
},
|
|
90
|
+
}), co = C(vt), yt = "_fluid_r73gr_1", wt = "_hoverSpin90Clockwise_r73gr_15", xt = "_hoverSpin180Clockwise_r73gr_25", St = "_hoverSpin360Clockwise_r73gr_35", J = {
|
|
91
|
+
fluid: yt,
|
|
92
|
+
hoverSpin90Clockwise: wt,
|
|
93
|
+
hoverSpin180Clockwise: xt,
|
|
94
|
+
hoverSpin360Clockwise: St
|
|
95
|
+
}, Be = {
|
|
95
96
|
spin90Clockwise: J.hoverSpin90Clockwise,
|
|
96
97
|
spin180Clockwise: J.hoverSpin180Clockwise,
|
|
97
98
|
spin360Clockwise: J.hoverSpin360Clockwise
|
|
98
|
-
},
|
|
99
|
-
(
|
|
100
|
-
},
|
|
99
|
+
}, Tt = (r) => {
|
|
100
|
+
(r.key === "Enter" || r.key === " ") && r.currentTarget.click();
|
|
101
|
+
}, lo = {
|
|
101
102
|
role: "button",
|
|
102
103
|
tabIndex: 0,
|
|
103
|
-
onKeyDown:
|
|
104
|
+
onKeyDown: Tt
|
|
104
105
|
}, X = {
|
|
105
106
|
small: "1",
|
|
106
107
|
medium: "2",
|
|
107
108
|
large: "3"
|
|
108
|
-
},
|
|
109
|
-
const
|
|
110
|
-
className:
|
|
111
|
-
type:
|
|
112
|
-
fluid: c =
|
|
113
|
-
size:
|
|
114
|
-
severity: u =
|
|
115
|
-
hoverEffects: l =
|
|
116
|
-
variant: d =
|
|
109
|
+
}, Le = we({}), Se = () => xe(Le), Rt = x(function(i, o) {
|
|
110
|
+
const t = Se(), {
|
|
111
|
+
className: s,
|
|
112
|
+
type: n = "button",
|
|
113
|
+
fluid: c = t.fluid ?? !1,
|
|
114
|
+
size: a = t.size ?? "medium",
|
|
115
|
+
severity: u = t.severity ?? "primary",
|
|
116
|
+
hoverEffects: l = t.hoverEffects ?? [],
|
|
117
|
+
variant: d = t.variant,
|
|
117
118
|
...p
|
|
118
|
-
} =
|
|
119
|
+
} = i, m = O(u), f = l.map((h) => Be[h]);
|
|
119
120
|
return /* @__PURE__ */ e(
|
|
120
|
-
|
|
121
|
+
Ze,
|
|
121
122
|
{
|
|
122
123
|
ref: o,
|
|
123
|
-
type:
|
|
124
|
-
className:
|
|
124
|
+
type: n,
|
|
125
|
+
className: S(s, f, {
|
|
125
126
|
[J.fluid]: c
|
|
126
127
|
}),
|
|
127
128
|
color: m,
|
|
128
|
-
size: L(
|
|
129
|
+
size: L(a, X),
|
|
129
130
|
variant: d,
|
|
130
131
|
...p
|
|
131
132
|
}
|
|
132
133
|
);
|
|
133
|
-
}),
|
|
134
|
-
const
|
|
135
|
-
className:
|
|
136
|
-
children:
|
|
134
|
+
}), ve = Z.memo(Rt), bt = x(function(i, o) {
|
|
135
|
+
const t = Se(), {
|
|
136
|
+
className: s,
|
|
137
|
+
children: n,
|
|
137
138
|
type: c = "button",
|
|
138
|
-
fluid:
|
|
139
|
-
size: u =
|
|
140
|
-
severity: l =
|
|
141
|
-
hoverEffects: d =
|
|
142
|
-
variant: p =
|
|
139
|
+
fluid: a = t.fluid ?? !1,
|
|
140
|
+
size: u = t.size ?? "medium",
|
|
141
|
+
severity: l = t.severity ?? "primary",
|
|
142
|
+
hoverEffects: d = t.hoverEffects ?? [],
|
|
143
|
+
variant: p = t.variant,
|
|
143
144
|
...m
|
|
144
|
-
} =
|
|
145
|
+
} = i, f = O(l), h = (d == null ? void 0 : d.map((g) => Be[g])) || [];
|
|
145
146
|
return /* @__PURE__ */ e(
|
|
146
|
-
|
|
147
|
+
Ee,
|
|
147
148
|
{
|
|
148
|
-
className:
|
|
149
|
-
[J.fluid]:
|
|
149
|
+
className: S(s, h, {
|
|
150
|
+
[J.fluid]: a
|
|
150
151
|
}),
|
|
151
152
|
ref: o,
|
|
152
153
|
color: f,
|
|
@@ -154,94 +155,94 @@ const gt = {
|
|
|
154
155
|
variant: p,
|
|
155
156
|
type: c,
|
|
156
157
|
...m,
|
|
157
|
-
children:
|
|
158
|
+
children: n
|
|
158
159
|
}
|
|
159
160
|
);
|
|
160
|
-
}),
|
|
161
|
-
merged:
|
|
162
|
-
},
|
|
161
|
+
}), Me = Z.memo(bt), $t = "_merged_wdgxo_1", Pt = {
|
|
162
|
+
merged: $t
|
|
163
|
+
}, Ot = {
|
|
163
164
|
row: { small: "4", medium: "4", large: "5" },
|
|
164
165
|
column: { small: "2", medium: "3", large: "4" }
|
|
165
|
-
},
|
|
166
|
-
className:
|
|
166
|
+
}, Dt = x(function({
|
|
167
|
+
className: i,
|
|
167
168
|
merged: o = !1,
|
|
168
|
-
children:
|
|
169
|
-
gap:
|
|
170
|
-
direction:
|
|
169
|
+
children: t,
|
|
170
|
+
gap: s,
|
|
171
|
+
direction: n = "row",
|
|
171
172
|
severity: c,
|
|
172
|
-
size:
|
|
173
|
+
size: a = "medium",
|
|
173
174
|
variant: u,
|
|
174
175
|
hoverEffects: l,
|
|
175
176
|
fluid: d,
|
|
176
177
|
...p
|
|
177
178
|
}, m) {
|
|
178
|
-
const f = L(
|
|
179
|
+
const f = L(a, Ot[n]), h = u === "ghost" ? f : "0";
|
|
179
180
|
return /* @__PURE__ */ e(
|
|
180
|
-
|
|
181
|
+
P,
|
|
181
182
|
{
|
|
182
|
-
className:
|
|
183
|
+
className: S("overmap-button-group", i, {
|
|
183
184
|
[Pt.merged]: o
|
|
184
185
|
}),
|
|
185
186
|
ref: m,
|
|
186
|
-
gap: o ?
|
|
187
|
-
direction:
|
|
188
|
-
"data-direction":
|
|
187
|
+
gap: o ? s ?? h : s ?? "2",
|
|
188
|
+
direction: n,
|
|
189
|
+
"data-direction": n,
|
|
189
190
|
...p,
|
|
190
|
-
children: /* @__PURE__ */ e(
|
|
191
|
+
children: /* @__PURE__ */ e(Le.Provider, { value: { size: a, severity: c, variant: u, hoverEffects: l, fluid: d }, children: t })
|
|
191
192
|
}
|
|
192
193
|
);
|
|
193
|
-
}),
|
|
194
|
-
separators:
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
const { children: o, border:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
}), We = C(Dt), zt = "_separators_1f7v1_1", It = {
|
|
195
|
+
separators: zt
|
|
196
|
+
}, Nt = C(
|
|
197
|
+
x((r, i) => {
|
|
198
|
+
const { children: o, border: t, before: s, after: n, size: c } = r, a = t ? "surface" : "ghost", u = L(c, X), d = /* @__PURE__ */ v(et, { ref: i, size: u, variant: a, children: [
|
|
199
|
+
s,
|
|
200
|
+
s && n ? /* @__PURE__ */ e(re, { side: "x", pt: "current", pb: "current", children: o }) : s ? /* @__PURE__ */ e(re, { side: "bottom", pt: "current", children: o }) : n ? /* @__PURE__ */ e(re, { side: "top", pb: "current", children: o }) : /* @__PURE__ */ e(re, { children: o }),
|
|
201
|
+
n
|
|
201
202
|
] });
|
|
202
|
-
return
|
|
203
|
+
return a === "ghost" ? /* @__PURE__ */ e(W, { p: "3", children: d }) : d;
|
|
203
204
|
})
|
|
204
|
-
),
|
|
205
|
-
|
|
206
|
-
const { children: o, variant:
|
|
207
|
-
return /* @__PURE__ */ e(
|
|
208
|
-
|
|
205
|
+
), Et = C(
|
|
206
|
+
x((r, i) => {
|
|
207
|
+
const { children: o, variant: t = "outline", size: s, className: n, ...c } = r;
|
|
208
|
+
return /* @__PURE__ */ e(Nt, { ...c, border: t === "outline" || t === "surface", size: s, children: /* @__PURE__ */ e(
|
|
209
|
+
We,
|
|
209
210
|
{
|
|
210
|
-
size:
|
|
211
|
+
size: s,
|
|
211
212
|
severity: "info",
|
|
212
|
-
variant:
|
|
213
|
-
className:
|
|
213
|
+
variant: t === "outline" ? "ghost" : t === "surface" ? "soft" : t,
|
|
214
|
+
className: S(n, It.separators),
|
|
214
215
|
merged: !0,
|
|
215
216
|
gap: "0",
|
|
216
217
|
direction: "column",
|
|
217
|
-
ref:
|
|
218
|
+
ref: i,
|
|
218
219
|
children: o
|
|
219
220
|
}
|
|
220
221
|
) });
|
|
221
222
|
})
|
|
222
|
-
),
|
|
223
|
-
|
|
224
|
-
const { variant: o } =
|
|
225
|
-
return o === "ghost" ? /* @__PURE__ */ e(W, { asChild: !0, my: "1", mx: "2", children:
|
|
223
|
+
), kt = C(
|
|
224
|
+
x((r, i) => {
|
|
225
|
+
const { variant: o } = Se(), t = /* @__PURE__ */ e(ve, { ref: i, ...r, radius: "large", variant: o });
|
|
226
|
+
return o === "ghost" ? /* @__PURE__ */ e(W, { asChild: !0, my: "1", mx: "2", children: t }) : t;
|
|
226
227
|
})
|
|
227
|
-
),
|
|
228
|
-
Root:
|
|
229
|
-
Item:
|
|
230
|
-
},
|
|
231
|
-
const { title: o, description:
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
228
|
+
), uo = {
|
|
229
|
+
Root: Et,
|
|
230
|
+
Item: kt
|
|
231
|
+
}, At = C(function(i) {
|
|
232
|
+
const { title: o, description: t, content: s, closeDialog: n } = i;
|
|
233
|
+
return /* @__PURE__ */ v(P, { direction: "column", gap: "2", children: [
|
|
234
|
+
/* @__PURE__ */ v(P, { direction: "column", gap: "1", children: [
|
|
235
|
+
/* @__PURE__ */ v(P, { justify: "between", children: [
|
|
235
236
|
/* @__PURE__ */ e(F.Title, { mb: "0", children: o }),
|
|
236
|
-
/* @__PURE__ */ e(F.Close, { children: /* @__PURE__ */ e(
|
|
237
|
+
/* @__PURE__ */ e(F.Close, { children: /* @__PURE__ */ e(Ee, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ e(Ke, {}) }) })
|
|
237
238
|
] }),
|
|
238
|
-
|
|
239
|
+
t && /* @__PURE__ */ e(F.Description, { children: t })
|
|
239
240
|
] }),
|
|
240
|
-
|
|
241
|
+
s(n)
|
|
241
242
|
] });
|
|
242
|
-
}),
|
|
243
|
-
|
|
244
|
-
const { children: o, content:
|
|
243
|
+
}), ho = C(
|
|
244
|
+
x((r, i) => {
|
|
245
|
+
const { children: o, content: t, title: s, description: n, onOpen: c, defaultOpen: a, onCloseInterrupt: u, ...l } = r, [d, p] = b(a ?? !1), m = w(
|
|
245
246
|
(h) => {
|
|
246
247
|
if (h && c)
|
|
247
248
|
c();
|
|
@@ -250,7 +251,7 @@ const gt = {
|
|
|
250
251
|
p(h);
|
|
251
252
|
},
|
|
252
253
|
[c, u]
|
|
253
|
-
), f =
|
|
254
|
+
), f = w(
|
|
254
255
|
(h) => {
|
|
255
256
|
if (h != null && h.force)
|
|
256
257
|
return p(!1);
|
|
@@ -258,214 +259,234 @@ const gt = {
|
|
|
258
259
|
},
|
|
259
260
|
[m]
|
|
260
261
|
);
|
|
261
|
-
return /* @__PURE__ */
|
|
262
|
+
return /* @__PURE__ */ v(F.Root, { open: d, onOpenChange: m, children: [
|
|
262
263
|
/* @__PURE__ */ e(F.Trigger, { children: o }),
|
|
263
|
-
/* @__PURE__ */ e(F.Content, { ref:
|
|
264
|
-
|
|
264
|
+
/* @__PURE__ */ e(F.Content, { ref: i, ...l, children: /* @__PURE__ */ e(
|
|
265
|
+
At,
|
|
265
266
|
{
|
|
266
267
|
closeDialog: f,
|
|
267
|
-
content:
|
|
268
|
-
title:
|
|
269
|
-
description:
|
|
268
|
+
content: t,
|
|
269
|
+
title: s,
|
|
270
|
+
description: n
|
|
270
271
|
}
|
|
271
272
|
) })
|
|
272
273
|
] });
|
|
273
274
|
})
|
|
274
|
-
),
|
|
275
|
-
const { title:
|
|
276
|
-
return /* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */ e(
|
|
275
|
+
), je = (r) => /* @__PURE__ */ e(M.Title, { mb: "0", ...r }), Bt = (r) => {
|
|
276
|
+
const { title: i, description: o, actionText: t = "Confirm", cancelText: s = "Cancel", onAction: n, onCancel: c, severity: a } = r;
|
|
277
|
+
return /* @__PURE__ */ v(P, { direction: "column", gap: "2", children: [
|
|
278
|
+
/* @__PURE__ */ v(P, { direction: "column", gap: "1", children: [
|
|
279
|
+
/* @__PURE__ */ e(je, { children: i }),
|
|
279
280
|
/* @__PURE__ */ e(M.Description, { children: o })
|
|
280
281
|
] }),
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */ e(M.Cancel, { children: /* @__PURE__ */ e(
|
|
283
|
-
/* @__PURE__ */ e(M.Action, { children: /* @__PURE__ */ e(
|
|
282
|
+
/* @__PURE__ */ v(P, { gap: "3", mt: "4", justify: "end", children: [
|
|
283
|
+
/* @__PURE__ */ e(M.Cancel, { children: /* @__PURE__ */ e(ve, { variant: "soft", severity: "info", onClick: c, children: s }) }),
|
|
284
|
+
/* @__PURE__ */ e(M.Action, { children: /* @__PURE__ */ e(ve, { variant: "solid", severity: a, onClick: n, children: t }) })
|
|
284
285
|
] })
|
|
285
286
|
] });
|
|
286
|
-
},
|
|
287
|
-
const { open: o, setOpen:
|
|
288
|
-
close: () =>
|
|
289
|
-
Title:
|
|
287
|
+
}, Lt = C(function(i) {
|
|
288
|
+
const { open: o, setOpen: t, children: s, ...n } = i, c = j(() => ({
|
|
289
|
+
close: () => t(!1),
|
|
290
|
+
Title: je,
|
|
290
291
|
Description: M.Description
|
|
291
|
-
}), [
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */ e(M.Content, { children: "content" in
|
|
294
|
-
|
|
292
|
+
}), [t]);
|
|
293
|
+
return /* @__PURE__ */ v(M.Root, { open: o, onOpenChange: t, children: [
|
|
294
|
+
/* @__PURE__ */ e(M.Content, { children: "content" in n ? n.content(c) : /* @__PURE__ */ e(Bt, { ...n }) }),
|
|
295
|
+
s
|
|
295
296
|
] });
|
|
296
|
-
}),
|
|
297
|
+
}), He = we(() => {
|
|
297
298
|
throw new Error("No AlertDialogProvider found");
|
|
298
|
-
}),
|
|
299
|
+
}), Mt = {
|
|
299
300
|
content: () => null
|
|
300
|
-
},
|
|
301
|
-
const [o,
|
|
302
|
-
(
|
|
301
|
+
}, po = C(function({ children: i }) {
|
|
302
|
+
const [o, t] = b(!1), [s, n] = b(Mt), c = w(
|
|
303
|
+
(a) => {
|
|
303
304
|
if (o)
|
|
304
305
|
throw new Error("AlertDialog is already open");
|
|
305
|
-
|
|
306
|
+
n(a), t(!0);
|
|
306
307
|
},
|
|
307
308
|
[o]
|
|
308
309
|
);
|
|
309
|
-
return /* @__PURE__ */ e(
|
|
310
|
-
}),
|
|
311
|
-
const
|
|
312
|
-
return
|
|
313
|
-
(
|
|
310
|
+
return /* @__PURE__ */ e(Lt, { open: o, setOpen: t, ...s, children: /* @__PURE__ */ e(He.Provider, { value: c, children: i }) });
|
|
311
|
+
}), Wt = () => xe(He), mo = () => {
|
|
312
|
+
const r = Wt();
|
|
313
|
+
return w(
|
|
314
|
+
(i) => r({
|
|
314
315
|
title: "Discard changes?",
|
|
315
316
|
description: "You have unsaved changes. Are you sure you want to discard them?",
|
|
316
317
|
actionText: "Discard",
|
|
317
318
|
severity: "danger",
|
|
318
|
-
onAction:
|
|
319
|
-
onCancel:
|
|
319
|
+
onAction: i.onDiscard,
|
|
320
|
+
onCancel: i.onCancel
|
|
320
321
|
}),
|
|
321
|
-
[
|
|
322
|
+
[r]
|
|
322
323
|
);
|
|
323
|
-
},
|
|
324
|
-
|
|
324
|
+
}, jt = "_zeroMinWidth_curjh_1", Ht = "_zeroMinHeight_curjh_5", Gt = "_radius_curjh_9", _e = {
|
|
325
|
+
zeroMinWidth: jt,
|
|
326
|
+
zeroMinHeight: Ht,
|
|
327
|
+
radius: Gt
|
|
328
|
+
}, Te = C(
|
|
329
|
+
x(
|
|
330
|
+
({ className: r, radius: i = !1, children: o, zeroMinWidth: t = !1, zeroMinHeight: s = !1, ...n }, c) => /* @__PURE__ */ e(
|
|
331
|
+
P,
|
|
332
|
+
{
|
|
333
|
+
className: S(r, {
|
|
334
|
+
[_e.radius]: i,
|
|
335
|
+
[_e.zeroMinWidth]: t,
|
|
336
|
+
[_e.zeroMinHeight]: s
|
|
337
|
+
}),
|
|
338
|
+
ref: c,
|
|
339
|
+
...n,
|
|
340
|
+
children: o
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
)
|
|
344
|
+
), Vt = C(function({
|
|
345
|
+
severity: i,
|
|
325
346
|
itemContent: o,
|
|
326
|
-
closeOnSelect:
|
|
327
|
-
onSelect:
|
|
328
|
-
...
|
|
347
|
+
closeOnSelect: t = !0,
|
|
348
|
+
onSelect: s,
|
|
349
|
+
...n
|
|
329
350
|
}) {
|
|
330
|
-
const c = O(
|
|
351
|
+
const c = O(i), a = w(
|
|
331
352
|
(u) => {
|
|
332
|
-
|
|
353
|
+
t || u.preventDefault(), s && s(u);
|
|
333
354
|
},
|
|
334
|
-
[
|
|
355
|
+
[t, s]
|
|
335
356
|
);
|
|
336
|
-
return /* @__PURE__ */ e(
|
|
337
|
-
}),
|
|
338
|
-
defaultOpen:
|
|
357
|
+
return /* @__PURE__ */ e(I.Item, { onSelect: a, color: c, ...n, children: o });
|
|
358
|
+
}), Ft = C(function({
|
|
359
|
+
defaultOpen: i,
|
|
339
360
|
open: o,
|
|
340
|
-
onOpenChange:
|
|
341
|
-
modal:
|
|
342
|
-
trigger:
|
|
361
|
+
onOpenChange: t,
|
|
362
|
+
modal: s,
|
|
363
|
+
trigger: n,
|
|
343
364
|
label: c,
|
|
344
|
-
severity:
|
|
365
|
+
severity: a = "info",
|
|
345
366
|
children: u,
|
|
346
367
|
...l
|
|
347
368
|
}) {
|
|
348
|
-
const d = O(
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */ e(
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
c && /* @__PURE__ */ e(
|
|
369
|
+
const d = O(a);
|
|
370
|
+
return /* @__PURE__ */ v(I.Root, { defaultOpen: i, open: o, onOpenChange: t, modal: s, children: [
|
|
371
|
+
/* @__PURE__ */ e(I.Trigger, { children: n }),
|
|
372
|
+
/* @__PURE__ */ v(I.Content, { color: d, ...l, children: [
|
|
373
|
+
c && /* @__PURE__ */ e(I.Label, { children: c }),
|
|
353
374
|
u
|
|
354
375
|
] })
|
|
355
376
|
] });
|
|
356
|
-
}),
|
|
357
|
-
separatorBelow:
|
|
377
|
+
}), Xt = C(function({
|
|
378
|
+
separatorBelow: i = !1,
|
|
358
379
|
separatorAbove: o = !1,
|
|
359
|
-
children:
|
|
360
|
-
...
|
|
380
|
+
children: t,
|
|
381
|
+
...s
|
|
361
382
|
}) {
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
o && /* @__PURE__ */ e(
|
|
364
|
-
/* @__PURE__ */ e(
|
|
365
|
-
|
|
383
|
+
return /* @__PURE__ */ v(pe, { children: [
|
|
384
|
+
o && /* @__PURE__ */ e(I.Separator, {}),
|
|
385
|
+
/* @__PURE__ */ e(I.Group, { ...s, children: t }),
|
|
386
|
+
i && /* @__PURE__ */ e(I.Separator, {})
|
|
366
387
|
] });
|
|
367
|
-
}),
|
|
368
|
-
defaultOpen:
|
|
388
|
+
}), Ut = C(function({
|
|
389
|
+
defaultOpen: i,
|
|
369
390
|
open: o,
|
|
370
|
-
onOpenChange:
|
|
371
|
-
trigger:
|
|
372
|
-
children:
|
|
391
|
+
onOpenChange: t,
|
|
392
|
+
trigger: s,
|
|
393
|
+
children: n,
|
|
373
394
|
...c
|
|
374
395
|
}) {
|
|
375
|
-
return /* @__PURE__ */
|
|
376
|
-
/* @__PURE__ */ e(
|
|
377
|
-
/* @__PURE__ */ e(
|
|
396
|
+
return /* @__PURE__ */ v(I.Sub, { defaultOpen: i, open: o, onOpenChange: t, children: [
|
|
397
|
+
/* @__PURE__ */ e(I.SubTrigger, { children: s }),
|
|
398
|
+
/* @__PURE__ */ e(I.SubContent, { ...c, children: n })
|
|
378
399
|
] });
|
|
379
|
-
}),
|
|
380
|
-
Root:
|
|
381
|
-
ItemGroup:
|
|
382
|
-
Item:
|
|
383
|
-
SubMenu:
|
|
384
|
-
},
|
|
385
|
-
const [o,
|
|
386
|
-
|
|
387
|
-
}, []),
|
|
388
|
-
|
|
400
|
+
}), fo = {
|
|
401
|
+
Root: Ft,
|
|
402
|
+
ItemGroup: Xt,
|
|
403
|
+
Item: Vt,
|
|
404
|
+
SubMenu: Ut
|
|
405
|
+
}, go = C(function({ children: i }) {
|
|
406
|
+
const [o, t] = b(!1), s = w(() => {
|
|
407
|
+
t(!0);
|
|
408
|
+
}, []), n = w(() => {
|
|
409
|
+
t(!1);
|
|
389
410
|
}, []);
|
|
390
|
-
return
|
|
411
|
+
return i({
|
|
391
412
|
isHovered: o,
|
|
392
|
-
onPointerEnter:
|
|
393
|
-
onPointerLeave:
|
|
413
|
+
onPointerEnter: s,
|
|
414
|
+
onPointerLeave: n
|
|
394
415
|
});
|
|
395
|
-
}),
|
|
396
|
-
fluid:
|
|
397
|
-
},
|
|
398
|
-
className:
|
|
416
|
+
}), qt = "_fluid_7n1wr_1", De = {
|
|
417
|
+
fluid: qt
|
|
418
|
+
}, Kt = x(function({
|
|
419
|
+
className: i,
|
|
399
420
|
fluid: o,
|
|
400
|
-
size:
|
|
401
|
-
variant:
|
|
402
|
-
severity:
|
|
421
|
+
size: t = "medium",
|
|
422
|
+
variant: s = "surface",
|
|
423
|
+
severity: n = "primary",
|
|
403
424
|
itemSeverity: c = "info",
|
|
404
|
-
placeholder:
|
|
425
|
+
placeholder: a = "Select",
|
|
405
426
|
side: u,
|
|
406
427
|
items: l = [],
|
|
407
428
|
value: d,
|
|
408
429
|
id: p,
|
|
409
430
|
...m
|
|
410
431
|
}, f) {
|
|
411
|
-
const h = L(
|
|
412
|
-
return /* @__PURE__ */
|
|
432
|
+
const h = L(t, X), g = O(n), _ = O(c);
|
|
433
|
+
return /* @__PURE__ */ ke(B.Root, { size: h, ...m, key: d === void 0 ? 1 : 0, value: d }, /* @__PURE__ */ e(
|
|
413
434
|
B.Trigger,
|
|
414
435
|
{
|
|
415
|
-
className:
|
|
416
|
-
[
|
|
436
|
+
className: S(i, {
|
|
437
|
+
[De.fluid]: o
|
|
417
438
|
}),
|
|
418
439
|
id: p,
|
|
419
440
|
ref: f,
|
|
420
|
-
variant:
|
|
421
|
-
placeholder:
|
|
441
|
+
variant: s,
|
|
442
|
+
placeholder: a,
|
|
422
443
|
color: g
|
|
423
444
|
}
|
|
424
445
|
), /* @__PURE__ */ e(
|
|
425
446
|
B.Content,
|
|
426
447
|
{
|
|
427
448
|
side: u,
|
|
428
|
-
className:
|
|
449
|
+
className: De.contentDefault,
|
|
429
450
|
position: "popper",
|
|
430
|
-
variant:
|
|
431
|
-
color:
|
|
432
|
-
children: l.map(({ itemContent: T, value:
|
|
451
|
+
variant: s !== "surface" ? "soft" : "solid",
|
|
452
|
+
color: _,
|
|
453
|
+
children: l.map(({ itemContent: T, value: y, ...$ }) => /* @__PURE__ */ e(B.Item, { className: "overmap-select-item", value: y, ...$, children: T }, y))
|
|
433
454
|
}
|
|
434
455
|
));
|
|
435
|
-
}),
|
|
436
|
-
|
|
437
|
-
const { checked: o, label:
|
|
438
|
-
return /* @__PURE__ */ e(W, { asChild: !0, px:
|
|
439
|
-
/* @__PURE__ */ e(
|
|
440
|
-
|
|
456
|
+
}), _o = Z.memo(Kt), ze = C(
|
|
457
|
+
x((r, i) => {
|
|
458
|
+
const { checked: o, label: t, value: s, size: n = "2" } = r;
|
|
459
|
+
return /* @__PURE__ */ e(W, { asChild: !0, px: n, children: /* @__PURE__ */ e(B.Item, { value: s, ref: i, children: /* @__PURE__ */ v(P, { gap: n, align: "center", children: [
|
|
460
|
+
/* @__PURE__ */ e(tt, { checked: o }),
|
|
461
|
+
t
|
|
441
462
|
] }) }) });
|
|
442
463
|
})
|
|
443
|
-
), le = "__select_all__",
|
|
444
|
-
|
|
445
|
-
const [o,
|
|
464
|
+
), le = "__select_all__", Co = C(
|
|
465
|
+
x((r, i) => {
|
|
466
|
+
const [o, t] = b(!1), { placeholder: s, value: n, onValueChange: c, options: a, disabled: u, name: l, ...d } = r, p = L(r.size, X), m = O(r.severity), f = j(() => new Map(a.map((y) => [y.value, y.label])), [a]), h = n.length > 4 ? (
|
|
446
467
|
// to ensure the width of the select doesn't get too big
|
|
447
|
-
`${
|
|
468
|
+
`${n.length} options selected`
|
|
448
469
|
) : (
|
|
449
470
|
// convert the values to labels
|
|
450
|
-
/* @__PURE__ */ e("span", { children:
|
|
451
|
-
), g =
|
|
452
|
-
|
|
453
|
-
}, []), T =
|
|
454
|
-
(
|
|
455
|
-
let
|
|
456
|
-
|
|
471
|
+
/* @__PURE__ */ e("span", { children: n.flatMap((y) => [f.get(y), ", "]).slice(0, -1) })
|
|
472
|
+
), g = w(() => t(!1), []), _ = w((y) => {
|
|
473
|
+
y && t(!0);
|
|
474
|
+
}, []), T = w(
|
|
475
|
+
(y) => {
|
|
476
|
+
let $;
|
|
477
|
+
y === le ? $ = n.length === a.length ? [] : a.map((H) => H.value) : $ = n.includes(y) ? n.filter((N) => N !== y) : [...n, y], c($);
|
|
457
478
|
},
|
|
458
|
-
[c,
|
|
479
|
+
[c, a, n]
|
|
459
480
|
);
|
|
460
481
|
return ee(() => {
|
|
461
|
-
if (
|
|
482
|
+
if (a.some(({ value: y }) => y === le))
|
|
462
483
|
throw new Error(`Cannot have an option with the value "${le}"`);
|
|
463
|
-
}, [
|
|
484
|
+
}, [a]), /* @__PURE__ */ v(
|
|
464
485
|
B.Root,
|
|
465
486
|
{
|
|
466
487
|
open: o,
|
|
467
488
|
value: "",
|
|
468
|
-
onOpenChange:
|
|
489
|
+
onOpenChange: _,
|
|
469
490
|
onValueChange: T,
|
|
470
491
|
disabled: u,
|
|
471
492
|
size: p,
|
|
@@ -475,14 +496,14 @@ const gt = {
|
|
|
475
496
|
/* @__PURE__ */ e(
|
|
476
497
|
B.Trigger,
|
|
477
498
|
{
|
|
478
|
-
ref:
|
|
499
|
+
ref: i,
|
|
479
500
|
color: m,
|
|
480
|
-
placeholder:
|
|
481
|
-
"data-placeholder":
|
|
501
|
+
placeholder: n.length > 0 ? h : s,
|
|
502
|
+
"data-placeholder": n.length > 0 ? void 0 : !0,
|
|
482
503
|
...d
|
|
483
504
|
}
|
|
484
505
|
),
|
|
485
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ v(
|
|
486
507
|
B.Content,
|
|
487
508
|
{
|
|
488
509
|
color: "gray",
|
|
@@ -492,22 +513,22 @@ const gt = {
|
|
|
492
513
|
onPointerDownOutside: g,
|
|
493
514
|
children: [
|
|
494
515
|
/* @__PURE__ */ e(
|
|
495
|
-
|
|
516
|
+
ze,
|
|
496
517
|
{
|
|
497
518
|
value: le,
|
|
498
519
|
label: "Select all",
|
|
499
|
-
checked:
|
|
520
|
+
checked: n.length === a.length,
|
|
500
521
|
size: p
|
|
501
522
|
}
|
|
502
523
|
),
|
|
503
|
-
|
|
504
|
-
|
|
524
|
+
a.map((y) => /* @__PURE__ */ e(
|
|
525
|
+
ze,
|
|
505
526
|
{
|
|
506
|
-
...
|
|
507
|
-
checked:
|
|
527
|
+
...y,
|
|
528
|
+
checked: n.includes(y.value),
|
|
508
529
|
size: p
|
|
509
530
|
},
|
|
510
|
-
|
|
531
|
+
y.value
|
|
511
532
|
))
|
|
512
533
|
]
|
|
513
534
|
}
|
|
@@ -516,69 +537,69 @@ const gt = {
|
|
|
516
537
|
}
|
|
517
538
|
);
|
|
518
539
|
})
|
|
519
|
-
),
|
|
540
|
+
), Qt = {
|
|
520
541
|
default: "_default_u936h_1"
|
|
521
|
-
},
|
|
522
|
-
const u = Y(null), [l, d] =
|
|
523
|
-
|
|
542
|
+
}, Yt = x(function({ className: i, severity: o = "primary", icon: t, defaultChecked: s = !1, onCheckedChange: n, ...c }, a) {
|
|
543
|
+
const u = Y(null), [l, d] = b(c.checked ? c.checked : s), [p, m] = b(), f = O(o);
|
|
544
|
+
st(() => {
|
|
524
545
|
var T;
|
|
525
|
-
const
|
|
526
|
-
"current" in
|
|
527
|
-
}, [
|
|
528
|
-
const h =
|
|
529
|
-
(
|
|
530
|
-
d(
|
|
546
|
+
const _ = a || u;
|
|
547
|
+
"current" in _ && _.current && m((T = _.current) == null ? void 0 : T.querySelector("span.rt-SwitchThumb"));
|
|
548
|
+
}, [a]);
|
|
549
|
+
const h = w(
|
|
550
|
+
(_) => {
|
|
551
|
+
d(_), n && n(_);
|
|
531
552
|
},
|
|
532
|
-
[
|
|
553
|
+
[n]
|
|
533
554
|
), g = c.checked ? c.checked : l;
|
|
534
|
-
return /* @__PURE__ */
|
|
555
|
+
return /* @__PURE__ */ v(pe, { children: [
|
|
535
556
|
/* @__PURE__ */ e(
|
|
536
|
-
|
|
557
|
+
nt,
|
|
537
558
|
{
|
|
538
|
-
className:
|
|
539
|
-
ref:
|
|
559
|
+
className: S("overmap-switch", i, Qt.default),
|
|
560
|
+
ref: a || u,
|
|
540
561
|
color: f,
|
|
541
562
|
radius: "full",
|
|
542
|
-
defaultChecked:
|
|
563
|
+
defaultChecked: s,
|
|
543
564
|
onCheckedChange: h,
|
|
544
565
|
...c
|
|
545
566
|
}
|
|
546
567
|
),
|
|
547
|
-
/* @__PURE__ */ e(
|
|
568
|
+
/* @__PURE__ */ e(ot, { container: p, asChild: !0, children: t && "checked" in t ? g ? t.checked : t.unchecked : t })
|
|
548
569
|
] });
|
|
549
|
-
}),
|
|
550
|
-
sidebarContent:
|
|
551
|
-
right:
|
|
552
|
-
resizeHandle:
|
|
553
|
-
left:
|
|
554
|
-
overlay:
|
|
555
|
-
},
|
|
556
|
-
side:
|
|
570
|
+
}), vo = C(Yt), Jt = "_sidebarContent_1onyo_1", Zt = "_right_1onyo_7", en = "_resizeHandle_1onyo_10", tn = "_left_1onyo_13", nn = "_overlay_1onyo_33", G = {
|
|
571
|
+
sidebarContent: Jt,
|
|
572
|
+
right: Zt,
|
|
573
|
+
resizeHandle: en,
|
|
574
|
+
left: tn,
|
|
575
|
+
overlay: nn
|
|
576
|
+
}, on = { width: "auto", height: "100%" }, rn = x(function({
|
|
577
|
+
side: i = "left",
|
|
557
578
|
modal: o = !0,
|
|
558
|
-
children:
|
|
559
|
-
open:
|
|
560
|
-
containerSelector:
|
|
579
|
+
children: t,
|
|
580
|
+
open: s,
|
|
581
|
+
containerSelector: n,
|
|
561
582
|
overlay: c = !0,
|
|
562
|
-
resizable:
|
|
583
|
+
resizable: a = !0,
|
|
563
584
|
// Props related to Resizable
|
|
564
585
|
minWidth: u = "300px",
|
|
565
586
|
maxWidth: l = "500px",
|
|
566
587
|
...d
|
|
567
588
|
}, p) {
|
|
568
|
-
const m =
|
|
589
|
+
const m = i === "right", f = i === "left", [h, g] = b();
|
|
569
590
|
return ee(() => {
|
|
570
|
-
const
|
|
591
|
+
const _ = n ?? '[data-is-root-theme="true"]', T = document.querySelector(_);
|
|
571
592
|
if (T === void 0)
|
|
572
|
-
throw new Error(`Could not find a container element using the following selector ${
|
|
593
|
+
throw new Error(`Could not find a container element using the following selector ${_}`);
|
|
573
594
|
g(T);
|
|
574
|
-
}, [
|
|
575
|
-
c && /* @__PURE__ */ e(ce.Overlay, { className:
|
|
595
|
+
}, [n]), /* @__PURE__ */ e(ce.Root, { open: s, modal: o, children: /* @__PURE__ */ v(ce.Portal, { container: h, children: [
|
|
596
|
+
c && /* @__PURE__ */ e(ce.Overlay, { className: S(G.overlay) }),
|
|
576
597
|
/* @__PURE__ */ e(
|
|
577
598
|
ce.Content,
|
|
578
599
|
{
|
|
579
|
-
className:
|
|
580
|
-
[
|
|
581
|
-
[
|
|
600
|
+
className: S("overmap-sidebar", "rt-DialogContent", G.sidebarContent, {
|
|
601
|
+
[G.left]: f,
|
|
602
|
+
[G.right]: m
|
|
582
603
|
}),
|
|
583
604
|
ref: p,
|
|
584
605
|
asChild: !0,
|
|
@@ -588,78 +609,78 @@ const gt = {
|
|
|
588
609
|
{
|
|
589
610
|
minWidth: u,
|
|
590
611
|
maxWidth: l,
|
|
591
|
-
defaultSize:
|
|
592
|
-
enable: { right:
|
|
593
|
-
handleClasses: { left:
|
|
612
|
+
defaultSize: on,
|
|
613
|
+
enable: { right: a && f, left: a && m },
|
|
614
|
+
handleClasses: { left: G.resizeHandle, right: G.resizeHandle },
|
|
594
615
|
handleComponent: {
|
|
595
616
|
right: /* @__PURE__ */ e(ue, {}),
|
|
596
617
|
left: /* @__PURE__ */ e(ue, {})
|
|
597
618
|
},
|
|
598
|
-
children:
|
|
619
|
+
children: t
|
|
599
620
|
}
|
|
600
621
|
) })
|
|
601
622
|
}
|
|
602
623
|
)
|
|
603
624
|
] }) });
|
|
604
|
-
}),
|
|
605
|
-
content:
|
|
606
|
-
left:
|
|
607
|
-
right:
|
|
608
|
-
resizable:
|
|
609
|
-
slideOutOverlay:
|
|
610
|
-
},
|
|
625
|
+
}), yo = C(rn), sn = "_content_jyaca_1", an = "_left_jyaca_10", cn = "_right_jyaca_13", ln = "_resizable_jyaca_17", un = "_slideOutOverlay_jyaca_21", Q = {
|
|
626
|
+
content: sn,
|
|
627
|
+
left: an,
|
|
628
|
+
right: cn,
|
|
629
|
+
resizable: ln,
|
|
630
|
+
slideOutOverlay: un
|
|
631
|
+
}, Ge = 200, dn = {
|
|
611
632
|
enter: 0,
|
|
612
|
-
exit:
|
|
613
|
-
},
|
|
614
|
-
open:
|
|
633
|
+
exit: Ge
|
|
634
|
+
}, wo = C(function({
|
|
635
|
+
open: i,
|
|
615
636
|
side: o = "left",
|
|
616
|
-
container:
|
|
617
|
-
children:
|
|
618
|
-
minWidth:
|
|
637
|
+
container: t,
|
|
638
|
+
children: s,
|
|
639
|
+
minWidth: n,
|
|
619
640
|
maxWidth: c,
|
|
620
|
-
resizable:
|
|
641
|
+
resizable: a = !0,
|
|
621
642
|
overlay: u = !1,
|
|
622
643
|
modal: l = !1,
|
|
623
644
|
resizeHandle: d,
|
|
624
645
|
...p
|
|
625
646
|
}) {
|
|
626
|
-
const m = Y(null), [f, h] =
|
|
647
|
+
const m = Y(null), [f, h] = b(n), [g, _] = b(), T = o === "left", y = o === "right";
|
|
627
648
|
ee(() => {
|
|
628
|
-
|
|
649
|
+
_(document.querySelector('[data-is-root-theme="true"]'));
|
|
629
650
|
}, []);
|
|
630
|
-
const
|
|
631
|
-
(U,
|
|
651
|
+
const $ = w(
|
|
652
|
+
(U, Re, fe, q) => {
|
|
632
653
|
h(fe.clientWidth);
|
|
633
654
|
},
|
|
634
655
|
[]
|
|
635
|
-
),
|
|
636
|
-
m.current && (m.current.style.transform = `translateX(${
|
|
637
|
-
}, [
|
|
638
|
-
m.current && (m.current.style.transition = `transform ${
|
|
639
|
-
}, []), me =
|
|
656
|
+
), N = w(() => {
|
|
657
|
+
m.current && (m.current.style.transform = `translateX(${y ? 100 : -100}%)`);
|
|
658
|
+
}, [y]), H = w(() => {
|
|
659
|
+
m.current && (m.current.style.transition = `transform ${Ge}ms linear`);
|
|
660
|
+
}, []), me = w(() => {
|
|
640
661
|
m.current && (m.current.style.transform = "translateX(0)");
|
|
641
662
|
}, []);
|
|
642
|
-
return /* @__PURE__ */ e(
|
|
663
|
+
return /* @__PURE__ */ e(at, { open: !0, modal: l, children: /* @__PURE__ */ e(
|
|
643
664
|
Ce,
|
|
644
665
|
{
|
|
645
|
-
in:
|
|
646
|
-
timeout:
|
|
666
|
+
in: i,
|
|
667
|
+
timeout: dn,
|
|
647
668
|
nodeRef: m,
|
|
648
|
-
onEnter:
|
|
649
|
-
onEntering:
|
|
669
|
+
onEnter: N,
|
|
670
|
+
onEntering: H,
|
|
650
671
|
onEntered: me,
|
|
651
|
-
onExiting:
|
|
652
|
-
onExit:
|
|
672
|
+
onExiting: H,
|
|
673
|
+
onExit: N,
|
|
653
674
|
unmountOnExit: !0,
|
|
654
675
|
mountOnEnter: !0,
|
|
655
|
-
children: () => /* @__PURE__ */
|
|
656
|
-
u && /* @__PURE__ */ e(
|
|
676
|
+
children: () => /* @__PURE__ */ v(ct, { container: t || g, children: [
|
|
677
|
+
u && /* @__PURE__ */ e(lt, { className: Q.slideOutOverlay }),
|
|
657
678
|
/* @__PURE__ */ e(
|
|
658
|
-
|
|
679
|
+
ut,
|
|
659
680
|
{
|
|
660
|
-
className:
|
|
681
|
+
className: S("overmap-slide-out", Q.content, {
|
|
661
682
|
[Q.left]: T,
|
|
662
|
-
[Q.right]:
|
|
683
|
+
[Q.right]: y
|
|
663
684
|
}),
|
|
664
685
|
asChild: !0,
|
|
665
686
|
...p,
|
|
@@ -668,12 +689,12 @@ const gt = {
|
|
|
668
689
|
{
|
|
669
690
|
className: Q.resizable,
|
|
670
691
|
defaultSize: { width: f, height: "100%" },
|
|
671
|
-
onResize:
|
|
672
|
-
enable: { right:
|
|
692
|
+
onResize: $,
|
|
693
|
+
enable: { right: a && T, left: a && y },
|
|
673
694
|
handleComponent: { left: d, right: d },
|
|
674
|
-
minWidth:
|
|
695
|
+
minWidth: n,
|
|
675
696
|
maxWidth: c,
|
|
676
|
-
children:
|
|
697
|
+
children: s
|
|
677
698
|
}
|
|
678
699
|
) })
|
|
679
700
|
}
|
|
@@ -681,161 +702,161 @@ const gt = {
|
|
|
681
702
|
] })
|
|
682
703
|
}
|
|
683
704
|
) });
|
|
684
|
-
}),
|
|
685
|
-
accommodateCharCount:
|
|
686
|
-
wrapper:
|
|
705
|
+
}), hn = "_accommodateCharCount_sr18k_1", pn = "_wrapper_sr18k_5", mn = "_noLeftIcon_sr18k_13", fn = "_noRightIcon_sr18k_17", gn = "_charCount_sr18k_21", V = {
|
|
706
|
+
accommodateCharCount: hn,
|
|
707
|
+
wrapper: pn,
|
|
687
708
|
default: "_default_sr18k_9",
|
|
688
|
-
noLeftIcon:
|
|
689
|
-
noRightIcon:
|
|
690
|
-
charCount:
|
|
691
|
-
},
|
|
692
|
-
className:
|
|
709
|
+
noLeftIcon: mn,
|
|
710
|
+
noRightIcon: fn,
|
|
711
|
+
charCount: gn
|
|
712
|
+
}, _n = x(function({
|
|
713
|
+
className: i,
|
|
693
714
|
leftSlot: o,
|
|
694
|
-
rightSlot:
|
|
695
|
-
size:
|
|
696
|
-
showInputLength:
|
|
715
|
+
rightSlot: t,
|
|
716
|
+
size: s = "medium",
|
|
717
|
+
showInputLength: n,
|
|
697
718
|
value: c,
|
|
698
|
-
variant:
|
|
719
|
+
variant: a,
|
|
699
720
|
severity: u = "primary",
|
|
700
721
|
...l
|
|
701
722
|
}, d) {
|
|
702
|
-
const p = L(
|
|
703
|
-
return /* @__PURE__ */
|
|
723
|
+
const p = L(s, X), m = O(u), f = n || n === void 0 && l.maxLength !== void 0, h = c !== void 0 ? c.toString() : void 0;
|
|
724
|
+
return /* @__PURE__ */ v(
|
|
704
725
|
ie.Root,
|
|
705
726
|
{
|
|
706
|
-
className:
|
|
707
|
-
[
|
|
727
|
+
className: S(V.wrapper, {
|
|
728
|
+
[V.accommodateCharCount]: f
|
|
708
729
|
}),
|
|
709
730
|
size: p,
|
|
710
|
-
variant:
|
|
731
|
+
variant: a,
|
|
711
732
|
color: m,
|
|
712
733
|
children: [
|
|
713
734
|
o && /* @__PURE__ */ e(ie.Slot, { children: o }),
|
|
714
735
|
/* @__PURE__ */ e(
|
|
715
736
|
ie.Input,
|
|
716
737
|
{
|
|
717
|
-
className:
|
|
718
|
-
[
|
|
719
|
-
[
|
|
738
|
+
className: S(V.default, i, {
|
|
739
|
+
[V.noLeftIcon]: !o,
|
|
740
|
+
[V.noRightIcon]: !t
|
|
720
741
|
}),
|
|
721
742
|
ref: d,
|
|
722
743
|
size: p,
|
|
723
|
-
variant:
|
|
744
|
+
variant: a,
|
|
724
745
|
color: m,
|
|
725
746
|
...l
|
|
726
747
|
}
|
|
727
748
|
),
|
|
728
|
-
|
|
729
|
-
f && /* @__PURE__ */ e(he, { as: "p", className:
|
|
749
|
+
t && /* @__PURE__ */ e(ie.Slot, { children: t }),
|
|
750
|
+
f && /* @__PURE__ */ e(he, { as: "p", className: V.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${h == null ? void 0 : h.length}/${l.maxLength}` : `${h == null ? void 0 : h.length}` })
|
|
730
751
|
]
|
|
731
752
|
}
|
|
732
753
|
);
|
|
733
|
-
}),
|
|
734
|
-
wrapper:
|
|
735
|
-
},
|
|
736
|
-
return /* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */ e(se.Trigger, { children:
|
|
754
|
+
}), xo = Z.memo(_n), Cn = "_wrapper_tmtz0_1", vn = {
|
|
755
|
+
wrapper: Cn
|
|
756
|
+
}, yn = x(function({ className: i, defaultOpen: o = !1, modal: t = !1, content: s, children: n, ...c }, a) {
|
|
757
|
+
return /* @__PURE__ */ v(se.Root, { defaultOpen: o, modal: t, children: [
|
|
758
|
+
/* @__PURE__ */ e(se.Trigger, { children: n }),
|
|
738
759
|
/* @__PURE__ */ e(
|
|
739
760
|
se.Content,
|
|
740
761
|
{
|
|
741
|
-
ref:
|
|
742
|
-
className:
|
|
762
|
+
ref: a,
|
|
763
|
+
className: S("overmap-popover", i, vn.wrapper),
|
|
743
764
|
...c,
|
|
744
|
-
children:
|
|
765
|
+
children: s(se.Close)
|
|
745
766
|
}
|
|
746
767
|
)
|
|
747
768
|
] });
|
|
748
|
-
}),
|
|
749
|
-
wrapper:
|
|
750
|
-
panelContent:
|
|
751
|
-
left:
|
|
752
|
-
right:
|
|
753
|
-
resizable:
|
|
754
|
-
resizeHandle:
|
|
755
|
-
panelMainContent:
|
|
756
|
-
},
|
|
757
|
-
children:
|
|
769
|
+
}), So = Z.memo(yn), wn = "_wrapper_1ssf2_1", xn = "_panelContent_1ssf2_6", Sn = "_left_1ssf2_14", Tn = "_right_1ssf2_18", Rn = "_resizable_1ssf2_23", bn = "_resizeHandle_1ssf2_28", $n = "_panelMainContent_1ssf2_48", z = {
|
|
770
|
+
wrapper: wn,
|
|
771
|
+
panelContent: xn,
|
|
772
|
+
left: Sn,
|
|
773
|
+
right: Tn,
|
|
774
|
+
resizable: Rn,
|
|
775
|
+
resizeHandle: bn,
|
|
776
|
+
panelMainContent: $n
|
|
777
|
+
}, Ie = 200, A = 150, To = C(function({
|
|
778
|
+
children: i,
|
|
758
779
|
showLeft: o,
|
|
759
|
-
leftPanel:
|
|
760
|
-
leftMinWidth:
|
|
761
|
-
showRight:
|
|
780
|
+
leftPanel: t,
|
|
781
|
+
leftMinWidth: s = Ie,
|
|
782
|
+
showRight: n,
|
|
762
783
|
rightPanel: c,
|
|
763
|
-
rightMinWidth:
|
|
784
|
+
rightMinWidth: a = Ie,
|
|
764
785
|
resizeable: u
|
|
765
786
|
}) {
|
|
766
|
-
const l = Y(null), d = Y(null), [p, m] =
|
|
767
|
-
(R, D,
|
|
787
|
+
const l = Y(null), d = Y(null), [p, m] = b(0), [f, h] = b(), g = Y(null), [_, T] = b(0), [y, $] = b(), N = w(
|
|
788
|
+
(R, D, E) => (k, $e, Pe, ge) => {
|
|
768
789
|
if (!l.current)
|
|
769
790
|
return;
|
|
770
791
|
const te = R + ge.width;
|
|
771
|
-
|
|
792
|
+
E(l.current.clientWidth - te), D(() => te);
|
|
772
793
|
},
|
|
773
794
|
[]
|
|
774
|
-
),
|
|
775
|
-
(R, D,
|
|
776
|
-
[
|
|
777
|
-
), me =
|
|
778
|
-
(R, D,
|
|
779
|
-
[
|
|
780
|
-
), U =
|
|
781
|
-
(R, D,
|
|
795
|
+
), H = w(
|
|
796
|
+
(R, D, E, k) => N(p, m, $)(R, D, E, k),
|
|
797
|
+
[N, p]
|
|
798
|
+
), me = w(
|
|
799
|
+
(R, D, E, k) => N(_, T, h)(R, D, E, k),
|
|
800
|
+
[N, _]
|
|
801
|
+
), U = w(
|
|
802
|
+
(R, D, E, k, $e, Pe, ge, te) => {
|
|
782
803
|
if (!l.current)
|
|
783
804
|
return;
|
|
784
805
|
let ne = R;
|
|
785
|
-
if (ne === 0 && (ne = D,
|
|
806
|
+
if (ne === 0 && (ne = D, E(ne)), Pe) {
|
|
786
807
|
const oe = l.current.clientWidth - ne;
|
|
787
|
-
te(oe),
|
|
808
|
+
te(oe), $e > oe && (ge(oe), k(l.current.clientWidth - oe));
|
|
788
809
|
}
|
|
789
810
|
},
|
|
790
811
|
[]
|
|
791
|
-
),
|
|
812
|
+
), Re = w(
|
|
792
813
|
() => U(
|
|
793
|
-
|
|
794
|
-
|
|
814
|
+
_,
|
|
815
|
+
a,
|
|
795
816
|
T,
|
|
796
|
-
|
|
817
|
+
$,
|
|
797
818
|
p,
|
|
798
819
|
o,
|
|
799
820
|
m,
|
|
800
821
|
h
|
|
801
822
|
),
|
|
802
|
-
[U, p,
|
|
803
|
-
), fe =
|
|
823
|
+
[U, p, a, _, o]
|
|
824
|
+
), fe = w(
|
|
804
825
|
() => U(
|
|
805
826
|
p,
|
|
806
|
-
|
|
827
|
+
s,
|
|
807
828
|
m,
|
|
808
829
|
h,
|
|
809
|
-
|
|
810
|
-
|
|
830
|
+
_,
|
|
831
|
+
n,
|
|
811
832
|
T,
|
|
812
|
-
|
|
833
|
+
$
|
|
813
834
|
),
|
|
814
|
-
[U,
|
|
815
|
-
), q =
|
|
835
|
+
[U, s, p, _, n]
|
|
836
|
+
), q = w(
|
|
816
837
|
(R, D) => {
|
|
817
838
|
l.current && R && D(l.current.clientWidth);
|
|
818
839
|
},
|
|
819
840
|
[]
|
|
820
|
-
),
|
|
841
|
+
), Fe = w(
|
|
821
842
|
() => q(o, h),
|
|
822
843
|
[q, o]
|
|
823
|
-
),
|
|
824
|
-
() => q(
|
|
825
|
-
[q,
|
|
826
|
-
),
|
|
827
|
-
var R, D,
|
|
828
|
-
l.current && (h(l.current.clientWidth - (((R = g.current) == null ? void 0 : R.clientWidth) || 0)),
|
|
844
|
+
), Xe = w(
|
|
845
|
+
() => q(n, $),
|
|
846
|
+
[q, n]
|
|
847
|
+
), be = w(() => {
|
|
848
|
+
var R, D, E, k;
|
|
849
|
+
l.current && (h(l.current.clientWidth - (((R = g.current) == null ? void 0 : R.clientWidth) || 0)), $(l.current.clientWidth - (((D = d.current) == null ? void 0 : D.clientWidth) || 0)), m(((E = d.current) == null ? void 0 : E.clientWidth) || 0), T(((k = g.current) == null ? void 0 : k.clientWidth) || 0));
|
|
829
850
|
}, []);
|
|
830
851
|
ee(() => {
|
|
831
852
|
if (!l.current)
|
|
832
853
|
return;
|
|
833
|
-
const R = new ResizeObserver(
|
|
854
|
+
const R = new ResizeObserver(be);
|
|
834
855
|
return R.observe(l.current), () => {
|
|
835
856
|
R.disconnect();
|
|
836
857
|
};
|
|
837
|
-
}, [
|
|
838
|
-
const
|
|
858
|
+
}, [be]);
|
|
859
|
+
const Ue = j(() => ({
|
|
839
860
|
entering: {
|
|
840
861
|
transform: `translateX(-${p}px)`,
|
|
841
862
|
marginRight: `-${p}px`,
|
|
@@ -859,10 +880,10 @@ const gt = {
|
|
|
859
880
|
},
|
|
860
881
|
exited: {},
|
|
861
882
|
unmounted: {}
|
|
862
|
-
}), [p]),
|
|
883
|
+
}), [p]), qe = j(() => ({
|
|
863
884
|
entering: {
|
|
864
|
-
transform: `translateX(${
|
|
865
|
-
marginLeft: `${-
|
|
885
|
+
transform: `translateX(${_}px)`,
|
|
886
|
+
marginLeft: `${-_}px`,
|
|
866
887
|
transitionProperty: "transform, margin-left",
|
|
867
888
|
transitionDuration: `${A}ms`,
|
|
868
889
|
transitionTimingFunction: "linear"
|
|
@@ -875,20 +896,20 @@ const gt = {
|
|
|
875
896
|
transitionTimingFunction: "linear"
|
|
876
897
|
},
|
|
877
898
|
exiting: {
|
|
878
|
-
transform: `translateX(${
|
|
879
|
-
marginLeft: `${-
|
|
899
|
+
transform: `translateX(${_}px)`,
|
|
900
|
+
marginLeft: `${-_}px`,
|
|
880
901
|
transitionProperty: "transform, margin-left",
|
|
881
902
|
transitionDuration: `${A}ms`,
|
|
882
903
|
transitionTimingFunction: "linear"
|
|
883
904
|
},
|
|
884
905
|
exited: {},
|
|
885
906
|
unmounted: {}
|
|
886
|
-
}), [
|
|
887
|
-
return /* @__PURE__ */
|
|
888
|
-
|
|
907
|
+
}), [_]);
|
|
908
|
+
return /* @__PURE__ */ v(
|
|
909
|
+
P,
|
|
889
910
|
{
|
|
890
|
-
className:
|
|
891
|
-
style: { minWidth: `${
|
|
911
|
+
className: z.wrapper,
|
|
912
|
+
style: { minWidth: `${s + a}px` },
|
|
892
913
|
ref: l,
|
|
893
914
|
width: "100%",
|
|
894
915
|
height: "100%",
|
|
@@ -904,13 +925,13 @@ const gt = {
|
|
|
904
925
|
in: o,
|
|
905
926
|
unmountOnExit: !0,
|
|
906
927
|
onEntering: fe,
|
|
907
|
-
onExited:
|
|
928
|
+
onExited: Xe,
|
|
908
929
|
children: (R) => /* @__PURE__ */ e(
|
|
909
930
|
W,
|
|
910
931
|
{
|
|
911
932
|
ref: d,
|
|
912
|
-
className:
|
|
913
|
-
style:
|
|
933
|
+
className: S(z.panelContent, z.left),
|
|
934
|
+
style: Ue[R],
|
|
914
935
|
width: "auto",
|
|
915
936
|
height: "100%",
|
|
916
937
|
m: "0",
|
|
@@ -918,42 +939,42 @@ const gt = {
|
|
|
918
939
|
children: /* @__PURE__ */ e(
|
|
919
940
|
de,
|
|
920
941
|
{
|
|
921
|
-
className:
|
|
942
|
+
className: z.resizable,
|
|
922
943
|
size: {
|
|
923
944
|
width: p,
|
|
924
945
|
height: "100%"
|
|
925
946
|
},
|
|
926
|
-
onResizeStop:
|
|
947
|
+
onResizeStop: H,
|
|
927
948
|
enable: { right: (u == null ? void 0 : u.left) !== void 0 ? u.left : !0 },
|
|
928
|
-
minWidth:
|
|
949
|
+
minWidth: s,
|
|
929
950
|
maxWidth: f,
|
|
930
|
-
handleClasses: { right:
|
|
951
|
+
handleClasses: { right: S(z.resizeHandle, z.left) },
|
|
931
952
|
handleComponent: {
|
|
932
953
|
right: /* @__PURE__ */ e(ue, { height: "14px", width: "14px" })
|
|
933
954
|
},
|
|
934
|
-
children:
|
|
955
|
+
children: t
|
|
935
956
|
}
|
|
936
957
|
)
|
|
937
958
|
}
|
|
938
959
|
)
|
|
939
960
|
}
|
|
940
961
|
),
|
|
941
|
-
/* @__PURE__ */ e("div", { className:
|
|
962
|
+
/* @__PURE__ */ e("div", { className: z.panelMainContent, children: i }),
|
|
942
963
|
/* @__PURE__ */ e(
|
|
943
964
|
Ce,
|
|
944
965
|
{
|
|
945
966
|
nodeRef: g,
|
|
946
|
-
timeout:
|
|
947
|
-
in:
|
|
967
|
+
timeout: n ? 0 : A,
|
|
968
|
+
in: n,
|
|
948
969
|
unmountOnExit: !0,
|
|
949
|
-
onEntering:
|
|
950
|
-
onExited:
|
|
970
|
+
onEntering: Re,
|
|
971
|
+
onExited: Fe,
|
|
951
972
|
children: (R) => /* @__PURE__ */ e(
|
|
952
973
|
W,
|
|
953
974
|
{
|
|
954
975
|
ref: g,
|
|
955
|
-
className:
|
|
956
|
-
style:
|
|
976
|
+
className: S(z.panelContent, z.right),
|
|
977
|
+
style: qe[R],
|
|
957
978
|
width: "auto",
|
|
958
979
|
height: "100%",
|
|
959
980
|
m: "0",
|
|
@@ -961,13 +982,13 @@ const gt = {
|
|
|
961
982
|
children: /* @__PURE__ */ e(
|
|
962
983
|
de,
|
|
963
984
|
{
|
|
964
|
-
className:
|
|
965
|
-
size: { width:
|
|
985
|
+
className: z.resizable,
|
|
986
|
+
size: { width: _, height: "100%" },
|
|
966
987
|
onResizeStop: me,
|
|
967
988
|
enable: { left: (u == null ? void 0 : u.right) !== void 0 ? u.right : !0 },
|
|
968
|
-
minWidth:
|
|
969
|
-
maxWidth:
|
|
970
|
-
handleClasses: { left:
|
|
989
|
+
minWidth: a,
|
|
990
|
+
maxWidth: y,
|
|
991
|
+
handleClasses: { left: S(z.resizeHandle, z.right) },
|
|
971
992
|
handleComponent: { left: /* @__PURE__ */ e(ue, { height: "14px", width: "14px" }) },
|
|
972
993
|
children: c
|
|
973
994
|
}
|
|
@@ -979,39 +1000,39 @@ const gt = {
|
|
|
979
1000
|
]
|
|
980
1001
|
}
|
|
981
1002
|
);
|
|
982
|
-
}),
|
|
983
|
-
charCount:
|
|
984
|
-
},
|
|
985
|
-
const l = O(
|
|
986
|
-
if (
|
|
987
|
-
let h =
|
|
988
|
-
return
|
|
1003
|
+
}), Pn = "_charCount_17uut_1", On = {
|
|
1004
|
+
charCount: Pn
|
|
1005
|
+
}, Dn = x(function({ className: i, showInputLength: o, inputLengthTemplate: t, value: s, severity: n = "primary", resize: c, ...a }, u) {
|
|
1006
|
+
const l = O(n), d = O("info"), p = o || o === void 0 && (a.maxLength !== void 0 || a.minLength !== void 0), m = s !== void 0 ? s.toString() : "", f = j(() => {
|
|
1007
|
+
if (t) {
|
|
1008
|
+
let h = t.replace("{current}", m.length.toString());
|
|
1009
|
+
return a.minLength !== void 0 && (h = h.replace("{min}", a.minLength.toString())), a.maxLength !== void 0 && (h = h.replace("{max}", a.maxLength.toString())), h;
|
|
989
1010
|
}
|
|
990
1011
|
return m.length;
|
|
991
|
-
}, [
|
|
992
|
-
return /* @__PURE__ */
|
|
1012
|
+
}, [t, a.maxLength, a.minLength, m.length]);
|
|
1013
|
+
return /* @__PURE__ */ v(pe, { children: [
|
|
993
1014
|
/* @__PURE__ */ e(
|
|
994
|
-
|
|
1015
|
+
rt,
|
|
995
1016
|
{
|
|
996
|
-
className:
|
|
1017
|
+
className: S("overmap-textarea", i),
|
|
997
1018
|
style: { resize: c },
|
|
998
1019
|
ref: u,
|
|
999
|
-
value:
|
|
1020
|
+
value: s,
|
|
1000
1021
|
color: l,
|
|
1001
|
-
...
|
|
1022
|
+
...a
|
|
1002
1023
|
}
|
|
1003
1024
|
),
|
|
1004
|
-
p && /* @__PURE__ */ e(he, { as: "p", className:
|
|
1025
|
+
p && /* @__PURE__ */ e(he, { as: "p", className: On.charCount, color: d, align: "right", children: f })
|
|
1005
1026
|
] });
|
|
1006
|
-
}),
|
|
1027
|
+
}), Ro = C(Dn), zn = x(function({
|
|
1007
1028
|
// ToggleGroup Primitive Props
|
|
1008
|
-
loop:
|
|
1029
|
+
loop: i,
|
|
1009
1030
|
type: o,
|
|
1010
|
-
rovingFocus:
|
|
1011
|
-
value:
|
|
1012
|
-
onValueChange:
|
|
1031
|
+
rovingFocus: t,
|
|
1032
|
+
value: s,
|
|
1033
|
+
onValueChange: n,
|
|
1013
1034
|
defaultValue: c,
|
|
1014
|
-
disabled:
|
|
1035
|
+
disabled: a,
|
|
1015
1036
|
items: u,
|
|
1016
1037
|
// ButtonGroup Props
|
|
1017
1038
|
className: l,
|
|
@@ -1019,76 +1040,109 @@ const gt = {
|
|
|
1019
1040
|
...p
|
|
1020
1041
|
}, m) {
|
|
1021
1042
|
return /* @__PURE__ */ e(
|
|
1022
|
-
|
|
1043
|
+
dt,
|
|
1023
1044
|
{
|
|
1024
1045
|
type: o,
|
|
1025
|
-
className:
|
|
1046
|
+
className: S("overmap-toggle-group", l),
|
|
1026
1047
|
ref: m,
|
|
1027
|
-
value:
|
|
1028
|
-
onValueChange:
|
|
1029
|
-
disabled:
|
|
1048
|
+
value: s,
|
|
1049
|
+
onValueChange: n,
|
|
1050
|
+
disabled: a,
|
|
1030
1051
|
orientation: d === "column" ? "vertical" : "horizontal",
|
|
1031
|
-
loop:
|
|
1032
|
-
rovingFocus:
|
|
1052
|
+
loop: i,
|
|
1053
|
+
rovingFocus: t,
|
|
1033
1054
|
defaultValue: c,
|
|
1034
1055
|
asChild: !0,
|
|
1035
|
-
children: /* @__PURE__ */ e(
|
|
1036
|
-
|
|
1056
|
+
children: /* @__PURE__ */ e(We, { direction: d, ...p, children: u.map(({ children: f, ...h }) => /* @__PURE__ */ ke(ht, { asChild: !0, ...h, key: h.value }, /* @__PURE__ */ e(
|
|
1057
|
+
Me,
|
|
1037
1058
|
{
|
|
1038
|
-
className:
|
|
1059
|
+
className: S("overmap-toggle-group-button"),
|
|
1039
1060
|
"aria-label": h.value,
|
|
1040
|
-
variant: h.value ===
|
|
1061
|
+
variant: h.value === s ? "solid" : "soft",
|
|
1041
1062
|
children: f
|
|
1042
1063
|
}
|
|
1043
1064
|
))) })
|
|
1044
1065
|
}
|
|
1045
1066
|
);
|
|
1046
|
-
}),
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1067
|
+
}), bo = C(zn), In = {
|
|
1068
|
+
default: "_default_xqvoc_1"
|
|
1069
|
+
}, Nn = C(
|
|
1070
|
+
x(({ className: r, minContentGap: i = "2", children: o, ...t }, s) => /* @__PURE__ */ e(
|
|
1071
|
+
pt,
|
|
1072
|
+
{
|
|
1073
|
+
className: S(r, "overmap-toolbar", In.default),
|
|
1074
|
+
ref: s,
|
|
1075
|
+
asChild: !0,
|
|
1076
|
+
...t,
|
|
1077
|
+
children: /* @__PURE__ */ e(Te, { grow: "1", width: "100%", height: "max-content", align: "center", gap: i, wrap: "nowrap", children: o })
|
|
1078
|
+
}
|
|
1079
|
+
))
|
|
1080
|
+
), En = C(
|
|
1081
|
+
x(({ children: r, gap: i = "2" }, o) => /* @__PURE__ */ e(Te, { ref: o, grow: "1", width: "max-content", height: "100%", align: "center", gap: i, children: r }))
|
|
1082
|
+
), kn = C(
|
|
1083
|
+
x(({ children: r, gap: i }, o) => /* @__PURE__ */ e(
|
|
1084
|
+
Te,
|
|
1085
|
+
{
|
|
1086
|
+
ref: o,
|
|
1087
|
+
grow: "1",
|
|
1088
|
+
width: "max-content",
|
|
1089
|
+
direction: "row-reverse",
|
|
1090
|
+
height: "100%",
|
|
1091
|
+
align: "center",
|
|
1092
|
+
gap: i || "2",
|
|
1093
|
+
children: r
|
|
1094
|
+
}
|
|
1095
|
+
))
|
|
1096
|
+
), $o = {
|
|
1097
|
+
Root: Nn,
|
|
1098
|
+
LeftContent: En,
|
|
1099
|
+
RightContent: kn
|
|
1100
|
+
}, An = "_ToastViewport_1i6bp_1", Bn = "_actionButton_1i6bp_20", Ln = "_ToastRoot_1i6bp_24", Mn = "_slideIn_1i6bp_1", Wn = "_swipeOut_1i6bp_1", ye = {
|
|
1101
|
+
ToastViewport: An,
|
|
1102
|
+
actionButton: Bn,
|
|
1103
|
+
ToastRoot: Ln,
|
|
1104
|
+
slideIn: Mn,
|
|
1105
|
+
swipeOut: Wn
|
|
1106
|
+
}, jn = x(function({ title: i, description: o, icon: t, severity: s = "primary", size: n, onClose: c, sensitivity: a, action: u, ...l }, d) {
|
|
1107
|
+
const [p, m] = b(!0), f = O(s), h = w(
|
|
1054
1108
|
(g) => {
|
|
1055
1109
|
!g && c && c(), m(g);
|
|
1056
1110
|
},
|
|
1057
1111
|
[c]
|
|
1058
1112
|
);
|
|
1059
|
-
return /* @__PURE__ */ e(K.Root, { asChild: !0, ref: d, ...l, open: p, type:
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */ e(ae.Icon, { children:
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */ e(K.Title, { asChild: !0, children: /* @__PURE__ */ e(ae.Text, { weight: "medium", children:
|
|
1065
|
-
/* @__PURE__ */ e(K.Description, { asChild: !0, children: /* @__PURE__ */ e(ae.Text, {
|
|
1113
|
+
return /* @__PURE__ */ e(K.Root, { asChild: !0, ref: d, ...l, open: p, type: a, onOpenChange: h, children: /* @__PURE__ */ e(ae.Root, { className: ye.ToastRoot, variant: "surface", color: f, size: n, children: /* @__PURE__ */ v(P, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
1114
|
+
/* @__PURE__ */ v(P, { align: "center", gap: "3", children: [
|
|
1115
|
+
/* @__PURE__ */ e(ae.Icon, { children: t }),
|
|
1116
|
+
/* @__PURE__ */ v(P, { direction: "column", gap: "2", children: [
|
|
1117
|
+
/* @__PURE__ */ v(P, { direction: "column", gap: "0", children: [
|
|
1118
|
+
/* @__PURE__ */ e(K.Title, { asChild: !0, children: /* @__PURE__ */ e(ae.Text, { size: "3", weight: "medium", children: i }) }),
|
|
1119
|
+
/* @__PURE__ */ e(K.Description, { asChild: !0, children: /* @__PURE__ */ e(ae.Text, { children: o }) })
|
|
1066
1120
|
] }),
|
|
1067
|
-
u && /* @__PURE__ */ e(K.Action, { className:
|
|
1121
|
+
u && /* @__PURE__ */ e(K.Action, { className: ye.actionButton, altText: u.altText, asChild: !0, children: u.content })
|
|
1068
1122
|
] })
|
|
1069
1123
|
] }),
|
|
1070
|
-
/* @__PURE__ */ e(K.Close, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1124
|
+
/* @__PURE__ */ e(K.Close, { asChild: !0, children: /* @__PURE__ */ e(Me, { "aria-label": "Close", variant: "ghost", severity: s, children: /* @__PURE__ */ e(Qe, {}) }) })
|
|
1071
1125
|
] }) }) });
|
|
1072
|
-
}),
|
|
1073
|
-
const
|
|
1074
|
-
if (!
|
|
1126
|
+
}), Hn = C(jn), Ve = we({}), Po = () => {
|
|
1127
|
+
const r = xe(Ve);
|
|
1128
|
+
if (!r)
|
|
1075
1129
|
throw new Error("useToast must be used within a ToastProvider");
|
|
1076
|
-
return
|
|
1077
|
-
},
|
|
1078
|
-
if (
|
|
1079
|
-
return
|
|
1080
|
-
const
|
|
1081
|
-
return (
|
|
1130
|
+
return r;
|
|
1131
|
+
}, Gn = 240 / 60, Ne = 5e3, Vn = (r) => {
|
|
1132
|
+
if (r.duration && r.duration >= Ne)
|
|
1133
|
+
return r.duration;
|
|
1134
|
+
const i = r.severity === "danger" ? 1.5 : 1, o = r.description.split(" ").length + r.title.split(" ").length;
|
|
1135
|
+
return (Ne + o / Gn) * i;
|
|
1082
1136
|
};
|
|
1083
|
-
let
|
|
1084
|
-
const
|
|
1085
|
-
children:
|
|
1137
|
+
let Fn;
|
|
1138
|
+
const Oo = C(function({
|
|
1139
|
+
children: i,
|
|
1086
1140
|
// Use this class to change where the viewport for the toasts should be
|
|
1087
1141
|
className: o,
|
|
1088
|
-
hotkey:
|
|
1089
|
-
...
|
|
1142
|
+
hotkey: t,
|
|
1143
|
+
...s
|
|
1090
1144
|
}) {
|
|
1091
|
-
const [
|
|
1145
|
+
const [n, c] = b([]), a = w((l, d, p) => {
|
|
1092
1146
|
c((m) => {
|
|
1093
1147
|
const f = m.find((h) => h.id === l);
|
|
1094
1148
|
return f && d === 0 && clearTimeout(f.timeout), m.filter((h) => h.id !== l);
|
|
@@ -1096,143 +1150,145 @@ const _o = w(function({
|
|
|
1096
1150
|
}, []), u = j(() => {
|
|
1097
1151
|
let l = 0;
|
|
1098
1152
|
const d = (g) => {
|
|
1099
|
-
const
|
|
1153
|
+
const _ = Vn(g), T = l.toString();
|
|
1100
1154
|
l += 1;
|
|
1101
|
-
const
|
|
1102
|
-
c((
|
|
1155
|
+
const y = setTimeout(() => a(T, 1, g.onClose), _);
|
|
1156
|
+
c(($) => [...$, { ...g, timeout: y, duration: _, id: T }]);
|
|
1103
1157
|
}, p = (g) => d({ ...g, severity: "primary" }), m = (g) => d({ ...g, severity: "success" }), f = (g) => d({ ...g, severity: "danger" }), h = (g) => d({ ...g, severity: "info" });
|
|
1104
|
-
return
|
|
1158
|
+
return Fn = d, {
|
|
1105
1159
|
showToast: d,
|
|
1106
1160
|
showPrimary: p,
|
|
1107
1161
|
showSuccess: m,
|
|
1108
1162
|
showError: f,
|
|
1109
1163
|
showInfo: h
|
|
1110
1164
|
};
|
|
1111
|
-
}, [
|
|
1165
|
+
}, [a]);
|
|
1112
1166
|
return ee(() => () => {
|
|
1113
|
-
for (const { timeout: l } of
|
|
1167
|
+
for (const { timeout: l } of n)
|
|
1114
1168
|
clearTimeout(l);
|
|
1115
|
-
}, []), /* @__PURE__ */ e(
|
|
1116
|
-
|
|
1117
|
-
/* @__PURE__ */ e(
|
|
1118
|
-
|
|
1169
|
+
}, []), /* @__PURE__ */ e(Ve.Provider, { value: u, children: /* @__PURE__ */ v(mt, { ...s, children: [
|
|
1170
|
+
i,
|
|
1171
|
+
/* @__PURE__ */ e(ft, { className: S(o, ye.ToastViewport), hotkey: t }),
|
|
1172
|
+
n.map(({ id: l, onClose: d, ...p }) => /* @__PURE__ */ e(Hn, { ...p, onClose: () => a(l, 0, d) }, l))
|
|
1119
1173
|
] }) });
|
|
1120
|
-
}),
|
|
1121
|
-
noWrap:
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1174
|
+
}), Xn = "_noWrap_1wpa5_1", Un = {
|
|
1175
|
+
noWrap: Xn
|
|
1176
|
+
}, Do = C(
|
|
1177
|
+
x(({ className: r, noWrap: i, severity: o, as: t, ...s }, n) => {
|
|
1124
1178
|
const c = O(o);
|
|
1125
1179
|
return /* @__PURE__ */ e(
|
|
1126
1180
|
he,
|
|
1127
1181
|
{
|
|
1128
|
-
ref:
|
|
1129
|
-
as:
|
|
1130
|
-
className:
|
|
1182
|
+
ref: n,
|
|
1183
|
+
as: t,
|
|
1184
|
+
className: S(r, { [Un.noWrap]: i }),
|
|
1131
1185
|
color: c,
|
|
1132
|
-
...
|
|
1186
|
+
...s
|
|
1133
1187
|
}
|
|
1134
1188
|
);
|
|
1135
1189
|
})
|
|
1136
1190
|
);
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1139
|
-
const { panelBackground: o = "solid", radius:
|
|
1140
|
-
return /* @__PURE__ */ e(
|
|
1191
|
+
const zo = C(
|
|
1192
|
+
x((r, i) => {
|
|
1193
|
+
const { panelBackground: o = "solid", radius: t = "full", ...s } = r;
|
|
1194
|
+
return /* @__PURE__ */ e(it, { panelBackground: o, radius: t, ref: i, ...s });
|
|
1141
1195
|
})
|
|
1142
|
-
),
|
|
1196
|
+
), qn = {
|
|
1143
1197
|
1: "max-content",
|
|
1144
1198
|
2: "max-content",
|
|
1145
1199
|
3: "max-content",
|
|
1146
1200
|
4: "100%"
|
|
1147
|
-
},
|
|
1148
|
-
const l = L(c,
|
|
1149
|
-
return /* @__PURE__ */
|
|
1150
|
-
|
|
1201
|
+
}, Kn = x(function({ severity: i = "info", weight: o = "light", gap: t = "1", text: s, orientation: n = "horizontal", size: c, ...a }, u) {
|
|
1202
|
+
const l = L(c, qn), d = O(i);
|
|
1203
|
+
return /* @__PURE__ */ v(
|
|
1204
|
+
P,
|
|
1151
1205
|
{
|
|
1152
1206
|
ref: u,
|
|
1153
|
-
width:
|
|
1154
|
-
height:
|
|
1155
|
-
direction:
|
|
1207
|
+
width: n === "horizontal" ? l : "max-content",
|
|
1208
|
+
height: n === "vertical" ? l : "max-content",
|
|
1209
|
+
direction: n === "vertical" ? "column" : "row",
|
|
1156
1210
|
align: "center",
|
|
1157
|
-
gap:
|
|
1211
|
+
gap: t,
|
|
1158
1212
|
children: [
|
|
1159
|
-
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1161
|
-
/* @__PURE__ */ e(he, { as: "span", size: "1", weight: o, color: d, children:
|
|
1162
|
-
/* @__PURE__ */ e(
|
|
1213
|
+
/* @__PURE__ */ e(Oe, { size: c, orientation: n, color: d, ...a }),
|
|
1214
|
+
s && /* @__PURE__ */ v(pe, { children: [
|
|
1215
|
+
/* @__PURE__ */ e(he, { as: "span", size: "1", weight: o, color: d, children: s }),
|
|
1216
|
+
/* @__PURE__ */ e(Oe, { size: c, orientation: n, color: d, ...a })
|
|
1163
1217
|
] })
|
|
1164
1218
|
]
|
|
1165
1219
|
}
|
|
1166
1220
|
);
|
|
1167
|
-
}),
|
|
1221
|
+
}), Io = C(Kn);
|
|
1168
1222
|
export {
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1223
|
+
Bo as AccessibleIcon,
|
|
1224
|
+
Lt as AlertDialog,
|
|
1225
|
+
He as AlertDialogContent,
|
|
1226
|
+
po as AlertDialogProvider,
|
|
1227
|
+
Lo as AspectRatio,
|
|
1228
|
+
Mo as Avatar,
|
|
1229
|
+
co as Badge,
|
|
1230
|
+
Wo as Blockquote,
|
|
1231
|
+
jo as Box,
|
|
1232
|
+
ve as Button,
|
|
1233
|
+
We as ButtonGroup,
|
|
1234
|
+
uo as ButtonList,
|
|
1235
|
+
Ho as Callout,
|
|
1236
|
+
Go as Card,
|
|
1237
|
+
Vo as Checkbox,
|
|
1238
|
+
Fo as Code,
|
|
1239
|
+
Xo as Container,
|
|
1240
|
+
Uo as ContextMenu,
|
|
1241
|
+
zo as DefaultTheme,
|
|
1242
|
+
ho as Dialog,
|
|
1243
|
+
fo as DropdownMenu,
|
|
1244
|
+
qo as Em,
|
|
1245
|
+
Te as Flex,
|
|
1246
|
+
Ko as Grid,
|
|
1247
|
+
Qo as Heading,
|
|
1248
|
+
Yo as HoverCard,
|
|
1249
|
+
go as HoverUtility,
|
|
1250
|
+
Me as IconButton,
|
|
1251
|
+
xo as Input,
|
|
1252
|
+
Jo as Inset,
|
|
1253
|
+
Zo as Kbd,
|
|
1254
|
+
To as LeftAndRightPanels,
|
|
1255
|
+
er as Link,
|
|
1256
|
+
Co as MultiSelect,
|
|
1257
|
+
So as Popover,
|
|
1258
|
+
tr as Portal,
|
|
1259
|
+
nr as Quote,
|
|
1260
|
+
or as RadioGroup,
|
|
1261
|
+
Nn as Root,
|
|
1262
|
+
rr as ScrollArea,
|
|
1263
|
+
ir as Section,
|
|
1264
|
+
_o as Select,
|
|
1265
|
+
Io as Separator,
|
|
1266
|
+
yo as Sidebar,
|
|
1267
|
+
wo as SlideOut,
|
|
1268
|
+
sr as Slider,
|
|
1269
|
+
ar as Slot,
|
|
1270
|
+
cr as Strong,
|
|
1271
|
+
vo as Switch,
|
|
1272
|
+
lr as Table,
|
|
1273
|
+
ur as Tabs,
|
|
1274
|
+
Do as Text,
|
|
1275
|
+
Ro as TextArea,
|
|
1276
|
+
dr as TextField,
|
|
1277
|
+
hr as Theme,
|
|
1278
|
+
Hn as Toast,
|
|
1279
|
+
Ve as ToastContext,
|
|
1280
|
+
Oo as ToastProvider,
|
|
1281
|
+
bo as ToggleGroup,
|
|
1282
|
+
$o as Toolbar,
|
|
1283
|
+
pr as Tooltip,
|
|
1284
|
+
mr as VisuallyHidden,
|
|
1285
|
+
lo as divButtonProps,
|
|
1286
|
+
Fn as unsafeShowToast,
|
|
1287
|
+
fr as updateThemeAppearanceClass,
|
|
1288
|
+
Wt as useAlertDialog,
|
|
1289
|
+
mo as useDiscardAlertDialog,
|
|
1234
1290
|
O as useSeverityColor,
|
|
1235
|
-
|
|
1236
|
-
|
|
1291
|
+
gr as useThemeContext,
|
|
1292
|
+
Po as useToast
|
|
1237
1293
|
};
|
|
1238
1294
|
//# sourceMappingURL=blocks.js.map
|