@fabio.caffarello/react-design-system 1.22.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 +799 -797
- 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(
|
|
@@ -7402,7 +7402,7 @@ const ul = Ee(
|
|
|
7402
7402
|
r && /* @__PURE__ */ n.jsx(
|
|
7403
7403
|
"label",
|
|
7404
7404
|
{
|
|
7405
|
-
id:
|
|
7405
|
+
id: v,
|
|
7406
7406
|
htmlFor: x,
|
|
7407
7407
|
className: y(
|
|
7408
7408
|
"block",
|
|
@@ -7474,8 +7474,8 @@ const In = Ee(function(o) {
|
|
|
7474
7474
|
);
|
|
7475
7475
|
});
|
|
7476
7476
|
In.displayName = "Separator";
|
|
7477
|
-
const fl = he(function(
|
|
7478
|
-
var j =
|
|
7477
|
+
const fl = he(function(g, w) {
|
|
7478
|
+
var j = g, {
|
|
7479
7479
|
value: t,
|
|
7480
7480
|
defaultValue: r,
|
|
7481
7481
|
min: s = 0,
|
|
@@ -7490,7 +7490,7 @@ const fl = he(function(h, w) {
|
|
|
7490
7490
|
onValueChange: f,
|
|
7491
7491
|
label: p,
|
|
7492
7492
|
className: x = ""
|
|
7493
|
-
} = j,
|
|
7493
|
+
} = j, v = V(j, [
|
|
7494
7494
|
"value",
|
|
7495
7495
|
"defaultValue",
|
|
7496
7496
|
"min",
|
|
@@ -7506,9 +7506,9 @@ const fl = he(function(h, w) {
|
|
|
7506
7506
|
"label",
|
|
7507
7507
|
"className"
|
|
7508
7508
|
]);
|
|
7509
|
-
const S = te(null), [
|
|
7509
|
+
const S = te(null), [h, b] = P(
|
|
7510
7510
|
r || (i === "range" ? [s, a] : s)
|
|
7511
|
-
), [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) => {
|
|
7512
7512
|
if (!S.current) return s;
|
|
7513
7513
|
const q = S.current.getBoundingClientRect(), W = Math.max(
|
|
7514
7514
|
0,
|
|
@@ -7531,9 +7531,9 @@ const fl = he(function(h, w) {
|
|
|
7531
7531
|
if (i === "range") {
|
|
7532
7532
|
const [le, ue] = Array.isArray(T) ? T : [s, a];
|
|
7533
7533
|
let fe;
|
|
7534
|
-
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);
|
|
7535
7535
|
} else
|
|
7536
|
-
L ||
|
|
7536
|
+
L || b(W), m == null || m(W), f == null || f(W);
|
|
7537
7537
|
}, Z = (U) => {
|
|
7538
7538
|
if (d || k) return;
|
|
7539
7539
|
const q = I(U.clientX);
|
|
@@ -7587,7 +7587,7 @@ const fl = he(function(h, w) {
|
|
|
7587
7587
|
}
|
|
7588
7588
|
}
|
|
7589
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);
|
|
7590
|
-
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: [
|
|
7591
7591
|
p && /* @__PURE__ */ n.jsxs(
|
|
7592
7592
|
"label",
|
|
7593
7593
|
{
|
|
@@ -7836,16 +7836,16 @@ const ml = $e(
|
|
|
7836
7836
|
"onClick",
|
|
7837
7837
|
"tabIndex"
|
|
7838
7838
|
]);
|
|
7839
|
-
const
|
|
7839
|
+
const v = c !== void 0 || o !== !1 && o !== void 0, w = o ? "option" : v ? "button" : void 0, j = (() => {
|
|
7840
7840
|
if (d) return d;
|
|
7841
7841
|
if (typeof t == "string") return t;
|
|
7842
7842
|
if (typeof t == "object" && t !== null && "props" in t) {
|
|
7843
|
-
const
|
|
7844
|
-
if (
|
|
7845
|
-
return
|
|
7843
|
+
const b = t.props;
|
|
7844
|
+
if (b != null && b.children && typeof b.children == "string")
|
|
7845
|
+
return b.children;
|
|
7846
7846
|
}
|
|
7847
|
-
})(), S = w === "button" && !j,
|
|
7848
|
-
i || (
|
|
7847
|
+
})(), S = w === "button" && !j, h = (b) => {
|
|
7848
|
+
i || (b.key === "Enter" || b.key === " ") && (b.preventDefault(), c && c());
|
|
7849
7849
|
};
|
|
7850
7850
|
return /* @__PURE__ */ n.jsxs(
|
|
7851
7851
|
"div",
|
|
@@ -7854,16 +7854,16 @@ const ml = $e(
|
|
|
7854
7854
|
className: y(
|
|
7855
7855
|
ml({ variant: r, size: s, selected: o, disabled: i }),
|
|
7856
7856
|
a && C("xs", "pr"),
|
|
7857
|
-
|
|
7857
|
+
v && !i && "cursor-pointer focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2",
|
|
7858
7858
|
l
|
|
7859
7859
|
),
|
|
7860
7860
|
role: w,
|
|
7861
7861
|
"aria-selected": o ? !0 : void 0,
|
|
7862
7862
|
"aria-disabled": i,
|
|
7863
7863
|
"aria-label": S ? "Chip" : d || (w === "button" ? j : void 0),
|
|
7864
|
-
tabIndex: u !== void 0 ? u :
|
|
7864
|
+
tabIndex: u !== void 0 ? u : v && !i ? 0 : void 0,
|
|
7865
7865
|
onClick: i ? void 0 : c,
|
|
7866
|
-
onKeyDown:
|
|
7866
|
+
onKeyDown: h
|
|
7867
7867
|
}, m), {
|
|
7868
7868
|
children: [
|
|
7869
7869
|
/* @__PURE__ */ n.jsx("span", { children: t }),
|
|
@@ -7871,8 +7871,8 @@ const ml = $e(
|
|
|
7871
7871
|
"button",
|
|
7872
7872
|
{
|
|
7873
7873
|
type: "button",
|
|
7874
|
-
onClick: (
|
|
7875
|
-
|
|
7874
|
+
onClick: (b) => {
|
|
7875
|
+
b.stopPropagation(), a();
|
|
7876
7876
|
},
|
|
7877
7877
|
className: y(
|
|
7878
7878
|
C("xs", "ml"),
|
|
@@ -7912,17 +7912,17 @@ const Gr = he(function(u, c) {
|
|
|
7912
7912
|
"aria-label",
|
|
7913
7913
|
"className"
|
|
7914
7914
|
]);
|
|
7915
|
-
const [f, p] = P(!1), [x,
|
|
7915
|
+
const [f, p] = P(!1), [x, v] = P(!1), w = {
|
|
7916
7916
|
xs: "h-6 w-6 text-xs",
|
|
7917
7917
|
sm: "h-8 w-8 text-sm",
|
|
7918
7918
|
md: "h-10 w-10 text-base",
|
|
7919
7919
|
lg: "h-12 w-12 text-lg",
|
|
7920
7920
|
xl: "h-16 w-16 text-xl"
|
|
7921
|
-
},
|
|
7921
|
+
}, g = {
|
|
7922
7922
|
circle: "rounded-full",
|
|
7923
7923
|
square: "rounded-none",
|
|
7924
7924
|
rounded: "rounded-md"
|
|
7925
|
-
}, 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";
|
|
7926
7926
|
return /* @__PURE__ */ n.jsxs(
|
|
7927
7927
|
"div",
|
|
7928
7928
|
_(E({
|
|
@@ -7936,13 +7936,13 @@ const Gr = he(function(u, c) {
|
|
|
7936
7936
|
"font-medium",
|
|
7937
7937
|
"overflow-hidden",
|
|
7938
7938
|
w[a],
|
|
7939
|
-
|
|
7939
|
+
g[o],
|
|
7940
7940
|
"bg-surface-muted",
|
|
7941
7941
|
"text-fg-primary",
|
|
7942
7942
|
l
|
|
7943
7943
|
),
|
|
7944
7944
|
role: "img",
|
|
7945
|
-
"aria-label":
|
|
7945
|
+
"aria-label": h
|
|
7946
7946
|
}, d), {
|
|
7947
7947
|
children: [
|
|
7948
7948
|
!j && t && /* @__PURE__ */ n.jsx(
|
|
@@ -7959,9 +7959,9 @@ const Gr = he(function(u, c) {
|
|
|
7959
7959
|
"transition-opacity",
|
|
7960
7960
|
"duration-200"
|
|
7961
7961
|
),
|
|
7962
|
-
onLoad: () =>
|
|
7962
|
+
onLoad: () => v(!0),
|
|
7963
7963
|
onError: () => {
|
|
7964
|
-
p(!0),
|
|
7964
|
+
p(!0), v(!1);
|
|
7965
7965
|
},
|
|
7966
7966
|
"aria-hidden": "true"
|
|
7967
7967
|
}
|
|
@@ -8017,10 +8017,10 @@ function zd(l) {
|
|
|
8017
8017
|
}, i), {
|
|
8018
8018
|
children: [
|
|
8019
8019
|
m.map((p, x) => {
|
|
8020
|
-
let
|
|
8020
|
+
let v = p;
|
|
8021
8021
|
if (br(p) && p.type === Gr) {
|
|
8022
8022
|
const w = p.props;
|
|
8023
|
-
|
|
8023
|
+
v = vr(
|
|
8024
8024
|
p,
|
|
8025
8025
|
{
|
|
8026
8026
|
size: w.size || r,
|
|
@@ -8033,7 +8033,7 @@ function zd(l) {
|
|
|
8033
8033
|
{
|
|
8034
8034
|
className: "ring-2 ring-surface-base",
|
|
8035
8035
|
style: { zIndex: u.length - x },
|
|
8036
|
-
children:
|
|
8036
|
+
children: v
|
|
8037
8037
|
},
|
|
8038
8038
|
x
|
|
8039
8039
|
);
|
|
@@ -8101,16 +8101,16 @@ const Yr = Ee(function(c) {
|
|
|
8101
8101
|
), f = z(
|
|
8102
8102
|
() => a !== void 0 || t === "hover",
|
|
8103
8103
|
[a, t]
|
|
8104
|
-
), p = f ? "button" : void 0, x = f ? 0 : void 0,
|
|
8105
|
-
(
|
|
8106
|
-
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());
|
|
8107
8107
|
},
|
|
8108
8108
|
[f, a]
|
|
8109
8109
|
);
|
|
8110
8110
|
return /* @__PURE__ */ n.jsx(
|
|
8111
8111
|
"div",
|
|
8112
8112
|
_(E({
|
|
8113
|
-
className:
|
|
8113
|
+
className: v,
|
|
8114
8114
|
role: p,
|
|
8115
8115
|
tabIndex: x,
|
|
8116
8116
|
onClick: a,
|
|
@@ -8171,15 +8171,15 @@ function Od(l) {
|
|
|
8171
8171
|
o
|
|
8172
8172
|
);
|
|
8173
8173
|
if ("form" in i && i.form !== void 0) {
|
|
8174
|
-
const
|
|
8175
|
-
form:
|
|
8174
|
+
const v = i, {
|
|
8175
|
+
form: g,
|
|
8176
8176
|
onSubmit: j,
|
|
8177
8177
|
onSubmitError: S
|
|
8178
|
-
} =
|
|
8178
|
+
} = v, h = V(v, [
|
|
8179
8179
|
"form",
|
|
8180
8180
|
"onSubmit",
|
|
8181
8181
|
"onSubmitError"
|
|
8182
|
-
]),
|
|
8182
|
+
]), b = g.handleSubmit(
|
|
8183
8183
|
(k) => ar(null, null, function* () {
|
|
8184
8184
|
try {
|
|
8185
8185
|
yield j(k);
|
|
@@ -8191,13 +8191,13 @@ function Od(l) {
|
|
|
8191
8191
|
S == null || S(k);
|
|
8192
8192
|
}
|
|
8193
8193
|
);
|
|
8194
|
-
return /* @__PURE__ */ n.jsx(pl, { form:
|
|
8194
|
+
return /* @__PURE__ */ n.jsx(pl, { form: g, loading: r, children: /* @__PURE__ */ n.jsxs(
|
|
8195
8195
|
"form",
|
|
8196
8196
|
_(E({
|
|
8197
8197
|
className: c,
|
|
8198
|
-
onSubmit:
|
|
8198
|
+
onSubmit: b,
|
|
8199
8199
|
noValidate: !0
|
|
8200
|
-
},
|
|
8200
|
+
}, h), {
|
|
8201
8201
|
children: [
|
|
8202
8202
|
e,
|
|
8203
8203
|
s && /* @__PURE__ */ n.jsx(
|
|
@@ -8236,8 +8236,8 @@ function Od(l) {
|
|
|
8236
8236
|
})
|
|
8237
8237
|
) });
|
|
8238
8238
|
}
|
|
8239
|
-
const m = i.onSubmit || t, w = i, { onSubmit: f } = w, p = V(w, ["onSubmit"]), x = (
|
|
8240
|
-
|
|
8239
|
+
const m = i.onSubmit || t, w = i, { onSubmit: f } = w, p = V(w, ["onSubmit"]), x = (g) => {
|
|
8240
|
+
g.preventDefault(), m && !r && m(g);
|
|
8241
8241
|
};
|
|
8242
8242
|
return /* @__PURE__ */ n.jsxs(
|
|
8243
8243
|
"form",
|
|
@@ -8465,16 +8465,16 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8465
8465
|
value: e,
|
|
8466
8466
|
message: ""
|
|
8467
8467
|
}, Ml = (e, t, r, s, a, o) => ar(null, null, function* () {
|
|
8468
|
-
const { ref: i, refs: l, required: d, maxLength: c, minLength: u, min: m, max: f, pattern: p, validate: x, name:
|
|
8469
|
-
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))
|
|
8470
8470
|
return {};
|
|
8471
|
-
const S = l ? l[0] : i,
|
|
8471
|
+
const S = l ? l[0] : i, h = (A) => {
|
|
8472
8472
|
a && S.reportValidity && (S.setCustomValidity(_n(A) ? "" : A || ""), S.reportValidity());
|
|
8473
|
-
},
|
|
8473
|
+
}, b = {};
|
|
8474
8474
|
$l(i), hl(i);
|
|
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,
|
|
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) => {
|
|
8476
8476
|
const R = A ? L : T;
|
|
8477
|
-
v
|
|
8477
|
+
b[v] = E({
|
|
8478
8478
|
type: A ? M : I,
|
|
8479
8479
|
message: R,
|
|
8480
8480
|
ref: i
|
|
@@ -8482,12 +8482,12 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8482
8482
|
};
|
|
8483
8483
|
if (!Array.isArray(j) || !j.length) {
|
|
8484
8484
|
const { value: A, message: L } = nt(d) ? { value: !!d, message: d } : Et(d);
|
|
8485
|
-
if (A && (v
|
|
8485
|
+
if (A && (b[v] = E({
|
|
8486
8486
|
type: Ke.required,
|
|
8487
8487
|
message: L,
|
|
8488
8488
|
ref: S
|
|
8489
8489
|
}, F(Ke.required, L)), !s))
|
|
8490
|
-
return
|
|
8490
|
+
return h(L), b;
|
|
8491
8491
|
}
|
|
8492
8492
|
if (!k && (!Xe(m) || !Xe(f))) {
|
|
8493
8493
|
let A, L;
|
|
@@ -8500,42 +8500,42 @@ var Et = (e) => Qe(e) && !On(e) ? e : {
|
|
|
8500
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));
|
|
8501
8501
|
}
|
|
8502
8502
|
if ((A || L) && (N(!!A, T.message, M.message, Ke.max, Ke.min), !s))
|
|
8503
|
-
return
|
|
8503
|
+
return h(b[v].message), b;
|
|
8504
8504
|
}
|
|
8505
8505
|
if ((c || u) && !k && (nt(j) || Array.isArray(j))) {
|
|
8506
8506
|
const A = Et(c), L = Et(u), T = !Xe(A.value) && j.length > +A.value, M = !Xe(L.value) && j.length < +L.value;
|
|
8507
8507
|
if ((T || M) && (N(T, A.message, L.message), !s))
|
|
8508
|
-
return
|
|
8508
|
+
return h(b[v].message), b;
|
|
8509
8509
|
}
|
|
8510
8510
|
if (p && !k && nt(j)) {
|
|
8511
8511
|
const { value: A, message: L } = Et(p);
|
|
8512
|
-
if (On(A) && !j.match(A) && (v
|
|
8512
|
+
if (On(A) && !j.match(A) && (b[v] = E({
|
|
8513
8513
|
type: Ke.pattern,
|
|
8514
8514
|
message: L,
|
|
8515
8515
|
ref: i
|
|
8516
8516
|
}, F(Ke.pattern, L)), !s))
|
|
8517
|
-
return
|
|
8517
|
+
return h(L), b;
|
|
8518
8518
|
}
|
|
8519
8519
|
if (x) {
|
|
8520
8520
|
if (vl(x)) {
|
|
8521
8521
|
const A = yield x(j, r), L = Zs(A, S);
|
|
8522
|
-
if (L && (v
|
|
8523
|
-
return
|
|
8522
|
+
if (L && (b[v] = E(E({}, L), F(Ke.validate, L.message)), !s))
|
|
8523
|
+
return h(L.message), b;
|
|
8524
8524
|
} else if (Qe(x)) {
|
|
8525
8525
|
let A = {};
|
|
8526
8526
|
for (const L in x) {
|
|
8527
8527
|
if (!xr(A) && !s)
|
|
8528
8528
|
break;
|
|
8529
8529
|
const T = Zs(yield x[L](j, r), S, L);
|
|
8530
|
-
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));
|
|
8531
8531
|
}
|
|
8532
|
-
if (!xr(A) && (v
|
|
8532
|
+
if (!xr(A) && (b[v] = E({
|
|
8533
8533
|
ref: S
|
|
8534
8534
|
}, A), !s))
|
|
8535
|
-
return
|
|
8535
|
+
return b;
|
|
8536
8536
|
}
|
|
8537
8537
|
}
|
|
8538
|
-
return
|
|
8538
|
+
return h(!0), b;
|
|
8539
8539
|
}), st = () => {
|
|
8540
8540
|
if (typeof crypto != "undefined" && crypto.randomUUID)
|
|
8541
8541
|
return crypto.randomUUID();
|
|
@@ -8573,98 +8573,98 @@ var Pr = (e, t) => Be(t) ? [] : Il(e, He(t).sort((r, s) => r - s)), Or = (e, t,
|
|
|
8573
8573
|
function Dl(e) {
|
|
8574
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);
|
|
8575
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({
|
|
8576
|
-
next: ({ values:
|
|
8577
|
-
if (
|
|
8578
|
-
const k = We(
|
|
8576
|
+
next: ({ values: h, name: b }) => {
|
|
8577
|
+
if (b === s || !b) {
|
|
8578
|
+
const k = We(h, s);
|
|
8579
8579
|
Array.isArray(k) && (d(k), c.current = k.map(st));
|
|
8580
8580
|
}
|
|
8581
8581
|
}
|
|
8582
8582
|
}).unsubscribe, [r, s]);
|
|
8583
|
-
const m = pe.useCallback((
|
|
8584
|
-
u.current = !0, r._setFieldArray(s,
|
|
8585
|
-
}, [r, s]), f = (
|
|
8586
|
-
const k = He(dt(
|
|
8587
|
-
r._names.focus = Dr(s, F.length - 1,
|
|
8588
|
-
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)
|
|
8589
8589
|
});
|
|
8590
|
-
}, p = (
|
|
8591
|
-
const k = He(dt(
|
|
8592
|
-
r._names.focus = Dr(s, 0,
|
|
8593
|
-
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)
|
|
8594
8594
|
});
|
|
8595
|
-
}, x = (
|
|
8596
|
-
const
|
|
8597
|
-
c.current = Pr(c.current,
|
|
8598
|
-
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
|
|
8599
8599
|
});
|
|
8600
|
-
},
|
|
8601
|
-
const F = He(dt(
|
|
8602
|
-
r._names.focus = Dr(s,
|
|
8603
|
-
argA:
|
|
8604
|
-
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)
|
|
8605
8605
|
});
|
|
8606
|
-
}, w = (
|
|
8606
|
+
}, w = (h, b) => {
|
|
8607
8607
|
const k = r._getFieldArray(s);
|
|
8608
|
-
Or(k,
|
|
8609
|
-
argA:
|
|
8610
|
-
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
|
|
8611
8611
|
}, !1);
|
|
8612
|
-
},
|
|
8612
|
+
}, g = (h, b) => {
|
|
8613
8613
|
const k = r._getFieldArray(s);
|
|
8614
|
-
_r(k,
|
|
8615
|
-
argA:
|
|
8616
|
-
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
|
|
8617
8617
|
}, !1);
|
|
8618
|
-
}, j = (
|
|
8619
|
-
const k = dt(
|
|
8620
|
-
c.current = [...F].map((N, A) => !N || A ===
|
|
8621
|
-
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,
|
|
8622
8622
|
argB: k
|
|
8623
8623
|
}, !0, !1);
|
|
8624
|
-
}, S = (
|
|
8625
|
-
const
|
|
8626
|
-
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);
|
|
8627
8627
|
};
|
|
8628
8628
|
return pe.useEffect(() => {
|
|
8629
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)
|
|
8630
8630
|
if (r._options.resolver)
|
|
8631
|
-
r._runSchema([s]).then((
|
|
8631
|
+
r._runSchema([s]).then((h) => {
|
|
8632
8632
|
r._updateIsValidating([s]);
|
|
8633
|
-
const
|
|
8634
|
-
(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({
|
|
8635
8635
|
errors: r._formState.errors
|
|
8636
8636
|
}));
|
|
8637
8637
|
});
|
|
8638
8638
|
else {
|
|
8639
|
-
const
|
|
8640
|
-
|
|
8641
|
-
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)
|
|
8642
8642
|
}));
|
|
8643
8643
|
}
|
|
8644
8644
|
r._subjects.state.next({
|
|
8645
8645
|
name: s,
|
|
8646
8646
|
values: dt(r._formValues)
|
|
8647
|
-
}), r._names.focus && Kr(r._fields, (
|
|
8648
|
-
if (r._names.focus &&
|
|
8649
|
-
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;
|
|
8650
8650
|
}), r._names.focus = "", r._setValid(), u.current = !1;
|
|
8651
8651
|
}, [l, s, r]), pe.useEffect(() => (!We(r._formValues, s) && r._setFieldArray(s), () => {
|
|
8652
|
-
const
|
|
8653
|
-
const F = We(r._fields,
|
|
8652
|
+
const h = (b, k) => {
|
|
8653
|
+
const F = We(r._fields, b);
|
|
8654
8654
|
F && F._f && (F._f.mount = k);
|
|
8655
8655
|
};
|
|
8656
|
-
r._options.shouldUnregister || o ? r.unregister(s) :
|
|
8656
|
+
r._options.shouldUnregister || o ? r.unregister(s) : h(s, !1);
|
|
8657
8657
|
}), [s, r, a, o]), {
|
|
8658
8658
|
swap: pe.useCallback(w, [m, s, r]),
|
|
8659
|
-
move: pe.useCallback(
|
|
8659
|
+
move: pe.useCallback(g, [m, s, r]),
|
|
8660
8660
|
prepend: pe.useCallback(p, [m, s, r]),
|
|
8661
8661
|
append: pe.useCallback(f, [m, s, r]),
|
|
8662
8662
|
remove: pe.useCallback(x, [m, s, r]),
|
|
8663
|
-
insert: pe.useCallback(
|
|
8663
|
+
insert: pe.useCallback(v, [m, s, r]),
|
|
8664
8664
|
update: pe.useCallback(j, [m, s, r]),
|
|
8665
8665
|
replace: pe.useCallback(S, [m, s, r]),
|
|
8666
|
-
fields: pe.useMemo(() => l.map((
|
|
8667
|
-
[a]: c.current[
|
|
8666
|
+
fields: pe.useMemo(() => l.map((h, b) => _(E({}, h), {
|
|
8667
|
+
[a]: c.current[b] || st()
|
|
8668
8668
|
})), [l, a])
|
|
8669
8669
|
};
|
|
8670
8670
|
}
|
|
@@ -8770,29 +8770,29 @@ function Ll(d) {
|
|
|
8770
8770
|
e > 1 && r(e - 1);
|
|
8771
8771
|
}, m = () => {
|
|
8772
8772
|
e < t && r(e + 1);
|
|
8773
|
-
}, f = (
|
|
8774
|
-
|
|
8773
|
+
}, f = (g) => {
|
|
8774
|
+
g >= 1 && g <= t && g !== e && r(g);
|
|
8775
8775
|
}, p = () => {
|
|
8776
|
-
const
|
|
8776
|
+
const g = [];
|
|
8777
8777
|
if (t <= 5)
|
|
8778
8778
|
for (let S = 1; S <= t; S++)
|
|
8779
|
-
|
|
8779
|
+
g.push(S);
|
|
8780
8780
|
else if (e <= 3) {
|
|
8781
8781
|
for (let S = 1; S <= 4; S++)
|
|
8782
|
-
|
|
8783
|
-
|
|
8782
|
+
g.push(S);
|
|
8783
|
+
g.push("ellipsis"), g.push(t);
|
|
8784
8784
|
} else if (e >= t - 2) {
|
|
8785
|
-
|
|
8785
|
+
g.push(1), g.push("ellipsis");
|
|
8786
8786
|
for (let S = t - 3; S <= t; S++)
|
|
8787
|
-
|
|
8787
|
+
g.push(S);
|
|
8788
8788
|
} else {
|
|
8789
|
-
|
|
8789
|
+
g.push(1), g.push("ellipsis");
|
|
8790
8790
|
for (let S = e - 1; S <= e + 1; S++)
|
|
8791
|
-
|
|
8792
|
-
|
|
8791
|
+
g.push(S);
|
|
8792
|
+
g.push("ellipsis"), g.push(t);
|
|
8793
8793
|
}
|
|
8794
|
-
return
|
|
8795
|
-
}, 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(
|
|
8796
8796
|
"flex",
|
|
8797
8797
|
"items-center",
|
|
8798
8798
|
"justify-between",
|
|
@@ -8816,8 +8816,8 @@ function Ll(d) {
|
|
|
8816
8816
|
"div",
|
|
8817
8817
|
{
|
|
8818
8818
|
className: y("flex", "items-center", C("xs", "gap")),
|
|
8819
|
-
children: p().map((
|
|
8820
|
-
if (
|
|
8819
|
+
children: p().map((g, j) => {
|
|
8820
|
+
if (g === "ellipsis")
|
|
8821
8821
|
return /* @__PURE__ */ n.jsx(
|
|
8822
8822
|
"span",
|
|
8823
8823
|
{
|
|
@@ -8829,14 +8829,14 @@ function Ll(d) {
|
|
|
8829
8829
|
},
|
|
8830
8830
|
`ellipsis-${j}`
|
|
8831
8831
|
);
|
|
8832
|
-
const S =
|
|
8832
|
+
const S = g, h = S === e;
|
|
8833
8833
|
return /* @__PURE__ */ n.jsx(
|
|
8834
8834
|
re,
|
|
8835
8835
|
{
|
|
8836
|
-
variant:
|
|
8836
|
+
variant: h ? "primary" : "ghost",
|
|
8837
8837
|
onClick: () => f(S),
|
|
8838
8838
|
size: "sm",
|
|
8839
|
-
"aria-current":
|
|
8839
|
+
"aria-current": h ? "page" : void 0,
|
|
8840
8840
|
"aria-label": `Go to page ${S}`,
|
|
8841
8841
|
children: S
|
|
8842
8842
|
},
|
|
@@ -8864,7 +8864,7 @@ function Ll(d) {
|
|
|
8864
8864
|
"Showing ",
|
|
8865
8865
|
x,
|
|
8866
8866
|
" to ",
|
|
8867
|
-
|
|
8867
|
+
v,
|
|
8868
8868
|
" of ",
|
|
8869
8869
|
s,
|
|
8870
8870
|
" results"
|
|
@@ -8959,7 +8959,7 @@ function _l(l) {
|
|
|
8959
8959
|
"className",
|
|
8960
8960
|
"aria-label"
|
|
8961
8961
|
]);
|
|
8962
|
-
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)}`;
|
|
8963
8963
|
J(() => {
|
|
8964
8964
|
const N = (A) => {
|
|
8965
8965
|
p.current && !p.current.contains(A.target) && (u(!1), f(-1));
|
|
@@ -9014,7 +9014,7 @@ function _l(l) {
|
|
|
9014
9014
|
}, 0);
|
|
9015
9015
|
break;
|
|
9016
9016
|
}
|
|
9017
|
-
}, A =
|
|
9017
|
+
}, A = v.current;
|
|
9018
9018
|
if (A) {
|
|
9019
9019
|
const L = N;
|
|
9020
9020
|
return A.addEventListener("keydown", L), () => {
|
|
@@ -9027,20 +9027,20 @@ function _l(l) {
|
|
|
9027
9027
|
var A;
|
|
9028
9028
|
(A = x.current) == null || A.focus();
|
|
9029
9029
|
}, 0));
|
|
9030
|
-
},
|
|
9030
|
+
}, h = () => {
|
|
9031
9031
|
u(!c), f(-1);
|
|
9032
|
-
},
|
|
9032
|
+
}, b = (N) => {
|
|
9033
9033
|
(N.key === "Enter" || N.key === " " || N.key === "ArrowDown") && (N.preventDefault(), u(!0));
|
|
9034
9034
|
}, k = r === "right" ? "right-0" : "left-0", F = pe.isValidElement(e) ? pe.cloneElement(e, {
|
|
9035
9035
|
onClick: (N) => {
|
|
9036
|
-
|
|
9036
|
+
h(), e.props.onClick && e.props.onClick(N);
|
|
9037
9037
|
},
|
|
9038
9038
|
onKeyDown: (N) => {
|
|
9039
|
-
|
|
9039
|
+
b(N), e.props.onKeyDown && e.props.onKeyDown(N);
|
|
9040
9040
|
},
|
|
9041
9041
|
"aria-haspopup": "menu",
|
|
9042
9042
|
"aria-expanded": c,
|
|
9043
|
-
"aria-controls":
|
|
9043
|
+
"aria-controls": g,
|
|
9044
9044
|
"aria-label": o || e.props["aria-label"] || "Open menu",
|
|
9045
9045
|
id: j,
|
|
9046
9046
|
ref: (N) => {
|
|
@@ -9050,13 +9050,13 @@ function _l(l) {
|
|
|
9050
9050
|
"div",
|
|
9051
9051
|
{
|
|
9052
9052
|
ref: x,
|
|
9053
|
-
onClick:
|
|
9054
|
-
onKeyDown:
|
|
9053
|
+
onClick: h,
|
|
9054
|
+
onKeyDown: b,
|
|
9055
9055
|
role: "button",
|
|
9056
9056
|
tabIndex: 0,
|
|
9057
9057
|
"aria-haspopup": "menu",
|
|
9058
9058
|
"aria-expanded": c,
|
|
9059
|
-
"aria-controls":
|
|
9059
|
+
"aria-controls": g,
|
|
9060
9060
|
"aria-label": o || "Open menu",
|
|
9061
9061
|
id: j,
|
|
9062
9062
|
children: e
|
|
@@ -9084,8 +9084,8 @@ function _l(l) {
|
|
|
9084
9084
|
/* @__PURE__ */ n.jsx(
|
|
9085
9085
|
"div",
|
|
9086
9086
|
{
|
|
9087
|
-
ref:
|
|
9088
|
-
id:
|
|
9087
|
+
ref: v,
|
|
9088
|
+
id: g,
|
|
9089
9089
|
className: y(
|
|
9090
9090
|
"absolute",
|
|
9091
9091
|
// micro-z: dropdown content above its own backdrop
|
|
@@ -9104,7 +9104,7 @@ function _l(l) {
|
|
|
9104
9104
|
role: "menu",
|
|
9105
9105
|
"aria-orientation": "vertical",
|
|
9106
9106
|
"aria-labelledby": j,
|
|
9107
|
-
"aria-activedescendant": m >= 0 ? `${
|
|
9107
|
+
"aria-activedescendant": m >= 0 ? `${g}-item-${m}` : void 0,
|
|
9108
9108
|
children: /* @__PURE__ */ n.jsx("div", { className: y(C("xs", "py")), role: "none", children: t.map((N, A) => {
|
|
9109
9109
|
const L = y(
|
|
9110
9110
|
"block",
|
|
@@ -9127,7 +9127,7 @@ function _l(l) {
|
|
|
9127
9127
|
return /* @__PURE__ */ n.jsx(
|
|
9128
9128
|
"button",
|
|
9129
9129
|
{
|
|
9130
|
-
id: `${
|
|
9130
|
+
id: `${g}-item-${A}`,
|
|
9131
9131
|
ref: (T) => {
|
|
9132
9132
|
w.current[A] = T;
|
|
9133
9133
|
},
|
|
@@ -9181,15 +9181,15 @@ function en({
|
|
|
9181
9181
|
return null;
|
|
9182
9182
|
}, u = () => r !== void 0 ? null : s && t === "range" && typeof s == "object" && "start" in s ? s : { start: null, end: null }, [m, f] = P(
|
|
9183
9183
|
c()
|
|
9184
|
-
), [p, x] = P(u()),
|
|
9185
|
-
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,
|
|
9186
9186
|
selectedRange: w,
|
|
9187
9187
|
mode: t,
|
|
9188
|
-
onDateChange: (
|
|
9189
|
-
t === "single" && (r === void 0 && f(
|
|
9188
|
+
onDateChange: (h) => {
|
|
9189
|
+
t === "single" && (r === void 0 && f(h), a == null || a(h));
|
|
9190
9190
|
},
|
|
9191
|
-
onRangeChange: (
|
|
9192
|
-
t === "range" && (r === void 0 && x(
|
|
9191
|
+
onRangeChange: (h) => {
|
|
9192
|
+
t === "range" && (r === void 0 && x(h), a == null || a(h));
|
|
9193
9193
|
},
|
|
9194
9194
|
minDate: o,
|
|
9195
9195
|
maxDate: i,
|
|
@@ -9237,31 +9237,31 @@ function Hn(l) {
|
|
|
9237
9237
|
"onFocus",
|
|
9238
9238
|
"className"
|
|
9239
9239
|
]);
|
|
9240
|
-
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);
|
|
9241
9241
|
J(() => {
|
|
9242
9242
|
m === "single" && c ? x(Ut(c, t)) : m === "range" && u ? u.start && u.end ? x(
|
|
9243
9243
|
`${Ut(u.start, t)} - ${Ut(u.end, t)}`
|
|
9244
9244
|
) : u.start ? x(Ut(u.start, t)) : x("") : x("");
|
|
9245
9245
|
}, [c, u, m, t]);
|
|
9246
|
-
const j = (
|
|
9247
|
-
const k =
|
|
9246
|
+
const j = (b) => {
|
|
9247
|
+
const k = b.target.value;
|
|
9248
9248
|
if (x(k), m === "single") {
|
|
9249
9249
|
const F = tn(k);
|
|
9250
9250
|
f(F);
|
|
9251
9251
|
}
|
|
9252
9252
|
}, S = () => {
|
|
9253
9253
|
if (w(!1), p && m === "single") {
|
|
9254
|
-
const
|
|
9255
|
-
|
|
9254
|
+
const b = tn(p);
|
|
9255
|
+
b && x(Ut(b, t));
|
|
9256
9256
|
}
|
|
9257
|
-
},
|
|
9258
|
-
var
|
|
9259
|
-
(
|
|
9257
|
+
}, h = () => {
|
|
9258
|
+
var b;
|
|
9259
|
+
(b = g.current) == null || b.focus();
|
|
9260
9260
|
};
|
|
9261
9261
|
return /* @__PURE__ */ n.jsx("div", _(E({ className: `relative ${o}` }, i), { children: /* @__PURE__ */ n.jsx(
|
|
9262
9262
|
De,
|
|
9263
9263
|
{
|
|
9264
|
-
ref:
|
|
9264
|
+
ref: g,
|
|
9265
9265
|
type: "text",
|
|
9266
9266
|
value: p,
|
|
9267
9267
|
onChange: j,
|
|
@@ -9276,7 +9276,7 @@ function Hn(l) {
|
|
|
9276
9276
|
{
|
|
9277
9277
|
variant: "iconOnly",
|
|
9278
9278
|
size: "sm",
|
|
9279
|
-
onClick:
|
|
9279
|
+
onClick: h,
|
|
9280
9280
|
"aria-label": "Open calendar",
|
|
9281
9281
|
type: "button",
|
|
9282
9282
|
children: /* @__PURE__ */ n.jsx(oi, { className: "h-4 w-4" })
|
|
@@ -9338,29 +9338,29 @@ function Un(a) {
|
|
|
9338
9338
|
minDate: m,
|
|
9339
9339
|
maxDate: f,
|
|
9340
9340
|
disabledDates: p
|
|
9341
|
-
} = Wn(), [x,
|
|
9341
|
+
} = Wn(), [x, v] = P(
|
|
9342
9342
|
e || i || (l == null ? void 0 : l.start) || /* @__PURE__ */ new Date()
|
|
9343
|
-
), w = te(null), [
|
|
9343
|
+
), w = te(null), [g, j] = P(() => {
|
|
9344
9344
|
const M = /* @__PURE__ */ new Date(), I = e || i || (l == null ? void 0 : l.start) || M;
|
|
9345
9345
|
return i && Bt(i, I) ? i : Bt(M, I) ? M : new Date(I.getFullYear(), I.getMonth(), 1);
|
|
9346
9346
|
});
|
|
9347
9347
|
J(() => {
|
|
9348
|
-
e &&
|
|
9348
|
+
e && v(e);
|
|
9349
9349
|
}, [e]), J(() => {
|
|
9350
9350
|
if (!w.current) return;
|
|
9351
9351
|
const M = w.current.querySelector(
|
|
9352
|
-
`[data-date="${
|
|
9352
|
+
`[data-date="${g.toISOString()}"]`
|
|
9353
9353
|
);
|
|
9354
9354
|
M && M.focus();
|
|
9355
|
-
}, [
|
|
9355
|
+
}, [g]);
|
|
9356
9356
|
const S = (() => {
|
|
9357
|
-
if (Bt(
|
|
9357
|
+
if (Bt(g, x)) return g;
|
|
9358
9358
|
const M = /* @__PURE__ */ new Date();
|
|
9359
9359
|
return Bt(M, x) ? M : new Date(x.getFullYear(), x.getMonth(), 1);
|
|
9360
|
-
})(),
|
|
9361
|
-
for (let M = 0; M <
|
|
9360
|
+
})(), h = zl(x), b = Pl(x), k = [];
|
|
9361
|
+
for (let M = 0; M < b; M++)
|
|
9362
9362
|
k.push(null);
|
|
9363
|
-
for (let M = 1; M <=
|
|
9363
|
+
for (let M = 1; M <= h; M++)
|
|
9364
9364
|
k.push(
|
|
9365
9365
|
new Date(x.getFullYear(), x.getMonth(), M)
|
|
9366
9366
|
);
|
|
@@ -9379,14 +9379,14 @@ function Un(a) {
|
|
|
9379
9379
|
x.getMonth() - 1,
|
|
9380
9380
|
1
|
|
9381
9381
|
);
|
|
9382
|
-
|
|
9382
|
+
v(M), t == null || t(M);
|
|
9383
9383
|
}, A = () => {
|
|
9384
9384
|
const M = new Date(
|
|
9385
9385
|
x.getFullYear(),
|
|
9386
9386
|
x.getMonth() + 1,
|
|
9387
9387
|
1
|
|
9388
9388
|
);
|
|
9389
|
-
|
|
9389
|
+
v(M), t == null || t(M);
|
|
9390
9390
|
}, L = (M, I) => {
|
|
9391
9391
|
let R = null;
|
|
9392
9392
|
switch (M.key) {
|
|
@@ -9429,7 +9429,7 @@ function Un(a) {
|
|
|
9429
9429
|
M.preventDefault(), F(I);
|
|
9430
9430
|
return;
|
|
9431
9431
|
}
|
|
9432
|
-
R && (Bt(R, x) ||
|
|
9432
|
+
R && (Bt(R, x) || v(new Date(R.getFullYear(), R.getMonth(), 1)), j(R));
|
|
9433
9433
|
}, T = [];
|
|
9434
9434
|
for (let M = 0; M < k.length; M += 7)
|
|
9435
9435
|
T.push(k.slice(M, M + 7));
|
|
@@ -9491,7 +9491,7 @@ function Un(a) {
|
|
|
9491
9491
|
m,
|
|
9492
9492
|
f,
|
|
9493
9493
|
p
|
|
9494
|
-
), de = ut(R, /* @__PURE__ */ new Date()), ie = ut(R,
|
|
9494
|
+
), de = ut(R, /* @__PURE__ */ new Date()), ie = ut(R, g), D = ut(R, S);
|
|
9495
9495
|
return /* @__PURE__ */ n.jsx(
|
|
9496
9496
|
"button",
|
|
9497
9497
|
{
|
|
@@ -9540,21 +9540,21 @@ function wr({
|
|
|
9540
9540
|
"aria-label": m,
|
|
9541
9541
|
className: f = ""
|
|
9542
9542
|
}) {
|
|
9543
|
-
const [p, x] = P(!1),
|
|
9543
|
+
const [p, x] = P(!1), v = te(null), w = te(null);
|
|
9544
9544
|
return J(() => {
|
|
9545
9545
|
if (!p) return;
|
|
9546
|
-
const
|
|
9546
|
+
const g = (j) => {
|
|
9547
9547
|
var k, F, N, A;
|
|
9548
|
-
const S = j.target,
|
|
9549
|
-
!
|
|
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);
|
|
9550
9550
|
};
|
|
9551
|
-
return document.addEventListener("mousedown",
|
|
9551
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
9552
9552
|
}, [p]), J(() => {
|
|
9553
9553
|
if (!p) return;
|
|
9554
|
-
const
|
|
9554
|
+
const g = (j) => {
|
|
9555
9555
|
j.key === "Escape" && x(!1);
|
|
9556
9556
|
};
|
|
9557
|
-
return document.addEventListener("keydown",
|
|
9557
|
+
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
9558
9558
|
}, [p]), e ? /* @__PURE__ */ n.jsx(
|
|
9559
9559
|
en,
|
|
9560
9560
|
{
|
|
@@ -9567,7 +9567,7 @@ function wr({
|
|
|
9567
9567
|
disabledDates: l,
|
|
9568
9568
|
children: e
|
|
9569
9569
|
}
|
|
9570
|
-
) : /* @__PURE__ */ n.jsx("div", { ref:
|
|
9570
|
+
) : /* @__PURE__ */ n.jsx("div", { ref: v, className: `relative ${f}`, children: /* @__PURE__ */ n.jsxs(
|
|
9571
9571
|
en,
|
|
9572
9572
|
{
|
|
9573
9573
|
mode: t,
|
|
@@ -9588,7 +9588,7 @@ function wr({
|
|
|
9588
9588
|
onFocus: () => x(!0)
|
|
9589
9589
|
}
|
|
9590
9590
|
),
|
|
9591
|
-
p && /* @__PURE__ */ n.jsx(Bn, { containerRef:
|
|
9591
|
+
p && /* @__PURE__ */ n.jsx(Bn, { containerRef: v, popupRef: w, children: /* @__PURE__ */ n.jsx(Un, {}) })
|
|
9592
9592
|
]
|
|
9593
9593
|
}
|
|
9594
9594
|
) });
|
|
@@ -9689,11 +9689,11 @@ function Ul(a) {
|
|
|
9689
9689
|
'[role="tab"]:not([disabled])'
|
|
9690
9690
|
)
|
|
9691
9691
|
), x = p.findIndex(
|
|
9692
|
-
(
|
|
9692
|
+
(g) => g === document.activeElement
|
|
9693
9693
|
);
|
|
9694
9694
|
if (x === -1) return;
|
|
9695
|
-
let
|
|
9696
|
-
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());
|
|
9697
9697
|
};
|
|
9698
9698
|
return u.addEventListener("keydown", m), () => u.removeEventListener("keydown", m);
|
|
9699
9699
|
}, [i]);
|
|
@@ -9738,18 +9738,18 @@ function Bl(l) {
|
|
|
9738
9738
|
onValueChange: u,
|
|
9739
9739
|
orientation: m,
|
|
9740
9740
|
activationMode: f
|
|
9741
|
-
} = ms(), p = c === e, x = (
|
|
9742
|
-
r || ((f === "automatic" || p) && u(e), a == null || a(
|
|
9743
|
-
},
|
|
9741
|
+
} = ms(), p = c === e, x = (g) => {
|
|
9742
|
+
r || ((f === "automatic" || p) && u(e), a == null || a(g));
|
|
9743
|
+
}, v = (g) => {
|
|
9744
9744
|
var j;
|
|
9745
|
-
f === "automatic" && !r && !p && u(e), (j = i.onFocus) == null || j.call(i,
|
|
9746
|
-
}, w = (
|
|
9747
|
-
if (!r && !(
|
|
9748
|
-
if (f === "manual" && (
|
|
9749
|
-
|
|
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);
|
|
9750
9750
|
return;
|
|
9751
9751
|
}
|
|
9752
|
-
o == null || o(
|
|
9752
|
+
o == null || o(g);
|
|
9753
9753
|
}
|
|
9754
9754
|
};
|
|
9755
9755
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -9763,7 +9763,7 @@ function Bl(l) {
|
|
|
9763
9763
|
tabIndex: r ? -1 : p ? 0 : -1,
|
|
9764
9764
|
disabled: r,
|
|
9765
9765
|
onClick: x,
|
|
9766
|
-
onFocus:
|
|
9766
|
+
onFocus: v,
|
|
9767
9767
|
onKeyDown: w,
|
|
9768
9768
|
className: y(
|
|
9769
9769
|
"inline-flex",
|
|
@@ -9848,19 +9848,19 @@ const Bd = jr, ps = he(
|
|
|
9848
9848
|
"onChange",
|
|
9849
9849
|
"className"
|
|
9850
9850
|
]);
|
|
9851
|
-
const [x,
|
|
9851
|
+
const [x, v] = P(
|
|
9852
9852
|
typeof l == "string" ? l : ""
|
|
9853
|
-
), [w,
|
|
9853
|
+
), [w, g] = P(
|
|
9854
9854
|
null
|
|
9855
|
-
), 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) => {
|
|
9856
9856
|
const A = N.target.value;
|
|
9857
|
-
j ||
|
|
9857
|
+
j || v(A), d == null || d(N), w && clearTimeout(w);
|
|
9858
9858
|
const L = setTimeout(() => {
|
|
9859
9859
|
t == null || t(A);
|
|
9860
9860
|
}, o);
|
|
9861
|
-
|
|
9861
|
+
g(L);
|
|
9862
9862
|
}, k = () => {
|
|
9863
|
-
j ||
|
|
9863
|
+
j || v("");
|
|
9864
9864
|
const N = {
|
|
9865
9865
|
target: { value: "" },
|
|
9866
9866
|
currentTarget: { value: "" }
|
|
@@ -9877,10 +9877,10 @@ const Bd = jr, ps = he(
|
|
|
9877
9877
|
}, u), {
|
|
9878
9878
|
type: "search",
|
|
9879
9879
|
value: S,
|
|
9880
|
-
onChange:
|
|
9880
|
+
onChange: b,
|
|
9881
9881
|
onKeyDown: F,
|
|
9882
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" }),
|
|
9883
|
-
rightIcon: a &&
|
|
9883
|
+
rightIcon: a && h && !s ? /* @__PURE__ */ n.jsx(
|
|
9884
9884
|
re,
|
|
9885
9885
|
{
|
|
9886
9886
|
variant: "ghost",
|
|
@@ -9947,11 +9947,11 @@ const hs = he(
|
|
|
9947
9947
|
const [f, p] = P({ top: 0, left: 0, width: 0 });
|
|
9948
9948
|
J(() => {
|
|
9949
9949
|
if (i.current) {
|
|
9950
|
-
const
|
|
9950
|
+
const v = i.current.getBoundingClientRect();
|
|
9951
9951
|
p({
|
|
9952
|
-
top:
|
|
9953
|
-
left:
|
|
9954
|
-
width:
|
|
9952
|
+
top: v.bottom + window.scrollY + 4,
|
|
9953
|
+
left: v.left + window.scrollX,
|
|
9954
|
+
width: v.width
|
|
9955
9955
|
});
|
|
9956
9956
|
}
|
|
9957
9957
|
}, [i]);
|
|
@@ -10017,14 +10017,14 @@ const hs = he(
|
|
|
10017
10017
|
children: d ? "Deselect All" : "Select All"
|
|
10018
10018
|
}
|
|
10019
10019
|
),
|
|
10020
|
-
t.map((
|
|
10020
|
+
t.map((v, w) => /* @__PURE__ */ n.jsx(
|
|
10021
10021
|
qn,
|
|
10022
10022
|
{
|
|
10023
|
-
option:
|
|
10023
|
+
option: v,
|
|
10024
10024
|
isHighlighted: w === r,
|
|
10025
10025
|
onSelect: s
|
|
10026
10026
|
},
|
|
10027
|
-
|
|
10027
|
+
v.value
|
|
10028
10028
|
))
|
|
10029
10029
|
] })
|
|
10030
10030
|
}
|
|
@@ -10049,19 +10049,19 @@ const Gl = he(
|
|
|
10049
10049
|
className: f = "",
|
|
10050
10050
|
inputClassName: p = "",
|
|
10051
10051
|
size: x = "md"
|
|
10052
|
-
},
|
|
10053
|
-
const [w,
|
|
10052
|
+
}, v) {
|
|
10053
|
+
const [w, g] = P(
|
|
10054
10054
|
typeof s == "string" ? s : ""
|
|
10055
|
-
), [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(
|
|
10056
10056
|
(D) => D.label.toLowerCase().includes(k.toLowerCase())
|
|
10057
10057
|
) : t, Z = O.length > 0, G = (D) => {
|
|
10058
10058
|
const B = D.target.value;
|
|
10059
|
-
F(B), M ||
|
|
10060
|
-
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);
|
|
10061
10061
|
}, u);
|
|
10062
10062
|
}, H = (D) => {
|
|
10063
10063
|
var B;
|
|
10064
|
-
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());
|
|
10065
10065
|
}, de = (D) => {
|
|
10066
10066
|
if (!j || O.length === 0) {
|
|
10067
10067
|
(D.key === "ArrowDown" || D.key === "Enter") && S(!0);
|
|
@@ -10069,38 +10069,38 @@ const Gl = he(
|
|
|
10069
10069
|
}
|
|
10070
10070
|
switch (D.key) {
|
|
10071
10071
|
case "ArrowDown":
|
|
10072
|
-
D.preventDefault(),
|
|
10072
|
+
D.preventDefault(), b(
|
|
10073
10073
|
(B) => B < O.length - 1 ? B + 1 : 0
|
|
10074
10074
|
);
|
|
10075
10075
|
break;
|
|
10076
10076
|
case "ArrowUp":
|
|
10077
|
-
D.preventDefault(),
|
|
10077
|
+
D.preventDefault(), b(
|
|
10078
10078
|
(B) => B > 0 ? B - 1 : O.length - 1
|
|
10079
10079
|
);
|
|
10080
10080
|
break;
|
|
10081
10081
|
case "Enter":
|
|
10082
|
-
D.preventDefault(),
|
|
10082
|
+
D.preventDefault(), h >= 0 && h < O.length && H(O[h]);
|
|
10083
10083
|
break;
|
|
10084
10084
|
case "Escape":
|
|
10085
|
-
D.preventDefault(), S(!1),
|
|
10085
|
+
D.preventDefault(), S(!1), b(-1);
|
|
10086
10086
|
break;
|
|
10087
10087
|
}
|
|
10088
10088
|
};
|
|
10089
10089
|
J(() => {
|
|
10090
10090
|
if (!j) return;
|
|
10091
10091
|
const D = (B) => {
|
|
10092
|
-
N.current && !N.current.contains(B.target) && (S(!1),
|
|
10092
|
+
N.current && !N.current.contains(B.target) && (S(!1), b(-1));
|
|
10093
10093
|
};
|
|
10094
10094
|
return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
|
|
10095
10095
|
}, [j]), J(() => {
|
|
10096
|
-
if (
|
|
10096
|
+
if (h >= 0 && L.current) {
|
|
10097
10097
|
const D = L.current.querySelectorAll('[role="option"]');
|
|
10098
|
-
D[
|
|
10098
|
+
D[h] && typeof D[h].scrollIntoView == "function" && D[h].scrollIntoView({
|
|
10099
10099
|
block: "nearest",
|
|
10100
10100
|
behavior: "smooth"
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
10103
|
-
}, [
|
|
10103
|
+
}, [h]), J(() => {
|
|
10104
10104
|
if (I) {
|
|
10105
10105
|
const D = t.find((B) => B.value === I);
|
|
10106
10106
|
F(D ? D.label : I);
|
|
@@ -10112,7 +10112,7 @@ const Gl = he(
|
|
|
10112
10112
|
/* @__PURE__ */ n.jsx(
|
|
10113
10113
|
De,
|
|
10114
10114
|
{
|
|
10115
|
-
ref: A ||
|
|
10115
|
+
ref: A || v,
|
|
10116
10116
|
value: k,
|
|
10117
10117
|
onChange: G,
|
|
10118
10118
|
onKeyDown: de,
|
|
@@ -10134,7 +10134,7 @@ const Gl = he(
|
|
|
10134
10134
|
{
|
|
10135
10135
|
ref: L,
|
|
10136
10136
|
options: O,
|
|
10137
|
-
highlightedIndex:
|
|
10137
|
+
highlightedIndex: h,
|
|
10138
10138
|
onSelect: H,
|
|
10139
10139
|
loading: l,
|
|
10140
10140
|
emptyMessage: c,
|
|
@@ -10161,8 +10161,8 @@ const Yl = he(
|
|
|
10161
10161
|
className: f = "",
|
|
10162
10162
|
inputClassName: p = "",
|
|
10163
10163
|
size: x = "md"
|
|
10164
|
-
},
|
|
10165
|
-
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(
|
|
10166
10166
|
(U) => M.includes(U.value)
|
|
10167
10167
|
), O = (() => {
|
|
10168
10168
|
let U = t;
|
|
@@ -10171,23 +10171,23 @@ const Yl = he(
|
|
|
10171
10171
|
)), U;
|
|
10172
10172
|
})(), Z = O.length > 0, G = (U) => {
|
|
10173
10173
|
const q = U.target.value;
|
|
10174
|
-
F(q), S(!0),
|
|
10174
|
+
F(q), S(!0), b(-1);
|
|
10175
10175
|
}, H = (U) => {
|
|
10176
10176
|
if (U.disabled || u && M.length >= u && !M.includes(U.value))
|
|
10177
10177
|
return;
|
|
10178
10178
|
const q = M.includes(U.value) ? M.filter((W) => W !== U.value) : [...M, U.value];
|
|
10179
|
-
T ||
|
|
10179
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value))), F("");
|
|
10180
10180
|
}, de = () => {
|
|
10181
10181
|
const U = O.filter((W) => !W.disabled).map((W) => W.value), q = [.../* @__PURE__ */ new Set([...M, ...U])];
|
|
10182
|
-
T ||
|
|
10182
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10183
10183
|
}, ie = () => {
|
|
10184
10184
|
const U = O.map((W) => W.value), q = M.filter(
|
|
10185
10185
|
(W) => !U.includes(W)
|
|
10186
10186
|
);
|
|
10187
|
-
T ||
|
|
10187
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10188
10188
|
}, D = (U) => {
|
|
10189
10189
|
const q = M.filter((W) => W !== U);
|
|
10190
|
-
T ||
|
|
10190
|
+
T || g(q), a == null || a(q), o == null || o(t.filter((W) => q.includes(W.value)));
|
|
10191
10191
|
}, B = (U) => {
|
|
10192
10192
|
if (!j || O.length === 0) {
|
|
10193
10193
|
(U.key === "ArrowDown" || U.key === "Enter") && S(!0), U.key === "Backspace" && k === "" && M.length > 0 && D(M[M.length - 1]);
|
|
@@ -10195,27 +10195,27 @@ const Yl = he(
|
|
|
10195
10195
|
}
|
|
10196
10196
|
switch (U.key) {
|
|
10197
10197
|
case "ArrowDown":
|
|
10198
|
-
U.preventDefault(),
|
|
10198
|
+
U.preventDefault(), b(
|
|
10199
10199
|
(q) => q < O.length - 1 ? q + 1 : 0
|
|
10200
10200
|
);
|
|
10201
10201
|
break;
|
|
10202
10202
|
case "ArrowUp":
|
|
10203
|
-
U.preventDefault(),
|
|
10203
|
+
U.preventDefault(), b(
|
|
10204
10204
|
(q) => q > 0 ? q - 1 : O.length - 1
|
|
10205
10205
|
);
|
|
10206
10206
|
break;
|
|
10207
10207
|
case "Enter":
|
|
10208
|
-
U.preventDefault(),
|
|
10208
|
+
U.preventDefault(), h >= 0 && h < O.length && H(O[h]);
|
|
10209
10209
|
break;
|
|
10210
10210
|
case "Escape":
|
|
10211
|
-
U.preventDefault(), S(!1),
|
|
10211
|
+
U.preventDefault(), S(!1), b(-1);
|
|
10212
10212
|
break;
|
|
10213
10213
|
}
|
|
10214
10214
|
};
|
|
10215
10215
|
J(() => {
|
|
10216
10216
|
if (!j) return;
|
|
10217
10217
|
const U = (q) => {
|
|
10218
|
-
N.current && !N.current.contains(q.target) && (S(!1),
|
|
10218
|
+
N.current && !N.current.contains(q.target) && (S(!1), b(-1), F(""));
|
|
10219
10219
|
};
|
|
10220
10220
|
return document.addEventListener("mousedown", U), () => document.removeEventListener("mousedown", U);
|
|
10221
10221
|
}, [j]);
|
|
@@ -10253,7 +10253,7 @@ const Yl = he(
|
|
|
10253
10253
|
"input",
|
|
10254
10254
|
{
|
|
10255
10255
|
ref: (U) => {
|
|
10256
|
-
typeof
|
|
10256
|
+
typeof v == "function" ? v(U) : v && (v.current = U), A.current = U;
|
|
10257
10257
|
},
|
|
10258
10258
|
type: "text",
|
|
10259
10259
|
value: k,
|
|
@@ -10281,7 +10281,7 @@ const Yl = he(
|
|
|
10281
10281
|
options: O.map((U) => _(E({}, U), {
|
|
10282
10282
|
icon: M.includes(U.value) ? /* @__PURE__ */ n.jsx(Br, { className: y("h-4", "w-4", "text-fg-brand") }) : U.icon
|
|
10283
10283
|
})),
|
|
10284
|
-
highlightedIndex:
|
|
10284
|
+
highlightedIndex: h,
|
|
10285
10285
|
onSelect: H,
|
|
10286
10286
|
loading: l,
|
|
10287
10287
|
emptyMessage: c,
|
|
@@ -10311,13 +10311,13 @@ function qd({
|
|
|
10311
10311
|
icon: m,
|
|
10312
10312
|
emptyIcon: f
|
|
10313
10313
|
}) {
|
|
10314
|
-
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 = {
|
|
10315
10315
|
sm: "h-4 w-4",
|
|
10316
10316
|
md: "h-5 w-5",
|
|
10317
10317
|
lg: "h-6 w-6"
|
|
10318
|
-
},
|
|
10319
|
-
o || (
|
|
10320
|
-
},
|
|
10318
|
+
}, h = (N) => {
|
|
10319
|
+
o || (g || x(N), d == null || d(N));
|
|
10320
|
+
}, b = (N) => {
|
|
10321
10321
|
o || (w(N), c == null || c(N));
|
|
10322
10322
|
}, k = () => {
|
|
10323
10323
|
o || w(null);
|
|
@@ -10332,14 +10332,14 @@ function qd({
|
|
|
10332
10332
|
"span",
|
|
10333
10333
|
{
|
|
10334
10334
|
className: "relative inline-block",
|
|
10335
|
-
onClick: () =>
|
|
10336
|
-
onMouseEnter: () =>
|
|
10335
|
+
onClick: () => h(A),
|
|
10336
|
+
onMouseEnter: () => b(A),
|
|
10337
10337
|
onMouseLeave: k,
|
|
10338
10338
|
role: o ? void 0 : "button",
|
|
10339
10339
|
tabIndex: o ? void 0 : 0,
|
|
10340
10340
|
"aria-label": o ? void 0 : `Rate ${A} out of ${r}`,
|
|
10341
10341
|
onKeyDown: (O) => {
|
|
10342
|
-
!o && (O.key === "Enter" || O.key === " ") && (O.preventDefault(),
|
|
10342
|
+
!o && (O.key === "Enter" || O.key === " ") && (O.preventDefault(), h(A));
|
|
10343
10343
|
},
|
|
10344
10344
|
children: L ? /* @__PURE__ */ n.jsxs("span", { className: "relative inline-block", children: [
|
|
10345
10345
|
/* @__PURE__ */ n.jsx(
|
|
@@ -10408,11 +10408,11 @@ function Gd({
|
|
|
10408
10408
|
label: u,
|
|
10409
10409
|
description: m
|
|
10410
10410
|
}) {
|
|
10411
|
-
const [f, p] = P([]), [x,
|
|
10411
|
+
const [f, p] = P([]), [x, v] = P(!1), w = te(null), g = (T) => {
|
|
10412
10412
|
if (T === 0) return "0 Bytes";
|
|
10413
10413
|
const M = 1024, I = ["Bytes", "KB", "MB", "GB"], R = Math.floor(Math.log(T) / Math.log(M));
|
|
10414
10414
|
return Math.round(T / Math.pow(M, R) * 100) / 100 + " " + I[R];
|
|
10415
|
-
}, j = (T) => r && T.size > r ? `File size exceeds ${
|
|
10415
|
+
}, j = (T) => r && T.size > r ? `File size exceeds ${g(r)}` : null, S = (T) => {
|
|
10416
10416
|
const M = Array.from(T), I = [];
|
|
10417
10417
|
return M.forEach((R) => {
|
|
10418
10418
|
const O = j(R), Z = `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, G = {
|
|
@@ -10436,24 +10436,24 @@ function Gd({
|
|
|
10436
10436
|
}
|
|
10437
10437
|
I.push(G);
|
|
10438
10438
|
}), I;
|
|
10439
|
-
},
|
|
10439
|
+
}, h = (T) => {
|
|
10440
10440
|
const M = t ? [...f, ...T] : T, I = s ? M.slice(0, s) : M;
|
|
10441
10441
|
p(I), a == null || a(I);
|
|
10442
|
-
},
|
|
10443
|
-
if (T.preventDefault(),
|
|
10442
|
+
}, b = (T) => {
|
|
10443
|
+
if (T.preventDefault(), v(!1), d) return;
|
|
10444
10444
|
const M = T.dataTransfer.files;
|
|
10445
10445
|
if (M.length > 0) {
|
|
10446
10446
|
const I = S(M);
|
|
10447
|
-
|
|
10447
|
+
h(I);
|
|
10448
10448
|
}
|
|
10449
10449
|
}, k = (T) => {
|
|
10450
|
-
T.preventDefault(), d ||
|
|
10450
|
+
T.preventDefault(), d || v(!0);
|
|
10451
10451
|
}, F = (T) => {
|
|
10452
|
-
T.preventDefault(),
|
|
10452
|
+
T.preventDefault(), v(!1);
|
|
10453
10453
|
}, N = (T) => {
|
|
10454
10454
|
if (T.target.files && T.target.files.length > 0) {
|
|
10455
10455
|
const M = S(T.target.files);
|
|
10456
|
-
|
|
10456
|
+
h(M);
|
|
10457
10457
|
}
|
|
10458
10458
|
w.current && (w.current.value = "");
|
|
10459
10459
|
}, A = (T) => {
|
|
@@ -10501,7 +10501,7 @@ function Gd({
|
|
|
10501
10501
|
/* @__PURE__ */ n.jsxs(
|
|
10502
10502
|
"div",
|
|
10503
10503
|
{
|
|
10504
|
-
onDrop:
|
|
10504
|
+
onDrop: b,
|
|
10505
10505
|
onDragOver: k,
|
|
10506
10506
|
onDragLeave: F,
|
|
10507
10507
|
onClick: L,
|
|
@@ -10595,7 +10595,7 @@ function Gd({
|
|
|
10595
10595
|
),
|
|
10596
10596
|
children: [
|
|
10597
10597
|
"Max size: ",
|
|
10598
|
-
|
|
10598
|
+
g(r)
|
|
10599
10599
|
]
|
|
10600
10600
|
}
|
|
10601
10601
|
)
|
|
@@ -10653,7 +10653,7 @@ function Gd({
|
|
|
10653
10653
|
Ce("xs"),
|
|
10654
10654
|
"text-fg-secondary"
|
|
10655
10655
|
),
|
|
10656
|
-
children:
|
|
10656
|
+
children: g(T.file.size)
|
|
10657
10657
|
}
|
|
10658
10658
|
),
|
|
10659
10659
|
T.error && /* @__PURE__ */ n.jsxs(
|
|
@@ -10724,9 +10724,9 @@ function Gn({
|
|
|
10724
10724
|
triggerClassName: m = "",
|
|
10725
10725
|
contentClassName: f = ""
|
|
10726
10726
|
}) {
|
|
10727
|
-
const [p, x] = P(s),
|
|
10728
|
-
if (!
|
|
10729
|
-
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;
|
|
10730
10730
|
let I = 0, R = 0;
|
|
10731
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);
|
|
10732
10732
|
const O = 8;
|
|
@@ -10742,16 +10742,16 @@ function Gn({
|
|
|
10742
10742
|
), j({ top: I, left: R });
|
|
10743
10743
|
}, [o]);
|
|
10744
10744
|
J(() => {
|
|
10745
|
-
if (
|
|
10746
|
-
|
|
10747
|
-
const A = () =>
|
|
10745
|
+
if (h) {
|
|
10746
|
+
b();
|
|
10747
|
+
const A = () => b(), L = () => b();
|
|
10748
10748
|
return window.addEventListener("resize", A), window.addEventListener("scroll", L, !0), () => {
|
|
10749
10749
|
window.removeEventListener("resize", A), window.removeEventListener("scroll", L, !0);
|
|
10750
10750
|
};
|
|
10751
10751
|
}
|
|
10752
|
-
}, [
|
|
10753
|
-
|
|
10754
|
-
}, [
|
|
10752
|
+
}, [h, o, b]), J(() => {
|
|
10753
|
+
h && w.current && setTimeout(b, 0);
|
|
10754
|
+
}, [h, b]);
|
|
10755
10755
|
const k = Y(
|
|
10756
10756
|
(A) => {
|
|
10757
10757
|
S || x(A), a == null || a(A);
|
|
@@ -10761,21 +10761,21 @@ function Gn({
|
|
|
10761
10761
|
k(!1);
|
|
10762
10762
|
}, [k]);
|
|
10763
10763
|
J(() => {
|
|
10764
|
-
if (
|
|
10764
|
+
if (h && c) {
|
|
10765
10765
|
const A = (L) => {
|
|
10766
10766
|
L.key === "Escape" && F();
|
|
10767
10767
|
};
|
|
10768
10768
|
return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
|
|
10769
10769
|
}
|
|
10770
|
-
}, [
|
|
10771
|
-
if (
|
|
10770
|
+
}, [h, c, F]), J(() => {
|
|
10771
|
+
if (h && d) {
|
|
10772
10772
|
const A = (L) => {
|
|
10773
|
-
w.current &&
|
|
10773
|
+
w.current && v.current && !w.current.contains(L.target) && !v.current.contains(L.target) && F();
|
|
10774
10774
|
};
|
|
10775
10775
|
return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
|
|
10776
10776
|
}
|
|
10777
|
-
}, [
|
|
10778
|
-
const N =
|
|
10777
|
+
}, [h, d, F]);
|
|
10778
|
+
const N = h ? /* @__PURE__ */ n.jsxs(
|
|
10779
10779
|
"div",
|
|
10780
10780
|
{
|
|
10781
10781
|
ref: w,
|
|
@@ -10793,8 +10793,8 @@ function Gn({
|
|
|
10793
10793
|
${f}
|
|
10794
10794
|
`,
|
|
10795
10795
|
style: {
|
|
10796
|
-
top: `${
|
|
10797
|
-
left: `${
|
|
10796
|
+
top: `${g.top}px`,
|
|
10797
|
+
left: `${g.left}px`
|
|
10798
10798
|
},
|
|
10799
10799
|
role: "dialog",
|
|
10800
10800
|
"aria-modal": "false",
|
|
@@ -10850,9 +10850,9 @@ function Gn({
|
|
|
10850
10850
|
/* @__PURE__ */ n.jsx(
|
|
10851
10851
|
"div",
|
|
10852
10852
|
{
|
|
10853
|
-
ref:
|
|
10853
|
+
ref: v,
|
|
10854
10854
|
className: m,
|
|
10855
|
-
onClick: () => k(!
|
|
10855
|
+
onClick: () => k(!h),
|
|
10856
10856
|
children: e
|
|
10857
10857
|
}
|
|
10858
10858
|
),
|
|
@@ -10870,7 +10870,7 @@ function Yd({
|
|
|
10870
10870
|
helperText: l,
|
|
10871
10871
|
className: d = ""
|
|
10872
10872
|
}) {
|
|
10873
|
-
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(
|
|
10874
10874
|
(I) => {
|
|
10875
10875
|
if (!I) return { hours: 12, minutes: 0, amPm: "AM" };
|
|
10876
10876
|
if (r === "24h") {
|
|
@@ -10886,7 +10886,7 @@ function Yd({
|
|
|
10886
10886
|
}
|
|
10887
10887
|
},
|
|
10888
10888
|
[r]
|
|
10889
|
-
),
|
|
10889
|
+
), h = (I, R, O) => {
|
|
10890
10890
|
if (r === "24h")
|
|
10891
10891
|
return `${String(I).padStart(2, "0")}:${String(R).padStart(2, "0")}`;
|
|
10892
10892
|
{
|
|
@@ -10900,42 +10900,42 @@ function Yd({
|
|
|
10900
10900
|
f(I.hours), x(I.minutes), w(I.amPm);
|
|
10901
10901
|
}
|
|
10902
10902
|
}, [j, S]);
|
|
10903
|
-
const
|
|
10903
|
+
const b = (I) => {
|
|
10904
10904
|
const R = r === "24h" ? Math.max(0, Math.min(23, I)) : Math.max(1, Math.min(12, I));
|
|
10905
10905
|
f(R);
|
|
10906
|
-
const O =
|
|
10906
|
+
const O = h(
|
|
10907
10907
|
R,
|
|
10908
10908
|
p,
|
|
10909
|
-
r === "12h" ?
|
|
10909
|
+
r === "12h" ? v : void 0
|
|
10910
10910
|
);
|
|
10911
|
-
|
|
10911
|
+
g || u(O), s == null || s(O);
|
|
10912
10912
|
}, k = (I) => {
|
|
10913
10913
|
const R = Math.max(0, Math.min(59, I));
|
|
10914
10914
|
x(R);
|
|
10915
|
-
const O =
|
|
10915
|
+
const O = h(
|
|
10916
10916
|
m,
|
|
10917
10917
|
R,
|
|
10918
|
-
r === "12h" ?
|
|
10918
|
+
r === "12h" ? v : void 0
|
|
10919
10919
|
);
|
|
10920
|
-
|
|
10920
|
+
g || u(O), s == null || s(O);
|
|
10921
10921
|
}, F = () => {
|
|
10922
|
-
const I =
|
|
10922
|
+
const I = v === "AM" ? "PM" : "AM";
|
|
10923
10923
|
w(I);
|
|
10924
|
-
const R =
|
|
10925
|
-
|
|
10924
|
+
const R = h(m, p, I);
|
|
10925
|
+
g || u(R), s == null || s(R);
|
|
10926
10926
|
}, N = () => {
|
|
10927
10927
|
if (r === "24h")
|
|
10928
|
-
|
|
10928
|
+
b((m + 1) % 24);
|
|
10929
10929
|
else {
|
|
10930
10930
|
const I = m === 12 ? 1 : m + 1;
|
|
10931
|
-
|
|
10931
|
+
b(I);
|
|
10932
10932
|
}
|
|
10933
10933
|
}, A = () => {
|
|
10934
10934
|
if (r === "24h")
|
|
10935
|
-
|
|
10935
|
+
b(m === 0 ? 23 : m - 1);
|
|
10936
10936
|
else {
|
|
10937
10937
|
const I = m === 1 ? 12 : m - 1;
|
|
10938
|
-
|
|
10938
|
+
b(I);
|
|
10939
10939
|
}
|
|
10940
10940
|
}, L = () => {
|
|
10941
10941
|
k((p + 1) % 60);
|
|
@@ -10997,7 +10997,7 @@ function Yd({
|
|
|
10997
10997
|
/* @__PURE__ */ n.jsx(
|
|
10998
10998
|
re,
|
|
10999
10999
|
{
|
|
11000
|
-
variant:
|
|
11000
|
+
variant: v === "AM" ? "primary" : "outline",
|
|
11001
11001
|
size: "sm",
|
|
11002
11002
|
onClick: () => F(),
|
|
11003
11003
|
disabled: a,
|
|
@@ -11007,7 +11007,7 @@ function Yd({
|
|
|
11007
11007
|
/* @__PURE__ */ n.jsx(
|
|
11008
11008
|
re,
|
|
11009
11009
|
{
|
|
11010
|
-
variant:
|
|
11010
|
+
variant: v === "PM" ? "primary" : "outline",
|
|
11011
11011
|
size: "sm",
|
|
11012
11012
|
onClick: () => F(),
|
|
11013
11013
|
disabled: a,
|
|
@@ -11023,7 +11023,7 @@ function Yd({
|
|
|
11023
11023
|
De,
|
|
11024
11024
|
{
|
|
11025
11025
|
label: o,
|
|
11026
|
-
value: j ||
|
|
11026
|
+
value: j || h(m, p, r === "12h" ? v : void 0),
|
|
11027
11027
|
readOnly: !0,
|
|
11028
11028
|
disabled: a,
|
|
11029
11029
|
error: i,
|
|
@@ -11050,7 +11050,7 @@ function Kd({
|
|
|
11050
11050
|
label: l,
|
|
11051
11051
|
className: d = ""
|
|
11052
11052
|
}) {
|
|
11053
|
-
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) => {
|
|
11054
11054
|
const F = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(k);
|
|
11055
11055
|
return F ? {
|
|
11056
11056
|
r: parseInt(F[1], 16),
|
|
@@ -11063,19 +11063,19 @@ function Kd({
|
|
|
11063
11063
|
}).join("");
|
|
11064
11064
|
J(() => {
|
|
11065
11065
|
if (x) {
|
|
11066
|
-
const k =
|
|
11066
|
+
const k = v(x);
|
|
11067
11067
|
f(k);
|
|
11068
11068
|
}
|
|
11069
11069
|
}, [x]);
|
|
11070
|
-
const
|
|
11070
|
+
const g = (k) => {
|
|
11071
11071
|
const F = k.target.value;
|
|
11072
|
-
(/^#[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)));
|
|
11073
11073
|
}, j = (k, F) => {
|
|
11074
11074
|
const N = _(E({}, m), { [k]: Math.max(0, Math.min(255, F)) });
|
|
11075
11075
|
f(N);
|
|
11076
11076
|
const A = w(N.r, N.g, N.b);
|
|
11077
11077
|
p || u(A), s == null || s(A);
|
|
11078
|
-
},
|
|
11078
|
+
}, h = a || [
|
|
11079
11079
|
"#000000",
|
|
11080
11080
|
"#ffffff",
|
|
11081
11081
|
"#ff0000",
|
|
@@ -11086,7 +11086,7 @@ function Kd({
|
|
|
11086
11086
|
"#00ffff",
|
|
11087
11087
|
"#808080",
|
|
11088
11088
|
"#ffa500"
|
|
11089
|
-
],
|
|
11089
|
+
], b = /* @__PURE__ */ n.jsxs("div", { className: `${C("base", "p")} min-w-[280px]`, children: [
|
|
11090
11090
|
/* @__PURE__ */ n.jsx(
|
|
11091
11091
|
"div",
|
|
11092
11092
|
{
|
|
@@ -11163,20 +11163,20 @@ function Kd({
|
|
|
11163
11163
|
{
|
|
11164
11164
|
label: "Hex",
|
|
11165
11165
|
value: x,
|
|
11166
|
-
onChange:
|
|
11166
|
+
onChange: g,
|
|
11167
11167
|
disabled: i,
|
|
11168
11168
|
placeholder: "#000000",
|
|
11169
11169
|
className: "font-mono"
|
|
11170
11170
|
}
|
|
11171
11171
|
) }),
|
|
11172
|
-
|
|
11172
|
+
h.length > 0 && /* @__PURE__ */ n.jsxs("div", { children: [
|
|
11173
11173
|
/* @__PURE__ */ n.jsx("label", { className: "block text-xs font-medium text-fg-secondary mb-2", children: "Presets" }),
|
|
11174
|
-
/* @__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(
|
|
11175
11175
|
"button",
|
|
11176
11176
|
{
|
|
11177
11177
|
type: "button",
|
|
11178
11178
|
onClick: () => {
|
|
11179
|
-
i || (p || u(k), s == null || s(k), f(
|
|
11179
|
+
i || (p || u(k), s == null || s(k), f(v(k)));
|
|
11180
11180
|
},
|
|
11181
11181
|
disabled: i,
|
|
11182
11182
|
className: `
|
|
@@ -11221,7 +11221,7 @@ function Kd({
|
|
|
11221
11221
|
De,
|
|
11222
11222
|
{
|
|
11223
11223
|
value: x,
|
|
11224
|
-
onChange:
|
|
11224
|
+
onChange: g,
|
|
11225
11225
|
disabled: i,
|
|
11226
11226
|
placeholder: "#000000",
|
|
11227
11227
|
className: "w-24 font-mono"
|
|
@@ -11231,7 +11231,7 @@ function Kd({
|
|
|
11231
11231
|
placement: "bottom-start",
|
|
11232
11232
|
showCloseButton: !0,
|
|
11233
11233
|
title: "Pick a Color",
|
|
11234
|
-
children:
|
|
11234
|
+
children: b
|
|
11235
11235
|
}
|
|
11236
11236
|
) });
|
|
11237
11237
|
}
|
|
@@ -11482,21 +11482,21 @@ function ec({
|
|
|
11482
11482
|
}, [s]), J(() => {
|
|
11483
11483
|
if (s && i.current && l.current) {
|
|
11484
11484
|
const m = () => {
|
|
11485
|
-
const x = l.current.getBoundingClientRect(),
|
|
11485
|
+
const x = l.current.getBoundingClientRect(), v = i.current.getBoundingClientRect(), w = window.scrollY, g = window.scrollX;
|
|
11486
11486
|
let j = 0, S = 0;
|
|
11487
|
-
o === "bottom" ? (j = x.bottom + w + 4, r === "start" ? S = x.left +
|
|
11488
|
-
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;
|
|
11489
11489
|
j = Math.max(
|
|
11490
|
-
|
|
11490
|
+
h,
|
|
11491
11491
|
Math.min(
|
|
11492
11492
|
j,
|
|
11493
|
-
window.innerHeight + w -
|
|
11493
|
+
window.innerHeight + w - v.height - h
|
|
11494
11494
|
)
|
|
11495
11495
|
), S = Math.max(
|
|
11496
|
-
|
|
11496
|
+
h,
|
|
11497
11497
|
Math.min(
|
|
11498
11498
|
S,
|
|
11499
|
-
window.innerWidth +
|
|
11499
|
+
window.innerWidth + g - v.width - h
|
|
11500
11500
|
)
|
|
11501
11501
|
), c({ top: j, left: S });
|
|
11502
11502
|
};
|
|
@@ -11569,7 +11569,7 @@ const Zn = he(function(m, u) {
|
|
|
11569
11569
|
]);
|
|
11570
11570
|
const { closeMenu: p } = gs(), x = (w) => {
|
|
11571
11571
|
a || (o == null || o(w), i == null || i(w), !l && !w.defaultPrevented && p());
|
|
11572
|
-
},
|
|
11572
|
+
}, v = (w) => {
|
|
11573
11573
|
a || (w.key === "Enter" || w.key === " ") && (w.preventDefault(), x(w));
|
|
11574
11574
|
};
|
|
11575
11575
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -11580,7 +11580,7 @@ const Zn = he(function(m, u) {
|
|
|
11580
11580
|
tabIndex: a ? -1 : 0,
|
|
11581
11581
|
"aria-disabled": a,
|
|
11582
11582
|
onClick: x,
|
|
11583
|
-
onKeyDown:
|
|
11583
|
+
onKeyDown: v,
|
|
11584
11584
|
className: `
|
|
11585
11585
|
flex
|
|
11586
11586
|
items-center
|
|
@@ -12089,14 +12089,14 @@ function cc(d) {
|
|
|
12089
12089
|
}
|
|
12090
12090
|
return _(E({}, p), { active: !1 });
|
|
12091
12091
|
}), [e, u]), f = /* @__PURE__ */ n.jsx(n.Fragment, { children: m.map((p, x) => {
|
|
12092
|
-
const
|
|
12092
|
+
const v = r === "pills" ? "background" : r === "tabs" ? "underline" : "default";
|
|
12093
12093
|
return /* @__PURE__ */ n.jsxs(
|
|
12094
12094
|
Tn,
|
|
12095
12095
|
{
|
|
12096
12096
|
href: p.href,
|
|
12097
12097
|
active: p.active,
|
|
12098
12098
|
disabled: p.disabled,
|
|
12099
|
-
variant:
|
|
12099
|
+
variant: v,
|
|
12100
12100
|
className: y(
|
|
12101
12101
|
"flex items-center gap-2",
|
|
12102
12102
|
t === "vertical" && "w-full justify-start",
|
|
@@ -12249,14 +12249,14 @@ function eu(c) {
|
|
|
12249
12249
|
if (!e) return;
|
|
12250
12250
|
f.current = document.activeElement;
|
|
12251
12251
|
const j = setTimeout(() => {
|
|
12252
|
-
var
|
|
12253
|
-
(
|
|
12254
|
-
}, 0), S = (
|
|
12255
|
-
|
|
12252
|
+
var h;
|
|
12253
|
+
(h = m.current) == null || h.focus();
|
|
12254
|
+
}, 0), S = (h) => {
|
|
12255
|
+
h.key === "Escape" && t();
|
|
12256
12256
|
};
|
|
12257
12257
|
return document.addEventListener("keydown", S), () => {
|
|
12258
|
-
var
|
|
12259
|
-
clearTimeout(j), document.removeEventListener("keydown", S), (
|
|
12258
|
+
var h;
|
|
12259
|
+
clearTimeout(j), document.removeEventListener("keydown", S), (h = f.current) == null || h.focus();
|
|
12260
12260
|
};
|
|
12261
12261
|
}, [e, t]), J(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
12262
12262
|
document.body.style.overflow = "";
|
|
@@ -12280,7 +12280,7 @@ function eu(c) {
|
|
|
12280
12280
|
}[a],
|
|
12281
12281
|
"p-6",
|
|
12282
12282
|
l
|
|
12283
|
-
].filter(Boolean).join(" "),
|
|
12283
|
+
].filter(Boolean).join(" "), g = /* @__PURE__ */ n.jsxs(
|
|
12284
12284
|
"div",
|
|
12285
12285
|
{
|
|
12286
12286
|
className: p.join(" "),
|
|
@@ -12337,7 +12337,7 @@ function eu(c) {
|
|
|
12337
12337
|
]
|
|
12338
12338
|
}
|
|
12339
12339
|
);
|
|
12340
|
-
return typeof window != "undefined" ? Ze(
|
|
12340
|
+
return typeof window != "undefined" ? Ze(g, document.body) : g;
|
|
12341
12341
|
}
|
|
12342
12342
|
const xs = we(void 0);
|
|
12343
12343
|
function et() {
|
|
@@ -12366,13 +12366,13 @@ function an({
|
|
|
12366
12366
|
sortDirection: f,
|
|
12367
12367
|
onSort: p,
|
|
12368
12368
|
defaultSortColumn: x,
|
|
12369
|
-
defaultSortDirection:
|
|
12369
|
+
defaultSortDirection: v = "asc",
|
|
12370
12370
|
filters: w,
|
|
12371
|
-
filterValues:
|
|
12371
|
+
filterValues: g,
|
|
12372
12372
|
onFilter: j,
|
|
12373
12373
|
initialFilterValues: S = {},
|
|
12374
|
-
selectable:
|
|
12375
|
-
selectedRows:
|
|
12374
|
+
selectable: h = !1,
|
|
12375
|
+
selectedRows: b,
|
|
12376
12376
|
onSelectionChange: k,
|
|
12377
12377
|
rowId: F,
|
|
12378
12378
|
actions: N,
|
|
@@ -12391,9 +12391,9 @@ function an({
|
|
|
12391
12391
|
}) {
|
|
12392
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(
|
|
12393
12393
|
x || ""
|
|
12394
|
-
), [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(
|
|
12395
12395
|
[]
|
|
12396
|
-
), Oe = Cr ?
|
|
12396
|
+
), Oe = Cr ? b : Sa, tr = z(() => !w || w.length === 0 ? t : t.filter((ne) => w.every((ge) => {
|
|
12397
12397
|
const je = er[ge.key];
|
|
12398
12398
|
if (!je || je === "") return !0;
|
|
12399
12399
|
const sr = ne[ge.key];
|
|
@@ -12418,14 +12418,14 @@ function an({
|
|
|
12418
12418
|
return F ? F(ne) : ((je = ne == null ? void 0 : ne.id) == null ? void 0 : je.toString()) || ge.toString();
|
|
12419
12419
|
},
|
|
12420
12420
|
[F]
|
|
12421
|
-
), rr = z(() => !
|
|
12421
|
+
), rr = z(() => !h || Ge.length === 0 ? !1 : Ge.every((ne, ge) => {
|
|
12422
12422
|
const je = St(ne, ge);
|
|
12423
12423
|
return Oe.includes(je);
|
|
12424
|
-
}), [
|
|
12425
|
-
if (!
|
|
12424
|
+
}), [h, Ge, Oe, St]), $s = z(() => {
|
|
12425
|
+
if (!h) return !1;
|
|
12426
12426
|
const ne = Oe.length;
|
|
12427
12427
|
return ne > 0 && ne < Ge.length;
|
|
12428
|
-
}, [
|
|
12428
|
+
}, [h, Oe.length, Ge.length]), $t = Y(
|
|
12429
12429
|
(ne) => {
|
|
12430
12430
|
B ? l == null || l(ne) : se(ne);
|
|
12431
12431
|
},
|
|
@@ -12496,7 +12496,7 @@ function an({
|
|
|
12496
12496
|
isIndeterminate: $s
|
|
12497
12497
|
},
|
|
12498
12498
|
paginationMode: D,
|
|
12499
|
-
selectable:
|
|
12499
|
+
selectable: h,
|
|
12500
12500
|
rowId: F,
|
|
12501
12501
|
actions: N,
|
|
12502
12502
|
resizable: O,
|
|
@@ -12541,7 +12541,7 @@ function an({
|
|
|
12541
12541
|
rr,
|
|
12542
12542
|
$s,
|
|
12543
12543
|
D,
|
|
12544
|
-
|
|
12544
|
+
h,
|
|
12545
12545
|
F,
|
|
12546
12546
|
N,
|
|
12547
12547
|
A,
|
|
@@ -12590,42 +12590,42 @@ function ta(d) {
|
|
|
12590
12590
|
"maxWidth",
|
|
12591
12591
|
"className"
|
|
12592
12592
|
]);
|
|
12593
|
-
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 = () => {
|
|
12594
12594
|
if (!e.sortable || !f && !m) return;
|
|
12595
12595
|
const k = u.column === e.key && u.direction === "asc" ? "desc" : "asc";
|
|
12596
12596
|
f ? f(e.key, k) : m(e.key, k);
|
|
12597
|
-
},
|
|
12598
|
-
|
|
12597
|
+
}, g = (k) => {
|
|
12598
|
+
h && (k.key === "Enter" || k.key === " ") && (k.preventDefault(), w());
|
|
12599
12599
|
}, j = (k) => {
|
|
12600
12600
|
if (k.preventDefault(), k.stopPropagation(), !x.current || !s) return;
|
|
12601
12601
|
const F = r || x.current.offsetWidth;
|
|
12602
|
-
|
|
12602
|
+
v.current = {
|
|
12603
12603
|
x: k.clientX,
|
|
12604
12604
|
width: F
|
|
12605
12605
|
};
|
|
12606
12606
|
const N = (L) => {
|
|
12607
|
-
if (!
|
|
12608
|
-
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(
|
|
12609
12609
|
a,
|
|
12610
12610
|
o ? Math.min(M, o) : M
|
|
12611
12611
|
);
|
|
12612
12612
|
s(e.key, I);
|
|
12613
12613
|
}, A = () => {
|
|
12614
|
-
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", A),
|
|
12614
|
+
document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", A), v.current = null;
|
|
12615
12615
|
};
|
|
12616
12616
|
document.addEventListener("mousemove", N), document.addEventListener("mouseup", A);
|
|
12617
|
-
}, S = u.column === e.key,
|
|
12617
|
+
}, S = u.column === e.key, h = e.sortable && (f || m), b = S ? u.direction : void 0;
|
|
12618
12618
|
return /* @__PURE__ */ n.jsx(
|
|
12619
12619
|
"th",
|
|
12620
12620
|
_(E({
|
|
12621
12621
|
ref: x,
|
|
12622
12622
|
scope: "col",
|
|
12623
12623
|
role: "columnheader",
|
|
12624
|
-
"aria-sort": S ?
|
|
12625
|
-
className: `px-6 py-3 text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${
|
|
12626
|
-
onClick:
|
|
12627
|
-
onKeyDown:
|
|
12628
|
-
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,
|
|
12629
12629
|
style: r ? { width: `${r}px`, minWidth: `${r}px` } : void 0
|
|
12630
12630
|
}, l), {
|
|
12631
12631
|
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 relative", children: [
|
|
@@ -12806,7 +12806,7 @@ function Xr(i) {
|
|
|
12806
12806
|
getRowId: f,
|
|
12807
12807
|
actions: p,
|
|
12808
12808
|
onRowClick: x
|
|
12809
|
-
} = et(),
|
|
12809
|
+
} = et(), v = f(e, t), w = u.selectedRows.includes(v), g = (j) => {
|
|
12810
12810
|
s && s(j), x && x(e);
|
|
12811
12811
|
};
|
|
12812
12812
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -12816,7 +12816,7 @@ function Xr(i) {
|
|
|
12816
12816
|
"aria-selected": c ? w : void 0,
|
|
12817
12817
|
"aria-rowindex": t + 1,
|
|
12818
12818
|
className: `hover:bg-surface-hover ${w ? "bg-surface-selected" : ""} ${r}`,
|
|
12819
|
-
onClick:
|
|
12819
|
+
onClick: g,
|
|
12820
12820
|
style: a
|
|
12821
12821
|
}, o), {
|
|
12822
12822
|
children: [
|
|
@@ -12824,8 +12824,8 @@ function Xr(i) {
|
|
|
12824
12824
|
ls,
|
|
12825
12825
|
{
|
|
12826
12826
|
checked: w,
|
|
12827
|
-
onChange: () => m(
|
|
12828
|
-
"aria-label": `Select row ${
|
|
12827
|
+
onChange: () => m(v),
|
|
12828
|
+
"aria-label": `Select row ${v}`,
|
|
12829
12829
|
className: "my-0"
|
|
12830
12830
|
}
|
|
12831
12831
|
) }),
|
|
@@ -12864,7 +12864,7 @@ function oa(r) {
|
|
|
12864
12864
|
function fc(e, t) {
|
|
12865
12865
|
const { itemHeight: r, containerHeight: s, overscan: a = 5, enabled: o = !0 } = t, [i, l] = P(0), d = te(null), c = z(() => {
|
|
12866
12866
|
if (!o || e.length === 0)
|
|
12867
|
-
return e.map((
|
|
12867
|
+
return e.map((v, w) => ({
|
|
12868
12868
|
index: w,
|
|
12869
12869
|
start: w * r,
|
|
12870
12870
|
end: (w + 1) * r,
|
|
@@ -12877,11 +12877,11 @@ function fc(e, t) {
|
|
|
12877
12877
|
e.length,
|
|
12878
12878
|
Math.ceil((i + s) / r) + a
|
|
12879
12879
|
) : e.length, x = [];
|
|
12880
|
-
for (let
|
|
12880
|
+
for (let v = f; v < p; v++)
|
|
12881
12881
|
x.push({
|
|
12882
|
-
index:
|
|
12883
|
-
start:
|
|
12884
|
-
end: (
|
|
12882
|
+
index: v,
|
|
12883
|
+
start: v * r,
|
|
12884
|
+
end: (v + 1) * r,
|
|
12885
12885
|
size: r
|
|
12886
12886
|
});
|
|
12887
12887
|
return x;
|
|
@@ -12913,7 +12913,7 @@ function ia(s) {
|
|
|
12913
12913
|
"children",
|
|
12914
12914
|
"className"
|
|
12915
12915
|
]);
|
|
12916
|
-
var
|
|
12916
|
+
var v, w;
|
|
12917
12917
|
const {
|
|
12918
12918
|
paginatedData: o,
|
|
12919
12919
|
loading: i,
|
|
@@ -12927,16 +12927,16 @@ function ia(s) {
|
|
|
12927
12927
|
containerHeight: m == null ? void 0 : m.containerHeight,
|
|
12928
12928
|
overscan: (m == null ? void 0 : m.overscan) || 5,
|
|
12929
12929
|
enabled: u || !1
|
|
12930
|
-
}), x = z(() => u && p.virtualItems.length > 0 ? p.virtualItems.map((
|
|
12931
|
-
row: o[
|
|
12932
|
-
index:
|
|
12933
|
-
})).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]);
|
|
12934
12934
|
return i ? /* @__PURE__ */ n.jsx(
|
|
12935
12935
|
"tbody",
|
|
12936
12936
|
_(E({
|
|
12937
12937
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
12938
12938
|
}, r), {
|
|
12939
|
-
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))
|
|
12940
12940
|
})
|
|
12941
12941
|
) : o.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
12942
12942
|
"tbody",
|
|
@@ -12950,7 +12950,7 @@ function ia(s) {
|
|
|
12950
12950
|
_(E({
|
|
12951
12951
|
className: `bg-surface-base divide-y divide-line-default ${t}`
|
|
12952
12952
|
}, r), {
|
|
12953
|
-
children: o.map((
|
|
12953
|
+
children: o.map((g, j) => e(g, j))
|
|
12954
12954
|
})
|
|
12955
12955
|
) : /* @__PURE__ */ n.jsx(
|
|
12956
12956
|
"tbody",
|
|
@@ -12961,7 +12961,7 @@ function ia(s) {
|
|
|
12961
12961
|
children: u && p.virtualItems.length > 0 && x.length > 0 ? (
|
|
12962
12962
|
// Virtual scrolling: render with spacer rows
|
|
12963
12963
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
12964
|
-
((
|
|
12964
|
+
((v = p.virtualItems[0]) == null ? void 0 : v.start) > 0 && /* @__PURE__ */ n.jsx(
|
|
12965
12965
|
"tr",
|
|
12966
12966
|
{
|
|
12967
12967
|
style: { height: p.virtualItems[0].start },
|
|
@@ -12969,7 +12969,7 @@ function ia(s) {
|
|
|
12969
12969
|
children: /* @__PURE__ */ n.jsx("td", { colSpan: f })
|
|
12970
12970
|
}
|
|
12971
12971
|
),
|
|
12972
|
-
x.map(({ row:
|
|
12972
|
+
x.map(({ row: g, index: j }) => /* @__PURE__ */ n.jsx(Xr, { row: g, rowIndex: j }, j)),
|
|
12973
12973
|
p.virtualItems.length > 0 && /* @__PURE__ */ n.jsx(
|
|
12974
12974
|
"tr",
|
|
12975
12975
|
{
|
|
@@ -12986,7 +12986,7 @@ function ia(s) {
|
|
|
12986
12986
|
] })
|
|
12987
12987
|
) : (
|
|
12988
12988
|
// Normal rendering
|
|
12989
|
-
x.map(({ row:
|
|
12989
|
+
x.map(({ row: g, index: j }) => /* @__PURE__ */ n.jsx(Xr, { row: g, rowIndex: j }, j))
|
|
12990
12990
|
)
|
|
12991
12991
|
})
|
|
12992
12992
|
);
|
|
@@ -13006,20 +13006,20 @@ function mc(i) {
|
|
|
13006
13006
|
"className"
|
|
13007
13007
|
]);
|
|
13008
13008
|
const [d, c] = P(r), [u, m] = P(!1), f = Object.values(d).some(
|
|
13009
|
-
(
|
|
13010
|
-
), p = (
|
|
13011
|
-
const S = _(E({}, d), { [
|
|
13009
|
+
(g) => g !== "" && g !== null && g !== void 0
|
|
13010
|
+
), p = (g, j) => {
|
|
13011
|
+
const S = _(E({}, d), { [g]: j });
|
|
13012
13012
|
c(S), t(S);
|
|
13013
13013
|
}, x = () => {
|
|
13014
|
-
const
|
|
13014
|
+
const g = {};
|
|
13015
13015
|
e.forEach((j) => {
|
|
13016
|
-
|
|
13017
|
-
}), c(
|
|
13018
|
-
},
|
|
13019
|
-
const j = _(E({}, d), { [
|
|
13016
|
+
g[j.key] = "";
|
|
13017
|
+
}), c(g), t(g);
|
|
13018
|
+
}, v = (g) => {
|
|
13019
|
+
const j = _(E({}, d), { [g]: "" });
|
|
13020
13020
|
c(j), t(j);
|
|
13021
13021
|
}, w = Object.values(d).filter(
|
|
13022
|
-
(
|
|
13022
|
+
(g) => g !== "" && g !== null && g !== void 0
|
|
13023
13023
|
).length;
|
|
13024
13024
|
return /* @__PURE__ */ n.jsx(
|
|
13025
13025
|
"div",
|
|
@@ -13058,70 +13058,70 @@ function mc(i) {
|
|
|
13058
13058
|
}
|
|
13059
13059
|
)
|
|
13060
13060
|
] }),
|
|
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((
|
|
13062
|
-
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] || "";
|
|
13063
13063
|
return /* @__PURE__ */ n.jsxs("div", { className: "space-y-1", children: [
|
|
13064
|
-
/* @__PURE__ */ n.jsx(Kt, { htmlFor: `filter-${
|
|
13064
|
+
/* @__PURE__ */ n.jsx(Kt, { htmlFor: `filter-${g.key}`, variant: "optional", children: g.label }),
|
|
13065
13065
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
13066
|
-
|
|
13066
|
+
g.type === "text" && /* @__PURE__ */ n.jsx(
|
|
13067
13067
|
De,
|
|
13068
13068
|
{
|
|
13069
|
-
id: `filter-${
|
|
13069
|
+
id: `filter-${g.key}`,
|
|
13070
13070
|
type: "text",
|
|
13071
13071
|
value: j,
|
|
13072
|
-
onChange: (S) => p(
|
|
13073
|
-
placeholder:
|
|
13072
|
+
onChange: (S) => p(g.key, S.target.value),
|
|
13073
|
+
placeholder: g.placeholder || `Filter by ${g.label.toLowerCase()}`,
|
|
13074
13074
|
size: "sm",
|
|
13075
13075
|
variant: "outlined"
|
|
13076
13076
|
}
|
|
13077
13077
|
),
|
|
13078
|
-
|
|
13078
|
+
g.type === "select" && /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
13079
13079
|
/* @__PURE__ */ n.jsx(
|
|
13080
13080
|
is,
|
|
13081
13081
|
{
|
|
13082
|
-
id: `filter-${
|
|
13082
|
+
id: `filter-${g.key}`,
|
|
13083
13083
|
options: [
|
|
13084
|
-
{ value: "", label: `All ${
|
|
13085
|
-
...
|
|
13084
|
+
{ value: "", label: `All ${g.label}` },
|
|
13085
|
+
...g.options || []
|
|
13086
13086
|
],
|
|
13087
13087
|
value: j,
|
|
13088
|
-
onChange: (S) => p(
|
|
13088
|
+
onChange: (S) => p(g.key, S.target.value)
|
|
13089
13089
|
}
|
|
13090
13090
|
),
|
|
13091
13091
|
j && /* @__PURE__ */ n.jsx(
|
|
13092
13092
|
"button",
|
|
13093
13093
|
{
|
|
13094
13094
|
type: "button",
|
|
13095
|
-
onClick: () =>
|
|
13095
|
+
onClick: () => v(g.key),
|
|
13096
13096
|
className: "absolute right-8 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary",
|
|
13097
|
-
"aria-label": `Clear ${
|
|
13097
|
+
"aria-label": `Clear ${g.label} filter`,
|
|
13098
13098
|
children: /* @__PURE__ */ n.jsx(Te, { className: "h-4 w-4" })
|
|
13099
13099
|
}
|
|
13100
13100
|
)
|
|
13101
13101
|
] }),
|
|
13102
|
-
|
|
13102
|
+
g.type === "date" && /* @__PURE__ */ n.jsx(
|
|
13103
13103
|
De,
|
|
13104
13104
|
{
|
|
13105
|
-
id: `filter-${
|
|
13105
|
+
id: `filter-${g.key}`,
|
|
13106
13106
|
type: "date",
|
|
13107
13107
|
value: j,
|
|
13108
|
-
onChange: (S) => p(
|
|
13108
|
+
onChange: (S) => p(g.key, S.target.value),
|
|
13109
13109
|
size: "sm",
|
|
13110
13110
|
variant: "outlined"
|
|
13111
13111
|
}
|
|
13112
13112
|
),
|
|
13113
|
-
j &&
|
|
13113
|
+
j && g.type !== "select" && /* @__PURE__ */ n.jsx(
|
|
13114
13114
|
"button",
|
|
13115
13115
|
{
|
|
13116
13116
|
type: "button",
|
|
13117
|
-
onClick: () =>
|
|
13117
|
+
onClick: () => v(g.key),
|
|
13118
13118
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary",
|
|
13119
|
-
"aria-label": `Clear ${
|
|
13119
|
+
"aria-label": `Clear ${g.label} filter`,
|
|
13120
13120
|
children: /* @__PURE__ */ n.jsx(Te, { className: "h-4 w-4" })
|
|
13121
13121
|
}
|
|
13122
13122
|
)
|
|
13123
13123
|
] })
|
|
13124
|
-
] },
|
|
13124
|
+
] }, g.key);
|
|
13125
13125
|
}) })
|
|
13126
13126
|
] })
|
|
13127
13127
|
})
|
|
@@ -13169,11 +13169,11 @@ function pc(u) {
|
|
|
13169
13169
|
"showPageInfo",
|
|
13170
13170
|
"className"
|
|
13171
13171
|
]);
|
|
13172
|
-
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 = () => {
|
|
13173
13173
|
e > 1 && s(e - 1);
|
|
13174
13174
|
}, w = () => {
|
|
13175
13175
|
e < f && s(e + 1);
|
|
13176
|
-
},
|
|
13176
|
+
}, g = () => {
|
|
13177
13177
|
e > 1 && s(1);
|
|
13178
13178
|
}, j = () => {
|
|
13179
13179
|
e < f && s(f);
|
|
@@ -13190,7 +13190,7 @@ function pc(u) {
|
|
|
13190
13190
|
{
|
|
13191
13191
|
variant: "outline",
|
|
13192
13192
|
size: "sm",
|
|
13193
|
-
onClick:
|
|
13193
|
+
onClick: v,
|
|
13194
13194
|
disabled: e === 1,
|
|
13195
13195
|
children: "Previous"
|
|
13196
13196
|
}
|
|
@@ -13230,8 +13230,8 @@ function pc(u) {
|
|
|
13230
13230
|
})),
|
|
13231
13231
|
value: t.toString(),
|
|
13232
13232
|
onChange: (S) => {
|
|
13233
|
-
const
|
|
13234
|
-
a(
|
|
13233
|
+
const h = parseInt(S.target.value);
|
|
13234
|
+
a(h), s(1);
|
|
13235
13235
|
},
|
|
13236
13236
|
className: "w-20"
|
|
13237
13237
|
}
|
|
@@ -13243,7 +13243,7 @@ function pc(u) {
|
|
|
13243
13243
|
{
|
|
13244
13244
|
variant: "ghost",
|
|
13245
13245
|
size: "sm",
|
|
13246
|
-
onClick:
|
|
13246
|
+
onClick: g,
|
|
13247
13247
|
disabled: e === 1,
|
|
13248
13248
|
"aria-label": "First page",
|
|
13249
13249
|
children: [
|
|
@@ -13257,26 +13257,26 @@ function pc(u) {
|
|
|
13257
13257
|
{
|
|
13258
13258
|
variant: "ghost",
|
|
13259
13259
|
size: "sm",
|
|
13260
|
-
onClick:
|
|
13260
|
+
onClick: v,
|
|
13261
13261
|
disabled: e === 1,
|
|
13262
13262
|
"aria-label": "Previous page",
|
|
13263
13263
|
children: /* @__PURE__ */ n.jsx(Yt, { className: "h-4 w-4" })
|
|
13264
13264
|
}
|
|
13265
13265
|
),
|
|
13266
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-1", children: Array.from({ length: Math.min(5, f) }, (S,
|
|
13267
|
-
let
|
|
13268
|
-
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(
|
|
13269
13269
|
re,
|
|
13270
13270
|
{
|
|
13271
|
-
variant: e ===
|
|
13271
|
+
variant: e === b ? "primary" : "ghost",
|
|
13272
13272
|
size: "sm",
|
|
13273
|
-
onClick: () => s(
|
|
13273
|
+
onClick: () => s(b),
|
|
13274
13274
|
className: "min-w-10",
|
|
13275
|
-
"aria-label": `Page ${
|
|
13276
|
-
"aria-current": e ===
|
|
13277
|
-
children:
|
|
13275
|
+
"aria-label": `Page ${b}`,
|
|
13276
|
+
"aria-current": e === b ? "page" : void 0,
|
|
13277
|
+
children: b
|
|
13278
13278
|
},
|
|
13279
|
-
|
|
13279
|
+
b
|
|
13280
13280
|
);
|
|
13281
13281
|
}) }),
|
|
13282
13282
|
/* @__PURE__ */ n.jsx(
|
|
@@ -13389,20 +13389,20 @@ function hc(e) {
|
|
|
13389
13389
|
pagination: f,
|
|
13390
13390
|
filters: p,
|
|
13391
13391
|
selectable: x,
|
|
13392
|
-
selectedRows:
|
|
13392
|
+
selectedRows: v,
|
|
13393
13393
|
onSelectionChange: w,
|
|
13394
|
-
rowId:
|
|
13394
|
+
rowId: g,
|
|
13395
13395
|
actions: j,
|
|
13396
13396
|
onRowClick: S,
|
|
13397
|
-
paginationMode:
|
|
13398
|
-
defaultPageSize:
|
|
13397
|
+
paginationMode: h,
|
|
13398
|
+
defaultPageSize: b,
|
|
13399
13399
|
resizable: k,
|
|
13400
13400
|
columnWidths: F,
|
|
13401
13401
|
onColumnResize: N,
|
|
13402
13402
|
virtualScrolling: A,
|
|
13403
13403
|
virtualScrollingOptions: L
|
|
13404
13404
|
} = e;
|
|
13405
|
-
let T =
|
|
13405
|
+
let T = h || "auto";
|
|
13406
13406
|
return T === "auto" && (T = f && f.total !== void 0 && f.onPageChange ? "server" : "client"), {
|
|
13407
13407
|
columns: t,
|
|
13408
13408
|
data: r,
|
|
@@ -13413,7 +13413,7 @@ function hc(e) {
|
|
|
13413
13413
|
total: f == null ? void 0 : f.total,
|
|
13414
13414
|
onPageChange: f == null ? void 0 : f.onPageChange,
|
|
13415
13415
|
onPageSizeChange: f == null ? void 0 : f.onPageSizeChange,
|
|
13416
|
-
defaultPageSize:
|
|
13416
|
+
defaultPageSize: b || (f == null ? void 0 : f.pageSize) || 10,
|
|
13417
13417
|
pageSizeOptions: f == null ? void 0 : f.pageSizeOptions,
|
|
13418
13418
|
sortColumn: o,
|
|
13419
13419
|
sortDirection: i,
|
|
@@ -13423,9 +13423,9 @@ function hc(e) {
|
|
|
13423
13423
|
onFilter: p == null ? void 0 : p.onFilter,
|
|
13424
13424
|
initialFilterValues: p == null ? void 0 : p.initialValues,
|
|
13425
13425
|
selectable: x,
|
|
13426
|
-
selectedRows:
|
|
13426
|
+
selectedRows: v,
|
|
13427
13427
|
onSelectionChange: w,
|
|
13428
|
-
rowId:
|
|
13428
|
+
rowId: g,
|
|
13429
13429
|
actions: j,
|
|
13430
13430
|
onRowClick: S,
|
|
13431
13431
|
emptyMessage: l,
|
|
@@ -13461,47 +13461,47 @@ function ru(e = {}) {
|
|
|
13461
13461
|
} = e, [o, i] = P(t), [l, d] = P(!1), [c, u] = P(null), m = te(
|
|
13462
13462
|
null
|
|
13463
13463
|
), f = Y(
|
|
13464
|
-
(S,
|
|
13465
|
-
const
|
|
13464
|
+
(S, h) => {
|
|
13465
|
+
const b = Math.max(
|
|
13466
13466
|
r,
|
|
13467
|
-
s ? Math.min(
|
|
13467
|
+
s ? Math.min(h, s) : h
|
|
13468
13468
|
);
|
|
13469
13469
|
i((k) => _(E({}, k), {
|
|
13470
|
-
[S]:
|
|
13470
|
+
[S]: b
|
|
13471
13471
|
}));
|
|
13472
13472
|
},
|
|
13473
13473
|
[r, s]
|
|
13474
13474
|
), p = Y(() => {
|
|
13475
13475
|
i(t);
|
|
13476
13476
|
}, [t]), x = Y(
|
|
13477
|
-
(S,
|
|
13478
|
-
a && (d(!0), u(S), m.current = { startX:
|
|
13477
|
+
(S, h, b) => {
|
|
13478
|
+
a && (d(!0), u(S), m.current = { startX: h, startWidth: b });
|
|
13479
13479
|
},
|
|
13480
13480
|
[a]
|
|
13481
|
-
),
|
|
13481
|
+
), v = Y(
|
|
13482
13482
|
(S) => {
|
|
13483
13483
|
if (!l || !c || !m.current) return;
|
|
13484
|
-
const
|
|
13485
|
-
f(c,
|
|
13484
|
+
const h = S - m.current.startX, b = m.current.startWidth + h;
|
|
13485
|
+
f(c, b);
|
|
13486
13486
|
},
|
|
13487
13487
|
[l, c, f]
|
|
13488
13488
|
), w = Y(() => {
|
|
13489
13489
|
d(!1), u(null), m.current = null;
|
|
13490
|
-
}, []),
|
|
13490
|
+
}, []), g = te(
|
|
13491
13491
|
void 0
|
|
13492
13492
|
), j = te(void 0);
|
|
13493
|
-
return typeof window != "undefined" && (
|
|
13494
|
-
l &&
|
|
13493
|
+
return typeof window != "undefined" && (g.current = (S) => {
|
|
13494
|
+
l && v(S.clientX);
|
|
13495
13495
|
}, j.current = () => {
|
|
13496
13496
|
l && w();
|
|
13497
|
-
}, 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))), {
|
|
13498
13498
|
columnWidths: o,
|
|
13499
13499
|
setColumnWidth: f,
|
|
13500
13500
|
resetColumnWidths: p,
|
|
13501
13501
|
isResizing: l,
|
|
13502
13502
|
resizingColumn: c,
|
|
13503
13503
|
startResize: x,
|
|
13504
|
-
handleResize:
|
|
13504
|
+
handleResize: v,
|
|
13505
13505
|
endResize: w
|
|
13506
13506
|
};
|
|
13507
13507
|
}
|
|
@@ -13595,7 +13595,7 @@ function ua({
|
|
|
13595
13595
|
keyboardShortcut: p = Ae.keyboardShortcut,
|
|
13596
13596
|
enableKeyboardShortcut: x = Ae.enableKeyboardShortcut
|
|
13597
13597
|
}) {
|
|
13598
|
-
const
|
|
13598
|
+
const v = z(
|
|
13599
13599
|
() => ({
|
|
13600
13600
|
mode: t,
|
|
13601
13601
|
resizable: r,
|
|
@@ -13629,7 +13629,7 @@ function ua({
|
|
|
13629
13629
|
x
|
|
13630
13630
|
]
|
|
13631
13631
|
);
|
|
13632
|
-
return /* @__PURE__ */ n.jsx(vs.Provider, { value:
|
|
13632
|
+
return /* @__PURE__ */ n.jsx(vs.Provider, { value: v, children: e });
|
|
13633
13633
|
}
|
|
13634
13634
|
const ys = we(null);
|
|
13635
13635
|
function au() {
|
|
@@ -13726,25 +13726,25 @@ function vc({
|
|
|
13726
13726
|
(j) => {
|
|
13727
13727
|
let S = Vr(j, t, r);
|
|
13728
13728
|
if (s && s.length > 0) {
|
|
13729
|
-
const
|
|
13730
|
-
const F = Math.abs(S - k), N = Math.abs(S -
|
|
13731
|
-
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;
|
|
13732
13732
|
}, s[0]);
|
|
13733
|
-
Math.abs(S -
|
|
13733
|
+
Math.abs(S - h) <= a && (S = h);
|
|
13734
13734
|
}
|
|
13735
13735
|
c(S), o == null || o(S);
|
|
13736
13736
|
},
|
|
13737
13737
|
[t, r, s, a, o]
|
|
13738
|
-
),
|
|
13738
|
+
), v = Y(
|
|
13739
13739
|
(j) => {
|
|
13740
13740
|
if (!i || !u) return;
|
|
13741
|
-
const S = j.clientX - f.current,
|
|
13742
|
-
x(
|
|
13741
|
+
const S = j.clientX - f.current, h = p.current + S;
|
|
13742
|
+
x(h);
|
|
13743
13743
|
},
|
|
13744
13744
|
[i, u, x]
|
|
13745
13745
|
), w = Y(() => {
|
|
13746
13746
|
i && (m(!1), f.current = 0, p.current = d);
|
|
13747
|
-
}, [i, d]),
|
|
13747
|
+
}, [i, d]), g = Y(
|
|
13748
13748
|
(j) => {
|
|
13749
13749
|
i && (j.preventDefault(), j.stopPropagation(), m(!0), f.current = j.clientX, p.current = d);
|
|
13750
13750
|
},
|
|
@@ -13752,15 +13752,15 @@ function vc({
|
|
|
13752
13752
|
);
|
|
13753
13753
|
return J(() => {
|
|
13754
13754
|
if (u)
|
|
13755
|
-
return document.addEventListener("mousemove",
|
|
13756
|
-
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 = "";
|
|
13757
13757
|
};
|
|
13758
|
-
}, [u,
|
|
13758
|
+
}, [u, v, w]), J(() => {
|
|
13759
13759
|
u || c(Vr(e, t, r));
|
|
13760
13760
|
}, [e, t, r, u]), {
|
|
13761
13761
|
width: d,
|
|
13762
13762
|
isResizing: u,
|
|
13763
|
-
startResize:
|
|
13763
|
+
startResize: g,
|
|
13764
13764
|
setWidth: x
|
|
13765
13765
|
};
|
|
13766
13766
|
}
|
|
@@ -13846,8 +13846,8 @@ function jc({
|
|
|
13846
13846
|
const u = c.target;
|
|
13847
13847
|
if ((u.tagName === "INPUT" || u.tagName === "TEXTAREA" || u.isContentEditable) && !t && !a)
|
|
13848
13848
|
return;
|
|
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,
|
|
13850
|
-
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());
|
|
13851
13851
|
},
|
|
13852
13852
|
[i, e, t, r, s, a, o, l]
|
|
13853
13853
|
);
|
|
@@ -13886,7 +13886,7 @@ function fa({
|
|
|
13886
13886
|
return Jr(l.contentWidth);
|
|
13887
13887
|
}, [p, x] = P(
|
|
13888
13888
|
m
|
|
13889
|
-
), [
|
|
13889
|
+
), [v, w] = P({}), { isMobile: g } = yc({
|
|
13890
13890
|
mobileBreakpoint: d.mobileBreakpoint,
|
|
13891
13891
|
onMobileChange: (R) => {
|
|
13892
13892
|
o == null || o(R), R && d.mobileVariant === "collapse" && !u && x(!0);
|
|
@@ -13895,8 +13895,8 @@ function fa({
|
|
|
13895
13895
|
}), {
|
|
13896
13896
|
width: j,
|
|
13897
13897
|
isResizing: S,
|
|
13898
|
-
startResize:
|
|
13899
|
-
setWidth:
|
|
13898
|
+
startResize: h,
|
|
13899
|
+
setWidth: b
|
|
13900
13900
|
} = vc({
|
|
13901
13901
|
initialWidth: f(),
|
|
13902
13902
|
minWidth: d.minWidth,
|
|
@@ -13905,10 +13905,10 @@ function fa({
|
|
|
13905
13905
|
onWidthChange: (R) => {
|
|
13906
13906
|
a == null || a(R), d.storageKey && d.persistWidth && typeof window != "undefined" && localStorage.setItem(`${d.storageKey}-width`, String(R));
|
|
13907
13907
|
},
|
|
13908
|
-
enabled: d.resizable && !
|
|
13908
|
+
enabled: d.resizable && !g
|
|
13909
13909
|
});
|
|
13910
13910
|
wc({
|
|
13911
|
-
isActive:
|
|
13911
|
+
isActive: g && d.mobileVariant === "overlay" && !p,
|
|
13912
13912
|
containerRef: c,
|
|
13913
13913
|
restoreFocus: !0
|
|
13914
13914
|
});
|
|
@@ -13931,9 +13931,9 @@ function fa({
|
|
|
13931
13931
|
});
|
|
13932
13932
|
const L = Y(
|
|
13933
13933
|
(R) => {
|
|
13934
|
-
|
|
13934
|
+
b(R);
|
|
13935
13935
|
},
|
|
13936
|
-
[
|
|
13936
|
+
[b]
|
|
13937
13937
|
), T = Y(
|
|
13938
13938
|
(R) => {
|
|
13939
13939
|
w(i ? (O) => {
|
|
@@ -13971,10 +13971,10 @@ function fa({
|
|
|
13971
13971
|
setCollapsed: F,
|
|
13972
13972
|
currentWidth: j,
|
|
13973
13973
|
setWidth: L,
|
|
13974
|
-
isMobile:
|
|
13974
|
+
isMobile: g,
|
|
13975
13975
|
isResizing: S,
|
|
13976
|
-
startResize:
|
|
13977
|
-
groupStates:
|
|
13976
|
+
startResize: h,
|
|
13977
|
+
groupStates: v,
|
|
13978
13978
|
toggleGroup: T,
|
|
13979
13979
|
setGroupCollapsed: M,
|
|
13980
13980
|
sidebarRef: c
|
|
@@ -13985,10 +13985,10 @@ function fa({
|
|
|
13985
13985
|
F,
|
|
13986
13986
|
j,
|
|
13987
13987
|
L,
|
|
13988
|
-
h,
|
|
13989
|
-
S,
|
|
13990
13988
|
g,
|
|
13991
|
-
|
|
13989
|
+
S,
|
|
13990
|
+
h,
|
|
13991
|
+
v,
|
|
13992
13992
|
T,
|
|
13993
13993
|
M
|
|
13994
13994
|
]
|
|
@@ -14013,14 +14013,14 @@ function ma({
|
|
|
14013
14013
|
mobileBreakpoint: f,
|
|
14014
14014
|
mobileVariant: p,
|
|
14015
14015
|
overlayBackdrop: x,
|
|
14016
|
-
persistState:
|
|
14016
|
+
persistState: v,
|
|
14017
14017
|
persistWidth: w,
|
|
14018
|
-
storageKey:
|
|
14018
|
+
storageKey: g,
|
|
14019
14019
|
keyboardShortcut: j,
|
|
14020
14020
|
enableKeyboardShortcut: S,
|
|
14021
14021
|
// State props
|
|
14022
|
-
defaultCollapsed:
|
|
14023
|
-
collapsed:
|
|
14022
|
+
defaultCollapsed: h,
|
|
14023
|
+
collapsed: b,
|
|
14024
14024
|
onCollapseChange: k,
|
|
14025
14025
|
onWidthChange: F,
|
|
14026
14026
|
onMobileChange: N,
|
|
@@ -14046,16 +14046,16 @@ function ma({
|
|
|
14046
14046
|
mobileBreakpoint: f,
|
|
14047
14047
|
mobileVariant: p,
|
|
14048
14048
|
overlayBackdrop: x,
|
|
14049
|
-
persistState:
|
|
14049
|
+
persistState: v,
|
|
14050
14050
|
persistWidth: w,
|
|
14051
|
-
storageKey:
|
|
14051
|
+
storageKey: g,
|
|
14052
14052
|
keyboardShortcut: j,
|
|
14053
14053
|
enableKeyboardShortcut: S,
|
|
14054
14054
|
children: /* @__PURE__ */ n.jsx(
|
|
14055
14055
|
fa,
|
|
14056
14056
|
{
|
|
14057
|
-
defaultCollapsed:
|
|
14058
|
-
collapsed:
|
|
14057
|
+
defaultCollapsed: h,
|
|
14058
|
+
collapsed: b,
|
|
14059
14059
|
onCollapseChange: k,
|
|
14060
14060
|
onWidthChange: F,
|
|
14061
14061
|
onMobileChange: N,
|
|
@@ -14207,7 +14207,7 @@ function ba(o) {
|
|
|
14207
14207
|
"className",
|
|
14208
14208
|
"style"
|
|
14209
14209
|
]);
|
|
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,
|
|
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 = () => {
|
|
14211
14211
|
t ? t() : d(!0);
|
|
14212
14212
|
};
|
|
14213
14213
|
return x ? /* @__PURE__ */ n.jsx(
|
|
@@ -14222,7 +14222,7 @@ function ba(o) {
|
|
|
14222
14222
|
style: E({
|
|
14223
14223
|
animation: `fadeIn ${u}ms ease-in-out`
|
|
14224
14224
|
}, s),
|
|
14225
|
-
onClick:
|
|
14225
|
+
onClick: v,
|
|
14226
14226
|
"aria-hidden": "true",
|
|
14227
14227
|
"data-testid": "side-navbar-backdrop"
|
|
14228
14228
|
}, a)
|
|
@@ -14263,8 +14263,8 @@ const Nc = {
|
|
|
14263
14263
|
"navigation-top": "right",
|
|
14264
14264
|
"navigation-bottom": "right"
|
|
14265
14265
|
};
|
|
14266
|
-
function va(
|
|
14267
|
-
var w =
|
|
14266
|
+
function va(v) {
|
|
14267
|
+
var w = v, {
|
|
14268
14268
|
position: e = "floating",
|
|
14269
14269
|
offset: t,
|
|
14270
14270
|
icon: r,
|
|
@@ -14296,22 +14296,22 @@ function va(b) {
|
|
|
14296
14296
|
"aria-label"
|
|
14297
14297
|
]);
|
|
14298
14298
|
var H, de;
|
|
14299
|
-
const { collapsed:
|
|
14299
|
+
const { collapsed: g, toggle: j } = kt(), {
|
|
14300
14300
|
animationDuration: S,
|
|
14301
|
-
animationEasing:
|
|
14302
|
-
navigationWidth:
|
|
14301
|
+
animationEasing: h,
|
|
14302
|
+
navigationWidth: b,
|
|
14303
14303
|
contentWidth: k,
|
|
14304
14304
|
minWidth: F
|
|
14305
14305
|
} = jt(), N = Lt(), A = c != null ? c : N.keyboardShortcut, L = u != null ? u : N.enableKeyboardShortcut, T = () => {
|
|
14306
14306
|
if (typeof r == "function")
|
|
14307
|
-
return r(
|
|
14307
|
+
return r(g);
|
|
14308
14308
|
if (r)
|
|
14309
14309
|
return r;
|
|
14310
|
-
if (
|
|
14310
|
+
if (g && s)
|
|
14311
14311
|
return s;
|
|
14312
|
-
if (!
|
|
14312
|
+
if (!g && a)
|
|
14313
14313
|
return a;
|
|
14314
|
-
const ie =
|
|
14314
|
+
const ie = g ? Pi : _i;
|
|
14315
14315
|
return /* @__PURE__ */ n.jsx(
|
|
14316
14316
|
ie,
|
|
14317
14317
|
{
|
|
@@ -14323,7 +14323,7 @@ function va(b) {
|
|
|
14323
14323
|
}
|
|
14324
14324
|
}
|
|
14325
14325
|
);
|
|
14326
|
-
}, 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 ? {
|
|
14327
14327
|
transform: `translate(${(H = t.x) != null ? H : 0}px, ${(de = t.y) != null ? de : 0}px)`
|
|
14328
14328
|
} : {}, Z = e === "floating" ? E({
|
|
14329
14329
|
// Toggle sempre na borda direita da sidebar completa (<aside>)
|
|
@@ -14336,7 +14336,7 @@ function va(b) {
|
|
|
14336
14336
|
top: "1rem",
|
|
14337
14337
|
transform: "translateY(-50%)",
|
|
14338
14338
|
// Transição suave para acompanhar o resize da sidebar
|
|
14339
|
-
transition: `right ${S}ms ${
|
|
14339
|
+
transition: `right ${S}ms ${h}`
|
|
14340
14340
|
}, O) : O, G = /* @__PURE__ */ n.jsx(
|
|
14341
14341
|
"button",
|
|
14342
14342
|
_(E({
|
|
@@ -14370,7 +14370,7 @@ function va(b) {
|
|
|
14370
14370
|
// Ensure left doesn't interfere
|
|
14371
14371
|
} : {}), e !== "floating" ? Z : {}), e === "floating" ? { zIndex: Bs.fixed.value } : {}), f),
|
|
14372
14372
|
"aria-label": p || M,
|
|
14373
|
-
"aria-expanded": !
|
|
14373
|
+
"aria-expanded": !g,
|
|
14374
14374
|
"aria-controls": "side-navbar-sidebar",
|
|
14375
14375
|
"data-position": e
|
|
14376
14376
|
}, x), {
|
|
@@ -14430,14 +14430,14 @@ function Tc(o) {
|
|
|
14430
14430
|
setCollapsed: f,
|
|
14431
14431
|
currentWidth: p,
|
|
14432
14432
|
isResizing: x,
|
|
14433
|
-
sidebarRef:
|
|
14433
|
+
sidebarRef: v,
|
|
14434
14434
|
isMobile: w
|
|
14435
14435
|
} = l, {
|
|
14436
|
-
variant:
|
|
14436
|
+
variant: g,
|
|
14437
14437
|
navigationWidth: j,
|
|
14438
14438
|
contentWidth: S,
|
|
14439
|
-
animationDuration:
|
|
14440
|
-
animationEasing:
|
|
14439
|
+
animationDuration: h,
|
|
14440
|
+
animationEasing: b
|
|
14441
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);
|
|
14442
14442
|
J(() => {
|
|
14443
14443
|
O(!0);
|
|
@@ -14448,13 +14448,13 @@ function Tc(o) {
|
|
|
14448
14448
|
/* @__PURE__ */ n.jsxs(
|
|
14449
14449
|
"aside",
|
|
14450
14450
|
_(E({
|
|
14451
|
-
ref:
|
|
14451
|
+
ref: v,
|
|
14452
14452
|
className: y(
|
|
14453
14453
|
H,
|
|
14454
14454
|
"flex",
|
|
14455
14455
|
"h-full",
|
|
14456
14456
|
"overflow-visible",
|
|
14457
|
-
Ec[
|
|
14457
|
+
Ec[g],
|
|
14458
14458
|
G && m ? "-translate-x-full" : "translate-x-0",
|
|
14459
14459
|
t
|
|
14460
14460
|
),
|
|
@@ -14467,8 +14467,8 @@ function Tc(o) {
|
|
|
14467
14467
|
width: I,
|
|
14468
14468
|
minWidth: I,
|
|
14469
14469
|
transitionProperty: x ? "none" : "width, min-width, transform",
|
|
14470
|
-
transitionDuration: `${
|
|
14471
|
-
transitionTimingFunction:
|
|
14470
|
+
transitionDuration: `${h}ms`,
|
|
14471
|
+
transitionTimingFunction: b
|
|
14472
14472
|
}, r),
|
|
14473
14473
|
role: "complementary",
|
|
14474
14474
|
"aria-label": s || "Sidebar navigation",
|
|
@@ -14605,8 +14605,8 @@ const Mc = {
|
|
|
14605
14605
|
inline: `flex-row ${C("sm", "gap")} w-full ${C("md", "px")}`,
|
|
14606
14606
|
below: `flex-col ${C("1.5", "gap")}`
|
|
14607
14607
|
};
|
|
14608
|
-
function Rc(
|
|
14609
|
-
var j =
|
|
14608
|
+
function Rc(g) {
|
|
14609
|
+
var j = g, {
|
|
14610
14610
|
id: e,
|
|
14611
14611
|
icon: t,
|
|
14612
14612
|
label: r,
|
|
@@ -14622,7 +14622,7 @@ function Rc(h) {
|
|
|
14622
14622
|
target: f,
|
|
14623
14623
|
onClick: p,
|
|
14624
14624
|
disabled: x = !1,
|
|
14625
|
-
className:
|
|
14625
|
+
className: v = ""
|
|
14626
14626
|
} = j, w = V(j, [
|
|
14627
14627
|
"id",
|
|
14628
14628
|
"icon",
|
|
@@ -14644,14 +14644,14 @@ function Rc(h) {
|
|
|
14644
14644
|
var Z;
|
|
14645
14645
|
const {
|
|
14646
14646
|
activeItem: S,
|
|
14647
|
-
setActiveItem:
|
|
14648
|
-
labelMode:
|
|
14649
|
-
} = 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) => {
|
|
14650
14650
|
if (x) {
|
|
14651
14651
|
G.preventDefault();
|
|
14652
14652
|
return;
|
|
14653
14653
|
}
|
|
14654
|
-
e &&
|
|
14654
|
+
e && h(e), p == null || p();
|
|
14655
14655
|
}, L = k !== "tooltip" && a && r && /* @__PURE__ */ n.jsx(
|
|
14656
14656
|
"span",
|
|
14657
14657
|
{
|
|
@@ -14699,7 +14699,7 @@ function Rc(h) {
|
|
|
14699
14699
|
k === "tooltip" ? N.container : y(C("sm", "px"), C("1.5", "py")),
|
|
14700
14700
|
k !== "tooltip" && Dc[k],
|
|
14701
14701
|
x ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
14702
|
-
|
|
14702
|
+
v
|
|
14703
14703
|
), M = {
|
|
14704
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",
|
|
14705
14705
|
ghost: F ? "text-fg-brand-emphasis" : x ? "text-fg-disabled" : "text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",
|
|
@@ -14909,8 +14909,8 @@ function Ft(u) {
|
|
|
14909
14909
|
"className",
|
|
14910
14910
|
"style"
|
|
14911
14911
|
]);
|
|
14912
|
-
const f = kt(), p = jt(), x = Lt(),
|
|
14913
|
-
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;
|
|
14914
14914
|
const k = o === "inline" && !f.collapsed, F = k ? typeof i == "number" ? `${i}px` : i : p.navigationWidth, N = z(
|
|
14915
14915
|
() => ({
|
|
14916
14916
|
// Inherited from root
|
|
@@ -14918,7 +14918,7 @@ function Ft(u) {
|
|
|
14918
14918
|
toggle: f.toggle,
|
|
14919
14919
|
// Navbar-specific
|
|
14920
14920
|
navbarRef: w,
|
|
14921
|
-
activeItem:
|
|
14921
|
+
activeItem: g,
|
|
14922
14922
|
setActiveItem: j,
|
|
14923
14923
|
isHovered: S,
|
|
14924
14924
|
showInternalToggle: s,
|
|
@@ -14928,14 +14928,14 @@ function Ft(u) {
|
|
|
14928
14928
|
[
|
|
14929
14929
|
f.collapsed,
|
|
14930
14930
|
f.toggle,
|
|
14931
|
-
|
|
14931
|
+
g,
|
|
14932
14932
|
S,
|
|
14933
14933
|
s,
|
|
14934
14934
|
a,
|
|
14935
14935
|
o
|
|
14936
14936
|
]
|
|
14937
14937
|
);
|
|
14938
|
-
return
|
|
14938
|
+
return b && x.mode, /* @__PURE__ */ n.jsx(ks.Provider, { value: N, children: /* @__PURE__ */ n.jsxs(
|
|
14939
14939
|
"nav",
|
|
14940
14940
|
_(E({
|
|
14941
14941
|
ref: w,
|
|
@@ -14958,8 +14958,8 @@ function Ft(u) {
|
|
|
14958
14958
|
transitionDuration: `${p.animationDuration}ms`,
|
|
14959
14959
|
transitionTimingFunction: p.animationEasing
|
|
14960
14960
|
}, d),
|
|
14961
|
-
onMouseEnter: () =>
|
|
14962
|
-
onMouseLeave: () =>
|
|
14961
|
+
onMouseEnter: () => h(!0),
|
|
14962
|
+
onMouseLeave: () => h(!1),
|
|
14963
14963
|
"aria-label": "Side navigation"
|
|
14964
14964
|
}, c), {
|
|
14965
14965
|
children: [
|
|
@@ -15186,13 +15186,13 @@ function Vc(c) {
|
|
|
15186
15186
|
collapsed: m,
|
|
15187
15187
|
activeGroup: f,
|
|
15188
15188
|
setActiveGroup: p
|
|
15189
|
-
} = Sr(), { groupStates: x, toggleGroup:
|
|
15189
|
+
} = Sr(), { groupStates: x, toggleGroup: v, setGroupCollapsed: w } = kt(), { animationDuration: g } = jt(), j = te(!1);
|
|
15190
15190
|
if (J(() => {
|
|
15191
15191
|
!j.current && x[e] === void 0 && (j.current = !0, w(e, o));
|
|
15192
15192
|
}, [e, o, x, w]), m)
|
|
15193
15193
|
return null;
|
|
15194
|
-
const S = (k = x[e]) != null ? k : o,
|
|
15195
|
-
p(e), a &&
|
|
15194
|
+
const S = (k = x[e]) != null ? k : o, h = f === e, b = () => {
|
|
15195
|
+
p(e), a && v(e);
|
|
15196
15196
|
};
|
|
15197
15197
|
return /* @__PURE__ */ n.jsxs(
|
|
15198
15198
|
"div",
|
|
@@ -15209,7 +15209,7 @@ function Vc(c) {
|
|
|
15209
15209
|
"button",
|
|
15210
15210
|
{
|
|
15211
15211
|
type: "button",
|
|
15212
|
-
onClick:
|
|
15212
|
+
onClick: b,
|
|
15213
15213
|
className: `
|
|
15214
15214
|
flex
|
|
15215
15215
|
items-center
|
|
@@ -15220,7 +15220,7 @@ function Vc(c) {
|
|
|
15220
15220
|
text-left
|
|
15221
15221
|
transition-colors
|
|
15222
15222
|
duration-150
|
|
15223
|
-
${
|
|
15223
|
+
${h ? "bg-surface-active" : "hover:bg-surface-active"}
|
|
15224
15224
|
${a ? "cursor-pointer" : "cursor-default"}
|
|
15225
15225
|
`,
|
|
15226
15226
|
"aria-expanded": a ? !S : void 0,
|
|
@@ -15242,7 +15242,7 @@ function Vc(c) {
|
|
|
15242
15242
|
transition-transform
|
|
15243
15243
|
${S ? "-rotate-90" : "rotate-0"}
|
|
15244
15244
|
`,
|
|
15245
|
-
style: { transitionDuration: `${
|
|
15245
|
+
style: { transitionDuration: `${g}ms` },
|
|
15246
15246
|
"aria-hidden": "true"
|
|
15247
15247
|
}
|
|
15248
15248
|
)
|
|
@@ -15250,7 +15250,7 @@ function Vc(c) {
|
|
|
15250
15250
|
]
|
|
15251
15251
|
}
|
|
15252
15252
|
),
|
|
15253
|
-
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 })
|
|
15254
15254
|
]
|
|
15255
15255
|
})
|
|
15256
15256
|
);
|
|
@@ -15267,7 +15267,7 @@ function Hc({
|
|
|
15267
15267
|
}
|
|
15268
15268
|
function Nt(a) {
|
|
15269
15269
|
var o = a, { children: e, className: t = "", style: r } = o, s = V(o, ["children", "className", "style"]);
|
|
15270
|
-
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(
|
|
15271
15271
|
() => ({
|
|
15272
15272
|
// Inherited from root
|
|
15273
15273
|
collapsed: i.collapsed,
|
|
@@ -15279,11 +15279,11 @@ function Nt(a) {
|
|
|
15279
15279
|
setScrollPosition: u,
|
|
15280
15280
|
hasHeader: m,
|
|
15281
15281
|
hasFooter: p,
|
|
15282
|
-
registerHeader:
|
|
15282
|
+
registerHeader: g,
|
|
15283
15283
|
unregisterHeader: j,
|
|
15284
15284
|
registerFooter: S,
|
|
15285
|
-
unregisterFooter:
|
|
15286
|
-
activeGroup:
|
|
15285
|
+
unregisterFooter: h,
|
|
15286
|
+
activeGroup: v,
|
|
15287
15287
|
setActiveGroup: w
|
|
15288
15288
|
}),
|
|
15289
15289
|
[
|
|
@@ -15293,14 +15293,14 @@ function Nt(a) {
|
|
|
15293
15293
|
c,
|
|
15294
15294
|
m,
|
|
15295
15295
|
p,
|
|
15296
|
-
|
|
15296
|
+
g,
|
|
15297
15297
|
j,
|
|
15298
15298
|
S,
|
|
15299
|
-
|
|
15300
|
-
|
|
15299
|
+
h,
|
|
15300
|
+
v
|
|
15301
15301
|
]
|
|
15302
15302
|
), k = Jr(l.contentWidth), F = Jr(l.navigationWidth), N = k - F;
|
|
15303
|
-
return /* @__PURE__ */ n.jsx(Ss.Provider, { value:
|
|
15303
|
+
return /* @__PURE__ */ n.jsx(Ss.Provider, { value: b, children: /* @__PURE__ */ n.jsx(
|
|
15304
15304
|
"aside",
|
|
15305
15305
|
_(E({
|
|
15306
15306
|
ref: d,
|
|
@@ -15352,13 +15352,13 @@ function ze(A) {
|
|
|
15352
15352
|
overlayBackdrop: f = !0,
|
|
15353
15353
|
storageKey: p,
|
|
15354
15354
|
persistWidth: x = !1,
|
|
15355
|
-
defaultCollapsed:
|
|
15355
|
+
defaultCollapsed: v = !1,
|
|
15356
15356
|
collapsed: w,
|
|
15357
|
-
onCollapseChange:
|
|
15357
|
+
onCollapseChange: g,
|
|
15358
15358
|
onWidthChange: j,
|
|
15359
15359
|
onMobileChange: S,
|
|
15360
|
-
exclusiveGroups:
|
|
15361
|
-
showToggle:
|
|
15360
|
+
exclusiveGroups: h = !1,
|
|
15361
|
+
showToggle: b = !0,
|
|
15362
15362
|
togglePosition: k = "floating",
|
|
15363
15363
|
children: F
|
|
15364
15364
|
} = L, N = V(L, [
|
|
@@ -15395,10 +15395,10 @@ function ze(A) {
|
|
|
15395
15395
|
]);
|
|
15396
15396
|
const T = z(
|
|
15397
15397
|
() => ({
|
|
15398
|
-
showMainToggle:
|
|
15398
|
+
showMainToggle: b,
|
|
15399
15399
|
mainTogglePosition: k
|
|
15400
15400
|
}),
|
|
15401
|
-
[
|
|
15401
|
+
[b, k]
|
|
15402
15402
|
);
|
|
15403
15403
|
return /* @__PURE__ */ n.jsx(js.Provider, { value: T, children: /* @__PURE__ */ n.jsx(
|
|
15404
15404
|
ma,
|
|
@@ -15418,12 +15418,12 @@ function ze(A) {
|
|
|
15418
15418
|
overlayBackdrop: f,
|
|
15419
15419
|
storageKey: p,
|
|
15420
15420
|
persistWidth: x,
|
|
15421
|
-
defaultCollapsed:
|
|
15421
|
+
defaultCollapsed: v,
|
|
15422
15422
|
collapsed: w,
|
|
15423
|
-
onCollapseChange:
|
|
15423
|
+
onCollapseChange: g,
|
|
15424
15424
|
onWidthChange: j,
|
|
15425
15425
|
onMobileChange: S,
|
|
15426
|
-
exclusiveGroups:
|
|
15426
|
+
exclusiveGroups: h,
|
|
15427
15427
|
children: /* @__PURE__ */ n.jsx(Tc, _(E({}, N), { children: F }))
|
|
15428
15428
|
}
|
|
15429
15429
|
) });
|
|
@@ -15544,30 +15544,30 @@ function ya(i) {
|
|
|
15544
15544
|
const { isOpen: d, onClose: c, titleId: u, descriptionId: m } = Jt(), f = te(null), p = te(null);
|
|
15545
15545
|
if (J(() => {
|
|
15546
15546
|
if (!d) return;
|
|
15547
|
-
const
|
|
15547
|
+
const g = setTimeout(() => {
|
|
15548
15548
|
var k;
|
|
15549
|
-
const
|
|
15549
|
+
const h = (k = f.current) == null ? void 0 : k.querySelectorAll(
|
|
15550
15550
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15551
|
-
),
|
|
15552
|
-
|
|
15553
|
-
}, 0), j = (
|
|
15554
|
-
s &&
|
|
15555
|
-
}, S = (
|
|
15556
|
-
if (
|
|
15557
|
-
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(
|
|
15558
15558
|
f.current.querySelectorAll(
|
|
15559
15559
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15560
15560
|
)
|
|
15561
15561
|
).filter((N) => !N.disabled && N.offsetParent !== null);
|
|
15562
|
-
if (
|
|
15563
|
-
|
|
15562
|
+
if (b.length === 0) {
|
|
15563
|
+
h.preventDefault();
|
|
15564
15564
|
return;
|
|
15565
15565
|
}
|
|
15566
|
-
const k =
|
|
15567
|
-
|
|
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());
|
|
15568
15568
|
};
|
|
15569
15569
|
return document.addEventListener("keydown", j), document.addEventListener("keydown", S), () => {
|
|
15570
|
-
clearTimeout(
|
|
15570
|
+
clearTimeout(g), document.removeEventListener("keydown", j), document.removeEventListener("keydown", S);
|
|
15571
15571
|
};
|
|
15572
15572
|
}, [d, c, s]), !d) return null;
|
|
15573
15573
|
const x = {
|
|
@@ -15576,13 +15576,13 @@ function ya(i) {
|
|
|
15576
15576
|
lg: "max-w-lg",
|
|
15577
15577
|
xl: "max-w-2xl",
|
|
15578
15578
|
fullscreen: "max-w-full h-full m-0 rounded-none"
|
|
15579
|
-
},
|
|
15580
|
-
r &&
|
|
15579
|
+
}, v = (g) => {
|
|
15580
|
+
r && g.target === p.current && c();
|
|
15581
15581
|
}, w = /* @__PURE__ */ n.jsxs(
|
|
15582
15582
|
"div",
|
|
15583
15583
|
{
|
|
15584
15584
|
className: `fixed inset-0 ${be("modal")} overflow-y-auto`,
|
|
15585
|
-
onClick:
|
|
15585
|
+
onClick: v,
|
|
15586
15586
|
children: [
|
|
15587
15587
|
/* @__PURE__ */ n.jsx(
|
|
15588
15588
|
"div",
|
|
@@ -15810,15 +15810,15 @@ function Jc(i) {
|
|
|
15810
15810
|
J(() => {
|
|
15811
15811
|
if (e.duration === void 0) return;
|
|
15812
15812
|
c(!0);
|
|
15813
|
-
const
|
|
15813
|
+
const v = setTimeout(() => {
|
|
15814
15814
|
m(!0), setTimeout(() => {
|
|
15815
15815
|
t(e.id);
|
|
15816
15816
|
}, 300);
|
|
15817
15817
|
}, e.duration);
|
|
15818
|
-
return () => clearTimeout(
|
|
15818
|
+
return () => clearTimeout(v);
|
|
15819
15819
|
}, [e.duration, e.id, t]), J(() => {
|
|
15820
|
-
const
|
|
15821
|
-
return () => clearTimeout(
|
|
15820
|
+
const v = setTimeout(() => c(!0), 10);
|
|
15821
|
+
return () => clearTimeout(v);
|
|
15822
15822
|
}, []);
|
|
15823
15823
|
const p = {
|
|
15824
15824
|
"top-right": "top-4 right-4",
|
|
@@ -15871,8 +15871,8 @@ function Jc(i) {
|
|
|
15871
15871
|
variant: "outline",
|
|
15872
15872
|
size: "sm",
|
|
15873
15873
|
onClick: () => {
|
|
15874
|
-
var
|
|
15875
|
-
(
|
|
15874
|
+
var v;
|
|
15875
|
+
(v = e.action) == null || v.onClick(), x();
|
|
15876
15876
|
},
|
|
15877
15877
|
children: e.action.label
|
|
15878
15878
|
}
|
|
@@ -15983,31 +15983,32 @@ function Zc({
|
|
|
15983
15983
|
orientation: l = "horizontal",
|
|
15984
15984
|
className: d = ""
|
|
15985
15985
|
}) {
|
|
15986
|
-
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 = () => {
|
|
15987
15987
|
if (f < e.length - 1) {
|
|
15988
|
-
const
|
|
15989
|
-
m || u(
|
|
15988
|
+
const h = f + 1;
|
|
15989
|
+
m || u(h), s == null || s(h);
|
|
15990
15990
|
} else
|
|
15991
15991
|
a == null || a();
|
|
15992
|
-
},
|
|
15992
|
+
}, v = () => {
|
|
15993
15993
|
if (f > 0) {
|
|
15994
|
-
const
|
|
15995
|
-
m || u(
|
|
15994
|
+
const h = f - 1;
|
|
15995
|
+
m || u(h), s == null || s(h);
|
|
15996
15996
|
}
|
|
15997
|
-
}, w = (
|
|
15998
|
-
o && (e[
|
|
15999
|
-
},
|
|
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;
|
|
16000
16000
|
return l === "vertical" ? /* @__PURE__ */ n.jsxs("div", { className: `flex gap-4 ${d}`, children: [
|
|
16001
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: e.map((
|
|
16002
|
-
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;
|
|
16003
16003
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
16004
16004
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
16005
16005
|
/* @__PURE__ */ n.jsx(
|
|
16006
16006
|
"button",
|
|
16007
16007
|
_(E({
|
|
16008
16008
|
type: "button",
|
|
16009
|
-
onClick: () => w(
|
|
16010
|
-
disabled: !o ||
|
|
16009
|
+
onClick: () => w(b),
|
|
16010
|
+
disabled: !o || h.disabled,
|
|
16011
|
+
"aria-label": h.title ? `Step ${b + 1}: ${h.title}` : `Step ${b + 1}`
|
|
16011
16012
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16012
16013
|
className: `
|
|
16013
16014
|
flex
|
|
@@ -16019,12 +16020,12 @@ function Zc({
|
|
|
16019
16020
|
border-2
|
|
16020
16021
|
${Se("base")}
|
|
16021
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"}
|
|
16022
|
-
${!o ||
|
|
16023
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16023
16024
|
`,
|
|
16024
|
-
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
|
|
16025
16026
|
})
|
|
16026
16027
|
),
|
|
16027
|
-
|
|
16028
|
+
b < e.length - 1 && /* @__PURE__ */ n.jsx(
|
|
16028
16029
|
"div",
|
|
16029
16030
|
{
|
|
16030
16031
|
className: `
|
|
@@ -16041,20 +16042,20 @@ function Zc({
|
|
|
16041
16042
|
"button",
|
|
16042
16043
|
{
|
|
16043
16044
|
type: "button",
|
|
16044
|
-
onClick: () => w(
|
|
16045
|
-
disabled: !o ||
|
|
16045
|
+
onClick: () => w(b),
|
|
16046
|
+
disabled: !o || h.disabled,
|
|
16046
16047
|
className: `
|
|
16047
16048
|
text-left
|
|
16048
16049
|
${F ? "font-semibold" : "font-medium"}
|
|
16049
16050
|
${k === "active" ? "text-fg-brand-emphasis" : "text-fg-secondary"}
|
|
16050
|
-
${!o ||
|
|
16051
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16051
16052
|
`,
|
|
16052
|
-
children:
|
|
16053
|
+
children: h.title
|
|
16053
16054
|
}
|
|
16054
16055
|
),
|
|
16055
|
-
|
|
16056
|
+
h.description && /* @__PURE__ */ n.jsx("p", { className: "text-sm text-fg-tertiary mt-1", children: h.description })
|
|
16056
16057
|
] })
|
|
16057
|
-
] },
|
|
16058
|
+
] }, h.id);
|
|
16058
16059
|
}) }),
|
|
16059
16060
|
/* @__PURE__ */ n.jsxs("div", { className: "flex-1", children: [
|
|
16060
16061
|
/* @__PURE__ */ n.jsx(
|
|
@@ -16067,7 +16068,7 @@ function Zc({
|
|
|
16067
16068
|
${ee("lg")}
|
|
16068
16069
|
bg-surface-base
|
|
16069
16070
|
`,
|
|
16070
|
-
children:
|
|
16071
|
+
children: g.content
|
|
16071
16072
|
}
|
|
16072
16073
|
),
|
|
16073
16074
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -16079,7 +16080,7 @@ function Zc({
|
|
|
16079
16080
|
re,
|
|
16080
16081
|
{
|
|
16081
16082
|
variant: "outline",
|
|
16082
|
-
onClick:
|
|
16083
|
+
onClick: v,
|
|
16083
16084
|
disabled: j,
|
|
16084
16085
|
children: "Previous"
|
|
16085
16086
|
}
|
|
@@ -16090,16 +16091,17 @@ function Zc({
|
|
|
16090
16091
|
)
|
|
16091
16092
|
] })
|
|
16092
16093
|
] }) : /* @__PURE__ */ n.jsxs("div", { className: `space-y-6 ${d}`, children: [
|
|
16093
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: e.map((
|
|
16094
|
-
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;
|
|
16095
16096
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center flex-1", children: [
|
|
16096
16097
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center flex-1", children: [
|
|
16097
16098
|
/* @__PURE__ */ n.jsx(
|
|
16098
16099
|
"button",
|
|
16099
16100
|
_(E({
|
|
16100
16101
|
type: "button",
|
|
16101
|
-
onClick: () => w(
|
|
16102
|
-
disabled: !o ||
|
|
16102
|
+
onClick: () => w(b),
|
|
16103
|
+
disabled: !o || h.disabled,
|
|
16104
|
+
"aria-label": h.title ? `Step ${b + 1}: ${h.title}` : `Step ${b + 1}`
|
|
16103
16105
|
}, k === "pending" ? { "data-marker": "pending" } : {}), {
|
|
16104
16106
|
className: `
|
|
16105
16107
|
flex
|
|
@@ -16111,9 +16113,9 @@ function Zc({
|
|
|
16111
16113
|
border-2
|
|
16112
16114
|
${Se("base")}
|
|
16113
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"}
|
|
16114
|
-
${!o ||
|
|
16116
|
+
${!o || h.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
16115
16117
|
`,
|
|
16116
|
-
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
|
|
16117
16119
|
})
|
|
16118
16120
|
),
|
|
16119
16121
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -16129,15 +16131,15 @@ function Zc({
|
|
|
16129
16131
|
font-medium
|
|
16130
16132
|
${F ? "text-fg-brand-emphasis" : "text-fg-secondary"}
|
|
16131
16133
|
`,
|
|
16132
|
-
children:
|
|
16134
|
+
children: h.title
|
|
16133
16135
|
}
|
|
16134
16136
|
),
|
|
16135
|
-
|
|
16137
|
+
h.description && /* @__PURE__ */ n.jsx("p", { className: "text-xs text-fg-tertiary mt-1", children: h.description })
|
|
16136
16138
|
]
|
|
16137
16139
|
}
|
|
16138
16140
|
)
|
|
16139
16141
|
] }),
|
|
16140
|
-
|
|
16142
|
+
b < e.length - 1 && /* @__PURE__ */ n.jsx("div", { className: `flex-1 mx-2 ${C("base", "mx")}`, children: /* @__PURE__ */ n.jsx(
|
|
16141
16143
|
In,
|
|
16142
16144
|
{
|
|
16143
16145
|
className: `
|
|
@@ -16145,7 +16147,7 @@ function Zc({
|
|
|
16145
16147
|
`
|
|
16146
16148
|
}
|
|
16147
16149
|
) })
|
|
16148
|
-
] },
|
|
16150
|
+
] }, h.id);
|
|
16149
16151
|
}) }),
|
|
16150
16152
|
/* @__PURE__ */ n.jsx(
|
|
16151
16153
|
"div",
|
|
@@ -16157,7 +16159,7 @@ function Zc({
|
|
|
16157
16159
|
${ee("lg")}
|
|
16158
16160
|
bg-surface-base
|
|
16159
16161
|
`,
|
|
16160
|
-
children:
|
|
16162
|
+
children: g.content
|
|
16161
16163
|
}
|
|
16162
16164
|
),
|
|
16163
16165
|
/* @__PURE__ */ n.jsxs("div", { className: `flex justify-between ${C("base", "gap")}`, children: [
|
|
@@ -16165,7 +16167,7 @@ function Zc({
|
|
|
16165
16167
|
re,
|
|
16166
16168
|
{
|
|
16167
16169
|
variant: "outline",
|
|
16168
|
-
onClick:
|
|
16170
|
+
onClick: v,
|
|
16169
16171
|
disabled: j,
|
|
16170
16172
|
children: "Previous"
|
|
16171
16173
|
}
|
|
@@ -16284,7 +16286,7 @@ function xu({
|
|
|
16284
16286
|
emptyMessage: i = "No commands found",
|
|
16285
16287
|
className: l = ""
|
|
16286
16288
|
}) {
|
|
16287
|
-
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) => {
|
|
16288
16290
|
var I, R;
|
|
16289
16291
|
if (!u) return !0;
|
|
16290
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(
|
|
@@ -16297,7 +16299,7 @@ function xu({
|
|
|
16297
16299
|
return N[L] || (N[L] = []), N[L].push(A), N;
|
|
16298
16300
|
},
|
|
16299
16301
|
{}
|
|
16300
|
-
),
|
|
16302
|
+
), h = Y(
|
|
16301
16303
|
(N) => {
|
|
16302
16304
|
w || c(N), s == null || s(N), N && (m(""), p(0), setTimeout(() => {
|
|
16303
16305
|
var A;
|
|
@@ -16305,11 +16307,11 @@ function xu({
|
|
|
16305
16307
|
}, 0));
|
|
16306
16308
|
},
|
|
16307
16309
|
[w, s]
|
|
16308
|
-
),
|
|
16309
|
-
N.action(),
|
|
16310
|
+
), b = (N) => {
|
|
16311
|
+
N.action(), h(!1);
|
|
16310
16312
|
}, k = (N) => {
|
|
16311
16313
|
if (N.key === "Escape") {
|
|
16312
|
-
|
|
16314
|
+
h(!1);
|
|
16313
16315
|
return;
|
|
16314
16316
|
}
|
|
16315
16317
|
if (N.key === "ArrowDown") {
|
|
@@ -16321,13 +16323,13 @@ function xu({
|
|
|
16321
16323
|
return;
|
|
16322
16324
|
}
|
|
16323
16325
|
if (N.key === "Enter") {
|
|
16324
|
-
N.preventDefault(), j[f] &&
|
|
16326
|
+
N.preventDefault(), j[f] && b(j[f]);
|
|
16325
16327
|
return;
|
|
16326
16328
|
}
|
|
16327
16329
|
};
|
|
16328
16330
|
J(() => {
|
|
16329
|
-
if (
|
|
16330
|
-
const N =
|
|
16331
|
+
if (v.current && f >= 0) {
|
|
16332
|
+
const N = v.current.querySelector(
|
|
16331
16333
|
`[data-index="${f}"]`
|
|
16332
16334
|
);
|
|
16333
16335
|
N && typeof N.scrollIntoView == "function" && N.scrollIntoView({
|
|
@@ -16339,7 +16341,7 @@ function xu({
|
|
|
16339
16341
|
p(0);
|
|
16340
16342
|
}, [u]), J(() => {
|
|
16341
16343
|
const N = (A) => {
|
|
16342
|
-
(A.metaKey || A.ctrlKey) && A.key === "k" && (A.preventDefault(),
|
|
16344
|
+
(A.metaKey || A.ctrlKey) && A.key === "k" && (A.preventDefault(), h(!g));
|
|
16343
16345
|
};
|
|
16344
16346
|
return document.addEventListener(
|
|
16345
16347
|
"keydown",
|
|
@@ -16348,8 +16350,8 @@ function xu({
|
|
|
16348
16350
|
"keydown",
|
|
16349
16351
|
N
|
|
16350
16352
|
);
|
|
16351
|
-
}, [
|
|
16352
|
-
const F =
|
|
16353
|
+
}, [g, h]);
|
|
16354
|
+
const F = g ? /* @__PURE__ */ n.jsx(
|
|
16353
16355
|
"div",
|
|
16354
16356
|
{
|
|
16355
16357
|
className: `
|
|
@@ -16363,7 +16365,7 @@ function xu({
|
|
|
16363
16365
|
pt-[20vh]
|
|
16364
16366
|
${Se("base")}
|
|
16365
16367
|
`,
|
|
16366
|
-
onClick: () =>
|
|
16368
|
+
onClick: () => h(!1),
|
|
16367
16369
|
children: /* @__PURE__ */ n.jsxs(
|
|
16368
16370
|
"div",
|
|
16369
16371
|
{
|
|
@@ -16431,7 +16433,7 @@ function xu({
|
|
|
16431
16433
|
/* @__PURE__ */ n.jsx(
|
|
16432
16434
|
"div",
|
|
16433
16435
|
{
|
|
16434
|
-
ref:
|
|
16436
|
+
ref: v,
|
|
16435
16437
|
className: `
|
|
16436
16438
|
max-h-96
|
|
16437
16439
|
overflow-y-auto
|
|
@@ -16471,7 +16473,7 @@ function xu({
|
|
|
16471
16473
|
{
|
|
16472
16474
|
type: "button",
|
|
16473
16475
|
"data-index": M,
|
|
16474
|
-
onClick: () =>
|
|
16476
|
+
onClick: () => b(L),
|
|
16475
16477
|
className: `
|
|
16476
16478
|
w-full
|
|
16477
16479
|
flex
|
|
@@ -16529,7 +16531,7 @@ function xu({
|
|
|
16529
16531
|
}
|
|
16530
16532
|
) : null;
|
|
16531
16533
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
16532
|
-
a ? /* @__PURE__ */ n.jsx("div", { onClick: () =>
|
|
16534
|
+
a ? /* @__PURE__ */ n.jsx("div", { onClick: () => h(!0), children: a }) : null,
|
|
16533
16535
|
typeof window != "undefined" && Ze(F, document.body)
|
|
16534
16536
|
] });
|
|
16535
16537
|
}
|
|
@@ -16549,13 +16551,13 @@ function bu({
|
|
|
16549
16551
|
onColumnReorder: f,
|
|
16550
16552
|
columnWidths: p,
|
|
16551
16553
|
onColumnResize: x,
|
|
16552
|
-
selectable:
|
|
16554
|
+
selectable: v = !1,
|
|
16553
16555
|
selectedRows: w,
|
|
16554
|
-
onSelectionChange:
|
|
16556
|
+
onSelectionChange: g,
|
|
16555
16557
|
rowId: j,
|
|
16556
16558
|
exportable: S = !1,
|
|
16557
|
-
onExport:
|
|
16558
|
-
exportFormats:
|
|
16559
|
+
onExport: h,
|
|
16560
|
+
exportFormats: b = ["csv", "xlsx", "json"],
|
|
16559
16561
|
pagination: k,
|
|
16560
16562
|
filters: F,
|
|
16561
16563
|
actions: N,
|
|
@@ -16572,7 +16574,7 @@ function bu({
|
|
|
16572
16574
|
const [H, de] = P(l), [ie, D] = P(p || {}), B = z(() => e.map((q) => _(E({}, q), {
|
|
16573
16575
|
width: ie[q.key] || q.defaultWidth
|
|
16574
16576
|
})), [e, ie]), Q = (q) => {
|
|
16575
|
-
|
|
16577
|
+
h ? h(q) : q === "csv" ? se(t, e) : q === "json" && U(t);
|
|
16576
16578
|
}, se = (q, W) => {
|
|
16577
16579
|
const le = W.filter((Pe) => Pe.exportable !== !1).map((Pe) => Pe.label || Pe.key), ue = q.map(
|
|
16578
16580
|
(Pe) => W.filter((zt) => zt.exportable !== !1).map((zt) => {
|
|
@@ -16612,7 +16614,7 @@ function bu({
|
|
|
16612
16614
|
) }),
|
|
16613
16615
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16614
16616
|
A,
|
|
16615
|
-
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(
|
|
16616
16618
|
re,
|
|
16617
16619
|
{
|
|
16618
16620
|
variant: "outline",
|
|
@@ -16638,9 +16640,9 @@ function bu({
|
|
|
16638
16640
|
sortDirection: o,
|
|
16639
16641
|
pagination: k,
|
|
16640
16642
|
filters: F,
|
|
16641
|
-
selectable:
|
|
16643
|
+
selectable: v,
|
|
16642
16644
|
selectedRows: w,
|
|
16643
|
-
onSelectionChange:
|
|
16645
|
+
onSelectionChange: g,
|
|
16644
16646
|
rowId: j,
|
|
16645
16647
|
actions: N,
|
|
16646
16648
|
resizable: u,
|
|
@@ -16671,30 +16673,30 @@ function vu({
|
|
|
16671
16673
|
loading: d = !1,
|
|
16672
16674
|
emptyMessage: c = "No data available"
|
|
16673
16675
|
}) {
|
|
16674
|
-
const [u, m] = P(""), [f, p] = P(1), x = z(() => e.map((
|
|
16675
|
-
if (
|
|
16676
|
-
const
|
|
16677
|
-
return _(E({},
|
|
16678
|
-
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,
|
|
16679
16681
|
label: k
|
|
16680
16682
|
});
|
|
16681
16683
|
}
|
|
16682
|
-
return
|
|
16683
|
-
}), [e]),
|
|
16684
|
+
return h;
|
|
16685
|
+
}), [e]), v = z(() => {
|
|
16684
16686
|
if (!u.trim()) return t;
|
|
16685
|
-
const
|
|
16686
|
-
return t.filter((
|
|
16687
|
-
const F =
|
|
16688
|
-
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);
|
|
16689
16691
|
}));
|
|
16690
16692
|
}, [t, u, x]), w = z(() => {
|
|
16691
|
-
if (!o) return
|
|
16692
|
-
const
|
|
16693
|
-
return
|
|
16694
|
-
}, [
|
|
16695
|
-
p(
|
|
16696
|
-
}, S = (
|
|
16697
|
-
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);
|
|
16698
16700
|
};
|
|
16699
16701
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "full", paddingX: "base", paddingY: "base", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16700
16702
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
@@ -16715,20 +16717,20 @@ function vu({
|
|
|
16715
16717
|
data: w,
|
|
16716
16718
|
loading: d,
|
|
16717
16719
|
emptyMessage: c,
|
|
16718
|
-
onRowClick: l ? (
|
|
16719
|
-
const
|
|
16720
|
+
onRowClick: l ? (h) => {
|
|
16721
|
+
const b = v.findIndex((k) => k === h);
|
|
16720
16722
|
l(
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
+
h,
|
|
16724
|
+
b >= 0 ? b : w.findIndex((k) => k === h)
|
|
16723
16725
|
);
|
|
16724
16726
|
} : void 0
|
|
16725
16727
|
}
|
|
16726
16728
|
),
|
|
16727
|
-
o &&
|
|
16729
|
+
o && g > 1 && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ n.jsx(
|
|
16728
16730
|
Ll,
|
|
16729
16731
|
{
|
|
16730
16732
|
currentPage: f,
|
|
16731
|
-
totalPages:
|
|
16733
|
+
totalPages: g,
|
|
16732
16734
|
onPageChange: j
|
|
16733
16735
|
}
|
|
16734
16736
|
) }),
|
|
@@ -16736,7 +16738,7 @@ function vu({
|
|
|
16736
16738
|
"Showing ",
|
|
16737
16739
|
w.length,
|
|
16738
16740
|
" of ",
|
|
16739
|
-
|
|
16741
|
+
v.length,
|
|
16740
16742
|
" results"
|
|
16741
16743
|
] })
|
|
16742
16744
|
] }) });
|
|
@@ -16758,17 +16760,17 @@ function yu({
|
|
|
16758
16760
|
a > 0 && r && (o(a - 1), c(_(E({}, d), { [a - 1]: !1 })));
|
|
16759
16761
|
}, f = (w) => {
|
|
16760
16762
|
r && w < a && o(w);
|
|
16761
|
-
}, p = e[a], x = a === e.length - 1,
|
|
16763
|
+
}, p = e[a], x = a === e.length - 1, v = d[a] === !0;
|
|
16762
16764
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "lg", paddingX: "base", paddingY: "lg", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "lg", children: [
|
|
16763
16765
|
/* @__PURE__ */ n.jsx(
|
|
16764
16766
|
Zc,
|
|
16765
16767
|
{
|
|
16766
|
-
steps: e.map((w,
|
|
16768
|
+
steps: e.map((w, g) => ({
|
|
16767
16769
|
id: w.id,
|
|
16768
16770
|
title: w.title,
|
|
16769
16771
|
content: w.content,
|
|
16770
16772
|
description: w.description,
|
|
16771
|
-
status:
|
|
16773
|
+
status: g < a ? "completed" : g === a ? v ? "error" : "active" : "pending"
|
|
16772
16774
|
})),
|
|
16773
16775
|
currentStep: a,
|
|
16774
16776
|
onStepChange: f,
|
|
@@ -16780,7 +16782,7 @@ function yu({
|
|
|
16780
16782
|
/* @__PURE__ */ n.jsx("h2", { className: "text-2xl font-semibold", children: p.title }),
|
|
16781
16783
|
p.description && /* @__PURE__ */ n.jsx("p", { className: "text-fg-secondary mt-1", children: p.description })
|
|
16782
16784
|
] }),
|
|
16783
|
-
|
|
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." }) }),
|
|
16784
16786
|
/* @__PURE__ */ n.jsx("div", { className: "min-h-48", children: p.fields }),
|
|
16785
16787
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between pt-4 border-t", children: [
|
|
16786
16788
|
/* @__PURE__ */ n.jsx(
|
|
@@ -16812,17 +16814,17 @@ function wu({
|
|
|
16812
16814
|
), f = z(() => {
|
|
16813
16815
|
let w = e;
|
|
16814
16816
|
if (d.trim() && t) {
|
|
16815
|
-
const
|
|
16816
|
-
w = w.filter((j) => t(
|
|
16817
|
+
const g = d.toLowerCase();
|
|
16818
|
+
w = w.filter((j) => t(g, j));
|
|
16817
16819
|
}
|
|
16818
|
-
return r && Object.keys(u).length > 0 && (w = w.filter((
|
|
16819
|
-
}, [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) => {
|
|
16820
16822
|
m((j) => _(E({}, j), {
|
|
16821
|
-
[w]:
|
|
16823
|
+
[w]: g
|
|
16822
16824
|
}));
|
|
16823
16825
|
}, x = () => {
|
|
16824
16826
|
m({}), c("");
|
|
16825
|
-
},
|
|
16827
|
+
}, v = d.trim().length > 0 || Object.keys(u).length > 0;
|
|
16826
16828
|
return /* @__PURE__ */ n.jsx(at, { maxWidth: "full", paddingX: "base", paddingY: "base", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16827
16829
|
/* @__PURE__ */ n.jsx(Yr, { padding: "medium", children: /* @__PURE__ */ n.jsxs(Mt, { spacing: "md", children: [
|
|
16828
16830
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
@@ -16834,7 +16836,7 @@ function wu({
|
|
|
16834
16836
|
}
|
|
16835
16837
|
) }),
|
|
16836
16838
|
a.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: a.map((w) => {
|
|
16837
|
-
var
|
|
16839
|
+
var g;
|
|
16838
16840
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16839
16841
|
/* @__PURE__ */ n.jsxs(ot, { className: "text-fg-secondary text-sm", children: [
|
|
16840
16842
|
w.label,
|
|
@@ -16851,7 +16853,7 @@ function wu({
|
|
|
16851
16853
|
),
|
|
16852
16854
|
children: [
|
|
16853
16855
|
/* @__PURE__ */ n.jsx("option", { value: "", children: "All" }),
|
|
16854
|
-
(
|
|
16856
|
+
(g = w.options) == null ? void 0 : g.map((j) => /* @__PURE__ */ n.jsx(
|
|
16855
16857
|
"option",
|
|
16856
16858
|
{
|
|
16857
16859
|
value: String(j.value || ""),
|
|
@@ -16864,7 +16866,7 @@ function wu({
|
|
|
16864
16866
|
)
|
|
16865
16867
|
] }, w.id);
|
|
16866
16868
|
}) }),
|
|
16867
|
-
|
|
16869
|
+
v && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(re, { variant: "outline", size: "sm", onClick: x, children: "Clear Filters" }) })
|
|
16868
16870
|
] }) }),
|
|
16869
16871
|
l && /* @__PURE__ */ n.jsxs("div", { className: "text-sm text-fg-secondary", children: [
|
|
16870
16872
|
"Showing ",
|
|
@@ -16872,9 +16874,9 @@ function wu({
|
|
|
16872
16874
|
" of ",
|
|
16873
16875
|
e.length,
|
|
16874
16876
|
" results",
|
|
16875
|
-
|
|
16877
|
+
v && " (filtered)"
|
|
16876
16878
|
] }),
|
|
16877
|
-
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)) })
|
|
16878
16880
|
] }) });
|
|
16879
16881
|
}
|
|
16880
16882
|
function ju({
|