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