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