@fabio.caffarello/react-design-system 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +552 -534
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/ui/hooks/useScrollSpy.d.ts +116 -0
- package/dist/ui/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Qa = Object.defineProperty, Za = Object.defineProperties;
|
|
|
3
3
|
var eo = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var ur = Object.getOwnPropertySymbols;
|
|
5
5
|
var Us = Object.prototype.hasOwnProperty, Ys = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var Pr = (e, t, r) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
6
|
+
var Pr = (e, t, r) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, E = (e, t) => {
|
|
7
7
|
for (var r in t || (t = {}))
|
|
8
8
|
Us.call(t, r) && Pr(e, r, t[r]);
|
|
9
9
|
if (ur)
|
|
@@ -38,7 +38,7 @@ var fr = (e, t, r) => new Promise((s, a) => {
|
|
|
38
38
|
l((r = r.apply(e, t)).next());
|
|
39
39
|
});
|
|
40
40
|
import * as Re from "react";
|
|
41
|
-
import me, { createContext as Se, useState as W, useEffect as
|
|
41
|
+
import me, { createContext as Se, useState as W, useEffect as X, useContext as ue, useMemo as V, useCallback as K, useRef as re, forwardRef as pe, createElement as Jr, memo as Le, useId as je, isValidElement as It, cloneElement as rr, Children as Zt } from "react";
|
|
42
42
|
import { createPortal as st } from "react-dom";
|
|
43
43
|
const vt = {
|
|
44
44
|
// Icon sizes
|
|
@@ -126,7 +126,7 @@ const vt = {
|
|
|
126
126
|
function Zd(e) {
|
|
127
127
|
return e <= 0 ? vt.spacing.itemPaddingX : e === 1 ? vt.spacing.nestedIndent : e === 2 ? vt.spacing.nestedIndentLevel2 : e === 3 ? vt.spacing.nestedIndentLevel3 : `pl-${4 + e * 4}`;
|
|
128
128
|
}
|
|
129
|
-
class
|
|
129
|
+
class Ae {
|
|
130
130
|
// 4px base
|
|
131
131
|
/**
|
|
132
132
|
* Create a spacing token from scale value
|
|
@@ -193,42 +193,42 @@ class Ee {
|
|
|
193
193
|
}[t] || String(t);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
Gs(
|
|
196
|
+
Gs(Ae, "BASE_UNIT", 4);
|
|
197
197
|
const is = {
|
|
198
198
|
// Micro spacing (0-14px)
|
|
199
|
-
none:
|
|
200
|
-
"0.5":
|
|
199
|
+
none: Ae.create(0),
|
|
200
|
+
"0.5": Ae.create(0.5),
|
|
201
201
|
// 2px (half-step)
|
|
202
|
-
xs:
|
|
202
|
+
xs: Ae.create(1),
|
|
203
203
|
// 4px
|
|
204
|
-
"1.5":
|
|
204
|
+
"1.5": Ae.create(1.5),
|
|
205
205
|
// 6px (half-step)
|
|
206
|
-
sm:
|
|
206
|
+
sm: Ae.create(2),
|
|
207
207
|
// 8px
|
|
208
|
-
"2.5":
|
|
208
|
+
"2.5": Ae.create(2.5),
|
|
209
209
|
// 10px (half-step)
|
|
210
|
-
md:
|
|
210
|
+
md: Ae.create(3),
|
|
211
211
|
// 12px
|
|
212
|
-
"3.5":
|
|
212
|
+
"3.5": Ae.create(3.5),
|
|
213
213
|
// 14px (half-step)
|
|
214
214
|
// Standard spacing (16-32px)
|
|
215
|
-
base:
|
|
215
|
+
base: Ae.create(4),
|
|
216
216
|
// 16px
|
|
217
|
-
lg:
|
|
217
|
+
lg: Ae.create(6),
|
|
218
218
|
// 24px
|
|
219
|
-
xl:
|
|
219
|
+
xl: Ae.create(8),
|
|
220
220
|
// 32px
|
|
221
221
|
// Large spacing (40-64px)
|
|
222
|
-
"2xl":
|
|
222
|
+
"2xl": Ae.create(10),
|
|
223
223
|
// 40px
|
|
224
|
-
"3xl":
|
|
224
|
+
"3xl": Ae.create(12),
|
|
225
225
|
// 48px
|
|
226
|
-
"4xl":
|
|
226
|
+
"4xl": Ae.create(16),
|
|
227
227
|
// 64px
|
|
228
228
|
// Extra large spacing (80px+)
|
|
229
|
-
"5xl":
|
|
229
|
+
"5xl": Ae.create(20),
|
|
230
230
|
// 80px
|
|
231
|
-
"6xl":
|
|
231
|
+
"6xl": Ae.create(24)
|
|
232
232
|
// 96px
|
|
233
233
|
};
|
|
234
234
|
function eu(e) {
|
|
@@ -1212,18 +1212,18 @@ const yo = (e, t) => {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}, Co = (e, t, r, s) => {
|
|
1214
1214
|
if (typeof e == "string") {
|
|
1215
|
-
|
|
1215
|
+
Eo(e, t, r);
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
1218
|
if (typeof e == "function") {
|
|
1219
|
-
|
|
1219
|
+
Ao(e, t, r, s);
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
1222
|
Io(e, t, r, s);
|
|
1223
|
-
},
|
|
1223
|
+
}, Eo = (e, t, r) => {
|
|
1224
1224
|
const s = e === "" ? t : Sn(t, e);
|
|
1225
1225
|
s.classGroupId = r;
|
|
1226
|
-
},
|
|
1226
|
+
}, Ao = (e, t, r, s) => {
|
|
1227
1227
|
if (To(e)) {
|
|
1228
1228
|
ds(e(s), t, r, s);
|
|
1229
1229
|
return;
|
|
@@ -1334,7 +1334,7 @@ const yo = (e, t) => {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return a.length > 0 && (a.sort(), s.push(...a)), s;
|
|
1336
1336
|
};
|
|
1337
|
-
}, Lo = (e) =>
|
|
1337
|
+
}, Lo = (e) => E({
|
|
1338
1338
|
cache: Mo(e.cacheSize),
|
|
1339
1339
|
parseClassName: Ro(e),
|
|
1340
1340
|
sortModifiers: _o(e),
|
|
@@ -1425,16 +1425,16 @@ const yo = (e, t) => {
|
|
|
1425
1425
|
}, Wo = [], ke = (e) => {
|
|
1426
1426
|
const t = (r) => r[e] || Wo;
|
|
1427
1427
|
return t.isThemeGetter = !0, t;
|
|
1428
|
-
},
|
|
1428
|
+
}, En = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, An = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ho = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Bo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Uo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Go = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ko = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ot = (e) => Ho.test(e), ie = (e) => !!e && !Number.isNaN(Number(e)), Ue = (e) => !!e && Number.isInteger(Number(e)), Or = (e) => e.endsWith("%") && ie(e.slice(0, -1)), Je = (e) => Bo.test(e), In = () => !0, qo = (e) => (
|
|
1429
1429
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1430
1430
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1431
1431
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1432
1432
|
Uo.test(e) && !Yo.test(e)
|
|
1433
|
-
), us = () => !1, Xo = (e) => Go.test(e), Jo = (e) => Ko.test(e), Qo = (e) => !G(e) && !q(e), Zo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ei = (e) => ft(e, Dn, us), G = (e) =>
|
|
1434
|
-
const s =
|
|
1433
|
+
), us = () => !1, Xo = (e) => Go.test(e), Jo = (e) => Ko.test(e), Qo = (e) => !G(e) && !q(e), Zo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ei = (e) => ft(e, Dn, us), G = (e) => En.test(e), ht = (e) => ft(e, Rn, qo), Js = (e) => ft(e, li, ie), ti = (e) => ft(e, Ln, In), ri = (e) => ft(e, _n, us), Qs = (e) => ft(e, Tn, us), si = (e) => ft(e, Mn, Jo), mr = (e) => ft(e, Fn, Xo), q = (e) => An.test(e), Bt = (e) => Tt(e, Rn), ni = (e) => Tt(e, _n), Zs = (e) => Tt(e, Tn), ai = (e) => Tt(e, Dn), oi = (e) => Tt(e, Mn), pr = (e) => Tt(e, Fn, !0), ii = (e) => Tt(e, Ln, !0), ft = (e, t, r) => {
|
|
1434
|
+
const s = En.exec(e);
|
|
1435
1435
|
return s ? s[1] ? t(s[1]) : r(s[2]) : !1;
|
|
1436
1436
|
}, Tt = (e, t, r = !1) => {
|
|
1437
|
-
const s =
|
|
1437
|
+
const s = An.exec(e);
|
|
1438
1438
|
return s ? s[1] ? t(s[1]) : r : !1;
|
|
1439
1439
|
}, Tn = (e) => e === "position" || e === "percentage", Mn = (e) => e === "image" || e === "url", Dn = (e) => e === "length" || e === "size" || e === "bg-size", Rn = (e) => e === "length", li = (e) => e === "number", _n = (e) => e === "family-name", Ln = (e) => e === "number" || e === "weight", Fn = (e) => e === "shadow", ci = () => {
|
|
1440
1440
|
const e = ke("color"), t = ke("font"), r = ke("text"), s = ke("font-weight"), a = ke("tracking"), o = ke("leading"), i = ke("breakpoint"), l = ke("container"), c = ke("spacing"), d = ke("radius"), u = ke("shadow"), m = ke("inset-shadow"), p = ke("text-shadow"), b = ke("drop-shadow"), x = ke("blur"), v = ke("perspective"), g = ke("aspect"), h = ke("ease"), w = ke("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
|
|
@@ -1457,9 +1457,9 @@ const yo = (e, t) => {
|
|
|
1457
1457
|
"left-bottom"
|
|
1458
1458
|
], $ = () => [...y(), q, G], N = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], S = () => [q, G, c], I = () => [ot, "full", "auto", ...S()], _ = () => [Ue, "none", "subgrid", q, G], D = () => ["auto", {
|
|
1459
1459
|
span: ["full", Ue, q, G]
|
|
1460
|
-
}, Ue, q, G],
|
|
1460
|
+
}, Ue, q, G], A = () => [Ue, "auto", q, G], T = () => ["auto", "min", "max", "fr", q, G], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], P = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], U = () => ["auto", ...S()], Z = () => [ot, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], te = () => [ot, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...S()], de = () => [ot, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...S()], B = () => [e, q, G], L = () => [...y(), Zs, Qs, {
|
|
1461
1461
|
position: [q, G]
|
|
1462
|
-
}],
|
|
1462
|
+
}], J = () => ["no-repeat", {
|
|
1463
1463
|
repeat: ["", "x", "y", "space", "round"]
|
|
1464
1464
|
}], ne = () => ["auto", "cover", "contain", ai, ei, {
|
|
1465
1465
|
size: [q, G]
|
|
@@ -1835,14 +1835,14 @@ const yo = (e, t) => {
|
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1836
1836
|
*/
|
|
1837
1837
|
"col-start": [{
|
|
1838
|
-
"col-start":
|
|
1838
|
+
"col-start": A()
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Grid Column End
|
|
1842
1842
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1843
1843
|
*/
|
|
1844
1844
|
"col-end": [{
|
|
1845
|
-
"col-end":
|
|
1845
|
+
"col-end": A()
|
|
1846
1846
|
}],
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Grid Template Rows
|
|
@@ -1863,14 +1863,14 @@ const yo = (e, t) => {
|
|
|
1863
1863
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1864
1864
|
*/
|
|
1865
1865
|
"row-start": [{
|
|
1866
|
-
"row-start":
|
|
1866
|
+
"row-start": A()
|
|
1867
1867
|
}],
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Grid Row End
|
|
1870
1870
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1871
1871
|
*/
|
|
1872
1872
|
"row-end": [{
|
|
1873
|
-
"row-end":
|
|
1873
|
+
"row-end": A()
|
|
1874
1874
|
}],
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Grid Auto Flow
|
|
@@ -2559,7 +2559,7 @@ const yo = (e, t) => {
|
|
|
2559
2559
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
2560
2560
|
*/
|
|
2561
2561
|
"bg-repeat": [{
|
|
2562
|
-
bg:
|
|
2562
|
+
bg: J()
|
|
2563
2563
|
}],
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Background Size
|
|
@@ -3264,7 +3264,7 @@ const yo = (e, t) => {
|
|
|
3264
3264
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
3265
3265
|
*/
|
|
3266
3266
|
"mask-repeat": [{
|
|
3267
|
-
mask:
|
|
3267
|
+
mask: J()
|
|
3268
3268
|
}],
|
|
3269
3269
|
/**
|
|
3270
3270
|
* Mask Size
|
|
@@ -4140,7 +4140,7 @@ const en = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, tn = kn, u
|
|
|
4140
4140
|
let x = u, { class: m, className: p } = x, b = O(x, ["class", "className"]);
|
|
4141
4141
|
return Object.entries(b).every((v) => {
|
|
4142
4142
|
let [g, h] = v;
|
|
4143
|
-
return Array.isArray(h) ? h.includes(
|
|
4143
|
+
return Array.isArray(h) ? h.includes(E(E({}, o), l)[g]) : E(E({}, o), l)[g] === h;
|
|
4144
4144
|
}) ? [
|
|
4145
4145
|
...d,
|
|
4146
4146
|
m,
|
|
@@ -4439,14 +4439,14 @@ function pi() {
|
|
|
4439
4439
|
case k:
|
|
4440
4440
|
return (L._context.displayName || "Context") + ".Consumer";
|
|
4441
4441
|
case $:
|
|
4442
|
-
var
|
|
4443
|
-
return L = L.displayName, L || (L =
|
|
4442
|
+
var J = L.render;
|
|
4443
|
+
return L = L.displayName, L || (L = J.displayName || J.name || "", L = L !== "" ? "ForwardRef(" + L + ")" : "ForwardRef"), L;
|
|
4444
4444
|
case S:
|
|
4445
|
-
return
|
|
4445
|
+
return J = L.displayName || null, J !== null ? J : e(L.type) || "Memo";
|
|
4446
4446
|
case I:
|
|
4447
|
-
|
|
4447
|
+
J = L._payload, L = L._init;
|
|
4448
4448
|
try {
|
|
4449
|
-
return e(L(
|
|
4449
|
+
return e(L(J));
|
|
4450
4450
|
} catch (ne) {
|
|
4451
4451
|
}
|
|
4452
4452
|
}
|
|
@@ -4457,15 +4457,15 @@ function pi() {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
function r(L) {
|
|
4459
4459
|
try {
|
|
4460
|
-
var
|
|
4460
|
+
var J = !1;
|
|
4461
4461
|
} catch (ae) {
|
|
4462
|
-
|
|
4462
|
+
J = !0;
|
|
4463
4463
|
}
|
|
4464
|
-
if (
|
|
4465
|
-
|
|
4466
|
-
var ne =
|
|
4464
|
+
if (J) {
|
|
4465
|
+
J = console;
|
|
4466
|
+
var ne = J.error, ee = typeof Symbol == "function" && Symbol.toStringTag && L[Symbol.toStringTag] || L.constructor.name || "Object";
|
|
4467
4467
|
return ne.call(
|
|
4468
|
-
|
|
4468
|
+
J,
|
|
4469
4469
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
4470
4470
|
ee
|
|
4471
4471
|
), t(L);
|
|
@@ -4476,14 +4476,14 @@ function pi() {
|
|
|
4476
4476
|
if (typeof L == "object" && L !== null && L.$$typeof === I)
|
|
4477
4477
|
return "<...>";
|
|
4478
4478
|
try {
|
|
4479
|
-
var
|
|
4480
|
-
return
|
|
4479
|
+
var J = e(L);
|
|
4480
|
+
return J ? "<" + J + ">" : "<...>";
|
|
4481
4481
|
} catch (ne) {
|
|
4482
4482
|
return "<...>";
|
|
4483
4483
|
}
|
|
4484
4484
|
}
|
|
4485
4485
|
function a() {
|
|
4486
|
-
var L =
|
|
4486
|
+
var L = A.A;
|
|
4487
4487
|
return L === null ? null : L.getOwner();
|
|
4488
4488
|
}
|
|
4489
4489
|
function o() {
|
|
@@ -4491,16 +4491,16 @@ function pi() {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
function i(L) {
|
|
4493
4493
|
if (T.call(L, "key")) {
|
|
4494
|
-
var
|
|
4495
|
-
if (
|
|
4494
|
+
var J = Object.getOwnPropertyDescriptor(L, "key").get;
|
|
4495
|
+
if (J && J.isReactWarning) return !1;
|
|
4496
4496
|
}
|
|
4497
4497
|
return L.key !== void 0;
|
|
4498
4498
|
}
|
|
4499
|
-
function l(L,
|
|
4499
|
+
function l(L, J) {
|
|
4500
4500
|
function ne() {
|
|
4501
4501
|
U || (U = !0, console.error(
|
|
4502
4502
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
4503
|
-
|
|
4503
|
+
J
|
|
4504
4504
|
));
|
|
4505
4505
|
}
|
|
4506
4506
|
ne.isReactWarning = !0, Object.defineProperty(L, "key", {
|
|
@@ -4514,12 +4514,12 @@ function pi() {
|
|
|
4514
4514
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
4515
4515
|
)), L = this.props.ref, L !== void 0 ? L : null;
|
|
4516
4516
|
}
|
|
4517
|
-
function d(L,
|
|
4517
|
+
function d(L, J, ne, ee, ae, ce) {
|
|
4518
4518
|
var z = ne.ref;
|
|
4519
4519
|
return L = {
|
|
4520
4520
|
$$typeof: x,
|
|
4521
4521
|
type: L,
|
|
4522
|
-
key:
|
|
4522
|
+
key: J,
|
|
4523
4523
|
props: ne,
|
|
4524
4524
|
_owner: ee
|
|
4525
4525
|
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(L, "ref", {
|
|
@@ -4547,8 +4547,8 @@ function pi() {
|
|
|
4547
4547
|
value: ce
|
|
4548
4548
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
4549
4549
|
}
|
|
4550
|
-
function u(L,
|
|
4551
|
-
var z =
|
|
4550
|
+
function u(L, J, ne, ee, ae, ce) {
|
|
4551
|
+
var z = J.children;
|
|
4552
4552
|
if (z !== void 0)
|
|
4553
4553
|
if (ee)
|
|
4554
4554
|
if (R(z)) {
|
|
@@ -4560,9 +4560,9 @@ function pi() {
|
|
|
4560
4560
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
4561
4561
|
);
|
|
4562
4562
|
else m(z);
|
|
4563
|
-
if (T.call(
|
|
4563
|
+
if (T.call(J, "key")) {
|
|
4564
4564
|
z = e(L);
|
|
4565
|
-
var H = Object.keys(
|
|
4565
|
+
var H = Object.keys(J).filter(function(he) {
|
|
4566
4566
|
return he !== "key";
|
|
4567
4567
|
});
|
|
4568
4568
|
ee = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", B[z + ee] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -4578,11 +4578,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4578
4578
|
z
|
|
4579
4579
|
), B[z + ee] = !0);
|
|
4580
4580
|
}
|
|
4581
|
-
if (z = null, ne !== void 0 && (r(ne), z = "" + ne), i(
|
|
4581
|
+
if (z = null, ne !== void 0 && (r(ne), z = "" + ne), i(J) && (r(J.key), z = "" + J.key), "key" in J) {
|
|
4582
4582
|
ne = {};
|
|
4583
|
-
for (var Q in
|
|
4584
|
-
Q !== "key" && (ne[Q] =
|
|
4585
|
-
} else ne =
|
|
4583
|
+
for (var Q in J)
|
|
4584
|
+
Q !== "key" && (ne[Q] = J[Q]);
|
|
4585
|
+
} else ne = J;
|
|
4586
4586
|
return z && l(
|
|
4587
4587
|
ne,
|
|
4588
4588
|
typeof L == "function" ? L.displayName || L.name || "Unknown" : L
|
|
@@ -4601,7 +4601,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4601
4601
|
function p(L) {
|
|
4602
4602
|
return typeof L == "object" && L !== null && L.$$typeof === x;
|
|
4603
4603
|
}
|
|
4604
|
-
var b = me, x = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), g = /* @__PURE__ */ Symbol.for("react.fragment"), h = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.activity"), D = /* @__PURE__ */ Symbol.for("react.client.reference"),
|
|
4604
|
+
var b = me, x = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), g = /* @__PURE__ */ Symbol.for("react.fragment"), h = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.activity"), D = /* @__PURE__ */ Symbol.for("react.client.reference"), A = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, R = Array.isArray, P = console.createTask ? console.createTask : function() {
|
|
4605
4605
|
return null;
|
|
4606
4606
|
};
|
|
4607
4607
|
b = {
|
|
@@ -4613,21 +4613,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4613
4613
|
b,
|
|
4614
4614
|
o
|
|
4615
4615
|
)(), de = P(s(o)), B = {};
|
|
4616
|
-
Yt.Fragment = g, Yt.jsx = function(L,
|
|
4617
|
-
var ee = 1e4 >
|
|
4616
|
+
Yt.Fragment = g, Yt.jsx = function(L, J, ne) {
|
|
4617
|
+
var ee = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
4618
4618
|
return u(
|
|
4619
4619
|
L,
|
|
4620
|
-
|
|
4620
|
+
J,
|
|
4621
4621
|
ne,
|
|
4622
4622
|
!1,
|
|
4623
4623
|
ee ? Error("react-stack-top-frame") : te,
|
|
4624
4624
|
ee ? P(s(L)) : de
|
|
4625
4625
|
);
|
|
4626
|
-
}, Yt.jsxs = function(L,
|
|
4627
|
-
var ee = 1e4 >
|
|
4626
|
+
}, Yt.jsxs = function(L, J, ne) {
|
|
4627
|
+
var ee = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
4628
4628
|
return u(
|
|
4629
4629
|
L,
|
|
4630
|
-
|
|
4630
|
+
J,
|
|
4631
4631
|
ne,
|
|
4632
4632
|
!0,
|
|
4633
4633
|
ee ? Error("react-stack-top-frame") : te,
|
|
@@ -4659,7 +4659,7 @@ function hi({
|
|
|
4659
4659
|
}
|
|
4660
4660
|
return t;
|
|
4661
4661
|
});
|
|
4662
|
-
|
|
4662
|
+
X(() => {
|
|
4663
4663
|
if (typeof window != "undefined") {
|
|
4664
4664
|
try {
|
|
4665
4665
|
localStorage.setItem(r, s);
|
|
@@ -4682,7 +4682,7 @@ function hi({
|
|
|
4682
4682
|
};
|
|
4683
4683
|
return /* @__PURE__ */ n.jsx(Pn.Provider, { value: c, children: e });
|
|
4684
4684
|
}
|
|
4685
|
-
function
|
|
4685
|
+
function Eu() {
|
|
4686
4686
|
const e = ue(Pn);
|
|
4687
4687
|
if (e === void 0)
|
|
4688
4688
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
@@ -4710,19 +4710,19 @@ function gi({
|
|
|
4710
4710
|
strategy: r = "default"
|
|
4711
4711
|
}) {
|
|
4712
4712
|
const s = V(() => {
|
|
4713
|
-
const d =
|
|
4714
|
-
return t ? F(
|
|
4713
|
+
const d = E({}, xi);
|
|
4714
|
+
return t ? F(E(E({}, d), t), {
|
|
4715
4715
|
breakpoints: t.breakpoints || d.breakpoints,
|
|
4716
4716
|
spacing: t.spacing || d.spacing,
|
|
4717
4717
|
typography: t.typography || d.typography,
|
|
4718
4718
|
animations: t.animations || d.animations,
|
|
4719
|
-
features:
|
|
4720
|
-
behavior:
|
|
4719
|
+
features: E(E({}, d.features), t.features),
|
|
4720
|
+
behavior: E(E({}, d.behavior), t.behavior)
|
|
4721
4721
|
}) : d;
|
|
4722
4722
|
}, [t]);
|
|
4723
|
-
|
|
4723
|
+
X(() => {
|
|
4724
4724
|
typeof document != "undefined" && (s.features.reducedMotion ? document.documentElement.style.setProperty("--motion-reduce", "1") : document.documentElement.style.removeProperty("--motion-reduce"));
|
|
4725
|
-
}, [s.features.reducedMotion]),
|
|
4725
|
+
}, [s.features.reducedMotion]), X(() => {
|
|
4726
4726
|
typeof document != "undefined" && (s.features.highContrast ? document.documentElement.classList.add("high-contrast") : document.documentElement.classList.remove("high-contrast"));
|
|
4727
4727
|
}, [s.features.highContrast]);
|
|
4728
4728
|
const a = V(
|
|
@@ -4753,7 +4753,7 @@ function gi({
|
|
|
4753
4753
|
};
|
|
4754
4754
|
return /* @__PURE__ */ n.jsx(On.Provider, { value: c, children: e });
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function Au() {
|
|
4757
4757
|
const e = ue(On);
|
|
4758
4758
|
if (e === void 0)
|
|
4759
4759
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
@@ -4779,7 +4779,7 @@ function vi({
|
|
|
4779
4779
|
const [s, a] = W([]), o = K(
|
|
4780
4780
|
(d) => {
|
|
4781
4781
|
var p;
|
|
4782
|
-
const u = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, m = F(
|
|
4782
|
+
const u = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, m = F(E({}, d), {
|
|
4783
4783
|
id: u,
|
|
4784
4784
|
duration: (p = d.duration) != null ? p : t
|
|
4785
4785
|
});
|
|
@@ -4812,7 +4812,7 @@ function Tu() {
|
|
|
4812
4812
|
}
|
|
4813
4813
|
function Sr(e) {
|
|
4814
4814
|
const t = re(null);
|
|
4815
|
-
|
|
4815
|
+
X(() => {
|
|
4816
4816
|
var r;
|
|
4817
4817
|
if (e)
|
|
4818
4818
|
t.current = (r = document.activeElement) != null ? r : null;
|
|
@@ -4835,7 +4835,7 @@ function Wn({
|
|
|
4835
4835
|
const [i, l] = W(r), c = t !== void 0 ? t : i, d = (m) => {
|
|
4836
4836
|
t === void 0 && l(m), s == null || s(m);
|
|
4837
4837
|
};
|
|
4838
|
-
Sr(c),
|
|
4838
|
+
Sr(c), X(() => (c ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
4839
4839
|
document.body.style.overflow = "";
|
|
4840
4840
|
}), [c]);
|
|
4841
4841
|
const u = {
|
|
@@ -4867,7 +4867,7 @@ function wi(e, t) {
|
|
|
4867
4867
|
}
|
|
4868
4868
|
} = t || {};
|
|
4869
4869
|
let l = e;
|
|
4870
|
-
return i.dialog && (l = /* @__PURE__ */ n.jsx(hr.DialogProvider, F(
|
|
4870
|
+
return i.dialog && (l = /* @__PURE__ */ n.jsx(hr.DialogProvider, F(E({}, o), { children: l }))), i.toast && (l = /* @__PURE__ */ n.jsx(hr.ToastProvider, F(E({}, a), { children: l }))), i.config && (l = /* @__PURE__ */ n.jsx(hr.ConfigProvider, F(E({}, s), { children: l }))), i.theme && (l = /* @__PURE__ */ n.jsx(hr.ThemeProvider, F(E({}, r), { children: l }))), l;
|
|
4871
4871
|
}
|
|
4872
4872
|
function Mu({ children: e, config: t }) {
|
|
4873
4873
|
const r = V(
|
|
@@ -4965,7 +4965,7 @@ function Ru(s) {
|
|
|
4965
4965
|
};
|
|
4966
4966
|
return /* @__PURE__ */ n.jsx(
|
|
4967
4967
|
"div",
|
|
4968
|
-
|
|
4968
|
+
E({
|
|
4969
4969
|
role: "alert",
|
|
4970
4970
|
className: j(
|
|
4971
4971
|
"border",
|
|
@@ -5064,7 +5064,7 @@ function Ni(d, c) {
|
|
|
5064
5064
|
p = "p";
|
|
5065
5065
|
break;
|
|
5066
5066
|
}
|
|
5067
|
-
return e === "heading" ? m.push(ye("h2")) : e === "body" || e === "paragraph" ? m.push(ye("body")) : e === "bodySmall" ? m.push(ye("bodySmall")) : e === "bodyLarge" ? m.push(ye("bodyLarge")) : e === "caption" ? m.push(ye("caption")) : e === "label" ? m.push(ye("label")) : m.push(ye("body")), t && m.push("font-bold"), r && m.push("italic"), m.push(ki[o][i]), /* @__PURE__ */ n.jsx(p,
|
|
5067
|
+
return e === "heading" ? m.push(ye("h2")) : e === "body" || e === "paragraph" ? m.push(ye("body")) : e === "bodySmall" ? m.push(ye("bodySmall")) : e === "bodyLarge" ? m.push(ye("bodyLarge")) : e === "caption" ? m.push(ye("caption")) : e === "label" ? m.push(ye("label")) : m.push(ye("body")), t && m.push("font-bold"), r && m.push("italic"), m.push(ki[o][i]), /* @__PURE__ */ n.jsx(p, E({ ref: c, className: j(...m, s) }, l));
|
|
5068
5068
|
}
|
|
5069
5069
|
const ut = pe(Ni);
|
|
5070
5070
|
const Hn = (...e) => e.filter((t, r, s) => !!t && t.trim() !== "" && s.indexOf(t) === r).join(" ").trim();
|
|
@@ -5093,7 +5093,7 @@ const Ci = (e) => {
|
|
|
5093
5093
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
5094
5094
|
return !0;
|
|
5095
5095
|
return !1;
|
|
5096
|
-
},
|
|
5096
|
+
}, Ei = Se({}), Ai = () => ue(Ei), Ii = pe(
|
|
5097
5097
|
(d, c) => {
|
|
5098
5098
|
var u = d, { color: e, size: t, strokeWidth: r, absoluteStrokeWidth: s, className: a = "", children: o, iconNode: i } = u, l = O(u, ["color", "size", "strokeWidth", "absoluteStrokeWidth", "className", "children", "iconNode"]);
|
|
5099
5099
|
var h, w, k;
|
|
@@ -5103,10 +5103,10 @@ const Ci = (e) => {
|
|
|
5103
5103
|
absoluteStrokeWidth: b = !1,
|
|
5104
5104
|
color: x = "currentColor",
|
|
5105
5105
|
className: v = ""
|
|
5106
|
-
} = (h =
|
|
5106
|
+
} = (h = Ai()) != null ? h : {}, g = (s != null ? s : b) ? Number(r != null ? r : p) * 24 / Number(t != null ? t : m) : r != null ? r : p;
|
|
5107
5107
|
return Jr(
|
|
5108
5108
|
"svg",
|
|
5109
|
-
|
|
5109
|
+
E(E(F(E({
|
|
5110
5110
|
ref: c
|
|
5111
5111
|
}, Vr), {
|
|
5112
5112
|
width: (w = t != null ? t : m) != null ? w : Vr.width,
|
|
@@ -5126,7 +5126,7 @@ const be = (e, t) => {
|
|
|
5126
5126
|
const r = pe(
|
|
5127
5127
|
(i, o) => {
|
|
5128
5128
|
var l = i, { className: s } = l, a = O(l, ["className"]);
|
|
5129
|
-
return Jr(Ii,
|
|
5129
|
+
return Jr(Ii, E({
|
|
5130
5130
|
ref: o,
|
|
5131
5131
|
iconNode: t,
|
|
5132
5132
|
className: Hn(
|
|
@@ -5148,7 +5148,7 @@ const Ti = [
|
|
|
5148
5148
|
const Di = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], es = be("check", Di);
|
|
5149
5149
|
const Ri = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Cr = be("chevron-down", Ri);
|
|
5150
5150
|
const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Qt = be("chevron-left", _i);
|
|
5151
|
-
const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
5151
|
+
const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Et = be("chevron-right", Li);
|
|
5152
5152
|
const Fi = [
|
|
5153
5153
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5154
5154
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
@@ -5323,9 +5323,9 @@ function jl(e) {
|
|
|
5323
5323
|
const l = Re.Children.toArray(o), c = l.find(Sl);
|
|
5324
5324
|
if (c) {
|
|
5325
5325
|
const u = c.props.children, m = l.map((p) => p === c ? Re.Children.count(u) > 1 ? Re.Children.only(null) : Re.isValidElement(u) ? u.props.children : null : p);
|
|
5326
|
-
return /* @__PURE__ */ n.jsx(t, F(
|
|
5326
|
+
return /* @__PURE__ */ n.jsx(t, F(E({}, i), { ref: a, children: Re.isValidElement(u) ? Re.cloneElement(u, void 0, m) : null }));
|
|
5327
5327
|
}
|
|
5328
|
-
return /* @__PURE__ */ n.jsx(t, F(
|
|
5328
|
+
return /* @__PURE__ */ n.jsx(t, F(E({}, i), { ref: a, children: o }));
|
|
5329
5329
|
});
|
|
5330
5330
|
return r.displayName = `${e}.Slot`, r;
|
|
5331
5331
|
}
|
|
@@ -5335,7 +5335,7 @@ function kl(e) {
|
|
|
5335
5335
|
const t = Re.forwardRef((r, s) => {
|
|
5336
5336
|
let i = r, { children: a } = i, o = O(i, ["children"]);
|
|
5337
5337
|
if (Un(a) && typeof jr == "function" && (a = jr(a._payload)), Re.isValidElement(a)) {
|
|
5338
|
-
const l =
|
|
5338
|
+
const l = El(a), c = Cl(o, a.props);
|
|
5339
5339
|
return a.type !== Re.Fragment && (c.ref = s ? vl(s, l) : l), Re.cloneElement(a, c);
|
|
5340
5340
|
}
|
|
5341
5341
|
return Re.Children.count(a) > 1 ? Re.Children.only(null) : null;
|
|
@@ -5353,22 +5353,22 @@ function Sl(e) {
|
|
|
5353
5353
|
return Re.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Gn;
|
|
5354
5354
|
}
|
|
5355
5355
|
function Cl(e, t) {
|
|
5356
|
-
const r =
|
|
5356
|
+
const r = E({}, t);
|
|
5357
5357
|
for (const s in t) {
|
|
5358
5358
|
const a = e[s], o = t[s];
|
|
5359
5359
|
/^on[A-Z]/.test(s) ? a && o ? r[s] = (...l) => {
|
|
5360
5360
|
const c = o(...l);
|
|
5361
5361
|
return a(...l), c;
|
|
5362
|
-
} : a && (r[s] = a) : s === "style" ? r[s] =
|
|
5362
|
+
} : a && (r[s] = a) : s === "style" ? r[s] = E(E({}, a), o) : s === "className" && (r[s] = [a, o].filter(Boolean).join(" "));
|
|
5363
5363
|
}
|
|
5364
|
-
return
|
|
5364
|
+
return E(E({}, e), r);
|
|
5365
5365
|
}
|
|
5366
|
-
function
|
|
5366
|
+
function El(e) {
|
|
5367
5367
|
var s, a;
|
|
5368
5368
|
let t = (s = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : s.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
5369
5369
|
return r ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
5370
5370
|
}
|
|
5371
|
-
const
|
|
5371
|
+
const Al = Me("motion-safe:animate-spin", {
|
|
5372
5372
|
variants: {
|
|
5373
5373
|
size: {
|
|
5374
5374
|
sm: "h-4 w-4",
|
|
@@ -5399,7 +5399,7 @@ const El = Me("motion-safe:animate-spin", {
|
|
|
5399
5399
|
]);
|
|
5400
5400
|
return /* @__PURE__ */ n.jsxs(
|
|
5401
5401
|
"div",
|
|
5402
|
-
F(
|
|
5402
|
+
F(E({
|
|
5403
5403
|
className: j("inline-flex", "items-center", a),
|
|
5404
5404
|
role: "status",
|
|
5405
5405
|
"aria-label": s || "Loading",
|
|
@@ -5409,7 +5409,7 @@ const El = Me("motion-safe:animate-spin", {
|
|
|
5409
5409
|
/* @__PURE__ */ n.jsx(
|
|
5410
5410
|
Bn,
|
|
5411
5411
|
{
|
|
5412
|
-
className: j(
|
|
5412
|
+
className: j(Al({ size: t, variant: r })),
|
|
5413
5413
|
"aria-hidden": "true"
|
|
5414
5414
|
}
|
|
5415
5415
|
),
|
|
@@ -5659,18 +5659,18 @@ const se = Le(
|
|
|
5659
5659
|
), I = V(
|
|
5660
5660
|
() => o || /* @__PURE__ */ n.jsx(Kn, { size: S, variant: M }),
|
|
5661
5661
|
[o, S, M]
|
|
5662
|
-
), _ = !d && (u === void 0 || u === "button") && !v.type ? "button" : void 0, D =
|
|
5662
|
+
), _ = !d && (u === void 0 || u === "button") && !v.type ? "button" : void 0, D = E(E({
|
|
5663
5663
|
className: y,
|
|
5664
5664
|
disabled: p || s,
|
|
5665
5665
|
"aria-busy": s,
|
|
5666
5666
|
"aria-label": N,
|
|
5667
5667
|
"aria-disabled": p || s
|
|
5668
5668
|
}, _ ? { type: _ } : {}), v);
|
|
5669
|
-
return d ? /* @__PURE__ */ n.jsxs(k, F(
|
|
5669
|
+
return d ? /* @__PURE__ */ n.jsxs(k, F(E({ ref: g }, D), { children: [
|
|
5670
5670
|
i && /* @__PURE__ */ n.jsx(xr, { position: "left", children: i }),
|
|
5671
5671
|
/* @__PURE__ */ n.jsx($l, { children: b }),
|
|
5672
5672
|
l && /* @__PURE__ */ n.jsx(xr, { position: "right", children: l })
|
|
5673
|
-
] })) : /* @__PURE__ */ n.jsx(k, F(
|
|
5673
|
+
] })) : /* @__PURE__ */ n.jsx(k, F(E({ ref: g }, D), { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5674
5674
|
I,
|
|
5675
5675
|
a && /* @__PURE__ */ n.jsx("span", { className: f("sm", "ml"), children: a }),
|
|
5676
5676
|
!a && b && /* @__PURE__ */ n.jsx("span", { className: `${f("sm", "ml")} opacity-0`, children: b })
|
|
@@ -5754,7 +5754,7 @@ const Tl = Le(function({
|
|
|
5754
5754
|
), S = V(
|
|
5755
5755
|
() => o ? `${N}-helper` : void 0,
|
|
5756
5756
|
[o, N]
|
|
5757
|
-
), [I, _] = W(!1), D = V(() => x === "password", [x]),
|
|
5757
|
+
), [I, _] = W(!1), D = V(() => x === "password", [x]), A = V(
|
|
5758
5758
|
() => D && I ? "text" : x,
|
|
5759
5759
|
[D, I, x]
|
|
5760
5760
|
), T = V(
|
|
@@ -5846,7 +5846,7 @@ const Tl = Le(function({
|
|
|
5846
5846
|
}
|
|
5847
5847
|
),
|
|
5848
5848
|
[de, B]
|
|
5849
|
-
),
|
|
5849
|
+
), J = V(
|
|
5850
5850
|
() => j(
|
|
5851
5851
|
L({ variant: l, size: i, state: T }),
|
|
5852
5852
|
// Icon padding - specific values for icon positioning.
|
|
@@ -5933,11 +5933,11 @@ const Tl = Le(function({
|
|
|
5933
5933
|
),
|
|
5934
5934
|
/* @__PURE__ */ n.jsx(
|
|
5935
5935
|
"input",
|
|
5936
|
-
|
|
5936
|
+
E({
|
|
5937
5937
|
id: N,
|
|
5938
5938
|
ref: w,
|
|
5939
|
-
type:
|
|
5940
|
-
className:
|
|
5939
|
+
type: A,
|
|
5940
|
+
className: J,
|
|
5941
5941
|
disabled: b,
|
|
5942
5942
|
value: v,
|
|
5943
5943
|
onChange: g,
|
|
@@ -6162,7 +6162,7 @@ const Dl = Me(
|
|
|
6162
6162
|
},
|
|
6163
6163
|
[a, m]
|
|
6164
6164
|
), N = V(() => {
|
|
6165
|
-
const M =
|
|
6165
|
+
const M = E({
|
|
6166
6166
|
className: j(
|
|
6167
6167
|
Dl({ variant: o, size: i }),
|
|
6168
6168
|
k,
|
|
@@ -6178,9 +6178,9 @@ const Dl = Me(
|
|
|
6178
6178
|
"data-active": g,
|
|
6179
6179
|
"data-disabled": a
|
|
6180
6180
|
}, p);
|
|
6181
|
-
return h && !l ? F(
|
|
6181
|
+
return h && !l ? F(E({}, M), {
|
|
6182
6182
|
href: a ? void 0 : t
|
|
6183
|
-
}) : F(
|
|
6183
|
+
}) : F(E({}, M), {
|
|
6184
6184
|
href: a ? void 0 : t
|
|
6185
6185
|
});
|
|
6186
6186
|
}, [
|
|
@@ -6198,7 +6198,7 @@ const Dl = Me(
|
|
|
6198
6198
|
l,
|
|
6199
6199
|
p
|
|
6200
6200
|
]);
|
|
6201
|
-
return /* @__PURE__ */ n.jsx(w, F(
|
|
6201
|
+
return /* @__PURE__ */ n.jsx(w, F(E({ ref: b }, N), { children: r }));
|
|
6202
6202
|
}
|
|
6203
6203
|
);
|
|
6204
6204
|
bs.displayName = "NavLink";
|
|
@@ -6369,7 +6369,7 @@ const Rl = Me(
|
|
|
6369
6369
|
}
|
|
6370
6370
|
return /* @__PURE__ */ n.jsx(
|
|
6371
6371
|
"span",
|
|
6372
|
-
F(
|
|
6372
|
+
F(E({
|
|
6373
6373
|
ref: c,
|
|
6374
6374
|
role: "status",
|
|
6375
6375
|
"aria-label": p,
|
|
@@ -6444,7 +6444,7 @@ const Ll = Le(function({
|
|
|
6444
6444
|
() => l ? `${h}-helper` : void 0,
|
|
6445
6445
|
[l, h]
|
|
6446
6446
|
), y = V(() => "focus:border-line-focus", []), $ = V(() => "focus:border-error", []), N = V(() => "focus:border-success", []), M = K(
|
|
6447
|
-
(
|
|
6447
|
+
(A) => A === "error" ? $.replace("focus:border-", "focus:ring-") : A === "success" ? N.replace("focus:border-", "focus:ring-") : y.replace("focus:border-", "focus:ring-"),
|
|
6448
6448
|
[$, N, y]
|
|
6449
6449
|
), S = V(
|
|
6450
6450
|
() => Me(
|
|
@@ -6513,7 +6513,7 @@ const Ll = Le(function({
|
|
|
6513
6513
|
a && /* @__PURE__ */ n.jsx("label", { htmlFor: h, className: D, children: a }),
|
|
6514
6514
|
/* @__PURE__ */ n.jsxs(
|
|
6515
6515
|
"select",
|
|
6516
|
-
F(
|
|
6516
|
+
F(E({
|
|
6517
6517
|
id: h,
|
|
6518
6518
|
ref: b,
|
|
6519
6519
|
className: _,
|
|
@@ -6524,7 +6524,7 @@ const Ll = Le(function({
|
|
|
6524
6524
|
}, p), {
|
|
6525
6525
|
children: [
|
|
6526
6526
|
s && /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, children: s }),
|
|
6527
|
-
r && r.length > 0 ? r.map((
|
|
6527
|
+
r && r.length > 0 ? r.map((A, T) => /* @__PURE__ */ n.jsx("optgroup", { label: A.label, children: (A.options || []).map((R) => /* @__PURE__ */ n.jsx(
|
|
6528
6528
|
"option",
|
|
6529
6529
|
{
|
|
6530
6530
|
value: R.value,
|
|
@@ -6532,14 +6532,14 @@ const Ll = Le(function({
|
|
|
6532
6532
|
children: R.label
|
|
6533
6533
|
},
|
|
6534
6534
|
R.value
|
|
6535
|
-
)) }, T)) : (t || []).map((
|
|
6535
|
+
)) }, T)) : (t || []).map((A) => /* @__PURE__ */ n.jsx(
|
|
6536
6536
|
"option",
|
|
6537
6537
|
{
|
|
6538
|
-
value:
|
|
6539
|
-
disabled:
|
|
6540
|
-
children:
|
|
6538
|
+
value: A.value,
|
|
6539
|
+
disabled: A.disabled,
|
|
6540
|
+
children: A.label
|
|
6541
6541
|
},
|
|
6542
|
-
|
|
6542
|
+
A.value
|
|
6543
6543
|
))
|
|
6544
6544
|
]
|
|
6545
6545
|
})
|
|
@@ -6612,11 +6612,11 @@ const Fl = Le(
|
|
|
6612
6612
|
() => k != null ? k : t ? `${b}-error` : void 0,
|
|
6613
6613
|
[k, t, b]
|
|
6614
6614
|
), $ = c["aria-label"], N = c["aria-labelledby"];
|
|
6615
|
-
|
|
6615
|
+
X(() => {
|
|
6616
6616
|
}, [o, $, N, b]);
|
|
6617
6617
|
const M = /* @__PURE__ */ n.jsx(
|
|
6618
6618
|
"textarea",
|
|
6619
|
-
|
|
6619
|
+
E({
|
|
6620
6620
|
ref: d,
|
|
6621
6621
|
id: b,
|
|
6622
6622
|
className: w,
|
|
@@ -6682,7 +6682,7 @@ const zl = j(
|
|
|
6682
6682
|
Pl[t],
|
|
6683
6683
|
r
|
|
6684
6684
|
);
|
|
6685
|
-
return /* @__PURE__ */ n.jsx("label", F(
|
|
6685
|
+
return /* @__PURE__ */ n.jsx("label", F(E({ ref: o, className: c }, a), { children: s }));
|
|
6686
6686
|
})
|
|
6687
6687
|
);
|
|
6688
6688
|
er.displayName = "Label";
|
|
@@ -6704,7 +6704,7 @@ function Ol(a) {
|
|
|
6704
6704
|
"items-center",
|
|
6705
6705
|
f("xs", "gap")
|
|
6706
6706
|
], l = j(...i, r);
|
|
6707
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
6707
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ role: "alert", id: t, className: l, "aria-live": "polite" }, s), { children: [
|
|
6708
6708
|
/* @__PURE__ */ n.jsx(ps, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
|
|
6709
6709
|
/* @__PURE__ */ n.jsx("span", { children: e })
|
|
6710
6710
|
] }));
|
|
@@ -6832,37 +6832,37 @@ const tr = pe(function(u, d) {
|
|
|
6832
6832
|
"preservePositioning"
|
|
6833
6833
|
]);
|
|
6834
6834
|
const [p, b] = W(!1), x = re(null), v = re(null), g = re(null), h = `tooltip-${je()}`, w = () => {
|
|
6835
|
-
const
|
|
6835
|
+
const A = setTimeout(() => {
|
|
6836
6836
|
b(!0);
|
|
6837
6837
|
}, a);
|
|
6838
|
-
x.current =
|
|
6838
|
+
x.current = A;
|
|
6839
6839
|
}, k = () => {
|
|
6840
6840
|
x.current && (clearTimeout(x.current), x.current = null), b(!1);
|
|
6841
6841
|
}, y = () => {
|
|
6842
6842
|
b(!0);
|
|
6843
6843
|
}, $ = () => {
|
|
6844
6844
|
b(!1);
|
|
6845
|
-
}, N = (
|
|
6845
|
+
}, N = (A) => {
|
|
6846
6846
|
var T;
|
|
6847
|
-
|
|
6847
|
+
A.key === "Escape" && (b(!1), (T = g.current) == null || T.blur());
|
|
6848
6848
|
};
|
|
6849
|
-
|
|
6849
|
+
X(() => () => {
|
|
6850
6850
|
x.current && (clearTimeout(x.current), x.current = null);
|
|
6851
|
-
}, []),
|
|
6851
|
+
}, []), X(() => {
|
|
6852
6852
|
if (!p) return;
|
|
6853
|
-
const
|
|
6853
|
+
const A = (T) => {
|
|
6854
6854
|
v.current && !v.current.contains(T.target) && g.current && !g.current.contains(T.target) && b(!1);
|
|
6855
6855
|
};
|
|
6856
|
-
return document.addEventListener("mousedown",
|
|
6857
|
-
document.removeEventListener("mousedown",
|
|
6856
|
+
return document.addEventListener("mousedown", A), () => {
|
|
6857
|
+
document.removeEventListener("mousedown", A);
|
|
6858
6858
|
};
|
|
6859
6859
|
}, [p]);
|
|
6860
|
-
const M = (
|
|
6860
|
+
const M = (A) => ({
|
|
6861
6861
|
top: "border-t-surface-inverse",
|
|
6862
6862
|
bottom: "border-b-surface-inverse",
|
|
6863
6863
|
left: "border-l-surface-inverse",
|
|
6864
6864
|
right: "border-r-surface-inverse"
|
|
6865
|
-
})[
|
|
6865
|
+
})[A], S = Me(
|
|
6866
6866
|
j(
|
|
6867
6867
|
"absolute",
|
|
6868
6868
|
$e("tooltip"),
|
|
@@ -6958,8 +6958,8 @@ const tr = pe(function(u, d) {
|
|
|
6958
6958
|
}
|
|
6959
6959
|
}
|
|
6960
6960
|
), _ = It(r) ? (() => {
|
|
6961
|
-
const
|
|
6962
|
-
return rr(
|
|
6961
|
+
const A = r, T = A.props, R = T.ref;
|
|
6962
|
+
return rr(A, {
|
|
6963
6963
|
ref: zn(g, R),
|
|
6964
6964
|
"aria-describedby": p ? h : T["aria-describedby"],
|
|
6965
6965
|
onMouseEnter: (P) => {
|
|
@@ -6984,7 +6984,7 @@ const tr = pe(function(u, d) {
|
|
|
6984
6984
|
}
|
|
6985
6985
|
});
|
|
6986
6986
|
})() : r, D = j(l ? "static" : "relative", "inline-block", o);
|
|
6987
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
6987
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ ref: d, className: D }, c), { children: [
|
|
6988
6988
|
_,
|
|
6989
6989
|
p && /* @__PURE__ */ n.jsxs(
|
|
6990
6990
|
"div",
|
|
@@ -7033,7 +7033,7 @@ function Hl(l) {
|
|
|
7033
7033
|
const b = o || `Loading ${e} content`;
|
|
7034
7034
|
return e === "text" && s > 1 ? /* @__PURE__ */ n.jsx(
|
|
7035
7035
|
"div",
|
|
7036
|
-
F(
|
|
7036
|
+
F(E({
|
|
7037
7037
|
className: f("sm", "space-y"),
|
|
7038
7038
|
role: "status",
|
|
7039
7039
|
"aria-busy": "true",
|
|
@@ -7051,7 +7051,7 @@ function Hl(l) {
|
|
|
7051
7051
|
})
|
|
7052
7052
|
) : /* @__PURE__ */ n.jsx(
|
|
7053
7053
|
"div",
|
|
7054
|
-
|
|
7054
|
+
E({
|
|
7055
7055
|
className: m,
|
|
7056
7056
|
style: p,
|
|
7057
7057
|
role: "status",
|
|
@@ -7074,7 +7074,7 @@ function Bl({
|
|
|
7074
7074
|
}
|
|
7075
7075
|
return e;
|
|
7076
7076
|
}, [e, s]), [o, i] = W(a), l = t !== void 0 ? t : o;
|
|
7077
|
-
|
|
7077
|
+
X(() => {
|
|
7078
7078
|
s && typeof window != "undefined" && t === void 0 && localStorage.setItem(s, String(o));
|
|
7079
7079
|
}, [o, s, t]);
|
|
7080
7080
|
const c = K(
|
|
@@ -7120,9 +7120,9 @@ const qn = pe(
|
|
|
7120
7120
|
onOpenChange: o,
|
|
7121
7121
|
storageKey: c
|
|
7122
7122
|
}), g = re(null), [h, w] = W(x ? "auto" : 0);
|
|
7123
|
-
|
|
7123
|
+
X(() => {
|
|
7124
7124
|
g.current && w(x ? g.current.scrollHeight : 0);
|
|
7125
|
-
}, [x, t]),
|
|
7125
|
+
}, [x, t]), X(() => {
|
|
7126
7126
|
if (!x || !g.current) return;
|
|
7127
7127
|
const y = new ResizeObserver(() => {
|
|
7128
7128
|
g.current && x && w(g.current.scrollHeight);
|
|
@@ -7132,7 +7132,7 @@ const qn = pe(
|
|
|
7132
7132
|
};
|
|
7133
7133
|
}, [x]);
|
|
7134
7134
|
const k = `collapsible-content-${je()}`;
|
|
7135
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
7135
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ ref: m, className: d }, u), { children: [
|
|
7136
7136
|
r !== void 0 && /* @__PURE__ */ n.jsx(
|
|
7137
7137
|
"button",
|
|
7138
7138
|
{
|
|
@@ -7237,13 +7237,13 @@ const xs = Le(
|
|
|
7237
7237
|
},
|
|
7238
7238
|
[u, c]
|
|
7239
7239
|
);
|
|
7240
|
-
return
|
|
7240
|
+
return X(() => {
|
|
7241
7241
|
N.current && (N.current.indeterminate = c);
|
|
7242
7242
|
}, [c]), /* @__PURE__ */ n.jsxs("div", { className: j("flex", "flex-col", f("sm", "my")), children: [
|
|
7243
7243
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7244
7244
|
/* @__PURE__ */ n.jsx(
|
|
7245
7245
|
"input",
|
|
7246
|
-
|
|
7246
|
+
E({
|
|
7247
7247
|
type: "checkbox",
|
|
7248
7248
|
id: x,
|
|
7249
7249
|
ref: M,
|
|
@@ -7331,7 +7331,7 @@ const Ul = Le(
|
|
|
7331
7331
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
7332
7332
|
/* @__PURE__ */ n.jsx(
|
|
7333
7333
|
"input",
|
|
7334
|
-
|
|
7334
|
+
E({
|
|
7335
7335
|
type: "radio",
|
|
7336
7336
|
id: b,
|
|
7337
7337
|
ref: d,
|
|
@@ -7461,7 +7461,7 @@ const Gl = Me("w-full", {
|
|
|
7461
7461
|
"className"
|
|
7462
7462
|
]);
|
|
7463
7463
|
const b = t === void 0, x = b ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), v = l || (b ? "Loading in progress" : `Progress: ${x == null ? void 0 : x.toFixed(0)}%`);
|
|
7464
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
7464
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ ref: u, className: j("w-full", c) }, d), { children: [
|
|
7465
7465
|
o && (i || !b) && /* @__PURE__ */ n.jsxs(
|
|
7466
7466
|
"div",
|
|
7467
7467
|
{
|
|
@@ -7652,13 +7652,13 @@ const Kl = Le(
|
|
|
7652
7652
|
"aria-describedby": M,
|
|
7653
7653
|
disabled: l,
|
|
7654
7654
|
onClick: K(
|
|
7655
|
-
(
|
|
7655
|
+
(A) => {
|
|
7656
7656
|
if (l) return;
|
|
7657
7657
|
const T = !k;
|
|
7658
7658
|
if (g || w(T), u) {
|
|
7659
|
-
const R = F(
|
|
7660
|
-
target: F(
|
|
7661
|
-
currentTarget: F(
|
|
7659
|
+
const R = F(E({}, A), {
|
|
7660
|
+
target: F(E({}, A.target), { checked: T }),
|
|
7661
|
+
currentTarget: F(E({}, A.currentTarget), { checked: T })
|
|
7662
7662
|
});
|
|
7663
7663
|
u(R);
|
|
7664
7664
|
}
|
|
@@ -7666,14 +7666,14 @@ const Kl = Le(
|
|
|
7666
7666
|
[l, u, k, g]
|
|
7667
7667
|
),
|
|
7668
7668
|
onKeyDown: K(
|
|
7669
|
-
(
|
|
7670
|
-
if (l ||
|
|
7671
|
-
|
|
7669
|
+
(A) => {
|
|
7670
|
+
if (l || A.key !== "Enter" && A.key !== " ") return;
|
|
7671
|
+
A.preventDefault();
|
|
7672
7672
|
const T = !k;
|
|
7673
7673
|
if (g || w(T), u) {
|
|
7674
|
-
const R = F(
|
|
7675
|
-
target: F(
|
|
7676
|
-
currentTarget: F(
|
|
7674
|
+
const R = F(E({}, A), {
|
|
7675
|
+
target: F(E({}, A.target), { checked: T }),
|
|
7676
|
+
currentTarget: F(E({}, A.currentTarget), { checked: T })
|
|
7677
7677
|
});
|
|
7678
7678
|
u(R);
|
|
7679
7679
|
}
|
|
@@ -7685,7 +7685,7 @@ const Kl = Le(
|
|
|
7685
7685
|
),
|
|
7686
7686
|
/* @__PURE__ */ n.jsx(
|
|
7687
7687
|
"input",
|
|
7688
|
-
|
|
7688
|
+
E({
|
|
7689
7689
|
ref: b,
|
|
7690
7690
|
type: "checkbox",
|
|
7691
7691
|
id: $,
|
|
@@ -7758,14 +7758,14 @@ const ql = {
|
|
|
7758
7758
|
);
|
|
7759
7759
|
return t === "vertical" ? /* @__PURE__ */ n.jsx(
|
|
7760
7760
|
"div",
|
|
7761
|
-
|
|
7761
|
+
E({
|
|
7762
7762
|
className: l,
|
|
7763
7763
|
role: "separator",
|
|
7764
7764
|
"aria-orientation": "vertical"
|
|
7765
7765
|
}, a)
|
|
7766
7766
|
) : /* @__PURE__ */ n.jsx(
|
|
7767
7767
|
"hr",
|
|
7768
|
-
|
|
7768
|
+
E({
|
|
7769
7769
|
className: l,
|
|
7770
7770
|
role: "separator",
|
|
7771
7771
|
"aria-orientation": "horizontal"
|
|
@@ -7807,7 +7807,7 @@ const Jl = pe(function(h, g) {
|
|
|
7807
7807
|
]);
|
|
7808
7808
|
const k = re(null), y = je(), $ = je(), N = je(), [M, S] = W(
|
|
7809
7809
|
r || (i === "range" ? [s, a] : s)
|
|
7810
|
-
), [I, _] = W(!1), [D,
|
|
7810
|
+
), [I, _] = W(!1), [D, A] = W(null), T = t !== void 0, R = T ? t : M, P = (H) => (H - s) / (a - s) * 100, U = (H) => {
|
|
7811
7811
|
if (!k.current) return s;
|
|
7812
7812
|
const Q = k.current.getBoundingClientRect(), he = Math.max(
|
|
7813
7813
|
0,
|
|
@@ -7816,13 +7816,13 @@ const Jl = pe(function(h, g) {
|
|
|
7816
7816
|
return Math.round(fe / o) * o;
|
|
7817
7817
|
}, Z = (H, Q = "min") => {
|
|
7818
7818
|
if (c) return;
|
|
7819
|
-
H.preventDefault(), _(!0),
|
|
7819
|
+
H.preventDefault(), _(!0), A(Q);
|
|
7820
7820
|
const he = (we) => {
|
|
7821
7821
|
if (!k.current) return;
|
|
7822
7822
|
const Ce = U(we.clientX);
|
|
7823
7823
|
te(Ce, Q);
|
|
7824
7824
|
}, fe = () => {
|
|
7825
|
-
_(!1),
|
|
7825
|
+
_(!1), A(null), document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", fe);
|
|
7826
7826
|
};
|
|
7827
7827
|
document.addEventListener("mousemove", he), document.addEventListener("mouseup", fe);
|
|
7828
7828
|
}, te = (H, Q = "min") => {
|
|
@@ -7853,7 +7853,7 @@ const Jl = pe(function(h, g) {
|
|
|
7853
7853
|
size: "md",
|
|
7854
7854
|
disabled: !1
|
|
7855
7855
|
}
|
|
7856
|
-
}),
|
|
7856
|
+
}), J = Me(
|
|
7857
7857
|
j(
|
|
7858
7858
|
"absolute",
|
|
7859
7859
|
"bg-surface-brand",
|
|
@@ -7886,7 +7886,7 @@ const Jl = pe(function(h, g) {
|
|
|
7886
7886
|
}
|
|
7887
7887
|
}
|
|
7888
7888
|
), ne = typeof R == "number" ? R : R[0], ee = Array.isArray(R) ? R[0] : s, ae = Array.isArray(R) ? R[1] : ne, ce = P(ee), z = P(ae);
|
|
7889
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
7889
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ ref: g, className: j("w-full", x) }, v), { children: [
|
|
7890
7890
|
/* @__PURE__ */ n.jsxs(
|
|
7891
7891
|
"label",
|
|
7892
7892
|
{
|
|
@@ -7974,7 +7974,7 @@ const Jl = pe(function(h, g) {
|
|
|
7974
7974
|
"div",
|
|
7975
7975
|
{
|
|
7976
7976
|
className: j(
|
|
7977
|
-
|
|
7977
|
+
J({ size: l, active: D === "min" })
|
|
7978
7978
|
),
|
|
7979
7979
|
style: { left: `${ce}%` },
|
|
7980
7980
|
onMouseDown: (H) => Z(H, "min"),
|
|
@@ -7989,7 +7989,7 @@ const Jl = pe(function(h, g) {
|
|
|
7989
7989
|
"div",
|
|
7990
7990
|
{
|
|
7991
7991
|
className: j(
|
|
7992
|
-
|
|
7992
|
+
J({ size: l, active: D === "max" })
|
|
7993
7993
|
),
|
|
7994
7994
|
style: { left: `${z}%` },
|
|
7995
7995
|
onMouseDown: (H) => Z(H, "max"),
|
|
@@ -8003,7 +8003,7 @@ const Jl = pe(function(h, g) {
|
|
|
8003
8003
|
] }) : /* @__PURE__ */ n.jsx(
|
|
8004
8004
|
"div",
|
|
8005
8005
|
{
|
|
8006
|
-
className: j(
|
|
8006
|
+
className: j(J({ size: l, active: I })),
|
|
8007
8007
|
style: { left: `${z}%` },
|
|
8008
8008
|
onMouseDown: (H) => Z(H)
|
|
8009
8009
|
}
|
|
@@ -8252,7 +8252,7 @@ const rs = pe(function(u, d) {
|
|
|
8252
8252
|
}, w = !t || p, k = typeof s == "string" ? s.toUpperCase().slice(0, 2) : s, y = i || r || "User avatar";
|
|
8253
8253
|
return /* @__PURE__ */ n.jsxs(
|
|
8254
8254
|
"div",
|
|
8255
|
-
F(
|
|
8255
|
+
F(E({
|
|
8256
8256
|
ref: d,
|
|
8257
8257
|
className: j(
|
|
8258
8258
|
"relative",
|
|
@@ -8337,7 +8337,7 @@ function _u(l) {
|
|
|
8337
8337
|
}, u = Zt.toArray(e).filter(Boolean), m = u.slice(0, t), p = u.length - t;
|
|
8338
8338
|
return /* @__PURE__ */ n.jsxs(
|
|
8339
8339
|
"div",
|
|
8340
|
-
F(
|
|
8340
|
+
F(E({
|
|
8341
8341
|
className: j("flex", "items-center", d[a], o),
|
|
8342
8342
|
role: "group",
|
|
8343
8343
|
"aria-label": `${u.length} avatars`
|
|
@@ -8384,7 +8384,7 @@ function Ql(s) {
|
|
|
8384
8384
|
var a = s, { children: e, className: t } = a, r = O(a, ["children", "className"]);
|
|
8385
8385
|
return /* @__PURE__ */ n.jsx(
|
|
8386
8386
|
"div",
|
|
8387
|
-
F(
|
|
8387
|
+
F(E({
|
|
8388
8388
|
className: j(
|
|
8389
8389
|
"grid items-start",
|
|
8390
8390
|
f("1.5", "gap"),
|
|
@@ -8414,7 +8414,7 @@ function Zl(i) {
|
|
|
8414
8414
|
]);
|
|
8415
8415
|
return /* @__PURE__ */ n.jsxs(
|
|
8416
8416
|
s,
|
|
8417
|
-
F(
|
|
8417
|
+
F(E({
|
|
8418
8418
|
className: j(
|
|
8419
8419
|
"text-base font-semibold text-fg-primary",
|
|
8420
8420
|
"flex items-center",
|
|
@@ -8438,7 +8438,7 @@ function ec(s) {
|
|
|
8438
8438
|
"children",
|
|
8439
8439
|
"className"
|
|
8440
8440
|
]);
|
|
8441
|
-
return /* @__PURE__ */ n.jsx("p", F(
|
|
8441
|
+
return /* @__PURE__ */ n.jsx("p", F(E({ className: j("text-sm text-fg-secondary", t) }, r), { children: e }));
|
|
8442
8442
|
}
|
|
8443
8443
|
function tc(s) {
|
|
8444
8444
|
var a = s, {
|
|
@@ -8450,7 +8450,7 @@ function tc(s) {
|
|
|
8450
8450
|
]);
|
|
8451
8451
|
return /* @__PURE__ */ n.jsx(
|
|
8452
8452
|
"div",
|
|
8453
|
-
F(
|
|
8453
|
+
F(E({
|
|
8454
8454
|
"data-card-actions": "",
|
|
8455
8455
|
className: j(
|
|
8456
8456
|
"flex items-center self-start",
|
|
@@ -8464,7 +8464,7 @@ function tc(s) {
|
|
|
8464
8464
|
}
|
|
8465
8465
|
function rc(s) {
|
|
8466
8466
|
var a = s, { children: e, className: t } = a, r = O(a, ["children", "className"]);
|
|
8467
|
-
return /* @__PURE__ */ n.jsx("div", F(
|
|
8467
|
+
return /* @__PURE__ */ n.jsx("div", F(E({ className: j(t) }, r), { children: e }));
|
|
8468
8468
|
}
|
|
8469
8469
|
function sc(d) {
|
|
8470
8470
|
var u = d, {
|
|
@@ -8520,7 +8520,7 @@ function sc(d) {
|
|
|
8520
8520
|
padding: "medium"
|
|
8521
8521
|
}
|
|
8522
8522
|
}
|
|
8523
|
-
), p = s !== void 0, b = p ? "button" : void 0, x = p ? 0 : void 0, v = j(m({ variant: e, padding: t }), r), h =
|
|
8523
|
+
), p = s !== void 0, b = p ? "button" : void 0, x = p ? 0 : void 0, v = j(m({ variant: e, padding: t }), r), h = E({
|
|
8524
8524
|
className: v,
|
|
8525
8525
|
role: b,
|
|
8526
8526
|
tabIndex: x,
|
|
@@ -8531,16 +8531,16 @@ function sc(d) {
|
|
|
8531
8531
|
"aria-label": a,
|
|
8532
8532
|
"aria-labelledby": o
|
|
8533
8533
|
}, c);
|
|
8534
|
-
return i ? /* @__PURE__ */ n.jsx("section", F(
|
|
8534
|
+
return i ? /* @__PURE__ */ n.jsx("section", F(E({}, h), { children: l })) : /* @__PURE__ */ n.jsx("div", F(E({}, h), { children: l }));
|
|
8535
8535
|
}
|
|
8536
8536
|
const Zn = Le(sc);
|
|
8537
8537
|
Zn.displayName = "Card";
|
|
8538
|
-
const
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8538
|
+
const At = Zn;
|
|
8539
|
+
At.Header = Ql;
|
|
8540
|
+
At.Title = Zl;
|
|
8541
|
+
At.Subtitle = ec;
|
|
8542
|
+
At.Actions = tc;
|
|
8543
|
+
At.Body = rc;
|
|
8544
8544
|
function ea(e) {
|
|
8545
8545
|
const t = Se(void 0);
|
|
8546
8546
|
t.displayName = e.displayName;
|
|
@@ -8561,15 +8561,15 @@ function ea(e) {
|
|
|
8561
8561
|
}
|
|
8562
8562
|
return { Context: t, Provider: r, useContextRequired: s, useContextOptional: a };
|
|
8563
8563
|
}
|
|
8564
|
-
const
|
|
8564
|
+
const Er = ea({
|
|
8565
8565
|
displayName: "FormContext",
|
|
8566
8566
|
errorMessage: "useFormContext must be used within a Form component with react-hook-form integration"
|
|
8567
|
-
}), Lu =
|
|
8567
|
+
}), Lu = Er.Context, nc = Er.Provider;
|
|
8568
8568
|
function ta() {
|
|
8569
|
-
return
|
|
8569
|
+
return Er.useContextRequired();
|
|
8570
8570
|
}
|
|
8571
8571
|
function Fu() {
|
|
8572
|
-
return
|
|
8572
|
+
return Er.useContextOptional();
|
|
8573
8573
|
}
|
|
8574
8574
|
function ac({
|
|
8575
8575
|
form: e,
|
|
@@ -8627,7 +8627,7 @@ function zu(l) {
|
|
|
8627
8627
|
);
|
|
8628
8628
|
return /* @__PURE__ */ n.jsx(ac, { form: h, loading: r, children: /* @__PURE__ */ n.jsxs(
|
|
8629
8629
|
"form",
|
|
8630
|
-
F(
|
|
8630
|
+
F(E({
|
|
8631
8631
|
className: d,
|
|
8632
8632
|
onSubmit: $,
|
|
8633
8633
|
noValidate: !0
|
|
@@ -8675,7 +8675,7 @@ function zu(l) {
|
|
|
8675
8675
|
};
|
|
8676
8676
|
return /* @__PURE__ */ n.jsxs(
|
|
8677
8677
|
"form",
|
|
8678
|
-
F(
|
|
8678
|
+
F(E({
|
|
8679
8679
|
className: d,
|
|
8680
8680
|
onSubmit: x,
|
|
8681
8681
|
noValidate: !0
|
|
@@ -8836,8 +8836,8 @@ const fc = () => me.useContext(na), mc = gs ? me.useLayoutEffect : me.useEffect;
|
|
|
8836
8836
|
var Ze = (e) => typeof e == "string";
|
|
8837
8837
|
const pc = me.createContext(null);
|
|
8838
8838
|
pc.displayName = "HookFormContext";
|
|
8839
|
-
var bc = (e, t, r, s, a) => t ? F(
|
|
8840
|
-
types: F(
|
|
8839
|
+
var bc = (e, t, r, s, a) => t ? F(E({}, r[e]), {
|
|
8840
|
+
types: F(E({}, r[e] && r[e].types ? r[e].types : {}), {
|
|
8841
8841
|
[s]: a || !0
|
|
8842
8842
|
})
|
|
8843
8843
|
}) : {}, hc = (e) => Array.isArray(e) ? e.filter(Boolean) : [], et = (e) => Array.isArray(e) ? e : [e], Nr = (e) => nt(e) && !Object.keys(e).length, xc = (e) => e.type === "file", gc = (e) => {
|
|
@@ -8917,17 +8917,17 @@ var zt = (e) => nt(e) && !oa(e) ? e : {
|
|
|
8917
8917
|
a && k.reportValidity && (k.setCustomValidity(sa(I) ? "" : I || ""), k.reportValidity());
|
|
8918
8918
|
}, $ = {};
|
|
8919
8919
|
vc(i), oc(i);
|
|
8920
|
-
const N = (g || xc(i)) && rt(i.value) && rt(w) || gc(i) && i.value === "" || w === "" || Array.isArray(w) && !w.length, M = bc.bind(null, v, s, $), S = (I, _, D,
|
|
8920
|
+
const N = (g || xc(i)) && rt(i.value) && rt(w) || gc(i) && i.value === "" || w === "" || Array.isArray(w) && !w.length, M = bc.bind(null, v, s, $), S = (I, _, D, A = Qe.maxLength, T = Qe.minLength) => {
|
|
8921
8921
|
const R = I ? _ : D;
|
|
8922
|
-
$[v] =
|
|
8923
|
-
type: I ?
|
|
8922
|
+
$[v] = E({
|
|
8923
|
+
type: I ? A : T,
|
|
8924
8924
|
message: R,
|
|
8925
8925
|
ref: i
|
|
8926
|
-
}, M(I ?
|
|
8926
|
+
}, M(I ? A : T, R));
|
|
8927
8927
|
};
|
|
8928
8928
|
if (!Array.isArray(w) || !w.length) {
|
|
8929
8929
|
const { value: I, message: _ } = Ze(c) ? { value: !!c, message: c } : zt(c);
|
|
8930
|
-
if (I && ($[v] =
|
|
8930
|
+
if (I && ($[v] = E({
|
|
8931
8931
|
type: Qe.required,
|
|
8932
8932
|
message: _,
|
|
8933
8933
|
ref: k
|
|
@@ -8936,25 +8936,25 @@ var zt = (e) => nt(e) && !oa(e) ? e : {
|
|
|
8936
8936
|
}
|
|
8937
8937
|
if (!N && (!Ge(m) || !Ge(p))) {
|
|
8938
8938
|
let I, _;
|
|
8939
|
-
const D = zt(p),
|
|
8939
|
+
const D = zt(p), A = zt(m);
|
|
8940
8940
|
if (!Ge(w) && !isNaN(w)) {
|
|
8941
8941
|
const T = i.valueAsNumber || w && +w;
|
|
8942
|
-
Ge(D.value) || (I = T > D.value), Ge(
|
|
8942
|
+
Ge(D.value) || (I = T > D.value), Ge(A.value) || (_ = T < A.value);
|
|
8943
8943
|
} else {
|
|
8944
8944
|
const T = i.valueAsDate || new Date(w), R = (Z) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Z), P = i.type == "time", U = i.type == "week";
|
|
8945
|
-
Ze(D.value) && w && (I = P ? R(w) > R(D.value) : U ? w > D.value : T > new Date(D.value)), Ze(
|
|
8945
|
+
Ze(D.value) && w && (I = P ? R(w) > R(D.value) : U ? w > D.value : T > new Date(D.value)), Ze(A.value) && w && (_ = P ? R(w) < R(A.value) : U ? w < A.value : T < new Date(A.value));
|
|
8946
8946
|
}
|
|
8947
|
-
if ((I || _) && (S(!!I, D.message,
|
|
8947
|
+
if ((I || _) && (S(!!I, D.message, A.message, Qe.max, Qe.min), !s))
|
|
8948
8948
|
return y($[v].message), $;
|
|
8949
8949
|
}
|
|
8950
8950
|
if ((d || u) && !N && (Ze(w) || Array.isArray(w))) {
|
|
8951
|
-
const I = zt(d), _ = zt(u), D = !Ge(I.value) && w.length > +I.value,
|
|
8952
|
-
if ((D ||
|
|
8951
|
+
const I = zt(d), _ = zt(u), D = !Ge(I.value) && w.length > +I.value, A = !Ge(_.value) && w.length < +_.value;
|
|
8952
|
+
if ((D || A) && (S(D, I.message, _.message), !s))
|
|
8953
8953
|
return y($[v].message), $;
|
|
8954
8954
|
}
|
|
8955
8955
|
if (b && !N && Ze(w)) {
|
|
8956
8956
|
const { value: I, message: _ } = zt(b);
|
|
8957
|
-
if (oa(I) && !w.match(I) && ($[v] =
|
|
8957
|
+
if (oa(I) && !w.match(I) && ($[v] = E({
|
|
8958
8958
|
type: Qe.pattern,
|
|
8959
8959
|
message: _,
|
|
8960
8960
|
ref: i
|
|
@@ -8964,7 +8964,7 @@ var zt = (e) => nt(e) && !oa(e) ? e : {
|
|
|
8964
8964
|
if (x) {
|
|
8965
8965
|
if (uc(x)) {
|
|
8966
8966
|
const I = yield x(w, r), _ = un(I, k);
|
|
8967
|
-
if (_ && ($[v] =
|
|
8967
|
+
if (_ && ($[v] = E(E({}, _), M(Qe.validate, _.message)), !s))
|
|
8968
8968
|
return y(_.message), $;
|
|
8969
8969
|
} else if (nt(x)) {
|
|
8970
8970
|
let I = {};
|
|
@@ -8972,9 +8972,9 @@ var zt = (e) => nt(e) && !oa(e) ? e : {
|
|
|
8972
8972
|
if (!Nr(I) && !s)
|
|
8973
8973
|
break;
|
|
8974
8974
|
const D = un(yield x[_](w, r), k, _);
|
|
8975
|
-
D && (I =
|
|
8975
|
+
D && (I = E(E({}, D), M(_, D.message)), y(D.message), s && ($[v] = I));
|
|
8976
8976
|
}
|
|
8977
|
-
if (!Nr(I) && ($[v] =
|
|
8977
|
+
if (!Nr(I) && ($[v] = E({
|
|
8978
8978
|
ref: k
|
|
8979
8979
|
}, I), !s))
|
|
8980
8980
|
return $;
|
|
@@ -9071,7 +9071,7 @@ function Sc(e) {
|
|
|
9071
9071
|
d.current = $.map(lt), m([...$]), c([...$]), r._setFieldArray(s, [...$], (N) => N, {}, !0, !1);
|
|
9072
9072
|
};
|
|
9073
9073
|
return me.useEffect(() => {
|
|
9074
|
-
r._state.action = !1, jc(s, r._names) && r._subjects.state.next(
|
|
9074
|
+
r._state.action = !1, jc(s, r._names) && r._subjects.state.next(E({}, r._formState));
|
|
9075
9075
|
const y = gr(r._options.mode);
|
|
9076
9076
|
if (u.current && (!y.isOnSubmit || r._formState.isSubmitted) && !gr(r._options.reValidateMode).isOnSubmit && !y.isOnBlur)
|
|
9077
9077
|
if (r._options.resolver)
|
|
@@ -9113,7 +9113,7 @@ function Sc(e) {
|
|
|
9113
9113
|
insert: me.useCallback(v, [m, s, r]),
|
|
9114
9114
|
update: me.useCallback(w, [m, s, r]),
|
|
9115
9115
|
replace: me.useCallback(k, [m, s, r]),
|
|
9116
|
-
fields: me.useMemo(() => l.map((y, $) => F(
|
|
9116
|
+
fields: me.useMemo(() => l.map((y, $) => F(E({}, y), {
|
|
9117
9117
|
[a]: d.current[$] || lt()
|
|
9118
9118
|
})), [l, a])
|
|
9119
9119
|
};
|
|
@@ -9124,7 +9124,7 @@ function Ou(e) {
|
|
|
9124
9124
|
throw new Error(
|
|
9125
9125
|
"useFormFieldArray must be used within a Form component with react-hook-form integration"
|
|
9126
9126
|
);
|
|
9127
|
-
return Sc(F(
|
|
9127
|
+
return Sc(F(E({}, e), {
|
|
9128
9128
|
control: t.control
|
|
9129
9129
|
}));
|
|
9130
9130
|
}
|
|
@@ -9144,7 +9144,7 @@ function Cc(a) {
|
|
|
9144
9144
|
f("sm", "space-x"),
|
|
9145
9145
|
le("bodySmall")
|
|
9146
9146
|
], l = j(...i, r);
|
|
9147
|
-
return /* @__PURE__ */ n.jsx("nav", F(
|
|
9147
|
+
return /* @__PURE__ */ n.jsx("nav", F(E({ "aria-label": "Breadcrumb", className: l }, s), { children: /* @__PURE__ */ n.jsx(
|
|
9148
9148
|
"ol",
|
|
9149
9149
|
{
|
|
9150
9150
|
className: j("flex", "items-center", f("sm", "space-x")),
|
|
@@ -9198,7 +9198,7 @@ function Cc(a) {
|
|
|
9198
9198
|
}
|
|
9199
9199
|
) }));
|
|
9200
9200
|
}
|
|
9201
|
-
function
|
|
9201
|
+
function Ec(c) {
|
|
9202
9202
|
var d = c, {
|
|
9203
9203
|
currentPage: e,
|
|
9204
9204
|
totalPages: t,
|
|
@@ -9250,7 +9250,7 @@ function Ac(c) {
|
|
|
9250
9250
|
f("md", "py"),
|
|
9251
9251
|
i
|
|
9252
9252
|
);
|
|
9253
|
-
return /* @__PURE__ */ n.jsxs("nav", F(
|
|
9253
|
+
return /* @__PURE__ */ n.jsxs("nav", F(E({ className: g, "aria-label": "Pagination" }, l), { children: [
|
|
9254
9254
|
/* @__PURE__ */ n.jsxs("div", { className: j("flex", "items-center", f("sm", "gap")), children: [
|
|
9255
9255
|
/* @__PURE__ */ n.jsx(
|
|
9256
9256
|
se,
|
|
@@ -9323,7 +9323,7 @@ function Ac(c) {
|
|
|
9323
9323
|
)
|
|
9324
9324
|
] }));
|
|
9325
9325
|
}
|
|
9326
|
-
function
|
|
9326
|
+
function Ac(c) {
|
|
9327
9327
|
var d = c, {
|
|
9328
9328
|
title: e,
|
|
9329
9329
|
message: t,
|
|
@@ -9353,7 +9353,7 @@ function Ec(c) {
|
|
|
9353
9353
|
), m = o === "withAction" || r && s, p = o === "withIllustration" || a;
|
|
9354
9354
|
return /* @__PURE__ */ n.jsxs(
|
|
9355
9355
|
"div",
|
|
9356
|
-
F(
|
|
9356
|
+
F(E({
|
|
9357
9357
|
className: u,
|
|
9358
9358
|
role: "status",
|
|
9359
9359
|
"aria-live": "polite",
|
|
@@ -9410,46 +9410,46 @@ function Ic(l) {
|
|
|
9410
9410
|
"aria-label"
|
|
9411
9411
|
]);
|
|
9412
9412
|
const [d, u] = W(!1), [m, p] = W(-1), b = re(null), x = re(null), v = re(null), g = re([]), h = je(), w = `dropdown-menu-${h}`, k = `dropdown-trigger-${h}`;
|
|
9413
|
-
|
|
9413
|
+
X(() => {
|
|
9414
9414
|
const I = (_) => {
|
|
9415
9415
|
b.current && !b.current.contains(_.target) && (u(!1), p(-1));
|
|
9416
9416
|
};
|
|
9417
9417
|
return d && (document.addEventListener("mousedown", I), setTimeout(() => {
|
|
9418
9418
|
var D;
|
|
9419
|
-
const _ = t.findIndex((
|
|
9419
|
+
const _ = t.findIndex((A) => !A.disabled);
|
|
9420
9420
|
_ >= 0 && (p(_), (D = g.current[_]) == null || D.focus());
|
|
9421
9421
|
}, 0)), () => {
|
|
9422
9422
|
document.removeEventListener("mousedown", I);
|
|
9423
9423
|
};
|
|
9424
|
-
}, [d, t]),
|
|
9424
|
+
}, [d, t]), X(() => {
|
|
9425
9425
|
if (!d) return;
|
|
9426
9426
|
const I = (D) => {
|
|
9427
9427
|
var R, P, U, Z;
|
|
9428
|
-
const
|
|
9428
|
+
const A = t.map((te, de) => ({ item: te, index: de })).filter(({ item: te }) => !te.disabled), T = A.findIndex(
|
|
9429
9429
|
({ index: te }) => te === m
|
|
9430
9430
|
);
|
|
9431
9431
|
switch (D.key) {
|
|
9432
9432
|
case "ArrowDown": {
|
|
9433
9433
|
D.preventDefault();
|
|
9434
|
-
const te = T <
|
|
9434
|
+
const te = T < A.length - 1 ? A[T + 1].index : A[0].index;
|
|
9435
9435
|
p(te), (R = g.current[te]) == null || R.focus();
|
|
9436
9436
|
break;
|
|
9437
9437
|
}
|
|
9438
9438
|
case "ArrowUp": {
|
|
9439
9439
|
D.preventDefault();
|
|
9440
|
-
const te = T > 0 ?
|
|
9440
|
+
const te = T > 0 ? A[T - 1].index : A[A.length - 1].index;
|
|
9441
9441
|
p(te), (P = g.current[te]) == null || P.focus();
|
|
9442
9442
|
break;
|
|
9443
9443
|
}
|
|
9444
9444
|
case "Home": {
|
|
9445
9445
|
D.preventDefault();
|
|
9446
|
-
const te =
|
|
9446
|
+
const te = A[0].index;
|
|
9447
9447
|
p(te), (U = g.current[te]) == null || U.focus();
|
|
9448
9448
|
break;
|
|
9449
9449
|
}
|
|
9450
9450
|
case "End": {
|
|
9451
9451
|
D.preventDefault();
|
|
9452
|
-
const te =
|
|
9452
|
+
const te = A[A.length - 1].index;
|
|
9453
9453
|
p(te), (Z = g.current[te]) == null || Z.focus();
|
|
9454
9454
|
break;
|
|
9455
9455
|
}
|
|
@@ -9516,7 +9516,7 @@ function Ic(l) {
|
|
|
9516
9516
|
);
|
|
9517
9517
|
return /* @__PURE__ */ n.jsxs(
|
|
9518
9518
|
"div",
|
|
9519
|
-
F(
|
|
9519
|
+
F(E({
|
|
9520
9520
|
className: j("relative", "inline-block", a),
|
|
9521
9521
|
ref: b
|
|
9522
9522
|
}, i), {
|
|
@@ -9580,8 +9580,8 @@ function Ic(l) {
|
|
|
9580
9580
|
"button",
|
|
9581
9581
|
{
|
|
9582
9582
|
id: `${w}-item-${_}`,
|
|
9583
|
-
ref: (
|
|
9584
|
-
g.current[_] =
|
|
9583
|
+
ref: (A) => {
|
|
9584
|
+
g.current[_] = A;
|
|
9585
9585
|
},
|
|
9586
9586
|
type: "button",
|
|
9587
9587
|
className: D,
|
|
@@ -9690,7 +9690,7 @@ function ca(l) {
|
|
|
9690
9690
|
"className"
|
|
9691
9691
|
]);
|
|
9692
9692
|
const { selectedDate: d, selectedRange: u, mode: m, onDateChange: p } = la(), [b, x] = W(""), [v, g] = W(!1), h = re(null);
|
|
9693
|
-
|
|
9693
|
+
X(() => {
|
|
9694
9694
|
m === "single" && d ? x(Kt(d, t)) : m === "range" && u ? u.start && u.end ? x(
|
|
9695
9695
|
`${Kt(u.start, t)} - ${Kt(u.end, t)}`
|
|
9696
9696
|
) : u.start ? x(Kt(u.start, t)) : x("") : x("");
|
|
@@ -9710,7 +9710,7 @@ function ca(l) {
|
|
|
9710
9710
|
var $;
|
|
9711
9711
|
($ = h.current) == null || $.focus();
|
|
9712
9712
|
};
|
|
9713
|
-
return /* @__PURE__ */ n.jsx("div", F(
|
|
9713
|
+
return /* @__PURE__ */ n.jsx("div", F(E({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
9714
9714
|
ze,
|
|
9715
9715
|
{
|
|
9716
9716
|
ref: h,
|
|
@@ -9793,101 +9793,101 @@ function da(a) {
|
|
|
9793
9793
|
} = la(), [x, v] = W(
|
|
9794
9794
|
e || i || (l == null ? void 0 : l.start) || /* @__PURE__ */ new Date()
|
|
9795
9795
|
), g = re(null), [h, w] = W(() => {
|
|
9796
|
-
const
|
|
9797
|
-
return i && qt(i, T) ? i : qt(
|
|
9796
|
+
const A = /* @__PURE__ */ new Date(), T = e || i || (l == null ? void 0 : l.start) || A;
|
|
9797
|
+
return i && qt(i, T) ? i : qt(A, T) ? A : new Date(T.getFullYear(), T.getMonth(), 1);
|
|
9798
9798
|
});
|
|
9799
|
-
|
|
9799
|
+
X(() => {
|
|
9800
9800
|
e && v(e);
|
|
9801
|
-
}, [e]),
|
|
9801
|
+
}, [e]), X(() => {
|
|
9802
9802
|
if (!g.current) return;
|
|
9803
|
-
const
|
|
9803
|
+
const A = g.current.querySelector(
|
|
9804
9804
|
`[data-date="${h.toISOString()}"]`
|
|
9805
9805
|
);
|
|
9806
|
-
|
|
9806
|
+
A && A.focus();
|
|
9807
9807
|
}, [h]);
|
|
9808
9808
|
const k = (() => {
|
|
9809
9809
|
if (qt(h, x)) return h;
|
|
9810
|
-
const
|
|
9811
|
-
return qt(
|
|
9810
|
+
const A = /* @__PURE__ */ new Date();
|
|
9811
|
+
return qt(A, x) ? A : new Date(x.getFullYear(), x.getMonth(), 1);
|
|
9812
9812
|
})(), y = Tc(x), $ = Mc(x), N = [];
|
|
9813
|
-
for (let
|
|
9813
|
+
for (let A = 0; A < $; A++)
|
|
9814
9814
|
N.push(null);
|
|
9815
|
-
for (let
|
|
9815
|
+
for (let A = 1; A <= y; A++)
|
|
9816
9816
|
N.push(
|
|
9817
|
-
new Date(x.getFullYear(), x.getMonth(),
|
|
9817
|
+
new Date(x.getFullYear(), x.getMonth(), A)
|
|
9818
9818
|
);
|
|
9819
|
-
const M = (
|
|
9820
|
-
if (!bn(
|
|
9819
|
+
const M = (A) => {
|
|
9820
|
+
if (!bn(A, m, p, b)) {
|
|
9821
9821
|
if (c === "single")
|
|
9822
|
-
d(
|
|
9822
|
+
d(A);
|
|
9823
9823
|
else if (c === "range") {
|
|
9824
9824
|
const T = l || { start: null, end: null };
|
|
9825
|
-
!T.start || T.start && T.end ? u({ start:
|
|
9825
|
+
!T.start || T.start && T.end ? u({ start: A, end: null }) : T.start && !T.end && (A < T.start ? u({ start: A, end: T.start }) : u({ start: T.start, end: A }));
|
|
9826
9826
|
}
|
|
9827
9827
|
}
|
|
9828
9828
|
}, S = () => {
|
|
9829
|
-
const
|
|
9829
|
+
const A = new Date(
|
|
9830
9830
|
x.getFullYear(),
|
|
9831
9831
|
x.getMonth() - 1,
|
|
9832
9832
|
1
|
|
9833
9833
|
);
|
|
9834
|
-
v(
|
|
9834
|
+
v(A), t == null || t(A);
|
|
9835
9835
|
}, I = () => {
|
|
9836
|
-
const
|
|
9836
|
+
const A = new Date(
|
|
9837
9837
|
x.getFullYear(),
|
|
9838
9838
|
x.getMonth() + 1,
|
|
9839
9839
|
1
|
|
9840
9840
|
);
|
|
9841
|
-
v(
|
|
9842
|
-
}, _ = (
|
|
9841
|
+
v(A), t == null || t(A);
|
|
9842
|
+
}, _ = (A, T) => {
|
|
9843
9843
|
let R = null;
|
|
9844
|
-
switch (
|
|
9844
|
+
switch (A.key) {
|
|
9845
9845
|
case "ArrowLeft":
|
|
9846
|
-
|
|
9846
|
+
A.preventDefault(), R = new Date(
|
|
9847
9847
|
T.getFullYear(),
|
|
9848
9848
|
T.getMonth(),
|
|
9849
9849
|
T.getDate() - 1
|
|
9850
9850
|
);
|
|
9851
9851
|
break;
|
|
9852
9852
|
case "ArrowRight":
|
|
9853
|
-
|
|
9853
|
+
A.preventDefault(), R = new Date(
|
|
9854
9854
|
T.getFullYear(),
|
|
9855
9855
|
T.getMonth(),
|
|
9856
9856
|
T.getDate() + 1
|
|
9857
9857
|
);
|
|
9858
9858
|
break;
|
|
9859
9859
|
case "ArrowUp":
|
|
9860
|
-
|
|
9860
|
+
A.preventDefault(), R = new Date(
|
|
9861
9861
|
T.getFullYear(),
|
|
9862
9862
|
T.getMonth(),
|
|
9863
9863
|
T.getDate() - 7
|
|
9864
9864
|
);
|
|
9865
9865
|
break;
|
|
9866
9866
|
case "ArrowDown":
|
|
9867
|
-
|
|
9867
|
+
A.preventDefault(), R = new Date(
|
|
9868
9868
|
T.getFullYear(),
|
|
9869
9869
|
T.getMonth(),
|
|
9870
9870
|
T.getDate() + 7
|
|
9871
9871
|
);
|
|
9872
9872
|
break;
|
|
9873
9873
|
case "Home":
|
|
9874
|
-
|
|
9874
|
+
A.preventDefault(), R = new Date(T.getFullYear(), T.getMonth(), 1);
|
|
9875
9875
|
break;
|
|
9876
9876
|
case "End":
|
|
9877
|
-
|
|
9877
|
+
A.preventDefault(), R = new Date(T.getFullYear(), T.getMonth() + 1, 0);
|
|
9878
9878
|
break;
|
|
9879
9879
|
case "Enter":
|
|
9880
9880
|
case " ":
|
|
9881
|
-
|
|
9881
|
+
A.preventDefault(), M(T);
|
|
9882
9882
|
return;
|
|
9883
9883
|
}
|
|
9884
9884
|
R && (qt(R, x) || v(new Date(R.getFullYear(), R.getMonth(), 1)), w(R));
|
|
9885
9885
|
}, D = [];
|
|
9886
|
-
for (let
|
|
9887
|
-
D.push(N.slice(
|
|
9886
|
+
for (let A = 0; A < N.length; A += 7)
|
|
9887
|
+
D.push(N.slice(A, A + 7));
|
|
9888
9888
|
return /* @__PURE__ */ n.jsxs(
|
|
9889
9889
|
"div",
|
|
9890
|
-
F(
|
|
9890
|
+
F(E({
|
|
9891
9891
|
ref: g,
|
|
9892
9892
|
className: `${f("base", "p")} ${r}`
|
|
9893
9893
|
}, s), {
|
|
@@ -9919,7 +9919,7 @@ function da(a) {
|
|
|
9919
9919
|
size: "sm",
|
|
9920
9920
|
onClick: I,
|
|
9921
9921
|
"aria-label": "Next month",
|
|
9922
|
-
children: /* @__PURE__ */ n.jsx(
|
|
9922
|
+
children: /* @__PURE__ */ n.jsx(Et, { className: "h-4 w-4" })
|
|
9923
9923
|
}
|
|
9924
9924
|
)
|
|
9925
9925
|
]
|
|
@@ -9931,23 +9931,23 @@ function da(a) {
|
|
|
9931
9931
|
{
|
|
9932
9932
|
role: "row",
|
|
9933
9933
|
className: `grid grid-cols-7 ${f("xs", "gap")} ${f("sm", "mb")}`,
|
|
9934
|
-
children: Rc.map((
|
|
9934
|
+
children: Rc.map((A) => /* @__PURE__ */ n.jsx(
|
|
9935
9935
|
"div",
|
|
9936
9936
|
{
|
|
9937
9937
|
role: "columnheader",
|
|
9938
9938
|
className: `text-center text-xs font-medium text-fg-tertiary ${f("xs", "py")}`,
|
|
9939
|
-
children:
|
|
9939
|
+
children: A
|
|
9940
9940
|
},
|
|
9941
|
-
|
|
9941
|
+
A
|
|
9942
9942
|
))
|
|
9943
9943
|
}
|
|
9944
9944
|
),
|
|
9945
|
-
D.map((
|
|
9945
|
+
D.map((A, T) => /* @__PURE__ */ n.jsx(
|
|
9946
9946
|
"div",
|
|
9947
9947
|
{
|
|
9948
9948
|
role: "row",
|
|
9949
9949
|
className: `grid grid-cols-7 ${f("xs", "gap")}`,
|
|
9950
|
-
children:
|
|
9950
|
+
children: A.map((R, P) => {
|
|
9951
9951
|
if (!R)
|
|
9952
9952
|
return /* @__PURE__ */ n.jsx(
|
|
9953
9953
|
"div",
|
|
@@ -9971,7 +9971,7 @@ function da(a) {
|
|
|
9971
9971
|
"data-date": R.toISOString(),
|
|
9972
9972
|
tabIndex: L ? 0 : -1,
|
|
9973
9973
|
onClick: () => M(R),
|
|
9974
|
-
onKeyDown: (
|
|
9974
|
+
onKeyDown: (J) => _(J, R),
|
|
9975
9975
|
className: `
|
|
9976
9976
|
aspect-square
|
|
9977
9977
|
text-sm
|
|
@@ -9998,7 +9998,7 @@ function da(a) {
|
|
|
9998
9998
|
})
|
|
9999
9999
|
);
|
|
10000
10000
|
}
|
|
10001
|
-
function
|
|
10001
|
+
function Ar({
|
|
10002
10002
|
children: e,
|
|
10003
10003
|
mode: t = "single",
|
|
10004
10004
|
value: r,
|
|
@@ -10014,7 +10014,7 @@ function Er({
|
|
|
10014
10014
|
className: p = ""
|
|
10015
10015
|
}) {
|
|
10016
10016
|
const [b, x] = W(!1), v = re(null), g = re(null);
|
|
10017
|
-
return
|
|
10017
|
+
return X(() => {
|
|
10018
10018
|
if (!b) return;
|
|
10019
10019
|
const h = (w) => {
|
|
10020
10020
|
var N, M, S, I;
|
|
@@ -10022,7 +10022,7 @@ function Er({
|
|
|
10022
10022
|
!y && !$ && x(!1);
|
|
10023
10023
|
};
|
|
10024
10024
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
10025
|
-
}, [b]),
|
|
10025
|
+
}, [b]), X(() => {
|
|
10026
10026
|
if (!b) return;
|
|
10027
10027
|
const h = (w) => {
|
|
10028
10028
|
w.key === "Escape" && x(!1);
|
|
@@ -10072,7 +10072,7 @@ function ua({
|
|
|
10072
10072
|
popupRef: r
|
|
10073
10073
|
}) {
|
|
10074
10074
|
const s = re(null), a = r || s, [o, i] = W(null);
|
|
10075
|
-
if (
|
|
10075
|
+
if (X(() => {
|
|
10076
10076
|
if (t != null && t.current) {
|
|
10077
10077
|
const c = t.current.getBoundingClientRect();
|
|
10078
10078
|
i({
|
|
@@ -10105,10 +10105,10 @@ function ua({
|
|
|
10105
10105
|
);
|
|
10106
10106
|
return typeof window != "undefined" ? st(l, document.body) : l;
|
|
10107
10107
|
}
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
const Vu =
|
|
10108
|
+
Ar.Input = ca;
|
|
10109
|
+
Ar.Calendar = da;
|
|
10110
|
+
Ar.Popup = ua;
|
|
10111
|
+
const Vu = Ar, ws = Se(void 0);
|
|
10112
10112
|
function js() {
|
|
10113
10113
|
const e = ue(ws);
|
|
10114
10114
|
if (e === void 0)
|
|
@@ -10155,7 +10155,7 @@ function Fc(o) {
|
|
|
10155
10155
|
]);
|
|
10156
10156
|
var p;
|
|
10157
10157
|
const { orientation: l } = js(), c = (p = s != null ? s : l) != null ? p : "horizontal", d = re(null);
|
|
10158
|
-
|
|
10158
|
+
X(() => {
|
|
10159
10159
|
const b = d.current;
|
|
10160
10160
|
if (!b) return;
|
|
10161
10161
|
const x = (v) => {
|
|
@@ -10176,7 +10176,7 @@ function Fc(o) {
|
|
|
10176
10176
|
const u = r === "compact" && c === "vertical" ? "flex" : "inline-flex", m = j(c === "vertical" ? "flex-col" : "flex-row", f("xs", "gap"));
|
|
10177
10177
|
return /* @__PURE__ */ n.jsx(
|
|
10178
10178
|
"div",
|
|
10179
|
-
F(
|
|
10179
|
+
F(E({
|
|
10180
10180
|
ref: d,
|
|
10181
10181
|
role: "tablist",
|
|
10182
10182
|
"aria-orientation": c,
|
|
@@ -10230,7 +10230,7 @@ function zc(l) {
|
|
|
10230
10230
|
};
|
|
10231
10231
|
return /* @__PURE__ */ n.jsx(
|
|
10232
10232
|
"button",
|
|
10233
|
-
F(
|
|
10233
|
+
F(E({
|
|
10234
10234
|
type: "button",
|
|
10235
10235
|
role: "tab",
|
|
10236
10236
|
"aria-selected": b,
|
|
@@ -10279,7 +10279,7 @@ function Pc(o) {
|
|
|
10279
10279
|
const { value: l } = js(), c = l === e;
|
|
10280
10280
|
return !c && !r ? null : /* @__PURE__ */ n.jsx(
|
|
10281
10281
|
"div",
|
|
10282
|
-
F(
|
|
10282
|
+
F(E({
|
|
10283
10283
|
role: "tabpanel",
|
|
10284
10284
|
id: `tabpanel-${e}`,
|
|
10285
10285
|
"aria-labelledby": `tab-${e}`,
|
|
@@ -10296,7 +10296,7 @@ function Pc(o) {
|
|
|
10296
10296
|
}
|
|
10297
10297
|
function Ir(r) {
|
|
10298
10298
|
var s = r, { children: e } = s, t = O(s, ["children"]);
|
|
10299
|
-
return /* @__PURE__ */ n.jsx(Lc, F(
|
|
10299
|
+
return /* @__PURE__ */ n.jsx(Lc, F(E({}, t), { children: e }));
|
|
10300
10300
|
}
|
|
10301
10301
|
Ir.List = Fc;
|
|
10302
10302
|
Ir.Trigger = zc;
|
|
@@ -10346,7 +10346,7 @@ const Hu = Ir, ks = pe(
|
|
|
10346
10346
|
};
|
|
10347
10347
|
return /* @__PURE__ */ n.jsx("div", { className: j("relative", d), children: /* @__PURE__ */ n.jsx(
|
|
10348
10348
|
ze,
|
|
10349
|
-
F(
|
|
10349
|
+
F(E({
|
|
10350
10350
|
ref: m
|
|
10351
10351
|
}, u), {
|
|
10352
10352
|
type: "search",
|
|
@@ -10421,7 +10421,7 @@ const Ns = pe(
|
|
|
10421
10421
|
"aria-labelledby": p
|
|
10422
10422
|
}, b) {
|
|
10423
10423
|
const [x, v] = W({ top: 0, left: 0, width: 0 });
|
|
10424
|
-
|
|
10424
|
+
X(() => {
|
|
10425
10425
|
if (i.current) {
|
|
10426
10426
|
const h = i.current.getBoundingClientRect();
|
|
10427
10427
|
v({
|
|
@@ -10534,9 +10534,9 @@ const Oc = pe(
|
|
|
10534
10534
|
}, k) {
|
|
10535
10535
|
const y = je(), $ = w != null ? w : y, [N, M] = W(
|
|
10536
10536
|
typeof s == "string" ? s : ""
|
|
10537
|
-
), [S, I] = W(!1), [_, D] = W(-1), [
|
|
10538
|
-
(z) => z.label.toLowerCase().includes(
|
|
10539
|
-
) : t,
|
|
10537
|
+
), [S, I] = W(!1), [_, D] = W(-1), [A, T] = W(""), R = re(null), P = re(null), U = re(null), Z = re(null), te = r !== void 0, de = te ? r : N, L = A.trim() ? m ? m(t, A) : t.filter(
|
|
10538
|
+
(z) => z.label.toLowerCase().includes(A.toLowerCase())
|
|
10539
|
+
) : t, J = L.length > 0, ne = (z) => {
|
|
10540
10540
|
const H = z.target.value;
|
|
10541
10541
|
T(H), te || M(H), a == null || a(H), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
|
|
10542
10542
|
I(!0), D(-1);
|
|
@@ -10568,13 +10568,13 @@ const Oc = pe(
|
|
|
10568
10568
|
break;
|
|
10569
10569
|
}
|
|
10570
10570
|
};
|
|
10571
|
-
|
|
10571
|
+
X(() => {
|
|
10572
10572
|
if (!S) return;
|
|
10573
10573
|
const z = (H) => {
|
|
10574
10574
|
R.current && !R.current.contains(H.target) && (I(!1), D(-1));
|
|
10575
10575
|
};
|
|
10576
10576
|
return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
|
|
10577
|
-
}, [S]),
|
|
10577
|
+
}, [S]), X(() => {
|
|
10578
10578
|
if (_ >= 0 && U.current) {
|
|
10579
10579
|
const z = U.current.querySelectorAll('[role="option"]');
|
|
10580
10580
|
z[_] && typeof z[_].scrollIntoView == "function" && z[_].scrollIntoView({
|
|
@@ -10582,15 +10582,15 @@ const Oc = pe(
|
|
|
10582
10582
|
behavior: "smooth"
|
|
10583
10583
|
});
|
|
10584
10584
|
}
|
|
10585
|
-
}, [_]),
|
|
10585
|
+
}, [_]), X(() => {
|
|
10586
10586
|
if (de) {
|
|
10587
10587
|
const z = t.find((H) => H.value === de);
|
|
10588
10588
|
T(z ? z.label : de);
|
|
10589
10589
|
} else
|
|
10590
10590
|
T("");
|
|
10591
|
-
}, [de, t]),
|
|
10591
|
+
}, [de, t]), X(() => {
|
|
10592
10592
|
}, [v, g, h, $]);
|
|
10593
|
-
const ce = S && (
|
|
10593
|
+
const ce = S && (J || l || d);
|
|
10594
10594
|
return /* @__PURE__ */ n.jsxs("div", { ref: R, className: `relative ${p}`, children: [
|
|
10595
10595
|
/* @__PURE__ */ n.jsx(
|
|
10596
10596
|
ze,
|
|
@@ -10600,7 +10600,7 @@ const Oc = pe(
|
|
|
10600
10600
|
label: v,
|
|
10601
10601
|
"aria-label": g,
|
|
10602
10602
|
"aria-labelledby": h,
|
|
10603
|
-
value:
|
|
10603
|
+
value: A,
|
|
10604
10604
|
onChange: ne,
|
|
10605
10605
|
onKeyDown: ae,
|
|
10606
10606
|
onFocus: () => I(!0),
|
|
@@ -10652,7 +10652,7 @@ const Vc = pe(
|
|
|
10652
10652
|
size: x = "md",
|
|
10653
10653
|
label: v
|
|
10654
10654
|
}, g) {
|
|
10655
|
-
const h = je(), [w, k] = W(s), [y, $] = W(!1), [N, M] = W(-1), [S, I] = W(""), _ = re(null), D = re(null),
|
|
10655
|
+
const h = je(), [w, k] = W(s), [y, $] = W(!1), [N, M] = W(-1), [S, I] = W(""), _ = re(null), D = re(null), A = re(null), T = r !== void 0, R = T ? r : w, P = t.filter(
|
|
10656
10656
|
(z) => R.includes(z.value)
|
|
10657
10657
|
), Z = (() => {
|
|
10658
10658
|
let z = t;
|
|
@@ -10670,7 +10670,7 @@ const Vc = pe(
|
|
|
10670
10670
|
}, L = () => {
|
|
10671
10671
|
const z = Z.filter((Q) => !Q.disabled).map((Q) => Q.value), H = [.../* @__PURE__ */ new Set([...R, ...z])];
|
|
10672
10672
|
T || k(H), a == null || a(H), o == null || o(t.filter((Q) => H.includes(Q.value)));
|
|
10673
|
-
},
|
|
10673
|
+
}, J = () => {
|
|
10674
10674
|
const z = Z.map((Q) => Q.value), H = R.filter(
|
|
10675
10675
|
(Q) => !z.includes(Q)
|
|
10676
10676
|
);
|
|
@@ -10702,7 +10702,7 @@ const Vc = pe(
|
|
|
10702
10702
|
break;
|
|
10703
10703
|
}
|
|
10704
10704
|
};
|
|
10705
|
-
|
|
10705
|
+
X(() => {
|
|
10706
10706
|
if (!y) return;
|
|
10707
10707
|
const z = (H) => {
|
|
10708
10708
|
_.current && !_.current.contains(H.target) && ($(!1), M(-1), I(""));
|
|
@@ -10782,9 +10782,9 @@ const Vc = pe(
|
|
|
10782
10782
|
ce && /* @__PURE__ */ n.jsx(
|
|
10783
10783
|
Ns,
|
|
10784
10784
|
{
|
|
10785
|
-
ref:
|
|
10785
|
+
ref: A,
|
|
10786
10786
|
"aria-label": v,
|
|
10787
|
-
options: Z.map((z) => F(
|
|
10787
|
+
options: Z.map((z) => F(E({}, z), {
|
|
10788
10788
|
icon: R.includes(z.value) ? /* @__PURE__ */ n.jsx(es, { className: j("h-4", "w-4", "text-fg-brand") }) : z.icon
|
|
10789
10789
|
})),
|
|
10790
10790
|
highlightedIndex: N,
|
|
@@ -10795,7 +10795,7 @@ const Vc = pe(
|
|
|
10795
10795
|
showSelectAll: m && Z.length > 0,
|
|
10796
10796
|
allSelected: ae,
|
|
10797
10797
|
onSelectAll: L,
|
|
10798
|
-
onDeselectAll:
|
|
10798
|
+
onDeselectAll: J
|
|
10799
10799
|
}
|
|
10800
10800
|
)
|
|
10801
10801
|
] });
|
|
@@ -10828,12 +10828,12 @@ function Bu({
|
|
|
10828
10828
|
}, N = () => {
|
|
10829
10829
|
o || g(null);
|
|
10830
10830
|
}, M = (S) => {
|
|
10831
|
-
const I = S + 1, _ = i && w >= I - 0.5 && w < I, D = w >= I,
|
|
10831
|
+
const I = S + 1, _ = i && w >= I - 0.5 && w < I, D = w >= I, A = j(
|
|
10832
10832
|
k[s],
|
|
10833
10833
|
Te("base"),
|
|
10834
10834
|
!o && "cursor-pointer",
|
|
10835
10835
|
D || _ ? "text-fg-warning" : "text-fg-disabled"
|
|
10836
|
-
), T = m || /* @__PURE__ */ n.jsx(Ft, { className:
|
|
10836
|
+
), T = m || /* @__PURE__ */ n.jsx(Ft, { className: A, fill: D ? "currentColor" : "none" }), R = p || /* @__PURE__ */ n.jsx(Ft, { className: A, fill: "none" });
|
|
10837
10837
|
return /* @__PURE__ */ n.jsx(
|
|
10838
10838
|
"span",
|
|
10839
10839
|
{
|
|
@@ -10853,11 +10853,11 @@ function Bu({
|
|
|
10853
10853
|
{
|
|
10854
10854
|
className: "absolute inset-0 overflow-hidden",
|
|
10855
10855
|
style: { width: "50%" },
|
|
10856
|
-
children: a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className:
|
|
10856
|
+
children: a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className: A, fill: "currentColor" }) : T
|
|
10857
10857
|
}
|
|
10858
10858
|
),
|
|
10859
|
-
a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className:
|
|
10860
|
-
] }) : D ? a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className:
|
|
10859
|
+
a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className: A, fill: "none" }) : R
|
|
10860
|
+
] }) : D ? a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className: A, fill: "currentColor" }) : T : a === "filled" ? /* @__PURE__ */ n.jsx(Ft, { className: A, fill: "none" }) : R
|
|
10861
10861
|
},
|
|
10862
10862
|
S
|
|
10863
10863
|
);
|
|
@@ -10916,11 +10916,11 @@ function Uu({
|
|
|
10916
10916
|
}) {
|
|
10917
10917
|
const [p, b] = W([]), [x, v] = W(!1), g = re(null), h = (D) => {
|
|
10918
10918
|
if (D === 0) return "0 Bytes";
|
|
10919
|
-
const
|
|
10920
|
-
return Math.round(D / Math.pow(
|
|
10919
|
+
const A = 1024, T = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(D) / Math.log(A));
|
|
10920
|
+
return Math.round(D / Math.pow(A, R) * 100) / 100 + " " + T[R];
|
|
10921
10921
|
}, w = (D) => r && D.size > r ? `File size exceeds ${h(r)}` : null, k = (D) => {
|
|
10922
|
-
const
|
|
10923
|
-
return
|
|
10922
|
+
const A = Array.from(D), T = [];
|
|
10923
|
+
return A.forEach((R) => {
|
|
10924
10924
|
const P = w(R), U = `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`, Z = {
|
|
10925
10925
|
file: R,
|
|
10926
10926
|
id: U,
|
|
@@ -10933,8 +10933,8 @@ function Uu({
|
|
|
10933
10933
|
b(
|
|
10934
10934
|
(B) => B.map(
|
|
10935
10935
|
(L) => {
|
|
10936
|
-
var
|
|
10937
|
-
return L.id === U ? F(
|
|
10936
|
+
var J;
|
|
10937
|
+
return L.id === U ? F(E({}, L), { preview: (J = de.target) == null ? void 0 : J.result }) : L;
|
|
10938
10938
|
}
|
|
10939
10939
|
)
|
|
10940
10940
|
);
|
|
@@ -10943,13 +10943,13 @@ function Uu({
|
|
|
10943
10943
|
T.push(Z);
|
|
10944
10944
|
}), T;
|
|
10945
10945
|
}, y = (D) => {
|
|
10946
|
-
const
|
|
10946
|
+
const A = t ? [...p, ...D] : D, T = s ? A.slice(0, s) : A;
|
|
10947
10947
|
b(T), a == null || a(T);
|
|
10948
10948
|
}, $ = (D) => {
|
|
10949
10949
|
if (D.preventDefault(), v(!1), c) return;
|
|
10950
|
-
const
|
|
10951
|
-
if (
|
|
10952
|
-
const T = k(
|
|
10950
|
+
const A = D.dataTransfer.files;
|
|
10951
|
+
if (A.length > 0) {
|
|
10952
|
+
const T = k(A);
|
|
10953
10953
|
y(T);
|
|
10954
10954
|
}
|
|
10955
10955
|
}, N = (D) => {
|
|
@@ -10958,13 +10958,13 @@ function Uu({
|
|
|
10958
10958
|
D.preventDefault(), v(!1);
|
|
10959
10959
|
}, S = (D) => {
|
|
10960
10960
|
if (D.target.files && D.target.files.length > 0) {
|
|
10961
|
-
const
|
|
10962
|
-
y(
|
|
10961
|
+
const A = k(D.target.files);
|
|
10962
|
+
y(A);
|
|
10963
10963
|
}
|
|
10964
10964
|
g.current && (g.current.value = "");
|
|
10965
10965
|
}, I = (D) => {
|
|
10966
|
-
const
|
|
10967
|
-
b(
|
|
10966
|
+
const A = p.filter((T) => T.id !== D);
|
|
10967
|
+
b(A), a == null || a(A), o == null || o(D);
|
|
10968
10968
|
}, _ = () => {
|
|
10969
10969
|
var D;
|
|
10970
10970
|
c || (D = g.current) == null || D.click();
|
|
@@ -11199,8 +11199,8 @@ function Uu({
|
|
|
11199
11199
|
{
|
|
11200
11200
|
variant: "ghost",
|
|
11201
11201
|
size: "sm",
|
|
11202
|
-
onClick: (
|
|
11203
|
-
|
|
11202
|
+
onClick: (A) => {
|
|
11203
|
+
A.stopPropagation(), I(D.id);
|
|
11204
11204
|
},
|
|
11205
11205
|
className: `h-auto ${f("xs", "p")}`,
|
|
11206
11206
|
"aria-label": `Remove ${D.file.name}`,
|
|
@@ -11234,22 +11234,22 @@ function ma({
|
|
|
11234
11234
|
Sr($);
|
|
11235
11235
|
const N = K(() => {
|
|
11236
11236
|
if (!v.current || !g.current) return;
|
|
11237
|
-
const _ = v.current.getBoundingClientRect(), D = g.current.getBoundingClientRect(),
|
|
11237
|
+
const _ = v.current.getBoundingClientRect(), D = g.current.getBoundingClientRect(), A = window.scrollY, T = window.scrollX;
|
|
11238
11238
|
let R = 0, P = 0;
|
|
11239
|
-
o.startsWith("top") ? (R = _.top +
|
|
11239
|
+
o.startsWith("top") ? (R = _.top + A - D.height - 8, o === "top-start" ? P = _.left + T : o === "top-end" ? P = _.right + T - D.width : P = _.left + T + (_.width - D.width) / 2) : o.startsWith("bottom") ? (R = _.bottom + A + 8, o === "bottom-start" ? P = _.left + T : o === "bottom-end" ? P = _.right + T - D.width : P = _.left + T + (_.width - D.width) / 2) : o.startsWith("left") ? (P = _.left + T - D.width - 8, o === "left-start" ? R = _.top + A : o === "left-end" ? R = _.bottom + A - D.height : R = _.top + A + (_.height - D.height) / 2) : o.startsWith("right") && (P = _.right + T + 8, o === "right-start" ? R = _.top + A : o === "right-end" ? R = _.bottom + A - D.height : R = _.top + A + (_.height - D.height) / 2);
|
|
11240
11240
|
const U = 8;
|
|
11241
11241
|
R = Math.max(
|
|
11242
11242
|
U,
|
|
11243
11243
|
Math.min(
|
|
11244
11244
|
R,
|
|
11245
|
-
window.innerHeight +
|
|
11245
|
+
window.innerHeight + A - D.height - U
|
|
11246
11246
|
)
|
|
11247
11247
|
), P = Math.max(
|
|
11248
11248
|
U,
|
|
11249
11249
|
Math.min(P, window.innerWidth + T - D.width - U)
|
|
11250
11250
|
), w({ top: R, left: P });
|
|
11251
11251
|
}, [o]);
|
|
11252
|
-
|
|
11252
|
+
X(() => {
|
|
11253
11253
|
if ($) {
|
|
11254
11254
|
N();
|
|
11255
11255
|
const _ = () => N(), D = () => N();
|
|
@@ -11257,7 +11257,7 @@ function ma({
|
|
|
11257
11257
|
window.removeEventListener("resize", _), window.removeEventListener("scroll", D, !0);
|
|
11258
11258
|
};
|
|
11259
11259
|
}
|
|
11260
|
-
}, [$, o, N]),
|
|
11260
|
+
}, [$, o, N]), X(() => {
|
|
11261
11261
|
$ && g.current && setTimeout(N, 0);
|
|
11262
11262
|
}, [$, N]);
|
|
11263
11263
|
const M = K(
|
|
@@ -11268,14 +11268,14 @@ function ma({
|
|
|
11268
11268
|
), S = K(() => {
|
|
11269
11269
|
M(!1);
|
|
11270
11270
|
}, [M]);
|
|
11271
|
-
|
|
11271
|
+
X(() => {
|
|
11272
11272
|
if ($ && d) {
|
|
11273
11273
|
const _ = (D) => {
|
|
11274
11274
|
D.key === "Escape" && S();
|
|
11275
11275
|
};
|
|
11276
11276
|
return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
|
|
11277
11277
|
}
|
|
11278
|
-
}, [$, d, S]),
|
|
11278
|
+
}, [$, d, S]), X(() => {
|
|
11279
11279
|
if ($ && c) {
|
|
11280
11280
|
const _ = (D) => {
|
|
11281
11281
|
g.current && v.current && !g.current.contains(D.target) && !v.current.contains(D.target) && S();
|
|
@@ -11404,7 +11404,7 @@ function Yu({
|
|
|
11404
11404
|
return `${String(U === 0 ? 12 : U > 12 ? U - 12 : U).padStart(2, "0")}:${String(R).padStart(2, "0")} ${P || "AM"}`;
|
|
11405
11405
|
}
|
|
11406
11406
|
};
|
|
11407
|
-
|
|
11407
|
+
X(() => {
|
|
11408
11408
|
if (w) {
|
|
11409
11409
|
const T = k(w);
|
|
11410
11410
|
p(T.hours), x(T.minutes), g(T.amPm);
|
|
@@ -11451,7 +11451,7 @@ function Yu({
|
|
|
11451
11451
|
N((b + 1) % 60);
|
|
11452
11452
|
}, D = () => {
|
|
11453
11453
|
N(b === 0 ? 59 : b - 1);
|
|
11454
|
-
},
|
|
11454
|
+
}, A = /* @__PURE__ */ n.jsx("div", { className: `${f("base", "p")} min-w-48`, children: /* @__PURE__ */ n.jsxs(
|
|
11455
11455
|
"div",
|
|
11456
11456
|
{
|
|
11457
11457
|
className: `flex items-center justify-center ${f("base", "gap")}`,
|
|
@@ -11569,7 +11569,7 @@ function Yu({
|
|
|
11569
11569
|
placement: "bottom-start",
|
|
11570
11570
|
showCloseButton: !0,
|
|
11571
11571
|
title: "Select Time",
|
|
11572
|
-
children:
|
|
11572
|
+
children: A
|
|
11573
11573
|
}
|
|
11574
11574
|
) });
|
|
11575
11575
|
}
|
|
@@ -11595,7 +11595,7 @@ function Gu({
|
|
|
11595
11595
|
const _ = I.toString(16);
|
|
11596
11596
|
return _.length === 1 ? "0" + _ : _;
|
|
11597
11597
|
}).join("");
|
|
11598
|
-
|
|
11598
|
+
X(() => {
|
|
11599
11599
|
if (x) {
|
|
11600
11600
|
const N = v(x);
|
|
11601
11601
|
p(N);
|
|
@@ -11605,7 +11605,7 @@ function Gu({
|
|
|
11605
11605
|
const M = N.target.value;
|
|
11606
11606
|
(/^#[0-9A-F]{6}$/i.test(M) || M === "") && (b || u(M), s == null || s(M), M && p(v(M)));
|
|
11607
11607
|
}, w = (N, M) => {
|
|
11608
|
-
const S = F(
|
|
11608
|
+
const S = F(E({}, m), { [N]: Math.max(0, Math.min(255, M)) });
|
|
11609
11609
|
p(S);
|
|
11610
11610
|
const I = g(S.r, S.g, S.b);
|
|
11611
11611
|
b || u(I), s == null || s(I);
|
|
@@ -11821,7 +11821,7 @@ function ba(e) {
|
|
|
11821
11821
|
);
|
|
11822
11822
|
}
|
|
11823
11823
|
function $s(e, t) {
|
|
11824
|
-
|
|
11824
|
+
X(() => {
|
|
11825
11825
|
if (!t) return;
|
|
11826
11826
|
function r(s) {
|
|
11827
11827
|
if (s.key !== "Tab") return;
|
|
@@ -11845,7 +11845,7 @@ function $s(e, t) {
|
|
|
11845
11845
|
}, [t, e]);
|
|
11846
11846
|
}
|
|
11847
11847
|
function Ss(e, t) {
|
|
11848
|
-
|
|
11848
|
+
X(() => {
|
|
11849
11849
|
if (!t) return;
|
|
11850
11850
|
const r = setTimeout(() => {
|
|
11851
11851
|
const s = e.current;
|
|
@@ -11876,19 +11876,19 @@ function ha({
|
|
|
11876
11876
|
closeOnOverlayClick: p,
|
|
11877
11877
|
closeOnEscape: b
|
|
11878
11878
|
} = Hc(), x = re(null);
|
|
11879
|
-
if (Sr(c), $s(x, c), Ss(x, c),
|
|
11879
|
+
if (Sr(c), $s(x, c), Ss(x, c), X(() => {
|
|
11880
11880
|
if (c && b) {
|
|
11881
11881
|
const w = (k) => {
|
|
11882
11882
|
k.key === "Escape" && d();
|
|
11883
11883
|
};
|
|
11884
11884
|
return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
|
|
11885
11885
|
}
|
|
11886
|
-
}, [c, b, d]),
|
|
11886
|
+
}, [c, b, d]), X(() => {
|
|
11887
11887
|
if (c)
|
|
11888
11888
|
return document.body.style.overflow = "hidden", () => {
|
|
11889
11889
|
document.body.style.overflow = "";
|
|
11890
11890
|
};
|
|
11891
|
-
}, [c]),
|
|
11891
|
+
}, [c]), X(() => {
|
|
11892
11892
|
}, [c, s, a, l]), !c) return null;
|
|
11893
11893
|
const v = {
|
|
11894
11894
|
sm: u === "left" || u === "right" ? "w-64" : "h-64",
|
|
@@ -11992,7 +11992,7 @@ function Uc(s) {
|
|
|
11992
11992
|
]);
|
|
11993
11993
|
return /* @__PURE__ */ n.jsx(
|
|
11994
11994
|
"div",
|
|
11995
|
-
F(
|
|
11995
|
+
F(E({
|
|
11996
11996
|
className: `
|
|
11997
11997
|
${f("lg", "p")}
|
|
11998
11998
|
border-b
|
|
@@ -12014,7 +12014,7 @@ function Yc(s) {
|
|
|
12014
12014
|
]);
|
|
12015
12015
|
return /* @__PURE__ */ n.jsx(
|
|
12016
12016
|
"div",
|
|
12017
|
-
F(
|
|
12017
|
+
F(E({
|
|
12018
12018
|
className: `
|
|
12019
12019
|
${f("lg", "p")}
|
|
12020
12020
|
border-t
|
|
@@ -12092,7 +12092,7 @@ const ga = pe(
|
|
|
12092
12092
|
const v = Zt.only(t), g = v.props.onClick, h = (w) => {
|
|
12093
12093
|
g == null || g(w), w.defaultPrevented || u(w);
|
|
12094
12094
|
};
|
|
12095
|
-
return rr(v, F(
|
|
12095
|
+
return rr(v, F(E({}, a), {
|
|
12096
12096
|
role: (b = v.props.role) != null ? b : "button",
|
|
12097
12097
|
tabIndex: (x = v.props.tabIndex) != null ? x : 0,
|
|
12098
12098
|
"aria-haspopup": "menu",
|
|
@@ -12103,7 +12103,7 @@ const ga = pe(
|
|
|
12103
12103
|
}
|
|
12104
12104
|
return /* @__PURE__ */ n.jsx(
|
|
12105
12105
|
"div",
|
|
12106
|
-
F(
|
|
12106
|
+
F(E({
|
|
12107
12107
|
ref: o,
|
|
12108
12108
|
onClick: u,
|
|
12109
12109
|
role: "button",
|
|
@@ -12123,14 +12123,14 @@ function qc({
|
|
|
12123
12123
|
align: r = "start"
|
|
12124
12124
|
}) {
|
|
12125
12125
|
const { isOpen: s, closeMenu: a, placement: o } = Cs(), i = re(null), l = re(null), [c, d] = W({ top: 0, left: 0 });
|
|
12126
|
-
if (
|
|
12126
|
+
if (X(() => {
|
|
12127
12127
|
if (s) {
|
|
12128
12128
|
const m = document.querySelector(
|
|
12129
12129
|
'[aria-haspopup="menu"]'
|
|
12130
12130
|
);
|
|
12131
12131
|
l.current = m;
|
|
12132
12132
|
}
|
|
12133
|
-
}, [s]),
|
|
12133
|
+
}, [s]), X(() => {
|
|
12134
12134
|
if (s && i.current && l.current) {
|
|
12135
12135
|
const m = () => {
|
|
12136
12136
|
const x = l.current.getBoundingClientRect(), v = i.current.getBoundingClientRect(), g = window.scrollY, h = window.scrollX;
|
|
@@ -12157,14 +12157,14 @@ function qc({
|
|
|
12157
12157
|
window.removeEventListener("resize", p), window.removeEventListener("scroll", b, !0);
|
|
12158
12158
|
};
|
|
12159
12159
|
}
|
|
12160
|
-
}, [s, o, r]),
|
|
12160
|
+
}, [s, o, r]), X(() => {
|
|
12161
12161
|
if (s) {
|
|
12162
12162
|
const m = (p) => {
|
|
12163
12163
|
p.key === "Escape" && a();
|
|
12164
12164
|
};
|
|
12165
12165
|
return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
|
|
12166
12166
|
}
|
|
12167
|
-
}, [s, a]),
|
|
12167
|
+
}, [s, a]), X(() => {
|
|
12168
12168
|
if (s) {
|
|
12169
12169
|
const m = (p) => {
|
|
12170
12170
|
i.current && l.current && !i.current.contains(p.target) && !l.current.contains(p.target) && a();
|
|
@@ -12225,7 +12225,7 @@ const va = pe(function(m, u) {
|
|
|
12225
12225
|
};
|
|
12226
12226
|
return /* @__PURE__ */ n.jsxs(
|
|
12227
12227
|
"div",
|
|
12228
|
-
F(
|
|
12228
|
+
F(E({
|
|
12229
12229
|
ref: u,
|
|
12230
12230
|
role: "menuitem",
|
|
12231
12231
|
tabIndex: a ? -1 : 0,
|
|
@@ -12252,7 +12252,7 @@ const va = pe(function(m, u) {
|
|
|
12252
12252
|
children: [
|
|
12253
12253
|
r && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: r }),
|
|
12254
12254
|
/* @__PURE__ */ n.jsx("span", { className: "flex-1", children: t }),
|
|
12255
|
-
l && /* @__PURE__ */ n.jsx(
|
|
12255
|
+
l && /* @__PURE__ */ n.jsx(Et, { className: "h-4 w-4 text-fg-secondary shrink-0" }),
|
|
12256
12256
|
s && !l && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: s })
|
|
12257
12257
|
]
|
|
12258
12258
|
})
|
|
@@ -12267,7 +12267,7 @@ function Xc(r) {
|
|
|
12267
12267
|
]);
|
|
12268
12268
|
return /* @__PURE__ */ n.jsx(
|
|
12269
12269
|
"div",
|
|
12270
|
-
|
|
12270
|
+
E({
|
|
12271
12271
|
role: "separator",
|
|
12272
12272
|
className: `
|
|
12273
12273
|
h-px
|
|
@@ -12454,7 +12454,7 @@ function Jc(a) {
|
|
|
12454
12454
|
]);
|
|
12455
12455
|
return /* @__PURE__ */ n.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ n.jsx(
|
|
12456
12456
|
bs,
|
|
12457
|
-
F(
|
|
12457
|
+
F(E({
|
|
12458
12458
|
href: r || "/",
|
|
12459
12459
|
variant: "default",
|
|
12460
12460
|
className: j("flex items-center font-semibold text-lg", t)
|
|
@@ -12569,7 +12569,7 @@ const rd = {
|
|
|
12569
12569
|
]);
|
|
12570
12570
|
return /* @__PURE__ */ n.jsx(
|
|
12571
12571
|
"div",
|
|
12572
|
-
F(
|
|
12572
|
+
F(E({
|
|
12573
12573
|
ref: l,
|
|
12574
12574
|
className: j(
|
|
12575
12575
|
"w-full",
|
|
@@ -12618,7 +12618,7 @@ const Ot = me.forwardRef(
|
|
|
12618
12618
|
};
|
|
12619
12619
|
return /* @__PURE__ */ n.jsx(
|
|
12620
12620
|
"div",
|
|
12621
|
-
F(
|
|
12621
|
+
F(E({
|
|
12622
12622
|
ref: l,
|
|
12623
12623
|
className: j(
|
|
12624
12624
|
"flex",
|
|
@@ -12674,9 +12674,9 @@ function ar(l) {
|
|
|
12674
12674
|
children: e
|
|
12675
12675
|
}
|
|
12676
12676
|
);
|
|
12677
|
-
return a ? /* @__PURE__ */ n.jsx(hn, { children: /* @__PURE__ */ n.jsx("div", F(
|
|
12677
|
+
return a ? /* @__PURE__ */ n.jsx(hn, { children: /* @__PURE__ */ n.jsx("div", F(E({ className: j(o) }, i), { children: d })) }) : /* @__PURE__ */ n.jsx(hn, { children: /* @__PURE__ */ n.jsx(
|
|
12678
12678
|
"header",
|
|
12679
|
-
F(
|
|
12679
|
+
F(E({
|
|
12680
12680
|
className: j(
|
|
12681
12681
|
sd({ variant: t }),
|
|
12682
12682
|
r && `sticky top-0 ${$e("sticky")}`,
|
|
@@ -12754,9 +12754,9 @@ function nd(c) {
|
|
|
12754
12754
|
return b;
|
|
12755
12755
|
if (u) {
|
|
12756
12756
|
const x = u === b.href || b.href !== "/" && u.startsWith(`${b.href}/`);
|
|
12757
|
-
return F(
|
|
12757
|
+
return F(E({}, b), { active: x });
|
|
12758
12758
|
}
|
|
12759
|
-
return F(
|
|
12759
|
+
return F(E({}, b), { active: !1 });
|
|
12760
12760
|
}), [e, u]), p = /* @__PURE__ */ n.jsx(n.Fragment, { children: m.map((b, x) => {
|
|
12761
12761
|
const v = r === "pills" ? "background" : r === "tabs" ? "underline" : "default";
|
|
12762
12762
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -12783,14 +12783,14 @@ function nd(c) {
|
|
|
12783
12783
|
}) });
|
|
12784
12784
|
return o ? /* @__PURE__ */ n.jsx(
|
|
12785
12785
|
"div",
|
|
12786
|
-
F(
|
|
12786
|
+
F(E({
|
|
12787
12787
|
className: j(xn({ orientation: t, variant: r }), s)
|
|
12788
12788
|
}, l), {
|
|
12789
12789
|
children: p
|
|
12790
12790
|
})
|
|
12791
12791
|
) : /* @__PURE__ */ n.jsx(
|
|
12792
12792
|
"nav",
|
|
12793
|
-
F(
|
|
12793
|
+
F(E({
|
|
12794
12794
|
className: j(xn({ orientation: t, variant: r }), s),
|
|
12795
12795
|
"aria-label": a
|
|
12796
12796
|
}, l), {
|
|
@@ -12799,7 +12799,7 @@ function nd(c) {
|
|
|
12799
12799
|
);
|
|
12800
12800
|
}
|
|
12801
12801
|
function qu(e) {
|
|
12802
|
-
return /* @__PURE__ */ n.jsx(nd, F(
|
|
12802
|
+
return /* @__PURE__ */ n.jsx(nd, F(E({}, e), { pathname: e.pathname }));
|
|
12803
12803
|
}
|
|
12804
12804
|
const ad = Me(
|
|
12805
12805
|
// Base classes
|
|
@@ -12832,7 +12832,7 @@ function Xu(l) {
|
|
|
12832
12832
|
"variant",
|
|
12833
12833
|
"className"
|
|
12834
12834
|
]);
|
|
12835
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
12835
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ className: j(ad({ variant: a }), o) }, i), { children: [
|
|
12836
12836
|
r && r.length > 0 && /* @__PURE__ */ n.jsx(Cc, { items: r }),
|
|
12837
12837
|
/* @__PURE__ */ n.jsxs(
|
|
12838
12838
|
"div",
|
|
@@ -12882,7 +12882,7 @@ function Ju(s) {
|
|
|
12882
12882
|
),
|
|
12883
12883
|
children: /* @__PURE__ */ n.jsxs(
|
|
12884
12884
|
"form",
|
|
12885
|
-
F(
|
|
12885
|
+
F(E({}, r), {
|
|
12886
12886
|
onSubmit: (o) => {
|
|
12887
12887
|
o.preventDefault(), r.onSubmit && r.onSubmit(o);
|
|
12888
12888
|
},
|
|
@@ -12935,7 +12935,7 @@ function Qu(d) {
|
|
|
12935
12935
|
"className"
|
|
12936
12936
|
]);
|
|
12937
12937
|
const m = re(null);
|
|
12938
|
-
if (Sr(e), $s(m, e), Ss(m, e),
|
|
12938
|
+
if (Sr(e), $s(m, e), Ss(m, e), X(() => {
|
|
12939
12939
|
if (!e) return;
|
|
12940
12940
|
const h = (w) => {
|
|
12941
12941
|
w.key === "Escape" && t();
|
|
@@ -12943,7 +12943,7 @@ function Qu(d) {
|
|
|
12943
12943
|
return document.addEventListener("keydown", h), () => {
|
|
12944
12944
|
document.removeEventListener("keydown", h);
|
|
12945
12945
|
};
|
|
12946
|
-
}, [e, t]),
|
|
12946
|
+
}, [e, t]), X(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
12947
12947
|
document.body.style.overflow = "";
|
|
12948
12948
|
}), [e]), !e) return null;
|
|
12949
12949
|
const p = [
|
|
@@ -12983,7 +12983,7 @@ function Qu(d) {
|
|
|
12983
12983
|
className: `flex min-h-full items-center justify-center ${f("base", "p")}`,
|
|
12984
12984
|
children: /* @__PURE__ */ n.jsxs(
|
|
12985
12985
|
"div",
|
|
12986
|
-
F(
|
|
12986
|
+
F(E({
|
|
12987
12987
|
ref: m,
|
|
12988
12988
|
tabIndex: -1,
|
|
12989
12989
|
className: v,
|
|
@@ -13087,7 +13087,7 @@ function gn({
|
|
|
13087
13087
|
emptyMessage: I = "No data available",
|
|
13088
13088
|
emptyStateTitle: _,
|
|
13089
13089
|
emptyStateMessage: D,
|
|
13090
|
-
emptyStateIllustration:
|
|
13090
|
+
emptyStateIllustration: A,
|
|
13091
13091
|
emptyStateAction: T,
|
|
13092
13092
|
onRowClick: R,
|
|
13093
13093
|
resizable: P = !1,
|
|
@@ -13097,20 +13097,20 @@ function gn({
|
|
|
13097
13097
|
virtualScrollingOptions: de,
|
|
13098
13098
|
children: B
|
|
13099
13099
|
}) {
|
|
13100
|
-
const L = V(() => s || (i !== void 0 && l ? "server" : "client"), [s, i, l]),
|
|
13100
|
+
const L = V(() => s || (i !== void 0 && l ? "server" : "client"), [s, i, l]), J = a !== void 0, [ne, ee] = W(1), [ae, ce] = W(d), z = J ? a : ne, H = o != null ? o : ae, Q = V(() => L === "server" ? i != null ? i : 0 : t.length, [L, i, t.length]), he = V(() => Math.ceil(Q / H), [Q, H]), fe = m !== void 0, [we, Ce] = W(
|
|
13101
13101
|
x || ""
|
|
13102
13102
|
), [Oe, Ha] = W(v), Rt = fe ? m : we, or = fe ? p || "asc" : Oe, _r = h !== void 0, [Ba, Ua] = W(k), ir = _r ? h : Ba, Lr = $ !== void 0, [Ya, Ga] = W(
|
|
13103
13103
|
[]
|
|
13104
13104
|
), Be = Lr ? $ : Ya, lr = V(() => !g || g.length === 0 ? t : t.filter((oe) => g.every((ve) => {
|
|
13105
|
-
const
|
|
13106
|
-
if (!
|
|
13105
|
+
const Ee = ir[ve.key];
|
|
13106
|
+
if (!Ee || Ee === "") return !0;
|
|
13107
13107
|
const dr = oe[ve.key];
|
|
13108
|
-
return ve.type === "text" ? String(dr || "").toLowerCase().includes(String(
|
|
13108
|
+
return ve.type === "text" ? String(dr || "").toLowerCase().includes(String(Ee).toLowerCase()) : String(dr) === String(Ee);
|
|
13109
13109
|
})), [t, g, ir]), Fr = V(() => {
|
|
13110
13110
|
if (fe && b || !Rt) return lr;
|
|
13111
13111
|
const oe = [...lr];
|
|
13112
|
-
return oe.sort((ve,
|
|
13113
|
-
const dr = ve[Rt], Ja =
|
|
13112
|
+
return oe.sort((ve, Ee) => {
|
|
13113
|
+
const dr = ve[Rt], Ja = Ee[Rt], Bs = String(dr || "").localeCompare(
|
|
13114
13114
|
String(Ja || "")
|
|
13115
13115
|
);
|
|
13116
13116
|
return or === "asc" ? Bs : -Bs;
|
|
@@ -13122,22 +13122,22 @@ function gn({
|
|
|
13122
13122
|
return Fr.slice(oe, ve);
|
|
13123
13123
|
}, [Fr, L, z, H]), _t = K(
|
|
13124
13124
|
(oe, ve) => {
|
|
13125
|
-
var
|
|
13126
|
-
return M ? M(oe) : ((
|
|
13125
|
+
var Ee;
|
|
13126
|
+
return M ? M(oe) : ((Ee = oe == null ? void 0 : oe.id) == null ? void 0 : Ee.toString()) || ve.toString();
|
|
13127
13127
|
},
|
|
13128
13128
|
[M]
|
|
13129
13129
|
), cr = V(() => !y || Xe.length === 0 ? !1 : Xe.every((oe, ve) => {
|
|
13130
|
-
const
|
|
13131
|
-
return Be.includes(
|
|
13130
|
+
const Ee = _t(oe, ve);
|
|
13131
|
+
return Be.includes(Ee);
|
|
13132
13132
|
}), [y, Xe, Be, _t]), Ls = V(() => {
|
|
13133
13133
|
if (!y) return !1;
|
|
13134
13134
|
const oe = Be.length;
|
|
13135
13135
|
return oe > 0 && oe < Xe.length;
|
|
13136
13136
|
}, [y, Be.length, Xe.length]), Lt = K(
|
|
13137
13137
|
(oe) => {
|
|
13138
|
-
|
|
13138
|
+
J ? l == null || l(oe) : ee(oe);
|
|
13139
13139
|
},
|
|
13140
|
-
[
|
|
13140
|
+
[J, l]
|
|
13141
13141
|
), Fs = K(
|
|
13142
13142
|
(oe) => {
|
|
13143
13143
|
c ? c(oe) : ce(oe), Lt(1);
|
|
@@ -13160,7 +13160,7 @@ function gn({
|
|
|
13160
13160
|
[Lr, N]
|
|
13161
13161
|
), Os = K(
|
|
13162
13162
|
(oe) => {
|
|
13163
|
-
const ve = Be.includes(oe) ? Be.filter((
|
|
13163
|
+
const ve = Be.includes(oe) ? Be.filter((Ee) => Ee !== oe) : [...Be, oe];
|
|
13164
13164
|
bt(ve);
|
|
13165
13165
|
},
|
|
13166
13166
|
[Be, bt]
|
|
@@ -13168,12 +13168,12 @@ function gn({
|
|
|
13168
13168
|
if (cr)
|
|
13169
13169
|
bt([]);
|
|
13170
13170
|
else {
|
|
13171
|
-
const oe = Xe.map((ve,
|
|
13171
|
+
const oe = Xe.map((ve, Ee) => _t(ve, Ee));
|
|
13172
13172
|
bt(oe);
|
|
13173
13173
|
}
|
|
13174
13174
|
}, [cr, Xe, _t, bt]), [Ka, qa] = W({}), zr = U !== void 0, Ws = zr ? U : Ka, Hs = K(
|
|
13175
13175
|
(oe, ve) => {
|
|
13176
|
-
zr ? Z == null || Z(oe, ve) : qa((
|
|
13176
|
+
zr ? Z == null || Z(oe, ve) : qa((Ee) => F(E({}, Ee), {
|
|
13177
13177
|
[oe]: ve
|
|
13178
13178
|
}));
|
|
13179
13179
|
},
|
|
@@ -13214,7 +13214,7 @@ function gn({
|
|
|
13214
13214
|
emptyMessage: I,
|
|
13215
13215
|
emptyStateTitle: _,
|
|
13216
13216
|
emptyStateMessage: D,
|
|
13217
|
-
emptyStateIllustration:
|
|
13217
|
+
emptyStateIllustration: A,
|
|
13218
13218
|
emptyStateAction: T,
|
|
13219
13219
|
setPage: Lt,
|
|
13220
13220
|
setPageSize: Fs,
|
|
@@ -13256,7 +13256,7 @@ function gn({
|
|
|
13256
13256
|
I,
|
|
13257
13257
|
_,
|
|
13258
13258
|
D,
|
|
13259
|
-
|
|
13259
|
+
A,
|
|
13260
13260
|
T,
|
|
13261
13261
|
Lt,
|
|
13262
13262
|
Fs,
|
|
@@ -13315,9 +13315,9 @@ function ja(c) {
|
|
|
13315
13315
|
};
|
|
13316
13316
|
const S = (_) => {
|
|
13317
13317
|
if (!v.current) return;
|
|
13318
|
-
const D = _.clientX - v.current.x,
|
|
13318
|
+
const D = _.clientX - v.current.x, A = v.current.width + D, T = Math.max(
|
|
13319
13319
|
a,
|
|
13320
|
-
o ? Math.min(
|
|
13320
|
+
o ? Math.min(A, o) : A
|
|
13321
13321
|
);
|
|
13322
13322
|
s(e.key, T);
|
|
13323
13323
|
}, I = () => {
|
|
@@ -13333,7 +13333,7 @@ function ja(c) {
|
|
|
13333
13333
|
}, k = u.column === e.key, y = e.sortable && (p || m), $ = k ? u.direction : void 0;
|
|
13334
13334
|
return /* @__PURE__ */ n.jsx(
|
|
13335
13335
|
"th",
|
|
13336
|
-
F(
|
|
13336
|
+
F(E({
|
|
13337
13337
|
ref: x,
|
|
13338
13338
|
scope: "col",
|
|
13339
13339
|
role: "columnheader",
|
|
@@ -13385,7 +13385,7 @@ function ka(r) {
|
|
|
13385
13385
|
columnWidths: u,
|
|
13386
13386
|
setColumnWidth: m
|
|
13387
13387
|
} = at();
|
|
13388
|
-
return /* @__PURE__ */ n.jsxs("tr", F(
|
|
13388
|
+
return /* @__PURE__ */ n.jsxs("tr", F(E({ role: "row", className: e }, t), { children: [
|
|
13389
13389
|
o && /* @__PURE__ */ n.jsx(
|
|
13390
13390
|
"th",
|
|
13391
13391
|
{
|
|
@@ -13435,7 +13435,7 @@ function Na(r) {
|
|
|
13435
13435
|
]);
|
|
13436
13436
|
return at(), /* @__PURE__ */ n.jsx(
|
|
13437
13437
|
"thead",
|
|
13438
|
-
F(
|
|
13438
|
+
F(E({
|
|
13439
13439
|
className: `bg-surface-subtle sticky top-0 ${$e("sticky")} ${e}`
|
|
13440
13440
|
}, t), {
|
|
13441
13441
|
children: /* @__PURE__ */ n.jsx(ka, {})
|
|
@@ -13447,7 +13447,7 @@ function $a(a) {
|
|
|
13447
13447
|
const i = e.key in t ? t[e.key] : void 0;
|
|
13448
13448
|
return /* @__PURE__ */ n.jsx(
|
|
13449
13449
|
"td",
|
|
13450
|
-
F(
|
|
13450
|
+
F(E({
|
|
13451
13451
|
className: `${f("lg", "px")} ${f("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
|
|
13452
13452
|
}, s), {
|
|
13453
13453
|
children: e.render ? e.render(i, t) : String(i != null ? i : "")
|
|
@@ -13472,7 +13472,7 @@ function id(o) {
|
|
|
13472
13472
|
variant: c.variant,
|
|
13473
13473
|
disabled: c.disabled
|
|
13474
13474
|
}));
|
|
13475
|
-
return /* @__PURE__ */ n.jsx("div", F(
|
|
13475
|
+
return /* @__PURE__ */ n.jsx("div", F(E({ className: `inline-flex ${s}` }, a), { children: /* @__PURE__ */ n.jsx(
|
|
13476
13476
|
Ic,
|
|
13477
13477
|
{
|
|
13478
13478
|
trigger: /* @__PURE__ */ n.jsx(
|
|
@@ -13498,7 +13498,7 @@ function Sa(a) {
|
|
|
13498
13498
|
const l = i(e);
|
|
13499
13499
|
return l.length === 0 ? null : /* @__PURE__ */ n.jsx(
|
|
13500
13500
|
id,
|
|
13501
|
-
|
|
13501
|
+
E({
|
|
13502
13502
|
row: e,
|
|
13503
13503
|
actions: l,
|
|
13504
13504
|
align: t,
|
|
@@ -13533,7 +13533,7 @@ function ns(i) {
|
|
|
13533
13533
|
};
|
|
13534
13534
|
return /* @__PURE__ */ n.jsxs(
|
|
13535
13535
|
"tr",
|
|
13536
|
-
F(
|
|
13536
|
+
F(E({
|
|
13537
13537
|
role: "row",
|
|
13538
13538
|
"aria-selected": d ? g : void 0,
|
|
13539
13539
|
"aria-rowindex": t + 1,
|
|
@@ -13582,9 +13582,9 @@ function Ca(r) {
|
|
|
13582
13582
|
emptyStateIllustration: l,
|
|
13583
13583
|
emptyStateAction: c
|
|
13584
13584
|
} = at();
|
|
13585
|
-
return o || i || l ? /* @__PURE__ */ n.jsxs("div", F(
|
|
13585
|
+
return o || i || l ? /* @__PURE__ */ n.jsxs("div", F(E({ className: e }, t), { children: [
|
|
13586
13586
|
/* @__PURE__ */ n.jsx(
|
|
13587
|
-
|
|
13587
|
+
Ac,
|
|
13588
13588
|
{
|
|
13589
13589
|
title: o || "No data available",
|
|
13590
13590
|
message: i || a || "No data available",
|
|
@@ -13599,7 +13599,7 @@ function Ca(r) {
|
|
|
13599
13599
|
children: c
|
|
13600
13600
|
}
|
|
13601
13601
|
)
|
|
13602
|
-
] })) : /* @__PURE__ */ n.jsx("div", F(
|
|
13602
|
+
] })) : /* @__PURE__ */ n.jsx("div", F(E({ className: `text-center text-fg-secondary ${e}` }, t), { children: a || "No data available" }));
|
|
13603
13603
|
}
|
|
13604
13604
|
function ld(e, t) {
|
|
13605
13605
|
const { itemHeight: r, containerHeight: s, overscan: a = 5, enabled: o = !0 } = t, [i, l] = W(0), c = re(null), d = V(() => {
|
|
@@ -13626,7 +13626,7 @@ function ld(e, t) {
|
|
|
13626
13626
|
});
|
|
13627
13627
|
return x;
|
|
13628
13628
|
}, [e, r, i, s, a, o]), u = e.length * r;
|
|
13629
|
-
return
|
|
13629
|
+
return X(() => {
|
|
13630
13630
|
if (!o || !c.current) return;
|
|
13631
13631
|
const p = c.current, b = () => {
|
|
13632
13632
|
l(p.scrollTop);
|
|
@@ -13645,7 +13645,7 @@ function ld(e, t) {
|
|
|
13645
13645
|
containerRef: c
|
|
13646
13646
|
};
|
|
13647
13647
|
}
|
|
13648
|
-
function
|
|
13648
|
+
function Ea(s) {
|
|
13649
13649
|
var a = s, {
|
|
13650
13650
|
children: e,
|
|
13651
13651
|
className: t = ""
|
|
@@ -13673,7 +13673,7 @@ function Aa(s) {
|
|
|
13673
13673
|
})).filter((h) => h.row !== void 0) : o.map((h, w) => ({ row: h, index: w })), [u, b.virtualItems, o]);
|
|
13674
13674
|
return i ? /* @__PURE__ */ n.jsx(
|
|
13675
13675
|
"tbody",
|
|
13676
|
-
F(
|
|
13676
|
+
F(E({
|
|
13677
13677
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
13678
13678
|
}, r), {
|
|
13679
13679
|
children: Array.from({ length: 5 }).map((h, w) => /* @__PURE__ */ n.jsx("tr", { children: Array.from({ length: p }).map((k, y) => /* @__PURE__ */ n.jsx(
|
|
@@ -13687,7 +13687,7 @@ function Aa(s) {
|
|
|
13687
13687
|
})
|
|
13688
13688
|
) : o.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
13689
13689
|
"tbody",
|
|
13690
|
-
F(
|
|
13690
|
+
F(E({
|
|
13691
13691
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
13692
13692
|
}, r), {
|
|
13693
13693
|
children: /* @__PURE__ */ n.jsx("tr", { children: /* @__PURE__ */ n.jsx(
|
|
@@ -13701,14 +13701,14 @@ function Aa(s) {
|
|
|
13701
13701
|
})
|
|
13702
13702
|
) : typeof e == "function" ? /* @__PURE__ */ n.jsx(
|
|
13703
13703
|
"tbody",
|
|
13704
|
-
F(
|
|
13704
|
+
F(E({
|
|
13705
13705
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
13706
13706
|
}, r), {
|
|
13707
13707
|
children: o.map((h, w) => e(h, w))
|
|
13708
13708
|
})
|
|
13709
13709
|
) : /* @__PURE__ */ n.jsx(
|
|
13710
13710
|
"tbody",
|
|
13711
|
-
F(
|
|
13711
|
+
F(E({
|
|
13712
13712
|
className: `bg-surface-base divide-y divide-line-default ${t}`,
|
|
13713
13713
|
role: "rowgroup"
|
|
13714
13714
|
}, r), {
|
|
@@ -13762,7 +13762,7 @@ function cd(i) {
|
|
|
13762
13762
|
const [c, d] = W(r), [u, m] = W(!1), p = Object.values(c).some(
|
|
13763
13763
|
(h) => h !== "" && h !== null && h !== void 0
|
|
13764
13764
|
), b = (h, w) => {
|
|
13765
|
-
const k = F(
|
|
13765
|
+
const k = F(E({}, c), { [h]: w });
|
|
13766
13766
|
d(k), t(k);
|
|
13767
13767
|
}, x = () => {
|
|
13768
13768
|
const h = {};
|
|
@@ -13770,14 +13770,14 @@ function cd(i) {
|
|
|
13770
13770
|
h[w.key] = "";
|
|
13771
13771
|
}), d(h), t(h);
|
|
13772
13772
|
}, v = (h) => {
|
|
13773
|
-
const w = F(
|
|
13773
|
+
const w = F(E({}, c), { [h]: "" });
|
|
13774
13774
|
d(w), t(w);
|
|
13775
13775
|
}, g = Object.values(c).filter(
|
|
13776
13776
|
(h) => h !== "" && h !== null && h !== void 0
|
|
13777
13777
|
).length;
|
|
13778
13778
|
return /* @__PURE__ */ n.jsx(
|
|
13779
13779
|
"div",
|
|
13780
|
-
F(
|
|
13780
|
+
F(E({
|
|
13781
13781
|
className: `bg-surface-base border-b border-line-default ${a}`
|
|
13782
13782
|
}, o), {
|
|
13783
13783
|
children: /* @__PURE__ */ n.jsxs(
|
|
@@ -13900,7 +13900,7 @@ function cd(i) {
|
|
|
13900
13900
|
})
|
|
13901
13901
|
);
|
|
13902
13902
|
}
|
|
13903
|
-
function
|
|
13903
|
+
function Aa(s) {
|
|
13904
13904
|
var a = s, {
|
|
13905
13905
|
showClearAll: e = !0,
|
|
13906
13906
|
className: t = ""
|
|
@@ -13911,7 +13911,7 @@ function Ea(s) {
|
|
|
13911
13911
|
const { filterState: o, setFilters: i } = at();
|
|
13912
13912
|
return o.config.length === 0 ? null : /* @__PURE__ */ n.jsx(
|
|
13913
13913
|
cd,
|
|
13914
|
-
|
|
13914
|
+
E({
|
|
13915
13915
|
filters: o.config,
|
|
13916
13916
|
onFilter: i,
|
|
13917
13917
|
initialValues: o.values,
|
|
@@ -13953,7 +13953,7 @@ function dd(u) {
|
|
|
13953
13953
|
};
|
|
13954
13954
|
return /* @__PURE__ */ n.jsxs(
|
|
13955
13955
|
"div",
|
|
13956
|
-
F(
|
|
13956
|
+
F(E({
|
|
13957
13957
|
className: `flex items-center justify-between ${f("base", "px")} ${f("md", "py")} bg-surface-base border-t border-line-default sm:${f("lg", "px")} ${c}`
|
|
13958
13958
|
}, d), {
|
|
13959
13959
|
children: [
|
|
@@ -14078,7 +14078,7 @@ function dd(u) {
|
|
|
14078
14078
|
onClick: g,
|
|
14079
14079
|
disabled: e >= p,
|
|
14080
14080
|
"aria-label": "Next page",
|
|
14081
|
-
children: /* @__PURE__ */ n.jsx(
|
|
14081
|
+
children: /* @__PURE__ */ n.jsx(Et, { className: "h-4 w-4" })
|
|
14082
14082
|
}
|
|
14083
14083
|
),
|
|
14084
14084
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -14090,8 +14090,8 @@ function dd(u) {
|
|
|
14090
14090
|
disabled: e >= p,
|
|
14091
14091
|
"aria-label": "Last page",
|
|
14092
14092
|
children: [
|
|
14093
|
-
/* @__PURE__ */ n.jsx(
|
|
14094
|
-
/* @__PURE__ */ n.jsx(
|
|
14093
|
+
/* @__PURE__ */ n.jsx(Et, { className: "h-4 w-4" }),
|
|
14094
|
+
/* @__PURE__ */ n.jsx(Et, { className: "h-4 w-4 -ml-2" })
|
|
14095
14095
|
]
|
|
14096
14096
|
}
|
|
14097
14097
|
)
|
|
@@ -14119,7 +14119,7 @@ function Ia(o) {
|
|
|
14119
14119
|
const { paginationState: l, setPage: c, setPageSize: d, paginationMode: u } = at();
|
|
14120
14120
|
return u === "client" && l.totalPages <= 1 ? null : /* @__PURE__ */ n.jsx(
|
|
14121
14121
|
dd,
|
|
14122
|
-
|
|
14122
|
+
E({
|
|
14123
14123
|
page: l.page,
|
|
14124
14124
|
pageSize: l.pageSize,
|
|
14125
14125
|
total: l.total,
|
|
@@ -14148,14 +14148,14 @@ function Pe(e) {
|
|
|
14148
14148
|
"div",
|
|
14149
14149
|
{
|
|
14150
14150
|
className: `bg-surface-base shadow ${Y("lg")} overflow-hidden ${t}`,
|
|
14151
|
-
children: /* @__PURE__ */ n.jsx(gn, F(
|
|
14151
|
+
children: /* @__PURE__ */ n.jsx(gn, F(E({}, i), { children: e.children }))
|
|
14152
14152
|
}
|
|
14153
14153
|
) : /* @__PURE__ */ n.jsx(
|
|
14154
14154
|
"div",
|
|
14155
14155
|
{
|
|
14156
14156
|
className: `bg-surface-base shadow ${Y("lg")} overflow-hidden ${t}`,
|
|
14157
|
-
children: /* @__PURE__ */ n.jsxs(gn, F(
|
|
14158
|
-
i.filters && i.filters.length > 0 && /* @__PURE__ */ n.jsx(
|
|
14157
|
+
children: /* @__PURE__ */ n.jsxs(gn, F(E({}, i), { children: [
|
|
14158
|
+
i.filters && i.filters.length > 0 && /* @__PURE__ */ n.jsx(Aa, {}),
|
|
14159
14159
|
/* @__PURE__ */ n.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ n.jsxs(
|
|
14160
14160
|
"table",
|
|
14161
14161
|
{
|
|
@@ -14167,7 +14167,7 @@ function Pe(e) {
|
|
|
14167
14167
|
"aria-colcount": i.columns.length + (i.selectable ? 1 : 0) + (i.actions ? 1 : 0),
|
|
14168
14168
|
children: [
|
|
14169
14169
|
/* @__PURE__ */ n.jsx(Na, {}),
|
|
14170
|
-
/* @__PURE__ */ n.jsx(
|
|
14170
|
+
/* @__PURE__ */ n.jsx(Ea, {})
|
|
14171
14171
|
]
|
|
14172
14172
|
}
|
|
14173
14173
|
) }),
|
|
@@ -14248,10 +14248,10 @@ function ud(e) {
|
|
|
14248
14248
|
Pe.Header = Na;
|
|
14249
14249
|
Pe.HeaderRow = ka;
|
|
14250
14250
|
Pe.HeaderCell = ja;
|
|
14251
|
-
Pe.Body =
|
|
14251
|
+
Pe.Body = Ea;
|
|
14252
14252
|
Pe.Row = ns;
|
|
14253
14253
|
Pe.Cell = $a;
|
|
14254
|
-
Pe.Filters =
|
|
14254
|
+
Pe.Filters = Aa;
|
|
14255
14255
|
Pe.Pagination = Ia;
|
|
14256
14256
|
Pe.EmptyState = Ca;
|
|
14257
14257
|
Pe.Actions = Sa;
|
|
@@ -14269,7 +14269,7 @@ function tf(e = {}) {
|
|
|
14269
14269
|
r,
|
|
14270
14270
|
s ? Math.min(y, s) : y
|
|
14271
14271
|
);
|
|
14272
|
-
i((N) => F(
|
|
14272
|
+
i((N) => F(E({}, N), {
|
|
14273
14273
|
[k]: $
|
|
14274
14274
|
}));
|
|
14275
14275
|
},
|
|
@@ -14308,12 +14308,12 @@ function tf(e = {}) {
|
|
|
14308
14308
|
endResize: g
|
|
14309
14309
|
};
|
|
14310
14310
|
}
|
|
14311
|
-
const
|
|
14311
|
+
const Es = Se(null);
|
|
14312
14312
|
function rf() {
|
|
14313
|
-
return ue(
|
|
14313
|
+
return ue(Es);
|
|
14314
14314
|
}
|
|
14315
14315
|
function mt() {
|
|
14316
|
-
const e = ue(
|
|
14316
|
+
const e = ue(Es);
|
|
14317
14317
|
if (!e)
|
|
14318
14318
|
throw new Error(
|
|
14319
14319
|
"useSideNavbarThemeRequired must be used within SideNavbarThemeProvider"
|
|
@@ -14351,14 +14351,14 @@ function Ta({
|
|
|
14351
14351
|
o
|
|
14352
14352
|
]
|
|
14353
14353
|
);
|
|
14354
|
-
return /* @__PURE__ */ n.jsx(
|
|
14354
|
+
return /* @__PURE__ */ n.jsx(Es.Provider, { value: i, children: e });
|
|
14355
14355
|
}
|
|
14356
|
-
const
|
|
14356
|
+
const As = Se(null);
|
|
14357
14357
|
function sf() {
|
|
14358
|
-
return ue(
|
|
14358
|
+
return ue(As);
|
|
14359
14359
|
}
|
|
14360
14360
|
function Wt() {
|
|
14361
|
-
const e = ue(
|
|
14361
|
+
const e = ue(As);
|
|
14362
14362
|
if (!e)
|
|
14363
14363
|
throw new Error(
|
|
14364
14364
|
"useSideNavbarConfigRequired must be used within SideNavbarConfigProvider"
|
|
@@ -14432,7 +14432,7 @@ function Ma({
|
|
|
14432
14432
|
x
|
|
14433
14433
|
]
|
|
14434
14434
|
);
|
|
14435
|
-
return /* @__PURE__ */ n.jsx(
|
|
14435
|
+
return /* @__PURE__ */ n.jsx(As.Provider, { value: v, children: e });
|
|
14436
14436
|
}
|
|
14437
14437
|
const Is = Se(null);
|
|
14438
14438
|
function nf() {
|
|
@@ -14549,12 +14549,12 @@ function pd({
|
|
|
14549
14549
|
},
|
|
14550
14550
|
[i, c]
|
|
14551
14551
|
);
|
|
14552
|
-
return
|
|
14552
|
+
return X(() => {
|
|
14553
14553
|
if (u)
|
|
14554
14554
|
return document.addEventListener("mousemove", v), document.addEventListener("mouseup", g), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", () => {
|
|
14555
14555
|
document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", g), document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
14556
14556
|
};
|
|
14557
|
-
}, [u, v, g]),
|
|
14557
|
+
}, [u, v, g]), X(() => {
|
|
14558
14558
|
u || d(Xr(e, t, r));
|
|
14559
14559
|
}, [e, t, r, u]), {
|
|
14560
14560
|
width: c,
|
|
@@ -14577,7 +14577,7 @@ function bd({
|
|
|
14577
14577
|
const c = window.innerWidth, d = c < e;
|
|
14578
14578
|
a(c), d !== o && (i(d), t == null || t(d));
|
|
14579
14579
|
}, [r, e, o, t]);
|
|
14580
|
-
return
|
|
14580
|
+
return X(() => {
|
|
14581
14581
|
if (!r || typeof window == "undefined") return;
|
|
14582
14582
|
const c = window.innerWidth, d = c < e;
|
|
14583
14583
|
a(c), i(d), window.addEventListener("resize", l);
|
|
@@ -14599,7 +14599,7 @@ function hd({
|
|
|
14599
14599
|
initialFocusRef: s
|
|
14600
14600
|
}) {
|
|
14601
14601
|
const a = re(null);
|
|
14602
|
-
|
|
14602
|
+
X(() => {
|
|
14603
14603
|
if (e) {
|
|
14604
14604
|
if (a.current = document.activeElement, s != null && s.current)
|
|
14605
14605
|
s.current.focus();
|
|
@@ -14622,7 +14622,7 @@ function hd({
|
|
|
14622
14622
|
},
|
|
14623
14623
|
[e, t]
|
|
14624
14624
|
);
|
|
14625
|
-
|
|
14625
|
+
X(() => {
|
|
14626
14626
|
if (e)
|
|
14627
14627
|
return document.addEventListener("keydown", o), () => {
|
|
14628
14628
|
document.removeEventListener("keydown", o);
|
|
@@ -14650,7 +14650,7 @@ function xd({
|
|
|
14650
14650
|
},
|
|
14651
14651
|
[i, e, t, r, s, a, o, l]
|
|
14652
14652
|
);
|
|
14653
|
-
|
|
14653
|
+
X(() => {
|
|
14654
14654
|
if (i)
|
|
14655
14655
|
return window.addEventListener("keydown", c), () => {
|
|
14656
14656
|
window.removeEventListener("keydown", c);
|
|
@@ -14742,22 +14742,22 @@ function Da({
|
|
|
14742
14742
|
}) : de.forEach((B) => {
|
|
14743
14743
|
te[B] = B !== R;
|
|
14744
14744
|
}), te;
|
|
14745
|
-
} : (P) => F(
|
|
14745
|
+
} : (P) => F(E({}, P), {
|
|
14746
14746
|
[R]: !P[R]
|
|
14747
14747
|
}));
|
|
14748
14748
|
},
|
|
14749
14749
|
[i]
|
|
14750
|
-
),
|
|
14750
|
+
), A = K(
|
|
14751
14751
|
(R, P) => {
|
|
14752
|
-
g((U) => F(
|
|
14752
|
+
g((U) => F(E({}, U), {
|
|
14753
14753
|
[R]: P
|
|
14754
14754
|
}));
|
|
14755
14755
|
},
|
|
14756
14756
|
[]
|
|
14757
14757
|
);
|
|
14758
|
-
|
|
14758
|
+
X(() => {
|
|
14759
14759
|
u && r !== b && x(r);
|
|
14760
|
-
}, [u, r, b]),
|
|
14760
|
+
}, [u, r, b]), X(() => {
|
|
14761
14761
|
c.storageKey && c.persistState && typeof window != "undefined" && !u && localStorage.setItem(
|
|
14762
14762
|
`${c.storageKey}-collapsed`,
|
|
14763
14763
|
String(b)
|
|
@@ -14775,7 +14775,7 @@ function Da({
|
|
|
14775
14775
|
startResize: y,
|
|
14776
14776
|
groupStates: v,
|
|
14777
14777
|
toggleGroup: D,
|
|
14778
|
-
setGroupCollapsed:
|
|
14778
|
+
setGroupCollapsed: A,
|
|
14779
14779
|
sidebarRef: d
|
|
14780
14780
|
}),
|
|
14781
14781
|
[
|
|
@@ -14789,7 +14789,7 @@ function Da({
|
|
|
14789
14789
|
y,
|
|
14790
14790
|
v,
|
|
14791
14791
|
D,
|
|
14792
|
-
|
|
14792
|
+
A
|
|
14793
14793
|
]
|
|
14794
14794
|
);
|
|
14795
14795
|
return /* @__PURE__ */ n.jsx(Is.Provider, { value: T, children: e });
|
|
@@ -14923,7 +14923,7 @@ function Fa(r) {
|
|
|
14923
14923
|
// micro-z: resize handle above sidebar border for grab affordance (see z-10 below)
|
|
14924
14924
|
/* @__PURE__ */ n.jsxs(
|
|
14925
14925
|
"div",
|
|
14926
|
-
F(
|
|
14926
|
+
F(E({
|
|
14927
14927
|
className: `
|
|
14928
14928
|
group
|
|
14929
14929
|
absolute
|
|
@@ -15011,14 +15011,14 @@ function za(o) {
|
|
|
15011
15011
|
};
|
|
15012
15012
|
return x ? /* @__PURE__ */ n.jsx(
|
|
15013
15013
|
"div",
|
|
15014
|
-
|
|
15014
|
+
E({
|
|
15015
15015
|
className: `
|
|
15016
15016
|
fixed inset-0
|
|
15017
15017
|
bg-scrim
|
|
15018
15018
|
${$e("modal-backdrop")}
|
|
15019
15019
|
${r}
|
|
15020
15020
|
`,
|
|
15021
|
-
style:
|
|
15021
|
+
style: E({
|
|
15022
15022
|
animation: `fadeIn ${u}ms ease-in-out`
|
|
15023
15023
|
}, s),
|
|
15024
15024
|
onClick: v,
|
|
@@ -15116,9 +15116,9 @@ function Pa(v) {
|
|
|
15116
15116
|
}
|
|
15117
15117
|
}
|
|
15118
15118
|
);
|
|
15119
|
-
}, I = h ? "Expand sidebar" : "Collapse sidebar", _ = c != null ? c : Nd[e], D = l ? `${h ? "Expand" : "Collapse"} sidebar${M ? ` (${N})` : ""}` : void 0,
|
|
15119
|
+
}, I = h ? "Expand sidebar" : "Collapse sidebar", _ = c != null ? c : Nd[e], D = l ? `${h ? "Expand" : "Collapse"} sidebar${M ? ` (${N})` : ""}` : void 0, A = t ? {
|
|
15120
15120
|
transform: `translate(${(P = t.x) != null ? P : 0}px, ${(U = t.y) != null ? U : 0}px)`
|
|
15121
|
-
} : {}, T = e === "floating" ?
|
|
15121
|
+
} : {}, T = e === "floating" ? E({
|
|
15122
15122
|
// Toggle sempre na borda direita da sidebar completa (<aside>)
|
|
15123
15123
|
// O <aside> é o container pai, então right: -12px sempre posiciona na borda direita da sidebar
|
|
15124
15124
|
// Isso faz o toggle acompanhar o resize da sidebar automaticamente
|
|
@@ -15130,9 +15130,9 @@ function Pa(v) {
|
|
|
15130
15130
|
transform: "translateY(-50%)",
|
|
15131
15131
|
// Transição suave para acompanhar o resize da sidebar
|
|
15132
15132
|
transition: `right ${k}ms ${y}`
|
|
15133
|
-
},
|
|
15133
|
+
}, A) : A, R = /* @__PURE__ */ n.jsx(
|
|
15134
15134
|
"button",
|
|
15135
|
-
F(
|
|
15135
|
+
F(E({
|
|
15136
15136
|
type: "button",
|
|
15137
15137
|
onClick: w,
|
|
15138
15138
|
className: `
|
|
@@ -15145,7 +15145,7 @@ function Pa(v) {
|
|
|
15145
15145
|
${e === "floating" ? "" : jd[e]}
|
|
15146
15146
|
${m}
|
|
15147
15147
|
`,
|
|
15148
|
-
style:
|
|
15148
|
+
style: E(E(E(E({}, e === "floating" ? {
|
|
15149
15149
|
position: "absolute",
|
|
15150
15150
|
// Absolute within the floating wrapper
|
|
15151
15151
|
// The custom wrapper is at sidebar's content edge (right: 0 = 319px, sidebar has 1px border)
|
|
@@ -15249,8 +15249,8 @@ function Cd(o) {
|
|
|
15249
15249
|
"style",
|
|
15250
15250
|
"aria-label"
|
|
15251
15251
|
]);
|
|
15252
|
-
var
|
|
15253
|
-
const l = pt(), c = mt(), d = Wt(), u = vd(), m = $d(e), p = (
|
|
15252
|
+
var J, ne;
|
|
15253
|
+
const l = pt(), c = mt(), d = Wt(), u = vd(), m = $d(e), p = (J = m.show) != null ? J : u.showMainToggle, b = (ne = m.position) != null ? ne : u.mainTogglePosition, {
|
|
15254
15254
|
collapsed: x,
|
|
15255
15255
|
setCollapsed: v,
|
|
15256
15256
|
currentWidth: g,
|
|
@@ -15263,16 +15263,16 @@ function Cd(o) {
|
|
|
15263
15263
|
contentWidth: N,
|
|
15264
15264
|
animationDuration: M,
|
|
15265
15265
|
animationEasing: S
|
|
15266
|
-
} = c, { mode: I, resizable: _, mobileVariant: D, overlayBackdrop:
|
|
15267
|
-
|
|
15266
|
+
} = c, { mode: I, resizable: _, mobileVariant: D, overlayBackdrop: A } = d, T = typeof $ == "number" ? `${$}px` : $, R = typeof N == "number" ? `${N}px` : N, U = I === "navigation" || x ? T : _ ? `${g}px` : R, [Z, te] = W(!1);
|
|
15267
|
+
X(() => {
|
|
15268
15268
|
te(!0);
|
|
15269
15269
|
}, []);
|
|
15270
15270
|
const de = k && D === "overlay", B = Z && de, L = B ? `fixed left-0 top-0 ${$e("fixed")}` : "relative";
|
|
15271
15271
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
15272
|
-
Z && de &&
|
|
15272
|
+
Z && de && A && !x && /* @__PURE__ */ n.jsx(za, {}),
|
|
15273
15273
|
/* @__PURE__ */ n.jsxs(
|
|
15274
15274
|
"aside",
|
|
15275
|
-
F(
|
|
15275
|
+
F(E({
|
|
15276
15276
|
ref: w,
|
|
15277
15277
|
id: "side-navbar-sidebar",
|
|
15278
15278
|
className: j(
|
|
@@ -15284,7 +15284,7 @@ function Cd(o) {
|
|
|
15284
15284
|
B && x ? "-translate-x-full" : "translate-x-0",
|
|
15285
15285
|
t
|
|
15286
15286
|
),
|
|
15287
|
-
style:
|
|
15287
|
+
style: E({
|
|
15288
15288
|
// Em desktop: sempre 'relative' para ficar no mesmo plano do conteúdo
|
|
15289
15289
|
// Em mobile overlay: 'fixed' para sobrepor o conteúdo
|
|
15290
15290
|
position: B ? "fixed" : "relative",
|
|
@@ -15338,7 +15338,7 @@ function os(o) {
|
|
|
15338
15338
|
const { collapsed: l, toggle: c } = Rs(), d = () => {
|
|
15339
15339
|
if (e)
|
|
15340
15340
|
return typeof e == "function" ? e(l) : e;
|
|
15341
|
-
const b = l ?
|
|
15341
|
+
const b = l ? Et : Qt;
|
|
15342
15342
|
return /* @__PURE__ */ n.jsx(
|
|
15343
15343
|
b,
|
|
15344
15344
|
{
|
|
@@ -15370,7 +15370,7 @@ function os(o) {
|
|
|
15370
15370
|
position: "right",
|
|
15371
15371
|
children: /* @__PURE__ */ n.jsx(
|
|
15372
15372
|
"button",
|
|
15373
|
-
F(
|
|
15373
|
+
F(E({
|
|
15374
15374
|
type: "button",
|
|
15375
15375
|
onClick: c,
|
|
15376
15376
|
className: `
|
|
@@ -15404,7 +15404,7 @@ function os(o) {
|
|
|
15404
15404
|
}
|
|
15405
15405
|
);
|
|
15406
15406
|
}
|
|
15407
|
-
const
|
|
15407
|
+
const Ed = {
|
|
15408
15408
|
sm: {
|
|
15409
15409
|
container: "w-8 h-8",
|
|
15410
15410
|
icon: "w-4 h-4",
|
|
@@ -15420,7 +15420,7 @@ const Ad = {
|
|
|
15420
15420
|
icon: "w-6 h-6",
|
|
15421
15421
|
badge: "min-w-5 h-5 text-xs"
|
|
15422
15422
|
}
|
|
15423
|
-
},
|
|
15423
|
+
}, Ad = {
|
|
15424
15424
|
default: "bg-error",
|
|
15425
15425
|
success: "bg-success",
|
|
15426
15426
|
warning: "bg-warning",
|
|
@@ -15472,7 +15472,7 @@ function Td(h) {
|
|
|
15472
15472
|
activeItem: k,
|
|
15473
15473
|
setActiveItem: y,
|
|
15474
15474
|
labelMode: $
|
|
15475
|
-
} = Rs(), N = (U = s != null ? s : $) != null ? U : "tooltip", M = o || e && k === e, S =
|
|
15475
|
+
} = Rs(), N = (U = s != null ? s : $) != null ? U : "tooltip", M = o || e && k === e, S = Ed[u], I = (Z) => {
|
|
15476
15476
|
if (x) {
|
|
15477
15477
|
Z.preventDefault();
|
|
15478
15478
|
return;
|
|
@@ -15523,7 +15523,7 @@ function Td(h) {
|
|
|
15523
15523
|
N !== "tooltip" && Id[N],
|
|
15524
15524
|
x ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
15525
15525
|
v
|
|
15526
|
-
),
|
|
15526
|
+
), A = {
|
|
15527
15527
|
default: M ? "bg-surface-brand-muted text-fg-brand-emphasis" : x ? "text-fg-disabled" : "text-fg-secondary hover:bg-surface-active hover:text-fg-primary [&:hover]:!transform-none",
|
|
15528
15528
|
ghost: M ? "text-fg-brand-emphasis" : x ? "text-fg-disabled" : "text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",
|
|
15529
15529
|
subtle: M ? "bg-surface-active text-fg-primary" : x ? "text-fg-disabled" : "text-fg-tertiary hover:bg-surface-hover hover:text-fg-primary [&:hover]:!transform-none"
|
|
@@ -15574,7 +15574,7 @@ function Td(h) {
|
|
|
15574
15574
|
"text-fg-inverse",
|
|
15575
15575
|
Y("full"),
|
|
15576
15576
|
S.badge,
|
|
15577
|
-
|
|
15577
|
+
Ad[c]
|
|
15578
15578
|
),
|
|
15579
15579
|
children: l
|
|
15580
15580
|
}
|
|
@@ -15590,7 +15590,7 @@ function Td(h) {
|
|
|
15590
15590
|
target: p,
|
|
15591
15591
|
rel: p === "_blank" ? "noopener noreferrer" : void 0,
|
|
15592
15592
|
onClick: I,
|
|
15593
|
-
className: j(D,
|
|
15593
|
+
className: j(D, A[d]),
|
|
15594
15594
|
style: R,
|
|
15595
15595
|
"aria-label": r,
|
|
15596
15596
|
"aria-current": M ? "page" : void 0,
|
|
@@ -15599,11 +15599,11 @@ function Td(h) {
|
|
|
15599
15599
|
}
|
|
15600
15600
|
) : /* @__PURE__ */ n.jsx(
|
|
15601
15601
|
"button",
|
|
15602
|
-
F(
|
|
15602
|
+
F(E({
|
|
15603
15603
|
type: "button",
|
|
15604
15604
|
onClick: I,
|
|
15605
15605
|
disabled: x,
|
|
15606
|
-
className: j(D,
|
|
15606
|
+
className: j(D, A[d]),
|
|
15607
15607
|
style: R,
|
|
15608
15608
|
"aria-label": r,
|
|
15609
15609
|
"aria-current": M ? "page" : void 0
|
|
@@ -15623,14 +15623,14 @@ function Md(s) {
|
|
|
15623
15623
|
]);
|
|
15624
15624
|
return e === "vertical" ? /* @__PURE__ */ n.jsx(
|
|
15625
15625
|
"div",
|
|
15626
|
-
|
|
15626
|
+
E({
|
|
15627
15627
|
className: j("w-px", "h-6", "bg-line-default", "mx-auto", t),
|
|
15628
15628
|
role: "separator",
|
|
15629
15629
|
"aria-orientation": "vertical"
|
|
15630
15630
|
}, r)
|
|
15631
15631
|
) : /* @__PURE__ */ n.jsx(
|
|
15632
15632
|
"div",
|
|
15633
|
-
|
|
15633
|
+
E({
|
|
15634
15634
|
className: j(
|
|
15635
15635
|
"w-full",
|
|
15636
15636
|
"h-px",
|
|
@@ -15668,7 +15668,7 @@ function Dd(l) {
|
|
|
15668
15668
|
"className"
|
|
15669
15669
|
]);
|
|
15670
15670
|
const [d, u] = W(s);
|
|
15671
|
-
return /* @__PURE__ */ n.jsxs("div", F(
|
|
15671
|
+
return /* @__PURE__ */ n.jsxs("div", F(E({ id: e, className: j("flex flex-col", o) }, i), { children: [
|
|
15672
15672
|
t && /* @__PURE__ */ n.jsx(
|
|
15673
15673
|
"div",
|
|
15674
15674
|
{
|
|
@@ -15686,7 +15686,7 @@ function Dd(l) {
|
|
|
15686
15686
|
children: [
|
|
15687
15687
|
" ",
|
|
15688
15688
|
r && /* @__PURE__ */ n.jsx("span", { className: "shrink-0", children: d ? /* @__PURE__ */ n.jsx(
|
|
15689
|
-
|
|
15689
|
+
Et,
|
|
15690
15690
|
{
|
|
15691
15691
|
className: "w-3 h-3",
|
|
15692
15692
|
style: { transition: "none", transform: "none" }
|
|
@@ -15763,7 +15763,7 @@ function Mt(u) {
|
|
|
15763
15763
|
);
|
|
15764
15764
|
return /* @__PURE__ */ n.jsx(Ds.Provider, { value: $, children: /* @__PURE__ */ n.jsxs(
|
|
15765
15765
|
"nav",
|
|
15766
|
-
F(
|
|
15766
|
+
F(E({
|
|
15767
15767
|
ref: x,
|
|
15768
15768
|
className: j(
|
|
15769
15769
|
"relative",
|
|
@@ -15774,7 +15774,7 @@ function Mt(u) {
|
|
|
15774
15774
|
k ? "items-stretch" : "items-center",
|
|
15775
15775
|
l
|
|
15776
15776
|
),
|
|
15777
|
-
style:
|
|
15777
|
+
style: E({
|
|
15778
15778
|
position: "relative",
|
|
15779
15779
|
// Ensure relative positioning for absolute children (toggle)
|
|
15780
15780
|
backgroundColor: "var(--color-surface-raised)",
|
|
@@ -15872,9 +15872,9 @@ function _d(l) {
|
|
|
15872
15872
|
"style"
|
|
15873
15873
|
]);
|
|
15874
15874
|
const { collapsed: d, registerHeader: u, unregisterHeader: m } = Rr();
|
|
15875
|
-
return
|
|
15875
|
+
return X(() => (u(), () => m()), [u, m]), d ? null : /* @__PURE__ */ n.jsx(
|
|
15876
15876
|
"div",
|
|
15877
|
-
F(
|
|
15877
|
+
F(E({
|
|
15878
15878
|
className: `
|
|
15879
15879
|
flex-shrink-0
|
|
15880
15880
|
${f("md", "px")}
|
|
@@ -15939,7 +15939,7 @@ function Ld(i) {
|
|
|
15939
15939
|
};
|
|
15940
15940
|
return /* @__PURE__ */ n.jsx(
|
|
15941
15941
|
"div",
|
|
15942
|
-
F(
|
|
15942
|
+
F(E({
|
|
15943
15943
|
className: `
|
|
15944
15944
|
flex-1
|
|
15945
15945
|
min-h-0
|
|
@@ -15947,7 +15947,7 @@ function Ld(i) {
|
|
|
15947
15947
|
${u}
|
|
15948
15948
|
${s}
|
|
15949
15949
|
`,
|
|
15950
|
-
style:
|
|
15950
|
+
style: E(E({}, p), a),
|
|
15951
15951
|
onScroll: b,
|
|
15952
15952
|
tabIndex: e ? 0 : void 0
|
|
15953
15953
|
}, o), {
|
|
@@ -15970,12 +15970,12 @@ function Fd(i) {
|
|
|
15970
15970
|
"style"
|
|
15971
15971
|
]);
|
|
15972
15972
|
const { collapsed: c, registerFooter: d, unregisterFooter: u } = Rr();
|
|
15973
|
-
if (
|
|
15973
|
+
if (X(() => (d(), () => u()), [d, u]), c)
|
|
15974
15974
|
return null;
|
|
15975
15975
|
const m = e !== "none" ? f(e, "p") : "";
|
|
15976
15976
|
return /* @__PURE__ */ n.jsx(
|
|
15977
15977
|
"div",
|
|
15978
|
-
F(
|
|
15978
|
+
F(E({
|
|
15979
15979
|
className: `
|
|
15980
15980
|
flex-shrink-0
|
|
15981
15981
|
${m}
|
|
@@ -16015,7 +16015,7 @@ function zd(d) {
|
|
|
16015
16015
|
activeGroup: p,
|
|
16016
16016
|
setActiveGroup: b
|
|
16017
16017
|
} = Rr(), { groupStates: x, toggleGroup: v, setGroupCollapsed: g } = pt(), { animationDuration: h } = mt(), w = re(!1);
|
|
16018
|
-
if (
|
|
16018
|
+
if (X(() => {
|
|
16019
16019
|
!w.current && x[e] === void 0 && (w.current = !0, g(e, o));
|
|
16020
16020
|
}, [e, o, x, g]), m)
|
|
16021
16021
|
return null;
|
|
@@ -16024,7 +16024,7 @@ function zd(d) {
|
|
|
16024
16024
|
};
|
|
16025
16025
|
return /* @__PURE__ */ n.jsxs(
|
|
16026
16026
|
"div",
|
|
16027
|
-
F(
|
|
16027
|
+
F(E({
|
|
16028
16028
|
className: `
|
|
16029
16029
|
border-b
|
|
16030
16030
|
border-line-default
|
|
@@ -16098,7 +16098,7 @@ function zd(d) {
|
|
|
16098
16098
|
}
|
|
16099
16099
|
function Pd({ id: e, children: t }) {
|
|
16100
16100
|
const { activeSlot: r, registerSlot: s, unregisterSlot: a } = La();
|
|
16101
|
-
return
|
|
16101
|
+
return X(() => (s(e, t), () => a(e)), [e, t, s, a]), r !== e ? null : /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
16102
16102
|
}
|
|
16103
16103
|
function Od({
|
|
16104
16104
|
fallback: e = null
|
|
@@ -16143,7 +16143,7 @@ function Dt(a) {
|
|
|
16143
16143
|
), N = as(l.contentWidth), M = as(l.navigationWidth), S = N - M;
|
|
16144
16144
|
return /* @__PURE__ */ n.jsx(_s.Provider, { value: $, children: /* @__PURE__ */ n.jsx(
|
|
16145
16145
|
"div",
|
|
16146
|
-
F(
|
|
16146
|
+
F(E({
|
|
16147
16147
|
ref: c,
|
|
16148
16148
|
className: j(
|
|
16149
16149
|
"flex",
|
|
@@ -16155,7 +16155,7 @@ function Dt(a) {
|
|
|
16155
16155
|
"overflow-hidden",
|
|
16156
16156
|
t
|
|
16157
16157
|
),
|
|
16158
|
-
style:
|
|
16158
|
+
style: E({
|
|
16159
16159
|
width: i.collapsed ? 0 : S,
|
|
16160
16160
|
opacity: i.collapsed ? 0 : 1,
|
|
16161
16161
|
visibility: i.collapsed ? "hidden" : "visible",
|
|
@@ -16264,7 +16264,7 @@ function He(I) {
|
|
|
16264
16264
|
onWidthChange: w,
|
|
16265
16265
|
onMobileChange: k,
|
|
16266
16266
|
exclusiveGroups: y,
|
|
16267
|
-
children: /* @__PURE__ */ n.jsx(Cd, F(
|
|
16267
|
+
children: /* @__PURE__ */ n.jsx(Cd, F(E({}, S), { children: M }))
|
|
16268
16268
|
}
|
|
16269
16269
|
) });
|
|
16270
16270
|
}
|
|
@@ -16289,22 +16289,22 @@ function df({
|
|
|
16289
16289
|
if (d)
|
|
16290
16290
|
try {
|
|
16291
16291
|
const u = JSON.parse(d);
|
|
16292
|
-
return
|
|
16292
|
+
return E(E({}, e), u);
|
|
16293
16293
|
} catch (u) {
|
|
16294
16294
|
}
|
|
16295
16295
|
}
|
|
16296
16296
|
return e;
|
|
16297
16297
|
}, [a, o] = W(s);
|
|
16298
|
-
|
|
16298
|
+
X(() => {
|
|
16299
16299
|
t && r && typeof window != "undefined" && localStorage.setItem(`${r}-groups`, JSON.stringify(a));
|
|
16300
16300
|
}, [t, r, a]);
|
|
16301
16301
|
const i = K((d) => {
|
|
16302
|
-
o((u) => F(
|
|
16302
|
+
o((u) => F(E({}, u), {
|
|
16303
16303
|
[d]: !u[d]
|
|
16304
16304
|
}));
|
|
16305
16305
|
}, []), l = K(
|
|
16306
16306
|
(d, u) => {
|
|
16307
|
-
o((m) => F(
|
|
16307
|
+
o((m) => F(E({}, m), {
|
|
16308
16308
|
[d]: u
|
|
16309
16309
|
}));
|
|
16310
16310
|
},
|
|
@@ -16383,7 +16383,7 @@ function Oa(i) {
|
|
|
16383
16383
|
"className"
|
|
16384
16384
|
]);
|
|
16385
16385
|
const { isOpen: c, onClose: d, titleId: u, descriptionId: m } = nr(), p = re(null), b = re(null);
|
|
16386
|
-
if ($s(p, c), Ss(p, c),
|
|
16386
|
+
if ($s(p, c), Ss(p, c), X(() => {
|
|
16387
16387
|
if (!c || !s) return;
|
|
16388
16388
|
const h = (w) => {
|
|
16389
16389
|
w.key === "Escape" && d();
|
|
@@ -16420,7 +16420,7 @@ function Oa(i) {
|
|
|
16420
16420
|
className: `flex min-h-full items-center justify-center ${f("base", "p")}`,
|
|
16421
16421
|
children: /* @__PURE__ */ n.jsx(
|
|
16422
16422
|
"div",
|
|
16423
|
-
F(
|
|
16423
|
+
F(E({
|
|
16424
16424
|
ref: p,
|
|
16425
16425
|
role: "dialog",
|
|
16426
16426
|
"aria-modal": "true",
|
|
@@ -16456,7 +16456,7 @@ function Va(s) {
|
|
|
16456
16456
|
]);
|
|
16457
16457
|
return /* @__PURE__ */ n.jsx(
|
|
16458
16458
|
"div",
|
|
16459
|
-
F(
|
|
16459
|
+
F(E({
|
|
16460
16460
|
className: `flex flex-col ${f("1.5", "space-y")} ${f("lg", "p")} ${f("base", "pb")} ${t}`
|
|
16461
16461
|
}, r), {
|
|
16462
16462
|
children: e
|
|
@@ -16478,7 +16478,7 @@ function Wd(o) {
|
|
|
16478
16478
|
const l = nr(), c = je(), d = s || l.titleId || c;
|
|
16479
16479
|
return /* @__PURE__ */ n.jsx(
|
|
16480
16480
|
e,
|
|
16481
|
-
F(
|
|
16481
|
+
F(E({
|
|
16482
16482
|
id: d,
|
|
16483
16483
|
className: `${ye("h3")} font-semibold leading-none tracking-tight ${r}`
|
|
16484
16484
|
}, a), {
|
|
@@ -16499,7 +16499,7 @@ function Hd(a) {
|
|
|
16499
16499
|
const i = nr(), l = je(), c = r || i.descriptionId || l;
|
|
16500
16500
|
return /* @__PURE__ */ n.jsx(
|
|
16501
16501
|
"p",
|
|
16502
|
-
F(
|
|
16502
|
+
F(E({
|
|
16503
16503
|
id: c,
|
|
16504
16504
|
className: `${ye("bodySmall")} text-fg-secondary ${t}`
|
|
16505
16505
|
}, s), {
|
|
@@ -16517,7 +16517,7 @@ function Wa(s) {
|
|
|
16517
16517
|
]);
|
|
16518
16518
|
return /* @__PURE__ */ n.jsx(
|
|
16519
16519
|
"div",
|
|
16520
|
-
F(
|
|
16520
|
+
F(E({
|
|
16521
16521
|
className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${f("sm", "space-x")} ${f("lg", "p")} ${f("base", "pt")} ${t}`
|
|
16522
16522
|
}, r), {
|
|
16523
16523
|
children: e
|
|
@@ -16636,7 +16636,7 @@ function Kd(i) {
|
|
|
16636
16636
|
"style"
|
|
16637
16637
|
]);
|
|
16638
16638
|
const [c, d] = W(!1), [u, m] = W(!1), p = Ud[e.variant];
|
|
16639
|
-
|
|
16639
|
+
X(() => {
|
|
16640
16640
|
if (e.duration === void 0) return;
|
|
16641
16641
|
d(!0);
|
|
16642
16642
|
const v = setTimeout(() => {
|
|
@@ -16645,7 +16645,7 @@ function Kd(i) {
|
|
|
16645
16645
|
}, 300);
|
|
16646
16646
|
}, e.duration);
|
|
16647
16647
|
return () => clearTimeout(v);
|
|
16648
|
-
}, [e.duration, e.id, t]),
|
|
16648
|
+
}, [e.duration, e.id, t]), X(() => {
|
|
16649
16649
|
const v = setTimeout(() => d(!0), 10);
|
|
16650
16650
|
return () => clearTimeout(v);
|
|
16651
16651
|
}, []);
|
|
@@ -16663,7 +16663,7 @@ function Kd(i) {
|
|
|
16663
16663
|
};
|
|
16664
16664
|
return /* @__PURE__ */ n.jsx(
|
|
16665
16665
|
"div",
|
|
16666
|
-
F(
|
|
16666
|
+
F(E({
|
|
16667
16667
|
className: `
|
|
16668
16668
|
fixed ${b[r]} ${$e("toast")}
|
|
16669
16669
|
w-full max-w-sm
|
|
@@ -16772,16 +16772,16 @@ function hf() {
|
|
|
16772
16772
|
}),
|
|
16773
16773
|
[e]
|
|
16774
16774
|
), a = K(
|
|
16775
|
-
(d, u, m) => s(
|
|
16775
|
+
(d, u, m) => s(E({ title: d, description: u, variant: "success" }, m)),
|
|
16776
16776
|
[s]
|
|
16777
16777
|
), o = K(
|
|
16778
|
-
(d, u, m) => s(
|
|
16778
|
+
(d, u, m) => s(E({ title: d, description: u, variant: "error" }, m)),
|
|
16779
16779
|
[s]
|
|
16780
16780
|
), i = K(
|
|
16781
|
-
(d, u, m) => s(
|
|
16781
|
+
(d, u, m) => s(E({ title: d, description: u, variant: "warning" }, m)),
|
|
16782
16782
|
[s]
|
|
16783
16783
|
), l = K(
|
|
16784
|
-
(d, u, m) => s(
|
|
16784
|
+
(d, u, m) => s(E({ title: d, description: u, variant: "info" }, m)),
|
|
16785
16785
|
[s]
|
|
16786
16786
|
), c = K(
|
|
16787
16787
|
(d, u, m, p = "info", b) => s({
|
|
@@ -16843,7 +16843,7 @@ function qd({
|
|
|
16843
16843
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
16844
16844
|
/* @__PURE__ */ n.jsx(
|
|
16845
16845
|
"button",
|
|
16846
|
-
F(
|
|
16846
|
+
F(E({
|
|
16847
16847
|
type: "button",
|
|
16848
16848
|
onClick: () => g($),
|
|
16849
16849
|
disabled: !o || y.disabled,
|
|
@@ -16945,7 +16945,7 @@ function qd({
|
|
|
16945
16945
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center flex-1", children: [
|
|
16946
16946
|
/* @__PURE__ */ n.jsx(
|
|
16947
16947
|
"button",
|
|
16948
|
-
F(
|
|
16948
|
+
F(E({
|
|
16949
16949
|
type: "button",
|
|
16950
16950
|
onClick: () => g($),
|
|
16951
16951
|
disabled: !o || y.disabled,
|
|
@@ -17040,7 +17040,7 @@ function xf({
|
|
|
17040
17040
|
return /* @__PURE__ */ n.jsx("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center flex-1", children: [
|
|
17041
17041
|
/* @__PURE__ */ n.jsx(
|
|
17042
17042
|
"div",
|
|
17043
|
-
F(
|
|
17043
|
+
F(E({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
17044
17044
|
className: `
|
|
17045
17045
|
flex
|
|
17046
17046
|
items-center
|
|
@@ -17100,7 +17100,7 @@ function xf({
|
|
|
17100
17100
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
17101
17101
|
/* @__PURE__ */ n.jsx(
|
|
17102
17102
|
"div",
|
|
17103
|
-
F(
|
|
17103
|
+
F(E({}, o === "default" ? { "data-marker": "pending" } : {}), {
|
|
17104
17104
|
className: `
|
|
17105
17105
|
flex
|
|
17106
17106
|
items-center
|
|
@@ -17174,10 +17174,10 @@ function gf({
|
|
|
17174
17174
|
const [c, d] = W(r), [u, m] = W(""), [p, b] = W(0), x = re(null), v = re(null), g = t !== void 0, h = g ? t : c, w = e.filter((S) => {
|
|
17175
17175
|
var T, R;
|
|
17176
17176
|
if (!u) return !0;
|
|
17177
|
-
const I = u.toLowerCase(), _ = S.label.toLowerCase().includes(I), D = (T = S.description) == null ? void 0 : T.toLowerCase().includes(I),
|
|
17177
|
+
const I = u.toLowerCase(), _ = S.label.toLowerCase().includes(I), D = (T = S.description) == null ? void 0 : T.toLowerCase().includes(I), A = (R = S.keywords) == null ? void 0 : R.some(
|
|
17178
17178
|
(P) => P.toLowerCase().includes(I)
|
|
17179
17179
|
);
|
|
17180
|
-
return _ || D ||
|
|
17180
|
+
return _ || D || A;
|
|
17181
17181
|
}), k = w.reduce(
|
|
17182
17182
|
(S, I) => {
|
|
17183
17183
|
const _ = I.group || "Other";
|
|
@@ -17212,7 +17212,7 @@ function gf({
|
|
|
17212
17212
|
return;
|
|
17213
17213
|
}
|
|
17214
17214
|
};
|
|
17215
|
-
|
|
17215
|
+
X(() => {
|
|
17216
17216
|
if (v.current && p >= 0) {
|
|
17217
17217
|
const S = v.current.querySelector(
|
|
17218
17218
|
`[data-index="${p}"]`
|
|
@@ -17222,9 +17222,9 @@ function gf({
|
|
|
17222
17222
|
behavior: "smooth"
|
|
17223
17223
|
});
|
|
17224
17224
|
}
|
|
17225
|
-
}, [p]),
|
|
17225
|
+
}, [p]), X(() => {
|
|
17226
17226
|
b(0);
|
|
17227
|
-
}, [u]),
|
|
17227
|
+
}, [u]), X(() => {
|
|
17228
17228
|
const S = (I) => {
|
|
17229
17229
|
(I.metaKey || I.ctrlKey) && I.key === "k" && (I.preventDefault(), y(!h));
|
|
17230
17230
|
};
|
|
@@ -17352,12 +17352,12 @@ function gf({
|
|
|
17352
17352
|
}
|
|
17353
17353
|
),
|
|
17354
17354
|
I.map((_, D) => {
|
|
17355
|
-
const
|
|
17355
|
+
const A = w.indexOf(_), T = A === p;
|
|
17356
17356
|
return /* @__PURE__ */ n.jsxs(
|
|
17357
17357
|
"button",
|
|
17358
17358
|
{
|
|
17359
17359
|
type: "button",
|
|
17360
|
-
"data-index":
|
|
17360
|
+
"data-index": A,
|
|
17361
17361
|
onClick: () => $(_),
|
|
17362
17362
|
className: `
|
|
17363
17363
|
w-full
|
|
@@ -17451,18 +17451,18 @@ function vf({
|
|
|
17451
17451
|
toolbarActions: I,
|
|
17452
17452
|
virtualScrolling: _ = !1,
|
|
17453
17453
|
virtualScrollingOptions: D,
|
|
17454
|
-
emptyMessage:
|
|
17454
|
+
emptyMessage: A,
|
|
17455
17455
|
emptyStateTitle: T,
|
|
17456
17456
|
emptyStateMessage: R,
|
|
17457
17457
|
emptyStateIllustration: P,
|
|
17458
17458
|
emptyStateAction: U,
|
|
17459
17459
|
className: Z = ""
|
|
17460
17460
|
}) {
|
|
17461
|
-
const [te, de] = W(b || {}), B = V(() => e.map((ee) => F(
|
|
17461
|
+
const [te, de] = W(b || {}), B = V(() => e.map((ee) => F(E({}, ee), {
|
|
17462
17462
|
width: te[ee.key] || ee.defaultWidth
|
|
17463
17463
|
})), [e, te]), L = (ee) => {
|
|
17464
|
-
y ? y(ee) : ee === "csv" ?
|
|
17465
|
-
},
|
|
17464
|
+
y ? y(ee) : ee === "csv" ? J(t, e) : ee === "json" && ne(t);
|
|
17465
|
+
}, J = (ee, ae) => {
|
|
17466
17466
|
const ce = ae.filter((we) => we.exportable !== !1).map((we) => we.label || we.key), z = ee.map(
|
|
17467
17467
|
(we) => ae.filter((Ce) => Ce.exportable !== !1).map((Ce) => {
|
|
17468
17468
|
const Oe = we[Ce.key];
|
|
@@ -17538,11 +17538,11 @@ function vf({
|
|
|
17538
17538
|
resizable: u,
|
|
17539
17539
|
columnWidths: te,
|
|
17540
17540
|
onColumnResize: (ee, ae) => {
|
|
17541
|
-
de((ce) => F(
|
|
17541
|
+
de((ce) => F(E({}, ce), { [ee]: ae })), x == null || x(ee, ae);
|
|
17542
17542
|
},
|
|
17543
17543
|
virtualScrolling: _,
|
|
17544
17544
|
virtualScrollingOptions: D,
|
|
17545
|
-
emptyMessage:
|
|
17545
|
+
emptyMessage: A,
|
|
17546
17546
|
emptyStateTitle: T,
|
|
17547
17547
|
emptyStateMessage: R,
|
|
17548
17548
|
emptyStateIllustration: P,
|
|
@@ -17566,7 +17566,7 @@ function yf({
|
|
|
17566
17566
|
const [u, m] = W(""), [p, b] = W(1), x = V(() => e.map((y) => {
|
|
17567
17567
|
if (y.accessor || y.header) {
|
|
17568
17568
|
const $ = y.key || (typeof y.accessor == "string" ? y.accessor : String(y.accessor)), N = y.label || y.header || "";
|
|
17569
|
-
return F(
|
|
17569
|
+
return F(E({}, y), {
|
|
17570
17570
|
key: $,
|
|
17571
17571
|
label: N
|
|
17572
17572
|
});
|
|
@@ -17623,7 +17623,7 @@ function yf({
|
|
|
17623
17623
|
}
|
|
17624
17624
|
),
|
|
17625
17625
|
o && h > 1 && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
17626
|
-
|
|
17626
|
+
Ec,
|
|
17627
17627
|
{
|
|
17628
17628
|
currentPage: p,
|
|
17629
17629
|
totalPages: h,
|
|
@@ -17648,12 +17648,12 @@ function wf({
|
|
|
17648
17648
|
const [a, o] = W(0), [i, l] = W({}), [c, d] = W({}), u = () => fr(null, null, function* () {
|
|
17649
17649
|
const g = e[a];
|
|
17650
17650
|
if (g.validate && !(yield g.validate())) {
|
|
17651
|
-
d(F(
|
|
17651
|
+
d(F(E({}, c), { [a]: !0 }));
|
|
17652
17652
|
return;
|
|
17653
17653
|
}
|
|
17654
|
-
d(F(
|
|
17654
|
+
d(F(E({}, c), { [a]: !1 })), g.onSubmit && (yield g.onSubmit(i)), a < e.length - 1 ? o(a + 1) : t && t(i);
|
|
17655
17655
|
}), m = () => {
|
|
17656
|
-
a > 0 && r && (o(a - 1), d(F(
|
|
17656
|
+
a > 0 && r && (o(a - 1), d(F(E({}, c), { [a - 1]: !1 })));
|
|
17657
17657
|
}, p = (g) => {
|
|
17658
17658
|
r && g < a && o(g);
|
|
17659
17659
|
}, b = e[a], x = a === e.length - 1, v = c[a] === !0;
|
|
@@ -17739,14 +17739,14 @@ function jf({
|
|
|
17739
17739
|
}
|
|
17740
17740
|
return r && Object.keys(u).length > 0 && (g = g.filter((h) => r(u, h))), g;
|
|
17741
17741
|
}, [e, c, u, t, r]), b = (g, h) => {
|
|
17742
|
-
m((w) => F(
|
|
17742
|
+
m((w) => F(E({}, w), {
|
|
17743
17743
|
[g]: h
|
|
17744
17744
|
}));
|
|
17745
17745
|
}, x = () => {
|
|
17746
17746
|
m({}), d("");
|
|
17747
17747
|
}, v = c.trim().length > 0 || Object.keys(u).length > 0;
|
|
17748
17748
|
return /* @__PURE__ */ n.jsx(dt, { maxWidth: "full", paddingX: "base", paddingY: "base", children: /* @__PURE__ */ n.jsxs(Ot, { spacing: "md", children: [
|
|
17749
|
-
/* @__PURE__ */ n.jsx(
|
|
17749
|
+
/* @__PURE__ */ n.jsx(At, { padding: "medium", children: /* @__PURE__ */ n.jsxs(Ot, { spacing: "md", children: [
|
|
17750
17750
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
17751
17751
|
ks,
|
|
17752
17752
|
{
|
|
@@ -17804,7 +17804,7 @@ function jf({
|
|
|
17804
17804
|
" results",
|
|
17805
17805
|
v && " (filtered)"
|
|
17806
17806
|
] }),
|
|
17807
|
-
p.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
17807
|
+
p.length === 0 ? /* @__PURE__ */ n.jsx(At, { padding: "large", children: /* @__PURE__ */ n.jsx("div", { className: "text-center text-fg-secondary", children: /* @__PURE__ */ n.jsx(ut, { children: i }) }) }) : /* @__PURE__ */ n.jsx(
|
|
17808
17808
|
"div",
|
|
17809
17809
|
{
|
|
17810
17810
|
className: `grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ${f("base", "gap")}`,
|
|
@@ -17822,7 +17822,7 @@ function kf({
|
|
|
17822
17822
|
sidebarProps: o
|
|
17823
17823
|
}) {
|
|
17824
17824
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex h-screen overflow-hidden", children: [
|
|
17825
|
-
e && /* @__PURE__ */ n.jsx(He, F(
|
|
17825
|
+
e && /* @__PURE__ */ n.jsx(He, F(E({ defaultCollapsed: a }, o), { children: e })),
|
|
17826
17826
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
17827
17827
|
r && /* @__PURE__ */ n.jsx("header", { className: "border-b bg-surface-base", children: /* @__PURE__ */ n.jsx(dt, { maxWidth: "full", paddingX: "base", paddingY: "sm", children: r }) }),
|
|
17828
17828
|
/* @__PURE__ */ n.jsx("main", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ n.jsx(dt, { maxWidth: "xl", paddingX: "base", paddingY: "base", children: t }) }),
|
|
@@ -17830,6 +17830,23 @@ function kf({
|
|
|
17830
17830
|
] })
|
|
17831
17831
|
] });
|
|
17832
17832
|
}
|
|
17833
|
+
function Nf(e, t = {}) {
|
|
17834
|
+
const { rootMargin: r = "0px 0px -50% 0px", threshold: s = 0 } = t, [a, o] = W(null), i = e.join("|");
|
|
17835
|
+
return X(() => {
|
|
17836
|
+
if (typeof window == "undefined" || typeof IntersectionObserver == "undefined")
|
|
17837
|
+
return;
|
|
17838
|
+
const l = e.map((d) => document.getElementById(d)).filter((d) => d !== null);
|
|
17839
|
+
if (l.length === 0) return;
|
|
17840
|
+
const c = new IntersectionObserver(
|
|
17841
|
+
(d) => {
|
|
17842
|
+
const u = d.filter((m) => m.isIntersecting).sort((m, p) => m.boundingClientRect.top - p.boundingClientRect.top);
|
|
17843
|
+
u.length > 0 && o(u[0].target.id);
|
|
17844
|
+
},
|
|
17845
|
+
{ rootMargin: r, threshold: s }
|
|
17846
|
+
);
|
|
17847
|
+
return l.forEach((d) => c.observe(d)), () => c.disconnect();
|
|
17848
|
+
}, [i, r, s]), a;
|
|
17849
|
+
}
|
|
17833
17850
|
export {
|
|
17834
17851
|
$t as AMBER,
|
|
17835
17852
|
Ku as Accordion,
|
|
@@ -17851,7 +17868,7 @@ export {
|
|
|
17851
17868
|
se as Button,
|
|
17852
17869
|
au as COLOR_SCALES,
|
|
17853
17870
|
jt as CYAN,
|
|
17854
|
-
|
|
17871
|
+
At as Card,
|
|
17855
17872
|
xs as Checkbox,
|
|
17856
17873
|
Qn as Chip,
|
|
17857
17874
|
qn as Collapsible,
|
|
@@ -17881,7 +17898,7 @@ export {
|
|
|
17881
17898
|
Uc as DrawerHeader,
|
|
17882
17899
|
Ic as Dropdown,
|
|
17883
17900
|
Nt as EMERALD,
|
|
17884
|
-
|
|
17901
|
+
Ac as EmptyState,
|
|
17885
17902
|
Ol as ErrorMessage,
|
|
17886
17903
|
tu as FONT_FAMILY_TOKENS,
|
|
17887
17904
|
ru as FONT_WEIGHT_TOKENS,
|
|
@@ -17930,7 +17947,7 @@ export {
|
|
|
17930
17947
|
ho as PURPLE,
|
|
17931
17948
|
Xu as PageHeader,
|
|
17932
17949
|
Xu as PageHeaderComponent,
|
|
17933
|
-
|
|
17950
|
+
Ec as Pagination,
|
|
17934
17951
|
ma as Popover,
|
|
17935
17952
|
Xn as Progress,
|
|
17936
17953
|
fo as RED,
|
|
@@ -17950,14 +17967,14 @@ export {
|
|
|
17950
17967
|
Jn as Separator,
|
|
17951
17968
|
He as SideNavbar,
|
|
17952
17969
|
za as SideNavbarBackdrop,
|
|
17953
|
-
|
|
17970
|
+
As as SideNavbarConfigContext,
|
|
17954
17971
|
Ma as SideNavbarConfigProvider,
|
|
17955
17972
|
Ra as SideNavbarProvider,
|
|
17956
17973
|
Fa as SideNavbarResizeHandle,
|
|
17957
17974
|
Cd as SideNavbarRoot,
|
|
17958
17975
|
Is as SideNavbarStateContext,
|
|
17959
17976
|
Da as SideNavbarStateProvider,
|
|
17960
|
-
|
|
17977
|
+
Es as SideNavbarThemeContext,
|
|
17961
17978
|
Ta as SideNavbarThemeProvider,
|
|
17962
17979
|
Pa as SideNavbarToggle,
|
|
17963
17980
|
Ms as SideNavbarToggleContext,
|
|
@@ -17973,7 +17990,7 @@ export {
|
|
|
17973
17990
|
gd as SidebarSlotProvider,
|
|
17974
17991
|
Hl as Skeleton,
|
|
17975
17992
|
Jl as Slider,
|
|
17976
|
-
|
|
17993
|
+
Ae as SpacingTokenFactory,
|
|
17977
17994
|
Kn as Spinner,
|
|
17978
17995
|
qd as Stepper,
|
|
17979
17996
|
Kl as Switch,
|
|
@@ -17981,11 +17998,11 @@ export {
|
|
|
17981
17998
|
Vt as TYPOGRAPHY_TOKENS,
|
|
17982
17999
|
Pe as Table,
|
|
17983
18000
|
Sa as TableActions,
|
|
17984
|
-
|
|
18001
|
+
Ea as TableBody,
|
|
17985
18002
|
$a as TableCell,
|
|
17986
18003
|
Zu as TableContext,
|
|
17987
18004
|
Ca as TableEmptyState,
|
|
17988
|
-
|
|
18005
|
+
Aa as TableFilters,
|
|
17989
18006
|
Na as TableHeader,
|
|
17990
18007
|
ja as TableHeaderCell,
|
|
17991
18008
|
ka as TableHeaderRow,
|
|
@@ -18055,7 +18072,7 @@ export {
|
|
|
18055
18072
|
as as parseWidthToPixels,
|
|
18056
18073
|
Du as useApp,
|
|
18057
18074
|
tf as useColumnResizing,
|
|
18058
|
-
|
|
18075
|
+
Au as useConfig,
|
|
18059
18076
|
nr as useDialogContext,
|
|
18060
18077
|
Tu as useDialogContextOptional,
|
|
18061
18078
|
hd as useFocusManagement,
|
|
@@ -18070,6 +18087,7 @@ export {
|
|
|
18070
18087
|
Rs as useNavbarRequired,
|
|
18071
18088
|
pd as useResize,
|
|
18072
18089
|
bd as useResponsiveSidebar,
|
|
18090
|
+
Nf as useScrollSpy,
|
|
18073
18091
|
mf as useSideNavbarCombined,
|
|
18074
18092
|
sf as useSideNavbarConfig,
|
|
18075
18093
|
Wt as useSideNavbarConfigRequired,
|
|
@@ -18089,7 +18107,7 @@ export {
|
|
|
18089
18107
|
ef as useTableContextOptional,
|
|
18090
18108
|
js as useTabsContext,
|
|
18091
18109
|
Wu as useTabsContextOptional,
|
|
18092
|
-
|
|
18110
|
+
Eu as useTheme,
|
|
18093
18111
|
hf as useToast,
|
|
18094
18112
|
Vn as useToastContext,
|
|
18095
18113
|
Iu as useToastContextOptional,
|