@altimateai/ui-components 0.0.30 → 0.0.31-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 +12751 -12269
- package/dist/Stack.js +84 -60
- package/dist/chatbotV2/index.d.ts +88 -3
- package/dist/chatbotV2/index.js +26 -18
- package/dist/flowchart-elk-definition-170a3958.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/is_dark.js +1 -1
- package/dist/main.js +1 -1
- package/dist/mindmap-definition-44684416.js +1 -1
- package/dist/shadcn/index.d.ts +12 -1
- package/dist/shadcn/index.js +894 -871
- package/dist/storybook/DebouncedInput.stories.tsx +179 -0
- package/dist/storybook/Input.stories.tsx +89 -2
- package/dist/timeline-definition-8e5a9bc6.js +16 -16
- package/dist/types-rSkEslHb.d.ts +545 -0
- package/package.json +1 -1
- package/dist/types-Dr98SsnM.d.ts +0 -304
package/dist/shadcn/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { a8 as
|
|
3
|
-
import { c as N, M as En, Q as Re, a2 as qa, a3 as Ua, Z as Lt, a4 as Xa, a0 as Za, a as He, P as J, v as Se, K as Xt, l as Bn, u as he, a9 as
|
|
4
|
-
import { ai as
|
|
5
|
-
import { j as c, p as
|
|
1
|
+
import { b as ki, C as Ri, c as _i, d as Oi, e as ji, f as Ai, g as Ii, S as Wi, h as zi, i as Yn, j as Li, k as Fi, l as $i, G as Hi, L as Yi, I as Bi, m as Vi, R as Gi, n as Ki, o as qi, p as Ui, q as Xi, r as Zi, s as Qi, t as Ji, P as el, v as tl } from "../Form.js";
|
|
2
|
+
import { a8 as Gp, ab as Kp, a9 as qp, aa as Up, A as Xp, af as Zp, ag as Qp, ap as Jp, aq as eg, ak as tg, ao as ng, am as ag, al as rg, ai as og, ah as sg, an as ig, aj as lg, ae as cg, M as dg, B as ug, a4 as fg, a6 as mg, a5 as hg, O as pg, V as gg, T as bg, _ as vg, U as wg, X as yg, $ as xg, a3 as Sg, W as Mg, Y as Cg, Z as Ng, a0 as Dg, a1 as Pg, a2 as Tg, Q as Eg, aC as kg, aE as Rg, aF as _g, aG as Og, F as jg, aD as Ag, a as Ig, N as Wg, ar as zg, av as Lg, as as Fg, ax as $g, aw as Hg, aA as Yg, az as Bg, ay as Vg, au as Gg, at as Kg, z as qg, J as Ug, E as Xg, D as Zg, x as Qg, w as Jg, H as eb, y as tb, a7 as nb, ac as ab, ad as rb, K as ob, aB as sb } from "../Form.js";
|
|
3
|
+
import { c as N, M as En, Q as Re, a2 as qa, a3 as Ua, Z as Lt, a4 as Xa, a0 as Za, a5 as Qa, a as He, P as J, v as Se, K as Xt, l as Bn, u as he, a9 as nl, V as Ja, b as ut, o as Qe, d as L, aa as al, E as rl, y as ol, j as ft, ab as sl, ac as il, ad as ll, ae as cl, S as mt, n as Zt, z as Qt, G as Ht, s as er, I as tr, f as dl, e as ul, m as nr, A as fl, r as ml, t as hl, w as pl, B as gl, U as bl, X as vl } from "../Stack.js";
|
|
4
|
+
import { ai as lb, ah as cb, _ as db, Y as ub, a6 as fb, H as mb, ak as hb, J as pb, ap as gb, an as bb, am as vb, a8 as wb, a7 as yb, ao as xb, al as Sb, N as Mb, aj as Cb, af as Nb, ag as Db, $ as Pb, a1 as Tb } from "../Stack.js";
|
|
5
|
+
import { j as c, p as ar, a as Jt, d as rr, q as wl, C as or, b as sr, r as yl, M as ir, S as xl, s as Sl, t as Ml, F as Cl } from "../index2.js";
|
|
6
6
|
import * as h from "react";
|
|
7
7
|
import T, { createContext as Nl, useContext as Dl, useCallback as se, useRef as ot, useLayoutEffect as Pl, useState as Me, useEffect as Et, useMemo as Dt, forwardRef as en } from "react";
|
|
8
|
-
import { S as
|
|
8
|
+
import { S as kb } from "../Switch.js";
|
|
9
9
|
import * as Tl from "react-dom";
|
|
10
10
|
import '../index2.css';const wn = {}, St = {};
|
|
11
11
|
function Pt(e, t) {
|
|
@@ -30,7 +30,7 @@ function wa(e, t) {
|
|
|
30
30
|
class ke extends Date {
|
|
31
31
|
//#region static
|
|
32
32
|
constructor(...t) {
|
|
33
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Pt(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)),
|
|
33
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Pt(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), lr(this), kn(this)) : this.setTime(Date.now());
|
|
34
34
|
}
|
|
35
35
|
static tz(t, ...n) {
|
|
36
36
|
return n.length ? new ke(...n, t) : new ke(Date.now(), t);
|
|
@@ -71,9 +71,9 @@ function kn(e) {
|
|
|
71
71
|
e.internal.setTime(+e), e.internal.setUTCMinutes(e.internal.getUTCMinutes() - e.getTimezoneOffset());
|
|
72
72
|
}
|
|
73
73
|
function kl(e) {
|
|
74
|
-
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()),
|
|
74
|
+
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), lr(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function lr(e) {
|
|
77
77
|
const t = Pt(e.timeZone, e), n = /* @__PURE__ */ new Date(+e);
|
|
78
78
|
n.setUTCHours(n.getUTCHours() - 1);
|
|
79
79
|
const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), r = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), o = a - r, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
|
|
@@ -165,7 +165,7 @@ var ve;
|
|
|
165
165
|
(function(e) {
|
|
166
166
|
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
167
167
|
})(ve || (ve = {}));
|
|
168
|
-
const
|
|
168
|
+
const cr = 6048e5, _l = 864e5, xa = Symbol.for("constructDateFrom");
|
|
169
169
|
function le(e, t) {
|
|
170
170
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && xa in e ? e[xa](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
171
171
|
}
|
|
@@ -202,7 +202,7 @@ function lt(e, t) {
|
|
|
202
202
|
function kt(e, t) {
|
|
203
203
|
return lt(e, { ...t, weekStartsOn: 1 });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function dr(e, t) {
|
|
206
206
|
const n = Q(e, t == null ? void 0 : t.in), a = n.getFullYear(), r = le(n, 0);
|
|
207
207
|
r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
208
208
|
const o = kt(r), i = le(n, 0);
|
|
@@ -235,7 +235,7 @@ function Rt(e, t) {
|
|
|
235
235
|
const n = Q(e, t == null ? void 0 : t.in);
|
|
236
236
|
return n.setHours(0, 0, 0, 0), n;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ur(e, t, n) {
|
|
239
239
|
const [a, r] = ht(
|
|
240
240
|
n == null ? void 0 : n.in,
|
|
241
241
|
e,
|
|
@@ -244,7 +244,7 @@ function dr(e, t, n) {
|
|
|
244
244
|
return Math.round((s - l) / _l);
|
|
245
245
|
}
|
|
246
246
|
function jl(e, t) {
|
|
247
|
-
const n =
|
|
247
|
+
const n = dr(e, t), a = le(e, 0);
|
|
248
248
|
return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), kt(a);
|
|
249
249
|
}
|
|
250
250
|
function Al(e, t, n) {
|
|
@@ -277,11 +277,11 @@ function Rn(e, t, n) {
|
|
|
277
277
|
);
|
|
278
278
|
return +Rt(a) == +Rt(r);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function fr(e) {
|
|
281
281
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
282
282
|
}
|
|
283
283
|
function Ll(e) {
|
|
284
|
-
return !(!
|
|
284
|
+
return !(!fr(e) && typeof e != "number" || isNaN(+Q(e)));
|
|
285
285
|
}
|
|
286
286
|
function Fl(e, t, n) {
|
|
287
287
|
const [a, r] = ht(
|
|
@@ -318,17 +318,17 @@ function Vl(e, t) {
|
|
|
318
318
|
const n = Q(e, t == null ? void 0 : t.in), a = n.getFullYear();
|
|
319
319
|
return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function mr(e, t) {
|
|
322
322
|
const n = Q(e, t == null ? void 0 : t.in);
|
|
323
323
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function hr(e, t) {
|
|
326
326
|
var s, l, d, m;
|
|
327
327
|
const n = jt(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? 0, r = Q(e, t == null ? void 0 : t.in), o = r.getDay(), i = (o < a ? -7 : 0) + 6 - (o - a);
|
|
328
328
|
return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
|
|
329
329
|
}
|
|
330
330
|
function Gl(e, t) {
|
|
331
|
-
return
|
|
331
|
+
return hr(e, { ...t, weekStartsOn: 1 });
|
|
332
332
|
}
|
|
333
333
|
const Kl = {
|
|
334
334
|
lessThanXSeconds: {
|
|
@@ -763,13 +763,13 @@ const fc = /^(\d+)(th|st|nd|rd)?/i, mc = /\d+/i, hc = {
|
|
|
763
763
|
};
|
|
764
764
|
function Nc(e, t) {
|
|
765
765
|
const n = Q(e, t == null ? void 0 : t.in);
|
|
766
|
-
return
|
|
766
|
+
return ur(n, mr(n)) + 1;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function pr(e, t) {
|
|
769
769
|
const n = Q(e, t == null ? void 0 : t.in), a = +kt(n) - +jl(n);
|
|
770
|
-
return Math.round(a /
|
|
770
|
+
return Math.round(a / cr) + 1;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function gr(e, t) {
|
|
773
773
|
var m, u, f, g;
|
|
774
774
|
const n = Q(e, t == null ? void 0 : t.in), a = n.getFullYear(), r = jt(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (m = t == null ? void 0 : t.locale) == null ? void 0 : m.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, i = le((t == null ? void 0 : t.in) || e, 0);
|
|
775
775
|
i.setFullYear(a + 1, 0, o), i.setHours(0, 0, 0, 0);
|
|
@@ -780,12 +780,12 @@ function pr(e, t) {
|
|
|
780
780
|
}
|
|
781
781
|
function Dc(e, t) {
|
|
782
782
|
var s, l, d, m;
|
|
783
|
-
const n = jt(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, r =
|
|
783
|
+
const n = jt(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, r = gr(e, t), o = le((t == null ? void 0 : t.in) || e, 0);
|
|
784
784
|
return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), lt(o, t);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function br(e, t) {
|
|
787
787
|
const n = Q(e, t == null ? void 0 : t.in), a = +lt(n, t) - +Dc(n, t);
|
|
788
|
-
return Math.round(a /
|
|
788
|
+
return Math.round(a / cr) + 1;
|
|
789
789
|
}
|
|
790
790
|
function U(e, t) {
|
|
791
791
|
const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -880,7 +880,7 @@ const Fe = {
|
|
|
880
880
|
},
|
|
881
881
|
// Local week-numbering year
|
|
882
882
|
Y: function(e, t, n, a) {
|
|
883
|
-
const r =
|
|
883
|
+
const r = gr(e, a), o = r > 0 ? r : 1 - r;
|
|
884
884
|
if (t === "YY") {
|
|
885
885
|
const i = o % 100;
|
|
886
886
|
return U(i, 2);
|
|
@@ -889,7 +889,7 @@ const Fe = {
|
|
|
889
889
|
},
|
|
890
890
|
// ISO week-numbering year
|
|
891
891
|
R: function(e, t) {
|
|
892
|
-
const n =
|
|
892
|
+
const n = dr(e);
|
|
893
893
|
return U(n, t.length);
|
|
894
894
|
},
|
|
895
895
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1012,12 +1012,12 @@ const Fe = {
|
|
|
1012
1012
|
},
|
|
1013
1013
|
// Local week of year
|
|
1014
1014
|
w: function(e, t, n, a) {
|
|
1015
|
-
const r =
|
|
1015
|
+
const r = br(e, a);
|
|
1016
1016
|
return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : U(r, t.length);
|
|
1017
1017
|
},
|
|
1018
1018
|
// ISO week of year
|
|
1019
1019
|
I: function(e, t, n) {
|
|
1020
|
-
const a =
|
|
1020
|
+
const a = pr(e);
|
|
1021
1021
|
return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : U(a, t.length);
|
|
1022
1022
|
},
|
|
1023
1023
|
// Day of the month
|
|
@@ -1364,7 +1364,7 @@ const Da = (e, t) => {
|
|
|
1364
1364
|
default:
|
|
1365
1365
|
return t.date({ width: "full" });
|
|
1366
1366
|
}
|
|
1367
|
-
},
|
|
1367
|
+
}, vr = (e, t) => {
|
|
1368
1368
|
switch (e) {
|
|
1369
1369
|
case "p":
|
|
1370
1370
|
return t.time({ width: "short" });
|
|
@@ -1396,9 +1396,9 @@ const Da = (e, t) => {
|
|
|
1396
1396
|
o = t.dateTime({ width: "full" });
|
|
1397
1397
|
break;
|
|
1398
1398
|
}
|
|
1399
|
-
return o.replace("{{date}}", Da(a, t)).replace("{{time}}",
|
|
1399
|
+
return o.replace("{{date}}", Da(a, t)).replace("{{time}}", vr(r, t));
|
|
1400
1400
|
}, Tc = {
|
|
1401
|
-
p:
|
|
1401
|
+
p: vr,
|
|
1402
1402
|
P: Pc
|
|
1403
1403
|
}, Ec = /^D+$/, kc = /^Y+$/, Rc = ["D", "DD", "YY", "YYYY"];
|
|
1404
1404
|
function _c(e) {
|
|
@@ -1507,12 +1507,12 @@ function Qc(e, t) {
|
|
|
1507
1507
|
const n = t.startOfMonth(e), a = n.getDay() > 0 ? n.getDay() : 7, r = t.addDays(e, -a + 1), o = t.addDays(r, Pa * 7 - 1);
|
|
1508
1508
|
return t.getMonth(e) === t.getMonth(o) ? Pa : Zc;
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function wr(e, t) {
|
|
1511
1511
|
const n = t.startOfMonth(e), a = n.getDay();
|
|
1512
1512
|
return a === 1 ? n : a === 0 ? t.addDays(n, -1 * 6) : t.addDays(n, -1 * (a - 1));
|
|
1513
1513
|
}
|
|
1514
1514
|
function Jc(e, t) {
|
|
1515
|
-
const n =
|
|
1515
|
+
const n = wr(e, t), a = Qc(e, t);
|
|
1516
1516
|
return t.addDays(n, a * 7 - 1);
|
|
1517
1517
|
}
|
|
1518
1518
|
class ze {
|
|
@@ -1543,7 +1543,7 @@ class ze {
|
|
|
1543
1543
|
return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(a, r) : Il(a, r);
|
|
1544
1544
|
}, this.differenceInCalendarDays = (a, r) => {
|
|
1545
1545
|
var o;
|
|
1546
|
-
return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(a, r) :
|
|
1546
|
+
return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(a, r) : ur(a, r);
|
|
1547
1547
|
}, this.differenceInCalendarMonths = (a, r) => {
|
|
1548
1548
|
var o;
|
|
1549
1549
|
return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(a, r) : Fl(a, r);
|
|
@@ -1561,7 +1561,7 @@ class ze {
|
|
|
1561
1561
|
return (r = this.overrides) != null && r.endOfMonth ? this.overrides.endOfMonth(a) : $l(a);
|
|
1562
1562
|
}, this.endOfWeek = (a, r) => {
|
|
1563
1563
|
var o;
|
|
1564
|
-
return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(a, r) :
|
|
1564
|
+
return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(a, r) : hr(a, this.options);
|
|
1565
1565
|
}, this.endOfYear = (a) => {
|
|
1566
1566
|
var r;
|
|
1567
1567
|
return (r = this.overrides) != null && r.endOfYear ? this.overrides.endOfYear(a) : Vl(a);
|
|
@@ -1571,7 +1571,7 @@ class ze {
|
|
|
1571
1571
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(i) : i;
|
|
1572
1572
|
}, this.getISOWeek = (a) => {
|
|
1573
1573
|
var r;
|
|
1574
|
-
return (r = this.overrides) != null && r.getISOWeek ? this.overrides.getISOWeek(a) :
|
|
1574
|
+
return (r = this.overrides) != null && r.getISOWeek ? this.overrides.getISOWeek(a) : pr(a);
|
|
1575
1575
|
}, this.getMonth = (a, r) => {
|
|
1576
1576
|
var o;
|
|
1577
1577
|
return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(a, this.options) : Yc(a, this.options);
|
|
@@ -1580,7 +1580,7 @@ class ze {
|
|
|
1580
1580
|
return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(a, this.options) : Bc(a, this.options);
|
|
1581
1581
|
}, this.getWeek = (a, r) => {
|
|
1582
1582
|
var o;
|
|
1583
|
-
return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(a, this.options) :
|
|
1583
|
+
return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(a, this.options) : br(a, this.options);
|
|
1584
1584
|
}, this.isAfter = (a, r) => {
|
|
1585
1585
|
var o;
|
|
1586
1586
|
return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(a, r) : Vc(a, r);
|
|
@@ -1589,7 +1589,7 @@ class ze {
|
|
|
1589
1589
|
return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(a, r) : Gc(a, r);
|
|
1590
1590
|
}, this.isDate = (a) => {
|
|
1591
1591
|
var r;
|
|
1592
|
-
return (r = this.overrides) != null && r.isDate ? this.overrides.isDate(a) :
|
|
1592
|
+
return (r = this.overrides) != null && r.isDate ? this.overrides.isDate(a) : fr(a);
|
|
1593
1593
|
}, this.isSameDay = (a, r) => {
|
|
1594
1594
|
var o;
|
|
1595
1595
|
return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(a, r) : Rn(a, r);
|
|
@@ -1613,7 +1613,7 @@ class ze {
|
|
|
1613
1613
|
return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(a, r) : Xc(a, r);
|
|
1614
1614
|
}, this.startOfBroadcastWeek = (a, r) => {
|
|
1615
1615
|
var o;
|
|
1616
|
-
return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(a, this) :
|
|
1616
|
+
return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(a, this) : wr(a, this);
|
|
1617
1617
|
}, this.startOfDay = (a) => {
|
|
1618
1618
|
var r;
|
|
1619
1619
|
return (r = this.overrides) != null && r.startOfDay ? this.overrides.startOfDay(a) : Rt(a);
|
|
@@ -1628,7 +1628,7 @@ class ze {
|
|
|
1628
1628
|
return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(a, this.options) : lt(a, this.options);
|
|
1629
1629
|
}, this.startOfYear = (a) => {
|
|
1630
1630
|
var r;
|
|
1631
|
-
return (r = this.overrides) != null && r.startOfYear ? this.overrides.startOfYear(a) :
|
|
1631
|
+
return (r = this.overrides) != null && r.startOfYear ? this.overrides.startOfYear(a) : mr(a);
|
|
1632
1632
|
}, this.options = { locale: Vn, ...t }, this.overrides = n;
|
|
1633
1633
|
}
|
|
1634
1634
|
/**
|
|
@@ -1669,7 +1669,7 @@ class ze {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
1671
|
const _e = new ze();
|
|
1672
|
-
class
|
|
1672
|
+
class yr {
|
|
1673
1673
|
constructor(t, n, a = _e) {
|
|
1674
1674
|
this.date = t, this.displayMonth = n, this.outside = !!(n && !a.isSameMonth(t, n)), this.dateLib = a;
|
|
1675
1675
|
}
|
|
@@ -1699,22 +1699,22 @@ function Ie(e, t, n = !1, a = _e) {
|
|
|
1699
1699
|
const { differenceInCalendarDays: i, isSameDay: s } = a;
|
|
1700
1700
|
return r && o ? (i(o, r) < 0 && ([r, o] = [o, r]), i(t, r) >= (n ? 1 : 0) && i(o, t) >= (n ? 1 : 0)) : !n && o ? s(o, t) : !n && r ? s(r, t) : !1;
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function xr(e) {
|
|
1703
1703
|
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
1704
1704
|
}
|
|
1705
1705
|
function Gn(e) {
|
|
1706
1706
|
return !!(e && typeof e == "object" && "from" in e);
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Sr(e) {
|
|
1709
1709
|
return !!(e && typeof e == "object" && "after" in e);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Mr(e) {
|
|
1712
1712
|
return !!(e && typeof e == "object" && "before" in e);
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function Cr(e) {
|
|
1715
1715
|
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function Nr(e, t) {
|
|
1718
1718
|
return Array.isArray(e) && e.every(t.isDate);
|
|
1719
1719
|
}
|
|
1720
1720
|
function We(e, t, n = _e) {
|
|
@@ -1724,17 +1724,17 @@ function We(e, t, n = _e) {
|
|
|
1724
1724
|
return s;
|
|
1725
1725
|
if (n.isDate(s))
|
|
1726
1726
|
return r(e, s);
|
|
1727
|
-
if (
|
|
1727
|
+
if (Nr(s, n))
|
|
1728
1728
|
return s.includes(e);
|
|
1729
1729
|
if (Gn(s))
|
|
1730
1730
|
return Ie(s, e, !1, n);
|
|
1731
|
-
if (
|
|
1731
|
+
if (Cr(s))
|
|
1732
1732
|
return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay();
|
|
1733
|
-
if (
|
|
1733
|
+
if (xr(s)) {
|
|
1734
1734
|
const l = o(s.before, e), d = o(s.after, e), m = l > 0, u = d < 0;
|
|
1735
1735
|
return i(s.before, s.after) ? u && m : m || u;
|
|
1736
1736
|
}
|
|
1737
|
-
return
|
|
1737
|
+
return Sr(s) ? o(e, s.after) > 0 : Mr(s) ? o(s.before, e) > 0 : typeof s == "function" ? s(e) : !1;
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
1740
|
function nd(e, t, n) {
|
|
@@ -1839,9 +1839,9 @@ function hd(e) {
|
|
|
1839
1839
|
function pd(e) {
|
|
1840
1840
|
return T.createElement("div", { ...e });
|
|
1841
1841
|
}
|
|
1842
|
-
const
|
|
1842
|
+
const Dr = Nl(void 0);
|
|
1843
1843
|
function At() {
|
|
1844
|
-
const e = Dl(
|
|
1844
|
+
const e = Dl(Dr);
|
|
1845
1845
|
if (e === void 0)
|
|
1846
1846
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1847
1847
|
return e;
|
|
@@ -1977,10 +1977,10 @@ function Kn() {
|
|
|
1977
1977
|
e[ve[t]] = `rdp-${ve[t]}`;
|
|
1978
1978
|
return e;
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function Pr(e, t, n) {
|
|
1981
1981
|
return (n ?? new ze(t)).format(e, "LLLL y");
|
|
1982
1982
|
}
|
|
1983
|
-
const Od =
|
|
1983
|
+
const Od = Pr;
|
|
1984
1984
|
function jd(e, t, n) {
|
|
1985
1985
|
return (n ?? new ze(t)).format(e, "d");
|
|
1986
1986
|
}
|
|
@@ -1996,12 +1996,12 @@ function Wd() {
|
|
|
1996
1996
|
function zd(e, t, n) {
|
|
1997
1997
|
return (n ?? new ze(t)).format(e, "cccccc");
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function Tr(e, t = _e) {
|
|
2000
2000
|
return t.format(e, "yyyy");
|
|
2001
2001
|
}
|
|
2002
|
-
const Ld =
|
|
2002
|
+
const Ld = Tr, Fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2003
2003
|
__proto__: null,
|
|
2004
|
-
formatCaption:
|
|
2004
|
+
formatCaption: Pr,
|
|
2005
2005
|
formatDay: jd,
|
|
2006
2006
|
formatMonthCaption: Od,
|
|
2007
2007
|
formatMonthDropdown: Ad,
|
|
@@ -2009,7 +2009,7 @@ const Ld = Pr, Fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2009
2009
|
formatWeekNumberHeader: Wd,
|
|
2010
2010
|
formatWeekdayName: zd,
|
|
2011
2011
|
formatYearCaption: Ld,
|
|
2012
|
-
formatYearDropdown:
|
|
2012
|
+
formatYearDropdown: Tr
|
|
2013
2013
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2014
2014
|
function $d(e) {
|
|
2015
2015
|
return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
|
|
@@ -2060,19 +2060,19 @@ function Vd(e, t, n, a) {
|
|
|
2060
2060
|
};
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2063
|
+
function Er(e, t, n) {
|
|
2064
2064
|
return (n ?? new ze(t)).format(e, "LLLL y");
|
|
2065
2065
|
}
|
|
2066
|
-
const Gd =
|
|
2066
|
+
const Gd = Er;
|
|
2067
2067
|
function Kd(e, t, n, a) {
|
|
2068
2068
|
let r = (a ?? new ze(n)).format(e, "PPPP");
|
|
2069
2069
|
return t != null && t.today && (r = `Today, ${r}`), r;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function kr(e, t, n, a) {
|
|
2072
2072
|
let r = (a ?? new ze(n)).format(e, "PPPP");
|
|
2073
2073
|
return t.today && (r = `Today, ${r}`), t.selected && (r = `${r}, selected`), r;
|
|
2074
2074
|
}
|
|
2075
|
-
const qd =
|
|
2075
|
+
const qd = kr;
|
|
2076
2076
|
function Ud() {
|
|
2077
2077
|
return "";
|
|
2078
2078
|
}
|
|
@@ -2101,8 +2101,8 @@ const au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2101
2101
|
__proto__: null,
|
|
2102
2102
|
labelCaption: Gd,
|
|
2103
2103
|
labelDay: qd,
|
|
2104
|
-
labelDayButton:
|
|
2105
|
-
labelGrid:
|
|
2104
|
+
labelDayButton: kr,
|
|
2105
|
+
labelGrid: Er,
|
|
2106
2106
|
labelGridcell: Kd,
|
|
2107
2107
|
labelMonthDropdown: Xd,
|
|
2108
2108
|
labelNav: Ud,
|
|
@@ -2219,7 +2219,7 @@ function uu(e, t, n, a) {
|
|
|
2219
2219
|
x.push(...M);
|
|
2220
2220
|
}
|
|
2221
2221
|
const v = x.reduce((M, O) => {
|
|
2222
|
-
const R = n.ISOWeek ? d(O) : m(O), W = M.find((j) => j.weekNumber === R), k = new
|
|
2222
|
+
const R = n.ISOWeek ? d(O) : m(O), W = M.find((j) => j.weekNumber === R), k = new yr(O, b, a);
|
|
2223
2223
|
return W ? W.days.push(k) : M.push(new td(R, [k])), M;
|
|
2224
2224
|
}, []), C = new ed(b, v);
|
|
2225
2225
|
return y.push(C), y;
|
|
@@ -2319,11 +2319,11 @@ function vu(e, t, n, a, r, o, i) {
|
|
|
2319
2319
|
}[e](n, t === "after" ? 1 : -1);
|
|
2320
2320
|
return t === "before" && a ? C = b([a, C]) : t === "after" && r && (C = w([r, C])), C;
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function Rr(e, t, n, a, r, o, i, s = 0) {
|
|
2323
2323
|
if (s > 365)
|
|
2324
2324
|
return;
|
|
2325
|
-
const l = vu(e, t, n.date, a, r, o, i), d = !!(o.disabled && We(l, o.disabled, i)), m = !!(o.hidden && We(l, o.hidden, i)), u = l, f = new
|
|
2326
|
-
return !d && !m ? f :
|
|
2325
|
+
const l = vu(e, t, n.date, a, r, o, i), d = !!(o.disabled && We(l, o.disabled, i)), m = !!(o.hidden && We(l, o.hidden, i)), u = l, f = new yr(l, u, i);
|
|
2326
|
+
return !d && !m ? f : Rr(e, t, f, a, r, o, i, s + 1);
|
|
2327
2327
|
}
|
|
2328
2328
|
function wu(e, t, n, a, r) {
|
|
2329
2329
|
const { autoFocus: o } = e, [i, s] = Me(), l = bu(t.days, n, a || (() => !1), i), [d, m] = Me(o ? l : void 0);
|
|
@@ -2337,7 +2337,7 @@ function wu(e, t, n, a, r) {
|
|
|
2337
2337
|
moveFocus: (y, b) => {
|
|
2338
2338
|
if (!d)
|
|
2339
2339
|
return;
|
|
2340
|
-
const w =
|
|
2340
|
+
const w = Rr(y, b, d, t.navStart, t.navEnd, e, r);
|
|
2341
2341
|
w && (t.goToDay(w), m(w));
|
|
2342
2342
|
}
|
|
2343
2343
|
};
|
|
@@ -2403,10 +2403,10 @@ function ka(e, t, n = _e) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
function Mu(e, t, n = _e) {
|
|
2405
2405
|
const a = Array.isArray(t) ? t : [t];
|
|
2406
|
-
if (a.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : n.isDate(s) ? Ie(e, s, !1, n) :
|
|
2406
|
+
if (a.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : n.isDate(s) ? Ie(e, s, !1, n) : Nr(s, n) ? s.some((l) => Ie(e, l, !1, n)) : Gn(s) ? s.from && s.to ? ka(e, { from: s.from, to: s.to }, n) : !1 : Cr(s) ? Su(e, s.dayOfWeek, n) : xr(s) ? n.isAfter(s.before, s.after) ? ka(e, {
|
|
2407
2407
|
from: n.addDays(s.after, 1),
|
|
2408
2408
|
to: n.addDays(s.before, -1)
|
|
2409
|
-
}, n) : We(e.from, s, n) || We(e.to, s, n) :
|
|
2409
|
+
}, n) : We(e.from, s, n) || We(e.to, s, n) : Sr(s) || Mr(s) ? We(e.from, s, n) || We(e.to, s, n) : !1))
|
|
2410
2410
|
return !0;
|
|
2411
2411
|
const i = a.filter((s) => typeof s == "function");
|
|
2412
2412
|
if (i.length) {
|
|
@@ -2500,13 +2500,13 @@ function Pu(e) {
|
|
|
2500
2500
|
K && (ce(K), x == null || x(K));
|
|
2501
2501
|
}, [K, ce, x]), gn = se(() => {
|
|
2502
2502
|
ae && (ce(ae), S == null || S(ae));
|
|
2503
|
-
}, [ce, ae, S]),
|
|
2503
|
+
}, [ce, ae, S]), pi = se((Y, ne) => (ee) => {
|
|
2504
2504
|
ee.preventDefault(), ee.stopPropagation(), Z(Y), P == null || P(Y.date, ne, ee), g == null || g(Y.date, ne, ee);
|
|
2505
|
-
}, [P, g, Z]),
|
|
2505
|
+
}, [P, g, Z]), gi = se((Y, ne) => (ee) => {
|
|
2506
2506
|
Z(Y), p == null || p(Y.date, ne, ee);
|
|
2507
|
-
}, [p, Z]),
|
|
2507
|
+
}, [p, Z]), bi = se((Y, ne) => (ee) => {
|
|
2508
2508
|
F(), f == null || f(Y.date, ne, ee);
|
|
2509
|
-
}, [F, f]),
|
|
2509
|
+
}, [F, f]), vi = se((Y, ne) => (ee) => {
|
|
2510
2510
|
const Le = {
|
|
2511
2511
|
ArrowLeft: ["day", t.dir === "rtl" ? "after" : "before"],
|
|
2512
2512
|
ArrowRight: ["day", t.dir === "rtl" ? "before" : "after"],
|
|
@@ -2523,27 +2523,27 @@ function Pu(e) {
|
|
|
2523
2523
|
V(Ne, zt);
|
|
2524
2524
|
}
|
|
2525
2525
|
y == null || y(Y.date, ne, ee);
|
|
2526
|
-
}, [V, y, t.dir]),
|
|
2526
|
+
}, [V, y, t.dir]), wi = se((Y, ne) => (ee) => {
|
|
2527
2527
|
b == null || b(Y.date, ne, ee);
|
|
2528
|
-
}, [b]),
|
|
2528
|
+
}, [b]), yi = se((Y, ne) => (ee) => {
|
|
2529
2529
|
w == null || w(Y.date, ne, ee);
|
|
2530
|
-
}, [w]),
|
|
2530
|
+
}, [w]), xi = se((Y) => (ne) => {
|
|
2531
2531
|
const ee = Number(ne.target.value), Le = o.setMonth(o.startOfMonth(Y), ee);
|
|
2532
2532
|
ce(Le);
|
|
2533
|
-
}, [o, ce]),
|
|
2533
|
+
}, [o, ce]), Si = se((Y) => (ne) => {
|
|
2534
2534
|
const ee = Number(ne.target.value), Le = o.setYear(o.startOfMonth(Y), ee);
|
|
2535
2535
|
ce(Le);
|
|
2536
|
-
}, [o, ce]), { className:
|
|
2536
|
+
}, [o, ce]), { className: Mi, style: Ci } = Dt(() => ({
|
|
2537
2537
|
className: [s[_.Root], t.className].filter(Boolean).join(" "),
|
|
2538
2538
|
style: { ...v == null ? void 0 : v[_.Root], ...t.style }
|
|
2539
|
-
}), [s, t.className, t.style, v]),
|
|
2539
|
+
}), [s, t.className, t.style, v]), Ni = _d(t), ba = ot(null);
|
|
2540
2540
|
iu(ba, !!t.animate, {
|
|
2541
2541
|
classNames: s,
|
|
2542
2542
|
months: H,
|
|
2543
2543
|
focused: z,
|
|
2544
2544
|
dateLib: o
|
|
2545
2545
|
});
|
|
2546
|
-
const
|
|
2546
|
+
const Di = {
|
|
2547
2547
|
dayPickerProps: t,
|
|
2548
2548
|
selected: A,
|
|
2549
2549
|
select: P,
|
|
@@ -2560,11 +2560,11 @@ function Pu(e) {
|
|
|
2560
2560
|
formatters: a
|
|
2561
2561
|
};
|
|
2562
2562
|
return T.createElement(
|
|
2563
|
-
|
|
2564
|
-
{ value:
|
|
2563
|
+
Dr.Provider,
|
|
2564
|
+
{ value: Di },
|
|
2565
2565
|
T.createElement(
|
|
2566
2566
|
n.Root,
|
|
2567
|
-
{ rootRef: t.animate ? ba : void 0, className:
|
|
2567
|
+
{ rootRef: t.animate ? ba : void 0, className: Mi, style: Ci, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], ...Ni },
|
|
2568
2568
|
T.createElement(
|
|
2569
2569
|
n.Months,
|
|
2570
2570
|
{ className: s[_.Months], style: v == null ? void 0 : v[_.Months] },
|
|
@@ -2582,8 +2582,8 @@ function Pu(e) {
|
|
|
2582
2582
|
T.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: s[_.MonthCaption], style: v == null ? void 0 : v[_.MonthCaption], calendarMonth: Y, displayIndex: ne }, l != null && l.startsWith("dropdown") ? T.createElement(
|
|
2583
2583
|
n.DropdownNav,
|
|
2584
2584
|
{ className: s[_.Dropdowns], style: v == null ? void 0 : v[_.Dropdowns] },
|
|
2585
|
-
l === "dropdown" || l === "dropdown-months" ? T.createElement(n.MonthsDropdown, { className: s[_.MonthsDropdown], "aria-label": te(), classNames: s, components: n, disabled: !!t.disableNavigation, onChange:
|
|
2586
|
-
l === "dropdown" || l === "dropdown-years" ? T.createElement(n.YearsDropdown, { className: s[_.YearsDropdown], "aria-label": pn(o.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange:
|
|
2585
|
+
l === "dropdown" || l === "dropdown-months" ? T.createElement(n.MonthsDropdown, { className: s[_.MonthsDropdown], "aria-label": te(), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: xi(Y.date), options: ee, style: v == null ? void 0 : v[_.Dropdown], value: o.getMonth(Y.date) }) : T.createElement("span", null, O(Y.date, o)),
|
|
2586
|
+
l === "dropdown" || l === "dropdown-years" ? T.createElement(n.YearsDropdown, { className: s[_.YearsDropdown], "aria-label": pn(o.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Si(Y.date), options: Le, style: v == null ? void 0 : v[_.Dropdown], value: o.getYear(Y.date) }) : T.createElement("span", null, j(Y.date, o)),
|
|
2587
2587
|
T.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
2588
2588
|
border: 0,
|
|
2589
2589
|
clip: "rect(0 0 0 0)",
|
|
@@ -2624,8 +2624,8 @@ function Pu(e) {
|
|
|
2624
2624
|
const { from: bn, to: vn } = A;
|
|
2625
2625
|
q[De.range_start] = !!(bn && vn && o.isSameDay(Te, bn)), q[De.range_end] = !!(bn && vn && o.isSameDay(Te, vn)), q[De.range_middle] = Ie(A, Te, !0, o);
|
|
2626
2626
|
}
|
|
2627
|
-
const
|
|
2628
|
-
return T.createElement(n.Day, { key: `${o.format(Te, "yyyy-MM-dd")}_${o.format(fe.displayMonth, "yyyy-MM")}`, day: fe, modifiers: q, className:
|
|
2627
|
+
const Pi = Yd(q, v, t.modifiersStyles), Ti = ad(q, s, t.modifiersClassNames), Ei = !bt && !q.hidden ? ye(Te, q, o.options, o) : void 0;
|
|
2628
|
+
return T.createElement(n.Day, { key: `${o.format(Te, "yyyy-MM-dd")}_${o.format(fe.displayMonth, "yyyy-MM")}`, day: fe, modifiers: q, className: Ti.join(" "), style: Pi, role: "gridcell", "aria-selected": q.selected || void 0, "aria-label": Ei, "data-day": o.format(Te, "yyyy-MM-dd"), "data-month": fe.outside ? o.format(Te, "yyyy-MM") : void 0, "data-selected": q.selected || void 0, "data-disabled": q.disabled || void 0, "data-hidden": q.hidden || void 0, "data-outside": fe.outside || void 0, "data-focused": q.focused || void 0, "data-today": q.today || void 0 }, !q.hidden && bt ? T.createElement(n.DayButton, { className: s[_.DayButton], style: v == null ? void 0 : v[_.DayButton], type: "button", day: fe, modifiers: q, disabled: q.disabled || void 0, tabIndex: I(fe) ? 0 : -1, "aria-label": oe(Te, q, o.options, o), onClick: pi(fe, q), onBlur: bi(fe, q), onFocus: gi(fe, q), onKeyDown: vi(fe, q), onMouseEnter: wi(fe, q), onMouseLeave: yi(fe, q) }, M(Te, o.options, o)) : !q.hidden && M(fe.date, o.options, o));
|
|
2629
2629
|
})
|
|
2630
2630
|
)))
|
|
2631
2631
|
)
|
|
@@ -2737,7 +2737,7 @@ function Tu({
|
|
|
2737
2737
|
},
|
|
2738
2738
|
components: {
|
|
2739
2739
|
Root: ({ className: d, rootRef: m, ...u }) => /* @__PURE__ */ c.jsx("div", { "data-slot": "calendar", ref: m, className: N(d), ...u }),
|
|
2740
|
-
Chevron: ({ className: d, orientation: m, ...u }) => m === "left" ? /* @__PURE__ */ c.jsx(
|
|
2740
|
+
Chevron: ({ className: d, orientation: m, ...u }) => m === "left" ? /* @__PURE__ */ c.jsx(ar, { className: N("al-size-4", d), ...u }) : m === "right" ? /* @__PURE__ */ c.jsx(Jt, { className: N("al-size-4", d), ...u }) : /* @__PURE__ */ c.jsx(rr, { className: N("al-size-4", d), ...u }),
|
|
2741
2741
|
DayButton: Eu,
|
|
2742
2742
|
WeekNumber: ({ children: d, ...m }) => /* @__PURE__ */ c.jsx("td", { ...m, children: /* @__PURE__ */ c.jsx("div", { className: "al-flex al-size-[--cell-size] al-items-center al-justify-center al-text-center", children: d }) }),
|
|
2743
2743
|
...i
|
|
@@ -2776,7 +2776,7 @@ function Eu({
|
|
|
2776
2776
|
}
|
|
2777
2777
|
);
|
|
2778
2778
|
}
|
|
2779
|
-
var
|
|
2779
|
+
var _r = /* @__PURE__ */ ((e) => (e.LAST_DAY = "Last day", e.LAST_7_DAYS = "Last 7 days", e.LAST_28_DAYS = "Last 28 days", e.LAST_30_DAYS = "Last 30 days", e.LAST_3_MONTHS = "Last 3 months", e.LAST_6_MONTHS = "Last 6 months", e.LAST_12_MONTHS = "Last 12 months", e))(_r || {});
|
|
2780
2780
|
const Ra = (e, t) => {
|
|
2781
2781
|
const n = new B(/* @__PURE__ */ new Date(), t);
|
|
2782
2782
|
switch (n.setHours(23, 59, 59, 999), e) {
|
|
@@ -2815,11 +2815,11 @@ const Ra = (e, t) => {
|
|
|
2815
2815
|
return a.setHours(0, 0, 0, 0), { from: a, to: n };
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
|
-
}, _a = (e, t) => Rn(e.from, t.from) && Rn(e.to, t.to), ku = (e) => !e.from || !e.to ? !1 : e.from <= e.to,
|
|
2818
|
+
}, _a = (e, t) => Rn(e.from, t.from) && Rn(e.to, t.to), ku = (e) => !e.from || !e.to ? !1 : e.from <= e.to, yp = ({
|
|
2819
2819
|
selectedRange: e,
|
|
2820
2820
|
onChange: t,
|
|
2821
2821
|
tz: n = Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
2822
|
-
predefinedRanges: a = Object.values(
|
|
2822
|
+
predefinedRanges: a = Object.values(_r).filter(
|
|
2823
2823
|
(s) => s !== "Last 30 days"
|
|
2824
2824
|
/* LAST_30_DAYS */
|
|
2825
2825
|
),
|
|
@@ -2955,12 +2955,34 @@ const Ra = (e, t) => {
|
|
|
2955
2955
|
] })
|
|
2956
2956
|
] }) })
|
|
2957
2957
|
] });
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2958
|
+
}, Ru = h.forwardRef(
|
|
2959
|
+
({ onChange: e, debounceMs: t = 0, ...n }, a) => {
|
|
2960
|
+
const [r, o] = h.useState(
|
|
2961
|
+
n.value || n.defaultValue || ""
|
|
2962
|
+
), i = h.useRef(null);
|
|
2963
|
+
h.useEffect(() => {
|
|
2964
|
+
n.value !== void 0 && o(n.value);
|
|
2965
|
+
}, [n.value]);
|
|
2966
|
+
const s = h.useCallback(
|
|
2967
|
+
(l) => {
|
|
2968
|
+
const d = l.target.value;
|
|
2969
|
+
o(d), i.current && clearTimeout(i.current), e && (t === 0 ? e(d) : i.current = setTimeout(() => {
|
|
2970
|
+
e(d);
|
|
2971
|
+
}, t));
|
|
2972
|
+
},
|
|
2973
|
+
[e, t]
|
|
2974
|
+
);
|
|
2975
|
+
return h.useEffect(() => () => {
|
|
2976
|
+
i.current && clearTimeout(i.current);
|
|
2977
|
+
}, []), /* @__PURE__ */ c.jsx(Qa, { ...n, value: r, onChange: s, ref: a });
|
|
2978
|
+
}
|
|
2979
|
+
);
|
|
2980
|
+
Ru.displayName = "DebouncedInput";
|
|
2981
|
+
var qn = "Avatar", [_u, xp] = He(qn), [Ou, Or] = _u(qn), jr = h.forwardRef(
|
|
2960
2982
|
(e, t) => {
|
|
2961
2983
|
const { __scopeAvatar: n, ...a } = e, [r, o] = h.useState("idle");
|
|
2962
2984
|
return /* @__PURE__ */ c.jsx(
|
|
2963
|
-
|
|
2985
|
+
Ou,
|
|
2964
2986
|
{
|
|
2965
2987
|
scope: n,
|
|
2966
2988
|
imageLoadingStatus: r,
|
|
@@ -2970,11 +2992,11 @@ var qn = "Avatar", [Ru, yp] = He(qn), [_u, _r] = Ru(qn), Or = h.forwardRef(
|
|
|
2970
2992
|
);
|
|
2971
2993
|
}
|
|
2972
2994
|
);
|
|
2973
|
-
|
|
2974
|
-
var
|
|
2995
|
+
jr.displayName = qn;
|
|
2996
|
+
var Ar = "AvatarImage", Ir = h.forwardRef(
|
|
2975
2997
|
(e, t) => {
|
|
2976
2998
|
const { __scopeAvatar: n, src: a, onLoadingStatusChange: r = () => {
|
|
2977
|
-
}, ...o } = e, i =
|
|
2999
|
+
}, ...o } = e, i = Or(Ar, n), s = ju(a, o.referrerPolicy), l = Se((d) => {
|
|
2978
3000
|
r(d), i.onImageLoadingStatusChange(d);
|
|
2979
3001
|
});
|
|
2980
3002
|
return Xt(() => {
|
|
@@ -2982,10 +3004,10 @@ var jr = "AvatarImage", Ar = h.forwardRef(
|
|
|
2982
3004
|
}, [s, l]), s === "loaded" ? /* @__PURE__ */ c.jsx(J.img, { ...o, ref: t, src: a }) : null;
|
|
2983
3005
|
}
|
|
2984
3006
|
);
|
|
2985
|
-
|
|
2986
|
-
var
|
|
3007
|
+
Ir.displayName = Ar;
|
|
3008
|
+
var Wr = "AvatarFallback", zr = h.forwardRef(
|
|
2987
3009
|
(e, t) => {
|
|
2988
|
-
const { __scopeAvatar: n, delayMs: a, ...r } = e, o =
|
|
3010
|
+
const { __scopeAvatar: n, delayMs: a, ...r } = e, o = Or(Wr, n), [i, s] = h.useState(a === void 0);
|
|
2989
3011
|
return h.useEffect(() => {
|
|
2990
3012
|
if (a !== void 0) {
|
|
2991
3013
|
const l = window.setTimeout(() => s(!0), a);
|
|
@@ -2994,8 +3016,8 @@ var Ir = "AvatarFallback", Wr = h.forwardRef(
|
|
|
2994
3016
|
}, [a]), i && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c.jsx(J.span, { ...r, ref: t }) : null;
|
|
2995
3017
|
}
|
|
2996
3018
|
);
|
|
2997
|
-
|
|
2998
|
-
function
|
|
3019
|
+
zr.displayName = Wr;
|
|
3020
|
+
function ju(e, t) {
|
|
2999
3021
|
const [n, a] = h.useState("idle");
|
|
3000
3022
|
return Xt(() => {
|
|
3001
3023
|
if (!e) {
|
|
@@ -3011,9 +3033,9 @@ function Ou(e, t) {
|
|
|
3011
3033
|
};
|
|
3012
3034
|
}, [e, t]), n;
|
|
3013
3035
|
}
|
|
3014
|
-
var
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3036
|
+
var Lr = jr, Fr = Ir, $r = zr;
|
|
3037
|
+
const Au = en(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3038
|
+
Lr,
|
|
3017
3039
|
{
|
|
3018
3040
|
ref: n,
|
|
3019
3041
|
className: N(
|
|
@@ -3023,18 +3045,18 @@ const ju = en(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3023
3045
|
...t
|
|
3024
3046
|
}
|
|
3025
3047
|
));
|
|
3026
|
-
|
|
3027
|
-
const
|
|
3028
|
-
|
|
3048
|
+
Au.displayName = Lr.displayName;
|
|
3049
|
+
const Iu = en(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3050
|
+
Fr,
|
|
3029
3051
|
{
|
|
3030
3052
|
ref: n,
|
|
3031
3053
|
className: N("al-aspect-square al-h-full al-w-full", e),
|
|
3032
3054
|
...t
|
|
3033
3055
|
}
|
|
3034
3056
|
));
|
|
3035
|
-
|
|
3036
|
-
const
|
|
3037
|
-
|
|
3057
|
+
Iu.displayName = Fr.displayName;
|
|
3058
|
+
const Wu = en(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3059
|
+
$r,
|
|
3038
3060
|
{
|
|
3039
3061
|
ref: n,
|
|
3040
3062
|
className: N(
|
|
@@ -3044,8 +3066,8 @@ const Iu = en(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3044
3066
|
...t
|
|
3045
3067
|
}
|
|
3046
3068
|
));
|
|
3047
|
-
|
|
3048
|
-
var Un = "ToastProvider", [Xn,
|
|
3069
|
+
Wu.displayName = $r.displayName;
|
|
3070
|
+
var Un = "ToastProvider", [Xn, zu, Lu] = Bn("Toast"), [Hr, Sp] = He("Toast", [Lu]), [Fu, nn] = Hr(Un), Yr = (e) => {
|
|
3049
3071
|
const {
|
|
3050
3072
|
__scopeToast: t,
|
|
3051
3073
|
label: n = "Notification",
|
|
@@ -3057,7 +3079,7 @@ var Un = "ToastProvider", [Xn, Wu, zu] = Bn("Toast"), [$r, xp] = He("Toast", [zu
|
|
|
3057
3079
|
return n.trim() || console.error(
|
|
3058
3080
|
`Invalid prop \`label\` supplied to \`${Un}\`. Expected non-empty \`string\`.`
|
|
3059
3081
|
), /* @__PURE__ */ c.jsx(Xn.Provider, { scope: t, children: /* @__PURE__ */ c.jsx(
|
|
3060
|
-
|
|
3082
|
+
Fu,
|
|
3061
3083
|
{
|
|
3062
3084
|
scope: t,
|
|
3063
3085
|
label: n,
|
|
@@ -3075,15 +3097,15 @@ var Un = "ToastProvider", [Xn, Wu, zu] = Bn("Toast"), [$r, xp] = He("Toast", [zu
|
|
|
3075
3097
|
}
|
|
3076
3098
|
) });
|
|
3077
3099
|
};
|
|
3078
|
-
|
|
3079
|
-
var
|
|
3100
|
+
Yr.displayName = Un;
|
|
3101
|
+
var Br = "ToastViewport", $u = ["F8"], _n = "toast.viewportPause", On = "toast.viewportResume", Vr = h.forwardRef(
|
|
3080
3102
|
(e, t) => {
|
|
3081
3103
|
const {
|
|
3082
3104
|
__scopeToast: n,
|
|
3083
|
-
hotkey: a =
|
|
3105
|
+
hotkey: a = $u,
|
|
3084
3106
|
label: r = "Notifications ({hotkey})",
|
|
3085
3107
|
...o
|
|
3086
|
-
} = e, i = nn(
|
|
3108
|
+
} = e, i = nn(Br, n), s = zu(n), l = h.useRef(null), d = h.useRef(null), m = h.useRef(null), u = h.useRef(null), f = he(t, u, i.onViewportChange), g = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), p = i.toastCount > 0;
|
|
3087
3109
|
h.useEffect(() => {
|
|
3088
3110
|
const b = (w) => {
|
|
3089
3111
|
var x;
|
|
@@ -3116,7 +3138,7 @@ var Yr = "ToastViewport", Fu = ["F8"], _n = "toast.viewportPause", On = "toast.v
|
|
|
3116
3138
|
const y = h.useCallback(
|
|
3117
3139
|
({ tabbingDirection: b }) => {
|
|
3118
3140
|
const S = s().map((x) => {
|
|
3119
|
-
const D = x.ref.current, v = [D, ...
|
|
3141
|
+
const D = x.ref.current, v = [D, ...ef(D)];
|
|
3120
3142
|
return b === "forwards" ? v : v.reverse();
|
|
3121
3143
|
});
|
|
3122
3144
|
return (b === "forwards" ? S.reverse() : S).flat();
|
|
@@ -3142,7 +3164,7 @@ var Yr = "ToastViewport", Fu = ["F8"], _n = "toast.viewportPause", On = "toast.v
|
|
|
3142
3164
|
return b.addEventListener("keydown", w), () => b.removeEventListener("keydown", w);
|
|
3143
3165
|
}
|
|
3144
3166
|
}, [s, y]), /* @__PURE__ */ c.jsxs(
|
|
3145
|
-
|
|
3167
|
+
nl,
|
|
3146
3168
|
{
|
|
3147
3169
|
ref: l,
|
|
3148
3170
|
role: "region",
|
|
@@ -3180,12 +3202,12 @@ var Yr = "ToastViewport", Fu = ["F8"], _n = "toast.viewportPause", On = "toast.v
|
|
|
3180
3202
|
);
|
|
3181
3203
|
}
|
|
3182
3204
|
);
|
|
3183
|
-
|
|
3184
|
-
var
|
|
3205
|
+
Vr.displayName = Br;
|
|
3206
|
+
var Gr = "ToastFocusProxy", jn = h.forwardRef(
|
|
3185
3207
|
(e, t) => {
|
|
3186
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: a, ...r } = e, o = nn(
|
|
3208
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: a, ...r } = e, o = nn(Gr, n);
|
|
3187
3209
|
return /* @__PURE__ */ c.jsx(
|
|
3188
|
-
|
|
3210
|
+
Ja,
|
|
3189
3211
|
{
|
|
3190
3212
|
"aria-hidden": !0,
|
|
3191
3213
|
tabIndex: 0,
|
|
@@ -3201,8 +3223,8 @@ var Vr = "ToastFocusProxy", jn = h.forwardRef(
|
|
|
3201
3223
|
);
|
|
3202
3224
|
}
|
|
3203
3225
|
);
|
|
3204
|
-
jn.displayName =
|
|
3205
|
-
var an = "Toast",
|
|
3226
|
+
jn.displayName = Gr;
|
|
3227
|
+
var an = "Toast", Hu = "toast.swipeStart", Yu = "toast.swipeMove", Bu = "toast.swipeCancel", Vu = "toast.swipeEnd", Kr = h.forwardRef(
|
|
3206
3228
|
(e, t) => {
|
|
3207
3229
|
const { forceMount: n, open: a, defaultOpen: r, onOpenChange: o, ...i } = e, [s = !0, l] = ut({
|
|
3208
3230
|
prop: a,
|
|
@@ -3210,7 +3232,7 @@ var an = "Toast", $u = "toast.swipeStart", Hu = "toast.swipeMove", Yu = "toast.s
|
|
|
3210
3232
|
onChange: o
|
|
3211
3233
|
});
|
|
3212
3234
|
return /* @__PURE__ */ c.jsx(Qe, { present: n || s, children: /* @__PURE__ */ c.jsx(
|
|
3213
|
-
|
|
3235
|
+
qu,
|
|
3214
3236
|
{
|
|
3215
3237
|
open: s,
|
|
3216
3238
|
...i,
|
|
@@ -3236,11 +3258,11 @@ var an = "Toast", $u = "toast.swipeStart", Hu = "toast.swipeMove", Yu = "toast.s
|
|
|
3236
3258
|
) });
|
|
3237
3259
|
}
|
|
3238
3260
|
);
|
|
3239
|
-
|
|
3240
|
-
var [
|
|
3261
|
+
Kr.displayName = an;
|
|
3262
|
+
var [Gu, Ku] = Hr(an, {
|
|
3241
3263
|
onClose() {
|
|
3242
3264
|
}
|
|
3243
|
-
}),
|
|
3265
|
+
}), qu = h.forwardRef(
|
|
3244
3266
|
(e, t) => {
|
|
3245
3267
|
const {
|
|
3246
3268
|
__scopeToast: n,
|
|
@@ -3281,10 +3303,10 @@ var [Vu, Gu] = $r(an, {
|
|
|
3281
3303
|
}, [y.viewport, v, l, d, j]), h.useEffect(() => {
|
|
3282
3304
|
o && !y.isClosePausedRef.current && j(v);
|
|
3283
3305
|
}, [o, v, y.isClosePausedRef, j]), h.useEffect(() => (R(), () => W()), [R, W]);
|
|
3284
|
-
const X = h.useMemo(() => b ?
|
|
3306
|
+
const X = h.useMemo(() => b ? eo(b) : null, [b]);
|
|
3285
3307
|
return y.viewport ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3286
3308
|
X && /* @__PURE__ */ c.jsx(
|
|
3287
|
-
|
|
3309
|
+
Uu,
|
|
3288
3310
|
{
|
|
3289
3311
|
__scopeToast: n,
|
|
3290
3312
|
role: "status",
|
|
@@ -3293,9 +3315,9 @@ var [Vu, Gu] = $r(an, {
|
|
|
3293
3315
|
children: X
|
|
3294
3316
|
}
|
|
3295
3317
|
),
|
|
3296
|
-
/* @__PURE__ */ c.jsx(
|
|
3318
|
+
/* @__PURE__ */ c.jsx(Gu, { scope: n, onClose: k, children: Tl.createPortal(
|
|
3297
3319
|
/* @__PURE__ */ c.jsx(Xn.ItemSlot, { scope: n, children: /* @__PURE__ */ c.jsx(
|
|
3298
|
-
|
|
3320
|
+
al,
|
|
3299
3321
|
{
|
|
3300
3322
|
asChild: !0,
|
|
3301
3323
|
onEscapeKeyDown: L(s, () => {
|
|
@@ -3322,9 +3344,9 @@ var [Vu, Gu] = $r(an, {
|
|
|
3322
3344
|
onPointerMove: L(e.onPointerMove, (E) => {
|
|
3323
3345
|
if (!x.current) return;
|
|
3324
3346
|
const H = E.clientX - x.current.x, G = E.clientY - x.current.y, ie = !!D.current, K = ["left", "right"].includes(y.swipeDirection), ae = ["left", "up"].includes(y.swipeDirection) ? Math.min : Math.max, ce = K ? ae(0, H) : 0, je = K ? 0 : ae(0, G), de = E.pointerType === "touch" ? 10 : 2, P = { x: ce, y: je }, A = { originalEvent: E, delta: P };
|
|
3325
|
-
ie ? (D.current = P, Ft(
|
|
3347
|
+
ie ? (D.current = P, Ft(Yu, u, A, {
|
|
3326
3348
|
discrete: !1
|
|
3327
|
-
})) : Oa(P, y.swipeDirection, de) ? (D.current = P, Ft(
|
|
3349
|
+
})) : Oa(P, y.swipeDirection, de) ? (D.current = P, Ft(Hu, m, A, {
|
|
3328
3350
|
discrete: !1
|
|
3329
3351
|
}), E.target.setPointerCapture(E.pointerId)) : (Math.abs(H) > de || Math.abs(G) > de) && (x.current = null);
|
|
3330
3352
|
}),
|
|
@@ -3332,10 +3354,10 @@ var [Vu, Gu] = $r(an, {
|
|
|
3332
3354
|
const H = D.current, G = E.target;
|
|
3333
3355
|
if (G.hasPointerCapture(E.pointerId) && G.releasePointerCapture(E.pointerId), D.current = null, x.current = null, H) {
|
|
3334
3356
|
const ie = E.currentTarget, K = { originalEvent: E, delta: H };
|
|
3335
|
-
Oa(H, y.swipeDirection, y.swipeThreshold) ? Ft(
|
|
3357
|
+
Oa(H, y.swipeDirection, y.swipeThreshold) ? Ft(Vu, g, K, {
|
|
3336
3358
|
discrete: !0
|
|
3337
3359
|
}) : Ft(
|
|
3338
|
-
|
|
3360
|
+
Bu,
|
|
3339
3361
|
f,
|
|
3340
3362
|
K,
|
|
3341
3363
|
{
|
|
@@ -3354,43 +3376,43 @@ var [Vu, Gu] = $r(an, {
|
|
|
3354
3376
|
) })
|
|
3355
3377
|
] }) : null;
|
|
3356
3378
|
}
|
|
3357
|
-
),
|
|
3379
|
+
), Uu = (e) => {
|
|
3358
3380
|
const { __scopeToast: t, children: n, ...a } = e, r = nn(an, t), [o, i] = h.useState(!1), [s, l] = h.useState(!1);
|
|
3359
|
-
return
|
|
3381
|
+
return Qu(() => i(!0)), h.useEffect(() => {
|
|
3360
3382
|
const d = window.setTimeout(() => l(!0), 1e3);
|
|
3361
3383
|
return () => window.clearTimeout(d);
|
|
3362
|
-
}, []), s ? null : /* @__PURE__ */ c.jsx(
|
|
3384
|
+
}, []), s ? null : /* @__PURE__ */ c.jsx(rl, { asChild: !0, children: /* @__PURE__ */ c.jsx(Ja, { ...a, children: o && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3363
3385
|
r.label,
|
|
3364
3386
|
" ",
|
|
3365
3387
|
n
|
|
3366
3388
|
] }) }) });
|
|
3367
|
-
},
|
|
3389
|
+
}, Xu = "ToastTitle", qr = h.forwardRef(
|
|
3368
3390
|
(e, t) => {
|
|
3369
3391
|
const { __scopeToast: n, ...a } = e;
|
|
3370
3392
|
return /* @__PURE__ */ c.jsx(J.div, { ...a, ref: t });
|
|
3371
3393
|
}
|
|
3372
3394
|
);
|
|
3373
|
-
|
|
3374
|
-
var
|
|
3395
|
+
qr.displayName = Xu;
|
|
3396
|
+
var Zu = "ToastDescription", Ur = h.forwardRef(
|
|
3375
3397
|
(e, t) => {
|
|
3376
3398
|
const { __scopeToast: n, ...a } = e;
|
|
3377
3399
|
return /* @__PURE__ */ c.jsx(J.div, { ...a, ref: t });
|
|
3378
3400
|
}
|
|
3379
3401
|
);
|
|
3380
|
-
|
|
3381
|
-
var
|
|
3402
|
+
Ur.displayName = Zu;
|
|
3403
|
+
var Xr = "ToastAction", Zr = h.forwardRef(
|
|
3382
3404
|
(e, t) => {
|
|
3383
3405
|
const { altText: n, ...a } = e;
|
|
3384
|
-
return n.trim() ? /* @__PURE__ */ c.jsx(
|
|
3385
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
3406
|
+
return n.trim() ? /* @__PURE__ */ c.jsx(Jr, { altText: n, asChild: !0, children: /* @__PURE__ */ c.jsx(Zn, { ...a, ref: t }) }) : (console.error(
|
|
3407
|
+
`Invalid prop \`altText\` supplied to \`${Xr}\`. Expected non-empty \`string\`.`
|
|
3386
3408
|
), null);
|
|
3387
3409
|
}
|
|
3388
3410
|
);
|
|
3389
|
-
|
|
3390
|
-
var
|
|
3411
|
+
Zr.displayName = Xr;
|
|
3412
|
+
var Qr = "ToastClose", Zn = h.forwardRef(
|
|
3391
3413
|
(e, t) => {
|
|
3392
|
-
const { __scopeToast: n, ...a } = e, r =
|
|
3393
|
-
return /* @__PURE__ */ c.jsx(
|
|
3414
|
+
const { __scopeToast: n, ...a } = e, r = Ku(Qr, n);
|
|
3415
|
+
return /* @__PURE__ */ c.jsx(Jr, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
3394
3416
|
J.button,
|
|
3395
3417
|
{
|
|
3396
3418
|
type: "button",
|
|
@@ -3401,8 +3423,8 @@ var Zr = "ToastClose", Zn = h.forwardRef(
|
|
|
3401
3423
|
) });
|
|
3402
3424
|
}
|
|
3403
3425
|
);
|
|
3404
|
-
Zn.displayName =
|
|
3405
|
-
var
|
|
3426
|
+
Zn.displayName = Qr;
|
|
3427
|
+
var Jr = h.forwardRef((e, t) => {
|
|
3406
3428
|
const { __scopeToast: n, altText: a, ...r } = e;
|
|
3407
3429
|
return /* @__PURE__ */ c.jsx(
|
|
3408
3430
|
J.div,
|
|
@@ -3414,29 +3436,29 @@ var Qr = h.forwardRef((e, t) => {
|
|
|
3414
3436
|
}
|
|
3415
3437
|
);
|
|
3416
3438
|
});
|
|
3417
|
-
function
|
|
3439
|
+
function eo(e) {
|
|
3418
3440
|
const t = [];
|
|
3419
3441
|
return Array.from(e.childNodes).forEach((a) => {
|
|
3420
|
-
if (a.nodeType === a.TEXT_NODE && a.textContent && t.push(a.textContent),
|
|
3442
|
+
if (a.nodeType === a.TEXT_NODE && a.textContent && t.push(a.textContent), Ju(a)) {
|
|
3421
3443
|
const r = a.ariaHidden || a.hidden || a.style.display === "none", o = a.dataset.radixToastAnnounceExclude === "";
|
|
3422
3444
|
if (!r)
|
|
3423
3445
|
if (o) {
|
|
3424
3446
|
const i = a.dataset.radixToastAnnounceAlt;
|
|
3425
3447
|
i && t.push(i);
|
|
3426
3448
|
} else
|
|
3427
|
-
t.push(...
|
|
3449
|
+
t.push(...eo(a));
|
|
3428
3450
|
}
|
|
3429
3451
|
}), t;
|
|
3430
3452
|
}
|
|
3431
3453
|
function Ft(e, t, n, { discrete: a }) {
|
|
3432
3454
|
const r = n.originalEvent.currentTarget, o = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
3433
|
-
t && r.addEventListener(e, t, { once: !0 }), a ?
|
|
3455
|
+
t && r.addEventListener(e, t, { once: !0 }), a ? ol(r, o) : r.dispatchEvent(o);
|
|
3434
3456
|
}
|
|
3435
3457
|
var Oa = (e, t, n = 0) => {
|
|
3436
3458
|
const a = Math.abs(e.x), r = Math.abs(e.y), o = a > r;
|
|
3437
3459
|
return t === "left" || t === "right" ? o && a > n : !o && r > n;
|
|
3438
3460
|
};
|
|
3439
|
-
function
|
|
3461
|
+
function Qu(e = () => {
|
|
3440
3462
|
}) {
|
|
3441
3463
|
const t = Se(e);
|
|
3442
3464
|
Xt(() => {
|
|
@@ -3446,10 +3468,10 @@ function Zu(e = () => {
|
|
|
3446
3468
|
};
|
|
3447
3469
|
}, [t]);
|
|
3448
3470
|
}
|
|
3449
|
-
function
|
|
3471
|
+
function Ju(e) {
|
|
3450
3472
|
return e.nodeType === e.ELEMENT_NODE;
|
|
3451
3473
|
}
|
|
3452
|
-
function
|
|
3474
|
+
function ef(e) {
|
|
3453
3475
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
3454
3476
|
acceptNode: (a) => {
|
|
3455
3477
|
const r = a.tagName === "INPUT" && a.type === "hidden";
|
|
@@ -3463,9 +3485,9 @@ function Cn(e) {
|
|
|
3463
3485
|
const t = document.activeElement;
|
|
3464
3486
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
3465
3487
|
}
|
|
3466
|
-
var
|
|
3467
|
-
const
|
|
3468
|
-
|
|
3488
|
+
var tf = Yr, to = Vr, no = Kr, ao = qr, ro = Ur, oo = Zr, so = Zn;
|
|
3489
|
+
const nf = tf, io = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3490
|
+
to,
|
|
3469
3491
|
{
|
|
3470
3492
|
ref: n,
|
|
3471
3493
|
className: N(
|
|
@@ -3477,8 +3499,8 @@ const tf = ef, so = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
3477
3499
|
...t
|
|
3478
3500
|
}
|
|
3479
3501
|
));
|
|
3480
|
-
|
|
3481
|
-
const
|
|
3502
|
+
io.displayName = to.displayName;
|
|
3503
|
+
const af = ft(
|
|
3482
3504
|
"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",
|
|
3483
3505
|
{
|
|
3484
3506
|
variants: {
|
|
@@ -3491,19 +3513,19 @@ const nf = ft(
|
|
|
3491
3513
|
variant: "default"
|
|
3492
3514
|
}
|
|
3493
3515
|
}
|
|
3494
|
-
),
|
|
3495
|
-
|
|
3516
|
+
), lo = h.forwardRef(({ className: e, variant: t, ...n }, a) => /* @__PURE__ */ c.jsx(
|
|
3517
|
+
no,
|
|
3496
3518
|
{
|
|
3497
3519
|
ref: a,
|
|
3498
|
-
className: N(
|
|
3520
|
+
className: N(af({ variant: t }), e),
|
|
3499
3521
|
role: "alert",
|
|
3500
3522
|
"aria-label": t === "destructive" ? "error-notification" : "notification",
|
|
3501
3523
|
...n
|
|
3502
3524
|
}
|
|
3503
3525
|
));
|
|
3504
|
-
|
|
3505
|
-
const
|
|
3506
|
-
|
|
3526
|
+
lo.displayName = no.displayName;
|
|
3527
|
+
const rf = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3528
|
+
oo,
|
|
3507
3529
|
{
|
|
3508
3530
|
ref: n,
|
|
3509
3531
|
className: N(
|
|
@@ -3514,9 +3536,9 @@ const af = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3514
3536
|
...t
|
|
3515
3537
|
}
|
|
3516
3538
|
));
|
|
3517
|
-
|
|
3518
|
-
const
|
|
3519
|
-
|
|
3539
|
+
rf.displayName = oo.displayName;
|
|
3540
|
+
const co = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3541
|
+
so,
|
|
3520
3542
|
{
|
|
3521
3543
|
ref: n,
|
|
3522
3544
|
className: N(
|
|
@@ -3527,12 +3549,12 @@ const lo = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3527
3549
|
role: "button",
|
|
3528
3550
|
"aria-label": "close notification",
|
|
3529
3551
|
...t,
|
|
3530
|
-
children: /* @__PURE__ */ c.jsx(
|
|
3552
|
+
children: /* @__PURE__ */ c.jsx(or, { className: "al-h-4 al-w-4" })
|
|
3531
3553
|
}
|
|
3532
3554
|
));
|
|
3533
|
-
|
|
3534
|
-
const
|
|
3535
|
-
|
|
3555
|
+
co.displayName = so.displayName;
|
|
3556
|
+
const uo = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3557
|
+
ao,
|
|
3536
3558
|
{
|
|
3537
3559
|
ref: n,
|
|
3538
3560
|
className: N("al-text-sm al-font-semibold", e),
|
|
@@ -3541,9 +3563,9 @@ const co = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3541
3563
|
...t
|
|
3542
3564
|
}
|
|
3543
3565
|
));
|
|
3544
|
-
|
|
3545
|
-
const
|
|
3546
|
-
|
|
3566
|
+
uo.displayName = ao.displayName;
|
|
3567
|
+
const fo = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
3568
|
+
ro,
|
|
3547
3569
|
{
|
|
3548
3570
|
ref: n,
|
|
3549
3571
|
className: N("al-text-sm al-opacity-90", e),
|
|
@@ -3551,37 +3573,37 @@ const uo = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
3551
3573
|
...t
|
|
3552
3574
|
}
|
|
3553
3575
|
));
|
|
3554
|
-
|
|
3555
|
-
function
|
|
3556
|
-
const { toasts: e } =
|
|
3557
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3576
|
+
fo.displayName = ro.displayName;
|
|
3577
|
+
function Mp() {
|
|
3578
|
+
const { toasts: e } = ki();
|
|
3579
|
+
return /* @__PURE__ */ c.jsxs(nf, { children: [
|
|
3558
3580
|
e.map(function({ id: t, title: n, description: a, action: r, ...o }) {
|
|
3559
|
-
return /* @__PURE__ */ c.jsxs(
|
|
3581
|
+
return /* @__PURE__ */ c.jsxs(lo, { ...o, children: [
|
|
3560
3582
|
/* @__PURE__ */ c.jsxs("div", { className: "al-grid al-gap-1", children: [
|
|
3561
|
-
n && /* @__PURE__ */ c.jsx(
|
|
3562
|
-
a && /* @__PURE__ */ c.jsx(
|
|
3583
|
+
n && /* @__PURE__ */ c.jsx(uo, { children: n }),
|
|
3584
|
+
a && /* @__PURE__ */ c.jsx(fo, { children: a })
|
|
3563
3585
|
] }),
|
|
3564
3586
|
r,
|
|
3565
|
-
/* @__PURE__ */ c.jsx(
|
|
3587
|
+
/* @__PURE__ */ c.jsx(co, {})
|
|
3566
3588
|
] }, t);
|
|
3567
3589
|
}),
|
|
3568
|
-
/* @__PURE__ */ c.jsx(
|
|
3590
|
+
/* @__PURE__ */ c.jsx(io, {})
|
|
3569
3591
|
] });
|
|
3570
3592
|
}
|
|
3571
|
-
var Qn = "Progress", Jn = 100, [
|
|
3593
|
+
var Qn = "Progress", Jn = 100, [of, Cp] = He(Qn), [sf, lf] = of(Qn), mo = h.forwardRef(
|
|
3572
3594
|
(e, t) => {
|
|
3573
3595
|
const {
|
|
3574
3596
|
__scopeProgress: n,
|
|
3575
3597
|
value: a = null,
|
|
3576
3598
|
max: r,
|
|
3577
|
-
getValueLabel: o =
|
|
3599
|
+
getValueLabel: o = cf,
|
|
3578
3600
|
...i
|
|
3579
3601
|
} = e;
|
|
3580
|
-
(r || r === 0) && !ja(r) && console.error(
|
|
3602
|
+
(r || r === 0) && !ja(r) && console.error(df(`${r}`, "Progress"));
|
|
3581
3603
|
const s = ja(r) ? r : Jn;
|
|
3582
|
-
a !== null && !Aa(a, s) && console.error(
|
|
3604
|
+
a !== null && !Aa(a, s) && console.error(uf(`${a}`, "Progress"));
|
|
3583
3605
|
const l = Aa(a, s) ? a : null, d = Yt(l) ? o(l, s) : void 0;
|
|
3584
|
-
return /* @__PURE__ */ c.jsx(
|
|
3606
|
+
return /* @__PURE__ */ c.jsx(sf, { scope: n, value: l, max: s, children: /* @__PURE__ */ c.jsx(
|
|
3585
3607
|
J.div,
|
|
3586
3608
|
{
|
|
3587
3609
|
"aria-valuemax": s,
|
|
@@ -3589,7 +3611,7 @@ var Qn = "Progress", Jn = 100, [rf, Mp] = He(Qn), [of, sf] = rf(Qn), fo = h.forw
|
|
|
3589
3611
|
"aria-valuenow": Yt(l) ? l : void 0,
|
|
3590
3612
|
"aria-valuetext": d,
|
|
3591
3613
|
role: "progressbar",
|
|
3592
|
-
"data-state":
|
|
3614
|
+
"data-state": go(l, s),
|
|
3593
3615
|
"data-value": l ?? void 0,
|
|
3594
3616
|
"data-max": s,
|
|
3595
3617
|
...i,
|
|
@@ -3598,14 +3620,14 @@ var Qn = "Progress", Jn = 100, [rf, Mp] = He(Qn), [of, sf] = rf(Qn), fo = h.forw
|
|
|
3598
3620
|
) });
|
|
3599
3621
|
}
|
|
3600
3622
|
);
|
|
3601
|
-
|
|
3602
|
-
var
|
|
3623
|
+
mo.displayName = Qn;
|
|
3624
|
+
var ho = "ProgressIndicator", po = h.forwardRef(
|
|
3603
3625
|
(e, t) => {
|
|
3604
|
-
const { __scopeProgress: n, ...a } = e, r =
|
|
3626
|
+
const { __scopeProgress: n, ...a } = e, r = lf(ho, n);
|
|
3605
3627
|
return /* @__PURE__ */ c.jsx(
|
|
3606
3628
|
J.div,
|
|
3607
3629
|
{
|
|
3608
|
-
"data-state":
|
|
3630
|
+
"data-state": go(r.value, r.max),
|
|
3609
3631
|
"data-value": r.value ?? void 0,
|
|
3610
3632
|
"data-max": r.max,
|
|
3611
3633
|
...a,
|
|
@@ -3614,11 +3636,11 @@ var mo = "ProgressIndicator", ho = h.forwardRef(
|
|
|
3614
3636
|
);
|
|
3615
3637
|
}
|
|
3616
3638
|
);
|
|
3617
|
-
|
|
3618
|
-
function
|
|
3639
|
+
po.displayName = ho;
|
|
3640
|
+
function cf(e, t) {
|
|
3619
3641
|
return `${Math.round(e / t * 100)}%`;
|
|
3620
3642
|
}
|
|
3621
|
-
function
|
|
3643
|
+
function go(e, t) {
|
|
3622
3644
|
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
3623
3645
|
}
|
|
3624
3646
|
function Yt(e) {
|
|
@@ -3630,10 +3652,10 @@ function ja(e) {
|
|
|
3630
3652
|
function Aa(e, t) {
|
|
3631
3653
|
return Yt(e) && !isNaN(e) && e <= t && e >= 0;
|
|
3632
3654
|
}
|
|
3633
|
-
function
|
|
3655
|
+
function df(e, t) {
|
|
3634
3656
|
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Jn}\`.`;
|
|
3635
3657
|
}
|
|
3636
|
-
function
|
|
3658
|
+
function uf(e, t) {
|
|
3637
3659
|
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
3638
3660
|
- a positive number
|
|
3639
3661
|
- less than the value passed to \`max\` (or ${Jn} if no \`max\` prop is set)
|
|
@@ -3641,11 +3663,11 @@ function df(e, t) {
|
|
|
3641
3663
|
|
|
3642
3664
|
Defaulting to \`null\`.`;
|
|
3643
3665
|
}
|
|
3644
|
-
var
|
|
3645
|
-
const
|
|
3666
|
+
var bo = mo, ff = po;
|
|
3667
|
+
const mf = h.forwardRef(({ className: e, value: t, ...n }, a) => {
|
|
3646
3668
|
const r = t ?? 0, o = 100 - r;
|
|
3647
3669
|
return /* @__PURE__ */ c.jsx(
|
|
3648
|
-
|
|
3670
|
+
bo,
|
|
3649
3671
|
{
|
|
3650
3672
|
ref: a,
|
|
3651
3673
|
className: N(
|
|
@@ -3655,7 +3677,7 @@ const ff = h.forwardRef(({ className: e, value: t, ...n }, a) => {
|
|
|
3655
3677
|
value: r,
|
|
3656
3678
|
...n,
|
|
3657
3679
|
children: /* @__PURE__ */ c.jsx(
|
|
3658
|
-
|
|
3680
|
+
ff,
|
|
3659
3681
|
{
|
|
3660
3682
|
role: "presentation",
|
|
3661
3683
|
"aria-label": "Progress indicator",
|
|
@@ -3668,8 +3690,8 @@ const ff = h.forwardRef(({ className: e, value: t, ...n }, a) => {
|
|
|
3668
3690
|
}
|
|
3669
3691
|
);
|
|
3670
3692
|
});
|
|
3671
|
-
|
|
3672
|
-
const
|
|
3693
|
+
mf.displayName = bo.displayName;
|
|
3694
|
+
const Np = ({
|
|
3673
3695
|
options: e,
|
|
3674
3696
|
value: t,
|
|
3675
3697
|
onChange: n,
|
|
@@ -3732,20 +3754,20 @@ const Cp = ({
|
|
|
3732
3754
|
children: [
|
|
3733
3755
|
l && /* @__PURE__ */ c.jsx("div", { children: l }),
|
|
3734
3756
|
r ? a : D(),
|
|
3735
|
-
/* @__PURE__ */ c.jsx(
|
|
3757
|
+
/* @__PURE__ */ c.jsx(rr, { className: "al-ml-2 al-size-4 al-shrink-0 al-opacity-50" })
|
|
3736
3758
|
]
|
|
3737
3759
|
}
|
|
3738
3760
|
) }),
|
|
3739
|
-
/* @__PURE__ */ c.jsx(Xa, { id: `${s}-combobox-content`, className: "!al-w-56 !al-p-0", children: /* @__PURE__ */ c.jsxs(
|
|
3761
|
+
/* @__PURE__ */ c.jsx(Xa, { id: `${s}-combobox-content`, className: "!al-w-56 !al-p-0", children: /* @__PURE__ */ c.jsxs(Ri, { children: [
|
|
3740
3762
|
d && m && /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-justify-between al-items-center al-p-2 al-border-b", children: [
|
|
3741
3763
|
/* @__PURE__ */ c.jsx(Za, { variant: "body", children: a }),
|
|
3742
3764
|
/* @__PURE__ */ c.jsx(Re, { onClick: S, size: "sm", children: "Apply" })
|
|
3743
3765
|
] }),
|
|
3744
|
-
/* @__PURE__ */ c.jsx(
|
|
3745
|
-
/* @__PURE__ */ c.jsxs(
|
|
3746
|
-
/* @__PURE__ */ c.jsx(
|
|
3747
|
-
/* @__PURE__ */ c.jsx(
|
|
3748
|
-
|
|
3766
|
+
/* @__PURE__ */ c.jsx(_i, { placeholder: o, className: "al-h-9" }),
|
|
3767
|
+
/* @__PURE__ */ c.jsxs(Oi, { children: [
|
|
3768
|
+
/* @__PURE__ */ c.jsx(ji, { children: "No matches found." }),
|
|
3769
|
+
/* @__PURE__ */ c.jsx(Ai, { className: "al-overflow-auto", children: e.map((v) => /* @__PURE__ */ c.jsx(
|
|
3770
|
+
Ii,
|
|
3749
3771
|
{
|
|
3750
3772
|
value: v.label,
|
|
3751
3773
|
onSelect: () => w(v.value),
|
|
@@ -3754,7 +3776,7 @@ const Cp = ({
|
|
|
3754
3776
|
title: v.label,
|
|
3755
3777
|
children: /* @__PURE__ */ c.jsxs("div", { className: "al-flex al-items-center al-gap-2", children: [
|
|
3756
3778
|
d ? /* @__PURE__ */ c.jsx(
|
|
3757
|
-
|
|
3779
|
+
sr,
|
|
3758
3780
|
{
|
|
3759
3781
|
className: N(
|
|
3760
3782
|
"al-mr-2 al-size-4",
|
|
@@ -3781,7 +3803,7 @@ const Cp = ({
|
|
|
3781
3803
|
] }) })
|
|
3782
3804
|
] });
|
|
3783
3805
|
}, Nn = 768;
|
|
3784
|
-
function
|
|
3806
|
+
function hf() {
|
|
3785
3807
|
const [e, t] = h.useState(void 0);
|
|
3786
3808
|
return h.useEffect(() => {
|
|
3787
3809
|
const n = window.matchMedia(`(max-width: ${Nn - 1}px)`), a = () => {
|
|
@@ -3790,8 +3812,8 @@ function mf() {
|
|
|
3790
3812
|
return n.addEventListener("change", a), t(window.innerWidth < Nn), () => n.removeEventListener("change", a);
|
|
3791
3813
|
}, []), !!e;
|
|
3792
3814
|
}
|
|
3793
|
-
var
|
|
3794
|
-
const { decorative: n, orientation: a = Ia, ...r } = e, o =
|
|
3815
|
+
var pf = "Separator", Ia = "horizontal", gf = ["horizontal", "vertical"], vo = h.forwardRef((e, t) => {
|
|
3816
|
+
const { decorative: n, orientation: a = Ia, ...r } = e, o = bf(a) ? a : Ia, s = n ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
|
3795
3817
|
return /* @__PURE__ */ c.jsx(
|
|
3796
3818
|
J.div,
|
|
3797
3819
|
{
|
|
@@ -3802,13 +3824,13 @@ var hf = "Separator", Ia = "horizontal", pf = ["horizontal", "vertical"], bo = h
|
|
|
3802
3824
|
}
|
|
3803
3825
|
);
|
|
3804
3826
|
});
|
|
3805
|
-
|
|
3806
|
-
function
|
|
3807
|
-
return
|
|
3827
|
+
vo.displayName = pf;
|
|
3828
|
+
function bf(e) {
|
|
3829
|
+
return gf.includes(e);
|
|
3808
3830
|
}
|
|
3809
|
-
var
|
|
3810
|
-
const
|
|
3811
|
-
|
|
3831
|
+
var wo = vo;
|
|
3832
|
+
const yo = h.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...a }, r) => /* @__PURE__ */ c.jsx(
|
|
3833
|
+
wo,
|
|
3812
3834
|
{
|
|
3813
3835
|
ref: r,
|
|
3814
3836
|
decorative: n,
|
|
@@ -3821,18 +3843,18 @@ const wo = h.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
3821
3843
|
...a
|
|
3822
3844
|
}
|
|
3823
3845
|
));
|
|
3824
|
-
|
|
3846
|
+
yo.displayName = wo.displayName;
|
|
3825
3847
|
function Wa({ className: e, ...t }) {
|
|
3826
3848
|
return /* @__PURE__ */ c.jsx("div", { className: N("al-animate-pulse al-rounded-md al-bg-muted", e), ...t });
|
|
3827
3849
|
}
|
|
3828
|
-
const
|
|
3850
|
+
const vf = "sidebar:state", wf = 60 * 60 * 24 * 7, yf = "16rem", xf = "18rem", Sf = "3rem", Mf = "b", xo = h.createContext(null);
|
|
3829
3851
|
function rn() {
|
|
3830
|
-
const e = h.useContext(
|
|
3852
|
+
const e = h.useContext(xo);
|
|
3831
3853
|
if (!e)
|
|
3832
3854
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3833
3855
|
return e;
|
|
3834
3856
|
}
|
|
3835
|
-
const
|
|
3857
|
+
const Cf = h.forwardRef(
|
|
3836
3858
|
({
|
|
3837
3859
|
defaultOpen: e = !0,
|
|
3838
3860
|
open: t,
|
|
@@ -3842,16 +3864,16 @@ const Mf = h.forwardRef(
|
|
|
3842
3864
|
children: o,
|
|
3843
3865
|
...i
|
|
3844
3866
|
}, s) => {
|
|
3845
|
-
const l =
|
|
3867
|
+
const l = hf(), [d, m] = h.useState(!1), [u, f] = h.useState(e), g = t ?? u, p = h.useCallback(
|
|
3846
3868
|
(S) => {
|
|
3847
3869
|
const x = typeof S == "function" ? S(g) : S;
|
|
3848
|
-
n ? n(x) : f(x), document.cookie = `${
|
|
3870
|
+
n ? n(x) : f(x), document.cookie = `${vf}=${x}; path=/; max-age=${wf}`;
|
|
3849
3871
|
},
|
|
3850
3872
|
[n, g]
|
|
3851
3873
|
), y = h.useCallback(() => l ? m((S) => !S) : p((S) => !S), [l, p, m]);
|
|
3852
3874
|
h.useEffect(() => {
|
|
3853
3875
|
const S = (x) => {
|
|
3854
|
-
x.key ===
|
|
3876
|
+
x.key === Mf && (x.metaKey || x.ctrlKey) && (x.preventDefault(), y());
|
|
3855
3877
|
};
|
|
3856
3878
|
return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
|
|
3857
3879
|
}, [y]);
|
|
@@ -3867,12 +3889,12 @@ const Mf = h.forwardRef(
|
|
|
3867
3889
|
}),
|
|
3868
3890
|
[b, g, p, l, d, m, y]
|
|
3869
3891
|
);
|
|
3870
|
-
return /* @__PURE__ */ c.jsx(
|
|
3892
|
+
return /* @__PURE__ */ c.jsx(xo.Provider, { value: w, children: /* @__PURE__ */ c.jsx(sl, { delayDuration: 0, children: /* @__PURE__ */ c.jsx(
|
|
3871
3893
|
"div",
|
|
3872
3894
|
{
|
|
3873
3895
|
style: {
|
|
3874
|
-
"--sidebar-width":
|
|
3875
|
-
"--sidebar-width-icon":
|
|
3896
|
+
"--sidebar-width": yf,
|
|
3897
|
+
"--sidebar-width-icon": Sf,
|
|
3876
3898
|
...r
|
|
3877
3899
|
},
|
|
3878
3900
|
className: N(
|
|
@@ -3886,8 +3908,8 @@ const Mf = h.forwardRef(
|
|
|
3886
3908
|
) }) });
|
|
3887
3909
|
}
|
|
3888
3910
|
);
|
|
3889
|
-
|
|
3890
|
-
const
|
|
3911
|
+
Cf.displayName = "SidebarProvider";
|
|
3912
|
+
const Nf = h.forwardRef(
|
|
3891
3913
|
({
|
|
3892
3914
|
side: e = "left",
|
|
3893
3915
|
variant: t = "sidebar",
|
|
@@ -3908,14 +3930,14 @@ const Cf = h.forwardRef(
|
|
|
3908
3930
|
...o,
|
|
3909
3931
|
children: r
|
|
3910
3932
|
}
|
|
3911
|
-
) : s ? /* @__PURE__ */ c.jsx(
|
|
3912
|
-
|
|
3933
|
+
) : s ? /* @__PURE__ */ c.jsx(Wi, { open: d, onOpenChange: m, ...o, children: /* @__PURE__ */ c.jsx(
|
|
3934
|
+
zi,
|
|
3913
3935
|
{
|
|
3914
3936
|
"data-sidebar": "sidebar",
|
|
3915
3937
|
"data-mobile": "true",
|
|
3916
3938
|
className: "al-w-[--sidebar-width] al-bg-sidebar al-p-0 al-text-sidebar-foreground [&>button]:al-hidden",
|
|
3917
3939
|
style: {
|
|
3918
|
-
"--sidebar-width":
|
|
3940
|
+
"--sidebar-width": xf
|
|
3919
3941
|
},
|
|
3920
3942
|
side: e,
|
|
3921
3943
|
children: /* @__PURE__ */ c.jsx("div", { className: "al-flex al-h-full al-w-full al-flex-col", children: r })
|
|
@@ -3967,8 +3989,8 @@ const Cf = h.forwardRef(
|
|
|
3967
3989
|
);
|
|
3968
3990
|
}
|
|
3969
3991
|
);
|
|
3970
|
-
|
|
3971
|
-
const
|
|
3992
|
+
Nf.displayName = "Sidebar";
|
|
3993
|
+
const Df = h.forwardRef(({ className: e, onClick: t, ...n }, a) => {
|
|
3972
3994
|
const { toggleSidebar: r } = rn();
|
|
3973
3995
|
return /* @__PURE__ */ c.jsxs(
|
|
3974
3996
|
Re,
|
|
@@ -3989,8 +4011,8 @@ const Nf = h.forwardRef(({ className: e, onClick: t, ...n }, a) => {
|
|
|
3989
4011
|
}
|
|
3990
4012
|
);
|
|
3991
4013
|
});
|
|
3992
|
-
|
|
3993
|
-
const
|
|
4014
|
+
Df.displayName = "SidebarTrigger";
|
|
4015
|
+
const Pf = h.forwardRef(
|
|
3994
4016
|
({ className: e, ...t }, n) => {
|
|
3995
4017
|
const { toggleSidebar: a } = rn();
|
|
3996
4018
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -4016,8 +4038,8 @@ const Df = h.forwardRef(
|
|
|
4016
4038
|
);
|
|
4017
4039
|
}
|
|
4018
4040
|
);
|
|
4019
|
-
|
|
4020
|
-
const
|
|
4041
|
+
Pf.displayName = "SidebarRail";
|
|
4042
|
+
const Tf = h.forwardRef(
|
|
4021
4043
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4022
4044
|
"main",
|
|
4023
4045
|
{
|
|
@@ -4031,9 +4053,9 @@ const Pf = h.forwardRef(
|
|
|
4031
4053
|
}
|
|
4032
4054
|
)
|
|
4033
4055
|
);
|
|
4034
|
-
|
|
4035
|
-
const
|
|
4036
|
-
|
|
4056
|
+
Tf.displayName = "SidebarInset";
|
|
4057
|
+
const Ef = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4058
|
+
Qa,
|
|
4037
4059
|
{
|
|
4038
4060
|
ref: n,
|
|
4039
4061
|
"data-sidebar": "input",
|
|
@@ -4044,8 +4066,8 @@ const Tf = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
4044
4066
|
...t
|
|
4045
4067
|
}
|
|
4046
4068
|
));
|
|
4047
|
-
|
|
4048
|
-
const
|
|
4069
|
+
Ef.displayName = "SidebarInput";
|
|
4070
|
+
const kf = h.forwardRef(
|
|
4049
4071
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4050
4072
|
"div",
|
|
4051
4073
|
{
|
|
@@ -4056,8 +4078,8 @@ const Ef = h.forwardRef(
|
|
|
4056
4078
|
}
|
|
4057
4079
|
)
|
|
4058
4080
|
);
|
|
4059
|
-
|
|
4060
|
-
const
|
|
4081
|
+
kf.displayName = "SidebarHeader";
|
|
4082
|
+
const Rf = h.forwardRef(
|
|
4061
4083
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4062
4084
|
"div",
|
|
4063
4085
|
{
|
|
@@ -4068,9 +4090,9 @@ const kf = h.forwardRef(
|
|
|
4068
4090
|
}
|
|
4069
4091
|
)
|
|
4070
4092
|
);
|
|
4071
|
-
|
|
4072
|
-
const
|
|
4073
|
-
|
|
4093
|
+
Rf.displayName = "SidebarFooter";
|
|
4094
|
+
const _f = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4095
|
+
yo,
|
|
4074
4096
|
{
|
|
4075
4097
|
ref: n,
|
|
4076
4098
|
"data-sidebar": "separator",
|
|
@@ -4078,8 +4100,8 @@ const Rf = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
4078
4100
|
...t
|
|
4079
4101
|
}
|
|
4080
4102
|
));
|
|
4081
|
-
|
|
4082
|
-
const
|
|
4103
|
+
_f.displayName = "SidebarSeparator";
|
|
4104
|
+
const Of = h.forwardRef(
|
|
4083
4105
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4084
4106
|
"div",
|
|
4085
4107
|
{
|
|
@@ -4093,8 +4115,8 @@ const _f = h.forwardRef(
|
|
|
4093
4115
|
}
|
|
4094
4116
|
)
|
|
4095
4117
|
);
|
|
4096
|
-
|
|
4097
|
-
const
|
|
4118
|
+
Of.displayName = "SidebarContent";
|
|
4119
|
+
const jf = h.forwardRef(
|
|
4098
4120
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4099
4121
|
"div",
|
|
4100
4122
|
{
|
|
@@ -4105,8 +4127,8 @@ const Of = h.forwardRef(
|
|
|
4105
4127
|
}
|
|
4106
4128
|
)
|
|
4107
4129
|
);
|
|
4108
|
-
|
|
4109
|
-
const
|
|
4130
|
+
jf.displayName = "SidebarGroup";
|
|
4131
|
+
const Af = h.forwardRef(({ className: e, asChild: t = !1, ...n }, a) => {
|
|
4110
4132
|
const r = t ? mt : "div";
|
|
4111
4133
|
return /* @__PURE__ */ c.jsx(
|
|
4112
4134
|
r,
|
|
@@ -4122,8 +4144,8 @@ const jf = h.forwardRef(({ className: e, asChild: t = !1, ...n }, a) => {
|
|
|
4122
4144
|
}
|
|
4123
4145
|
);
|
|
4124
4146
|
});
|
|
4125
|
-
|
|
4126
|
-
const
|
|
4147
|
+
Af.displayName = "SidebarGroupLabel";
|
|
4148
|
+
const If = h.forwardRef(({ className: e, asChild: t = !1, ...n }, a) => {
|
|
4127
4149
|
const r = t ? mt : "button";
|
|
4128
4150
|
return /* @__PURE__ */ c.jsx(
|
|
4129
4151
|
r,
|
|
@@ -4141,8 +4163,8 @@ const Af = h.forwardRef(({ className: e, asChild: t = !1, ...n }, a) => {
|
|
|
4141
4163
|
}
|
|
4142
4164
|
);
|
|
4143
4165
|
});
|
|
4144
|
-
|
|
4145
|
-
const
|
|
4166
|
+
If.displayName = "SidebarGroupAction";
|
|
4167
|
+
const Wf = h.forwardRef(
|
|
4146
4168
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4147
4169
|
"div",
|
|
4148
4170
|
{
|
|
@@ -4153,8 +4175,8 @@ const If = h.forwardRef(
|
|
|
4153
4175
|
}
|
|
4154
4176
|
)
|
|
4155
4177
|
);
|
|
4156
|
-
|
|
4157
|
-
const
|
|
4178
|
+
Wf.displayName = "SidebarGroupContent";
|
|
4179
|
+
const zf = h.forwardRef(
|
|
4158
4180
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4159
4181
|
"ul",
|
|
4160
4182
|
{
|
|
@@ -4165,8 +4187,8 @@ const Wf = h.forwardRef(
|
|
|
4165
4187
|
}
|
|
4166
4188
|
)
|
|
4167
4189
|
);
|
|
4168
|
-
|
|
4169
|
-
const
|
|
4190
|
+
zf.displayName = "SidebarMenu";
|
|
4191
|
+
const Lf = h.forwardRef(
|
|
4170
4192
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4171
4193
|
"li",
|
|
4172
4194
|
{
|
|
@@ -4177,8 +4199,8 @@ const zf = h.forwardRef(
|
|
|
4177
4199
|
}
|
|
4178
4200
|
)
|
|
4179
4201
|
);
|
|
4180
|
-
|
|
4181
|
-
const
|
|
4202
|
+
Lf.displayName = "SidebarMenuItem";
|
|
4203
|
+
const Ff = ft(
|
|
4182
4204
|
"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",
|
|
4183
4205
|
{
|
|
4184
4206
|
variants: {
|
|
@@ -4197,7 +4219,7 @@ const Lf = ft(
|
|
|
4197
4219
|
size: "default"
|
|
4198
4220
|
}
|
|
4199
4221
|
}
|
|
4200
|
-
),
|
|
4222
|
+
), $f = h.forwardRef(
|
|
4201
4223
|
({
|
|
4202
4224
|
asChild: e = !1,
|
|
4203
4225
|
isActive: t = !1,
|
|
@@ -4214,7 +4236,7 @@ const Lf = ft(
|
|
|
4214
4236
|
"data-sidebar": "menu-button",
|
|
4215
4237
|
"data-size": a,
|
|
4216
4238
|
"data-active": t,
|
|
4217
|
-
className: N(
|
|
4239
|
+
className: N(Ff({ variant: n, size: a }), o),
|
|
4218
4240
|
...i
|
|
4219
4241
|
}
|
|
4220
4242
|
);
|
|
@@ -4234,8 +4256,8 @@ const Lf = ft(
|
|
|
4234
4256
|
] })) : u;
|
|
4235
4257
|
}
|
|
4236
4258
|
);
|
|
4237
|
-
|
|
4238
|
-
const
|
|
4259
|
+
$f.displayName = "SidebarMenuButton";
|
|
4260
|
+
const Hf = h.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...a }, r) => {
|
|
4239
4261
|
const o = t ? mt : "button";
|
|
4240
4262
|
return /* @__PURE__ */ c.jsx(
|
|
4241
4263
|
o,
|
|
@@ -4257,8 +4279,8 @@ const $f = h.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
|
|
|
4257
4279
|
}
|
|
4258
4280
|
);
|
|
4259
4281
|
});
|
|
4260
|
-
|
|
4261
|
-
const
|
|
4282
|
+
Hf.displayName = "SidebarMenuAction";
|
|
4283
|
+
const Yf = h.forwardRef(
|
|
4262
4284
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4263
4285
|
"div",
|
|
4264
4286
|
{
|
|
@@ -4277,8 +4299,8 @@ const Hf = h.forwardRef(
|
|
|
4277
4299
|
}
|
|
4278
4300
|
)
|
|
4279
4301
|
);
|
|
4280
|
-
|
|
4281
|
-
const
|
|
4302
|
+
Yf.displayName = "SidebarMenuBadge";
|
|
4303
|
+
const Bf = h.forwardRef(({ className: e, showIcon: t = !1, ...n }, a) => {
|
|
4282
4304
|
const r = h.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
4283
4305
|
return /* @__PURE__ */ c.jsxs(
|
|
4284
4306
|
"div",
|
|
@@ -4303,8 +4325,8 @@ const Yf = h.forwardRef(({ className: e, showIcon: t = !1, ...n }, a) => {
|
|
|
4303
4325
|
}
|
|
4304
4326
|
);
|
|
4305
4327
|
});
|
|
4306
|
-
|
|
4307
|
-
const
|
|
4328
|
+
Bf.displayName = "SidebarMenuSkeleton";
|
|
4329
|
+
const Vf = h.forwardRef(
|
|
4308
4330
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4309
4331
|
"ul",
|
|
4310
4332
|
{
|
|
@@ -4319,12 +4341,12 @@ const Bf = h.forwardRef(
|
|
|
4319
4341
|
}
|
|
4320
4342
|
)
|
|
4321
4343
|
);
|
|
4322
|
-
|
|
4323
|
-
const
|
|
4344
|
+
Vf.displayName = "SidebarMenuSub";
|
|
4345
|
+
const Gf = h.forwardRef(
|
|
4324
4346
|
({ ...e }, t) => /* @__PURE__ */ c.jsx("li", { ref: t, ...e })
|
|
4325
4347
|
);
|
|
4326
|
-
|
|
4327
|
-
const
|
|
4348
|
+
Gf.displayName = "SidebarMenuSubItem";
|
|
4349
|
+
const Kf = h.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: a, ...r }, o) => {
|
|
4328
4350
|
const i = e ? mt : "a";
|
|
4329
4351
|
return /* @__PURE__ */ c.jsx(
|
|
4330
4352
|
i,
|
|
@@ -4345,10 +4367,10 @@ const Gf = h.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
|
|
|
4345
4367
|
}
|
|
4346
4368
|
);
|
|
4347
4369
|
});
|
|
4348
|
-
|
|
4349
|
-
var ea = "Tabs", [
|
|
4370
|
+
Kf.displayName = "SidebarMenuSubButton";
|
|
4371
|
+
var ea = "Tabs", [qf, Dp] = He(ea, [
|
|
4350
4372
|
Zt
|
|
4351
|
-
]),
|
|
4373
|
+
]), So = Zt(), [Uf, ta] = qf(ea), Mo = h.forwardRef(
|
|
4352
4374
|
(e, t) => {
|
|
4353
4375
|
const {
|
|
4354
4376
|
__scopeTabs: n,
|
|
@@ -4365,7 +4387,7 @@ var ea = "Tabs", [Kf, Np] = He(ea, [
|
|
|
4365
4387
|
defaultProp: o
|
|
4366
4388
|
});
|
|
4367
4389
|
return /* @__PURE__ */ c.jsx(
|
|
4368
|
-
|
|
4390
|
+
Uf,
|
|
4369
4391
|
{
|
|
4370
4392
|
scope: n,
|
|
4371
4393
|
baseId: Ht(),
|
|
@@ -4387,12 +4409,12 @@ var ea = "Tabs", [Kf, Np] = He(ea, [
|
|
|
4387
4409
|
);
|
|
4388
4410
|
}
|
|
4389
4411
|
);
|
|
4390
|
-
|
|
4391
|
-
var
|
|
4412
|
+
Mo.displayName = ea;
|
|
4413
|
+
var Co = "TabsList", No = h.forwardRef(
|
|
4392
4414
|
(e, t) => {
|
|
4393
|
-
const { __scopeTabs: n, loop: a = !0, ...r } = e, o = ta(
|
|
4415
|
+
const { __scopeTabs: n, loop: a = !0, ...r } = e, o = ta(Co, n), i = So(n);
|
|
4394
4416
|
return /* @__PURE__ */ c.jsx(
|
|
4395
|
-
|
|
4417
|
+
er,
|
|
4396
4418
|
{
|
|
4397
4419
|
asChild: !0,
|
|
4398
4420
|
...i,
|
|
@@ -4412,12 +4434,12 @@ var Mo = "TabsList", Co = h.forwardRef(
|
|
|
4412
4434
|
);
|
|
4413
4435
|
}
|
|
4414
4436
|
);
|
|
4415
|
-
|
|
4416
|
-
var
|
|
4437
|
+
No.displayName = Co;
|
|
4438
|
+
var Do = "TabsTrigger", Po = h.forwardRef(
|
|
4417
4439
|
(e, t) => {
|
|
4418
|
-
const { __scopeTabs: n, value: a, disabled: r = !1, ...o } = e, i = ta(
|
|
4440
|
+
const { __scopeTabs: n, value: a, disabled: r = !1, ...o } = e, i = ta(Do, n), s = So(n), l = ko(i.baseId, a), d = Ro(i.baseId, a), m = a === i.value;
|
|
4419
4441
|
return /* @__PURE__ */ c.jsx(
|
|
4420
|
-
|
|
4442
|
+
tr,
|
|
4421
4443
|
{
|
|
4422
4444
|
asChild: !0,
|
|
4423
4445
|
...s,
|
|
@@ -4452,10 +4474,10 @@ var No = "TabsTrigger", Do = h.forwardRef(
|
|
|
4452
4474
|
);
|
|
4453
4475
|
}
|
|
4454
4476
|
);
|
|
4455
|
-
|
|
4456
|
-
var
|
|
4477
|
+
Po.displayName = Do;
|
|
4478
|
+
var To = "TabsContent", Eo = h.forwardRef(
|
|
4457
4479
|
(e, t) => {
|
|
4458
|
-
const { __scopeTabs: n, value: a, forceMount: r, children: o, ...i } = e, s = ta(
|
|
4480
|
+
const { __scopeTabs: n, value: a, forceMount: r, children: o, ...i } = e, s = ta(To, n), l = ko(s.baseId, a), d = Ro(s.baseId, a), m = a === s.value, u = h.useRef(m);
|
|
4459
4481
|
return h.useEffect(() => {
|
|
4460
4482
|
const f = requestAnimationFrame(() => u.current = !1);
|
|
4461
4483
|
return () => cancelAnimationFrame(f);
|
|
@@ -4480,15 +4502,15 @@ var Po = "TabsContent", To = h.forwardRef(
|
|
|
4480
4502
|
) });
|
|
4481
4503
|
}
|
|
4482
4504
|
);
|
|
4483
|
-
|
|
4484
|
-
function
|
|
4505
|
+
Eo.displayName = To;
|
|
4506
|
+
function ko(e, t) {
|
|
4485
4507
|
return `${e}-trigger-${t}`;
|
|
4486
4508
|
}
|
|
4487
|
-
function
|
|
4509
|
+
function Ro(e, t) {
|
|
4488
4510
|
return `${e}-content-${t}`;
|
|
4489
4511
|
}
|
|
4490
|
-
var
|
|
4491
|
-
const
|
|
4512
|
+
var _o = Mo, Oo = No, jo = Po, Ao = Eo;
|
|
4513
|
+
const Xf = ft("", {
|
|
4492
4514
|
variants: {
|
|
4493
4515
|
variant: {
|
|
4494
4516
|
default: "",
|
|
@@ -4498,7 +4520,7 @@ const Uf = ft("", {
|
|
|
4498
4520
|
defaultVariants: {
|
|
4499
4521
|
variant: "default"
|
|
4500
4522
|
}
|
|
4501
|
-
}),
|
|
4523
|
+
}), Zf = ft(
|
|
4502
4524
|
"al-inline-flex al-items-center al-justify-center al-text-muted-foreground",
|
|
4503
4525
|
{
|
|
4504
4526
|
variants: {
|
|
@@ -4511,7 +4533,7 @@ const Uf = ft("", {
|
|
|
4511
4533
|
variant: "default"
|
|
4512
4534
|
}
|
|
4513
4535
|
}
|
|
4514
|
-
),
|
|
4536
|
+
), Qf = ft(
|
|
4515
4537
|
"al-inline-flex al-items-center al-justify-center al-whitespace-nowrap al-text-sm al-font-medium al-ring-offset-background al-transition-all 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",
|
|
4516
4538
|
{
|
|
4517
4539
|
variants: {
|
|
@@ -4524,41 +4546,41 @@ const Uf = ft("", {
|
|
|
4524
4546
|
variant: "default"
|
|
4525
4547
|
}
|
|
4526
4548
|
}
|
|
4527
|
-
), na = h.createContext({ variant: "default" }),
|
|
4528
|
-
|
|
4549
|
+
), na = h.createContext({ variant: "default" }), Jf = h.forwardRef(({ className: e, variant: t, ...n }, a) => /* @__PURE__ */ c.jsx(na.Provider, { value: { variant: t }, children: /* @__PURE__ */ c.jsx(
|
|
4550
|
+
_o,
|
|
4529
4551
|
{
|
|
4530
4552
|
ref: a,
|
|
4531
|
-
className: N(
|
|
4553
|
+
className: N(Xf({ variant: t }), e),
|
|
4532
4554
|
...n
|
|
4533
4555
|
}
|
|
4534
4556
|
) }));
|
|
4535
|
-
|
|
4536
|
-
const
|
|
4557
|
+
Jf.displayName = _o.displayName;
|
|
4558
|
+
const em = h.forwardRef(({ className: e, ...t }, n) => {
|
|
4537
4559
|
const { variant: a } = h.useContext(na);
|
|
4538
4560
|
return /* @__PURE__ */ c.jsx(
|
|
4539
|
-
|
|
4561
|
+
Oo,
|
|
4540
4562
|
{
|
|
4541
4563
|
ref: n,
|
|
4542
|
-
className: N(
|
|
4564
|
+
className: N(Zf({ variant: a }), e),
|
|
4543
4565
|
...t
|
|
4544
4566
|
}
|
|
4545
4567
|
);
|
|
4546
4568
|
});
|
|
4547
|
-
|
|
4548
|
-
const
|
|
4569
|
+
em.displayName = Oo.displayName;
|
|
4570
|
+
const tm = h.forwardRef(({ className: e, ...t }, n) => {
|
|
4549
4571
|
const { variant: a } = h.useContext(na);
|
|
4550
4572
|
return /* @__PURE__ */ c.jsx(
|
|
4551
|
-
|
|
4573
|
+
jo,
|
|
4552
4574
|
{
|
|
4553
4575
|
ref: n,
|
|
4554
|
-
className: N(
|
|
4576
|
+
className: N(Qf({ variant: a }), e),
|
|
4555
4577
|
...t
|
|
4556
4578
|
}
|
|
4557
4579
|
);
|
|
4558
4580
|
});
|
|
4559
|
-
|
|
4560
|
-
const
|
|
4561
|
-
|
|
4581
|
+
tm.displayName = jo.displayName;
|
|
4582
|
+
const nm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4583
|
+
Ao,
|
|
4562
4584
|
{
|
|
4563
4585
|
ref: n,
|
|
4564
4586
|
className: N(
|
|
@@ -4568,10 +4590,10 @@ const tm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
4568
4590
|
...t
|
|
4569
4591
|
}
|
|
4570
4592
|
));
|
|
4571
|
-
|
|
4572
|
-
const
|
|
4573
|
-
|
|
4574
|
-
const
|
|
4593
|
+
nm.displayName = Ao.displayName;
|
|
4594
|
+
const am = h.forwardRef(({ ...e }, t) => /* @__PURE__ */ c.jsx("nav", { ref: t, "aria-label": "breadcrumb", ...e }));
|
|
4595
|
+
am.displayName = "Breadcrumb";
|
|
4596
|
+
const rm = h.forwardRef(
|
|
4575
4597
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4576
4598
|
"ol",
|
|
4577
4599
|
{
|
|
@@ -4584,8 +4606,8 @@ const am = h.forwardRef(
|
|
|
4584
4606
|
}
|
|
4585
4607
|
)
|
|
4586
4608
|
);
|
|
4587
|
-
|
|
4588
|
-
const
|
|
4609
|
+
rm.displayName = "BreadcrumbList";
|
|
4610
|
+
const om = h.forwardRef(
|
|
4589
4611
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4590
4612
|
"li",
|
|
4591
4613
|
{
|
|
@@ -4595,8 +4617,8 @@ const rm = h.forwardRef(
|
|
|
4595
4617
|
}
|
|
4596
4618
|
)
|
|
4597
4619
|
);
|
|
4598
|
-
|
|
4599
|
-
const
|
|
4620
|
+
om.displayName = "BreadcrumbItem";
|
|
4621
|
+
const sm = h.forwardRef(({ asChild: e, className: t, ...n }, a) => {
|
|
4600
4622
|
const r = e ? mt : "a";
|
|
4601
4623
|
return /* @__PURE__ */ c.jsx(
|
|
4602
4624
|
r,
|
|
@@ -4607,8 +4629,8 @@ const om = h.forwardRef(({ asChild: e, className: t, ...n }, a) => {
|
|
|
4607
4629
|
}
|
|
4608
4630
|
);
|
|
4609
4631
|
});
|
|
4610
|
-
|
|
4611
|
-
const
|
|
4632
|
+
sm.displayName = "BreadcrumbLink";
|
|
4633
|
+
const im = h.forwardRef(
|
|
4612
4634
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
4613
4635
|
"span",
|
|
4614
4636
|
{
|
|
@@ -4621,8 +4643,8 @@ const sm = h.forwardRef(
|
|
|
4621
4643
|
}
|
|
4622
4644
|
)
|
|
4623
4645
|
);
|
|
4624
|
-
|
|
4625
|
-
const
|
|
4646
|
+
im.displayName = "BreadcrumbPage";
|
|
4647
|
+
const lm = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c.jsx(
|
|
4626
4648
|
"li",
|
|
4627
4649
|
{
|
|
4628
4650
|
role: "presentation",
|
|
@@ -4632,8 +4654,8 @@ const im = ({ children: e, className: t, ...n }) => /* @__PURE__ */ c.jsx(
|
|
|
4632
4654
|
children: e ?? /* @__PURE__ */ c.jsx(Jt, {})
|
|
4633
4655
|
}
|
|
4634
4656
|
);
|
|
4635
|
-
|
|
4636
|
-
const
|
|
4657
|
+
lm.displayName = "BreadcrumbSeparator";
|
|
4658
|
+
const cm = ({ className: e, ...t }) => /* @__PURE__ */ c.jsxs(
|
|
4637
4659
|
"span",
|
|
4638
4660
|
{
|
|
4639
4661
|
role: "presentation",
|
|
@@ -4641,20 +4663,20 @@ const lm = ({ className: e, ...t }) => /* @__PURE__ */ c.jsxs(
|
|
|
4641
4663
|
className: N("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
4642
4664
|
...t,
|
|
4643
4665
|
children: [
|
|
4644
|
-
/* @__PURE__ */ c.jsx(
|
|
4666
|
+
/* @__PURE__ */ c.jsx(ir, { className: "al-h-4 al-w-4" }),
|
|
4645
4667
|
/* @__PURE__ */ c.jsx("span", { className: "al-sr-only", children: "More" })
|
|
4646
4668
|
]
|
|
4647
4669
|
}
|
|
4648
4670
|
);
|
|
4649
|
-
|
|
4650
|
-
var
|
|
4671
|
+
cm.displayName = "BreadcrumbElipssis";
|
|
4672
|
+
var Io = ["PageUp", "PageDown"], Wo = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], zo = {
|
|
4651
4673
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
4652
4674
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
4653
4675
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
4654
4676
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
4655
|
-
}, pt = "Slider", [An,
|
|
4656
|
-
|
|
4657
|
-
]), [
|
|
4677
|
+
}, pt = "Slider", [An, dm, um] = Bn(pt), [Lo, Pp] = He(pt, [
|
|
4678
|
+
um
|
|
4679
|
+
]), [fm, on] = Lo(pt), Fo = h.forwardRef(
|
|
4658
4680
|
(e, t) => {
|
|
4659
4681
|
const {
|
|
4660
4682
|
name: n,
|
|
@@ -4673,7 +4695,7 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4673
4695
|
inverted: g = !1,
|
|
4674
4696
|
form: p,
|
|
4675
4697
|
...y
|
|
4676
|
-
} = e, b = h.useRef(/* @__PURE__ */ new Set()), w = h.useRef(0), x = i === "horizontal" ?
|
|
4698
|
+
} = e, b = h.useRef(/* @__PURE__ */ new Set()), w = h.useRef(0), x = i === "horizontal" ? mm : hm, [D = [], v] = ut({
|
|
4677
4699
|
prop: m,
|
|
4678
4700
|
defaultProp: d,
|
|
4679
4701
|
onChange: (k) => {
|
|
@@ -4682,7 +4704,7 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4682
4704
|
}
|
|
4683
4705
|
}), C = h.useRef(D);
|
|
4684
4706
|
function M(k) {
|
|
4685
|
-
const j =
|
|
4707
|
+
const j = wm(D, k);
|
|
4686
4708
|
W(k, j);
|
|
4687
4709
|
}
|
|
4688
4710
|
function O(k) {
|
|
@@ -4693,10 +4715,10 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4693
4715
|
D[w.current] !== k && f(D);
|
|
4694
4716
|
}
|
|
4695
4717
|
function W(k, j, { commit: X } = { commit: !1 }) {
|
|
4696
|
-
const E =
|
|
4718
|
+
const E = Mm(o), H = Cm(Math.round((k - a) / o) * o + a, E), G = Yn(H, [a, r]);
|
|
4697
4719
|
v((ie = []) => {
|
|
4698
|
-
const K =
|
|
4699
|
-
if (
|
|
4720
|
+
const K = bm(ie, G, j);
|
|
4721
|
+
if (Sm(K, l * o)) {
|
|
4700
4722
|
w.current = K.indexOf(G);
|
|
4701
4723
|
const ae = String(K) !== String(ie);
|
|
4702
4724
|
return ae && X && f(K), ae ? K : ie;
|
|
@@ -4705,7 +4727,7 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4705
4727
|
});
|
|
4706
4728
|
}
|
|
4707
4729
|
return /* @__PURE__ */ c.jsx(
|
|
4708
|
-
|
|
4730
|
+
fm,
|
|
4709
4731
|
{
|
|
4710
4732
|
scope: e.__scopeSlider,
|
|
4711
4733
|
name: n,
|
|
@@ -4737,7 +4759,7 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4737
4759
|
onEndKeyDown: () => !s && W(r, D.length - 1, { commit: !0 }),
|
|
4738
4760
|
onStepKeyDown: ({ event: k, direction: j }) => {
|
|
4739
4761
|
if (!s) {
|
|
4740
|
-
const H =
|
|
4762
|
+
const H = Io.includes(k.key) || k.shiftKey && Wo.includes(k.key) ? 10 : 1, G = w.current, ie = D[G], K = o * H * j;
|
|
4741
4763
|
W(ie + K, G, { commit: !0 });
|
|
4742
4764
|
}
|
|
4743
4765
|
}
|
|
@@ -4747,13 +4769,13 @@ var Ao = ["PageUp", "PageDown"], Io = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
4747
4769
|
);
|
|
4748
4770
|
}
|
|
4749
4771
|
);
|
|
4750
|
-
|
|
4751
|
-
var [
|
|
4772
|
+
Fo.displayName = pt;
|
|
4773
|
+
var [$o, Ho] = Lo(pt, {
|
|
4752
4774
|
startEdge: "left",
|
|
4753
4775
|
endEdge: "right",
|
|
4754
4776
|
size: "width",
|
|
4755
4777
|
direction: 1
|
|
4756
|
-
}),
|
|
4778
|
+
}), mm = h.forwardRef(
|
|
4757
4779
|
(e, t) => {
|
|
4758
4780
|
const {
|
|
4759
4781
|
min: n,
|
|
@@ -4771,7 +4793,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4771
4793
|
return p.current = D, M(x - D.left);
|
|
4772
4794
|
}
|
|
4773
4795
|
return /* @__PURE__ */ c.jsx(
|
|
4774
|
-
|
|
4796
|
+
$o,
|
|
4775
4797
|
{
|
|
4776
4798
|
scope: e.__scopeSlider,
|
|
4777
4799
|
startEdge: w ? "left" : "right",
|
|
@@ -4779,7 +4801,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4779
4801
|
direction: w ? 1 : -1,
|
|
4780
4802
|
size: "width",
|
|
4781
4803
|
children: /* @__PURE__ */ c.jsx(
|
|
4782
|
-
|
|
4804
|
+
Yo,
|
|
4783
4805
|
{
|
|
4784
4806
|
dir: y,
|
|
4785
4807
|
"data-orientation": "horizontal",
|
|
@@ -4801,7 +4823,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4801
4823
|
p.current = void 0, l == null || l();
|
|
4802
4824
|
},
|
|
4803
4825
|
onStepKeyDown: (x) => {
|
|
4804
|
-
const v =
|
|
4826
|
+
const v = zo[w ? "from-left" : "from-right"].includes(x.key);
|
|
4805
4827
|
d == null || d({ event: x, direction: v ? -1 : 1 });
|
|
4806
4828
|
}
|
|
4807
4829
|
}
|
|
@@ -4809,7 +4831,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4809
4831
|
}
|
|
4810
4832
|
);
|
|
4811
4833
|
}
|
|
4812
|
-
),
|
|
4834
|
+
), hm = h.forwardRef(
|
|
4813
4835
|
(e, t) => {
|
|
4814
4836
|
const {
|
|
4815
4837
|
min: n,
|
|
@@ -4826,7 +4848,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4826
4848
|
return f.current = b, x(y - b.top);
|
|
4827
4849
|
}
|
|
4828
4850
|
return /* @__PURE__ */ c.jsx(
|
|
4829
|
-
|
|
4851
|
+
$o,
|
|
4830
4852
|
{
|
|
4831
4853
|
scope: e.__scopeSlider,
|
|
4832
4854
|
startEdge: g ? "bottom" : "top",
|
|
@@ -4834,7 +4856,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4834
4856
|
size: "height",
|
|
4835
4857
|
direction: g ? 1 : -1,
|
|
4836
4858
|
children: /* @__PURE__ */ c.jsx(
|
|
4837
|
-
|
|
4859
|
+
Yo,
|
|
4838
4860
|
{
|
|
4839
4861
|
"data-orientation": "vertical",
|
|
4840
4862
|
...d,
|
|
@@ -4855,7 +4877,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4855
4877
|
f.current = void 0, s == null || s();
|
|
4856
4878
|
},
|
|
4857
4879
|
onStepKeyDown: (y) => {
|
|
4858
|
-
const w =
|
|
4880
|
+
const w = zo[g ? "from-bottom" : "from-top"].includes(y.key);
|
|
4859
4881
|
l == null || l({ event: y, direction: w ? -1 : 1 });
|
|
4860
4882
|
}
|
|
4861
4883
|
}
|
|
@@ -4863,7 +4885,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4863
4885
|
}
|
|
4864
4886
|
);
|
|
4865
4887
|
}
|
|
4866
|
-
),
|
|
4888
|
+
), Yo = h.forwardRef(
|
|
4867
4889
|
(e, t) => {
|
|
4868
4890
|
const {
|
|
4869
4891
|
__scopeSlider: n,
|
|
@@ -4881,7 +4903,7 @@ var [Fo, $o] = zo(pt, {
|
|
|
4881
4903
|
...d,
|
|
4882
4904
|
ref: t,
|
|
4883
4905
|
onKeyDown: L(e.onKeyDown, (u) => {
|
|
4884
|
-
u.key === "Home" ? (i(u), u.preventDefault()) : u.key === "End" ? (s(u), u.preventDefault()) :
|
|
4906
|
+
u.key === "Home" ? (i(u), u.preventDefault()) : u.key === "End" ? (s(u), u.preventDefault()) : Io.concat(Wo).includes(u.key) && (l(u), u.preventDefault());
|
|
4885
4907
|
}),
|
|
4886
4908
|
onPointerDown: L(e.onPointerDown, (u) => {
|
|
4887
4909
|
const f = u.target;
|
|
@@ -4897,9 +4919,9 @@ var [Fo, $o] = zo(pt, {
|
|
|
4897
4919
|
}
|
|
4898
4920
|
);
|
|
4899
4921
|
}
|
|
4900
|
-
),
|
|
4922
|
+
), Bo = "SliderTrack", Vo = h.forwardRef(
|
|
4901
4923
|
(e, t) => {
|
|
4902
|
-
const { __scopeSlider: n, ...a } = e, r = on(
|
|
4924
|
+
const { __scopeSlider: n, ...a } = e, r = on(Bo, n);
|
|
4903
4925
|
return /* @__PURE__ */ c.jsx(
|
|
4904
4926
|
J.span,
|
|
4905
4927
|
{
|
|
@@ -4911,11 +4933,11 @@ var [Fo, $o] = zo(pt, {
|
|
|
4911
4933
|
);
|
|
4912
4934
|
}
|
|
4913
4935
|
);
|
|
4914
|
-
|
|
4915
|
-
var In = "SliderRange",
|
|
4936
|
+
Vo.displayName = Bo;
|
|
4937
|
+
var In = "SliderRange", Go = h.forwardRef(
|
|
4916
4938
|
(e, t) => {
|
|
4917
|
-
const { __scopeSlider: n, ...a } = e, r = on(In, n), o =
|
|
4918
|
-
(f) =>
|
|
4939
|
+
const { __scopeSlider: n, ...a } = e, r = on(In, n), o = Ho(In, n), i = h.useRef(null), s = he(t, i), l = r.values.length, d = r.values.map(
|
|
4940
|
+
(f) => qo(f, r.min, r.max)
|
|
4919
4941
|
), m = l > 1 ? Math.min(...d) : 0, u = 100 - Math.max(...d);
|
|
4920
4942
|
return /* @__PURE__ */ c.jsx(
|
|
4921
4943
|
J.span,
|
|
@@ -4933,18 +4955,18 @@ var In = "SliderRange", Vo = h.forwardRef(
|
|
|
4933
4955
|
);
|
|
4934
4956
|
}
|
|
4935
4957
|
);
|
|
4936
|
-
|
|
4937
|
-
var Wn = "SliderThumb",
|
|
4958
|
+
Go.displayName = In;
|
|
4959
|
+
var Wn = "SliderThumb", Ko = h.forwardRef(
|
|
4938
4960
|
(e, t) => {
|
|
4939
|
-
const n =
|
|
4961
|
+
const n = dm(e.__scopeSlider), [a, r] = h.useState(null), o = he(t, (s) => r(s)), i = h.useMemo(
|
|
4940
4962
|
() => a ? n().findIndex((s) => s.ref.current === a) : -1,
|
|
4941
4963
|
[n, a]
|
|
4942
4964
|
);
|
|
4943
|
-
return /* @__PURE__ */ c.jsx(
|
|
4965
|
+
return /* @__PURE__ */ c.jsx(pm, { ...e, ref: o, index: i });
|
|
4944
4966
|
}
|
|
4945
|
-
),
|
|
4967
|
+
), pm = h.forwardRef(
|
|
4946
4968
|
(e, t) => {
|
|
4947
|
-
const { __scopeSlider: n, index: a, name: r, ...o } = e, i = on(Wn, n), s =
|
|
4969
|
+
const { __scopeSlider: n, index: a, name: r, ...o } = e, i = on(Wn, n), s = Ho(Wn, n), [l, d] = h.useState(null), m = he(t, (S) => d(S)), u = l ? i.form || !!l.closest("form") : !0, f = dl(l), g = i.values[a], p = g === void 0 ? 0 : qo(g, i.min, i.max), y = vm(a, i.values.length), b = f == null ? void 0 : f[s.size], w = b ? ym(b, p, s.direction) : 0;
|
|
4948
4970
|
return h.useEffect(() => {
|
|
4949
4971
|
if (l)
|
|
4950
4972
|
return i.thumbs.add(l), () => {
|
|
@@ -4980,7 +5002,7 @@ var Wn = "SliderThumb", Go = h.forwardRef(
|
|
|
4980
5002
|
}
|
|
4981
5003
|
) }),
|
|
4982
5004
|
u && /* @__PURE__ */ c.jsx(
|
|
4983
|
-
|
|
5005
|
+
gm,
|
|
4984
5006
|
{
|
|
4985
5007
|
name: r ?? (i.name ? i.name + (i.values.length > 1 ? "[]" : "") : void 0),
|
|
4986
5008
|
form: i.form,
|
|
@@ -4993,8 +5015,8 @@ var Wn = "SliderThumb", Go = h.forwardRef(
|
|
|
4993
5015
|
);
|
|
4994
5016
|
}
|
|
4995
5017
|
);
|
|
4996
|
-
|
|
4997
|
-
var
|
|
5018
|
+
Ko.displayName = Wn;
|
|
5019
|
+
var gm = (e) => {
|
|
4998
5020
|
const { value: t, ...n } = e, a = h.useRef(null), r = ul(t);
|
|
4999
5021
|
return h.useEffect(() => {
|
|
5000
5022
|
const o = a.current, i = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(i, "value").set;
|
|
@@ -5004,32 +5026,32 @@ var pm = (e) => {
|
|
|
5004
5026
|
}
|
|
5005
5027
|
}, [r, t]), /* @__PURE__ */ c.jsx("input", { style: { display: "none" }, ...n, ref: a, defaultValue: t });
|
|
5006
5028
|
};
|
|
5007
|
-
function
|
|
5029
|
+
function bm(e = [], t, n) {
|
|
5008
5030
|
const a = [...e];
|
|
5009
5031
|
return a[n] = t, a.sort((r, o) => r - o);
|
|
5010
5032
|
}
|
|
5011
|
-
function
|
|
5033
|
+
function qo(e, t, n) {
|
|
5012
5034
|
const o = 100 / (n - t) * (e - t);
|
|
5013
5035
|
return Yn(o, [0, 100]);
|
|
5014
5036
|
}
|
|
5015
|
-
function
|
|
5037
|
+
function vm(e, t) {
|
|
5016
5038
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
5017
5039
|
}
|
|
5018
|
-
function
|
|
5040
|
+
function wm(e, t) {
|
|
5019
5041
|
if (e.length === 1) return 0;
|
|
5020
5042
|
const n = e.map((r) => Math.abs(r - t)), a = Math.min(...n);
|
|
5021
5043
|
return n.indexOf(a);
|
|
5022
5044
|
}
|
|
5023
|
-
function
|
|
5045
|
+
function ym(e, t, n) {
|
|
5024
5046
|
const a = e / 2, o = aa([0, 50], [0, a]);
|
|
5025
5047
|
return (a - o(t) * n) * n;
|
|
5026
5048
|
}
|
|
5027
|
-
function
|
|
5049
|
+
function xm(e) {
|
|
5028
5050
|
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
5029
5051
|
}
|
|
5030
|
-
function
|
|
5052
|
+
function Sm(e, t) {
|
|
5031
5053
|
if (t > 0) {
|
|
5032
|
-
const n =
|
|
5054
|
+
const n = xm(e);
|
|
5033
5055
|
return Math.min(...n) >= t;
|
|
5034
5056
|
}
|
|
5035
5057
|
return !0;
|
|
@@ -5041,16 +5063,16 @@ function aa(e, t) {
|
|
|
5041
5063
|
return t[0] + a * (n - e[0]);
|
|
5042
5064
|
};
|
|
5043
5065
|
}
|
|
5044
|
-
function
|
|
5066
|
+
function Mm(e) {
|
|
5045
5067
|
return (String(e).split(".")[1] || "").length;
|
|
5046
5068
|
}
|
|
5047
|
-
function
|
|
5069
|
+
function Cm(e, t) {
|
|
5048
5070
|
const n = Math.pow(10, t);
|
|
5049
5071
|
return Math.round(e * n) / n;
|
|
5050
5072
|
}
|
|
5051
|
-
var
|
|
5052
|
-
const
|
|
5053
|
-
|
|
5073
|
+
var Uo = Fo, Nm = Vo, Dm = Go, Pm = Ko;
|
|
5074
|
+
const Tm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
5075
|
+
Uo,
|
|
5054
5076
|
{
|
|
5055
5077
|
ref: n,
|
|
5056
5078
|
role: "group",
|
|
@@ -5062,23 +5084,23 @@ const Pm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsxs(
|
|
|
5062
5084
|
...t,
|
|
5063
5085
|
children: [
|
|
5064
5086
|
/* @__PURE__ */ c.jsx(
|
|
5065
|
-
|
|
5087
|
+
Nm,
|
|
5066
5088
|
{
|
|
5067
5089
|
role: "presentation",
|
|
5068
5090
|
"aria-label": "Slider track",
|
|
5069
5091
|
className: "al-relative al-h-2 al-w-full al-grow al-overflow-hidden al-rounded-full al-bg-secondary",
|
|
5070
|
-
children: /* @__PURE__ */ c.jsx(
|
|
5092
|
+
children: /* @__PURE__ */ c.jsx(Dm, { className: "al-absolute al-h-full al-bg-primary" })
|
|
5071
5093
|
}
|
|
5072
5094
|
),
|
|
5073
|
-
/* @__PURE__ */ c.jsx(
|
|
5095
|
+
/* @__PURE__ */ c.jsx(Pm, { 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" })
|
|
5074
5096
|
]
|
|
5075
5097
|
}
|
|
5076
5098
|
));
|
|
5077
|
-
|
|
5078
|
-
var sn = "Menubar", [zn,
|
|
5079
|
-
|
|
5099
|
+
Tm.displayName = Uo.displayName;
|
|
5100
|
+
var sn = "Menubar", [zn, Em, km] = Bn(sn), [Xo, Tp] = He(sn, [
|
|
5101
|
+
km,
|
|
5080
5102
|
Zt
|
|
5081
|
-
]), me =
|
|
5103
|
+
]), me = Li(), Zo = Zt(), [Rm, ra] = Xo(sn), Qo = h.forwardRef(
|
|
5082
5104
|
(e, t) => {
|
|
5083
5105
|
const {
|
|
5084
5106
|
__scopeMenubar: n,
|
|
@@ -5088,13 +5110,13 @@ var sn = "Menubar", [zn, Tm, Em] = Bn(sn), [Uo, Pp] = He(sn, [
|
|
|
5088
5110
|
loop: i = !0,
|
|
5089
5111
|
dir: s,
|
|
5090
5112
|
...l
|
|
5091
|
-
} = e, d = Qt(s), m =
|
|
5113
|
+
} = e, d = Qt(s), m = Zo(n), [u = "", f] = ut({
|
|
5092
5114
|
prop: a,
|
|
5093
5115
|
onChange: r,
|
|
5094
5116
|
defaultProp: o
|
|
5095
5117
|
}), [g, p] = h.useState(null);
|
|
5096
5118
|
return /* @__PURE__ */ c.jsx(
|
|
5097
|
-
|
|
5119
|
+
Rm,
|
|
5098
5120
|
{
|
|
5099
5121
|
scope: n,
|
|
5100
5122
|
value: u,
|
|
@@ -5114,7 +5136,7 @@ var sn = "Menubar", [zn, Tm, Em] = Bn(sn), [Uo, Pp] = He(sn, [
|
|
|
5114
5136
|
dir: d,
|
|
5115
5137
|
loop: i,
|
|
5116
5138
|
children: /* @__PURE__ */ c.jsx(zn.Provider, { scope: n, children: /* @__PURE__ */ c.jsx(zn.Slot, { scope: n, children: /* @__PURE__ */ c.jsx(
|
|
5117
|
-
|
|
5139
|
+
er,
|
|
5118
5140
|
{
|
|
5119
5141
|
asChild: !0,
|
|
5120
5142
|
...m,
|
|
@@ -5130,13 +5152,13 @@ var sn = "Menubar", [zn, Tm, Em] = Bn(sn), [Uo, Pp] = He(sn, [
|
|
|
5130
5152
|
);
|
|
5131
5153
|
}
|
|
5132
5154
|
);
|
|
5133
|
-
|
|
5134
|
-
var oa = "MenubarMenu", [
|
|
5155
|
+
Qo.displayName = sn;
|
|
5156
|
+
var oa = "MenubarMenu", [_m, Jo] = Xo(oa), es = (e) => {
|
|
5135
5157
|
const { __scopeMenubar: t, value: n, ...a } = e, r = Ht(), o = n || r || "LEGACY_REACT_AUTO_VALUE", i = ra(oa, t), s = me(t), l = h.useRef(null), d = h.useRef(!1), m = i.value === o;
|
|
5136
5158
|
return h.useEffect(() => {
|
|
5137
5159
|
m || (d.current = !1);
|
|
5138
5160
|
}, [m]), /* @__PURE__ */ c.jsx(
|
|
5139
|
-
|
|
5161
|
+
_m,
|
|
5140
5162
|
{
|
|
5141
5163
|
scope: t,
|
|
5142
5164
|
value: o,
|
|
@@ -5145,7 +5167,7 @@ var oa = "MenubarMenu", [Rm, Qo] = Uo(oa), Jo = (e) => {
|
|
|
5145
5167
|
contentId: Ht(),
|
|
5146
5168
|
wasKeyboardTriggerOpenRef: d,
|
|
5147
5169
|
children: /* @__PURE__ */ c.jsx(
|
|
5148
|
-
|
|
5170
|
+
Ji,
|
|
5149
5171
|
{
|
|
5150
5172
|
...s,
|
|
5151
5173
|
open: m,
|
|
@@ -5160,18 +5182,18 @@ var oa = "MenubarMenu", [Rm, Qo] = Uo(oa), Jo = (e) => {
|
|
|
5160
5182
|
}
|
|
5161
5183
|
);
|
|
5162
5184
|
};
|
|
5163
|
-
|
|
5164
|
-
var Ln = "MenubarTrigger",
|
|
5185
|
+
es.displayName = oa;
|
|
5186
|
+
var Ln = "MenubarTrigger", ts = h.forwardRef(
|
|
5165
5187
|
(e, t) => {
|
|
5166
|
-
const { __scopeMenubar: n, disabled: a = !1, ...r } = e, o =
|
|
5188
|
+
const { __scopeMenubar: n, disabled: a = !1, ...r } = e, o = Zo(n), i = me(n), s = ra(Ln, n), l = Jo(Ln, n), d = h.useRef(null), m = he(t, d, l.triggerRef), [u, f] = h.useState(!1), g = s.value === l.value;
|
|
5167
5189
|
return /* @__PURE__ */ c.jsx(zn.ItemSlot, { scope: n, value: l.value, disabled: a, children: /* @__PURE__ */ c.jsx(
|
|
5168
|
-
|
|
5190
|
+
tr,
|
|
5169
5191
|
{
|
|
5170
5192
|
asChild: !0,
|
|
5171
5193
|
...o,
|
|
5172
5194
|
focusable: !a,
|
|
5173
5195
|
tabStopId: l.value,
|
|
5174
|
-
children: /* @__PURE__ */ c.jsx(
|
|
5196
|
+
children: /* @__PURE__ */ c.jsx(Fi, { asChild: !0, ...i, children: /* @__PURE__ */ c.jsx(
|
|
5175
5197
|
J.button,
|
|
5176
5198
|
{
|
|
5177
5199
|
type: "button",
|
|
@@ -5204,17 +5226,17 @@ var Ln = "MenubarTrigger", es = h.forwardRef(
|
|
|
5204
5226
|
) });
|
|
5205
5227
|
}
|
|
5206
5228
|
);
|
|
5207
|
-
|
|
5208
|
-
var
|
|
5229
|
+
ts.displayName = Ln;
|
|
5230
|
+
var Om = "MenubarPortal", ns = (e) => {
|
|
5209
5231
|
const { __scopeMenubar: t, ...n } = e, a = me(t);
|
|
5210
|
-
return /* @__PURE__ */ c.jsx(
|
|
5232
|
+
return /* @__PURE__ */ c.jsx(el, { ...a, ...n });
|
|
5211
5233
|
};
|
|
5212
|
-
|
|
5213
|
-
var Fn = "MenubarContent",
|
|
5234
|
+
ns.displayName = Om;
|
|
5235
|
+
var Fn = "MenubarContent", as = h.forwardRef(
|
|
5214
5236
|
(e, t) => {
|
|
5215
|
-
const { __scopeMenubar: n, align: a = "start", ...r } = e, o = me(n), i = ra(Fn, n), s =
|
|
5237
|
+
const { __scopeMenubar: n, align: a = "start", ...r } = e, o = me(n), i = ra(Fn, n), s = Jo(Fn, n), l = Em(n), d = h.useRef(!1);
|
|
5216
5238
|
return /* @__PURE__ */ c.jsx(
|
|
5217
|
-
|
|
5239
|
+
$i,
|
|
5218
5240
|
{
|
|
5219
5241
|
id: s.contentId,
|
|
5220
5242
|
"aria-labelledby": s.triggerId,
|
|
@@ -5249,7 +5271,7 @@ var Fn = "MenubarContent", ns = h.forwardRef(
|
|
|
5249
5271
|
let S = l().filter((v) => !v.disabled).map((v) => v.value);
|
|
5250
5272
|
y && S.reverse();
|
|
5251
5273
|
const x = S.indexOf(s.value);
|
|
5252
|
-
S = i.loop ?
|
|
5274
|
+
S = i.loop ? Km(S, x + 1) : S.slice(x + 1);
|
|
5253
5275
|
const [D] = S;
|
|
5254
5276
|
D && i.onMenuOpen(D);
|
|
5255
5277
|
}
|
|
@@ -5268,82 +5290,82 @@ var Fn = "MenubarContent", ns = h.forwardRef(
|
|
|
5268
5290
|
);
|
|
5269
5291
|
}
|
|
5270
5292
|
);
|
|
5271
|
-
|
|
5272
|
-
var
|
|
5273
|
-
(e, t) => {
|
|
5274
|
-
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5275
|
-
return /* @__PURE__ */ c.jsx($i, { ...r, ...a, ref: t });
|
|
5276
|
-
}
|
|
5277
|
-
);
|
|
5278
|
-
as.displayName = Om;
|
|
5279
|
-
var jm = "MenubarLabel", rs = h.forwardRef(
|
|
5293
|
+
as.displayName = Fn;
|
|
5294
|
+
var jm = "MenubarGroup", rs = h.forwardRef(
|
|
5280
5295
|
(e, t) => {
|
|
5281
5296
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5282
5297
|
return /* @__PURE__ */ c.jsx(Hi, { ...r, ...a, ref: t });
|
|
5283
5298
|
}
|
|
5284
5299
|
);
|
|
5285
5300
|
rs.displayName = jm;
|
|
5286
|
-
var Am = "
|
|
5301
|
+
var Am = "MenubarLabel", os = h.forwardRef(
|
|
5287
5302
|
(e, t) => {
|
|
5288
5303
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5289
5304
|
return /* @__PURE__ */ c.jsx(Yi, { ...r, ...a, ref: t });
|
|
5290
5305
|
}
|
|
5291
5306
|
);
|
|
5292
5307
|
os.displayName = Am;
|
|
5293
|
-
var Im = "
|
|
5308
|
+
var Im = "MenubarItem", ss = h.forwardRef(
|
|
5294
5309
|
(e, t) => {
|
|
5295
5310
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5296
5311
|
return /* @__PURE__ */ c.jsx(Bi, { ...r, ...a, ref: t });
|
|
5297
5312
|
}
|
|
5298
5313
|
);
|
|
5299
5314
|
ss.displayName = Im;
|
|
5300
|
-
var Wm = "
|
|
5315
|
+
var Wm = "MenubarCheckboxItem", is = h.forwardRef(
|
|
5301
5316
|
(e, t) => {
|
|
5302
5317
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5303
5318
|
return /* @__PURE__ */ c.jsx(Vi, { ...r, ...a, ref: t });
|
|
5304
5319
|
}
|
|
5305
5320
|
);
|
|
5306
5321
|
is.displayName = Wm;
|
|
5307
|
-
var zm = "
|
|
5322
|
+
var zm = "MenubarRadioGroup", ls = h.forwardRef(
|
|
5308
5323
|
(e, t) => {
|
|
5309
5324
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5310
5325
|
return /* @__PURE__ */ c.jsx(Gi, { ...r, ...a, ref: t });
|
|
5311
5326
|
}
|
|
5312
5327
|
);
|
|
5313
5328
|
ls.displayName = zm;
|
|
5314
|
-
var Lm = "
|
|
5315
|
-
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5316
|
-
return /* @__PURE__ */ c.jsx(Ki, { ...r, ...a, ref: t });
|
|
5317
|
-
});
|
|
5318
|
-
cs.displayName = Lm;
|
|
5319
|
-
var Fm = "MenubarSeparator", ds = h.forwardRef(
|
|
5329
|
+
var Lm = "MenubarRadioItem", cs = h.forwardRef(
|
|
5320
5330
|
(e, t) => {
|
|
5321
5331
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5322
|
-
return /* @__PURE__ */ c.jsx(
|
|
5332
|
+
return /* @__PURE__ */ c.jsx(Ki, { ...r, ...a, ref: t });
|
|
5323
5333
|
}
|
|
5324
5334
|
);
|
|
5335
|
+
cs.displayName = Lm;
|
|
5336
|
+
var Fm = "MenubarItemIndicator", ds = h.forwardRef((e, t) => {
|
|
5337
|
+
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5338
|
+
return /* @__PURE__ */ c.jsx(qi, { ...r, ...a, ref: t });
|
|
5339
|
+
});
|
|
5325
5340
|
ds.displayName = Fm;
|
|
5326
|
-
var $m = "
|
|
5341
|
+
var $m = "MenubarSeparator", us = h.forwardRef(
|
|
5327
5342
|
(e, t) => {
|
|
5328
5343
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5329
5344
|
return /* @__PURE__ */ c.jsx(Ui, { ...r, ...a, ref: t });
|
|
5330
5345
|
}
|
|
5331
5346
|
);
|
|
5332
|
-
|
|
5333
|
-
var
|
|
5347
|
+
us.displayName = $m;
|
|
5348
|
+
var Hm = "MenubarArrow", Ym = h.forwardRef(
|
|
5349
|
+
(e, t) => {
|
|
5350
|
+
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5351
|
+
return /* @__PURE__ */ c.jsx(Xi, { ...r, ...a, ref: t });
|
|
5352
|
+
}
|
|
5353
|
+
);
|
|
5354
|
+
Ym.displayName = Hm;
|
|
5355
|
+
var Bm = "MenubarSub", fs = (e) => {
|
|
5334
5356
|
const { __scopeMenubar: t, children: n, open: a, onOpenChange: r, defaultOpen: o } = e, i = me(t), [s = !1, l] = ut({
|
|
5335
5357
|
prop: a,
|
|
5336
5358
|
defaultProp: o,
|
|
5337
5359
|
onChange: r
|
|
5338
5360
|
});
|
|
5339
|
-
return /* @__PURE__ */ c.jsx(
|
|
5361
|
+
return /* @__PURE__ */ c.jsx(tl, { ...i, open: s, onOpenChange: l, children: n });
|
|
5340
5362
|
};
|
|
5341
|
-
|
|
5342
|
-
var
|
|
5363
|
+
fs.displayName = Bm;
|
|
5364
|
+
var Vm = "MenubarSubTrigger", ms = h.forwardRef(
|
|
5343
5365
|
(e, t) => {
|
|
5344
5366
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5345
5367
|
return /* @__PURE__ */ c.jsx(
|
|
5346
|
-
|
|
5368
|
+
Zi,
|
|
5347
5369
|
{
|
|
5348
5370
|
"data-radix-menubar-subtrigger": "",
|
|
5349
5371
|
...r,
|
|
@@ -5353,12 +5375,12 @@ var Bm = "MenubarSubTrigger", fs = h.forwardRef(
|
|
|
5353
5375
|
);
|
|
5354
5376
|
}
|
|
5355
5377
|
);
|
|
5356
|
-
|
|
5357
|
-
var
|
|
5378
|
+
ms.displayName = Vm;
|
|
5379
|
+
var Gm = "MenubarSubContent", hs = h.forwardRef(
|
|
5358
5380
|
(e, t) => {
|
|
5359
5381
|
const { __scopeMenubar: n, ...a } = e, r = me(n);
|
|
5360
5382
|
return /* @__PURE__ */ c.jsx(
|
|
5361
|
-
|
|
5383
|
+
Qi,
|
|
5362
5384
|
{
|
|
5363
5385
|
...r,
|
|
5364
5386
|
"data-radix-menubar-content": "",
|
|
@@ -5376,12 +5398,12 @@ var Vm = "MenubarSubContent", ms = h.forwardRef(
|
|
|
5376
5398
|
);
|
|
5377
5399
|
}
|
|
5378
5400
|
);
|
|
5379
|
-
|
|
5380
|
-
function
|
|
5401
|
+
hs.displayName = Gm;
|
|
5402
|
+
function Km(e, t) {
|
|
5381
5403
|
return e.map((n, a) => e[(t + a) % e.length]);
|
|
5382
5404
|
}
|
|
5383
|
-
var
|
|
5384
|
-
const
|
|
5405
|
+
var ps = Qo, qm = es, gs = ts, bs = ns, vs = as, Um = rs, ws = os, ys = ss, xs = is, Xm = ls, Ss = cs, Ms = ds, Cs = us, Zm = fs, Ns = ms, Ds = hs;
|
|
5406
|
+
const Ep = qm, kp = Um, Rp = bs, _p = Zm, Op = Xm, Qm = ft(
|
|
5385
5407
|
[
|
|
5386
5408
|
"al-flex al-items-center al-justify-between al-rounded-md",
|
|
5387
5409
|
"al-text-sm al-font-normal",
|
|
@@ -5437,26 +5459,26 @@ const Tp = Km, Ep = qm, kp = gs, Rp = Xm, _p = Um, Zm = ft(
|
|
|
5437
5459
|
size: "default"
|
|
5438
5460
|
}
|
|
5439
5461
|
}
|
|
5440
|
-
),
|
|
5441
|
-
|
|
5462
|
+
), Jm = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
5463
|
+
ps,
|
|
5442
5464
|
{
|
|
5443
5465
|
ref: n,
|
|
5444
5466
|
className: N("al-flex al-h-10 al-items-center al-space-x-1 al-rounded-md al-p-1", e),
|
|
5445
5467
|
...t
|
|
5446
5468
|
}
|
|
5447
5469
|
));
|
|
5448
|
-
|
|
5449
|
-
const
|
|
5450
|
-
|
|
5470
|
+
Jm.displayName = ps.displayName;
|
|
5471
|
+
const eh = h.forwardRef(({ className: e, variant: t, size: n, ...a }, r) => /* @__PURE__ */ c.jsx(
|
|
5472
|
+
gs,
|
|
5451
5473
|
{
|
|
5452
5474
|
ref: r,
|
|
5453
|
-
className: N(
|
|
5475
|
+
className: N(Qm({ variant: t, size: n, className: e })),
|
|
5454
5476
|
...a
|
|
5455
5477
|
}
|
|
5456
5478
|
));
|
|
5457
|
-
|
|
5458
|
-
const
|
|
5459
|
-
|
|
5479
|
+
eh.displayName = gs.displayName;
|
|
5480
|
+
const th = h.forwardRef(({ className: e, inset: t, children: n, ...a }, r) => /* @__PURE__ */ c.jsxs(
|
|
5481
|
+
Ns,
|
|
5460
5482
|
{
|
|
5461
5483
|
ref: r,
|
|
5462
5484
|
className: N(
|
|
@@ -5471,9 +5493,9 @@ const eh = h.forwardRef(({ className: e, inset: t, children: n, ...a }, r) => /*
|
|
|
5471
5493
|
]
|
|
5472
5494
|
}
|
|
5473
5495
|
));
|
|
5474
|
-
|
|
5475
|
-
const
|
|
5476
|
-
|
|
5496
|
+
th.displayName = Ns.displayName;
|
|
5497
|
+
const nh = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
5498
|
+
Ds,
|
|
5477
5499
|
{
|
|
5478
5500
|
ref: n,
|
|
5479
5501
|
className: N(
|
|
@@ -5483,9 +5505,9 @@ const th = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
5483
5505
|
...t
|
|
5484
5506
|
}
|
|
5485
5507
|
));
|
|
5486
|
-
|
|
5487
|
-
const
|
|
5488
|
-
|
|
5508
|
+
nh.displayName = Ds.displayName;
|
|
5509
|
+
const ah = h.forwardRef(({ className: e, align: t = "start", alignOffset: n = -4, sideOffset: a = 8, ...r }, o) => /* @__PURE__ */ c.jsx(bs, { children: /* @__PURE__ */ c.jsx(
|
|
5510
|
+
vs,
|
|
5489
5511
|
{
|
|
5490
5512
|
ref: o,
|
|
5491
5513
|
align: t,
|
|
@@ -5498,9 +5520,9 @@ const nh = h.forwardRef(({ className: e, align: t = "start", alignOffset: n = -4
|
|
|
5498
5520
|
...r
|
|
5499
5521
|
}
|
|
5500
5522
|
) }));
|
|
5501
|
-
|
|
5502
|
-
const
|
|
5503
|
-
|
|
5523
|
+
ah.displayName = vs.displayName;
|
|
5524
|
+
const rh = h.forwardRef(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */ c.jsx(
|
|
5525
|
+
ys,
|
|
5504
5526
|
{
|
|
5505
5527
|
ref: a,
|
|
5506
5528
|
className: N(
|
|
@@ -5511,9 +5533,9 @@ const ah = h.forwardRef(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */
|
|
|
5511
5533
|
...n
|
|
5512
5534
|
}
|
|
5513
5535
|
));
|
|
5514
|
-
|
|
5515
|
-
const
|
|
5516
|
-
|
|
5536
|
+
rh.displayName = ys.displayName;
|
|
5537
|
+
const oh = h.forwardRef(({ className: e, children: t, checked: n, ...a }, r) => /* @__PURE__ */ c.jsxs(
|
|
5538
|
+
xs,
|
|
5517
5539
|
{
|
|
5518
5540
|
ref: r,
|
|
5519
5541
|
className: N(
|
|
@@ -5523,14 +5545,14 @@ const rh = h.forwardRef(({ className: e, children: t, checked: n, ...a }, r) =>
|
|
|
5523
5545
|
checked: n,
|
|
5524
5546
|
...a,
|
|
5525
5547
|
children: [
|
|
5526
|
-
/* @__PURE__ */ c.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__ */ c.jsx(
|
|
5548
|
+
/* @__PURE__ */ c.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__ */ c.jsx(Ms, { children: /* @__PURE__ */ c.jsx(sr, { className: "al-h-4 al-w-4" }) }) }),
|
|
5527
5549
|
t
|
|
5528
5550
|
]
|
|
5529
5551
|
}
|
|
5530
5552
|
));
|
|
5531
|
-
|
|
5532
|
-
const
|
|
5533
|
-
|
|
5553
|
+
oh.displayName = xs.displayName;
|
|
5554
|
+
const sh = h.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ c.jsxs(
|
|
5555
|
+
Ss,
|
|
5534
5556
|
{
|
|
5535
5557
|
ref: a,
|
|
5536
5558
|
className: N(
|
|
@@ -5539,39 +5561,39 @@ const oh = h.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
5539
5561
|
),
|
|
5540
5562
|
...n,
|
|
5541
5563
|
children: [
|
|
5542
|
-
/* @__PURE__ */ c.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__ */ c.jsx(
|
|
5564
|
+
/* @__PURE__ */ c.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__ */ c.jsx(Ms, { children: /* @__PURE__ */ c.jsx(xl, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
|
|
5543
5565
|
t
|
|
5544
5566
|
]
|
|
5545
5567
|
}
|
|
5546
5568
|
));
|
|
5547
|
-
|
|
5548
|
-
const
|
|
5549
|
-
|
|
5569
|
+
sh.displayName = Ss.displayName;
|
|
5570
|
+
const ih = h.forwardRef(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */ c.jsx(
|
|
5571
|
+
ws,
|
|
5550
5572
|
{
|
|
5551
5573
|
ref: a,
|
|
5552
5574
|
className: N("al-px-2 al-py-1.5 al-text-sm al-font-semibold", t && "al-pl-8", e),
|
|
5553
5575
|
...n
|
|
5554
5576
|
}
|
|
5555
5577
|
));
|
|
5556
|
-
|
|
5557
|
-
const
|
|
5558
|
-
|
|
5578
|
+
ih.displayName = ws.displayName;
|
|
5579
|
+
const lh = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
5580
|
+
Cs,
|
|
5559
5581
|
{
|
|
5560
5582
|
ref: n,
|
|
5561
5583
|
className: N("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
|
|
5562
5584
|
...t
|
|
5563
5585
|
}
|
|
5564
5586
|
));
|
|
5565
|
-
|
|
5566
|
-
const
|
|
5587
|
+
lh.displayName = Cs.displayName;
|
|
5588
|
+
const ch = ({ className: e, ...t }) => /* @__PURE__ */ c.jsx(
|
|
5567
5589
|
"span",
|
|
5568
5590
|
{
|
|
5569
5591
|
className: N("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
|
|
5570
5592
|
...t
|
|
5571
5593
|
}
|
|
5572
5594
|
);
|
|
5573
|
-
|
|
5574
|
-
const
|
|
5595
|
+
ch.displayname = "MenubarShortcut";
|
|
5596
|
+
const dh = ({ className: e, ...t }) => /* @__PURE__ */ c.jsx(
|
|
5575
5597
|
"nav",
|
|
5576
5598
|
{
|
|
5577
5599
|
role: "navigation",
|
|
@@ -5580,8 +5602,8 @@ const ch = ({ className: e, ...t }) => /* @__PURE__ */ c.jsx(
|
|
|
5580
5602
|
...t
|
|
5581
5603
|
}
|
|
5582
5604
|
);
|
|
5583
|
-
|
|
5584
|
-
const
|
|
5605
|
+
dh.displayName = "Pagination";
|
|
5606
|
+
const uh = h.forwardRef(
|
|
5585
5607
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
5586
5608
|
"ul",
|
|
5587
5609
|
{
|
|
@@ -5591,11 +5613,11 @@ const dh = h.forwardRef(
|
|
|
5591
5613
|
}
|
|
5592
5614
|
)
|
|
5593
5615
|
);
|
|
5594
|
-
|
|
5595
|
-
const
|
|
5616
|
+
uh.displayName = "PaginationContent";
|
|
5617
|
+
const fh = h.forwardRef(
|
|
5596
5618
|
({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx("li", { ref: n, className: N("al-", e), ...t })
|
|
5597
5619
|
);
|
|
5598
|
-
|
|
5620
|
+
fh.displayName = "PaginationItem";
|
|
5599
5621
|
const sa = ({
|
|
5600
5622
|
className: e,
|
|
5601
5623
|
isActive: t,
|
|
@@ -5620,7 +5642,7 @@ const sa = ({
|
|
|
5620
5642
|
}
|
|
5621
5643
|
);
|
|
5622
5644
|
sa.displayName = "PaginationLink";
|
|
5623
|
-
const
|
|
5645
|
+
const mh = ({
|
|
5624
5646
|
className: e,
|
|
5625
5647
|
...t
|
|
5626
5648
|
}) => /* @__PURE__ */ c.jsxs(
|
|
@@ -5631,13 +5653,13 @@ const fh = ({
|
|
|
5631
5653
|
className: N("al-gap-1 al-pl-2.5", e),
|
|
5632
5654
|
...t,
|
|
5633
5655
|
children: [
|
|
5634
|
-
/* @__PURE__ */ c.jsx(
|
|
5656
|
+
/* @__PURE__ */ c.jsx(ar, { className: "al-h-4 al-w-4" }),
|
|
5635
5657
|
/* @__PURE__ */ c.jsx("span", { children: "Previous" })
|
|
5636
5658
|
]
|
|
5637
5659
|
}
|
|
5638
5660
|
);
|
|
5639
|
-
|
|
5640
|
-
const
|
|
5661
|
+
mh.displayName = "PaginationPrevious";
|
|
5662
|
+
const hh = ({ className: e, ...t }) => /* @__PURE__ */ c.jsxs(
|
|
5641
5663
|
sa,
|
|
5642
5664
|
{
|
|
5643
5665
|
"aria-label": "Go to next page",
|
|
@@ -5650,42 +5672,42 @@ const mh = ({ className: e, ...t }) => /* @__PURE__ */ c.jsxs(
|
|
|
5650
5672
|
]
|
|
5651
5673
|
}
|
|
5652
5674
|
);
|
|
5653
|
-
|
|
5654
|
-
const
|
|
5675
|
+
hh.displayName = "PaginationNext";
|
|
5676
|
+
const ph = ({ className: e, ...t }) => /* @__PURE__ */ c.jsxs(
|
|
5655
5677
|
"span",
|
|
5656
5678
|
{
|
|
5657
5679
|
"aria-hidden": !0,
|
|
5658
5680
|
className: N("al-flex al-h-9 al-w-9 al-items-center al-justify-center", e),
|
|
5659
5681
|
...t,
|
|
5660
5682
|
children: [
|
|
5661
|
-
/* @__PURE__ */ c.jsx(
|
|
5683
|
+
/* @__PURE__ */ c.jsx(ir, { className: "al-h-4 al-w-4" }),
|
|
5662
5684
|
/* @__PURE__ */ c.jsx("span", { className: "al-sr-only", children: "More pages" })
|
|
5663
5685
|
]
|
|
5664
5686
|
}
|
|
5665
5687
|
);
|
|
5666
|
-
|
|
5688
|
+
ph.displayName = "PaginationEllipsis";
|
|
5667
5689
|
const {
|
|
5668
5690
|
createElement: ct,
|
|
5669
|
-
createContext:
|
|
5670
|
-
createRef:
|
|
5671
|
-
forwardRef:
|
|
5691
|
+
createContext: gh,
|
|
5692
|
+
createRef: jp,
|
|
5693
|
+
forwardRef: Ps,
|
|
5672
5694
|
useCallback: ge,
|
|
5673
|
-
useContext:
|
|
5695
|
+
useContext: Ts,
|
|
5674
5696
|
useEffect: Ue,
|
|
5675
|
-
useImperativeHandle:
|
|
5676
|
-
useLayoutEffect:
|
|
5677
|
-
useMemo:
|
|
5697
|
+
useImperativeHandle: Es,
|
|
5698
|
+
useLayoutEffect: bh,
|
|
5699
|
+
useMemo: vh,
|
|
5678
5700
|
useRef: be,
|
|
5679
5701
|
useState: st
|
|
5680
|
-
} = h, za = h[`useId${Math.random()}`.slice(0, 5)],
|
|
5702
|
+
} = h, za = h[`useId${Math.random()}`.slice(0, 5)], wh = bh, ln = gh(null);
|
|
5681
5703
|
ln.displayName = "PanelGroupContext";
|
|
5682
|
-
const Xe =
|
|
5683
|
-
let
|
|
5704
|
+
const Xe = wh, yh = typeof za == "function" ? za : () => null;
|
|
5705
|
+
let xh = 0;
|
|
5684
5706
|
function ia(e = null) {
|
|
5685
|
-
const t =
|
|
5686
|
-
return n.current === null && (n.current = "" +
|
|
5707
|
+
const t = yh(), n = be(e || t || null);
|
|
5708
|
+
return n.current === null && (n.current = "" + xh++), e ?? n.current;
|
|
5687
5709
|
}
|
|
5688
|
-
function
|
|
5710
|
+
function ks({
|
|
5689
5711
|
children: e,
|
|
5690
5712
|
className: t = "",
|
|
5691
5713
|
collapsedSize: n,
|
|
@@ -5703,7 +5725,7 @@ function Es({
|
|
|
5703
5725
|
tagName: p = "div",
|
|
5704
5726
|
...y
|
|
5705
5727
|
}) {
|
|
5706
|
-
const b =
|
|
5728
|
+
const b = Ts(ln);
|
|
5707
5729
|
if (b === null)
|
|
5708
5730
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
5709
5731
|
const {
|
|
@@ -5749,7 +5771,7 @@ function Es({
|
|
|
5749
5771
|
return O(E), () => {
|
|
5750
5772
|
W(E);
|
|
5751
5773
|
};
|
|
5752
|
-
}, [f, k, O, W]),
|
|
5774
|
+
}, [f, k, O, W]), Es(o, () => ({
|
|
5753
5775
|
collapse: () => {
|
|
5754
5776
|
w(j.current);
|
|
5755
5777
|
},
|
|
@@ -5790,16 +5812,16 @@ function Es({
|
|
|
5790
5812
|
"data-panel-size": parseFloat("" + X.flexGrow).toFixed(1)
|
|
5791
5813
|
});
|
|
5792
5814
|
}
|
|
5793
|
-
const
|
|
5815
|
+
const Rs = Ps((e, t) => ct(ks, {
|
|
5794
5816
|
...e,
|
|
5795
5817
|
forwardedRef: t
|
|
5796
5818
|
}));
|
|
5797
|
-
|
|
5798
|
-
|
|
5819
|
+
ks.displayName = "Panel";
|
|
5820
|
+
Rs.displayName = "forwardRef(Panel)";
|
|
5799
5821
|
let $n = null, qe = null;
|
|
5800
|
-
function
|
|
5822
|
+
function Sh(e, t) {
|
|
5801
5823
|
if (t) {
|
|
5802
|
-
const n = (t &
|
|
5824
|
+
const n = (t & Is) !== 0, a = (t & Ws) !== 0, r = (t & zs) !== 0, o = (t & Ls) !== 0;
|
|
5803
5825
|
if (n)
|
|
5804
5826
|
return r ? "se-resize" : o ? "ne-resize" : "e-resize";
|
|
5805
5827
|
if (a)
|
|
@@ -5818,30 +5840,30 @@ function xh(e, t) {
|
|
|
5818
5840
|
return "ns-resize";
|
|
5819
5841
|
}
|
|
5820
5842
|
}
|
|
5821
|
-
function
|
|
5843
|
+
function Mh() {
|
|
5822
5844
|
qe !== null && (document.head.removeChild(qe), $n = null, qe = null);
|
|
5823
5845
|
}
|
|
5824
5846
|
function Dn(e, t) {
|
|
5825
|
-
const n =
|
|
5847
|
+
const n = Sh(e, t);
|
|
5826
5848
|
$n !== n && ($n = n, qe === null && (qe = document.createElement("style"), document.head.appendChild(qe)), qe.innerHTML = `*{cursor: ${n}!important;}`);
|
|
5827
5849
|
}
|
|
5828
|
-
function
|
|
5850
|
+
function _s(e) {
|
|
5829
5851
|
return e.type === "keydown";
|
|
5830
5852
|
}
|
|
5831
|
-
function
|
|
5853
|
+
function Os(e) {
|
|
5832
5854
|
return e.type.startsWith("pointer");
|
|
5833
5855
|
}
|
|
5834
|
-
function
|
|
5856
|
+
function js(e) {
|
|
5835
5857
|
return e.type.startsWith("mouse");
|
|
5836
5858
|
}
|
|
5837
5859
|
function cn(e) {
|
|
5838
|
-
if (
|
|
5860
|
+
if (Os(e)) {
|
|
5839
5861
|
if (e.isPrimary)
|
|
5840
5862
|
return {
|
|
5841
5863
|
x: e.clientX,
|
|
5842
5864
|
y: e.clientY
|
|
5843
5865
|
};
|
|
5844
|
-
} else if (
|
|
5866
|
+
} else if (js(e))
|
|
5845
5867
|
return {
|
|
5846
5868
|
x: e.clientX,
|
|
5847
5869
|
y: e.clientY
|
|
@@ -5851,14 +5873,14 @@ function cn(e) {
|
|
|
5851
5873
|
y: 1 / 0
|
|
5852
5874
|
};
|
|
5853
5875
|
}
|
|
5854
|
-
function
|
|
5876
|
+
function Ch() {
|
|
5855
5877
|
if (typeof matchMedia == "function")
|
|
5856
5878
|
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
5857
5879
|
}
|
|
5858
|
-
function
|
|
5880
|
+
function Nh(e, t, n) {
|
|
5859
5881
|
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;
|
|
5860
5882
|
}
|
|
5861
|
-
function
|
|
5883
|
+
function Dh(e, t) {
|
|
5862
5884
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
5863
5885
|
const n = {
|
|
5864
5886
|
a: $a(e),
|
|
@@ -5886,21 +5908,21 @@ function Nh(e, t) {
|
|
|
5886
5908
|
}
|
|
5887
5909
|
return Math.sign(r.a - r.b);
|
|
5888
5910
|
}
|
|
5889
|
-
const
|
|
5890
|
-
function
|
|
5911
|
+
const Ph = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
5912
|
+
function Th(e) {
|
|
5891
5913
|
var t;
|
|
5892
|
-
const n = getComputedStyle((t =
|
|
5914
|
+
const n = getComputedStyle((t = As(e)) !== null && t !== void 0 ? t : e).display;
|
|
5893
5915
|
return n === "flex" || n === "inline-flex";
|
|
5894
5916
|
}
|
|
5895
|
-
function
|
|
5917
|
+
function Eh(e) {
|
|
5896
5918
|
const t = getComputedStyle(e);
|
|
5897
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
5919
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || Th(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" || Ph.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
5898
5920
|
}
|
|
5899
5921
|
function La(e) {
|
|
5900
5922
|
let t = e.length;
|
|
5901
5923
|
for (; t--; ) {
|
|
5902
5924
|
const n = e[t];
|
|
5903
|
-
if ($(n, "Missing node"),
|
|
5925
|
+
if ($(n, "Missing node"), Eh(n)) return n;
|
|
5904
5926
|
}
|
|
5905
5927
|
return null;
|
|
5906
5928
|
}
|
|
@@ -5910,19 +5932,19 @@ function Fa(e) {
|
|
|
5910
5932
|
function $a(e) {
|
|
5911
5933
|
const t = [];
|
|
5912
5934
|
for (; e; )
|
|
5913
|
-
t.push(e), e =
|
|
5935
|
+
t.push(e), e = As(e);
|
|
5914
5936
|
return t;
|
|
5915
5937
|
}
|
|
5916
|
-
function
|
|
5938
|
+
function As(e) {
|
|
5917
5939
|
const {
|
|
5918
5940
|
parentNode: t
|
|
5919
5941
|
} = e;
|
|
5920
5942
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
5921
5943
|
}
|
|
5922
|
-
const
|
|
5944
|
+
const Is = 1, Ws = 2, zs = 4, Ls = 8, kh = Ch() === "coarse";
|
|
5923
5945
|
let Pe = [], it = !1, $e = /* @__PURE__ */ new Map(), dn = /* @__PURE__ */ new Map();
|
|
5924
5946
|
const _t = /* @__PURE__ */ new Set();
|
|
5925
|
-
function
|
|
5947
|
+
function Rh(e, t, n, a, r) {
|
|
5926
5948
|
var o;
|
|
5927
5949
|
const {
|
|
5928
5950
|
ownerDocument: i
|
|
@@ -6001,15 +6023,15 @@ function la({
|
|
|
6001
6023
|
left: d,
|
|
6002
6024
|
right: m,
|
|
6003
6025
|
top: u
|
|
6004
|
-
} = s, f =
|
|
6026
|
+
} = s, f = kh ? i.coarse : i.fine;
|
|
6005
6027
|
if (t >= d - f && t <= m + f && n >= u - f && n <= l + f) {
|
|
6006
6028
|
if (a !== null && document.contains(a) && o !== a && !o.contains(a) && !a.contains(o) && // Calculating stacking order has a cost, so we should avoid it if possible
|
|
6007
6029
|
// That is why we only check potentially intersecting handles,
|
|
6008
6030
|
// and why we skip if the event target is within the handle's DOM
|
|
6009
|
-
|
|
6031
|
+
Dh(a, o) > 0) {
|
|
6010
6032
|
let p = a, y = !1;
|
|
6011
6033
|
for (; p && !p.contains(o); ) {
|
|
6012
|
-
if (
|
|
6034
|
+
if (Nh(p.getBoundingClientRect(), s)) {
|
|
6013
6035
|
y = !0;
|
|
6014
6036
|
break;
|
|
6015
6037
|
}
|
|
@@ -6036,7 +6058,7 @@ function ca() {
|
|
|
6036
6058
|
let n = 0;
|
|
6037
6059
|
dn.forEach((a) => {
|
|
6038
6060
|
n |= a;
|
|
6039
|
-
}), e && t ? Dn("intersection", n) : e ? Dn("horizontal", n) : t ? Dn("vertical", n) :
|
|
6061
|
+
}), e && t ? Dn("intersection", n) : e ? Dn("horizontal", n) : t ? Dn("vertical", n) : Mh();
|
|
6040
6062
|
}
|
|
6041
6063
|
function Bt() {
|
|
6042
6064
|
$e.forEach((e, t) => {
|
|
@@ -6066,7 +6088,7 @@ function Vt(e, t) {
|
|
|
6066
6088
|
a(e, r, t);
|
|
6067
6089
|
});
|
|
6068
6090
|
}
|
|
6069
|
-
function
|
|
6091
|
+
function _h() {
|
|
6070
6092
|
const [e, t] = st(0);
|
|
6071
6093
|
return ge(() => t((n) => n + 1), []);
|
|
6072
6094
|
}
|
|
@@ -6084,7 +6106,7 @@ function Ae(e, t, n = da) {
|
|
|
6084
6106
|
function we(e, t, n) {
|
|
6085
6107
|
return Ze(e, t, n) === 0;
|
|
6086
6108
|
}
|
|
6087
|
-
function
|
|
6109
|
+
function Oh(e, t, n) {
|
|
6088
6110
|
if (e.length !== t.length)
|
|
6089
6111
|
return !1;
|
|
6090
6112
|
for (let a = 0; a < e.length; a++) {
|
|
@@ -6196,7 +6218,7 @@ function Ct({
|
|
|
6196
6218
|
e < 0 ? f-- : f++;
|
|
6197
6219
|
}
|
|
6198
6220
|
}
|
|
6199
|
-
if (
|
|
6221
|
+
if (Oh(r, i))
|
|
6200
6222
|
return r;
|
|
6201
6223
|
{
|
|
6202
6224
|
const u = e < 0 ? l : s, f = t[u];
|
|
@@ -6225,7 +6247,7 @@ function Ct({
|
|
|
6225
6247
|
const m = i.reduce((u, f) => f + u, 0);
|
|
6226
6248
|
return we(m, 100) ? i : r;
|
|
6227
6249
|
}
|
|
6228
|
-
function
|
|
6250
|
+
function jh({
|
|
6229
6251
|
layout: e,
|
|
6230
6252
|
panelsArray: t,
|
|
6231
6253
|
pivotIndices: n
|
|
@@ -6251,15 +6273,15 @@ function Oh({
|
|
|
6251
6273
|
function Ot(e, t = document) {
|
|
6252
6274
|
return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`));
|
|
6253
6275
|
}
|
|
6254
|
-
function
|
|
6276
|
+
function Fs(e, t, n = document) {
|
|
6255
6277
|
const r = Ot(e, n).findIndex((o) => o.getAttribute("data-panel-resize-handle-id") === t);
|
|
6256
6278
|
return r ?? null;
|
|
6257
6279
|
}
|
|
6258
|
-
function
|
|
6259
|
-
const a =
|
|
6280
|
+
function $s(e, t, n) {
|
|
6281
|
+
const a = Fs(e, t, n);
|
|
6260
6282
|
return a != null ? [a, a + 1] : [-1, -1];
|
|
6261
6283
|
}
|
|
6262
|
-
function
|
|
6284
|
+
function Hs(e, t = document) {
|
|
6263
6285
|
var n;
|
|
6264
6286
|
if (t instanceof HTMLElement && (t == null || (n = t.dataset) === null || n === void 0 ? void 0 : n.panelGroupId) == e)
|
|
6265
6287
|
return t;
|
|
@@ -6270,12 +6292,12 @@ function un(e, t = document) {
|
|
|
6270
6292
|
const n = t.querySelector(`[data-panel-resize-handle-id="${e}"]`);
|
|
6271
6293
|
return n || null;
|
|
6272
6294
|
}
|
|
6273
|
-
function
|
|
6295
|
+
function Ah(e, t, n, a = document) {
|
|
6274
6296
|
var r, o, i, s;
|
|
6275
6297
|
const l = un(t, a), d = Ot(e, a), m = l ? d.indexOf(l) : -1, u = (r = (o = n[m]) === null || o === void 0 ? void 0 : o.id) !== null && r !== void 0 ? r : null, f = (i = (s = n[m + 1]) === null || s === void 0 ? void 0 : s.id) !== null && i !== void 0 ? i : null;
|
|
6276
6298
|
return [u, f];
|
|
6277
6299
|
}
|
|
6278
|
-
function
|
|
6300
|
+
function Ih({
|
|
6279
6301
|
committedValuesRef: e,
|
|
6280
6302
|
eagerValuesRef: t,
|
|
6281
6303
|
groupId: n,
|
|
@@ -6295,7 +6317,7 @@ function Ah({
|
|
|
6295
6317
|
valueMax: d,
|
|
6296
6318
|
valueMin: m,
|
|
6297
6319
|
valueNow: u
|
|
6298
|
-
} =
|
|
6320
|
+
} = jh({
|
|
6299
6321
|
layout: a,
|
|
6300
6322
|
panelsArray: r,
|
|
6301
6323
|
pivotIndices: [l, l + 1]
|
|
@@ -6317,14 +6339,14 @@ function Ah({
|
|
|
6317
6339
|
$(s, "Eager values not found");
|
|
6318
6340
|
const {
|
|
6319
6341
|
panelDataArray: l
|
|
6320
|
-
} = s, d =
|
|
6342
|
+
} = s, d = Hs(n, o);
|
|
6321
6343
|
$(d != null, `No group found for id "${n}"`);
|
|
6322
6344
|
const m = Ot(n, o);
|
|
6323
6345
|
$(m, `No resize handles found for group id "${n}"`);
|
|
6324
6346
|
const u = m.map((f) => {
|
|
6325
6347
|
const g = f.getAttribute("data-panel-resize-handle-id");
|
|
6326
6348
|
$(g, "Resize handle element has no handle id attribute");
|
|
6327
|
-
const [p, y] =
|
|
6349
|
+
const [p, y] = Ah(n, g, l, o);
|
|
6328
6350
|
if (p == null || y == null)
|
|
6329
6351
|
return () => {
|
|
6330
6352
|
};
|
|
@@ -6347,7 +6369,7 @@ function Ah({
|
|
|
6347
6369
|
delta: we(D, v) ? M - v : v - D,
|
|
6348
6370
|
initialLayout: a,
|
|
6349
6371
|
panelConstraints: l.map((R) => R.constraints),
|
|
6350
|
-
pivotIndices:
|
|
6372
|
+
pivotIndices: $s(n, g, o),
|
|
6351
6373
|
prevLayout: a,
|
|
6352
6374
|
trigger: "keyboard"
|
|
6353
6375
|
});
|
|
@@ -6375,14 +6397,14 @@ function Ya(e, t) {
|
|
|
6375
6397
|
return !1;
|
|
6376
6398
|
return !0;
|
|
6377
6399
|
}
|
|
6378
|
-
function
|
|
6400
|
+
function Ys(e, t) {
|
|
6379
6401
|
const n = e === "horizontal", {
|
|
6380
6402
|
x: a,
|
|
6381
6403
|
y: r
|
|
6382
6404
|
} = cn(t);
|
|
6383
6405
|
return n ? a : r;
|
|
6384
6406
|
}
|
|
6385
|
-
function
|
|
6407
|
+
function Wh(e, t, n, a, r) {
|
|
6386
6408
|
const o = n === "horizontal", i = un(t, r);
|
|
6387
6409
|
$(i, `No resize handle element found for id "${t}"`);
|
|
6388
6410
|
const s = i.getAttribute("data-panel-group-id");
|
|
@@ -6390,13 +6412,13 @@ function Ih(e, t, n, a, r) {
|
|
|
6390
6412
|
let {
|
|
6391
6413
|
initialCursorPosition: l
|
|
6392
6414
|
} = a;
|
|
6393
|
-
const d =
|
|
6415
|
+
const d = Ys(n, e), m = Hs(s, r);
|
|
6394
6416
|
$(m, `No group element found for id "${s}"`);
|
|
6395
6417
|
const u = m.getBoundingClientRect(), f = o ? u.width : u.height;
|
|
6396
6418
|
return (d - l) / f * 100;
|
|
6397
6419
|
}
|
|
6398
|
-
function
|
|
6399
|
-
if (
|
|
6420
|
+
function zh(e, t, n, a, r, o) {
|
|
6421
|
+
if (_s(e)) {
|
|
6400
6422
|
const i = n === "horizontal";
|
|
6401
6423
|
let s = 0;
|
|
6402
6424
|
e.shiftKey ? s = 100 : r != null ? s = r : s = 10;
|
|
@@ -6423,9 +6445,9 @@ function Wh(e, t, n, a, r, o) {
|
|
|
6423
6445
|
}
|
|
6424
6446
|
return l;
|
|
6425
6447
|
} else
|
|
6426
|
-
return a == null ? 0 :
|
|
6448
|
+
return a == null ? 0 : Wh(e, t, n, a, o);
|
|
6427
6449
|
}
|
|
6428
|
-
function
|
|
6450
|
+
function Lh({
|
|
6429
6451
|
panelDataArray: e
|
|
6430
6452
|
}) {
|
|
6431
6453
|
const t = Array(e.length), n = e.map((o) => o.constraints);
|
|
@@ -6482,7 +6504,7 @@ function $t(e, t) {
|
|
|
6482
6504
|
return !1;
|
|
6483
6505
|
return !0;
|
|
6484
6506
|
}
|
|
6485
|
-
function
|
|
6507
|
+
function Fh({
|
|
6486
6508
|
defaultSize: e,
|
|
6487
6509
|
dragState: t,
|
|
6488
6510
|
layout: n,
|
|
@@ -6503,7 +6525,7 @@ function Lh({
|
|
|
6503
6525
|
pointerEvents: t !== null ? "none" : void 0
|
|
6504
6526
|
};
|
|
6505
6527
|
}
|
|
6506
|
-
function
|
|
6528
|
+
function $h(e, t = 10) {
|
|
6507
6529
|
let n = null;
|
|
6508
6530
|
return (...r) => {
|
|
6509
6531
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -6524,10 +6546,10 @@ function Ba(e) {
|
|
|
6524
6546
|
};
|
|
6525
6547
|
}
|
|
6526
6548
|
}
|
|
6527
|
-
function
|
|
6549
|
+
function Bs(e) {
|
|
6528
6550
|
return `react-resizable-panels:${e}`;
|
|
6529
6551
|
}
|
|
6530
|
-
function
|
|
6552
|
+
function Vs(e) {
|
|
6531
6553
|
return e.map((t) => {
|
|
6532
6554
|
const {
|
|
6533
6555
|
constraints: n,
|
|
@@ -6538,9 +6560,9 @@ function Bs(e) {
|
|
|
6538
6560
|
return r ? a : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
|
|
6539
6561
|
}).sort((t, n) => t.localeCompare(n)).join(",");
|
|
6540
6562
|
}
|
|
6541
|
-
function
|
|
6563
|
+
function Gs(e, t) {
|
|
6542
6564
|
try {
|
|
6543
|
-
const n =
|
|
6565
|
+
const n = Bs(e), a = t.getItem(n);
|
|
6544
6566
|
if (a) {
|
|
6545
6567
|
const r = JSON.parse(a);
|
|
6546
6568
|
if (typeof r == "object" && r != null)
|
|
@@ -6550,14 +6572,14 @@ function Vs(e, t) {
|
|
|
6550
6572
|
}
|
|
6551
6573
|
return null;
|
|
6552
6574
|
}
|
|
6553
|
-
function
|
|
6575
|
+
function Hh(e, t, n) {
|
|
6554
6576
|
var a, r;
|
|
6555
|
-
const o = (a =
|
|
6577
|
+
const o = (a = Gs(e, n)) !== null && a !== void 0 ? a : {}, i = Vs(t);
|
|
6556
6578
|
return (r = o[i]) !== null && r !== void 0 ? r : null;
|
|
6557
6579
|
}
|
|
6558
|
-
function
|
|
6580
|
+
function Yh(e, t, n, a, r) {
|
|
6559
6581
|
var o;
|
|
6560
|
-
const i =
|
|
6582
|
+
const i = Bs(e), s = Vs(t), l = (o = Gs(e, r)) !== null && o !== void 0 ? o : {};
|
|
6561
6583
|
l[s] = {
|
|
6562
6584
|
expandToSizes: Object.fromEntries(n.entries()),
|
|
6563
6585
|
layout: a
|
|
@@ -6607,13 +6629,13 @@ function Va({
|
|
|
6607
6629
|
}
|
|
6608
6630
|
return n;
|
|
6609
6631
|
}
|
|
6610
|
-
const
|
|
6632
|
+
const Bh = 100, Nt = {
|
|
6611
6633
|
getItem: (e) => (Ba(Nt), Nt.getItem(e)),
|
|
6612
6634
|
setItem: (e, t) => {
|
|
6613
6635
|
Ba(Nt), Nt.setItem(e, t);
|
|
6614
6636
|
}
|
|
6615
6637
|
}, Ga = {};
|
|
6616
|
-
function
|
|
6638
|
+
function Ks({
|
|
6617
6639
|
autoSaveId: e = null,
|
|
6618
6640
|
children: t,
|
|
6619
6641
|
className: n = "",
|
|
@@ -6627,7 +6649,7 @@ function Gs({
|
|
|
6627
6649
|
tagName: m = "div",
|
|
6628
6650
|
...u
|
|
6629
6651
|
}) {
|
|
6630
|
-
const f = ia(o), g = be(null), [p, y] = st(null), [b, w] = st([]), S =
|
|
6652
|
+
const f = ia(o), g = be(null), [p, y] = st(null), [b, w] = st([]), S = _h(), x = be({}), D = be(/* @__PURE__ */ new Map()), v = be(0), C = be({
|
|
6631
6653
|
autoSaveId: e,
|
|
6632
6654
|
direction: a,
|
|
6633
6655
|
dragState: p,
|
|
@@ -6644,7 +6666,7 @@ function Gs({
|
|
|
6644
6666
|
didLogIdAndOrderWarning: !1,
|
|
6645
6667
|
didLogPanelConstraintsWarning: !1,
|
|
6646
6668
|
prevPanelIds: []
|
|
6647
|
-
}),
|
|
6669
|
+
}), Es(r, () => ({
|
|
6648
6670
|
getId: () => C.current.id,
|
|
6649
6671
|
getLayout: () => {
|
|
6650
6672
|
const {
|
|
@@ -6666,7 +6688,7 @@ function Gs({
|
|
|
6666
6688
|
}
|
|
6667
6689
|
}), []), Xe(() => {
|
|
6668
6690
|
C.current.autoSaveId = e, C.current.direction = a, C.current.dragState = p, C.current.id = f, C.current.onLayout = i, C.current.storage = l;
|
|
6669
|
-
}),
|
|
6691
|
+
}), Ih({
|
|
6670
6692
|
committedValuesRef: C,
|
|
6671
6693
|
eagerValuesRef: M,
|
|
6672
6694
|
groupId: f,
|
|
@@ -6682,7 +6704,7 @@ function Gs({
|
|
|
6682
6704
|
if (b.length === 0 || b.length !== P.length)
|
|
6683
6705
|
return;
|
|
6684
6706
|
let A = Ga[e];
|
|
6685
|
-
A == null && (A =
|
|
6707
|
+
A == null && (A = $h(Yh, Bh), Ga[e] = A);
|
|
6686
6708
|
const F = [...P], z = new Map(D.current);
|
|
6687
6709
|
A(e, F, z, b, l);
|
|
6688
6710
|
}
|
|
@@ -6752,7 +6774,7 @@ function Gs({
|
|
|
6752
6774
|
const {
|
|
6753
6775
|
panelDataArray: F
|
|
6754
6776
|
} = M.current, z = at(F, P);
|
|
6755
|
-
return
|
|
6777
|
+
return Fh({
|
|
6756
6778
|
defaultSize: A,
|
|
6757
6779
|
dragState: p,
|
|
6758
6780
|
layout: b,
|
|
@@ -6801,10 +6823,10 @@ function Gs({
|
|
|
6801
6823
|
} = M.current;
|
|
6802
6824
|
let V = null;
|
|
6803
6825
|
if (P) {
|
|
6804
|
-
const oe =
|
|
6826
|
+
const oe = Hh(P, I, F);
|
|
6805
6827
|
oe && (D.current = new Map(Object.entries(oe.expandToSizes)), V = oe.layout);
|
|
6806
6828
|
}
|
|
6807
|
-
V == null && (V =
|
|
6829
|
+
V == null && (V = Lh({
|
|
6808
6830
|
panelDataArray: I
|
|
6809
6831
|
}));
|
|
6810
6832
|
const Z = Va({
|
|
@@ -6838,8 +6860,8 @@ function Gs({
|
|
|
6838
6860
|
panelDataArray: Ye
|
|
6839
6861
|
} = M.current, {
|
|
6840
6862
|
initialLayout: Je
|
|
6841
|
-
} = oe ?? {}, gt =
|
|
6842
|
-
let ue =
|
|
6863
|
+
} = oe ?? {}, gt = $s(ye, P, V);
|
|
6864
|
+
let ue = zh(I, P, Z, oe, xe, V);
|
|
6843
6865
|
const Wt = Z === "horizontal";
|
|
6844
6866
|
Wt && A && (ue = -ue);
|
|
6845
6867
|
const pn = Ye.map((vt) => vt.constraints), Be = Ct({
|
|
@@ -6848,9 +6870,9 @@ function Gs({
|
|
|
6848
6870
|
panelConstraints: pn,
|
|
6849
6871
|
pivotIndices: gt,
|
|
6850
6872
|
prevLayout: pe,
|
|
6851
|
-
trigger:
|
|
6873
|
+
trigger: _s(I) ? "keyboard" : "mouse-or-touch"
|
|
6852
6874
|
}), bt = !$t(pe, Be);
|
|
6853
|
-
(
|
|
6875
|
+
(Os(I) || js(I)) && v.current != ue && (v.current = ue, !bt && ue !== 0 ? Wt ? Pn(P, ue < 0 ? Is : Ws) : Pn(P, ue < 0 ? zs : Ls) : Pn(P, 0)), bt && (w(Be), M.current.layout = Be, te && te(Be), nt(Ye, Be, x.current));
|
|
6854
6876
|
};
|
|
6855
6877
|
}, []), G = ge((P, A) => {
|
|
6856
6878
|
const {
|
|
@@ -6898,7 +6920,7 @@ function Gs({
|
|
|
6898
6920
|
return;
|
|
6899
6921
|
const I = un(P, g.current);
|
|
6900
6922
|
$(I, `Drag handle element not found for id "${P}"`);
|
|
6901
|
-
const V =
|
|
6923
|
+
const V = Ys(F, A);
|
|
6902
6924
|
y({
|
|
6903
6925
|
dragHandleId: P,
|
|
6904
6926
|
dragHandleRect: I.getBoundingClientRect(),
|
|
@@ -6912,7 +6934,7 @@ function Gs({
|
|
|
6912
6934
|
panelDataArray: A
|
|
6913
6935
|
} = M.current, F = at(A, P);
|
|
6914
6936
|
F >= 0 && (A.splice(F, 1), delete x.current[P.id], M.current.panelDataArrayChanged = !0, S());
|
|
6915
|
-
}, [S]), je =
|
|
6937
|
+
}, [S]), je = vh(() => ({
|
|
6916
6938
|
collapsePanel: O,
|
|
6917
6939
|
direction: a,
|
|
6918
6940
|
dragState: p,
|
|
@@ -6955,12 +6977,12 @@ function Gs({
|
|
|
6955
6977
|
"data-panel-group-id": f
|
|
6956
6978
|
}));
|
|
6957
6979
|
}
|
|
6958
|
-
const
|
|
6980
|
+
const qs = Ps((e, t) => ct(Ks, {
|
|
6959
6981
|
...e,
|
|
6960
6982
|
forwardedRef: t
|
|
6961
6983
|
}));
|
|
6962
|
-
|
|
6963
|
-
|
|
6984
|
+
Ks.displayName = "PanelGroup";
|
|
6985
|
+
qs.displayName = "forwardRef(PanelGroup)";
|
|
6964
6986
|
function at(e, t) {
|
|
6965
6987
|
return e.findIndex((n) => n === t || n.id === t.id);
|
|
6966
6988
|
}
|
|
@@ -6972,7 +6994,7 @@ function Ve(e, t, n) {
|
|
|
6972
6994
|
pivotIndices: o
|
|
6973
6995
|
};
|
|
6974
6996
|
}
|
|
6975
|
-
function
|
|
6997
|
+
function Vh({
|
|
6976
6998
|
disabled: e,
|
|
6977
6999
|
handleId: t,
|
|
6978
7000
|
resizeHandler: n,
|
|
@@ -7000,7 +7022,7 @@ function Bh({
|
|
|
7000
7022
|
i.preventDefault();
|
|
7001
7023
|
const s = r.getAttribute("data-panel-group-id");
|
|
7002
7024
|
$(s, `No group element found for id "${s}"`);
|
|
7003
|
-
const l = Ot(s, a), d =
|
|
7025
|
+
const l = Ot(s, a), d = Fs(s, t, a);
|
|
7004
7026
|
$(d !== null, `No resize element found for id "${t}"`);
|
|
7005
7027
|
const m = i.shiftKey ? d > 0 ? d - 1 : l.length - 1 : d + 1 < l.length ? d + 1 : 0;
|
|
7006
7028
|
l[m].focus();
|
|
@@ -7013,7 +7035,7 @@ function Bh({
|
|
|
7013
7035
|
};
|
|
7014
7036
|
}, [a, e, t, n]);
|
|
7015
7037
|
}
|
|
7016
|
-
function
|
|
7038
|
+
function Us({
|
|
7017
7039
|
children: e = null,
|
|
7018
7040
|
className: t = "",
|
|
7019
7041
|
disabled: n = !1,
|
|
@@ -7034,7 +7056,7 @@ function qs({
|
|
|
7034
7056
|
Ue(() => {
|
|
7035
7057
|
y.current.onDragging = i;
|
|
7036
7058
|
});
|
|
7037
|
-
const b =
|
|
7059
|
+
const b = Ts(ln);
|
|
7038
7060
|
if (b === null)
|
|
7039
7061
|
throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
7040
7062
|
const {
|
|
@@ -7062,7 +7084,7 @@ function qs({
|
|
|
7062
7084
|
if (n || j == null)
|
|
7063
7085
|
return;
|
|
7064
7086
|
const K = p.current;
|
|
7065
|
-
return $(K, "Element ref not attached"),
|
|
7087
|
+
return $(K, "Element ref not attached"), Rh(M, K, w, {
|
|
7066
7088
|
coarse: H,
|
|
7067
7089
|
fine: G
|
|
7068
7090
|
}, (ce, je, de) => {
|
|
@@ -7095,7 +7117,7 @@ function qs({
|
|
|
7095
7117
|
else
|
|
7096
7118
|
R("inactive");
|
|
7097
7119
|
});
|
|
7098
|
-
}, [H, w, n, G, x, M, j, D, v]),
|
|
7120
|
+
}, [H, w, n, G, x, M, j, D, v]), Vh({
|
|
7099
7121
|
disabled: n,
|
|
7100
7122
|
handleId: M,
|
|
7101
7123
|
resizeHandler: j,
|
|
@@ -7131,12 +7153,12 @@ function qs({
|
|
|
7131
7153
|
"data-panel-resize-handle-id": M
|
|
7132
7154
|
});
|
|
7133
7155
|
}
|
|
7134
|
-
|
|
7135
|
-
const
|
|
7156
|
+
Us.displayName = "PanelResizeHandle";
|
|
7157
|
+
const Ap = ({
|
|
7136
7158
|
className: e,
|
|
7137
7159
|
...t
|
|
7138
7160
|
}) => /* @__PURE__ */ c.jsx(
|
|
7139
|
-
|
|
7161
|
+
qs,
|
|
7140
7162
|
{
|
|
7141
7163
|
className: N(
|
|
7142
7164
|
"al-flex al-h-full al-w-full data-[panel-group-direction=vertical]:al-flex-col",
|
|
@@ -7146,13 +7168,13 @@ const jp = ({
|
|
|
7146
7168
|
"aria-label": "resizable-panel-group",
|
|
7147
7169
|
...t
|
|
7148
7170
|
}
|
|
7149
|
-
),
|
|
7171
|
+
), Ip = ({
|
|
7150
7172
|
className: e,
|
|
7151
7173
|
minSize: t,
|
|
7152
7174
|
maxSize: n,
|
|
7153
7175
|
...a
|
|
7154
7176
|
}) => /* @__PURE__ */ c.jsx(
|
|
7155
|
-
|
|
7177
|
+
Rs,
|
|
7156
7178
|
{
|
|
7157
7179
|
className: N("al-group al-relative", e),
|
|
7158
7180
|
role: "region",
|
|
@@ -7161,14 +7183,14 @@ const jp = ({
|
|
|
7161
7183
|
"data-panel-min-size": t,
|
|
7162
7184
|
"data-panel-max-size": n
|
|
7163
7185
|
}
|
|
7164
|
-
),
|
|
7186
|
+
), Wp = ({
|
|
7165
7187
|
withHandle: e,
|
|
7166
7188
|
className: t,
|
|
7167
7189
|
...n
|
|
7168
7190
|
}) => {
|
|
7169
7191
|
const a = n["data-panel-group-direction"] === "vertical";
|
|
7170
7192
|
return /* @__PURE__ */ c.jsx(
|
|
7171
|
-
|
|
7193
|
+
Us,
|
|
7172
7194
|
{
|
|
7173
7195
|
className: N(
|
|
7174
7196
|
"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",
|
|
@@ -7190,10 +7212,10 @@ const jp = ({
|
|
|
7190
7212
|
}
|
|
7191
7213
|
);
|
|
7192
7214
|
};
|
|
7193
|
-
function
|
|
7215
|
+
function Gh(e, t) {
|
|
7194
7216
|
return h.useReducer((n, a) => t[n][a] ?? n, e);
|
|
7195
7217
|
}
|
|
7196
|
-
var ua = "ScrollArea", [
|
|
7218
|
+
var ua = "ScrollArea", [Xs, zp] = He(ua), [Kh, Ce] = Xs(ua), Zs = h.forwardRef(
|
|
7197
7219
|
(e, t) => {
|
|
7198
7220
|
const {
|
|
7199
7221
|
__scopeScrollArea: n,
|
|
@@ -7203,7 +7225,7 @@ var ua = "ScrollArea", [Us, Wp] = He(ua), [Gh, Ce] = Us(ua), Xs = h.forwardRef(
|
|
|
7203
7225
|
...i
|
|
7204
7226
|
} = e, [s, l] = h.useState(null), [d, m] = h.useState(null), [u, f] = h.useState(null), [g, p] = h.useState(null), [y, b] = h.useState(null), [w, S] = h.useState(0), [x, D] = h.useState(0), [v, C] = h.useState(!1), [M, O] = h.useState(!1), R = he(t, (k) => l(k)), W = Qt(r);
|
|
7205
7227
|
return /* @__PURE__ */ c.jsx(
|
|
7206
|
-
|
|
7228
|
+
Kh,
|
|
7207
7229
|
{
|
|
7208
7230
|
scope: n,
|
|
7209
7231
|
type: a,
|
|
@@ -7243,10 +7265,10 @@ var ua = "ScrollArea", [Us, Wp] = He(ua), [Gh, Ce] = Us(ua), Xs = h.forwardRef(
|
|
|
7243
7265
|
);
|
|
7244
7266
|
}
|
|
7245
7267
|
);
|
|
7246
|
-
|
|
7247
|
-
var
|
|
7268
|
+
Zs.displayName = ua;
|
|
7269
|
+
var Qs = "ScrollAreaViewport", Js = h.forwardRef(
|
|
7248
7270
|
(e, t) => {
|
|
7249
|
-
const { __scopeScrollArea: n, children: a, nonce: r, ...o } = e, i = Ce(
|
|
7271
|
+
const { __scopeScrollArea: n, children: a, nonce: r, ...o } = e, i = Ce(Qs, n), s = h.useRef(null), l = he(t, s, i.onViewportChange);
|
|
7250
7272
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
7251
7273
|
/* @__PURE__ */ c.jsx(
|
|
7252
7274
|
"style",
|
|
@@ -7285,17 +7307,17 @@ var Zs = "ScrollAreaViewport", Qs = h.forwardRef(
|
|
|
7285
7307
|
] });
|
|
7286
7308
|
}
|
|
7287
7309
|
);
|
|
7288
|
-
|
|
7310
|
+
Js.displayName = Qs;
|
|
7289
7311
|
var Oe = "ScrollAreaScrollbar", fa = h.forwardRef(
|
|
7290
7312
|
(e, t) => {
|
|
7291
7313
|
const { forceMount: n, ...a } = e, r = Ce(Oe, e.__scopeScrollArea), { onScrollbarXEnabledChange: o, onScrollbarYEnabledChange: i } = r, s = e.orientation === "horizontal";
|
|
7292
7314
|
return h.useEffect(() => (s ? o(!0) : i(!0), () => {
|
|
7293
7315
|
s ? o(!1) : i(!1);
|
|
7294
|
-
}), [s, o, i]), r.type === "hover" ? /* @__PURE__ */ c.jsx(
|
|
7316
|
+
}), [s, o, i]), r.type === "hover" ? /* @__PURE__ */ c.jsx(qh, { ...a, ref: t, forceMount: n }) : r.type === "scroll" ? /* @__PURE__ */ c.jsx(Uh, { ...a, ref: t, forceMount: n }) : r.type === "auto" ? /* @__PURE__ */ c.jsx(ei, { ...a, ref: t, forceMount: n }) : r.type === "always" ? /* @__PURE__ */ c.jsx(ma, { ...a, ref: t }) : null;
|
|
7295
7317
|
}
|
|
7296
7318
|
);
|
|
7297
7319
|
fa.displayName = Oe;
|
|
7298
|
-
var
|
|
7320
|
+
var qh = h.forwardRef((e, t) => {
|
|
7299
7321
|
const { forceMount: n, ...a } = e, r = Ce(Oe, e.__scopeScrollArea), [o, i] = h.useState(!1);
|
|
7300
7322
|
return h.useEffect(() => {
|
|
7301
7323
|
const s = r.scrollArea;
|
|
@@ -7311,15 +7333,15 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7311
7333
|
};
|
|
7312
7334
|
}
|
|
7313
7335
|
}, [r.scrollArea, r.scrollHideDelay]), /* @__PURE__ */ c.jsx(Qe, { present: n || o, children: /* @__PURE__ */ c.jsx(
|
|
7314
|
-
|
|
7336
|
+
ei,
|
|
7315
7337
|
{
|
|
7316
7338
|
"data-state": o ? "visible" : "hidden",
|
|
7317
7339
|
...a,
|
|
7318
7340
|
ref: t
|
|
7319
7341
|
}
|
|
7320
7342
|
) });
|
|
7321
|
-
}),
|
|
7322
|
-
const { forceMount: n, ...a } = e, r = Ce(Oe, e.__scopeScrollArea), o = e.orientation === "horizontal", i = mn(() => l("SCROLL_END"), 100), [s, l] =
|
|
7343
|
+
}), Uh = h.forwardRef((e, t) => {
|
|
7344
|
+
const { forceMount: n, ...a } = e, r = Ce(Oe, e.__scopeScrollArea), o = e.orientation === "horizontal", i = mn(() => l("SCROLL_END"), 100), [s, l] = Gh("hidden", {
|
|
7323
7345
|
hidden: {
|
|
7324
7346
|
SCROLL: "scrolling"
|
|
7325
7347
|
},
|
|
@@ -7362,7 +7384,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7362
7384
|
onPointerLeave: L(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
7363
7385
|
}
|
|
7364
7386
|
) });
|
|
7365
|
-
}),
|
|
7387
|
+
}), ei = h.forwardRef((e, t) => {
|
|
7366
7388
|
const n = Ce(Oe, e.__scopeScrollArea), { forceMount: a, ...r } = e, [o, i] = h.useState(!1), s = e.orientation === "horizontal", l = mn(() => {
|
|
7367
7389
|
if (n.viewport) {
|
|
7368
7390
|
const d = n.viewport.offsetWidth < n.viewport.scrollWidth, m = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -7382,7 +7404,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7382
7404
|
content: 0,
|
|
7383
7405
|
viewport: 0,
|
|
7384
7406
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
7385
|
-
}), d =
|
|
7407
|
+
}), d = oi(s.viewport, s.content), m = {
|
|
7386
7408
|
...a,
|
|
7387
7409
|
sizes: s,
|
|
7388
7410
|
onSizesChange: l,
|
|
@@ -7392,10 +7414,10 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7392
7414
|
onThumbPointerDown: (f) => i.current = f
|
|
7393
7415
|
};
|
|
7394
7416
|
function u(f, g) {
|
|
7395
|
-
return
|
|
7417
|
+
return tp(f, i.current, s, g);
|
|
7396
7418
|
}
|
|
7397
7419
|
return n === "horizontal" ? /* @__PURE__ */ c.jsx(
|
|
7398
|
-
|
|
7420
|
+
Xh,
|
|
7399
7421
|
{
|
|
7400
7422
|
...m,
|
|
7401
7423
|
ref: t,
|
|
@@ -7413,7 +7435,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7413
7435
|
}
|
|
7414
7436
|
}
|
|
7415
7437
|
) : n === "vertical" ? /* @__PURE__ */ c.jsx(
|
|
7416
|
-
|
|
7438
|
+
Zh,
|
|
7417
7439
|
{
|
|
7418
7440
|
...m,
|
|
7419
7441
|
ref: t,
|
|
@@ -7431,12 +7453,12 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7431
7453
|
}
|
|
7432
7454
|
}
|
|
7433
7455
|
) : null;
|
|
7434
|
-
}),
|
|
7456
|
+
}), Xh = h.forwardRef((e, t) => {
|
|
7435
7457
|
const { sizes: n, onSizesChange: a, ...r } = e, o = Ce(Oe, e.__scopeScrollArea), [i, s] = h.useState(), l = h.useRef(null), d = he(t, l, o.onScrollbarXChange);
|
|
7436
7458
|
return h.useEffect(() => {
|
|
7437
7459
|
l.current && s(getComputedStyle(l.current));
|
|
7438
7460
|
}, [l]), /* @__PURE__ */ c.jsx(
|
|
7439
|
-
|
|
7461
|
+
ni,
|
|
7440
7462
|
{
|
|
7441
7463
|
"data-orientation": "horizontal",
|
|
7442
7464
|
...r,
|
|
@@ -7454,7 +7476,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7454
7476
|
onWheelScroll: (m, u) => {
|
|
7455
7477
|
if (o.viewport) {
|
|
7456
7478
|
const f = o.viewport.scrollLeft + m.deltaX;
|
|
7457
|
-
e.onWheelScroll(f),
|
|
7479
|
+
e.onWheelScroll(f), ii(f, u) && m.preventDefault();
|
|
7458
7480
|
}
|
|
7459
7481
|
},
|
|
7460
7482
|
onResize: () => {
|
|
@@ -7470,12 +7492,12 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7470
7492
|
}
|
|
7471
7493
|
}
|
|
7472
7494
|
);
|
|
7473
|
-
}),
|
|
7495
|
+
}), Zh = h.forwardRef((e, t) => {
|
|
7474
7496
|
const { sizes: n, onSizesChange: a, ...r } = e, o = Ce(Oe, e.__scopeScrollArea), [i, s] = h.useState(), l = h.useRef(null), d = he(t, l, o.onScrollbarYChange);
|
|
7475
7497
|
return h.useEffect(() => {
|
|
7476
7498
|
l.current && s(getComputedStyle(l.current));
|
|
7477
7499
|
}, [l]), /* @__PURE__ */ c.jsx(
|
|
7478
|
-
|
|
7500
|
+
ni,
|
|
7479
7501
|
{
|
|
7480
7502
|
"data-orientation": "vertical",
|
|
7481
7503
|
...r,
|
|
@@ -7494,7 +7516,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7494
7516
|
onWheelScroll: (m, u) => {
|
|
7495
7517
|
if (o.viewport) {
|
|
7496
7518
|
const f = o.viewport.scrollTop + m.deltaY;
|
|
7497
|
-
e.onWheelScroll(f),
|
|
7519
|
+
e.onWheelScroll(f), ii(f, u) && m.preventDefault();
|
|
7498
7520
|
}
|
|
7499
7521
|
},
|
|
7500
7522
|
onResize: () => {
|
|
@@ -7510,7 +7532,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7510
7532
|
}
|
|
7511
7533
|
}
|
|
7512
7534
|
);
|
|
7513
|
-
}), [
|
|
7535
|
+
}), [Qh, ti] = Xs(Oe), ni = h.forwardRef((e, t) => {
|
|
7514
7536
|
const {
|
|
7515
7537
|
__scopeScrollArea: n,
|
|
7516
7538
|
sizes: a,
|
|
@@ -7537,7 +7559,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7537
7559
|
};
|
|
7538
7560
|
return document.addEventListener("wheel", R, { passive: !1 }), () => document.removeEventListener("wheel", R, { passive: !1 });
|
|
7539
7561
|
}, [x, p, D, v]), h.useEffect(C, [a, C]), dt(p, M), dt(g.content, M), /* @__PURE__ */ c.jsx(
|
|
7540
|
-
|
|
7562
|
+
Qh,
|
|
7541
7563
|
{
|
|
7542
7564
|
scope: n,
|
|
7543
7565
|
scrollbar: p,
|
|
@@ -7564,14 +7586,14 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7564
7586
|
)
|
|
7565
7587
|
}
|
|
7566
7588
|
);
|
|
7567
|
-
}), Gt = "ScrollAreaThumb",
|
|
7589
|
+
}), Gt = "ScrollAreaThumb", ai = h.forwardRef(
|
|
7568
7590
|
(e, t) => {
|
|
7569
|
-
const { forceMount: n, ...a } = e, r =
|
|
7570
|
-
return /* @__PURE__ */ c.jsx(Qe, { present: n || r.hasThumb, children: /* @__PURE__ */ c.jsx(
|
|
7591
|
+
const { forceMount: n, ...a } = e, r = ti(Gt, e.__scopeScrollArea);
|
|
7592
|
+
return /* @__PURE__ */ c.jsx(Qe, { present: n || r.hasThumb, children: /* @__PURE__ */ c.jsx(Jh, { ref: t, ...a }) });
|
|
7571
7593
|
}
|
|
7572
|
-
),
|
|
7594
|
+
), Jh = h.forwardRef(
|
|
7573
7595
|
(e, t) => {
|
|
7574
|
-
const { __scopeScrollArea: n, style: a, ...r } = e, o = Ce(Gt, n), i =
|
|
7596
|
+
const { __scopeScrollArea: n, style: a, ...r } = e, o = Ce(Gt, n), i = ti(Gt, n), { onThumbPositionChange: s } = i, l = he(
|
|
7575
7597
|
t,
|
|
7576
7598
|
(u) => i.onThumbChange(u)
|
|
7577
7599
|
), d = h.useRef(void 0), m = mn(() => {
|
|
@@ -7582,7 +7604,7 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7582
7604
|
if (u) {
|
|
7583
7605
|
const f = () => {
|
|
7584
7606
|
if (m(), !d.current) {
|
|
7585
|
-
const g =
|
|
7607
|
+
const g = np(u, s);
|
|
7586
7608
|
d.current = g, s();
|
|
7587
7609
|
}
|
|
7588
7610
|
};
|
|
@@ -7608,15 +7630,15 @@ var Kh = h.forwardRef((e, t) => {
|
|
|
7608
7630
|
);
|
|
7609
7631
|
}
|
|
7610
7632
|
);
|
|
7611
|
-
|
|
7612
|
-
var ha = "ScrollAreaCorner",
|
|
7633
|
+
ai.displayName = Gt;
|
|
7634
|
+
var ha = "ScrollAreaCorner", ri = h.forwardRef(
|
|
7613
7635
|
(e, t) => {
|
|
7614
7636
|
const n = Ce(ha, e.__scopeScrollArea), a = !!(n.scrollbarX && n.scrollbarY);
|
|
7615
|
-
return n.type !== "scroll" && a ? /* @__PURE__ */ c.jsx(
|
|
7637
|
+
return n.type !== "scroll" && a ? /* @__PURE__ */ c.jsx(ep, { ...e, ref: t }) : null;
|
|
7616
7638
|
}
|
|
7617
7639
|
);
|
|
7618
|
-
|
|
7619
|
-
var
|
|
7640
|
+
ri.displayName = ha;
|
|
7641
|
+
var ep = h.forwardRef((e, t) => {
|
|
7620
7642
|
const { __scopeScrollArea: n, ...a } = e, r = Ce(ha, n), [o, i] = h.useState(0), [s, l] = h.useState(0), d = !!(o && s);
|
|
7621
7643
|
return dt(r.scrollbarX, () => {
|
|
7622
7644
|
var u;
|
|
@@ -7646,33 +7668,33 @@ var Jh = h.forwardRef((e, t) => {
|
|
|
7646
7668
|
function Kt(e) {
|
|
7647
7669
|
return e ? parseInt(e, 10) : 0;
|
|
7648
7670
|
}
|
|
7649
|
-
function
|
|
7671
|
+
function oi(e, t) {
|
|
7650
7672
|
const n = e / t;
|
|
7651
7673
|
return isNaN(n) ? 0 : n;
|
|
7652
7674
|
}
|
|
7653
7675
|
function fn(e) {
|
|
7654
|
-
const t =
|
|
7676
|
+
const t = oi(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, a = (e.scrollbar.size - n) * t;
|
|
7655
7677
|
return Math.max(a, 18);
|
|
7656
7678
|
}
|
|
7657
|
-
function
|
|
7679
|
+
function tp(e, t, n, a = "ltr") {
|
|
7658
7680
|
const r = fn(n), o = r / 2, i = t || o, s = r - i, l = n.scrollbar.paddingStart + i, d = n.scrollbar.size - n.scrollbar.paddingEnd - s, m = n.content - n.viewport, u = a === "ltr" ? [0, m] : [m * -1, 0];
|
|
7659
|
-
return
|
|
7681
|
+
return si([l, d], u)(e);
|
|
7660
7682
|
}
|
|
7661
7683
|
function Ka(e, t, n = "ltr") {
|
|
7662
7684
|
const a = fn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, o = t.scrollbar.size - r, i = t.content - t.viewport, s = o - a, l = n === "ltr" ? [0, i] : [i * -1, 0], d = Yn(e, l);
|
|
7663
|
-
return
|
|
7685
|
+
return si([0, i], [0, s])(d);
|
|
7664
7686
|
}
|
|
7665
|
-
function
|
|
7687
|
+
function si(e, t) {
|
|
7666
7688
|
return (n) => {
|
|
7667
7689
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
7668
7690
|
const a = (t[1] - t[0]) / (e[1] - e[0]);
|
|
7669
7691
|
return t[0] + a * (n - e[0]);
|
|
7670
7692
|
};
|
|
7671
7693
|
}
|
|
7672
|
-
function
|
|
7694
|
+
function ii(e, t) {
|
|
7673
7695
|
return e > 0 && e < t;
|
|
7674
7696
|
}
|
|
7675
|
-
var
|
|
7697
|
+
var np = (e, t = () => {
|
|
7676
7698
|
}) => {
|
|
7677
7699
|
let n = { left: e.scrollLeft, top: e.scrollTop }, a = 0;
|
|
7678
7700
|
return function r() {
|
|
@@ -7700,9 +7722,9 @@ function dt(e, t) {
|
|
|
7700
7722
|
}
|
|
7701
7723
|
}, [e, n]);
|
|
7702
7724
|
}
|
|
7703
|
-
var
|
|
7704
|
-
const
|
|
7705
|
-
|
|
7725
|
+
var li = Zs, ap = Js, rp = ri;
|
|
7726
|
+
const op = h.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ c.jsxs(
|
|
7727
|
+
li,
|
|
7706
7728
|
{
|
|
7707
7729
|
ref: a,
|
|
7708
7730
|
className: N("al-relative al-overflow-hidden", e),
|
|
@@ -7711,7 +7733,7 @@ const rp = h.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
7711
7733
|
...n,
|
|
7712
7734
|
children: [
|
|
7713
7735
|
/* @__PURE__ */ c.jsx(
|
|
7714
|
-
|
|
7736
|
+
ap,
|
|
7715
7737
|
{
|
|
7716
7738
|
className: "al-h-full al-w-full al-rounded-[inherit]",
|
|
7717
7739
|
role: "region",
|
|
@@ -7721,11 +7743,11 @@ const rp = h.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
7721
7743
|
),
|
|
7722
7744
|
/* @__PURE__ */ c.jsx(Hn, {}),
|
|
7723
7745
|
/* @__PURE__ */ c.jsx(Hn, { orientation: "horizontal" }),
|
|
7724
|
-
/* @__PURE__ */ c.jsx(
|
|
7746
|
+
/* @__PURE__ */ c.jsx(rp, {})
|
|
7725
7747
|
]
|
|
7726
7748
|
}
|
|
7727
7749
|
));
|
|
7728
|
-
|
|
7750
|
+
op.displayName = li.displayName;
|
|
7729
7751
|
const Hn = h.forwardRef(({ className: e, orientation: t = "vertical", ...n }, a) => /* @__PURE__ */ c.jsx(
|
|
7730
7752
|
fa,
|
|
7731
7753
|
{
|
|
@@ -7738,13 +7760,13 @@ const Hn = h.forwardRef(({ className: e, orientation: t = "vertical", ...n }, a)
|
|
|
7738
7760
|
e
|
|
7739
7761
|
),
|
|
7740
7762
|
...n,
|
|
7741
|
-
children: /* @__PURE__ */ c.jsx(
|
|
7763
|
+
children: /* @__PURE__ */ c.jsx(ai, { className: "al-relative al-flex-1 al-rounded-full al-bg-border" })
|
|
7742
7764
|
}
|
|
7743
7765
|
));
|
|
7744
7766
|
Hn.displayName = fa.displayName;
|
|
7745
|
-
var Tn, pa = "HoverCard", [
|
|
7746
|
-
|
|
7747
|
-
]), hn =
|
|
7767
|
+
var Tn, pa = "HoverCard", [ci, Lp] = He(pa, [
|
|
7768
|
+
nr
|
|
7769
|
+
]), hn = nr(), [sp, ga] = ci(pa), di = (e) => {
|
|
7748
7770
|
const {
|
|
7749
7771
|
__scopeHoverCard: t,
|
|
7750
7772
|
children: n,
|
|
@@ -7765,7 +7787,7 @@ var Tn, pa = "HoverCard", [li, zp] = He(pa, [
|
|
|
7765
7787
|
return h.useEffect(() => () => {
|
|
7766
7788
|
clearTimeout(d.current), clearTimeout(m.current);
|
|
7767
7789
|
}, []), /* @__PURE__ */ c.jsx(
|
|
7768
|
-
|
|
7790
|
+
sp,
|
|
7769
7791
|
{
|
|
7770
7792
|
scope: t,
|
|
7771
7793
|
open: g,
|
|
@@ -7779,10 +7801,10 @@ var Tn, pa = "HoverCard", [li, zp] = He(pa, [
|
|
|
7779
7801
|
}
|
|
7780
7802
|
);
|
|
7781
7803
|
};
|
|
7782
|
-
|
|
7783
|
-
var
|
|
7804
|
+
di.displayName = pa;
|
|
7805
|
+
var ui = "HoverCardTrigger", fi = h.forwardRef(
|
|
7784
7806
|
(e, t) => {
|
|
7785
|
-
const { __scopeHoverCard: n, ...a } = e, r = ga(
|
|
7807
|
+
const { __scopeHoverCard: n, ...a } = e, r = ga(ui, n), o = hn(n);
|
|
7786
7808
|
return /* @__PURE__ */ c.jsx(fl, { asChild: !0, ...o, children: /* @__PURE__ */ c.jsx(
|
|
7787
7809
|
J.a,
|
|
7788
7810
|
{
|
|
@@ -7798,14 +7820,14 @@ var di = "HoverCardTrigger", ui = h.forwardRef(
|
|
|
7798
7820
|
) });
|
|
7799
7821
|
}
|
|
7800
7822
|
);
|
|
7801
|
-
|
|
7802
|
-
var
|
|
7823
|
+
fi.displayName = ui;
|
|
7824
|
+
var ip = "HoverCardPortal", [Fp, lp] = ci(ip, {
|
|
7803
7825
|
forceMount: void 0
|
|
7804
|
-
}), qt = "HoverCardContent",
|
|
7826
|
+
}), qt = "HoverCardContent", mi = h.forwardRef(
|
|
7805
7827
|
(e, t) => {
|
|
7806
|
-
const n =
|
|
7828
|
+
const n = lp(qt, e.__scopeHoverCard), { forceMount: a = n.forceMount, ...r } = e, o = ga(qt, e.__scopeHoverCard);
|
|
7807
7829
|
return /* @__PURE__ */ c.jsx(Qe, { present: a || o.open, children: /* @__PURE__ */ c.jsx(
|
|
7808
|
-
|
|
7830
|
+
cp,
|
|
7809
7831
|
{
|
|
7810
7832
|
"data-state": o.open ? "open" : "closed",
|
|
7811
7833
|
...r,
|
|
@@ -7816,8 +7838,8 @@ var sp = "HoverCardPortal", [Lp, ip] = li(sp, {
|
|
|
7816
7838
|
) });
|
|
7817
7839
|
}
|
|
7818
7840
|
);
|
|
7819
|
-
|
|
7820
|
-
var
|
|
7841
|
+
mi.displayName = qt;
|
|
7842
|
+
var cp = h.forwardRef((e, t) => {
|
|
7821
7843
|
const {
|
|
7822
7844
|
__scopeHoverCard: n,
|
|
7823
7845
|
onEscapeKeyDown: a,
|
|
@@ -7846,7 +7868,7 @@ var lp = h.forwardRef((e, t) => {
|
|
|
7846
7868
|
};
|
|
7847
7869
|
}
|
|
7848
7870
|
}, [l.isPointerDownOnContentRef, l.hasSelectionRef]), h.useEffect(() => {
|
|
7849
|
-
m.current &&
|
|
7871
|
+
m.current && fp(m.current).forEach((y) => y.setAttribute("tabindex", "-1"));
|
|
7850
7872
|
}), /* @__PURE__ */ c.jsx(
|
|
7851
7873
|
ml,
|
|
7852
7874
|
{
|
|
@@ -7883,26 +7905,26 @@ var lp = h.forwardRef((e, t) => {
|
|
|
7883
7905
|
)
|
|
7884
7906
|
}
|
|
7885
7907
|
);
|
|
7886
|
-
}),
|
|
7908
|
+
}), dp = "HoverCardArrow", up = h.forwardRef(
|
|
7887
7909
|
(e, t) => {
|
|
7888
7910
|
const { __scopeHoverCard: n, ...a } = e, r = hn(n);
|
|
7889
7911
|
return /* @__PURE__ */ c.jsx(pl, { ...r, ...a, ref: t });
|
|
7890
7912
|
}
|
|
7891
7913
|
);
|
|
7892
|
-
|
|
7914
|
+
up.displayName = dp;
|
|
7893
7915
|
function Ut(e) {
|
|
7894
7916
|
return (t) => t.pointerType === "touch" ? void 0 : e();
|
|
7895
7917
|
}
|
|
7896
|
-
function
|
|
7918
|
+
function fp(e) {
|
|
7897
7919
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
7898
7920
|
acceptNode: (a) => a.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
7899
7921
|
});
|
|
7900
7922
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
7901
7923
|
return t;
|
|
7902
7924
|
}
|
|
7903
|
-
var
|
|
7904
|
-
const
|
|
7905
|
-
|
|
7925
|
+
var mp = di, hp = fi, hi = mi;
|
|
7926
|
+
const $p = mp, Hp = hp, pp = en(({ className: e, align: t = "center", sideOffset: n = 4, ...a }, r) => /* @__PURE__ */ c.jsx(
|
|
7927
|
+
hi,
|
|
7906
7928
|
{
|
|
7907
7929
|
ref: r,
|
|
7908
7930
|
align: t,
|
|
@@ -7914,8 +7936,8 @@ const Fp = fp, $p = mp, hp = en(({ className: e, align: t = "center", sideOffset
|
|
|
7914
7936
|
...a
|
|
7915
7937
|
}
|
|
7916
7938
|
));
|
|
7917
|
-
|
|
7918
|
-
function
|
|
7939
|
+
pp.displayName = hi.displayName;
|
|
7940
|
+
function Yp({
|
|
7919
7941
|
onFilesSelected: e,
|
|
7920
7942
|
acceptedFileTypes: t = [],
|
|
7921
7943
|
maxFiles: n = 1,
|
|
@@ -8018,7 +8040,7 @@ function Hp({
|
|
|
8018
8040
|
onClick: (S) => {
|
|
8019
8041
|
S.stopPropagation(), y(w);
|
|
8020
8042
|
},
|
|
8021
|
-
children: /* @__PURE__ */ c.jsx(
|
|
8043
|
+
children: /* @__PURE__ */ c.jsx(or, { className: "al-h-4 al-w-4" })
|
|
8022
8044
|
}
|
|
8023
8045
|
)
|
|
8024
8046
|
]
|
|
@@ -8030,205 +8052,206 @@ function Hp({
|
|
|
8030
8052
|
) }) });
|
|
8031
8053
|
}
|
|
8032
8054
|
export {
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8055
|
+
Gp as Accordion,
|
|
8056
|
+
Kp as AccordionContent,
|
|
8057
|
+
qp as AccordionItem,
|
|
8058
|
+
Up as AccordionTrigger,
|
|
8059
|
+
Xp as Alert,
|
|
8060
|
+
Zp as AlertDescription,
|
|
8061
|
+
Qp as AlertDialog,
|
|
8062
|
+
Jp as AlertDialogAction,
|
|
8063
|
+
eg as AlertDialogCancel,
|
|
8064
|
+
tg as AlertDialogContent,
|
|
8065
|
+
ng as AlertDialogDescription,
|
|
8066
|
+
ag as AlertDialogFooter,
|
|
8067
|
+
rg as AlertDialogHeader,
|
|
8068
|
+
og as AlertDialogOverlay,
|
|
8069
|
+
sg as AlertDialogPortal,
|
|
8070
|
+
ig as AlertDialogTitle,
|
|
8071
|
+
lg as AlertDialogTrigger,
|
|
8072
|
+
cg as AlertTitle,
|
|
8073
|
+
dg as AutosizeTextarea,
|
|
8074
|
+
Au as Avatar,
|
|
8075
|
+
Wu as AvatarFallback,
|
|
8076
|
+
Iu as AvatarImage,
|
|
8077
|
+
ug as Badge,
|
|
8078
|
+
am as Breadcrumb,
|
|
8079
|
+
cm as BreadcrumbEllipsis,
|
|
8080
|
+
om as BreadcrumbItem,
|
|
8081
|
+
sm as BreadcrumbLink,
|
|
8082
|
+
rm as BreadcrumbList,
|
|
8083
|
+
im as BreadcrumbPage,
|
|
8084
|
+
lm as BreadcrumbSeparator,
|
|
8063
8085
|
Re as Button,
|
|
8064
8086
|
Tu as Calendar,
|
|
8065
8087
|
Eu as CalendarDayButton,
|
|
8066
8088
|
bl as Card,
|
|
8067
8089
|
vl as CardContent,
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
mb as
|
|
8085
|
-
hb as
|
|
8086
|
-
pb as
|
|
8087
|
-
gb as
|
|
8088
|
-
bb as
|
|
8089
|
-
vb as
|
|
8090
|
-
wb as
|
|
8091
|
-
yb as
|
|
8092
|
-
xb as
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
pg as
|
|
8096
|
-
gg as
|
|
8097
|
-
bg as
|
|
8098
|
-
vg as
|
|
8099
|
-
wg as
|
|
8100
|
-
yg as
|
|
8101
|
-
xg as
|
|
8102
|
-
Sg as
|
|
8103
|
-
Mg as
|
|
8104
|
-
Cg as
|
|
8105
|
-
Ng as
|
|
8106
|
-
Dg as
|
|
8107
|
-
Pg as
|
|
8108
|
-
Tg as
|
|
8109
|
-
Eg as
|
|
8110
|
-
kg as
|
|
8111
|
-
Rg as
|
|
8112
|
-
_g as
|
|
8113
|
-
Og as
|
|
8114
|
-
jg as
|
|
8115
|
-
Ag as
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
lh as
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
dh as
|
|
8141
|
-
|
|
8142
|
-
|
|
8090
|
+
lb as CardDescription,
|
|
8091
|
+
cb as CardFooter,
|
|
8092
|
+
db as CardHeader,
|
|
8093
|
+
ub as CardTitle,
|
|
8094
|
+
fb as Checkbox,
|
|
8095
|
+
Np as Combobox,
|
|
8096
|
+
Ri as Command,
|
|
8097
|
+
fg as CommandDialog,
|
|
8098
|
+
ji as CommandEmpty,
|
|
8099
|
+
Ai as CommandGroup,
|
|
8100
|
+
_i as CommandInput,
|
|
8101
|
+
Ii as CommandItem,
|
|
8102
|
+
Oi as CommandList,
|
|
8103
|
+
mg as CommandSeparator,
|
|
8104
|
+
hg as CommandShortcut,
|
|
8105
|
+
Ru as DebouncedInput,
|
|
8106
|
+
mb as Dialog,
|
|
8107
|
+
hb as DialogClose,
|
|
8108
|
+
pb as DialogContent,
|
|
8109
|
+
gb as DialogDescription,
|
|
8110
|
+
bb as DialogFooter,
|
|
8111
|
+
vb as DialogHeader,
|
|
8112
|
+
wb as DialogOverlay,
|
|
8113
|
+
yb as DialogPortal,
|
|
8114
|
+
xb as DialogTitle,
|
|
8115
|
+
Sb as DialogTrigger,
|
|
8116
|
+
Yp as DragAndDropFileUpload,
|
|
8117
|
+
pg as DropdownMenu,
|
|
8118
|
+
gg as DropdownMenuCheckboxItem,
|
|
8119
|
+
bg as DropdownMenuContent,
|
|
8120
|
+
vg as DropdownMenuGroup,
|
|
8121
|
+
wg as DropdownMenuItem,
|
|
8122
|
+
yg as DropdownMenuLabel,
|
|
8123
|
+
xg as DropdownMenuPortal,
|
|
8124
|
+
Sg as DropdownMenuRadioGroup,
|
|
8125
|
+
Mg as DropdownMenuRadioItem,
|
|
8126
|
+
Cg as DropdownMenuSeparator,
|
|
8127
|
+
Ng as DropdownMenuShortcut,
|
|
8128
|
+
Dg as DropdownMenuSub,
|
|
8129
|
+
Pg as DropdownMenuSubContent,
|
|
8130
|
+
Tg as DropdownMenuSubTrigger,
|
|
8131
|
+
Eg as DropdownMenuTrigger,
|
|
8132
|
+
kg as Form,
|
|
8133
|
+
Rg as FormControl,
|
|
8134
|
+
_g as FormDescription,
|
|
8135
|
+
Og as FormField,
|
|
8136
|
+
jg as FormItem,
|
|
8137
|
+
Ag as FormLabel,
|
|
8138
|
+
Ig as FormMessage,
|
|
8139
|
+
$p as HoverCard,
|
|
8140
|
+
pp as HoverCardContent,
|
|
8141
|
+
Hp as HoverCardTrigger,
|
|
8142
|
+
Qa as Input,
|
|
8143
|
+
Mb as Label,
|
|
8144
|
+
Jm as Menubar,
|
|
8145
|
+
oh as MenubarCheckboxItem,
|
|
8146
|
+
ah as MenubarContent,
|
|
8147
|
+
kp as MenubarGroup,
|
|
8148
|
+
rh as MenubarItem,
|
|
8149
|
+
ih as MenubarLabel,
|
|
8150
|
+
Ep as MenubarMenu,
|
|
8151
|
+
Rp as MenubarPortal,
|
|
8152
|
+
Op as MenubarRadioGroup,
|
|
8153
|
+
sh as MenubarRadioItem,
|
|
8154
|
+
lh as MenubarSeparator,
|
|
8155
|
+
ch as MenubarShortcut,
|
|
8156
|
+
_p as MenubarSub,
|
|
8157
|
+
nh as MenubarSubContent,
|
|
8158
|
+
th as MenubarSubTrigger,
|
|
8159
|
+
eh as MenubarTrigger,
|
|
8160
|
+
Wg as NativeSelect,
|
|
8161
|
+
_r as PREDEFINED_RANGES,
|
|
8162
|
+
dh as Pagination,
|
|
8163
|
+
uh as PaginationContent,
|
|
8164
|
+
ph as PaginationEllipsis,
|
|
8165
|
+
fh as PaginationItem,
|
|
8143
8166
|
sa as PaginationLink,
|
|
8144
|
-
|
|
8145
|
-
|
|
8167
|
+
hh as PaginationNext,
|
|
8168
|
+
mh as PaginationPrevious,
|
|
8146
8169
|
qa as Popover,
|
|
8147
|
-
|
|
8170
|
+
Cb as PopoverClose,
|
|
8148
8171
|
Xa as PopoverContent,
|
|
8149
8172
|
Ua as PopoverTrigger,
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8173
|
+
mf as Progress,
|
|
8174
|
+
Nb as RadioGroup,
|
|
8175
|
+
Db as RadioGroupItem,
|
|
8176
|
+
Wp as ResizableHandle,
|
|
8177
|
+
Ip as ResizablePanel,
|
|
8178
|
+
Ap as ResizablePanelGroup,
|
|
8179
|
+
op as ScrollArea,
|
|
8157
8180
|
Hn as ScrollBar,
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8181
|
+
zg as Select,
|
|
8182
|
+
Lg as SelectContent,
|
|
8183
|
+
Fg as SelectGroup,
|
|
8184
|
+
$g as SelectItem,
|
|
8185
|
+
Hg as SelectLabel,
|
|
8186
|
+
Yg as SelectScrollDownButton,
|
|
8187
|
+
Bg as SelectScrollUpButton,
|
|
8188
|
+
Vg as SelectSeparator,
|
|
8189
|
+
Gg as SelectTrigger,
|
|
8190
|
+
Kg as SelectValue,
|
|
8191
|
+
yo as Separator,
|
|
8192
|
+
Wi as Sheet,
|
|
8193
|
+
qg as SheetClose,
|
|
8194
|
+
zi as SheetContent,
|
|
8195
|
+
Ug as SheetDescription,
|
|
8196
|
+
Xg as SheetFooter,
|
|
8197
|
+
Zg as SheetHeader,
|
|
8198
|
+
Qg as SheetOverlay,
|
|
8199
|
+
Jg as SheetPortal,
|
|
8200
|
+
eb as SheetTitle,
|
|
8201
|
+
tb as SheetTrigger,
|
|
8202
|
+
Nf as Sidebar,
|
|
8203
|
+
Of as SidebarContent,
|
|
8204
|
+
Rf as SidebarFooter,
|
|
8205
|
+
jf as SidebarGroup,
|
|
8206
|
+
If as SidebarGroupAction,
|
|
8207
|
+
Wf as SidebarGroupContent,
|
|
8208
|
+
Af as SidebarGroupLabel,
|
|
8209
|
+
kf as SidebarHeader,
|
|
8210
|
+
Ef as SidebarInput,
|
|
8211
|
+
Tf as SidebarInset,
|
|
8212
|
+
zf as SidebarMenu,
|
|
8213
|
+
Hf as SidebarMenuAction,
|
|
8214
|
+
Yf as SidebarMenuBadge,
|
|
8215
|
+
$f as SidebarMenuButton,
|
|
8216
|
+
Lf as SidebarMenuItem,
|
|
8217
|
+
Bf as SidebarMenuSkeleton,
|
|
8218
|
+
Vf as SidebarMenuSub,
|
|
8219
|
+
Kf as SidebarMenuSubButton,
|
|
8220
|
+
Gf as SidebarMenuSubItem,
|
|
8221
|
+
Cf as SidebarProvider,
|
|
8222
|
+
Pf as SidebarRail,
|
|
8223
|
+
_f as SidebarSeparator,
|
|
8224
|
+
Df as SidebarTrigger,
|
|
8202
8225
|
Wa as Skeleton,
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8226
|
+
Tm as Slider,
|
|
8227
|
+
kb as Switch,
|
|
8228
|
+
yp as TZDateRange,
|
|
8229
|
+
Jf as Tabs,
|
|
8230
|
+
nm as TabsContent,
|
|
8231
|
+
em as TabsList,
|
|
8232
|
+
tm as TabsTrigger,
|
|
8233
|
+
Pb as Textarea,
|
|
8234
|
+
lo as Toast,
|
|
8235
|
+
rf as ToastAction,
|
|
8236
|
+
co as ToastClose,
|
|
8237
|
+
fo as ToastDescription,
|
|
8238
|
+
nf as ToastProvider,
|
|
8239
|
+
uo as ToastTitle,
|
|
8240
|
+
io as ToastViewport,
|
|
8241
|
+
Mp as Toaster,
|
|
8242
|
+
Tb as Tooltip,
|
|
8220
8243
|
cl as TooltipContent,
|
|
8221
8244
|
il as TooltipCore,
|
|
8222
|
-
|
|
8245
|
+
sl as TooltipProvider,
|
|
8223
8246
|
ll as TooltipTrigger,
|
|
8224
8247
|
Za as Typography,
|
|
8225
|
-
|
|
8248
|
+
nb as badgeVariants,
|
|
8226
8249
|
En as buttonVariants,
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8250
|
+
ab as reducer,
|
|
8251
|
+
Xf as tabsVariants,
|
|
8252
|
+
rb as toast,
|
|
8253
|
+
ob as useAutosizeTextArea,
|
|
8254
|
+
sb as useFormField,
|
|
8232
8255
|
rn as useSidebar,
|
|
8233
|
-
|
|
8256
|
+
ki as useToast
|
|
8234
8257
|
};
|