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