@overmap-ai/blocks 1.0.1 → 1.0.2
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/Buttons/typings.d.ts +2 -1
- package/dist/Spinner/Spinner.d.ts +2 -0
- package/dist/Table/index.d.ts +0 -1
- package/dist/Table/typings.d.ts +1 -0
- package/dist/blocks.js +1455 -1698
- package/dist/blocks.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Table/constants.d.ts +0 -151
package/dist/blocks.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export * from "@radix-ui/colors";
|
|
2
|
-
import { Cross1Icon as nn, CheckIcon as
|
|
2
|
+
import { Cross1Icon as nn, CheckIcon as St, DragHandleDots2Icon as Je, Cross2Icon as $t, DividerHorizontalIcon as on, CaretSortIcon as rn, ArrowUpIcon as sn, ArrowDownIcon as an, MagnifyingGlassIcon as cn, MixerHorizontalIcon as ln, Pencil1Icon as dn, TrashIcon as un, DoubleArrowLeftIcon as hn, ChevronLeftIcon as pn, ChevronRightIcon as fn, DoubleArrowRightIcon as mn } from "@radix-ui/react-icons";
|
|
3
3
|
export * from "@radix-ui/react-icons";
|
|
4
|
-
import { useThemeContext as
|
|
5
|
-
import { AccessibleIcon as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import
|
|
8
|
-
import { useMediaQuery as
|
|
4
|
+
import { useThemeContext as gn, Badge as Cn, Flex as D, Box as G, Link as vn, Text as Re, Button as _n, IconButton as Pt, Card as bn, Inset as He, Dialog as xe, AlertDialog as fe, Separator as ft, DropdownMenu as ee, TextField as ie, Select as se, Checkbox as wn, Switch as yn, Portal as xn, Popover as je, TextArea as Sn, Callout as Fe, Tooltip as $n, Theme as Pn, TableRow as kn } from "@radix-ui/themes";
|
|
5
|
+
import { AccessibleIcon as Ks, AspectRatio as qs, Avatar as Xs, Blockquote as Js, Box as Qs, Callout as Ys, Card as Zs, Code as ea, Container as ta, ContextMenu as na, Em as oa, Grid as ra, Heading as ia, HoverCard as sa, Inset as aa, Kbd as ca, Link as la, Portal as da, Quote as ua, RadioGroup as ha, ScrollArea as pa, Section as fa, Slider as ma, Slot as ga, Strong as Ca, Tabs as va, TextField as _a, Theme as ba, VisuallyHidden as wa, updateThemeAppearanceClass as ya, useThemeContext as xa } from "@radix-ui/themes";
|
|
6
|
+
import { jsx as i, jsxs as v, Fragment as J } from "react/jsx-runtime";
|
|
7
|
+
import W, { useMemo as R, useState as k, useLayoutEffect as ct, useCallback as x, useEffect as M, Children as me, isValidElement as Oe, forwardRef as S, memo as $, createContext as Se, useContext as ze, cloneElement as Ae, createElement as F, useRef as H, useReducer as Nn, Fragment as Tn } from "react";
|
|
8
|
+
import { useMediaQuery as Te } from "react-responsive";
|
|
9
9
|
import * as Ve from "@radix-ui/react-dialog";
|
|
10
|
-
import { Resizable as
|
|
11
|
-
import { DismissableLayer as
|
|
12
|
-
import { CSSTransition as In, Transition as
|
|
13
|
-
import { Root as
|
|
14
|
-
import { Root as
|
|
15
|
-
import * as
|
|
16
|
-
import { ToastProvider as
|
|
10
|
+
import { Resizable as Qe } from "re-resizable";
|
|
11
|
+
import { DismissableLayer as Dn } from "@radix-ui/react-dismissable-layer";
|
|
12
|
+
import { CSSTransition as In, Transition as mt } from "react-transition-group";
|
|
13
|
+
import { Root as On, Item as Rn } from "@radix-ui/react-toggle-group";
|
|
14
|
+
import { Root as zn } from "@radix-ui/react-toolbar";
|
|
15
|
+
import * as De from "@radix-ui/react-toast";
|
|
16
|
+
import { ToastProvider as An, ToastViewport as En } from "@radix-ui/react-toast";
|
|
17
17
|
import { flushSync as Bn } from "react-dom";
|
|
18
|
-
import { HeaderCell as
|
|
18
|
+
import { HeaderCell as Mn, Table as Ln, Header as Wn, HeaderRow as Hn, Body as jn, Cell as gt, Row as Fn } from "@table-library/react-table-library/table";
|
|
19
19
|
import { useTheme as Vn } from "@table-library/react-table-library/theme";
|
|
20
|
-
import { useSort as
|
|
21
|
-
import { useRowSelect as Kn, SelectTypes as Ct, SelectClickTypes as
|
|
22
|
-
import { usePagination as
|
|
23
|
-
import { isMobile as
|
|
24
|
-
function
|
|
25
|
-
return
|
|
20
|
+
import { useSort as Un, HeaderCellSort as Gn } from "@table-library/react-table-library/sort";
|
|
21
|
+
import { useRowSelect as Kn, SelectTypes as Ct, SelectClickTypes as qn, HeaderCellSelect as Xn, CellSelect as Jn } from "@table-library/react-table-library/select";
|
|
22
|
+
import { usePagination as Qn } from "@table-library/react-table-library/pagination";
|
|
23
|
+
import { isMobile as Ue } from "react-device-detect";
|
|
24
|
+
function Yn(e) {
|
|
25
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
26
26
|
}
|
|
27
27
|
var kt = { exports: {} };
|
|
28
28
|
/*!
|
|
@@ -30,337 +30,347 @@ var kt = { exports: {} };
|
|
|
30
30
|
Licensed under the MIT License (MIT), see
|
|
31
31
|
http://jedwatson.github.io/classnames
|
|
32
32
|
*/
|
|
33
|
-
(function(
|
|
33
|
+
(function(e) {
|
|
34
34
|
(function() {
|
|
35
|
-
var
|
|
35
|
+
var o = {}.hasOwnProperty;
|
|
36
36
|
function n() {
|
|
37
|
-
for (var
|
|
38
|
-
var r = arguments[
|
|
37
|
+
for (var t = [], s = 0; s < arguments.length; s++) {
|
|
38
|
+
var r = arguments[s];
|
|
39
39
|
if (r) {
|
|
40
|
-
var
|
|
41
|
-
if (
|
|
42
|
-
|
|
40
|
+
var c = typeof r;
|
|
41
|
+
if (c === "string" || c === "number")
|
|
42
|
+
t.push(r);
|
|
43
43
|
else if (Array.isArray(r)) {
|
|
44
44
|
if (r.length) {
|
|
45
|
-
var
|
|
46
|
-
|
|
45
|
+
var a = n.apply(null, r);
|
|
46
|
+
a && t.push(a);
|
|
47
47
|
}
|
|
48
|
-
} else if (
|
|
48
|
+
} else if (c === "object") {
|
|
49
49
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]")) {
|
|
50
|
-
|
|
50
|
+
t.push(r.toString());
|
|
51
51
|
continue;
|
|
52
52
|
}
|
|
53
53
|
for (var d in r)
|
|
54
|
-
|
|
54
|
+
o.call(r, d) && r[d] && t.push(d);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return
|
|
58
|
+
return t.join(" ");
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
61
61
|
})();
|
|
62
62
|
})(kt);
|
|
63
|
-
var
|
|
64
|
-
const
|
|
65
|
-
function ce(
|
|
66
|
-
return
|
|
67
|
-
if (
|
|
68
|
-
if (typeof
|
|
69
|
-
if (!("initial" in
|
|
63
|
+
var Zn = kt.exports;
|
|
64
|
+
const y = /* @__PURE__ */ Yn(Zn);
|
|
65
|
+
function ce(e, o) {
|
|
66
|
+
return R(() => {
|
|
67
|
+
if (e !== void 0)
|
|
68
|
+
if (typeof e == "object") {
|
|
69
|
+
if (!("initial" in e))
|
|
70
70
|
throw new Error("Expected initial property to be set in Responsive object");
|
|
71
|
-
return Object.fromEntries(Object.entries(
|
|
71
|
+
return Object.fromEntries(Object.entries(e).map(([n, t]) => [n, o[t]]));
|
|
72
72
|
} else
|
|
73
|
-
return e
|
|
74
|
-
}, [
|
|
73
|
+
return o[e];
|
|
74
|
+
}, [o, e]);
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const eo = {
|
|
77
77
|
success: "green",
|
|
78
78
|
danger: "red",
|
|
79
79
|
warning: "amber",
|
|
80
80
|
info: "gray"
|
|
81
|
-
},
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
},
|
|
86
|
-
const [
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
}, [
|
|
90
|
-
},
|
|
91
|
-
const [
|
|
81
|
+
}, E = (e) => {
|
|
82
|
+
const o = gn();
|
|
83
|
+
if (e)
|
|
84
|
+
return e === "primary" ? o.accentColor : eo[e];
|
|
85
|
+
}, vs = () => {
|
|
86
|
+
const [e, o] = k("initial"), [n, t] = k("initial"), s = Te({ minWidth: "520px" }), r = Te({ minWidth: "768px" }), c = Te({ minWidth: "1024px" }), a = Te({ minWidth: "1280px" }), d = Te({ minWidth: "1640px" });
|
|
87
|
+
return ct(() => {
|
|
88
|
+
t((l) => (o(l), d ? "xl" : a ? "lg" : c ? "md" : r ? "sm" : s ? "xs" : "initial"));
|
|
89
|
+
}, [a, c, r, d, s]), { size: n, prevSize: e, xs: s, sm: r, md: c, lg: a, xl: d };
|
|
90
|
+
}, Nt = (e, o, n) => {
|
|
91
|
+
const [t, s] = k([]), [r, c] = k(!0), a = x(
|
|
92
92
|
(h) => {
|
|
93
93
|
const { repeat: u, key: g } = h;
|
|
94
|
-
|
|
94
|
+
c(!0), !(u || t.includes(g)) && s((f) => [...f, g]);
|
|
95
95
|
},
|
|
96
|
-
[
|
|
97
|
-
), d =
|
|
96
|
+
[t]
|
|
97
|
+
), d = x(
|
|
98
98
|
(h) => {
|
|
99
99
|
const { key: u } = h;
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
return
|
|
100
|
+
c(!1), t.includes(u) && s((g) => {
|
|
101
|
+
const f = [...g];
|
|
102
|
+
return f.splice(g.indexOf(u), 1), f;
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
|
-
[
|
|
105
|
+
[t]
|
|
106
106
|
);
|
|
107
|
-
|
|
108
|
-
document.removeEventListener("keydown",
|
|
109
|
-
}), [
|
|
107
|
+
M(() => (o || document.addEventListener("keydown", a, !0), () => {
|
|
108
|
+
document.removeEventListener("keydown", a, !0);
|
|
109
|
+
}), [o, a]), M(() => (o || document.addEventListener("keyup", d, !0), () => {
|
|
110
110
|
document.removeEventListener("keyup", d, !0);
|
|
111
|
-
}), [
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
}, [
|
|
116
|
-
},
|
|
117
|
-
const
|
|
118
|
-
for (const n of
|
|
119
|
-
Oe(n) &&
|
|
120
|
-
return
|
|
121
|
-
},
|
|
122
|
-
const
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
|
|
111
|
+
}), [o, d]);
|
|
112
|
+
const l = R(() => !o && r && t.length === e.length && t.every((h) => e.includes(h)), [o, r, t, e]);
|
|
113
|
+
return M(() => {
|
|
114
|
+
l && n();
|
|
115
|
+
}, [l, n]), l;
|
|
116
|
+
}, to = (e) => {
|
|
117
|
+
const o = [];
|
|
118
|
+
for (const n of me.toArray(e))
|
|
119
|
+
Oe(n) && o.push(n);
|
|
120
|
+
return o;
|
|
121
|
+
}, no = S(function({ className: o, severity: n = "primary", color: t, children: s, ...r }, c) {
|
|
122
|
+
const a = E(n);
|
|
123
|
+
return /* @__PURE__ */ i(
|
|
124
|
+
Cn,
|
|
125
125
|
{
|
|
126
|
-
className:
|
|
127
|
-
ref:
|
|
128
|
-
color:
|
|
126
|
+
className: y("overmap-badge", o),
|
|
127
|
+
ref: c,
|
|
128
|
+
color: t || a,
|
|
129
129
|
...r,
|
|
130
|
-
children:
|
|
130
|
+
children: s
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
|
-
}),
|
|
134
|
-
zeroMinWidth:
|
|
135
|
-
zeroMinHeight:
|
|
133
|
+
}), _s = $(no), oo = "_zeroMinWidth_curjh_1", ro = "_zeroMinHeight_curjh_5", io = "_radius_curjh_9", ot = {
|
|
134
|
+
zeroMinWidth: oo,
|
|
135
|
+
zeroMinHeight: ro,
|
|
136
136
|
radius: io
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
({ className:
|
|
137
|
+
}, X = $(
|
|
138
|
+
S(
|
|
139
|
+
({ className: e, radius: o = !1, children: n, zeroMinWidth: t = !1, zeroMinHeight: s = !1, ...r }, c) => /* @__PURE__ */ i(
|
|
140
140
|
D,
|
|
141
141
|
{
|
|
142
|
-
className:
|
|
143
|
-
[
|
|
144
|
-
[
|
|
145
|
-
[
|
|
142
|
+
className: y(e, {
|
|
143
|
+
[ot.radius]: o,
|
|
144
|
+
[ot.zeroMinWidth]: t,
|
|
145
|
+
[ot.zeroMinHeight]: s
|
|
146
146
|
}),
|
|
147
|
-
ref:
|
|
147
|
+
ref: c,
|
|
148
148
|
...r,
|
|
149
149
|
children: n
|
|
150
150
|
}
|
|
151
151
|
)
|
|
152
152
|
)
|
|
153
|
-
),
|
|
154
|
-
|
|
155
|
-
const { size:
|
|
156
|
-
return /* @__PURE__ */
|
|
153
|
+
), Tt = Se({}), so = () => ze(Tt), ao = $(
|
|
154
|
+
S(({ className: e, children: o, ...n }, t) => {
|
|
155
|
+
const { size: s, severity: r } = so(), c = E(r);
|
|
156
|
+
return /* @__PURE__ */ i(G, { className: y("overmap-breadcrumb-item", e), height: "max-content", width: "max-content", children: /* @__PURE__ */ i(vn, { ref: t, size: s, color: c, ...n, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", gap: "1", children: o }) }) });
|
|
157
157
|
})
|
|
158
|
-
), co =
|
|
159
|
-
|
|
160
|
-
({ className:
|
|
161
|
-
const d =
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
|
|
158
|
+
), co = $(
|
|
159
|
+
S(
|
|
160
|
+
({ className: e, children: o, separator: n, severity: t = "info", size: s, gap: r = "2", ...c }, a) => {
|
|
161
|
+
const d = E(t), l = to(o);
|
|
162
|
+
return /* @__PURE__ */ i(Tt.Provider, { value: { size: s, severity: t }, children: /* @__PURE__ */ i(
|
|
163
|
+
X,
|
|
164
164
|
{
|
|
165
|
-
className:
|
|
166
|
-
ref:
|
|
165
|
+
className: y("overmap-breadcrumb-group", e),
|
|
166
|
+
ref: a,
|
|
167
167
|
gap: r,
|
|
168
168
|
role: "breadcrumb",
|
|
169
169
|
height: "max-content",
|
|
170
170
|
width: "max-content",
|
|
171
|
-
...
|
|
172
|
-
children:
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
...c,
|
|
172
|
+
children: l.map((h, u) => /* @__PURE__ */ v(J, { children: [
|
|
173
|
+
Ae(h, { key: u }),
|
|
174
|
+
l.length - 1 !== u && /* @__PURE__ */ i(Re, { color: d, children: /* @__PURE__ */ i(X, { height: "100%", width: "100%", align: "center", children: n }) })
|
|
175
175
|
] }))
|
|
176
176
|
}
|
|
177
177
|
) });
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
|
-
),
|
|
180
|
+
), bs = {
|
|
181
181
|
Group: co,
|
|
182
|
-
Item:
|
|
183
|
-
},
|
|
184
|
-
fluid:
|
|
185
|
-
hoverSpin90Clockwise:
|
|
186
|
-
hoverSpin180Clockwise:
|
|
187
|
-
hoverSpin360Clockwise:
|
|
182
|
+
Item: ao
|
|
183
|
+
}, lo = "_fluid_r73gr_1", uo = "_hoverSpin90Clockwise_r73gr_15", ho = "_hoverSpin180Clockwise_r73gr_25", po = "_hoverSpin360Clockwise_r73gr_35", Ie = {
|
|
184
|
+
fluid: lo,
|
|
185
|
+
hoverSpin90Clockwise: uo,
|
|
186
|
+
hoverSpin180Clockwise: ho,
|
|
187
|
+
hoverSpin360Clockwise: po
|
|
188
188
|
}, Dt = {
|
|
189
|
-
spin90Clockwise:
|
|
190
|
-
spin180Clockwise:
|
|
191
|
-
spin360Clockwise:
|
|
192
|
-
}, fo = (
|
|
193
|
-
(
|
|
194
|
-
},
|
|
189
|
+
spin90Clockwise: Ie.hoverSpin90Clockwise,
|
|
190
|
+
spin180Clockwise: Ie.hoverSpin180Clockwise,
|
|
191
|
+
spin360Clockwise: Ie.hoverSpin360Clockwise
|
|
192
|
+
}, fo = (e) => {
|
|
193
|
+
(e.key === "Enter" || e.key === " ") && e.currentTarget.click();
|
|
194
|
+
}, ws = {
|
|
195
195
|
role: "button",
|
|
196
196
|
tabIndex: 0,
|
|
197
197
|
onKeyDown: fo
|
|
198
|
-
},
|
|
198
|
+
}, Pe = {
|
|
199
199
|
small: "1",
|
|
200
200
|
medium: "2",
|
|
201
201
|
large: "3"
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
}, It = Se({}), lt = () => ze(It), mo = "_spinner_isifr_9", go = "_spin_isifr_9", Co = {
|
|
203
|
+
spinner: mo,
|
|
204
|
+
spin: go
|
|
205
|
+
}, Ot = $(() => /* @__PURE__ */ i("div", { className: Co.spinner }));
|
|
206
|
+
Ot.displayName = "Spinner";
|
|
207
|
+
const vo = S(function(o, n) {
|
|
208
|
+
const t = lt(), {
|
|
209
|
+
className: s,
|
|
205
210
|
type: r = "button",
|
|
206
|
-
fluid:
|
|
207
|
-
size:
|
|
208
|
-
severity: d =
|
|
209
|
-
hoverEffects:
|
|
210
|
-
variant: h =
|
|
211
|
+
fluid: c = t.fluid ?? !1,
|
|
212
|
+
size: a = t.size ?? "medium",
|
|
213
|
+
severity: d = t.severity ?? "primary",
|
|
214
|
+
hoverEffects: l = t.hoverEffects ?? [],
|
|
215
|
+
variant: h = t.variant,
|
|
211
216
|
shortcut: u = {
|
|
212
217
|
keys: [],
|
|
213
218
|
action: () => {
|
|
214
219
|
},
|
|
215
220
|
disabled: !1
|
|
216
221
|
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
loading: g,
|
|
223
|
+
children: f,
|
|
224
|
+
disabled: C,
|
|
225
|
+
...b
|
|
226
|
+
} = o, m = E(d), P = l.map((w) => Dt[w]);
|
|
227
|
+
return Nt(u.keys, u.disabled || u.keys.length === 0, u.action), /* @__PURE__ */ i(
|
|
220
228
|
_n,
|
|
221
229
|
{
|
|
222
230
|
ref: n,
|
|
223
231
|
type: r,
|
|
224
|
-
className:
|
|
225
|
-
[
|
|
232
|
+
className: y(s, P, {
|
|
233
|
+
[Ie.fluid]: c
|
|
226
234
|
}),
|
|
227
235
|
color: m,
|
|
228
|
-
size: ce(
|
|
236
|
+
size: ce(a, Pe),
|
|
229
237
|
variant: h,
|
|
230
|
-
|
|
238
|
+
disabled: g || C,
|
|
239
|
+
...b,
|
|
240
|
+
children: g ? /* @__PURE__ */ i(Ot, {}) : f
|
|
231
241
|
}
|
|
232
242
|
);
|
|
233
|
-
}),
|
|
234
|
-
const
|
|
235
|
-
className:
|
|
243
|
+
}), $e = W.memo(vo), _o = S(function(o, n) {
|
|
244
|
+
const t = lt(), {
|
|
245
|
+
className: s,
|
|
236
246
|
children: r,
|
|
237
|
-
type:
|
|
238
|
-
fluid:
|
|
239
|
-
size: d =
|
|
240
|
-
severity:
|
|
241
|
-
hoverEffects: h =
|
|
242
|
-
variant: u =
|
|
247
|
+
type: c = "button",
|
|
248
|
+
fluid: a = t.fluid ?? !1,
|
|
249
|
+
size: d = t.size ?? "medium",
|
|
250
|
+
severity: l = t.severity ?? "primary",
|
|
251
|
+
hoverEffects: h = t.hoverEffects ?? [],
|
|
252
|
+
variant: u = t.variant,
|
|
243
253
|
shortcut: g = {
|
|
244
254
|
keys: [],
|
|
245
255
|
action: () => {
|
|
246
256
|
},
|
|
247
257
|
disabled: !1
|
|
248
258
|
},
|
|
249
|
-
...
|
|
250
|
-
} =
|
|
251
|
-
return
|
|
259
|
+
...f
|
|
260
|
+
} = o, C = E(l), b = (h == null ? void 0 : h.map((m) => Dt[m])) || [];
|
|
261
|
+
return Nt(g.keys, g.disabled || g.keys.length === 0, g.action), /* @__PURE__ */ i(
|
|
252
262
|
Pt,
|
|
253
263
|
{
|
|
254
|
-
className:
|
|
255
|
-
[
|
|
264
|
+
className: y(s, b, {
|
|
265
|
+
[Ie.fluid]: a
|
|
256
266
|
}),
|
|
257
267
|
ref: n,
|
|
258
268
|
color: C,
|
|
259
|
-
size: ce(d,
|
|
269
|
+
size: ce(d, Pe),
|
|
260
270
|
variant: u,
|
|
261
|
-
type:
|
|
262
|
-
...
|
|
271
|
+
type: c,
|
|
272
|
+
...f,
|
|
263
273
|
children: r
|
|
264
274
|
}
|
|
265
275
|
);
|
|
266
|
-
}),
|
|
276
|
+
}), re = W.memo(_o), bo = "_merged_wdgxo_1", wo = {
|
|
267
277
|
merged: bo
|
|
268
|
-
},
|
|
278
|
+
}, yo = {
|
|
269
279
|
row: { small: "4", medium: "4", large: "5" },
|
|
270
280
|
column: { small: "2", medium: "3", large: "4" }
|
|
271
|
-
},
|
|
272
|
-
className:
|
|
281
|
+
}, xo = S(function({
|
|
282
|
+
className: o,
|
|
273
283
|
merged: n = !1,
|
|
274
|
-
children:
|
|
275
|
-
gap:
|
|
284
|
+
children: t,
|
|
285
|
+
gap: s,
|
|
276
286
|
direction: r = "row",
|
|
277
|
-
severity:
|
|
278
|
-
size:
|
|
287
|
+
severity: c,
|
|
288
|
+
size: a = "medium",
|
|
279
289
|
variant: d,
|
|
280
|
-
hoverEffects:
|
|
290
|
+
hoverEffects: l,
|
|
281
291
|
fluid: h,
|
|
282
292
|
...u
|
|
283
293
|
}, g) {
|
|
284
|
-
const
|
|
285
|
-
return /* @__PURE__ */
|
|
294
|
+
const f = ce(a, yo[r]), C = d === "ghost" ? f : "0";
|
|
295
|
+
return /* @__PURE__ */ i(
|
|
286
296
|
D,
|
|
287
297
|
{
|
|
288
|
-
className:
|
|
289
|
-
[
|
|
298
|
+
className: y("overmap-button-group", o, {
|
|
299
|
+
[wo.merged]: n
|
|
290
300
|
}),
|
|
291
301
|
ref: g,
|
|
292
|
-
gap: n ?
|
|
302
|
+
gap: n ? s ?? C : s ?? "2",
|
|
293
303
|
direction: r,
|
|
294
304
|
"data-direction": r,
|
|
295
305
|
...u,
|
|
296
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ i(It.Provider, { value: { size: a, severity: c, variant: d, hoverEffects: l, fluid: h }, children: t })
|
|
297
307
|
}
|
|
298
308
|
);
|
|
299
|
-
}),
|
|
309
|
+
}), Rt = $(xo), So = "_separators_1f7v1_1", $o = {
|
|
300
310
|
separators: So
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
const { children: n, border:
|
|
304
|
-
|
|
305
|
-
|
|
311
|
+
}, Po = $(
|
|
312
|
+
S((e, o) => {
|
|
313
|
+
const { children: n, border: t, before: s, after: r, size: c } = e, a = t ? "surface" : "ghost", d = ce(c, Pe), h = /* @__PURE__ */ v(bn, { ref: o, size: d, variant: a, children: [
|
|
314
|
+
s,
|
|
315
|
+
s && r ? /* @__PURE__ */ i(He, { side: "x", pt: "current", pb: "current", children: n }) : s ? /* @__PURE__ */ i(He, { side: "bottom", pt: "current", children: n }) : r ? /* @__PURE__ */ i(He, { side: "top", pb: "current", children: n }) : /* @__PURE__ */ i(He, { children: n }),
|
|
306
316
|
r
|
|
307
317
|
] });
|
|
308
|
-
return
|
|
318
|
+
return a === "ghost" ? /* @__PURE__ */ i(G, { p: "3", children: h }) : h;
|
|
309
319
|
})
|
|
310
|
-
),
|
|
311
|
-
|
|
312
|
-
const { children: n, variant:
|
|
313
|
-
return /* @__PURE__ */
|
|
314
|
-
|
|
320
|
+
), ko = $(
|
|
321
|
+
S((e, o) => {
|
|
322
|
+
const { children: n, variant: t = "outline", size: s, className: r, ...c } = e;
|
|
323
|
+
return /* @__PURE__ */ i(Po, { ...c, border: t === "outline" || t === "surface", size: s, children: /* @__PURE__ */ i(
|
|
324
|
+
Rt,
|
|
315
325
|
{
|
|
316
|
-
size:
|
|
326
|
+
size: s,
|
|
317
327
|
severity: "info",
|
|
318
|
-
variant:
|
|
319
|
-
className:
|
|
328
|
+
variant: t === "outline" ? "ghost" : t === "surface" ? "soft" : t,
|
|
329
|
+
className: y(r, $o.separators),
|
|
320
330
|
merged: !0,
|
|
321
331
|
gap: "0",
|
|
322
332
|
direction: "column",
|
|
323
|
-
ref:
|
|
333
|
+
ref: o,
|
|
324
334
|
children: n
|
|
325
335
|
}
|
|
326
336
|
) });
|
|
327
337
|
})
|
|
328
|
-
),
|
|
329
|
-
|
|
330
|
-
const { variant: n } = lt(),
|
|
331
|
-
return n === "ghost" ? /* @__PURE__ */
|
|
338
|
+
), No = $(
|
|
339
|
+
S((e, o) => {
|
|
340
|
+
const { variant: n } = lt(), t = /* @__PURE__ */ i($e, { ref: o, ...e, radius: "large", variant: n });
|
|
341
|
+
return n === "ghost" ? /* @__PURE__ */ i(G, { asChild: !0, my: "1", mx: "2", children: t }) : t;
|
|
332
342
|
})
|
|
333
|
-
),
|
|
334
|
-
Root:
|
|
335
|
-
Item:
|
|
336
|
-
},
|
|
337
|
-
const { title: n, description:
|
|
338
|
-
return /* @__PURE__ */
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
+
), ys = {
|
|
344
|
+
Root: ko,
|
|
345
|
+
Item: No
|
|
346
|
+
}, To = $(function(o) {
|
|
347
|
+
const { title: n, description: t, content: s, closeDialog: r } = o;
|
|
348
|
+
return /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
|
|
349
|
+
/* @__PURE__ */ v(D, { direction: "column", gap: "1", children: [
|
|
350
|
+
/* @__PURE__ */ v(D, { justify: "between", children: [
|
|
351
|
+
/* @__PURE__ */ i(xe.Title, { mb: "0", children: n }),
|
|
352
|
+
/* @__PURE__ */ i(xe.Close, { children: /* @__PURE__ */ i(Pt, { color: "gray", variant: "ghost", "aria-label": "Close", children: /* @__PURE__ */ i(nn, {}) }) })
|
|
343
353
|
] }),
|
|
344
|
-
|
|
354
|
+
t && /* @__PURE__ */ i(xe.Description, { children: t })
|
|
345
355
|
] }),
|
|
346
|
-
|
|
356
|
+
s(r)
|
|
347
357
|
] });
|
|
348
|
-
}),
|
|
349
|
-
|
|
358
|
+
}), xs = $(
|
|
359
|
+
S((e, o) => {
|
|
350
360
|
const {
|
|
351
361
|
children: n,
|
|
352
|
-
content:
|
|
353
|
-
title:
|
|
362
|
+
content: t,
|
|
363
|
+
title: s,
|
|
354
364
|
description: r,
|
|
355
|
-
onOpen:
|
|
356
|
-
onClose:
|
|
365
|
+
onOpen: c,
|
|
366
|
+
onClose: a,
|
|
357
367
|
defaultOpen: d,
|
|
358
|
-
onCloseInterrupt:
|
|
368
|
+
onCloseInterrupt: l,
|
|
359
369
|
open: h,
|
|
360
370
|
onOpenChange: u,
|
|
361
371
|
...g
|
|
362
|
-
} =
|
|
363
|
-
if ((
|
|
372
|
+
} = e, [f, C] = k(d ?? !1), b = h ?? f;
|
|
373
|
+
if ((l || c) && u)
|
|
364
374
|
throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");
|
|
365
375
|
if (h !== void 0 && u === void 0)
|
|
366
376
|
throw new Error("The `open` prop requires the `onOpenChange` prop.");
|
|
@@ -368,177 +378,177 @@ const to = {
|
|
|
368
378
|
throw new Error("Either the `children` or `open` prop must be defined.");
|
|
369
379
|
if (n && h !== void 0)
|
|
370
380
|
throw new Error("The `children` and `open` props cannot be used together.");
|
|
371
|
-
const
|
|
372
|
-
(
|
|
381
|
+
const m = x(
|
|
382
|
+
(w) => {
|
|
373
383
|
if (u)
|
|
374
|
-
return u(
|
|
375
|
-
if (
|
|
376
|
-
|
|
384
|
+
return u(w);
|
|
385
|
+
if (w && c)
|
|
386
|
+
c();
|
|
377
387
|
else {
|
|
378
|
-
if (
|
|
379
|
-
return
|
|
380
|
-
C(!1),
|
|
388
|
+
if (!w && l)
|
|
389
|
+
return l(() => {
|
|
390
|
+
C(!1), a && a();
|
|
381
391
|
});
|
|
382
|
-
|
|
392
|
+
!w && a && a();
|
|
383
393
|
}
|
|
384
|
-
C(
|
|
394
|
+
C(w);
|
|
385
395
|
},
|
|
386
|
-
[u,
|
|
387
|
-
), P =
|
|
388
|
-
(
|
|
389
|
-
if (
|
|
396
|
+
[u, c, a, l]
|
|
397
|
+
), P = x(
|
|
398
|
+
(w) => {
|
|
399
|
+
if (w != null && w.force)
|
|
390
400
|
return C(!1);
|
|
391
|
-
|
|
401
|
+
m(!1);
|
|
392
402
|
},
|
|
393
|
-
[
|
|
403
|
+
[m]
|
|
394
404
|
);
|
|
395
|
-
return /* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
|
|
405
|
+
return /* @__PURE__ */ v(xe.Root, { open: b, onOpenChange: m, children: [
|
|
406
|
+
/* @__PURE__ */ i(xe.Trigger, { children: n }),
|
|
407
|
+
/* @__PURE__ */ i(xe.Content, { ref: o, ...g, children: /* @__PURE__ */ i(
|
|
408
|
+
To,
|
|
399
409
|
{
|
|
400
410
|
closeDialog: P,
|
|
401
|
-
content:
|
|
402
|
-
title:
|
|
411
|
+
content: t,
|
|
412
|
+
title: s,
|
|
403
413
|
description: r
|
|
404
414
|
}
|
|
405
415
|
) })
|
|
406
416
|
] });
|
|
407
417
|
})
|
|
408
|
-
),
|
|
409
|
-
const { title:
|
|
410
|
-
return /* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */
|
|
418
|
+
), zt = (e) => /* @__PURE__ */ i(fe.Title, { mb: "0", ...e }), Do = (e) => {
|
|
419
|
+
const { title: o, description: n, actionText: t = "Confirm", cancelText: s = "Cancel", onAction: r, onCancel: c, severity: a } = e;
|
|
420
|
+
return /* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
|
|
421
|
+
/* @__PURE__ */ v(D, { direction: "column", gap: "1", children: [
|
|
422
|
+
/* @__PURE__ */ i(zt, { children: o }),
|
|
423
|
+
/* @__PURE__ */ i(fe.Description, { children: n })
|
|
414
424
|
] }),
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ v(D, { gap: "3", mt: "4", justify: "end", children: [
|
|
426
|
+
/* @__PURE__ */ i(fe.Cancel, { children: /* @__PURE__ */ i($e, { variant: "soft", severity: "info", onClick: c, children: s }) }),
|
|
427
|
+
/* @__PURE__ */ i(fe.Action, { children: /* @__PURE__ */ i($e, { variant: "solid", severity: a, onClick: r, children: t }) })
|
|
418
428
|
] })
|
|
419
429
|
] });
|
|
420
|
-
},
|
|
421
|
-
const { open: n, setOpen:
|
|
422
|
-
close: () =>
|
|
423
|
-
Title:
|
|
424
|
-
Description:
|
|
425
|
-
}), [
|
|
426
|
-
return /* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
|
|
430
|
+
}, Io = $(function(o) {
|
|
431
|
+
const { open: n, setOpen: t, children: s, ...r } = o, c = R(() => ({
|
|
432
|
+
close: () => t(!1),
|
|
433
|
+
Title: zt,
|
|
434
|
+
Description: fe.Description
|
|
435
|
+
}), [t]);
|
|
436
|
+
return /* @__PURE__ */ v(fe.Root, { open: n, onOpenChange: t, children: [
|
|
437
|
+
/* @__PURE__ */ i(fe.Content, { children: "content" in r ? r.content(c) : /* @__PURE__ */ i(Do, { ...r }) }),
|
|
438
|
+
s
|
|
429
439
|
] });
|
|
430
|
-
}),
|
|
440
|
+
}), At = Se(() => {
|
|
431
441
|
throw new Error("No AlertDialogProvider found");
|
|
432
|
-
}),
|
|
442
|
+
}), Oo = {
|
|
433
443
|
content: () => null
|
|
434
|
-
},
|
|
435
|
-
const [n,
|
|
436
|
-
(
|
|
444
|
+
}, Ss = $(function({ children: o }) {
|
|
445
|
+
const [n, t] = k(!1), [s, r] = k(Oo), c = x(
|
|
446
|
+
(a) => {
|
|
437
447
|
if (n)
|
|
438
448
|
throw new Error("AlertDialog is already open");
|
|
439
|
-
r(
|
|
449
|
+
r(a), t(!0);
|
|
440
450
|
},
|
|
441
451
|
[n]
|
|
442
452
|
);
|
|
443
|
-
return /* @__PURE__ */
|
|
444
|
-
}),
|
|
445
|
-
const
|
|
446
|
-
return
|
|
447
|
-
(
|
|
453
|
+
return /* @__PURE__ */ i(Io, { open: n, setOpen: t, ...s, children: /* @__PURE__ */ i(At.Provider, { value: c, children: o }) });
|
|
454
|
+
}), Ro = () => ze(At), $s = () => {
|
|
455
|
+
const e = Ro();
|
|
456
|
+
return x(
|
|
457
|
+
(o) => e({
|
|
448
458
|
title: "Discard changes?",
|
|
449
459
|
description: "You have unsaved changes. Are you sure you want to discard them?",
|
|
450
460
|
actionText: "Discard",
|
|
451
461
|
severity: "danger",
|
|
452
|
-
onAction:
|
|
453
|
-
onCancel:
|
|
462
|
+
onAction: o.onDiscard,
|
|
463
|
+
onCancel: o.onCancel
|
|
454
464
|
}),
|
|
455
|
-
[
|
|
465
|
+
[e]
|
|
456
466
|
);
|
|
457
|
-
},
|
|
458
|
-
DropdownMenu:
|
|
459
|
-
DropdownMenuItemWrapper:
|
|
460
|
-
DropdownMenuSeparatorWrapper:
|
|
461
|
-
DropdownMenuItem:
|
|
462
|
-
},
|
|
467
|
+
}, zo = "_DropdownMenu_hj4sz_1", Ao = "_DropdownMenuItemWrapper_hj4sz_8", Eo = "_DropdownMenuSeparatorWrapper_hj4sz_13", Bo = "_DropdownMenuItem_hj4sz_8", qe = {
|
|
468
|
+
DropdownMenu: zo,
|
|
469
|
+
DropdownMenuItemWrapper: Ao,
|
|
470
|
+
DropdownMenuSeparatorWrapper: Eo,
|
|
471
|
+
DropdownMenuItem: Bo
|
|
472
|
+
}, Mo = {
|
|
463
473
|
1: "max-content",
|
|
464
474
|
2: "max-content",
|
|
465
475
|
3: "max-content",
|
|
466
476
|
4: "100%"
|
|
467
|
-
},
|
|
468
|
-
const
|
|
469
|
-
return /* @__PURE__ */
|
|
477
|
+
}, Lo = S(function({ severity: o = "info", weight: n = "light", gap: t = "1", text: s, orientation: r = "horizontal", size: c, ...a }, d) {
|
|
478
|
+
const l = ce(c, Mo), h = E(o);
|
|
479
|
+
return /* @__PURE__ */ v(
|
|
470
480
|
D,
|
|
471
481
|
{
|
|
472
482
|
ref: d,
|
|
473
|
-
width: r === "horizontal" ?
|
|
474
|
-
height: r === "vertical" ?
|
|
483
|
+
width: r === "horizontal" ? l : "max-content",
|
|
484
|
+
height: r === "vertical" ? l : "max-content",
|
|
475
485
|
direction: r === "vertical" ? "column" : "row",
|
|
476
486
|
align: "center",
|
|
477
|
-
gap:
|
|
487
|
+
gap: t,
|
|
478
488
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a }),
|
|
490
|
+
s && /* @__PURE__ */ v(J, { children: [
|
|
491
|
+
/* @__PURE__ */ i(Re, { as: "span", size: "1", weight: n, color: h, children: s }),
|
|
492
|
+
/* @__PURE__ */ i(ft, { size: c, orientation: r, color: h, ...a })
|
|
483
493
|
] })
|
|
484
494
|
]
|
|
485
495
|
}
|
|
486
496
|
);
|
|
487
|
-
}),
|
|
488
|
-
content:
|
|
497
|
+
}), Wo = $(Lo), Ho = $(function({
|
|
498
|
+
content: o,
|
|
489
499
|
onSelect: n,
|
|
490
|
-
closeOnSelect:
|
|
491
|
-
...
|
|
500
|
+
closeOnSelect: t,
|
|
501
|
+
...s
|
|
492
502
|
}) {
|
|
493
|
-
const r =
|
|
494
|
-
(
|
|
495
|
-
n && n(
|
|
503
|
+
const r = x(
|
|
504
|
+
(c) => {
|
|
505
|
+
n && n(c), t || c.preventDefault();
|
|
496
506
|
},
|
|
497
|
-
[
|
|
507
|
+
[t, n]
|
|
498
508
|
);
|
|
499
|
-
return /* @__PURE__ */
|
|
500
|
-
}),
|
|
501
|
-
|
|
509
|
+
return /* @__PURE__ */ i(ee.Item, { className: qe.DropdownMenuItem, textValue: "", onSelect: r, ...s, children: /* @__PURE__ */ i(D, { align: "center", gap: "1", children: o }) });
|
|
510
|
+
}), Ps = $(
|
|
511
|
+
S(
|
|
502
512
|
({
|
|
503
|
-
className:
|
|
504
|
-
trigger:
|
|
513
|
+
className: e,
|
|
514
|
+
trigger: o,
|
|
505
515
|
items: n,
|
|
506
|
-
label:
|
|
507
|
-
disabled:
|
|
516
|
+
label: t,
|
|
517
|
+
disabled: s,
|
|
508
518
|
severity: r = "info",
|
|
509
|
-
modal:
|
|
510
|
-
closeOnSelect:
|
|
519
|
+
modal: c = !1,
|
|
520
|
+
closeOnSelect: a = !0,
|
|
511
521
|
...d
|
|
512
522
|
}) => {
|
|
513
|
-
const
|
|
514
|
-
return /* @__PURE__ */
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
517
|
-
|
|
523
|
+
const l = E(r);
|
|
524
|
+
return /* @__PURE__ */ v(ee.Root, { modal: c, children: [
|
|
525
|
+
/* @__PURE__ */ i(ee.Trigger, { disabled: s, children: o }),
|
|
526
|
+
/* @__PURE__ */ i(
|
|
527
|
+
ee.Content,
|
|
518
528
|
{
|
|
519
|
-
className:
|
|
520
|
-
color:
|
|
529
|
+
className: y("overmap-dropdown", e),
|
|
530
|
+
color: l,
|
|
521
531
|
variant: "soft",
|
|
522
532
|
...d,
|
|
523
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ v(
|
|
524
534
|
D,
|
|
525
535
|
{
|
|
526
|
-
className:
|
|
536
|
+
className: qe.DropdownMenu,
|
|
527
537
|
direction: "column",
|
|
528
538
|
height: "max-content",
|
|
529
539
|
width: "max-content",
|
|
530
540
|
children: [
|
|
531
|
-
!!
|
|
532
|
-
n.map(({ closeOnSelect: h, separator: u, ...g },
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
|
|
541
|
+
!!t && /* @__PURE__ */ i(ee.Label, { children: t }),
|
|
542
|
+
n.map(({ closeOnSelect: h, separator: u, ...g }, f) => /* @__PURE__ */ v(J, { children: [
|
|
543
|
+
/* @__PURE__ */ i(G, { className: qe.DropdownMenuItemWrapper, children: /* @__PURE__ */ i(
|
|
544
|
+
Ho,
|
|
535
545
|
{
|
|
536
|
-
closeOnSelect: h ??
|
|
546
|
+
closeOnSelect: h ?? a,
|
|
537
547
|
...g
|
|
538
548
|
},
|
|
539
|
-
|
|
549
|
+
f
|
|
540
550
|
) }),
|
|
541
|
-
!!u && /* @__PURE__ */
|
|
551
|
+
!!u && /* @__PURE__ */ i(G, { className: qe.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ i(Wo, { size: "4" }) })
|
|
542
552
|
] }))
|
|
543
553
|
]
|
|
544
554
|
}
|
|
@@ -548,223 +558,223 @@ const to = {
|
|
|
548
558
|
] });
|
|
549
559
|
}
|
|
550
560
|
)
|
|
551
|
-
),
|
|
552
|
-
DropdownSelect:
|
|
553
|
-
BorderBottom:
|
|
554
|
-
DropdownSelectInputWrapper:
|
|
555
|
-
DropdownSelectInput:
|
|
556
|
-
DropdownSelectItem:
|
|
557
|
-
},
|
|
558
|
-
|
|
561
|
+
), jo = "_DropdownSelect_k517z_1", Fo = "_BorderBottom_k517z_8", Vo = "_DropdownSelectInputWrapper_k517z_12", Uo = "_DropdownSelectInput_k517z_12", Go = "_DropdownSelectItem_k517z_27", be = {
|
|
562
|
+
DropdownSelect: jo,
|
|
563
|
+
BorderBottom: Fo,
|
|
564
|
+
DropdownSelectInputWrapper: Vo,
|
|
565
|
+
DropdownSelectInput: Uo,
|
|
566
|
+
DropdownSelectItem: Go
|
|
567
|
+
}, Ko = 150, ks = $(
|
|
568
|
+
S(
|
|
559
569
|
({
|
|
560
|
-
trigger:
|
|
561
|
-
items:
|
|
570
|
+
trigger: e,
|
|
571
|
+
items: o,
|
|
562
572
|
disabled: n = !1,
|
|
563
|
-
value:
|
|
564
|
-
onValueChange:
|
|
573
|
+
value: t,
|
|
574
|
+
onValueChange: s,
|
|
565
575
|
placeholder: r,
|
|
566
|
-
filterValue:
|
|
567
|
-
onFilterValueChange:
|
|
576
|
+
filterValue: c,
|
|
577
|
+
onFilterValueChange: a,
|
|
568
578
|
closeOnSelect: d = !0,
|
|
569
|
-
icons:
|
|
579
|
+
icons: l,
|
|
570
580
|
severity: h = "info"
|
|
571
581
|
}, u) => {
|
|
572
|
-
const g =
|
|
573
|
-
(
|
|
574
|
-
|
|
582
|
+
const g = E(h), f = x(
|
|
583
|
+
(m) => (P) => {
|
|
584
|
+
s(t !== m ? m : void 0), d || P.preventDefault();
|
|
575
585
|
},
|
|
576
|
-
[
|
|
577
|
-
), C =
|
|
578
|
-
(
|
|
579
|
-
|
|
586
|
+
[t, d, s]
|
|
587
|
+
), C = x(
|
|
588
|
+
(m) => {
|
|
589
|
+
a && a(m.target.value);
|
|
580
590
|
},
|
|
581
|
-
[
|
|
582
|
-
),
|
|
583
|
-
(
|
|
584
|
-
!
|
|
585
|
-
|
|
586
|
-
},
|
|
591
|
+
[a]
|
|
592
|
+
), b = x(
|
|
593
|
+
(m) => {
|
|
594
|
+
!m && a && setTimeout(() => {
|
|
595
|
+
a("");
|
|
596
|
+
}, Ko);
|
|
587
597
|
},
|
|
588
|
-
[
|
|
598
|
+
[a]
|
|
589
599
|
);
|
|
590
|
-
return /* @__PURE__ */
|
|
591
|
-
/* @__PURE__ */
|
|
592
|
-
/* @__PURE__ */
|
|
593
|
-
|
|
600
|
+
return /* @__PURE__ */ v(ee.Root, { onOpenChange: b, children: [
|
|
601
|
+
/* @__PURE__ */ i(ee.Trigger, { disabled: n, children: e }),
|
|
602
|
+
/* @__PURE__ */ i(ee.Content, { ref: u, variant: "soft", color: g, className: be.Test, children: /* @__PURE__ */ v(X, { className: be.DropdownSelect, direction: "column", children: [
|
|
603
|
+
c !== void 0 && !!a && /* @__PURE__ */ i(G, { px: "1", className: y({ [be.BorderBottom]: o.length !== 0 }), children: /* @__PURE__ */ v(
|
|
594
604
|
ie.Root,
|
|
595
605
|
{
|
|
596
|
-
className:
|
|
606
|
+
className: be.DropdownSelectInputWrapper,
|
|
597
607
|
size: "2",
|
|
598
608
|
variant: "soft",
|
|
599
609
|
children: [
|
|
600
|
-
!!
|
|
601
|
-
/* @__PURE__ */
|
|
610
|
+
!!l && !!l.leftInputIcon && /* @__PURE__ */ i(ie.Slot, { children: l.leftInputIcon }),
|
|
611
|
+
/* @__PURE__ */ i(
|
|
602
612
|
ie.Input,
|
|
603
613
|
{
|
|
604
|
-
className:
|
|
605
|
-
value:
|
|
614
|
+
className: be.DropdownSelectInput,
|
|
615
|
+
value: c,
|
|
606
616
|
placeholder: r,
|
|
607
617
|
onChange: C
|
|
608
618
|
}
|
|
609
619
|
),
|
|
610
|
-
!!
|
|
620
|
+
!!l && !!l.rightInputIcon && /* @__PURE__ */ i(ie.Slot, { children: l.rightInputIcon })
|
|
611
621
|
]
|
|
612
622
|
}
|
|
613
623
|
) }),
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
|
|
624
|
+
/* @__PURE__ */ i(G, { p: o.length !== 0 ? "1" : "0", children: /* @__PURE__ */ i(X, { direction: "column", children: o.map(({ content: m, value: P }, w) => /* @__PURE__ */ i(
|
|
625
|
+
ee.Item,
|
|
616
626
|
{
|
|
617
|
-
className:
|
|
618
|
-
onSelect:
|
|
627
|
+
className: be.DropdownSelectItem,
|
|
628
|
+
onSelect: f(P),
|
|
619
629
|
textValue: "",
|
|
620
630
|
asChild: !0,
|
|
621
|
-
children: /* @__PURE__ */
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
624
|
-
|
|
631
|
+
children: /* @__PURE__ */ v(X, { align: "center", height: "max-content", width: "100%", gap: "5", children: [
|
|
632
|
+
/* @__PURE__ */ i(G, { grow: "1", children: m }),
|
|
633
|
+
/* @__PURE__ */ i(
|
|
634
|
+
X,
|
|
625
635
|
{
|
|
626
636
|
justify: "center",
|
|
627
637
|
align: "center",
|
|
628
638
|
height: "max-content",
|
|
629
639
|
width: "4",
|
|
630
|
-
children:
|
|
640
|
+
children: t === P && (l && (l != null && l.selectedItemIcon) ? l.selectedItemIcon : /* @__PURE__ */ i(St, {}))
|
|
631
641
|
}
|
|
632
642
|
)
|
|
633
643
|
] })
|
|
634
644
|
},
|
|
635
|
-
|
|
645
|
+
w
|
|
636
646
|
)) }) })
|
|
637
647
|
] }) })
|
|
638
648
|
] });
|
|
639
649
|
}
|
|
640
650
|
)
|
|
641
|
-
), qo =
|
|
642
|
-
const [n,
|
|
643
|
-
|
|
644
|
-
}, []), r =
|
|
645
|
-
|
|
651
|
+
), qo = $(function({ children: o }) {
|
|
652
|
+
const [n, t] = k(!1), s = x(() => {
|
|
653
|
+
t(!0);
|
|
654
|
+
}, []), r = x(() => {
|
|
655
|
+
t(!1);
|
|
646
656
|
}, []);
|
|
647
|
-
return
|
|
657
|
+
return o({
|
|
648
658
|
isHovered: n,
|
|
649
|
-
onPointerEnter:
|
|
659
|
+
onPointerEnter: s,
|
|
650
660
|
onPointerLeave: r
|
|
651
661
|
});
|
|
652
|
-
}),
|
|
653
|
-
fluid:
|
|
654
|
-
},
|
|
655
|
-
className:
|
|
662
|
+
}), Xo = "_fluid_7n1wr_1", vt = {
|
|
663
|
+
fluid: Xo
|
|
664
|
+
}, Jo = S(function({
|
|
665
|
+
className: o,
|
|
656
666
|
fluid: n,
|
|
657
|
-
size:
|
|
658
|
-
variant:
|
|
667
|
+
size: t = "medium",
|
|
668
|
+
variant: s = "surface",
|
|
659
669
|
severity: r = "primary",
|
|
660
|
-
itemSeverity:
|
|
661
|
-
placeholder:
|
|
670
|
+
itemSeverity: c = "info",
|
|
671
|
+
placeholder: a = "Select",
|
|
662
672
|
side: d,
|
|
663
|
-
items:
|
|
673
|
+
items: l = [],
|
|
664
674
|
value: h,
|
|
665
675
|
id: u,
|
|
666
676
|
...g
|
|
667
|
-
},
|
|
668
|
-
const C = ce(
|
|
669
|
-
return /* @__PURE__ */
|
|
677
|
+
}, f) {
|
|
678
|
+
const C = ce(t, Pe), b = E(r), m = E(c);
|
|
679
|
+
return /* @__PURE__ */ F(se.Root, { size: C, ...g, key: h === void 0 ? 1 : 0, value: h }, /* @__PURE__ */ i(
|
|
670
680
|
se.Trigger,
|
|
671
681
|
{
|
|
672
|
-
className:
|
|
673
|
-
[
|
|
682
|
+
className: y(o, {
|
|
683
|
+
[vt.fluid]: n
|
|
674
684
|
}),
|
|
675
685
|
id: u,
|
|
676
|
-
ref:
|
|
677
|
-
variant:
|
|
678
|
-
placeholder:
|
|
679
|
-
color:
|
|
686
|
+
ref: f,
|
|
687
|
+
variant: s,
|
|
688
|
+
placeholder: a,
|
|
689
|
+
color: b
|
|
680
690
|
}
|
|
681
|
-
), /* @__PURE__ */
|
|
691
|
+
), /* @__PURE__ */ i(
|
|
682
692
|
se.Content,
|
|
683
693
|
{
|
|
684
694
|
side: d,
|
|
685
|
-
className:
|
|
695
|
+
className: vt.contentDefault,
|
|
686
696
|
position: "popper",
|
|
687
|
-
variant:
|
|
688
|
-
color:
|
|
689
|
-
children:
|
|
697
|
+
variant: s !== "surface" ? "soft" : "solid",
|
|
698
|
+
color: m,
|
|
699
|
+
children: l.map(({ itemContent: P, value: w, ...N }) => /* @__PURE__ */ i(se.Item, { className: "overmap-select-item", value: w, ...N, children: P }, w))
|
|
690
700
|
}
|
|
691
701
|
));
|
|
692
|
-
}),
|
|
693
|
-
|
|
694
|
-
const { checked: n, label:
|
|
695
|
-
return /* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
|
|
702
|
+
}), Qo = W.memo(Jo), _t = $(
|
|
703
|
+
S((e, o) => {
|
|
704
|
+
const { checked: n, label: t, value: s, size: r = "2" } = e;
|
|
705
|
+
return /* @__PURE__ */ i(G, { asChild: !0, px: r, children: /* @__PURE__ */ i(se.Item, { value: s, ref: o, children: /* @__PURE__ */ v(D, { gap: r, align: "center", children: [
|
|
706
|
+
/* @__PURE__ */ i(wn, { checked: n }),
|
|
707
|
+
t
|
|
698
708
|
] }) }) });
|
|
699
709
|
})
|
|
700
|
-
), Ge = "__select_all__",
|
|
701
|
-
|
|
702
|
-
const [n,
|
|
710
|
+
), Ge = "__select_all__", Ns = $(
|
|
711
|
+
S((e, o) => {
|
|
712
|
+
const [n, t] = k(!1), { placeholder: s, value: r, onValueChange: c, options: a, disabled: d, name: l, ...h } = e, u = ce(e.size, Pe), g = E(e.severity), f = R(() => new Map(a.map((w) => [w.value, w.label])), [a]), C = r.length > 4 ? (
|
|
703
713
|
// to ensure the width of the select doesn't get too big
|
|
704
714
|
`${r.length} options selected`
|
|
705
715
|
) : (
|
|
706
716
|
// convert the values to labels
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
),
|
|
709
|
-
|
|
710
|
-
}, []), P =
|
|
711
|
-
(
|
|
712
|
-
let
|
|
713
|
-
|
|
717
|
+
/* @__PURE__ */ i("span", { children: r.flatMap((w) => [f.get(w), ", "]).slice(0, -1) })
|
|
718
|
+
), b = x(() => t(!1), []), m = x((w) => {
|
|
719
|
+
w && t(!0);
|
|
720
|
+
}, []), P = x(
|
|
721
|
+
(w) => {
|
|
722
|
+
let N;
|
|
723
|
+
w === Ge ? N = r.length === a.length ? [] : a.map((te) => te.value) : N = r.includes(w) ? r.filter((A) => A !== w) : [...r, w], c(N);
|
|
714
724
|
},
|
|
715
|
-
[
|
|
725
|
+
[c, a, r]
|
|
716
726
|
);
|
|
717
|
-
return
|
|
718
|
-
if (
|
|
727
|
+
return M(() => {
|
|
728
|
+
if (a.some(({ value: w }) => w === Ge))
|
|
719
729
|
throw new Error(`Cannot have an option with the value "${Ge}"`);
|
|
720
|
-
}, [
|
|
730
|
+
}, [a]), /* @__PURE__ */ v(
|
|
721
731
|
se.Root,
|
|
722
732
|
{
|
|
723
733
|
open: n,
|
|
724
734
|
value: "",
|
|
725
|
-
onOpenChange:
|
|
735
|
+
onOpenChange: m,
|
|
726
736
|
onValueChange: P,
|
|
727
737
|
disabled: d,
|
|
728
738
|
size: u,
|
|
729
|
-
name:
|
|
739
|
+
name: l,
|
|
730
740
|
autoComplete: "off",
|
|
731
741
|
children: [
|
|
732
|
-
/* @__PURE__ */
|
|
742
|
+
/* @__PURE__ */ i(
|
|
733
743
|
se.Trigger,
|
|
734
744
|
{
|
|
735
|
-
ref:
|
|
745
|
+
ref: o,
|
|
736
746
|
color: g,
|
|
737
|
-
placeholder: r.length > 0 ? C :
|
|
747
|
+
placeholder: r.length > 0 ? C : s,
|
|
738
748
|
"data-placeholder": r.length > 0 ? void 0 : !0,
|
|
739
749
|
...h
|
|
740
750
|
}
|
|
741
751
|
),
|
|
742
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ v(
|
|
743
753
|
se.Content,
|
|
744
754
|
{
|
|
745
755
|
color: "gray",
|
|
746
756
|
variant: "soft",
|
|
747
757
|
position: "popper",
|
|
748
|
-
onEscapeKeyDown:
|
|
749
|
-
onPointerDownOutside:
|
|
758
|
+
onEscapeKeyDown: b,
|
|
759
|
+
onPointerDownOutside: b,
|
|
750
760
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
|
|
761
|
+
/* @__PURE__ */ i(
|
|
762
|
+
_t,
|
|
753
763
|
{
|
|
754
764
|
value: Ge,
|
|
755
765
|
label: "Select all",
|
|
756
|
-
checked: r.length ===
|
|
766
|
+
checked: r.length === a.length,
|
|
757
767
|
size: u
|
|
758
768
|
}
|
|
759
769
|
),
|
|
760
|
-
|
|
761
|
-
|
|
770
|
+
a.map((w) => /* @__PURE__ */ i(
|
|
771
|
+
_t,
|
|
762
772
|
{
|
|
763
|
-
|
|
764
|
-
checked: r.includes(
|
|
773
|
+
...w,
|
|
774
|
+
checked: r.includes(w.value),
|
|
765
775
|
size: u
|
|
766
776
|
},
|
|
767
|
-
|
|
777
|
+
w.value
|
|
768
778
|
))
|
|
769
779
|
]
|
|
770
780
|
}
|
|
@@ -773,143 +783,143 @@ const to = {
|
|
|
773
783
|
}
|
|
774
784
|
);
|
|
775
785
|
})
|
|
776
|
-
),
|
|
786
|
+
), Yo = {
|
|
777
787
|
default: "_default_u936h_1"
|
|
778
|
-
},
|
|
779
|
-
const d =
|
|
780
|
-
|
|
788
|
+
}, Zo = S(function({ className: o, severity: n = "primary", icon: t, defaultChecked: s = !1, onCheckedChange: r, ...c }, a) {
|
|
789
|
+
const d = H(null), [l, h] = k(c.checked ? c.checked : s), [u, g] = k(), f = E(n);
|
|
790
|
+
ct(() => {
|
|
781
791
|
var P;
|
|
782
|
-
const
|
|
783
|
-
"current" in
|
|
784
|
-
}, [
|
|
785
|
-
const C =
|
|
786
|
-
(
|
|
787
|
-
h(
|
|
792
|
+
const m = a || d;
|
|
793
|
+
"current" in m && m.current && g((P = m.current) == null ? void 0 : P.querySelector("span.rt-SwitchThumb"));
|
|
794
|
+
}, [a]);
|
|
795
|
+
const C = x(
|
|
796
|
+
(m) => {
|
|
797
|
+
h(m), r && r(m);
|
|
788
798
|
},
|
|
789
799
|
[r]
|
|
790
|
-
),
|
|
791
|
-
return /* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
800
|
+
), b = c.checked ? c.checked : l;
|
|
801
|
+
return /* @__PURE__ */ v(J, { children: [
|
|
802
|
+
/* @__PURE__ */ i(
|
|
793
803
|
yn,
|
|
794
804
|
{
|
|
795
|
-
className:
|
|
796
|
-
ref:
|
|
797
|
-
color:
|
|
805
|
+
className: y("overmap-switch", o, Yo.default),
|
|
806
|
+
ref: a || d,
|
|
807
|
+
color: f,
|
|
798
808
|
radius: "full",
|
|
799
|
-
defaultChecked:
|
|
809
|
+
defaultChecked: s,
|
|
800
810
|
onCheckedChange: C,
|
|
801
|
-
...
|
|
811
|
+
...c
|
|
802
812
|
}
|
|
803
813
|
),
|
|
804
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ i(xn, { container: u, asChild: !0, children: t && "checked" in t ? b ? t.checked : t.unchecked : t })
|
|
805
815
|
] });
|
|
806
|
-
}),
|
|
807
|
-
sidebarContent:
|
|
808
|
-
right:
|
|
809
|
-
resizeHandle:
|
|
810
|
-
left:
|
|
811
|
-
overlay:
|
|
812
|
-
},
|
|
813
|
-
side:
|
|
816
|
+
}), Ts = $(Zo), er = "_sidebarContent_1onyo_1", tr = "_right_1onyo_7", nr = "_resizeHandle_1onyo_10", or = "_left_1onyo_13", rr = "_overlay_1onyo_33", we = {
|
|
817
|
+
sidebarContent: er,
|
|
818
|
+
right: tr,
|
|
819
|
+
resizeHandle: nr,
|
|
820
|
+
left: or,
|
|
821
|
+
overlay: rr
|
|
822
|
+
}, ir = { width: "auto", height: "100%" }, sr = S(function({
|
|
823
|
+
side: o = "left",
|
|
814
824
|
modal: n = !0,
|
|
815
|
-
children:
|
|
816
|
-
open:
|
|
825
|
+
children: t,
|
|
826
|
+
open: s,
|
|
817
827
|
containerSelector: r,
|
|
818
|
-
overlay:
|
|
819
|
-
resizable:
|
|
828
|
+
overlay: c = !0,
|
|
829
|
+
resizable: a = !0,
|
|
820
830
|
// Props related to Resizable
|
|
821
831
|
minWidth: d = "300px",
|
|
822
|
-
maxWidth:
|
|
832
|
+
maxWidth: l = "500px",
|
|
823
833
|
...h
|
|
824
834
|
}, u) {
|
|
825
|
-
const g =
|
|
826
|
-
return
|
|
827
|
-
const
|
|
835
|
+
const g = o === "right", f = o === "left", [C, b] = k();
|
|
836
|
+
return M(() => {
|
|
837
|
+
const m = r ?? '[data-is-root-theme="true"]', P = document.querySelector(m);
|
|
828
838
|
if (P === void 0)
|
|
829
|
-
throw new Error(`Could not find a container element using the following selector ${
|
|
830
|
-
|
|
831
|
-
}, [r]), /* @__PURE__ */
|
|
832
|
-
|
|
833
|
-
/* @__PURE__ */
|
|
839
|
+
throw new Error(`Could not find a container element using the following selector ${m}`);
|
|
840
|
+
b(P);
|
|
841
|
+
}, [r]), /* @__PURE__ */ i(Ve.Root, { open: s, modal: n, children: /* @__PURE__ */ v(Ve.Portal, { container: C, children: [
|
|
842
|
+
c && /* @__PURE__ */ i(Ve.Overlay, { className: y(we.overlay) }),
|
|
843
|
+
/* @__PURE__ */ i(
|
|
834
844
|
Ve.Content,
|
|
835
845
|
{
|
|
836
|
-
className:
|
|
837
|
-
[
|
|
838
|
-
[
|
|
846
|
+
className: y("overmap-sidebar", "rt-DialogContent", we.sidebarContent, {
|
|
847
|
+
[we.left]: f,
|
|
848
|
+
[we.right]: g
|
|
839
849
|
}),
|
|
840
850
|
ref: u,
|
|
841
851
|
asChild: !0,
|
|
842
852
|
...h,
|
|
843
|
-
children: /* @__PURE__ */
|
|
844
|
-
|
|
853
|
+
children: /* @__PURE__ */ i(G, { width: "auto", children: /* @__PURE__ */ i(
|
|
854
|
+
Qe,
|
|
845
855
|
{
|
|
846
856
|
minWidth: d,
|
|
847
|
-
maxWidth:
|
|
848
|
-
defaultSize:
|
|
849
|
-
enable: { right:
|
|
850
|
-
handleClasses: { left:
|
|
857
|
+
maxWidth: l,
|
|
858
|
+
defaultSize: ir,
|
|
859
|
+
enable: { right: a && f, left: a && g },
|
|
860
|
+
handleClasses: { left: we.resizeHandle, right: we.resizeHandle },
|
|
851
861
|
handleComponent: {
|
|
852
|
-
right: /* @__PURE__ */
|
|
853
|
-
left: /* @__PURE__ */
|
|
862
|
+
right: /* @__PURE__ */ i(Je, {}),
|
|
863
|
+
left: /* @__PURE__ */ i(Je, {})
|
|
854
864
|
},
|
|
855
|
-
children:
|
|
865
|
+
children: t
|
|
856
866
|
}
|
|
857
867
|
) })
|
|
858
868
|
}
|
|
859
869
|
)
|
|
860
870
|
] }) });
|
|
861
|
-
}),
|
|
871
|
+
}), Ds = $(sr), ar = "_outerContent_1iy9c_1", cr = "_enter_1iy9c_4", lr = "_right_1iy9c_4", dr = "_left_1iy9c_8", ur = "_enterActive_1iy9c_12", hr = "_exitActive_1iy9c_22", pr = "_exitDone_1iy9c_32", fr = "_resizable_1iy9c_41", mr = "_slideOutOverlay_1iy9c_47", Z = {
|
|
862
872
|
outerContent: ar,
|
|
863
|
-
enter:
|
|
864
|
-
right:
|
|
865
|
-
left:
|
|
866
|
-
enterActive:
|
|
867
|
-
exitActive:
|
|
868
|
-
exitDone:
|
|
869
|
-
resizable:
|
|
870
|
-
slideOutOverlay:
|
|
871
|
-
},
|
|
872
|
-
className:
|
|
873
|
+
enter: cr,
|
|
874
|
+
right: lr,
|
|
875
|
+
left: dr,
|
|
876
|
+
enterActive: ur,
|
|
877
|
+
exitActive: hr,
|
|
878
|
+
exitDone: pr,
|
|
879
|
+
resizable: fr,
|
|
880
|
+
slideOutOverlay: mr
|
|
881
|
+
}, gr = 200, Is = $(function({
|
|
882
|
+
className: o,
|
|
873
883
|
open: n,
|
|
874
|
-
side:
|
|
875
|
-
children:
|
|
884
|
+
side: t = "left",
|
|
885
|
+
children: s,
|
|
876
886
|
minWidth: r,
|
|
877
|
-
maxWidth:
|
|
878
|
-
resizable:
|
|
887
|
+
maxWidth: c,
|
|
888
|
+
resizable: a = !0,
|
|
879
889
|
overlay: d = !1,
|
|
880
|
-
modal:
|
|
890
|
+
modal: l = !1,
|
|
881
891
|
resizeHandle: h,
|
|
882
892
|
position: u = "absolute",
|
|
883
893
|
...g
|
|
884
894
|
}) {
|
|
885
|
-
const
|
|
886
|
-
(
|
|
887
|
-
|
|
895
|
+
const f = H(null), [C, b] = k(r), m = t === "left", P = t === "right", w = x(
|
|
896
|
+
(N, A, te, Ee) => {
|
|
897
|
+
b(te.clientWidth), f.current && (f.current.style.width = `${te.clientWidth}px`);
|
|
888
898
|
},
|
|
889
899
|
[]
|
|
890
900
|
);
|
|
891
|
-
return /* @__PURE__ */
|
|
901
|
+
return /* @__PURE__ */ i(
|
|
892
902
|
In,
|
|
893
903
|
{
|
|
894
904
|
in: n,
|
|
895
905
|
classNames: {
|
|
896
|
-
enter:
|
|
897
|
-
enterActive:
|
|
898
|
-
exitActive:
|
|
899
|
-
exitDone:
|
|
906
|
+
enter: Z.enter,
|
|
907
|
+
enterActive: Z.enterActive,
|
|
908
|
+
exitActive: Z.exitActive,
|
|
909
|
+
exitDone: Z.exitDone
|
|
900
910
|
},
|
|
901
|
-
timeout:
|
|
902
|
-
nodeRef:
|
|
911
|
+
timeout: gr,
|
|
912
|
+
nodeRef: f,
|
|
903
913
|
unmountOnExit: !0,
|
|
904
914
|
mountOnEnter: !0,
|
|
905
|
-
children: /* @__PURE__ */
|
|
906
|
-
d && /* @__PURE__ */
|
|
907
|
-
/* @__PURE__ */
|
|
915
|
+
children: /* @__PURE__ */ v(J, { children: [
|
|
916
|
+
d && /* @__PURE__ */ i("div", { className: y("overamp-slide-out-overlay", Z.slideOutOverlay) }),
|
|
917
|
+
/* @__PURE__ */ i(Dn, { disableOutsidePointerEvents: l, asChild: !0, ...g, children: /* @__PURE__ */ i(
|
|
908
918
|
D,
|
|
909
919
|
{
|
|
910
|
-
className:
|
|
911
|
-
[
|
|
912
|
-
[
|
|
920
|
+
className: y("overmap-slide-out", o, Z.outerContent, {
|
|
921
|
+
[Z.left]: m,
|
|
922
|
+
[Z.right]: P
|
|
913
923
|
}),
|
|
914
924
|
style: { "--slide-out-width": `${C}px` },
|
|
915
925
|
height: "100%",
|
|
@@ -917,20 +927,20 @@ const to = {
|
|
|
917
927
|
position: u,
|
|
918
928
|
top: "0",
|
|
919
929
|
bottom: "0",
|
|
920
|
-
left:
|
|
930
|
+
left: m ? "0" : void 0,
|
|
921
931
|
right: P ? "0" : void 0,
|
|
922
|
-
ref:
|
|
923
|
-
children: /* @__PURE__ */
|
|
924
|
-
|
|
932
|
+
ref: f,
|
|
933
|
+
children: /* @__PURE__ */ i(
|
|
934
|
+
Qe,
|
|
925
935
|
{
|
|
926
|
-
className:
|
|
936
|
+
className: Z.resizable,
|
|
927
937
|
defaultSize: { width: C, height: "100%" },
|
|
928
|
-
onResize:
|
|
929
|
-
enable: { right:
|
|
938
|
+
onResize: w,
|
|
939
|
+
enable: { right: a && m, left: a && P },
|
|
930
940
|
handleComponent: { left: h, right: h },
|
|
931
941
|
minWidth: r,
|
|
932
|
-
maxWidth:
|
|
933
|
-
children:
|
|
942
|
+
maxWidth: c,
|
|
943
|
+
children: s
|
|
934
944
|
}
|
|
935
945
|
)
|
|
936
946
|
}
|
|
@@ -938,313 +948,313 @@ const to = {
|
|
|
938
948
|
] })
|
|
939
949
|
}
|
|
940
950
|
);
|
|
941
|
-
}),
|
|
942
|
-
accommodateCharCount:
|
|
943
|
-
wrapper:
|
|
951
|
+
}), Cr = "_accommodateCharCount_1octa_1", vr = "_wrapper_1octa_5", _r = "_noLeftIcon_1octa_14", br = "_noRightIcon_1octa_18", wr = "_ghost_1octa_22", yr = "_charCount_1octa_40", pe = {
|
|
952
|
+
accommodateCharCount: Cr,
|
|
953
|
+
wrapper: vr,
|
|
944
954
|
default: "_default_1octa_10",
|
|
945
|
-
noLeftIcon:
|
|
955
|
+
noLeftIcon: _r,
|
|
946
956
|
noRightIcon: br,
|
|
947
|
-
ghost:
|
|
948
|
-
charCount:
|
|
949
|
-
},
|
|
950
|
-
className:
|
|
957
|
+
ghost: wr,
|
|
958
|
+
charCount: yr
|
|
959
|
+
}, xr = S(function({
|
|
960
|
+
className: o,
|
|
951
961
|
leftSlot: n,
|
|
952
|
-
rightSlot:
|
|
953
|
-
size:
|
|
962
|
+
rightSlot: t,
|
|
963
|
+
size: s = "medium",
|
|
954
964
|
showInputLength: r,
|
|
955
|
-
value:
|
|
956
|
-
variant:
|
|
965
|
+
value: c,
|
|
966
|
+
variant: a,
|
|
957
967
|
severity: d = "primary",
|
|
958
|
-
...
|
|
968
|
+
...l
|
|
959
969
|
}, h) {
|
|
960
|
-
const u = ce(
|
|
961
|
-
return /* @__PURE__ */
|
|
970
|
+
const u = ce(s, Pe), g = E(d), f = r || r === void 0 && l.maxLength !== void 0, C = c !== void 0 ? c.toString() : void 0;
|
|
971
|
+
return /* @__PURE__ */ v(
|
|
962
972
|
ie.Root,
|
|
963
973
|
{
|
|
964
|
-
className:
|
|
965
|
-
[pe.ghost]:
|
|
966
|
-
[pe.accommodateCharCount]:
|
|
974
|
+
className: y(pe.wrapper, o, {
|
|
975
|
+
[pe.ghost]: a === "ghost",
|
|
976
|
+
[pe.accommodateCharCount]: f
|
|
967
977
|
}),
|
|
968
978
|
size: u,
|
|
969
|
-
variant:
|
|
979
|
+
variant: a !== "ghost" ? a : void 0,
|
|
970
980
|
color: g,
|
|
971
981
|
children: [
|
|
972
|
-
n && /* @__PURE__ */
|
|
973
|
-
/* @__PURE__ */
|
|
982
|
+
n && /* @__PURE__ */ i(ie.Slot, { children: n }),
|
|
983
|
+
/* @__PURE__ */ i(
|
|
974
984
|
ie.Input,
|
|
975
985
|
{
|
|
976
|
-
className:
|
|
986
|
+
className: y(pe.default, {
|
|
977
987
|
[pe.noLeftIcon]: !n,
|
|
978
|
-
[pe.noRightIcon]: !
|
|
988
|
+
[pe.noRightIcon]: !t
|
|
979
989
|
}),
|
|
980
990
|
ref: h,
|
|
981
|
-
value:
|
|
991
|
+
value: c,
|
|
982
992
|
size: u,
|
|
983
|
-
variant:
|
|
993
|
+
variant: a !== "ghost" ? a : void 0,
|
|
984
994
|
color: g,
|
|
985
|
-
...
|
|
995
|
+
...l
|
|
986
996
|
}
|
|
987
997
|
),
|
|
988
|
-
|
|
989
|
-
|
|
998
|
+
t && /* @__PURE__ */ i(ie.Slot, { children: t }),
|
|
999
|
+
f && /* @__PURE__ */ i(Re, { as: "p", className: pe.charCount, size: "1", color: "gray", children: l.maxLength !== void 0 ? `${C == null ? void 0 : C.length}/${l.maxLength}` : `${C == null ? void 0 : C.length}` })
|
|
990
1000
|
]
|
|
991
1001
|
}
|
|
992
1002
|
);
|
|
993
|
-
}), Sr =
|
|
994
|
-
color:
|
|
1003
|
+
}), Sr = W.memo(xr), Os = $(function({
|
|
1004
|
+
color: o,
|
|
995
1005
|
severity: n,
|
|
996
|
-
children:
|
|
1006
|
+
children: t
|
|
997
1007
|
}) {
|
|
998
|
-
const
|
|
1008
|
+
const s = E(n ?? "primary"), r = R(
|
|
999
1009
|
() => ({
|
|
1000
|
-
"data-accent-color": n &&
|
|
1010
|
+
"data-accent-color": n && s ? s : o || "gray",
|
|
1001
1011
|
style: {
|
|
1002
1012
|
color: "var(--accent-a11)"
|
|
1003
1013
|
}
|
|
1004
1014
|
}),
|
|
1005
|
-
[
|
|
1015
|
+
[o, n, s]
|
|
1006
1016
|
);
|
|
1007
|
-
return
|
|
1008
|
-
}),
|
|
1009
|
-
wrapper:
|
|
1010
|
-
},
|
|
1011
|
-
return /* @__PURE__ */
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
|
|
1017
|
+
return Ae(t, { ...r });
|
|
1018
|
+
}), $r = "_wrapper_tmtz0_1", Pr = {
|
|
1019
|
+
wrapper: $r
|
|
1020
|
+
}, kr = S(function({ className: o, trigger: n, open: t, onOpenChange: s, defaultOpen: r = !1, modal: c = !1, children: a, ...d }, l) {
|
|
1021
|
+
return /* @__PURE__ */ v(je.Root, { defaultOpen: r, modal: c, open: t, onOpenChange: s, children: [
|
|
1022
|
+
/* @__PURE__ */ i(je.Trigger, { children: n }),
|
|
1023
|
+
/* @__PURE__ */ i(
|
|
1024
|
+
je.Content,
|
|
1015
1025
|
{
|
|
1016
|
-
ref:
|
|
1017
|
-
className:
|
|
1026
|
+
ref: l,
|
|
1027
|
+
className: y("overmap-popover", o, Pr.wrapper),
|
|
1018
1028
|
...d,
|
|
1019
|
-
children:
|
|
1029
|
+
children: a(je.Close)
|
|
1020
1030
|
}
|
|
1021
1031
|
)
|
|
1022
1032
|
] });
|
|
1023
|
-
}),
|
|
1024
|
-
wrapper:
|
|
1025
|
-
panelContent:
|
|
1026
|
-
left:
|
|
1027
|
-
right:
|
|
1028
|
-
resizable:
|
|
1029
|
-
resizeHandle:
|
|
1030
|
-
panelMainContent:
|
|
1031
|
-
},
|
|
1032
|
-
children:
|
|
1033
|
+
}), Nr = W.memo(kr), Tr = "_wrapper_1ssf2_1", Dr = "_panelContent_1ssf2_6", Ir = "_left_1ssf2_14", Or = "_right_1ssf2_18", Rr = "_resizable_1ssf2_23", zr = "_resizeHandle_1ssf2_28", Ar = "_panelMainContent_1ssf2_48", U = {
|
|
1034
|
+
wrapper: Tr,
|
|
1035
|
+
panelContent: Dr,
|
|
1036
|
+
left: Ir,
|
|
1037
|
+
right: Or,
|
|
1038
|
+
resizable: Rr,
|
|
1039
|
+
resizeHandle: zr,
|
|
1040
|
+
panelMainContent: Ar
|
|
1041
|
+
}, bt = 200, oe = 150, Rs = $(function({
|
|
1042
|
+
children: o,
|
|
1033
1043
|
showLeft: n,
|
|
1034
|
-
leftPanel:
|
|
1035
|
-
leftMinWidth:
|
|
1044
|
+
leftPanel: t,
|
|
1045
|
+
leftMinWidth: s = bt,
|
|
1036
1046
|
showRight: r,
|
|
1037
|
-
rightPanel:
|
|
1038
|
-
rightMinWidth:
|
|
1047
|
+
rightPanel: c,
|
|
1048
|
+
rightMinWidth: a = bt,
|
|
1039
1049
|
resizeable: d
|
|
1040
1050
|
}) {
|
|
1041
|
-
const
|
|
1042
|
-
(
|
|
1043
|
-
if (!
|
|
1051
|
+
const l = H(null), h = H(null), [u, g] = k(0), [f, C] = k(), b = H(null), [m, P] = k(0), [w, N] = k(), A = x(
|
|
1052
|
+
(I, B, V) => (j, Me, ke, Ne) => {
|
|
1053
|
+
if (!l.current)
|
|
1044
1054
|
return;
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1055
|
+
const de = I + Ne.width;
|
|
1056
|
+
V(l.current.clientWidth - de), B(() => de);
|
|
1047
1057
|
},
|
|
1048
1058
|
[]
|
|
1049
|
-
),
|
|
1050
|
-
(
|
|
1051
|
-
[
|
|
1052
|
-
),
|
|
1053
|
-
(
|
|
1054
|
-
[
|
|
1055
|
-
), Ce =
|
|
1056
|
-
(
|
|
1057
|
-
if (!
|
|
1059
|
+
), te = x(
|
|
1060
|
+
(I, B, V, j) => A(u, g, N)(I, B, V, j),
|
|
1061
|
+
[A, u]
|
|
1062
|
+
), Ee = x(
|
|
1063
|
+
(I, B, V, j) => A(m, P, C)(I, B, V, j),
|
|
1064
|
+
[A, m]
|
|
1065
|
+
), Ce = x(
|
|
1066
|
+
(I, B, V, j, Me, ke, Ne, de) => {
|
|
1067
|
+
if (!l.current)
|
|
1058
1068
|
return;
|
|
1059
|
-
let
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1069
|
+
let Q = I;
|
|
1070
|
+
if (Q === 0 && (Q = B, V(Q)), ke) {
|
|
1071
|
+
const ne = l.current.clientWidth - Q;
|
|
1072
|
+
de(ne), Me > ne && (Ne(ne), j(l.current.clientWidth - ne));
|
|
1063
1073
|
}
|
|
1064
1074
|
},
|
|
1065
1075
|
[]
|
|
1066
|
-
),
|
|
1076
|
+
), Ye = x(
|
|
1067
1077
|
() => Ce(
|
|
1068
|
-
|
|
1069
|
-
|
|
1078
|
+
m,
|
|
1079
|
+
a,
|
|
1070
1080
|
P,
|
|
1071
|
-
|
|
1081
|
+
N,
|
|
1072
1082
|
u,
|
|
1073
1083
|
n,
|
|
1074
1084
|
g,
|
|
1075
1085
|
C
|
|
1076
1086
|
),
|
|
1077
|
-
[Ce, u,
|
|
1078
|
-
),
|
|
1087
|
+
[Ce, u, a, m, n]
|
|
1088
|
+
), le = x(
|
|
1079
1089
|
() => Ce(
|
|
1080
1090
|
u,
|
|
1081
|
-
|
|
1091
|
+
s,
|
|
1082
1092
|
g,
|
|
1083
1093
|
C,
|
|
1084
|
-
|
|
1094
|
+
m,
|
|
1085
1095
|
r,
|
|
1086
1096
|
P,
|
|
1087
|
-
|
|
1097
|
+
N
|
|
1088
1098
|
),
|
|
1089
|
-
[Ce,
|
|
1090
|
-
),
|
|
1091
|
-
(
|
|
1092
|
-
|
|
1099
|
+
[Ce, s, u, m, r]
|
|
1100
|
+
), ve = x(
|
|
1101
|
+
(I, B) => {
|
|
1102
|
+
l.current && I && B(l.current.clientWidth);
|
|
1093
1103
|
},
|
|
1094
1104
|
[]
|
|
1095
|
-
),
|
|
1096
|
-
() =>
|
|
1097
|
-
[
|
|
1098
|
-
),
|
|
1099
|
-
() =>
|
|
1100
|
-
[
|
|
1101
|
-
),
|
|
1102
|
-
var
|
|
1103
|
-
|
|
1105
|
+
), Ze = x(
|
|
1106
|
+
() => ve(n, C),
|
|
1107
|
+
[ve, n]
|
|
1108
|
+
), et = x(
|
|
1109
|
+
() => ve(r, N),
|
|
1110
|
+
[ve, r]
|
|
1111
|
+
), tt = x(() => {
|
|
1112
|
+
var I, B, V, j;
|
|
1113
|
+
l.current && (C(l.current.clientWidth - (((I = b.current) == null ? void 0 : I.clientWidth) || 0)), N(l.current.clientWidth - (((B = h.current) == null ? void 0 : B.clientWidth) || 0)), g(((V = h.current) == null ? void 0 : V.clientWidth) || 0), P(((j = b.current) == null ? void 0 : j.clientWidth) || 0));
|
|
1104
1114
|
}, []);
|
|
1105
|
-
|
|
1106
|
-
if (!
|
|
1115
|
+
M(() => {
|
|
1116
|
+
if (!l.current)
|
|
1107
1117
|
return;
|
|
1108
|
-
const
|
|
1109
|
-
return
|
|
1110
|
-
|
|
1118
|
+
const I = new ResizeObserver(tt);
|
|
1119
|
+
return I.observe(l.current), () => {
|
|
1120
|
+
I.disconnect();
|
|
1111
1121
|
};
|
|
1112
|
-
}, [
|
|
1113
|
-
const
|
|
1122
|
+
}, [tt]);
|
|
1123
|
+
const Be = R(() => ({
|
|
1114
1124
|
entering: {
|
|
1115
1125
|
transform: `translateX(-${u}px)`,
|
|
1116
1126
|
marginRight: `-${u}px`,
|
|
1117
1127
|
transitionProperty: "transform, margin-right",
|
|
1118
|
-
transitionDuration: `${
|
|
1128
|
+
transitionDuration: `${oe}ms`,
|
|
1119
1129
|
transitionTimingFunction: "linear"
|
|
1120
1130
|
},
|
|
1121
1131
|
entered: {
|
|
1122
1132
|
transform: "translateX(0)",
|
|
1123
1133
|
marginRight: 0,
|
|
1124
1134
|
transitionProperty: "transform, margin-right",
|
|
1125
|
-
transitionDuration: `${
|
|
1135
|
+
transitionDuration: `${oe}ms`,
|
|
1126
1136
|
transitionTimingFunction: "linear"
|
|
1127
1137
|
},
|
|
1128
1138
|
exiting: {
|
|
1129
1139
|
transform: `translateX(-${u}px)`,
|
|
1130
1140
|
marginRight: `-${u}px`,
|
|
1131
1141
|
transitionProperty: "transform, margin-right",
|
|
1132
|
-
transitionDuration: `${
|
|
1142
|
+
transitionDuration: `${oe}ms`,
|
|
1133
1143
|
transitionTimingFunction: "linear"
|
|
1134
1144
|
},
|
|
1135
1145
|
exited: {},
|
|
1136
1146
|
unmounted: {}
|
|
1137
|
-
}), [u]),
|
|
1147
|
+
}), [u]), K = R(() => ({
|
|
1138
1148
|
entering: {
|
|
1139
|
-
transform: `translateX(${
|
|
1140
|
-
marginLeft: `${-
|
|
1149
|
+
transform: `translateX(${m}px)`,
|
|
1150
|
+
marginLeft: `${-m}px`,
|
|
1141
1151
|
transitionProperty: "transform, margin-left",
|
|
1142
|
-
transitionDuration: `${
|
|
1152
|
+
transitionDuration: `${oe}ms`,
|
|
1143
1153
|
transitionTimingFunction: "linear"
|
|
1144
1154
|
},
|
|
1145
1155
|
entered: {
|
|
1146
1156
|
transform: "translateX(0)",
|
|
1147
1157
|
marginLeft: 0,
|
|
1148
1158
|
transitionProperty: "transform, margin-left",
|
|
1149
|
-
transitionDuration: `${
|
|
1159
|
+
transitionDuration: `${oe}ms`,
|
|
1150
1160
|
transitionTimingFunction: "linear"
|
|
1151
1161
|
},
|
|
1152
1162
|
exiting: {
|
|
1153
|
-
transform: `translateX(${
|
|
1154
|
-
marginLeft: `${-
|
|
1163
|
+
transform: `translateX(${m}px)`,
|
|
1164
|
+
marginLeft: `${-m}px`,
|
|
1155
1165
|
transitionProperty: "transform, margin-left",
|
|
1156
|
-
transitionDuration: `${
|
|
1166
|
+
transitionDuration: `${oe}ms`,
|
|
1157
1167
|
transitionTimingFunction: "linear"
|
|
1158
1168
|
},
|
|
1159
1169
|
exited: {},
|
|
1160
1170
|
unmounted: {}
|
|
1161
|
-
}), [
|
|
1162
|
-
return /* @__PURE__ */
|
|
1171
|
+
}), [m]);
|
|
1172
|
+
return /* @__PURE__ */ v(
|
|
1163
1173
|
D,
|
|
1164
1174
|
{
|
|
1165
|
-
className:
|
|
1166
|
-
style: { minWidth: `${
|
|
1167
|
-
ref:
|
|
1175
|
+
className: U.wrapper,
|
|
1176
|
+
style: { minWidth: `${s + a}px` },
|
|
1177
|
+
ref: l,
|
|
1168
1178
|
width: "100%",
|
|
1169
1179
|
height: "100%",
|
|
1170
1180
|
justify: "center",
|
|
1171
1181
|
m: "0",
|
|
1172
1182
|
p: "0",
|
|
1173
1183
|
children: [
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
|
|
1184
|
+
/* @__PURE__ */ i(
|
|
1185
|
+
mt,
|
|
1176
1186
|
{
|
|
1177
1187
|
nodeRef: h,
|
|
1178
|
-
timeout: n ? 0 :
|
|
1188
|
+
timeout: n ? 0 : oe,
|
|
1179
1189
|
in: n,
|
|
1180
1190
|
unmountOnExit: !0,
|
|
1181
|
-
onEntering:
|
|
1182
|
-
onExited:
|
|
1183
|
-
children: (
|
|
1184
|
-
|
|
1191
|
+
onEntering: le,
|
|
1192
|
+
onExited: et,
|
|
1193
|
+
children: (I) => /* @__PURE__ */ i(
|
|
1194
|
+
G,
|
|
1185
1195
|
{
|
|
1186
1196
|
ref: h,
|
|
1187
|
-
className:
|
|
1188
|
-
style:
|
|
1197
|
+
className: y(U.panelContent, U.left),
|
|
1198
|
+
style: Be[I],
|
|
1189
1199
|
width: "auto",
|
|
1190
1200
|
height: "100%",
|
|
1191
1201
|
m: "0",
|
|
1192
1202
|
p: "0",
|
|
1193
|
-
children: /* @__PURE__ */
|
|
1194
|
-
|
|
1203
|
+
children: /* @__PURE__ */ i(
|
|
1204
|
+
Qe,
|
|
1195
1205
|
{
|
|
1196
|
-
className:
|
|
1206
|
+
className: U.resizable,
|
|
1197
1207
|
size: {
|
|
1198
1208
|
width: u,
|
|
1199
1209
|
height: "100%"
|
|
1200
1210
|
},
|
|
1201
|
-
onResizeStop:
|
|
1211
|
+
onResizeStop: te,
|
|
1202
1212
|
enable: { right: (d == null ? void 0 : d.left) !== void 0 ? d.left : !0 },
|
|
1203
|
-
minWidth:
|
|
1204
|
-
maxWidth:
|
|
1205
|
-
handleClasses: { right:
|
|
1213
|
+
minWidth: s,
|
|
1214
|
+
maxWidth: f,
|
|
1215
|
+
handleClasses: { right: y(U.resizeHandle, U.left) },
|
|
1206
1216
|
handleComponent: {
|
|
1207
|
-
right: /* @__PURE__ */
|
|
1217
|
+
right: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" })
|
|
1208
1218
|
},
|
|
1209
|
-
children:
|
|
1219
|
+
children: t
|
|
1210
1220
|
}
|
|
1211
1221
|
)
|
|
1212
1222
|
}
|
|
1213
1223
|
)
|
|
1214
1224
|
}
|
|
1215
1225
|
),
|
|
1216
|
-
/* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
|
|
1226
|
+
/* @__PURE__ */ i("div", { className: U.panelMainContent, children: o }),
|
|
1227
|
+
/* @__PURE__ */ i(
|
|
1228
|
+
mt,
|
|
1219
1229
|
{
|
|
1220
|
-
nodeRef:
|
|
1221
|
-
timeout: r ? 0 :
|
|
1230
|
+
nodeRef: b,
|
|
1231
|
+
timeout: r ? 0 : oe,
|
|
1222
1232
|
in: r,
|
|
1223
1233
|
unmountOnExit: !0,
|
|
1224
|
-
onEntering:
|
|
1225
|
-
onExited:
|
|
1226
|
-
children: (
|
|
1227
|
-
|
|
1234
|
+
onEntering: Ye,
|
|
1235
|
+
onExited: Ze,
|
|
1236
|
+
children: (I) => /* @__PURE__ */ i(
|
|
1237
|
+
G,
|
|
1228
1238
|
{
|
|
1229
|
-
ref:
|
|
1230
|
-
className:
|
|
1231
|
-
style:
|
|
1239
|
+
ref: b,
|
|
1240
|
+
className: y(U.panelContent, U.right),
|
|
1241
|
+
style: K[I],
|
|
1232
1242
|
width: "auto",
|
|
1233
1243
|
height: "100%",
|
|
1234
1244
|
m: "0",
|
|
1235
1245
|
p: "0",
|
|
1236
|
-
children: /* @__PURE__ */
|
|
1237
|
-
|
|
1246
|
+
children: /* @__PURE__ */ i(
|
|
1247
|
+
Qe,
|
|
1238
1248
|
{
|
|
1239
|
-
className:
|
|
1240
|
-
size: { width:
|
|
1241
|
-
onResizeStop:
|
|
1249
|
+
className: U.resizable,
|
|
1250
|
+
size: { width: m, height: "100%" },
|
|
1251
|
+
onResizeStop: Ee,
|
|
1242
1252
|
enable: { left: (d == null ? void 0 : d.right) !== void 0 ? d.right : !0 },
|
|
1243
|
-
minWidth:
|
|
1244
|
-
maxWidth:
|
|
1245
|
-
handleClasses: { left:
|
|
1246
|
-
handleComponent: { left: /* @__PURE__ */
|
|
1247
|
-
children:
|
|
1253
|
+
minWidth: a,
|
|
1254
|
+
maxWidth: w,
|
|
1255
|
+
handleClasses: { left: y(U.resizeHandle, U.right) },
|
|
1256
|
+
handleComponent: { left: /* @__PURE__ */ i(Je, { height: "14px", width: "14px" }) },
|
|
1257
|
+
children: c
|
|
1248
1258
|
}
|
|
1249
1259
|
)
|
|
1250
1260
|
}
|
|
@@ -1254,159 +1264,159 @@ const to = {
|
|
|
1254
1264
|
]
|
|
1255
1265
|
}
|
|
1256
1266
|
);
|
|
1257
|
-
}),
|
|
1258
|
-
multiPagePopover:
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
pageTitle: Er,
|
|
1262
|
-
buttonContainer: Br,
|
|
1267
|
+
}), Er = "_multiPagePopover_spfw7_1", Br = "_pageTitle_spfw7_12", Mr = "_buttonContainer_spfw7_17", Lr = "_optionsButtonContainer_spfw7_22", Wr = "_optionsButton_spfw7_22", Xe = {
|
|
1268
|
+
multiPagePopover: Er,
|
|
1269
|
+
pageTitle: Br,
|
|
1270
|
+
buttonContainer: Mr,
|
|
1263
1271
|
optionsButtonContainer: Lr,
|
|
1264
|
-
optionsButton:
|
|
1272
|
+
optionsButton: Wr
|
|
1265
1273
|
};
|
|
1266
|
-
function
|
|
1267
|
-
if (!
|
|
1268
|
-
return
|
|
1269
|
-
const
|
|
1270
|
-
|
|
1274
|
+
function Et(e, o, n, t = 0) {
|
|
1275
|
+
if (!e.options)
|
|
1276
|
+
return e.content || /* @__PURE__ */ i(J, {});
|
|
1277
|
+
const s = e.options.map((r, c) => /* @__PURE__ */ i(
|
|
1278
|
+
$e,
|
|
1271
1279
|
{
|
|
1272
|
-
className:
|
|
1280
|
+
className: y(Xe.optionsButton, r.buttonClassName),
|
|
1273
1281
|
variant: "ghost",
|
|
1274
1282
|
radius: "large",
|
|
1275
1283
|
style: {
|
|
1276
1284
|
width: n === "vertical" ? "100%" : "auto"
|
|
1277
1285
|
},
|
|
1278
|
-
|
|
1279
|
-
|
|
1286
|
+
severity: "info",
|
|
1287
|
+
highContrast: !0,
|
|
1288
|
+
onClick: r.onClick || (() => o(
|
|
1289
|
+
Et(r.page || {}, o, n, t + 1)
|
|
1280
1290
|
)),
|
|
1281
1291
|
children: r.label
|
|
1282
1292
|
},
|
|
1283
|
-
`${r.value}-page-${
|
|
1293
|
+
`${r.value}-page-${t}-button-${c}`
|
|
1284
1294
|
));
|
|
1285
|
-
return /* @__PURE__ */
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
/* @__PURE__ */
|
|
1295
|
+
return /* @__PURE__ */ v(J, { children: [
|
|
1296
|
+
e.title && /* @__PURE__ */ i("div", { className: Xe.pageTitle, children: e.title }),
|
|
1297
|
+
e.content,
|
|
1298
|
+
/* @__PURE__ */ i(
|
|
1289
1299
|
"div",
|
|
1290
1300
|
{
|
|
1291
|
-
className:
|
|
1301
|
+
className: y(Xe.optionsButtonContainer, e.buttonsContainerClassName),
|
|
1292
1302
|
style: {
|
|
1293
1303
|
flexDirection: n === "vertical" ? "column" : "row"
|
|
1294
1304
|
},
|
|
1295
|
-
children:
|
|
1305
|
+
children: s
|
|
1296
1306
|
}
|
|
1297
1307
|
)
|
|
1298
1308
|
] });
|
|
1299
1309
|
}
|
|
1300
|
-
const
|
|
1301
|
-
const [
|
|
1302
|
-
|
|
1303
|
-
}, [
|
|
1304
|
-
return /* @__PURE__ */
|
|
1305
|
-
|
|
1310
|
+
const Hr = S(function({ page: o, className: n, direction: t = "vertical", ...s }, r) {
|
|
1311
|
+
const [c, a] = k(void 0), d = x(() => {
|
|
1312
|
+
a(Et(o, a, t, 0));
|
|
1313
|
+
}, [t, o]), l = x((h) => c, [c]);
|
|
1314
|
+
return /* @__PURE__ */ i(
|
|
1315
|
+
Nr,
|
|
1306
1316
|
{
|
|
1307
|
-
className:
|
|
1308
|
-
ref:
|
|
1309
|
-
onOpenAutoFocus:
|
|
1310
|
-
onCloseAutoFocus:
|
|
1311
|
-
...
|
|
1312
|
-
children: (
|
|
1317
|
+
className: y(Xe.multiPagePopover, n),
|
|
1318
|
+
ref: r,
|
|
1319
|
+
onOpenAutoFocus: d,
|
|
1320
|
+
onCloseAutoFocus: d,
|
|
1321
|
+
...s,
|
|
1322
|
+
children: (h) => l(h)
|
|
1313
1323
|
}
|
|
1314
1324
|
);
|
|
1315
|
-
}),
|
|
1316
|
-
charCount:
|
|
1317
|
-
ghost:
|
|
1318
|
-
},
|
|
1319
|
-
className:
|
|
1325
|
+
}), jr = W.memo(Hr), Fr = "_charCount_1lz28_1", Vr = "_ghost_1lz28_5", wt = {
|
|
1326
|
+
charCount: Fr,
|
|
1327
|
+
ghost: Vr
|
|
1328
|
+
}, Ur = S(function({
|
|
1329
|
+
className: o,
|
|
1320
1330
|
showInputLength: n,
|
|
1321
|
-
inputLengthTemplate:
|
|
1322
|
-
value:
|
|
1331
|
+
inputLengthTemplate: t,
|
|
1332
|
+
value: s,
|
|
1323
1333
|
severity: r = "primary",
|
|
1324
|
-
resize:
|
|
1325
|
-
variant:
|
|
1334
|
+
resize: c,
|
|
1335
|
+
variant: a,
|
|
1326
1336
|
...d
|
|
1327
|
-
},
|
|
1328
|
-
const h =
|
|
1329
|
-
if (
|
|
1330
|
-
let
|
|
1331
|
-
return d.minLength !== void 0 && (
|
|
1337
|
+
}, l) {
|
|
1338
|
+
const h = E(r), u = E("info"), g = n || n === void 0 && (d.maxLength !== void 0 || d.minLength !== void 0), f = s !== void 0 ? s.toString() : "", C = R(() => {
|
|
1339
|
+
if (t) {
|
|
1340
|
+
let b = t.replace("{current}", f.length.toString());
|
|
1341
|
+
return d.minLength !== void 0 && (b = b.replace("{min}", d.minLength.toString())), d.maxLength !== void 0 && (b = b.replace("{max}", d.maxLength.toString())), b;
|
|
1332
1342
|
}
|
|
1333
|
-
return
|
|
1334
|
-
}, [
|
|
1335
|
-
return /* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
|
|
1343
|
+
return f.length;
|
|
1344
|
+
}, [t, d.maxLength, d.minLength, f.length]);
|
|
1345
|
+
return /* @__PURE__ */ v(J, { children: [
|
|
1346
|
+
/* @__PURE__ */ i(
|
|
1347
|
+
Sn,
|
|
1338
1348
|
{
|
|
1339
|
-
className:
|
|
1340
|
-
[
|
|
1349
|
+
className: y("overmap-textarea", o, {
|
|
1350
|
+
[wt.ghost]: a === "ghost"
|
|
1341
1351
|
}),
|
|
1342
|
-
style: { resize:
|
|
1343
|
-
variant:
|
|
1344
|
-
ref:
|
|
1345
|
-
value:
|
|
1352
|
+
style: { resize: c },
|
|
1353
|
+
variant: a !== "ghost" ? a : void 0,
|
|
1354
|
+
ref: l,
|
|
1355
|
+
value: s,
|
|
1346
1356
|
color: h,
|
|
1347
1357
|
...d
|
|
1348
1358
|
}
|
|
1349
1359
|
),
|
|
1350
|
-
g && /* @__PURE__ */
|
|
1360
|
+
g && /* @__PURE__ */ i(Re, { as: "p", className: wt.charCount, color: u, align: "right", children: C })
|
|
1351
1361
|
] });
|
|
1352
|
-
}),
|
|
1362
|
+
}), zs = $(Ur), Gr = S(function({
|
|
1353
1363
|
// ToggleGroup Primitive Props
|
|
1354
|
-
loop:
|
|
1364
|
+
loop: o,
|
|
1355
1365
|
type: n,
|
|
1356
|
-
rovingFocus:
|
|
1357
|
-
value:
|
|
1366
|
+
rovingFocus: t,
|
|
1367
|
+
value: s,
|
|
1358
1368
|
onValueChange: r,
|
|
1359
|
-
defaultValue:
|
|
1360
|
-
disabled:
|
|
1369
|
+
defaultValue: c,
|
|
1370
|
+
disabled: a,
|
|
1361
1371
|
items: d,
|
|
1362
1372
|
// ButtonGroup Props
|
|
1363
|
-
className:
|
|
1373
|
+
className: l,
|
|
1364
1374
|
direction: h = "row",
|
|
1365
1375
|
...u
|
|
1366
1376
|
}, g) {
|
|
1367
|
-
return /* @__PURE__ */
|
|
1368
|
-
|
|
1377
|
+
return /* @__PURE__ */ i(
|
|
1378
|
+
On,
|
|
1369
1379
|
{
|
|
1370
1380
|
type: n,
|
|
1371
|
-
className:
|
|
1381
|
+
className: y("overmap-toggle-group", l),
|
|
1372
1382
|
ref: g,
|
|
1373
|
-
value:
|
|
1383
|
+
value: s,
|
|
1374
1384
|
onValueChange: r,
|
|
1375
|
-
disabled:
|
|
1385
|
+
disabled: a,
|
|
1376
1386
|
orientation: h === "column" ? "vertical" : "horizontal",
|
|
1377
|
-
loop:
|
|
1378
|
-
rovingFocus:
|
|
1379
|
-
defaultValue:
|
|
1387
|
+
loop: o,
|
|
1388
|
+
rovingFocus: t,
|
|
1389
|
+
defaultValue: c,
|
|
1380
1390
|
asChild: !0,
|
|
1381
|
-
children: /* @__PURE__ */
|
|
1382
|
-
|
|
1391
|
+
children: /* @__PURE__ */ i(Rt, { direction: h, ...u, children: d.map(({ children: f, ...C }) => /* @__PURE__ */ F(Rn, { asChild: !0, ...C, key: C.value }, /* @__PURE__ */ i(
|
|
1392
|
+
re,
|
|
1383
1393
|
{
|
|
1384
|
-
className:
|
|
1394
|
+
className: y("overmap-toggle-group-button"),
|
|
1385
1395
|
"aria-label": C.value,
|
|
1386
|
-
variant: C.value ===
|
|
1387
|
-
children:
|
|
1396
|
+
variant: C.value === s ? "solid" : "soft",
|
|
1397
|
+
children: f
|
|
1388
1398
|
}
|
|
1389
1399
|
))) })
|
|
1390
1400
|
}
|
|
1391
1401
|
);
|
|
1392
|
-
}),
|
|
1402
|
+
}), As = $(Gr), Kr = {
|
|
1393
1403
|
default: "_default_xqvoc_1"
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1396
|
-
|
|
1404
|
+
}, qr = $(
|
|
1405
|
+
S(({ className: e, minContentGap: o = "2", children: n, ...t }, s) => /* @__PURE__ */ i(
|
|
1406
|
+
zn,
|
|
1397
1407
|
{
|
|
1398
|
-
className:
|
|
1399
|
-
ref:
|
|
1408
|
+
className: y(e, "overmap-toolbar", Kr.default),
|
|
1409
|
+
ref: s,
|
|
1400
1410
|
asChild: !0,
|
|
1401
|
-
...
|
|
1402
|
-
children: /* @__PURE__ */
|
|
1411
|
+
...t,
|
|
1412
|
+
children: /* @__PURE__ */ i(X, { grow: "1", width: "100%", height: "max-content", align: "center", gap: o, wrap: "nowrap", children: n })
|
|
1403
1413
|
}
|
|
1404
1414
|
))
|
|
1405
|
-
),
|
|
1406
|
-
|
|
1407
|
-
),
|
|
1408
|
-
|
|
1409
|
-
|
|
1415
|
+
), Xr = $(
|
|
1416
|
+
S(({ children: e, gap: o = "2" }, n) => /* @__PURE__ */ i(X, { ref: n, grow: "1", width: "max-content", height: "100%", align: "center", gap: o, children: e }))
|
|
1417
|
+
), Jr = $(
|
|
1418
|
+
S(({ children: e, gap: o }, n) => /* @__PURE__ */ i(
|
|
1419
|
+
X,
|
|
1410
1420
|
{
|
|
1411
1421
|
ref: n,
|
|
1412
1422
|
grow: "1",
|
|
@@ -1414,340 +1424,340 @@ const Ur = x(function({ page: e, className: n, direction: o = "vertical", color:
|
|
|
1414
1424
|
direction: "row-reverse",
|
|
1415
1425
|
height: "100%",
|
|
1416
1426
|
align: "center",
|
|
1417
|
-
gap:
|
|
1418
|
-
children:
|
|
1427
|
+
gap: o || "2",
|
|
1428
|
+
children: e
|
|
1419
1429
|
}
|
|
1420
1430
|
))
|
|
1421
|
-
),
|
|
1422
|
-
Root:
|
|
1423
|
-
LeftContent:
|
|
1424
|
-
RightContent:
|
|
1425
|
-
}, Qr = "_ToastViewport_1i6bp_1", Yr = "_actionButton_1i6bp_20", Zr = "_ToastRoot_1i6bp_24",
|
|
1431
|
+
), Es = {
|
|
1432
|
+
Root: qr,
|
|
1433
|
+
LeftContent: Xr,
|
|
1434
|
+
RightContent: Jr
|
|
1435
|
+
}, Qr = "_ToastViewport_1i6bp_1", Yr = "_actionButton_1i6bp_20", Zr = "_ToastRoot_1i6bp_24", ei = "_slideIn_1i6bp_1", ti = "_swipeOut_1i6bp_1", it = {
|
|
1426
1436
|
ToastViewport: Qr,
|
|
1427
1437
|
actionButton: Yr,
|
|
1428
1438
|
ToastRoot: Zr,
|
|
1429
|
-
slideIn:
|
|
1430
|
-
swipeOut:
|
|
1431
|
-
},
|
|
1432
|
-
const [u, g] = k(!0),
|
|
1433
|
-
(
|
|
1434
|
-
!
|
|
1439
|
+
slideIn: ei,
|
|
1440
|
+
swipeOut: ti
|
|
1441
|
+
}, ni = S(function({ title: o, description: n, icon: t, severity: s = "primary", size: r, onClose: c, sensitivity: a, action: d, ...l }, h) {
|
|
1442
|
+
const [u, g] = k(!0), f = E(s), C = x(
|
|
1443
|
+
(b) => {
|
|
1444
|
+
!b && c && c(), g(b);
|
|
1435
1445
|
},
|
|
1436
|
-
[
|
|
1446
|
+
[c]
|
|
1437
1447
|
);
|
|
1438
|
-
return /* @__PURE__ */
|
|
1439
|
-
/* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1448
|
+
return /* @__PURE__ */ i(De.Root, { asChild: !0, ref: h, ...l, open: u, type: a, onOpenChange: C, children: /* @__PURE__ */ i(Fe.Root, { className: it.ToastRoot, variant: "surface", color: f, size: r, children: /* @__PURE__ */ v(D, { width: "100%", align: "center", gap: "4", justify: "between", children: [
|
|
1449
|
+
/* @__PURE__ */ v(D, { align: "center", gap: "3", children: [
|
|
1450
|
+
/* @__PURE__ */ i(Fe.Icon, { children: t }),
|
|
1451
|
+
/* @__PURE__ */ v(D, { direction: "column", gap: "2", children: [
|
|
1452
|
+
/* @__PURE__ */ v(D, { direction: "column", gap: "0", children: [
|
|
1453
|
+
/* @__PURE__ */ i(De.Title, { asChild: !0, children: /* @__PURE__ */ i(Fe.Text, { size: "3", weight: "medium", children: o }) }),
|
|
1454
|
+
/* @__PURE__ */ i(De.Description, { asChild: !0, children: /* @__PURE__ */ i(Fe.Text, { children: n }) })
|
|
1445
1455
|
] }),
|
|
1446
|
-
d && /* @__PURE__ */
|
|
1456
|
+
d && /* @__PURE__ */ i(De.Action, { className: it.actionButton, altText: d.altText, asChild: !0, children: d.content })
|
|
1447
1457
|
] })
|
|
1448
1458
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1459
|
+
/* @__PURE__ */ i(De.Close, { asChild: !0, children: /* @__PURE__ */ i(re, { "aria-label": "Close", variant: "ghost", severity: s, children: /* @__PURE__ */ i($t, {}) }) })
|
|
1450
1460
|
] }) }) });
|
|
1451
|
-
}),
|
|
1452
|
-
const
|
|
1453
|
-
if (!
|
|
1461
|
+
}), oi = $(ni), Bt = Se({}), Bs = () => {
|
|
1462
|
+
const e = ze(Bt);
|
|
1463
|
+
if (!e)
|
|
1454
1464
|
throw new Error("useToast must be used within a ToastProvider");
|
|
1455
|
-
return
|
|
1456
|
-
},
|
|
1457
|
-
if (
|
|
1458
|
-
return
|
|
1459
|
-
const
|
|
1460
|
-
return (
|
|
1465
|
+
return e;
|
|
1466
|
+
}, ri = 240 / 60, yt = 5e3, ii = (e) => {
|
|
1467
|
+
if (e.duration && e.duration >= yt)
|
|
1468
|
+
return e.duration;
|
|
1469
|
+
const o = e.severity === "danger" ? 1.5 : 1, n = e.description.split(" ").length + e.title.split(" ").length;
|
|
1470
|
+
return (yt + n / ri) * o;
|
|
1461
1471
|
};
|
|
1462
|
-
let
|
|
1463
|
-
const
|
|
1464
|
-
children:
|
|
1472
|
+
let si;
|
|
1473
|
+
const Ms = $(function({
|
|
1474
|
+
children: o,
|
|
1465
1475
|
// Use this class to change where the viewport for the toasts should be
|
|
1466
1476
|
className: n,
|
|
1467
|
-
hotkey:
|
|
1468
|
-
...
|
|
1477
|
+
hotkey: t,
|
|
1478
|
+
...s
|
|
1469
1479
|
}) {
|
|
1470
|
-
const [r,
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1473
|
-
return
|
|
1480
|
+
const [r, c] = k([]), a = x((l, h, u) => {
|
|
1481
|
+
c((g) => {
|
|
1482
|
+
const f = g.find((C) => C.id === l);
|
|
1483
|
+
return f && h === 0 && clearTimeout(f.timeout), g.filter((C) => C.id !== l);
|
|
1474
1484
|
}), u && u();
|
|
1475
|
-
}, []), d =
|
|
1476
|
-
let
|
|
1477
|
-
const h = (
|
|
1478
|
-
const P =
|
|
1479
|
-
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1482
|
-
}, u = (
|
|
1483
|
-
return
|
|
1485
|
+
}, []), d = R(() => {
|
|
1486
|
+
let l = 0;
|
|
1487
|
+
const h = (m) => {
|
|
1488
|
+
const P = ii(m), w = l.toString();
|
|
1489
|
+
l += 1;
|
|
1490
|
+
const N = setTimeout(() => a(w, 1, m.onClose), P);
|
|
1491
|
+
c((A) => [...A, { ...m, timeout: N, duration: P, id: w }]);
|
|
1492
|
+
}, u = (m) => h({ ...m, severity: "primary" }), g = (m) => h({ ...m, severity: "success" }), f = (m) => h({ ...m, severity: "danger" }), C = (m) => h({ ...m, severity: "info" }), b = (m) => h({ ...m, severity: "warning" });
|
|
1493
|
+
return si = h, {
|
|
1484
1494
|
showToast: h,
|
|
1485
1495
|
showPrimary: u,
|
|
1486
1496
|
showSuccess: g,
|
|
1487
|
-
showError:
|
|
1497
|
+
showError: f,
|
|
1488
1498
|
showInfo: C,
|
|
1489
|
-
showWarning:
|
|
1499
|
+
showWarning: b
|
|
1490
1500
|
};
|
|
1491
|
-
}, [
|
|
1492
|
-
return
|
|
1493
|
-
for (const { timeout:
|
|
1494
|
-
clearTimeout(
|
|
1495
|
-
}, []), /* @__PURE__ */
|
|
1496
|
-
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
r.map(({ id:
|
|
1501
|
+
}, [a]);
|
|
1502
|
+
return M(() => () => {
|
|
1503
|
+
for (const { timeout: l } of r)
|
|
1504
|
+
clearTimeout(l);
|
|
1505
|
+
}, []), /* @__PURE__ */ i(Bt.Provider, { value: d, children: /* @__PURE__ */ v(An, { ...s, children: [
|
|
1506
|
+
o,
|
|
1507
|
+
/* @__PURE__ */ i(En, { className: y(n, it.ToastViewport), hotkey: t }),
|
|
1508
|
+
r.map(({ id: l, onClose: h, ...u }) => /* @__PURE__ */ i(oi, { ...u, onClose: () => a(l, 0, h) }, l))
|
|
1499
1509
|
] }) });
|
|
1500
|
-
}),
|
|
1510
|
+
}), ai = {
|
|
1501
1511
|
default: "_default_1odpt_1"
|
|
1502
|
-
},
|
|
1503
|
-
|
|
1504
|
-
|
|
1512
|
+
}, Ls = $(
|
|
1513
|
+
S(({ className: e, children: o, content: n, ...t }, s) => /* @__PURE__ */ i(
|
|
1514
|
+
$n,
|
|
1505
1515
|
{
|
|
1506
|
-
className:
|
|
1507
|
-
ref:
|
|
1508
|
-
content: /* @__PURE__ */
|
|
1509
|
-
...
|
|
1510
|
-
children:
|
|
1516
|
+
className: y("overmap-tooltip", e, ai.default),
|
|
1517
|
+
ref: s,
|
|
1518
|
+
content: /* @__PURE__ */ i(D, { align: "center", gap: "1", width: "max-content", height: "max-content", justify: "center", children: n }),
|
|
1519
|
+
...t,
|
|
1520
|
+
children: o
|
|
1511
1521
|
}
|
|
1512
1522
|
))
|
|
1513
|
-
),
|
|
1514
|
-
noWrap:
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1517
|
-
const
|
|
1518
|
-
return /* @__PURE__ */
|
|
1519
|
-
|
|
1523
|
+
), ci = "_noWrap_1wpa5_1", li = {
|
|
1524
|
+
noWrap: ci
|
|
1525
|
+
}, rt = $(
|
|
1526
|
+
S(({ className: e, noWrap: o, severity: n, as: t, ...s }, r) => {
|
|
1527
|
+
const c = E(n);
|
|
1528
|
+
return /* @__PURE__ */ i(
|
|
1529
|
+
Re,
|
|
1520
1530
|
{
|
|
1521
1531
|
ref: r,
|
|
1522
|
-
as:
|
|
1523
|
-
className:
|
|
1524
|
-
color:
|
|
1525
|
-
...
|
|
1532
|
+
as: t,
|
|
1533
|
+
className: y(e, { [li.noWrap]: o }),
|
|
1534
|
+
color: c,
|
|
1535
|
+
...s
|
|
1526
1536
|
}
|
|
1527
1537
|
);
|
|
1528
1538
|
})
|
|
1529
1539
|
);
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1532
|
-
const { panelBackground: n = "solid", radius:
|
|
1533
|
-
return /* @__PURE__ */
|
|
1540
|
+
const Ws = $(
|
|
1541
|
+
S((e, o) => {
|
|
1542
|
+
const { panelBackground: n = "solid", radius: t = "full", ...s } = e;
|
|
1543
|
+
return /* @__PURE__ */ i(Pn, { panelBackground: n, radius: t, ref: o, ...s });
|
|
1534
1544
|
})
|
|
1535
1545
|
);
|
|
1536
|
-
function
|
|
1537
|
-
return
|
|
1538
|
-
for (var
|
|
1539
|
-
var n = arguments[
|
|
1540
|
-
for (var
|
|
1541
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
1546
|
+
function ae() {
|
|
1547
|
+
return ae = Object.assign ? Object.assign.bind() : function(e) {
|
|
1548
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
1549
|
+
var n = arguments[o];
|
|
1550
|
+
for (var t in n)
|
|
1551
|
+
Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
1542
1552
|
}
|
|
1543
|
-
return
|
|
1544
|
-
},
|
|
1553
|
+
return e;
|
|
1554
|
+
}, ae.apply(this, arguments);
|
|
1545
1555
|
}
|
|
1546
|
-
function
|
|
1547
|
-
typeof
|
|
1556
|
+
function di(e, o) {
|
|
1557
|
+
typeof e == "function" ? e(o) : e != null && (e.current = o);
|
|
1548
1558
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return (
|
|
1551
|
-
(n) =>
|
|
1559
|
+
function Mt(...e) {
|
|
1560
|
+
return (o) => e.forEach(
|
|
1561
|
+
(n) => di(n, o)
|
|
1552
1562
|
);
|
|
1553
1563
|
}
|
|
1554
|
-
function
|
|
1555
|
-
return
|
|
1564
|
+
function Lt(...e) {
|
|
1565
|
+
return x(Mt(...e), e);
|
|
1556
1566
|
}
|
|
1557
|
-
function
|
|
1567
|
+
function ui(e, o = []) {
|
|
1558
1568
|
let n = [];
|
|
1559
|
-
function
|
|
1560
|
-
const
|
|
1569
|
+
function t(r, c) {
|
|
1570
|
+
const a = /* @__PURE__ */ Se(c), d = n.length;
|
|
1561
1571
|
n = [
|
|
1562
1572
|
...n,
|
|
1563
|
-
|
|
1573
|
+
c
|
|
1564
1574
|
];
|
|
1565
|
-
function
|
|
1566
|
-
const { scope: g, children:
|
|
1575
|
+
function l(u) {
|
|
1576
|
+
const { scope: g, children: f, ...C } = u, b = (g == null ? void 0 : g[e][d]) || a, m = R(
|
|
1567
1577
|
() => C,
|
|
1568
1578
|
Object.values(C)
|
|
1569
1579
|
);
|
|
1570
|
-
return /* @__PURE__ */
|
|
1571
|
-
value:
|
|
1572
|
-
},
|
|
1580
|
+
return /* @__PURE__ */ F(b.Provider, {
|
|
1581
|
+
value: m
|
|
1582
|
+
}, f);
|
|
1573
1583
|
}
|
|
1574
1584
|
function h(u, g) {
|
|
1575
|
-
const
|
|
1585
|
+
const f = (g == null ? void 0 : g[e][d]) || a, C = ze(f);
|
|
1576
1586
|
if (C)
|
|
1577
1587
|
return C;
|
|
1578
|
-
if (
|
|
1579
|
-
return
|
|
1588
|
+
if (c !== void 0)
|
|
1589
|
+
return c;
|
|
1580
1590
|
throw new Error(`\`${u}\` must be used within \`${r}\``);
|
|
1581
1591
|
}
|
|
1582
|
-
return
|
|
1583
|
-
|
|
1592
|
+
return l.displayName = r + "Provider", [
|
|
1593
|
+
l,
|
|
1584
1594
|
h
|
|
1585
1595
|
];
|
|
1586
1596
|
}
|
|
1587
|
-
const
|
|
1588
|
-
const r = n.map((
|
|
1589
|
-
return function(
|
|
1590
|
-
const d = (
|
|
1591
|
-
return
|
|
1597
|
+
const s = () => {
|
|
1598
|
+
const r = n.map((c) => /* @__PURE__ */ Se(c));
|
|
1599
|
+
return function(a) {
|
|
1600
|
+
const d = (a == null ? void 0 : a[e]) || r;
|
|
1601
|
+
return R(
|
|
1592
1602
|
() => ({
|
|
1593
|
-
[`__scope${
|
|
1594
|
-
...
|
|
1595
|
-
[
|
|
1603
|
+
[`__scope${e}`]: {
|
|
1604
|
+
...a,
|
|
1605
|
+
[e]: d
|
|
1596
1606
|
}
|
|
1597
1607
|
}),
|
|
1598
1608
|
[
|
|
1599
|
-
|
|
1609
|
+
a,
|
|
1600
1610
|
d
|
|
1601
1611
|
]
|
|
1602
1612
|
);
|
|
1603
1613
|
};
|
|
1604
1614
|
};
|
|
1605
|
-
return
|
|
1606
|
-
|
|
1607
|
-
|
|
1615
|
+
return s.scopeName = e, [
|
|
1616
|
+
t,
|
|
1617
|
+
hi(s, ...o)
|
|
1608
1618
|
];
|
|
1609
1619
|
}
|
|
1610
|
-
function
|
|
1611
|
-
const
|
|
1612
|
-
if (
|
|
1613
|
-
return
|
|
1620
|
+
function hi(...e) {
|
|
1621
|
+
const o = e[0];
|
|
1622
|
+
if (e.length === 1)
|
|
1623
|
+
return o;
|
|
1614
1624
|
const n = () => {
|
|
1615
|
-
const
|
|
1616
|
-
(
|
|
1617
|
-
useScope:
|
|
1618
|
-
scopeName:
|
|
1625
|
+
const t = e.map(
|
|
1626
|
+
(s) => ({
|
|
1627
|
+
useScope: s(),
|
|
1628
|
+
scopeName: s.scopeName
|
|
1619
1629
|
})
|
|
1620
1630
|
);
|
|
1621
1631
|
return function(r) {
|
|
1622
|
-
const
|
|
1623
|
-
const u = d(r)[`__scope${
|
|
1632
|
+
const c = t.reduce((a, { useScope: d, scopeName: l }) => {
|
|
1633
|
+
const u = d(r)[`__scope${l}`];
|
|
1624
1634
|
return {
|
|
1625
|
-
...
|
|
1635
|
+
...a,
|
|
1626
1636
|
...u
|
|
1627
1637
|
};
|
|
1628
1638
|
}, {});
|
|
1629
|
-
return
|
|
1639
|
+
return R(
|
|
1630
1640
|
() => ({
|
|
1631
|
-
[`__scope${
|
|
1641
|
+
[`__scope${o.scopeName}`]: c
|
|
1632
1642
|
}),
|
|
1633
1643
|
[
|
|
1634
|
-
|
|
1644
|
+
c
|
|
1635
1645
|
]
|
|
1636
1646
|
);
|
|
1637
1647
|
};
|
|
1638
1648
|
};
|
|
1639
|
-
return n.scopeName =
|
|
1649
|
+
return n.scopeName = o.scopeName, n;
|
|
1640
1650
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return function(
|
|
1643
|
-
if (
|
|
1644
|
-
return
|
|
1651
|
+
function xt(e, o, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1652
|
+
return function(s) {
|
|
1653
|
+
if (e == null || e(s), n === !1 || !s.defaultPrevented)
|
|
1654
|
+
return o == null ? void 0 : o(s);
|
|
1645
1655
|
};
|
|
1646
1656
|
}
|
|
1647
|
-
function
|
|
1648
|
-
const
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1651
|
-
}),
|
|
1657
|
+
function Wt(e) {
|
|
1658
|
+
const o = H(e);
|
|
1659
|
+
return M(() => {
|
|
1660
|
+
o.current = e;
|
|
1661
|
+
}), R(
|
|
1652
1662
|
() => (...n) => {
|
|
1653
|
-
var
|
|
1654
|
-
return (
|
|
1663
|
+
var t;
|
|
1664
|
+
return (t = o.current) === null || t === void 0 ? void 0 : t.call(o, ...n);
|
|
1655
1665
|
},
|
|
1656
1666
|
[]
|
|
1657
1667
|
);
|
|
1658
1668
|
}
|
|
1659
|
-
function
|
|
1669
|
+
function pi({ prop: e, defaultProp: o, onChange: n = () => {
|
|
1660
1670
|
} }) {
|
|
1661
|
-
const [
|
|
1662
|
-
defaultProp:
|
|
1671
|
+
const [t, s] = fi({
|
|
1672
|
+
defaultProp: o,
|
|
1663
1673
|
onChange: n
|
|
1664
|
-
}), r =
|
|
1674
|
+
}), r = e !== void 0, c = r ? e : t, a = Wt(n), d = x((l) => {
|
|
1665
1675
|
if (r) {
|
|
1666
|
-
const u = typeof
|
|
1667
|
-
u !==
|
|
1676
|
+
const u = typeof l == "function" ? l(e) : l;
|
|
1677
|
+
u !== e && a(u);
|
|
1668
1678
|
} else
|
|
1669
|
-
|
|
1679
|
+
s(l);
|
|
1670
1680
|
}, [
|
|
1671
1681
|
r,
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1682
|
+
e,
|
|
1683
|
+
s,
|
|
1684
|
+
a
|
|
1675
1685
|
]);
|
|
1676
1686
|
return [
|
|
1677
|
-
|
|
1687
|
+
c,
|
|
1678
1688
|
d
|
|
1679
1689
|
];
|
|
1680
1690
|
}
|
|
1681
|
-
function
|
|
1682
|
-
const n = k(
|
|
1683
|
-
return
|
|
1684
|
-
|
|
1691
|
+
function fi({ defaultProp: e, onChange: o }) {
|
|
1692
|
+
const n = k(e), [t] = n, s = H(t), r = Wt(o);
|
|
1693
|
+
return M(() => {
|
|
1694
|
+
s.current !== t && (r(t), s.current = t);
|
|
1685
1695
|
}, [
|
|
1686
|
-
|
|
1687
|
-
|
|
1696
|
+
t,
|
|
1697
|
+
s,
|
|
1688
1698
|
r
|
|
1689
1699
|
]), n;
|
|
1690
1700
|
}
|
|
1691
|
-
function
|
|
1692
|
-
const
|
|
1693
|
-
value:
|
|
1694
|
-
previous:
|
|
1701
|
+
function mi(e) {
|
|
1702
|
+
const o = H({
|
|
1703
|
+
value: e,
|
|
1704
|
+
previous: e
|
|
1695
1705
|
});
|
|
1696
|
-
return
|
|
1697
|
-
|
|
1706
|
+
return R(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [
|
|
1707
|
+
e
|
|
1698
1708
|
]);
|
|
1699
1709
|
}
|
|
1700
|
-
const
|
|
1710
|
+
const st = globalThis != null && globalThis.document ? ct : () => {
|
|
1701
1711
|
};
|
|
1702
|
-
function
|
|
1703
|
-
const [
|
|
1704
|
-
return
|
|
1705
|
-
if (
|
|
1712
|
+
function gi(e) {
|
|
1713
|
+
const [o, n] = k(void 0);
|
|
1714
|
+
return st(() => {
|
|
1715
|
+
if (e) {
|
|
1706
1716
|
n({
|
|
1707
|
-
width:
|
|
1708
|
-
height:
|
|
1717
|
+
width: e.offsetWidth,
|
|
1718
|
+
height: e.offsetHeight
|
|
1709
1719
|
});
|
|
1710
|
-
const
|
|
1711
|
-
if (!Array.isArray(
|
|
1720
|
+
const t = new ResizeObserver((s) => {
|
|
1721
|
+
if (!Array.isArray(s) || !s.length)
|
|
1712
1722
|
return;
|
|
1713
|
-
const r =
|
|
1714
|
-
let
|
|
1723
|
+
const r = s[0];
|
|
1724
|
+
let c, a;
|
|
1715
1725
|
if ("borderBoxSize" in r) {
|
|
1716
|
-
const d = r.borderBoxSize,
|
|
1717
|
-
|
|
1726
|
+
const d = r.borderBoxSize, l = Array.isArray(d) ? d[0] : d;
|
|
1727
|
+
c = l.inlineSize, a = l.blockSize;
|
|
1718
1728
|
} else
|
|
1719
|
-
|
|
1729
|
+
c = e.offsetWidth, a = e.offsetHeight;
|
|
1720
1730
|
n({
|
|
1721
|
-
width:
|
|
1722
|
-
height:
|
|
1731
|
+
width: c,
|
|
1732
|
+
height: a
|
|
1723
1733
|
});
|
|
1724
1734
|
});
|
|
1725
|
-
return
|
|
1735
|
+
return t.observe(e, {
|
|
1726
1736
|
box: "border-box"
|
|
1727
|
-
}), () =>
|
|
1737
|
+
}), () => t.unobserve(e);
|
|
1728
1738
|
} else
|
|
1729
1739
|
n(void 0);
|
|
1730
1740
|
}, [
|
|
1731
|
-
|
|
1732
|
-
]),
|
|
1741
|
+
e
|
|
1742
|
+
]), o;
|
|
1733
1743
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return Nn((n,
|
|
1736
|
-
const
|
|
1737
|
-
return
|
|
1738
|
-
},
|
|
1744
|
+
function Ci(e, o) {
|
|
1745
|
+
return Nn((n, t) => {
|
|
1746
|
+
const s = o[n][t];
|
|
1747
|
+
return s ?? n;
|
|
1748
|
+
}, e);
|
|
1739
1749
|
}
|
|
1740
|
-
const
|
|
1741
|
-
const { present:
|
|
1742
|
-
present:
|
|
1743
|
-
}) :
|
|
1744
|
-
return typeof n == "function" ||
|
|
1750
|
+
const Ht = (e) => {
|
|
1751
|
+
const { present: o, children: n } = e, t = vi(o), s = typeof n == "function" ? n({
|
|
1752
|
+
present: t.isPresent
|
|
1753
|
+
}) : me.only(n), r = Lt(t.ref, s.ref);
|
|
1754
|
+
return typeof n == "function" || t.isPresent ? /* @__PURE__ */ Ae(s, {
|
|
1745
1755
|
ref: r
|
|
1746
1756
|
}) : null;
|
|
1747
1757
|
};
|
|
1748
|
-
|
|
1749
|
-
function
|
|
1750
|
-
const [
|
|
1758
|
+
Ht.displayName = "Presence";
|
|
1759
|
+
function vi(e) {
|
|
1760
|
+
const [o, n] = k(), t = H({}), s = H(e), r = H("none"), c = e ? "mounted" : "unmounted", [a, d] = Ci(c, {
|
|
1751
1761
|
mounted: {
|
|
1752
1762
|
UNMOUNT: "unmounted",
|
|
1753
1763
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1760,98 +1770,98 @@ function ba(t) {
|
|
|
1760
1770
|
MOUNT: "mounted"
|
|
1761
1771
|
}
|
|
1762
1772
|
});
|
|
1763
|
-
return
|
|
1764
|
-
const
|
|
1765
|
-
r.current =
|
|
1773
|
+
return M(() => {
|
|
1774
|
+
const l = Ke(t.current);
|
|
1775
|
+
r.current = a === "mounted" ? l : "none";
|
|
1766
1776
|
}, [
|
|
1767
|
-
|
|
1768
|
-
]),
|
|
1769
|
-
const
|
|
1770
|
-
if (h !==
|
|
1771
|
-
const g = r.current,
|
|
1772
|
-
|
|
1777
|
+
a
|
|
1778
|
+
]), st(() => {
|
|
1779
|
+
const l = t.current, h = s.current;
|
|
1780
|
+
if (h !== e) {
|
|
1781
|
+
const g = r.current, f = Ke(l);
|
|
1782
|
+
e ? d("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(h && g !== f ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
|
|
1773
1783
|
}
|
|
1774
1784
|
}, [
|
|
1775
|
-
|
|
1785
|
+
e,
|
|
1776
1786
|
d
|
|
1777
|
-
]),
|
|
1778
|
-
if (
|
|
1779
|
-
const
|
|
1780
|
-
const
|
|
1781
|
-
u.target ===
|
|
1787
|
+
]), st(() => {
|
|
1788
|
+
if (o) {
|
|
1789
|
+
const l = (u) => {
|
|
1790
|
+
const f = Ke(t.current).includes(u.animationName);
|
|
1791
|
+
u.target === o && f && Bn(
|
|
1782
1792
|
() => d("ANIMATION_END")
|
|
1783
1793
|
);
|
|
1784
1794
|
}, h = (u) => {
|
|
1785
|
-
u.target ===
|
|
1795
|
+
u.target === o && (r.current = Ke(t.current));
|
|
1786
1796
|
};
|
|
1787
|
-
return
|
|
1788
|
-
|
|
1797
|
+
return o.addEventListener("animationstart", h), o.addEventListener("animationcancel", l), o.addEventListener("animationend", l), () => {
|
|
1798
|
+
o.removeEventListener("animationstart", h), o.removeEventListener("animationcancel", l), o.removeEventListener("animationend", l);
|
|
1789
1799
|
};
|
|
1790
1800
|
} else
|
|
1791
1801
|
d("ANIMATION_END");
|
|
1792
1802
|
}, [
|
|
1793
|
-
|
|
1803
|
+
o,
|
|
1794
1804
|
d
|
|
1795
1805
|
]), {
|
|
1796
1806
|
isPresent: [
|
|
1797
1807
|
"mounted",
|
|
1798
1808
|
"unmountSuspended"
|
|
1799
|
-
].includes(
|
|
1800
|
-
ref:
|
|
1801
|
-
|
|
1809
|
+
].includes(a),
|
|
1810
|
+
ref: x((l) => {
|
|
1811
|
+
l && (t.current = getComputedStyle(l)), n(l);
|
|
1802
1812
|
}, [])
|
|
1803
1813
|
};
|
|
1804
1814
|
}
|
|
1805
|
-
function Ke(
|
|
1806
|
-
return (
|
|
1815
|
+
function Ke(e) {
|
|
1816
|
+
return (e == null ? void 0 : e.animationName) || "none";
|
|
1807
1817
|
}
|
|
1808
|
-
const
|
|
1809
|
-
const { children: n, ...
|
|
1818
|
+
const jt = /* @__PURE__ */ S((e, o) => {
|
|
1819
|
+
const { children: n, ...t } = e, s = me.toArray(n), r = s.find(bi);
|
|
1810
1820
|
if (r) {
|
|
1811
|
-
const
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
ref:
|
|
1814
|
-
}), /* @__PURE__ */ Oe(
|
|
1821
|
+
const c = r.props.children, a = s.map((d) => d === r ? me.count(c) > 1 ? me.only(null) : /* @__PURE__ */ Oe(c) ? c.props.children : null : d);
|
|
1822
|
+
return /* @__PURE__ */ F(at, ae({}, t, {
|
|
1823
|
+
ref: o
|
|
1824
|
+
}), /* @__PURE__ */ Oe(c) ? /* @__PURE__ */ Ae(c, void 0, a) : null);
|
|
1815
1825
|
}
|
|
1816
|
-
return /* @__PURE__ */
|
|
1817
|
-
ref:
|
|
1826
|
+
return /* @__PURE__ */ F(at, ae({}, t, {
|
|
1827
|
+
ref: o
|
|
1818
1828
|
}), n);
|
|
1819
1829
|
});
|
|
1820
|
-
|
|
1821
|
-
const
|
|
1822
|
-
const { children: n, ...
|
|
1823
|
-
return /* @__PURE__ */ Oe(n) ? /* @__PURE__ */
|
|
1824
|
-
|
|
1825
|
-
ref:
|
|
1826
|
-
}) :
|
|
1830
|
+
jt.displayName = "Slot";
|
|
1831
|
+
const at = /* @__PURE__ */ S((e, o) => {
|
|
1832
|
+
const { children: n, ...t } = e;
|
|
1833
|
+
return /* @__PURE__ */ Oe(n) ? /* @__PURE__ */ Ae(n, {
|
|
1834
|
+
...wi(t, n.props),
|
|
1835
|
+
ref: o ? Mt(o, n.ref) : n.ref
|
|
1836
|
+
}) : me.count(n) > 1 ? me.only(null) : null;
|
|
1827
1837
|
});
|
|
1828
|
-
|
|
1829
|
-
const
|
|
1830
|
-
function
|
|
1831
|
-
return /* @__PURE__ */ Oe(
|
|
1838
|
+
at.displayName = "SlotClone";
|
|
1839
|
+
const _i = ({ children: e }) => /* @__PURE__ */ F(Tn, null, e);
|
|
1840
|
+
function bi(e) {
|
|
1841
|
+
return /* @__PURE__ */ Oe(e) && e.type === _i;
|
|
1832
1842
|
}
|
|
1833
|
-
function
|
|
1843
|
+
function wi(e, o) {
|
|
1834
1844
|
const n = {
|
|
1835
|
-
...
|
|
1845
|
+
...o
|
|
1836
1846
|
};
|
|
1837
|
-
for (const
|
|
1838
|
-
const
|
|
1839
|
-
/^on[A-Z]/.test(
|
|
1840
|
-
r(...
|
|
1841
|
-
} :
|
|
1842
|
-
...
|
|
1847
|
+
for (const t in o) {
|
|
1848
|
+
const s = e[t], r = o[t];
|
|
1849
|
+
/^on[A-Z]/.test(t) ? s && r ? n[t] = (...a) => {
|
|
1850
|
+
r(...a), s(...a);
|
|
1851
|
+
} : s && (n[t] = s) : t === "style" ? n[t] = {
|
|
1852
|
+
...s,
|
|
1843
1853
|
...r
|
|
1844
|
-
} :
|
|
1845
|
-
|
|
1854
|
+
} : t === "className" && (n[t] = [
|
|
1855
|
+
s,
|
|
1846
1856
|
r
|
|
1847
1857
|
].filter(Boolean).join(" "));
|
|
1848
1858
|
}
|
|
1849
1859
|
return {
|
|
1850
|
-
...
|
|
1860
|
+
...e,
|
|
1851
1861
|
...n
|
|
1852
1862
|
};
|
|
1853
1863
|
}
|
|
1854
|
-
const
|
|
1864
|
+
const yi = [
|
|
1855
1865
|
"a",
|
|
1856
1866
|
"button",
|
|
1857
1867
|
"div",
|
|
@@ -1868,110 +1878,110 @@ const Sa = [
|
|
|
1868
1878
|
"span",
|
|
1869
1879
|
"svg",
|
|
1870
1880
|
"ul"
|
|
1871
|
-
],
|
|
1872
|
-
const n = /* @__PURE__ */
|
|
1873
|
-
const { asChild: r, ...
|
|
1874
|
-
return
|
|
1881
|
+
], Ft = yi.reduce((e, o) => {
|
|
1882
|
+
const n = /* @__PURE__ */ S((t, s) => {
|
|
1883
|
+
const { asChild: r, ...c } = t, a = r ? jt : o;
|
|
1884
|
+
return M(() => {
|
|
1875
1885
|
window[Symbol.for("radix-ui")] = !0;
|
|
1876
|
-
}, []), /* @__PURE__ */
|
|
1877
|
-
ref:
|
|
1886
|
+
}, []), /* @__PURE__ */ F(a, ae({}, c, {
|
|
1887
|
+
ref: s
|
|
1878
1888
|
}));
|
|
1879
1889
|
});
|
|
1880
|
-
return n.displayName = `Primitive.${
|
|
1881
|
-
...
|
|
1882
|
-
[
|
|
1890
|
+
return n.displayName = `Primitive.${o}`, {
|
|
1891
|
+
...e,
|
|
1892
|
+
[o]: n
|
|
1883
1893
|
};
|
|
1884
|
-
}, {}),
|
|
1885
|
-
const { __scopeCheckbox: n, name:
|
|
1886
|
-
|
|
1887
|
-
(
|
|
1888
|
-
), C =
|
|
1889
|
-
prop:
|
|
1894
|
+
}, {}), Vt = "Checkbox", [xi, Hs] = ui(Vt), [Si, $i] = xi(Vt), Pi = /* @__PURE__ */ S((e, o) => {
|
|
1895
|
+
const { __scopeCheckbox: n, name: t, checked: s, defaultChecked: r, required: c, disabled: a, value: d = "on", onCheckedChange: l, ...h } = e, [u, g] = k(null), f = Lt(
|
|
1896
|
+
o,
|
|
1897
|
+
(N) => g(N)
|
|
1898
|
+
), C = H(!1), b = u ? !!u.closest("form") : !0, [m = !1, P] = pi({
|
|
1899
|
+
prop: s,
|
|
1890
1900
|
defaultProp: r,
|
|
1891
|
-
onChange:
|
|
1892
|
-
}),
|
|
1893
|
-
return
|
|
1894
|
-
const
|
|
1895
|
-
if (
|
|
1896
|
-
const
|
|
1897
|
-
return
|
|
1901
|
+
onChange: l
|
|
1902
|
+
}), w = H(m);
|
|
1903
|
+
return M(() => {
|
|
1904
|
+
const N = u == null ? void 0 : u.form;
|
|
1905
|
+
if (N) {
|
|
1906
|
+
const A = () => P(w.current);
|
|
1907
|
+
return N.addEventListener("reset", A), () => N.removeEventListener("reset", A);
|
|
1898
1908
|
}
|
|
1899
1909
|
}, [
|
|
1900
1910
|
u,
|
|
1901
1911
|
P
|
|
1902
|
-
]), /* @__PURE__ */
|
|
1912
|
+
]), /* @__PURE__ */ F(Si, {
|
|
1903
1913
|
scope: n,
|
|
1904
|
-
state:
|
|
1905
|
-
disabled:
|
|
1906
|
-
}, /* @__PURE__ */
|
|
1914
|
+
state: m,
|
|
1915
|
+
disabled: a
|
|
1916
|
+
}, /* @__PURE__ */ F(Ft.button, ae({
|
|
1907
1917
|
type: "button",
|
|
1908
1918
|
role: "checkbox",
|
|
1909
|
-
"aria-checked": ge(
|
|
1910
|
-
"aria-required":
|
|
1911
|
-
"data-state":
|
|
1912
|
-
"data-disabled":
|
|
1913
|
-
disabled:
|
|
1919
|
+
"aria-checked": ge(m) ? "mixed" : m,
|
|
1920
|
+
"aria-required": c,
|
|
1921
|
+
"data-state": Ut(m),
|
|
1922
|
+
"data-disabled": a ? "" : void 0,
|
|
1923
|
+
disabled: a,
|
|
1914
1924
|
value: d
|
|
1915
1925
|
}, h, {
|
|
1916
|
-
ref:
|
|
1917
|
-
onKeyDown:
|
|
1918
|
-
|
|
1926
|
+
ref: f,
|
|
1927
|
+
onKeyDown: xt(e.onKeyDown, (N) => {
|
|
1928
|
+
N.key === "Enter" && N.preventDefault();
|
|
1919
1929
|
}),
|
|
1920
|
-
onClick:
|
|
1930
|
+
onClick: xt(e.onClick, (N) => {
|
|
1921
1931
|
P(
|
|
1922
|
-
(
|
|
1923
|
-
),
|
|
1932
|
+
(A) => ge(A) ? !0 : !A
|
|
1933
|
+
), b && (C.current = N.isPropagationStopped(), C.current || N.stopPropagation());
|
|
1924
1934
|
})
|
|
1925
|
-
})),
|
|
1935
|
+
})), b && /* @__PURE__ */ F(Ti, {
|
|
1926
1936
|
control: u,
|
|
1927
1937
|
bubbles: !C.current,
|
|
1928
|
-
name:
|
|
1938
|
+
name: t,
|
|
1929
1939
|
value: d,
|
|
1930
|
-
checked:
|
|
1931
|
-
required:
|
|
1932
|
-
disabled:
|
|
1940
|
+
checked: m,
|
|
1941
|
+
required: c,
|
|
1942
|
+
disabled: a,
|
|
1933
1943
|
style: {
|
|
1934
1944
|
transform: "translateX(-100%)"
|
|
1935
1945
|
}
|
|
1936
1946
|
}));
|
|
1937
|
-
}),
|
|
1938
|
-
const { __scopeCheckbox: n, forceMount:
|
|
1939
|
-
return /* @__PURE__ */
|
|
1940
|
-
present:
|
|
1941
|
-
}, /* @__PURE__ */
|
|
1942
|
-
"data-state":
|
|
1947
|
+
}), ki = "CheckboxIndicator", Ni = /* @__PURE__ */ S((e, o) => {
|
|
1948
|
+
const { __scopeCheckbox: n, forceMount: t, ...s } = e, r = $i(ki, n);
|
|
1949
|
+
return /* @__PURE__ */ F(Ht, {
|
|
1950
|
+
present: t || ge(r.state) || r.state === !0
|
|
1951
|
+
}, /* @__PURE__ */ F(Ft.span, ae({
|
|
1952
|
+
"data-state": Ut(r.state),
|
|
1943
1953
|
"data-disabled": r.disabled ? "" : void 0
|
|
1944
|
-
},
|
|
1945
|
-
ref:
|
|
1954
|
+
}, s, {
|
|
1955
|
+
ref: o,
|
|
1946
1956
|
style: {
|
|
1947
1957
|
pointerEvents: "none",
|
|
1948
|
-
...
|
|
1958
|
+
...e.style
|
|
1949
1959
|
}
|
|
1950
1960
|
})));
|
|
1951
|
-
}),
|
|
1952
|
-
const { control:
|
|
1953
|
-
return
|
|
1954
|
-
const d = r.current,
|
|
1955
|
-
if (
|
|
1961
|
+
}), Ti = (e) => {
|
|
1962
|
+
const { control: o, checked: n, bubbles: t = !0, ...s } = e, r = H(null), c = mi(n), a = gi(o);
|
|
1963
|
+
return M(() => {
|
|
1964
|
+
const d = r.current, l = window.HTMLInputElement.prototype, u = Object.getOwnPropertyDescriptor(l, "checked").set;
|
|
1965
|
+
if (c !== n && u) {
|
|
1956
1966
|
const g = new Event("click", {
|
|
1957
|
-
bubbles:
|
|
1967
|
+
bubbles: t
|
|
1958
1968
|
});
|
|
1959
1969
|
d.indeterminate = ge(n), u.call(d, ge(n) ? !1 : n), d.dispatchEvent(g);
|
|
1960
1970
|
}
|
|
1961
1971
|
}, [
|
|
1962
|
-
|
|
1972
|
+
c,
|
|
1963
1973
|
n,
|
|
1964
|
-
|
|
1965
|
-
]), /* @__PURE__ */
|
|
1974
|
+
t
|
|
1975
|
+
]), /* @__PURE__ */ F("input", ae({
|
|
1966
1976
|
type: "checkbox",
|
|
1967
1977
|
"aria-hidden": !0,
|
|
1968
1978
|
defaultChecked: ge(n) ? !1 : n
|
|
1969
|
-
},
|
|
1979
|
+
}, s, {
|
|
1970
1980
|
tabIndex: -1,
|
|
1971
1981
|
ref: r,
|
|
1972
1982
|
style: {
|
|
1973
|
-
...
|
|
1974
|
-
...
|
|
1983
|
+
...e.style,
|
|
1984
|
+
...a,
|
|
1975
1985
|
position: "absolute",
|
|
1976
1986
|
pointerEvents: "none",
|
|
1977
1987
|
opacity: 0,
|
|
@@ -1979,233 +1989,233 @@ const Sa = [
|
|
|
1979
1989
|
}
|
|
1980
1990
|
}));
|
|
1981
1991
|
};
|
|
1982
|
-
function ge(
|
|
1983
|
-
return
|
|
1992
|
+
function ge(e) {
|
|
1993
|
+
return e === "indeterminate";
|
|
1984
1994
|
}
|
|
1985
|
-
function
|
|
1986
|
-
return ge(
|
|
1995
|
+
function Ut(e) {
|
|
1996
|
+
return ge(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1987
1997
|
}
|
|
1988
|
-
const
|
|
1989
|
-
checkboxContainer:
|
|
1990
|
-
checkbox:
|
|
1991
|
-
checkboxIndicator:
|
|
1992
|
-
checkboxLabel:
|
|
1993
|
-
noTextHighlight:
|
|
1994
|
-
checkboxHidden:
|
|
1995
|
-
},
|
|
1996
|
-
return /* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1998
|
-
|
|
1998
|
+
const Di = Pi, Ii = Ni, Oi = "_checkboxContainer_pb9za_5", Ri = "_checkbox_pb9za_5", zi = "_checkboxIndicator_pb9za_27", Ai = "_checkboxLabel_pb9za_38", Ei = "_noTextHighlight_pb9za_42", Bi = "_checkboxHidden_pb9za_51", ye = {
|
|
1999
|
+
checkboxContainer: Oi,
|
|
2000
|
+
checkbox: Ri,
|
|
2001
|
+
checkboxIndicator: zi,
|
|
2002
|
+
checkboxLabel: Ai,
|
|
2003
|
+
noTextHighlight: Ei,
|
|
2004
|
+
checkboxHidden: Bi
|
|
2005
|
+
}, Mi = S(function({ className: o, labelClassName: n, label: t, checked: s, onCheckedChange: r, ...c }, a) {
|
|
2006
|
+
return /* @__PURE__ */ i(qo, { children: ({ isHovered: d, ...l }) => /* @__PURE__ */ v(D, { className: ye.checkboxContainer, ...l, children: [
|
|
2007
|
+
/* @__PURE__ */ i(
|
|
2008
|
+
Di,
|
|
1999
2009
|
{
|
|
2000
|
-
className:
|
|
2010
|
+
className: y(
|
|
2001
2011
|
ye.checkbox,
|
|
2002
|
-
!d && !
|
|
2003
|
-
|
|
2012
|
+
!d && !s && ye.checkboxHidden,
|
|
2013
|
+
o
|
|
2004
2014
|
),
|
|
2005
|
-
checked:
|
|
2015
|
+
checked: s,
|
|
2006
2016
|
onCheckedChange: (h) => {
|
|
2007
2017
|
r && r(h);
|
|
2008
2018
|
},
|
|
2009
|
-
ref:
|
|
2010
|
-
...
|
|
2011
|
-
children: /* @__PURE__ */
|
|
2019
|
+
ref: a,
|
|
2020
|
+
...c,
|
|
2021
|
+
children: /* @__PURE__ */ i(Ii, { className: ye.checkboxIndicator, children: s === "indeterminate" ? /* @__PURE__ */ i(on, { width: "13px" }) : /* @__PURE__ */ i(St, {}) })
|
|
2012
2022
|
}
|
|
2013
2023
|
),
|
|
2014
|
-
|
|
2024
|
+
t && /* @__PURE__ */ i(
|
|
2015
2025
|
"div",
|
|
2016
2026
|
{
|
|
2017
|
-
className:
|
|
2027
|
+
className: y(ye.checkboxLabel, n, ye.noTextHighlight),
|
|
2018
2028
|
onClick: () => {
|
|
2019
|
-
r && r(!
|
|
2029
|
+
r && r(!s);
|
|
2020
2030
|
},
|
|
2021
|
-
children:
|
|
2031
|
+
children: t
|
|
2022
2032
|
}
|
|
2023
2033
|
)
|
|
2024
2034
|
] }) });
|
|
2025
|
-
}),
|
|
2026
|
-
|
|
2027
|
-
const
|
|
2028
|
-
className:
|
|
2035
|
+
}), dt = $(Mi);
|
|
2036
|
+
dt.displayName = "Checkbox";
|
|
2037
|
+
const Li = $(function({
|
|
2038
|
+
className: o,
|
|
2029
2039
|
labelClassName: n,
|
|
2030
|
-
label:
|
|
2031
|
-
onCheckedChange:
|
|
2040
|
+
label: t,
|
|
2041
|
+
onCheckedChange: s,
|
|
2032
2042
|
children: r,
|
|
2033
|
-
...
|
|
2043
|
+
...c
|
|
2034
2044
|
}) {
|
|
2035
|
-
const [
|
|
2036
|
-
|
|
2037
|
-
), [
|
|
2038
|
-
|
|
2039
|
-
), u = (
|
|
2040
|
-
const C =
|
|
2041
|
-
|
|
2045
|
+
const [a, d] = k(
|
|
2046
|
+
W.Children.toArray(r).every((f) => W.isValidElement(f) && f.props.checked) ? !0 : W.Children.toArray(r).some((f) => W.isValidElement(f) && f.props.checked) ? "indeterminate" : !1
|
|
2047
|
+
), [l, h] = k(
|
|
2048
|
+
W.Children.map(r, (f) => f.props.checked)
|
|
2049
|
+
), u = (f) => {
|
|
2050
|
+
const C = a === "indeterminate" || !f;
|
|
2051
|
+
a === "indeterminate" && (f = !1), h(l.map((b) => !C)), s && s(f);
|
|
2042
2052
|
};
|
|
2043
|
-
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2046
|
-
}, [r,
|
|
2047
|
-
const g =
|
|
2053
|
+
M(() => {
|
|
2054
|
+
const f = l.filter((C) => C).length;
|
|
2055
|
+
f === 0 ? d(!1) : f === r.length ? d(!0) : d("indeterminate");
|
|
2056
|
+
}, [r, l]);
|
|
2057
|
+
const g = W.Children.map(
|
|
2048
2058
|
r,
|
|
2049
|
-
(
|
|
2050
|
-
...
|
|
2051
|
-
checked:
|
|
2052
|
-
onCheckedChange: (
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2059
|
+
(f, C) => W.cloneElement(f, {
|
|
2060
|
+
...f.props,
|
|
2061
|
+
checked: l[C],
|
|
2062
|
+
onCheckedChange: (b) => {
|
|
2063
|
+
const m = [...l];
|
|
2064
|
+
m[C] = b, h(m), f.props.onCheckedChange && f.props.onCheckedChange(b);
|
|
2055
2065
|
}
|
|
2056
2066
|
})
|
|
2057
2067
|
);
|
|
2058
|
-
return /* @__PURE__ */
|
|
2059
|
-
/* @__PURE__ */
|
|
2060
|
-
|
|
2068
|
+
return /* @__PURE__ */ v(J, { children: [
|
|
2069
|
+
/* @__PURE__ */ i(
|
|
2070
|
+
dt,
|
|
2061
2071
|
{
|
|
2062
|
-
className:
|
|
2072
|
+
className: o,
|
|
2063
2073
|
labelClassName: n,
|
|
2064
|
-
label:
|
|
2065
|
-
checked:
|
|
2074
|
+
label: t,
|
|
2075
|
+
checked: a,
|
|
2066
2076
|
onCheckedChange: u,
|
|
2067
|
-
...
|
|
2077
|
+
...c
|
|
2068
2078
|
}
|
|
2069
2079
|
),
|
|
2070
2080
|
g
|
|
2071
2081
|
] });
|
|
2072
|
-
}),
|
|
2073
|
-
tableContainer:
|
|
2074
|
-
headerContainer:
|
|
2075
|
-
tableTopContainer:
|
|
2076
|
-
searchContainer:
|
|
2077
|
-
columnFilterSelect:
|
|
2078
|
-
table:
|
|
2079
|
-
tableHeaderCell:
|
|
2080
|
-
tableRow:
|
|
2081
|
-
tableCell:
|
|
2082
|
-
noDataTextContainer:
|
|
2083
|
-
tableBottomContainer:
|
|
2084
|
-
rowsPerPageContainer:
|
|
2085
|
-
rowsPerPageText:
|
|
2086
|
-
|
|
2087
|
-
}, ei = x(function(e, n) {
|
|
2082
|
+
}), Wi = "_tableContainer_go3yk_1", Hi = "_headerContainer_go3yk_14", ji = "_tableTopContainer_go3yk_18", Fi = "_searchContainer_go3yk_22", Vi = "_columnFilterSelect_go3yk_32", Ui = "_table_go3yk_1", Gi = "_tableHeaderCell_go3yk_50", Ki = "_tableRow_go3yk_56", qi = "_tableCell_go3yk_71", Xi = "_noDataTextContainer_go3yk_78", Ji = "_tableBottomContainer_go3yk_84", Qi = "_rowsPerPageContainer_go3yk_88", Yi = "_rowsPerPageText_go3yk_98", L = {
|
|
2083
|
+
tableContainer: Wi,
|
|
2084
|
+
headerContainer: Hi,
|
|
2085
|
+
tableTopContainer: ji,
|
|
2086
|
+
searchContainer: Fi,
|
|
2087
|
+
columnFilterSelect: Vi,
|
|
2088
|
+
table: Ui,
|
|
2089
|
+
tableHeaderCell: Gi,
|
|
2090
|
+
tableRow: Ki,
|
|
2091
|
+
tableCell: qi,
|
|
2092
|
+
noDataTextContainer: Xi,
|
|
2093
|
+
tableBottomContainer: Ji,
|
|
2094
|
+
rowsPerPageContainer: Qi,
|
|
2095
|
+
rowsPerPageText: Yi
|
|
2096
|
+
}, Zi = S(function(o, n) {
|
|
2088
2097
|
const {
|
|
2089
|
-
columns:
|
|
2090
|
-
data:
|
|
2098
|
+
columns: t,
|
|
2099
|
+
data: s,
|
|
2091
2100
|
color: r = "light",
|
|
2092
|
-
title:
|
|
2093
|
-
description:
|
|
2101
|
+
title: c = "",
|
|
2102
|
+
description: a = "",
|
|
2094
2103
|
rowsPerPage: d = [10, 20, 30, 40, 50],
|
|
2095
|
-
showSearchBar:
|
|
2104
|
+
showSearchBar: l,
|
|
2096
2105
|
searchBarPlaceholder: h,
|
|
2097
2106
|
showSelect: u,
|
|
2098
2107
|
showFilterButton: g,
|
|
2099
|
-
showContainer:
|
|
2108
|
+
showContainer: f,
|
|
2100
2109
|
showRowsPerPage: C,
|
|
2101
|
-
showPageNumber:
|
|
2102
|
-
showPageNavigation:
|
|
2110
|
+
showPageNumber: b,
|
|
2111
|
+
showPageNavigation: m,
|
|
2103
2112
|
showTopBar: P = !0,
|
|
2104
|
-
showBottomBar:
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
+
showBottomBar: w = !0,
|
|
2114
|
+
emptyMessage: N = "There is no data",
|
|
2115
|
+
children: A,
|
|
2116
|
+
className: te,
|
|
2117
|
+
columnClassName: Ee,
|
|
2118
|
+
rowClassName: Ce,
|
|
2119
|
+
cellClassName: Ye
|
|
2120
|
+
} = o, [le, ve] = k(""), [Ze, et] = k([]);
|
|
2121
|
+
if (!s.every(
|
|
2122
|
+
(p) => Object.keys(p.columns).length === t.length && Object.values(t).every((_) => Object.keys(p.columns).includes(_.id.toString()))
|
|
2113
2123
|
))
|
|
2114
2124
|
throw new Error("Columns in rows do not match ones declared in columns variable.");
|
|
2115
|
-
const
|
|
2116
|
-
() =>
|
|
2117
|
-
[
|
|
2118
|
-
), [
|
|
2125
|
+
const Be = R(
|
|
2126
|
+
() => t.filter((p) => p.filter).map((p) => ({ [p.id]: [] })).reduce((p, _) => Object.assign(p, _), {}),
|
|
2127
|
+
[t]
|
|
2128
|
+
), [K, I] = k(Be), [B, V] = k(d[0] ?? 10), j = R(
|
|
2119
2129
|
() => d.map((p) => ({
|
|
2120
2130
|
value: p.toString(),
|
|
2121
2131
|
itemContent: p.toString()
|
|
2122
2132
|
})),
|
|
2123
2133
|
[d]
|
|
2124
|
-
),
|
|
2134
|
+
), Me = s.some((p) => p.onClick), ke = x(
|
|
2125
2135
|
(p) => {
|
|
2126
|
-
var
|
|
2127
|
-
return (((
|
|
2136
|
+
var T, O;
|
|
2137
|
+
return (((T = p.searchValue) == null ? void 0 : T.toString()) || ((O = p.value) == null ? void 0 : O.toString()) || "").toLowerCase().includes(le.toLowerCase());
|
|
2128
2138
|
},
|
|
2129
|
-
[
|
|
2130
|
-
),
|
|
2131
|
-
var
|
|
2132
|
-
const
|
|
2133
|
-
return
|
|
2134
|
-
}, []),
|
|
2135
|
-
(p,
|
|
2136
|
-
var
|
|
2137
|
-
const
|
|
2138
|
-
return (ue =
|
|
2139
|
-
(_e) =>
|
|
2139
|
+
[le]
|
|
2140
|
+
), Ne = x((p, _) => {
|
|
2141
|
+
var q, ue, _e, he;
|
|
2142
|
+
const T = ((q = p.sortValue) == null ? void 0 : q.toString()) || ((ue = p.value) == null ? void 0 : ue.toString()) || "", O = ((_e = _.sortValue) == null ? void 0 : _e.toString()) || ((he = _.value) == null ? void 0 : he.toString()) || "";
|
|
2143
|
+
return T.toLowerCase().localeCompare(O.toLowerCase(), void 0, { numeric: !0 });
|
|
2144
|
+
}, []), de = x(
|
|
2145
|
+
(p, _) => {
|
|
2146
|
+
var O, q, ue;
|
|
2147
|
+
const T = ((O = p.filterValue) == null ? void 0 : O.toString()) || ((q = p.value) == null ? void 0 : q.toString()) || "";
|
|
2148
|
+
return (ue = K[_.id]) == null ? void 0 : ue.some(
|
|
2149
|
+
(_e) => T.toString().toLowerCase() === _e.toString().toLowerCase()
|
|
2140
2150
|
);
|
|
2141
2151
|
},
|
|
2142
|
-
[
|
|
2143
|
-
), Q =
|
|
2144
|
-
() =>
|
|
2152
|
+
[K]
|
|
2153
|
+
), Q = R(
|
|
2154
|
+
() => t.map((p) => ({
|
|
2145
2155
|
...p,
|
|
2146
2156
|
sort: p.sort ? { sortKey: p.id.toString().toUpperCase() } : !1
|
|
2147
2157
|
})),
|
|
2148
|
-
[
|
|
2149
|
-
),
|
|
2158
|
+
[t]
|
|
2159
|
+
), ne = t.some(
|
|
2150
2160
|
(p) => {
|
|
2151
|
-
var
|
|
2152
|
-
return p.filter && p.id in
|
|
2161
|
+
var _;
|
|
2162
|
+
return p.filter && p.id in K && ((_ = K[p.id]) == null ? void 0 : _.length) !== 0;
|
|
2153
2163
|
}
|
|
2154
|
-
),
|
|
2155
|
-
() =>
|
|
2156
|
-
(p) => !
|
|
2164
|
+
), Le = R(
|
|
2165
|
+
() => s.filter(
|
|
2166
|
+
(p) => !le || t.some((_) => _.search && ke(p.columns[_.id]))
|
|
2157
2167
|
).filter(
|
|
2158
2168
|
(p) => (
|
|
2159
2169
|
// If no column filter is selected, then return true AKA: show all rows
|
|
2160
|
-
!
|
|
2170
|
+
!ne || // Check if any of the table values match the selected column filters. First return true if that
|
|
2161
2171
|
// column is not selected for filtering (has a filter prop). Second, return true if that column
|
|
2162
2172
|
// has any values in it selected for filtering, lastly, return if row has that filter value
|
|
2163
|
-
|
|
2164
|
-
var
|
|
2165
|
-
return !
|
|
2173
|
+
t.every((_) => {
|
|
2174
|
+
var T;
|
|
2175
|
+
return !_.filter || ((T = K[_.id]) == null ? void 0 : T.length) === 0 || de(p.columns[_.id], _);
|
|
2166
2176
|
})
|
|
2167
2177
|
)
|
|
2168
2178
|
).map((p) => {
|
|
2169
|
-
const
|
|
2170
|
-
return
|
|
2179
|
+
const _ = { ...p.columns, ...p }, { columns: T, ...O } = _;
|
|
2180
|
+
return O;
|
|
2171
2181
|
}),
|
|
2172
|
-
[
|
|
2173
|
-
), [
|
|
2182
|
+
[de, K, t, s, ne, le, ke]
|
|
2183
|
+
), [Y, Gt] = k(Math.ceil(Le.length / B)), nt = x(
|
|
2174
2184
|
(p) => p.filterValues ? p.filterValues : [...new Set(
|
|
2175
|
-
|
|
2176
|
-
(
|
|
2177
|
-
var
|
|
2178
|
-
return ((
|
|
2185
|
+
s.map(
|
|
2186
|
+
(T) => {
|
|
2187
|
+
var O, q;
|
|
2188
|
+
return ((O = T.columns[p.id].filterValue) == null ? void 0 : O.toString()) || ((q = T.columns[p.id].value) == null ? void 0 : q.toString()) || "";
|
|
2179
2189
|
}
|
|
2180
2190
|
)
|
|
2181
|
-
)].sort().map((
|
|
2182
|
-
value:
|
|
2183
|
-
label:
|
|
2191
|
+
)].sort().map((T) => ({
|
|
2192
|
+
value: T,
|
|
2193
|
+
label: T
|
|
2184
2194
|
})),
|
|
2185
|
-
[
|
|
2186
|
-
),
|
|
2187
|
-
() => (u ? "auto " : "") + Q.reduce((p,
|
|
2195
|
+
[s]
|
|
2196
|
+
), Kt = R(
|
|
2197
|
+
() => (u ? "auto " : "") + Q.reduce((p, _) => p + `${_.width || "auto"} `, ""),
|
|
2188
2198
|
[Q, u]
|
|
2189
|
-
),
|
|
2190
|
-
|
|
2191
|
-
}, []),
|
|
2192
|
-
|
|
2199
|
+
), qt = x((p) => {
|
|
2200
|
+
ve(p.target.value);
|
|
2201
|
+
}, []), We = { nodes: Le }, Xt = Kn(
|
|
2202
|
+
We,
|
|
2193
2203
|
{
|
|
2194
2204
|
// Don't know what the type is for these parameters. Not specified in the React Table Library docs
|
|
2195
2205
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2196
2206
|
// @ts-ignore
|
|
2197
|
-
onChange: (p,
|
|
2198
|
-
et(
|
|
2207
|
+
onChange: (p, _) => {
|
|
2208
|
+
et(_.ids);
|
|
2199
2209
|
}
|
|
2200
2210
|
},
|
|
2201
2211
|
{
|
|
2202
2212
|
rowSelect: Ct.MultiSelect,
|
|
2203
2213
|
buttonSelect: Ct.MultiSelect,
|
|
2204
|
-
clickType:
|
|
2214
|
+
clickType: qn.ButtonClick,
|
|
2205
2215
|
isCarryForward: !1
|
|
2206
2216
|
}
|
|
2207
|
-
),
|
|
2208
|
-
|
|
2217
|
+
), z = Qn(
|
|
2218
|
+
We,
|
|
2209
2219
|
{
|
|
2210
2220
|
state: {
|
|
2211
2221
|
page: 0,
|
|
@@ -2215,63 +2225,63 @@ const La = w(function({
|
|
|
2215
2225
|
{
|
|
2216
2226
|
isServer: !1
|
|
2217
2227
|
}
|
|
2218
|
-
),
|
|
2219
|
-
|
|
2228
|
+
), Jt = Un(
|
|
2229
|
+
We,
|
|
2220
2230
|
{ onChange: () => null },
|
|
2221
2231
|
{
|
|
2222
2232
|
sortIcon: {
|
|
2223
2233
|
margin: "10px",
|
|
2224
2234
|
size: "15px",
|
|
2225
|
-
iconDefault: /* @__PURE__ */
|
|
2226
|
-
iconUp: /* @__PURE__ */
|
|
2227
|
-
iconDown: /* @__PURE__ */
|
|
2235
|
+
iconDefault: /* @__PURE__ */ i(rn, { width: "20px" }),
|
|
2236
|
+
iconUp: /* @__PURE__ */ i(sn, {}),
|
|
2237
|
+
iconDown: /* @__PURE__ */ i(an, {})
|
|
2228
2238
|
},
|
|
2229
2239
|
sortFns: Object.assign(
|
|
2230
2240
|
{},
|
|
2231
2241
|
...Q.map((p) => ({
|
|
2232
|
-
[p.id.toString().toUpperCase()]: (
|
|
2242
|
+
[p.id.toString().toUpperCase()]: (_) => _.sort((T, O) => Ne(T[p.id], O[p.id]))
|
|
2233
2243
|
}))
|
|
2234
2244
|
)
|
|
2235
2245
|
}
|
|
2236
|
-
), Qt =
|
|
2246
|
+
), Qt = R(
|
|
2237
2247
|
() => ({
|
|
2238
|
-
options:
|
|
2248
|
+
options: t.filter((p) => p.filter).map((p) => ({
|
|
2239
2249
|
label: p.label,
|
|
2240
2250
|
value: p.id.toString(),
|
|
2241
2251
|
page: {
|
|
2242
|
-
content: /* @__PURE__ */
|
|
2243
|
-
|
|
2252
|
+
content: /* @__PURE__ */ i(
|
|
2253
|
+
Li,
|
|
2244
2254
|
{
|
|
2245
2255
|
label: "Select all",
|
|
2246
|
-
onCheckedChange: (
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2249
|
-
(
|
|
2250
|
-
) :
|
|
2256
|
+
onCheckedChange: (_) => {
|
|
2257
|
+
const T = JSON.parse(JSON.stringify(K));
|
|
2258
|
+
_ === !0 ? T[p.id] = nt(p).map(
|
|
2259
|
+
(O) => O.value
|
|
2260
|
+
) : T[p.id] = [], I(T);
|
|
2251
2261
|
},
|
|
2252
|
-
children:
|
|
2253
|
-
var
|
|
2254
|
-
return /* @__PURE__ */
|
|
2255
|
-
|
|
2262
|
+
children: nt(p).map((_, T) => {
|
|
2263
|
+
var O, q;
|
|
2264
|
+
return /* @__PURE__ */ i(
|
|
2265
|
+
dt,
|
|
2256
2266
|
{
|
|
2257
|
-
label:
|
|
2258
|
-
checked: (
|
|
2259
|
-
((
|
|
2267
|
+
label: _.label,
|
|
2268
|
+
checked: (q = K[p.id]) == null ? void 0 : q.includes(
|
|
2269
|
+
((O = _.value) == null ? void 0 : O.toString()) || ""
|
|
2260
2270
|
),
|
|
2261
2271
|
onCheckedChange: (ue) => {
|
|
2262
|
-
|
|
2272
|
+
I((_e) => {
|
|
2263
2273
|
var pt;
|
|
2264
2274
|
const he = { ..._e }, ht = he[p.id] || [];
|
|
2265
2275
|
return ue ? he[p.id] = [
|
|
2266
2276
|
...ht,
|
|
2267
|
-
((pt =
|
|
2277
|
+
((pt = _.value) == null ? void 0 : pt.toString()) || ""
|
|
2268
2278
|
] : he[p.id] = ht.filter(
|
|
2269
|
-
(tn) => tn !==
|
|
2279
|
+
(tn) => tn !== (_.value ?? "").toString()
|
|
2270
2280
|
), he;
|
|
2271
2281
|
});
|
|
2272
2282
|
}
|
|
2273
2283
|
},
|
|
2274
|
-
`checkbox-filter-${p.id}-${
|
|
2284
|
+
`checkbox-filter-${p.id}-${T}`
|
|
2275
2285
|
);
|
|
2276
2286
|
})
|
|
2277
2287
|
},
|
|
@@ -2280,25 +2290,25 @@ const La = w(function({
|
|
|
2280
2290
|
}
|
|
2281
2291
|
}))
|
|
2282
2292
|
}),
|
|
2283
|
-
[
|
|
2293
|
+
[K, t, nt]
|
|
2284
2294
|
), Yt = Q.map((p) => {
|
|
2285
|
-
const
|
|
2286
|
-
return /* @__PURE__ */
|
|
2287
|
-
|
|
2295
|
+
const _ = p.sort ? Gn : Mn;
|
|
2296
|
+
return /* @__PURE__ */ i(
|
|
2297
|
+
_,
|
|
2288
2298
|
{
|
|
2289
|
-
className:
|
|
2299
|
+
className: y(L.tableHeaderCell, Ee, p.className),
|
|
2290
2300
|
sortKey: p.sort ? p.id.toString().toUpperCase() : "",
|
|
2291
2301
|
children: p.label
|
|
2292
2302
|
},
|
|
2293
2303
|
p.id
|
|
2294
2304
|
);
|
|
2295
|
-
}), ut =
|
|
2305
|
+
}), ut = Ue ? re : $e, Zt = R(() => ({ custom: !0 }), []), en = Vn({
|
|
2296
2306
|
Table: `
|
|
2297
|
-
--data-table-library_grid-template-columns: ${
|
|
2307
|
+
--data-table-library_grid-template-columns: ${Kt};
|
|
2298
2308
|
`,
|
|
2299
2309
|
Row: `
|
|
2300
2310
|
&:hover {
|
|
2301
|
-
cursor: ${
|
|
2311
|
+
cursor: ${Me ? "pointer" : "inherit"};
|
|
2302
2312
|
}
|
|
2303
2313
|
&.row-select-selected {
|
|
2304
2314
|
background-color: var(--gray-a4);
|
|
@@ -2311,499 +2321,246 @@ const La = w(function({
|
|
|
2311
2321
|
background-color: inherit;
|
|
2312
2322
|
`
|
|
2313
2323
|
});
|
|
2314
|
-
return
|
|
2315
|
-
if (
|
|
2316
|
-
const p = Math.ceil(
|
|
2317
|
-
|
|
2324
|
+
return M(() => {
|
|
2325
|
+
if (m) {
|
|
2326
|
+
const p = Math.ceil(Le.length / B);
|
|
2327
|
+
Gt(p), z.state.page < 0 && z.fns.onSetPage(0), z.state.page > p - 1 && z.fns.onSetPage(p - 1);
|
|
2318
2328
|
}
|
|
2319
|
-
}, [d,
|
|
2320
|
-
(!!
|
|
2321
|
-
!!
|
|
2322
|
-
!!
|
|
2329
|
+
}, [d, Le.length, B, z, m]), /* @__PURE__ */ v("div", { className: y({ [L.tableContainer]: f }), children: [
|
|
2330
|
+
(!!c || !!a) && /* @__PURE__ */ v("div", { className: L.headerContainer, children: [
|
|
2331
|
+
!!c && /* @__PURE__ */ i(rt, { weight: "bold", size: "7", children: c }),
|
|
2332
|
+
!!a && /* @__PURE__ */ i(rt, { as: "div", children: a })
|
|
2323
2333
|
] }),
|
|
2324
|
-
P && /* @__PURE__ */
|
|
2325
|
-
/* @__PURE__ */
|
|
2326
|
-
|
|
2334
|
+
P && /* @__PURE__ */ v(D, { justify: "between", className: L.tableTopContainer, children: [
|
|
2335
|
+
/* @__PURE__ */ v(D, { gap: "2", children: [
|
|
2336
|
+
l && /* @__PURE__ */ i("div", { className: L.searchContainer, children: /* @__PURE__ */ i(
|
|
2327
2337
|
Sr,
|
|
2328
2338
|
{
|
|
2329
|
-
value:
|
|
2330
|
-
onChange:
|
|
2331
|
-
leftSlot: /* @__PURE__ */
|
|
2339
|
+
value: le,
|
|
2340
|
+
onChange: qt,
|
|
2341
|
+
leftSlot: /* @__PURE__ */ i(cn, {}),
|
|
2332
2342
|
placeholder: h || "Filter tasks..."
|
|
2333
2343
|
}
|
|
2334
2344
|
) }),
|
|
2335
|
-
g && /* @__PURE__ */
|
|
2336
|
-
|
|
2345
|
+
g && /* @__PURE__ */ i(
|
|
2346
|
+
jr,
|
|
2337
2347
|
{
|
|
2338
2348
|
color: r,
|
|
2339
2349
|
page: Qt,
|
|
2340
|
-
trigger: /* @__PURE__ */
|
|
2350
|
+
trigger: /* @__PURE__ */ i(re, { variant: "surface", "aria-label": "Filter columns", children: /* @__PURE__ */ i(ln, {}) }),
|
|
2341
2351
|
children: (p) => ""
|
|
2342
2352
|
}
|
|
2343
2353
|
),
|
|
2344
|
-
g &&
|
|
2345
|
-
|
|
2354
|
+
g && ne && /* @__PURE__ */ v(
|
|
2355
|
+
$e,
|
|
2346
2356
|
{
|
|
2347
2357
|
variant: "surface",
|
|
2348
2358
|
color: "crimson",
|
|
2349
2359
|
onClick: () => {
|
|
2350
|
-
|
|
2360
|
+
I(Be), z.fns.onSetPage(0);
|
|
2351
2361
|
},
|
|
2352
2362
|
children: [
|
|
2353
|
-
/* @__PURE__ */
|
|
2363
|
+
/* @__PURE__ */ i($t, {}),
|
|
2354
2364
|
"Clear filters"
|
|
2355
2365
|
]
|
|
2356
2366
|
}
|
|
2357
2367
|
)
|
|
2358
2368
|
] }),
|
|
2359
|
-
u &&
|
|
2360
|
-
/* @__PURE__ */
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
!
|
|
2369
|
+
u && Ze.length !== 0 && /* @__PURE__ */ v(D, { gap: "2", children: [
|
|
2370
|
+
/* @__PURE__ */ v(ut, { variant: "soft", "aria-label": "Edit rows", children: [
|
|
2371
|
+
/* @__PURE__ */ i(dn, {}),
|
|
2372
|
+
!Ue && "Edit"
|
|
2363
2373
|
] }),
|
|
2364
|
-
/* @__PURE__ */
|
|
2365
|
-
/* @__PURE__ */
|
|
2366
|
-
!
|
|
2374
|
+
/* @__PURE__ */ v(ut, { color: "red", "aria-label": "Delete rows", children: [
|
|
2375
|
+
/* @__PURE__ */ i(un, {}),
|
|
2376
|
+
!Ue && "Delete"
|
|
2367
2377
|
] })
|
|
2368
2378
|
] })
|
|
2369
2379
|
] }),
|
|
2370
|
-
|
|
2371
|
-
/* @__PURE__ */
|
|
2372
|
-
|
|
2380
|
+
A,
|
|
2381
|
+
/* @__PURE__ */ i(
|
|
2382
|
+
Ln,
|
|
2373
2383
|
{
|
|
2374
|
-
className:
|
|
2375
|
-
data:
|
|
2384
|
+
className: y(L.table, te),
|
|
2385
|
+
data: We,
|
|
2376
2386
|
theme: en,
|
|
2377
|
-
sort:
|
|
2378
|
-
pagination:
|
|
2379
|
-
select:
|
|
2387
|
+
sort: Jt,
|
|
2388
|
+
pagination: m && z,
|
|
2389
|
+
select: Xt,
|
|
2380
2390
|
layout: Zt,
|
|
2381
2391
|
ref: n,
|
|
2382
|
-
children: (p) => /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
u && /* @__PURE__ */
|
|
2392
|
+
children: (p) => /* @__PURE__ */ v(J, { children: [
|
|
2393
|
+
/* @__PURE__ */ i(Wn, { children: /* @__PURE__ */ v(Hn, { children: [
|
|
2394
|
+
u && /* @__PURE__ */ i(Xn, { className: L.tableHeaderCell }),
|
|
2385
2395
|
...Yt
|
|
2386
2396
|
] }) }),
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
p.length === 0 && /* @__PURE__ */
|
|
2389
|
-
p.map((
|
|
2390
|
-
|
|
2397
|
+
/* @__PURE__ */ v(jn, { children: [
|
|
2398
|
+
p.length === 0 && /* @__PURE__ */ i(kn, { className: L.noDataTextContainer, children: /* @__PURE__ */ i(gt, { children: N }) }),
|
|
2399
|
+
p.map((_) => /* @__PURE__ */ v(
|
|
2400
|
+
Fn,
|
|
2391
2401
|
{
|
|
2392
|
-
item:
|
|
2393
|
-
className:
|
|
2394
|
-
onClick:
|
|
2402
|
+
item: _,
|
|
2403
|
+
className: y(L.tableRow, Ce, _.className),
|
|
2404
|
+
onClick: _.onClick,
|
|
2395
2405
|
children: [
|
|
2396
|
-
u && /* @__PURE__ */
|
|
2397
|
-
|
|
2406
|
+
u && /* @__PURE__ */ i(Jn, { item: _ }, _.id),
|
|
2407
|
+
t.map((T, O) => /* @__PURE__ */ i(
|
|
2398
2408
|
gt,
|
|
2399
2409
|
{
|
|
2400
|
-
className:
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2410
|
+
className: y(
|
|
2411
|
+
L.tableCell,
|
|
2412
|
+
Ye,
|
|
2413
|
+
_[T.id].className
|
|
2404
2414
|
),
|
|
2405
|
-
children: /* @__PURE__ */
|
|
2415
|
+
children: /* @__PURE__ */ i(rt, { children: _[T.id].label })
|
|
2406
2416
|
},
|
|
2407
|
-
|
|
2417
|
+
O
|
|
2408
2418
|
))
|
|
2409
2419
|
]
|
|
2410
2420
|
},
|
|
2411
|
-
|
|
2421
|
+
_.id
|
|
2412
2422
|
))
|
|
2413
2423
|
] })
|
|
2414
2424
|
] })
|
|
2415
2425
|
}
|
|
2416
2426
|
),
|
|
2417
|
-
|
|
2418
|
-
C && /* @__PURE__ */
|
|
2419
|
-
/* @__PURE__ */
|
|
2420
|
-
/* @__PURE__ */
|
|
2421
|
-
|
|
2427
|
+
w && /* @__PURE__ */ v(D, { className: L.tableBottomContainer, wrap: "wrap", direction: Ue ? "column" : "row", children: [
|
|
2428
|
+
C && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, children: [
|
|
2429
|
+
/* @__PURE__ */ i("div", { className: L.rowsPerPageText, children: "Rows per page:" }),
|
|
2430
|
+
/* @__PURE__ */ i(
|
|
2431
|
+
Qo,
|
|
2422
2432
|
{
|
|
2423
|
-
items:
|
|
2424
|
-
defaultValue:
|
|
2433
|
+
items: j,
|
|
2434
|
+
defaultValue: j[0].value.toString(),
|
|
2425
2435
|
onValueChange: (p) => {
|
|
2426
|
-
|
|
2436
|
+
z.fns.onSetSize(Number(p)), V(Number(p));
|
|
2427
2437
|
},
|
|
2428
|
-
placeholder:
|
|
2438
|
+
placeholder: j[0].itemContent,
|
|
2429
2439
|
"aria-label": "Select number of rows per page"
|
|
2430
2440
|
}
|
|
2431
2441
|
)
|
|
2432
2442
|
] }),
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
|
|
2443
|
+
b && /* @__PURE__ */ i(D, { justify: "center", children: Y > 0 && `Page ${z.state.page + 1} of ${Y}` }),
|
|
2444
|
+
m && /* @__PURE__ */ v(D, { className: L.rowsPerPageContainer, gap: "2", justify: "end", children: [
|
|
2445
|
+
/* @__PURE__ */ i(
|
|
2446
|
+
re,
|
|
2437
2447
|
{
|
|
2438
2448
|
variant: "surface",
|
|
2439
|
-
onClick: () =>
|
|
2440
|
-
disabled:
|
|
2449
|
+
onClick: () => z.fns.onSetPage(0),
|
|
2450
|
+
disabled: z.state.page === 0 || Y === 0,
|
|
2441
2451
|
"aria-label": "Go to first page",
|
|
2442
|
-
children: /* @__PURE__ */
|
|
2452
|
+
children: /* @__PURE__ */ i(hn, {})
|
|
2443
2453
|
}
|
|
2444
2454
|
),
|
|
2445
|
-
/* @__PURE__ */
|
|
2446
|
-
|
|
2455
|
+
/* @__PURE__ */ i(
|
|
2456
|
+
re,
|
|
2447
2457
|
{
|
|
2448
2458
|
variant: "surface",
|
|
2449
|
-
disabled:
|
|
2450
|
-
onClick: () =>
|
|
2459
|
+
disabled: z.state.page === 0 || Y === 0,
|
|
2460
|
+
onClick: () => z.fns.onSetPage(z.state.page - 1),
|
|
2451
2461
|
"aria-label": "Previous page",
|
|
2452
|
-
children: /* @__PURE__ */
|
|
2462
|
+
children: /* @__PURE__ */ i(pn, {})
|
|
2453
2463
|
}
|
|
2454
2464
|
),
|
|
2455
|
-
/* @__PURE__ */
|
|
2456
|
-
|
|
2465
|
+
/* @__PURE__ */ i(
|
|
2466
|
+
re,
|
|
2457
2467
|
{
|
|
2458
2468
|
variant: "surface",
|
|
2459
|
-
disabled:
|
|
2460
|
-
onClick: () =>
|
|
2469
|
+
disabled: z.state.page + 1 === Y || Y === 0,
|
|
2470
|
+
onClick: () => z.fns.onSetPage(z.state.page + 1),
|
|
2461
2471
|
"aria-label": "Next page",
|
|
2462
|
-
children: /* @__PURE__ */
|
|
2472
|
+
children: /* @__PURE__ */ i(fn, {})
|
|
2463
2473
|
}
|
|
2464
2474
|
),
|
|
2465
|
-
/* @__PURE__ */
|
|
2466
|
-
|
|
2475
|
+
/* @__PURE__ */ i(
|
|
2476
|
+
re,
|
|
2467
2477
|
{
|
|
2468
2478
|
variant: "surface",
|
|
2469
|
-
disabled:
|
|
2470
|
-
onClick: () =>
|
|
2479
|
+
disabled: z.state.page + 1 === Y || Y === 0,
|
|
2480
|
+
onClick: () => z.fns.onSetPage(Y - 1),
|
|
2471
2481
|
"aria-label": "Go to last page",
|
|
2472
|
-
children: /* @__PURE__ */
|
|
2482
|
+
children: /* @__PURE__ */ i(mn, {})
|
|
2473
2483
|
}
|
|
2474
2484
|
)
|
|
2475
2485
|
] })
|
|
2476
2486
|
] })
|
|
2477
2487
|
] });
|
|
2478
|
-
}),
|
|
2479
|
-
["Emily Davis", "Sr. Manger", "Female", "55", "$141,604 ", "United States", "Seattle"],
|
|
2480
|
-
["Theodore Dinh", "Technical Architect", "Male", "59", "$99,975 ", "China", "Chongqing"],
|
|
2481
|
-
["Luna Sanders", "Director", "Female", "50", "$163,099 ", "United States", "Chicago"],
|
|
2482
|
-
["Austin Vo", "Sr. Analyst", "Male", "55", "$95,409 ", "United States", "Phoenix"],
|
|
2483
|
-
["Joshua Gupta", "Account Representative", "Male", "57", "$50,994 ", "China", "Chongqing"],
|
|
2484
|
-
["Ruby Barnes", "Manager", "Female", "27", "$119,746 ", "United States", "Phoenix"],
|
|
2485
|
-
["Luke Martin", "Analyst", "Male", "25", "$41,336 ", "United States", "Miami"],
|
|
2486
|
-
["Easton Bailey", "Manager", "Male", "29", "$113,527 ", "United States", "Austin"],
|
|
2487
|
-
["Madeline Walker", "Sr. Analyst", "Female", "34", "$77,203 ", "United States", "Chicago"],
|
|
2488
|
-
["Savannah Ali", "Sr. Manger", "Female", "36", "$157,333 ", "United States", "Miami"],
|
|
2489
|
-
["Camila Rogers", "Controls Engineer", "Female", "27", "$109,851 ", "United States", "Seattle"],
|
|
2490
|
-
["Eli Jones", "Manager", "Male", "59", "$105,086 ", "United States", "Austin"],
|
|
2491
|
-
["Everleigh Ng", "Sr. Manger", "Female", "51", "$146,742 ", "China", "Shanghai"],
|
|
2492
|
-
["Robert Yang", "Sr. Analyst", "Male", "31", "$97,078 ", "United States", "Austin"],
|
|
2493
|
-
["Isabella Xi", "Vice President", "Female", "41", "$249,270 ", "United States", "Seattle"],
|
|
2494
|
-
["Bella Powell", "Director", "Female", "65", "$175,837 ", "United States", "Phoenix"],
|
|
2495
|
-
["Camila Silva", "Sr. Manger", "Female", "64", "$154,828 ", "United States", "Seattle"],
|
|
2496
|
-
["David Barnes", "Director", "Male", "64", "$186,503 ", "United States", "Columbus"],
|
|
2497
|
-
["Adam Dang", "Director", "Male", "45", "$166,331 ", "China", "Chongqing"],
|
|
2498
|
-
["Elias Alvarado", "Sr. Manger", "Male", "56", "$146,140 ", "Brazil", "Manaus"],
|
|
2499
|
-
["Eva Rivera", "Director", "Female", "36", "$151,703 ", "United States", "Miami"],
|
|
2500
|
-
["Logan Rivera", "Director", "Male", "59", "$172,787 ", "Brazil", "Rio de Janerio"],
|
|
2501
|
-
["Leonardo Dixon", "Analyst", "Male", "37", "$49,998 ", "United States", "Seattle"],
|
|
2502
|
-
["Mateo Her", "Vice President", "Male", "44", "$207,172 ", "China", "Chongqing"],
|
|
2503
|
-
["Jose Henderson", "Director", "Male", "41", "$152,239 ", "United States", "Columbus"],
|
|
2504
|
-
["Abigail Mejia", "Quality Engineer", "Female", "56", "$98,581 ", "Brazil", "Rio de Janerio"],
|
|
2505
|
-
["Wyatt Chin", "Vice President", "Male", "43", "$246,231 ", "United States", "Seattle"],
|
|
2506
|
-
["Carson Lu", "Engineering Manager", "Male", "64", "$99,354 ", "China", "Beijing"],
|
|
2507
|
-
["Dylan Choi", "Vice President", "Male", "63", "$231,141 ", "China", "Beijing"],
|
|
2508
|
-
["Ezekiel Kumar", "IT Coordinator", "Male", "28", "$54,775 ", "United States", "Columbus"],
|
|
2509
|
-
["Dominic Guzman", "Analyst", "Male", "65", "$55,499 ", "Brazil", "Manaus"],
|
|
2510
|
-
["Angel Powell", "Analyst II", "Male", "61", "$66,521 ", "United States", "Seattle"],
|
|
2511
|
-
["Mateo Vu", "Account Representative", "Male", "30", "$59,100 ", "China", "Chongqing"],
|
|
2512
|
-
["Caroline Jenkins", "Analyst", "Female", "27", "$49,011 ", "United States", "Chicago"],
|
|
2513
|
-
["Nora Brown", "Enterprise Architect", "Female", "32", "$99,575 ", "United States", "Austin"],
|
|
2514
|
-
["Adeline Huang", "Controls Engineer", "Female", "34", "$99,989 ", "China", "Chengdu"],
|
|
2515
|
-
["Jackson Perry", "Vice President", "Male", "27", "$256,420 ", "United States", "Phoenix"],
|
|
2516
|
-
["Riley Padilla", "Technical Architect", "Female", "35", "$78,940 ", "United States", "Miami"],
|
|
2517
|
-
["Leah Pena", "Enterprise Architect", "Female", "57", "$82,872 ", "Brazil", "Manaus"],
|
|
2518
|
-
["Owen Lam", "Sr. Business Partner", "Male", "30", "$86,317 ", "China", "Chengdu"],
|
|
2519
|
-
["Kennedy Foster", "Manager", "Female", "53", "$113,135 ", "United States", "Austin"],
|
|
2520
|
-
["John Moore", "Vice President", "Male", "52", "$199,808 ", "United States", "Seattle"],
|
|
2521
|
-
["William Vu", "Account Representative", "Male", "37", "$56,037 ", "China", "Shanghai"],
|
|
2522
|
-
["Sadie Washington", "Sr. Manger", "Female", "29", "$122,350 ", "United States", "Phoenix"],
|
|
2523
|
-
["Gabriel Holmes", "Enterprise Architect", "Male", "40", "$92,952 ", "United States", "Seattle"],
|
|
2524
|
-
["Wyatt Rojas", "Computer Systems Manager", "Male", "32", "$79,921 ", "United States", "Austin"],
|
|
2525
|
-
["Eva Coleman", "Director", "Female", "37", "$167,199 ", "United States", "Seattle"],
|
|
2526
|
-
["Dominic Clark", "Quality Engineer", "Male", "52", "$71,476 ", "United States", "Phoenix"],
|
|
2527
|
-
["Lucy Alexander", "Director", "Female", "45", "$189,420 ", "United States", "Seattle"],
|
|
2528
|
-
["Everleigh Washington", "HRIS Analyst", "Female", "64", "$64,057 ", "United States", "Phoenix"],
|
|
2529
|
-
["Leilani Butler", "Analyst II", "Female", "27", "$68,728 ", "United States", "Phoenix"],
|
|
2530
|
-
["Peyton Huang", "Sr. Manger", "Female", "25", "$125,633 ", "China", "Beijing"]
|
|
2531
|
-
], ji = (t = !0, e = !0, n = !0) => [
|
|
2532
|
-
{
|
|
2533
|
-
id: "full_name",
|
|
2534
|
-
label: "Full Name",
|
|
2535
|
-
sort: t,
|
|
2536
|
-
search: e
|
|
2537
|
-
},
|
|
2538
|
-
{
|
|
2539
|
-
id: "job_title",
|
|
2540
|
-
label: "Job Title",
|
|
2541
|
-
sort: t,
|
|
2542
|
-
search: e,
|
|
2543
|
-
filter: n
|
|
2544
|
-
},
|
|
2545
|
-
{
|
|
2546
|
-
id: "gender",
|
|
2547
|
-
label: "Gender",
|
|
2548
|
-
sort: t,
|
|
2549
|
-
search: e,
|
|
2550
|
-
filter: n
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
id: "age",
|
|
2554
|
-
label: "Age",
|
|
2555
|
-
sort: t
|
|
2556
|
-
},
|
|
2557
|
-
{
|
|
2558
|
-
id: "annual_salary",
|
|
2559
|
-
label: "Annual Salary",
|
|
2560
|
-
sort: t
|
|
2561
|
-
},
|
|
2562
|
-
{
|
|
2563
|
-
id: "country",
|
|
2564
|
-
label: "Country",
|
|
2565
|
-
sort: t,
|
|
2566
|
-
search: e,
|
|
2567
|
-
filter: n
|
|
2568
|
-
}
|
|
2569
|
-
], Vi = (t) => Vt.slice(0, t).map((e, n) => ({
|
|
2570
|
-
id: `row-${n}`,
|
|
2571
|
-
columns: {
|
|
2572
|
-
full_name: {
|
|
2573
|
-
id: `full_name_${n}`,
|
|
2574
|
-
value: e[0],
|
|
2575
|
-
label: e[0]
|
|
2576
|
-
},
|
|
2577
|
-
job_title: {
|
|
2578
|
-
id: `job_title_${n}`,
|
|
2579
|
-
value: e[1],
|
|
2580
|
-
label: e[1]
|
|
2581
|
-
},
|
|
2582
|
-
gender: {
|
|
2583
|
-
id: `gender_${n}`,
|
|
2584
|
-
value: e[2],
|
|
2585
|
-
label: e[2]
|
|
2586
|
-
},
|
|
2587
|
-
age: {
|
|
2588
|
-
id: `age_${n}`,
|
|
2589
|
-
value: e[3],
|
|
2590
|
-
label: e[3]
|
|
2591
|
-
},
|
|
2592
|
-
annual_salary: {
|
|
2593
|
-
id: `annual_salary_${n}`,
|
|
2594
|
-
value: e[4],
|
|
2595
|
-
label: e[4]
|
|
2596
|
-
},
|
|
2597
|
-
country: {
|
|
2598
|
-
id: `country_${n}`,
|
|
2599
|
-
value: e[5],
|
|
2600
|
-
label: e[5]
|
|
2601
|
-
}
|
|
2602
|
-
}
|
|
2603
|
-
})), qi = () => [
|
|
2604
|
-
{
|
|
2605
|
-
id: "full_name",
|
|
2606
|
-
label: "Full Name",
|
|
2607
|
-
sort: !0,
|
|
2608
|
-
search: !0,
|
|
2609
|
-
width: "120px"
|
|
2610
|
-
},
|
|
2611
|
-
{
|
|
2612
|
-
id: "job_title",
|
|
2613
|
-
label: "Job Title",
|
|
2614
|
-
search: !0,
|
|
2615
|
-
filter: !0,
|
|
2616
|
-
width: "220px"
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
id: "gender",
|
|
2620
|
-
label: "Gender",
|
|
2621
|
-
sort: !0,
|
|
2622
|
-
filter: !0
|
|
2623
|
-
},
|
|
2624
|
-
{
|
|
2625
|
-
id: "age",
|
|
2626
|
-
label: "Age",
|
|
2627
|
-
sort: !0
|
|
2628
|
-
},
|
|
2629
|
-
{
|
|
2630
|
-
id: "annual_salary",
|
|
2631
|
-
label: "Annual Salary",
|
|
2632
|
-
sort: !0,
|
|
2633
|
-
filter: !0,
|
|
2634
|
-
filterValues: [
|
|
2635
|
-
{
|
|
2636
|
-
value: 1,
|
|
2637
|
-
label: /* @__PURE__ */ a("div", { style: { backgroundColor: "red" }, children: "< $40000" })
|
|
2638
|
-
},
|
|
2639
|
-
{
|
|
2640
|
-
value: 2,
|
|
2641
|
-
label: /* @__PURE__ */ a("div", { style: { backgroundColor: "orange" }, children: "$40000 - $70000" })
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
value: 3,
|
|
2645
|
-
label: /* @__PURE__ */ a("div", { style: { backgroundColor: "yellow" }, children: "$70000 - $100000" })
|
|
2646
|
-
},
|
|
2647
|
-
{
|
|
2648
|
-
value: 4,
|
|
2649
|
-
label: /* @__PURE__ */ a("div", { style: { backgroundColor: "cyan" }, children: "$100000 - $150000" })
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
value: 5,
|
|
2653
|
-
label: /* @__PURE__ */ a("div", { style: { backgroundColor: "lime" }, children: "> $150000" })
|
|
2654
|
-
}
|
|
2655
|
-
]
|
|
2656
|
-
},
|
|
2657
|
-
{
|
|
2658
|
-
id: "country",
|
|
2659
|
-
label: "Country",
|
|
2660
|
-
search: !0,
|
|
2661
|
-
filter: !0,
|
|
2662
|
-
width: "1fr"
|
|
2663
|
-
},
|
|
2664
|
-
{
|
|
2665
|
-
id: "remove_user",
|
|
2666
|
-
label: ""
|
|
2667
|
-
}
|
|
2668
|
-
], Je = (t) => {
|
|
2669
|
-
const e = t.replace(/\D/g, "");
|
|
2670
|
-
return parseInt(e);
|
|
2671
|
-
}, Gi = (t) => Vt.slice(0, t).map((e, n) => ({
|
|
2672
|
-
id: `row-${n}`,
|
|
2673
|
-
onClick: () => alert(`Clicked row ${n + 1}`),
|
|
2674
|
-
columns: {
|
|
2675
|
-
full_name: {
|
|
2676
|
-
id: `full_name_${n}`,
|
|
2677
|
-
value: e[0],
|
|
2678
|
-
label: e[0]
|
|
2679
|
-
},
|
|
2680
|
-
job_title: {
|
|
2681
|
-
id: `job_title_${n}`,
|
|
2682
|
-
value: e[1],
|
|
2683
|
-
label: e[1]
|
|
2684
|
-
},
|
|
2685
|
-
gender: {
|
|
2686
|
-
id: `gender_${n}`,
|
|
2687
|
-
value: e[2],
|
|
2688
|
-
label: e[2] === "Male" ? /* @__PURE__ */ a("span", { children: "🧑" }) : /* @__PURE__ */ a("span", { children: "👩" }),
|
|
2689
|
-
sortValue: e[2] === "Male" ? 1 : 2
|
|
2690
|
-
},
|
|
2691
|
-
age: {
|
|
2692
|
-
id: `age_${n}`,
|
|
2693
|
-
value: e[3],
|
|
2694
|
-
label: e[3]
|
|
2695
|
-
},
|
|
2696
|
-
annual_salary: {
|
|
2697
|
-
id: `annual_salary_${n}`,
|
|
2698
|
-
value: e[4],
|
|
2699
|
-
label: e[4],
|
|
2700
|
-
filterValue: Je(e[4]) < 4e4 ? 1 : Je(e[4]) < 7e4 ? 2 : Je(e[4]) < 1e5 ? 3 : Je(e[4]) < 15e4 ? 4 : 5
|
|
2701
|
-
},
|
|
2702
|
-
country: {
|
|
2703
|
-
id: `country_${n}`,
|
|
2704
|
-
value: e[5],
|
|
2705
|
-
label: e[5],
|
|
2706
|
-
searchValue: (
|
|
2707
|
-
// Search for country or its abbreviation
|
|
2708
|
-
// Ex: (Search for "United States" or "U.S."
|
|
2709
|
-
e[5].split(" ").map((o, i, r) => r.length === 1 ? o.substring(0, 2) : o.charAt(0)).join(".") + "." + e[5]
|
|
2710
|
-
)
|
|
2711
|
-
},
|
|
2712
|
-
remove_user: {
|
|
2713
|
-
id: `remove_user_${n}`,
|
|
2714
|
-
value: -1,
|
|
2715
|
-
label: /* @__PURE__ */ a(
|
|
2716
|
-
te,
|
|
2717
|
-
{
|
|
2718
|
-
onClick: () => alert(`This is user ${e[0]}`),
|
|
2719
|
-
radius: "large",
|
|
2720
|
-
"aria-label": "Identify user",
|
|
2721
|
-
children: /* @__PURE__ */ a(gn, {})
|
|
2722
|
-
}
|
|
2723
|
-
)
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
}));
|
|
2488
|
+
}), js = W.memo(Zi);
|
|
2727
2489
|
export {
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
J as Flex,
|
|
2757
|
-
cs as Grid,
|
|
2758
|
-
ds as Heading,
|
|
2759
|
-
us as HoverCard,
|
|
2490
|
+
Ks as AccessibleIcon,
|
|
2491
|
+
Io as AlertDialog,
|
|
2492
|
+
At as AlertDialogContent,
|
|
2493
|
+
Ss as AlertDialogProvider,
|
|
2494
|
+
qs as AspectRatio,
|
|
2495
|
+
Xs as Avatar,
|
|
2496
|
+
_s as Badge,
|
|
2497
|
+
Js as Blockquote,
|
|
2498
|
+
Qs as Box,
|
|
2499
|
+
bs as Breadcrumb,
|
|
2500
|
+
$e as Button,
|
|
2501
|
+
Rt as ButtonGroup,
|
|
2502
|
+
ys as ButtonList,
|
|
2503
|
+
Ys as Callout,
|
|
2504
|
+
Zs as Card,
|
|
2505
|
+
dt as Checkbox,
|
|
2506
|
+
ea as Code,
|
|
2507
|
+
ta as Container,
|
|
2508
|
+
na as ContextMenu,
|
|
2509
|
+
Ws as DefaultTheme,
|
|
2510
|
+
xs as Dialog,
|
|
2511
|
+
Ps as DropdownMenu,
|
|
2512
|
+
ks as DropdownSelect,
|
|
2513
|
+
oa as Em,
|
|
2514
|
+
X as Flex,
|
|
2515
|
+
ra as Grid,
|
|
2516
|
+
ia as Heading,
|
|
2517
|
+
sa as HoverCard,
|
|
2760
2518
|
qo as HoverUtility,
|
|
2761
|
-
|
|
2762
|
-
|
|
2519
|
+
re as IconButton,
|
|
2520
|
+
Os as IconColorUtility,
|
|
2763
2521
|
Sr as Input,
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
vi as useViewportSize
|
|
2522
|
+
aa as Inset,
|
|
2523
|
+
ca as Kbd,
|
|
2524
|
+
Rs as LeftAndRightPanels,
|
|
2525
|
+
la as Link,
|
|
2526
|
+
jr as MultiPagePopover,
|
|
2527
|
+
Ns as MultiSelect,
|
|
2528
|
+
Nr as Popover,
|
|
2529
|
+
da as Portal,
|
|
2530
|
+
ua as Quote,
|
|
2531
|
+
ha as RadioGroup,
|
|
2532
|
+
qr as Root,
|
|
2533
|
+
pa as ScrollArea,
|
|
2534
|
+
fa as Section,
|
|
2535
|
+
Qo as Select,
|
|
2536
|
+
Li as SelectAllCheckbox,
|
|
2537
|
+
Wo as Separator,
|
|
2538
|
+
Ds as Sidebar,
|
|
2539
|
+
Is as SlideOut,
|
|
2540
|
+
ma as Slider,
|
|
2541
|
+
ga as Slot,
|
|
2542
|
+
Ca as Strong,
|
|
2543
|
+
Ts as Switch,
|
|
2544
|
+
js as Table,
|
|
2545
|
+
va as Tabs,
|
|
2546
|
+
rt as Text,
|
|
2547
|
+
zs as TextArea,
|
|
2548
|
+
_a as TextField,
|
|
2549
|
+
ba as Theme,
|
|
2550
|
+
oi as Toast,
|
|
2551
|
+
Bt as ToastContext,
|
|
2552
|
+
Ms as ToastProvider,
|
|
2553
|
+
As as ToggleGroup,
|
|
2554
|
+
Es as Toolbar,
|
|
2555
|
+
Ls as Tooltip,
|
|
2556
|
+
wa as VisuallyHidden,
|
|
2557
|
+
ws as divButtonProps,
|
|
2558
|
+
si as unsafeShowToast,
|
|
2559
|
+
ya as updateThemeAppearanceClass,
|
|
2560
|
+
Ro as useAlertDialog,
|
|
2561
|
+
$s as useDiscardAlertDialog,
|
|
2562
|
+
E as useSeverityColor,
|
|
2563
|
+
xa as useThemeContext,
|
|
2564
|
+
Bs as useToast,
|
|
2565
|
+
vs as useViewportSize
|
|
2809
2566
|
};
|