@altimateai/ui-components 0.0.2 → 0.0.3-beta.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/CoachForm.js +2 -2
- package/dist/NativeSelect.js +56 -56
- package/dist/Tooltip.js +13 -13
- package/dist/lineage/index.js +1 -1
- package/dist/main.js +2 -2
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +25 -11
- package/dist/shadcn/index.js +1051 -1000
- package/dist/storybook/Select.stories.tsx +33 -0
- package/package.json +1 -1
package/dist/shadcn/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as kt, c as je, a as Ke, R as Ot, I as $t, b as Ft, d as
|
|
2
|
-
import { ak as
|
|
3
|
-
import { j as w, P as O, k as Ue, c as ce, u as q, a as E, b as ge, r as Ht, f as ve, l as ne, t as nt, B as
|
|
4
|
-
import {
|
|
5
|
-
import { j as l, S as
|
|
1
|
+
import { u as kt, c as je, a as Ke, R as Ot, I as $t, b as Ft, d as as, C as rs, e as ns, f as os, g as ss, h as ls, i as is, S as cs, j as ds, k as Vt, l as us, A as fs, m as ps, G as ms, L as bs, n as gs, o as vs, p as hs, q as xs, r as ws, s as ys, t as Ss, v as Cs, w as Rs, x as Ps, P as Ns, y as Es } from "../NativeSelect.js";
|
|
2
|
+
import { ak as lf, an as cf, al as df, am as uf, aq as ff, az as pf, aA as mf, au as bf, ay as gf, aw as vf, av as hf, as as xf, ar as wf, ax as yf, at as Sf, ai as Cf, a6 as Rf, a3 as Pf, a5 as Nf, a4 as Ef, a7 as Tf, aa as _f, ac as Af, ag as Mf, ae as If, ad as jf, a9 as Df, a8 as zf, af as Lf, ab as kf, M as Of, U as $f, O as Ff, Z as Vf, Q as Hf, W as Bf, _ as Gf, a2 as Kf, V as Uf, X as Wf, Y as Xf, $ as Yf, a0 as qf, a1 as Jf, N as Zf, aB as Qf, aC as ep, aG as tp, aD as ap, aI as rp, aH as np, aL as op, aK as sp, aJ as lp, aF as ip, aE as cp, E as dp, K as up, H as fp, F as pp, B as mp, z as bp, J as gp, D as vp, T as hp, ah as xp, aj as wp, ao as yp, ap as Sp } from "../NativeSelect.js";
|
|
3
|
+
import { j as w, P as O, k as Ue, c as ce, u as q, a as E, b as ge, r as Ht, f as ve, l as ne, t as nt, B as Ts, V as ka, x as _s, i as As, p as Ms, y as Is, z as js, E as Oa, G as Ds, T as zs, H as Ls, I as ks, J as Os, S as Ce, g as qe, w as $s, m as $a, A as Fs, D as Vs, C as Hs, n as Bs, q as Gs } from "../Tooltip.js";
|
|
4
|
+
import { K as Rp, Q as Pp, O as Np, M as Ep, L as Tp, N as _p, U as Ap } from "../Tooltip.js";
|
|
5
|
+
import { j as l, S as Fa, C as Ks, d as Us, b as Va, f as Ws, a as Bt, M as Ha, g as Xs, h as Ys } from "../index2.js";
|
|
6
6
|
import * as c from "react";
|
|
7
|
-
import Y, { forwardRef as De } from "react";
|
|
8
|
-
import * as
|
|
9
|
-
import '../index.css';const
|
|
7
|
+
import Y, { forwardRef as De, useState as qs } from "react";
|
|
8
|
+
import * as Js from "react-dom";
|
|
9
|
+
import '../index.css';const Ba = c.forwardRef(
|
|
10
10
|
({ className: e, type: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
11
11
|
"input",
|
|
12
12
|
{
|
|
@@ -20,8 +20,8 @@ import '../index.css';const Va = c.forwardRef(
|
|
|
20
20
|
}
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
|
-
|
|
24
|
-
var
|
|
23
|
+
Ba.displayName = "Input";
|
|
24
|
+
var Zs = "Label", Ga = c.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
|
|
25
25
|
O.label,
|
|
26
26
|
{
|
|
27
27
|
...e,
|
|
@@ -32,13 +32,13 @@ var Vs = "Label", Ha = c.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
const
|
|
35
|
+
Ga.displayName = Zs;
|
|
36
|
+
var Ka = Ga;
|
|
37
|
+
const Qs = Ue(
|
|
38
38
|
"al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
var Gt = "Radio", [
|
|
39
|
+
), Ua = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(Ka, { ref: a, className: w(Qs(), e), ...t }));
|
|
40
|
+
Ua.displayName = Ka.displayName;
|
|
41
|
+
var Gt = "Radio", [el, Wa] = ce(Gt), [tl, al] = el(Gt), Xa = c.forwardRef(
|
|
42
42
|
(e, t) => {
|
|
43
43
|
const {
|
|
44
44
|
__scopeRadio: a,
|
|
@@ -51,14 +51,14 @@ var Gt = "Radio", [Bs, Ka] = ce(Gt), [Gs, Ks] = Bs(Gt), Ua = c.forwardRef(
|
|
|
51
51
|
form: f,
|
|
52
52
|
...m
|
|
53
53
|
} = e, [p, u] = c.useState(null), g = q(t, (h) => u(h)), b = c.useRef(!1), v = p ? f || !!p.closest("form") : !0;
|
|
54
|
-
return /* @__PURE__ */ l.jsxs(
|
|
54
|
+
return /* @__PURE__ */ l.jsxs(tl, { scope: a, checked: n, disabled: s, children: [
|
|
55
55
|
/* @__PURE__ */ l.jsx(
|
|
56
56
|
O.button,
|
|
57
57
|
{
|
|
58
58
|
type: "button",
|
|
59
59
|
role: "radio",
|
|
60
60
|
"aria-checked": n,
|
|
61
|
-
"data-state":
|
|
61
|
+
"data-state": Ja(n),
|
|
62
62
|
"data-disabled": s ? "" : void 0,
|
|
63
63
|
disabled: s,
|
|
64
64
|
value: i,
|
|
@@ -70,7 +70,7 @@ var Gt = "Radio", [Bs, Ka] = ce(Gt), [Gs, Ks] = Bs(Gt), Ua = c.forwardRef(
|
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
v && /* @__PURE__ */ l.jsx(
|
|
73
|
-
|
|
73
|
+
rl,
|
|
74
74
|
{
|
|
75
75
|
control: p,
|
|
76
76
|
bubbles: !b.current,
|
|
@@ -86,14 +86,14 @@ var Gt = "Radio", [Bs, Ka] = ce(Gt), [Gs, Ks] = Bs(Gt), Ua = c.forwardRef(
|
|
|
86
86
|
] });
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
|
|
90
|
-
var
|
|
89
|
+
Xa.displayName = Gt;
|
|
90
|
+
var Ya = "RadioIndicator", qa = c.forwardRef(
|
|
91
91
|
(e, t) => {
|
|
92
|
-
const { __scopeRadio: a, forceMount: r, ...n } = e, o =
|
|
92
|
+
const { __scopeRadio: a, forceMount: r, ...n } = e, o = al(Ya, a);
|
|
93
93
|
return /* @__PURE__ */ l.jsx(ge, { present: r || o.checked, children: /* @__PURE__ */ l.jsx(
|
|
94
94
|
O.span,
|
|
95
95
|
{
|
|
96
|
-
"data-state":
|
|
96
|
+
"data-state": Ja(o.checked),
|
|
97
97
|
"data-disabled": o.disabled ? "" : void 0,
|
|
98
98
|
...n,
|
|
99
99
|
ref: t
|
|
@@ -101,8 +101,8 @@ var Wa = "RadioIndicator", Xa = c.forwardRef(
|
|
|
101
101
|
) });
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
|
-
|
|
105
|
-
var
|
|
104
|
+
qa.displayName = Ya;
|
|
105
|
+
var rl = (e) => {
|
|
106
106
|
const { control: t, checked: a, bubbles: r = !0, ...n } = e, o = c.useRef(null), s = kt(a), i = Ht(t);
|
|
107
107
|
return c.useEffect(() => {
|
|
108
108
|
const d = o.current, f = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
@@ -130,13 +130,13 @@ var Us = (e) => {
|
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function Ja(e) {
|
|
134
134
|
return e ? "checked" : "unchecked";
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var nl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Kt = "RadioGroup", [ol, Iu] = ce(Kt, [
|
|
137
137
|
je,
|
|
138
|
-
|
|
139
|
-
]),
|
|
138
|
+
Wa
|
|
139
|
+
]), Za = je(), Qa = Wa(), [sl, ll] = ol(Kt), er = c.forwardRef(
|
|
140
140
|
(e, t) => {
|
|
141
141
|
const {
|
|
142
142
|
__scopeRadioGroup: a,
|
|
@@ -150,13 +150,13 @@ var Ws = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Kt = "RadioGroup",
|
|
|
150
150
|
loop: m = !0,
|
|
151
151
|
onValueChange: p,
|
|
152
152
|
...u
|
|
153
|
-
} = e, g =
|
|
153
|
+
} = e, g = Za(a), b = Ke(f), [v, h] = ve({
|
|
154
154
|
prop: o,
|
|
155
155
|
defaultProp: n,
|
|
156
156
|
onChange: p
|
|
157
157
|
});
|
|
158
158
|
return /* @__PURE__ */ l.jsx(
|
|
159
|
-
|
|
159
|
+
sl,
|
|
160
160
|
{
|
|
161
161
|
scope: a,
|
|
162
162
|
name: r,
|
|
@@ -190,13 +190,13 @@ var Ws = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Kt = "RadioGroup",
|
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
|
-
|
|
194
|
-
var
|
|
193
|
+
er.displayName = Kt;
|
|
194
|
+
var tr = "RadioGroupItem", ar = c.forwardRef(
|
|
195
195
|
(e, t) => {
|
|
196
|
-
const { __scopeRadioGroup: a, disabled: r, ...n } = e, o =
|
|
196
|
+
const { __scopeRadioGroup: a, disabled: r, ...n } = e, o = ll(tr, a), s = o.disabled || r, i = Za(a), d = Qa(a), f = c.useRef(null), m = q(t, f), p = o.value === n.value, u = c.useRef(!1);
|
|
197
197
|
return c.useEffect(() => {
|
|
198
198
|
const g = (v) => {
|
|
199
|
-
|
|
199
|
+
nl.includes(v.key) && (u.current = !0);
|
|
200
200
|
}, b = () => u.current = !1;
|
|
201
201
|
return document.addEventListener("keydown", g), document.addEventListener("keyup", b), () => {
|
|
202
202
|
document.removeEventListener("keydown", g), document.removeEventListener("keyup", b);
|
|
@@ -209,7 +209,7 @@ var Qa = "RadioGroupItem", er = c.forwardRef(
|
|
|
209
209
|
focusable: !s,
|
|
210
210
|
active: p,
|
|
211
211
|
children: /* @__PURE__ */ l.jsx(
|
|
212
|
-
|
|
212
|
+
Xa,
|
|
213
213
|
{
|
|
214
214
|
disabled: s,
|
|
215
215
|
required: o.required,
|
|
@@ -232,19 +232,19 @@ var Qa = "RadioGroupItem", er = c.forwardRef(
|
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
|
|
236
|
-
var
|
|
235
|
+
ar.displayName = tr;
|
|
236
|
+
var il = "RadioGroupIndicator", rr = c.forwardRef(
|
|
237
237
|
(e, t) => {
|
|
238
|
-
const { __scopeRadioGroup: a, ...r } = e, n =
|
|
239
|
-
return /* @__PURE__ */ l.jsx(
|
|
238
|
+
const { __scopeRadioGroup: a, ...r } = e, n = Qa(a);
|
|
239
|
+
return /* @__PURE__ */ l.jsx(qa, { ...n, ...r, ref: t });
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
|
-
|
|
243
|
-
var
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
const
|
|
247
|
-
|
|
242
|
+
rr.displayName = il;
|
|
243
|
+
var nr = er, or = ar, cl = rr;
|
|
244
|
+
const dl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(nr, { className: w("al-grid al-gap-2", e), ...t, ref: a }));
|
|
245
|
+
dl.displayName = nr.displayName;
|
|
246
|
+
const ul = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
247
|
+
or,
|
|
248
248
|
{
|
|
249
249
|
ref: a,
|
|
250
250
|
className: w(
|
|
@@ -252,15 +252,15 @@ const el = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
252
252
|
e
|
|
253
253
|
),
|
|
254
254
|
...t,
|
|
255
|
-
children: /* @__PURE__ */ l.jsx(
|
|
255
|
+
children: /* @__PURE__ */ l.jsx(cl, { className: "al-flex al-items-center al-justify-center", children: /* @__PURE__ */ l.jsx(Fa, { className: "al-h-2.5 al-w-2.5 al-fill-current al-text-current" }) })
|
|
256
256
|
}
|
|
257
257
|
));
|
|
258
|
-
|
|
259
|
-
var Ut = "Avatar", [
|
|
258
|
+
ul.displayName = or.displayName;
|
|
259
|
+
var Ut = "Avatar", [fl, ju] = ce(Ut), [pl, sr] = fl(Ut), lr = c.forwardRef(
|
|
260
260
|
(e, t) => {
|
|
261
261
|
const { __scopeAvatar: a, ...r } = e, [n, o] = c.useState("idle");
|
|
262
262
|
return /* @__PURE__ */ l.jsx(
|
|
263
|
-
|
|
263
|
+
pl,
|
|
264
264
|
{
|
|
265
265
|
scope: a,
|
|
266
266
|
imageLoadingStatus: n,
|
|
@@ -270,11 +270,11 @@ var Ut = "Avatar", [tl, Su] = ce(Ut), [al, nr] = tl(Ut), or = c.forwardRef(
|
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
|
-
|
|
274
|
-
var
|
|
273
|
+
lr.displayName = Ut;
|
|
274
|
+
var ir = "AvatarImage", cr = c.forwardRef(
|
|
275
275
|
(e, t) => {
|
|
276
276
|
const { __scopeAvatar: a, src: r, onLoadingStatusChange: n = () => {
|
|
277
|
-
}, ...o } = e, s =
|
|
277
|
+
}, ...o } = e, s = sr(ir, a), i = ml(r, o.referrerPolicy), d = ne((f) => {
|
|
278
278
|
n(f), s.onImageLoadingStatusChange(f);
|
|
279
279
|
});
|
|
280
280
|
return nt(() => {
|
|
@@ -282,10 +282,10 @@ var sr = "AvatarImage", lr = c.forwardRef(
|
|
|
282
282
|
}, [i, d]), i === "loaded" ? /* @__PURE__ */ l.jsx(O.img, { ...o, ref: t, src: r }) : null;
|
|
283
283
|
}
|
|
284
284
|
);
|
|
285
|
-
|
|
286
|
-
var
|
|
285
|
+
cr.displayName = ir;
|
|
286
|
+
var dr = "AvatarFallback", ur = c.forwardRef(
|
|
287
287
|
(e, t) => {
|
|
288
|
-
const { __scopeAvatar: a, delayMs: r, ...n } = e, o =
|
|
288
|
+
const { __scopeAvatar: a, delayMs: r, ...n } = e, o = sr(dr, a), [s, i] = c.useState(r === void 0);
|
|
289
289
|
return c.useEffect(() => {
|
|
290
290
|
if (r !== void 0) {
|
|
291
291
|
const d = window.setTimeout(() => i(!0), r);
|
|
@@ -294,8 +294,8 @@ var ir = "AvatarFallback", cr = c.forwardRef(
|
|
|
294
294
|
}, [r]), s && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l.jsx(O.span, { ...n, ref: t }) : null;
|
|
295
295
|
}
|
|
296
296
|
);
|
|
297
|
-
|
|
298
|
-
function
|
|
297
|
+
ur.displayName = dr;
|
|
298
|
+
function ml(e, t) {
|
|
299
299
|
const [a, r] = c.useState("idle");
|
|
300
300
|
return nt(() => {
|
|
301
301
|
if (!e) {
|
|
@@ -311,9 +311,9 @@ function rl(e, t) {
|
|
|
311
311
|
};
|
|
312
312
|
}, [e, t]), a;
|
|
313
313
|
}
|
|
314
|
-
var
|
|
315
|
-
const
|
|
316
|
-
|
|
314
|
+
var fr = lr, pr = cr, mr = ur;
|
|
315
|
+
const bl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
316
|
+
fr,
|
|
317
317
|
{
|
|
318
318
|
ref: a,
|
|
319
319
|
className: w(
|
|
@@ -323,18 +323,18 @@ const nl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
323
323
|
...t
|
|
324
324
|
}
|
|
325
325
|
));
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
326
|
+
bl.displayName = fr.displayName;
|
|
327
|
+
const gl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
328
|
+
pr,
|
|
329
329
|
{
|
|
330
330
|
ref: a,
|
|
331
331
|
className: w("al-aspect-square al-h-full al-w-full", e),
|
|
332
332
|
...t
|
|
333
333
|
}
|
|
334
334
|
));
|
|
335
|
-
|
|
336
|
-
const
|
|
337
|
-
|
|
335
|
+
gl.displayName = pr.displayName;
|
|
336
|
+
const vl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
337
|
+
mr,
|
|
338
338
|
{
|
|
339
339
|
ref: a,
|
|
340
340
|
className: w(
|
|
@@ -344,8 +344,8 @@ const sl = De(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
344
344
|
...t
|
|
345
345
|
}
|
|
346
346
|
));
|
|
347
|
-
|
|
348
|
-
var Wt = "ToastProvider", [Xt,
|
|
347
|
+
vl.displayName = mr.displayName;
|
|
348
|
+
var Wt = "ToastProvider", [Xt, hl, xl] = Ft("Toast"), [br, Du] = ce("Toast", [xl]), [wl, ot] = br(Wt), gr = (e) => {
|
|
349
349
|
const {
|
|
350
350
|
__scopeToast: t,
|
|
351
351
|
label: a = "Notification",
|
|
@@ -357,7 +357,7 @@ var Wt = "ToastProvider", [Xt, ll, il] = Ft("Toast"), [pr, Ru] = ce("Toast", [il
|
|
|
357
357
|
return a.trim() || console.error(
|
|
358
358
|
`Invalid prop \`label\` supplied to \`${Wt}\`. Expected non-empty \`string\`.`
|
|
359
359
|
), /* @__PURE__ */ l.jsx(Xt.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(
|
|
360
|
-
|
|
360
|
+
wl,
|
|
361
361
|
{
|
|
362
362
|
scope: t,
|
|
363
363
|
label: a,
|
|
@@ -375,19 +375,19 @@ var Wt = "ToastProvider", [Xt, ll, il] = Ft("Toast"), [pr, Ru] = ce("Toast", [il
|
|
|
375
375
|
}
|
|
376
376
|
) });
|
|
377
377
|
};
|
|
378
|
-
|
|
379
|
-
var
|
|
378
|
+
gr.displayName = Wt;
|
|
379
|
+
var vr = "ToastViewport", yl = ["F8"], Pt = "toast.viewportPause", Nt = "toast.viewportResume", hr = c.forwardRef(
|
|
380
380
|
(e, t) => {
|
|
381
381
|
const {
|
|
382
382
|
__scopeToast: a,
|
|
383
|
-
hotkey: r =
|
|
383
|
+
hotkey: r = yl,
|
|
384
384
|
label: n = "Notifications ({hotkey})",
|
|
385
385
|
...o
|
|
386
|
-
} = e, s = ot(
|
|
386
|
+
} = e, s = ot(vr, a), i = hl(a), d = c.useRef(null), f = c.useRef(null), m = c.useRef(null), p = c.useRef(null), u = q(t, p, s.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = s.toastCount > 0;
|
|
387
387
|
c.useEffect(() => {
|
|
388
388
|
const h = (x) => {
|
|
389
389
|
var y;
|
|
390
|
-
r.length !== 0 && r.every((
|
|
390
|
+
r.length !== 0 && r.every((R) => x[R] || x.code === R) && ((y = p.current) == null || y.focus());
|
|
391
391
|
};
|
|
392
392
|
return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
|
|
393
393
|
}, [r]), c.useEffect(() => {
|
|
@@ -403,20 +403,20 @@ var br = "ToastViewport", dl = ["F8"], Pt = "toast.viewportPause", Nt = "toast.v
|
|
|
403
403
|
const T = new CustomEvent(Nt);
|
|
404
404
|
x.dispatchEvent(T), s.isClosePausedRef.current = !1;
|
|
405
405
|
}
|
|
406
|
-
},
|
|
406
|
+
}, R = (T) => {
|
|
407
407
|
!h.contains(T.relatedTarget) && y();
|
|
408
408
|
}, I = () => {
|
|
409
409
|
h.contains(document.activeElement) || y();
|
|
410
410
|
};
|
|
411
|
-
return h.addEventListener("focusin", S), h.addEventListener("focusout",
|
|
412
|
-
h.removeEventListener("focusin", S), h.removeEventListener("focusout",
|
|
411
|
+
return h.addEventListener("focusin", S), h.addEventListener("focusout", R), h.addEventListener("pointermove", S), h.addEventListener("pointerleave", I), window.addEventListener("blur", S), window.addEventListener("focus", y), () => {
|
|
412
|
+
h.removeEventListener("focusin", S), h.removeEventListener("focusout", R), h.removeEventListener("pointermove", S), h.removeEventListener("pointerleave", I), window.removeEventListener("blur", S), window.removeEventListener("focus", y);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
}, [b, s.isClosePausedRef]);
|
|
416
416
|
const v = c.useCallback(
|
|
417
417
|
({ tabbingDirection: h }) => {
|
|
418
418
|
const S = i().map((y) => {
|
|
419
|
-
const
|
|
419
|
+
const R = y.ref.current, I = [R, ...Dl(R)];
|
|
420
420
|
return h === "forwards" ? I : I.reverse();
|
|
421
421
|
});
|
|
422
422
|
return (h === "forwards" ? S.reverse() : S).flat();
|
|
@@ -442,7 +442,7 @@ var br = "ToastViewport", dl = ["F8"], Pt = "toast.viewportPause", Nt = "toast.v
|
|
|
442
442
|
return h.addEventListener("keydown", x), () => h.removeEventListener("keydown", x);
|
|
443
443
|
}
|
|
444
444
|
}, [i, v]), /* @__PURE__ */ l.jsxs(
|
|
445
|
-
|
|
445
|
+
Ts,
|
|
446
446
|
{
|
|
447
447
|
ref: d,
|
|
448
448
|
role: "region",
|
|
@@ -480,10 +480,10 @@ var br = "ToastViewport", dl = ["F8"], Pt = "toast.viewportPause", Nt = "toast.v
|
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
482
|
);
|
|
483
|
-
|
|
484
|
-
var
|
|
483
|
+
hr.displayName = vr;
|
|
484
|
+
var xr = "ToastFocusProxy", Et = c.forwardRef(
|
|
485
485
|
(e, t) => {
|
|
486
|
-
const { __scopeToast: a, onFocusFromOutsideViewport: r, ...n } = e, o = ot(
|
|
486
|
+
const { __scopeToast: a, onFocusFromOutsideViewport: r, ...n } = e, o = ot(xr, a);
|
|
487
487
|
return /* @__PURE__ */ l.jsx(
|
|
488
488
|
ka,
|
|
489
489
|
{
|
|
@@ -501,8 +501,8 @@ var vr = "ToastFocusProxy", Et = c.forwardRef(
|
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
|
-
Et.displayName =
|
|
505
|
-
var st = "Toast",
|
|
504
|
+
Et.displayName = xr;
|
|
505
|
+
var st = "Toast", Sl = "toast.swipeStart", Cl = "toast.swipeMove", Rl = "toast.swipeCancel", Pl = "toast.swipeEnd", wr = c.forwardRef(
|
|
506
506
|
(e, t) => {
|
|
507
507
|
const { forceMount: a, open: r, defaultOpen: n, onOpenChange: o, ...s } = e, [i = !0, d] = ve({
|
|
508
508
|
prop: r,
|
|
@@ -510,7 +510,7 @@ var st = "Toast", ul = "toast.swipeStart", fl = "toast.swipeMove", pl = "toast.s
|
|
|
510
510
|
onChange: o
|
|
511
511
|
});
|
|
512
512
|
return /* @__PURE__ */ l.jsx(ge, { present: a || i, children: /* @__PURE__ */ l.jsx(
|
|
513
|
-
|
|
513
|
+
Tl,
|
|
514
514
|
{
|
|
515
515
|
open: i,
|
|
516
516
|
...s,
|
|
@@ -536,11 +536,11 @@ var st = "Toast", ul = "toast.swipeStart", fl = "toast.swipeMove", pl = "toast.s
|
|
|
536
536
|
) });
|
|
537
537
|
}
|
|
538
538
|
);
|
|
539
|
-
|
|
540
|
-
var [
|
|
539
|
+
wr.displayName = st;
|
|
540
|
+
var [Nl, El] = br(st, {
|
|
541
541
|
onClose() {
|
|
542
542
|
}
|
|
543
|
-
}),
|
|
543
|
+
}), Tl = c.forwardRef(
|
|
544
544
|
(e, t) => {
|
|
545
545
|
const {
|
|
546
546
|
__scopeToast: a,
|
|
@@ -556,7 +556,7 @@ var [bl, gl] = pr(st, {
|
|
|
556
556
|
onSwipeCancel: u,
|
|
557
557
|
onSwipeEnd: g,
|
|
558
558
|
...b
|
|
559
|
-
} = e, v = ot(st, a), [h, x] = c.useState(null), S = q(t, (N) => x(N)), y = c.useRef(null),
|
|
559
|
+
} = e, v = ot(st, a), [h, x] = c.useState(null), S = q(t, (N) => x(N)), y = c.useRef(null), R = c.useRef(null), I = n || v.duration, T = c.useRef(0), P = c.useRef(I), B = c.useRef(0), { onToastAdd: j, onToastRemove: H } = v, M = ne(() => {
|
|
560
560
|
var $;
|
|
561
561
|
(h == null ? void 0 : h.contains(document.activeElement)) && (($ = v.viewport) == null || $.focus()), s();
|
|
562
562
|
}), L = c.useCallback(
|
|
@@ -581,10 +581,10 @@ var [bl, gl] = pr(st, {
|
|
|
581
581
|
}, [v.viewport, I, d, f, L]), c.useEffect(() => {
|
|
582
582
|
o && !v.isClosePausedRef.current && L(I);
|
|
583
583
|
}, [o, I, v.isClosePausedRef, L]), c.useEffect(() => (j(), () => H()), [j, H]);
|
|
584
|
-
const W = c.useMemo(() => h ?
|
|
584
|
+
const W = c.useMemo(() => h ? Er(h) : null, [h]);
|
|
585
585
|
return v.viewport ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
586
586
|
W && /* @__PURE__ */ l.jsx(
|
|
587
|
-
|
|
587
|
+
_l,
|
|
588
588
|
{
|
|
589
589
|
__scopeToast: a,
|
|
590
590
|
role: "status",
|
|
@@ -593,9 +593,9 @@ var [bl, gl] = pr(st, {
|
|
|
593
593
|
children: W
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
|
-
/* @__PURE__ */ l.jsx(
|
|
596
|
+
/* @__PURE__ */ l.jsx(Nl, { scope: a, onClose: M, children: Js.createPortal(
|
|
597
597
|
/* @__PURE__ */ l.jsx(Xt.ItemSlot, { scope: a, children: /* @__PURE__ */ l.jsx(
|
|
598
|
-
|
|
598
|
+
_s,
|
|
599
599
|
{
|
|
600
600
|
asChild: !0,
|
|
601
601
|
onEscapeKeyDown: E(i, () => {
|
|
@@ -621,21 +621,21 @@ var [bl, gl] = pr(st, {
|
|
|
621
621
|
}),
|
|
622
622
|
onPointerMove: E(e.onPointerMove, (N) => {
|
|
623
623
|
if (!y.current) return;
|
|
624
|
-
const $ = N.clientX - y.current.x, V = N.clientY - y.current.y, J = !!
|
|
625
|
-
J ? (
|
|
624
|
+
const $ = N.clientX - y.current.x, V = N.clientY - y.current.y, J = !!R.current, U = ["left", "right"].includes(v.swipeDirection), se = ["left", "up"].includes(v.swipeDirection) ? Math.min : Math.max, Re = U ? se(0, $) : 0, ke = U ? 0 : se(0, V), de = N.pointerType === "touch" ? 10 : 2, C = { x: Re, y: ke }, _ = { originalEvent: N, delta: C };
|
|
625
|
+
J ? (R.current = C, Xe(Cl, p, _, {
|
|
626
626
|
discrete: !1
|
|
627
|
-
})) : ha(
|
|
627
|
+
})) : ha(C, v.swipeDirection, de) ? (R.current = C, Xe(Sl, m, _, {
|
|
628
628
|
discrete: !1
|
|
629
629
|
}), N.target.setPointerCapture(N.pointerId)) : (Math.abs($) > de || Math.abs(V) > de) && (y.current = null);
|
|
630
630
|
}),
|
|
631
631
|
onPointerUp: E(e.onPointerUp, (N) => {
|
|
632
|
-
const $ =
|
|
633
|
-
if (V.hasPointerCapture(N.pointerId) && V.releasePointerCapture(N.pointerId),
|
|
632
|
+
const $ = R.current, V = N.target;
|
|
633
|
+
if (V.hasPointerCapture(N.pointerId) && V.releasePointerCapture(N.pointerId), R.current = null, y.current = null, $) {
|
|
634
634
|
const J = N.currentTarget, U = { originalEvent: N, delta: $ };
|
|
635
|
-
ha($, v.swipeDirection, v.swipeThreshold) ? Xe(
|
|
635
|
+
ha($, v.swipeDirection, v.swipeThreshold) ? Xe(Pl, g, U, {
|
|
636
636
|
discrete: !0
|
|
637
637
|
}) : Xe(
|
|
638
|
-
|
|
638
|
+
Rl,
|
|
639
639
|
u,
|
|
640
640
|
U,
|
|
641
641
|
{
|
|
@@ -654,43 +654,43 @@ var [bl, gl] = pr(st, {
|
|
|
654
654
|
) })
|
|
655
655
|
] }) : null;
|
|
656
656
|
}
|
|
657
|
-
),
|
|
657
|
+
), _l = (e) => {
|
|
658
658
|
const { __scopeToast: t, children: a, ...r } = e, n = ot(st, t), [o, s] = c.useState(!1), [i, d] = c.useState(!1);
|
|
659
|
-
return
|
|
659
|
+
return Il(() => s(!0)), c.useEffect(() => {
|
|
660
660
|
const f = window.setTimeout(() => d(!0), 1e3);
|
|
661
661
|
return () => window.clearTimeout(f);
|
|
662
|
-
}, []), i ? null : /* @__PURE__ */ l.jsx(
|
|
662
|
+
}, []), i ? null : /* @__PURE__ */ l.jsx(As, { asChild: !0, children: /* @__PURE__ */ l.jsx(ka, { ...r, children: o && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
663
663
|
n.label,
|
|
664
664
|
" ",
|
|
665
665
|
a
|
|
666
666
|
] }) }) });
|
|
667
|
-
},
|
|
667
|
+
}, Al = "ToastTitle", yr = c.forwardRef(
|
|
668
668
|
(e, t) => {
|
|
669
669
|
const { __scopeToast: a, ...r } = e;
|
|
670
670
|
return /* @__PURE__ */ l.jsx(O.div, { ...r, ref: t });
|
|
671
671
|
}
|
|
672
672
|
);
|
|
673
|
-
|
|
674
|
-
var
|
|
673
|
+
yr.displayName = Al;
|
|
674
|
+
var Ml = "ToastDescription", Sr = c.forwardRef(
|
|
675
675
|
(e, t) => {
|
|
676
676
|
const { __scopeToast: a, ...r } = e;
|
|
677
677
|
return /* @__PURE__ */ l.jsx(O.div, { ...r, ref: t });
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
|
-
|
|
681
|
-
var
|
|
680
|
+
Sr.displayName = Ml;
|
|
681
|
+
var Cr = "ToastAction", Rr = c.forwardRef(
|
|
682
682
|
(e, t) => {
|
|
683
683
|
const { altText: a, ...r } = e;
|
|
684
|
-
return a.trim() ? /* @__PURE__ */ l.jsx(
|
|
685
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
684
|
+
return a.trim() ? /* @__PURE__ */ l.jsx(Nr, { altText: a, asChild: !0, children: /* @__PURE__ */ l.jsx(Yt, { ...r, ref: t }) }) : (console.error(
|
|
685
|
+
`Invalid prop \`altText\` supplied to \`${Cr}\`. Expected non-empty \`string\`.`
|
|
686
686
|
), null);
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
|
-
|
|
690
|
-
var
|
|
689
|
+
Rr.displayName = Cr;
|
|
690
|
+
var Pr = "ToastClose", Yt = c.forwardRef(
|
|
691
691
|
(e, t) => {
|
|
692
|
-
const { __scopeToast: a, ...r } = e, n =
|
|
693
|
-
return /* @__PURE__ */ l.jsx(
|
|
692
|
+
const { __scopeToast: a, ...r } = e, n = El(Pr, a);
|
|
693
|
+
return /* @__PURE__ */ l.jsx(Nr, { asChild: !0, children: /* @__PURE__ */ l.jsx(
|
|
694
694
|
O.button,
|
|
695
695
|
{
|
|
696
696
|
type: "button",
|
|
@@ -701,8 +701,8 @@ var Rr = "ToastClose", Yt = c.forwardRef(
|
|
|
701
701
|
) });
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
|
-
Yt.displayName =
|
|
705
|
-
var
|
|
704
|
+
Yt.displayName = Pr;
|
|
705
|
+
var Nr = c.forwardRef((e, t) => {
|
|
706
706
|
const { __scopeToast: a, altText: r, ...n } = e;
|
|
707
707
|
return /* @__PURE__ */ l.jsx(
|
|
708
708
|
O.div,
|
|
@@ -714,29 +714,29 @@ var Cr = c.forwardRef((e, t) => {
|
|
|
714
714
|
}
|
|
715
715
|
);
|
|
716
716
|
});
|
|
717
|
-
function
|
|
717
|
+
function Er(e) {
|
|
718
718
|
const t = [];
|
|
719
719
|
return Array.from(e.childNodes).forEach((r) => {
|
|
720
|
-
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent),
|
|
720
|
+
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), jl(r)) {
|
|
721
721
|
const n = r.ariaHidden || r.hidden || r.style.display === "none", o = r.dataset.radixToastAnnounceExclude === "";
|
|
722
722
|
if (!n)
|
|
723
723
|
if (o) {
|
|
724
724
|
const s = r.dataset.radixToastAnnounceAlt;
|
|
725
725
|
s && t.push(s);
|
|
726
726
|
} else
|
|
727
|
-
t.push(...
|
|
727
|
+
t.push(...Er(r));
|
|
728
728
|
}
|
|
729
729
|
}), t;
|
|
730
730
|
}
|
|
731
731
|
function Xe(e, t, a, { discrete: r }) {
|
|
732
732
|
const n = a.originalEvent.currentTarget, o = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: a });
|
|
733
|
-
t && n.addEventListener(e, t, { once: !0 }), r ?
|
|
733
|
+
t && n.addEventListener(e, t, { once: !0 }), r ? Ms(n, o) : n.dispatchEvent(o);
|
|
734
734
|
}
|
|
735
735
|
var ha = (e, t, a = 0) => {
|
|
736
736
|
const r = Math.abs(e.x), n = Math.abs(e.y), o = r > n;
|
|
737
737
|
return t === "left" || t === "right" ? o && r > a : !o && n > a;
|
|
738
738
|
};
|
|
739
|
-
function
|
|
739
|
+
function Il(e = () => {
|
|
740
740
|
}) {
|
|
741
741
|
const t = ne(e);
|
|
742
742
|
nt(() => {
|
|
@@ -746,10 +746,10 @@ function yl(e = () => {
|
|
|
746
746
|
};
|
|
747
747
|
}, [t]);
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function jl(e) {
|
|
750
750
|
return e.nodeType === e.ELEMENT_NODE;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Dl(e) {
|
|
753
753
|
const t = [], a = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
754
754
|
acceptNode: (r) => {
|
|
755
755
|
const n = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -763,9 +763,9 @@ function wt(e) {
|
|
|
763
763
|
const t = document.activeElement;
|
|
764
764
|
return e.some((a) => a === t ? !0 : (a.focus(), document.activeElement !== t));
|
|
765
765
|
}
|
|
766
|
-
var
|
|
767
|
-
const
|
|
768
|
-
|
|
766
|
+
var zl = gr, Tr = hr, _r = wr, Ar = yr, Mr = Sr, Ir = Rr, jr = Yt;
|
|
767
|
+
const Ll = zl, Dr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
768
|
+
Tr,
|
|
769
769
|
{
|
|
770
770
|
ref: a,
|
|
771
771
|
className: w(
|
|
@@ -777,8 +777,8 @@ const Pl = Cl, Ir = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
|
777
777
|
...t
|
|
778
778
|
}
|
|
779
779
|
));
|
|
780
|
-
|
|
781
|
-
const
|
|
780
|
+
Dr.displayName = Tr.displayName;
|
|
781
|
+
const kl = Ue(
|
|
782
782
|
"al-group al-pointer-events-auto al-relative al-flex al-w-full al-items-center al-justify-between al-space-x-4 al-overflow-hidden al-rounded-md al-border al-p-6 al-pr-8 al-shadow-lg al-transition-all data-[swipe=cancel]:al-translate-x-0 data-[swipe=end]:al-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:al-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:al-transition-none data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[swipe=end]:al-animate-out data-[state=closed]:al-fade-out-80 data-[state=closed]:al-slide-out-to-right-full data-[state=open]:al-slide-in-from-top-full data-[state=open]:sm:al-slide-in-from-bottom-full",
|
|
783
783
|
{
|
|
784
784
|
variants: {
|
|
@@ -791,19 +791,19 @@ const Nl = Ue(
|
|
|
791
791
|
variant: "default"
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
),
|
|
795
|
-
|
|
794
|
+
), zr = c.forwardRef(({ className: e, variant: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
795
|
+
_r,
|
|
796
796
|
{
|
|
797
797
|
ref: r,
|
|
798
|
-
className: w(
|
|
798
|
+
className: w(kl({ variant: t }), e),
|
|
799
799
|
role: "alert",
|
|
800
800
|
"aria-label": t === "destructive" ? "error-notification" : "notification",
|
|
801
801
|
...a
|
|
802
802
|
}
|
|
803
803
|
));
|
|
804
|
-
|
|
805
|
-
const
|
|
806
|
-
|
|
804
|
+
zr.displayName = _r.displayName;
|
|
805
|
+
const Ol = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
806
|
+
Ir,
|
|
807
807
|
{
|
|
808
808
|
ref: a,
|
|
809
809
|
className: w(
|
|
@@ -814,9 +814,9 @@ const El = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
814
814
|
...t
|
|
815
815
|
}
|
|
816
816
|
));
|
|
817
|
-
|
|
818
|
-
const
|
|
819
|
-
|
|
817
|
+
Ol.displayName = Ir.displayName;
|
|
818
|
+
const Lr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
819
|
+
jr,
|
|
820
820
|
{
|
|
821
821
|
ref: a,
|
|
822
822
|
className: w(
|
|
@@ -827,12 +827,12 @@ const Dr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
827
827
|
role: "button",
|
|
828
828
|
"aria-label": "close notification",
|
|
829
829
|
...t,
|
|
830
|
-
children: /* @__PURE__ */ l.jsx(
|
|
830
|
+
children: /* @__PURE__ */ l.jsx(Ks, { className: "al-h-4 al-w-4" })
|
|
831
831
|
}
|
|
832
832
|
));
|
|
833
|
-
|
|
834
|
-
const
|
|
835
|
-
|
|
833
|
+
Lr.displayName = jr.displayName;
|
|
834
|
+
const kr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
835
|
+
Ar,
|
|
836
836
|
{
|
|
837
837
|
ref: a,
|
|
838
838
|
className: w("al-text-sm al-font-semibold", e),
|
|
@@ -841,9 +841,9 @@ const zr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
841
841
|
...t
|
|
842
842
|
}
|
|
843
843
|
));
|
|
844
|
-
|
|
845
|
-
const
|
|
846
|
-
|
|
844
|
+
kr.displayName = Ar.displayName;
|
|
845
|
+
const Or = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
846
|
+
Mr,
|
|
847
847
|
{
|
|
848
848
|
ref: a,
|
|
849
849
|
className: w("al-text-sm al-opacity-90", e),
|
|
@@ -851,24 +851,24 @@ const Lr = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
851
851
|
...t
|
|
852
852
|
}
|
|
853
853
|
));
|
|
854
|
-
|
|
855
|
-
function
|
|
856
|
-
const { toasts: e } =
|
|
857
|
-
return /* @__PURE__ */ l.jsxs(
|
|
854
|
+
Or.displayName = Mr.displayName;
|
|
855
|
+
function zu() {
|
|
856
|
+
const { toasts: e } = as();
|
|
857
|
+
return /* @__PURE__ */ l.jsxs(Ll, { children: [
|
|
858
858
|
e.map(function({ id: t, title: a, description: r, action: n, ...o }) {
|
|
859
|
-
return /* @__PURE__ */ l.jsxs(
|
|
859
|
+
return /* @__PURE__ */ l.jsxs(zr, { ...o, children: [
|
|
860
860
|
/* @__PURE__ */ l.jsxs("div", { className: "al-grid al-gap-1", children: [
|
|
861
|
-
a && /* @__PURE__ */ l.jsx(
|
|
862
|
-
r && /* @__PURE__ */ l.jsx(
|
|
861
|
+
a && /* @__PURE__ */ l.jsx(kr, { children: a }),
|
|
862
|
+
r && /* @__PURE__ */ l.jsx(Or, { children: r })
|
|
863
863
|
] }),
|
|
864
864
|
n,
|
|
865
|
-
/* @__PURE__ */ l.jsx(
|
|
865
|
+
/* @__PURE__ */ l.jsx(Lr, {})
|
|
866
866
|
] }, t);
|
|
867
867
|
}),
|
|
868
|
-
/* @__PURE__ */ l.jsx(
|
|
868
|
+
/* @__PURE__ */ l.jsx(Dr, {})
|
|
869
869
|
] });
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const $l = Ue(
|
|
872
872
|
"al-relative al-w-full al-rounded-lg al-border al-p-4 [&>svg~*]:al-pl-7 [&>svg+div]:al-translate-y-[-3px] [&>svg]:al-absolute [&>svg]:al-left-4 [&>svg]:al-top-4 [&>svg]:al-text-foreground",
|
|
873
873
|
{
|
|
874
874
|
variants: {
|
|
@@ -881,18 +881,18 @@ const Tl = Ue(
|
|
|
881
881
|
variant: "default"
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
),
|
|
884
|
+
), Fl = c.forwardRef(({ className: e, variant: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
885
885
|
"div",
|
|
886
886
|
{
|
|
887
887
|
ref: r,
|
|
888
888
|
role: "alert",
|
|
889
889
|
"aria-label": t === "destructive" ? "error-alert" : "status-alert",
|
|
890
|
-
className: w(
|
|
890
|
+
className: w($l({ variant: t }), e),
|
|
891
891
|
...a
|
|
892
892
|
}
|
|
893
893
|
));
|
|
894
|
-
|
|
895
|
-
const
|
|
894
|
+
Fl.displayName = "Alert";
|
|
895
|
+
const Vl = c.forwardRef(
|
|
896
896
|
({ className: e, children: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
897
897
|
"h5",
|
|
898
898
|
{
|
|
@@ -903,8 +903,8 @@ const Al = c.forwardRef(
|
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
);
|
|
906
|
-
|
|
907
|
-
const
|
|
906
|
+
Vl.displayName = "AlertTitle";
|
|
907
|
+
const Hl = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
908
908
|
"div",
|
|
909
909
|
{
|
|
910
910
|
ref: a,
|
|
@@ -914,21 +914,21 @@ const Ml = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
914
914
|
...t
|
|
915
915
|
}
|
|
916
916
|
));
|
|
917
|
-
|
|
918
|
-
var qt = "Progress", Jt = 100, [
|
|
917
|
+
Hl.displayName = "AlertDescription";
|
|
918
|
+
var qt = "Progress", Jt = 100, [Bl, Lu] = ce(qt), [Gl, Kl] = Bl(qt), $r = c.forwardRef(
|
|
919
919
|
(e, t) => {
|
|
920
920
|
const {
|
|
921
921
|
__scopeProgress: a,
|
|
922
922
|
value: r = null,
|
|
923
923
|
max: n,
|
|
924
|
-
getValueLabel: o =
|
|
924
|
+
getValueLabel: o = Ul,
|
|
925
925
|
...s
|
|
926
926
|
} = e;
|
|
927
|
-
(n || n === 0) && !xa(n) && console.error(
|
|
927
|
+
(n || n === 0) && !xa(n) && console.error(Wl(`${n}`, "Progress"));
|
|
928
928
|
const i = xa(n) ? n : Jt;
|
|
929
|
-
r !== null && !wa(r, i) && console.error(
|
|
929
|
+
r !== null && !wa(r, i) && console.error(Xl(`${r}`, "Progress"));
|
|
930
930
|
const d = wa(r, i) ? r : null, f = Je(d) ? o(d, i) : void 0;
|
|
931
|
-
return /* @__PURE__ */ l.jsx(
|
|
931
|
+
return /* @__PURE__ */ l.jsx(Gl, { scope: a, value: d, max: i, children: /* @__PURE__ */ l.jsx(
|
|
932
932
|
O.div,
|
|
933
933
|
{
|
|
934
934
|
"aria-valuemax": i,
|
|
@@ -936,7 +936,7 @@ var qt = "Progress", Jt = 100, [Il, Pu] = ce(qt), [jl, Dl] = Il(qt), kr = c.forw
|
|
|
936
936
|
"aria-valuenow": Je(d) ? d : void 0,
|
|
937
937
|
"aria-valuetext": f,
|
|
938
938
|
role: "progressbar",
|
|
939
|
-
"data-state":
|
|
939
|
+
"data-state": Hr(d, i),
|
|
940
940
|
"data-value": d ?? void 0,
|
|
941
941
|
"data-max": i,
|
|
942
942
|
...s,
|
|
@@ -945,14 +945,14 @@ var qt = "Progress", Jt = 100, [Il, Pu] = ce(qt), [jl, Dl] = Il(qt), kr = c.forw
|
|
|
945
945
|
) });
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
|
-
|
|
949
|
-
var
|
|
948
|
+
$r.displayName = qt;
|
|
949
|
+
var Fr = "ProgressIndicator", Vr = c.forwardRef(
|
|
950
950
|
(e, t) => {
|
|
951
|
-
const { __scopeProgress: a, ...r } = e, n =
|
|
951
|
+
const { __scopeProgress: a, ...r } = e, n = Kl(Fr, a);
|
|
952
952
|
return /* @__PURE__ */ l.jsx(
|
|
953
953
|
O.div,
|
|
954
954
|
{
|
|
955
|
-
"data-state":
|
|
955
|
+
"data-state": Hr(n.value, n.max),
|
|
956
956
|
"data-value": n.value ?? void 0,
|
|
957
957
|
"data-max": n.max,
|
|
958
958
|
...r,
|
|
@@ -961,11 +961,11 @@ var Or = "ProgressIndicator", $r = c.forwardRef(
|
|
|
961
961
|
);
|
|
962
962
|
}
|
|
963
963
|
);
|
|
964
|
-
|
|
965
|
-
function
|
|
964
|
+
Vr.displayName = Fr;
|
|
965
|
+
function Ul(e, t) {
|
|
966
966
|
return `${Math.round(e / t * 100)}%`;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Hr(e, t) {
|
|
969
969
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
970
970
|
}
|
|
971
971
|
function Je(e) {
|
|
@@ -977,10 +977,10 @@ function xa(e) {
|
|
|
977
977
|
function wa(e, t) {
|
|
978
978
|
return Je(e) && !isNaN(e) && e <= t && e >= 0;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Wl(e, t) {
|
|
981
981
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Jt}\`.`;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function Xl(e, t) {
|
|
984
984
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
985
985
|
- a positive number
|
|
986
986
|
- less than the value passed to \`max\` (or ${Jt} if no \`max\` prop is set)
|
|
@@ -988,11 +988,11 @@ function kl(e, t) {
|
|
|
988
988
|
|
|
989
989
|
Defaulting to \`null\`.`;
|
|
990
990
|
}
|
|
991
|
-
var
|
|
992
|
-
const
|
|
991
|
+
var Br = $r, Yl = Vr;
|
|
992
|
+
const ql = c.forwardRef(({ className: e, value: t, ...a }, r) => {
|
|
993
993
|
const n = t ?? 0, o = 100 - n;
|
|
994
994
|
return /* @__PURE__ */ l.jsx(
|
|
995
|
-
|
|
995
|
+
Br,
|
|
996
996
|
{
|
|
997
997
|
ref: r,
|
|
998
998
|
className: w(
|
|
@@ -1002,7 +1002,7 @@ const $l = c.forwardRef(({ className: e, value: t, ...a }, r) => {
|
|
|
1002
1002
|
value: n,
|
|
1003
1003
|
...a,
|
|
1004
1004
|
children: /* @__PURE__ */ l.jsx(
|
|
1005
|
-
|
|
1005
|
+
Yl,
|
|
1006
1006
|
{
|
|
1007
1007
|
role: "presentation",
|
|
1008
1008
|
"aria-label": "Progress indicator",
|
|
@@ -1015,9 +1015,59 @@ const $l = c.forwardRef(({ className: e, value: t, ...a }, r) => {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
);
|
|
1017
1017
|
});
|
|
1018
|
-
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1018
|
+
ql.displayName = Br.displayName;
|
|
1019
|
+
const ku = ({ options: e, value: t, onChange: a, placeholder: r, buttonProps: n, id: o, icon: s }) => {
|
|
1020
|
+
var f;
|
|
1021
|
+
const [i, d] = qs(!1);
|
|
1022
|
+
return /* @__PURE__ */ l.jsxs(Is, { open: i, onOpenChange: d, children: [
|
|
1023
|
+
/* @__PURE__ */ l.jsx(js, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
1024
|
+
Oa,
|
|
1025
|
+
{
|
|
1026
|
+
variant: "outline",
|
|
1027
|
+
role: "combobox",
|
|
1028
|
+
"aria-expanded": i,
|
|
1029
|
+
id: `${o}-combobox`,
|
|
1030
|
+
...n,
|
|
1031
|
+
className: `al-w-auto al-justify-start al-font-normal ${n == null ? void 0 : n.className}`,
|
|
1032
|
+
children: [
|
|
1033
|
+
s && /* @__PURE__ */ l.jsx("div", { children: s }),
|
|
1034
|
+
t ? (f = e.find((m) => m.value === t)) == null ? void 0 : f.label : r || r,
|
|
1035
|
+
/* @__PURE__ */ l.jsx(Us, { className: "al-opacity-50" })
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
1038
|
+
) }),
|
|
1039
|
+
/* @__PURE__ */ l.jsx(Ds, { id: `${o}-combobox-content`, className: "al-w-[200px] !al-p-0", children: /* @__PURE__ */ l.jsxs(rs, { children: [
|
|
1040
|
+
/* @__PURE__ */ l.jsx(ns, { placeholder: "Search..." }),
|
|
1041
|
+
/* @__PURE__ */ l.jsxs(os, { children: [
|
|
1042
|
+
/* @__PURE__ */ l.jsx(ss, { children: "No matches found." }),
|
|
1043
|
+
/* @__PURE__ */ l.jsx(ls, { children: e.map((m) => /* @__PURE__ */ l.jsxs(
|
|
1044
|
+
is,
|
|
1045
|
+
{
|
|
1046
|
+
value: m.label,
|
|
1047
|
+
onSelect: (p) => {
|
|
1048
|
+
const u = e.find((g) => g.label === p);
|
|
1049
|
+
a((u == null ? void 0 : u.value) || ""), d(!1);
|
|
1050
|
+
},
|
|
1051
|
+
children: [
|
|
1052
|
+
m.label,
|
|
1053
|
+
/* @__PURE__ */ l.jsx(
|
|
1054
|
+
Va,
|
|
1055
|
+
{
|
|
1056
|
+
className: w(
|
|
1057
|
+
"al-ml-auto",
|
|
1058
|
+
t === m.value ? "al-opacity-100" : "al-opacity-0"
|
|
1059
|
+
)
|
|
1060
|
+
}
|
|
1061
|
+
)
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
m.value
|
|
1065
|
+
)) })
|
|
1066
|
+
] })
|
|
1067
|
+
] }) })
|
|
1068
|
+
] });
|
|
1069
|
+
}, yt = 768;
|
|
1070
|
+
function Jl() {
|
|
1021
1071
|
const [e, t] = c.useState(void 0);
|
|
1022
1072
|
return c.useEffect(() => {
|
|
1023
1073
|
const a = window.matchMedia(`(max-width: ${yt - 1}px)`), r = () => {
|
|
@@ -1026,8 +1076,8 @@ function Fl() {
|
|
|
1026
1076
|
return a.addEventListener("change", r), t(window.innerWidth < yt), () => a.removeEventListener("change", r);
|
|
1027
1077
|
}, []), !!e;
|
|
1028
1078
|
}
|
|
1029
|
-
var
|
|
1030
|
-
const { decorative: a, orientation: r = ya, ...n } = e, o =
|
|
1079
|
+
var Zl = "Separator", ya = "horizontal", Ql = ["horizontal", "vertical"], Gr = c.forwardRef((e, t) => {
|
|
1080
|
+
const { decorative: a, orientation: r = ya, ...n } = e, o = ei(r) ? r : ya, i = a ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
|
1031
1081
|
return /* @__PURE__ */ l.jsx(
|
|
1032
1082
|
O.div,
|
|
1033
1083
|
{
|
|
@@ -1038,13 +1088,13 @@ var Vl = "Separator", ya = "horizontal", Hl = ["horizontal", "vertical"], Hr = c
|
|
|
1038
1088
|
}
|
|
1039
1089
|
);
|
|
1040
1090
|
});
|
|
1041
|
-
|
|
1042
|
-
function
|
|
1043
|
-
return
|
|
1091
|
+
Gr.displayName = Zl;
|
|
1092
|
+
function ei(e) {
|
|
1093
|
+
return Ql.includes(e);
|
|
1044
1094
|
}
|
|
1045
|
-
var
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1095
|
+
var Kr = Gr;
|
|
1096
|
+
const Ur = c.forwardRef(({ className: e, orientation: t = "horizontal", decorative: a = !0, ...r }, n) => /* @__PURE__ */ l.jsx(
|
|
1097
|
+
Kr,
|
|
1048
1098
|
{
|
|
1049
1099
|
ref: n,
|
|
1050
1100
|
decorative: a,
|
|
@@ -1057,18 +1107,18 @@ const Gr = c.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
1057
1107
|
...r
|
|
1058
1108
|
}
|
|
1059
1109
|
));
|
|
1060
|
-
|
|
1110
|
+
Ur.displayName = Kr.displayName;
|
|
1061
1111
|
function Sa({ className: e, ...t }) {
|
|
1062
1112
|
return /* @__PURE__ */ l.jsx("div", { className: w("al-animate-pulse al-rounded-md al-bg-muted", e), ...t });
|
|
1063
1113
|
}
|
|
1064
|
-
const
|
|
1114
|
+
const ti = "sidebar:state", ai = 60 * 60 * 24 * 7, ri = "16rem", ni = "18rem", oi = "3rem", si = "b", Wr = c.createContext(null);
|
|
1065
1115
|
function lt() {
|
|
1066
|
-
const e = c.useContext(
|
|
1116
|
+
const e = c.useContext(Wr);
|
|
1067
1117
|
if (!e)
|
|
1068
1118
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
1069
1119
|
return e;
|
|
1070
1120
|
}
|
|
1071
|
-
const
|
|
1121
|
+
const li = c.forwardRef(
|
|
1072
1122
|
({
|
|
1073
1123
|
defaultOpen: e = !0,
|
|
1074
1124
|
open: t,
|
|
@@ -1078,16 +1128,16 @@ const ql = c.forwardRef(
|
|
|
1078
1128
|
children: o,
|
|
1079
1129
|
...s
|
|
1080
1130
|
}, i) => {
|
|
1081
|
-
const d =
|
|
1131
|
+
const d = Jl(), [f, m] = c.useState(!1), [p, u] = c.useState(e), g = t ?? p, b = c.useCallback(
|
|
1082
1132
|
(S) => {
|
|
1083
1133
|
const y = typeof S == "function" ? S(g) : S;
|
|
1084
|
-
a ? a(y) : u(y), document.cookie = `${
|
|
1134
|
+
a ? a(y) : u(y), document.cookie = `${ti}=${y}; path=/; max-age=${ai}`;
|
|
1085
1135
|
},
|
|
1086
1136
|
[a, g]
|
|
1087
1137
|
), v = c.useCallback(() => d ? m((S) => !S) : b((S) => !S), [d, b, m]);
|
|
1088
1138
|
c.useEffect(() => {
|
|
1089
1139
|
const S = (y) => {
|
|
1090
|
-
y.key ===
|
|
1140
|
+
y.key === si && (y.metaKey || y.ctrlKey) && (y.preventDefault(), v());
|
|
1091
1141
|
};
|
|
1092
1142
|
return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
|
|
1093
1143
|
}, [v]);
|
|
@@ -1103,12 +1153,12 @@ const ql = c.forwardRef(
|
|
|
1103
1153
|
}),
|
|
1104
1154
|
[h, g, b, d, f, m, v]
|
|
1105
1155
|
);
|
|
1106
|
-
return /* @__PURE__ */ l.jsx(
|
|
1156
|
+
return /* @__PURE__ */ l.jsx(Wr.Provider, { value: x, children: /* @__PURE__ */ l.jsx(zs, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
|
|
1107
1157
|
"div",
|
|
1108
1158
|
{
|
|
1109
1159
|
style: {
|
|
1110
|
-
"--sidebar-width":
|
|
1111
|
-
"--sidebar-width-icon":
|
|
1160
|
+
"--sidebar-width": ri,
|
|
1161
|
+
"--sidebar-width-icon": oi,
|
|
1112
1162
|
...n
|
|
1113
1163
|
},
|
|
1114
1164
|
className: w(
|
|
@@ -1122,8 +1172,8 @@ const ql = c.forwardRef(
|
|
|
1122
1172
|
) }) });
|
|
1123
1173
|
}
|
|
1124
1174
|
);
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1175
|
+
li.displayName = "SidebarProvider";
|
|
1176
|
+
const ii = c.forwardRef(
|
|
1127
1177
|
({
|
|
1128
1178
|
side: e = "left",
|
|
1129
1179
|
variant: t = "sidebar",
|
|
@@ -1144,14 +1194,14 @@ const Jl = c.forwardRef(
|
|
|
1144
1194
|
...o,
|
|
1145
1195
|
children: n
|
|
1146
1196
|
}
|
|
1147
|
-
) : i ? /* @__PURE__ */ l.jsx(
|
|
1148
|
-
|
|
1197
|
+
) : i ? /* @__PURE__ */ l.jsx(cs, { open: f, onOpenChange: m, ...o, children: /* @__PURE__ */ l.jsx(
|
|
1198
|
+
ds,
|
|
1149
1199
|
{
|
|
1150
1200
|
"data-sidebar": "sidebar",
|
|
1151
1201
|
"data-mobile": "true",
|
|
1152
1202
|
className: "al-w-[--sidebar-width] al-bg-sidebar al-p-0 al-text-sidebar-foreground [&>button]:al-hidden",
|
|
1153
1203
|
style: {
|
|
1154
|
-
"--sidebar-width":
|
|
1204
|
+
"--sidebar-width": ni
|
|
1155
1205
|
},
|
|
1156
1206
|
side: e,
|
|
1157
1207
|
children: /* @__PURE__ */ l.jsx("div", { className: "al-flex al-h-full al-w-full al-flex-col", children: n })
|
|
@@ -1203,11 +1253,11 @@ const Jl = c.forwardRef(
|
|
|
1203
1253
|
);
|
|
1204
1254
|
}
|
|
1205
1255
|
);
|
|
1206
|
-
|
|
1207
|
-
const
|
|
1256
|
+
ii.displayName = "Sidebar";
|
|
1257
|
+
const ci = c.forwardRef(({ className: e, onClick: t, ...a }, r) => {
|
|
1208
1258
|
const { toggleSidebar: n } = lt();
|
|
1209
1259
|
return /* @__PURE__ */ l.jsxs(
|
|
1210
|
-
|
|
1260
|
+
Oa,
|
|
1211
1261
|
{
|
|
1212
1262
|
ref: r,
|
|
1213
1263
|
"data-sidebar": "trigger",
|
|
@@ -1219,14 +1269,14 @@ const Zl = c.forwardRef(({ className: e, onClick: t, ...a }, r) => {
|
|
|
1219
1269
|
},
|
|
1220
1270
|
...a,
|
|
1221
1271
|
children: [
|
|
1222
|
-
/* @__PURE__ */ l.jsx(
|
|
1272
|
+
/* @__PURE__ */ l.jsx(Ws, {}),
|
|
1223
1273
|
/* @__PURE__ */ l.jsx("span", { className: "al-sr-only", children: "Toggle Sidebar" })
|
|
1224
1274
|
]
|
|
1225
1275
|
}
|
|
1226
1276
|
);
|
|
1227
1277
|
});
|
|
1228
|
-
|
|
1229
|
-
const
|
|
1278
|
+
ci.displayName = "SidebarTrigger";
|
|
1279
|
+
const di = c.forwardRef(
|
|
1230
1280
|
({ className: e, ...t }, a) => {
|
|
1231
1281
|
const { toggleSidebar: r } = lt();
|
|
1232
1282
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -1252,8 +1302,8 @@ const Ql = c.forwardRef(
|
|
|
1252
1302
|
);
|
|
1253
1303
|
}
|
|
1254
1304
|
);
|
|
1255
|
-
|
|
1256
|
-
const
|
|
1305
|
+
di.displayName = "SidebarRail";
|
|
1306
|
+
const ui = c.forwardRef(
|
|
1257
1307
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1258
1308
|
"main",
|
|
1259
1309
|
{
|
|
@@ -1267,9 +1317,9 @@ const ei = c.forwardRef(
|
|
|
1267
1317
|
}
|
|
1268
1318
|
)
|
|
1269
1319
|
);
|
|
1270
|
-
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1320
|
+
ui.displayName = "SidebarInset";
|
|
1321
|
+
const fi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1322
|
+
Ba,
|
|
1273
1323
|
{
|
|
1274
1324
|
ref: a,
|
|
1275
1325
|
"data-sidebar": "input",
|
|
@@ -1280,8 +1330,8 @@ const ti = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1280
1330
|
...t
|
|
1281
1331
|
}
|
|
1282
1332
|
));
|
|
1283
|
-
|
|
1284
|
-
const
|
|
1333
|
+
fi.displayName = "SidebarInput";
|
|
1334
|
+
const pi = c.forwardRef(
|
|
1285
1335
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1286
1336
|
"div",
|
|
1287
1337
|
{
|
|
@@ -1292,8 +1342,8 @@ const ai = c.forwardRef(
|
|
|
1292
1342
|
}
|
|
1293
1343
|
)
|
|
1294
1344
|
);
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1345
|
+
pi.displayName = "SidebarHeader";
|
|
1346
|
+
const mi = c.forwardRef(
|
|
1297
1347
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1298
1348
|
"div",
|
|
1299
1349
|
{
|
|
@@ -1304,9 +1354,9 @@ const ri = c.forwardRef(
|
|
|
1304
1354
|
}
|
|
1305
1355
|
)
|
|
1306
1356
|
);
|
|
1307
|
-
|
|
1308
|
-
const
|
|
1309
|
-
|
|
1357
|
+
mi.displayName = "SidebarFooter";
|
|
1358
|
+
const bi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1359
|
+
Ur,
|
|
1310
1360
|
{
|
|
1311
1361
|
ref: a,
|
|
1312
1362
|
"data-sidebar": "separator",
|
|
@@ -1314,8 +1364,8 @@ const ni = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1314
1364
|
...t
|
|
1315
1365
|
}
|
|
1316
1366
|
));
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1367
|
+
bi.displayName = "SidebarSeparator";
|
|
1368
|
+
const gi = c.forwardRef(
|
|
1319
1369
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1320
1370
|
"div",
|
|
1321
1371
|
{
|
|
@@ -1329,8 +1379,8 @@ const oi = c.forwardRef(
|
|
|
1329
1379
|
}
|
|
1330
1380
|
)
|
|
1331
1381
|
);
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1382
|
+
gi.displayName = "SidebarContent";
|
|
1383
|
+
const vi = c.forwardRef(
|
|
1334
1384
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1335
1385
|
"div",
|
|
1336
1386
|
{
|
|
@@ -1341,9 +1391,9 @@ const si = c.forwardRef(
|
|
|
1341
1391
|
}
|
|
1342
1392
|
)
|
|
1343
1393
|
);
|
|
1344
|
-
|
|
1345
|
-
const
|
|
1346
|
-
const n = t ?
|
|
1394
|
+
vi.displayName = "SidebarGroup";
|
|
1395
|
+
const hi = c.forwardRef(({ className: e, asChild: t = !1, ...a }, r) => {
|
|
1396
|
+
const n = t ? Ce : "div";
|
|
1347
1397
|
return /* @__PURE__ */ l.jsx(
|
|
1348
1398
|
n,
|
|
1349
1399
|
{
|
|
@@ -1358,9 +1408,9 @@ const li = c.forwardRef(({ className: e, asChild: t = !1, ...a }, r) => {
|
|
|
1358
1408
|
}
|
|
1359
1409
|
);
|
|
1360
1410
|
});
|
|
1361
|
-
|
|
1362
|
-
const
|
|
1363
|
-
const n = t ?
|
|
1411
|
+
hi.displayName = "SidebarGroupLabel";
|
|
1412
|
+
const xi = c.forwardRef(({ className: e, asChild: t = !1, ...a }, r) => {
|
|
1413
|
+
const n = t ? Ce : "button";
|
|
1364
1414
|
return /* @__PURE__ */ l.jsx(
|
|
1365
1415
|
n,
|
|
1366
1416
|
{
|
|
@@ -1377,8 +1427,8 @@ const ii = c.forwardRef(({ className: e, asChild: t = !1, ...a }, r) => {
|
|
|
1377
1427
|
}
|
|
1378
1428
|
);
|
|
1379
1429
|
});
|
|
1380
|
-
|
|
1381
|
-
const
|
|
1430
|
+
xi.displayName = "SidebarGroupAction";
|
|
1431
|
+
const wi = c.forwardRef(
|
|
1382
1432
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1383
1433
|
"div",
|
|
1384
1434
|
{
|
|
@@ -1389,8 +1439,8 @@ const ci = c.forwardRef(
|
|
|
1389
1439
|
}
|
|
1390
1440
|
)
|
|
1391
1441
|
);
|
|
1392
|
-
|
|
1393
|
-
const
|
|
1442
|
+
wi.displayName = "SidebarGroupContent";
|
|
1443
|
+
const yi = c.forwardRef(
|
|
1394
1444
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1395
1445
|
"ul",
|
|
1396
1446
|
{
|
|
@@ -1401,8 +1451,8 @@ const di = c.forwardRef(
|
|
|
1401
1451
|
}
|
|
1402
1452
|
)
|
|
1403
1453
|
);
|
|
1404
|
-
|
|
1405
|
-
const
|
|
1454
|
+
yi.displayName = "SidebarMenu";
|
|
1455
|
+
const Si = c.forwardRef(
|
|
1406
1456
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1407
1457
|
"li",
|
|
1408
1458
|
{
|
|
@@ -1413,8 +1463,8 @@ const ui = c.forwardRef(
|
|
|
1413
1463
|
}
|
|
1414
1464
|
)
|
|
1415
1465
|
);
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1466
|
+
Si.displayName = "SidebarMenuItem";
|
|
1467
|
+
const Ci = Ue(
|
|
1418
1468
|
"al-peer/menu-button al-flex al-w-full al-items-center al-gap-2 al-overflow-hidden al-rounded-md al-p-2 al-text-left al-text-sm al-outline-none al-ring-sidebar-ring al-transition-[width,height,padding] hover:al-bg-sidebar-accent hover:al-text-sidebar-accent-foreground focus-visible:al-ring-2 active:al-bg-sidebar-accent active:al-text-sidebar-accent-foreground disabled:al-pointer-events-none disabled:al-opacity-50 al-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:al-pointer-events-none aria-disabled:al-opacity-50 data-[active=true]:al-bg-sidebar-accent data-[active=true]:al-font-medium data-[active=true]:al-text-sidebar-accent-foreground data-[state=open]:hover:al-bg-sidebar-accent data-[state=open]:hover:al-text-sidebar-accent-foreground group-data-[collapsible=icon]:al-!size-8 group-data-[collapsible=icon]:al-!p-2 [&>span:last-child]:al-truncate [&>svg]:al-size-4 [&>svg]:al-shrink-0",
|
|
1419
1469
|
{
|
|
1420
1470
|
variants: {
|
|
@@ -1433,7 +1483,7 @@ const fi = Ue(
|
|
|
1433
1483
|
size: "default"
|
|
1434
1484
|
}
|
|
1435
1485
|
}
|
|
1436
|
-
),
|
|
1486
|
+
), Ri = c.forwardRef(
|
|
1437
1487
|
({
|
|
1438
1488
|
asChild: e = !1,
|
|
1439
1489
|
isActive: t = !1,
|
|
@@ -1443,23 +1493,23 @@ const fi = Ue(
|
|
|
1443
1493
|
className: o,
|
|
1444
1494
|
...s
|
|
1445
1495
|
}, i) => {
|
|
1446
|
-
const d = e ?
|
|
1496
|
+
const d = e ? Ce : "button", { isMobile: f, state: m } = lt(), p = /* @__PURE__ */ l.jsx(
|
|
1447
1497
|
d,
|
|
1448
1498
|
{
|
|
1449
1499
|
ref: i,
|
|
1450
1500
|
"data-sidebar": "menu-button",
|
|
1451
1501
|
"data-size": r,
|
|
1452
1502
|
"data-active": t,
|
|
1453
|
-
className: w(
|
|
1503
|
+
className: w(Ci({ variant: a, size: r }), o),
|
|
1454
1504
|
...s
|
|
1455
1505
|
}
|
|
1456
1506
|
);
|
|
1457
1507
|
return n ? (typeof n == "string" && (n = {
|
|
1458
1508
|
children: n
|
|
1459
|
-
}), /* @__PURE__ */ l.jsxs(
|
|
1460
|
-
/* @__PURE__ */ l.jsx(
|
|
1509
|
+
}), /* @__PURE__ */ l.jsxs(Ls, { children: [
|
|
1510
|
+
/* @__PURE__ */ l.jsx(ks, { asChild: !0, children: p }),
|
|
1461
1511
|
/* @__PURE__ */ l.jsx(
|
|
1462
|
-
|
|
1512
|
+
Os,
|
|
1463
1513
|
{
|
|
1464
1514
|
side: "right",
|
|
1465
1515
|
align: "center",
|
|
@@ -1470,9 +1520,9 @@ const fi = Ue(
|
|
|
1470
1520
|
] })) : p;
|
|
1471
1521
|
}
|
|
1472
1522
|
);
|
|
1473
|
-
|
|
1474
|
-
const
|
|
1475
|
-
const o = t ?
|
|
1523
|
+
Ri.displayName = "SidebarMenuButton";
|
|
1524
|
+
const Pi = c.forwardRef(({ className: e, asChild: t = !1, showOnHover: a = !1, ...r }, n) => {
|
|
1525
|
+
const o = t ? Ce : "button";
|
|
1476
1526
|
return /* @__PURE__ */ l.jsx(
|
|
1477
1527
|
o,
|
|
1478
1528
|
{
|
|
@@ -1493,8 +1543,8 @@ const mi = c.forwardRef(({ className: e, asChild: t = !1, showOnHover: a = !1, .
|
|
|
1493
1543
|
}
|
|
1494
1544
|
);
|
|
1495
1545
|
});
|
|
1496
|
-
|
|
1497
|
-
const
|
|
1546
|
+
Pi.displayName = "SidebarMenuAction";
|
|
1547
|
+
const Ni = c.forwardRef(
|
|
1498
1548
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1499
1549
|
"div",
|
|
1500
1550
|
{
|
|
@@ -1513,8 +1563,8 @@ const bi = c.forwardRef(
|
|
|
1513
1563
|
}
|
|
1514
1564
|
)
|
|
1515
1565
|
);
|
|
1516
|
-
|
|
1517
|
-
const
|
|
1566
|
+
Ni.displayName = "SidebarMenuBadge";
|
|
1567
|
+
const Ei = c.forwardRef(({ className: e, showIcon: t = !1, ...a }, r) => {
|
|
1518
1568
|
const n = c.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
1519
1569
|
return /* @__PURE__ */ l.jsxs(
|
|
1520
1570
|
"div",
|
|
@@ -1539,8 +1589,8 @@ const gi = c.forwardRef(({ className: e, showIcon: t = !1, ...a }, r) => {
|
|
|
1539
1589
|
}
|
|
1540
1590
|
);
|
|
1541
1591
|
});
|
|
1542
|
-
|
|
1543
|
-
const
|
|
1592
|
+
Ei.displayName = "SidebarMenuSkeleton";
|
|
1593
|
+
const Ti = c.forwardRef(
|
|
1544
1594
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1545
1595
|
"ul",
|
|
1546
1596
|
{
|
|
@@ -1555,13 +1605,13 @@ const vi = c.forwardRef(
|
|
|
1555
1605
|
}
|
|
1556
1606
|
)
|
|
1557
1607
|
);
|
|
1558
|
-
|
|
1559
|
-
const
|
|
1608
|
+
Ti.displayName = "SidebarMenuSub";
|
|
1609
|
+
const _i = c.forwardRef(
|
|
1560
1610
|
({ ...e }, t) => /* @__PURE__ */ l.jsx("li", { ref: t, ...e })
|
|
1561
1611
|
);
|
|
1562
|
-
|
|
1563
|
-
const
|
|
1564
|
-
const s = e ?
|
|
1612
|
+
_i.displayName = "SidebarMenuSubItem";
|
|
1613
|
+
const Ai = c.forwardRef(({ asChild: e = !1, size: t = "md", isActive: a, className: r, ...n }, o) => {
|
|
1614
|
+
const s = e ? Ce : "a";
|
|
1565
1615
|
return /* @__PURE__ */ l.jsx(
|
|
1566
1616
|
s,
|
|
1567
1617
|
{
|
|
@@ -1581,8 +1631,8 @@ const xi = c.forwardRef(({ asChild: e = !1, size: t = "md", isActive: a, classNa
|
|
|
1581
1631
|
}
|
|
1582
1632
|
);
|
|
1583
1633
|
});
|
|
1584
|
-
|
|
1585
|
-
var Zt = "Switch", [
|
|
1634
|
+
Ai.displayName = "SidebarMenuSubButton";
|
|
1635
|
+
var Zt = "Switch", [Mi, Ou] = ce(Zt), [Ii, ji] = Mi(Zt), Xr = c.forwardRef(
|
|
1586
1636
|
(e, t) => {
|
|
1587
1637
|
const {
|
|
1588
1638
|
__scopeSwitch: a,
|
|
@@ -1600,7 +1650,7 @@ var Zt = "Switch", [wi, Nu] = ce(Zt), [yi, Si] = wi(Zt), Ur = c.forwardRef(
|
|
|
1600
1650
|
defaultProp: o,
|
|
1601
1651
|
onChange: f
|
|
1602
1652
|
});
|
|
1603
|
-
return /* @__PURE__ */ l.jsxs(
|
|
1653
|
+
return /* @__PURE__ */ l.jsxs(Ii, { scope: a, checked: x, disabled: i, children: [
|
|
1604
1654
|
/* @__PURE__ */ l.jsx(
|
|
1605
1655
|
O.button,
|
|
1606
1656
|
{
|
|
@@ -1608,19 +1658,19 @@ var Zt = "Switch", [wi, Nu] = ce(Zt), [yi, Si] = wi(Zt), Ur = c.forwardRef(
|
|
|
1608
1658
|
role: "switch",
|
|
1609
1659
|
"aria-checked": x,
|
|
1610
1660
|
"aria-required": s,
|
|
1611
|
-
"data-state":
|
|
1661
|
+
"data-state": Jr(x),
|
|
1612
1662
|
"data-disabled": i ? "" : void 0,
|
|
1613
1663
|
disabled: i,
|
|
1614
1664
|
value: d,
|
|
1615
1665
|
...p,
|
|
1616
1666
|
ref: b,
|
|
1617
1667
|
onClick: E(e.onClick, (y) => {
|
|
1618
|
-
S((
|
|
1668
|
+
S((R) => !R), h && (v.current = y.isPropagationStopped(), v.current || y.stopPropagation());
|
|
1619
1669
|
})
|
|
1620
1670
|
}
|
|
1621
1671
|
),
|
|
1622
1672
|
h && /* @__PURE__ */ l.jsx(
|
|
1623
|
-
|
|
1673
|
+
Di,
|
|
1624
1674
|
{
|
|
1625
1675
|
control: u,
|
|
1626
1676
|
bubbles: !v.current,
|
|
@@ -1636,14 +1686,14 @@ var Zt = "Switch", [wi, Nu] = ce(Zt), [yi, Si] = wi(Zt), Ur = c.forwardRef(
|
|
|
1636
1686
|
] });
|
|
1637
1687
|
}
|
|
1638
1688
|
);
|
|
1639
|
-
|
|
1640
|
-
var
|
|
1689
|
+
Xr.displayName = Zt;
|
|
1690
|
+
var Yr = "SwitchThumb", qr = c.forwardRef(
|
|
1641
1691
|
(e, t) => {
|
|
1642
|
-
const { __scopeSwitch: a, ...r } = e, n =
|
|
1692
|
+
const { __scopeSwitch: a, ...r } = e, n = ji(Yr, a);
|
|
1643
1693
|
return /* @__PURE__ */ l.jsx(
|
|
1644
1694
|
O.span,
|
|
1645
1695
|
{
|
|
1646
|
-
"data-state":
|
|
1696
|
+
"data-state": Jr(n.checked),
|
|
1647
1697
|
"data-disabled": n.disabled ? "" : void 0,
|
|
1648
1698
|
...r,
|
|
1649
1699
|
ref: t
|
|
@@ -1651,8 +1701,8 @@ var Wr = "SwitchThumb", Xr = c.forwardRef(
|
|
|
1651
1701
|
);
|
|
1652
1702
|
}
|
|
1653
1703
|
);
|
|
1654
|
-
|
|
1655
|
-
var
|
|
1704
|
+
qr.displayName = Yr;
|
|
1705
|
+
var Di = (e) => {
|
|
1656
1706
|
const { control: t, checked: a, bubbles: r = !0, ...n } = e, o = c.useRef(null), s = kt(a), i = Ht(t);
|
|
1657
1707
|
return c.useEffect(() => {
|
|
1658
1708
|
const d = o.current, f = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(f, "checked").set;
|
|
@@ -1680,12 +1730,12 @@ var Ri = (e) => {
|
|
|
1680
1730
|
}
|
|
1681
1731
|
);
|
|
1682
1732
|
};
|
|
1683
|
-
function
|
|
1733
|
+
function Jr(e) {
|
|
1684
1734
|
return e ? "checked" : "unchecked";
|
|
1685
1735
|
}
|
|
1686
|
-
var
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1736
|
+
var Zr = Xr, zi = qr;
|
|
1737
|
+
const Li = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1738
|
+
Zr,
|
|
1689
1739
|
{
|
|
1690
1740
|
className: w(
|
|
1691
1741
|
"al-peer al-inline-flex al-h-6 al-w-11 al-shrink-0 al-cursor-pointer al-items-center al-rounded-full al-border-2 al-border-transparent al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 focus-visible:al-ring-offset-background disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=unchecked]:al-bg-input",
|
|
@@ -1694,7 +1744,7 @@ const Pi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1694
1744
|
...t,
|
|
1695
1745
|
ref: a,
|
|
1696
1746
|
children: /* @__PURE__ */ l.jsx(
|
|
1697
|
-
|
|
1747
|
+
zi,
|
|
1698
1748
|
{
|
|
1699
1749
|
className: w(
|
|
1700
1750
|
"al-pointer-events-none al-block al-h-5 al-w-5 al-rounded-full al-bg-background al-shadow-lg al-ring-0 al-transition-transform data-[state=checked]:al-translate-x-5 data-[state=unchecked]:al-translate-x-0"
|
|
@@ -1703,10 +1753,10 @@ const Pi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1703
1753
|
)
|
|
1704
1754
|
}
|
|
1705
1755
|
));
|
|
1706
|
-
|
|
1707
|
-
var Qt = "Tabs", [
|
|
1756
|
+
Li.displayName = Zr.displayName;
|
|
1757
|
+
var Qt = "Tabs", [ki, $u] = ce(Qt, [
|
|
1708
1758
|
je
|
|
1709
|
-
]),
|
|
1759
|
+
]), Qr = je(), [Oi, ea] = ki(Qt), en = c.forwardRef(
|
|
1710
1760
|
(e, t) => {
|
|
1711
1761
|
const {
|
|
1712
1762
|
__scopeTabs: a,
|
|
@@ -1723,7 +1773,7 @@ var Qt = "Tabs", [Ni, Eu] = ce(Qt, [
|
|
|
1723
1773
|
defaultProp: o
|
|
1724
1774
|
});
|
|
1725
1775
|
return /* @__PURE__ */ l.jsx(
|
|
1726
|
-
|
|
1776
|
+
Oi,
|
|
1727
1777
|
{
|
|
1728
1778
|
scope: a,
|
|
1729
1779
|
baseId: qe(),
|
|
@@ -1745,10 +1795,10 @@ var Qt = "Tabs", [Ni, Eu] = ce(Qt, [
|
|
|
1745
1795
|
);
|
|
1746
1796
|
}
|
|
1747
1797
|
);
|
|
1748
|
-
|
|
1749
|
-
var
|
|
1798
|
+
en.displayName = Qt;
|
|
1799
|
+
var tn = "TabsList", an = c.forwardRef(
|
|
1750
1800
|
(e, t) => {
|
|
1751
|
-
const { __scopeTabs: a, loop: r = !0, ...n } = e, o = ea(
|
|
1801
|
+
const { __scopeTabs: a, loop: r = !0, ...n } = e, o = ea(tn, a), s = Qr(a);
|
|
1752
1802
|
return /* @__PURE__ */ l.jsx(
|
|
1753
1803
|
Ot,
|
|
1754
1804
|
{
|
|
@@ -1770,10 +1820,10 @@ var Qr = "TabsList", en = c.forwardRef(
|
|
|
1770
1820
|
);
|
|
1771
1821
|
}
|
|
1772
1822
|
);
|
|
1773
|
-
|
|
1774
|
-
var
|
|
1823
|
+
an.displayName = tn;
|
|
1824
|
+
var rn = "TabsTrigger", nn = c.forwardRef(
|
|
1775
1825
|
(e, t) => {
|
|
1776
|
-
const { __scopeTabs: a, value: r, disabled: n = !1, ...o } = e, s = ea(
|
|
1826
|
+
const { __scopeTabs: a, value: r, disabled: n = !1, ...o } = e, s = ea(rn, a), i = Qr(a), d = ln(s.baseId, r), f = cn(s.baseId, r), m = r === s.value;
|
|
1777
1827
|
return /* @__PURE__ */ l.jsx(
|
|
1778
1828
|
$t,
|
|
1779
1829
|
{
|
|
@@ -1810,10 +1860,10 @@ var tn = "TabsTrigger", an = c.forwardRef(
|
|
|
1810
1860
|
);
|
|
1811
1861
|
}
|
|
1812
1862
|
);
|
|
1813
|
-
|
|
1814
|
-
var
|
|
1863
|
+
nn.displayName = rn;
|
|
1864
|
+
var on = "TabsContent", sn = c.forwardRef(
|
|
1815
1865
|
(e, t) => {
|
|
1816
|
-
const { __scopeTabs: a, value: r, forceMount: n, children: o, ...s } = e, i = ea(
|
|
1866
|
+
const { __scopeTabs: a, value: r, forceMount: n, children: o, ...s } = e, i = ea(on, a), d = ln(i.baseId, r), f = cn(i.baseId, r), m = r === i.value, p = c.useRef(m);
|
|
1817
1867
|
return c.useEffect(() => {
|
|
1818
1868
|
const u = requestAnimationFrame(() => p.current = !1);
|
|
1819
1869
|
return () => cancelAnimationFrame(u);
|
|
@@ -1838,16 +1888,16 @@ var rn = "TabsContent", nn = c.forwardRef(
|
|
|
1838
1888
|
) });
|
|
1839
1889
|
}
|
|
1840
1890
|
);
|
|
1841
|
-
|
|
1842
|
-
function
|
|
1891
|
+
sn.displayName = on;
|
|
1892
|
+
function ln(e, t) {
|
|
1843
1893
|
return `${e}-trigger-${t}`;
|
|
1844
1894
|
}
|
|
1845
|
-
function
|
|
1895
|
+
function cn(e, t) {
|
|
1846
1896
|
return `${e}-content-${t}`;
|
|
1847
1897
|
}
|
|
1848
|
-
var
|
|
1849
|
-
const
|
|
1850
|
-
|
|
1898
|
+
var $i = en, dn = an, un = nn, fn = sn;
|
|
1899
|
+
const Fu = $i, Fi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1900
|
+
dn,
|
|
1851
1901
|
{
|
|
1852
1902
|
ref: a,
|
|
1853
1903
|
className: w(
|
|
@@ -1857,9 +1907,9 @@ const Tu = Ti, _i = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */
|
|
|
1857
1907
|
...t
|
|
1858
1908
|
}
|
|
1859
1909
|
));
|
|
1860
|
-
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1910
|
+
Fi.displayName = dn.displayName;
|
|
1911
|
+
const Vi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1912
|
+
un,
|
|
1863
1913
|
{
|
|
1864
1914
|
ref: a,
|
|
1865
1915
|
className: w(
|
|
@@ -1869,9 +1919,9 @@ const Ai = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1869
1919
|
...t
|
|
1870
1920
|
}
|
|
1871
1921
|
));
|
|
1872
|
-
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1922
|
+
Vi.displayName = un.displayName;
|
|
1923
|
+
const Hi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1924
|
+
fn,
|
|
1875
1925
|
{
|
|
1876
1926
|
ref: a,
|
|
1877
1927
|
className: w(
|
|
@@ -1881,10 +1931,10 @@ const Mi = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
1881
1931
|
...t
|
|
1882
1932
|
}
|
|
1883
1933
|
));
|
|
1884
|
-
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1887
|
-
const
|
|
1934
|
+
Hi.displayName = fn.displayName;
|
|
1935
|
+
const Bi = c.forwardRef(({ ...e }, t) => /* @__PURE__ */ l.jsx("nav", { ref: t, "aria-label": "breadcrumb", ...e }));
|
|
1936
|
+
Bi.displayName = "Breadcrumb";
|
|
1937
|
+
const Gi = c.forwardRef(
|
|
1888
1938
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1889
1939
|
"ol",
|
|
1890
1940
|
{
|
|
@@ -1897,8 +1947,8 @@ const ji = c.forwardRef(
|
|
|
1897
1947
|
}
|
|
1898
1948
|
)
|
|
1899
1949
|
);
|
|
1900
|
-
|
|
1901
|
-
const
|
|
1950
|
+
Gi.displayName = "BreadcrumbList";
|
|
1951
|
+
const Ki = c.forwardRef(
|
|
1902
1952
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1903
1953
|
"li",
|
|
1904
1954
|
{
|
|
@@ -1908,9 +1958,9 @@ const Di = c.forwardRef(
|
|
|
1908
1958
|
}
|
|
1909
1959
|
)
|
|
1910
1960
|
);
|
|
1911
|
-
|
|
1912
|
-
const
|
|
1913
|
-
const n = e ?
|
|
1961
|
+
Ki.displayName = "BreadcrumbItem";
|
|
1962
|
+
const Ui = c.forwardRef(({ asChild: e, className: t, ...a }, r) => {
|
|
1963
|
+
const n = e ? Ce : "a";
|
|
1914
1964
|
return /* @__PURE__ */ l.jsx(
|
|
1915
1965
|
n,
|
|
1916
1966
|
{
|
|
@@ -1920,8 +1970,8 @@ const zi = c.forwardRef(({ asChild: e, className: t, ...a }, r) => {
|
|
|
1920
1970
|
}
|
|
1921
1971
|
);
|
|
1922
1972
|
});
|
|
1923
|
-
|
|
1924
|
-
const
|
|
1973
|
+
Ui.displayName = "BreadcrumbLink";
|
|
1974
|
+
const Wi = c.forwardRef(
|
|
1925
1975
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
1926
1976
|
"span",
|
|
1927
1977
|
{
|
|
@@ -1934,8 +1984,8 @@ const Li = c.forwardRef(
|
|
|
1934
1984
|
}
|
|
1935
1985
|
)
|
|
1936
1986
|
);
|
|
1937
|
-
|
|
1938
|
-
const
|
|
1987
|
+
Wi.displayName = "BreadcrumbPage";
|
|
1988
|
+
const Xi = ({ children: e, className: t, ...a }) => /* @__PURE__ */ l.jsx(
|
|
1939
1989
|
"li",
|
|
1940
1990
|
{
|
|
1941
1991
|
role: "presentation",
|
|
@@ -1945,8 +1995,8 @@ const ki = ({ children: e, className: t, ...a }) => /* @__PURE__ */ l.jsx(
|
|
|
1945
1995
|
children: e ?? /* @__PURE__ */ l.jsx(Bt, {})
|
|
1946
1996
|
}
|
|
1947
1997
|
);
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1998
|
+
Xi.displayName = "BreadcrumbSeparator";
|
|
1999
|
+
const Yi = ({ className: e, ...t }) => /* @__PURE__ */ l.jsxs(
|
|
1950
2000
|
"span",
|
|
1951
2001
|
{
|
|
1952
2002
|
role: "presentation",
|
|
@@ -1954,20 +2004,20 @@ const Oi = ({ className: e, ...t }) => /* @__PURE__ */ l.jsxs(
|
|
|
1954
2004
|
className: w("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
1955
2005
|
...t,
|
|
1956
2006
|
children: [
|
|
1957
|
-
/* @__PURE__ */ l.jsx(
|
|
2007
|
+
/* @__PURE__ */ l.jsx(Ha, { className: "al-h-4 al-w-4" }),
|
|
1958
2008
|
/* @__PURE__ */ l.jsx("span", { className: "al-sr-only", children: "More" })
|
|
1959
2009
|
]
|
|
1960
2010
|
}
|
|
1961
2011
|
);
|
|
1962
|
-
|
|
1963
|
-
var
|
|
2012
|
+
Yi.displayName = "BreadcrumbElipssis";
|
|
2013
|
+
var pn = ["PageUp", "PageDown"], mn = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], bn = {
|
|
1964
2014
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
1965
2015
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
1966
2016
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
1967
2017
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
1968
|
-
}, ze = "Slider", [Tt,
|
|
1969
|
-
|
|
1970
|
-
]), [
|
|
2018
|
+
}, ze = "Slider", [Tt, qi, Ji] = Ft(ze), [gn, Vu] = ce(ze, [
|
|
2019
|
+
Ji
|
|
2020
|
+
]), [Zi, it] = gn(ze), vn = c.forwardRef(
|
|
1971
2021
|
(e, t) => {
|
|
1972
2022
|
const {
|
|
1973
2023
|
name: a,
|
|
@@ -1986,16 +2036,16 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
1986
2036
|
inverted: g = !1,
|
|
1987
2037
|
form: b,
|
|
1988
2038
|
...v
|
|
1989
|
-
} = e, h = c.useRef(/* @__PURE__ */ new Set()), x = c.useRef(0), y = s === "horizontal" ?
|
|
2039
|
+
} = e, h = c.useRef(/* @__PURE__ */ new Set()), x = c.useRef(0), y = s === "horizontal" ? Qi : ec, [R = [], I] = ve({
|
|
1990
2040
|
prop: m,
|
|
1991
2041
|
defaultProp: f,
|
|
1992
2042
|
onChange: (M) => {
|
|
1993
2043
|
var W;
|
|
1994
2044
|
(W = [...h.current][x.current]) == null || W.focus(), p(M);
|
|
1995
2045
|
}
|
|
1996
|
-
}), T = c.useRef(
|
|
2046
|
+
}), T = c.useRef(R);
|
|
1997
2047
|
function P(M) {
|
|
1998
|
-
const L =
|
|
2048
|
+
const L = oc(R, M);
|
|
1999
2049
|
H(M, L);
|
|
2000
2050
|
}
|
|
2001
2051
|
function B(M) {
|
|
@@ -2003,13 +2053,13 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2003
2053
|
}
|
|
2004
2054
|
function j() {
|
|
2005
2055
|
const M = T.current[x.current];
|
|
2006
|
-
|
|
2056
|
+
R[x.current] !== M && u(R);
|
|
2007
2057
|
}
|
|
2008
2058
|
function H(M, L, { commit: W } = { commit: !1 }) {
|
|
2009
|
-
const N =
|
|
2059
|
+
const N = cc(o), $ = dc(Math.round((M - r) / o) * o + r, N), V = Vt($, [r, n]);
|
|
2010
2060
|
I((J = []) => {
|
|
2011
|
-
const U =
|
|
2012
|
-
if (
|
|
2061
|
+
const U = rc(J, V, L);
|
|
2062
|
+
if (ic(U, d * o)) {
|
|
2013
2063
|
x.current = U.indexOf(V);
|
|
2014
2064
|
const se = String(U) !== String(J);
|
|
2015
2065
|
return se && W && u(U), se ? U : J;
|
|
@@ -2018,7 +2068,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2018
2068
|
});
|
|
2019
2069
|
}
|
|
2020
2070
|
return /* @__PURE__ */ l.jsx(
|
|
2021
|
-
|
|
2071
|
+
Zi,
|
|
2022
2072
|
{
|
|
2023
2073
|
scope: e.__scopeSlider,
|
|
2024
2074
|
name: a,
|
|
@@ -2027,7 +2077,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2027
2077
|
max: n,
|
|
2028
2078
|
valueIndexToChangeRef: x,
|
|
2029
2079
|
thumbs: h.current,
|
|
2030
|
-
values:
|
|
2080
|
+
values: R,
|
|
2031
2081
|
orientation: s,
|
|
2032
2082
|
form: b,
|
|
2033
2083
|
children: /* @__PURE__ */ l.jsx(Tt.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ l.jsx(Tt.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ l.jsx(
|
|
@@ -2038,7 +2088,7 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2038
2088
|
...v,
|
|
2039
2089
|
ref: t,
|
|
2040
2090
|
onPointerDown: E(v.onPointerDown, () => {
|
|
2041
|
-
i || (T.current =
|
|
2091
|
+
i || (T.current = R);
|
|
2042
2092
|
}),
|
|
2043
2093
|
min: r,
|
|
2044
2094
|
max: n,
|
|
@@ -2047,10 +2097,10 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2047
2097
|
onSlideMove: i ? void 0 : B,
|
|
2048
2098
|
onSlideEnd: i ? void 0 : j,
|
|
2049
2099
|
onHomeKeyDown: () => !i && H(r, 0, { commit: !0 }),
|
|
2050
|
-
onEndKeyDown: () => !i && H(n,
|
|
2100
|
+
onEndKeyDown: () => !i && H(n, R.length - 1, { commit: !0 }),
|
|
2051
2101
|
onStepKeyDown: ({ event: M, direction: L }) => {
|
|
2052
2102
|
if (!i) {
|
|
2053
|
-
const $ =
|
|
2103
|
+
const $ = pn.includes(M.key) || M.shiftKey && mn.includes(M.key) ? 10 : 1, V = x.current, J = R[V], U = o * $ * L;
|
|
2054
2104
|
H(J + U, V, { commit: !0 });
|
|
2055
2105
|
}
|
|
2056
2106
|
}
|
|
@@ -2060,13 +2110,13 @@ var un = ["PageUp", "PageDown"], fn = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
2060
2110
|
);
|
|
2061
2111
|
}
|
|
2062
2112
|
);
|
|
2063
|
-
|
|
2064
|
-
var [
|
|
2113
|
+
vn.displayName = ze;
|
|
2114
|
+
var [hn, xn] = gn(ze, {
|
|
2065
2115
|
startEdge: "left",
|
|
2066
2116
|
endEdge: "right",
|
|
2067
2117
|
size: "width",
|
|
2068
2118
|
direction: 1
|
|
2069
|
-
}),
|
|
2119
|
+
}), Qi = c.forwardRef(
|
|
2070
2120
|
(e, t) => {
|
|
2071
2121
|
const {
|
|
2072
2122
|
min: a,
|
|
@@ -2080,11 +2130,11 @@ var [gn, vn] = mn(ze, {
|
|
|
2080
2130
|
...m
|
|
2081
2131
|
} = e, [p, u] = c.useState(null), g = q(t, (y) => u(y)), b = c.useRef(void 0), v = Ke(n), h = v === "ltr", x = h && !o || !h && o;
|
|
2082
2132
|
function S(y) {
|
|
2083
|
-
const
|
|
2084
|
-
return b.current =
|
|
2133
|
+
const R = b.current || p.getBoundingClientRect(), I = [0, R.width], P = ta(I, x ? [a, r] : [r, a]);
|
|
2134
|
+
return b.current = R, P(y - R.left);
|
|
2085
2135
|
}
|
|
2086
2136
|
return /* @__PURE__ */ l.jsx(
|
|
2087
|
-
|
|
2137
|
+
hn,
|
|
2088
2138
|
{
|
|
2089
2139
|
scope: e.__scopeSlider,
|
|
2090
2140
|
startEdge: x ? "left" : "right",
|
|
@@ -2092,7 +2142,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2092
2142
|
direction: x ? 1 : -1,
|
|
2093
2143
|
size: "width",
|
|
2094
2144
|
children: /* @__PURE__ */ l.jsx(
|
|
2095
|
-
|
|
2145
|
+
wn,
|
|
2096
2146
|
{
|
|
2097
2147
|
dir: v,
|
|
2098
2148
|
"data-orientation": "horizontal",
|
|
@@ -2103,18 +2153,18 @@ var [gn, vn] = mn(ze, {
|
|
|
2103
2153
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
2104
2154
|
},
|
|
2105
2155
|
onSlideStart: (y) => {
|
|
2106
|
-
const
|
|
2107
|
-
s == null || s(
|
|
2156
|
+
const R = S(y.clientX);
|
|
2157
|
+
s == null || s(R);
|
|
2108
2158
|
},
|
|
2109
2159
|
onSlideMove: (y) => {
|
|
2110
|
-
const
|
|
2111
|
-
i == null || i(
|
|
2160
|
+
const R = S(y.clientX);
|
|
2161
|
+
i == null || i(R);
|
|
2112
2162
|
},
|
|
2113
2163
|
onSlideEnd: () => {
|
|
2114
2164
|
b.current = void 0, d == null || d();
|
|
2115
2165
|
},
|
|
2116
2166
|
onStepKeyDown: (y) => {
|
|
2117
|
-
const I =
|
|
2167
|
+
const I = bn[x ? "from-left" : "from-right"].includes(y.key);
|
|
2118
2168
|
f == null || f({ event: y, direction: I ? -1 : 1 });
|
|
2119
2169
|
}
|
|
2120
2170
|
}
|
|
@@ -2122,7 +2172,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2122
2172
|
}
|
|
2123
2173
|
);
|
|
2124
2174
|
}
|
|
2125
|
-
),
|
|
2175
|
+
), ec = c.forwardRef(
|
|
2126
2176
|
(e, t) => {
|
|
2127
2177
|
const {
|
|
2128
2178
|
min: a,
|
|
@@ -2139,7 +2189,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2139
2189
|
return u.current = h, y(v - h.top);
|
|
2140
2190
|
}
|
|
2141
2191
|
return /* @__PURE__ */ l.jsx(
|
|
2142
|
-
|
|
2192
|
+
hn,
|
|
2143
2193
|
{
|
|
2144
2194
|
scope: e.__scopeSlider,
|
|
2145
2195
|
startEdge: g ? "bottom" : "top",
|
|
@@ -2147,7 +2197,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2147
2197
|
size: "height",
|
|
2148
2198
|
direction: g ? 1 : -1,
|
|
2149
2199
|
children: /* @__PURE__ */ l.jsx(
|
|
2150
|
-
|
|
2200
|
+
wn,
|
|
2151
2201
|
{
|
|
2152
2202
|
"data-orientation": "vertical",
|
|
2153
2203
|
...f,
|
|
@@ -2168,7 +2218,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2168
2218
|
u.current = void 0, i == null || i();
|
|
2169
2219
|
},
|
|
2170
2220
|
onStepKeyDown: (v) => {
|
|
2171
|
-
const x =
|
|
2221
|
+
const x = bn[g ? "from-bottom" : "from-top"].includes(v.key);
|
|
2172
2222
|
d == null || d({ event: v, direction: x ? -1 : 1 });
|
|
2173
2223
|
}
|
|
2174
2224
|
}
|
|
@@ -2176,7 +2226,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2176
2226
|
}
|
|
2177
2227
|
);
|
|
2178
2228
|
}
|
|
2179
|
-
),
|
|
2229
|
+
), wn = c.forwardRef(
|
|
2180
2230
|
(e, t) => {
|
|
2181
2231
|
const {
|
|
2182
2232
|
__scopeSlider: a,
|
|
@@ -2194,7 +2244,7 @@ var [gn, vn] = mn(ze, {
|
|
|
2194
2244
|
...f,
|
|
2195
2245
|
ref: t,
|
|
2196
2246
|
onKeyDown: E(e.onKeyDown, (p) => {
|
|
2197
|
-
p.key === "Home" ? (s(p), p.preventDefault()) : p.key === "End" ? (i(p), p.preventDefault()) :
|
|
2247
|
+
p.key === "Home" ? (s(p), p.preventDefault()) : p.key === "End" ? (i(p), p.preventDefault()) : pn.concat(mn).includes(p.key) && (d(p), p.preventDefault());
|
|
2198
2248
|
}),
|
|
2199
2249
|
onPointerDown: E(e.onPointerDown, (p) => {
|
|
2200
2250
|
const u = p.target;
|
|
@@ -2210,9 +2260,9 @@ var [gn, vn] = mn(ze, {
|
|
|
2210
2260
|
}
|
|
2211
2261
|
);
|
|
2212
2262
|
}
|
|
2213
|
-
),
|
|
2263
|
+
), yn = "SliderTrack", Sn = c.forwardRef(
|
|
2214
2264
|
(e, t) => {
|
|
2215
|
-
const { __scopeSlider: a, ...r } = e, n = it(
|
|
2265
|
+
const { __scopeSlider: a, ...r } = e, n = it(yn, a);
|
|
2216
2266
|
return /* @__PURE__ */ l.jsx(
|
|
2217
2267
|
O.span,
|
|
2218
2268
|
{
|
|
@@ -2224,11 +2274,11 @@ var [gn, vn] = mn(ze, {
|
|
|
2224
2274
|
);
|
|
2225
2275
|
}
|
|
2226
2276
|
);
|
|
2227
|
-
|
|
2228
|
-
var _t = "SliderRange",
|
|
2277
|
+
Sn.displayName = yn;
|
|
2278
|
+
var _t = "SliderRange", Cn = c.forwardRef(
|
|
2229
2279
|
(e, t) => {
|
|
2230
|
-
const { __scopeSlider: a, ...r } = e, n = it(_t, a), o =
|
|
2231
|
-
(u) =>
|
|
2280
|
+
const { __scopeSlider: a, ...r } = e, n = it(_t, a), o = xn(_t, a), s = c.useRef(null), i = q(t, s), d = n.values.length, f = n.values.map(
|
|
2281
|
+
(u) => Pn(u, n.min, n.max)
|
|
2232
2282
|
), m = d > 1 ? Math.min(...f) : 0, p = 100 - Math.max(...f);
|
|
2233
2283
|
return /* @__PURE__ */ l.jsx(
|
|
2234
2284
|
O.span,
|
|
@@ -2246,18 +2296,18 @@ var _t = "SliderRange", yn = c.forwardRef(
|
|
|
2246
2296
|
);
|
|
2247
2297
|
}
|
|
2248
2298
|
);
|
|
2249
|
-
|
|
2250
|
-
var At = "SliderThumb",
|
|
2299
|
+
Cn.displayName = _t;
|
|
2300
|
+
var At = "SliderThumb", Rn = c.forwardRef(
|
|
2251
2301
|
(e, t) => {
|
|
2252
|
-
const a =
|
|
2302
|
+
const a = qi(e.__scopeSlider), [r, n] = c.useState(null), o = q(t, (i) => n(i)), s = c.useMemo(
|
|
2253
2303
|
() => r ? a().findIndex((i) => i.ref.current === r) : -1,
|
|
2254
2304
|
[a, r]
|
|
2255
2305
|
);
|
|
2256
|
-
return /* @__PURE__ */ l.jsx(
|
|
2306
|
+
return /* @__PURE__ */ l.jsx(tc, { ...e, ref: o, index: s });
|
|
2257
2307
|
}
|
|
2258
|
-
),
|
|
2308
|
+
), tc = c.forwardRef(
|
|
2259
2309
|
(e, t) => {
|
|
2260
|
-
const { __scopeSlider: a, index: r, name: n, ...o } = e, s = it(At, a), i =
|
|
2310
|
+
const { __scopeSlider: a, index: r, name: n, ...o } = e, s = it(At, a), i = xn(At, a), [d, f] = c.useState(null), m = q(t, (S) => f(S)), p = d ? s.form || !!d.closest("form") : !0, u = Ht(d), g = s.values[r], b = g === void 0 ? 0 : Pn(g, s.min, s.max), v = nc(r, s.values.length), h = u == null ? void 0 : u[i.size], x = h ? sc(h, b, i.direction) : 0;
|
|
2261
2311
|
return c.useEffect(() => {
|
|
2262
2312
|
if (d)
|
|
2263
2313
|
return s.thumbs.add(d), () => {
|
|
@@ -2293,7 +2343,7 @@ var At = "SliderThumb", Sn = c.forwardRef(
|
|
|
2293
2343
|
}
|
|
2294
2344
|
) }),
|
|
2295
2345
|
p && /* @__PURE__ */ l.jsx(
|
|
2296
|
-
|
|
2346
|
+
ac,
|
|
2297
2347
|
{
|
|
2298
2348
|
name: n ?? (s.name ? s.name + (s.values.length > 1 ? "[]" : "") : void 0),
|
|
2299
2349
|
form: s.form,
|
|
@@ -2306,8 +2356,8 @@ var At = "SliderThumb", Sn = c.forwardRef(
|
|
|
2306
2356
|
);
|
|
2307
2357
|
}
|
|
2308
2358
|
);
|
|
2309
|
-
|
|
2310
|
-
var
|
|
2359
|
+
Rn.displayName = At;
|
|
2360
|
+
var ac = (e) => {
|
|
2311
2361
|
const { value: t, ...a } = e, r = c.useRef(null), n = kt(t);
|
|
2312
2362
|
return c.useEffect(() => {
|
|
2313
2363
|
const o = r.current, s = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(s, "value").set;
|
|
@@ -2317,32 +2367,32 @@ var Ki = (e) => {
|
|
|
2317
2367
|
}
|
|
2318
2368
|
}, [n, t]), /* @__PURE__ */ l.jsx("input", { style: { display: "none" }, ...a, ref: r, defaultValue: t });
|
|
2319
2369
|
};
|
|
2320
|
-
function
|
|
2370
|
+
function rc(e = [], t, a) {
|
|
2321
2371
|
const r = [...e];
|
|
2322
2372
|
return r[a] = t, r.sort((n, o) => n - o);
|
|
2323
2373
|
}
|
|
2324
|
-
function
|
|
2374
|
+
function Pn(e, t, a) {
|
|
2325
2375
|
const o = 100 / (a - t) * (e - t);
|
|
2326
2376
|
return Vt(o, [0, 100]);
|
|
2327
2377
|
}
|
|
2328
|
-
function
|
|
2378
|
+
function nc(e, t) {
|
|
2329
2379
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
2330
2380
|
}
|
|
2331
|
-
function
|
|
2381
|
+
function oc(e, t) {
|
|
2332
2382
|
if (e.length === 1) return 0;
|
|
2333
2383
|
const a = e.map((n) => Math.abs(n - t)), r = Math.min(...a);
|
|
2334
2384
|
return a.indexOf(r);
|
|
2335
2385
|
}
|
|
2336
|
-
function
|
|
2386
|
+
function sc(e, t, a) {
|
|
2337
2387
|
const r = e / 2, o = ta([0, 50], [0, r]);
|
|
2338
2388
|
return (r - o(t) * a) * a;
|
|
2339
2389
|
}
|
|
2340
|
-
function
|
|
2390
|
+
function lc(e) {
|
|
2341
2391
|
return e.slice(0, -1).map((t, a) => e[a + 1] - t);
|
|
2342
2392
|
}
|
|
2343
|
-
function
|
|
2393
|
+
function ic(e, t) {
|
|
2344
2394
|
if (t > 0) {
|
|
2345
|
-
const a =
|
|
2395
|
+
const a = lc(e);
|
|
2346
2396
|
return Math.min(...a) >= t;
|
|
2347
2397
|
}
|
|
2348
2398
|
return !0;
|
|
@@ -2354,16 +2404,16 @@ function ta(e, t) {
|
|
|
2354
2404
|
return t[0] + r * (a - e[0]);
|
|
2355
2405
|
};
|
|
2356
2406
|
}
|
|
2357
|
-
function
|
|
2407
|
+
function cc(e) {
|
|
2358
2408
|
return (String(e).split(".")[1] || "").length;
|
|
2359
2409
|
}
|
|
2360
|
-
function
|
|
2410
|
+
function dc(e, t) {
|
|
2361
2411
|
const a = Math.pow(10, t);
|
|
2362
2412
|
return Math.round(e * a) / a;
|
|
2363
2413
|
}
|
|
2364
|
-
var
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2414
|
+
var Nn = vn, uc = Sn, fc = Cn, pc = Rn;
|
|
2415
|
+
const mc = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsxs(
|
|
2416
|
+
Nn,
|
|
2367
2417
|
{
|
|
2368
2418
|
ref: a,
|
|
2369
2419
|
role: "group",
|
|
@@ -2375,25 +2425,25 @@ const rc = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsxs(
|
|
|
2375
2425
|
...t,
|
|
2376
2426
|
children: [
|
|
2377
2427
|
/* @__PURE__ */ l.jsx(
|
|
2378
|
-
|
|
2428
|
+
uc,
|
|
2379
2429
|
{
|
|
2380
2430
|
role: "presentation",
|
|
2381
2431
|
"aria-label": "Slider track",
|
|
2382
2432
|
className: "al-relative al-h-2 al-w-full al-grow al-overflow-hidden al-rounded-full al-bg-secondary",
|
|
2383
|
-
children: /* @__PURE__ */ l.jsx(
|
|
2433
|
+
children: /* @__PURE__ */ l.jsx(fc, { className: "al-absolute al-h-full al-bg-primary" })
|
|
2384
2434
|
}
|
|
2385
2435
|
),
|
|
2386
|
-
/* @__PURE__ */ l.jsx(
|
|
2436
|
+
/* @__PURE__ */ l.jsx(pc, { className: "al-block al-h-5 al-w-5 al-rounded-full al-border-2 al-border-primary al-bg-background al-ring-offset-background al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50" })
|
|
2387
2437
|
]
|
|
2388
2438
|
}
|
|
2389
2439
|
));
|
|
2390
|
-
|
|
2391
|
-
var
|
|
2392
|
-
const
|
|
2393
|
-
var Le = (e) => !
|
|
2440
|
+
mc.displayName = Nn.displayName;
|
|
2441
|
+
var bc = (e) => e.type === "checkbox", gc = (e) => e instanceof Date, En = (e) => e == null;
|
|
2442
|
+
const vc = (e) => typeof e == "object";
|
|
2443
|
+
var Le = (e) => !En(e) && !Array.isArray(e) && vc(e) && !gc(e), hc = (e) => Le(e) && e.target ? bc(e.target) ? e.target.checked : e.target.value : e, xc = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, wc = (e, t) => e.has(xc(t)), yc = (e) => {
|
|
2394
2444
|
const t = e.constructor && e.constructor.prototype;
|
|
2395
2445
|
return Le(t) && t.hasOwnProperty("isPrototypeOf");
|
|
2396
|
-
},
|
|
2446
|
+
}, Sc = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2397
2447
|
function aa(e) {
|
|
2398
2448
|
let t;
|
|
2399
2449
|
const a = Array.isArray(e), r = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
@@ -2401,8 +2451,8 @@ function aa(e) {
|
|
|
2401
2451
|
t = new Date(e);
|
|
2402
2452
|
else if (e instanceof Set)
|
|
2403
2453
|
t = new Set(e);
|
|
2404
|
-
else if (!(
|
|
2405
|
-
if (t = a ? [] : {}, !a && !
|
|
2454
|
+
else if (!(Sc && (e instanceof Blob || r)) && (a || Le(e)))
|
|
2455
|
+
if (t = a ? [] : {}, !a && !yc(e))
|
|
2406
2456
|
t = e;
|
|
2407
2457
|
else
|
|
2408
2458
|
for (const n in e)
|
|
@@ -2411,14 +2461,14 @@ function aa(e) {
|
|
|
2411
2461
|
return e;
|
|
2412
2462
|
return t;
|
|
2413
2463
|
}
|
|
2414
|
-
var
|
|
2464
|
+
var Tn = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Mt = (e) => e === void 0, te = (e, t, a) => {
|
|
2415
2465
|
if (!t || !Le(e))
|
|
2416
2466
|
return a;
|
|
2417
|
-
const r =
|
|
2467
|
+
const r = Tn(t.split(/[,[\].]+?/)).reduce((n, o) => En(n) ? n : n[o], e);
|
|
2418
2468
|
return Mt(r) || r === e ? Mt(e[t]) ? a : e[t] : r;
|
|
2419
|
-
},
|
|
2469
|
+
}, Ca = (e) => typeof e == "boolean", Cc = (e) => /^\w*$/.test(e), Rc = (e) => Tn(e.replace(/["|']|\]/g, "").split(/\.|\[/)), Ra = (e, t, a) => {
|
|
2420
2470
|
let r = -1;
|
|
2421
|
-
const n =
|
|
2471
|
+
const n = Cc(t) ? [t] : Rc(t), o = n.length, s = o - 1;
|
|
2422
2472
|
for (; ++r < o; ) {
|
|
2423
2473
|
const i = n[r];
|
|
2424
2474
|
let d = a;
|
|
@@ -2442,11 +2492,11 @@ const Pa = {
|
|
|
2442
2492
|
onSubmit: "onSubmit",
|
|
2443
2493
|
onTouched: "onTouched",
|
|
2444
2494
|
all: "all"
|
|
2445
|
-
},
|
|
2495
|
+
}, _n = Y.createContext(null), ct = () => Y.useContext(_n), Pc = (e) => {
|
|
2446
2496
|
const { children: t, ...a } = e;
|
|
2447
|
-
return Y.createElement(
|
|
2497
|
+
return Y.createElement(_n.Provider, { value: a }, t);
|
|
2448
2498
|
};
|
|
2449
|
-
var
|
|
2499
|
+
var Nc = (e, t, a, r = !0) => {
|
|
2450
2500
|
const n = {
|
|
2451
2501
|
defaultValues: t._defaultValues
|
|
2452
2502
|
};
|
|
@@ -2458,12 +2508,12 @@ var bc = (e, t, a, r = !0) => {
|
|
|
2458
2508
|
}
|
|
2459
2509
|
});
|
|
2460
2510
|
return n;
|
|
2461
|
-
},
|
|
2511
|
+
}, Ec = (e) => Le(e) && !Object.keys(e).length, Tc = (e, t, a, r) => {
|
|
2462
2512
|
a(e);
|
|
2463
2513
|
const { name: n, ...o } = e;
|
|
2464
|
-
return
|
|
2465
|
-
},
|
|
2466
|
-
function
|
|
2514
|
+
return Ec(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((s) => t[s] === !r);
|
|
2515
|
+
}, _c = (e) => Array.isArray(e) ? e : [e], An = (e, t, a) => !e || !t || e === t || _c(e).some((r) => r && (a ? r === t : r.startsWith(t) || t.startsWith(r)));
|
|
2516
|
+
function Mn(e) {
|
|
2467
2517
|
const t = Y.useRef(e);
|
|
2468
2518
|
t.current = e, Y.useEffect(() => {
|
|
2469
2519
|
const a = !e.disabled && t.current.subject && t.current.subject.subscribe({
|
|
@@ -2474,7 +2524,7 @@ function _n(e) {
|
|
|
2474
2524
|
};
|
|
2475
2525
|
}, [e.disabled]);
|
|
2476
2526
|
}
|
|
2477
|
-
function
|
|
2527
|
+
function Ac(e) {
|
|
2478
2528
|
const t = ct(), { control: a = t.control, disabled: r, name: n, exact: o } = e || {}, [s, i] = Y.useState(a._formState), d = Y.useRef(!0), f = Y.useRef({
|
|
2479
2529
|
isDirty: !1,
|
|
2480
2530
|
isLoading: !1,
|
|
@@ -2485,44 +2535,44 @@ function xc(e) {
|
|
|
2485
2535
|
isValid: !1,
|
|
2486
2536
|
errors: !1
|
|
2487
2537
|
}), m = Y.useRef(n);
|
|
2488
|
-
return m.current = n,
|
|
2538
|
+
return m.current = n, Mn({
|
|
2489
2539
|
disabled: r,
|
|
2490
|
-
next: (p) => d.current &&
|
|
2540
|
+
next: (p) => d.current && An(m.current, p.name, o) && Tc(p, f.current, a._updateFormState) && i({
|
|
2491
2541
|
...a._formState,
|
|
2492
2542
|
...p
|
|
2493
2543
|
}),
|
|
2494
2544
|
subject: a._subjects.state
|
|
2495
2545
|
}), Y.useEffect(() => (d.current = !0, f.current.isValid && a._updateValid(!0), () => {
|
|
2496
2546
|
d.current = !1;
|
|
2497
|
-
}), [a]), Y.useMemo(() =>
|
|
2547
|
+
}), [a]), Y.useMemo(() => Nc(s, a, f.current, !1), [s, a]);
|
|
2498
2548
|
}
|
|
2499
|
-
var
|
|
2500
|
-
function
|
|
2549
|
+
var Mc = (e) => typeof e == "string", Ic = (e, t, a, r, n) => Mc(e) ? te(a, e, n) : Array.isArray(e) ? e.map((o) => te(a, o)) : a;
|
|
2550
|
+
function jc(e) {
|
|
2501
2551
|
const t = ct(), { control: a = t.control, name: r, defaultValue: n, disabled: o, exact: s } = e || {}, i = Y.useRef(r);
|
|
2502
|
-
i.current = r,
|
|
2552
|
+
i.current = r, Mn({
|
|
2503
2553
|
disabled: o,
|
|
2504
2554
|
subject: a._subjects.values,
|
|
2505
2555
|
next: (m) => {
|
|
2506
|
-
|
|
2556
|
+
An(i.current, m.name, s) && f(aa(Ic(i.current, a._names, m.values || a._formValues, !1, n)));
|
|
2507
2557
|
}
|
|
2508
2558
|
});
|
|
2509
2559
|
const [d, f] = Y.useState(a._getWatch(r, n));
|
|
2510
2560
|
return Y.useEffect(() => a._removeUnmounted()), d;
|
|
2511
2561
|
}
|
|
2512
|
-
function
|
|
2513
|
-
const t = ct(), { name: a, disabled: r, control: n = t.control, shouldUnregister: o } = e, s =
|
|
2562
|
+
function Dc(e) {
|
|
2563
|
+
const t = ct(), { name: a, disabled: r, control: n = t.control, shouldUnregister: o } = e, s = wc(n._names.array, a), i = jc({
|
|
2514
2564
|
control: n,
|
|
2515
2565
|
name: a,
|
|
2516
2566
|
defaultValue: te(n._formValues, a, te(n._defaultValues, a, e.defaultValue)),
|
|
2517
2567
|
exact: !0
|
|
2518
|
-
}), d =
|
|
2568
|
+
}), d = Ac({
|
|
2519
2569
|
control: n,
|
|
2520
2570
|
name: a,
|
|
2521
2571
|
exact: !0
|
|
2522
2572
|
}), f = Y.useRef(n.register(a, {
|
|
2523
2573
|
...e.rules,
|
|
2524
2574
|
value: i,
|
|
2525
|
-
...
|
|
2575
|
+
...Ca(e.disabled) ? { disabled: e.disabled } : {}
|
|
2526
2576
|
})), m = Y.useMemo(() => Object.defineProperties({}, {
|
|
2527
2577
|
invalid: {
|
|
2528
2578
|
enumerable: !0,
|
|
@@ -2547,10 +2597,10 @@ function Rc(e) {
|
|
|
2547
2597
|
}), [d, a]), p = Y.useMemo(() => ({
|
|
2548
2598
|
name: a,
|
|
2549
2599
|
value: i,
|
|
2550
|
-
...
|
|
2600
|
+
...Ca(r) || d.disabled ? { disabled: d.disabled || r } : {},
|
|
2551
2601
|
onChange: (u) => f.current.onChange({
|
|
2552
2602
|
target: {
|
|
2553
|
-
value:
|
|
2603
|
+
value: hc(u),
|
|
2554
2604
|
name: a
|
|
2555
2605
|
},
|
|
2556
2606
|
type: Pa.CHANGE
|
|
@@ -2586,7 +2636,7 @@ function Rc(e) {
|
|
|
2586
2636
|
};
|
|
2587
2637
|
if (g(a, !0), u) {
|
|
2588
2638
|
const b = aa(te(n._options.defaultValues, a));
|
|
2589
|
-
|
|
2639
|
+
Ra(n._defaultValues, a, b), Mt(te(n._formValues, a)) && Ra(n._formValues, a, b);
|
|
2590
2640
|
}
|
|
2591
2641
|
return !s && n.register(a), () => {
|
|
2592
2642
|
(s ? u && !n._state.action : u) ? n.unregister(a) : g(a, !1);
|
|
@@ -2603,10 +2653,10 @@ function Rc(e) {
|
|
|
2603
2653
|
fieldState: m
|
|
2604
2654
|
}), [p, d, m]);
|
|
2605
2655
|
}
|
|
2606
|
-
const
|
|
2656
|
+
const zc = (e) => e.render(Dc(e)), Hu = Pc, In = c.createContext({}), Bu = ({
|
|
2607
2657
|
...e
|
|
2608
|
-
}) => /* @__PURE__ */ l.jsx(
|
|
2609
|
-
const e = c.useContext(
|
|
2658
|
+
}) => /* @__PURE__ */ l.jsx(In.Provider, { value: { name: e.name }, children: /* @__PURE__ */ l.jsx(zc, { ...e }) }), dt = () => {
|
|
2659
|
+
const e = c.useContext(In), t = c.useContext(jn), { getFieldState: a, formState: r } = ct(), n = a(e.name, r);
|
|
2610
2660
|
if (!e)
|
|
2611
2661
|
throw new Error("useFormField should be used within <FormField>");
|
|
2612
2662
|
const { id: o } = t;
|
|
@@ -2618,17 +2668,17 @@ const Cc = (e) => e.render(Rc(e)), Au = mc, An = c.createContext({}), Mu = ({
|
|
|
2618
2668
|
formMessageId: `${o}-form-item-message`,
|
|
2619
2669
|
...n
|
|
2620
2670
|
};
|
|
2621
|
-
},
|
|
2671
|
+
}, jn = c.createContext({}), Lc = c.forwardRef(
|
|
2622
2672
|
({ className: e, ...t }, a) => {
|
|
2623
2673
|
const r = c.useId();
|
|
2624
|
-
return /* @__PURE__ */ l.jsx(
|
|
2674
|
+
return /* @__PURE__ */ l.jsx(jn.Provider, { value: { id: r }, children: /* @__PURE__ */ l.jsx("div", { ref: a, className: w("al-space-y-2", e), ...t }) });
|
|
2625
2675
|
}
|
|
2626
2676
|
);
|
|
2627
|
-
|
|
2628
|
-
const
|
|
2677
|
+
Lc.displayName = "FormItem";
|
|
2678
|
+
const kc = c.forwardRef(({ className: e, ...t }, a) => {
|
|
2629
2679
|
const { error: r, formItemId: n } = dt();
|
|
2630
2680
|
return /* @__PURE__ */ l.jsx(
|
|
2631
|
-
|
|
2681
|
+
Ua,
|
|
2632
2682
|
{
|
|
2633
2683
|
ref: a,
|
|
2634
2684
|
className: w(r && "al-text-destructive", e),
|
|
@@ -2637,11 +2687,11 @@ const Nc = c.forwardRef(({ className: e, ...t }, a) => {
|
|
|
2637
2687
|
}
|
|
2638
2688
|
);
|
|
2639
2689
|
});
|
|
2640
|
-
|
|
2641
|
-
const
|
|
2690
|
+
kc.displayName = "FormLabel";
|
|
2691
|
+
const Oc = c.forwardRef(({ ...e }, t) => {
|
|
2642
2692
|
const { error: a, formItemId: r, formDescriptionId: n, formMessageId: o } = dt();
|
|
2643
2693
|
return /* @__PURE__ */ l.jsx(
|
|
2644
|
-
|
|
2694
|
+
Ce,
|
|
2645
2695
|
{
|
|
2646
2696
|
ref: t,
|
|
2647
2697
|
id: r,
|
|
@@ -2651,8 +2701,8 @@ const Ec = c.forwardRef(({ ...e }, t) => {
|
|
|
2651
2701
|
}
|
|
2652
2702
|
);
|
|
2653
2703
|
});
|
|
2654
|
-
|
|
2655
|
-
const
|
|
2704
|
+
Oc.displayName = "FormControl";
|
|
2705
|
+
const $c = c.forwardRef(({ className: e, ...t }, a) => {
|
|
2656
2706
|
const { formDescriptionId: r } = dt();
|
|
2657
2707
|
return /* @__PURE__ */ l.jsx(
|
|
2658
2708
|
"p",
|
|
@@ -2664,8 +2714,8 @@ const Tc = c.forwardRef(({ className: e, ...t }, a) => {
|
|
|
2664
2714
|
}
|
|
2665
2715
|
);
|
|
2666
2716
|
});
|
|
2667
|
-
|
|
2668
|
-
const
|
|
2717
|
+
$c.displayName = "FormDescription";
|
|
2718
|
+
const Fc = c.forwardRef(({ className: e, children: t, ...a }, r) => {
|
|
2669
2719
|
const { error: n, formMessageId: o } = dt(), s = n ? String(n == null ? void 0 : n.message) : t;
|
|
2670
2720
|
return s ? /* @__PURE__ */ l.jsx(
|
|
2671
2721
|
"p",
|
|
@@ -2678,11 +2728,11 @@ const _c = c.forwardRef(({ className: e, children: t, ...a }, r) => {
|
|
|
2678
2728
|
}
|
|
2679
2729
|
) : null;
|
|
2680
2730
|
});
|
|
2681
|
-
|
|
2682
|
-
var ut = "Menubar", [It,
|
|
2683
|
-
|
|
2731
|
+
Fc.displayName = "FormMessage";
|
|
2732
|
+
var ut = "Menubar", [It, Vc, Hc] = Ft(ut), [Dn, Gu] = ce(ut, [
|
|
2733
|
+
Hc,
|
|
2684
2734
|
je
|
|
2685
|
-
]), Z =
|
|
2735
|
+
]), Z = us(), zn = je(), [Bc, ra] = Dn(ut), Ln = c.forwardRef(
|
|
2686
2736
|
(e, t) => {
|
|
2687
2737
|
const {
|
|
2688
2738
|
__scopeMenubar: a,
|
|
@@ -2692,13 +2742,13 @@ var ut = "Menubar", [It, Ac, Mc] = Ft(ut), [In, Iu] = ce(ut, [
|
|
|
2692
2742
|
loop: s = !0,
|
|
2693
2743
|
dir: i,
|
|
2694
2744
|
...d
|
|
2695
|
-
} = e, f = Ke(i), m =
|
|
2745
|
+
} = e, f = Ke(i), m = zn(a), [p = "", u] = ve({
|
|
2696
2746
|
prop: r,
|
|
2697
2747
|
onChange: n,
|
|
2698
2748
|
defaultProp: o
|
|
2699
2749
|
}), [g, b] = c.useState(null);
|
|
2700
2750
|
return /* @__PURE__ */ l.jsx(
|
|
2701
|
-
|
|
2751
|
+
Bc,
|
|
2702
2752
|
{
|
|
2703
2753
|
scope: a,
|
|
2704
2754
|
value: p,
|
|
@@ -2734,13 +2784,13 @@ var ut = "Menubar", [It, Ac, Mc] = Ft(ut), [In, Iu] = ce(ut, [
|
|
|
2734
2784
|
);
|
|
2735
2785
|
}
|
|
2736
2786
|
);
|
|
2737
|
-
|
|
2738
|
-
var na = "MenubarMenu", [
|
|
2787
|
+
Ln.displayName = ut;
|
|
2788
|
+
var na = "MenubarMenu", [Gc, kn] = Dn(na), On = (e) => {
|
|
2739
2789
|
const { __scopeMenubar: t, value: a, ...r } = e, n = qe(), o = a || n || "LEGACY_REACT_AUTO_VALUE", s = ra(na, t), i = Z(t), d = c.useRef(null), f = c.useRef(!1), m = s.value === o;
|
|
2740
2790
|
return c.useEffect(() => {
|
|
2741
2791
|
m || (f.current = !1);
|
|
2742
2792
|
}, [m]), /* @__PURE__ */ l.jsx(
|
|
2743
|
-
|
|
2793
|
+
Gc,
|
|
2744
2794
|
{
|
|
2745
2795
|
scope: t,
|
|
2746
2796
|
value: o,
|
|
@@ -2749,7 +2799,7 @@ var na = "MenubarMenu", [jc, zn] = In(na), Ln = (e) => {
|
|
|
2749
2799
|
contentId: qe(),
|
|
2750
2800
|
wasKeyboardTriggerOpenRef: f,
|
|
2751
2801
|
children: /* @__PURE__ */ l.jsx(
|
|
2752
|
-
|
|
2802
|
+
Ps,
|
|
2753
2803
|
{
|
|
2754
2804
|
...i,
|
|
2755
2805
|
open: m,
|
|
@@ -2764,10 +2814,10 @@ var na = "MenubarMenu", [jc, zn] = In(na), Ln = (e) => {
|
|
|
2764
2814
|
}
|
|
2765
2815
|
);
|
|
2766
2816
|
};
|
|
2767
|
-
|
|
2768
|
-
var jt = "MenubarTrigger",
|
|
2817
|
+
On.displayName = na;
|
|
2818
|
+
var jt = "MenubarTrigger", $n = c.forwardRef(
|
|
2769
2819
|
(e, t) => {
|
|
2770
|
-
const { __scopeMenubar: a, disabled: r = !1, ...n } = e, o =
|
|
2820
|
+
const { __scopeMenubar: a, disabled: r = !1, ...n } = e, o = zn(a), s = Z(a), i = ra(jt, a), d = kn(jt, a), f = c.useRef(null), m = q(t, f, d.triggerRef), [p, u] = c.useState(!1), g = i.value === d.value;
|
|
2771
2821
|
return /* @__PURE__ */ l.jsx(It.ItemSlot, { scope: a, value: d.value, disabled: r, children: /* @__PURE__ */ l.jsx(
|
|
2772
2822
|
$t,
|
|
2773
2823
|
{
|
|
@@ -2775,7 +2825,7 @@ var jt = "MenubarTrigger", kn = c.forwardRef(
|
|
|
2775
2825
|
...o,
|
|
2776
2826
|
focusable: !r,
|
|
2777
2827
|
tabStopId: d.value,
|
|
2778
|
-
children: /* @__PURE__ */ l.jsx(
|
|
2828
|
+
children: /* @__PURE__ */ l.jsx(fs, { asChild: !0, ...s, children: /* @__PURE__ */ l.jsx(
|
|
2779
2829
|
O.button,
|
|
2780
2830
|
{
|
|
2781
2831
|
type: "button",
|
|
@@ -2808,17 +2858,17 @@ var jt = "MenubarTrigger", kn = c.forwardRef(
|
|
|
2808
2858
|
) });
|
|
2809
2859
|
}
|
|
2810
2860
|
);
|
|
2811
|
-
|
|
2812
|
-
var
|
|
2861
|
+
$n.displayName = jt;
|
|
2862
|
+
var Kc = "MenubarPortal", Fn = (e) => {
|
|
2813
2863
|
const { __scopeMenubar: t, ...a } = e, r = Z(t);
|
|
2814
|
-
return /* @__PURE__ */ l.jsx(
|
|
2864
|
+
return /* @__PURE__ */ l.jsx(Ns, { ...r, ...a });
|
|
2815
2865
|
};
|
|
2816
|
-
|
|
2817
|
-
var Dt = "MenubarContent",
|
|
2866
|
+
Fn.displayName = Kc;
|
|
2867
|
+
var Dt = "MenubarContent", Vn = c.forwardRef(
|
|
2818
2868
|
(e, t) => {
|
|
2819
|
-
const { __scopeMenubar: a, align: r = "start", ...n } = e, o = Z(a), s = ra(Dt, a), i =
|
|
2869
|
+
const { __scopeMenubar: a, align: r = "start", ...n } = e, o = Z(a), s = ra(Dt, a), i = kn(Dt, a), d = Vc(a), f = c.useRef(!1);
|
|
2820
2870
|
return /* @__PURE__ */ l.jsx(
|
|
2821
|
-
|
|
2871
|
+
ps,
|
|
2822
2872
|
{
|
|
2823
2873
|
id: i.contentId,
|
|
2824
2874
|
"aria-labelledby": i.triggerId,
|
|
@@ -2853,9 +2903,9 @@ var Dt = "MenubarContent", $n = c.forwardRef(
|
|
|
2853
2903
|
let S = d().filter((I) => !I.disabled).map((I) => I.value);
|
|
2854
2904
|
v && S.reverse();
|
|
2855
2905
|
const y = S.indexOf(i.value);
|
|
2856
|
-
S = s.loop ?
|
|
2857
|
-
const [
|
|
2858
|
-
|
|
2906
|
+
S = s.loop ? od(S, y + 1) : S.slice(y + 1);
|
|
2907
|
+
const [R] = S;
|
|
2908
|
+
R && s.onMenuOpen(R);
|
|
2859
2909
|
}
|
|
2860
2910
|
},
|
|
2861
2911
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -2872,82 +2922,82 @@ var Dt = "MenubarContent", $n = c.forwardRef(
|
|
|
2872
2922
|
);
|
|
2873
2923
|
}
|
|
2874
2924
|
);
|
|
2875
|
-
|
|
2876
|
-
var
|
|
2925
|
+
Vn.displayName = Dt;
|
|
2926
|
+
var Uc = "MenubarGroup", Hn = c.forwardRef(
|
|
2877
2927
|
(e, t) => {
|
|
2878
2928
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2879
|
-
return /* @__PURE__ */ l.jsx(
|
|
2929
|
+
return /* @__PURE__ */ l.jsx(ms, { ...n, ...r, ref: t });
|
|
2880
2930
|
}
|
|
2881
2931
|
);
|
|
2882
|
-
|
|
2883
|
-
var
|
|
2932
|
+
Hn.displayName = Uc;
|
|
2933
|
+
var Wc = "MenubarLabel", Bn = c.forwardRef(
|
|
2884
2934
|
(e, t) => {
|
|
2885
2935
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2886
|
-
return /* @__PURE__ */ l.jsx(
|
|
2936
|
+
return /* @__PURE__ */ l.jsx(bs, { ...n, ...r, ref: t });
|
|
2887
2937
|
}
|
|
2888
2938
|
);
|
|
2889
|
-
|
|
2890
|
-
var
|
|
2939
|
+
Bn.displayName = Wc;
|
|
2940
|
+
var Xc = "MenubarItem", Gn = c.forwardRef(
|
|
2891
2941
|
(e, t) => {
|
|
2892
2942
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2893
|
-
return /* @__PURE__ */ l.jsx(
|
|
2943
|
+
return /* @__PURE__ */ l.jsx(gs, { ...n, ...r, ref: t });
|
|
2894
2944
|
}
|
|
2895
2945
|
);
|
|
2896
|
-
|
|
2897
|
-
var
|
|
2946
|
+
Gn.displayName = Xc;
|
|
2947
|
+
var Yc = "MenubarCheckboxItem", Kn = c.forwardRef(
|
|
2898
2948
|
(e, t) => {
|
|
2899
2949
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2900
|
-
return /* @__PURE__ */ l.jsx(
|
|
2950
|
+
return /* @__PURE__ */ l.jsx(vs, { ...n, ...r, ref: t });
|
|
2901
2951
|
}
|
|
2902
2952
|
);
|
|
2903
|
-
|
|
2904
|
-
var
|
|
2953
|
+
Kn.displayName = Yc;
|
|
2954
|
+
var qc = "MenubarRadioGroup", Un = c.forwardRef(
|
|
2905
2955
|
(e, t) => {
|
|
2906
2956
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2907
|
-
return /* @__PURE__ */ l.jsx(
|
|
2957
|
+
return /* @__PURE__ */ l.jsx(hs, { ...n, ...r, ref: t });
|
|
2908
2958
|
}
|
|
2909
2959
|
);
|
|
2910
|
-
|
|
2911
|
-
var
|
|
2960
|
+
Un.displayName = qc;
|
|
2961
|
+
var Jc = "MenubarRadioItem", Wn = c.forwardRef(
|
|
2912
2962
|
(e, t) => {
|
|
2913
2963
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2914
|
-
return /* @__PURE__ */ l.jsx(
|
|
2964
|
+
return /* @__PURE__ */ l.jsx(xs, { ...n, ...r, ref: t });
|
|
2915
2965
|
}
|
|
2916
2966
|
);
|
|
2917
|
-
|
|
2918
|
-
var
|
|
2967
|
+
Wn.displayName = Jc;
|
|
2968
|
+
var Zc = "MenubarItemIndicator", Xn = c.forwardRef((e, t) => {
|
|
2919
2969
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2920
|
-
return /* @__PURE__ */ l.jsx(
|
|
2970
|
+
return /* @__PURE__ */ l.jsx(ws, { ...n, ...r, ref: t });
|
|
2921
2971
|
});
|
|
2922
|
-
|
|
2923
|
-
var
|
|
2972
|
+
Xn.displayName = Zc;
|
|
2973
|
+
var Qc = "MenubarSeparator", Yn = c.forwardRef(
|
|
2924
2974
|
(e, t) => {
|
|
2925
2975
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2926
|
-
return /* @__PURE__ */ l.jsx(
|
|
2976
|
+
return /* @__PURE__ */ l.jsx(ys, { ...n, ...r, ref: t });
|
|
2927
2977
|
}
|
|
2928
2978
|
);
|
|
2929
|
-
|
|
2930
|
-
var
|
|
2979
|
+
Yn.displayName = Qc;
|
|
2980
|
+
var ed = "MenubarArrow", td = c.forwardRef(
|
|
2931
2981
|
(e, t) => {
|
|
2932
2982
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2933
|
-
return /* @__PURE__ */ l.jsx(
|
|
2983
|
+
return /* @__PURE__ */ l.jsx(Ss, { ...n, ...r, ref: t });
|
|
2934
2984
|
}
|
|
2935
2985
|
);
|
|
2936
|
-
|
|
2937
|
-
var
|
|
2986
|
+
td.displayName = ed;
|
|
2987
|
+
var ad = "MenubarSub", qn = (e) => {
|
|
2938
2988
|
const { __scopeMenubar: t, children: a, open: r, onOpenChange: n, defaultOpen: o } = e, s = Z(t), [i = !1, d] = ve({
|
|
2939
2989
|
prop: r,
|
|
2940
2990
|
defaultProp: o,
|
|
2941
2991
|
onChange: n
|
|
2942
2992
|
});
|
|
2943
|
-
return /* @__PURE__ */ l.jsx(
|
|
2993
|
+
return /* @__PURE__ */ l.jsx(Es, { ...s, open: i, onOpenChange: d, children: a });
|
|
2944
2994
|
};
|
|
2945
|
-
|
|
2946
|
-
var
|
|
2995
|
+
qn.displayName = ad;
|
|
2996
|
+
var rd = "MenubarSubTrigger", Jn = c.forwardRef(
|
|
2947
2997
|
(e, t) => {
|
|
2948
2998
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2949
2999
|
return /* @__PURE__ */ l.jsx(
|
|
2950
|
-
|
|
3000
|
+
Cs,
|
|
2951
3001
|
{
|
|
2952
3002
|
"data-radix-menubar-subtrigger": "",
|
|
2953
3003
|
...n,
|
|
@@ -2957,12 +3007,12 @@ var Uc = "MenubarSubTrigger", Yn = c.forwardRef(
|
|
|
2957
3007
|
);
|
|
2958
3008
|
}
|
|
2959
3009
|
);
|
|
2960
|
-
|
|
2961
|
-
var
|
|
3010
|
+
Jn.displayName = rd;
|
|
3011
|
+
var nd = "MenubarSubContent", Zn = c.forwardRef(
|
|
2962
3012
|
(e, t) => {
|
|
2963
3013
|
const { __scopeMenubar: a, ...r } = e, n = Z(a);
|
|
2964
3014
|
return /* @__PURE__ */ l.jsx(
|
|
2965
|
-
|
|
3015
|
+
Rs,
|
|
2966
3016
|
{
|
|
2967
3017
|
...n,
|
|
2968
3018
|
"data-radix-menubar-content": "",
|
|
@@ -2980,12 +3030,12 @@ var Wc = "MenubarSubContent", qn = c.forwardRef(
|
|
|
2980
3030
|
);
|
|
2981
3031
|
}
|
|
2982
3032
|
);
|
|
2983
|
-
|
|
2984
|
-
function
|
|
3033
|
+
Zn.displayName = nd;
|
|
3034
|
+
function od(e, t) {
|
|
2985
3035
|
return e.map((a, r) => e[(t + r) % e.length]);
|
|
2986
3036
|
}
|
|
2987
|
-
var
|
|
2988
|
-
const
|
|
3037
|
+
var Qn = Ln, sd = On, eo = $n, to = Fn, ao = Vn, ld = Hn, ro = Bn, no = Gn, oo = Kn, id = Un, so = Wn, lo = Xn, io = Yn, cd = qn, co = Jn, uo = Zn;
|
|
3038
|
+
const Ku = sd, Uu = ld, Wu = to, Xu = cd, Yu = id, dd = Ue(
|
|
2989
3039
|
[
|
|
2990
3040
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
2991
3041
|
"al-text-sm al-font-normal",
|
|
@@ -3041,26 +3091,26 @@ const ju = Yc, Du = qc, zu = Qn, Lu = Zc, ku = Jc, Qc = Ue(
|
|
|
3041
3091
|
size: "default"
|
|
3042
3092
|
}
|
|
3043
3093
|
}
|
|
3044
|
-
),
|
|
3045
|
-
|
|
3094
|
+
), ud = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
3095
|
+
Qn,
|
|
3046
3096
|
{
|
|
3047
3097
|
ref: a,
|
|
3048
3098
|
className: w("al-flex al-h-10 al-items-center al-space-x-1 al-rounded-md al-p-1", e),
|
|
3049
3099
|
...t
|
|
3050
3100
|
}
|
|
3051
3101
|
));
|
|
3052
|
-
|
|
3053
|
-
const
|
|
3054
|
-
|
|
3102
|
+
ud.displayName = Qn.displayName;
|
|
3103
|
+
const fd = c.forwardRef(({ className: e, variant: t, size: a, ...r }, n) => /* @__PURE__ */ l.jsx(
|
|
3104
|
+
eo,
|
|
3055
3105
|
{
|
|
3056
3106
|
ref: n,
|
|
3057
|
-
className: w(
|
|
3107
|
+
className: w(dd({ variant: t, size: a, className: e })),
|
|
3058
3108
|
...r
|
|
3059
3109
|
}
|
|
3060
3110
|
));
|
|
3061
|
-
|
|
3062
|
-
const
|
|
3063
|
-
|
|
3111
|
+
fd.displayName = eo.displayName;
|
|
3112
|
+
const pd = c.forwardRef(({ className: e, inset: t, children: a, ...r }, n) => /* @__PURE__ */ l.jsxs(
|
|
3113
|
+
co,
|
|
3064
3114
|
{
|
|
3065
3115
|
ref: n,
|
|
3066
3116
|
className: w(
|
|
@@ -3075,9 +3125,9 @@ const ad = c.forwardRef(({ className: e, inset: t, children: a, ...r }, n) => /*
|
|
|
3075
3125
|
]
|
|
3076
3126
|
}
|
|
3077
3127
|
));
|
|
3078
|
-
|
|
3079
|
-
const
|
|
3080
|
-
|
|
3128
|
+
pd.displayName = co.displayName;
|
|
3129
|
+
const md = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
3130
|
+
uo,
|
|
3081
3131
|
{
|
|
3082
3132
|
ref: a,
|
|
3083
3133
|
className: w(
|
|
@@ -3087,9 +3137,9 @@ const rd = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
3087
3137
|
...t
|
|
3088
3138
|
}
|
|
3089
3139
|
));
|
|
3090
|
-
|
|
3091
|
-
const
|
|
3092
|
-
|
|
3140
|
+
md.displayName = uo.displayName;
|
|
3141
|
+
const bd = c.forwardRef(({ className: e, align: t = "start", alignOffset: a = -4, sideOffset: r = 8, ...n }, o) => /* @__PURE__ */ l.jsx(to, { children: /* @__PURE__ */ l.jsx(
|
|
3142
|
+
ao,
|
|
3093
3143
|
{
|
|
3094
3144
|
ref: o,
|
|
3095
3145
|
align: t,
|
|
@@ -3102,9 +3152,9 @@ const nd = c.forwardRef(({ className: e, align: t = "start", alignOffset: a = -4
|
|
|
3102
3152
|
...n
|
|
3103
3153
|
}
|
|
3104
3154
|
) }));
|
|
3105
|
-
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3155
|
+
bd.displayName = ao.displayName;
|
|
3156
|
+
const gd = c.forwardRef(({ className: e, inset: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
3157
|
+
no,
|
|
3108
3158
|
{
|
|
3109
3159
|
ref: r,
|
|
3110
3160
|
className: w(
|
|
@@ -3115,9 +3165,9 @@ const od = c.forwardRef(({ className: e, inset: t, ...a }, r) => /* @__PURE__ */
|
|
|
3115
3165
|
...a
|
|
3116
3166
|
}
|
|
3117
3167
|
));
|
|
3118
|
-
|
|
3119
|
-
const
|
|
3120
|
-
|
|
3168
|
+
gd.displayName = no.displayName;
|
|
3169
|
+
const vd = c.forwardRef(({ className: e, children: t, checked: a, ...r }, n) => /* @__PURE__ */ l.jsxs(
|
|
3170
|
+
oo,
|
|
3121
3171
|
{
|
|
3122
3172
|
ref: n,
|
|
3123
3173
|
className: w(
|
|
@@ -3127,14 +3177,14 @@ const sd = c.forwardRef(({ className: e, children: t, checked: a, ...r }, n) =>
|
|
|
3127
3177
|
checked: a,
|
|
3128
3178
|
...r,
|
|
3129
3179
|
children: [
|
|
3130
|
-
/* @__PURE__ */ l.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ l.jsx(
|
|
3180
|
+
/* @__PURE__ */ l.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ l.jsx(lo, { children: /* @__PURE__ */ l.jsx(Va, { className: "al-h-4 al-w-4" }) }) }),
|
|
3131
3181
|
t
|
|
3132
3182
|
]
|
|
3133
3183
|
}
|
|
3134
3184
|
));
|
|
3135
|
-
|
|
3136
|
-
const
|
|
3137
|
-
|
|
3185
|
+
vd.displayName = oo.displayName;
|
|
3186
|
+
const hd = c.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ l.jsxs(
|
|
3187
|
+
so,
|
|
3138
3188
|
{
|
|
3139
3189
|
ref: r,
|
|
3140
3190
|
className: w(
|
|
@@ -3143,39 +3193,39 @@ const ld = c.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
3143
3193
|
),
|
|
3144
3194
|
...a,
|
|
3145
3195
|
children: [
|
|
3146
|
-
/* @__PURE__ */ l.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ l.jsx(
|
|
3196
|
+
/* @__PURE__ */ l.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ l.jsx(lo, { children: /* @__PURE__ */ l.jsx(Fa, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
|
|
3147
3197
|
t
|
|
3148
3198
|
]
|
|
3149
3199
|
}
|
|
3150
3200
|
));
|
|
3151
|
-
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3201
|
+
hd.displayName = so.displayName;
|
|
3202
|
+
const xd = c.forwardRef(({ className: e, inset: t, ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
3203
|
+
ro,
|
|
3154
3204
|
{
|
|
3155
3205
|
ref: r,
|
|
3156
3206
|
className: w("al-px-2 al-py-1.5 al-text-sm al-font-semibold", t && "al-pl-8", e),
|
|
3157
3207
|
...a
|
|
3158
3208
|
}
|
|
3159
3209
|
));
|
|
3160
|
-
|
|
3161
|
-
const
|
|
3162
|
-
|
|
3210
|
+
xd.displayName = ro.displayName;
|
|
3211
|
+
const wd = c.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
3212
|
+
io,
|
|
3163
3213
|
{
|
|
3164
3214
|
ref: a,
|
|
3165
3215
|
className: w("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
|
|
3166
3216
|
...t
|
|
3167
3217
|
}
|
|
3168
3218
|
));
|
|
3169
|
-
|
|
3170
|
-
const
|
|
3219
|
+
wd.displayName = io.displayName;
|
|
3220
|
+
const yd = ({ className: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
3171
3221
|
"span",
|
|
3172
3222
|
{
|
|
3173
3223
|
className: w("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
3174
3224
|
...t
|
|
3175
3225
|
}
|
|
3176
3226
|
);
|
|
3177
|
-
|
|
3178
|
-
const
|
|
3227
|
+
yd.displayname = "MenubarShortcut";
|
|
3228
|
+
const Sd = ({ className: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
3179
3229
|
"nav",
|
|
3180
3230
|
{
|
|
3181
3231
|
role: "navigation",
|
|
@@ -3184,8 +3234,8 @@ const ud = ({ className: e, ...t }) => /* @__PURE__ */ l.jsx(
|
|
|
3184
3234
|
...t
|
|
3185
3235
|
}
|
|
3186
3236
|
);
|
|
3187
|
-
|
|
3188
|
-
const
|
|
3237
|
+
Sd.displayName = "Pagination";
|
|
3238
|
+
const Cd = c.forwardRef(
|
|
3189
3239
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
3190
3240
|
"ul",
|
|
3191
3241
|
{
|
|
@@ -3195,11 +3245,11 @@ const fd = c.forwardRef(
|
|
|
3195
3245
|
}
|
|
3196
3246
|
)
|
|
3197
3247
|
);
|
|
3198
|
-
|
|
3199
|
-
const
|
|
3248
|
+
Cd.displayName = "PaginationContent";
|
|
3249
|
+
const Rd = c.forwardRef(
|
|
3200
3250
|
({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx("li", { ref: a, className: w("al-", e), ...t })
|
|
3201
3251
|
);
|
|
3202
|
-
|
|
3252
|
+
Rd.displayName = "PaginationItem";
|
|
3203
3253
|
const oa = ({
|
|
3204
3254
|
className: e,
|
|
3205
3255
|
isActive: t,
|
|
@@ -3213,7 +3263,7 @@ const oa = ({
|
|
|
3213
3263
|
"aria-current": t ? "page" : void 0,
|
|
3214
3264
|
"aria-label": n || (typeof r == "string" ? r : "Page"),
|
|
3215
3265
|
className: w(
|
|
3216
|
-
|
|
3266
|
+
$s({
|
|
3217
3267
|
variant: t ? "outline" : "ghost",
|
|
3218
3268
|
size: a
|
|
3219
3269
|
}),
|
|
@@ -3224,7 +3274,7 @@ const oa = ({
|
|
|
3224
3274
|
}
|
|
3225
3275
|
);
|
|
3226
3276
|
oa.displayName = "PaginationLink";
|
|
3227
|
-
const
|
|
3277
|
+
const Pd = ({
|
|
3228
3278
|
className: e,
|
|
3229
3279
|
...t
|
|
3230
3280
|
}) => /* @__PURE__ */ l.jsxs(
|
|
@@ -3235,13 +3285,13 @@ const md = ({
|
|
|
3235
3285
|
className: w("al-gap-1 al-pl-2.5", e),
|
|
3236
3286
|
...t,
|
|
3237
3287
|
children: [
|
|
3238
|
-
/* @__PURE__ */ l.jsx(
|
|
3288
|
+
/* @__PURE__ */ l.jsx(Xs, { className: "al-h-4 al-w-4" }),
|
|
3239
3289
|
/* @__PURE__ */ l.jsx("span", { children: "Previous" })
|
|
3240
3290
|
]
|
|
3241
3291
|
}
|
|
3242
3292
|
);
|
|
3243
|
-
|
|
3244
|
-
const
|
|
3293
|
+
Pd.displayName = "PaginationPrevious";
|
|
3294
|
+
const Nd = ({ className: e, ...t }) => /* @__PURE__ */ l.jsxs(
|
|
3245
3295
|
oa,
|
|
3246
3296
|
{
|
|
3247
3297
|
"aria-label": "Go to next page",
|
|
@@ -3254,42 +3304,42 @@ const bd = ({ className: e, ...t }) => /* @__PURE__ */ l.jsxs(
|
|
|
3254
3304
|
]
|
|
3255
3305
|
}
|
|
3256
3306
|
);
|
|
3257
|
-
|
|
3258
|
-
const
|
|
3307
|
+
Nd.displayName = "PaginationNext";
|
|
3308
|
+
const Ed = ({ className: e, ...t }) => /* @__PURE__ */ l.jsxs(
|
|
3259
3309
|
"span",
|
|
3260
3310
|
{
|
|
3261
3311
|
"aria-hidden": !0,
|
|
3262
3312
|
className: w("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
3263
3313
|
...t,
|
|
3264
3314
|
children: [
|
|
3265
|
-
/* @__PURE__ */ l.jsx(
|
|
3315
|
+
/* @__PURE__ */ l.jsx(Ha, { className: "al-h-4 al-w-4" }),
|
|
3266
3316
|
/* @__PURE__ */ l.jsx("span", { className: "al-sr-only", children: "More pages" })
|
|
3267
3317
|
]
|
|
3268
3318
|
}
|
|
3269
3319
|
);
|
|
3270
|
-
|
|
3320
|
+
Ed.displayName = "PaginationEllipsis";
|
|
3271
3321
|
const {
|
|
3272
3322
|
createElement: Me,
|
|
3273
|
-
createContext:
|
|
3274
|
-
createRef:
|
|
3275
|
-
forwardRef:
|
|
3323
|
+
createContext: Td,
|
|
3324
|
+
createRef: qu,
|
|
3325
|
+
forwardRef: fo,
|
|
3276
3326
|
useCallback: ee,
|
|
3277
|
-
useContext:
|
|
3327
|
+
useContext: po,
|
|
3278
3328
|
useEffect: we,
|
|
3279
|
-
useImperativeHandle:
|
|
3280
|
-
useLayoutEffect:
|
|
3281
|
-
useMemo:
|
|
3329
|
+
useImperativeHandle: mo,
|
|
3330
|
+
useLayoutEffect: _d,
|
|
3331
|
+
useMemo: Ad,
|
|
3282
3332
|
useRef: ae,
|
|
3283
3333
|
useState: _e
|
|
3284
|
-
} = c, Ea = c[`useId${Math.random()}`.slice(0, 5)],
|
|
3334
|
+
} = c, Ea = c[`useId${Math.random()}`.slice(0, 5)], Md = _d, ft = Td(null);
|
|
3285
3335
|
ft.displayName = "PanelGroupContext";
|
|
3286
|
-
const ye =
|
|
3287
|
-
let
|
|
3336
|
+
const ye = Md, Id = typeof Ea == "function" ? Ea : () => null;
|
|
3337
|
+
let jd = 0;
|
|
3288
3338
|
function sa(e = null) {
|
|
3289
|
-
const t =
|
|
3290
|
-
return a.current === null && (a.current = "" +
|
|
3339
|
+
const t = Id(), a = ae(e || t || null);
|
|
3340
|
+
return a.current === null && (a.current = "" + jd++), e ?? a.current;
|
|
3291
3341
|
}
|
|
3292
|
-
function
|
|
3342
|
+
function bo({
|
|
3293
3343
|
children: e,
|
|
3294
3344
|
className: t = "",
|
|
3295
3345
|
collapsedSize: a,
|
|
@@ -3307,14 +3357,14 @@ function po({
|
|
|
3307
3357
|
tagName: b = "div",
|
|
3308
3358
|
...v
|
|
3309
3359
|
}) {
|
|
3310
|
-
const h =
|
|
3360
|
+
const h = po(ft);
|
|
3311
3361
|
if (h === null)
|
|
3312
3362
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
3313
3363
|
const {
|
|
3314
3364
|
collapsePanel: x,
|
|
3315
3365
|
expandPanel: S,
|
|
3316
3366
|
getPanelSize: y,
|
|
3317
|
-
getPanelStyle:
|
|
3367
|
+
getPanelStyle: R,
|
|
3318
3368
|
groupId: I,
|
|
3319
3369
|
isPanelCollapsed: T,
|
|
3320
3370
|
reevaluatePanelConstraints: P,
|
|
@@ -3353,7 +3403,7 @@ function po({
|
|
|
3353
3403
|
return B(N), () => {
|
|
3354
3404
|
H(N);
|
|
3355
3405
|
};
|
|
3356
|
-
}, [u, M, B, H]),
|
|
3406
|
+
}, [u, M, B, H]), mo(o, () => ({
|
|
3357
3407
|
collapse: () => {
|
|
3358
3408
|
x(L.current);
|
|
3359
3409
|
},
|
|
@@ -3376,7 +3426,7 @@ function po({
|
|
|
3376
3426
|
j(L.current, N);
|
|
3377
3427
|
}
|
|
3378
3428
|
}), [x, S, y, T, M, j]);
|
|
3379
|
-
const W =
|
|
3429
|
+
const W = R(L.current, n);
|
|
3380
3430
|
return Me(b, {
|
|
3381
3431
|
...v,
|
|
3382
3432
|
children: e,
|
|
@@ -3394,16 +3444,16 @@ function po({
|
|
|
3394
3444
|
"data-panel-size": parseFloat("" + W.flexGrow).toFixed(1)
|
|
3395
3445
|
});
|
|
3396
3446
|
}
|
|
3397
|
-
const
|
|
3447
|
+
const go = fo((e, t) => Me(bo, {
|
|
3398
3448
|
...e,
|
|
3399
3449
|
forwardedRef: t
|
|
3400
3450
|
}));
|
|
3401
|
-
|
|
3402
|
-
|
|
3451
|
+
bo.displayName = "Panel";
|
|
3452
|
+
go.displayName = "forwardRef(Panel)";
|
|
3403
3453
|
let zt = null, xe = null;
|
|
3404
|
-
function
|
|
3454
|
+
function Dd(e, t) {
|
|
3405
3455
|
if (t) {
|
|
3406
|
-
const a = (t &
|
|
3456
|
+
const a = (t & yo) !== 0, r = (t & So) !== 0, n = (t & Co) !== 0, o = (t & Ro) !== 0;
|
|
3407
3457
|
if (a)
|
|
3408
3458
|
return n ? "se-resize" : o ? "ne-resize" : "e-resize";
|
|
3409
3459
|
if (r)
|
|
@@ -3422,30 +3472,30 @@ function Rd(e, t) {
|
|
|
3422
3472
|
return "ns-resize";
|
|
3423
3473
|
}
|
|
3424
3474
|
}
|
|
3425
|
-
function
|
|
3475
|
+
function zd() {
|
|
3426
3476
|
xe !== null && (document.head.removeChild(xe), zt = null, xe = null);
|
|
3427
3477
|
}
|
|
3428
3478
|
function St(e, t) {
|
|
3429
|
-
const a =
|
|
3479
|
+
const a = Dd(e, t);
|
|
3430
3480
|
zt !== a && (zt = a, xe === null && (xe = document.createElement("style"), document.head.appendChild(xe)), xe.innerHTML = `*{cursor: ${a}!important;}`);
|
|
3431
3481
|
}
|
|
3432
|
-
function
|
|
3482
|
+
function vo(e) {
|
|
3433
3483
|
return e.type === "keydown";
|
|
3434
3484
|
}
|
|
3435
|
-
function
|
|
3485
|
+
function ho(e) {
|
|
3436
3486
|
return e.type.startsWith("pointer");
|
|
3437
3487
|
}
|
|
3438
|
-
function
|
|
3488
|
+
function xo(e) {
|
|
3439
3489
|
return e.type.startsWith("mouse");
|
|
3440
3490
|
}
|
|
3441
3491
|
function pt(e) {
|
|
3442
|
-
if (
|
|
3492
|
+
if (ho(e)) {
|
|
3443
3493
|
if (e.isPrimary)
|
|
3444
3494
|
return {
|
|
3445
3495
|
x: e.clientX,
|
|
3446
3496
|
y: e.clientY
|
|
3447
3497
|
};
|
|
3448
|
-
} else if (
|
|
3498
|
+
} else if (xo(e))
|
|
3449
3499
|
return {
|
|
3450
3500
|
x: e.clientX,
|
|
3451
3501
|
y: e.clientY
|
|
@@ -3455,14 +3505,14 @@ function pt(e) {
|
|
|
3455
3505
|
y: 1 / 0
|
|
3456
3506
|
};
|
|
3457
3507
|
}
|
|
3458
|
-
function
|
|
3508
|
+
function Ld() {
|
|
3459
3509
|
if (typeof matchMedia == "function")
|
|
3460
3510
|
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
3461
3511
|
}
|
|
3462
|
-
function
|
|
3512
|
+
function kd(e, t, a) {
|
|
3463
3513
|
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
|
|
3464
3514
|
}
|
|
3465
|
-
function
|
|
3515
|
+
function Od(e, t) {
|
|
3466
3516
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
3467
3517
|
const a = {
|
|
3468
3518
|
a: Aa(e),
|
|
@@ -3490,21 +3540,21 @@ function Ed(e, t) {
|
|
|
3490
3540
|
}
|
|
3491
3541
|
return Math.sign(n.a - n.b);
|
|
3492
3542
|
}
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3543
|
+
const $d = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
3544
|
+
function Fd(e) {
|
|
3495
3545
|
var t;
|
|
3496
|
-
const a = getComputedStyle((t =
|
|
3546
|
+
const a = getComputedStyle((t = wo(e)) !== null && t !== void 0 ? t : e).display;
|
|
3497
3547
|
return a === "flex" || a === "inline-flex";
|
|
3498
3548
|
}
|
|
3499
|
-
function
|
|
3549
|
+
function Vd(e) {
|
|
3500
3550
|
const t = getComputedStyle(e);
|
|
3501
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
3551
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || Fd(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || $d.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
3502
3552
|
}
|
|
3503
3553
|
function Ta(e) {
|
|
3504
3554
|
let t = e.length;
|
|
3505
3555
|
for (; t--; ) {
|
|
3506
3556
|
const a = e[t];
|
|
3507
|
-
if (D(a, "Missing node"),
|
|
3557
|
+
if (D(a, "Missing node"), Vd(a)) return a;
|
|
3508
3558
|
}
|
|
3509
3559
|
return null;
|
|
3510
3560
|
}
|
|
@@ -3514,19 +3564,19 @@ function _a(e) {
|
|
|
3514
3564
|
function Aa(e) {
|
|
3515
3565
|
const t = [];
|
|
3516
3566
|
for (; e; )
|
|
3517
|
-
t.push(e), e =
|
|
3567
|
+
t.push(e), e = wo(e);
|
|
3518
3568
|
return t;
|
|
3519
3569
|
}
|
|
3520
|
-
function
|
|
3570
|
+
function wo(e) {
|
|
3521
3571
|
const {
|
|
3522
3572
|
parentNode: t
|
|
3523
3573
|
} = e;
|
|
3524
3574
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
3525
3575
|
}
|
|
3526
|
-
const
|
|
3576
|
+
const yo = 1, So = 2, Co = 4, Ro = 8, Hd = Ld() === "coarse";
|
|
3527
3577
|
let ie = [], Ae = !1, be = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map();
|
|
3528
3578
|
const Be = /* @__PURE__ */ new Set();
|
|
3529
|
-
function
|
|
3579
|
+
function Bd(e, t, a, r, n) {
|
|
3530
3580
|
var o;
|
|
3531
3581
|
const {
|
|
3532
3582
|
ownerDocument: s
|
|
@@ -3605,15 +3655,15 @@ function la({
|
|
|
3605
3655
|
left: f,
|
|
3606
3656
|
right: m,
|
|
3607
3657
|
top: p
|
|
3608
|
-
} = i, u =
|
|
3658
|
+
} = i, u = Hd ? s.coarse : s.fine;
|
|
3609
3659
|
if (t >= f - u && t <= m + u && a >= p - u && a <= d + u) {
|
|
3610
3660
|
if (r !== null && document.contains(r) && o !== r && !o.contains(r) && !r.contains(o) && // Calculating stacking order has a cost, so we should avoid it if possible
|
|
3611
3661
|
// That is why we only check potentially intersecting handles,
|
|
3612
3662
|
// and why we skip if the event target is within the handle's DOM
|
|
3613
|
-
|
|
3663
|
+
Od(r, o) > 0) {
|
|
3614
3664
|
let b = r, v = !1;
|
|
3615
3665
|
for (; b && !b.contains(o); ) {
|
|
3616
|
-
if (
|
|
3666
|
+
if (kd(b.getBoundingClientRect(), i)) {
|
|
3617
3667
|
v = !0;
|
|
3618
3668
|
break;
|
|
3619
3669
|
}
|
|
@@ -3626,7 +3676,7 @@ function la({
|
|
|
3626
3676
|
}
|
|
3627
3677
|
});
|
|
3628
3678
|
}
|
|
3629
|
-
function
|
|
3679
|
+
function Ct(e, t) {
|
|
3630
3680
|
mt.set(e, t);
|
|
3631
3681
|
}
|
|
3632
3682
|
function ia() {
|
|
@@ -3640,7 +3690,7 @@ function ia() {
|
|
|
3640
3690
|
let a = 0;
|
|
3641
3691
|
mt.forEach((r) => {
|
|
3642
3692
|
a |= r;
|
|
3643
|
-
}), e && t ? St("intersection", a) : e ? St("horizontal", a) : t ? St("vertical", a) :
|
|
3693
|
+
}), e && t ? St("intersection", a) : e ? St("horizontal", a) : t ? St("vertical", a) : zd();
|
|
3644
3694
|
}
|
|
3645
3695
|
function Ze() {
|
|
3646
3696
|
be.forEach((e, t) => {
|
|
@@ -3670,7 +3720,7 @@ function Qe(e, t) {
|
|
|
3670
3720
|
r(e, n, t);
|
|
3671
3721
|
});
|
|
3672
3722
|
}
|
|
3673
|
-
function
|
|
3723
|
+
function Gd() {
|
|
3674
3724
|
const [e, t] = _e(0);
|
|
3675
3725
|
return ee(() => t((a) => a + 1), []);
|
|
3676
3726
|
}
|
|
@@ -3688,7 +3738,7 @@ function me(e, t, a = ca) {
|
|
|
3688
3738
|
function re(e, t, a) {
|
|
3689
3739
|
return Se(e, t, a) === 0;
|
|
3690
3740
|
}
|
|
3691
|
-
function
|
|
3741
|
+
function Kd(e, t, a) {
|
|
3692
3742
|
if (e.length !== t.length)
|
|
3693
3743
|
return !1;
|
|
3694
3744
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -3800,7 +3850,7 @@ function Ve({
|
|
|
3800
3850
|
e < 0 ? u-- : u++;
|
|
3801
3851
|
}
|
|
3802
3852
|
}
|
|
3803
|
-
if (
|
|
3853
|
+
if (Kd(n, s))
|
|
3804
3854
|
return n;
|
|
3805
3855
|
{
|
|
3806
3856
|
const p = e < 0 ? d : i, u = t[p];
|
|
@@ -3815,12 +3865,12 @@ function Ve({
|
|
|
3815
3865
|
for (; x >= 0 && x < a.length; ) {
|
|
3816
3866
|
const S = s[x];
|
|
3817
3867
|
D(S != null, `Previous layout not found for panel index ${x}`);
|
|
3818
|
-
const y = S + v,
|
|
3868
|
+
const y = S + v, R = Te({
|
|
3819
3869
|
panelConstraints: a,
|
|
3820
3870
|
panelIndex: x,
|
|
3821
3871
|
size: y
|
|
3822
3872
|
});
|
|
3823
|
-
if (re(S,
|
|
3873
|
+
if (re(S, R) || (v -= R - S, s[x] = R), re(v, 0))
|
|
3824
3874
|
break;
|
|
3825
3875
|
e > 0 ? x-- : x++;
|
|
3826
3876
|
}
|
|
@@ -3829,7 +3879,7 @@ function Ve({
|
|
|
3829
3879
|
const m = s.reduce((p, u) => u + p, 0);
|
|
3830
3880
|
return re(m, 100) ? s : n;
|
|
3831
3881
|
}
|
|
3832
|
-
function
|
|
3882
|
+
function Ud({
|
|
3833
3883
|
layout: e,
|
|
3834
3884
|
panelsArray: t,
|
|
3835
3885
|
pivotIndices: a
|
|
@@ -3855,15 +3905,15 @@ function zd({
|
|
|
3855
3905
|
function Ge(e, t = document) {
|
|
3856
3906
|
return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`));
|
|
3857
3907
|
}
|
|
3858
|
-
function
|
|
3908
|
+
function Po(e, t, a = document) {
|
|
3859
3909
|
const n = Ge(e, a).findIndex((o) => o.getAttribute("data-panel-resize-handle-id") === t);
|
|
3860
3910
|
return n ?? null;
|
|
3861
3911
|
}
|
|
3862
|
-
function
|
|
3863
|
-
const r =
|
|
3912
|
+
function No(e, t, a) {
|
|
3913
|
+
const r = Po(e, t, a);
|
|
3864
3914
|
return r != null ? [r, r + 1] : [-1, -1];
|
|
3865
3915
|
}
|
|
3866
|
-
function
|
|
3916
|
+
function Eo(e, t = document) {
|
|
3867
3917
|
var a;
|
|
3868
3918
|
if (t instanceof HTMLElement && (t == null || (a = t.dataset) === null || a === void 0 ? void 0 : a.panelGroupId) == e)
|
|
3869
3919
|
return t;
|
|
@@ -3874,12 +3924,12 @@ function bt(e, t = document) {
|
|
|
3874
3924
|
const a = t.querySelector(`[data-panel-resize-handle-id="${e}"]`);
|
|
3875
3925
|
return a || null;
|
|
3876
3926
|
}
|
|
3877
|
-
function
|
|
3927
|
+
function Wd(e, t, a, r = document) {
|
|
3878
3928
|
var n, o, s, i;
|
|
3879
3929
|
const d = bt(t, r), f = Ge(e, r), m = d ? f.indexOf(d) : -1, p = (n = (o = a[m]) === null || o === void 0 ? void 0 : o.id) !== null && n !== void 0 ? n : null, u = (s = (i = a[m + 1]) === null || i === void 0 ? void 0 : i.id) !== null && s !== void 0 ? s : null;
|
|
3880
3930
|
return [p, u];
|
|
3881
3931
|
}
|
|
3882
|
-
function
|
|
3932
|
+
function Xd({
|
|
3883
3933
|
committedValuesRef: e,
|
|
3884
3934
|
eagerValuesRef: t,
|
|
3885
3935
|
groupId: a,
|
|
@@ -3899,7 +3949,7 @@ function kd({
|
|
|
3899
3949
|
valueMax: f,
|
|
3900
3950
|
valueMin: m,
|
|
3901
3951
|
valueNow: p
|
|
3902
|
-
} =
|
|
3952
|
+
} = Ud({
|
|
3903
3953
|
layout: r,
|
|
3904
3954
|
panelsArray: n,
|
|
3905
3955
|
pivotIndices: [d, d + 1]
|
|
@@ -3921,14 +3971,14 @@ function kd({
|
|
|
3921
3971
|
D(i, "Eager values not found");
|
|
3922
3972
|
const {
|
|
3923
3973
|
panelDataArray: d
|
|
3924
|
-
} = i, f =
|
|
3974
|
+
} = i, f = Eo(a, o);
|
|
3925
3975
|
D(f != null, `No group found for id "${a}"`);
|
|
3926
3976
|
const m = Ge(a, o);
|
|
3927
3977
|
D(m, `No resize handles found for group id "${a}"`);
|
|
3928
3978
|
const p = m.map((u) => {
|
|
3929
3979
|
const g = u.getAttribute("data-panel-resize-handle-id");
|
|
3930
3980
|
D(g, "Resize handle element has no handle id attribute");
|
|
3931
|
-
const [b, v] =
|
|
3981
|
+
const [b, v] = Wd(a, g, d, o);
|
|
3932
3982
|
if (b == null || v == null)
|
|
3933
3983
|
return () => {
|
|
3934
3984
|
};
|
|
@@ -3941,17 +3991,17 @@ function kd({
|
|
|
3941
3991
|
if (S >= 0) {
|
|
3942
3992
|
const y = d[S];
|
|
3943
3993
|
D(y, `No panel data found for index ${S}`);
|
|
3944
|
-
const
|
|
3994
|
+
const R = r[S], {
|
|
3945
3995
|
collapsedSize: I = 0,
|
|
3946
3996
|
collapsible: T,
|
|
3947
3997
|
minSize: P = 0
|
|
3948
3998
|
} = y.constraints;
|
|
3949
|
-
if (
|
|
3999
|
+
if (R != null && T) {
|
|
3950
4000
|
const B = Ve({
|
|
3951
|
-
delta: re(
|
|
4001
|
+
delta: re(R, I) ? P - I : I - R,
|
|
3952
4002
|
initialLayout: r,
|
|
3953
4003
|
panelConstraints: d.map((j) => j.constraints),
|
|
3954
|
-
pivotIndices:
|
|
4004
|
+
pivotIndices: No(a, g, o),
|
|
3955
4005
|
prevLayout: r,
|
|
3956
4006
|
trigger: "keyboard"
|
|
3957
4007
|
});
|
|
@@ -3979,14 +4029,14 @@ function Ia(e, t) {
|
|
|
3979
4029
|
return !1;
|
|
3980
4030
|
return !0;
|
|
3981
4031
|
}
|
|
3982
|
-
function
|
|
4032
|
+
function To(e, t) {
|
|
3983
4033
|
const a = e === "horizontal", {
|
|
3984
4034
|
x: r,
|
|
3985
4035
|
y: n
|
|
3986
4036
|
} = pt(t);
|
|
3987
4037
|
return a ? r : n;
|
|
3988
4038
|
}
|
|
3989
|
-
function
|
|
4039
|
+
function Yd(e, t, a, r, n) {
|
|
3990
4040
|
const o = a === "horizontal", s = bt(t, n);
|
|
3991
4041
|
D(s, `No resize handle element found for id "${t}"`);
|
|
3992
4042
|
const i = s.getAttribute("data-panel-group-id");
|
|
@@ -3994,13 +4044,13 @@ function Od(e, t, a, r, n) {
|
|
|
3994
4044
|
let {
|
|
3995
4045
|
initialCursorPosition: d
|
|
3996
4046
|
} = r;
|
|
3997
|
-
const f =
|
|
4047
|
+
const f = To(a, e), m = Eo(i, n);
|
|
3998
4048
|
D(m, `No group element found for id "${i}"`);
|
|
3999
4049
|
const p = m.getBoundingClientRect(), u = o ? p.width : p.height;
|
|
4000
4050
|
return (f - d) / u * 100;
|
|
4001
4051
|
}
|
|
4002
|
-
function
|
|
4003
|
-
if (
|
|
4052
|
+
function qd(e, t, a, r, n, o) {
|
|
4053
|
+
if (vo(e)) {
|
|
4004
4054
|
const s = a === "horizontal";
|
|
4005
4055
|
let i = 0;
|
|
4006
4056
|
e.shiftKey ? i = 100 : n != null ? i = n : i = 10;
|
|
@@ -4027,9 +4077,9 @@ function $d(e, t, a, r, n, o) {
|
|
|
4027
4077
|
}
|
|
4028
4078
|
return d;
|
|
4029
4079
|
} else
|
|
4030
|
-
return r == null ? 0 :
|
|
4080
|
+
return r == null ? 0 : Yd(e, t, a, r, o);
|
|
4031
4081
|
}
|
|
4032
|
-
function
|
|
4082
|
+
function Jd({
|
|
4033
4083
|
panelDataArray: e
|
|
4034
4084
|
}) {
|
|
4035
4085
|
const t = Array(e.length), a = e.map((o) => o.constraints);
|
|
@@ -4086,7 +4136,7 @@ function Ye(e, t) {
|
|
|
4086
4136
|
return !1;
|
|
4087
4137
|
return !0;
|
|
4088
4138
|
}
|
|
4089
|
-
function
|
|
4139
|
+
function Zd({
|
|
4090
4140
|
defaultSize: e,
|
|
4091
4141
|
dragState: t,
|
|
4092
4142
|
layout: a,
|
|
@@ -4107,7 +4157,7 @@ function Vd({
|
|
|
4107
4157
|
pointerEvents: t !== null ? "none" : void 0
|
|
4108
4158
|
};
|
|
4109
4159
|
}
|
|
4110
|
-
function
|
|
4160
|
+
function Qd(e, t = 10) {
|
|
4111
4161
|
let a = null;
|
|
4112
4162
|
return (...n) => {
|
|
4113
4163
|
a !== null && clearTimeout(a), a = setTimeout(() => {
|
|
@@ -4128,10 +4178,10 @@ function ja(e) {
|
|
|
4128
4178
|
};
|
|
4129
4179
|
}
|
|
4130
4180
|
}
|
|
4131
|
-
function
|
|
4181
|
+
function _o(e) {
|
|
4132
4182
|
return `react-resizable-panels:${e}`;
|
|
4133
4183
|
}
|
|
4134
|
-
function
|
|
4184
|
+
function Ao(e) {
|
|
4135
4185
|
return e.map((t) => {
|
|
4136
4186
|
const {
|
|
4137
4187
|
constraints: a,
|
|
@@ -4142,9 +4192,9 @@ function To(e) {
|
|
|
4142
4192
|
return n ? r : o ? `${o}:${JSON.stringify(a)}` : JSON.stringify(a);
|
|
4143
4193
|
}).sort((t, a) => t.localeCompare(a)).join(",");
|
|
4144
4194
|
}
|
|
4145
|
-
function
|
|
4195
|
+
function Mo(e, t) {
|
|
4146
4196
|
try {
|
|
4147
|
-
const a =
|
|
4197
|
+
const a = _o(e), r = t.getItem(a);
|
|
4148
4198
|
if (r) {
|
|
4149
4199
|
const n = JSON.parse(r);
|
|
4150
4200
|
if (typeof n == "object" && n != null)
|
|
@@ -4154,14 +4204,14 @@ function _o(e, t) {
|
|
|
4154
4204
|
}
|
|
4155
4205
|
return null;
|
|
4156
4206
|
}
|
|
4157
|
-
function
|
|
4207
|
+
function eu(e, t, a) {
|
|
4158
4208
|
var r, n;
|
|
4159
|
-
const o = (r =
|
|
4209
|
+
const o = (r = Mo(e, a)) !== null && r !== void 0 ? r : {}, s = Ao(t);
|
|
4160
4210
|
return (n = o[s]) !== null && n !== void 0 ? n : null;
|
|
4161
4211
|
}
|
|
4162
|
-
function
|
|
4212
|
+
function tu(e, t, a, r, n) {
|
|
4163
4213
|
var o;
|
|
4164
|
-
const s =
|
|
4214
|
+
const s = _o(e), i = Ao(t), d = (o = Mo(e, n)) !== null && o !== void 0 ? o : {};
|
|
4165
4215
|
d[i] = {
|
|
4166
4216
|
expandToSizes: Object.fromEntries(a.entries()),
|
|
4167
4217
|
layout: r
|
|
@@ -4211,13 +4261,13 @@ function Da({
|
|
|
4211
4261
|
}
|
|
4212
4262
|
return a;
|
|
4213
4263
|
}
|
|
4214
|
-
const
|
|
4264
|
+
const au = 100, He = {
|
|
4215
4265
|
getItem: (e) => (ja(He), He.getItem(e)),
|
|
4216
4266
|
setItem: (e, t) => {
|
|
4217
4267
|
ja(He), He.setItem(e, t);
|
|
4218
4268
|
}
|
|
4219
4269
|
}, za = {};
|
|
4220
|
-
function
|
|
4270
|
+
function Io({
|
|
4221
4271
|
autoSaveId: e = null,
|
|
4222
4272
|
children: t,
|
|
4223
4273
|
className: a = "",
|
|
@@ -4231,7 +4281,7 @@ function Ao({
|
|
|
4231
4281
|
tagName: m = "div",
|
|
4232
4282
|
...p
|
|
4233
4283
|
}) {
|
|
4234
|
-
const u = sa(o), g = ae(null), [b, v] = _e(null), [h, x] = _e([]), S =
|
|
4284
|
+
const u = sa(o), g = ae(null), [b, v] = _e(null), [h, x] = _e([]), S = Gd(), y = ae({}), R = ae(/* @__PURE__ */ new Map()), I = ae(0), T = ae({
|
|
4235
4285
|
autoSaveId: e,
|
|
4236
4286
|
direction: r,
|
|
4237
4287
|
dragState: b,
|
|
@@ -4248,29 +4298,29 @@ function Ao({
|
|
|
4248
4298
|
didLogIdAndOrderWarning: !1,
|
|
4249
4299
|
didLogPanelConstraintsWarning: !1,
|
|
4250
4300
|
prevPanelIds: []
|
|
4251
|
-
}),
|
|
4301
|
+
}), mo(n, () => ({
|
|
4252
4302
|
getId: () => T.current.id,
|
|
4253
4303
|
getLayout: () => {
|
|
4254
4304
|
const {
|
|
4255
|
-
layout:
|
|
4305
|
+
layout: C
|
|
4256
4306
|
} = P.current;
|
|
4257
|
-
return
|
|
4307
|
+
return C;
|
|
4258
4308
|
},
|
|
4259
|
-
setLayout: (
|
|
4309
|
+
setLayout: (C) => {
|
|
4260
4310
|
const {
|
|
4261
4311
|
onLayout: _
|
|
4262
4312
|
} = T.current, {
|
|
4263
4313
|
layout: k,
|
|
4264
4314
|
panelDataArray: z
|
|
4265
4315
|
} = P.current, A = Da({
|
|
4266
|
-
layout:
|
|
4316
|
+
layout: C,
|
|
4267
4317
|
panelConstraints: z.map((F) => F.constraints)
|
|
4268
4318
|
});
|
|
4269
4319
|
Ia(k, A) || (x(A), P.current.layout = A, _ && _(A), Ne(z, A, y.current));
|
|
4270
4320
|
}
|
|
4271
4321
|
}), []), ye(() => {
|
|
4272
4322
|
T.current.autoSaveId = e, T.current.direction = r, T.current.dragState = b, T.current.id = u, T.current.onLayout = s, T.current.storage = d;
|
|
4273
|
-
}),
|
|
4323
|
+
}), Xd({
|
|
4274
4324
|
committedValuesRef: T,
|
|
4275
4325
|
eagerValuesRef: P,
|
|
4276
4326
|
groupId: u,
|
|
@@ -4280,34 +4330,34 @@ function Ao({
|
|
|
4280
4330
|
panelGroupElement: g.current
|
|
4281
4331
|
}), we(() => {
|
|
4282
4332
|
const {
|
|
4283
|
-
panelDataArray:
|
|
4333
|
+
panelDataArray: C
|
|
4284
4334
|
} = P.current;
|
|
4285
4335
|
if (e) {
|
|
4286
|
-
if (h.length === 0 || h.length !==
|
|
4336
|
+
if (h.length === 0 || h.length !== C.length)
|
|
4287
4337
|
return;
|
|
4288
4338
|
let _ = za[e];
|
|
4289
|
-
_ == null && (_ =
|
|
4290
|
-
const k = [...
|
|
4339
|
+
_ == null && (_ = Qd(tu, au), za[e] = _);
|
|
4340
|
+
const k = [...C], z = new Map(R.current);
|
|
4291
4341
|
_(e, k, z, h, d);
|
|
4292
4342
|
}
|
|
4293
4343
|
}, [e, h, d]), we(() => {
|
|
4294
4344
|
});
|
|
4295
|
-
const B = ee((
|
|
4345
|
+
const B = ee((C) => {
|
|
4296
4346
|
const {
|
|
4297
4347
|
onLayout: _
|
|
4298
4348
|
} = T.current, {
|
|
4299
4349
|
layout: k,
|
|
4300
4350
|
panelDataArray: z
|
|
4301
4351
|
} = P.current;
|
|
4302
|
-
if (
|
|
4352
|
+
if (C.constraints.collapsible) {
|
|
4303
4353
|
const A = z.map((ue) => ue.constraints), {
|
|
4304
4354
|
collapsedSize: F = 0,
|
|
4305
4355
|
panelSize: G,
|
|
4306
4356
|
pivotIndices: X
|
|
4307
|
-
} = he(z,
|
|
4308
|
-
if (D(G != null, `Panel size not found for panel "${
|
|
4309
|
-
|
|
4310
|
-
const fe = Ee(z,
|
|
4357
|
+
} = he(z, C, k);
|
|
4358
|
+
if (D(G != null, `Panel size not found for panel "${C.id}"`), !me(G, F)) {
|
|
4359
|
+
R.current.set(C.id, G);
|
|
4360
|
+
const fe = Ee(z, C) === z.length - 1 ? G - F : F - G, K = Ve({
|
|
4311
4361
|
delta: fe,
|
|
4312
4362
|
initialLayout: k,
|
|
4313
4363
|
panelConstraints: A,
|
|
@@ -4318,22 +4368,22 @@ function Ao({
|
|
|
4318
4368
|
Ye(k, K) || (x(K), P.current.layout = K, _ && _(K), Ne(z, K, y.current));
|
|
4319
4369
|
}
|
|
4320
4370
|
}
|
|
4321
|
-
}, []), j = ee((
|
|
4371
|
+
}, []), j = ee((C, _) => {
|
|
4322
4372
|
const {
|
|
4323
4373
|
onLayout: k
|
|
4324
4374
|
} = T.current, {
|
|
4325
4375
|
layout: z,
|
|
4326
4376
|
panelDataArray: A
|
|
4327
4377
|
} = P.current;
|
|
4328
|
-
if (
|
|
4378
|
+
if (C.constraints.collapsible) {
|
|
4329
4379
|
const F = A.map((le) => le.constraints), {
|
|
4330
4380
|
collapsedSize: G = 0,
|
|
4331
4381
|
panelSize: X = 0,
|
|
4332
4382
|
minSize: ue = 0,
|
|
4333
4383
|
pivotIndices: fe
|
|
4334
|
-
} = he(A,
|
|
4384
|
+
} = he(A, C, z), K = _ ?? ue;
|
|
4335
4385
|
if (me(X, G)) {
|
|
4336
|
-
const le =
|
|
4386
|
+
const le = R.current.get(C.id), Oe = le != null && le >= K ? le : K, xt = Ee(A, C) === A.length - 1 ? X - Oe : Oe - X, Q = Ve({
|
|
4337
4387
|
delta: xt,
|
|
4338
4388
|
initialLayout: z,
|
|
4339
4389
|
panelConstraints: F,
|
|
@@ -4344,26 +4394,26 @@ function Ao({
|
|
|
4344
4394
|
Ye(z, Q) || (x(Q), P.current.layout = Q, k && k(Q), Ne(A, Q, y.current));
|
|
4345
4395
|
}
|
|
4346
4396
|
}
|
|
4347
|
-
}, []), H = ee((
|
|
4397
|
+
}, []), H = ee((C) => {
|
|
4348
4398
|
const {
|
|
4349
4399
|
layout: _,
|
|
4350
4400
|
panelDataArray: k
|
|
4351
4401
|
} = P.current, {
|
|
4352
4402
|
panelSize: z
|
|
4353
|
-
} = he(k,
|
|
4354
|
-
return D(z != null, `Panel size not found for panel "${
|
|
4355
|
-
}, []), M = ee((
|
|
4403
|
+
} = he(k, C, _);
|
|
4404
|
+
return D(z != null, `Panel size not found for panel "${C.id}"`), z;
|
|
4405
|
+
}, []), M = ee((C, _) => {
|
|
4356
4406
|
const {
|
|
4357
4407
|
panelDataArray: k
|
|
4358
|
-
} = P.current, z = Ee(k,
|
|
4359
|
-
return
|
|
4408
|
+
} = P.current, z = Ee(k, C);
|
|
4409
|
+
return Zd({
|
|
4360
4410
|
defaultSize: _,
|
|
4361
4411
|
dragState: b,
|
|
4362
4412
|
layout: h,
|
|
4363
4413
|
panelData: k,
|
|
4364
4414
|
panelIndex: z
|
|
4365
4415
|
});
|
|
4366
|
-
}, [b, h]), L = ee((
|
|
4416
|
+
}, [b, h]), L = ee((C) => {
|
|
4367
4417
|
const {
|
|
4368
4418
|
layout: _,
|
|
4369
4419
|
panelDataArray: k
|
|
@@ -4371,9 +4421,9 @@ function Ao({
|
|
|
4371
4421
|
collapsedSize: z = 0,
|
|
4372
4422
|
collapsible: A,
|
|
4373
4423
|
panelSize: F
|
|
4374
|
-
} = he(k,
|
|
4375
|
-
return D(F != null, `Panel size not found for panel "${
|
|
4376
|
-
}, []), W = ee((
|
|
4424
|
+
} = he(k, C, _);
|
|
4425
|
+
return D(F != null, `Panel size not found for panel "${C.id}"`), A === !0 && me(F, z);
|
|
4426
|
+
}, []), W = ee((C) => {
|
|
4377
4427
|
const {
|
|
4378
4428
|
layout: _,
|
|
4379
4429
|
panelDataArray: k
|
|
@@ -4381,13 +4431,13 @@ function Ao({
|
|
|
4381
4431
|
collapsedSize: z = 0,
|
|
4382
4432
|
collapsible: A,
|
|
4383
4433
|
panelSize: F
|
|
4384
|
-
} = he(k,
|
|
4385
|
-
return D(F != null, `Panel size not found for panel "${
|
|
4386
|
-
}, []), N = ee((
|
|
4434
|
+
} = he(k, C, _);
|
|
4435
|
+
return D(F != null, `Panel size not found for panel "${C.id}"`), !A || Se(F, z) > 0;
|
|
4436
|
+
}, []), N = ee((C) => {
|
|
4387
4437
|
const {
|
|
4388
4438
|
panelDataArray: _
|
|
4389
4439
|
} = P.current;
|
|
4390
|
-
_.push(
|
|
4440
|
+
_.push(C), _.sort((k, z) => {
|
|
4391
4441
|
const A = k.order, F = z.order;
|
|
4392
4442
|
return A == null && F == null ? 0 : A == null ? -1 : F == null ? 1 : A - F;
|
|
4393
4443
|
}), P.current.panelDataArrayChanged = !0, S();
|
|
@@ -4396,7 +4446,7 @@ function Ao({
|
|
|
4396
4446
|
if (P.current.panelDataArrayChanged) {
|
|
4397
4447
|
P.current.panelDataArrayChanged = !1;
|
|
4398
4448
|
const {
|
|
4399
|
-
autoSaveId:
|
|
4449
|
+
autoSaveId: C,
|
|
4400
4450
|
onLayout: _,
|
|
4401
4451
|
storage: k
|
|
4402
4452
|
} = T.current, {
|
|
@@ -4404,11 +4454,11 @@ function Ao({
|
|
|
4404
4454
|
panelDataArray: A
|
|
4405
4455
|
} = P.current;
|
|
4406
4456
|
let F = null;
|
|
4407
|
-
if (
|
|
4408
|
-
const X =
|
|
4409
|
-
X && (
|
|
4457
|
+
if (C) {
|
|
4458
|
+
const X = eu(C, A, k);
|
|
4459
|
+
X && (R.current = new Map(Object.entries(X.expandToSizes)), F = X.layout);
|
|
4410
4460
|
}
|
|
4411
|
-
F == null && (F =
|
|
4461
|
+
F == null && (F = Jd({
|
|
4412
4462
|
panelDataArray: A
|
|
4413
4463
|
}));
|
|
4414
4464
|
const G = Da({
|
|
@@ -4418,12 +4468,12 @@ function Ao({
|
|
|
4418
4468
|
Ia(z, G) || (x(G), P.current.layout = G, _ && _(G), Ne(A, G, y.current));
|
|
4419
4469
|
}
|
|
4420
4470
|
}), ye(() => {
|
|
4421
|
-
const
|
|
4471
|
+
const C = P.current;
|
|
4422
4472
|
return () => {
|
|
4423
|
-
|
|
4473
|
+
C.layout = [];
|
|
4424
4474
|
};
|
|
4425
4475
|
}, []);
|
|
4426
|
-
const $ = ee((
|
|
4476
|
+
const $ = ee((C) => {
|
|
4427
4477
|
let _ = !1;
|
|
4428
4478
|
const k = g.current;
|
|
4429
4479
|
return k && window.getComputedStyle(k, null).getPropertyValue("direction") === "rtl" && (_ = !0), function(A) {
|
|
@@ -4442,21 +4492,21 @@ function Ao({
|
|
|
4442
4492
|
panelDataArray: Oe
|
|
4443
4493
|
} = P.current, {
|
|
4444
4494
|
initialLayout: We
|
|
4445
|
-
} = X ?? {}, xt =
|
|
4446
|
-
let Q =
|
|
4495
|
+
} = X ?? {}, xt = No(ue, C, F);
|
|
4496
|
+
let Q = qd(A, C, G, X, fe, F);
|
|
4447
4497
|
const ga = G === "horizontal";
|
|
4448
4498
|
ga && _ && (Q = -Q);
|
|
4449
|
-
const
|
|
4499
|
+
const es = Oe.map((ts) => ts.constraints), $e = Ve({
|
|
4450
4500
|
delta: Q,
|
|
4451
4501
|
initialLayout: We ?? le,
|
|
4452
|
-
panelConstraints:
|
|
4502
|
+
panelConstraints: es,
|
|
4453
4503
|
pivotIndices: xt,
|
|
4454
4504
|
prevLayout: le,
|
|
4455
|
-
trigger:
|
|
4505
|
+
trigger: vo(A) ? "keyboard" : "mouse-or-touch"
|
|
4456
4506
|
}), va = !Ye(le, $e);
|
|
4457
|
-
(
|
|
4507
|
+
(ho(A) || xo(A)) && I.current != Q && (I.current = Q, !va && Q !== 0 ? ga ? Ct(C, Q < 0 ? yo : So) : Ct(C, Q < 0 ? Co : Ro) : Ct(C, 0)), va && (x($e), P.current.layout = $e, K && K($e), Ne(Oe, $e, y.current));
|
|
4458
4508
|
};
|
|
4459
|
-
}, []), V = ee((
|
|
4509
|
+
}, []), V = ee((C, _) => {
|
|
4460
4510
|
const {
|
|
4461
4511
|
onLayout: k
|
|
4462
4512
|
} = T.current, {
|
|
@@ -4465,9 +4515,9 @@ function Ao({
|
|
|
4465
4515
|
} = P.current, F = A.map((le) => le.constraints), {
|
|
4466
4516
|
panelSize: G,
|
|
4467
4517
|
pivotIndices: X
|
|
4468
|
-
} = he(A,
|
|
4469
|
-
D(G != null, `Panel size not found for panel "${
|
|
4470
|
-
const fe = Ee(A,
|
|
4518
|
+
} = he(A, C, z);
|
|
4519
|
+
D(G != null, `Panel size not found for panel "${C.id}"`);
|
|
4520
|
+
const fe = Ee(A, C) === A.length - 1 ? G - _ : _ - G, K = Ve({
|
|
4471
4521
|
delta: fe,
|
|
4472
4522
|
initialLayout: z,
|
|
4473
4523
|
panelConstraints: F,
|
|
@@ -4476,7 +4526,7 @@ function Ao({
|
|
|
4476
4526
|
trigger: "imperative-api"
|
|
4477
4527
|
});
|
|
4478
4528
|
Ye(z, K) || (x(K), P.current.layout = K, k && k(K), Ne(A, K, y.current));
|
|
4479
|
-
}, []), J = ee((
|
|
4529
|
+
}, []), J = ee((C, _) => {
|
|
4480
4530
|
const {
|
|
4481
4531
|
layout: k,
|
|
4482
4532
|
panelDataArray: z
|
|
@@ -4488,11 +4538,11 @@ function Ao({
|
|
|
4488
4538
|
collapsible: X,
|
|
4489
4539
|
maxSize: ue = 100,
|
|
4490
4540
|
minSize: fe = 0
|
|
4491
|
-
} =
|
|
4541
|
+
} = C.constraints, {
|
|
4492
4542
|
panelSize: K
|
|
4493
|
-
} = he(z,
|
|
4494
|
-
K != null && (F && X && me(K, A) ? me(A, G) || V(
|
|
4495
|
-
}, [V]), U = ee((
|
|
4543
|
+
} = he(z, C, k);
|
|
4544
|
+
K != null && (F && X && me(K, A) ? me(A, G) || V(C, G) : K < fe ? V(C, fe) : K > ue && V(C, ue));
|
|
4545
|
+
}, [V]), U = ee((C, _) => {
|
|
4496
4546
|
const {
|
|
4497
4547
|
direction: k
|
|
4498
4548
|
} = T.current, {
|
|
@@ -4500,23 +4550,23 @@ function Ao({
|
|
|
4500
4550
|
} = P.current;
|
|
4501
4551
|
if (!g.current)
|
|
4502
4552
|
return;
|
|
4503
|
-
const A = bt(
|
|
4504
|
-
D(A, `Drag handle element not found for id "${
|
|
4505
|
-
const F =
|
|
4553
|
+
const A = bt(C, g.current);
|
|
4554
|
+
D(A, `Drag handle element not found for id "${C}"`);
|
|
4555
|
+
const F = To(k, _);
|
|
4506
4556
|
v({
|
|
4507
|
-
dragHandleId:
|
|
4557
|
+
dragHandleId: C,
|
|
4508
4558
|
dragHandleRect: A.getBoundingClientRect(),
|
|
4509
4559
|
initialCursorPosition: F,
|
|
4510
4560
|
initialLayout: z
|
|
4511
4561
|
});
|
|
4512
4562
|
}, []), se = ee(() => {
|
|
4513
4563
|
v(null);
|
|
4514
|
-
}, []),
|
|
4564
|
+
}, []), Re = ee((C) => {
|
|
4515
4565
|
const {
|
|
4516
4566
|
panelDataArray: _
|
|
4517
|
-
} = P.current, k = Ee(_,
|
|
4518
|
-
k >= 0 && (_.splice(k, 1), delete y.current[
|
|
4519
|
-
}, [S]), ke =
|
|
4567
|
+
} = P.current, k = Ee(_, C);
|
|
4568
|
+
k >= 0 && (_.splice(k, 1), delete y.current[C.id], P.current.panelDataArrayChanged = !0, S());
|
|
4569
|
+
}, [S]), ke = Ad(() => ({
|
|
4520
4570
|
collapsePanel: B,
|
|
4521
4571
|
direction: r,
|
|
4522
4572
|
dragState: b,
|
|
@@ -4532,9 +4582,9 @@ function Ao({
|
|
|
4532
4582
|
resizePanel: V,
|
|
4533
4583
|
startDragging: U,
|
|
4534
4584
|
stopDragging: se,
|
|
4535
|
-
unregisterPanel:
|
|
4585
|
+
unregisterPanel: Re,
|
|
4536
4586
|
panelGroupElement: g.current
|
|
4537
|
-
}), [B, b, r, j, H, M, u, L, W, J, N, $, V, U, se,
|
|
4587
|
+
}), [B, b, r, j, H, M, u, L, W, J, N, $, V, U, se, Re]), de = {
|
|
4538
4588
|
display: "flex",
|
|
4539
4589
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
4540
4590
|
height: "100%",
|
|
@@ -4559,12 +4609,12 @@ function Ao({
|
|
|
4559
4609
|
"data-panel-group-id": u
|
|
4560
4610
|
}));
|
|
4561
4611
|
}
|
|
4562
|
-
const
|
|
4612
|
+
const jo = fo((e, t) => Me(Io, {
|
|
4563
4613
|
...e,
|
|
4564
4614
|
forwardedRef: t
|
|
4565
4615
|
}));
|
|
4566
|
-
|
|
4567
|
-
|
|
4616
|
+
Io.displayName = "PanelGroup";
|
|
4617
|
+
jo.displayName = "forwardRef(PanelGroup)";
|
|
4568
4618
|
function Ee(e, t) {
|
|
4569
4619
|
return e.findIndex((a) => a === t || a.id === t.id);
|
|
4570
4620
|
}
|
|
@@ -4576,7 +4626,7 @@ function he(e, t, a) {
|
|
|
4576
4626
|
pivotIndices: o
|
|
4577
4627
|
};
|
|
4578
4628
|
}
|
|
4579
|
-
function
|
|
4629
|
+
function ru({
|
|
4580
4630
|
disabled: e,
|
|
4581
4631
|
handleId: t,
|
|
4582
4632
|
resizeHandler: a,
|
|
@@ -4604,7 +4654,7 @@ function Ud({
|
|
|
4604
4654
|
s.preventDefault();
|
|
4605
4655
|
const i = n.getAttribute("data-panel-group-id");
|
|
4606
4656
|
D(i, `No group element found for id "${i}"`);
|
|
4607
|
-
const d = Ge(i, r), f =
|
|
4657
|
+
const d = Ge(i, r), f = Po(i, t, r);
|
|
4608
4658
|
D(f !== null, `No resize element found for id "${t}"`);
|
|
4609
4659
|
const m = s.shiftKey ? f > 0 ? f - 1 : d.length - 1 : f + 1 < d.length ? f + 1 : 0;
|
|
4610
4660
|
d[m].focus();
|
|
@@ -4617,7 +4667,7 @@ function Ud({
|
|
|
4617
4667
|
};
|
|
4618
4668
|
}, [r, e, t, a]);
|
|
4619
4669
|
}
|
|
4620
|
-
function
|
|
4670
|
+
function Do({
|
|
4621
4671
|
children: e = null,
|
|
4622
4672
|
className: t = "",
|
|
4623
4673
|
disabled: a = !1,
|
|
@@ -4638,14 +4688,14 @@ function Io({
|
|
|
4638
4688
|
we(() => {
|
|
4639
4689
|
v.current.onDragging = s;
|
|
4640
4690
|
});
|
|
4641
|
-
const h =
|
|
4691
|
+
const h = po(ft);
|
|
4642
4692
|
if (h === null)
|
|
4643
4693
|
throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
4644
4694
|
const {
|
|
4645
4695
|
direction: x,
|
|
4646
4696
|
groupId: S,
|
|
4647
4697
|
registerResizeHandle: y,
|
|
4648
|
-
startDragging:
|
|
4698
|
+
startDragging: R,
|
|
4649
4699
|
stopDragging: I,
|
|
4650
4700
|
panelGroupElement: T
|
|
4651
4701
|
} = h, P = sa(n), [B, j] = _e("inactive"), [H, M] = _e(!1), [L, W] = _e(null), N = ae({
|
|
@@ -4666,40 +4716,40 @@ function Io({
|
|
|
4666
4716
|
if (a || L == null)
|
|
4667
4717
|
return;
|
|
4668
4718
|
const U = b.current;
|
|
4669
|
-
return D(U, "Element ref not attached"),
|
|
4719
|
+
return D(U, "Element ref not attached"), Bd(P, U, x, {
|
|
4670
4720
|
coarse: $,
|
|
4671
4721
|
fine: V
|
|
4672
|
-
}, (
|
|
4722
|
+
}, (Re, ke, de) => {
|
|
4673
4723
|
if (ke)
|
|
4674
|
-
switch (
|
|
4724
|
+
switch (Re) {
|
|
4675
4725
|
case "down": {
|
|
4676
|
-
j("drag"), D(de, 'Expected event to be defined for "down" action'),
|
|
4726
|
+
j("drag"), D(de, 'Expected event to be defined for "down" action'), R(P, de);
|
|
4677
4727
|
const {
|
|
4678
|
-
onDragging:
|
|
4728
|
+
onDragging: C
|
|
4679
4729
|
} = v.current;
|
|
4680
|
-
|
|
4730
|
+
C && C(!0);
|
|
4681
4731
|
break;
|
|
4682
4732
|
}
|
|
4683
4733
|
case "move": {
|
|
4684
4734
|
const {
|
|
4685
|
-
state:
|
|
4735
|
+
state: C
|
|
4686
4736
|
} = N.current;
|
|
4687
|
-
|
|
4737
|
+
C !== "drag" && j("hover"), D(de, 'Expected event to be defined for "move" action'), L(de);
|
|
4688
4738
|
break;
|
|
4689
4739
|
}
|
|
4690
4740
|
case "up": {
|
|
4691
4741
|
j("hover"), I();
|
|
4692
4742
|
const {
|
|
4693
|
-
onDragging:
|
|
4743
|
+
onDragging: C
|
|
4694
4744
|
} = v.current;
|
|
4695
|
-
|
|
4745
|
+
C && C(!1);
|
|
4696
4746
|
break;
|
|
4697
4747
|
}
|
|
4698
4748
|
}
|
|
4699
4749
|
else
|
|
4700
4750
|
j("inactive");
|
|
4701
4751
|
});
|
|
4702
|
-
}, [$, x, a, V, y, P, L,
|
|
4752
|
+
}, [$, x, a, V, y, P, L, R, I]), ru({
|
|
4703
4753
|
disabled: a,
|
|
4704
4754
|
handleId: P,
|
|
4705
4755
|
resizeHandler: L,
|
|
@@ -4735,12 +4785,12 @@ function Io({
|
|
|
4735
4785
|
"data-panel-resize-handle-id": P
|
|
4736
4786
|
});
|
|
4737
4787
|
}
|
|
4738
|
-
|
|
4739
|
-
const
|
|
4788
|
+
Do.displayName = "PanelResizeHandle";
|
|
4789
|
+
const Ju = ({
|
|
4740
4790
|
className: e,
|
|
4741
4791
|
...t
|
|
4742
4792
|
}) => /* @__PURE__ */ l.jsx(
|
|
4743
|
-
|
|
4793
|
+
jo,
|
|
4744
4794
|
{
|
|
4745
4795
|
className: w(
|
|
4746
4796
|
"al-flex al-h-full al-w-full data-[panel-group-direction=vertical]:al-flex-col",
|
|
@@ -4750,13 +4800,13 @@ const $u = ({
|
|
|
4750
4800
|
"aria-label": "resizable-panel-group",
|
|
4751
4801
|
...t
|
|
4752
4802
|
}
|
|
4753
|
-
),
|
|
4803
|
+
), Zu = ({
|
|
4754
4804
|
className: e,
|
|
4755
4805
|
minSize: t,
|
|
4756
4806
|
maxSize: a,
|
|
4757
4807
|
...r
|
|
4758
4808
|
}) => /* @__PURE__ */ l.jsx(
|
|
4759
|
-
|
|
4809
|
+
go,
|
|
4760
4810
|
{
|
|
4761
4811
|
className: w("al-group al-relative", e),
|
|
4762
4812
|
role: "region",
|
|
@@ -4765,14 +4815,14 @@ const $u = ({
|
|
|
4765
4815
|
"data-panel-min-size": t,
|
|
4766
4816
|
"data-panel-max-size": a
|
|
4767
4817
|
}
|
|
4768
|
-
),
|
|
4818
|
+
), Qu = ({
|
|
4769
4819
|
withHandle: e,
|
|
4770
4820
|
className: t,
|
|
4771
4821
|
...a
|
|
4772
4822
|
}) => {
|
|
4773
4823
|
const r = a["data-panel-group-direction"] === "vertical";
|
|
4774
4824
|
return /* @__PURE__ */ l.jsx(
|
|
4775
|
-
|
|
4825
|
+
Do,
|
|
4776
4826
|
{
|
|
4777
4827
|
className: w(
|
|
4778
4828
|
"al-relative al-flex al-w-px al-items-center al-justify-center al-bg-border after:al-absolute after:al-inset-y-0 after:al-left-1/2 after:al-w-1 after:al--translate-x-1/2 focus-visible:al-outline-none focus-visible:al-ring-1 focus-visible:al-ring-ring focus-visible:al-ring-offset-1 data-[panel-group-direction=vertical]:al-h-px data-[panel-group-direction=vertical]:al-w-full data-[panel-group-direction=vertical]:after:al-left-0 data-[panel-group-direction=vertical]:after:al-h-1 data-[panel-group-direction=vertical]:after:al-w-full data-[panel-group-direction=vertical]:after:al-translate-y-1/2 data-[panel-group-direction=vertical]:after:al-translate-x-0 [&[data-panel-group-direction=vertical]>div]:al-rotate-90",
|
|
@@ -4788,16 +4838,16 @@ const $u = ({
|
|
|
4788
4838
|
className: "al-z-10 al-flex al-h-4 al-w-3 al-items-center al-justify-center al-rounded-sm al-border al-bg-border",
|
|
4789
4839
|
"aria-hidden": "true",
|
|
4790
4840
|
"aria-label": "resize grip",
|
|
4791
|
-
children: /* @__PURE__ */ l.jsx(
|
|
4841
|
+
children: /* @__PURE__ */ l.jsx(Ys, { className: "al-h-2.5 al-w-2.5" })
|
|
4792
4842
|
}
|
|
4793
4843
|
)
|
|
4794
4844
|
}
|
|
4795
4845
|
);
|
|
4796
4846
|
};
|
|
4797
|
-
function
|
|
4847
|
+
function nu(e, t) {
|
|
4798
4848
|
return c.useReducer((a, r) => t[a][r] ?? a, e);
|
|
4799
4849
|
}
|
|
4800
|
-
var da = "ScrollArea", [
|
|
4850
|
+
var da = "ScrollArea", [zo, ef] = ce(da), [ou, oe] = zo(da), Lo = c.forwardRef(
|
|
4801
4851
|
(e, t) => {
|
|
4802
4852
|
const {
|
|
4803
4853
|
__scopeScrollArea: a,
|
|
@@ -4805,9 +4855,9 @@ var da = "ScrollArea", [jo, Hu] = ce(da), [Xd, oe] = jo(da), Do = c.forwardRef(
|
|
|
4805
4855
|
dir: n,
|
|
4806
4856
|
scrollHideDelay: o = 600,
|
|
4807
4857
|
...s
|
|
4808
|
-
} = e, [i, d] = c.useState(null), [f, m] = c.useState(null), [p, u] = c.useState(null), [g, b] = c.useState(null), [v, h] = c.useState(null), [x, S] = c.useState(0), [y,
|
|
4858
|
+
} = e, [i, d] = c.useState(null), [f, m] = c.useState(null), [p, u] = c.useState(null), [g, b] = c.useState(null), [v, h] = c.useState(null), [x, S] = c.useState(0), [y, R] = c.useState(0), [I, T] = c.useState(!1), [P, B] = c.useState(!1), j = q(t, (M) => d(M)), H = Ke(n);
|
|
4809
4859
|
return /* @__PURE__ */ l.jsx(
|
|
4810
|
-
|
|
4860
|
+
ou,
|
|
4811
4861
|
{
|
|
4812
4862
|
scope: a,
|
|
4813
4863
|
type: r,
|
|
@@ -4827,7 +4877,7 @@ var da = "ScrollArea", [jo, Hu] = ce(da), [Xd, oe] = jo(da), Do = c.forwardRef(
|
|
|
4827
4877
|
scrollbarYEnabled: P,
|
|
4828
4878
|
onScrollbarYEnabledChange: B,
|
|
4829
4879
|
onCornerWidthChange: S,
|
|
4830
|
-
onCornerHeightChange:
|
|
4880
|
+
onCornerHeightChange: R,
|
|
4831
4881
|
children: /* @__PURE__ */ l.jsx(
|
|
4832
4882
|
O.div,
|
|
4833
4883
|
{
|
|
@@ -4847,10 +4897,10 @@ var da = "ScrollArea", [jo, Hu] = ce(da), [Xd, oe] = jo(da), Do = c.forwardRef(
|
|
|
4847
4897
|
);
|
|
4848
4898
|
}
|
|
4849
4899
|
);
|
|
4850
|
-
|
|
4851
|
-
var
|
|
4900
|
+
Lo.displayName = da;
|
|
4901
|
+
var ko = "ScrollAreaViewport", Oo = c.forwardRef(
|
|
4852
4902
|
(e, t) => {
|
|
4853
|
-
const { __scopeScrollArea: a, children: r, nonce: n, ...o } = e, s = oe(
|
|
4903
|
+
const { __scopeScrollArea: a, children: r, nonce: n, ...o } = e, s = oe(ko, a), i = c.useRef(null), d = q(t, i, s.onViewportChange);
|
|
4854
4904
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
4855
4905
|
/* @__PURE__ */ l.jsx(
|
|
4856
4906
|
"style",
|
|
@@ -4889,17 +4939,17 @@ var zo = "ScrollAreaViewport", Lo = c.forwardRef(
|
|
|
4889
4939
|
] });
|
|
4890
4940
|
}
|
|
4891
4941
|
);
|
|
4892
|
-
|
|
4942
|
+
Oo.displayName = ko;
|
|
4893
4943
|
var pe = "ScrollAreaScrollbar", ua = c.forwardRef(
|
|
4894
4944
|
(e, t) => {
|
|
4895
4945
|
const { forceMount: a, ...r } = e, n = oe(pe, e.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: s } = n, i = e.orientation === "horizontal";
|
|
4896
4946
|
return c.useEffect(() => (i ? o(!0) : s(!0), () => {
|
|
4897
4947
|
i ? o(!1) : s(!1);
|
|
4898
|
-
}), [i, o, s]), n.type === "hover" ? /* @__PURE__ */ l.jsx(
|
|
4948
|
+
}), [i, o, s]), n.type === "hover" ? /* @__PURE__ */ l.jsx(su, { ...r, ref: t, forceMount: a }) : n.type === "scroll" ? /* @__PURE__ */ l.jsx(lu, { ...r, ref: t, forceMount: a }) : n.type === "auto" ? /* @__PURE__ */ l.jsx($o, { ...r, ref: t, forceMount: a }) : n.type === "always" ? /* @__PURE__ */ l.jsx(fa, { ...r, ref: t }) : null;
|
|
4899
4949
|
}
|
|
4900
4950
|
);
|
|
4901
4951
|
ua.displayName = pe;
|
|
4902
|
-
var
|
|
4952
|
+
var su = c.forwardRef((e, t) => {
|
|
4903
4953
|
const { forceMount: a, ...r } = e, n = oe(pe, e.__scopeScrollArea), [o, s] = c.useState(!1);
|
|
4904
4954
|
return c.useEffect(() => {
|
|
4905
4955
|
const i = n.scrollArea;
|
|
@@ -4915,15 +4965,15 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
4915
4965
|
};
|
|
4916
4966
|
}
|
|
4917
4967
|
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ l.jsx(ge, { present: a || o, children: /* @__PURE__ */ l.jsx(
|
|
4918
|
-
|
|
4968
|
+
$o,
|
|
4919
4969
|
{
|
|
4920
4970
|
"data-state": o ? "visible" : "hidden",
|
|
4921
4971
|
...r,
|
|
4922
4972
|
ref: t
|
|
4923
4973
|
}
|
|
4924
4974
|
) });
|
|
4925
|
-
}),
|
|
4926
|
-
const { forceMount: a, ...r } = e, n = oe(pe, e.__scopeScrollArea), o = e.orientation === "horizontal", s = vt(() => d("SCROLL_END"), 100), [i, d] =
|
|
4975
|
+
}), lu = c.forwardRef((e, t) => {
|
|
4976
|
+
const { forceMount: a, ...r } = e, n = oe(pe, e.__scopeScrollArea), o = e.orientation === "horizontal", s = vt(() => d("SCROLL_END"), 100), [i, d] = nu("hidden", {
|
|
4927
4977
|
hidden: {
|
|
4928
4978
|
SCROLL: "scrolling"
|
|
4929
4979
|
},
|
|
@@ -4966,7 +5016,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
4966
5016
|
onPointerLeave: E(e.onPointerLeave, () => d("POINTER_LEAVE"))
|
|
4967
5017
|
}
|
|
4968
5018
|
) });
|
|
4969
|
-
}),
|
|
5019
|
+
}), $o = c.forwardRef((e, t) => {
|
|
4970
5020
|
const a = oe(pe, e.__scopeScrollArea), { forceMount: r, ...n } = e, [o, s] = c.useState(!1), i = e.orientation === "horizontal", d = vt(() => {
|
|
4971
5021
|
if (a.viewport) {
|
|
4972
5022
|
const f = a.viewport.offsetWidth < a.viewport.scrollWidth, m = a.viewport.offsetHeight < a.viewport.scrollHeight;
|
|
@@ -4986,7 +5036,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
4986
5036
|
content: 0,
|
|
4987
5037
|
viewport: 0,
|
|
4988
5038
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4989
|
-
}), f =
|
|
5039
|
+
}), f = Go(i.viewport, i.content), m = {
|
|
4990
5040
|
...r,
|
|
4991
5041
|
sizes: i,
|
|
4992
5042
|
onSizesChange: d,
|
|
@@ -4996,10 +5046,10 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
4996
5046
|
onThumbPointerDown: (u) => s.current = u
|
|
4997
5047
|
};
|
|
4998
5048
|
function p(u, g) {
|
|
4999
|
-
return
|
|
5049
|
+
return pu(u, s.current, i, g);
|
|
5000
5050
|
}
|
|
5001
5051
|
return a === "horizontal" ? /* @__PURE__ */ l.jsx(
|
|
5002
|
-
|
|
5052
|
+
iu,
|
|
5003
5053
|
{
|
|
5004
5054
|
...m,
|
|
5005
5055
|
ref: t,
|
|
@@ -5017,7 +5067,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5017
5067
|
}
|
|
5018
5068
|
}
|
|
5019
5069
|
) : a === "vertical" ? /* @__PURE__ */ l.jsx(
|
|
5020
|
-
|
|
5070
|
+
cu,
|
|
5021
5071
|
{
|
|
5022
5072
|
...m,
|
|
5023
5073
|
ref: t,
|
|
@@ -5035,12 +5085,12 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5035
5085
|
}
|
|
5036
5086
|
}
|
|
5037
5087
|
) : null;
|
|
5038
|
-
}),
|
|
5088
|
+
}), iu = c.forwardRef((e, t) => {
|
|
5039
5089
|
const { sizes: a, onSizesChange: r, ...n } = e, o = oe(pe, e.__scopeScrollArea), [s, i] = c.useState(), d = c.useRef(null), f = q(t, d, o.onScrollbarXChange);
|
|
5040
5090
|
return c.useEffect(() => {
|
|
5041
5091
|
d.current && i(getComputedStyle(d.current));
|
|
5042
5092
|
}, [d]), /* @__PURE__ */ l.jsx(
|
|
5043
|
-
|
|
5093
|
+
Vo,
|
|
5044
5094
|
{
|
|
5045
5095
|
"data-orientation": "horizontal",
|
|
5046
5096
|
...n,
|
|
@@ -5058,7 +5108,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5058
5108
|
onWheelScroll: (m, p) => {
|
|
5059
5109
|
if (o.viewport) {
|
|
5060
5110
|
const u = o.viewport.scrollLeft + m.deltaX;
|
|
5061
|
-
e.onWheelScroll(u),
|
|
5111
|
+
e.onWheelScroll(u), Uo(u, p) && m.preventDefault();
|
|
5062
5112
|
}
|
|
5063
5113
|
},
|
|
5064
5114
|
onResize: () => {
|
|
@@ -5074,12 +5124,12 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5074
5124
|
}
|
|
5075
5125
|
}
|
|
5076
5126
|
);
|
|
5077
|
-
}),
|
|
5127
|
+
}), cu = c.forwardRef((e, t) => {
|
|
5078
5128
|
const { sizes: a, onSizesChange: r, ...n } = e, o = oe(pe, e.__scopeScrollArea), [s, i] = c.useState(), d = c.useRef(null), f = q(t, d, o.onScrollbarYChange);
|
|
5079
5129
|
return c.useEffect(() => {
|
|
5080
5130
|
d.current && i(getComputedStyle(d.current));
|
|
5081
5131
|
}, [d]), /* @__PURE__ */ l.jsx(
|
|
5082
|
-
|
|
5132
|
+
Vo,
|
|
5083
5133
|
{
|
|
5084
5134
|
"data-orientation": "vertical",
|
|
5085
5135
|
...n,
|
|
@@ -5098,7 +5148,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5098
5148
|
onWheelScroll: (m, p) => {
|
|
5099
5149
|
if (o.viewport) {
|
|
5100
5150
|
const u = o.viewport.scrollTop + m.deltaY;
|
|
5101
|
-
e.onWheelScroll(u),
|
|
5151
|
+
e.onWheelScroll(u), Uo(u, p) && m.preventDefault();
|
|
5102
5152
|
}
|
|
5103
5153
|
},
|
|
5104
5154
|
onResize: () => {
|
|
@@ -5114,7 +5164,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5114
5164
|
}
|
|
5115
5165
|
}
|
|
5116
5166
|
);
|
|
5117
|
-
}), [
|
|
5167
|
+
}), [du, Fo] = zo(pe), Vo = c.forwardRef((e, t) => {
|
|
5118
5168
|
const {
|
|
5119
5169
|
__scopeScrollArea: a,
|
|
5120
5170
|
sizes: r,
|
|
@@ -5127,7 +5177,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5127
5177
|
onWheelScroll: m,
|
|
5128
5178
|
onResize: p,
|
|
5129
5179
|
...u
|
|
5130
|
-
} = e, g = oe(pe, a), [b, v] = c.useState(null), h = q(t, (j) => v(j)), x = c.useRef(null), S = c.useRef(""), y = g.viewport,
|
|
5180
|
+
} = e, g = oe(pe, a), [b, v] = c.useState(null), h = q(t, (j) => v(j)), x = c.useRef(null), S = c.useRef(""), y = g.viewport, R = r.content - r.viewport, I = ne(m), T = ne(d), P = vt(p, 10);
|
|
5131
5181
|
function B(j) {
|
|
5132
5182
|
if (x.current) {
|
|
5133
5183
|
const H = j.clientX - x.current.left, M = j.clientY - x.current.top;
|
|
@@ -5137,11 +5187,11 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5137
5187
|
return c.useEffect(() => {
|
|
5138
5188
|
const j = (H) => {
|
|
5139
5189
|
const M = H.target;
|
|
5140
|
-
(b == null ? void 0 : b.contains(M)) && I(H,
|
|
5190
|
+
(b == null ? void 0 : b.contains(M)) && I(H, R);
|
|
5141
5191
|
};
|
|
5142
5192
|
return document.addEventListener("wheel", j, { passive: !1 }), () => document.removeEventListener("wheel", j, { passive: !1 });
|
|
5143
|
-
}, [y, b,
|
|
5144
|
-
|
|
5193
|
+
}, [y, b, R, I]), c.useEffect(T, [r, T]), Ie(b, P), Ie(g.content, P), /* @__PURE__ */ l.jsx(
|
|
5194
|
+
du,
|
|
5145
5195
|
{
|
|
5146
5196
|
scope: a,
|
|
5147
5197
|
scrollbar: b,
|
|
@@ -5168,14 +5218,14 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5168
5218
|
)
|
|
5169
5219
|
}
|
|
5170
5220
|
);
|
|
5171
|
-
}), et = "ScrollAreaThumb",
|
|
5221
|
+
}), et = "ScrollAreaThumb", Ho = c.forwardRef(
|
|
5172
5222
|
(e, t) => {
|
|
5173
|
-
const { forceMount: a, ...r } = e, n =
|
|
5174
|
-
return /* @__PURE__ */ l.jsx(ge, { present: a || n.hasThumb, children: /* @__PURE__ */ l.jsx(
|
|
5223
|
+
const { forceMount: a, ...r } = e, n = Fo(et, e.__scopeScrollArea);
|
|
5224
|
+
return /* @__PURE__ */ l.jsx(ge, { present: a || n.hasThumb, children: /* @__PURE__ */ l.jsx(uu, { ref: t, ...r }) });
|
|
5175
5225
|
}
|
|
5176
|
-
),
|
|
5226
|
+
), uu = c.forwardRef(
|
|
5177
5227
|
(e, t) => {
|
|
5178
|
-
const { __scopeScrollArea: a, style: r, ...n } = e, o = oe(et, a), s =
|
|
5228
|
+
const { __scopeScrollArea: a, style: r, ...n } = e, o = oe(et, a), s = Fo(et, a), { onThumbPositionChange: i } = s, d = q(
|
|
5179
5229
|
t,
|
|
5180
5230
|
(p) => s.onThumbChange(p)
|
|
5181
5231
|
), f = c.useRef(void 0), m = vt(() => {
|
|
@@ -5186,7 +5236,7 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5186
5236
|
if (p) {
|
|
5187
5237
|
const u = () => {
|
|
5188
5238
|
if (m(), !f.current) {
|
|
5189
|
-
const g =
|
|
5239
|
+
const g = mu(p, i);
|
|
5190
5240
|
f.current = g, i();
|
|
5191
5241
|
}
|
|
5192
5242
|
};
|
|
@@ -5212,15 +5262,15 @@ var Yd = c.forwardRef((e, t) => {
|
|
|
5212
5262
|
);
|
|
5213
5263
|
}
|
|
5214
5264
|
);
|
|
5215
|
-
|
|
5216
|
-
var pa = "ScrollAreaCorner",
|
|
5265
|
+
Ho.displayName = et;
|
|
5266
|
+
var pa = "ScrollAreaCorner", Bo = c.forwardRef(
|
|
5217
5267
|
(e, t) => {
|
|
5218
5268
|
const a = oe(pa, e.__scopeScrollArea), r = !!(a.scrollbarX && a.scrollbarY);
|
|
5219
|
-
return a.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(
|
|
5269
|
+
return a.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(fu, { ...e, ref: t }) : null;
|
|
5220
5270
|
}
|
|
5221
5271
|
);
|
|
5222
|
-
|
|
5223
|
-
var
|
|
5272
|
+
Bo.displayName = pa;
|
|
5273
|
+
var fu = c.forwardRef((e, t) => {
|
|
5224
5274
|
const { __scopeScrollArea: a, ...r } = e, n = oe(pa, a), [o, s] = c.useState(0), [i, d] = c.useState(0), f = !!(o && i);
|
|
5225
5275
|
return Ie(n.scrollbarX, () => {
|
|
5226
5276
|
var p;
|
|
@@ -5250,33 +5300,33 @@ var tu = c.forwardRef((e, t) => {
|
|
|
5250
5300
|
function tt(e) {
|
|
5251
5301
|
return e ? parseInt(e, 10) : 0;
|
|
5252
5302
|
}
|
|
5253
|
-
function
|
|
5303
|
+
function Go(e, t) {
|
|
5254
5304
|
const a = e / t;
|
|
5255
5305
|
return isNaN(a) ? 0 : a;
|
|
5256
5306
|
}
|
|
5257
5307
|
function gt(e) {
|
|
5258
|
-
const t =
|
|
5308
|
+
const t = Go(e.viewport, e.content), a = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - a) * t;
|
|
5259
5309
|
return Math.max(r, 18);
|
|
5260
5310
|
}
|
|
5261
|
-
function
|
|
5311
|
+
function pu(e, t, a, r = "ltr") {
|
|
5262
5312
|
const n = gt(a), o = n / 2, s = t || o, i = n - s, d = a.scrollbar.paddingStart + s, f = a.scrollbar.size - a.scrollbar.paddingEnd - i, m = a.content - a.viewport, p = r === "ltr" ? [0, m] : [m * -1, 0];
|
|
5263
|
-
return
|
|
5313
|
+
return Ko([d, f], p)(e);
|
|
5264
5314
|
}
|
|
5265
5315
|
function La(e, t, a = "ltr") {
|
|
5266
5316
|
const r = gt(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, o = t.scrollbar.size - n, s = t.content - t.viewport, i = o - r, d = a === "ltr" ? [0, s] : [s * -1, 0], f = Vt(e, d);
|
|
5267
|
-
return
|
|
5317
|
+
return Ko([0, s], [0, i])(f);
|
|
5268
5318
|
}
|
|
5269
|
-
function
|
|
5319
|
+
function Ko(e, t) {
|
|
5270
5320
|
return (a) => {
|
|
5271
5321
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
5272
5322
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
5273
5323
|
return t[0] + r * (a - e[0]);
|
|
5274
5324
|
};
|
|
5275
5325
|
}
|
|
5276
|
-
function
|
|
5326
|
+
function Uo(e, t) {
|
|
5277
5327
|
return e > 0 && e < t;
|
|
5278
5328
|
}
|
|
5279
|
-
var
|
|
5329
|
+
var mu = (e, t = () => {
|
|
5280
5330
|
}) => {
|
|
5281
5331
|
let a = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
5282
5332
|
return function n() {
|
|
@@ -5304,9 +5354,9 @@ function Ie(e, t) {
|
|
|
5304
5354
|
}
|
|
5305
5355
|
}, [e, a]);
|
|
5306
5356
|
}
|
|
5307
|
-
var
|
|
5308
|
-
const
|
|
5309
|
-
|
|
5357
|
+
var Wo = Lo, bu = Oo, gu = Bo;
|
|
5358
|
+
const vu = c.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ l.jsxs(
|
|
5359
|
+
Wo,
|
|
5310
5360
|
{
|
|
5311
5361
|
ref: r,
|
|
5312
5362
|
className: w("al-relative al-overflow-hidden", e),
|
|
@@ -5315,7 +5365,7 @@ const su = c.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
5315
5365
|
...a,
|
|
5316
5366
|
children: [
|
|
5317
5367
|
/* @__PURE__ */ l.jsx(
|
|
5318
|
-
|
|
5368
|
+
bu,
|
|
5319
5369
|
{
|
|
5320
5370
|
className: "al-h-full al-w-full al-rounded-[inherit]",
|
|
5321
5371
|
role: "region",
|
|
@@ -5325,11 +5375,11 @@ const su = c.forwardRef(({ className: e, children: t, ...a }, r) => /* @__PURE__
|
|
|
5325
5375
|
),
|
|
5326
5376
|
/* @__PURE__ */ l.jsx(Lt, {}),
|
|
5327
5377
|
/* @__PURE__ */ l.jsx(Lt, { orientation: "horizontal" }),
|
|
5328
|
-
/* @__PURE__ */ l.jsx(
|
|
5378
|
+
/* @__PURE__ */ l.jsx(gu, {})
|
|
5329
5379
|
]
|
|
5330
5380
|
}
|
|
5331
5381
|
));
|
|
5332
|
-
|
|
5382
|
+
vu.displayName = Wo.displayName;
|
|
5333
5383
|
const Lt = c.forwardRef(({ className: e, orientation: t = "vertical", ...a }, r) => /* @__PURE__ */ l.jsx(
|
|
5334
5384
|
ua,
|
|
5335
5385
|
{
|
|
@@ -5342,13 +5392,13 @@ const Lt = c.forwardRef(({ className: e, orientation: t = "vertical", ...a }, r)
|
|
|
5342
5392
|
e
|
|
5343
5393
|
),
|
|
5344
5394
|
...a,
|
|
5345
|
-
children: /* @__PURE__ */ l.jsx(
|
|
5395
|
+
children: /* @__PURE__ */ l.jsx(Ho, { className: "al-relative al-flex-1 al-rounded-full al-bg-border" })
|
|
5346
5396
|
}
|
|
5347
5397
|
));
|
|
5348
5398
|
Lt.displayName = ua.displayName;
|
|
5349
|
-
var
|
|
5350
|
-
|
|
5351
|
-
]), ht =
|
|
5399
|
+
var Rt, ma = "HoverCard", [Xo, tf] = ce(ma, [
|
|
5400
|
+
$a
|
|
5401
|
+
]), ht = $a(), [hu, ba] = Xo(ma), Yo = (e) => {
|
|
5352
5402
|
const {
|
|
5353
5403
|
__scopeHoverCard: t,
|
|
5354
5404
|
children: a,
|
|
@@ -5369,7 +5419,7 @@ var Ct, ma = "HoverCard", [Uo, Bu] = ce(ma, [
|
|
|
5369
5419
|
return c.useEffect(() => () => {
|
|
5370
5420
|
clearTimeout(f.current), clearTimeout(m.current);
|
|
5371
5421
|
}, []), /* @__PURE__ */ l.jsx(
|
|
5372
|
-
|
|
5422
|
+
hu,
|
|
5373
5423
|
{
|
|
5374
5424
|
scope: t,
|
|
5375
5425
|
open: g,
|
|
@@ -5379,15 +5429,15 @@ var Ct, ma = "HoverCard", [Uo, Bu] = ce(ma, [
|
|
|
5379
5429
|
onDismiss: x,
|
|
5380
5430
|
hasSelectionRef: p,
|
|
5381
5431
|
isPointerDownOnContentRef: u,
|
|
5382
|
-
children: /* @__PURE__ */ l.jsx(
|
|
5432
|
+
children: /* @__PURE__ */ l.jsx(Gs, { ...d, children: a })
|
|
5383
5433
|
}
|
|
5384
5434
|
);
|
|
5385
5435
|
};
|
|
5386
|
-
|
|
5387
|
-
var
|
|
5436
|
+
Yo.displayName = ma;
|
|
5437
|
+
var qo = "HoverCardTrigger", Jo = c.forwardRef(
|
|
5388
5438
|
(e, t) => {
|
|
5389
|
-
const { __scopeHoverCard: a, ...r } = e, n = ba(
|
|
5390
|
-
return /* @__PURE__ */ l.jsx(
|
|
5439
|
+
const { __scopeHoverCard: a, ...r } = e, n = ba(qo, a), o = ht(a);
|
|
5440
|
+
return /* @__PURE__ */ l.jsx(Fs, { asChild: !0, ...o, children: /* @__PURE__ */ l.jsx(
|
|
5391
5441
|
O.a,
|
|
5392
5442
|
{
|
|
5393
5443
|
"data-state": n.open ? "open" : "closed",
|
|
@@ -5402,14 +5452,14 @@ var Xo = "HoverCardTrigger", Yo = c.forwardRef(
|
|
|
5402
5452
|
) });
|
|
5403
5453
|
}
|
|
5404
5454
|
);
|
|
5405
|
-
|
|
5406
|
-
var
|
|
5455
|
+
Jo.displayName = qo;
|
|
5456
|
+
var xu = "HoverCardPortal", [af, wu] = Xo(xu, {
|
|
5407
5457
|
forceMount: void 0
|
|
5408
|
-
}), at = "HoverCardContent",
|
|
5458
|
+
}), at = "HoverCardContent", Zo = c.forwardRef(
|
|
5409
5459
|
(e, t) => {
|
|
5410
|
-
const a =
|
|
5460
|
+
const a = wu(at, e.__scopeHoverCard), { forceMount: r = a.forceMount, ...n } = e, o = ba(at, e.__scopeHoverCard);
|
|
5411
5461
|
return /* @__PURE__ */ l.jsx(ge, { present: r || o.open, children: /* @__PURE__ */ l.jsx(
|
|
5412
|
-
|
|
5462
|
+
yu,
|
|
5413
5463
|
{
|
|
5414
5464
|
"data-state": o.open ? "open" : "closed",
|
|
5415
5465
|
...n,
|
|
@@ -5420,8 +5470,8 @@ var iu = "HoverCardPortal", [Gu, cu] = Uo(iu, {
|
|
|
5420
5470
|
) });
|
|
5421
5471
|
}
|
|
5422
5472
|
);
|
|
5423
|
-
|
|
5424
|
-
var
|
|
5473
|
+
Zo.displayName = at;
|
|
5474
|
+
var yu = c.forwardRef((e, t) => {
|
|
5425
5475
|
const {
|
|
5426
5476
|
__scopeHoverCard: a,
|
|
5427
5477
|
onEscapeKeyDown: r,
|
|
@@ -5433,8 +5483,8 @@ var du = c.forwardRef((e, t) => {
|
|
|
5433
5483
|
return c.useEffect(() => {
|
|
5434
5484
|
if (u) {
|
|
5435
5485
|
const b = document.body;
|
|
5436
|
-
return
|
|
5437
|
-
b.style.userSelect =
|
|
5486
|
+
return Rt = b.style.userSelect || b.style.webkitUserSelect, b.style.userSelect = "none", b.style.webkitUserSelect = "none", () => {
|
|
5487
|
+
b.style.userSelect = Rt, b.style.webkitUserSelect = Rt;
|
|
5438
5488
|
};
|
|
5439
5489
|
}
|
|
5440
5490
|
}, [u]), c.useEffect(() => {
|
|
@@ -5450,9 +5500,9 @@ var du = c.forwardRef((e, t) => {
|
|
|
5450
5500
|
};
|
|
5451
5501
|
}
|
|
5452
5502
|
}, [d.isPointerDownOnContentRef, d.hasSelectionRef]), c.useEffect(() => {
|
|
5453
|
-
m.current &&
|
|
5503
|
+
m.current && Ru(m.current).forEach((v) => v.setAttribute("tabindex", "-1"));
|
|
5454
5504
|
}), /* @__PURE__ */ l.jsx(
|
|
5455
|
-
|
|
5505
|
+
Vs,
|
|
5456
5506
|
{
|
|
5457
5507
|
asChild: !0,
|
|
5458
5508
|
disableOutsidePointerEvents: !1,
|
|
@@ -5464,7 +5514,7 @@ var du = c.forwardRef((e, t) => {
|
|
|
5464
5514
|
}),
|
|
5465
5515
|
onDismiss: d.onDismiss,
|
|
5466
5516
|
children: /* @__PURE__ */ l.jsx(
|
|
5467
|
-
|
|
5517
|
+
Hs,
|
|
5468
5518
|
{
|
|
5469
5519
|
...f,
|
|
5470
5520
|
...i,
|
|
@@ -5487,26 +5537,26 @@ var du = c.forwardRef((e, t) => {
|
|
|
5487
5537
|
)
|
|
5488
5538
|
}
|
|
5489
5539
|
);
|
|
5490
|
-
}),
|
|
5540
|
+
}), Su = "HoverCardArrow", Cu = c.forwardRef(
|
|
5491
5541
|
(e, t) => {
|
|
5492
5542
|
const { __scopeHoverCard: a, ...r } = e, n = ht(a);
|
|
5493
|
-
return /* @__PURE__ */ l.jsx(
|
|
5543
|
+
return /* @__PURE__ */ l.jsx(Bs, { ...n, ...r, ref: t });
|
|
5494
5544
|
}
|
|
5495
5545
|
);
|
|
5496
|
-
|
|
5546
|
+
Cu.displayName = Su;
|
|
5497
5547
|
function rt(e) {
|
|
5498
5548
|
return (t) => t.pointerType === "touch" ? void 0 : e();
|
|
5499
5549
|
}
|
|
5500
|
-
function
|
|
5550
|
+
function Ru(e) {
|
|
5501
5551
|
const t = [], a = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5502
5552
|
acceptNode: (r) => r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
5503
5553
|
});
|
|
5504
5554
|
for (; a.nextNode(); ) t.push(a.currentNode);
|
|
5505
5555
|
return t;
|
|
5506
5556
|
}
|
|
5507
|
-
var
|
|
5508
|
-
const
|
|
5509
|
-
|
|
5557
|
+
var Pu = Yo, Nu = Jo, Qo = Zo;
|
|
5558
|
+
const rf = Pu, nf = Nu, Eu = De(({ className: e, align: t = "center", sideOffset: a = 4, ...r }, n) => /* @__PURE__ */ l.jsx(
|
|
5559
|
+
Qo,
|
|
5510
5560
|
{
|
|
5511
5561
|
ref: n,
|
|
5512
5562
|
align: t,
|
|
@@ -5518,197 +5568,198 @@ const Ku = mu, Uu = bu, gu = De(({ className: e, align: t = "center", sideOffset
|
|
|
5518
5568
|
...r
|
|
5519
5569
|
}
|
|
5520
5570
|
));
|
|
5521
|
-
|
|
5571
|
+
Eu.displayName = Qo.displayName;
|
|
5522
5572
|
export {
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5573
|
+
lf as Accordion,
|
|
5574
|
+
cf as AccordionContent,
|
|
5575
|
+
df as AccordionItem,
|
|
5576
|
+
uf as AccordionTrigger,
|
|
5577
|
+
Fl as Alert,
|
|
5578
|
+
Hl as AlertDescription,
|
|
5579
|
+
ff as AlertDialog,
|
|
5580
|
+
pf as AlertDialogAction,
|
|
5581
|
+
mf as AlertDialogCancel,
|
|
5582
|
+
bf as AlertDialogContent,
|
|
5583
|
+
gf as AlertDialogDescription,
|
|
5584
|
+
vf as AlertDialogFooter,
|
|
5585
|
+
hf as AlertDialogHeader,
|
|
5586
|
+
xf as AlertDialogOverlay,
|
|
5587
|
+
wf as AlertDialogPortal,
|
|
5588
|
+
yf as AlertDialogTitle,
|
|
5589
|
+
Sf as AlertDialogTrigger,
|
|
5590
|
+
Vl as AlertTitle,
|
|
5591
|
+
bl as Avatar,
|
|
5592
|
+
vl as AvatarFallback,
|
|
5593
|
+
gl as AvatarImage,
|
|
5594
|
+
Cf as Badge,
|
|
5595
|
+
Bi as Breadcrumb,
|
|
5596
|
+
Yi as BreadcrumbEllipsis,
|
|
5597
|
+
Ki as BreadcrumbItem,
|
|
5598
|
+
Ui as BreadcrumbLink,
|
|
5599
|
+
Gi as BreadcrumbList,
|
|
5600
|
+
Wi as BreadcrumbPage,
|
|
5601
|
+
Xi as BreadcrumbSeparator,
|
|
5602
|
+
Oa as Button,
|
|
5603
|
+
Rp as Card,
|
|
5604
|
+
Pp as CardContent,
|
|
5605
|
+
Np as CardDescription,
|
|
5606
|
+
Ep as CardFooter,
|
|
5607
|
+
Tp as CardHeader,
|
|
5608
|
+
_p as CardTitle,
|
|
5609
|
+
Rf as Checkbox,
|
|
5610
|
+
ku as Combobox,
|
|
5611
|
+
rs as Command,
|
|
5612
|
+
Pf as CommandDialog,
|
|
5613
|
+
ss as CommandEmpty,
|
|
5614
|
+
ls as CommandGroup,
|
|
5615
|
+
ns as CommandInput,
|
|
5616
|
+
is as CommandItem,
|
|
5617
|
+
os as CommandList,
|
|
5618
|
+
Nf as CommandSeparator,
|
|
5619
|
+
Ef as CommandShortcut,
|
|
5620
|
+
Tf as Dialog,
|
|
5621
|
+
_f as DialogClose,
|
|
5622
|
+
Af as DialogContent,
|
|
5623
|
+
Mf as DialogDescription,
|
|
5624
|
+
If as DialogFooter,
|
|
5625
|
+
jf as DialogHeader,
|
|
5626
|
+
Df as DialogOverlay,
|
|
5627
|
+
zf as DialogPortal,
|
|
5628
|
+
Lf as DialogTitle,
|
|
5629
|
+
kf as DialogTrigger,
|
|
5630
|
+
Of as DropdownMenu,
|
|
5631
|
+
$f as DropdownMenuCheckboxItem,
|
|
5632
|
+
Ff as DropdownMenuContent,
|
|
5633
|
+
Vf as DropdownMenuGroup,
|
|
5634
|
+
Hf as DropdownMenuItem,
|
|
5635
|
+
Bf as DropdownMenuLabel,
|
|
5636
|
+
Gf as DropdownMenuPortal,
|
|
5637
|
+
Kf as DropdownMenuRadioGroup,
|
|
5638
|
+
Uf as DropdownMenuRadioItem,
|
|
5639
|
+
Wf as DropdownMenuSeparator,
|
|
5640
|
+
Xf as DropdownMenuShortcut,
|
|
5641
|
+
Yf as DropdownMenuSub,
|
|
5642
|
+
qf as DropdownMenuSubContent,
|
|
5643
|
+
Jf as DropdownMenuSubTrigger,
|
|
5644
|
+
Zf as DropdownMenuTrigger,
|
|
5645
|
+
Hu as Form,
|
|
5646
|
+
Oc as FormControl,
|
|
5647
|
+
$c as FormDescription,
|
|
5648
|
+
Bu as FormField,
|
|
5649
|
+
Lc as FormItem,
|
|
5650
|
+
kc as FormLabel,
|
|
5651
|
+
Fc as FormMessage,
|
|
5652
|
+
rf as HoverCard,
|
|
5653
|
+
Eu as HoverCardContent,
|
|
5654
|
+
nf as HoverCardTrigger,
|
|
5655
|
+
Ba as Input,
|
|
5656
|
+
Ua as Label,
|
|
5657
|
+
ud as Menubar,
|
|
5658
|
+
vd as MenubarCheckboxItem,
|
|
5659
|
+
bd as MenubarContent,
|
|
5660
|
+
Uu as MenubarGroup,
|
|
5661
|
+
gd as MenubarItem,
|
|
5662
|
+
xd as MenubarLabel,
|
|
5663
|
+
Ku as MenubarMenu,
|
|
5664
|
+
Wu as MenubarPortal,
|
|
5665
|
+
Yu as MenubarRadioGroup,
|
|
5666
|
+
hd as MenubarRadioItem,
|
|
5667
|
+
wd as MenubarSeparator,
|
|
5668
|
+
yd as MenubarShortcut,
|
|
5669
|
+
Xu as MenubarSub,
|
|
5670
|
+
md as MenubarSubContent,
|
|
5671
|
+
pd as MenubarSubTrigger,
|
|
5672
|
+
fd as MenubarTrigger,
|
|
5673
|
+
Qf as NativeSelect,
|
|
5674
|
+
Sd as Pagination,
|
|
5675
|
+
Cd as PaginationContent,
|
|
5676
|
+
Ed as PaginationEllipsis,
|
|
5677
|
+
Rd as PaginationItem,
|
|
5627
5678
|
oa as PaginationLink,
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5679
|
+
Nd as PaginationNext,
|
|
5680
|
+
Pd as PaginationPrevious,
|
|
5681
|
+
Is as Popover,
|
|
5682
|
+
Ds as PopoverContent,
|
|
5683
|
+
js as PopoverTrigger,
|
|
5684
|
+
ql as Progress,
|
|
5685
|
+
dl as RadioGroup,
|
|
5686
|
+
ul as RadioGroupItem,
|
|
5687
|
+
Qu as ResizableHandle,
|
|
5688
|
+
Zu as ResizablePanel,
|
|
5689
|
+
Ju as ResizablePanelGroup,
|
|
5690
|
+
vu as ScrollArea,
|
|
5640
5691
|
Lt as ScrollBar,
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5692
|
+
ep as Select,
|
|
5693
|
+
tp as SelectContent,
|
|
5694
|
+
ap as SelectGroup,
|
|
5695
|
+
rp as SelectItem,
|
|
5696
|
+
np as SelectLabel,
|
|
5697
|
+
op as SelectScrollDownButton,
|
|
5698
|
+
sp as SelectScrollUpButton,
|
|
5699
|
+
lp as SelectSeparator,
|
|
5700
|
+
ip as SelectTrigger,
|
|
5701
|
+
cp as SelectValue,
|
|
5702
|
+
Ur as Separator,
|
|
5703
|
+
cs as Sheet,
|
|
5704
|
+
dp as SheetClose,
|
|
5705
|
+
ds as SheetContent,
|
|
5706
|
+
up as SheetDescription,
|
|
5707
|
+
fp as SheetFooter,
|
|
5708
|
+
pp as SheetHeader,
|
|
5709
|
+
mp as SheetOverlay,
|
|
5710
|
+
bp as SheetPortal,
|
|
5711
|
+
gp as SheetTitle,
|
|
5712
|
+
vp as SheetTrigger,
|
|
5713
|
+
ii as Sidebar,
|
|
5714
|
+
gi as SidebarContent,
|
|
5715
|
+
mi as SidebarFooter,
|
|
5716
|
+
vi as SidebarGroup,
|
|
5717
|
+
xi as SidebarGroupAction,
|
|
5718
|
+
wi as SidebarGroupContent,
|
|
5719
|
+
hi as SidebarGroupLabel,
|
|
5720
|
+
pi as SidebarHeader,
|
|
5721
|
+
fi as SidebarInput,
|
|
5722
|
+
ui as SidebarInset,
|
|
5723
|
+
yi as SidebarMenu,
|
|
5724
|
+
Pi as SidebarMenuAction,
|
|
5725
|
+
Ni as SidebarMenuBadge,
|
|
5726
|
+
Ri as SidebarMenuButton,
|
|
5727
|
+
Si as SidebarMenuItem,
|
|
5728
|
+
Ei as SidebarMenuSkeleton,
|
|
5729
|
+
Ti as SidebarMenuSub,
|
|
5730
|
+
Ai as SidebarMenuSubButton,
|
|
5731
|
+
_i as SidebarMenuSubItem,
|
|
5732
|
+
li as SidebarProvider,
|
|
5733
|
+
di as SidebarRail,
|
|
5734
|
+
bi as SidebarSeparator,
|
|
5735
|
+
ci as SidebarTrigger,
|
|
5685
5736
|
Sa as Skeleton,
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5737
|
+
mc as Slider,
|
|
5738
|
+
Li as Switch,
|
|
5739
|
+
Fu as Tabs,
|
|
5740
|
+
Hi as TabsContent,
|
|
5741
|
+
Fi as TabsList,
|
|
5742
|
+
Vi as TabsTrigger,
|
|
5743
|
+
hp as Textarea,
|
|
5744
|
+
zr as Toast,
|
|
5745
|
+
Ol as ToastAction,
|
|
5746
|
+
Lr as ToastClose,
|
|
5747
|
+
Or as ToastDescription,
|
|
5748
|
+
Ll as ToastProvider,
|
|
5749
|
+
kr as ToastTitle,
|
|
5750
|
+
Dr as ToastViewport,
|
|
5751
|
+
zu as Toaster,
|
|
5752
|
+
Ap as Tooltip,
|
|
5753
|
+
Os as TooltipContent,
|
|
5754
|
+
Ls as TooltipCore,
|
|
5755
|
+
zs as TooltipProvider,
|
|
5756
|
+
ks as TooltipTrigger,
|
|
5757
|
+
xp as Typography,
|
|
5758
|
+
wp as badgeVariants,
|
|
5759
|
+
$s as buttonVariants,
|
|
5760
|
+
yp as reducer,
|
|
5761
|
+
Sp as toast,
|
|
5711
5762
|
dt as useFormField,
|
|
5712
5763
|
lt as useSidebar,
|
|
5713
|
-
|
|
5764
|
+
as as useToast
|
|
5714
5765
|
};
|