@fabio.caffarello/react-design-system 1.21.0 → 1.23.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 +43 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +802 -799
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1219,15 +1219,15 @@ const Ka = (e, t) => {
|
|
|
1219
1219
|
const o = [];
|
|
1220
1220
|
let i = 0, l = 0, d = 0, c;
|
|
1221
1221
|
const u = a.length;
|
|
1222
|
-
for (let
|
|
1223
|
-
const w = a[
|
|
1222
|
+
for (let v = 0; v < u; v++) {
|
|
1223
|
+
const w = a[v];
|
|
1224
1224
|
if (i === 0 && l === 0) {
|
|
1225
1225
|
if (w === Ps) {
|
|
1226
|
-
o.push(a.slice(d,
|
|
1226
|
+
o.push(a.slice(d, v)), d = v + 1;
|
|
1227
1227
|
continue;
|
|
1228
1228
|
}
|
|
1229
1229
|
if (w === "/") {
|
|
1230
|
-
c =
|
|
1230
|
+
c = v;
|
|
1231
1231
|
continue;
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
@@ -1288,31 +1288,31 @@ const Ka = (e, t) => {
|
|
|
1288
1288
|
modifiers: f,
|
|
1289
1289
|
hasImportantModifier: p,
|
|
1290
1290
|
baseClassName: x,
|
|
1291
|
-
maybePostfixModifierPosition:
|
|
1291
|
+
maybePostfixModifierPosition: v
|
|
1292
1292
|
} = r(u);
|
|
1293
1293
|
if (m) {
|
|
1294
1294
|
d = u + (d.length > 0 ? " " + d : d);
|
|
1295
1295
|
continue;
|
|
1296
1296
|
}
|
|
1297
|
-
let w = !!
|
|
1298
|
-
if (!
|
|
1297
|
+
let w = !!v, g = s(w ? x.substring(0, v) : x);
|
|
1298
|
+
if (!g) {
|
|
1299
1299
|
if (!w) {
|
|
1300
1300
|
d = u + (d.length > 0 ? " " + d : d);
|
|
1301
1301
|
continue;
|
|
1302
1302
|
}
|
|
1303
|
-
if (
|
|
1303
|
+
if (g = s(x), !g) {
|
|
1304
1304
|
d = u + (d.length > 0 ? " " + d : d);
|
|
1305
1305
|
continue;
|
|
1306
1306
|
}
|
|
1307
1307
|
w = !1;
|
|
1308
1308
|
}
|
|
1309
|
-
const j = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), S = p ? j + Ur : j,
|
|
1310
|
-
if (i.indexOf(
|
|
1309
|
+
const j = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), S = p ? j + Ur : j, h = S + g;
|
|
1310
|
+
if (i.indexOf(h) > -1)
|
|
1311
1311
|
continue;
|
|
1312
|
-
i.push(
|
|
1313
|
-
const
|
|
1314
|
-
for (let k = 0; k <
|
|
1315
|
-
const F =
|
|
1312
|
+
i.push(h);
|
|
1313
|
+
const b = a(g, w);
|
|
1314
|
+
for (let k = 0; k < b.length; ++k) {
|
|
1315
|
+
const F = b[k];
|
|
1316
1316
|
i.push(S + F);
|
|
1317
1317
|
}
|
|
1318
1318
|
d = u + (d.length > 0 ? " " + d : d);
|
|
@@ -1358,7 +1358,7 @@ const Ka = (e, t) => {
|
|
|
1358
1358
|
const s = gn.exec(e);
|
|
1359
1359
|
return s ? s[1] ? t(s[1]) : r : !1;
|
|
1360
1360
|
}, bn = (e) => e === "position" || e === "percentage", vn = (e) => e === "image" || e === "url", yn = (e) => e === "length" || e === "size" || e === "bg-size", wn = (e) => e === "length", Ro = (e) => e === "number", Lo = (e) => e === "family-name", jn = (e) => e === "shadow", Fo = () => {
|
|
1361
|
-
const e = ve("color"), t = ve("font"), r = ve("text"), s = ve("font-weight"), a = ve("tracking"), o = ve("leading"), i = ve("breakpoint"), l = ve("container"), d = ve("spacing"), c = ve("radius"), u = ve("shadow"), m = ve("inset-shadow"), f = ve("text-shadow"), p = ve("drop-shadow"), x = ve("blur"),
|
|
1361
|
+
const e = ve("color"), t = ve("font"), r = ve("text"), s = ve("font-weight"), a = ve("tracking"), o = ve("leading"), i = ve("breakpoint"), l = ve("container"), d = ve("spacing"), c = ve("radius"), u = ve("shadow"), m = ve("inset-shadow"), f = ve("text-shadow"), p = ve("drop-shadow"), x = ve("blur"), v = ve("perspective"), w = ve("aspect"), g = ve("ease"), j = ve("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], h = () => [
|
|
1362
1362
|
"center",
|
|
1363
1363
|
"top",
|
|
1364
1364
|
"bottom",
|
|
@@ -1376,9 +1376,9 @@ const Ka = (e, t) => {
|
|
|
1376
1376
|
"bottom-left",
|
|
1377
1377
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1378
1378
|
"left-bottom"
|
|
1379
|
-
],
|
|
1379
|
+
], b = () => [...h(), X, K], k = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], N = () => [X, K, d], A = () => [Ct, "full", "auto", ...N()], L = () => [tt, "none", "subgrid", X, K], T = () => ["auto", {
|
|
1380
1380
|
span: ["full", tt, X, K]
|
|
1381
|
-
}, tt, X, K], M = () => [tt, "auto", X, K], I = () => ["auto", "min", "max", "fr", X, K], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...N()], G = () => [Ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], H = () => [e, X, K], de = () => [...
|
|
1381
|
+
}, tt, X, K], M = () => [tt, "auto", X, K], I = () => ["auto", "min", "max", "fr", X, K], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Z = () => ["auto", ...N()], G = () => [Ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], H = () => [e, X, K], de = () => [...h(), Ws, Vs, {
|
|
1382
1382
|
position: [X, K]
|
|
1383
1383
|
}], ie = () => ["no-repeat", {
|
|
1384
1384
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1523,7 +1523,7 @@ const Ka = (e, t) => {
|
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/object-position
|
|
1524
1524
|
*/
|
|
1525
1525
|
"object-position": [{
|
|
1526
|
-
object:
|
|
1526
|
+
object: b()
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Overflow
|
|
@@ -2992,7 +2992,7 @@ const Ka = (e, t) => {
|
|
|
2992
2992
|
}]
|
|
2993
2993
|
}],
|
|
2994
2994
|
"mask-image-radial-pos": [{
|
|
2995
|
-
"mask-radial-at":
|
|
2995
|
+
"mask-radial-at": h()
|
|
2996
2996
|
}],
|
|
2997
2997
|
"mask-image-conic-pos": [{
|
|
2998
2998
|
"mask-conic": [ae]
|
|
@@ -3301,7 +3301,7 @@ const Ka = (e, t) => {
|
|
|
3301
3301
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3302
3302
|
*/
|
|
3303
3303
|
ease: [{
|
|
3304
|
-
ease: ["linear", "initial",
|
|
3304
|
+
ease: ["linear", "initial", g, X, K]
|
|
3305
3305
|
}],
|
|
3306
3306
|
/**
|
|
3307
3307
|
* Transition Delay
|
|
@@ -3332,14 +3332,14 @@ const Ka = (e, t) => {
|
|
|
3332
3332
|
* @see https://tailwindcss.com/docs/perspective
|
|
3333
3333
|
*/
|
|
3334
3334
|
perspective: [{
|
|
3335
|
-
perspective: [
|
|
3335
|
+
perspective: [v, X, K]
|
|
3336
3336
|
}],
|
|
3337
3337
|
/**
|
|
3338
3338
|
* Perspective Origin
|
|
3339
3339
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3340
3340
|
*/
|
|
3341
3341
|
"perspective-origin": [{
|
|
3342
|
-
"perspective-origin":
|
|
3342
|
+
"perspective-origin": b()
|
|
3343
3343
|
}],
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Rotate
|
|
@@ -3435,7 +3435,7 @@ const Ka = (e, t) => {
|
|
|
3435
3435
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3436
3436
|
*/
|
|
3437
3437
|
"transform-origin": [{
|
|
3438
|
-
origin:
|
|
3438
|
+
origin: b()
|
|
3439
3439
|
}],
|
|
3440
3440
|
/**
|
|
3441
3441
|
* Transform Style
|
|
@@ -3844,9 +3844,9 @@ const Hs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Us = dn, z
|
|
|
3844
3844
|
return f === void 0 || (c[m] = f), c;
|
|
3845
3845
|
}, {}), d = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, u) => {
|
|
3846
3846
|
let x = u, { class: m, className: f } = x, p = V(x, ["class", "className"]);
|
|
3847
|
-
return Object.entries(p).every((
|
|
3848
|
-
let [w,
|
|
3849
|
-
return Array.isArray(
|
|
3847
|
+
return Object.entries(p).every((v) => {
|
|
3848
|
+
let [w, g] = v;
|
|
3849
|
+
return Array.isArray(g) ? g.includes(E(E({}, o), l)[w]) : E(E({}, o), l)[w] === g;
|
|
3850
3850
|
}) ? [
|
|
3851
3851
|
...c,
|
|
3852
3852
|
m,
|
|
@@ -4137,7 +4137,7 @@ function Vo() {
|
|
|
4137
4137
|
return "Fragment";
|
|
4138
4138
|
case j:
|
|
4139
4139
|
return "Profiler";
|
|
4140
|
-
case
|
|
4140
|
+
case g:
|
|
4141
4141
|
return "StrictMode";
|
|
4142
4142
|
case k:
|
|
4143
4143
|
return "Suspense";
|
|
@@ -4150,13 +4150,13 @@ function Vo() {
|
|
|
4150
4150
|
switch (typeof D.tag == "number" && console.error(
|
|
4151
4151
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
4152
4152
|
), D.$$typeof) {
|
|
4153
|
-
case
|
|
4153
|
+
case v:
|
|
4154
4154
|
return "Portal";
|
|
4155
|
-
case
|
|
4155
|
+
case h:
|
|
4156
4156
|
return D.displayName || "Context";
|
|
4157
4157
|
case S:
|
|
4158
4158
|
return (D._context.displayName || "Context") + ".Consumer";
|
|
4159
|
-
case
|
|
4159
|
+
case b:
|
|
4160
4160
|
var B = D.render;
|
|
4161
4161
|
return D = D.displayName, D || (D = B.displayName || B.name || "", D = D !== "" ? "ForwardRef(" + D + ")" : "ForwardRef"), D;
|
|
4162
4162
|
case N:
|
|
@@ -4319,7 +4319,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4319
4319
|
function f(D) {
|
|
4320
4320
|
return typeof D == "object" && D !== null && D.$$typeof === x;
|
|
4321
4321
|
}
|
|
4322
|
-
var p = pe, x = Symbol.for("react.transitional.element"),
|
|
4322
|
+
var p = pe, x = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, R = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
4323
4323
|
return null;
|
|
4324
4324
|
};
|
|
4325
4325
|
p = {
|
|
@@ -5378,8 +5378,8 @@ function Xs({
|
|
|
5378
5378
|
) : null;
|
|
5379
5379
|
}
|
|
5380
5380
|
const re = Ee(
|
|
5381
|
-
he(function(w,
|
|
5382
|
-
var
|
|
5381
|
+
he(function(w, v) {
|
|
5382
|
+
var g = w, {
|
|
5383
5383
|
variant: t = "primary",
|
|
5384
5384
|
size: r = "md",
|
|
5385
5385
|
isLoading: s = !1,
|
|
@@ -5393,7 +5393,7 @@ const re = Ee(
|
|
|
5393
5393
|
disabled: m = !1,
|
|
5394
5394
|
children: f,
|
|
5395
5395
|
"aria-label": p
|
|
5396
|
-
} =
|
|
5396
|
+
} = g, x = V(g, [
|
|
5397
5397
|
"variant",
|
|
5398
5398
|
"size",
|
|
5399
5399
|
"isLoading",
|
|
@@ -5421,23 +5421,23 @@ const re = Ee(
|
|
|
5421
5421
|
), S = z(
|
|
5422
5422
|
() => t === "iconOnly" || !f && (i || l),
|
|
5423
5423
|
[t, f, i, l]
|
|
5424
|
-
),
|
|
5424
|
+
), h = z(
|
|
5425
5425
|
() => S && !p && !f ? "Button" : p,
|
|
5426
5426
|
[S, p, f]
|
|
5427
|
-
),
|
|
5427
|
+
), b = z(() => t === "error" ? "primary" : t === "primary" || t === "secondary" ? "neutral" : "primary", [t]), k = z(
|
|
5428
5428
|
() => r === "sm" ? "sm" : r === "lg" ? "lg" : "md",
|
|
5429
5429
|
[r]
|
|
5430
5430
|
), F = z(
|
|
5431
|
-
() => o || /* @__PURE__ */ n.jsx(En, { size: k, variant:
|
|
5432
|
-
[o, k,
|
|
5431
|
+
() => o || /* @__PURE__ */ n.jsx(En, { size: k, variant: b }),
|
|
5432
|
+
[o, k, b]
|
|
5433
5433
|
), N = c === "button" && !x.type ? "button" : void 0, A = E(E({
|
|
5434
5434
|
className: j,
|
|
5435
5435
|
disabled: m || s,
|
|
5436
5436
|
"aria-busy": s,
|
|
5437
|
-
"aria-label":
|
|
5437
|
+
"aria-label": h,
|
|
5438
5438
|
"aria-disabled": m || s
|
|
5439
5439
|
}, N ? { type: N } : {}), x);
|
|
5440
|
-
return /* @__PURE__ */ n.jsx(c, _(E({ ref:
|
|
5440
|
+
return /* @__PURE__ */ n.jsx(c, _(E({ ref: v }, A), { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5441
5441
|
F,
|
|
5442
5442
|
a && /* @__PURE__ */ n.jsx("span", { className: "ml-2", children: a }),
|
|
5443
5443
|
!a && f && /* @__PURE__ */ n.jsx("span", { className: "ml-2 opacity-0", children: f })
|
|
@@ -5480,7 +5480,7 @@ const Ki = Ee(function({
|
|
|
5480
5480
|
);
|
|
5481
5481
|
}), De = Ee(
|
|
5482
5482
|
he(function(S, j) {
|
|
5483
|
-
var
|
|
5483
|
+
var h = S, {
|
|
5484
5484
|
id: t,
|
|
5485
5485
|
label: r,
|
|
5486
5486
|
error: s = !1,
|
|
@@ -5495,9 +5495,9 @@ const Ki = Ee(function({
|
|
|
5495
5495
|
className: f = "",
|
|
5496
5496
|
disabled: p = !1,
|
|
5497
5497
|
type: x = "text",
|
|
5498
|
-
value:
|
|
5498
|
+
value: v,
|
|
5499
5499
|
onChange: w
|
|
5500
|
-
} =
|
|
5500
|
+
} = h, g = V(h, [
|
|
5501
5501
|
"id",
|
|
5502
5502
|
"label",
|
|
5503
5503
|
"error",
|
|
@@ -5515,15 +5515,15 @@ const Ki = Ee(function({
|
|
|
5515
5515
|
"value",
|
|
5516
5516
|
"onChange"
|
|
5517
5517
|
]);
|
|
5518
|
-
const
|
|
5518
|
+
const b = z(
|
|
5519
5519
|
() => t || `input-${Math.random().toString(36).substr(2, 9)}`,
|
|
5520
5520
|
[t]
|
|
5521
5521
|
), k = z(
|
|
5522
|
-
() => s ? `${
|
|
5523
|
-
[s,
|
|
5522
|
+
() => s ? `${b}-error` : void 0,
|
|
5523
|
+
[s, b]
|
|
5524
5524
|
), F = z(
|
|
5525
|
-
() => o ? `${
|
|
5526
|
-
[o,
|
|
5525
|
+
() => o ? `${b}-helper` : void 0,
|
|
5526
|
+
[o, b]
|
|
5527
5527
|
), [N, A] = P(!1), L = z(() => x === "password", [x]), T = z(
|
|
5528
5528
|
() => L && N ? "text" : x,
|
|
5529
5529
|
[L, N, x]
|
|
@@ -5531,8 +5531,8 @@ const Ki = Ee(function({
|
|
|
5531
5531
|
() => s ? "error" : a ? "success" : "default",
|
|
5532
5532
|
[s, a]
|
|
5533
5533
|
), I = z(
|
|
5534
|
-
() =>
|
|
5535
|
-
[
|
|
5534
|
+
() => v != null && v !== "",
|
|
5535
|
+
[v]
|
|
5536
5536
|
), R = z(
|
|
5537
5537
|
() => u && I && !p,
|
|
5538
5538
|
[u, I, p]
|
|
@@ -5685,7 +5685,7 @@ const Ki = Ee(function({
|
|
|
5685
5685
|
A((W) => !W);
|
|
5686
5686
|
}, []);
|
|
5687
5687
|
return /* @__PURE__ */ n.jsxs("div", { className: "w-full", children: [
|
|
5688
|
-
r && /* @__PURE__ */ n.jsx("label", { htmlFor:
|
|
5688
|
+
r && /* @__PURE__ */ n.jsx("label", { htmlFor: b, className: B, children: r }),
|
|
5689
5689
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
5690
5690
|
d && /* @__PURE__ */ n.jsx(
|
|
5691
5691
|
"div",
|
|
@@ -5697,18 +5697,18 @@ const Ki = Ee(function({
|
|
|
5697
5697
|
/* @__PURE__ */ n.jsx(
|
|
5698
5698
|
"input",
|
|
5699
5699
|
E({
|
|
5700
|
-
id:
|
|
5700
|
+
id: b,
|
|
5701
5701
|
ref: j,
|
|
5702
5702
|
type: T,
|
|
5703
5703
|
className: D,
|
|
5704
5704
|
disabled: p,
|
|
5705
|
-
value:
|
|
5705
|
+
value: v,
|
|
5706
5706
|
onChange: w,
|
|
5707
5707
|
"aria-invalid": s,
|
|
5708
|
-
"aria-required":
|
|
5708
|
+
"aria-required": g.required,
|
|
5709
5709
|
"aria-describedby": k || F,
|
|
5710
5710
|
suppressHydrationWarning: !0
|
|
5711
|
-
},
|
|
5711
|
+
}, g)
|
|
5712
5712
|
),
|
|
5713
5713
|
/* @__PURE__ */ n.jsxs("div", { className: "absolute right-3 top-0 bottom-0 flex items-center gap-1", children: [
|
|
5714
5714
|
R && /* @__PURE__ */ n.jsx(
|
|
@@ -5898,7 +5898,7 @@ function Tn(f) {
|
|
|
5898
5898
|
"onClick",
|
|
5899
5899
|
"onKeyDown"
|
|
5900
5900
|
]);
|
|
5901
|
-
const x = z(() => r !== void 0 ? r : !1, [r]), { NextLink:
|
|
5901
|
+
const x = z(() => r !== void 0 ? r : !1, [r]), { NextLink: v } = Xi({ href: e, active: x }), w = i || v || "a", g = z(() => {
|
|
5902
5902
|
if (!x) return "";
|
|
5903
5903
|
switch (a) {
|
|
5904
5904
|
case "underline":
|
|
@@ -5910,28 +5910,28 @@ function Tn(f) {
|
|
|
5910
5910
|
return y("text-fg-brand-emphasis", "font-semibold");
|
|
5911
5911
|
}
|
|
5912
5912
|
}, [x, a]), j = Y(
|
|
5913
|
-
(
|
|
5913
|
+
(b) => {
|
|
5914
5914
|
if (s) {
|
|
5915
|
-
|
|
5915
|
+
b.preventDefault(), b.stopPropagation();
|
|
5916
5916
|
return;
|
|
5917
5917
|
}
|
|
5918
|
-
c == null || c(
|
|
5918
|
+
c == null || c(b);
|
|
5919
5919
|
},
|
|
5920
5920
|
[s, c]
|
|
5921
5921
|
), S = Y(
|
|
5922
|
-
(
|
|
5922
|
+
(b) => {
|
|
5923
5923
|
if (s) {
|
|
5924
|
-
(
|
|
5924
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), b.stopPropagation());
|
|
5925
5925
|
return;
|
|
5926
5926
|
}
|
|
5927
|
-
u == null || u(
|
|
5927
|
+
u == null || u(b);
|
|
5928
5928
|
},
|
|
5929
5929
|
[s, u]
|
|
5930
|
-
),
|
|
5931
|
-
const
|
|
5930
|
+
), h = z(() => {
|
|
5931
|
+
const b = E({
|
|
5932
5932
|
className: y(
|
|
5933
5933
|
Ji({ variant: a, size: o }),
|
|
5934
|
-
|
|
5934
|
+
g,
|
|
5935
5935
|
s && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
5936
5936
|
l
|
|
5937
5937
|
),
|
|
@@ -5944,15 +5944,15 @@ function Tn(f) {
|
|
|
5944
5944
|
"data-active": x,
|
|
5945
5945
|
"data-disabled": s
|
|
5946
5946
|
}, m);
|
|
5947
|
-
return
|
|
5947
|
+
return v && !i ? _(E({}, b), {
|
|
5948
5948
|
href: s ? void 0 : e
|
|
5949
|
-
}) : _(E({},
|
|
5949
|
+
}) : _(E({}, b), {
|
|
5950
5950
|
href: s ? void 0 : e
|
|
5951
5951
|
});
|
|
5952
5952
|
}, [
|
|
5953
5953
|
a,
|
|
5954
5954
|
o,
|
|
5955
|
-
|
|
5955
|
+
g,
|
|
5956
5956
|
s,
|
|
5957
5957
|
l,
|
|
5958
5958
|
x,
|
|
@@ -5960,11 +5960,11 @@ function Tn(f) {
|
|
|
5960
5960
|
j,
|
|
5961
5961
|
S,
|
|
5962
5962
|
e,
|
|
5963
|
-
|
|
5963
|
+
v,
|
|
5964
5964
|
i,
|
|
5965
5965
|
m
|
|
5966
5966
|
]);
|
|
5967
|
-
return /* @__PURE__ */ n.jsx(w, _(E({},
|
|
5967
|
+
return /* @__PURE__ */ n.jsx(w, _(E({}, h), { children: t }));
|
|
5968
5968
|
}
|
|
5969
5969
|
const Zi = $e(
|
|
5970
5970
|
// Base classes
|
|
@@ -6178,7 +6178,7 @@ const el = Ee(function({
|
|
|
6178
6178
|
);
|
|
6179
6179
|
}), is = Ee(
|
|
6180
6180
|
he(function(x, p) {
|
|
6181
|
-
var
|
|
6181
|
+
var v = x, {
|
|
6182
6182
|
options: t = [],
|
|
6183
6183
|
optionGroups: r,
|
|
6184
6184
|
placeholder: s,
|
|
@@ -6190,7 +6190,7 @@ const el = Ee(function({
|
|
|
6190
6190
|
className: c = "",
|
|
6191
6191
|
disabled: u = !1,
|
|
6192
6192
|
id: m
|
|
6193
|
-
} =
|
|
6193
|
+
} = v, f = V(v, [
|
|
6194
6194
|
"options",
|
|
6195
6195
|
"optionGroups",
|
|
6196
6196
|
"placeholder",
|
|
@@ -6206,15 +6206,15 @@ const el = Ee(function({
|
|
|
6206
6206
|
const w = z(
|
|
6207
6207
|
() => m || `select-${Math.random().toString(36).substr(2, 9)}`,
|
|
6208
6208
|
[m]
|
|
6209
|
-
),
|
|
6209
|
+
), g = z(
|
|
6210
6210
|
() => o ? `${w}-error` : void 0,
|
|
6211
6211
|
[o, w]
|
|
6212
6212
|
), j = z(
|
|
6213
6213
|
() => l ? `${w}-helper` : void 0,
|
|
6214
6214
|
[l, w]
|
|
6215
|
-
), S = z(() => "focus:border-line-focus", []),
|
|
6216
|
-
(T) => T === "error" ?
|
|
6217
|
-
[
|
|
6215
|
+
), S = z(() => "focus:border-line-focus", []), h = z(() => "focus:border-error", []), b = z(() => "focus:border-success", []), k = Y(
|
|
6216
|
+
(T) => T === "error" ? h.replace("focus:border-", "focus:ring-") : T === "success" ? b.replace("focus:border-", "focus:ring-") : S.replace("focus:border-", "focus:ring-"),
|
|
6217
|
+
[h, b, S]
|
|
6218
6218
|
), F = $e(
|
|
6219
6219
|
// Base classes
|
|
6220
6220
|
y(
|
|
@@ -6286,7 +6286,7 @@ const el = Ee(function({
|
|
|
6286
6286
|
disabled: u,
|
|
6287
6287
|
"aria-invalid": o,
|
|
6288
6288
|
"aria-required": f.required,
|
|
6289
|
-
"aria-describedby":
|
|
6289
|
+
"aria-describedby": g || j
|
|
6290
6290
|
}, f), {
|
|
6291
6291
|
children: [
|
|
6292
6292
|
s && /* @__PURE__ */ n.jsx("option", { value: "", disabled: !0, children: s }),
|
|
@@ -6316,7 +6316,7 @@ const el = Ee(function({
|
|
|
6316
6316
|
error: o,
|
|
6317
6317
|
success: i,
|
|
6318
6318
|
helperText: l,
|
|
6319
|
-
errorId:
|
|
6319
|
+
errorId: g,
|
|
6320
6320
|
helperId: j
|
|
6321
6321
|
}
|
|
6322
6322
|
)
|
|
@@ -6496,18 +6496,18 @@ function hr(d) {
|
|
|
6496
6496
|
"aria-label",
|
|
6497
6497
|
"preservePositioning"
|
|
6498
6498
|
]);
|
|
6499
|
-
const [u, m] = P(!1), f = te(null), p = te(null), x = te(null),
|
|
6499
|
+
const [u, m] = P(!1), f = te(null), p = te(null), x = te(null), v = `tooltip-${Math.random().toString(36).substr(2, 9)}`, w = () => {
|
|
6500
6500
|
const L = setTimeout(() => {
|
|
6501
6501
|
m(!0);
|
|
6502
6502
|
}, s);
|
|
6503
6503
|
f.current = L;
|
|
6504
|
-
},
|
|
6504
|
+
}, g = () => {
|
|
6505
6505
|
f.current && (clearTimeout(f.current), f.current = null), m(!1);
|
|
6506
6506
|
}, j = () => {
|
|
6507
6507
|
m(!0);
|
|
6508
6508
|
}, S = () => {
|
|
6509
6509
|
m(!1);
|
|
6510
|
-
},
|
|
6510
|
+
}, h = (L) => {
|
|
6511
6511
|
var T;
|
|
6512
6512
|
L.key === "Escape" && (m(!1), (T = x.current) == null || T.blur());
|
|
6513
6513
|
};
|
|
@@ -6522,7 +6522,7 @@ function hr(d) {
|
|
|
6522
6522
|
document.removeEventListener("mousedown", L);
|
|
6523
6523
|
};
|
|
6524
6524
|
}, [u]);
|
|
6525
|
-
const
|
|
6525
|
+
const b = (L) => ({
|
|
6526
6526
|
top: "border-t-surface-inverse",
|
|
6527
6527
|
bottom: "border-b-surface-inverse",
|
|
6528
6528
|
left: "border-l-surface-inverse",
|
|
@@ -6593,28 +6593,28 @@ function hr(d) {
|
|
|
6593
6593
|
"left-1/2",
|
|
6594
6594
|
"transform",
|
|
6595
6595
|
"-translate-x-1/2",
|
|
6596
|
-
|
|
6596
|
+
b("top")
|
|
6597
6597
|
),
|
|
6598
6598
|
bottom: y(
|
|
6599
6599
|
"bottom-full",
|
|
6600
6600
|
"left-1/2",
|
|
6601
6601
|
"transform",
|
|
6602
6602
|
"-translate-x-1/2",
|
|
6603
|
-
|
|
6603
|
+
b("bottom")
|
|
6604
6604
|
),
|
|
6605
6605
|
left: y(
|
|
6606
6606
|
"left-full",
|
|
6607
6607
|
"top-1/2",
|
|
6608
6608
|
"transform",
|
|
6609
6609
|
"-translate-y-1/2",
|
|
6610
|
-
|
|
6610
|
+
b("left")
|
|
6611
6611
|
),
|
|
6612
6612
|
right: y(
|
|
6613
6613
|
"right-full",
|
|
6614
6614
|
"top-1/2",
|
|
6615
6615
|
"transform",
|
|
6616
6616
|
"-translate-y-1/2",
|
|
6617
|
-
|
|
6617
|
+
b("right")
|
|
6618
6618
|
)
|
|
6619
6619
|
}
|
|
6620
6620
|
},
|
|
@@ -6628,14 +6628,14 @@ function hr(d) {
|
|
|
6628
6628
|
ref: (I) => {
|
|
6629
6629
|
x.current = I, typeof M == "function" ? M(I) : M && typeof M == "object" && "current" in M && (M.current = I);
|
|
6630
6630
|
},
|
|
6631
|
-
"aria-describedby": u ?
|
|
6631
|
+
"aria-describedby": u ? v : T["aria-describedby"],
|
|
6632
6632
|
onMouseEnter: (I) => {
|
|
6633
6633
|
var R;
|
|
6634
6634
|
w(), (R = T.onMouseEnter) == null || R.call(T, I);
|
|
6635
6635
|
},
|
|
6636
6636
|
onMouseLeave: (I) => {
|
|
6637
6637
|
var R;
|
|
6638
|
-
|
|
6638
|
+
g(), (R = T.onMouseLeave) == null || R.call(T, I);
|
|
6639
6639
|
},
|
|
6640
6640
|
onFocus: (I) => {
|
|
6641
6641
|
var R;
|
|
@@ -6647,7 +6647,7 @@ function hr(d) {
|
|
|
6647
6647
|
},
|
|
6648
6648
|
onKeyDown: (I) => {
|
|
6649
6649
|
var R;
|
|
6650
|
-
|
|
6650
|
+
h(I), (R = T.onKeyDown) == null || R.call(T, I);
|
|
6651
6651
|
}
|
|
6652
6652
|
});
|
|
6653
6653
|
})() : t, A = y(i ? "static" : "relative", "inline-block", a);
|
|
@@ -6657,7 +6657,7 @@ function hr(d) {
|
|
|
6657
6657
|
"div",
|
|
6658
6658
|
{
|
|
6659
6659
|
ref: p,
|
|
6660
|
-
id:
|
|
6660
|
+
id: v,
|
|
6661
6661
|
className: y(k({ position: r })),
|
|
6662
6662
|
role: "tooltip",
|
|
6663
6663
|
"aria-live": "polite",
|
|
@@ -6705,14 +6705,14 @@ function nl(l) {
|
|
|
6705
6705
|
"aria-busy": "true",
|
|
6706
6706
|
"aria-label": p
|
|
6707
6707
|
}, i), {
|
|
6708
|
-
children: Array.from({ length: s }).map((x,
|
|
6708
|
+
children: Array.from({ length: s }).map((x, v) => /* @__PURE__ */ n.jsx(
|
|
6709
6709
|
"div",
|
|
6710
6710
|
{
|
|
6711
6711
|
className: m,
|
|
6712
|
-
style:
|
|
6712
|
+
style: v === s - 1 ? { width: "75%" } : f,
|
|
6713
6713
|
"aria-hidden": "true"
|
|
6714
6714
|
},
|
|
6715
|
-
|
|
6715
|
+
v
|
|
6716
6716
|
))
|
|
6717
6717
|
})
|
|
6718
6718
|
) : /* @__PURE__ */ n.jsx(
|
|
@@ -6784,7 +6784,7 @@ function ol(u) {
|
|
|
6784
6784
|
open: s,
|
|
6785
6785
|
onOpenChange: a,
|
|
6786
6786
|
storageKey: l
|
|
6787
|
-
}), x = te(null), [
|
|
6787
|
+
}), x = te(null), [v, w] = P(f ? "auto" : 0);
|
|
6788
6788
|
J(() => {
|
|
6789
6789
|
x.current && w(f ? x.current.scrollHeight : 0);
|
|
6790
6790
|
}, [f, e]), J(() => {
|
|
@@ -6796,7 +6796,7 @@ function ol(u) {
|
|
|
6796
6796
|
j.disconnect();
|
|
6797
6797
|
};
|
|
6798
6798
|
}, [f]);
|
|
6799
|
-
const
|
|
6799
|
+
const g = `collapsible-content-${Math.random().toString(36).substr(2, 9)}`;
|
|
6800
6800
|
return /* @__PURE__ */ n.jsxs("div", _(E({ className: d }, c), { children: [
|
|
6801
6801
|
/* @__PURE__ */ n.jsx(
|
|
6802
6802
|
"button",
|
|
@@ -6808,7 +6808,7 @@ function ol(u) {
|
|
|
6808
6808
|
},
|
|
6809
6809
|
disabled: o,
|
|
6810
6810
|
"aria-expanded": f,
|
|
6811
|
-
"aria-controls":
|
|
6811
|
+
"aria-controls": g,
|
|
6812
6812
|
"aria-disabled": o,
|
|
6813
6813
|
className: y(
|
|
6814
6814
|
"w-full",
|
|
@@ -6825,10 +6825,10 @@ function ol(u) {
|
|
|
6825
6825
|
/* @__PURE__ */ n.jsx(
|
|
6826
6826
|
"div",
|
|
6827
6827
|
{
|
|
6828
|
-
id:
|
|
6828
|
+
id: g,
|
|
6829
6829
|
ref: x,
|
|
6830
6830
|
style: {
|
|
6831
|
-
height: typeof
|
|
6831
|
+
height: typeof v == "number" ? `${v}px` : v,
|
|
6832
6832
|
overflow: "hidden",
|
|
6833
6833
|
transition: `height ${i}ms ease-in-out`
|
|
6834
6834
|
},
|
|
@@ -6866,9 +6866,9 @@ const ls = Ee(
|
|
|
6866
6866
|
), x = z(
|
|
6867
6867
|
() => a ? `${f}-helper` : void 0,
|
|
6868
6868
|
[a, f]
|
|
6869
|
-
),
|
|
6870
|
-
() => s ? w.replace("focus:border-", "focus:ring-") :
|
|
6871
|
-
[s, w,
|
|
6869
|
+
), v = z(() => "focus:border-line-focus", []), w = z(() => "focus:border-error", []), g = z(
|
|
6870
|
+
() => s ? w.replace("focus:border-", "focus:ring-") : v.replace("focus:border-", "focus:ring-"),
|
|
6871
|
+
[s, w, v]
|
|
6872
6872
|
), j = z(
|
|
6873
6873
|
() => y(
|
|
6874
6874
|
"h-4",
|
|
@@ -6878,7 +6878,7 @@ const ls = Ee(
|
|
|
6878
6878
|
"border-line-default",
|
|
6879
6879
|
"text-fg-brand",
|
|
6880
6880
|
"focus:ring-2",
|
|
6881
|
-
|
|
6881
|
+
g,
|
|
6882
6882
|
"focus:ring-offset-2",
|
|
6883
6883
|
"disabled:opacity-50",
|
|
6884
6884
|
"disabled:cursor-not-allowed",
|
|
@@ -6886,7 +6886,7 @@ const ls = Ee(
|
|
|
6886
6886
|
s && "border-error",
|
|
6887
6887
|
o
|
|
6888
6888
|
),
|
|
6889
|
-
[
|
|
6889
|
+
[g, s, o]
|
|
6890
6890
|
), S = z(
|
|
6891
6891
|
() => y(
|
|
6892
6892
|
xe("label"),
|
|
@@ -6894,14 +6894,14 @@ const ls = Ee(
|
|
|
6894
6894
|
i ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
6895
6895
|
),
|
|
6896
6896
|
[i]
|
|
6897
|
-
),
|
|
6897
|
+
), h = te(null), b = Y(
|
|
6898
6898
|
(k) => {
|
|
6899
|
-
|
|
6899
|
+
h.current = k, typeof c == "function" ? c(k) : c && (c.current = k), k && (k.indeterminate = l);
|
|
6900
6900
|
},
|
|
6901
6901
|
[c, l]
|
|
6902
6902
|
);
|
|
6903
6903
|
return J(() => {
|
|
6904
|
-
|
|
6904
|
+
h.current && (h.current.indeterminate = l);
|
|
6905
6905
|
}, [l]), /* @__PURE__ */ n.jsxs("div", { className: y("flex", "flex-col", C("sm", "my")), children: [
|
|
6906
6906
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
6907
6907
|
/* @__PURE__ */ n.jsx(
|
|
@@ -6909,7 +6909,7 @@ const ls = Ee(
|
|
|
6909
6909
|
E({
|
|
6910
6910
|
type: "checkbox",
|
|
6911
6911
|
id: f,
|
|
6912
|
-
ref:
|
|
6912
|
+
ref: b,
|
|
6913
6913
|
className: j,
|
|
6914
6914
|
disabled: i,
|
|
6915
6915
|
"aria-invalid": s,
|
|
@@ -6962,10 +6962,10 @@ const il = Ee(
|
|
|
6962
6962
|
), p = z(
|
|
6963
6963
|
() => a ? `${m}-helper` : void 0,
|
|
6964
6964
|
[a, m]
|
|
6965
|
-
), x = z(() => "focus:border-line-focus", []),
|
|
6966
|
-
() => s ?
|
|
6967
|
-
[s,
|
|
6968
|
-
),
|
|
6965
|
+
), x = z(() => "focus:border-line-focus", []), v = z(() => "focus:border-error", []), w = z(
|
|
6966
|
+
() => s ? v.replace("focus:border-", "focus:ring-") : x.replace("focus:border-", "focus:ring-"),
|
|
6967
|
+
[s, v, x]
|
|
6968
|
+
), g = z(
|
|
6969
6969
|
() => y(
|
|
6970
6970
|
"h-4",
|
|
6971
6971
|
"w-4",
|
|
@@ -6998,7 +6998,7 @@ const il = Ee(
|
|
|
6998
6998
|
type: "radio",
|
|
6999
6999
|
id: m,
|
|
7000
7000
|
ref: d,
|
|
7001
|
-
className:
|
|
7001
|
+
className: g,
|
|
7002
7002
|
disabled: i,
|
|
7003
7003
|
"aria-invalid": s,
|
|
7004
7004
|
"aria-describedby": f || p || void 0,
|
|
@@ -7179,7 +7179,7 @@ const dl = $e("w-full", {
|
|
|
7179
7179
|
"aria-label",
|
|
7180
7180
|
"className"
|
|
7181
7181
|
]);
|
|
7182
|
-
const p = t === void 0, x = p ? void 0 : Math.min(Math.max(t / r * 100, 0), 100),
|
|
7182
|
+
const p = t === void 0, x = p ? void 0 : Math.min(Math.max(t / r * 100, 0), 100), v = l || (p ? "Loading in progress" : `Progress: ${x == null ? void 0 : x.toFixed(0)}%`);
|
|
7183
7183
|
return /* @__PURE__ */ n.jsxs("div", _(E({ ref: u, className: y("w-full", d) }, c), { children: [
|
|
7184
7184
|
o && (i || !p) && /* @__PURE__ */ n.jsxs(
|
|
7185
7185
|
"div",
|
|
@@ -7225,7 +7225,7 @@ const dl = $e("w-full", {
|
|
|
7225
7225
|
"aria-valuemin": p ? void 0 : 0,
|
|
7226
7226
|
"aria-valuemax": p ? void 0 : r,
|
|
7227
7227
|
"aria-valuenow": p ? void 0 : t,
|
|
7228
|
-
"aria-label":
|
|
7228
|
+
"aria-label": v,
|
|
7229
7229
|
"aria-busy": p,
|
|
7230
7230
|
className: y(
|
|
7231
7231
|
"relative",
|
|
@@ -7299,13 +7299,13 @@ const ul = Ee(
|
|
|
7299
7299
|
const x = z(
|
|
7300
7300
|
() => c || `switch-${Math.random().toString(36).substr(2, 9)}`,
|
|
7301
7301
|
[c]
|
|
7302
|
-
),
|
|
7302
|
+
), v = z(
|
|
7303
7303
|
() => r ? `${x}-label` : void 0,
|
|
7304
7304
|
[r, x]
|
|
7305
7305
|
), w = z(
|
|
7306
7306
|
() => s ? `${x}-description` : void 0,
|
|
7307
7307
|
[s, x]
|
|
7308
|
-
),
|
|
7308
|
+
), g = z(() => cl(t), [t]), j = z(
|
|
7309
7309
|
() => "focus:border-line-focus".replace("focus:border-", "focus:ring-"),
|
|
7310
7310
|
[]
|
|
7311
7311
|
), S = z(
|
|
@@ -7322,14 +7322,14 @@ const ul = Ee(
|
|
|
7322
7322
|
"focus:ring-2",
|
|
7323
7323
|
j,
|
|
7324
7324
|
"focus:ring-offset-2",
|
|
7325
|
-
|
|
7325
|
+
g.track,
|
|
7326
7326
|
l ? "bg-surface-brand" : "bg-surface-muted",
|
|
7327
7327
|
a && !l && "border-error",
|
|
7328
7328
|
i && "opacity-50 cursor-not-allowed",
|
|
7329
7329
|
o
|
|
7330
7330
|
),
|
|
7331
|
-
[j,
|
|
7332
|
-
),
|
|
7331
|
+
[j, g.track, l, a, i, o]
|
|
7332
|
+
), h = z(
|
|
7333
7333
|
() => y(
|
|
7334
7334
|
"pointer-events-none",
|
|
7335
7335
|
"inline-block",
|
|
@@ -7338,10 +7338,10 @@ const ul = Ee(
|
|
|
7338
7338
|
"shadow",
|
|
7339
7339
|
"transform",
|
|
7340
7340
|
Se("base"),
|
|
7341
|
-
|
|
7342
|
-
l ?
|
|
7341
|
+
g.thumb,
|
|
7342
|
+
l ? g.translate : "translate-x-0"
|
|
7343
7343
|
),
|
|
7344
|
-
[
|
|
7344
|
+
[g.thumb, g.translate, l]
|
|
7345
7345
|
);
|
|
7346
7346
|
return /* @__PURE__ */ n.jsxs("div", { className: y("flex", "items-start", C("md", "gap")), children: [
|
|
7347
7347
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center", children: [
|
|
@@ -7352,15 +7352,15 @@ const ul = Ee(
|
|
|
7352
7352
|
className: S,
|
|
7353
7353
|
role: "switch",
|
|
7354
7354
|
"aria-checked": l,
|
|
7355
|
-
"aria-labelledby":
|
|
7355
|
+
"aria-labelledby": v,
|
|
7356
7356
|
"aria-describedby": w,
|
|
7357
7357
|
disabled: i,
|
|
7358
7358
|
onClick: Y(
|
|
7359
|
-
(
|
|
7359
|
+
(b) => {
|
|
7360
7360
|
if (!i && d) {
|
|
7361
|
-
const k = _(E({},
|
|
7362
|
-
target: _(E({},
|
|
7363
|
-
currentTarget: _(E({},
|
|
7361
|
+
const k = _(E({}, b), {
|
|
7362
|
+
target: _(E({}, b.target), { checked: !l }),
|
|
7363
|
+
currentTarget: _(E({}, b.currentTarget), { checked: !l })
|
|
7364
7364
|
});
|
|
7365
7365
|
d(k);
|
|
7366
7366
|
}
|
|
@@ -7368,19 +7368,19 @@ const ul = Ee(
|
|
|
7368
7368
|
[i, d, l]
|
|
7369
7369
|
),
|
|
7370
7370
|
onKeyDown: Y(
|
|
7371
|
-
(
|
|
7372
|
-
if ((
|
|
7373
|
-
|
|
7374
|
-
const k = _(E({},
|
|
7375
|
-
target: _(E({},
|
|
7376
|
-
currentTarget: _(E({},
|
|
7371
|
+
(b) => {
|
|
7372
|
+
if ((b.key === "Enter" || b.key === " ") && !i && d) {
|
|
7373
|
+
b.preventDefault();
|
|
7374
|
+
const k = _(E({}, b), {
|
|
7375
|
+
target: _(E({}, b.target), { checked: !l }),
|
|
7376
|
+
currentTarget: _(E({}, b.currentTarget), { checked: !l })
|
|
7377
7377
|
});
|
|
7378
7378
|
d(k);
|
|
7379
7379
|
}
|
|
7380
7380
|
},
|
|
7381
7381
|
[i, d, l]
|
|
7382
7382
|
),
|
|
7383
|
-
children: /* @__PURE__ */ n.jsx("span", { className:
|
|
7383
|
+
children: /* @__PURE__ */ n.jsx("span", { className: h })
|
|
7384
7384
|
}
|
|
7385
7385
|
),
|
|
7386
7386
|
/* @__PURE__ */ n.jsx(
|
|
@@ -7393,7 +7393,8 @@ const ul = Ee(
|
|
|
7393
7393
|
onChange: d,
|
|
7394
7394
|
disabled: i,
|
|
7395
7395
|
className: "sr-only",
|
|
7396
|
-
"aria-hidden": "true"
|
|
7396
|
+
"aria-hidden": "true",
|
|
7397
|
+
tabIndex: -1
|
|
7397
7398
|
}, u)
|
|
7398
7399
|
)
|
|
7399
7400
|
] }),
|
|
@@ -7401,7 +7402,7 @@ const ul = Ee(
|
|
|
7401
7402
|
r && /* @__PURE__ */ n.jsx(
|
|
7402
7403
|
"label",
|
|
7403
7404
|
{
|
|
7404
|
-
id:
|
|
7405
|
+
id: v,
|
|
7405
7406
|
htmlFor: x,
|
|
7406
7407
|
className: y(
|
|
7407
7408
|
"block",
|
|
@@ -7473,8 +7474,8 @@ const In = Ee(function(o) {
|
|
|
7473
7474
|
);
|
|
7474
7475
|
});
|
|
7475
7476
|
In.displayName = "Separator";
|
|
7476
|
-
const fl = he(function(
|
|
7477
|
-
var j =
|
|
7477
|
+
const fl = he(function(g, w) {
|
|
7478
|
+
var j = g, {
|
|
7478
7479
|
value: t,
|
|
7479
7480
|
defaultValue: r,
|
|
7480
7481
|
min: s = 0,
|
|
@@ -7489,7 +7490,7 @@ const fl = he(function(h, w) {
|
|
|
7489
7490
|
onValueChange: f,
|
|
7490
7491
|
label: p,
|
|
7491
7492
|
className: x = ""
|
|
7492
|
-
} = j,
|
|
7493
|
+
} = j, v = V(j, [
|
|
7493
7494
|
"value",
|
|
7494
7495
|
"defaultValue",
|
|
7495
7496
|
"min",
|
|
@@ -7505,9 +7506,9 @@ const fl = he(function(h, w) {
|
|
|
7505
7506
|
"label",
|
|
7506
7507
|
"className"
|
|
7507
7508
|
]);
|
|
7508
|
-
const S = te(null), [
|
|
7509
|
+
const S = te(null), [h, b] = P(
|
|
7509
7510
|
r || (i === "range" ? [s, a] : s)
|
|
7510
|
-
), [k, F] = P(!1), [N, A] = P(null), L = t !== void 0, T = L ? t :
|
|
7511
|
+
), [k, F] = P(!1), [N, A] = P(null), L = t !== void 0, T = L ? t : h, M = (U) => (U - s) / (a - s) * 100, I = (U) => {
|
|
7511
7512
|
if (!S.current) return s;
|
|
7512
7513
|
const q = S.current.getBoundingClientRect(), W = Math.max(
|
|
7513
7514
|
0,
|
|
@@ -7530,9 +7531,9 @@ const fl = he(function(h, w) {
|
|
|
7530
7531
|
if (i === "range") {
|
|
7531
7532
|
const [le, ue] = Array.isArray(T) ? T : [s, a];
|
|
7532
7533
|
let fe;
|
|
7533
|
-
q === "min" ? fe = [Math.min(W, ue), ue] : fe = [le, Math.max(W, le)], L ||
|
|
7534
|
+
q === "min" ? fe = [Math.min(W, ue), ue] : fe = [le, Math.max(W, le)], L || b(fe), m == null || m(fe), f == null || f(fe);
|
|
7534
7535
|
} else
|
|
7535
|
-
L ||
|
|
7536
|
+
L || b(W), m == null || m(W), f == null || f(W);
|
|
7536
7537
|
}, Z = (U) => {
|
|
7537
7538
|
if (d || k) return;
|
|
7538
7539
|
const q = I(U.clientX);
|
|
@@ -7586,7 +7587,7 @@ const fl = he(function(h, w) {
|
|
|
7586
7587
|
}
|
|
7587
7588
|
}
|
|
7588
7589
|
), ie = typeof T == "number" ? T : T[0], D = Array.isArray(T) ? T[0] : s, B = Array.isArray(T) ? T[1] : ie, Q = M(D), se = M(B);
|
|
7589
|
-
return /* @__PURE__ */ n.jsxs("div", _(E({ ref: w, className: y("w-full", x) },
|
|
7590
|
+
return /* @__PURE__ */ n.jsxs("div", _(E({ ref: w, className: y("w-full", x) }, v), { children: [
|
|
7590
7591
|
p && /* @__PURE__ */ n.jsxs(
|
|
7591
7592
|
"label",
|
|
7592
7593
|
{
|
|
@@ -7835,16 +7836,16 @@ const ml = $e(
|
|
|
7835
7836
|
"onClick",
|
|
7836
7837
|
"tabIndex"
|
|
7837
7838
|
]);
|
|
7838
|
-
const
|
|
7839
|
+
const v = c !== void 0 || o !== !1 && o !== void 0, w = o ? "option" : v ? "button" : void 0, j = (() => {
|
|
7839
7840
|
if (d) return d;
|
|
7840
7841
|
if (typeof t == "string") return t;
|
|
7841
7842
|
if (typeof t == "object" && t !== null && "props" in t) {
|
|
7842
|
-
const
|
|
7843
|
-
if (
|
|
7844
|
-
return
|
|
7843
|
+
const b = t.props;
|
|
7844
|
+
if (b != null && b.children && typeof b.children == "string")
|
|
7845
|
+
return b.children;
|
|
7845
7846
|
}
|
|
7846
|
-
})(), S = w === "button" && !j,
|
|
7847
|
-
i || (
|
|
7847
|
+
})(), S = w === "button" && !j, h = (b) => {
|
|
7848
|
+
i || (b.key === "Enter" || b.key === " ") && (b.preventDefault(), c && c());
|
|
7848
7849
|
};
|
|
7849
7850
|
return /* @__PURE__ */ n.jsxs(
|
|
7850
7851
|
"div",
|
|
@@ -7853,16 +7854,16 @@ const ml = $e(
|
|
|
7853
7854
|
className: y(
|
|
7854
7855
|
ml({ variant: r, size: s, selected: o, disabled: i }),
|
|
7855
7856
|
a && C("xs", "pr"),
|
|
7856
|
-
|
|
7857
|
+
v && !i && "cursor-pointer focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2",
|
|
7857
7858
|
l
|
|
7858
7859
|
),
|
|
7859
7860
|
role: w,
|
|
7860
7861
|
"aria-selected": o ? !0 : void 0,
|
|
7861
7862
|
"aria-disabled": i,
|
|
7862
7863
|
"aria-label": S ? "Chip" : d || (w === "button" ? j : void 0),
|
|
7863
|
-
tabIndex: u !== void 0 ? u :
|
|
7864
|
+
tabIndex: u !== void 0 ? u : v && !i ? 0 : void 0,
|
|
7864
7865
|
onClick: i ? void 0 : c,
|
|
7865
|
-
onKeyDown:
|
|
7866
|
+
onKeyDown: h
|
|
7866
7867
|
}, m), {
|
|
7867
7868
|
children: [
|
|
7868
7869
|
/* @__PURE__ */ n.jsx("span", { children: t }),
|
|
@@ -7870,8 +7871,8 @@ const ml = $e(
|
|
|
7870
7871
|
"button",
|
|
7871
7872
|
{
|
|
7872
7873
|
type: "button",
|
|
7873
|
-
onClick: (
|
|
7874
|
-
|
|
7874
|
+
onClick: (b) => {
|
|
7875
|
+
b.stopPropagation(), a();
|
|
7875
7876
|
},
|
|
7876
7877
|
className: y(
|
|
7877
7878
|
C("xs", "ml"),
|
|
@@ -7911,17 +7912,17 @@ const Gr = he(function(u, c) {
|
|
|
7911
7912
|
"aria-label",
|
|
7912
7913
|
"className"
|
|
7913
7914
|
]);
|
|
7914
|
-
const [f, p] = P(!1), [x,
|
|
7915
|
+
const [f, p] = P(!1), [x, v] = P(!1), w = {
|
|
7915
7916
|
xs: "h-6 w-6 text-xs",
|
|
7916
7917
|
sm: "h-8 w-8 text-sm",
|
|
7917
7918
|
md: "h-10 w-10 text-base",
|
|
7918
7919
|
lg: "h-12 w-12 text-lg",
|
|
7919
7920
|
xl: "h-16 w-16 text-xl"
|
|
7920
|
-
},
|
|
7921
|
+
}, g = {
|
|
7921
7922
|
circle: "rounded-full",
|
|
7922
7923
|
square: "rounded-none",
|
|
7923
7924
|
rounded: "rounded-md"
|
|
7924
|
-
}, j = !t || f, S = typeof s == "string" ? s.toUpperCase().slice(0, 2) : s,
|
|
7925
|
+
}, j = !t || f, S = typeof s == "string" ? s.toUpperCase().slice(0, 2) : s, h = i || r || "User avatar";
|
|
7925
7926
|
return /* @__PURE__ */ n.jsxs(
|
|
7926
7927
|
"div",
|
|
7927
7928
|
_(E({
|
|
@@ -7935,13 +7936,13 @@ const Gr = he(function(u, c) {
|
|
|
7935
7936
|
"font-medium",
|
|
7936
7937
|
"overflow-hidden",
|
|
7937
7938
|
w[a],
|
|
7938
|
-
|
|
7939
|
+
g[o],
|
|
7939
7940
|
"bg-surface-muted",
|
|
7940
7941
|
"text-fg-primary",
|
|
7941
7942
|
l
|
|
7942
7943
|
),
|
|
7943
7944
|
role: "img",
|
|
7944
|
-
"aria-label":
|
|
7945
|
+
"aria-label": h
|
|
7945
7946
|
}, d), {
|
|
7946
7947
|
children: [
|
|
7947
7948
|
!j && t && /* @__PURE__ */ n.jsx(
|
|
@@ -7958,9 +7959,9 @@ const Gr = he(function(u, c) {
|
|
|
7958
7959
|
"transition-opacity",
|
|
7959
7960
|
"duration-200"
|
|
7960
7961
|
),
|
|
7961
|
-
onLoad: () =>
|
|
7962
|
+
onLoad: () => v(!0),
|
|
7962
7963
|
onError: () => {
|
|
7963
|
-
p(!0),
|
|
7964
|
+
p(!0), v(!1);
|
|
7964
7965
|
},
|
|
7965
7966
|
"aria-hidden": "true"
|
|
7966
7967
|
}
|
|
@@ -8016,10 +8017,10 @@ function zd(l) {
|
|
|
8016
8017
|
}, i), {
|
|
8017
8018
|
children: [
|
|
8018
8019
|
m.map((p, x) => {
|
|
8019
|
-
let
|
|
8020
|
+
let v = p;
|
|
8020
8021
|
if (br(p) && p.type === Gr) {
|
|
8021
8022
|
const w = p.props;
|
|
8022
|
-
|
|
8023
|
+
v = vr(
|
|
8023
8024
|
p,
|
|
8024
8025
|
{
|
|
8025
8026
|
size: w.size || r,
|
|
@@ -8032,7 +8033,7 @@ function zd(l) {
|
|
|
8032
8033
|
{
|
|
8033
8034
|
className: "ring-2 ring-surface-base",
|
|
8034
8035
|
style: { zIndex: u.length - x },
|
|
8035
|
-
children:
|
|
8036
|
+
children: v
|
|
8036
8037
|
},
|
|
8037
8038
|
x
|
|
8038
8039
|
);
|
|
@@ -8100,16 +8101,16 @@ const Yr = Ee(function(c) {
|
|
|
8100
8101
|
), f = z(
|
|
8101
8102
|
() => a !== void 0 || t === "hover",
|
|
8102
8103
|
[a, t]
|
|
8103
|
-
), p = f ? "button" : void 0, x = f ? 0 : void 0,
|
|
8104
|
-
(
|
|
8105
|
-
f && (
|
|
8104
|
+
), p = f ? "button" : void 0, x = f ? 0 : void 0, v = y(m({ variant: t, padding: r }), s), w = Y(
|
|
8105
|
+
(g) => {
|
|
8106
|
+
f && (g.key === "Enter" || g.key === " ") && (g.preventDefault(), a == null || a());
|
|
8106
8107
|
},
|
|
8107
8108
|
[f, a]
|
|
8108
8109
|
);
|
|
8109
8110
|
return /* @__PURE__ */ n.jsx(
|
|
8110
8111
|
"div",
|
|
8111
8112
|
_(E({
|
|
8112
|
-
className:
|
|
8113
|
+
className: v,
|
|
8113
8114
|
role: p,
|
|
8114
8115
|
tabIndex: x,
|
|
8115
8116
|
onClick: a,
|
|
@@ -8170,15 +8171,15 @@ function Od(l) {
|
|
|
8170
8171
|
o
|
|
8171
8172
|
);
|
|
8172
8173
|
if ("form" in i && i.form !== void 0) {
|
|
8173
|
-
const
|
|
8174
|
-
form:
|
|
8174
|
+
const v = i, {
|
|
8175
|
+
form: g,
|
|
8175
8176
|
onSubmit: j,
|
|
8176
8177
|
onSubmitError: S
|
|
8177
|
-
} =
|
|
8178
|
+
} = v, h = V(v, [
|
|
8178
8179
|
"form",
|
|
8179
8180
|
"onSubmit",
|
|
8180
8181
|
"onSubmitError"
|
|
8181
|
-
]),
|
|
8182
|
+
]), b = g.handleSubmit(
|
|
8182
8183
|
(k) => ar(null, null, function* () {
|
|
8183
8184
|
try {
|
|
8184
8185
|
yield j(k);
|
|
@@ -8190,13 +8191,13 @@ function Od(l) {
|
|
|
8190
8191
|
S == null || S(k);
|
|
8191
8192
|
}
|
|
8192
8193
|
);
|
|
8193
|
-
return /* @__PURE__ */ n.jsx(pl, { form:
|
|
8194
|
+
return /* @__PURE__ */ n.jsx(pl, { form: g, loading: r, children: /* @__PURE__ */ n.jsxs(
|
|
8194
8195
|
"form",
|
|
8195
8196
|
_(E({
|
|
8196
8197
|
className: c,
|
|
8197
|
-
onSubmit:
|
|
8198
|
+
onSubmit: b,
|
|
8198
8199
|
noValidate: !0
|
|
8199
|
-
},
|
|
8200
|
+
}, h), {
|
|
8200
8201
|
children: [
|
|
8201
8202
|
e,
|
|
8202
8203
|
s && /* @__PURE__ */ n.jsx(
|
|
@@ -8235,8 +8236,8 @@ function Od(l) {
|
|
|
8235
8236
|
})
|
|
8236
8237
|
) });
|
|
8237
8238
|
}
|
|
8238
|
-
const m = i.onSubmit || t, w = i, { onSubmit: f } = w, p = V(w, ["onSubmit"]), x = (
|
|
8239
|
-
|
|
8239
|
+
const m = i.onSubmit || t, w = i, { onSubmit: f } = w, p = V(w, ["onSubmit"]), x = (g) => {
|
|
8240
|
+
g.preventDefault(), m && !r && m(g);
|
|
8240
8241
|
};
|
|
8241
8242
|
return /* @__PURE__ */ n.jsxs(
|
|
8242
8243
|
"form",
|
|
@@ -8464,16 +8465,16 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8464
8465
|
value: e,
|
|
8465
8466
|
message: ""
|
|
8466
8467
|
}, Ml = (e, t, r, s, a, o) => ar(null, null, function* () {
|
|
8467
|
-
const { ref: i, refs: l, required: d, maxLength: c, minLength: u, min: m, max: f, pattern: p, validate: x, name:
|
|
8468
|
-
if (!
|
|
8468
|
+
const { ref: i, refs: l, required: d, maxLength: c, minLength: u, min: m, max: f, pattern: p, validate: x, name: v, valueAsNumber: w, mount: g } = e._f, j = We(r, v);
|
|
8469
|
+
if (!g || t.has(v))
|
|
8469
8470
|
return {};
|
|
8470
|
-
const S = l ? l[0] : i,
|
|
8471
|
+
const S = l ? l[0] : i, h = (A) => {
|
|
8471
8472
|
a && S.reportValidity && (S.setCustomValidity(_n(A) ? "" : A || ""), S.reportValidity());
|
|
8472
|
-
},
|
|
8473
|
+
}, b = {};
|
|
8473
8474
|
$l(i), hl(i);
|
|
8474
|
-
const k = (w || Nl(i)) && Be(i.value) && Be(j) || Sl(i) && i.value === "" || j === "" || Array.isArray(j) && !j.length, F = kl.bind(null,
|
|
8475
|
+
const k = (w || Nl(i)) && Be(i.value) && Be(j) || Sl(i) && i.value === "" || j === "" || Array.isArray(j) && !j.length, F = kl.bind(null, v, s, b), N = (A, L, T, M = Ke.maxLength, I = Ke.minLength) => {
|
|
8475
8476
|
const R = A ? L : T;
|
|
8476
|
-
v
|
|
8477
|
+
b[v] = E({
|
|
8477
8478
|
type: A ? M : I,
|
|
8478
8479
|
message: R,
|
|
8479
8480
|
ref: i
|
|
@@ -8481,12 +8482,12 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8481
8482
|
};
|
|
8482
8483
|
if (!Array.isArray(j) || !j.length) {
|
|
8483
8484
|
const { value: A, message: L } = nt(d) ? { value: !!d, message: d } : Et(d);
|
|
8484
|
-
if (A && (v
|
|
8485
|
+
if (A && (b[v] = E({
|
|
8485
8486
|
type: Ke.required,
|
|
8486
8487
|
message: L,
|
|
8487
8488
|
ref: S
|
|
8488
8489
|
}, F(Ke.required, L)), !s))
|
|
8489
|
-
return
|
|
8490
|
+
return h(L), b;
|
|
8490
8491
|
}
|
|
8491
8492
|
if (!k && (!Xe(m) || !Xe(f))) {
|
|
8492
8493
|
let A, L;
|
|
@@ -8499,42 +8500,42 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8499
8500
|
nt(T.value) && j && (A = O ? R(j) > R(T.value) : Z ? j > T.value : I > new Date(T.value)), nt(M.value) && j && (L = O ? R(j) < R(M.value) : Z ? j < M.value : I < new Date(M.value));
|
|
8500
8501
|
}
|
|
8501
8502
|
if ((A || L) && (N(!!A, T.message, M.message, Ke.max, Ke.min), !s))
|
|
8502
|
-
return
|
|
8503
|
+
return h(b[v].message), b;
|
|
8503
8504
|
}
|
|
8504
8505
|
if ((c || u) && !k && (nt(j) || Array.isArray(j))) {
|
|
8505
8506
|
const A = Et(c), L = Et(u), T = !Xe(A.value) && j.length > +A.value, M = !Xe(L.value) && j.length < +L.value;
|
|
8506
8507
|
if ((T || M) && (N(T, A.message, L.message), !s))
|
|
8507
|
-
return
|
|
8508
|
+
return h(b[v].message), b;
|
|
8508
8509
|
}
|
|
8509
8510
|
if (p && !k && nt(j)) {
|
|
8510
8511
|
const { value: A, message: L } = Et(p);
|
|
8511
|
-
if (On(A) && !j.match(A) && (v
|
|
8512
|
+
if (On(A) && !j.match(A) && (b[v] = E({
|
|
8512
8513
|
type: Ke.pattern,
|
|
8513
8514
|
message: L,
|
|
8514
8515
|
ref: i
|
|
8515
8516
|
}, F(Ke.pattern, L)), !s))
|
|
8516
|
-
return
|
|
8517
|
+
return h(L), b;
|
|
8517
8518
|
}
|
|
8518
8519
|
if (x) {
|
|
8519
8520
|
if (vl(x)) {
|
|
8520
8521
|
const A = yield x(j, r), L = Zs(A, S);
|
|
8521
|
-
if (L && (v
|
|
8522
|
-
return
|
|
8522
|
+
if (L && (b[v] = E(E({}, L), F(Ke.validate, L.message)), !s))
|
|
8523
|
+
return h(L.message), b;
|
|
8523
8524
|
} else if (Qe(x)) {
|
|
8524
8525
|
let A = {};
|
|
8525
8526
|
for (const L in x) {
|
|
8526
8527
|
if (!xr(A) && !s)
|
|
8527
8528
|
break;
|
|
8528
8529
|
const T = Zs(yield x[L](j, r), S, L);
|
|
8529
|
-
T && (A = E(E({}, T), F(L, T.message)),
|
|
8530
|
+
T && (A = E(E({}, T), F(L, T.message)), h(T.message), s && (b[v] = A));
|
|
8530
8531
|
}
|
|
8531
|
-
if (!xr(A) && (v
|
|
8532
|
+
if (!xr(A) && (b[v] = E({
|
|
8532
8533
|
ref: S
|
|
8533
8534
|
}, A), !s))
|
|
8534
|
-
return
|
|
8535
|
+
return b;
|
|
8535
8536
|
}
|
|
8536
8537
|
}
|
|
8537
|
-
return
|
|
8538
|
+
return h(!0), b;
|
|
8538
8539
|
}), st = () => {
|
|
8539
8540
|
if (typeof crypto != "undefined" && crypto.randomUUID)
|
|
8540
8541
|
return crypto.randomUUID();
|
|
@@ -8572,98 +8573,98 @@ var Pr = (e, t) => Be(t) ? [] : Il(e, He(t).sort((r, s) => r - s)), Or = (e, t,
|
|
|
8572
8573
|
function Dl(e) {
|
|
8573
8574
|
const t = yl(), { control: r = t, name: s, keyName: a = "id", shouldUnregister: o, rules: i } = e, [l, d] = pe.useState(r._getFieldArray(s)), c = pe.useRef(r._getFieldArray(s).map(st)), u = pe.useRef(!1);
|
|
8574
8575
|
r._names.array.add(s), pe.useMemo(() => i && l.length >= 0 && r.register(s, i), [r, s, l.length, i]), wl(() => r._subjects.array.subscribe({
|
|
8575
|
-
next: ({ values:
|
|
8576
|
-
if (
|
|
8577
|
-
const k = We(
|
|
8576
|
+
next: ({ values: h, name: b }) => {
|
|
8577
|
+
if (b === s || !b) {
|
|
8578
|
+
const k = We(h, s);
|
|
8578
8579
|
Array.isArray(k) && (d(k), c.current = k.map(st));
|
|
8579
8580
|
}
|
|
8580
8581
|
}
|
|
8581
8582
|
}).unsubscribe, [r, s]);
|
|
8582
|
-
const m = pe.useCallback((
|
|
8583
|
-
u.current = !0, r._setFieldArray(s,
|
|
8584
|
-
}, [r, s]), f = (
|
|
8585
|
-
const k = He(dt(
|
|
8586
|
-
r._names.focus = Dr(s, F.length - 1,
|
|
8587
|
-
argA: Lr(
|
|
8583
|
+
const m = pe.useCallback((h) => {
|
|
8584
|
+
u.current = !0, r._setFieldArray(s, h);
|
|
8585
|
+
}, [r, s]), f = (h, b) => {
|
|
8586
|
+
const k = He(dt(h)), F = Rr(r._getFieldArray(s), k);
|
|
8587
|
+
r._names.focus = Dr(s, F.length - 1, b), c.current = Rr(c.current, k.map(st)), m(F), d(F), r._setFieldArray(s, F, Rr, {
|
|
8588
|
+
argA: Lr(h)
|
|
8588
8589
|
});
|
|
8589
|
-
}, p = (
|
|
8590
|
-
const k = He(dt(
|
|
8591
|
-
r._names.focus = Dr(s, 0,
|
|
8592
|
-
argA: Lr(
|
|
8590
|
+
}, p = (h, b) => {
|
|
8591
|
+
const k = He(dt(h)), F = zr(r._getFieldArray(s), k);
|
|
8592
|
+
r._names.focus = Dr(s, 0, b), c.current = zr(c.current, k.map(st)), m(F), d(F), r._setFieldArray(s, F, zr, {
|
|
8593
|
+
argA: Lr(h)
|
|
8593
8594
|
});
|
|
8594
|
-
}, x = (
|
|
8595
|
-
const
|
|
8596
|
-
c.current = Pr(c.current,
|
|
8597
|
-
argA:
|
|
8595
|
+
}, x = (h) => {
|
|
8596
|
+
const b = Pr(r._getFieldArray(s), h);
|
|
8597
|
+
c.current = Pr(c.current, h), m(b), d(b), !Array.isArray(We(r._fields, s)) && gr(r._fields, s, void 0), r._setFieldArray(s, b, Pr, {
|
|
8598
|
+
argA: h
|
|
8598
8599
|
});
|
|
8599
|
-
},
|
|
8600
|
-
const F = He(dt(
|
|
8601
|
-
r._names.focus = Dr(s,
|
|
8602
|
-
argA:
|
|
8603
|
-
argB: Lr(
|
|
8600
|
+
}, v = (h, b, k) => {
|
|
8601
|
+
const F = He(dt(b)), N = Fr(r._getFieldArray(s), h, F);
|
|
8602
|
+
r._names.focus = Dr(s, h, k), c.current = Fr(c.current, h, F.map(st)), m(N), d(N), r._setFieldArray(s, N, Fr, {
|
|
8603
|
+
argA: h,
|
|
8604
|
+
argB: Lr(b)
|
|
8604
8605
|
});
|
|
8605
|
-
}, w = (
|
|
8606
|
+
}, w = (h, b) => {
|
|
8606
8607
|
const k = r._getFieldArray(s);
|
|
8607
|
-
Or(k,
|
|
8608
|
-
argA:
|
|
8609
|
-
argB:
|
|
8608
|
+
Or(k, h, b), Or(c.current, h, b), m(k), d(k), r._setFieldArray(s, k, Or, {
|
|
8609
|
+
argA: h,
|
|
8610
|
+
argB: b
|
|
8610
8611
|
}, !1);
|
|
8611
|
-
},
|
|
8612
|
+
}, g = (h, b) => {
|
|
8612
8613
|
const k = r._getFieldArray(s);
|
|
8613
|
-
_r(k,
|
|
8614
|
-
argA:
|
|
8615
|
-
argB:
|
|
8614
|
+
_r(k, h, b), _r(c.current, h, b), m(k), d(k), r._setFieldArray(s, k, _r, {
|
|
8615
|
+
argA: h,
|
|
8616
|
+
argB: b
|
|
8616
8617
|
}, !1);
|
|
8617
|
-
}, j = (
|
|
8618
|
-
const k = dt(
|
|
8619
|
-
c.current = [...F].map((N, A) => !N || A ===
|
|
8620
|
-
argA:
|
|
8618
|
+
}, j = (h, b) => {
|
|
8619
|
+
const k = dt(b), F = Qs(r._getFieldArray(s), h, k);
|
|
8620
|
+
c.current = [...F].map((N, A) => !N || A === h ? st() : c.current[A]), m(F), d([...F]), r._setFieldArray(s, F, Qs, {
|
|
8621
|
+
argA: h,
|
|
8621
8622
|
argB: k
|
|
8622
8623
|
}, !0, !1);
|
|
8623
|
-
}, S = (
|
|
8624
|
-
const
|
|
8625
|
-
c.current =
|
|
8624
|
+
}, S = (h) => {
|
|
8625
|
+
const b = He(dt(h));
|
|
8626
|
+
c.current = b.map(st), m([...b]), d([...b]), r._setFieldArray(s, [...b], (k) => k, {}, !0, !1);
|
|
8626
8627
|
};
|
|
8627
8628
|
return pe.useEffect(() => {
|
|
8628
8629
|
if (r._state.action = !1, El(s, r._names) && r._subjects.state.next(E({}, r._formState)), u.current && (!dr(r._options.mode).isOnSubmit || r._formState.isSubmitted) && !dr(r._options.reValidateMode).isOnSubmit)
|
|
8629
8630
|
if (r._options.resolver)
|
|
8630
|
-
r._runSchema([s]).then((
|
|
8631
|
+
r._runSchema([s]).then((h) => {
|
|
8631
8632
|
r._updateIsValidating([s]);
|
|
8632
|
-
const
|
|
8633
|
-
(k ? !
|
|
8633
|
+
const b = We(h.errors, s), k = We(r._formState.errors, s);
|
|
8634
|
+
(k ? !b && k.type || b && (k.type !== b.type || k.message !== b.message) : b && b.type) && (b ? gr(r._formState.errors, s, b) : Pn(r._formState.errors, s), r._subjects.state.next({
|
|
8634
8635
|
errors: r._formState.errors
|
|
8635
8636
|
}));
|
|
8636
8637
|
});
|
|
8637
8638
|
else {
|
|
8638
|
-
const
|
|
8639
|
-
|
|
8640
|
-
errors: Tl(r._formState.errors,
|
|
8639
|
+
const h = We(r._fields, s);
|
|
8640
|
+
h && h._f && !(dr(r._options.reValidateMode).isOnSubmit && dr(r._options.mode).isOnSubmit) && Ml(h, r._names.disabled, r._formValues, r._options.criteriaMode === Tt.all, r._options.shouldUseNativeValidation).then((b) => !xr(b) && r._subjects.state.next({
|
|
8641
|
+
errors: Tl(r._formState.errors, b, s)
|
|
8641
8642
|
}));
|
|
8642
8643
|
}
|
|
8643
8644
|
r._subjects.state.next({
|
|
8644
8645
|
name: s,
|
|
8645
8646
|
values: dt(r._formValues)
|
|
8646
|
-
}), r._names.focus && Kr(r._fields, (
|
|
8647
|
-
if (r._names.focus &&
|
|
8648
|
-
return
|
|
8647
|
+
}), r._names.focus && Kr(r._fields, (h, b) => {
|
|
8648
|
+
if (r._names.focus && b.startsWith(r._names.focus) && h.focus)
|
|
8649
|
+
return h.focus(), 1;
|
|
8649
8650
|
}), r._names.focus = "", r._setValid(), u.current = !1;
|
|
8650
8651
|
}, [l, s, r]), pe.useEffect(() => (!We(r._formValues, s) && r._setFieldArray(s), () => {
|
|
8651
|
-
const
|
|
8652
|
-
const F = We(r._fields,
|
|
8652
|
+
const h = (b, k) => {
|
|
8653
|
+
const F = We(r._fields, b);
|
|
8653
8654
|
F && F._f && (F._f.mount = k);
|
|
8654
8655
|
};
|
|
8655
|
-
r._options.shouldUnregister || o ? r.unregister(s) :
|
|
8656
|
+
r._options.shouldUnregister || o ? r.unregister(s) : h(s, !1);
|
|
8656
8657
|
}), [s, r, a, o]), {
|
|
8657
8658
|
swap: pe.useCallback(w, [m, s, r]),
|
|
8658
|
-
move: pe.useCallback(
|
|
8659
|
+
move: pe.useCallback(g, [m, s, r]),
|
|
8659
8660
|
prepend: pe.useCallback(p, [m, s, r]),
|
|
8660
8661
|
append: pe.useCallback(f, [m, s, r]),
|
|
8661
8662
|
remove: pe.useCallback(x, [m, s, r]),
|
|
8662
|
-
insert: pe.useCallback(
|
|
8663
|
+
insert: pe.useCallback(v, [m, s, r]),
|
|
8663
8664
|
update: pe.useCallback(j, [m, s, r]),
|
|
8664
8665
|
replace: pe.useCallback(S, [m, s, r]),
|
|
8665
|
-
fields: pe.useMemo(() => l.map((
|
|
8666
|
-
[a]: c.current[
|
|
8666
|
+
fields: pe.useMemo(() => l.map((h, b) => _(E({}, h), {
|
|
8667
|
+
[a]: c.current[b] || st()
|
|
8667
8668
|
})), [l, a])
|
|
8668
8669
|
};
|
|
8669
8670
|
}
|
|
@@ -8769,29 +8770,29 @@ function Ll(d) {
|
|
|
8769
8770
|
e > 1 && r(e - 1);
|
|
8770
8771
|
}, m = () => {
|
|
8771
8772
|
e < t && r(e + 1);
|
|
8772
|
-
}, f = (
|
|
8773
|
-
|
|
8773
|
+
}, f = (g) => {
|
|
8774
|
+
g >= 1 && g <= t && g !== e && r(g);
|
|
8774
8775
|
}, p = () => {
|
|
8775
|
-
const
|
|
8776
|
+
const g = [];
|
|
8776
8777
|
if (t <= 5)
|
|
8777
8778
|
for (let S = 1; S <= t; S++)
|
|
8778
|
-
|
|
8779
|
+
g.push(S);
|
|
8779
8780
|
else if (e <= 3) {
|
|
8780
8781
|
for (let S = 1; S <= 4; S++)
|
|
8781
|
-
|
|
8782
|
-
|
|
8782
|
+
g.push(S);
|
|
8783
|
+
g.push("ellipsis"), g.push(t);
|
|
8783
8784
|
} else if (e >= t - 2) {
|
|
8784
|
-
|
|
8785
|
+
g.push(1), g.push("ellipsis");
|
|
8785
8786
|
for (let S = t - 3; S <= t; S++)
|
|
8786
|
-
|
|
8787
|
+
g.push(S);
|
|
8787
8788
|
} else {
|
|
8788
|
-
|
|
8789
|
+
g.push(1), g.push("ellipsis");
|
|
8789
8790
|
for (let S = e - 1; S <= e + 1; S++)
|
|
8790
|
-
|
|
8791
|
-
|
|
8791
|
+
g.push(S);
|
|
8792
|
+
g.push("ellipsis"), g.push(t);
|
|
8792
8793
|
}
|
|
8793
|
-
return
|
|
8794
|
-
}, x = s && a ? (e - 1) * a + 1 : void 0,
|
|
8794
|
+
return g;
|
|
8795
|
+
}, x = s && a ? (e - 1) * a + 1 : void 0, v = s && a ? Math.min(e * a, s) : void 0, w = y(
|
|
8795
8796
|
"flex",
|
|
8796
8797
|
"items-center",
|
|
8797
8798
|
"justify-between",
|
|
@@ -8815,8 +8816,8 @@ function Ll(d) {
|
|
|
8815
8816
|
"div",
|
|
8816
8817
|
{
|
|
8817
8818
|
className: y("flex", "items-center", C("xs", "gap")),
|
|
8818
|
-
children: p().map((
|
|
8819
|
-
if (
|
|
8819
|
+
children: p().map((g, j) => {
|
|
8820
|
+
if (g === "ellipsis")
|
|
8820
8821
|
return /* @__PURE__ */ n.jsx(
|
|
8821
8822
|
"span",
|
|
8822
8823
|
{
|
|
@@ -8828,14 +8829,14 @@ function Ll(d) {
|
|
|
8828
8829
|
},
|
|
8829
8830
|
`ellipsis-${j}`
|
|
8830
8831
|
);
|
|
8831
|
-
const S =
|
|
8832
|
+
const S = g, h = S === e;
|
|
8832
8833
|
return /* @__PURE__ */ n.jsx(
|
|
8833
8834
|
re,
|
|
8834
8835
|
{
|
|
8835
|
-
variant:
|
|
8836
|
+
variant: h ? "primary" : "ghost",
|
|
8836
8837
|
onClick: () => f(S),
|
|
8837
8838
|
size: "sm",
|
|
8838
|
-
"aria-current":
|
|
8839
|
+
"aria-current": h ? "page" : void 0,
|
|
8839
8840
|
"aria-label": `Go to page ${S}`,
|
|
8840
8841
|
children: S
|
|
8841
8842
|
},
|
|
@@ -8863,7 +8864,7 @@ function Ll(d) {
|
|
|
8863
8864
|
"Showing ",
|
|
8864
8865
|
x,
|
|
8865
8866
|
" to ",
|
|
8866
|
-
|
|
8867
|
+
v,
|
|
8867
8868
|
" of ",
|
|
8868
8869
|
s,
|
|
8869
8870
|
" results"
|
|
@@ -8958,7 +8959,7 @@ function _l(l) {
|
|
|
8958
8959
|
"className",
|
|
8959
8960
|
"aria-label"
|
|
8960
8961
|
]);
|
|
8961
|
-
const [c, u] = P(!1), [m, f] = P(-1), p = te(null), x = te(null),
|
|
8962
|
+
const [c, u] = P(!1), [m, f] = P(-1), p = te(null), x = te(null), v = te(null), w = te([]), g = `dropdown-menu-${Math.random().toString(36).substr(2, 9)}`, j = `dropdown-trigger-${Math.random().toString(36).substr(2, 9)}`;
|
|
8962
8963
|
J(() => {
|
|
8963
8964
|
const N = (A) => {
|
|
8964
8965
|
p.current && !p.current.contains(A.target) && (u(!1), f(-1));
|
|
@@ -9013,7 +9014,7 @@ function _l(l) {
|
|
|
9013
9014
|
}, 0);
|
|
9014
9015
|
break;
|
|
9015
9016
|
}
|
|
9016
|
-
}, A =
|
|
9017
|
+
}, A = v.current;
|
|
9017
9018
|
if (A) {
|
|
9018
9019
|
const L = N;
|
|
9019
9020
|
return A.addEventListener("keydown", L), () => {
|
|
@@ -9026,20 +9027,20 @@ function _l(l) {
|
|
|
9026
9027
|
var A;
|
|
9027
9028
|
(A = x.current) == null || A.focus();
|
|
9028
9029
|
}, 0));
|
|
9029
|
-
},
|
|
9030
|
+
}, h = () => {
|
|
9030
9031
|
u(!c), f(-1);
|
|
9031
|
-
},
|
|
9032
|
+
}, b = (N) => {
|
|
9032
9033
|
(N.key === "Enter" || N.key === " " || N.key === "ArrowDown") && (N.preventDefault(), u(!0));
|
|
9033
9034
|
}, k = r === "right" ? "right-0" : "left-0", F = pe.isValidElement(e) ? pe.cloneElement(e, {
|
|
9034
9035
|
onClick: (N) => {
|
|
9035
|
-
|
|
9036
|
+
h(), e.props.onClick && e.props.onClick(N);
|
|
9036
9037
|
},
|
|
9037
9038
|
onKeyDown: (N) => {
|
|
9038
|
-
|
|
9039
|
+
b(N), e.props.onKeyDown && e.props.onKeyDown(N);
|
|
9039
9040
|
},
|
|
9040
9041
|
"aria-haspopup": "menu",
|
|
9041
9042
|
"aria-expanded": c,
|
|
9042
|
-
"aria-controls":
|
|
9043
|
+
"aria-controls": g,
|
|
9043
9044
|
"aria-label": o || e.props["aria-label"] || "Open menu",
|
|
9044
9045
|
id: j,
|
|
9045
9046
|
ref: (N) => {
|
|
@@ -9049,13 +9050,13 @@ function _l(l) {
|
|
|
9049
9050
|
"div",
|
|
9050
9051
|
{
|
|
9051
9052
|
ref: x,
|
|
9052
|
-
onClick:
|
|
9053
|
-
onKeyDown:
|
|
9053
|
+
onClick: h,
|
|
9054
|
+
onKeyDown: b,
|
|
9054
9055
|
role: "button",
|
|
9055
9056
|
tabIndex: 0,
|
|
9056
9057
|
"aria-haspopup": "menu",
|
|
9057
9058
|
"aria-expanded": c,
|
|
9058
|
-
"aria-controls":
|
|
9059
|
+
"aria-controls": g,
|
|
9059
9060
|
"aria-label": o || "Open menu",
|
|
9060
9061
|
id: j,
|
|
9061
9062
|
children: e
|
|
@@ -9083,8 +9084,8 @@ function _l(l) {
|
|
|
9083
9084
|
/* @__PURE__ */ n.jsx(
|
|
9084
9085
|
"div",
|
|
9085
9086
|
{
|
|
9086
|
-
ref:
|
|
9087
|
-
id:
|
|
9087
|
+
ref: v,
|
|
9088
|
+
id: g,
|
|
9088
9089
|
className: y(
|
|
9089
9090
|
"absolute",
|
|
9090
9091
|
// micro-z: dropdown content above its own backdrop
|
|
@@ -9103,7 +9104,7 @@ function _l(l) {
|
|
|
9103
9104
|
role: "menu",
|
|
9104
9105
|
"aria-orientation": "vertical",
|
|
9105
9106
|
"aria-labelledby": j,
|
|
9106
|
-
"aria-activedescendant": m >= 0 ? `${
|
|
9107
|
+
"aria-activedescendant": m >= 0 ? `${g}-item-${m}` : void 0,
|
|
9107
9108
|
children: /* @__PURE__ */ n.jsx("div", { className: y(C("xs", "py")), role: "none", children: t.map((N, A) => {
|
|
9108
9109
|
const L = y(
|
|
9109
9110
|
"block",
|
|
@@ -9126,7 +9127,7 @@ function _l(l) {
|
|
|
9126
9127
|
return /* @__PURE__ */ n.jsx(
|
|
9127
9128
|
"button",
|
|
9128
9129
|
{
|
|
9129
|
-
id: `${
|
|
9130
|
+
id: `${g}-item-${A}`,
|
|
9130
9131
|
ref: (T) => {
|
|
9131
9132
|
w.current[A] = T;
|
|
9132
9133
|
},
|
|
@@ -9180,15 +9181,15 @@ function en({
|
|
|
9180
9181
|
return null;
|
|
9181
9182
|
}, u = () => r !== void 0 ? null : s && t === "range" && typeof s == "object" && "start" in s ? s : { start: null, end: null }, [m, f] = P(
|
|
9182
9183
|
c()
|
|
9183
|
-
), [p, x] = P(u()),
|
|
9184
|
-
selectedDate:
|
|
9184
|
+
), [p, x] = P(u()), v = t === "single" ? r instanceof Date ? r : m : null, w = t === "range" ? r && typeof r == "object" && "start" in r ? r : p : null, S = {
|
|
9185
|
+
selectedDate: v,
|
|
9185
9186
|
selectedRange: w,
|
|
9186
9187
|
mode: t,
|
|
9187
|
-
onDateChange: (
|
|
9188
|
-
t === "single" && (r === void 0 && f(
|
|
9188
|
+
onDateChange: (h) => {
|
|
9189
|
+
t === "single" && (r === void 0 && f(h), a == null || a(h));
|
|
9189
9190
|
},
|
|
9190
|
-
onRangeChange: (
|
|
9191
|
-
t === "range" && (r === void 0 && x(
|
|
9191
|
+
onRangeChange: (h) => {
|
|
9192
|
+
t === "range" && (r === void 0 && x(h), a == null || a(h));
|
|
9192
9193
|
},
|
|
9193
9194
|
minDate: o,
|
|
9194
9195
|
maxDate: i,
|
|
@@ -9236,31 +9237,31 @@ function Hn(l) {
|
|
|
9236
9237
|
"onFocus",
|
|
9237
9238
|
"className"
|
|
9238
9239
|
]);
|
|
9239
|
-
const { selectedDate: c, selectedRange: u, mode: m, onDateChange: f } = Wn(), [p, x] = P(""), [
|
|
9240
|
+
const { selectedDate: c, selectedRange: u, mode: m, onDateChange: f } = Wn(), [p, x] = P(""), [v, w] = P(!1), g = te(null);
|
|
9240
9241
|
J(() => {
|
|
9241
9242
|
m === "single" && c ? x(Ut(c, t)) : m === "range" && u ? u.start && u.end ? x(
|
|
9242
9243
|
`${Ut(u.start, t)} - ${Ut(u.end, t)}`
|
|
9243
9244
|
) : u.start ? x(Ut(u.start, t)) : x("") : x("");
|
|
9244
9245
|
}, [c, u, m, t]);
|
|
9245
|
-
const j = (
|
|
9246
|
-
const k =
|
|
9246
|
+
const j = (b) => {
|
|
9247
|
+
const k = b.target.value;
|
|
9247
9248
|
if (x(k), m === "single") {
|
|
9248
9249
|
const F = tn(k);
|
|
9249
9250
|
f(F);
|
|
9250
9251
|
}
|
|
9251
9252
|
}, S = () => {
|
|
9252
9253
|
if (w(!1), p && m === "single") {
|
|
9253
|
-
const
|
|
9254
|
-
|
|
9254
|
+
const b = tn(p);
|
|
9255
|
+
b && x(Ut(b, t));
|
|
9255
9256
|
}
|
|
9256
|
-
},
|
|
9257
|
-
var
|
|
9258
|
-
(
|
|
9257
|
+
}, h = () => {
|
|
9258
|
+
var b;
|
|
9259
|
+
(b = g.current) == null || b.focus();
|
|
9259
9260
|
};
|
|
9260
9261
|
return /* @__PURE__ */ n.jsx("div", _(E({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
9261
9262
|
De,
|
|
9262
9263
|
{
|
|
9263
|
-
ref:
|
|
9264
|
+
ref: g,
|
|
9264
9265
|
type: "text",
|
|
9265
9266
|
value: p,
|
|
9266
9267
|
onChange: j,
|
|
@@ -9275,7 +9276,7 @@ function Hn(l) {
|
|
|
9275
9276
|
{
|
|
9276
9277
|
variant: "iconOnly",
|
|
9277
9278
|
size: "sm",
|
|
9278
|
-
onClick:
|
|
9279
|
+
onClick: h,
|
|
9279
9280
|
"aria-label": "Open calendar",
|
|
9280
9281
|
type: "button",
|
|
9281
9282
|
children: /* @__PURE__ */ n.jsx(oi, { className: "h-4 w-4" })
|
|
@@ -9337,29 +9338,29 @@ function Un(a) {
|
|
|
9337
9338
|
minDate: m,
|
|
9338
9339
|
maxDate: f,
|
|
9339
9340
|
disabledDates: p
|
|
9340
|
-
} = Wn(), [x,
|
|
9341
|
+
} = Wn(), [x, v] = P(
|
|
9341
9342
|
e || i || (l == null ? void 0 : l.start) || /* @__PURE__ */ new Date()
|
|
9342
|
-
), w = te(null), [
|
|
9343
|
+
), w = te(null), [g, j] = P(() => {
|
|
9343
9344
|
const M = /* @__PURE__ */ new Date(), I = e || i || (l == null ? void 0 : l.start) || M;
|
|
9344
9345
|
return i && Bt(i, I) ? i : Bt(M, I) ? M : new Date(I.getFullYear(), I.getMonth(), 1);
|
|
9345
9346
|
});
|
|
9346
9347
|
J(() => {
|
|
9347
|
-
e &&
|
|
9348
|
+
e && v(e);
|
|
9348
9349
|
}, [e]), J(() => {
|
|
9349
9350
|
if (!w.current) return;
|
|
9350
9351
|
const M = w.current.querySelector(
|
|
9351
|
-
`[data-date="${
|
|
9352
|
+
`[data-date="${g.toISOString()}"]`
|
|
9352
9353
|
);
|
|
9353
9354
|
M && M.focus();
|
|
9354
|
-
}, [
|
|
9355
|
+
}, [g]);
|
|
9355
9356
|
const S = (() => {
|
|
9356
|
-
if (Bt(
|
|
9357
|
+
if (Bt(g, x)) return g;
|
|
9357
9358
|
const M = /* @__PURE__ */ new Date();
|
|
9358
9359
|
return Bt(M, x) ? M : new Date(x.getFullYear(), x.getMonth(), 1);
|
|
9359
|
-
})(),
|
|
9360
|
-
for (let M = 0; M <
|
|
9360
|
+
})(), h = zl(x), b = Pl(x), k = [];
|
|
9361
|
+
for (let M = 0; M < b; M++)
|
|
9361
9362
|
k.push(null);
|
|
9362
|
-
for (let M = 1; M <=
|
|
9363
|
+
for (let M = 1; M <= h; M++)
|
|
9363
9364
|
k.push(
|
|
9364
9365
|
new Date(x.getFullYear(), x.getMonth(), M)
|
|
9365
9366
|
);
|
|
@@ -9378,14 +9379,14 @@ function Un(a) {
|
|
|
9378
9379
|
x.getMonth() - 1,
|
|
9379
9380
|
1
|
|
9380
9381
|
);
|
|
9381
|
-
|
|
9382
|
+
v(M), t == null || t(M);
|
|
9382
9383
|
}, A = () => {
|
|
9383
9384
|
const M = new Date(
|
|
9384
9385
|
x.getFullYear(),
|
|
9385
9386
|
x.getMonth() + 1,
|
|
9386
9387
|
1
|
|
9387
9388
|
);
|
|
9388
|
-
|
|
9389
|
+
v(M), t == null || t(M);
|
|
9389
9390
|
}, L = (M, I) => {
|
|
9390
9391
|
let R = null;
|
|
9391
9392
|
switch (M.key) {
|
|
@@ -9428,7 +9429,7 @@ function Un(a) {
|
|
|
9428
9429
|
M.preventDefault(), F(I);
|
|
9429
9430
|
return;
|
|
9430
9431
|
}
|
|
9431
|
-
R && (Bt(R, x) ||
|
|
9432
|
+
R && (Bt(R, x) || v(new Date(R.getFullYear(), R.getMonth(), 1)), j(R));
|
|
9432
9433
|
}, T = [];
|
|
9433
9434
|
for (let M = 0; M < k.length; M += 7)
|
|
9434
9435
|
T.push(k.slice(M, M + 7));
|
|
@@ -9490,7 +9491,7 @@ function Un(a) {
|
|
|
9490
9491
|
m,
|
|
9491
9492
|
f,
|
|
9492
9493
|
p
|
|
9493
|
-
), de = ut(R, /* @__PURE__ */ new Date()), ie = ut(R,
|
|
9494
|
+
), de = ut(R, /* @__PURE__ */ new Date()), ie = ut(R, g), D = ut(R, S);
|
|
9494
9495
|
return /* @__PURE__ */ n.jsx(
|
|
9495
9496
|
"button",
|
|
9496
9497
|
{
|
|
@@ -9539,21 +9540,21 @@ function wr({
|
|
|
9539
9540
|
"aria-label": m,
|
|
9540
9541
|
className: f = ""
|
|
9541
9542
|
}) {
|
|
9542
|
-
const [p, x] = P(!1),
|
|
9543
|
+
const [p, x] = P(!1), v = te(null), w = te(null);
|
|
9543
9544
|
return J(() => {
|
|
9544
9545
|
if (!p) return;
|
|
9545
|
-
const
|
|
9546
|
+
const g = (j) => {
|
|
9546
9547
|
var k, F, N, A;
|
|
9547
|
-
const S = j.target,
|
|
9548
|
-
!
|
|
9548
|
+
const S = j.target, h = (F = (k = v.current) == null ? void 0 : k.contains(S)) != null ? F : !1, b = (A = (N = w.current) == null ? void 0 : N.contains(S)) != null ? A : !1;
|
|
9549
|
+
!h && !b && x(!1);
|
|
9549
9550
|
};
|
|
9550
|
-
return document.addEventListener("mousedown",
|
|
9551
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
9551
9552
|
}, [p]), J(() => {
|
|
9552
9553
|
if (!p) return;
|
|
9553
|
-
const
|
|
9554
|
+
const g = (j) => {
|
|
9554
9555
|
j.key === "Escape" && x(!1);
|
|
9555
9556
|
};
|
|
9556
|
-
return document.addEventListener("keydown",
|
|
9557
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
9557
9558
|
}, [p]), e ? /* @__PURE__ */ n.jsx(
|
|
9558
9559
|
en,
|
|
9559
9560
|
{
|
|
@@ -9566,7 +9567,7 @@ function wr({
|
|
|
9566
9567
|
disabledDates: l,
|
|
9567
9568
|
children: e
|
|
9568
9569
|
}
|
|
9569
|
-
) : /* @__PURE__ */ n.jsx("div", { ref:
|
|
9570
|
+
) : /* @__PURE__ */ n.jsx("div", { ref: v, className: `relative ${f}`, children: /* @__PURE__ */ n.jsxs(
|
|
9570
9571
|
en,
|
|
9571
9572
|
{
|
|
9572
9573
|
mode: t,
|
|
@@ -9587,7 +9588,7 @@ function wr({
|
|
|
9587
9588
|
onFocus: () => x(!0)
|
|
9588
9589
|
}
|
|
9589
9590
|
),
|
|
9590
|
-
p && /* @__PURE__ */ n.jsx(Bn, { containerRef:
|
|
9591
|
+
p && /* @__PURE__ */ n.jsx(Bn, { containerRef: v, popupRef: w, children: /* @__PURE__ */ n.jsx(Un, {}) })
|
|
9591
9592
|
]
|
|
9592
9593
|
}
|
|
9593
9594
|
) });
|
|
@@ -9688,11 +9689,11 @@ function Ul(a) {
|
|
|
9688
9689
|
'[role="tab"]:not([disabled])'
|
|
9689
9690
|
)
|
|
9690
9691
|
), x = p.findIndex(
|
|
9691
|
-
(
|
|
9692
|
+
(g) => g === document.activeElement
|
|
9692
9693
|
);
|
|
9693
9694
|
if (x === -1) return;
|
|
9694
|
-
let
|
|
9695
|
-
i === "horizontal" ? f.key === "ArrowRight" ? (f.preventDefault(),
|
|
9695
|
+
let v = x;
|
|
9696
|
+
i === "horizontal" ? f.key === "ArrowRight" ? (f.preventDefault(), v = (x + 1) % p.length) : f.key === "ArrowLeft" && (f.preventDefault(), v = (x - 1 + p.length) % p.length) : f.key === "ArrowDown" ? (f.preventDefault(), v = (x + 1) % p.length) : f.key === "ArrowUp" && (f.preventDefault(), v = (x - 1 + p.length) % p.length), f.key === "Home" ? (f.preventDefault(), v = 0) : f.key === "End" && (f.preventDefault(), v = p.length - 1), v !== x && ((w = p[v]) == null || w.focus());
|
|
9696
9697
|
};
|
|
9697
9698
|
return u.addEventListener("keydown", m), () => u.removeEventListener("keydown", m);
|
|
9698
9699
|
}, [i]);
|
|
@@ -9737,18 +9738,18 @@ function Bl(l) {
|
|
|
9737
9738
|
onValueChange: u,
|
|
9738
9739
|
orientation: m,
|
|
9739
9740
|
activationMode: f
|
|
9740
|
-
} = ms(), p = c === e, x = (
|
|
9741
|
-
r || ((f === "automatic" || p) && u(e), a == null || a(
|
|
9742
|
-
},
|
|
9741
|
+
} = ms(), p = c === e, x = (g) => {
|
|
9742
|
+
r || ((f === "automatic" || p) && u(e), a == null || a(g));
|
|
9743
|
+
}, v = (g) => {
|
|
9743
9744
|
var j;
|
|
9744
|
-
f === "automatic" && !r && !p && u(e), (j = i.onFocus) == null || j.call(i,
|
|
9745
|
-
}, w = (
|
|
9746
|
-
if (!r && !(
|
|
9747
|
-
if (f === "manual" && (
|
|
9748
|
-
|
|
9745
|
+
f === "automatic" && !r && !p && u(e), (j = i.onFocus) == null || j.call(i, g);
|
|
9746
|
+
}, w = (g) => {
|
|
9747
|
+
if (!r && !(g.key === "ArrowRight" || g.key === "ArrowLeft" || g.key === "ArrowDown" || g.key === "ArrowUp" || g.key === "Home" || g.key === "End")) {
|
|
9748
|
+
if (f === "manual" && (g.key === "Enter" || g.key === " ")) {
|
|
9749
|
+
g.preventDefault(), u(e);
|
|
9749
9750
|
return;
|
|
9750
9751
|
}
|
|
9751
|
-
o == null || o(
|
|
9752
|
+
o == null || o(g);
|
|
9752
9753
|
}
|
|
9753
9754
|
};
|
|
9754
9755
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -9762,7 +9763,7 @@ function Bl(l) {
|
|
|
9762
9763
|
tabIndex: r ? -1 : p ? 0 : -1,
|
|
9763
9764
|
disabled: r,
|
|
9764
9765
|
onClick: x,
|
|
9765
|
-
onFocus:
|
|
9766
|
+
onFocus: v,
|
|
9766
9767
|
onKeyDown: w,
|
|
9767
9768
|
className: y(
|
|
9768
9769
|
"inline-flex",
|
|
@@ -9847,19 +9848,19 @@ const Bd = jr, ps = he(
|
|
|
9847
9848
|
"onChange",
|
|
9848
9849
|
"className"
|
|
9849
9850
|
]);
|
|
9850
|
-
const [x,
|
|
9851
|
+
const [x, v] = P(
|
|
9851
9852
|
typeof l == "string" ? l : ""
|
|
9852
|
-
), [w,
|
|
9853
|
+
), [w, g] = P(
|
|
9853
9854
|
null
|
|
9854
|
-
), j = i !== void 0, S = j ? i : x,
|
|
9855
|
+
), j = i !== void 0, S = j ? i : x, h = S != null && String(S).length > 0, b = (N) => {
|
|
9855
9856
|
const A = N.target.value;
|
|
9856
|
-
j ||
|
|
9857
|
+
j || v(A), d == null || d(N), w && clearTimeout(w);
|
|
9857
9858
|
const L = setTimeout(() => {
|
|
9858
9859
|
t == null || t(A);
|
|
9859
9860
|
}, o);
|
|
9860
|
-
|
|
9861
|
+
g(L);
|
|
9861
9862
|
}, k = () => {
|
|
9862
|
-
j ||
|
|
9863
|
+
j || v("");
|
|
9863
9864
|
const N = {
|
|
9864
9865
|
target: { value: "" },
|
|
9865
9866
|
currentTarget: { value: "" }
|
|
@@ -9876,10 +9877,10 @@ const Bd = jr, ps = he(
|
|
|
9876
9877
|
}, u), {
|
|
9877
9878
|
type: "search",
|
|
9878
9879
|
value: S,
|
|
9879
|
-
onChange:
|
|
9880
|
+
onChange: b,
|
|
9880
9881
|
onKeyDown: F,
|
|
9881
9882
|
leftIcon: s ? /* @__PURE__ */ n.jsx("div", { className: "animate-spin", children: /* @__PURE__ */ n.jsx(qr, { className: "h-4 w-4" }) }) : /* @__PURE__ */ n.jsx(qr, { className: "h-4 w-4" }),
|
|
9882
|
-
rightIcon: a &&
|
|
9883
|
+
rightIcon: a && h && !s ? /* @__PURE__ */ n.jsx(
|
|
9883
9884
|
re,
|
|
9884
9885
|
{
|
|
9885
9886
|
variant: "ghost",
|
|
@@ -9946,11 +9947,11 @@ const hs = he(
|
|
|
9946
9947
|
const [f, p] = P({ top: 0, left: 0, width: 0 });
|
|
9947
9948
|
J(() => {
|
|
9948
9949
|
if (i.current) {
|
|
9949
|
-
const
|
|
9950
|
+
const v = i.current.getBoundingClientRect();
|
|
9950
9951
|
p({
|
|
9951
|
-
top:
|
|
9952
|
-
left:
|
|
9953
|
-
width:
|
|
9952
|
+
top: v.bottom + window.scrollY + 4,
|
|
9953
|
+
left: v.left + window.scrollX,
|
|
9954
|
+
width: v.width
|
|
9954
9955
|
});
|
|
9955
9956
|
}
|
|
9956
9957
|
}, [i]);
|
|
@@ -10016,14 +10017,14 @@ const hs = he(
|
|
|
10016
10017
|
children: d ? "Deselect All" : "Select All"
|
|
10017
10018
|
}
|
|
10018
10019
|
),
|
|
10019
|
-
t.map((
|
|
10020
|
+
t.map((v, w) => /* @__PURE__ */ n.jsx(
|
|
10020
10021
|
qn,
|
|
10021
10022
|
{
|
|
10022
|
-
option:
|
|
10023
|
+
option: v,
|
|
10023
10024
|
isHighlighted: w === r,
|
|
10024
10025
|
onSelect: s
|
|
10025
10026
|
},
|
|
10026
|
-
|
|
10027
|
+
v.value
|
|
10027
10028
|
))
|
|
10028
10029
|
] })
|
|
10029
10030
|
}
|
|
@@ -10048,19 +10049,19 @@ const Gl = he(
|
|
|
10048
10049
|
className: f = "",
|
|
10049
10050
|
inputClassName: p = "",
|
|
10050
10051
|
size: x = "md"
|
|
10051
|
-
},
|
|
10052
|
-
const [w,
|
|
10052
|
+
}, v) {
|
|
10053
|
+
const [w, g] = P(
|
|
10053
10054
|
typeof s == "string" ? s : ""
|
|
10054
|
-
), [j, S] = P(!1), [
|
|
10055
|
+
), [j, S] = P(!1), [h, b] = P(-1), [k, F] = P(""), N = te(null), A = te(null), L = te(null), T = te(null), M = r !== void 0, I = M ? r : w, O = k.trim() ? m ? m(t, k) : t.filter(
|
|
10055
10056
|
(D) => D.label.toLowerCase().includes(k.toLowerCase())
|
|
10056
10057
|
) : t, Z = O.length > 0, G = (D) => {
|
|
10057
10058
|
const B = D.target.value;
|
|
10058
|
-
F(B), M ||
|
|
10059
|
-
S(!0),
|
|
10059
|
+
F(B), M || g(B), a == null || a(B), T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
10060
|
+
S(!0), b(-1);
|
|
10060
10061
|
}, u);
|
|
10061
10062
|
}, H = (D) => {
|
|
10062
10063
|
var B;
|
|
10063
|
-
D.disabled || (M ||
|
|
10064
|
+
D.disabled || (M || g(D.value), F(D.label), S(!1), b(-1), a == null || a(D.value), o == null || o(D), (B = A.current) == null || B.focus());
|
|
10064
10065
|
}, de = (D) => {
|
|
10065
10066
|
if (!j || O.length === 0) {
|
|
10066
10067
|
(D.key === "ArrowDown" || D.key === "Enter") && S(!0);
|
|
@@ -10068,38 +10069,38 @@ const Gl = he(
|
|
|
10068
10069
|
}
|
|
10069
10070
|
switch (D.key) {
|
|
10070
10071
|
case "ArrowDown":
|
|
10071
|
-
D.preventDefault(),
|
|
10072
|
+
D.preventDefault(), b(
|
|
10072
10073
|
(B) => B < O.length - 1 ? B + 1 : 0
|
|
10073
10074
|
);
|
|
10074
10075
|
break;
|
|
10075
10076
|
case "ArrowUp":
|
|
10076
|
-
D.preventDefault(),
|
|
10077
|
+
D.preventDefault(), b(
|
|
10077
10078
|
(B) => B > 0 ? B - 1 : O.length - 1
|
|
10078
10079
|
);
|
|
10079
10080
|
break;
|
|
10080
10081
|
case "Enter":
|
|
10081
|
-
D.preventDefault(),
|
|
10082
|
+
D.preventDefault(), h >= 0 && h < O.length && H(O[h]);
|
|
10082
10083
|
break;
|
|
10083
10084
|
case "Escape":
|
|
10084
|
-
D.preventDefault(), S(!1),
|
|
10085
|
+
D.preventDefault(), S(!1), b(-1);
|
|
10085
10086
|
break;
|
|
10086
10087
|
}
|
|
10087
10088
|
};
|
|
10088
10089
|
J(() => {
|
|
10089
10090
|
if (!j) return;
|
|
10090
10091
|
const D = (B) => {
|
|
10091
|
-
N.current && !N.current.contains(B.target) && (S(!1),
|
|
10092
|
+
N.current && !N.current.contains(B.target) && (S(!1), b(-1));
|
|
10092
10093
|
};
|
|
10093
10094
|
return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
|
|
10094
10095
|
}, [j]), J(() => {
|
|
10095
|
-
if (
|
|
10096
|
+
if (h >= 0 && L.current) {
|
|
10096
10097
|
const D = L.current.querySelectorAll('[role="option"]');
|
|
10097
|
-
D[
|
|
10098
|
+
D[h] && typeof D[h].scrollIntoView == "function" && D[h].scrollIntoView({
|
|
10098
10099
|
block: "nearest",
|
|
10099
10100
|
behavior: "smooth"
|
|
10100
10101
|
});
|
|
10101
10102
|
}
|
|
10102
|
-
}, [
|
|
10103
|
+
}, [h]), J(() => {
|
|
10103
10104
|
if (I) {
|
|
10104
10105
|
const D = t.find((B) => B.value === I);
|
|
10105
10106
|
F(D ? D.label : I);
|
|
@@ -10111,7 +10112,7 @@ const Gl = he(
|
|
|
10111
10112
|
/* @__PURE__ */ n.jsx(
|
|
10112
10113
|
De,
|
|
10113
10114
|
{
|
|
10114
|
-
ref: A ||
|
|
10115
|
+
ref: A || v,
|
|
10115
10116
|
value: k,
|
|
10116
10117
|
onChange: G,
|
|
10117
10118
|
onKeyDown: de,
|
|
@@ -10133,7 +10134,7 @@ const Gl = he(
|
|
|
10133
10134
|
{
|
|
10134
10135
|
ref: L,
|
|
10135
10136
|
options: O,
|
|
10136
|
-
highlightedIndex:
|
|
10137
|
+
highlightedIndex: h,
|
|
10137
10138
|
onSelect: H,
|
|
10138
10139
|
loading: l,
|
|
10139
10140
|
emptyMessage: c,
|
|
@@ -10160,8 +10161,8 @@ const Yl = he(
|
|
|
10160
10161
|
className: f = "",
|
|
10161
10162
|
inputClassName: p = "",
|
|
10162
10163
|
size: x = "md"
|
|
10163
|
-
},
|
|
10164
|
-
const [w,
|
|
10164
|
+
}, v) {
|
|
10165
|
+
const [w, g] = P(s), [j, S] = P(!1), [h, b] = P(-1), [k, F] = P(""), N = te(null), A = te(null), L = te(null), T = r !== void 0, M = T ? r : w, I = t.filter(
|
|
10165
10166
|
(U) => M.includes(U.value)
|
|
10166
10167
|
), O = (() => {
|
|
10167
10168
|
let U = t;
|
|
@@ -10170,23 +10171,23 @@ const Yl = he(
|
|
|
10170
10171
|
)), U;
|
|
10171
10172
|
})(), Z = O.length > 0, G = (U) => {
|
|
10172
10173
|
const q = U.target.value;
|
|
10173
|
-
F(q), S(!0),
|
|
10174
|
+
F(q), S(!0), b(-1);
|
|
10174
10175
|
}, H = (U) => {
|
|
10175
10176
|
if (U.disabled || u && M.length >= u && !M.includes(U.value))
|
|
10176
10177
|
return;
|
|
10177
10178
|
const q = M.includes(U.value) ? M.filter((W) => W !== U.value) : [...M, U.value];
|
|
10178
|
-
T ||
|
|
10179
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value))), F("");
|
|
10179
10180
|
}, de = () => {
|
|
10180
10181
|
const U = O.filter((W) => !W.disabled).map((W) => W.value), q = [.../* @__PURE__ */ new Set([...M, ...U])];
|
|
10181
|
-
T ||
|
|
10182
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10182
10183
|
}, ie = () => {
|
|
10183
10184
|
const U = O.map((W) => W.value), q = M.filter(
|
|
10184
10185
|
(W) => !U.includes(W)
|
|
10185
10186
|
);
|
|
10186
|
-
T ||
|
|
10187
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10187
10188
|
}, D = (U) => {
|
|
10188
10189
|
const q = M.filter((W) => W !== U);
|
|
10189
|
-
T ||
|
|
10190
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10190
10191
|
}, B = (U) => {
|
|
10191
10192
|
if (!j || O.length === 0) {
|
|
10192
10193
|
(U.key === "ArrowDown" || U.key === "Enter") && S(!0), U.key === "Backspace" && k === "" && M.length > 0 && D(M[M.length - 1]);
|
|
@@ -10194,27 +10195,27 @@ const Yl = he(
|
|
|
10194
10195
|
}
|
|
10195
10196
|
switch (U.key) {
|
|
10196
10197
|
case "ArrowDown":
|
|
10197
|
-
U.preventDefault(),
|
|
10198
|
+
U.preventDefault(), b(
|
|
10198
10199
|
(q) => q < O.length - 1 ? q + 1 : 0
|
|
10199
10200
|
);
|
|
10200
10201
|
break;
|
|
10201
10202
|
case "ArrowUp":
|
|
10202
|
-
U.preventDefault(),
|
|
10203
|
+
U.preventDefault(), b(
|
|
10203
10204
|
(q) => q > 0 ? q - 1 : O.length - 1
|
|
10204
10205
|
);
|
|
10205
10206
|
break;
|
|
10206
10207
|
case "Enter":
|
|
10207
|
-
U.preventDefault(),
|
|
10208
|
+
U.preventDefault(), h >= 0 && h < O.length && H(O[h]);
|
|
10208
10209
|
break;
|
|
10209
10210
|
case "Escape":
|
|
10210
|
-
U.preventDefault(), S(!1),
|
|
10211
|
+
U.preventDefault(), S(!1), b(-1);
|
|
10211
10212
|
break;
|
|
10212
10213
|
}
|
|
10213
10214
|
};
|
|
10214
10215
|
J(() => {
|
|
10215
10216
|
if (!j) return;
|
|
10216
10217
|
const U = (q) => {
|
|
10217
|
-
N.current && !N.current.contains(q.target) && (S(!1),
|
|
10218
|
+
N.current && !N.current.contains(q.target) && (S(!1), b(-1), F(""));
|
|
10218
10219
|
};
|
|
10219
10220
|
return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
|
|
10220
10221
|
}, [j]);
|
|
@@ -10252,7 +10253,7 @@ const Yl = he(
|
|
|
10252
10253
|
"input",
|
|
10253
10254
|
{
|
|
10254
10255
|
ref: (U) => {
|
|
10255
|
-
typeof
|
|
10256
|
+
typeof v == "function" ? v(U) : v && (v.current = U), A.current = U;
|
|
10256
10257
|
},
|
|
10257
10258
|
type: "text",
|
|
10258
10259
|
value: k,
|
|
@@ -10280,7 +10281,7 @@ const Yl = he(
|
|
|
10280
10281
|
options: O.map((U) => _(E({}, U), {
|
|
10281
10282
|
icon: M.includes(U.value) ? /* @__PURE__ */ n.jsx(Br, { className: y("h-4", "w-4", "text-fg-brand") }) : U.icon
|
|
10282
10283
|
})),
|
|
10283
|
-
highlightedIndex:
|
|
10284
|
+
highlightedIndex: h,
|
|
10284
10285
|
onSelect: H,
|
|
10285
10286
|
loading: l,
|
|
10286
10287
|
emptyMessage: c,
|
|
@@ -10310,13 +10311,13 @@ function qd({
|
|
|
10310
10311
|
icon: m,
|
|
10311
10312
|
emptyIcon: f
|
|
10312
10313
|
}) {
|
|
10313
|
-
const [p, x] = P(t), [
|
|
10314
|
+
const [p, x] = P(t), [v, w] = P(null), g = e !== void 0, j = v != null ? v : g ? e : p, S = {
|
|
10314
10315
|
sm: "h-4 w-4",
|
|
10315
10316
|
md: "h-5 w-5",
|
|
10316
10317
|
lg: "h-6 w-6"
|
|
10317
|
-
},
|
|
10318
|
-
o || (
|
|
10319
|
-
},
|
|
10318
|
+
}, h = (N) => {
|
|
10319
|
+
o || (g || x(N), d == null || d(N));
|
|
10320
|
+
}, b = (N) => {
|
|
10320
10321
|
o || (w(N), c == null || c(N));
|
|
10321
10322
|
}, k = () => {
|
|
10322
10323
|
o || w(null);
|
|
@@ -10331,14 +10332,14 @@ function qd({
|
|
|
10331
10332
|
"span",
|
|
10332
10333
|
{
|
|
10333
10334
|
className: "relative inline-block",
|
|
10334
|
-
onClick: () =>
|
|
10335
|
-
onMouseEnter: () =>
|
|
10335
|
+
onClick: () => h(A),
|
|
10336
|
+
onMouseEnter: () => b(A),
|
|
10336
10337
|
onMouseLeave: k,
|
|
10337
10338
|
role: o ? void 0 : "button",
|
|
10338
10339
|
tabIndex: o ? void 0 : 0,
|
|
10339
|
-
"aria-label": `Rate ${A} out of ${r}`,
|
|
10340
|
+
"aria-label": o ? void 0 : `Rate ${A} out of ${r}`,
|
|
10340
10341
|
onKeyDown: (O) => {
|
|
10341
|
-
!o && (O.key === "Enter" || O.key === " ") && (O.preventDefault(),
|
|
10342
|
+
!o && (O.key === "Enter" || O.key === " ") && (O.preventDefault(), h(A));
|
|
10342
10343
|
},
|
|
10343
10344
|
children: L ? /* @__PURE__ */ n.jsxs("span", { className: "relative inline-block", children: [
|
|
10344
10345
|
/* @__PURE__ */ n.jsx(
|
|
@@ -10407,11 +10408,11 @@ function Gd({
|
|
|
10407
10408
|
label: u,
|
|
10408
10409
|
description: m
|
|
10409
10410
|
}) {
|
|
10410
|
-
const [f, p] = P([]), [x,
|
|
10411
|
+
const [f, p] = P([]), [x, v] = P(!1), w = te(null), g = (T) => {
|
|
10411
10412
|
if (T === 0) return "0 Bytes";
|
|
10412
10413
|
const M = 1024, I = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(T) / Math.log(M));
|
|
10413
10414
|
return Math.round(T / Math.pow(M, R) * 100) / 100 + " " + I[R];
|
|
10414
|
-
}, j = (T) => r && T.size > r ? `File size exceeds ${
|
|
10415
|
+
}, j = (T) => r && T.size > r ? `File size exceeds ${g(r)}` : null, S = (T) => {
|
|
10415
10416
|
const M = Array.from(T), I = [];
|
|
10416
10417
|
return M.forEach((R) => {
|
|
10417
10418
|
const O = j(R), Z = `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, G = {
|
|
@@ -10435,24 +10436,24 @@ function Gd({
|
|
|
10435
10436
|
}
|
|
10436
10437
|
I.push(G);
|
|
10437
10438
|
}), I;
|
|
10438
|
-
},
|
|
10439
|
+
}, h = (T) => {
|
|
10439
10440
|
const M = t ? [...f, ...T] : T, I = s ? M.slice(0, s) : M;
|
|
10440
10441
|
p(I), a == null || a(I);
|
|
10441
|
-
},
|
|
10442
|
-
if (T.preventDefault(),
|
|
10442
|
+
}, b = (T) => {
|
|
10443
|
+
if (T.preventDefault(), v(!1), d) return;
|
|
10443
10444
|
const M = T.dataTransfer.files;
|
|
10444
10445
|
if (M.length > 0) {
|
|
10445
10446
|
const I = S(M);
|
|
10446
|
-
|
|
10447
|
+
h(I);
|
|
10447
10448
|
}
|
|
10448
10449
|
}, k = (T) => {
|
|
10449
|
-
T.preventDefault(), d ||
|
|
10450
|
+
T.preventDefault(), d || v(!0);
|
|
10450
10451
|
}, F = (T) => {
|
|
10451
|
-
T.preventDefault(),
|
|
10452
|
+
T.preventDefault(), v(!1);
|
|
10452
10453
|
}, N = (T) => {
|
|
10453
10454
|
if (T.target.files && T.target.files.length > 0) {
|
|
10454
10455
|
const M = S(T.target.files);
|
|
10455
|
-
|
|
10456
|
+
h(M);
|
|
10456
10457
|
}
|
|
10457
10458
|
w.current && (w.current.value = "");
|
|
10458
10459
|
}, A = (T) => {
|
|
@@ -10500,7 +10501,7 @@ function Gd({
|
|
|
10500
10501
|
/* @__PURE__ */ n.jsxs(
|
|
10501
10502
|
"div",
|
|
10502
10503
|
{
|
|
10503
|
-
onDrop:
|
|
10504
|
+
onDrop: b,
|
|
10504
10505
|
onDragOver: k,
|
|
10505
10506
|
onDragLeave: F,
|
|
10506
10507
|
onClick: L,
|
|
@@ -10594,7 +10595,7 @@ function Gd({
|
|
|
10594
10595
|
),
|
|
10595
10596
|
children: [
|
|
10596
10597
|
"Max size: ",
|
|
10597
|
-
|
|
10598
|
+
g(r)
|
|
10598
10599
|
]
|
|
10599
10600
|
}
|
|
10600
10601
|
)
|
|
@@ -10652,7 +10653,7 @@ function Gd({
|
|
|
10652
10653
|
Ce("xs"),
|
|
10653
10654
|
"text-fg-secondary"
|
|
10654
10655
|
),
|
|
10655
|
-
children:
|
|
10656
|
+
children: g(T.file.size)
|
|
10656
10657
|
}
|
|
10657
10658
|
),
|
|
10658
10659
|
T.error && /* @__PURE__ */ n.jsxs(
|
|
@@ -10723,9 +10724,9 @@ function Gn({
|
|
|
10723
10724
|
triggerClassName: m = "",
|
|
10724
10725
|
contentClassName: f = ""
|
|
10725
10726
|
}) {
|
|
10726
|
-
const [p, x] = P(s),
|
|
10727
|
-
if (!
|
|
10728
|
-
const A =
|
|
10727
|
+
const [p, x] = P(s), v = te(null), w = te(null), [g, j] = P({ top: 0, left: 0 }), S = r !== void 0, h = S ? r : p, b = Y(() => {
|
|
10728
|
+
if (!v.current || !w.current) return;
|
|
10729
|
+
const A = v.current.getBoundingClientRect(), L = w.current.getBoundingClientRect(), T = window.scrollY, M = window.scrollX;
|
|
10729
10730
|
let I = 0, R = 0;
|
|
10730
10731
|
o.startsWith("top") ? (I = A.top + T - L.height - 8, o === "top-start" ? R = A.left + M : o === "top-end" ? R = A.right + M - L.width : R = A.left + M + (A.width - L.width) / 2) : o.startsWith("bottom") ? (I = A.bottom + T + 8, o === "bottom-start" ? R = A.left + M : o === "bottom-end" ? R = A.right + M - L.width : R = A.left + M + (A.width - L.width) / 2) : o.startsWith("left") ? (R = A.left + M - L.width - 8, o === "left-start" ? I = A.top + T : o === "left-end" ? I = A.bottom + T - L.height : I = A.top + T + (A.height - L.height) / 2) : o.startsWith("right") && (R = A.right + M + 8, o === "right-start" ? I = A.top + T : o === "right-end" ? I = A.bottom + T - L.height : I = A.top + T + (A.height - L.height) / 2);
|
|
10731
10732
|
const O = 8;
|
|
@@ -10741,16 +10742,16 @@ function Gn({
|
|
|
10741
10742
|
), j({ top: I, left: R });
|
|
10742
10743
|
}, [o]);
|
|
10743
10744
|
J(() => {
|
|
10744
|
-
if (
|
|
10745
|
-
|
|
10746
|
-
const A = () =>
|
|
10745
|
+
if (h) {
|
|
10746
|
+
b();
|
|
10747
|
+
const A = () => b(), L = () => b();
|
|
10747
10748
|
return window.addEventListener("resize", A), window.addEventListener("scroll", L, !0), () => {
|
|
10748
10749
|
window.removeEventListener("resize", A), window.removeEventListener("scroll", L, !0);
|
|
10749
10750
|
};
|
|
10750
10751
|
}
|
|
10751
|
-
}, [
|
|
10752
|
-
|
|
10753
|
-
}, [
|
|
10752
|
+
}, [h, o, b]), J(() => {
|
|
10753
|
+
h && w.current && setTimeout(b, 0);
|
|
10754
|
+
}, [h, b]);
|
|
10754
10755
|
const k = Y(
|
|
10755
10756
|
(A) => {
|
|
10756
10757
|
S || x(A), a == null || a(A);
|
|
@@ -10760,21 +10761,21 @@ function Gn({
|
|
|
10760
10761
|
k(!1);
|
|
10761
10762
|
}, [k]);
|
|
10762
10763
|
J(() => {
|
|
10763
|
-
if (
|
|
10764
|
+
if (h && c) {
|
|
10764
10765
|
const A = (L) => {
|
|
10765
10766
|
L.key === "Escape" && F();
|
|
10766
10767
|
};
|
|
10767
10768
|
return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
|
|
10768
10769
|
}
|
|
10769
|
-
}, [
|
|
10770
|
-
if (
|
|
10770
|
+
}, [h, c, F]), J(() => {
|
|
10771
|
+
if (h && d) {
|
|
10771
10772
|
const A = (L) => {
|
|
10772
|
-
w.current &&
|
|
10773
|
+
w.current && v.current && !w.current.contains(L.target) && !v.current.contains(L.target) && F();
|
|
10773
10774
|
};
|
|
10774
10775
|
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
10775
10776
|
}
|
|
10776
|
-
}, [
|
|
10777
|
-
const N =
|
|
10777
|
+
}, [h, d, F]);
|
|
10778
|
+
const N = h ? /* @__PURE__ */ n.jsxs(
|
|
10778
10779
|
"div",
|
|
10779
10780
|
{
|
|
10780
10781
|
ref: w,
|
|
@@ -10792,8 +10793,8 @@ function Gn({
|
|
|
10792
10793
|
${f}
|
|
10793
10794
|
`,
|
|
10794
10795
|
style: {
|
|
10795
|
-
top: `${
|
|
10796
|
-
left: `${
|
|
10796
|
+
top: `${g.top}px`,
|
|
10797
|
+
left: `${g.left}px`
|
|
10797
10798
|
},
|
|
10798
10799
|
role: "dialog",
|
|
10799
10800
|
"aria-modal": "false",
|
|
@@ -10849,9 +10850,9 @@ function Gn({
|
|
|
10849
10850
|
/* @__PURE__ */ n.jsx(
|
|
10850
10851
|
"div",
|
|
10851
10852
|
{
|
|
10852
|
-
ref:
|
|
10853
|
+
ref: v,
|
|
10853
10854
|
className: m,
|
|
10854
|
-
onClick: () => k(!
|
|
10855
|
+
onClick: () => k(!h),
|
|
10855
10856
|
children: e
|
|
10856
10857
|
}
|
|
10857
10858
|
),
|
|
@@ -10869,7 +10870,7 @@ function Yd({
|
|
|
10869
10870
|
helperText: l,
|
|
10870
10871
|
className: d = ""
|
|
10871
10872
|
}) {
|
|
10872
|
-
const [c, u] = P(t || ""), [m, f] = P(12), [p, x] = P(0), [
|
|
10873
|
+
const [c, u] = P(t || ""), [m, f] = P(12), [p, x] = P(0), [v, w] = P("AM"), g = e !== void 0, j = g ? e : c, S = Y(
|
|
10873
10874
|
(I) => {
|
|
10874
10875
|
if (!I) return { hours: 12, minutes: 0, amPm: "AM" };
|
|
10875
10876
|
if (r === "24h") {
|
|
@@ -10885,7 +10886,7 @@ function Yd({
|
|
|
10885
10886
|
}
|
|
10886
10887
|
},
|
|
10887
10888
|
[r]
|
|
10888
|
-
),
|
|
10889
|
+
), h = (I, R, O) => {
|
|
10889
10890
|
if (r === "24h")
|
|
10890
10891
|
return `${String(I).padStart(2, "0")}:${String(R).padStart(2, "0")}`;
|
|
10891
10892
|
{
|
|
@@ -10899,42 +10900,42 @@ function Yd({
|
|
|
10899
10900
|
f(I.hours), x(I.minutes), w(I.amPm);
|
|
10900
10901
|
}
|
|
10901
10902
|
}, [j, S]);
|
|
10902
|
-
const
|
|
10903
|
+
const b = (I) => {
|
|
10903
10904
|
const R = r === "24h" ? Math.max(0, Math.min(23, I)) : Math.max(1, Math.min(12, I));
|
|
10904
10905
|
f(R);
|
|
10905
|
-
const O =
|
|
10906
|
+
const O = h(
|
|
10906
10907
|
R,
|
|
10907
10908
|
p,
|
|
10908
|
-
r === "12h" ?
|
|
10909
|
+
r === "12h" ? v : void 0
|
|
10909
10910
|
);
|
|
10910
|
-
|
|
10911
|
+
g || u(O), s == null || s(O);
|
|
10911
10912
|
}, k = (I) => {
|
|
10912
10913
|
const R = Math.max(0, Math.min(59, I));
|
|
10913
10914
|
x(R);
|
|
10914
|
-
const O =
|
|
10915
|
+
const O = h(
|
|
10915
10916
|
m,
|
|
10916
10917
|
R,
|
|
10917
|
-
r === "12h" ?
|
|
10918
|
+
r === "12h" ? v : void 0
|
|
10918
10919
|
);
|
|
10919
|
-
|
|
10920
|
+
g || u(O), s == null || s(O);
|
|
10920
10921
|
}, F = () => {
|
|
10921
|
-
const I =
|
|
10922
|
+
const I = v === "AM" ? "PM" : "AM";
|
|
10922
10923
|
w(I);
|
|
10923
|
-
const R =
|
|
10924
|
-
|
|
10924
|
+
const R = h(m, p, I);
|
|
10925
|
+
g || u(R), s == null || s(R);
|
|
10925
10926
|
}, N = () => {
|
|
10926
10927
|
if (r === "24h")
|
|
10927
|
-
|
|
10928
|
+
b((m + 1) % 24);
|
|
10928
10929
|
else {
|
|
10929
10930
|
const I = m === 12 ? 1 : m + 1;
|
|
10930
|
-
|
|
10931
|
+
b(I);
|
|
10931
10932
|
}
|
|
10932
10933
|
}, A = () => {
|
|
10933
10934
|
if (r === "24h")
|
|
10934
|
-
|
|
10935
|
+
b(m === 0 ? 23 : m - 1);
|
|
10935
10936
|
else {
|
|
10936
10937
|
const I = m === 1 ? 12 : m - 1;
|
|
10937
|
-
|
|
10938
|
+
b(I);
|
|
10938
10939
|
}
|
|
10939
10940
|
}, L = () => {
|
|
10940
10941
|
k((p + 1) % 60);
|
|
@@ -10996,7 +10997,7 @@ function Yd({
|
|
|
10996
10997
|
/* @__PURE__ */ n.jsx(
|
|
10997
10998
|
re,
|
|
10998
10999
|
{
|
|
10999
|
-
variant:
|
|
11000
|
+
variant: v === "AM" ? "primary" : "outline",
|
|
11000
11001
|
size: "sm",
|
|
11001
11002
|
onClick: () => F(),
|
|
11002
11003
|
disabled: a,
|
|
@@ -11006,7 +11007,7 @@ function Yd({
|
|
|
11006
11007
|
/* @__PURE__ */ n.jsx(
|
|
11007
11008
|
re,
|
|
11008
11009
|
{
|
|
11009
|
-
variant:
|
|
11010
|
+
variant: v === "PM" ? "primary" : "outline",
|
|
11010
11011
|
size: "sm",
|
|
11011
11012
|
onClick: () => F(),
|
|
11012
11013
|
disabled: a,
|
|
@@ -11022,7 +11023,7 @@ function Yd({
|
|
|
11022
11023
|
De,
|
|
11023
11024
|
{
|
|
11024
11025
|
label: o,
|
|
11025
|
-
value: j ||
|
|
11026
|
+
value: j || h(m, p, r === "12h" ? v : void 0),
|
|
11026
11027
|
readOnly: !0,
|
|
11027
11028
|
disabled: a,
|
|
11028
11029
|
error: i,
|
|
@@ -11049,7 +11050,7 @@ function Kd({
|
|
|
11049
11050
|
label: l,
|
|
11050
11051
|
className: d = ""
|
|
11051
11052
|
}) {
|
|
11052
|
-
const [c, u] = P(t), [m, f] = P({ r: 0, g: 0, b: 0 }), p = e !== void 0, x = p ? e : c,
|
|
11053
|
+
const [c, u] = P(t), [m, f] = P({ r: 0, g: 0, b: 0 }), p = e !== void 0, x = p ? e : c, v = (k) => {
|
|
11053
11054
|
const F = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(k);
|
|
11054
11055
|
return F ? {
|
|
11055
11056
|
r: parseInt(F[1], 16),
|
|
@@ -11062,19 +11063,19 @@ function Kd({
|
|
|
11062
11063
|
}).join("");
|
|
11063
11064
|
J(() => {
|
|
11064
11065
|
if (x) {
|
|
11065
|
-
const k =
|
|
11066
|
+
const k = v(x);
|
|
11066
11067
|
f(k);
|
|
11067
11068
|
}
|
|
11068
11069
|
}, [x]);
|
|
11069
|
-
const
|
|
11070
|
+
const g = (k) => {
|
|
11070
11071
|
const F = k.target.value;
|
|
11071
|
-
(/^#[0-9A-F]{6}$/i.test(F) || F === "") && (p || u(F), s == null || s(F), F && f(
|
|
11072
|
+
(/^#[0-9A-F]{6}$/i.test(F) || F === "") && (p || u(F), s == null || s(F), F && f(v(F)));
|
|
11072
11073
|
}, j = (k, F) => {
|
|
11073
11074
|
const N = _(E({}, m), { [k]: Math.max(0, Math.min(255, F)) });
|
|
11074
11075
|
f(N);
|
|
11075
11076
|
const A = w(N.r, N.g, N.b);
|
|
11076
11077
|
p || u(A), s == null || s(A);
|
|
11077
|
-
},
|
|
11078
|
+
}, h = a || [
|
|
11078
11079
|
"#000000",
|
|
11079
11080
|
"#ffffff",
|
|
11080
11081
|
"#ff0000",
|
|
@@ -11085,7 +11086,7 @@ function Kd({
|
|
|
11085
11086
|
"#00ffff",
|
|
11086
11087
|
"#808080",
|
|
11087
11088
|
"#ffa500"
|
|
11088
|
-
],
|
|
11089
|
+
], b = /* @__PURE__ */ n.jsxs("div", { className: `${C("base", "p")} min-w-[280px]`, children: [
|
|
11089
11090
|
/* @__PURE__ */ n.jsx(
|
|
11090
11091
|
"div",
|
|
11091
11092
|
{
|
|
@@ -11162,20 +11163,20 @@ function Kd({
|
|
|
11162
11163
|
{
|
|
11163
11164
|
label: "Hex",
|
|
11164
11165
|
value: x,
|
|
11165
|
-
onChange:
|
|
11166
|
+
onChange: g,
|
|
11166
11167
|
disabled: i,
|
|
11167
11168
|
placeholder: "#000000",
|
|
11168
11169
|
className: "font-mono"
|
|
11169
11170
|
}
|
|
11170
11171
|
) }),
|
|
11171
|
-
|
|
11172
|
+
h.length > 0 && /* @__PURE__ */ n.jsxs("div", { children: [
|
|
11172
11173
|
/* @__PURE__ */ n.jsx("label", { className: "block text-xs font-medium text-fg-secondary mb-2", children: "Presets" }),
|
|
11173
|
-
/* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-10 gap-1", children:
|
|
11174
|
+
/* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-10 gap-1", children: h.map((k, F) => /* @__PURE__ */ n.jsx(
|
|
11174
11175
|
"button",
|
|
11175
11176
|
{
|
|
11176
11177
|
type: "button",
|
|
11177
11178
|
onClick: () => {
|
|
11178
|
-
i || (p || u(k), s == null || s(k), f(
|
|
11179
|
+
i || (p || u(k), s == null || s(k), f(v(k)));
|
|
11179
11180
|
},
|
|
11180
11181
|
disabled: i,
|
|
11181
11182
|
className: `
|
|
@@ -11220,7 +11221,7 @@ function Kd({
|
|
|
11220
11221
|
De,
|
|
11221
11222
|
{
|
|
11222
11223
|
value: x,
|
|
11223
|
-
onChange:
|
|
11224
|
+
onChange: g,
|
|
11224
11225
|
disabled: i,
|
|
11225
11226
|
placeholder: "#000000",
|
|
11226
11227
|
className: "w-24 font-mono"
|
|
@@ -11230,7 +11231,7 @@ function Kd({
|
|
|
11230
11231
|
placement: "bottom-start",
|
|
11231
11232
|
showCloseButton: !0,
|
|
11232
11233
|
title: "Pick a Color",
|
|
11233
|
-
children:
|
|
11234
|
+
children: b
|
|
11234
11235
|
}
|
|
11235
11236
|
) });
|
|
11236
11237
|
}
|
|
@@ -11481,21 +11482,21 @@ function ec({
|
|
|
11481
11482
|
}, [s]), J(() => {
|
|
11482
11483
|
if (s && i.current && l.current) {
|
|
11483
11484
|
const m = () => {
|
|
11484
|
-
const x = l.current.getBoundingClientRect(),
|
|
11485
|
+
const x = l.current.getBoundingClientRect(), v = i.current.getBoundingClientRect(), w = window.scrollY, g = window.scrollX;
|
|
11485
11486
|
let j = 0, S = 0;
|
|
11486
|
-
o === "bottom" ? (j = x.bottom + w + 4, r === "start" ? S = x.left +
|
|
11487
|
-
const
|
|
11487
|
+
o === "bottom" ? (j = x.bottom + w + 4, r === "start" ? S = x.left + g : r === "end" ? S = x.right + g - v.width : S = x.left + g + (x.width - v.width) / 2) : o === "top" ? (j = x.top + w - v.height - 4, r === "start" ? S = x.left + g : r === "end" ? S = x.right + g - v.width : S = x.left + g + (x.width - v.width) / 2) : o === "right" ? (S = x.right + g + 4, r === "start" ? j = x.top + w : r === "end" ? j = x.bottom + w - v.height : j = x.top + w + (x.height - v.height) / 2) : o === "left" && (S = x.left + g - v.width - 4, r === "start" ? j = x.top + w : r === "end" ? j = x.bottom + w - v.height : j = x.top + w + (x.height - v.height) / 2);
|
|
11488
|
+
const h = 8;
|
|
11488
11489
|
j = Math.max(
|
|
11489
|
-
|
|
11490
|
+
h,
|
|
11490
11491
|
Math.min(
|
|
11491
11492
|
j,
|
|
11492
|
-
window.innerHeight + w -
|
|
11493
|
+
window.innerHeight + w - v.height - h
|
|
11493
11494
|
)
|
|
11494
11495
|
), S = Math.max(
|
|
11495
|
-
|
|
11496
|
+
h,
|
|
11496
11497
|
Math.min(
|
|
11497
11498
|
S,
|
|
11498
|
-
window.innerWidth +
|
|
11499
|
+
window.innerWidth + g - v.width - h
|
|
11499
11500
|
)
|
|
11500
11501
|
), c({ top: j, left: S });
|
|
11501
11502
|
};
|
|
@@ -11568,7 +11569,7 @@ const Zn = he(function(m, u) {
|
|
|
11568
11569
|
]);
|
|
11569
11570
|
const { closeMenu: p } = gs(), x = (w) => {
|
|
11570
11571
|
a || (o == null || o(w), i == null || i(w), !l && !w.defaultPrevented && p());
|
|
11571
|
-
},
|
|
11572
|
+
}, v = (w) => {
|
|
11572
11573
|
a || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), x(w));
|
|
11573
11574
|
};
|
|
11574
11575
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -11579,7 +11580,7 @@ const Zn = he(function(m, u) {
|
|
|
11579
11580
|
tabIndex: a ? -1 : 0,
|
|
11580
11581
|
"aria-disabled": a,
|
|
11581
11582
|
onClick: x,
|
|
11582
|
-
onKeyDown:
|
|
11583
|
+
onKeyDown: v,
|
|
11583
11584
|
className: `
|
|
11584
11585
|
flex
|
|
11585
11586
|
items-center
|
|
@@ -12088,14 +12089,14 @@ function cc(d) {
|
|
|
12088
12089
|
}
|
|
12089
12090
|
return _(E({}, p), { active: !1 });
|
|
12090
12091
|
}), [e, u]), f = /* @__PURE__ */ n.jsx(n.Fragment, { children: m.map((p, x) => {
|
|
12091
|
-
const
|
|
12092
|
+
const v = r === "pills" ? "background" : r === "tabs" ? "underline" : "default";
|
|
12092
12093
|
return /* @__PURE__ */ n.jsxs(
|
|
12093
12094
|
Tn,
|
|
12094
12095
|
{
|
|
12095
12096
|
href: p.href,
|
|
12096
12097
|
active: p.active,
|
|
12097
12098
|
disabled: p.disabled,
|
|
12098
|
-
variant:
|
|
12099
|
+
variant: v,
|
|
12099
12100
|
className: y(
|
|
12100
12101
|
"flex items-center gap-2",
|
|
12101
12102
|
t === "vertical" && "w-full justify-start",
|
|
@@ -12248,14 +12249,14 @@ function eu(c) {
|
|
|
12248
12249
|
if (!e) return;
|
|
12249
12250
|
f.current = document.activeElement;
|
|
12250
12251
|
const j = setTimeout(() => {
|
|
12251
|
-
var
|
|
12252
|
-
(
|
|
12253
|
-
}, 0), S = (
|
|
12254
|
-
|
|
12252
|
+
var h;
|
|
12253
|
+
(h = m.current) == null || h.focus();
|
|
12254
|
+
}, 0), S = (h) => {
|
|
12255
|
+
h.key === "Escape" && t();
|
|
12255
12256
|
};
|
|
12256
12257
|
return document.addEventListener("keydown", S), () => {
|
|
12257
|
-
var
|
|
12258
|
-
clearTimeout(j), document.removeEventListener("keydown", S), (
|
|
12258
|
+
var h;
|
|
12259
|
+
clearTimeout(j), document.removeEventListener("keydown", S), (h = f.current) == null || h.focus();
|
|
12259
12260
|
};
|
|
12260
12261
|
}, [e, t]), J(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
12261
12262
|
document.body.style.overflow = "";
|
|
@@ -12279,7 +12280,7 @@ function eu(c) {
|
|
|
12279
12280
|
}[a],
|
|
12280
12281
|
"p-6",
|
|
12281
12282
|
l
|
|
12282
|
-
].filter(Boolean).join(" "),
|
|
12283
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ n.jsxs(
|
|
12283
12284
|
"div",
|
|
12284
12285
|
{
|
|
12285
12286
|
className: p.join(" "),
|
|
@@ -12336,7 +12337,7 @@ function eu(c) {
|
|
|
12336
12337
|
]
|
|
12337
12338
|
}
|
|
12338
12339
|
);
|
|
12339
|
-
return typeof window != "undefined" ? Ze(
|
|
12340
|
+
return typeof window != "undefined" ? Ze(g, document.body) : g;
|
|
12340
12341
|
}
|
|
12341
12342
|
const xs = we(void 0);
|
|
12342
12343
|
function et() {
|
|
@@ -12365,13 +12366,13 @@ function an({
|
|
|
12365
12366
|
sortDirection: f,
|
|
12366
12367
|
onSort: p,
|
|
12367
12368
|
defaultSortColumn: x,
|
|
12368
|
-
defaultSortDirection:
|
|
12369
|
+
defaultSortDirection: v = "asc",
|
|
12369
12370
|
filters: w,
|
|
12370
|
-
filterValues:
|
|
12371
|
+
filterValues: g,
|
|
12371
12372
|
onFilter: j,
|
|
12372
12373
|
initialFilterValues: S = {},
|
|
12373
|
-
selectable:
|
|
12374
|
-
selectedRows:
|
|
12374
|
+
selectable: h = !1,
|
|
12375
|
+
selectedRows: b,
|
|
12375
12376
|
onSelectionChange: k,
|
|
12376
12377
|
rowId: F,
|
|
12377
12378
|
actions: N,
|
|
@@ -12390,9 +12391,9 @@ function an({
|
|
|
12390
12391
|
}) {
|
|
12391
12392
|
const D = z(() => s || (i !== void 0 && l ? "server" : "client"), [s, i, l]), B = a !== void 0, [Q, se] = P(1), [U, q] = P(c), W = B ? a : Q, le = o != null ? o : U, ue = z(() => D === "server" ? i != null ? i : 0 : t.length, [D, i, t.length]), fe = z(() => Math.ceil(ue / le), [ue, le]), Me = m !== void 0, [qe, _t] = P(
|
|
12392
12393
|
x || ""
|
|
12393
|
-
), [Pe, zt] = P(
|
|
12394
|
+
), [Pe, zt] = P(v), Le = Me ? m : qe, Qt = Me ? f || "asc" : Pe, $r = g !== void 0, [ka, Na] = P(S), er = $r ? g : ka, Cr = b !== void 0, [Sa, $a] = P(
|
|
12394
12395
|
[]
|
|
12395
|
-
), Oe = Cr ?
|
|
12396
|
+
), Oe = Cr ? b : Sa, tr = z(() => !w || w.length === 0 ? t : t.filter((ne) => w.every((ge) => {
|
|
12396
12397
|
const je = er[ge.key];
|
|
12397
12398
|
if (!je || je === "") return !0;
|
|
12398
12399
|
const sr = ne[ge.key];
|
|
@@ -12417,14 +12418,14 @@ function an({
|
|
|
12417
12418
|
return F ? F(ne) : ((je = ne == null ? void 0 : ne.id) == null ? void 0 : je.toString()) || ge.toString();
|
|
12418
12419
|
},
|
|
12419
12420
|
[F]
|
|
12420
|
-
), rr = z(() => !
|
|
12421
|
+
), rr = z(() => !h || Ge.length === 0 ? !1 : Ge.every((ne, ge) => {
|
|
12421
12422
|
const je = St(ne, ge);
|
|
12422
12423
|
return Oe.includes(je);
|
|
12423
|
-
}), [
|
|
12424
|
-
if (!
|
|
12424
|
+
}), [h, Ge, Oe, St]), $s = z(() => {
|
|
12425
|
+
if (!h) return !1;
|
|
12425
12426
|
const ne = Oe.length;
|
|
12426
12427
|
return ne > 0 && ne < Ge.length;
|
|
12427
|
-
}, [
|
|
12428
|
+
}, [h, Oe.length, Ge.length]), $t = Y(
|
|
12428
12429
|
(ne) => {
|
|
12429
12430
|
B ? l == null || l(ne) : se(ne);
|
|
12430
12431
|
},
|
|
@@ -12495,7 +12496,7 @@ function an({
|
|
|
12495
12496
|
isIndeterminate: $s
|
|
12496
12497
|
},
|
|
12497
12498
|
paginationMode: D,
|
|
12498
|
-
selectable:
|
|
12499
|
+
selectable: h,
|
|
12499
12500
|
rowId: F,
|
|
12500
12501
|
actions: N,
|
|
12501
12502
|
resizable: O,
|
|
@@ -12540,7 +12541,7 @@ function an({
|
|
|
12540
12541
|
rr,
|
|
12541
12542
|
$s,
|
|
12542
12543
|
D,
|
|
12543
|
-
|
|
12544
|
+
h,
|
|
12544
12545
|
F,
|
|
12545
12546
|
N,
|
|
12546
12547
|
A,
|
|
@@ -12589,42 +12590,42 @@ function ta(d) {
|
|
|
12589
12590
|
"maxWidth",
|
|
12590
12591
|
"className"
|
|
12591
12592
|
]);
|
|
12592
|
-
const { sortState: u, setSorting: m, onSort: f } = et(), p = te(null), x = te(null),
|
|
12593
|
+
const { sortState: u, setSorting: m, onSort: f } = et(), p = te(null), x = te(null), v = te(null), w = () => {
|
|
12593
12594
|
if (!e.sortable || !f && !m) return;
|
|
12594
12595
|
const k = u.column === e.key && u.direction === "asc" ? "desc" : "asc";
|
|
12595
12596
|
f ? f(e.key, k) : m(e.key, k);
|
|
12596
|
-
},
|
|
12597
|
-
|
|
12597
|
+
}, g = (k) => {
|
|
12598
|
+
h && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), w());
|
|
12598
12599
|
}, j = (k) => {
|
|
12599
12600
|
if (k.preventDefault(), k.stopPropagation(), !x.current || !s) return;
|
|
12600
12601
|
const F = r || x.current.offsetWidth;
|
|
12601
|
-
|
|
12602
|
+
v.current = {
|
|
12602
12603
|
x: k.clientX,
|
|
12603
12604
|
width: F
|
|
12604
12605
|
};
|
|
12605
12606
|
const N = (L) => {
|
|
12606
|
-
if (!
|
|
12607
|
-
const T = L.clientX -
|
|
12607
|
+
if (!v.current) return;
|
|
12608
|
+
const T = L.clientX - v.current.x, M = v.current.width + T, I = Math.max(
|
|
12608
12609
|
a,
|
|
12609
12610
|
o ? Math.min(M, o) : M
|
|
12610
12611
|
);
|
|
12611
12612
|
s(e.key, I);
|
|
12612
12613
|
}, A = () => {
|
|
12613
|
-
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", A),
|
|
12614
|
+
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", A), v.current = null;
|
|
12614
12615
|
};
|
|
12615
12616
|
document.addEventListener("mousemove", N), document.addEventListener("mouseup", A);
|
|
12616
|
-
}, S = u.column === e.key,
|
|
12617
|
+
}, S = u.column === e.key, h = e.sortable && (f || m), b = S ? u.direction : void 0;
|
|
12617
12618
|
return /* @__PURE__ */ n.jsx(
|
|
12618
12619
|
"th",
|
|
12619
12620
|
_(E({
|
|
12620
12621
|
ref: x,
|
|
12621
12622
|
scope: "col",
|
|
12622
12623
|
role: "columnheader",
|
|
12623
|
-
"aria-sort": S ?
|
|
12624
|
-
className: `px-6 py-3 text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${
|
|
12625
|
-
onClick:
|
|
12626
|
-
onKeyDown:
|
|
12627
|
-
tabIndex:
|
|
12624
|
+
"aria-sort": S ? b === "asc" ? "ascending" : "descending" : h ? "none" : void 0,
|
|
12625
|
+
className: `px-6 py-3 text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${h ? "cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none" : ""} ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${i}`,
|
|
12626
|
+
onClick: h ? w : void 0,
|
|
12627
|
+
onKeyDown: h ? g : void 0,
|
|
12628
|
+
tabIndex: h ? 0 : void 0,
|
|
12628
12629
|
style: r ? { width: `${r}px`, minWidth: `${r}px` } : void 0
|
|
12629
12630
|
}, l), {
|
|
12630
12631
|
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 relative", children: [
|
|
@@ -12805,7 +12806,7 @@ function Xr(i) {
|
|
|
12805
12806
|
getRowId: f,
|
|
12806
12807
|
actions: p,
|
|
12807
12808
|
onRowClick: x
|
|
12808
|
-
} = et(),
|
|
12809
|
+
} = et(), v = f(e, t), w = u.selectedRows.includes(v), g = (j) => {
|
|
12809
12810
|
s && s(j), x && x(e);
|
|
12810
12811
|
};
|
|
12811
12812
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -12815,7 +12816,7 @@ function Xr(i) {
|
|
|
12815
12816
|
"aria-selected": c ? w : void 0,
|
|
12816
12817
|
"aria-rowindex": t + 1,
|
|
12817
12818
|
className: `hover:bg-surface-hover ${w ? "bg-surface-selected" : ""} ${r}`,
|
|
12818
|
-
onClick:
|
|
12819
|
+
onClick: g,
|
|
12819
12820
|
style: a
|
|
12820
12821
|
}, o), {
|
|
12821
12822
|
children: [
|
|
@@ -12823,8 +12824,8 @@ function Xr(i) {
|
|
|
12823
12824
|
ls,
|
|
12824
12825
|
{
|
|
12825
12826
|
checked: w,
|
|
12826
|
-
onChange: () => m(
|
|
12827
|
-
"aria-label": `Select row ${
|
|
12827
|
+
onChange: () => m(v),
|
|
12828
|
+
"aria-label": `Select row ${v}`,
|
|
12828
12829
|
className: "my-0"
|
|
12829
12830
|
}
|
|
12830
12831
|
) }),
|
|
@@ -12863,7 +12864,7 @@ function oa(r) {
|
|
|
12863
12864
|
function fc(e, t) {
|
|
12864
12865
|
const { itemHeight: r, containerHeight: s, overscan: a = 5, enabled: o = !0 } = t, [i, l] = P(0), d = te(null), c = z(() => {
|
|
12865
12866
|
if (!o || e.length === 0)
|
|
12866
|
-
return e.map((
|
|
12867
|
+
return e.map((v, w) => ({
|
|
12867
12868
|
index: w,
|
|
12868
12869
|
start: w * r,
|
|
12869
12870
|
end: (w + 1) * r,
|
|
@@ -12876,11 +12877,11 @@ function fc(e, t) {
|
|
|
12876
12877
|
e.length,
|
|
12877
12878
|
Math.ceil((i + s) / r) + a
|
|
12878
12879
|
) : e.length, x = [];
|
|
12879
|
-
for (let
|
|
12880
|
+
for (let v = f; v < p; v++)
|
|
12880
12881
|
x.push({
|
|
12881
|
-
index:
|
|
12882
|
-
start:
|
|
12883
|
-
end: (
|
|
12882
|
+
index: v,
|
|
12883
|
+
start: v * r,
|
|
12884
|
+
end: (v + 1) * r,
|
|
12884
12885
|
size: r
|
|
12885
12886
|
});
|
|
12886
12887
|
return x;
|
|
@@ -12912,7 +12913,7 @@ function ia(s) {
|
|
|
12912
12913
|
"children",
|
|
12913
12914
|
"className"
|
|
12914
12915
|
]);
|
|
12915
|
-
var
|
|
12916
|
+
var v, w;
|
|
12916
12917
|
const {
|
|
12917
12918
|
paginatedData: o,
|
|
12918
12919
|
loading: i,
|
|
@@ -12926,16 +12927,16 @@ function ia(s) {
|
|
|
12926
12927
|
containerHeight: m == null ? void 0 : m.containerHeight,
|
|
12927
12928
|
overscan: (m == null ? void 0 : m.overscan) || 5,
|
|
12928
12929
|
enabled: u || !1
|
|
12929
|
-
}), x = z(() => u && p.virtualItems.length > 0 ? p.virtualItems.map((
|
|
12930
|
-
row: o[
|
|
12931
|
-
index:
|
|
12932
|
-
})).filter((
|
|
12930
|
+
}), x = z(() => u && p.virtualItems.length > 0 ? p.virtualItems.map((g) => ({
|
|
12931
|
+
row: o[g.index],
|
|
12932
|
+
index: g.index
|
|
12933
|
+
})).filter((g) => g.row !== void 0) : o.map((g, j) => ({ row: g, index: j })), [u, p.virtualItems, o]);
|
|
12933
12934
|
return i ? /* @__PURE__ */ n.jsx(
|
|
12934
12935
|
"tbody",
|
|
12935
12936
|
_(E({
|
|
12936
12937
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
12937
12938
|
}, r), {
|
|
12938
|
-
children: Array.from({ length: 5 }).map((
|
|
12939
|
+
children: Array.from({ length: 5 }).map((g, j) => /* @__PURE__ */ n.jsx("tr", { children: Array.from({ length: f }).map((S, h) => /* @__PURE__ */ n.jsx("td", { className: "px-6 py-4", children: /* @__PURE__ */ n.jsx(nl, { className: "h-4 w-full" }) }, h)) }, j))
|
|
12939
12940
|
})
|
|
12940
12941
|
) : o.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
12941
12942
|
"tbody",
|
|
@@ -12949,7 +12950,7 @@ function ia(s) {
|
|
|
12949
12950
|
_(E({
|
|
12950
12951
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
12951
12952
|
}, r), {
|
|
12952
|
-
children: o.map((
|
|
12953
|
+
children: o.map((g, j) => e(g, j))
|
|
12953
12954
|
})
|
|
12954
12955
|
) : /* @__PURE__ */ n.jsx(
|
|
12955
12956
|
"tbody",
|
|
@@ -12960,7 +12961,7 @@ function ia(s) {
|
|
|
12960
12961
|
children: u && p.virtualItems.length > 0 && x.length > 0 ? (
|
|
12961
12962
|
// Virtual scrolling: render with spacer rows
|
|
12962
12963
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
12963
|
-
((
|
|
12964
|
+
((v = p.virtualItems[0]) == null ? void 0 : v.start) > 0 && /* @__PURE__ */ n.jsx(
|
|
12964
12965
|
"tr",
|
|
12965
12966
|
{
|
|
12966
12967
|
style: { height: p.virtualItems[0].start },
|
|
@@ -12968,7 +12969,7 @@ function ia(s) {
|
|
|
12968
12969
|
children: /* @__PURE__ */ n.jsx("td", { colSpan: f })
|
|
12969
12970
|
}
|
|
12970
12971
|
),
|
|
12971
|
-
x.map(({ row:
|
|
12972
|
+
x.map(({ row: g, index: j }) => /* @__PURE__ */ n.jsx(Xr, { row: g, rowIndex: j }, j)),
|
|
12972
12973
|
p.virtualItems.length > 0 && /* @__PURE__ */ n.jsx(
|
|
12973
12974
|
"tr",
|
|
12974
12975
|
{
|
|
@@ -12985,7 +12986,7 @@ function ia(s) {
|
|
|
12985
12986
|
] })
|
|
12986
12987
|
) : (
|
|
12987
12988
|
// Normal rendering
|
|
12988
|
-
x.map(({ row:
|
|
12989
|
+
x.map(({ row: g, index: j }) => /* @__PURE__ */ n.jsx(Xr, { row: g, rowIndex: j }, j))
|
|
12989
12990
|
)
|
|
12990
12991
|
})
|
|
12991
12992
|
);
|
|
@@ -13005,20 +13006,20 @@ function mc(i) {
|
|
|
13005
13006
|
"className"
|
|
13006
13007
|
]);
|
|
13007
13008
|
const [d, c] = P(r), [u, m] = P(!1), f = Object.values(d).some(
|
|
13008
|
-
(
|
|
13009
|
-
), p = (
|
|
13010
|
-
const S = _(E({}, d), { [
|
|
13009
|
+
(g) => g !== "" && g !== null && g !== void 0
|
|
13010
|
+
), p = (g, j) => {
|
|
13011
|
+
const S = _(E({}, d), { [g]: j });
|
|
13011
13012
|
c(S), t(S);
|
|
13012
13013
|
}, x = () => {
|
|
13013
|
-
const
|
|
13014
|
+
const g = {};
|
|
13014
13015
|
e.forEach((j) => {
|
|
13015
|
-
|
|
13016
|
-
}), c(
|
|
13017
|
-
},
|
|
13018
|
-
const j = _(E({}, d), { [
|
|
13016
|
+
g[j.key] = "";
|
|
13017
|
+
}), c(g), t(g);
|
|
13018
|
+
}, v = (g) => {
|
|
13019
|
+
const j = _(E({}, d), { [g]: "" });
|
|
13019
13020
|
c(j), t(j);
|
|
13020
13021
|
}, w = Object.values(d).filter(
|
|
13021
|
-
(
|
|
13022
|
+
(g) => g !== "" && g !== null && g !== void 0
|
|
13022
13023
|
).length;
|
|
13023
13024
|
return /* @__PURE__ */ n.jsx(
|
|
13024
13025
|
"div",
|
|
@@ -13057,70 +13058,70 @@ function mc(i) {
|
|
|
13057
13058
|
}
|
|
13058
13059
|
)
|
|
13059
13060
|
] }),
|
|
13060
|
-
u && /* @__PURE__ */ n.jsx("div", { className: "mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: e.map((
|
|
13061
|
-
const j = d[
|
|
13061
|
+
u && /* @__PURE__ */ n.jsx("div", { className: "mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", children: e.map((g) => {
|
|
13062
|
+
const j = d[g.key] || "";
|
|
13062
13063
|
return /* @__PURE__ */ n.jsxs("div", { className: "space-y-1", children: [
|
|
13063
|
-
/* @__PURE__ */ n.jsx(Kt, { htmlFor: `filter-${
|
|
13064
|
+
/* @__PURE__ */ n.jsx(Kt, { htmlFor: `filter-${g.key}`, variant: "optional", children: g.label }),
|
|
13064
13065
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
13065
|
-
|
|
13066
|
+
g.type === "text" && /* @__PURE__ */ n.jsx(
|
|
13066
13067
|
De,
|
|
13067
13068
|
{
|
|
13068
|
-
id: `filter-${
|
|
13069
|
+
id: `filter-${g.key}`,
|
|
13069
13070
|
type: "text",
|
|
13070
13071
|
value: j,
|
|
13071
|
-
onChange: (S) => p(
|
|
13072
|
-
placeholder:
|
|
13072
|
+
onChange: (S) => p(g.key, S.target.value),
|
|
13073
|
+
placeholder: g.placeholder || `Filter by ${g.label.toLowerCase()}`,
|
|
13073
13074
|
size: "sm",
|
|
13074
13075
|
variant: "outlined"
|
|
13075
13076
|
}
|
|
13076
13077
|
),
|
|
13077
|
-
|
|
13078
|
+
g.type === "select" && /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
13078
13079
|
/* @__PURE__ */ n.jsx(
|
|
13079
13080
|
is,
|
|
13080
13081
|
{
|
|
13081
|
-
id: `filter-${
|
|
13082
|
+
id: `filter-${g.key}`,
|
|
13082
13083
|
options: [
|
|
13083
|
-
{ value: "", label: `All ${
|
|
13084
|
-
...
|
|
13084
|
+
{ value: "", label: `All ${g.label}` },
|
|
13085
|
+
...g.options || []
|
|
13085
13086
|
],
|
|
13086
13087
|
value: j,
|
|
13087
|
-
onChange: (S) => p(
|
|
13088
|
+
onChange: (S) => p(g.key, S.target.value)
|
|
13088
13089
|
}
|
|
13089
13090
|
),
|
|
13090
13091
|
j && /* @__PURE__ */ n.jsx(
|
|
13091
13092
|
"button",
|
|
13092
13093
|
{
|
|
13093
13094
|
type: "button",
|
|
13094
|
-
onClick: () =>
|
|
13095
|
+
onClick: () => v(g.key),
|
|
13095
13096
|
className: "absolute right-8 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary",
|
|
13096
|
-
"aria-label": `Clear ${
|
|
13097
|
+
"aria-label": `Clear ${g.label} filter`,
|
|
13097
13098
|
children: /* @__PURE__ */ n.jsx(Te, { className: "h-4 w-4" })
|
|
13098
13099
|
}
|
|
13099
13100
|
)
|
|
13100
13101
|
] }),
|
|
13101
|
-
|
|
13102
|
+
g.type === "date" && /* @__PURE__ */ n.jsx(
|
|
13102
13103
|
De,
|
|
13103
13104
|
{
|
|
13104
|
-
id: `filter-${
|
|
13105
|
+
id: `filter-${g.key}`,
|
|
13105
13106
|
type: "date",
|
|
13106
13107
|
value: j,
|
|
13107
|
-
onChange: (S) => p(
|
|
13108
|
+
onChange: (S) => p(g.key, S.target.value),
|
|
13108
13109
|
size: "sm",
|
|
13109
13110
|
variant: "outlined"
|
|
13110
13111
|
}
|
|
13111
13112
|
),
|
|
13112
|
-
j &&
|
|
13113
|
+
j && g.type !== "select" && /* @__PURE__ */ n.jsx(
|
|
13113
13114
|
"button",
|
|
13114
13115
|
{
|
|
13115
13116
|
type: "button",
|
|
13116
|
-
onClick: () =>
|
|
13117
|
+
onClick: () => v(g.key),
|
|
13117
13118
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary",
|
|
13118
|
-
"aria-label": `Clear ${
|
|
13119
|
+
"aria-label": `Clear ${g.label} filter`,
|
|
13119
13120
|
children: /* @__PURE__ */ n.jsx(Te, { className: "h-4 w-4" })
|
|
13120
13121
|
}
|
|
13121
13122
|
)
|
|
13122
13123
|
] })
|
|
13123
|
-
] },
|
|
13124
|
+
] }, g.key);
|
|
13124
13125
|
}) })
|
|
13125
13126
|
] })
|
|
13126
13127
|
})
|
|
@@ -13168,11 +13169,11 @@ function pc(u) {
|
|
|
13168
13169
|
"showPageInfo",
|
|
13169
13170
|
"className"
|
|
13170
13171
|
]);
|
|
13171
|
-
const f = Math.ceil(r / t), p = r === 0 ? 0 : (e - 1) * t + 1, x = Math.min(e * t, r),
|
|
13172
|
+
const f = Math.ceil(r / t), p = r === 0 ? 0 : (e - 1) * t + 1, x = Math.min(e * t, r), v = () => {
|
|
13172
13173
|
e > 1 && s(e - 1);
|
|
13173
13174
|
}, w = () => {
|
|
13174
13175
|
e < f && s(e + 1);
|
|
13175
|
-
},
|
|
13176
|
+
}, g = () => {
|
|
13176
13177
|
e > 1 && s(1);
|
|
13177
13178
|
}, j = () => {
|
|
13178
13179
|
e < f && s(f);
|
|
@@ -13189,7 +13190,7 @@ function pc(u) {
|
|
|
13189
13190
|
{
|
|
13190
13191
|
variant: "outline",
|
|
13191
13192
|
size: "sm",
|
|
13192
|
-
onClick:
|
|
13193
|
+
onClick: v,
|
|
13193
13194
|
disabled: e === 1,
|
|
13194
13195
|
children: "Previous"
|
|
13195
13196
|
}
|
|
@@ -13229,8 +13230,8 @@ function pc(u) {
|
|
|
13229
13230
|
})),
|
|
13230
13231
|
value: t.toString(),
|
|
13231
13232
|
onChange: (S) => {
|
|
13232
|
-
const
|
|
13233
|
-
a(
|
|
13233
|
+
const h = parseInt(S.target.value);
|
|
13234
|
+
a(h), s(1);
|
|
13234
13235
|
},
|
|
13235
13236
|
className: "w-20"
|
|
13236
13237
|
}
|
|
@@ -13242,7 +13243,7 @@ function pc(u) {
|
|
|
13242
13243
|
{
|
|
13243
13244
|
variant: "ghost",
|
|
13244
13245
|
size: "sm",
|
|
13245
|
-
onClick:
|
|
13246
|
+
onClick: g,
|
|
13246
13247
|
disabled: e === 1,
|
|
13247
13248
|
"aria-label": "First page",
|
|
13248
13249
|
children: [
|
|
@@ -13256,26 +13257,26 @@ function pc(u) {
|
|
|
13256
13257
|
{
|
|
13257
13258
|
variant: "ghost",
|
|
13258
13259
|
size: "sm",
|
|
13259
|
-
onClick:
|
|
13260
|
+
onClick: v,
|
|
13260
13261
|
disabled: e === 1,
|
|
13261
13262
|
"aria-label": "Previous page",
|
|
13262
13263
|
children: /* @__PURE__ */ n.jsx(Yt, { className: "h-4 w-4" })
|
|
13263
13264
|
}
|
|
13264
13265
|
),
|
|
13265
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: Array.from({ length: Math.min(5, f) }, (S,
|
|
13266
|
-
let
|
|
13267
|
-
return f <= 5 || e <= 3 ?
|
|
13266
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: Array.from({ length: Math.min(5, f) }, (S, h) => {
|
|
13267
|
+
let b;
|
|
13268
|
+
return f <= 5 || e <= 3 ? b = h + 1 : e >= f - 2 ? b = f - 4 + h : b = e - 2 + h, /* @__PURE__ */ n.jsx(
|
|
13268
13269
|
re,
|
|
13269
13270
|
{
|
|
13270
|
-
variant: e ===
|
|
13271
|
+
variant: e === b ? "primary" : "ghost",
|
|
13271
13272
|
size: "sm",
|
|
13272
|
-
onClick: () => s(
|
|
13273
|
+
onClick: () => s(b),
|
|
13273
13274
|
className: "min-w-10",
|
|
13274
|
-
"aria-label": `Page ${
|
|
13275
|
-
"aria-current": e ===
|
|
13276
|
-
children:
|
|
13275
|
+
"aria-label": `Page ${b}`,
|
|
13276
|
+
"aria-current": e === b ? "page" : void 0,
|
|
13277
|
+
children: b
|
|
13277
13278
|
},
|
|
13278
|
-
|
|
13279
|
+
b
|
|
13279
13280
|
);
|
|
13280
13281
|
}) }),
|
|
13281
13282
|
/* @__PURE__ */ n.jsx(
|
|
@@ -13388,20 +13389,20 @@ function hc(e) {
|
|
|
13388
13389
|
pagination: f,
|
|
13389
13390
|
filters: p,
|
|
13390
13391
|
selectable: x,
|
|
13391
|
-
selectedRows:
|
|
13392
|
+
selectedRows: v,
|
|
13392
13393
|
onSelectionChange: w,
|
|
13393
|
-
rowId:
|
|
13394
|
+
rowId: g,
|
|
13394
13395
|
actions: j,
|
|
13395
13396
|
onRowClick: S,
|
|
13396
|
-
paginationMode:
|
|
13397
|
-
defaultPageSize:
|
|
13397
|
+
paginationMode: h,
|
|
13398
|
+
defaultPageSize: b,
|
|
13398
13399
|
resizable: k,
|
|
13399
13400
|
columnWidths: F,
|
|
13400
13401
|
onColumnResize: N,
|
|
13401
13402
|
virtualScrolling: A,
|
|
13402
13403
|
virtualScrollingOptions: L
|
|
13403
13404
|
} = e;
|
|
13404
|
-
let T =
|
|
13405
|
+
let T = h || "auto";
|
|
13405
13406
|
return T === "auto" && (T = f && f.total !== void 0 && f.onPageChange ? "server" : "client"), {
|
|
13406
13407
|
columns: t,
|
|
13407
13408
|
data: r,
|
|
@@ -13412,7 +13413,7 @@ function hc(e) {
|
|
|
13412
13413
|
total: f == null ? void 0 : f.total,
|
|
13413
13414
|
onPageChange: f == null ? void 0 : f.onPageChange,
|
|
13414
13415
|
onPageSizeChange: f == null ? void 0 : f.onPageSizeChange,
|
|
13415
|
-
defaultPageSize:
|
|
13416
|
+
defaultPageSize: b || (f == null ? void 0 : f.pageSize) || 10,
|
|
13416
13417
|
pageSizeOptions: f == null ? void 0 : f.pageSizeOptions,
|
|
13417
13418
|
sortColumn: o,
|
|
13418
13419
|
sortDirection: i,
|
|
@@ -13422,9 +13423,9 @@ function hc(e) {
|
|
|
13422
13423
|
onFilter: p == null ? void 0 : p.onFilter,
|
|
13423
13424
|
initialFilterValues: p == null ? void 0 : p.initialValues,
|
|
13424
13425
|
selectable: x,
|
|
13425
|
-
selectedRows:
|
|
13426
|
+
selectedRows: v,
|
|
13426
13427
|
onSelectionChange: w,
|
|
13427
|
-
rowId:
|
|
13428
|
+
rowId: g,
|
|
13428
13429
|
actions: j,
|
|
13429
13430
|
onRowClick: S,
|
|
13430
13431
|
emptyMessage: l,
|
|
@@ -13460,47 +13461,47 @@ function ru(e = {}) {
|
|
|
13460
13461
|
} = e, [o, i] = P(t), [l, d] = P(!1), [c, u] = P(null), m = te(
|
|
13461
13462
|
null
|
|
13462
13463
|
), f = Y(
|
|
13463
|
-
(S,
|
|
13464
|
-
const
|
|
13464
|
+
(S, h) => {
|
|
13465
|
+
const b = Math.max(
|
|
13465
13466
|
r,
|
|
13466
|
-
s ? Math.min(
|
|
13467
|
+
s ? Math.min(h, s) : h
|
|
13467
13468
|
);
|
|
13468
13469
|
i((k) => _(E({}, k), {
|
|
13469
|
-
[S]:
|
|
13470
|
+
[S]: b
|
|
13470
13471
|
}));
|
|
13471
13472
|
},
|
|
13472
13473
|
[r, s]
|
|
13473
13474
|
), p = Y(() => {
|
|
13474
13475
|
i(t);
|
|
13475
13476
|
}, [t]), x = Y(
|
|
13476
|
-
(S,
|
|
13477
|
-
a && (d(!0), u(S), m.current = { startX:
|
|
13477
|
+
(S, h, b) => {
|
|
13478
|
+
a && (d(!0), u(S), m.current = { startX: h, startWidth: b });
|
|
13478
13479
|
},
|
|
13479
13480
|
[a]
|
|
13480
|
-
),
|
|
13481
|
+
), v = Y(
|
|
13481
13482
|
(S) => {
|
|
13482
13483
|
if (!l || !c || !m.current) return;
|
|
13483
|
-
const
|
|
13484
|
-
f(c,
|
|
13484
|
+
const h = S - m.current.startX, b = m.current.startWidth + h;
|
|
13485
|
+
f(c, b);
|
|
13485
13486
|
},
|
|
13486
13487
|
[l, c, f]
|
|
13487
13488
|
), w = Y(() => {
|
|
13488
13489
|
d(!1), u(null), m.current = null;
|
|
13489
|
-
}, []),
|
|
13490
|
+
}, []), g = te(
|
|
13490
13491
|
void 0
|
|
13491
13492
|
), j = te(void 0);
|
|
13492
|
-
return typeof window != "undefined" && (
|
|
13493
|
-
l &&
|
|
13493
|
+
return typeof window != "undefined" && (g.current = (S) => {
|
|
13494
|
+
l && v(S.clientX);
|
|
13494
13495
|
}, j.current = () => {
|
|
13495
13496
|
l && w();
|
|
13496
|
-
}, l ? (document.addEventListener("mousemove",
|
|
13497
|
+
}, l ? (document.addEventListener("mousemove", g.current), document.addEventListener("mouseup", j.current)) : (g.current && document.removeEventListener("mousemove", g.current), j.current && document.removeEventListener("mouseup", j.current))), {
|
|
13497
13498
|
columnWidths: o,
|
|
13498
13499
|
setColumnWidth: f,
|
|
13499
13500
|
resetColumnWidths: p,
|
|
13500
13501
|
isResizing: l,
|
|
13501
13502
|
resizingColumn: c,
|
|
13502
13503
|
startResize: x,
|
|
13503
|
-
handleResize:
|
|
13504
|
+
handleResize: v,
|
|
13504
13505
|
endResize: w
|
|
13505
13506
|
};
|
|
13506
13507
|
}
|
|
@@ -13594,7 +13595,7 @@ function ua({
|
|
|
13594
13595
|
keyboardShortcut: p = Ae.keyboardShortcut,
|
|
13595
13596
|
enableKeyboardShortcut: x = Ae.enableKeyboardShortcut
|
|
13596
13597
|
}) {
|
|
13597
|
-
const
|
|
13598
|
+
const v = z(
|
|
13598
13599
|
() => ({
|
|
13599
13600
|
mode: t,
|
|
13600
13601
|
resizable: r,
|
|
@@ -13628,7 +13629,7 @@ function ua({
|
|
|
13628
13629
|
x
|
|
13629
13630
|
]
|
|
13630
13631
|
);
|
|
13631
|
-
return /* @__PURE__ */ n.jsx(vs.Provider, { value:
|
|
13632
|
+
return /* @__PURE__ */ n.jsx(vs.Provider, { value: v, children: e });
|
|
13632
13633
|
}
|
|
13633
13634
|
const ys = we(null);
|
|
13634
13635
|
function au() {
|
|
@@ -13725,25 +13726,25 @@ function vc({
|
|
|
13725
13726
|
(j) => {
|
|
13726
13727
|
let S = Vr(j, t, r);
|
|
13727
13728
|
if (s && s.length > 0) {
|
|
13728
|
-
const
|
|
13729
|
-
const F = Math.abs(S - k), N = Math.abs(S -
|
|
13730
|
-
return F < N ? k :
|
|
13729
|
+
const h = s.reduce((b, k) => {
|
|
13730
|
+
const F = Math.abs(S - k), N = Math.abs(S - b);
|
|
13731
|
+
return F < N ? k : b;
|
|
13731
13732
|
}, s[0]);
|
|
13732
|
-
Math.abs(S -
|
|
13733
|
+
Math.abs(S - h) <= a && (S = h);
|
|
13733
13734
|
}
|
|
13734
13735
|
c(S), o == null || o(S);
|
|
13735
13736
|
},
|
|
13736
13737
|
[t, r, s, a, o]
|
|
13737
|
-
),
|
|
13738
|
+
), v = Y(
|
|
13738
13739
|
(j) => {
|
|
13739
13740
|
if (!i || !u) return;
|
|
13740
|
-
const S = j.clientX - f.current,
|
|
13741
|
-
x(
|
|
13741
|
+
const S = j.clientX - f.current, h = p.current + S;
|
|
13742
|
+
x(h);
|
|
13742
13743
|
},
|
|
13743
13744
|
[i, u, x]
|
|
13744
13745
|
), w = Y(() => {
|
|
13745
13746
|
i && (m(!1), f.current = 0, p.current = d);
|
|
13746
|
-
}, [i, d]),
|
|
13747
|
+
}, [i, d]), g = Y(
|
|
13747
13748
|
(j) => {
|
|
13748
13749
|
i && (j.preventDefault(), j.stopPropagation(), m(!0), f.current = j.clientX, p.current = d);
|
|
13749
13750
|
},
|
|
@@ -13751,15 +13752,15 @@ function vc({
|
|
|
13751
13752
|
);
|
|
13752
13753
|
return J(() => {
|
|
13753
13754
|
if (u)
|
|
13754
|
-
return document.addEventListener("mousemove",
|
|
13755
|
-
document.removeEventListener("mousemove",
|
|
13755
|
+
return document.addEventListener("mousemove", v), document.addEventListener("mouseup", w), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", () => {
|
|
13756
|
+
document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", w), document.body.style.userSelect = "", document.body.style.cursor = "";
|
|
13756
13757
|
};
|
|
13757
|
-
}, [u,
|
|
13758
|
+
}, [u, v, w]), J(() => {
|
|
13758
13759
|
u || c(Vr(e, t, r));
|
|
13759
13760
|
}, [e, t, r, u]), {
|
|
13760
13761
|
width: d,
|
|
13761
13762
|
isResizing: u,
|
|
13762
|
-
startResize:
|
|
13763
|
+
startResize: g,
|
|
13763
13764
|
setWidth: x
|
|
13764
13765
|
};
|
|
13765
13766
|
}
|
|
@@ -13845,8 +13846,8 @@ function jc({
|
|
|
13845
13846
|
const u = c.target;
|
|
13846
13847
|
if ((u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.isContentEditable) && !t && !a)
|
|
13847
13848
|
return;
|
|
13848
|
-
const f = e.length === 1 ? c.key.toLowerCase() === e.toLowerCase() : c.key === e, p = t ? c.ctrlKey || c.metaKey : !c.ctrlKey && !c.metaKey, x = r ? c.shiftKey : !c.shiftKey,
|
|
13849
|
-
f &&
|
|
13849
|
+
const f = e.length === 1 ? c.key.toLowerCase() === e.toLowerCase() : c.key === e, p = t ? c.ctrlKey || c.metaKey : !c.ctrlKey && !c.metaKey, x = r ? c.shiftKey : !c.shiftKey, v = s ? c.altKey : !c.altKey, w = a ? c.metaKey : !c.metaKey, g = t ? (c.ctrlKey || c.metaKey) && !a : p && w;
|
|
13850
|
+
f && g && x && v && (l && (c.preventDefault(), c.stopPropagation()), o());
|
|
13850
13851
|
},
|
|
13851
13852
|
[i, e, t, r, s, a, o, l]
|
|
13852
13853
|
);
|
|
@@ -13885,7 +13886,7 @@ function fa({
|
|
|
13885
13886
|
return Jr(l.contentWidth);
|
|
13886
13887
|
}, [p, x] = P(
|
|
13887
13888
|
m
|
|
13888
|
-
), [
|
|
13889
|
+
), [v, w] = P({}), { isMobile: g } = yc({
|
|
13889
13890
|
mobileBreakpoint: d.mobileBreakpoint,
|
|
13890
13891
|
onMobileChange: (R) => {
|
|
13891
13892
|
o == null || o(R), R && d.mobileVariant === "collapse" && !u && x(!0);
|
|
@@ -13894,8 +13895,8 @@ function fa({
|
|
|
13894
13895
|
}), {
|
|
13895
13896
|
width: j,
|
|
13896
13897
|
isResizing: S,
|
|
13897
|
-
startResize:
|
|
13898
|
-
setWidth:
|
|
13898
|
+
startResize: h,
|
|
13899
|
+
setWidth: b
|
|
13899
13900
|
} = vc({
|
|
13900
13901
|
initialWidth: f(),
|
|
13901
13902
|
minWidth: d.minWidth,
|
|
@@ -13904,10 +13905,10 @@ function fa({
|
|
|
13904
13905
|
onWidthChange: (R) => {
|
|
13905
13906
|
a == null || a(R), d.storageKey && d.persistWidth && typeof window != "undefined" && localStorage.setItem(`${d.storageKey}-width`, String(R));
|
|
13906
13907
|
},
|
|
13907
|
-
enabled: d.resizable && !
|
|
13908
|
+
enabled: d.resizable && !g
|
|
13908
13909
|
});
|
|
13909
13910
|
wc({
|
|
13910
|
-
isActive:
|
|
13911
|
+
isActive: g && d.mobileVariant === "overlay" && !p,
|
|
13911
13912
|
containerRef: c,
|
|
13912
13913
|
restoreFocus: !0
|
|
13913
13914
|
});
|
|
@@ -13930,9 +13931,9 @@ function fa({
|
|
|
13930
13931
|
});
|
|
13931
13932
|
const L = Y(
|
|
13932
13933
|
(R) => {
|
|
13933
|
-
|
|
13934
|
+
b(R);
|
|
13934
13935
|
},
|
|
13935
|
-
[
|
|
13936
|
+
[b]
|
|
13936
13937
|
), T = Y(
|
|
13937
13938
|
(R) => {
|
|
13938
13939
|
w(i ? (O) => {
|
|
@@ -13970,10 +13971,10 @@ function fa({
|
|
|
13970
13971
|
setCollapsed: F,
|
|
13971
13972
|
currentWidth: j,
|
|
13972
13973
|
setWidth: L,
|
|
13973
|
-
isMobile:
|
|
13974
|
+
isMobile: g,
|
|
13974
13975
|
isResizing: S,
|
|
13975
|
-
startResize:
|
|
13976
|
-
groupStates:
|
|
13976
|
+
startResize: h,
|
|
13977
|
+
groupStates: v,
|
|
13977
13978
|
toggleGroup: T,
|
|
13978
13979
|
setGroupCollapsed: M,
|
|
13979
13980
|
sidebarRef: c
|
|
@@ -13984,10 +13985,10 @@ function fa({
|
|
|
13984
13985
|
F,
|
|
13985
13986
|
j,
|
|
13986
13987
|
L,
|
|
13987
|
-
h,
|
|
13988
|
-
S,
|
|
13989
13988
|
g,
|
|
13990
|
-
|
|
13989
|
+
S,
|
|
13990
|
+
h,
|
|
13991
|
+
v,
|
|
13991
13992
|
T,
|
|
13992
13993
|
M
|
|
13993
13994
|
]
|
|
@@ -14012,14 +14013,14 @@ function ma({
|
|
|
14012
14013
|
mobileBreakpoint: f,
|
|
14013
14014
|
mobileVariant: p,
|
|
14014
14015
|
overlayBackdrop: x,
|
|
14015
|
-
persistState:
|
|
14016
|
+
persistState: v,
|
|
14016
14017
|
persistWidth: w,
|
|
14017
|
-
storageKey:
|
|
14018
|
+
storageKey: g,
|
|
14018
14019
|
keyboardShortcut: j,
|
|
14019
14020
|
enableKeyboardShortcut: S,
|
|
14020
14021
|
// State props
|
|
14021
|
-
defaultCollapsed:
|
|
14022
|
-
collapsed:
|
|
14022
|
+
defaultCollapsed: h,
|
|
14023
|
+
collapsed: b,
|
|
14023
14024
|
onCollapseChange: k,
|
|
14024
14025
|
onWidthChange: F,
|
|
14025
14026
|
onMobileChange: N,
|
|
@@ -14045,16 +14046,16 @@ function ma({
|
|
|
14045
14046
|
mobileBreakpoint: f,
|
|
14046
14047
|
mobileVariant: p,
|
|
14047
14048
|
overlayBackdrop: x,
|
|
14048
|
-
persistState:
|
|
14049
|
+
persistState: v,
|
|
14049
14050
|
persistWidth: w,
|
|
14050
|
-
storageKey:
|
|
14051
|
+
storageKey: g,
|
|
14051
14052
|
keyboardShortcut: j,
|
|
14052
14053
|
enableKeyboardShortcut: S,
|
|
14053
14054
|
children: /* @__PURE__ */ n.jsx(
|
|
14054
14055
|
fa,
|
|
14055
14056
|
{
|
|
14056
|
-
defaultCollapsed:
|
|
14057
|
-
collapsed:
|
|
14057
|
+
defaultCollapsed: h,
|
|
14058
|
+
collapsed: b,
|
|
14058
14059
|
onCollapseChange: k,
|
|
14059
14060
|
onWidthChange: F,
|
|
14060
14061
|
onMobileChange: N,
|
|
@@ -14206,7 +14207,7 @@ function ba(o) {
|
|
|
14206
14207
|
"className",
|
|
14207
14208
|
"style"
|
|
14208
14209
|
]);
|
|
14209
|
-
const { collapsed: l, setCollapsed: d, isMobile: c } = kt(), { animationDuration: u } = jt(), { mobileVariant: m, overlayBackdrop: f } = Lt(), p = c && m === "overlay", x = e != null ? e : p && f && !l,
|
|
14210
|
+
const { collapsed: l, setCollapsed: d, isMobile: c } = kt(), { animationDuration: u } = jt(), { mobileVariant: m, overlayBackdrop: f } = Lt(), p = c && m === "overlay", x = e != null ? e : p && f && !l, v = () => {
|
|
14210
14211
|
t ? t() : d(!0);
|
|
14211
14212
|
};
|
|
14212
14213
|
return x ? /* @__PURE__ */ n.jsx(
|
|
@@ -14221,7 +14222,7 @@ function ba(o) {
|
|
|
14221
14222
|
style: E({
|
|
14222
14223
|
animation: `fadeIn ${u}ms ease-in-out`
|
|
14223
14224
|
}, s),
|
|
14224
|
-
onClick:
|
|
14225
|
+
onClick: v,
|
|
14225
14226
|
"aria-hidden": "true",
|
|
14226
14227
|
"data-testid": "side-navbar-backdrop"
|
|
14227
14228
|
}, a)
|
|
@@ -14262,8 +14263,8 @@ const Nc = {
|
|
|
14262
14263
|
"navigation-top": "right",
|
|
14263
14264
|
"navigation-bottom": "right"
|
|
14264
14265
|
};
|
|
14265
|
-
function va(
|
|
14266
|
-
var w =
|
|
14266
|
+
function va(v) {
|
|
14267
|
+
var w = v, {
|
|
14267
14268
|
position: e = "floating",
|
|
14268
14269
|
offset: t,
|
|
14269
14270
|
icon: r,
|
|
@@ -14295,22 +14296,22 @@ function va(b) {
|
|
|
14295
14296
|
"aria-label"
|
|
14296
14297
|
]);
|
|
14297
14298
|
var H, de;
|
|
14298
|
-
const { collapsed:
|
|
14299
|
+
const { collapsed: g, toggle: j } = kt(), {
|
|
14299
14300
|
animationDuration: S,
|
|
14300
|
-
animationEasing:
|
|
14301
|
-
navigationWidth:
|
|
14301
|
+
animationEasing: h,
|
|
14302
|
+
navigationWidth: b,
|
|
14302
14303
|
contentWidth: k,
|
|
14303
14304
|
minWidth: F
|
|
14304
14305
|
} = jt(), N = Lt(), A = c != null ? c : N.keyboardShortcut, L = u != null ? u : N.enableKeyboardShortcut, T = () => {
|
|
14305
14306
|
if (typeof r == "function")
|
|
14306
|
-
return r(
|
|
14307
|
+
return r(g);
|
|
14307
14308
|
if (r)
|
|
14308
14309
|
return r;
|
|
14309
|
-
if (
|
|
14310
|
+
if (g && s)
|
|
14310
14311
|
return s;
|
|
14311
|
-
if (!
|
|
14312
|
+
if (!g && a)
|
|
14312
14313
|
return a;
|
|
14313
|
-
const ie =
|
|
14314
|
+
const ie = g ? Pi : _i;
|
|
14314
14315
|
return /* @__PURE__ */ n.jsx(
|
|
14315
14316
|
ie,
|
|
14316
14317
|
{
|
|
@@ -14322,7 +14323,7 @@ function va(b) {
|
|
|
14322
14323
|
}
|
|
14323
14324
|
}
|
|
14324
14325
|
);
|
|
14325
|
-
}, M =
|
|
14326
|
+
}, M = g ? "Expand sidebar" : "Collapse sidebar", I = d != null ? d : Ac[e], R = l ? `${g ? "Expand" : "Collapse"} sidebar${L ? ` (${A})` : ""}` : void 0, O = t ? {
|
|
14326
14327
|
transform: `translate(${(H = t.x) != null ? H : 0}px, ${(de = t.y) != null ? de : 0}px)`
|
|
14327
14328
|
} : {}, Z = e === "floating" ? E({
|
|
14328
14329
|
// Toggle sempre na borda direita da sidebar completa (<aside>)
|
|
@@ -14335,7 +14336,7 @@ function va(b) {
|
|
|
14335
14336
|
top: "1rem",
|
|
14336
14337
|
transform: "translateY(-50%)",
|
|
14337
14338
|
// Transição suave para acompanhar o resize da sidebar
|
|
14338
|
-
transition: `right ${S}ms ${
|
|
14339
|
+
transition: `right ${S}ms ${h}`
|
|
14339
14340
|
}, O) : O, G = /* @__PURE__ */ n.jsx(
|
|
14340
14341
|
"button",
|
|
14341
14342
|
_(E({
|
|
@@ -14369,7 +14370,7 @@ function va(b) {
|
|
|
14369
14370
|
// Ensure left doesn't interfere
|
|
14370
14371
|
} : {}), e !== "floating" ? Z : {}), e === "floating" ? { zIndex: Bs.fixed.value } : {}), f),
|
|
14371
14372
|
"aria-label": p || M,
|
|
14372
|
-
"aria-expanded": !
|
|
14373
|
+
"aria-expanded": !g,
|
|
14373
14374
|
"aria-controls": "side-navbar-sidebar",
|
|
14374
14375
|
"data-position": e
|
|
14375
14376
|
}, x), {
|
|
@@ -14429,14 +14430,14 @@ function Tc(o) {
|
|
|
14429
14430
|
setCollapsed: f,
|
|
14430
14431
|
currentWidth: p,
|
|
14431
14432
|
isResizing: x,
|
|
14432
|
-
sidebarRef:
|
|
14433
|
+
sidebarRef: v,
|
|
14433
14434
|
isMobile: w
|
|
14434
14435
|
} = l, {
|
|
14435
|
-
variant:
|
|
14436
|
+
variant: g,
|
|
14436
14437
|
navigationWidth: j,
|
|
14437
14438
|
contentWidth: S,
|
|
14438
|
-
animationDuration:
|
|
14439
|
-
animationEasing:
|
|
14439
|
+
animationDuration: h,
|
|
14440
|
+
animationEasing: b
|
|
14440
14441
|
} = d, { mode: k, resizable: F, mobileVariant: N, overlayBackdrop: A } = c, L = typeof j == "number" ? `${j}px` : j, T = typeof S == "number" ? `${S}px` : S, I = k === "navigation" || m ? L : F ? `${p}px` : T, [R, O] = P(!1);
|
|
14441
14442
|
J(() => {
|
|
14442
14443
|
O(!0);
|
|
@@ -14447,13 +14448,13 @@ function Tc(o) {
|
|
|
14447
14448
|
/* @__PURE__ */ n.jsxs(
|
|
14448
14449
|
"aside",
|
|
14449
14450
|
_(E({
|
|
14450
|
-
ref:
|
|
14451
|
+
ref: v,
|
|
14451
14452
|
className: y(
|
|
14452
14453
|
H,
|
|
14453
14454
|
"flex",
|
|
14454
14455
|
"h-full",
|
|
14455
14456
|
"overflow-visible",
|
|
14456
|
-
Ec[
|
|
14457
|
+
Ec[g],
|
|
14457
14458
|
G && m ? "-translate-x-full" : "translate-x-0",
|
|
14458
14459
|
t
|
|
14459
14460
|
),
|
|
@@ -14466,8 +14467,8 @@ function Tc(o) {
|
|
|
14466
14467
|
width: I,
|
|
14467
14468
|
minWidth: I,
|
|
14468
14469
|
transitionProperty: x ? "none" : "width, min-width, transform",
|
|
14469
|
-
transitionDuration: `${
|
|
14470
|
-
transitionTimingFunction:
|
|
14470
|
+
transitionDuration: `${h}ms`,
|
|
14471
|
+
transitionTimingFunction: b
|
|
14471
14472
|
}, r),
|
|
14472
14473
|
role: "complementary",
|
|
14473
14474
|
"aria-label": s || "Sidebar navigation",
|
|
@@ -14604,8 +14605,8 @@ const Mc = {
|
|
|
14604
14605
|
inline: `flex-row ${C("sm", "gap")} w-full ${C("md", "px")}`,
|
|
14605
14606
|
below: `flex-col ${C("1.5", "gap")}`
|
|
14606
14607
|
};
|
|
14607
|
-
function Rc(
|
|
14608
|
-
var j =
|
|
14608
|
+
function Rc(g) {
|
|
14609
|
+
var j = g, {
|
|
14609
14610
|
id: e,
|
|
14610
14611
|
icon: t,
|
|
14611
14612
|
label: r,
|
|
@@ -14621,7 +14622,7 @@ function Rc(h) {
|
|
|
14621
14622
|
target: f,
|
|
14622
14623
|
onClick: p,
|
|
14623
14624
|
disabled: x = !1,
|
|
14624
|
-
className:
|
|
14625
|
+
className: v = ""
|
|
14625
14626
|
} = j, w = V(j, [
|
|
14626
14627
|
"id",
|
|
14627
14628
|
"icon",
|
|
@@ -14643,14 +14644,14 @@ function Rc(h) {
|
|
|
14643
14644
|
var Z;
|
|
14644
14645
|
const {
|
|
14645
14646
|
activeItem: S,
|
|
14646
|
-
setActiveItem:
|
|
14647
|
-
labelMode:
|
|
14648
|
-
} = Ns(), k = (Z = s != null ? s :
|
|
14647
|
+
setActiveItem: h,
|
|
14648
|
+
labelMode: b
|
|
14649
|
+
} = Ns(), k = (Z = s != null ? s : b) != null ? Z : "tooltip", F = o || e && S === e, N = Mc[u], A = (G) => {
|
|
14649
14650
|
if (x) {
|
|
14650
14651
|
G.preventDefault();
|
|
14651
14652
|
return;
|
|
14652
14653
|
}
|
|
14653
|
-
e &&
|
|
14654
|
+
e && h(e), p == null || p();
|
|
14654
14655
|
}, L = k !== "tooltip" && a && r && /* @__PURE__ */ n.jsx(
|
|
14655
14656
|
"span",
|
|
14656
14657
|
{
|
|
@@ -14698,7 +14699,7 @@ function Rc(h) {
|
|
|
14698
14699
|
k === "tooltip" ? N.container : y(C("sm", "px"), C("1.5", "py")),
|
|
14699
14700
|
k !== "tooltip" && Dc[k],
|
|
14700
14701
|
x ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
14701
|
-
|
|
14702
|
+
v
|
|
14702
14703
|
), M = {
|
|
14703
14704
|
default: F ? "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",
|
|
14704
14705
|
ghost: F ? "text-fg-brand-emphasis" : x ? "text-fg-disabled" : "text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",
|
|
@@ -14908,8 +14909,8 @@ function Ft(u) {
|
|
|
14908
14909
|
"className",
|
|
14909
14910
|
"style"
|
|
14910
14911
|
]);
|
|
14911
|
-
const f = kt(), p = jt(), x = Lt(),
|
|
14912
|
-
r != null ||
|
|
14912
|
+
const f = kt(), p = jt(), x = Lt(), v = ga(), w = te(null), [g, j] = P(null), [S, h] = P(!1), b = t != null ? t : v.showMainToggle;
|
|
14913
|
+
r != null || v.mainTogglePosition;
|
|
14913
14914
|
const k = o === "inline" && !f.collapsed, F = k ? typeof i == "number" ? `${i}px` : i : p.navigationWidth, N = z(
|
|
14914
14915
|
() => ({
|
|
14915
14916
|
// Inherited from root
|
|
@@ -14917,7 +14918,7 @@ function Ft(u) {
|
|
|
14917
14918
|
toggle: f.toggle,
|
|
14918
14919
|
// Navbar-specific
|
|
14919
14920
|
navbarRef: w,
|
|
14920
|
-
activeItem:
|
|
14921
|
+
activeItem: g,
|
|
14921
14922
|
setActiveItem: j,
|
|
14922
14923
|
isHovered: S,
|
|
14923
14924
|
showInternalToggle: s,
|
|
@@ -14927,14 +14928,14 @@ function Ft(u) {
|
|
|
14927
14928
|
[
|
|
14928
14929
|
f.collapsed,
|
|
14929
14930
|
f.toggle,
|
|
14930
|
-
|
|
14931
|
+
g,
|
|
14931
14932
|
S,
|
|
14932
14933
|
s,
|
|
14933
14934
|
a,
|
|
14934
14935
|
o
|
|
14935
14936
|
]
|
|
14936
14937
|
);
|
|
14937
|
-
return
|
|
14938
|
+
return b && x.mode, /* @__PURE__ */ n.jsx(ks.Provider, { value: N, children: /* @__PURE__ */ n.jsxs(
|
|
14938
14939
|
"nav",
|
|
14939
14940
|
_(E({
|
|
14940
14941
|
ref: w,
|
|
@@ -14957,8 +14958,8 @@ function Ft(u) {
|
|
|
14957
14958
|
transitionDuration: `${p.animationDuration}ms`,
|
|
14958
14959
|
transitionTimingFunction: p.animationEasing
|
|
14959
14960
|
}, d),
|
|
14960
|
-
onMouseEnter: () =>
|
|
14961
|
-
onMouseLeave: () =>
|
|
14961
|
+
onMouseEnter: () => h(!0),
|
|
14962
|
+
onMouseLeave: () => h(!1),
|
|
14962
14963
|
"aria-label": "Side navigation"
|
|
14963
14964
|
}, c), {
|
|
14964
14965
|
children: [
|
|
@@ -15185,13 +15186,13 @@ function Vc(c) {
|
|
|
15185
15186
|
collapsed: m,
|
|
15186
15187
|
activeGroup: f,
|
|
15187
15188
|
setActiveGroup: p
|
|
15188
|
-
} = Sr(), { groupStates: x, toggleGroup:
|
|
15189
|
+
} = Sr(), { groupStates: x, toggleGroup: v, setGroupCollapsed: w } = kt(), { animationDuration: g } = jt(), j = te(!1);
|
|
15189
15190
|
if (J(() => {
|
|
15190
15191
|
!j.current && x[e] === void 0 && (j.current = !0, w(e, o));
|
|
15191
15192
|
}, [e, o, x, w]), m)
|
|
15192
15193
|
return null;
|
|
15193
|
-
const S = (k = x[e]) != null ? k : o,
|
|
15194
|
-
p(e), a &&
|
|
15194
|
+
const S = (k = x[e]) != null ? k : o, h = f === e, b = () => {
|
|
15195
|
+
p(e), a && v(e);
|
|
15195
15196
|
};
|
|
15196
15197
|
return /* @__PURE__ */ n.jsxs(
|
|
15197
15198
|
"div",
|
|
@@ -15208,7 +15209,7 @@ function Vc(c) {
|
|
|
15208
15209
|
"button",
|
|
15209
15210
|
{
|
|
15210
15211
|
type: "button",
|
|
15211
|
-
onClick:
|
|
15212
|
+
onClick: b,
|
|
15212
15213
|
className: `
|
|
15213
15214
|
flex
|
|
15214
15215
|
items-center
|
|
@@ -15219,7 +15220,7 @@ function Vc(c) {
|
|
|
15219
15220
|
text-left
|
|
15220
15221
|
transition-colors
|
|
15221
15222
|
duration-150
|
|
15222
|
-
${
|
|
15223
|
+
${h ? "bg-surface-active" : "hover:bg-surface-active"}
|
|
15223
15224
|
${a ? "cursor-pointer" : "cursor-default"}
|
|
15224
15225
|
`,
|
|
15225
15226
|
"aria-expanded": a ? !S : void 0,
|
|
@@ -15241,7 +15242,7 @@ function Vc(c) {
|
|
|
15241
15242
|
transition-transform
|
|
15242
15243
|
${S ? "-rotate-90" : "rotate-0"}
|
|
15243
15244
|
`,
|
|
15244
|
-
style: { transitionDuration: `${
|
|
15245
|
+
style: { transitionDuration: `${g}ms` },
|
|
15245
15246
|
"aria-hidden": "true"
|
|
15246
15247
|
}
|
|
15247
15248
|
)
|
|
@@ -15249,7 +15250,7 @@ function Vc(c) {
|
|
|
15249
15250
|
]
|
|
15250
15251
|
}
|
|
15251
15252
|
),
|
|
15252
|
-
a ? /* @__PURE__ */ n.jsx(ol, { open: !S, duration:
|
|
15253
|
+
a ? /* @__PURE__ */ n.jsx(ol, { open: !S, duration: g, children: /* @__PURE__ */ n.jsx("div", { id: `sidebar-group-${e}`, className: "px-3 py-2", children: i }) }) : /* @__PURE__ */ n.jsx("div", { className: "px-3 py-2", children: i })
|
|
15253
15254
|
]
|
|
15254
15255
|
})
|
|
15255
15256
|
);
|
|
@@ -15266,7 +15267,7 @@ function Hc({
|
|
|
15266
15267
|
}
|
|
15267
15268
|
function Nt(a) {
|
|
15268
15269
|
var o = a, { children: e, className: t = "", style: r } = o, s = V(o, ["children", "className", "style"]);
|
|
15269
|
-
const i = kt(), l = jt(), d = te(null), [c, u] = P(0), [m, f] = P(!1), [p, x] = P(!1), [
|
|
15270
|
+
const i = kt(), l = jt(), d = te(null), [c, u] = P(0), [m, f] = P(!1), [p, x] = P(!1), [v, w] = P(null), g = Y(() => f(!0), []), j = Y(() => f(!1), []), S = Y(() => x(!0), []), h = Y(() => x(!1), []), b = z(
|
|
15270
15271
|
() => ({
|
|
15271
15272
|
// Inherited from root
|
|
15272
15273
|
collapsed: i.collapsed,
|
|
@@ -15278,11 +15279,11 @@ function Nt(a) {
|
|
|
15278
15279
|
setScrollPosition: u,
|
|
15279
15280
|
hasHeader: m,
|
|
15280
15281
|
hasFooter: p,
|
|
15281
|
-
registerHeader:
|
|
15282
|
+
registerHeader: g,
|
|
15282
15283
|
unregisterHeader: j,
|
|
15283
15284
|
registerFooter: S,
|
|
15284
|
-
unregisterFooter:
|
|
15285
|
-
activeGroup:
|
|
15285
|
+
unregisterFooter: h,
|
|
15286
|
+
activeGroup: v,
|
|
15286
15287
|
setActiveGroup: w
|
|
15287
15288
|
}),
|
|
15288
15289
|
[
|
|
@@ -15292,14 +15293,14 @@ function Nt(a) {
|
|
|
15292
15293
|
c,
|
|
15293
15294
|
m,
|
|
15294
15295
|
p,
|
|
15295
|
-
|
|
15296
|
+
g,
|
|
15296
15297
|
j,
|
|
15297
15298
|
S,
|
|
15298
|
-
|
|
15299
|
-
|
|
15299
|
+
h,
|
|
15300
|
+
v
|
|
15300
15301
|
]
|
|
15301
15302
|
), k = Jr(l.contentWidth), F = Jr(l.navigationWidth), N = k - F;
|
|
15302
|
-
return /* @__PURE__ */ n.jsx(Ss.Provider, { value:
|
|
15303
|
+
return /* @__PURE__ */ n.jsx(Ss.Provider, { value: b, children: /* @__PURE__ */ n.jsx(
|
|
15303
15304
|
"aside",
|
|
15304
15305
|
_(E({
|
|
15305
15306
|
ref: d,
|
|
@@ -15351,13 +15352,13 @@ function ze(A) {
|
|
|
15351
15352
|
overlayBackdrop: f = !0,
|
|
15352
15353
|
storageKey: p,
|
|
15353
15354
|
persistWidth: x = !1,
|
|
15354
|
-
defaultCollapsed:
|
|
15355
|
+
defaultCollapsed: v = !1,
|
|
15355
15356
|
collapsed: w,
|
|
15356
|
-
onCollapseChange:
|
|
15357
|
+
onCollapseChange: g,
|
|
15357
15358
|
onWidthChange: j,
|
|
15358
15359
|
onMobileChange: S,
|
|
15359
|
-
exclusiveGroups:
|
|
15360
|
-
showToggle:
|
|
15360
|
+
exclusiveGroups: h = !1,
|
|
15361
|
+
showToggle: b = !0,
|
|
15361
15362
|
togglePosition: k = "floating",
|
|
15362
15363
|
children: F
|
|
15363
15364
|
} = L, N = V(L, [
|
|
@@ -15394,10 +15395,10 @@ function ze(A) {
|
|
|
15394
15395
|
]);
|
|
15395
15396
|
const T = z(
|
|
15396
15397
|
() => ({
|
|
15397
|
-
showMainToggle:
|
|
15398
|
+
showMainToggle: b,
|
|
15398
15399
|
mainTogglePosition: k
|
|
15399
15400
|
}),
|
|
15400
|
-
[
|
|
15401
|
+
[b, k]
|
|
15401
15402
|
);
|
|
15402
15403
|
return /* @__PURE__ */ n.jsx(js.Provider, { value: T, children: /* @__PURE__ */ n.jsx(
|
|
15403
15404
|
ma,
|
|
@@ -15417,12 +15418,12 @@ function ze(A) {
|
|
|
15417
15418
|
overlayBackdrop: f,
|
|
15418
15419
|
storageKey: p,
|
|
15419
15420
|
persistWidth: x,
|
|
15420
|
-
defaultCollapsed:
|
|
15421
|
+
defaultCollapsed: v,
|
|
15421
15422
|
collapsed: w,
|
|
15422
|
-
onCollapseChange:
|
|
15423
|
+
onCollapseChange: g,
|
|
15423
15424
|
onWidthChange: j,
|
|
15424
15425
|
onMobileChange: S,
|
|
15425
|
-
exclusiveGroups:
|
|
15426
|
+
exclusiveGroups: h,
|
|
15426
15427
|
children: /* @__PURE__ */ n.jsx(Tc, _(E({}, N), { children: F }))
|
|
15427
15428
|
}
|
|
15428
15429
|
) });
|
|
@@ -15543,30 +15544,30 @@ function ya(i) {
|
|
|
15543
15544
|
const { isOpen: d, onClose: c, titleId: u, descriptionId: m } = Jt(), f = te(null), p = te(null);
|
|
15544
15545
|
if (J(() => {
|
|
15545
15546
|
if (!d) return;
|
|
15546
|
-
const
|
|
15547
|
+
const g = setTimeout(() => {
|
|
15547
15548
|
var k;
|
|
15548
|
-
const
|
|
15549
|
+
const h = (k = f.current) == null ? void 0 : k.querySelectorAll(
|
|
15549
15550
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15550
|
-
),
|
|
15551
|
-
|
|
15552
|
-
}, 0), j = (
|
|
15553
|
-
s &&
|
|
15554
|
-
}, S = (
|
|
15555
|
-
if (
|
|
15556
|
-
const
|
|
15551
|
+
), b = h == null ? void 0 : h[0];
|
|
15552
|
+
b == null || b.focus();
|
|
15553
|
+
}, 0), j = (h) => {
|
|
15554
|
+
s && h.key === "Escape" && c();
|
|
15555
|
+
}, S = (h) => {
|
|
15556
|
+
if (h.key !== "Tab" || !f.current) return;
|
|
15557
|
+
const b = Array.from(
|
|
15557
15558
|
f.current.querySelectorAll(
|
|
15558
15559
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15559
15560
|
)
|
|
15560
15561
|
).filter((N) => !N.disabled && N.offsetParent !== null);
|
|
15561
|
-
if (
|
|
15562
|
-
|
|
15562
|
+
if (b.length === 0) {
|
|
15563
|
+
h.preventDefault();
|
|
15563
15564
|
return;
|
|
15564
15565
|
}
|
|
15565
|
-
const k =
|
|
15566
|
-
|
|
15566
|
+
const k = b[0], F = b[b.length - 1];
|
|
15567
|
+
h.shiftKey ? document.activeElement === k && (h.preventDefault(), F.focus()) : document.activeElement === F && (h.preventDefault(), k.focus());
|
|
15567
15568
|
};
|
|
15568
15569
|
return document.addEventListener("keydown", j), document.addEventListener("keydown", S), () => {
|
|
15569
|
-
clearTimeout(
|
|
15570
|
+
clearTimeout(g), document.removeEventListener("keydown", j), document.removeEventListener("keydown", S);
|
|
15570
15571
|
};
|
|
15571
15572
|
}, [d, c, s]), !d) return null;
|
|
15572
15573
|
const x = {
|
|
@@ -15575,13 +15576,13 @@ function ya(i) {
|
|
|
15575
15576
|
lg: "max-w-lg",
|
|
15576
15577
|
xl: "max-w-2xl",
|
|
15577
15578
|
fullscreen: "max-w-full h-full m-0 rounded-none"
|
|
15578
|
-
},
|
|
15579
|
-
r &&
|
|
15579
|
+
}, v = (g) => {
|
|
15580
|
+
r && g.target === p.current && c();
|
|
15580
15581
|
}, w = /* @__PURE__ */ n.jsxs(
|
|
15581
15582
|
"div",
|
|
15582
15583
|
{
|
|
15583
15584
|
className: `fixed inset-0 ${be("modal")} overflow-y-auto`,
|
|
15584
|
-
onClick:
|
|
15585
|
+
onClick: v,
|
|
15585
15586
|
children: [
|
|
15586
15587
|
/* @__PURE__ */ n.jsx(
|
|
15587
15588
|
"div",
|
|
@@ -15809,15 +15810,15 @@ function Jc(i) {
|
|
|
15809
15810
|
J(() => {
|
|
15810
15811
|
if (e.duration === void 0) return;
|
|
15811
15812
|
c(!0);
|
|
15812
|
-
const
|
|
15813
|
+
const v = setTimeout(() => {
|
|
15813
15814
|
m(!0), setTimeout(() => {
|
|
15814
15815
|
t(e.id);
|
|
15815
15816
|
}, 300);
|
|
15816
15817
|
}, e.duration);
|
|
15817
|
-
return () => clearTimeout(
|
|
15818
|
+
return () => clearTimeout(v);
|
|
15818
15819
|
}, [e.duration, e.id, t]), J(() => {
|
|
15819
|
-
const
|
|
15820
|
-
return () => clearTimeout(
|
|
15820
|
+
const v = setTimeout(() => c(!0), 10);
|
|
15821
|
+
return () => clearTimeout(v);
|
|
15821
15822
|
}, []);
|
|
15822
15823
|
const p = {
|
|
15823
15824
|
"top-right": "top-4 right-4",
|
|
@@ -15870,8 +15871,8 @@ function Jc(i) {
|
|
|
15870
15871
|
variant: "outline",
|
|
15871
15872
|
size: "sm",
|
|
15872
15873
|
onClick: () => {
|
|
15873
|
-
var
|
|
15874
|
-
(
|
|
15874
|
+
var v;
|
|
15875
|
+
(v = e.action) == null || v.onClick(), x();
|
|
15875
15876
|
},
|
|
15876
15877
|
children: e.action.label
|
|
15877
15878
|
}
|
|
@@ -15982,31 +15983,32 @@ function Zc({
|
|
|
15982
15983
|
orientation: l = "horizontal",
|
|
15983
15984
|
className: d = ""
|
|
15984
15985
|
}) {
|
|
15985
|
-
const [c, u] = P(r), m = t !== void 0, f = m ? t : c, p = (
|
|
15986
|
+
const [c, u] = P(r), m = t !== void 0, f = m ? t : c, p = (h) => h < f ? "completed" : h === f ? "active" : "pending", x = () => {
|
|
15986
15987
|
if (f < e.length - 1) {
|
|
15987
|
-
const
|
|
15988
|
-
m || u(
|
|
15988
|
+
const h = f + 1;
|
|
15989
|
+
m || u(h), s == null || s(h);
|
|
15989
15990
|
} else
|
|
15990
15991
|
a == null || a();
|
|
15991
|
-
},
|
|
15992
|
+
}, v = () => {
|
|
15992
15993
|
if (f > 0) {
|
|
15993
|
-
const
|
|
15994
|
-
m || u(
|
|
15994
|
+
const h = f - 1;
|
|
15995
|
+
m || u(h), s == null || s(h);
|
|
15995
15996
|
}
|
|
15996
|
-
}, w = (
|
|
15997
|
-
o && (e[
|
|
15998
|
-
},
|
|
15997
|
+
}, w = (h) => {
|
|
15998
|
+
o && (e[h].disabled || (m || u(h), s == null || s(h)));
|
|
15999
|
+
}, g = e[f], j = f === 0, S = f === e.length - 1;
|
|
15999
16000
|
return l === "vertical" ? /* @__PURE__ */ n.jsxs("div", { className: `flex gap-4 ${d}`, children: [
|
|
16000
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((
|
|
16001
|
-
const k =
|
|
16001
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((h, b) => {
|
|
16002
|
+
const k = h.status || p(b), F = b === f;
|
|
16002
16003
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
16003
16004
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
16004
16005
|
/* @__PURE__ */ n.jsx(
|
|
16005
16006
|
"button",
|
|
16006
16007
|
_(E({
|
|
16007
16008
|
type: "button",
|
|
16008
|
-
onClick: () => w(
|
|
16009
|
-
disabled: !o ||
|
|
16009
|
+
onClick: () => w(b),
|
|
16010
|
+
disabled: !o || h.disabled,
|
|
16011
|
+
"aria-label": h.title ? `Step ${b + 1}: ${h.title}` : `Step ${b + 1}`
|
|
16010
16012
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16011
16013
|
className: `
|
|
16012
16014
|
flex
|
|
@@ -16018,12 +16020,12 @@ function Zc({
|
|
|
16018
16020
|
border-2
|
|
16019
16021
|
${Se("base")}
|
|
16020
16022
|
${k === "completed" ? "bg-success border-success text-fg-inverse" : k === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : k === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
16021
|
-
${!o ||
|
|
16023
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16022
16024
|
`,
|
|
16023
|
-
children: k === "completed" ? /* @__PURE__ */ n.jsx(Br, { className: "h-5 w-5" }) : i ?
|
|
16025
|
+
children: k === "completed" ? /* @__PURE__ */ n.jsx(Br, { className: "h-5 w-5" }) : i ? b + 1 : null
|
|
16024
16026
|
})
|
|
16025
16027
|
),
|
|
16026
|
-
|
|
16028
|
+
b < e.length - 1 && /* @__PURE__ */ n.jsx(
|
|
16027
16029
|
"div",
|
|
16028
16030
|
{
|
|
16029
16031
|
className: `
|
|
@@ -16040,20 +16042,20 @@ function Zc({
|
|
|
16040
16042
|
"button",
|
|
16041
16043
|
{
|
|
16042
16044
|
type: "button",
|
|
16043
|
-
onClick: () => w(
|
|
16044
|
-
disabled: !o ||
|
|
16045
|
+
onClick: () => w(b),
|
|
16046
|
+
disabled: !o || h.disabled,
|
|
16045
16047
|
className: `
|
|
16046
16048
|
text-left
|
|
16047
16049
|
${F ? "font-semibold" : "font-medium"}
|
|
16048
16050
|
${k === "active" ? "text-fg-brand-emphasis" : "text-fg-secondary"}
|
|
16049
|
-
${!o ||
|
|
16051
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16050
16052
|
`,
|
|
16051
|
-
children:
|
|
16053
|
+
children: h.title
|
|
16052
16054
|
}
|
|
16053
16055
|
),
|
|
16054
|
-
|
|
16056
|
+
h.description && /* @__PURE__ */ n.jsx("p", { className: "text-sm text-fg-tertiary mt-1", children: h.description })
|
|
16055
16057
|
] })
|
|
16056
|
-
] },
|
|
16058
|
+
] }, h.id);
|
|
16057
16059
|
}) }),
|
|
16058
16060
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
16059
16061
|
/* @__PURE__ */ n.jsx(
|
|
@@ -16066,7 +16068,7 @@ function Zc({
|
|
|
16066
16068
|
${ee("lg")}
|
|
16067
16069
|
bg-surface-base
|
|
16068
16070
|
`,
|
|
16069
|
-
children:
|
|
16071
|
+
children: g.content
|
|
16070
16072
|
}
|
|
16071
16073
|
),
|
|
16072
16074
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -16078,7 +16080,7 @@ function Zc({
|
|
|
16078
16080
|
re,
|
|
16079
16081
|
{
|
|
16080
16082
|
variant: "outline",
|
|
16081
|
-
onClick:
|
|
16083
|
+
onClick: v,
|
|
16082
16084
|
disabled: j,
|
|
16083
16085
|
children: "Previous"
|
|
16084
16086
|
}
|
|
@@ -16089,16 +16091,17 @@ function Zc({
|
|
|
16089
16091
|
)
|
|
16090
16092
|
] })
|
|
16091
16093
|
] }) : /* @__PURE__ */ n.jsxs("div", { className: `space-y-6 ${d}`, children: [
|
|
16092
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: e.map((
|
|
16093
|
-
const k =
|
|
16094
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: e.map((h, b) => {
|
|
16095
|
+
const k = h.status || p(b), F = b === f;
|
|
16094
16096
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center flex-1", children: [
|
|
16095
16097
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center flex-1", children: [
|
|
16096
16098
|
/* @__PURE__ */ n.jsx(
|
|
16097
16099
|
"button",
|
|
16098
16100
|
_(E({
|
|
16099
16101
|
type: "button",
|
|
16100
|
-
onClick: () => w(
|
|
16101
|
-
disabled: !o ||
|
|
16102
|
+
onClick: () => w(b),
|
|
16103
|
+
disabled: !o || h.disabled,
|
|
16104
|
+
"aria-label": h.title ? `Step ${b + 1}: ${h.title}` : `Step ${b + 1}`
|
|
16102
16105
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16103
16106
|
className: `
|
|
16104
16107
|
flex
|
|
@@ -16110,9 +16113,9 @@ function Zc({
|
|
|
16110
16113
|
border-2
|
|
16111
16114
|
${Se("base")}
|
|
16112
16115
|
${k === "completed" ? "bg-success border-success text-fg-inverse" : k === "active" ? "bg-surface-brand-strong border-line-brand text-fg-inverse" : k === "error" ? "bg-error border-error text-fg-inverse" : "bg-surface-base border-line-emphasis text-fg-quaternary"}
|
|
16113
|
-
${!o ||
|
|
16116
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16114
16117
|
`,
|
|
16115
|
-
children: k === "completed" ? /* @__PURE__ */ n.jsx(Br, { className: "h-5 w-5" }) : i ?
|
|
16118
|
+
children: k === "completed" ? /* @__PURE__ */ n.jsx(Br, { className: "h-5 w-5" }) : i ? b + 1 : null
|
|
16116
16119
|
})
|
|
16117
16120
|
),
|
|
16118
16121
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -16128,15 +16131,15 @@ function Zc({
|
|
|
16128
16131
|
font-medium
|
|
16129
16132
|
${F ? "text-fg-brand-emphasis" : "text-fg-secondary"}
|
|
16130
16133
|
`,
|
|
16131
|
-
children:
|
|
16134
|
+
children: h.title
|
|
16132
16135
|
}
|
|
16133
16136
|
),
|
|
16134
|
-
|
|
16137
|
+
h.description && /* @__PURE__ */ n.jsx("p", { className: "text-xs text-fg-tertiary mt-1", children: h.description })
|
|
16135
16138
|
]
|
|
16136
16139
|
}
|
|
16137
16140
|
)
|
|
16138
16141
|
] }),
|
|
16139
|
-
|
|
16142
|
+
b < e.length - 1 && /* @__PURE__ */ n.jsx("div", { className: `flex-1 mx-2 ${C("base", "mx")}`, children: /* @__PURE__ */ n.jsx(
|
|
16140
16143
|
In,
|
|
16141
16144
|
{
|
|
16142
16145
|
className: `
|
|
@@ -16144,7 +16147,7 @@ function Zc({
|
|
|
16144
16147
|
`
|
|
16145
16148
|
}
|
|
16146
16149
|
) })
|
|
16147
|
-
] },
|
|
16150
|
+
] }, h.id);
|
|
16148
16151
|
}) }),
|
|
16149
16152
|
/* @__PURE__ */ n.jsx(
|
|
16150
16153
|
"div",
|
|
@@ -16156,7 +16159,7 @@ function Zc({
|
|
|
16156
16159
|
${ee("lg")}
|
|
16157
16160
|
bg-surface-base
|
|
16158
16161
|
`,
|
|
16159
|
-
children:
|
|
16162
|
+
children: g.content
|
|
16160
16163
|
}
|
|
16161
16164
|
),
|
|
16162
16165
|
/* @__PURE__ */ n.jsxs("div", { className: `flex justify-between ${C("base", "gap")}`, children: [
|
|
@@ -16164,7 +16167,7 @@ function Zc({
|
|
|
16164
16167
|
re,
|
|
16165
16168
|
{
|
|
16166
16169
|
variant: "outline",
|
|
16167
|
-
onClick:
|
|
16170
|
+
onClick: v,
|
|
16168
16171
|
disabled: j,
|
|
16169
16172
|
children: "Previous"
|
|
16170
16173
|
}
|
|
@@ -16283,7 +16286,7 @@ function xu({
|
|
|
16283
16286
|
emptyMessage: i = "No commands found",
|
|
16284
16287
|
className: l = ""
|
|
16285
16288
|
}) {
|
|
16286
|
-
const [d, c] = P(r), [u, m] = P(""), [f, p] = P(0), x = te(null),
|
|
16289
|
+
const [d, c] = P(r), [u, m] = P(""), [f, p] = P(0), x = te(null), v = te(null), w = t !== void 0, g = w ? t : d, j = e.filter((N) => {
|
|
16287
16290
|
var I, R;
|
|
16288
16291
|
if (!u) return !0;
|
|
16289
16292
|
const A = u.toLowerCase(), L = N.label.toLowerCase().includes(A), T = (I = N.description) == null ? void 0 : I.toLowerCase().includes(A), M = (R = N.keywords) == null ? void 0 : R.some(
|
|
@@ -16296,7 +16299,7 @@ function xu({
|
|
|
16296
16299
|
return N[L] || (N[L] = []), N[L].push(A), N;
|
|
16297
16300
|
},
|
|
16298
16301
|
{}
|
|
16299
|
-
),
|
|
16302
|
+
), h = Y(
|
|
16300
16303
|
(N) => {
|
|
16301
16304
|
w || c(N), s == null || s(N), N && (m(""), p(0), setTimeout(() => {
|
|
16302
16305
|
var A;
|
|
@@ -16304,11 +16307,11 @@ function xu({
|
|
|
16304
16307
|
}, 0));
|
|
16305
16308
|
},
|
|
16306
16309
|
[w, s]
|
|
16307
|
-
),
|
|
16308
|
-
N.action(),
|
|
16310
|
+
), b = (N) => {
|
|
16311
|
+
N.action(), h(!1);
|
|
16309
16312
|
}, k = (N) => {
|
|
16310
16313
|
if (N.key === "Escape") {
|
|
16311
|
-
|
|
16314
|
+
h(!1);
|
|
16312
16315
|
return;
|
|
16313
16316
|
}
|
|
16314
16317
|
if (N.key === "ArrowDown") {
|
|
@@ -16320,13 +16323,13 @@ function xu({
|
|
|
16320
16323
|
return;
|
|
16321
16324
|
}
|
|
16322
16325
|
if (N.key === "Enter") {
|
|
16323
|
-
N.preventDefault(), j[f] &&
|
|
16326
|
+
N.preventDefault(), j[f] && b(j[f]);
|
|
16324
16327
|
return;
|
|
16325
16328
|
}
|
|
16326
16329
|
};
|
|
16327
16330
|
J(() => {
|
|
16328
|
-
if (
|
|
16329
|
-
const N =
|
|
16331
|
+
if (v.current && f >= 0) {
|
|
16332
|
+
const N = v.current.querySelector(
|
|
16330
16333
|
`[data-index="${f}"]`
|
|
16331
16334
|
);
|
|
16332
16335
|
N && typeof N.scrollIntoView == "function" && N.scrollIntoView({
|
|
@@ -16338,7 +16341,7 @@ function xu({
|
|
|
16338
16341
|
p(0);
|
|
16339
16342
|
}, [u]), J(() => {
|
|
16340
16343
|
const N = (A) => {
|
|
16341
|
-
(A.metaKey || A.ctrlKey) && A.key === "k" && (A.preventDefault(),
|
|
16344
|
+
(A.metaKey || A.ctrlKey) && A.key === "k" && (A.preventDefault(), h(!g));
|
|
16342
16345
|
};
|
|
16343
16346
|
return document.addEventListener(
|
|
16344
16347
|
"keydown",
|
|
@@ -16347,8 +16350,8 @@ function xu({
|
|
|
16347
16350
|
"keydown",
|
|
16348
16351
|
N
|
|
16349
16352
|
);
|
|
16350
|
-
}, [
|
|
16351
|
-
const F =
|
|
16353
|
+
}, [g, h]);
|
|
16354
|
+
const F = g ? /* @__PURE__ */ n.jsx(
|
|
16352
16355
|
"div",
|
|
16353
16356
|
{
|
|
16354
16357
|
className: `
|
|
@@ -16362,7 +16365,7 @@ function xu({
|
|
|
16362
16365
|
pt-[20vh]
|
|
16363
16366
|
${Se("base")}
|
|
16364
16367
|
`,
|
|
16365
|
-
onClick: () =>
|
|
16368
|
+
onClick: () => h(!1),
|
|
16366
16369
|
children: /* @__PURE__ */ n.jsxs(
|
|
16367
16370
|
"div",
|
|
16368
16371
|
{
|
|
@@ -16430,7 +16433,7 @@ function xu({
|
|
|
16430
16433
|
/* @__PURE__ */ n.jsx(
|
|
16431
16434
|
"div",
|
|
16432
16435
|
{
|
|
16433
|
-
ref:
|
|
16436
|
+
ref: v,
|
|
16434
16437
|
className: `
|
|
16435
16438
|
max-h-96
|
|
16436
16439
|
overflow-y-auto
|
|
@@ -16470,7 +16473,7 @@ function xu({
|
|
|
16470
16473
|
{
|
|
16471
16474
|
type: "button",
|
|
16472
16475
|
"data-index": M,
|
|
16473
|
-
onClick: () =>
|
|
16476
|
+
onClick: () => b(L),
|
|
16474
16477
|
className: `
|
|
16475
16478
|
w-full
|
|
16476
16479
|
flex
|
|
@@ -16528,7 +16531,7 @@ function xu({
|
|
|
16528
16531
|
}
|
|
16529
16532
|
) : null;
|
|
16530
16533
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
16531
|
-
a ? /* @__PURE__ */ n.jsx("div", { onClick: () =>
|
|
16534
|
+
a ? /* @__PURE__ */ n.jsx("div", { onClick: () => h(!0), children: a }) : null,
|
|
16532
16535
|
typeof window != "undefined" && Ze(F, document.body)
|
|
16533
16536
|
] });
|
|
16534
16537
|
}
|
|
@@ -16548,13 +16551,13 @@ function bu({
|
|
|
16548
16551
|
onColumnReorder: f,
|
|
16549
16552
|
columnWidths: p,
|
|
16550
16553
|
onColumnResize: x,
|
|
16551
|
-
selectable:
|
|
16554
|
+
selectable: v = !1,
|
|
16552
16555
|
selectedRows: w,
|
|
16553
|
-
onSelectionChange:
|
|
16556
|
+
onSelectionChange: g,
|
|
16554
16557
|
rowId: j,
|
|
16555
16558
|
exportable: S = !1,
|
|
16556
|
-
onExport:
|
|
16557
|
-
exportFormats:
|
|
16559
|
+
onExport: h,
|
|
16560
|
+
exportFormats: b = ["csv", "xlsx", "json"],
|
|
16558
16561
|
pagination: k,
|
|
16559
16562
|
filters: F,
|
|
16560
16563
|
actions: N,
|
|
@@ -16571,7 +16574,7 @@ function bu({
|
|
|
16571
16574
|
const [H, de] = P(l), [ie, D] = P(p || {}), B = z(() => e.map((q) => _(E({}, q), {
|
|
16572
16575
|
width: ie[q.key] || q.defaultWidth
|
|
16573
16576
|
})), [e, ie]), Q = (q) => {
|
|
16574
|
-
|
|
16577
|
+
h ? h(q) : q === "csv" ? se(t, e) : q === "json" && U(t);
|
|
16575
16578
|
}, se = (q, W) => {
|
|
16576
16579
|
const le = W.filter((Pe) => Pe.exportable !== !1).map((Pe) => Pe.label || Pe.key), ue = q.map(
|
|
16577
16580
|
(Pe) => W.filter((zt) => zt.exportable !== !1).map((zt) => {
|
|
@@ -16611,7 +16614,7 @@ function bu({
|
|
|
16611
16614
|
) }),
|
|
16612
16615
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16613
16616
|
A,
|
|
16614
|
-
S && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children:
|
|
16617
|
+
S && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: b.map((q) => /* @__PURE__ */ n.jsx(
|
|
16615
16618
|
re,
|
|
16616
16619
|
{
|
|
16617
16620
|
variant: "outline",
|
|
@@ -16637,9 +16640,9 @@ function bu({
|
|
|
16637
16640
|
sortDirection: o,
|
|
16638
16641
|
pagination: k,
|
|
16639
16642
|
filters: F,
|
|
16640
|
-
selectable:
|
|
16643
|
+
selectable: v,
|
|
16641
16644
|
selectedRows: w,
|
|
16642
|
-
onSelectionChange:
|
|
16645
|
+
onSelectionChange: g,
|
|
16643
16646
|
rowId: j,
|
|
16644
16647
|
actions: N,
|
|
16645
16648
|
resizable: u,
|
|
@@ -16670,30 +16673,30 @@ function vu({
|
|
|
16670
16673
|
loading: d = !1,
|
|
16671
16674
|
emptyMessage: c = "No data available"
|
|
16672
16675
|
}) {
|
|
16673
|
-
const [u, m] = P(""), [f, p] = P(1), x = z(() => e.map((
|
|
16674
|
-
if (
|
|
16675
|
-
const
|
|
16676
|
-
return _(E({},
|
|
16677
|
-
key:
|
|
16676
|
+
const [u, m] = P(""), [f, p] = P(1), x = z(() => e.map((h) => {
|
|
16677
|
+
if (h.accessor || h.header) {
|
|
16678
|
+
const b = h.key || (typeof h.accessor == "string" ? h.accessor : String(h.accessor)), k = h.label || h.header || "";
|
|
16679
|
+
return _(E({}, h), {
|
|
16680
|
+
key: b,
|
|
16678
16681
|
label: k
|
|
16679
16682
|
});
|
|
16680
16683
|
}
|
|
16681
|
-
return
|
|
16682
|
-
}), [e]),
|
|
16684
|
+
return h;
|
|
16685
|
+
}), [e]), v = z(() => {
|
|
16683
16686
|
if (!u.trim()) return t;
|
|
16684
|
-
const
|
|
16685
|
-
return t.filter((
|
|
16686
|
-
const F =
|
|
16687
|
-
return String(F).toLowerCase().includes(
|
|
16687
|
+
const h = u.toLowerCase();
|
|
16688
|
+
return t.filter((b) => x.some((k) => {
|
|
16689
|
+
const F = b[String(k.key)];
|
|
16690
|
+
return String(F).toLowerCase().includes(h);
|
|
16688
16691
|
}));
|
|
16689
16692
|
}, [t, u, x]), w = z(() => {
|
|
16690
|
-
if (!o) return
|
|
16691
|
-
const
|
|
16692
|
-
return
|
|
16693
|
-
}, [
|
|
16694
|
-
p(
|
|
16695
|
-
}, S = (
|
|
16696
|
-
m(
|
|
16693
|
+
if (!o) return v;
|
|
16694
|
+
const h = (f - 1) * a, b = h + a;
|
|
16695
|
+
return v.slice(h, b);
|
|
16696
|
+
}, [v, f, a, o]), g = o ? Math.ceil(v.length / a) : 1, j = (h) => {
|
|
16697
|
+
p(h);
|
|
16698
|
+
}, S = (h) => {
|
|
16699
|
+
m(h), p(1);
|
|
16697
16700
|
};
|
|
16698
16701
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "full", paddingX: "base", paddingY: "base", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16699
16702
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
@@ -16714,20 +16717,20 @@ function vu({
|
|
|
16714
16717
|
data: w,
|
|
16715
16718
|
loading: d,
|
|
16716
16719
|
emptyMessage: c,
|
|
16717
|
-
onRowClick: l ? (
|
|
16718
|
-
const
|
|
16720
|
+
onRowClick: l ? (h) => {
|
|
16721
|
+
const b = v.findIndex((k) => k === h);
|
|
16719
16722
|
l(
|
|
16720
|
-
|
|
16721
|
-
|
|
16723
|
+
h,
|
|
16724
|
+
b >= 0 ? b : w.findIndex((k) => k === h)
|
|
16722
16725
|
);
|
|
16723
16726
|
} : void 0
|
|
16724
16727
|
}
|
|
16725
16728
|
),
|
|
16726
|
-
o &&
|
|
16729
|
+
o && g > 1 && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
16727
16730
|
Ll,
|
|
16728
16731
|
{
|
|
16729
16732
|
currentPage: f,
|
|
16730
|
-
totalPages:
|
|
16733
|
+
totalPages: g,
|
|
16731
16734
|
onPageChange: j
|
|
16732
16735
|
}
|
|
16733
16736
|
) }),
|
|
@@ -16735,7 +16738,7 @@ function vu({
|
|
|
16735
16738
|
"Showing ",
|
|
16736
16739
|
w.length,
|
|
16737
16740
|
" of ",
|
|
16738
|
-
|
|
16741
|
+
v.length,
|
|
16739
16742
|
" results"
|
|
16740
16743
|
] })
|
|
16741
16744
|
] }) });
|
|
@@ -16757,17 +16760,17 @@ function yu({
|
|
|
16757
16760
|
a > 0 && r && (o(a - 1), c(_(E({}, d), { [a - 1]: !1 })));
|
|
16758
16761
|
}, f = (w) => {
|
|
16759
16762
|
r && w < a && o(w);
|
|
16760
|
-
}, p = e[a], x = a === e.length - 1,
|
|
16763
|
+
}, p = e[a], x = a === e.length - 1, v = d[a] === !0;
|
|
16761
16764
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "lg", paddingX: "base", paddingY: "lg", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "lg", children: [
|
|
16762
16765
|
/* @__PURE__ */ n.jsx(
|
|
16763
16766
|
Zc,
|
|
16764
16767
|
{
|
|
16765
|
-
steps: e.map((w,
|
|
16768
|
+
steps: e.map((w, g) => ({
|
|
16766
16769
|
id: w.id,
|
|
16767
16770
|
title: w.title,
|
|
16768
16771
|
content: w.content,
|
|
16769
16772
|
description: w.description,
|
|
16770
|
-
status:
|
|
16773
|
+
status: g < a ? "completed" : g === a ? v ? "error" : "active" : "pending"
|
|
16771
16774
|
})),
|
|
16772
16775
|
currentStep: a,
|
|
16773
16776
|
onStepChange: f,
|
|
@@ -16779,7 +16782,7 @@ function yu({
|
|
|
16779
16782
|
/* @__PURE__ */ n.jsx("h2", { className: "text-2xl font-semibold", children: p.title }),
|
|
16780
16783
|
p.description && /* @__PURE__ */ n.jsx("p", { className: "text-fg-secondary mt-1", children: p.description })
|
|
16781
16784
|
] }),
|
|
16782
|
-
|
|
16785
|
+
v && /* @__PURE__ */ n.jsx("div", { className: "bg-error-bg border border-error-border rounded p-3", children: /* @__PURE__ */ n.jsx("p", { className: "text-sm text-fg-error", children: "Please fix the errors before proceeding." }) }),
|
|
16783
16786
|
/* @__PURE__ */ n.jsx("div", { className: "min-h-48", children: p.fields }),
|
|
16784
16787
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between pt-4 border-t", children: [
|
|
16785
16788
|
/* @__PURE__ */ n.jsx(
|
|
@@ -16811,17 +16814,17 @@ function wu({
|
|
|
16811
16814
|
), f = z(() => {
|
|
16812
16815
|
let w = e;
|
|
16813
16816
|
if (d.trim() && t) {
|
|
16814
|
-
const
|
|
16815
|
-
w = w.filter((j) => t(
|
|
16817
|
+
const g = d.toLowerCase();
|
|
16818
|
+
w = w.filter((j) => t(g, j));
|
|
16816
16819
|
}
|
|
16817
|
-
return r && Object.keys(u).length > 0 && (w = w.filter((
|
|
16818
|
-
}, [e, d, u, t, r]), p = (w,
|
|
16820
|
+
return r && Object.keys(u).length > 0 && (w = w.filter((g) => r(u, g))), w;
|
|
16821
|
+
}, [e, d, u, t, r]), p = (w, g) => {
|
|
16819
16822
|
m((j) => _(E({}, j), {
|
|
16820
|
-
[w]:
|
|
16823
|
+
[w]: g
|
|
16821
16824
|
}));
|
|
16822
16825
|
}, x = () => {
|
|
16823
16826
|
m({}), c("");
|
|
16824
|
-
},
|
|
16827
|
+
}, v = d.trim().length > 0 || Object.keys(u).length > 0;
|
|
16825
16828
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "full", paddingX: "base", paddingY: "base", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16826
16829
|
/* @__PURE__ */ n.jsx(Yr, { padding: "medium", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16827
16830
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
@@ -16833,7 +16836,7 @@ function wu({
|
|
|
16833
16836
|
}
|
|
16834
16837
|
) }),
|
|
16835
16838
|
a.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: a.map((w) => {
|
|
16836
|
-
var
|
|
16839
|
+
var g;
|
|
16837
16840
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16838
16841
|
/* @__PURE__ */ n.jsxs(ot, { className: "text-fg-secondary text-sm", children: [
|
|
16839
16842
|
w.label,
|
|
@@ -16850,7 +16853,7 @@ function wu({
|
|
|
16850
16853
|
),
|
|
16851
16854
|
children: [
|
|
16852
16855
|
/* @__PURE__ */ n.jsx("option", { value: "", children: "All" }),
|
|
16853
|
-
(
|
|
16856
|
+
(g = w.options) == null ? void 0 : g.map((j) => /* @__PURE__ */ n.jsx(
|
|
16854
16857
|
"option",
|
|
16855
16858
|
{
|
|
16856
16859
|
value: String(j.value || ""),
|
|
@@ -16863,7 +16866,7 @@ function wu({
|
|
|
16863
16866
|
)
|
|
16864
16867
|
] }, w.id);
|
|
16865
16868
|
}) }),
|
|
16866
|
-
|
|
16869
|
+
v && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(re, { variant: "outline", size: "sm", onClick: x, children: "Clear Filters" }) })
|
|
16867
16870
|
] }) }),
|
|
16868
16871
|
l && /* @__PURE__ */ n.jsxs("div", { className: "text-sm text-fg-secondary", children: [
|
|
16869
16872
|
"Showing ",
|
|
@@ -16871,9 +16874,9 @@ function wu({
|
|
|
16871
16874
|
" of ",
|
|
16872
16875
|
e.length,
|
|
16873
16876
|
" results",
|
|
16874
|
-
|
|
16877
|
+
v && " (filtered)"
|
|
16875
16878
|
] }),
|
|
16876
|
-
f.length === 0 ? /* @__PURE__ */ n.jsx(Yr, { padding: "large", children: /* @__PURE__ */ n.jsx("div", { className: "text-center text-fg-secondary", children: /* @__PURE__ */ n.jsx(ot, { children: i }) }) }) : /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: f.map((w,
|
|
16879
|
+
f.length === 0 ? /* @__PURE__ */ n.jsx(Yr, { padding: "large", children: /* @__PURE__ */ n.jsx("div", { className: "text-center text-fg-secondary", children: /* @__PURE__ */ n.jsx(ot, { children: i }) }) }) : /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: f.map((w, g) => /* @__PURE__ */ n.jsx("div", { children: s(w, g) }, g)) })
|
|
16877
16880
|
] }) });
|
|
16878
16881
|
}
|
|
16879
16882
|
function ju({
|