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