@bfrs/agentic-components 0.8.8 → 0.8.9
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/BFRS_AGENTIC_COMPONENTS.md +1 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.d.ts +10 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js +79 -78
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js.map +1 -1
- package/dist/custom-elements.js +633 -632
- package/dist/custom-elements.js.map +1 -1
- package/package.json +1 -1
package/dist/custom-elements.js
CHANGED
|
@@ -103,12 +103,12 @@ function d7() {
|
|
|
103
103
|
function j(L, $, ce) {
|
|
104
104
|
this.props = L, this.context = $, this.refs = S, this.updater = ce || T;
|
|
105
105
|
}
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
var
|
|
106
|
+
var V = j.prototype = new M();
|
|
107
|
+
V.constructor = j, C(V, k.prototype), V.isPureReactComponent = !0;
|
|
108
|
+
var O = Array.isArray;
|
|
109
109
|
function N() {
|
|
110
110
|
}
|
|
111
|
-
var D = { H: null, A: null, T: null, S: null },
|
|
111
|
+
var D = { H: null, A: null, T: null, S: null }, z = Object.prototype.hasOwnProperty;
|
|
112
112
|
function q(L, $, ce) {
|
|
113
113
|
var J = ce.ref;
|
|
114
114
|
return {
|
|
@@ -122,7 +122,7 @@ function d7() {
|
|
|
122
122
|
function X(L, $) {
|
|
123
123
|
return q(L.type, $, L.props);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function F(L) {
|
|
126
126
|
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
127
127
|
}
|
|
128
128
|
function re(L) {
|
|
@@ -187,9 +187,9 @@ function d7() {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
if (ne)
|
|
190
|
-
return he = he(L), ne = J === "" ? "." + I(L, 0) : J,
|
|
190
|
+
return he = he(L), ne = J === "" ? "." + I(L, 0) : J, O(he) ? (ce = "", ne != null && (ce = ne.replace(se, "$&/") + "/"), H(he, $, ce, "", function(ve) {
|
|
191
191
|
return ve;
|
|
192
|
-
})) : he != null && (
|
|
192
|
+
})) : he != null && (F(he) && (he = X(
|
|
193
193
|
he,
|
|
194
194
|
ce + (he.key == null || L && L.key === he.key ? "" : ("" + he.key).replace(
|
|
195
195
|
se,
|
|
@@ -198,7 +198,7 @@ function d7() {
|
|
|
198
198
|
)), $.push(he)), 1;
|
|
199
199
|
ne = 0;
|
|
200
200
|
var Ae = J === "" ? "." : J + ":";
|
|
201
|
-
if (
|
|
201
|
+
if (O(L))
|
|
202
202
|
for (var fe = 0; fe < L.length; fe++)
|
|
203
203
|
J = L[fe], pe = Ae + I(J, fe), ne += H(
|
|
204
204
|
J,
|
|
@@ -290,7 +290,7 @@ function d7() {
|
|
|
290
290
|
}) || [];
|
|
291
291
|
},
|
|
292
292
|
only: function(L) {
|
|
293
|
-
if (!
|
|
293
|
+
if (!F(L))
|
|
294
294
|
throw Error(
|
|
295
295
|
"React.Children.only expected to receive a single React element child."
|
|
296
296
|
);
|
|
@@ -316,7 +316,7 @@ function d7() {
|
|
|
316
316
|
var J = C({}, L.props), he = L.key;
|
|
317
317
|
if ($ != null)
|
|
318
318
|
for (pe in $.key !== void 0 && (he = "" + $.key), $)
|
|
319
|
-
!
|
|
319
|
+
!z.call($, pe) || pe === "key" || pe === "__self" || pe === "__source" || pe === "ref" && $.ref === void 0 || (J[pe] = $[pe]);
|
|
320
320
|
var pe = arguments.length - 2;
|
|
321
321
|
if (pe === 1) J.children = ce;
|
|
322
322
|
else if (1 < pe) {
|
|
@@ -341,7 +341,7 @@ function d7() {
|
|
|
341
341
|
var J, he = {}, pe = null;
|
|
342
342
|
if ($ != null)
|
|
343
343
|
for (J in $.key !== void 0 && (pe = "" + $.key), $)
|
|
344
|
-
|
|
344
|
+
z.call($, J) && J !== "key" && J !== "__self" && J !== "__source" && (he[J] = $[J]);
|
|
345
345
|
var ne = arguments.length - 2;
|
|
346
346
|
if (ne === 1) he.children = ce;
|
|
347
347
|
else if (1 < ne) {
|
|
@@ -357,7 +357,7 @@ function d7() {
|
|
|
357
357
|
return { current: null };
|
|
358
358
|
}, Be.forwardRef = function(L) {
|
|
359
359
|
return { $$typeof: b, render: L };
|
|
360
|
-
}, Be.isValidElement =
|
|
360
|
+
}, Be.isValidElement = F, Be.lazy = function(L) {
|
|
361
361
|
return {
|
|
362
362
|
$$typeof: y,
|
|
363
363
|
_payload: { _status: -1, _result: L },
|
|
@@ -492,7 +492,7 @@ function u7() {
|
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
var m = [], v = [], y = 1, x = null, A = 3, E = !1, T = !1, C = !1, S = !1, k = typeof setTimeout == "function" ? setTimeout : null, M = typeof clearTimeout == "function" ? clearTimeout : null, j = typeof setImmediate < "u" ? setImmediate : null;
|
|
495
|
-
function
|
|
495
|
+
function V(H) {
|
|
496
496
|
for (var G = n(v); G !== null; ) {
|
|
497
497
|
if (G.callback === null) i(v);
|
|
498
498
|
else if (G.startTime <= H)
|
|
@@ -501,20 +501,20 @@ function u7() {
|
|
|
501
501
|
G = n(v);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
if (C = !1,
|
|
504
|
+
function O(H) {
|
|
505
|
+
if (C = !1, V(H), !T)
|
|
506
506
|
if (n(m) !== null)
|
|
507
507
|
T = !0, N || (N = !0, re());
|
|
508
508
|
else {
|
|
509
509
|
var G = n(v);
|
|
510
|
-
G !== null && ue(
|
|
510
|
+
G !== null && ue(O, G.startTime - H);
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var N = !1, D = -1,
|
|
513
|
+
var N = !1, D = -1, z = 5, q = -1;
|
|
514
514
|
function X() {
|
|
515
|
-
return S ? !0 : !(e.unstable_now() - q <
|
|
515
|
+
return S ? !0 : !(e.unstable_now() - q < z);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function F() {
|
|
518
518
|
if (S = !1, N) {
|
|
519
519
|
var H = e.unstable_now();
|
|
520
520
|
q = H;
|
|
@@ -525,7 +525,7 @@ function u7() {
|
|
|
525
525
|
var Z = A;
|
|
526
526
|
try {
|
|
527
527
|
t: {
|
|
528
|
-
for (
|
|
528
|
+
for (V(H), x = n(m); x !== null && !(x.expirationTime > H && X()); ) {
|
|
529
529
|
var ee = x.callback;
|
|
530
530
|
if (typeof ee == "function") {
|
|
531
531
|
x.callback = null, A = x.priorityLevel;
|
|
@@ -533,10 +533,10 @@ function u7() {
|
|
|
533
533
|
x.expirationTime <= H
|
|
534
534
|
);
|
|
535
535
|
if (H = e.unstable_now(), typeof te == "function") {
|
|
536
|
-
x.callback = te,
|
|
536
|
+
x.callback = te, V(H), G = !0;
|
|
537
537
|
break t;
|
|
538
538
|
}
|
|
539
|
-
x === n(m) && i(m),
|
|
539
|
+
x === n(m) && i(m), V(H);
|
|
540
540
|
} else i(m);
|
|
541
541
|
x = n(m);
|
|
542
542
|
}
|
|
@@ -544,7 +544,7 @@ function u7() {
|
|
|
544
544
|
else {
|
|
545
545
|
var L = n(v);
|
|
546
546
|
L !== null && ue(
|
|
547
|
-
|
|
547
|
+
O,
|
|
548
548
|
L.startTime - H
|
|
549
549
|
), G = !1;
|
|
550
550
|
}
|
|
@@ -563,16 +563,16 @@ function u7() {
|
|
|
563
563
|
var re;
|
|
564
564
|
if (typeof j == "function")
|
|
565
565
|
re = function() {
|
|
566
|
-
j(
|
|
566
|
+
j(F);
|
|
567
567
|
};
|
|
568
568
|
else if (typeof MessageChannel < "u") {
|
|
569
569
|
var se = new MessageChannel(), I = se.port2;
|
|
570
|
-
se.port1.onmessage =
|
|
570
|
+
se.port1.onmessage = F, re = function() {
|
|
571
571
|
I.postMessage(null);
|
|
572
572
|
};
|
|
573
573
|
} else
|
|
574
574
|
re = function() {
|
|
575
|
-
k(
|
|
575
|
+
k(F, 0);
|
|
576
576
|
};
|
|
577
577
|
function ue(H, G) {
|
|
578
578
|
D = k(function() {
|
|
@@ -584,7 +584,7 @@ function u7() {
|
|
|
584
584
|
}, e.unstable_forceFrameRate = function(H) {
|
|
585
585
|
0 > H || 125 < H ? console.error(
|
|
586
586
|
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
587
|
-
) :
|
|
587
|
+
) : z = 0 < H ? Math.floor(1e3 / H) : 5;
|
|
588
588
|
}, e.unstable_getCurrentPriorityLevel = function() {
|
|
589
589
|
return A;
|
|
590
590
|
}, e.unstable_next = function(H) {
|
|
@@ -649,7 +649,7 @@ function u7() {
|
|
|
649
649
|
startTime: Z,
|
|
650
650
|
expirationTime: te,
|
|
651
651
|
sortIndex: -1
|
|
652
|
-
}, Z > ee ? (H.sortIndex = Z, a(v, H), n(m) === null && H === n(v) && (C ? (M(D), D = -1) : C = !0, ue(
|
|
652
|
+
}, Z > ee ? (H.sortIndex = Z, a(v, H), n(m) === null && H === n(v) && (C ? (M(D), D = -1) : C = !0, ue(O, Z - ee))) : (H.sortIndex = te, a(m, H), T || E || (T = !0, N || (N = !0, re()))), H;
|
|
653
653
|
}, e.unstable_shouldYield = X, e.unstable_wrapCallback = function(H) {
|
|
654
654
|
var G = A;
|
|
655
655
|
return function() {
|
|
@@ -947,9 +947,9 @@ function h7() {
|
|
|
947
947
|
}
|
|
948
948
|
return null;
|
|
949
949
|
}
|
|
950
|
-
var x = Object.assign, A = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), j = Symbol.for("react.context"),
|
|
950
|
+
var x = Object.assign, A = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), j = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), X = Symbol.for("react.memo_cache_sentinel"), F = Symbol.iterator;
|
|
951
951
|
function re(t) {
|
|
952
|
-
return t === null || typeof t != "object" ? null : (t =
|
|
952
|
+
return t === null || typeof t != "object" ? null : (t = F && t[F] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
953
953
|
}
|
|
954
954
|
var se = Symbol.for("react.client.reference");
|
|
955
955
|
function I(t) {
|
|
@@ -964,7 +964,7 @@ function h7() {
|
|
|
964
964
|
return "Profiler";
|
|
965
965
|
case S:
|
|
966
966
|
return "StrictMode";
|
|
967
|
-
case
|
|
967
|
+
case O:
|
|
968
968
|
return "Suspense";
|
|
969
969
|
case N:
|
|
970
970
|
return "SuspenseList";
|
|
@@ -979,12 +979,12 @@ function h7() {
|
|
|
979
979
|
return t.displayName || "Context";
|
|
980
980
|
case M:
|
|
981
981
|
return (t._context.displayName || "Context") + ".Consumer";
|
|
982
|
-
case
|
|
982
|
+
case V:
|
|
983
983
|
var r = t.render;
|
|
984
984
|
return t = t.displayName, t || (t = r.displayName || r.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
985
985
|
case D:
|
|
986
986
|
return r = t.displayName || null, r !== null ? r : I(t.type) || "Memo";
|
|
987
|
-
case
|
|
987
|
+
case z:
|
|
988
988
|
r = t._payload, t = t._init;
|
|
989
989
|
try {
|
|
990
990
|
return I(t(r));
|
|
@@ -2435,8 +2435,8 @@ Error generating stack: ` + l.message + `
|
|
|
2435
2435
|
break;
|
|
2436
2436
|
case k:
|
|
2437
2437
|
return t = Kr(12, o, r, f | 2), t.elementType = k, t.lanes = h, t;
|
|
2438
|
-
case
|
|
2439
|
-
return t = Kr(13, o, r, f), t.elementType =
|
|
2438
|
+
case O:
|
|
2439
|
+
return t = Kr(13, o, r, f), t.elementType = O, t.lanes = h, t;
|
|
2440
2440
|
case N:
|
|
2441
2441
|
return t = Kr(19, o, r, f), t.elementType = N, t.lanes = h, t;
|
|
2442
2442
|
default:
|
|
@@ -2448,13 +2448,13 @@ Error generating stack: ` + l.message + `
|
|
|
2448
2448
|
case M:
|
|
2449
2449
|
w = 9;
|
|
2450
2450
|
break e;
|
|
2451
|
-
case
|
|
2451
|
+
case V:
|
|
2452
2452
|
w = 11;
|
|
2453
2453
|
break e;
|
|
2454
2454
|
case D:
|
|
2455
2455
|
w = 14;
|
|
2456
2456
|
break e;
|
|
2457
|
-
case
|
|
2457
|
+
case z:
|
|
2458
2458
|
w = 16, l = null;
|
|
2459
2459
|
break e;
|
|
2460
2460
|
}
|
|
@@ -2944,7 +2944,7 @@ Error generating stack: ` + l.message + `
|
|
|
2944
2944
|
W.props.children,
|
|
2945
2945
|
oe,
|
|
2946
2946
|
W.key
|
|
2947
|
-
) : _ !== null && (_.elementType === je || typeof je == "object" && je !== null && je.$$typeof ===
|
|
2947
|
+
) : _ !== null && (_.elementType === je || typeof je == "object" && je !== null && je.$$typeof === z && An(je) === _.type) ? (_ = f(_, W.props), El(_, W), _.return = P, _) : (_ = Qs(
|
|
2948
2948
|
W.type,
|
|
2949
2949
|
W.key,
|
|
2950
2950
|
W.props,
|
|
@@ -2988,7 +2988,7 @@ Error generating stack: ` + l.message + `
|
|
|
2988
2988
|
P.mode,
|
|
2989
2989
|
W
|
|
2990
2990
|
), _.return = P, _;
|
|
2991
|
-
case
|
|
2991
|
+
case z:
|
|
2992
2992
|
return _ = An(_), ie(P, _, W);
|
|
2993
2993
|
}
|
|
2994
2994
|
if (ue(_) || re(_))
|
|
@@ -3020,7 +3020,7 @@ Error generating stack: ` + l.message + `
|
|
|
3020
3020
|
return W.key === je ? B(P, _, W, oe) : null;
|
|
3021
3021
|
case T:
|
|
3022
3022
|
return W.key === je ? U(P, _, W, oe) : null;
|
|
3023
|
-
case
|
|
3023
|
+
case z:
|
|
3024
3024
|
return W = An(W), Y(P, _, W, oe);
|
|
3025
3025
|
}
|
|
3026
3026
|
if (ue(W) || re(W))
|
|
@@ -3056,7 +3056,7 @@ Error generating stack: ` + l.message + `
|
|
|
3056
3056
|
return P = P.get(
|
|
3057
3057
|
oe.key === null ? W : oe.key
|
|
3058
3058
|
) || null, U(_, P, oe, je);
|
|
3059
|
-
case
|
|
3059
|
+
case z:
|
|
3060
3060
|
return oe = An(oe), K(
|
|
3061
3061
|
P,
|
|
3062
3062
|
_,
|
|
@@ -3173,7 +3173,7 @@ Error generating stack: ` + l.message + `
|
|
|
3173
3173
|
), oe.return = P, P = oe;
|
|
3174
3174
|
break e;
|
|
3175
3175
|
}
|
|
3176
|
-
} else if (_.elementType === je || typeof je == "object" && je !== null && je.$$typeof ===
|
|
3176
|
+
} else if (_.elementType === je || typeof je == "object" && je !== null && je.$$typeof === z && An(je) === _.type) {
|
|
3177
3177
|
o(
|
|
3178
3178
|
P,
|
|
3179
3179
|
_.sibling
|
|
@@ -3220,7 +3220,7 @@ Error generating stack: ` + l.message + `
|
|
|
3220
3220
|
oe = cf(W, P.mode, oe), oe.return = P, P = oe;
|
|
3221
3221
|
}
|
|
3222
3222
|
return w(P);
|
|
3223
|
-
case
|
|
3223
|
+
case z:
|
|
3224
3224
|
return W = An(W), xt(
|
|
3225
3225
|
P,
|
|
3226
3226
|
_,
|
|
@@ -5279,7 +5279,7 @@ Error generating stack: ` + l.message + `
|
|
|
5279
5279
|
else {
|
|
5280
5280
|
if (t != null) {
|
|
5281
5281
|
var f = t.$$typeof;
|
|
5282
|
-
if (f ===
|
|
5282
|
+
if (f === V) {
|
|
5283
5283
|
r.tag = 11, r = Am(
|
|
5284
5284
|
null,
|
|
5285
5285
|
r,
|
|
@@ -11894,7 +11894,7 @@ function jE(e) {
|
|
|
11894
11894
|
return Ax(xd("", null, null, null, [""], e = Sx(e), 0, [0], e));
|
|
11895
11895
|
}
|
|
11896
11896
|
function xd(e, a, n, i, d, u, p, b, m) {
|
|
11897
|
-
for (var v = 0, y = 0, x = p, A = 0, E = 0, T = 0, C = 1, S = 1, k = 1, M = 0, j = "",
|
|
11897
|
+
for (var v = 0, y = 0, x = p, A = 0, E = 0, T = 0, C = 1, S = 1, k = 1, M = 0, j = "", V = d, O = u, N = i, D = j; S; )
|
|
11898
11898
|
switch (T = M, M = oa()) {
|
|
11899
11899
|
// (
|
|
11900
11900
|
case 40:
|
|
@@ -11951,9 +11951,9 @@ function xd(e, a, n, i, d, u, p, b, m) {
|
|
|
11951
11951
|
D += ";";
|
|
11952
11952
|
// { rule/at-rule
|
|
11953
11953
|
default:
|
|
11954
|
-
if (Kc(N = S2(D, a, n, v, y, d, b, j,
|
|
11954
|
+
if (Kc(N = S2(D, a, n, v, y, d, b, j, V = [], O = [], x), u), M === 123)
|
|
11955
11955
|
if (y === 0)
|
|
11956
|
-
xd(D, a, N, N,
|
|
11956
|
+
xd(D, a, N, N, V, u, x, b, O);
|
|
11957
11957
|
else
|
|
11958
11958
|
switch (A === 99 && gr(D, 3) === 110 ? 100 : A) {
|
|
11959
11959
|
// d l m s
|
|
@@ -11961,10 +11961,10 @@ function xd(e, a, n, i, d, u, p, b, m) {
|
|
|
11961
11961
|
case 108:
|
|
11962
11962
|
case 109:
|
|
11963
11963
|
case 115:
|
|
11964
|
-
xd(e, N, N, i && Kc(S2(e, N, N, 0, 0, d, b, j, d,
|
|
11964
|
+
xd(e, N, N, i && Kc(S2(e, N, N, 0, 0, d, b, j, d, V = [], x), O), d, O, x, b, i ? V : O);
|
|
11965
11965
|
break;
|
|
11966
11966
|
default:
|
|
11967
|
-
xd(D, N, N, N, [""],
|
|
11967
|
+
xd(D, N, N, N, [""], O, 0, b, O);
|
|
11968
11968
|
}
|
|
11969
11969
|
}
|
|
11970
11970
|
v = y = E = 0, C = k = 1, j = D = "", x = p;
|
|
@@ -12600,22 +12600,22 @@ var tk = function(a) {
|
|
|
12600
12600
|
x.push(y[T], A[T]);
|
|
12601
12601
|
}
|
|
12602
12602
|
var C = tk(function(S, k, M) {
|
|
12603
|
-
var j = v && S.as || d,
|
|
12603
|
+
var j = v && S.as || d, V = "", O = [], N = S;
|
|
12604
12604
|
if (S.theme == null) {
|
|
12605
12605
|
N = {};
|
|
12606
12606
|
for (var D in S)
|
|
12607
12607
|
N[D] = S[D];
|
|
12608
12608
|
N.theme = s.useContext(rk);
|
|
12609
12609
|
}
|
|
12610
|
-
typeof S.className == "string" ?
|
|
12611
|
-
var
|
|
12612
|
-
|
|
12610
|
+
typeof S.className == "string" ? V = WE(k.registered, O, S.className) : S.className != null && (V = S.className + " ");
|
|
12611
|
+
var z = XE(x.concat(O), k.registered, N);
|
|
12612
|
+
V += k.key + "-" + z.name, p !== void 0 && (V += " " + p);
|
|
12613
12613
|
var q = v && b === void 0 ? R2(j) : m, X = {};
|
|
12614
|
-
for (var
|
|
12615
|
-
v &&
|
|
12616
|
-
return X.className =
|
|
12614
|
+
for (var F in S)
|
|
12615
|
+
v && F === "as" || q(F) && (X[F] = S[F]);
|
|
12616
|
+
return X.className = V, M && (X.ref = M), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(lk, {
|
|
12617
12617
|
cache: k,
|
|
12618
|
-
serialized:
|
|
12618
|
+
serialized: z,
|
|
12619
12619
|
isStringTag: typeof j == "string"
|
|
12620
12620
|
}), /* @__PURE__ */ s.createElement(j, X));
|
|
12621
12621
|
});
|
|
@@ -13676,19 +13676,19 @@ const Ok = "&[data-filled]", Fk = {
|
|
|
13676
13676
|
clearLabel: k = "Clear input",
|
|
13677
13677
|
fullWidth: M = !0,
|
|
13678
13678
|
id: j,
|
|
13679
|
-
value:
|
|
13680
|
-
defaultValue:
|
|
13679
|
+
value: V,
|
|
13680
|
+
defaultValue: O,
|
|
13681
13681
|
onChange: N,
|
|
13682
13682
|
disabled: D,
|
|
13683
|
-
readOnly:
|
|
13683
|
+
readOnly: z,
|
|
13684
13684
|
"aria-invalid": q,
|
|
13685
13685
|
"aria-describedby": X,
|
|
13686
|
-
...
|
|
13686
|
+
...F
|
|
13687
13687
|
}, re) => {
|
|
13688
|
-
const se = s.useId(), I = j ?? se, ue = m ? `${I}-helper` : void 0, H = b ? `${I}-error` : void 0, G = [X, ue, H].filter(Boolean).join(" ") || void 0, Z =
|
|
13689
|
-
const fe =
|
|
13688
|
+
const se = s.useId(), I = j ?? se, ue = m ? `${I}-helper` : void 0, H = b ? `${I}-error` : void 0, G = [X, ue, H].filter(Boolean).join(" ") || void 0, Z = V !== void 0, [ee, te] = s.useState(() => {
|
|
13689
|
+
const fe = O;
|
|
13690
13690
|
return fe != null && String(fe).length > 0;
|
|
13691
|
-
}), L = Z ?
|
|
13691
|
+
}), L = Z ? V !== null && String(V).length > 0 : ee, $ = !!(S && L && !D && !z), ce = !!(T || $ || C), J = !!(x || A), he = p || b ? "error" : "default", pe = {
|
|
13692
13692
|
appearance: u,
|
|
13693
13693
|
size: d,
|
|
13694
13694
|
state: he,
|
|
@@ -13702,10 +13702,10 @@ const Ok = "&[data-filled]", Fk = {
|
|
|
13702
13702
|
{
|
|
13703
13703
|
ref: re,
|
|
13704
13704
|
id: I,
|
|
13705
|
-
value:
|
|
13706
|
-
defaultValue:
|
|
13705
|
+
value: V,
|
|
13706
|
+
defaultValue: O,
|
|
13707
13707
|
disabled: D,
|
|
13708
|
-
readOnly:
|
|
13708
|
+
readOnly: z,
|
|
13709
13709
|
"aria-invalid": q ?? p ?? !!b,
|
|
13710
13710
|
"aria-describedby": G,
|
|
13711
13711
|
onChange: (fe) => {
|
|
@@ -13714,7 +13714,7 @@ const Ok = "&[data-filled]", Fk = {
|
|
|
13714
13714
|
"data-filled": !J && L && he === "default" ? "" : void 0,
|
|
13715
13715
|
ownerState: pe,
|
|
13716
13716
|
className: ne,
|
|
13717
|
-
...
|
|
13717
|
+
...F
|
|
13718
13718
|
}
|
|
13719
13719
|
);
|
|
13720
13720
|
return u === "unstyled" && !v && !m && !b && !x && !A && !E && !T && !C && !S ? Ae : /* @__PURE__ */ c.jsxs(Jk, { ownerState: pe, className: rn(a, e), children: [
|
|
@@ -14111,7 +14111,7 @@ function wd(e) {
|
|
|
14111
14111
|
return Array.isArray(e) ? e.some(wd) : e != null && e !== !1 && e !== "";
|
|
14112
14112
|
}
|
|
14113
14113
|
const Ox = s.forwardRef(({ className: e, tone: a, size: n = "md", title: i, message: d, description: u, parts: p, action: b, icon: m, children: v, style: y, ...x }, A) => {
|
|
14114
|
-
const E = a ?? "info", T = N9[E], C = E === "warning" ? nn : void 0, S = p ? p.map((j,
|
|
14114
|
+
const E = a ?? "info", T = N9[E], C = E === "warning" ? nn : void 0, S = p ? p.map((j, V) => j.bold ? /* @__PURE__ */ c.jsx("strong", { children: j.text }, V) : /* @__PURE__ */ c.jsx("span", { children: j.text }, V)) : wd(v) ? v : d ?? u, k = wd(i), M = p ? p.length > 0 : wd(S);
|
|
14115
14115
|
return /* @__PURE__ */ c.jsxs(
|
|
14116
14116
|
E9,
|
|
14117
14117
|
{
|
|
@@ -14367,15 +14367,15 @@ function u1(e) {
|
|
|
14367
14367
|
p.displayName = a;
|
|
14368
14368
|
const b = e + "CollectionSlot", m = /* @__PURE__ */ Hn(b), v = Xo.forwardRef(
|
|
14369
14369
|
(C, S) => {
|
|
14370
|
-
const { scope: k, children: M } = C, j = u(b, k),
|
|
14371
|
-
return /* @__PURE__ */ c.jsx(m, { ref:
|
|
14370
|
+
const { scope: k, children: M } = C, j = u(b, k), V = Ue(S, j.collectionRef);
|
|
14371
|
+
return /* @__PURE__ */ c.jsx(m, { ref: V, children: M });
|
|
14372
14372
|
}
|
|
14373
14373
|
);
|
|
14374
14374
|
v.displayName = b;
|
|
14375
14375
|
const y = e + "CollectionItemSlot", x = "data-radix-collection-item", A = /* @__PURE__ */ Hn(y), E = Xo.forwardRef(
|
|
14376
14376
|
(C, S) => {
|
|
14377
|
-
const { scope: k, children: M, ...j } = C,
|
|
14378
|
-
return Xo.useEffect(() => (N.itemMap.set(
|
|
14377
|
+
const { scope: k, children: M, ...j } = C, V = Xo.useRef(null), O = Ue(S, V), N = u(y, k);
|
|
14378
|
+
return Xo.useEffect(() => (N.itemMap.set(V, { ref: V, ...j }), () => void N.itemMap.delete(V))), /* @__PURE__ */ c.jsx(A, { [x]: "", ref: O, children: M });
|
|
14379
14379
|
}
|
|
14380
14380
|
);
|
|
14381
14381
|
E.displayName = y;
|
|
@@ -14433,12 +14433,12 @@ var $9 = "DismissableLayer", N0 = "dismissableLayer.update", Y9 = "dismissableLa
|
|
|
14433
14433
|
onInteractOutside: p,
|
|
14434
14434
|
onDismiss: b,
|
|
14435
14435
|
...m
|
|
14436
|
-
} = e, v = s.useContext(Ix), [y, x] = s.useState(null), A = (y == null ? void 0 : y.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, E] = s.useState({}), T = Ue(a, (D) => x(D)), C = Array.from(v.layers), [S] = [...v.layersWithOutsidePointerEventsDisabled].slice(-1), k = C.indexOf(S), M = y ? C.indexOf(y) : -1, j = v.layersWithOutsidePointerEventsDisabled.size > 0,
|
|
14437
|
-
const
|
|
14438
|
-
!
|
|
14436
|
+
} = e, v = s.useContext(Ix), [y, x] = s.useState(null), A = (y == null ? void 0 : y.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, E] = s.useState({}), T = Ue(a, (D) => x(D)), C = Array.from(v.layers), [S] = [...v.layersWithOutsidePointerEventsDisabled].slice(-1), k = C.indexOf(S), M = y ? C.indexOf(y) : -1, j = v.layersWithOutsidePointerEventsDisabled.size > 0, V = M >= k, O = Q9((D) => {
|
|
14437
|
+
const z = D.target, q = [...v.branches].some((X) => X.contains(z));
|
|
14438
|
+
!V || q || (d == null || d(D), p == null || p(D), D.defaultPrevented || b == null || b());
|
|
14439
14439
|
}, A), N = J9((D) => {
|
|
14440
|
-
const
|
|
14441
|
-
[...v.branches].some((X) => X.contains(
|
|
14440
|
+
const z = D.target;
|
|
14441
|
+
[...v.branches].some((X) => X.contains(z)) || (u == null || u(D), p == null || p(D), D.defaultPrevented || b == null || b());
|
|
14442
14442
|
}, A);
|
|
14443
14443
|
return G9((D) => {
|
|
14444
14444
|
M === v.layers.size - 1 && (i == null || i(D), !D.defaultPrevented && b && (D.preventDefault(), b()));
|
|
@@ -14458,14 +14458,14 @@ var $9 = "DismissableLayer", N0 = "dismissableLayer.update", Y9 = "dismissableLa
|
|
|
14458
14458
|
...m,
|
|
14459
14459
|
ref: T,
|
|
14460
14460
|
style: {
|
|
14461
|
-
pointerEvents: j ?
|
|
14461
|
+
pointerEvents: j ? V ? "auto" : "none" : void 0,
|
|
14462
14462
|
...e.style
|
|
14463
14463
|
},
|
|
14464
14464
|
onFocusCapture: ge(e.onFocusCapture, N.onFocusCapture),
|
|
14465
14465
|
onBlurCapture: ge(e.onBlurCapture, N.onBlurCapture),
|
|
14466
14466
|
onPointerDownCapture: ge(
|
|
14467
14467
|
e.onPointerDownCapture,
|
|
14468
|
-
|
|
14468
|
+
O.onPointerDownCapture
|
|
14469
14469
|
)
|
|
14470
14470
|
}
|
|
14471
14471
|
);
|
|
@@ -14568,16 +14568,16 @@ var Jp = "focusScope.autoFocusOnMount", e0 = "focusScope.autoFocusOnUnmount", Z2
|
|
|
14568
14568
|
if (i) {
|
|
14569
14569
|
let C = function(j) {
|
|
14570
14570
|
if (E.paused || !b) return;
|
|
14571
|
-
const
|
|
14572
|
-
b.contains(
|
|
14571
|
+
const V = j.target;
|
|
14572
|
+
b.contains(V) ? x.current = V : Qo(x.current, { select: !0 });
|
|
14573
14573
|
}, S = function(j) {
|
|
14574
14574
|
if (E.paused || !b) return;
|
|
14575
|
-
const
|
|
14576
|
-
|
|
14575
|
+
const V = j.relatedTarget;
|
|
14576
|
+
V !== null && (b.contains(V) || Qo(x.current, { select: !0 }));
|
|
14577
14577
|
}, k = function(j) {
|
|
14578
14578
|
if (document.activeElement === document.body)
|
|
14579
|
-
for (const
|
|
14580
|
-
|
|
14579
|
+
for (const O of j)
|
|
14580
|
+
O.removedNodes.length > 0 && Qo(b);
|
|
14581
14581
|
};
|
|
14582
14582
|
document.addEventListener("focusin", C), document.addEventListener("focusout", S);
|
|
14583
14583
|
const M = new MutationObserver(k);
|
|
@@ -14606,8 +14606,8 @@ var Jp = "focusScope.autoFocusOnMount", e0 = "focusScope.autoFocusOnUnmount", Z2
|
|
|
14606
14606
|
if (!n && !i || E.paused) return;
|
|
14607
14607
|
const S = C.key === "Tab" && !C.altKey && !C.ctrlKey && !C.metaKey, k = document.activeElement;
|
|
14608
14608
|
if (S && k) {
|
|
14609
|
-
const M = C.currentTarget, [j,
|
|
14610
|
-
j &&
|
|
14609
|
+
const M = C.currentTarget, [j, V] = rT(M);
|
|
14610
|
+
j && V ? !C.shiftKey && k === V ? (C.preventDefault(), n && Qo(j, { select: !0 })) : C.shiftKey && k === j && (C.preventDefault(), n && Qo(V, { select: !0 })) : k === M && C.preventDefault();
|
|
14611
14611
|
}
|
|
14612
14612
|
},
|
|
14613
14613
|
[n, i, E.paused]
|
|
@@ -14863,23 +14863,23 @@ async function vT(e, a) {
|
|
|
14863
14863
|
y: d,
|
|
14864
14864
|
width: p.floating.width,
|
|
14865
14865
|
height: p.floating.height
|
|
14866
|
-
} : p.reference, j = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(b.floating)),
|
|
14866
|
+
} : p.reference, j = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(b.floating)), V = await (u.isElement == null ? void 0 : u.isElement(j)) ? await (u.getScale == null ? void 0 : u.getScale(j)) || {
|
|
14867
14867
|
x: 1,
|
|
14868
14868
|
y: 1
|
|
14869
14869
|
} : {
|
|
14870
14870
|
x: 1,
|
|
14871
14871
|
y: 1
|
|
14872
|
-
},
|
|
14872
|
+
}, O = Vd(u.convertOffsetParentRelativeRectToViewportRelativeRect ? await u.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
14873
14873
|
elements: b,
|
|
14874
14874
|
rect: M,
|
|
14875
14875
|
offsetParent: j,
|
|
14876
14876
|
strategy: m
|
|
14877
14877
|
}) : M);
|
|
14878
14878
|
return {
|
|
14879
|
-
top: (k.top -
|
|
14880
|
-
bottom: (
|
|
14881
|
-
left: (k.left -
|
|
14882
|
-
right: (
|
|
14879
|
+
top: (k.top - O.top + T.top) / V.y,
|
|
14880
|
+
bottom: (O.bottom - k.bottom + T.bottom) / V.y,
|
|
14881
|
+
left: (k.left - O.left + T.left) / V.x,
|
|
14882
|
+
right: (O.right - k.right + T.right) / V.x
|
|
14883
14883
|
};
|
|
14884
14884
|
}
|
|
14885
14885
|
const yT = 50, xT = async (e, a, n) => {
|
|
@@ -14910,8 +14910,8 @@ const yT = 50, xT = async (e, a, n) => {
|
|
|
14910
14910
|
fn: M
|
|
14911
14911
|
} = S, {
|
|
14912
14912
|
x: j,
|
|
14913
|
-
y:
|
|
14914
|
-
data:
|
|
14913
|
+
y: V,
|
|
14914
|
+
data: O,
|
|
14915
14915
|
reset: N
|
|
14916
14916
|
} = await M({
|
|
14917
14917
|
x: y,
|
|
@@ -14927,9 +14927,9 @@ const yT = 50, xT = async (e, a, n) => {
|
|
|
14927
14927
|
floating: a
|
|
14928
14928
|
}
|
|
14929
14929
|
});
|
|
14930
|
-
y = j ?? y, x =
|
|
14930
|
+
y = j ?? y, x = V ?? x, T[k] = {
|
|
14931
14931
|
...T[k],
|
|
14932
|
-
...
|
|
14932
|
+
...O
|
|
14933
14933
|
}, N && E < yT && (E++, typeof N == "object" && (N.placement && (A = N.placement), N.rects && (v = N.rects === !0 ? await p.getElementRects({
|
|
14934
14934
|
reference: e,
|
|
14935
14935
|
floating: a,
|
|
@@ -14967,10 +14967,10 @@ const yT = 50, xT = async (e, a, n) => {
|
|
|
14967
14967
|
const x = Ux(y), A = {
|
|
14968
14968
|
x: n,
|
|
14969
14969
|
y: i
|
|
14970
|
-
}, E = h1(d), T = p1(E), C = await p.getDimensions(v), S = E === "y", k = S ? "top" : "left", M = S ? "bottom" : "right", j = S ? "clientHeight" : "clientWidth",
|
|
14970
|
+
}, E = h1(d), T = p1(E), C = await p.getDimensions(v), S = E === "y", k = S ? "top" : "left", M = S ? "bottom" : "right", j = S ? "clientHeight" : "clientWidth", V = u.reference[T] + u.reference[E] - A[E] - u.floating[T], O = A[E] - u.reference[E], N = await (p.getOffsetParent == null ? void 0 : p.getOffsetParent(v));
|
|
14971
14971
|
let D = N ? N[j] : 0;
|
|
14972
14972
|
(!D || !await (p.isElement == null ? void 0 : p.isElement(N))) && (D = b.floating[j] || u.floating[T]);
|
|
14973
|
-
const
|
|
14973
|
+
const z = V / 2 - O / 2, q = D / 2 - C[T] / 2 - 1, X = an(x[k], q), F = an(x[M], q), re = X, se = D - C[T] - F, I = D / 2 - C[T] / 2 + z, ue = z0(re, I, se), H = !m.arrow && al(d) != null && I !== ue && u.reference[T] / 2 - (I < re ? X : F) - C[T] / 2 < 0, G = H ? I < re ? I - re : I - se : 0;
|
|
14974
14974
|
return {
|
|
14975
14975
|
[E]: A[E] + G,
|
|
14976
14976
|
data: {
|
|
@@ -15007,20 +15007,20 @@ const yT = 50, xT = async (e, a, n) => {
|
|
|
15007
15007
|
} = wo(e, a);
|
|
15008
15008
|
if ((n = u.arrow) != null && n.alignmentOffset)
|
|
15009
15009
|
return {};
|
|
15010
|
-
const k = So(d), M = Ua(b), j = So(b) === b,
|
|
15011
|
-
!A && N &&
|
|
15012
|
-
const D = [b, ...
|
|
15010
|
+
const k = So(d), M = Ua(b), j = So(b) === b, V = await (m.isRTL == null ? void 0 : m.isRTL(v.floating)), O = A || (j || !C ? [zd(b)] : fT(b)), N = T !== "none";
|
|
15011
|
+
!A && N && O.push(...mT(b, C, T, V));
|
|
15012
|
+
const D = [b, ...O], z = await m.detectOverflow(a, S), q = [];
|
|
15013
15013
|
let X = ((i = u.flip) == null ? void 0 : i.overflows) || [];
|
|
15014
|
-
if (y && q.push(
|
|
15015
|
-
const I = uT(d, p,
|
|
15016
|
-
q.push(
|
|
15014
|
+
if (y && q.push(z[k]), x) {
|
|
15015
|
+
const I = uT(d, p, V);
|
|
15016
|
+
q.push(z[I[0]], z[I[1]]);
|
|
15017
15017
|
}
|
|
15018
15018
|
if (X = [...X, {
|
|
15019
15019
|
placement: d,
|
|
15020
15020
|
overflows: q
|
|
15021
15021
|
}], !q.every((I) => I <= 0)) {
|
|
15022
|
-
var
|
|
15023
|
-
const I = (((
|
|
15022
|
+
var F, re;
|
|
15023
|
+
const I = (((F = u.flip) == null ? void 0 : F.index) || 0) + 1, ue = D[I];
|
|
15024
15024
|
if (ue && (!(x === "alignment" ? M !== Ua(ue) : !1) || // We leave the current main axis only if every placement on that axis
|
|
15025
15025
|
// overflows the main axis.
|
|
15026
15026
|
X.every((Z) => Ua(Z.placement) === M ? Z.overflows[0] > 0 : !0)))
|
|
@@ -15200,12 +15200,12 @@ const ET = function(e) {
|
|
|
15200
15200
|
}, x = await u.detectOverflow(a, v), A = Ua(So(d)), E = f1(A);
|
|
15201
15201
|
let T = y[E], C = y[A];
|
|
15202
15202
|
if (p) {
|
|
15203
|
-
const k = E === "y" ? "top" : "left", M = E === "y" ? "bottom" : "right", j = T + x[k],
|
|
15204
|
-
T = z0(j, T,
|
|
15203
|
+
const k = E === "y" ? "top" : "left", M = E === "y" ? "bottom" : "right", j = T + x[k], V = T - x[M];
|
|
15204
|
+
T = z0(j, T, V);
|
|
15205
15205
|
}
|
|
15206
15206
|
if (b) {
|
|
15207
|
-
const k = A === "y" ? "top" : "left", M = A === "y" ? "bottom" : "right", j = C + x[k],
|
|
15208
|
-
C = z0(j, C,
|
|
15207
|
+
const k = A === "y" ? "top" : "left", M = A === "y" ? "bottom" : "right", j = C + x[k], V = C - x[M];
|
|
15208
|
+
C = z0(j, C, V);
|
|
15209
15209
|
}
|
|
15210
15210
|
const S = m.fn({
|
|
15211
15211
|
...a,
|
|
@@ -15253,13 +15253,13 @@ const ET = function(e) {
|
|
|
15253
15253
|
...C
|
|
15254
15254
|
};
|
|
15255
15255
|
if (m) {
|
|
15256
|
-
const j = A === "y" ? "height" : "width",
|
|
15257
|
-
E <
|
|
15256
|
+
const j = A === "y" ? "height" : "width", V = u.reference[A] - u.floating[j] + S.mainAxis, O = u.reference[A] + u.reference[j] - S.mainAxis;
|
|
15257
|
+
E < V ? E = V : E > O && (E = O);
|
|
15258
15258
|
}
|
|
15259
15259
|
if (v) {
|
|
15260
15260
|
var k, M;
|
|
15261
|
-
const j = A === "y" ? "width" : "height",
|
|
15262
|
-
T <
|
|
15261
|
+
const j = A === "y" ? "width" : "height", V = Gx.has(So(d)), O = u.reference[x] - u.floating[j] + (V && ((k = p.offset) == null ? void 0 : k[x]) || 0) + (V ? 0 : S.crossAxis), N = u.reference[x] + u.reference[j] + (V ? 0 : ((M = p.offset) == null ? void 0 : M[x]) || 0) - (V ? S.crossAxis : 0);
|
|
15262
|
+
T < O ? T = O : T > N && (T = N);
|
|
15263
15263
|
}
|
|
15264
15264
|
return {
|
|
15265
15265
|
[A]: E,
|
|
@@ -15288,15 +15288,15 @@ const ET = function(e) {
|
|
|
15288
15288
|
} = u.floating;
|
|
15289
15289
|
let S, k;
|
|
15290
15290
|
x === "top" || x === "bottom" ? (S = x, k = A === (await (p.isRTL == null ? void 0 : p.isRTL(b.floating)) ? "start" : "end") ? "left" : "right") : (k = x, S = A === "end" ? "top" : "bottom");
|
|
15291
|
-
const M = C - y.top - y.bottom, j = T - y.left - y.right,
|
|
15292
|
-
let D =
|
|
15293
|
-
if ((n = a.middlewareData.shift) != null && n.enabled.x && (
|
|
15294
|
-
const X = ra(y.left, 0),
|
|
15295
|
-
E ?
|
|
15291
|
+
const M = C - y.top - y.bottom, j = T - y.left - y.right, V = an(C - y[S], M), O = an(T - y[k], j), N = !a.middlewareData.shift;
|
|
15292
|
+
let D = V, z = O;
|
|
15293
|
+
if ((n = a.middlewareData.shift) != null && n.enabled.x && (z = j), (i = a.middlewareData.shift) != null && i.enabled.y && (D = M), N && !A) {
|
|
15294
|
+
const X = ra(y.left, 0), F = ra(y.right, 0), re = ra(y.top, 0), se = ra(y.bottom, 0);
|
|
15295
|
+
E ? z = T - 2 * (X !== 0 || F !== 0 ? X + F : ra(y.left, y.right)) : D = C - 2 * (re !== 0 || se !== 0 ? re + se : ra(y.top, y.bottom));
|
|
15296
15296
|
}
|
|
15297
15297
|
await m({
|
|
15298
15298
|
...a,
|
|
15299
|
-
availableWidth:
|
|
15299
|
+
availableWidth: z,
|
|
15300
15300
|
availableHeight: D
|
|
15301
15301
|
});
|
|
15302
15302
|
const q = await p.getDimensions(b.floating);
|
|
@@ -15472,8 +15472,8 @@ function Bn(e, a, n, i) {
|
|
|
15472
15472
|
const A = na(u), E = i && Na(i) ? na(i) : i;
|
|
15473
15473
|
let T = A, C = L0(T);
|
|
15474
15474
|
for (; C && i && E !== T; ) {
|
|
15475
|
-
const S = Zi(C), k = C.getBoundingClientRect(), M = za(C), j = k.left + (C.clientLeft + parseFloat(M.paddingLeft)) * S.x,
|
|
15476
|
-
m *= S.x, v *= S.y, y *= S.x, x *= S.y, m += j, v +=
|
|
15475
|
+
const S = Zi(C), k = C.getBoundingClientRect(), M = za(C), j = k.left + (C.clientLeft + parseFloat(M.paddingLeft)) * S.x, V = k.top + (C.clientTop + parseFloat(M.paddingTop)) * S.y;
|
|
15476
|
+
m *= S.x, v *= S.y, y *= S.x, x *= S.y, m += j, v += V, T = na(C), C = L0(T);
|
|
15477
15477
|
}
|
|
15478
15478
|
}
|
|
15479
15479
|
return Vd({
|
|
@@ -15735,26 +15735,26 @@ function $T(e, a) {
|
|
|
15735
15735
|
rootMargin: -T + "px " + -C + "px " + -S + "px " + -k + "px",
|
|
15736
15736
|
threshold: ra(0, an(1, m)) || 1
|
|
15737
15737
|
};
|
|
15738
|
-
let
|
|
15739
|
-
function
|
|
15738
|
+
let V = !0;
|
|
15739
|
+
function O(N) {
|
|
15740
15740
|
const D = N[0].intersectionRatio;
|
|
15741
15741
|
if (D !== m) {
|
|
15742
|
-
if (!
|
|
15742
|
+
if (!V)
|
|
15743
15743
|
return p();
|
|
15744
15744
|
D ? p(!1, D) : i = setTimeout(() => {
|
|
15745
15745
|
p(!1, 1e-7);
|
|
15746
15746
|
}, 1e3);
|
|
15747
15747
|
}
|
|
15748
|
-
D === 1 && !ew(v, e.getBoundingClientRect()) && p(),
|
|
15748
|
+
D === 1 && !ew(v, e.getBoundingClientRect()) && p(), V = !1;
|
|
15749
15749
|
}
|
|
15750
15750
|
try {
|
|
15751
|
-
n = new IntersectionObserver(
|
|
15751
|
+
n = new IntersectionObserver(O, {
|
|
15752
15752
|
...j,
|
|
15753
15753
|
// Handle <iframe>s
|
|
15754
15754
|
root: d.ownerDocument
|
|
15755
15755
|
});
|
|
15756
15756
|
} catch {
|
|
15757
|
-
n = new IntersectionObserver(
|
|
15757
|
+
n = new IntersectionObserver(O, j);
|
|
15758
15758
|
}
|
|
15759
15759
|
n.observe(e);
|
|
15760
15760
|
}
|
|
@@ -15881,7 +15881,7 @@ function oR(e) {
|
|
|
15881
15881
|
Z !== N.current && (N.current = Z, C(Z));
|
|
15882
15882
|
}, []), j = s.useCallback((Z) => {
|
|
15883
15883
|
Z !== D.current && (D.current = Z, k(Z));
|
|
15884
|
-
}, []),
|
|
15884
|
+
}, []), V = u || T, O = p || S, N = s.useRef(null), D = s.useRef(null), z = s.useRef(y), q = m != null, X = a0(m), F = a0(d), re = a0(v), se = s.useCallback(() => {
|
|
15885
15885
|
if (!N.current || !D.current)
|
|
15886
15886
|
return;
|
|
15887
15887
|
const Z = {
|
|
@@ -15889,7 +15889,7 @@ function oR(e) {
|
|
|
15889
15889
|
strategy: n,
|
|
15890
15890
|
middleware: A
|
|
15891
15891
|
};
|
|
15892
|
-
|
|
15892
|
+
F.current && (Z.platform = F.current), tR(N.current, D.current, Z).then((ee) => {
|
|
15893
15893
|
const te = {
|
|
15894
15894
|
...ee,
|
|
15895
15895
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -15898,13 +15898,13 @@ function oR(e) {
|
|
|
15898
15898
|
// setting it to `true` when `open === false` (must be specified).
|
|
15899
15899
|
isPositioned: re.current !== !1
|
|
15900
15900
|
};
|
|
15901
|
-
I.current && !Ld(
|
|
15901
|
+
I.current && !Ld(z.current, te) && (z.current = te, tl.flushSync(() => {
|
|
15902
15902
|
x(te);
|
|
15903
15903
|
}));
|
|
15904
15904
|
});
|
|
15905
|
-
}, [A, a, n,
|
|
15905
|
+
}, [A, a, n, F, re]);
|
|
15906
15906
|
Sd(() => {
|
|
15907
|
-
v === !1 &&
|
|
15907
|
+
v === !1 && z.current.isPositioned && (z.current.isPositioned = !1, x((Z) => ({
|
|
15908
15908
|
...Z,
|
|
15909
15909
|
isPositioned: !1
|
|
15910
15910
|
})));
|
|
@@ -15913,21 +15913,21 @@ function oR(e) {
|
|
|
15913
15913
|
Sd(() => (I.current = !0, () => {
|
|
15914
15914
|
I.current = !1;
|
|
15915
15915
|
}), []), Sd(() => {
|
|
15916
|
-
if (
|
|
15916
|
+
if (V && (N.current = V), O && (D.current = O), V && O) {
|
|
15917
15917
|
if (X.current)
|
|
15918
|
-
return X.current(
|
|
15918
|
+
return X.current(V, O, se);
|
|
15919
15919
|
se();
|
|
15920
15920
|
}
|
|
15921
|
-
}, [
|
|
15921
|
+
}, [V, O, se, X, q]);
|
|
15922
15922
|
const ue = s.useMemo(() => ({
|
|
15923
15923
|
reference: N,
|
|
15924
15924
|
floating: D,
|
|
15925
15925
|
setReference: M,
|
|
15926
15926
|
setFloating: j
|
|
15927
15927
|
}), [M, j]), H = s.useMemo(() => ({
|
|
15928
|
-
reference:
|
|
15929
|
-
floating:
|
|
15930
|
-
}), [
|
|
15928
|
+
reference: V,
|
|
15929
|
+
floating: O
|
|
15930
|
+
}), [V, O]), G = s.useMemo(() => {
|
|
15931
15931
|
const Z = {
|
|
15932
15932
|
position: n,
|
|
15933
15933
|
left: 0,
|
|
@@ -16095,9 +16095,9 @@ var y1 = "PopperContent", [mR, gR] = aw(y1), sw = s.forwardRef(
|
|
|
16095
16095
|
updatePositionStrategy: E = "optimized",
|
|
16096
16096
|
onPlaced: T,
|
|
16097
16097
|
...C
|
|
16098
|
-
} = e, S = ow(y1, n), [k, M] = s.useState(null), j = Ue(a, (Le) => M(Le)), [
|
|
16098
|
+
} = e, S = ow(y1, n), [k, M] = s.useState(null), j = Ue(a, (Le) => M(Le)), [V, O] = s.useState(null), N = ou(V), D = (N == null ? void 0 : N.width) ?? 0, z = (N == null ? void 0 : N.height) ?? 0, q = i + (u !== "center" ? "-" + u : ""), X = typeof y == "number" ? y : { top: 0, right: 0, bottom: 0, left: 0, ...y }, F = Array.isArray(v) ? v : [v], re = F.length > 0, se = {
|
|
16099
16099
|
padding: X,
|
|
16100
|
-
boundary:
|
|
16100
|
+
boundary: F.filter(yR),
|
|
16101
16101
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
16102
16102
|
altBoundary: re
|
|
16103
16103
|
}, { refs: I, floatingStyles: ue, placement: H, isPositioned: G, middlewareData: Z } = oR({
|
|
@@ -16111,7 +16111,7 @@ var y1 = "PopperContent", [mR, gR] = aw(y1), sw = s.forwardRef(
|
|
|
16111
16111
|
reference: S.anchor
|
|
16112
16112
|
},
|
|
16113
16113
|
middleware: [
|
|
16114
|
-
iR({ mainAxis: d +
|
|
16114
|
+
iR({ mainAxis: d + z, alignmentAxis: p }),
|
|
16115
16115
|
m && lR({
|
|
16116
16116
|
mainAxis: !0,
|
|
16117
16117
|
crossAxis: !1,
|
|
@@ -16126,8 +16126,8 @@ var y1 = "PopperContent", [mR, gR] = aw(y1), sw = s.forwardRef(
|
|
|
16126
16126
|
jt.setProperty("--radix-popper-available-width", `${nt}px`), jt.setProperty("--radix-popper-available-height", `${it}px`), jt.setProperty("--radix-popper-anchor-width", `${At}px`), jt.setProperty("--radix-popper-anchor-height", `${Wt}px`);
|
|
16127
16127
|
}
|
|
16128
16128
|
}),
|
|
16129
|
-
|
|
16130
|
-
xR({ arrowWidth: D, arrowHeight:
|
|
16129
|
+
V && fR({ element: V, padding: b }),
|
|
16130
|
+
xR({ arrowWidth: D, arrowHeight: z }),
|
|
16131
16131
|
A && uR({ strategy: "referenceHidden", ...se })
|
|
16132
16132
|
]
|
|
16133
16133
|
}), [ee, te] = uw(H), L = Ya(T);
|
|
@@ -16166,7 +16166,7 @@ var y1 = "PopperContent", [mR, gR] = aw(y1), sw = s.forwardRef(
|
|
|
16166
16166
|
{
|
|
16167
16167
|
scope: n,
|
|
16168
16168
|
placedSide: ee,
|
|
16169
|
-
onArrowChange:
|
|
16169
|
+
onArrowChange: O,
|
|
16170
16170
|
arrowX: $,
|
|
16171
16171
|
arrowY: ce,
|
|
16172
16172
|
shouldHideArrow: J,
|
|
@@ -16357,11 +16357,11 @@ var jR = s.forwardRef((e, a) => {
|
|
|
16357
16357
|
defaultProp: b ?? null,
|
|
16358
16358
|
onChange: m,
|
|
16359
16359
|
caller: Ms
|
|
16360
|
-
}), [k, M] = s.useState(!1), j = Ya(v),
|
|
16360
|
+
}), [k, M] = s.useState(!1), j = Ya(v), V = fw(n), O = s.useRef(!1), [N, D] = s.useState(0);
|
|
16361
16361
|
return s.useEffect(() => {
|
|
16362
|
-
const
|
|
16363
|
-
if (
|
|
16364
|
-
return
|
|
16362
|
+
const z = A.current;
|
|
16363
|
+
if (z)
|
|
16364
|
+
return z.addEventListener(o0, j), () => z.removeEventListener(o0, j);
|
|
16365
16365
|
}, [j]), /* @__PURE__ */ c.jsx(
|
|
16366
16366
|
RR,
|
|
16367
16367
|
{
|
|
@@ -16371,16 +16371,16 @@ var jR = s.forwardRef((e, a) => {
|
|
|
16371
16371
|
loop: d,
|
|
16372
16372
|
currentTabStopId: C,
|
|
16373
16373
|
onItemFocus: s.useCallback(
|
|
16374
|
-
(
|
|
16374
|
+
(z) => S(z),
|
|
16375
16375
|
[S]
|
|
16376
16376
|
),
|
|
16377
16377
|
onItemShiftTab: s.useCallback(() => M(!0), []),
|
|
16378
16378
|
onFocusableItemAdd: s.useCallback(
|
|
16379
|
-
() => D((
|
|
16379
|
+
() => D((z) => z + 1),
|
|
16380
16380
|
[]
|
|
16381
16381
|
),
|
|
16382
16382
|
onFocusableItemRemove: s.useCallback(
|
|
16383
|
-
() => D((
|
|
16383
|
+
() => D((z) => z - 1),
|
|
16384
16384
|
[]
|
|
16385
16385
|
),
|
|
16386
16386
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -16392,20 +16392,20 @@ var jR = s.forwardRef((e, a) => {
|
|
|
16392
16392
|
ref: E,
|
|
16393
16393
|
style: { outline: "none", ...e.style },
|
|
16394
16394
|
onMouseDown: ge(e.onMouseDown, () => {
|
|
16395
|
-
|
|
16395
|
+
O.current = !0;
|
|
16396
16396
|
}),
|
|
16397
|
-
onFocus: ge(e.onFocus, (
|
|
16398
|
-
const q = !
|
|
16399
|
-
if (
|
|
16397
|
+
onFocus: ge(e.onFocus, (z) => {
|
|
16398
|
+
const q = !O.current;
|
|
16399
|
+
if (z.target === z.currentTarget && q && !k) {
|
|
16400
16400
|
const X = new CustomEvent(o0, ER);
|
|
16401
|
-
if (
|
|
16402
|
-
const
|
|
16401
|
+
if (z.currentTarget.dispatchEvent(X), !X.defaultPrevented) {
|
|
16402
|
+
const F = V().filter((H) => H.focusable), re = F.find((H) => H.active), se = F.find((H) => H.id === C), ue = [re, se, ...F].filter(
|
|
16403
16403
|
Boolean
|
|
16404
16404
|
).map((H) => H.ref.current);
|
|
16405
16405
|
mw(ue, y);
|
|
16406
16406
|
}
|
|
16407
16407
|
}
|
|
16408
|
-
|
|
16408
|
+
O.current = !1;
|
|
16409
16409
|
}),
|
|
16410
16410
|
onBlur: ge(e.onBlur, () => M(!1))
|
|
16411
16411
|
}
|
|
@@ -16453,12 +16453,12 @@ var jR = s.forwardRef((e, a) => {
|
|
|
16453
16453
|
if (k !== void 0) {
|
|
16454
16454
|
if (S.metaKey || S.ctrlKey || S.altKey || S.shiftKey) return;
|
|
16455
16455
|
S.preventDefault();
|
|
16456
|
-
let j = A().filter((
|
|
16456
|
+
let j = A().filter((V) => V.focusable).map((V) => V.ref.current);
|
|
16457
16457
|
if (k === "last") j.reverse();
|
|
16458
16458
|
else if (k === "prev" || k === "next") {
|
|
16459
16459
|
k === "prev" && j.reverse();
|
|
16460
|
-
const
|
|
16461
|
-
j = y.loop ? VR(j,
|
|
16460
|
+
const V = j.indexOf(S.currentTarget);
|
|
16461
|
+
j = y.loop ? VR(j, V + 1) : j.slice(V + 1);
|
|
16462
16462
|
}
|
|
16463
16463
|
setTimeout(() => mw(j));
|
|
16464
16464
|
}
|
|
@@ -16694,11 +16694,11 @@ var xw = GR(), l0 = function() {
|
|
|
16694
16694
|
onScrollCapture: l0,
|
|
16695
16695
|
onWheelCapture: l0,
|
|
16696
16696
|
onTouchMoveCapture: l0
|
|
16697
|
-
}), d = i[0], u = i[1], p = e.forwardProps, b = e.children, m = e.className, v = e.removeScrollBar, y = e.enabled, x = e.shards, A = e.sideCar, E = e.noRelative, T = e.noIsolation, C = e.inert, S = e.allowPinchZoom, k = e.as, M = k === void 0 ? "div" : k, j = e.gapMode,
|
|
16697
|
+
}), d = i[0], u = i[1], p = e.forwardProps, b = e.children, m = e.className, v = e.removeScrollBar, y = e.enabled, x = e.shards, A = e.sideCar, E = e.noRelative, T = e.noIsolation, C = e.inert, S = e.allowPinchZoom, k = e.as, M = k === void 0 ? "div" : k, j = e.gapMode, V = vw(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), O = A, N = ZR([n, a]), D = Wa(Wa({}, V), d);
|
|
16698
16698
|
return s.createElement(
|
|
16699
16699
|
s.Fragment,
|
|
16700
16700
|
null,
|
|
16701
|
-
y && s.createElement(
|
|
16701
|
+
y && s.createElement(O, { sideCar: xw, removeScrollBar: v, shards: x, noRelative: E, noIsolation: T, inert: C, setCallbacks: u, allowPinchZoom: !!S, lockRef: n, gapMode: j }),
|
|
16702
16702
|
p ? s.cloneElement(s.Children.only(b), Wa(Wa({}, D), { ref: N })) : s.createElement(M, Wa({}, D, { className: m, ref: N }), b)
|
|
16703
16703
|
);
|
|
16704
16704
|
});
|
|
@@ -16945,43 +16945,43 @@ function gM(e) {
|
|
|
16945
16945
|
var b = s.useCallback(function(C, S) {
|
|
16946
16946
|
if ("touches" in C && C.touches.length === 2 || C.type === "wheel" && C.ctrlKey)
|
|
16947
16947
|
return !p.current.allowPinchZoom;
|
|
16948
|
-
var k = rd(C), M = n.current, j = "deltaX" in C ? C.deltaX : M[0] - k[0],
|
|
16948
|
+
var k = rd(C), M = n.current, j = "deltaX" in C ? C.deltaX : M[0] - k[0], V = "deltaY" in C ? C.deltaY : M[1] - k[1], O, N = C.target, D = Math.abs(j) > Math.abs(V) ? "h" : "v";
|
|
16949
16949
|
if ("touches" in C && D === "h" && N.type === "range")
|
|
16950
16950
|
return !1;
|
|
16951
|
-
var
|
|
16951
|
+
var z = window.getSelection(), q = z && z.anchorNode, X = q ? q === N || q.contains(N) : !1;
|
|
16952
16952
|
if (X)
|
|
16953
16953
|
return !1;
|
|
16954
|
-
var
|
|
16955
|
-
if (!
|
|
16954
|
+
var F = iv(D, N);
|
|
16955
|
+
if (!F)
|
|
16956
16956
|
return !0;
|
|
16957
|
-
if (
|
|
16957
|
+
if (F ? O = D : (O = D === "v" ? "h" : "v", F = iv(D, N)), !F)
|
|
16958
16958
|
return !1;
|
|
16959
|
-
if (!i.current && "changedTouches" in C && (j ||
|
|
16959
|
+
if (!i.current && "changedTouches" in C && (j || V) && (i.current = O), !O)
|
|
16960
16960
|
return !0;
|
|
16961
|
-
var re = i.current ||
|
|
16962
|
-
return pM(re, S, C, re === "h" ? j :
|
|
16961
|
+
var re = i.current || O;
|
|
16962
|
+
return pM(re, S, C, re === "h" ? j : V);
|
|
16963
16963
|
}, []), m = s.useCallback(function(C) {
|
|
16964
16964
|
var S = C;
|
|
16965
16965
|
if (!(!Li.length || Li[Li.length - 1] !== u)) {
|
|
16966
|
-
var k = "deltaY" in S ? lv(S) : rd(S), M = a.current.filter(function(
|
|
16967
|
-
return
|
|
16966
|
+
var k = "deltaY" in S ? lv(S) : rd(S), M = a.current.filter(function(O) {
|
|
16967
|
+
return O.name === S.type && (O.target === S.target || S.target === O.shadowParent) && hM(O.delta, k);
|
|
16968
16968
|
})[0];
|
|
16969
16969
|
if (M && M.should) {
|
|
16970
16970
|
S.cancelable && S.preventDefault();
|
|
16971
16971
|
return;
|
|
16972
16972
|
}
|
|
16973
16973
|
if (!M) {
|
|
16974
|
-
var j = (p.current.shards || []).map(sv).filter(Boolean).filter(function(
|
|
16975
|
-
return
|
|
16976
|
-
}),
|
|
16977
|
-
|
|
16974
|
+
var j = (p.current.shards || []).map(sv).filter(Boolean).filter(function(O) {
|
|
16975
|
+
return O.contains(S.target);
|
|
16976
|
+
}), V = j.length > 0 ? b(S, j[0]) : !p.current.noIsolation;
|
|
16977
|
+
V && S.cancelable && S.preventDefault();
|
|
16978
16978
|
}
|
|
16979
16979
|
}
|
|
16980
16980
|
}, []), v = s.useCallback(function(C, S, k, M) {
|
|
16981
16981
|
var j = { name: C, delta: S, target: k, should: M, shadowParent: vM(k) };
|
|
16982
16982
|
a.current.push(j), setTimeout(function() {
|
|
16983
|
-
a.current = a.current.filter(function(
|
|
16984
|
-
return
|
|
16983
|
+
a.current = a.current.filter(function(V) {
|
|
16984
|
+
return V !== j;
|
|
16985
16985
|
});
|
|
16986
16986
|
}, 1);
|
|
16987
16987
|
}, []), y = s.useCallback(function(C) {
|
|
@@ -17134,9 +17134,9 @@ var wa = "MenuContent", [jM, C1] = In(wa), Dw = s.forwardRef(
|
|
|
17134
17134
|
onDismiss: E,
|
|
17135
17135
|
disableOutsideScroll: T,
|
|
17136
17136
|
...C
|
|
17137
|
-
} = e, S = Zn(wa, n), k = Ns(wa, n), M = du(n), j = Tw(n),
|
|
17137
|
+
} = e, S = Zn(wa, n), k = Ns(wa, n), M = du(n), j = Tw(n), V = CM(n), [O, N] = s.useState(null), D = s.useRef(null), z = Ue(a, D, S.onContentChange), q = s.useRef(0), X = s.useRef(""), F = s.useRef(0), re = s.useRef(null), se = s.useRef("right"), I = s.useRef(0), ue = T ? js : s.Fragment, H = T ? { as: zM, allowPinchZoom: !0 } : void 0, G = (ee) => {
|
|
17138
17138
|
var ne, Ae;
|
|
17139
|
-
const te = X.current + ee, L =
|
|
17139
|
+
const te = X.current + ee, L = V().filter((fe) => !fe.disabled), $ = document.activeElement, ce = (ne = L.find((fe) => fe.ref.current === $)) == null ? void 0 : ne.textValue, J = L.map((fe) => fe.textValue), he = UM(J, te, ce), pe = (Ae = L.find((fe) => fe.textValue === he)) == null ? void 0 : Ae.ref.current;
|
|
17140
17140
|
(function fe(ve) {
|
|
17141
17141
|
X.current = ve, window.clearTimeout(q.current), ve !== "" && (q.current = window.setTimeout(() => fe(""), 1e3));
|
|
17142
17142
|
})(te), pe && setTimeout(() => pe.focus());
|
|
@@ -17170,7 +17170,7 @@ var wa = "MenuContent", [jM, C1] = In(wa), Dw = s.forwardRef(
|
|
|
17170
17170
|
},
|
|
17171
17171
|
[Z]
|
|
17172
17172
|
),
|
|
17173
|
-
pointerGraceTimerRef:
|
|
17173
|
+
pointerGraceTimerRef: F,
|
|
17174
17174
|
onPointerGraceIntentChange: s.useCallback((ee) => {
|
|
17175
17175
|
re.current = ee;
|
|
17176
17176
|
}, []),
|
|
@@ -17202,7 +17202,7 @@ var wa = "MenuContent", [jM, C1] = In(wa), Dw = s.forwardRef(
|
|
|
17202
17202
|
dir: k.dir,
|
|
17203
17203
|
orientation: "vertical",
|
|
17204
17204
|
loop: i,
|
|
17205
|
-
currentTabStopId:
|
|
17205
|
+
currentTabStopId: O,
|
|
17206
17206
|
onCurrentTabStopIdChange: N,
|
|
17207
17207
|
onEntryFocus: ge(m, (ee) => {
|
|
17208
17208
|
k.isUsingKeyboardRef.current || ee.preventDefault();
|
|
@@ -17218,7 +17218,7 @@ var wa = "MenuContent", [jM, C1] = In(wa), Dw = s.forwardRef(
|
|
|
17218
17218
|
dir: k.dir,
|
|
17219
17219
|
...M,
|
|
17220
17220
|
...C,
|
|
17221
|
-
ref:
|
|
17221
|
+
ref: z,
|
|
17222
17222
|
style: { outline: "none", ...C.style },
|
|
17223
17223
|
onKeyDown: ge(C.onKeyDown, (ee) => {
|
|
17224
17224
|
const L = ee.target.closest("[data-radix-menu-content]") === ee.currentTarget, $ = ee.ctrlKey || ee.altKey || ee.metaKey, ce = ee.key.length === 1;
|
|
@@ -17226,7 +17226,7 @@ var wa = "MenuContent", [jM, C1] = In(wa), Dw = s.forwardRef(
|
|
|
17226
17226
|
const J = D.current;
|
|
17227
17227
|
if (ee.target !== J || !wM.includes(ee.key)) return;
|
|
17228
17228
|
ee.preventDefault();
|
|
17229
|
-
const pe =
|
|
17229
|
+
const pe = V().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
|
|
17230
17230
|
Ew.includes(ee.key) && pe.reverse(), ZM(pe);
|
|
17231
17231
|
}),
|
|
17232
17232
|
onBlur: ge(e.onBlur, (ee) => {
|
|
@@ -18002,8 +18002,8 @@ const zj = (e, a) => {
|
|
|
18002
18002
|
if (k) {
|
|
18003
18003
|
const D = C.substring(0, S);
|
|
18004
18004
|
M = i(D);
|
|
18005
|
-
const
|
|
18006
|
-
|
|
18005
|
+
const z = M && p[M] ? i(C) : void 0;
|
|
18006
|
+
z && z !== M && (M = z, k = !1);
|
|
18007
18007
|
} else
|
|
18008
18008
|
M = i(C);
|
|
18009
18009
|
if (!M) {
|
|
@@ -18017,14 +18017,14 @@ const zj = (e, a) => {
|
|
|
18017
18017
|
}
|
|
18018
18018
|
k = !1;
|
|
18019
18019
|
}
|
|
18020
|
-
const j = E.length === 0 ? "" : E.length === 1 ? E[0] : u(E).join(":"),
|
|
18021
|
-
if (b.indexOf(
|
|
18020
|
+
const j = E.length === 0 ? "" : E.length === 1 ? E[0] : u(E).join(":"), V = T ? j + O0 : j, O = V + M;
|
|
18021
|
+
if (b.indexOf(O) > -1)
|
|
18022
18022
|
continue;
|
|
18023
|
-
b.push(
|
|
18023
|
+
b.push(O);
|
|
18024
18024
|
const N = d(M, k);
|
|
18025
18025
|
for (let D = 0; D < N.length; ++D) {
|
|
18026
|
-
const
|
|
18027
|
-
b.push(
|
|
18026
|
+
const z = N[D];
|
|
18027
|
+
b.push(V + z);
|
|
18028
18028
|
}
|
|
18029
18029
|
v = x + (v.length > 0 ? " " + v : v);
|
|
18030
18030
|
}
|
|
@@ -18069,7 +18069,7 @@ const zj = (e, a) => {
|
|
|
18069
18069
|
const i = u8.exec(e);
|
|
18070
18070
|
return i ? i[1] ? a(i[1]) : n : !1;
|
|
18071
18071
|
}, p8 = (e) => e === "position" || e === "percentage", h8 = (e) => e === "image" || e === "url", b8 = (e) => e === "length" || e === "size" || e === "bg-size", m8 = (e) => e === "length", xD = (e) => e === "number", g8 = (e) => e === "family-name", v8 = (e) => e === "number" || e === "weight", y8 = (e) => e === "shadow", gv = () => {
|
|
18072
|
-
const e = rr("color"), a = rr("font"), n = rr("text"), i = rr("font-weight"), d = rr("tracking"), u = rr("leading"), p = rr("breakpoint"), b = rr("container"), m = rr("spacing"), v = rr("radius"), y = rr("shadow"), x = rr("inset-shadow"), A = rr("text-shadow"), E = rr("drop-shadow"), T = rr("blur"), C = rr("perspective"), S = rr("aspect"), k = rr("ease"), M = rr("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"],
|
|
18072
|
+
const e = rr("color"), a = rr("font"), n = rr("text"), i = rr("font-weight"), d = rr("tracking"), u = rr("leading"), p = rr("breakpoint"), b = rr("container"), m = rr("spacing"), v = rr("radius"), y = rr("shadow"), x = rr("inset-shadow"), A = rr("text-shadow"), E = rr("drop-shadow"), T = rr("blur"), C = rr("perspective"), S = rr("aspect"), k = rr("ease"), M = rr("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
|
|
18073
18073
|
"center",
|
|
18074
18074
|
"top",
|
|
18075
18075
|
"bottom",
|
|
@@ -18087,9 +18087,9 @@ const zj = (e, a) => {
|
|
|
18087
18087
|
"bottom-left",
|
|
18088
18088
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
18089
18089
|
"left-bottom"
|
|
18090
|
-
],
|
|
18090
|
+
], O = () => [...V(), Ce, Se], N = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], z = () => [Ce, Se, m], q = () => [qo, "full", "auto", ...z()], X = () => [Pa, "none", "subgrid", Ce, Se], F = () => ["auto", {
|
|
18091
18091
|
span: ["full", Pa, Ce, Se]
|
|
18092
|
-
}, Pa, Ce, Se], re = () => [Pa, "auto", Ce, Se], se = () => ["auto", "min", "max", "fr", Ce, Se], I = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ue = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...
|
|
18092
|
+
}, Pa, Ce, Se], re = () => [Pa, "auto", Ce, Se], se = () => ["auto", "min", "max", "fr", Ce, Se], I = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], ue = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...z()], G = () => [qo, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], Z = () => [qo, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...z()], ee = () => [qo, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...z()], te = () => [e, Ce, Se], L = () => [...V(), mv, bv, {
|
|
18093
18093
|
position: [Ce, Se]
|
|
18094
18094
|
}], $ = () => ["no-repeat", {
|
|
18095
18095
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -18110,7 +18110,7 @@ const zj = (e, a) => {
|
|
|
18110
18110
|
T,
|
|
18111
18111
|
Ce,
|
|
18112
18112
|
Se
|
|
18113
|
-
], ke = () => ["none", Ze, Ce, Se], Me = () => ["none", Ze, Ce, Se], Le = () => [Ze, Ce, Se], He = () => [qo, "full", ...
|
|
18113
|
+
], ke = () => ["none", Ze, Ce, Se], Me = () => ["none", Ze, Ce, Se], Le = () => [Ze, Ce, Se], He = () => [qo, "full", ...z()];
|
|
18114
18114
|
return {
|
|
18115
18115
|
cacheSize: 500,
|
|
18116
18116
|
theme: {
|
|
@@ -18246,7 +18246,7 @@ const zj = (e, a) => {
|
|
|
18246
18246
|
* @see https://tailwindcss.com/docs/object-position
|
|
18247
18247
|
*/
|
|
18248
18248
|
"object-position": [{
|
|
18249
|
-
object:
|
|
18249
|
+
object: O()
|
|
18250
18250
|
}],
|
|
18251
18251
|
/**
|
|
18252
18252
|
* Overflow
|
|
@@ -18404,7 +18404,7 @@ const zj = (e, a) => {
|
|
|
18404
18404
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
18405
18405
|
*/
|
|
18406
18406
|
basis: [{
|
|
18407
|
-
basis: [qo, "full", "auto", b, ...
|
|
18407
|
+
basis: [qo, "full", "auto", b, ...z()]
|
|
18408
18408
|
}],
|
|
18409
18409
|
/**
|
|
18410
18410
|
* Flex Direction
|
|
@@ -18460,7 +18460,7 @@ const zj = (e, a) => {
|
|
|
18460
18460
|
* @see https://tailwindcss.com/docs/grid-column
|
|
18461
18461
|
*/
|
|
18462
18462
|
"col-start-end": [{
|
|
18463
|
-
col:
|
|
18463
|
+
col: F()
|
|
18464
18464
|
}],
|
|
18465
18465
|
/**
|
|
18466
18466
|
* Grid Column Start
|
|
@@ -18488,7 +18488,7 @@ const zj = (e, a) => {
|
|
|
18488
18488
|
* @see https://tailwindcss.com/docs/grid-row
|
|
18489
18489
|
*/
|
|
18490
18490
|
"row-start-end": [{
|
|
18491
|
-
row:
|
|
18491
|
+
row: F()
|
|
18492
18492
|
}],
|
|
18493
18493
|
/**
|
|
18494
18494
|
* Grid Row Start
|
|
@@ -18530,21 +18530,21 @@ const zj = (e, a) => {
|
|
|
18530
18530
|
* @see https://tailwindcss.com/docs/gap
|
|
18531
18531
|
*/
|
|
18532
18532
|
gap: [{
|
|
18533
|
-
gap:
|
|
18533
|
+
gap: z()
|
|
18534
18534
|
}],
|
|
18535
18535
|
/**
|
|
18536
18536
|
* Gap X
|
|
18537
18537
|
* @see https://tailwindcss.com/docs/gap
|
|
18538
18538
|
*/
|
|
18539
18539
|
"gap-x": [{
|
|
18540
|
-
"gap-x":
|
|
18540
|
+
"gap-x": z()
|
|
18541
18541
|
}],
|
|
18542
18542
|
/**
|
|
18543
18543
|
* Gap Y
|
|
18544
18544
|
* @see https://tailwindcss.com/docs/gap
|
|
18545
18545
|
*/
|
|
18546
18546
|
"gap-y": [{
|
|
18547
|
-
"gap-y":
|
|
18547
|
+
"gap-y": z()
|
|
18548
18548
|
}],
|
|
18549
18549
|
/**
|
|
18550
18550
|
* Justify Content
|
|
@@ -18619,77 +18619,77 @@ const zj = (e, a) => {
|
|
|
18619
18619
|
* @see https://tailwindcss.com/docs/padding
|
|
18620
18620
|
*/
|
|
18621
18621
|
p: [{
|
|
18622
|
-
p:
|
|
18622
|
+
p: z()
|
|
18623
18623
|
}],
|
|
18624
18624
|
/**
|
|
18625
18625
|
* Padding Inline
|
|
18626
18626
|
* @see https://tailwindcss.com/docs/padding
|
|
18627
18627
|
*/
|
|
18628
18628
|
px: [{
|
|
18629
|
-
px:
|
|
18629
|
+
px: z()
|
|
18630
18630
|
}],
|
|
18631
18631
|
/**
|
|
18632
18632
|
* Padding Block
|
|
18633
18633
|
* @see https://tailwindcss.com/docs/padding
|
|
18634
18634
|
*/
|
|
18635
18635
|
py: [{
|
|
18636
|
-
py:
|
|
18636
|
+
py: z()
|
|
18637
18637
|
}],
|
|
18638
18638
|
/**
|
|
18639
18639
|
* Padding Inline Start
|
|
18640
18640
|
* @see https://tailwindcss.com/docs/padding
|
|
18641
18641
|
*/
|
|
18642
18642
|
ps: [{
|
|
18643
|
-
ps:
|
|
18643
|
+
ps: z()
|
|
18644
18644
|
}],
|
|
18645
18645
|
/**
|
|
18646
18646
|
* Padding Inline End
|
|
18647
18647
|
* @see https://tailwindcss.com/docs/padding
|
|
18648
18648
|
*/
|
|
18649
18649
|
pe: [{
|
|
18650
|
-
pe:
|
|
18650
|
+
pe: z()
|
|
18651
18651
|
}],
|
|
18652
18652
|
/**
|
|
18653
18653
|
* Padding Block Start
|
|
18654
18654
|
* @see https://tailwindcss.com/docs/padding
|
|
18655
18655
|
*/
|
|
18656
18656
|
pbs: [{
|
|
18657
|
-
pbs:
|
|
18657
|
+
pbs: z()
|
|
18658
18658
|
}],
|
|
18659
18659
|
/**
|
|
18660
18660
|
* Padding Block End
|
|
18661
18661
|
* @see https://tailwindcss.com/docs/padding
|
|
18662
18662
|
*/
|
|
18663
18663
|
pbe: [{
|
|
18664
|
-
pbe:
|
|
18664
|
+
pbe: z()
|
|
18665
18665
|
}],
|
|
18666
18666
|
/**
|
|
18667
18667
|
* Padding Top
|
|
18668
18668
|
* @see https://tailwindcss.com/docs/padding
|
|
18669
18669
|
*/
|
|
18670
18670
|
pt: [{
|
|
18671
|
-
pt:
|
|
18671
|
+
pt: z()
|
|
18672
18672
|
}],
|
|
18673
18673
|
/**
|
|
18674
18674
|
* Padding Right
|
|
18675
18675
|
* @see https://tailwindcss.com/docs/padding
|
|
18676
18676
|
*/
|
|
18677
18677
|
pr: [{
|
|
18678
|
-
pr:
|
|
18678
|
+
pr: z()
|
|
18679
18679
|
}],
|
|
18680
18680
|
/**
|
|
18681
18681
|
* Padding Bottom
|
|
18682
18682
|
* @see https://tailwindcss.com/docs/padding
|
|
18683
18683
|
*/
|
|
18684
18684
|
pb: [{
|
|
18685
|
-
pb:
|
|
18685
|
+
pb: z()
|
|
18686
18686
|
}],
|
|
18687
18687
|
/**
|
|
18688
18688
|
* Padding Left
|
|
18689
18689
|
* @see https://tailwindcss.com/docs/padding
|
|
18690
18690
|
*/
|
|
18691
18691
|
pl: [{
|
|
18692
|
-
pl:
|
|
18692
|
+
pl: z()
|
|
18693
18693
|
}],
|
|
18694
18694
|
/**
|
|
18695
18695
|
* Margin
|
|
@@ -18773,7 +18773,7 @@ const zj = (e, a) => {
|
|
|
18773
18773
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
18774
18774
|
*/
|
|
18775
18775
|
"space-x": [{
|
|
18776
|
-
"space-x":
|
|
18776
|
+
"space-x": z()
|
|
18777
18777
|
}],
|
|
18778
18778
|
/**
|
|
18779
18779
|
* Space Between X Reverse
|
|
@@ -18785,7 +18785,7 @@ const zj = (e, a) => {
|
|
|
18785
18785
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
18786
18786
|
*/
|
|
18787
18787
|
"space-y": [{
|
|
18788
|
-
"space-y":
|
|
18788
|
+
"space-y": z()
|
|
18789
18789
|
}],
|
|
18790
18790
|
/**
|
|
18791
18791
|
* Space Between Y Reverse
|
|
@@ -19003,7 +19003,7 @@ const zj = (e, a) => {
|
|
|
19003
19003
|
leading: [
|
|
19004
19004
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
19005
19005
|
u,
|
|
19006
|
-
...
|
|
19006
|
+
...z()
|
|
19007
19007
|
]
|
|
19008
19008
|
}],
|
|
19009
19009
|
/**
|
|
@@ -19104,7 +19104,7 @@ const zj = (e, a) => {
|
|
|
19104
19104
|
* @see https://tailwindcss.com/docs/text-indent
|
|
19105
19105
|
*/
|
|
19106
19106
|
indent: [{
|
|
19107
|
-
indent:
|
|
19107
|
+
indent: z()
|
|
19108
19108
|
}],
|
|
19109
19109
|
/**
|
|
19110
19110
|
* Tab Size
|
|
@@ -19853,7 +19853,7 @@ const zj = (e, a) => {
|
|
|
19853
19853
|
}]
|
|
19854
19854
|
}],
|
|
19855
19855
|
"mask-image-radial-pos": [{
|
|
19856
|
-
"mask-radial-at":
|
|
19856
|
+
"mask-radial-at": V()
|
|
19857
19857
|
}],
|
|
19858
19858
|
"mask-image-conic-pos": [{
|
|
19859
19859
|
"mask-conic": [Ze]
|
|
@@ -20103,21 +20103,21 @@ const zj = (e, a) => {
|
|
|
20103
20103
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
20104
20104
|
*/
|
|
20105
20105
|
"border-spacing": [{
|
|
20106
|
-
"border-spacing":
|
|
20106
|
+
"border-spacing": z()
|
|
20107
20107
|
}],
|
|
20108
20108
|
/**
|
|
20109
20109
|
* Border Spacing X
|
|
20110
20110
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
20111
20111
|
*/
|
|
20112
20112
|
"border-spacing-x": [{
|
|
20113
|
-
"border-spacing-x":
|
|
20113
|
+
"border-spacing-x": z()
|
|
20114
20114
|
}],
|
|
20115
20115
|
/**
|
|
20116
20116
|
* Border Spacing Y
|
|
20117
20117
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
20118
20118
|
*/
|
|
20119
20119
|
"border-spacing-y": [{
|
|
20120
|
-
"border-spacing-y":
|
|
20120
|
+
"border-spacing-y": z()
|
|
20121
20121
|
}],
|
|
20122
20122
|
/**
|
|
20123
20123
|
* Table Layout
|
|
@@ -20200,7 +20200,7 @@ const zj = (e, a) => {
|
|
|
20200
20200
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
20201
20201
|
*/
|
|
20202
20202
|
"perspective-origin": [{
|
|
20203
|
-
"perspective-origin":
|
|
20203
|
+
"perspective-origin": O()
|
|
20204
20204
|
}],
|
|
20205
20205
|
/**
|
|
20206
20206
|
* Rotate
|
|
@@ -20296,7 +20296,7 @@ const zj = (e, a) => {
|
|
|
20296
20296
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
20297
20297
|
*/
|
|
20298
20298
|
"transform-origin": [{
|
|
20299
|
-
origin:
|
|
20299
|
+
origin: O()
|
|
20300
20300
|
}],
|
|
20301
20301
|
/**
|
|
20302
20302
|
* Transform Style
|
|
@@ -20444,154 +20444,154 @@ const zj = (e, a) => {
|
|
|
20444
20444
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20445
20445
|
*/
|
|
20446
20446
|
"scroll-m": [{
|
|
20447
|
-
"scroll-m":
|
|
20447
|
+
"scroll-m": z()
|
|
20448
20448
|
}],
|
|
20449
20449
|
/**
|
|
20450
20450
|
* Scroll Margin Inline
|
|
20451
20451
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20452
20452
|
*/
|
|
20453
20453
|
"scroll-mx": [{
|
|
20454
|
-
"scroll-mx":
|
|
20454
|
+
"scroll-mx": z()
|
|
20455
20455
|
}],
|
|
20456
20456
|
/**
|
|
20457
20457
|
* Scroll Margin Block
|
|
20458
20458
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20459
20459
|
*/
|
|
20460
20460
|
"scroll-my": [{
|
|
20461
|
-
"scroll-my":
|
|
20461
|
+
"scroll-my": z()
|
|
20462
20462
|
}],
|
|
20463
20463
|
/**
|
|
20464
20464
|
* Scroll Margin Inline Start
|
|
20465
20465
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20466
20466
|
*/
|
|
20467
20467
|
"scroll-ms": [{
|
|
20468
|
-
"scroll-ms":
|
|
20468
|
+
"scroll-ms": z()
|
|
20469
20469
|
}],
|
|
20470
20470
|
/**
|
|
20471
20471
|
* Scroll Margin Inline End
|
|
20472
20472
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20473
20473
|
*/
|
|
20474
20474
|
"scroll-me": [{
|
|
20475
|
-
"scroll-me":
|
|
20475
|
+
"scroll-me": z()
|
|
20476
20476
|
}],
|
|
20477
20477
|
/**
|
|
20478
20478
|
* Scroll Margin Block Start
|
|
20479
20479
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20480
20480
|
*/
|
|
20481
20481
|
"scroll-mbs": [{
|
|
20482
|
-
"scroll-mbs":
|
|
20482
|
+
"scroll-mbs": z()
|
|
20483
20483
|
}],
|
|
20484
20484
|
/**
|
|
20485
20485
|
* Scroll Margin Block End
|
|
20486
20486
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20487
20487
|
*/
|
|
20488
20488
|
"scroll-mbe": [{
|
|
20489
|
-
"scroll-mbe":
|
|
20489
|
+
"scroll-mbe": z()
|
|
20490
20490
|
}],
|
|
20491
20491
|
/**
|
|
20492
20492
|
* Scroll Margin Top
|
|
20493
20493
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20494
20494
|
*/
|
|
20495
20495
|
"scroll-mt": [{
|
|
20496
|
-
"scroll-mt":
|
|
20496
|
+
"scroll-mt": z()
|
|
20497
20497
|
}],
|
|
20498
20498
|
/**
|
|
20499
20499
|
* Scroll Margin Right
|
|
20500
20500
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20501
20501
|
*/
|
|
20502
20502
|
"scroll-mr": [{
|
|
20503
|
-
"scroll-mr":
|
|
20503
|
+
"scroll-mr": z()
|
|
20504
20504
|
}],
|
|
20505
20505
|
/**
|
|
20506
20506
|
* Scroll Margin Bottom
|
|
20507
20507
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20508
20508
|
*/
|
|
20509
20509
|
"scroll-mb": [{
|
|
20510
|
-
"scroll-mb":
|
|
20510
|
+
"scroll-mb": z()
|
|
20511
20511
|
}],
|
|
20512
20512
|
/**
|
|
20513
20513
|
* Scroll Margin Left
|
|
20514
20514
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
20515
20515
|
*/
|
|
20516
20516
|
"scroll-ml": [{
|
|
20517
|
-
"scroll-ml":
|
|
20517
|
+
"scroll-ml": z()
|
|
20518
20518
|
}],
|
|
20519
20519
|
/**
|
|
20520
20520
|
* Scroll Padding
|
|
20521
20521
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20522
20522
|
*/
|
|
20523
20523
|
"scroll-p": [{
|
|
20524
|
-
"scroll-p":
|
|
20524
|
+
"scroll-p": z()
|
|
20525
20525
|
}],
|
|
20526
20526
|
/**
|
|
20527
20527
|
* Scroll Padding Inline
|
|
20528
20528
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20529
20529
|
*/
|
|
20530
20530
|
"scroll-px": [{
|
|
20531
|
-
"scroll-px":
|
|
20531
|
+
"scroll-px": z()
|
|
20532
20532
|
}],
|
|
20533
20533
|
/**
|
|
20534
20534
|
* Scroll Padding Block
|
|
20535
20535
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20536
20536
|
*/
|
|
20537
20537
|
"scroll-py": [{
|
|
20538
|
-
"scroll-py":
|
|
20538
|
+
"scroll-py": z()
|
|
20539
20539
|
}],
|
|
20540
20540
|
/**
|
|
20541
20541
|
* Scroll Padding Inline Start
|
|
20542
20542
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20543
20543
|
*/
|
|
20544
20544
|
"scroll-ps": [{
|
|
20545
|
-
"scroll-ps":
|
|
20545
|
+
"scroll-ps": z()
|
|
20546
20546
|
}],
|
|
20547
20547
|
/**
|
|
20548
20548
|
* Scroll Padding Inline End
|
|
20549
20549
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20550
20550
|
*/
|
|
20551
20551
|
"scroll-pe": [{
|
|
20552
|
-
"scroll-pe":
|
|
20552
|
+
"scroll-pe": z()
|
|
20553
20553
|
}],
|
|
20554
20554
|
/**
|
|
20555
20555
|
* Scroll Padding Block Start
|
|
20556
20556
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20557
20557
|
*/
|
|
20558
20558
|
"scroll-pbs": [{
|
|
20559
|
-
"scroll-pbs":
|
|
20559
|
+
"scroll-pbs": z()
|
|
20560
20560
|
}],
|
|
20561
20561
|
/**
|
|
20562
20562
|
* Scroll Padding Block End
|
|
20563
20563
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20564
20564
|
*/
|
|
20565
20565
|
"scroll-pbe": [{
|
|
20566
|
-
"scroll-pbe":
|
|
20566
|
+
"scroll-pbe": z()
|
|
20567
20567
|
}],
|
|
20568
20568
|
/**
|
|
20569
20569
|
* Scroll Padding Top
|
|
20570
20570
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20571
20571
|
*/
|
|
20572
20572
|
"scroll-pt": [{
|
|
20573
|
-
"scroll-pt":
|
|
20573
|
+
"scroll-pt": z()
|
|
20574
20574
|
}],
|
|
20575
20575
|
/**
|
|
20576
20576
|
* Scroll Padding Right
|
|
20577
20577
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20578
20578
|
*/
|
|
20579
20579
|
"scroll-pr": [{
|
|
20580
|
-
"scroll-pr":
|
|
20580
|
+
"scroll-pr": z()
|
|
20581
20581
|
}],
|
|
20582
20582
|
/**
|
|
20583
20583
|
* Scroll Padding Bottom
|
|
20584
20584
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20585
20585
|
*/
|
|
20586
20586
|
"scroll-pb": [{
|
|
20587
|
-
"scroll-pb":
|
|
20587
|
+
"scroll-pb": z()
|
|
20588
20588
|
}],
|
|
20589
20589
|
/**
|
|
20590
20590
|
* Scroll Padding Left
|
|
20591
20591
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
20592
20592
|
*/
|
|
20593
20593
|
"scroll-pl": [{
|
|
20594
|
-
"scroll-pl":
|
|
20594
|
+
"scroll-pl": z()
|
|
20595
20595
|
}],
|
|
20596
20596
|
/**
|
|
20597
20597
|
* Scroll Snap Align
|
|
@@ -21661,66 +21661,67 @@ const EN = /* @__PURE__ */ g("form", {
|
|
|
21661
21661
|
value: a,
|
|
21662
21662
|
onValueChange: n,
|
|
21663
21663
|
onSubmit: i,
|
|
21664
|
-
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21664
|
+
canSubmit: d,
|
|
21665
|
+
loading: u,
|
|
21666
|
+
disabled: p,
|
|
21667
|
+
size: b = "md",
|
|
21668
|
+
attachmentSlot: m,
|
|
21669
|
+
actionSlot: v,
|
|
21670
|
+
autoHeight: y = !1,
|
|
21671
|
+
compactPadding: x,
|
|
21672
|
+
compactActionButtonSize: A,
|
|
21673
|
+
placeholderVariant: E = "default",
|
|
21674
|
+
textareaClassName: T,
|
|
21675
|
+
sendButtonClassName: C,
|
|
21676
|
+
placeholder: S = "Ask me anything",
|
|
21677
|
+
...k
|
|
21678
|
+
}, M) => {
|
|
21679
|
+
const j = b === "sm", V = j ? 14 : 18, O = j ? "xs" : "sm", N = d ?? a.trim() !== "", D = (z) => {
|
|
21680
|
+
z.preventDefault(), !p && !u && N && (i == null || i());
|
|
21680
21681
|
};
|
|
21681
|
-
return /* @__PURE__ */ c.jsxs(EN, { onSubmit:
|
|
21682
|
-
|
|
21682
|
+
return /* @__PURE__ */ c.jsxs(EN, { onSubmit: D, ownerState: { compact: j, autoHeight: y, compactPadding: x }, className: e, children: [
|
|
21683
|
+
m ?? /* @__PURE__ */ c.jsx(
|
|
21683
21684
|
TN,
|
|
21684
21685
|
{
|
|
21685
21686
|
"aria-label": "Attach file",
|
|
21686
21687
|
type: "button",
|
|
21687
|
-
icon: /* @__PURE__ */ c.jsx(ls, { size:
|
|
21688
|
-
variant:
|
|
21689
|
-
size:
|
|
21690
|
-
ownerState: { compact:
|
|
21691
|
-
disabled:
|
|
21688
|
+
icon: /* @__PURE__ */ c.jsx(ls, { size: V }),
|
|
21689
|
+
variant: j ? "secondary" : "ghost",
|
|
21690
|
+
size: O,
|
|
21691
|
+
ownerState: { compact: j },
|
|
21692
|
+
disabled: p
|
|
21692
21693
|
}
|
|
21693
21694
|
),
|
|
21694
21695
|
/* @__PURE__ */ c.jsx(
|
|
21695
21696
|
kN,
|
|
21696
21697
|
{
|
|
21697
|
-
ref:
|
|
21698
|
+
ref: M,
|
|
21698
21699
|
value: a,
|
|
21699
|
-
disabled:
|
|
21700
|
-
placeholder:
|
|
21700
|
+
disabled: p,
|
|
21701
|
+
placeholder: S,
|
|
21701
21702
|
rows: 1,
|
|
21702
|
-
ownerState: { compact:
|
|
21703
|
-
className:
|
|
21704
|
-
onChange: (
|
|
21705
|
-
onKeyDown: (
|
|
21706
|
-
|
|
21703
|
+
ownerState: { compact: j, placeholderVariant: E },
|
|
21704
|
+
className: T,
|
|
21705
|
+
onChange: (z) => n(z.target.value),
|
|
21706
|
+
onKeyDown: (z) => {
|
|
21707
|
+
z.key === "Enter" && !z.shiftKey && (z.preventDefault(), N && (i == null || i()));
|
|
21707
21708
|
},
|
|
21708
|
-
...
|
|
21709
|
+
...k
|
|
21709
21710
|
}
|
|
21710
21711
|
),
|
|
21711
|
-
|
|
21712
|
+
v,
|
|
21712
21713
|
/* @__PURE__ */ c.jsx(
|
|
21713
21714
|
RN,
|
|
21714
21715
|
{
|
|
21715
21716
|
"aria-label": "Send message",
|
|
21716
21717
|
type: "submit",
|
|
21717
|
-
icon: /* @__PURE__ */ c.jsx(_y, { size:
|
|
21718
|
+
icon: /* @__PURE__ */ c.jsx(_y, { size: V, weight: "bold" }),
|
|
21718
21719
|
variant: "primary",
|
|
21719
|
-
size:
|
|
21720
|
-
ownerState: { compact:
|
|
21721
|
-
className:
|
|
21722
|
-
loading:
|
|
21723
|
-
disabled:
|
|
21720
|
+
size: O,
|
|
21721
|
+
ownerState: { compact: j, compactActionButtonSize: A },
|
|
21722
|
+
className: C,
|
|
21723
|
+
loading: u,
|
|
21724
|
+
disabled: p || !N
|
|
21724
21725
|
}
|
|
21725
21726
|
)
|
|
21726
21727
|
] });
|
|
@@ -21754,7 +21755,7 @@ function DN(e) {
|
|
|
21754
21755
|
}), [T, C] = s.useState(null), [S, k] = s.useState(null), M = s.useRef(!1), j = T ? !!p || !!T.closest("form") : (
|
|
21755
21756
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
21756
21757
|
!0
|
|
21757
|
-
),
|
|
21758
|
+
), V = {
|
|
21758
21759
|
checked: A,
|
|
21759
21760
|
disabled: u,
|
|
21760
21761
|
setChecked: E,
|
|
@@ -21774,8 +21775,8 @@ function DN(e) {
|
|
|
21774
21775
|
jN,
|
|
21775
21776
|
{
|
|
21776
21777
|
scope: a,
|
|
21777
|
-
...
|
|
21778
|
-
children: NN(x) ? x(
|
|
21778
|
+
...V,
|
|
21779
|
+
children: NN(x) ? x(V) : i
|
|
21779
21780
|
}
|
|
21780
21781
|
);
|
|
21781
21782
|
}
|
|
@@ -21910,13 +21911,13 @@ var D8 = "CheckboxBubbleInput", N8 = s.forwardRef(
|
|
|
21910
21911
|
s.useEffect(() => {
|
|
21911
21912
|
const M = A;
|
|
21912
21913
|
if (!M) return;
|
|
21913
|
-
const j = window.HTMLInputElement.prototype,
|
|
21914
|
+
const j = window.HTMLInputElement.prototype, O = Object.getOwnPropertyDescriptor(
|
|
21914
21915
|
j,
|
|
21915
21916
|
"checked"
|
|
21916
21917
|
).set, N = !d.current;
|
|
21917
|
-
if (C !== u &&
|
|
21918
|
+
if (C !== u && O) {
|
|
21918
21919
|
const D = new Event("click", { bubbles: N });
|
|
21919
|
-
M.indeterminate = Jo(u),
|
|
21920
|
+
M.indeterminate = Jo(u), O.call(M, Jo(u) ? !1 : u), M.dispatchEvent(D);
|
|
21920
21921
|
}
|
|
21921
21922
|
}, [A, C, u, d]);
|
|
21922
21923
|
const k = s.useRef(Jo(u) ? !1 : u);
|
|
@@ -22259,7 +22260,7 @@ const FN = /^#[0-9a-fA-F]{6}$/, PN = /* @__PURE__ */ g("div", {
|
|
|
22259
22260
|
"aria-invalid": T,
|
|
22260
22261
|
...C
|
|
22261
22262
|
}, S) => {
|
|
22262
|
-
const k = s.useId(), M = u ?? k, j = v ? `${M}-helper` : void 0,
|
|
22263
|
+
const k = s.useId(), M = u ?? k, j = v ? `${M}-helper` : void 0, V = y ? `${M}-error` : void 0, O = [E, j, V].filter(Boolean).join(" ") || void 0, N = !!y;
|
|
22263
22264
|
return /* @__PURE__ */ c.jsxs(PN, { className: rn(a, e) || void 0, children: [
|
|
22264
22265
|
m && /* @__PURE__ */ c.jsx(IN, { htmlFor: M, ownerState: { disabled: !!x }, className: n, children: m }),
|
|
22265
22266
|
/* @__PURE__ */ c.jsxs(YN, { ownerState: { size: A, invalid: N, disabled: !!x }, children: [
|
|
@@ -22271,7 +22272,7 @@ const FN = /^#[0-9a-fA-F]{6}$/, PN = /* @__PURE__ */ g("div", {
|
|
|
22271
22272
|
type: "color",
|
|
22272
22273
|
value: ez(p),
|
|
22273
22274
|
disabled: x,
|
|
22274
|
-
"aria-describedby":
|
|
22275
|
+
"aria-describedby": O,
|
|
22275
22276
|
"aria-invalid": T ?? N,
|
|
22276
22277
|
ownerState: { size: A },
|
|
22277
22278
|
className: d,
|
|
@@ -22286,7 +22287,7 @@ const FN = /^#[0-9a-fA-F]{6}$/, PN = /* @__PURE__ */ g("div", {
|
|
|
22286
22287
|
value: p,
|
|
22287
22288
|
disabled: x,
|
|
22288
22289
|
"aria-label": typeof m == "string" ? `${m} hex value` : "Hex color value",
|
|
22289
|
-
"aria-describedby":
|
|
22290
|
+
"aria-describedby": O,
|
|
22290
22291
|
"aria-invalid": T ?? N,
|
|
22291
22292
|
className: i,
|
|
22292
22293
|
spellCheck: !1,
|
|
@@ -22294,7 +22295,7 @@ const FN = /^#[0-9a-fA-F]{6}$/, PN = /* @__PURE__ */ g("div", {
|
|
|
22294
22295
|
}
|
|
22295
22296
|
)
|
|
22296
22297
|
] }),
|
|
22297
|
-
y ? /* @__PURE__ */ c.jsx(QN, { id:
|
|
22298
|
+
y ? /* @__PURE__ */ c.jsx(QN, { id: V, children: y }) : v ? /* @__PURE__ */ c.jsx(JN, { id: j, children: v }) : null
|
|
22298
22299
|
] });
|
|
22299
22300
|
}
|
|
22300
22301
|
);
|
|
@@ -24142,14 +24143,14 @@ function FV({
|
|
|
24142
24143
|
enableColumnPinning: k = !0,
|
|
24143
24144
|
pinnedColumnCount: M,
|
|
24144
24145
|
defaultPinnedColumnCount: j = 0,
|
|
24145
|
-
onPinnedColumnCountChange:
|
|
24146
|
-
pinLeadingColumn:
|
|
24146
|
+
onPinnedColumnCountChange: V,
|
|
24147
|
+
pinLeadingColumn: O,
|
|
24147
24148
|
defaultPinLeadingColumn: N = !1,
|
|
24148
24149
|
onPinLeadingColumnChange: D,
|
|
24149
|
-
enableColumnReordering:
|
|
24150
|
+
enableColumnReordering: z = !0,
|
|
24150
24151
|
resetKey: q,
|
|
24151
24152
|
showSortIcon: X = "always",
|
|
24152
|
-
leadingColumn:
|
|
24153
|
+
leadingColumn: F,
|
|
24153
24154
|
rowActions: re,
|
|
24154
24155
|
rowActionsHeader: se = "Actions",
|
|
24155
24156
|
rowActionsWidth: I = vV,
|
|
@@ -24176,7 +24177,7 @@ function FV({
|
|
|
24176
24177
|
s.useEffect(() => {
|
|
24177
24178
|
T === void 0 && At((de) => b0(de, Ct));
|
|
24178
24179
|
}, [Ct, T]), s.useEffect(() => {
|
|
24179
|
-
q !== void 0 && (y === void 0 && nt(x), T === void 0 && At(b0(C ?? Ct, Ct)), M === void 0 && jt(j),
|
|
24180
|
+
q !== void 0 && (y === void 0 && nt(x), T === void 0 && At(b0(C ?? Ct, Ct)), M === void 0 && jt(j), O === void 0 && Ot(N), Je(null), Ut(null));
|
|
24180
24181
|
}, [
|
|
24181
24182
|
Ct,
|
|
24182
24183
|
T,
|
|
@@ -24184,7 +24185,7 @@ function FV({
|
|
|
24184
24185
|
j,
|
|
24185
24186
|
N,
|
|
24186
24187
|
x,
|
|
24187
|
-
|
|
24188
|
+
O,
|
|
24188
24189
|
M,
|
|
24189
24190
|
q,
|
|
24190
24191
|
y
|
|
@@ -24199,7 +24200,7 @@ function FV({
|
|
|
24199
24200
|
), et = k ? Math.min(
|
|
24200
24201
|
De.length,
|
|
24201
24202
|
Math.max(0, M === void 0 ? Wt : M)
|
|
24202
|
-
) : 0, er = !!
|
|
24203
|
+
) : 0, er = !!F && ((k && F ? O === void 0 ? zt : O : !1) || et > 0), Rr = er && et === 0, tt = !!(H && !F), cr = tt && et > 0, Ur = Vv((F == null ? void 0 : F.width) ?? (F == null ? void 0 : F.minWidth), f0), dr = (be == null ? void 0 : be.columns.length) === De.length ? be.columns : void 0, La = m0(be == null ? void 0 : be.selection, zn), Gr = m0(be == null ? void 0 : be.leading, Ur), Dt = (cr ? La : 0) + (er ? Gr : 0), Qa = De.length + (tt ? 1 : 0) + (F ? 1 : 0) + (re ? 1 : 0), Ha = (de, we) => (n == null ? void 0 : n(de, we)) ?? String(de.id ?? we), Mr = s.useCallback(() => {
|
|
24203
24204
|
var Pt, lt;
|
|
24204
24205
|
const de = (lt = (Pt = Le.current) == null ? void 0 : Pt.tHead) == null ? void 0 : lt.rows[0];
|
|
24205
24206
|
if (!de) return;
|
|
@@ -24210,12 +24211,12 @@ function FV({
|
|
|
24210
24211
|
return _V(((gt = we[Ye++]) == null ? void 0 : gt.getBoundingClientRect().width) ?? 0);
|
|
24211
24212
|
}, Et = {
|
|
24212
24213
|
selection: tt ? Ie() : 0,
|
|
24213
|
-
leading:
|
|
24214
|
+
leading: F ? Ie() : 0,
|
|
24214
24215
|
columns: De.map(() => Ie()),
|
|
24215
24216
|
rowActions: re ? Ie() : 0
|
|
24216
24217
|
};
|
|
24217
24218
|
Re((gt) => OV(gt, Et) ? gt : Et);
|
|
24218
|
-
}, [De, tt,
|
|
24219
|
+
}, [De, tt, F, re]);
|
|
24219
24220
|
Rv(() => {
|
|
24220
24221
|
Mr();
|
|
24221
24222
|
}), Rv(() => {
|
|
@@ -24240,9 +24241,9 @@ function FV({
|
|
|
24240
24241
|
T === void 0 && At(de), S == null || S(de);
|
|
24241
24242
|
}, Pe = (de) => {
|
|
24242
24243
|
const we = Math.min(De.length, Math.max(0, de));
|
|
24243
|
-
M === void 0 && jt(we),
|
|
24244
|
+
M === void 0 && jt(we), V == null || V(we);
|
|
24244
24245
|
}, Ht = (de) => {
|
|
24245
|
-
|
|
24246
|
+
O === void 0 && Ot(de), D == null || D(de);
|
|
24246
24247
|
}, jr = () => {
|
|
24247
24248
|
Z && Z(la ? [] : $r.map((de, we) => Ha(de, we)));
|
|
24248
24249
|
}, Co = (de) => {
|
|
@@ -24253,12 +24254,12 @@ function FV({
|
|
|
24253
24254
|
we += m0(dr == null ? void 0 : dr[Ye], pt[Ye] ?? Mv);
|
|
24254
24255
|
return we;
|
|
24255
24256
|
}, Ft = (de, we) => {
|
|
24256
|
-
|
|
24257
|
+
z && (Je(we), de.dataTransfer.effectAllowed = "move");
|
|
24257
24258
|
}, $t = (de, we) => {
|
|
24258
|
-
|
|
24259
|
+
z && (de.preventDefault(), Ut(we));
|
|
24259
24260
|
}, xe = (de, we) => {
|
|
24260
24261
|
var Et, Pt;
|
|
24261
|
-
if (!
|
|
24262
|
+
if (!z) return;
|
|
24262
24263
|
if (de.preventDefault(), St === null || St === we) {
|
|
24263
24264
|
Je(null), Ut(null);
|
|
24264
24265
|
return;
|
|
@@ -24296,21 +24297,21 @@ function FV({
|
|
|
24296
24297
|
children: /* @__PURE__ */ c.jsx(Nv, { children: /* @__PURE__ */ c.jsx(dd, { type: "checkbox", checked: la, onChange: jr, "aria-label": "Select all rows" }) })
|
|
24297
24298
|
}
|
|
24298
24299
|
),
|
|
24299
|
-
|
|
24300
|
+
F && /* @__PURE__ */ c.jsx(
|
|
24300
24301
|
sd,
|
|
24301
24302
|
{
|
|
24302
24303
|
scope: "col",
|
|
24303
24304
|
ownerState: { kind: "leading", edgeShadow: Rr },
|
|
24304
|
-
className:
|
|
24305
|
+
className: F.headerClassName,
|
|
24305
24306
|
style: {
|
|
24306
|
-
width:
|
|
24307
|
-
minWidth:
|
|
24307
|
+
width: F.width,
|
|
24308
|
+
minWidth: F.minWidth ?? F.width ?? f0,
|
|
24308
24309
|
...er ? mt(cr ? zn : 0, 23) : {},
|
|
24309
|
-
...
|
|
24310
|
+
...F.headerStyle
|
|
24310
24311
|
},
|
|
24311
24312
|
children: /* @__PURE__ */ c.jsxs(jv, { ownerState: { wide: !0 }, children: [
|
|
24312
24313
|
H && /* @__PURE__ */ c.jsx(dd, { type: "checkbox", checked: la, onChange: jr, "aria-label": "Select all rows" }),
|
|
24313
|
-
/* @__PURE__ */ c.jsx(h0, { ownerState: { overflow: L }, children:
|
|
24314
|
+
/* @__PURE__ */ c.jsx(h0, { ownerState: { overflow: L }, children: F.header }),
|
|
24314
24315
|
k && /* @__PURE__ */ c.jsx(
|
|
24315
24316
|
Dv,
|
|
24316
24317
|
{
|
|
@@ -24352,7 +24353,7 @@ function FV({
|
|
|
24352
24353
|
{
|
|
24353
24354
|
scope: "col",
|
|
24354
24355
|
"aria-sort": lt ? Ye ? Ve.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
24355
|
-
draggable:
|
|
24356
|
+
draggable: z,
|
|
24356
24357
|
onDragStart: (ur) => Ft(ur, we),
|
|
24357
24358
|
onDragOver: (ur) => $t(ur, we),
|
|
24358
24359
|
onDrop: (ur) => xe(ur, we),
|
|
@@ -24363,7 +24364,7 @@ function FV({
|
|
|
24363
24364
|
kind: "data",
|
|
24364
24365
|
sortable: !!lt,
|
|
24365
24366
|
sorted: !!Ye,
|
|
24366
|
-
reorderable:
|
|
24367
|
+
reorderable: z,
|
|
24367
24368
|
dropTarget: Oe === we,
|
|
24368
24369
|
edgeShadow: Ie && Et
|
|
24369
24370
|
},
|
|
@@ -24411,21 +24412,21 @@ function FV({
|
|
|
24411
24412
|
children: /* @__PURE__ */ c.jsx(Nv, { children: /* @__PURE__ */ c.jsx(dd, { type: "checkbox", checked: Ie, onChange: () => Co(Ye), "aria-label": `Select row ${we + 1}` }) })
|
|
24412
24413
|
}
|
|
24413
24414
|
),
|
|
24414
|
-
|
|
24415
|
+
F && /* @__PURE__ */ c.jsx(
|
|
24415
24416
|
cd,
|
|
24416
24417
|
{
|
|
24417
24418
|
ownerState: { kind: "leading", selected: Ie, cellTextSize: $, edgeShadow: Rr },
|
|
24418
|
-
className:
|
|
24419
|
+
className: F.className,
|
|
24419
24420
|
style: {
|
|
24420
|
-
width:
|
|
24421
|
-
minWidth:
|
|
24421
|
+
width: F.width,
|
|
24422
|
+
minWidth: F.minWidth ?? F.width ?? f0,
|
|
24422
24423
|
...er ? or(cr ? zn : 0, 13) : {},
|
|
24423
|
-
...
|
|
24424
|
+
...F.style
|
|
24424
24425
|
},
|
|
24425
24426
|
onClick: H ? (gt) => gt.stopPropagation() : void 0,
|
|
24426
24427
|
children: /* @__PURE__ */ c.jsxs(VV, { children: [
|
|
24427
24428
|
H && /* @__PURE__ */ c.jsx(dd, { type: "checkbox", checked: Ie, onChange: () => Co(Ye), "aria-label": `Select row ${we + 1}` }),
|
|
24428
|
-
/* @__PURE__ */ c.jsx(LV, { children:
|
|
24429
|
+
/* @__PURE__ */ c.jsx(LV, { children: F.cell(de, lt) })
|
|
24429
24430
|
] })
|
|
24430
24431
|
}
|
|
24431
24432
|
),
|
|
@@ -25084,11 +25085,11 @@ function zL(e, a, n) {
|
|
|
25084
25085
|
element_name: N,
|
|
25085
25086
|
element_type: "modal",
|
|
25086
25087
|
close_method: D
|
|
25087
|
-
}),
|
|
25088
|
+
}), V = (N) => Ko(d, "form_submitted", {
|
|
25088
25089
|
element_name: N,
|
|
25089
25090
|
element_type: "form",
|
|
25090
25091
|
parent_element: p ?? y
|
|
25091
|
-
}),
|
|
25092
|
+
}), O = (N) => Ko(d, "dropdown_option_selected", {
|
|
25092
25093
|
element_name: y,
|
|
25093
25094
|
element_type: "dropdown",
|
|
25094
25095
|
selected_option: N,
|
|
@@ -25098,20 +25099,20 @@ function zL(e, a, n) {
|
|
|
25098
25099
|
return {
|
|
25099
25100
|
// `selected_option` is which KIND of view was applied, never its name: a
|
|
25100
25101
|
// saved view's name is the seller's own words.
|
|
25101
|
-
viewSelected: () =>
|
|
25102
|
-
defaultViewSelected: () =>
|
|
25102
|
+
viewSelected: () => O("saved_view"),
|
|
25103
|
+
defaultViewSelected: () => O("default_view"),
|
|
25103
25104
|
setPrimary: () => k(C, "set_primary"),
|
|
25104
25105
|
unsetPrimary: () => k(S, "unset_primary"),
|
|
25105
25106
|
renameOpened: () => M(A),
|
|
25106
25107
|
renameDismissed: (N) => j(A, N),
|
|
25107
|
-
renameSubmitted: () =>
|
|
25108
|
+
renameSubmitted: () => V(A),
|
|
25108
25109
|
deleteOpened: () => M(E),
|
|
25109
25110
|
deleteDismissed: (N) => j(E, N),
|
|
25110
25111
|
deleteConfirmed: () => k(E, "delete"),
|
|
25111
25112
|
resetFilters: () => k(T, "reset"),
|
|
25112
25113
|
saveOpened: () => M(x),
|
|
25113
25114
|
saveDismissed: (N) => j(x, N),
|
|
25114
|
-
saveSubmitted: () =>
|
|
25115
|
+
saveSubmitted: () => V(x),
|
|
25115
25116
|
saveCompleted: () => {
|
|
25116
25117
|
v && Ko(d, "workflow_completed", { flow_name: v, result_state: "success" });
|
|
25117
25118
|
},
|
|
@@ -25359,26 +25360,26 @@ function j6(e, a = {}, n) {
|
|
|
25359
25360
|
// stable state (the selector's "Default"/no-view state), not something to
|
|
25360
25361
|
// paper over by promoting whichever view happens to come first.
|
|
25361
25362
|
N.map(
|
|
25362
|
-
(D,
|
|
25363
|
+
(D, z) => ud(D, {
|
|
25363
25364
|
view_id: D.view_id || Fv(),
|
|
25364
|
-
name: D.name || `View ${
|
|
25365
|
+
name: D.name || `View ${z + 1}`,
|
|
25365
25366
|
view_type: e,
|
|
25366
25367
|
tab: u == null ? void 0 : u.tab,
|
|
25367
25368
|
columns: D.columns ?? [],
|
|
25368
25369
|
filters: D.filters ?? [],
|
|
25369
|
-
priority: D.priority ??
|
|
25370
|
+
priority: D.priority ?? z,
|
|
25370
25371
|
is_default: !!D.is_default,
|
|
25371
25372
|
is_system_defined: !!D.is_system_defined
|
|
25372
25373
|
})
|
|
25373
25374
|
)
|
|
25374
25375
|
), k = (N, D = !1) => {
|
|
25375
|
-
const
|
|
25376
|
-
return WL(
|
|
25376
|
+
const z = E(), q = S(N);
|
|
25377
|
+
return WL(z, q) || C(q, D), q;
|
|
25377
25378
|
}, M = () => {
|
|
25378
25379
|
if (!b || !x || !y) return Promise.resolve(E());
|
|
25379
25380
|
const N = fd.get(x);
|
|
25380
25381
|
if (N) return N;
|
|
25381
|
-
const D = A(),
|
|
25382
|
+
const D = A(), z = b().then((q) => {
|
|
25382
25383
|
const X = k(q, !0);
|
|
25383
25384
|
return OL(x, { scope: y, fingerprint: D, views: X }), X;
|
|
25384
25385
|
}).catch((q) => {
|
|
@@ -25387,45 +25388,45 @@ function j6(e, a = {}, n) {
|
|
|
25387
25388
|
const X = Bv(x, y, D);
|
|
25388
25389
|
return X.status === "miss" ? E() : X.views;
|
|
25389
25390
|
}).finally(() => {
|
|
25390
|
-
fd.get(x) ===
|
|
25391
|
+
fd.get(x) === z && fd.delete(x);
|
|
25391
25392
|
});
|
|
25392
|
-
return fd.set(x,
|
|
25393
|
+
return fd.set(x, z), z;
|
|
25393
25394
|
}, j = () => {
|
|
25394
25395
|
if (T(), !b || !x || !y) return Promise.resolve(E());
|
|
25395
25396
|
const N = Bv(x, y, A());
|
|
25396
25397
|
return N.status === "hit" ? Promise.resolve(k(N.views, !1)) : M();
|
|
25397
|
-
},
|
|
25398
|
+
}, V = () => {
|
|
25398
25399
|
x && Pd(x);
|
|
25399
|
-
},
|
|
25400
|
-
const
|
|
25401
|
-
if (!
|
|
25400
|
+
}, O = async (N, D) => {
|
|
25401
|
+
const z = (await j()).find((F) => F.view_id === N);
|
|
25402
|
+
if (!z) throw new Error(`View "${N}" not found for screen "${e}"`);
|
|
25402
25403
|
if (m) {
|
|
25403
25404
|
await m({
|
|
25404
|
-
view_id:
|
|
25405
|
+
view_id: z.view_id,
|
|
25405
25406
|
view_type: e,
|
|
25406
25407
|
tab: u == null ? void 0 : u.tab,
|
|
25407
|
-
name:
|
|
25408
|
-
columns:
|
|
25409
|
-
filters:
|
|
25410
|
-
priority:
|
|
25408
|
+
name: z.name,
|
|
25409
|
+
columns: z.columns,
|
|
25410
|
+
filters: z.filters,
|
|
25411
|
+
priority: z.priority,
|
|
25411
25412
|
is_default: D
|
|
25412
|
-
}),
|
|
25413
|
+
}), V();
|
|
25413
25414
|
const re = (await M()).find((se) => se.view_id === N);
|
|
25414
25415
|
if (!re || re.is_default !== D)
|
|
25415
25416
|
throw new Error(
|
|
25416
|
-
`The backend did not persist is_default=${D} for view "${
|
|
25417
|
+
`The backend did not persist is_default=${D} for view "${z.name}". Saved views still show it as ${re ? `is_default=${re.is_default}` : "missing"}.`
|
|
25417
25418
|
);
|
|
25418
25419
|
return re;
|
|
25419
25420
|
}
|
|
25420
|
-
const q = E(), X = D ? q.map((
|
|
25421
|
-
return C(X), { ...
|
|
25421
|
+
const q = E(), X = D ? q.map((F) => ({ ...F, is_default: F.view_id === N })) : q.map((F) => F.view_id === N ? { ...F, is_default: !1 } : F);
|
|
25422
|
+
return C(X), { ...z, is_default: D };
|
|
25422
25423
|
};
|
|
25423
25424
|
return {
|
|
25424
25425
|
async list() {
|
|
25425
25426
|
return j();
|
|
25426
25427
|
},
|
|
25427
25428
|
async get(N) {
|
|
25428
|
-
return (await this.list()).find((
|
|
25429
|
+
return (await this.list()).find((z) => z.view_id === N) ?? null;
|
|
25429
25430
|
},
|
|
25430
25431
|
async getActive() {
|
|
25431
25432
|
return (await this.list()).find((D) => D.is_default) ?? null;
|
|
@@ -25437,8 +25438,8 @@ function j6(e, a = {}, n) {
|
|
|
25437
25438
|
view_type: e,
|
|
25438
25439
|
tab: (n ? d == null ? void 0 : d.tab : void 0) ?? N.tab,
|
|
25439
25440
|
filters: N.filters ?? []
|
|
25440
|
-
},
|
|
25441
|
-
(I) => I.name.trim() === D.name.trim() || (
|
|
25441
|
+
}, z = p ? await p(D) : void 0, q = E(), X = q.findIndex(
|
|
25442
|
+
(I) => I.name.trim() === D.name.trim() || (z == null ? void 0 : z.view.view_id) && I.view_id === z.view.view_id
|
|
25442
25443
|
);
|
|
25443
25444
|
if (X >= 0) {
|
|
25444
25445
|
const I = {
|
|
@@ -25449,10 +25450,10 @@ function j6(e, a = {}, n) {
|
|
|
25449
25450
|
columns: D.columns,
|
|
25450
25451
|
filters: D.filters ?? [],
|
|
25451
25452
|
priority: D.priority ?? q[X].priority
|
|
25452
|
-
}, ue = ud(
|
|
25453
|
-
return H[X] = ue,
|
|
25453
|
+
}, ue = ud(z == null ? void 0 : z.view, I), H = q.slice();
|
|
25454
|
+
return H[X] = ue, V(), C(H), { view: ue, alreadyExists: (z == null ? void 0 : z.alreadyExists) ?? !0, message: z == null ? void 0 : z.message };
|
|
25454
25455
|
}
|
|
25455
|
-
const
|
|
25456
|
+
const F = q.length === 0, re = {
|
|
25456
25457
|
view_id: Fv(),
|
|
25457
25458
|
name: D.name,
|
|
25458
25459
|
view_type: e,
|
|
@@ -25460,51 +25461,51 @@ function j6(e, a = {}, n) {
|
|
|
25460
25461
|
columns: D.columns,
|
|
25461
25462
|
filters: D.filters ?? [],
|
|
25462
25463
|
priority: D.priority ?? 0,
|
|
25463
|
-
is_default:
|
|
25464
|
+
is_default: F,
|
|
25464
25465
|
is_system_defined: !1
|
|
25465
|
-
}, se = ud(
|
|
25466
|
-
if (
|
|
25466
|
+
}, se = ud(z == null ? void 0 : z.view, re);
|
|
25467
|
+
if (V(), C([...q, se]), F && m)
|
|
25467
25468
|
try {
|
|
25468
|
-
return { view: await
|
|
25469
|
+
return { view: await O(se.view_id, !0), alreadyExists: (z == null ? void 0 : z.alreadyExists) ?? !1, message: z == null ? void 0 : z.message };
|
|
25469
25470
|
} catch {
|
|
25470
|
-
return { view: se, alreadyExists: (
|
|
25471
|
+
return { view: se, alreadyExists: (z == null ? void 0 : z.alreadyExists) ?? !1, message: z == null ? void 0 : z.message };
|
|
25471
25472
|
}
|
|
25472
|
-
return { view: se, alreadyExists: (
|
|
25473
|
+
return { view: se, alreadyExists: (z == null ? void 0 : z.alreadyExists) ?? !1, message: z == null ? void 0 : z.message };
|
|
25473
25474
|
},
|
|
25474
25475
|
async rename(N, D) {
|
|
25475
25476
|
Pv(D);
|
|
25476
|
-
const
|
|
25477
|
-
if (X < 0 && !
|
|
25478
|
-
const
|
|
25477
|
+
const z = m ? await this.get(N) : null, q = E(), X = q.findIndex((H) => H.view_id === N);
|
|
25478
|
+
if (X < 0 && !z) throw new Error(`View "${N}" not found for screen "${e}"`);
|
|
25479
|
+
const F = z ?? q[X], re = { ...F, name: D };
|
|
25479
25480
|
let se = null;
|
|
25480
25481
|
m && (se = await m({
|
|
25481
|
-
view_id:
|
|
25482
|
+
view_id: F.view_id || N,
|
|
25482
25483
|
view_type: e,
|
|
25483
25484
|
tab: u == null ? void 0 : u.tab,
|
|
25484
25485
|
name: D,
|
|
25485
|
-
columns:
|
|
25486
|
-
filters:
|
|
25487
|
-
priority:
|
|
25488
|
-
is_default:
|
|
25486
|
+
columns: F.columns,
|
|
25487
|
+
filters: F.filters,
|
|
25488
|
+
priority: F.priority,
|
|
25489
|
+
is_default: F.is_default
|
|
25489
25490
|
}));
|
|
25490
25491
|
const I = ud(se ?? void 0, re), ue = X >= 0 ? q.slice() : [...q, I];
|
|
25491
|
-
return X >= 0 && (ue[X] = I),
|
|
25492
|
+
return X >= 0 && (ue[X] = I), V(), C(ue), I;
|
|
25492
25493
|
},
|
|
25493
25494
|
async remove(N) {
|
|
25494
|
-
const D = E(),
|
|
25495
|
-
if (!
|
|
25496
|
-
v && await v(
|
|
25495
|
+
const D = E(), z = D.find((X) => X.view_id === N);
|
|
25496
|
+
if (!z) return;
|
|
25497
|
+
v && await v(z.view_id);
|
|
25497
25498
|
const q = D.filter((X) => X.view_id !== N);
|
|
25498
|
-
|
|
25499
|
+
V(), C(q);
|
|
25499
25500
|
},
|
|
25500
25501
|
async setPrimary(N) {
|
|
25501
|
-
return
|
|
25502
|
+
return O(N, !0);
|
|
25502
25503
|
},
|
|
25503
25504
|
async unsetPrimary(N) {
|
|
25504
|
-
return
|
|
25505
|
+
return O(N, !1);
|
|
25505
25506
|
},
|
|
25506
25507
|
async reset() {
|
|
25507
|
-
if (v && await v(),
|
|
25508
|
+
if (v && await v(), V(), Au())
|
|
25508
25509
|
try {
|
|
25509
25510
|
window.localStorage.removeItem(i());
|
|
25510
25511
|
} catch {
|
|
@@ -25514,13 +25515,13 @@ function j6(e, a = {}, n) {
|
|
|
25514
25515
|
subscribe(N) {
|
|
25515
25516
|
YL();
|
|
25516
25517
|
const D = x ? [i(), x] : [i()];
|
|
25517
|
-
return D.forEach((
|
|
25518
|
-
let q = Ln.get(
|
|
25519
|
-
q || (q = /* @__PURE__ */ new Set(), Ln.set(
|
|
25518
|
+
return D.forEach((z) => {
|
|
25519
|
+
let q = Ln.get(z);
|
|
25520
|
+
q || (q = /* @__PURE__ */ new Set(), Ln.set(z, q)), q.add(N);
|
|
25520
25521
|
}), () => {
|
|
25521
|
-
D.forEach((
|
|
25522
|
-
const q = Ln.get(
|
|
25523
|
-
q && (q.delete(N), q.size === 0 && Ln.delete(
|
|
25522
|
+
D.forEach((z) => {
|
|
25523
|
+
const q = Ln.get(z);
|
|
25524
|
+
q && (q.delete(N), q.size === 0 && Ln.delete(z));
|
|
25524
25525
|
});
|
|
25525
25526
|
};
|
|
25526
25527
|
}
|
|
@@ -25826,14 +25827,14 @@ function pH({
|
|
|
25826
25827
|
visibleColumnIds: k = [],
|
|
25827
25828
|
hiddenColumnCount: M,
|
|
25828
25829
|
filtersCount: j = 0,
|
|
25829
|
-
viewType:
|
|
25830
|
-
filters:
|
|
25830
|
+
viewType: V,
|
|
25831
|
+
filters: O,
|
|
25831
25832
|
priority: N = 0,
|
|
25832
25833
|
screenName: D,
|
|
25833
|
-
saveApi:
|
|
25834
|
+
saveApi: z,
|
|
25834
25835
|
cancelLabel: q = "Cancel",
|
|
25835
25836
|
saveLabel: X = "Save view",
|
|
25836
|
-
onCancel:
|
|
25837
|
+
onCancel: F,
|
|
25837
25838
|
onSave: re,
|
|
25838
25839
|
onSaved: se,
|
|
25839
25840
|
onError: I,
|
|
@@ -25848,8 +25849,8 @@ function pH({
|
|
|
25848
25849
|
analytics: ce
|
|
25849
25850
|
}) {
|
|
25850
25851
|
const J = s.useId(), [he, pe] = s.useState(a ?? !1), [ne, Ae] = s.useState(v), [fe, ve] = s.useState(!1), [ke, Me] = s.useState(null), Le = e ?? he, He = m ?? ne, nt = !!(ue || fe), it = M ?? fH(S, k), At = ys(He), Wt = H || nt || He.trim().length === 0 || At, jt = s.useMemo(
|
|
25851
|
-
() =>
|
|
25852
|
-
[
|
|
25852
|
+
() => z ? { ...z, saveEndpoint: z.saveEndpoint ?? z.endpoint ?? "api/v1/saveview" } : void 0,
|
|
25853
|
+
[z]
|
|
25853
25854
|
), zt = s.useMemo(
|
|
25854
25855
|
() => D ? eh(D, jt ? { saveApi: jt } : void 0) : void 0,
|
|
25855
25856
|
[jt, D]
|
|
@@ -25867,20 +25868,20 @@ function pH({
|
|
|
25867
25868
|
}, Jt = (Re) => {
|
|
25868
25869
|
m === void 0 && Ae(Re), y == null || y(Re), Me(null);
|
|
25869
25870
|
}, Gt = () => {
|
|
25870
|
-
|
|
25871
|
+
F == null || F(), Oe.current = "cancel", Ut(!1);
|
|
25871
25872
|
}, be = (Re) => {
|
|
25872
25873
|
Re.preventDefault();
|
|
25873
25874
|
const Ve = He.trim();
|
|
25874
25875
|
if (!Ve || Wt || ys(Ve)) return;
|
|
25875
25876
|
const Ct = {
|
|
25876
|
-
view_type:
|
|
25877
|
+
view_type: V ?? "orders",
|
|
25877
25878
|
name: Ve,
|
|
25878
25879
|
columns: (S ?? []).map((De, pt) => ({
|
|
25879
25880
|
key: De.id,
|
|
25880
25881
|
order: pt,
|
|
25881
25882
|
visible: k.includes(De.id)
|
|
25882
25883
|
})),
|
|
25883
|
-
filters:
|
|
25884
|
+
filters: O ?? [],
|
|
25884
25885
|
priority: N
|
|
25885
25886
|
};
|
|
25886
25887
|
Me(null);
|
|
@@ -26271,9 +26272,9 @@ var xs = "Tooltip", [TH, Ls] = Eu(xs), Y6 = (e) => {
|
|
|
26271
26272
|
D ? (m.onOpen(), document.dispatchEvent(new CustomEvent(W0))) : m.onClose(), u == null || u(D);
|
|
26272
26273
|
},
|
|
26273
26274
|
caller: xs
|
|
26274
|
-
}), j = s.useMemo(() => k ? S.current ? "delayed-open" : "instant-open" : "closed", [k]),
|
|
26275
|
+
}), j = s.useMemo(() => k ? S.current ? "delayed-open" : "instant-open" : "closed", [k]), V = s.useCallback(() => {
|
|
26275
26276
|
window.clearTimeout(E.current), E.current = 0, S.current = !1, M(!0);
|
|
26276
|
-
}, [M]),
|
|
26277
|
+
}, [M]), O = s.useCallback(() => {
|
|
26277
26278
|
window.clearTimeout(E.current), E.current = 0, M(!1);
|
|
26278
26279
|
}, [M]), N = s.useCallback(() => {
|
|
26279
26280
|
window.clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
@@ -26292,13 +26293,13 @@ var xs = "Tooltip", [TH, Ls] = Eu(xs), Y6 = (e) => {
|
|
|
26292
26293
|
trigger: y,
|
|
26293
26294
|
onTriggerChange: x,
|
|
26294
26295
|
onTriggerEnter: s.useCallback(() => {
|
|
26295
|
-
m.isOpenDelayedRef.current ? N() :
|
|
26296
|
-
}, [m.isOpenDelayedRef, N,
|
|
26296
|
+
m.isOpenDelayedRef.current ? N() : V();
|
|
26297
|
+
}, [m.isOpenDelayedRef, N, V]),
|
|
26297
26298
|
onTriggerLeave: s.useCallback(() => {
|
|
26298
|
-
T ?
|
|
26299
|
-
}, [
|
|
26300
|
-
onOpen:
|
|
26301
|
-
onClose:
|
|
26299
|
+
T ? O() : (window.clearTimeout(E.current), E.current = 0);
|
|
26300
|
+
}, [O, T]),
|
|
26301
|
+
onOpen: V,
|
|
26302
|
+
onClose: O,
|
|
26302
26303
|
disableHoverableContent: T,
|
|
26303
26304
|
children: n
|
|
26304
26305
|
}
|
|
@@ -26351,8 +26352,8 @@ var Qi = "TooltipContent", X6 = s.forwardRef(
|
|
|
26351
26352
|
b(null), x(!1);
|
|
26352
26353
|
}, [x]), E = s.useCallback(
|
|
26353
26354
|
(T, C) => {
|
|
26354
|
-
const S = T.currentTarget, k = { x: T.clientX, y: T.clientY }, M = VH(k, S.getBoundingClientRect()), j = LH(k, M),
|
|
26355
|
-
b(
|
|
26355
|
+
const S = T.currentTarget, k = { x: T.clientX, y: T.clientY }, M = VH(k, S.getBoundingClientRect()), j = LH(k, M), V = HH(C.getBoundingClientRect()), O = _H([...j, ...V]);
|
|
26356
|
+
b(O), x(!0);
|
|
26356
26357
|
},
|
|
26357
26358
|
[x]
|
|
26358
26359
|
);
|
|
@@ -27031,14 +27032,14 @@ function mB({
|
|
|
27031
27032
|
primaryHintLabel: k = "Set a view as primary to load it automatically. With no primary view, the table opens in its default state.",
|
|
27032
27033
|
emptyLabel: M = "No saved views",
|
|
27033
27034
|
loadingLabel: j = "Loading views",
|
|
27034
|
-
defaultViewLabel:
|
|
27035
|
-
setPrimaryLabel:
|
|
27035
|
+
defaultViewLabel: V = "Default",
|
|
27036
|
+
setPrimaryLabel: O = "Set as Primary View",
|
|
27036
27037
|
unsetPrimaryLabel: N = "Unset as Primary",
|
|
27037
27038
|
renameLabel: D = "Rename",
|
|
27038
|
-
deleteLabel:
|
|
27039
|
+
deleteLabel: z = "Delete",
|
|
27039
27040
|
renameTitle: q = "Rename view",
|
|
27040
27041
|
renameDescription: X = "Update the saved view name.",
|
|
27041
|
-
renameInputLabel:
|
|
27042
|
+
renameInputLabel: F = "View name",
|
|
27042
27043
|
renameCancelLabel: re = "Cancel",
|
|
27043
27044
|
renameSaveLabel: se = "Save",
|
|
27044
27045
|
deleteTitle: I = "Delete view",
|
|
@@ -27112,7 +27113,7 @@ function mB({
|
|
|
27112
27113
|
const tt = Fi(Me, Re) ?? (fe && !ft.current ? Fi(Me, He) : null), cr = s.useMemo(
|
|
27113
27114
|
() => uB(Me, He, tt == null ? void 0 : tt.view_id),
|
|
27114
27115
|
[He, tt == null ? void 0 : tt.view_id, Me]
|
|
27115
|
-
), Ur = !tt, dr = He === null, La = T ?? (tt == null ? void 0 : tt.name) ?? (Ur ?
|
|
27116
|
+
), Ur = !tt, dr = He === null, La = T ?? (tt == null ? void 0 : tt.name) ?? (Ur ? V : C), Gr = Me.length > 0, Dt = T6(A, e), Qa = (xe) => {
|
|
27116
27117
|
ke(!1), Dt.viewSelected(), er(xe);
|
|
27117
27118
|
}, Ha = (xe) => {
|
|
27118
27119
|
Dt.setPrimary(), ne.setPrimary(xe.view_id).then(async (mt) => {
|
|
@@ -27200,7 +27201,7 @@ function mB({
|
|
|
27200
27201
|
!Wt && !Gr ? /* @__PURE__ */ c.jsx(qv, { children: M }) : null,
|
|
27201
27202
|
/* @__PURE__ */ c.jsxs(nB, { "data-default-view-surface": !0, children: [
|
|
27202
27203
|
/* @__PURE__ */ c.jsxs($v, { type: "button", ownerState: { selected: Ur }, onClick: Pe, children: [
|
|
27203
|
-
/* @__PURE__ */ c.jsx(Yv, { children:
|
|
27204
|
+
/* @__PURE__ */ c.jsx(Yv, { children: V }),
|
|
27204
27205
|
dr ? /* @__PURE__ */ c.jsx(g0, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
|
|
27205
27206
|
] }),
|
|
27206
27207
|
/* @__PURE__ */ c.jsx(
|
|
@@ -27221,7 +27222,7 @@ function mB({
|
|
|
27221
27222
|
),
|
|
27222
27223
|
items: [
|
|
27223
27224
|
{
|
|
27224
|
-
label:
|
|
27225
|
+
label: O,
|
|
27225
27226
|
icon: /* @__PURE__ */ c.jsx(gd, { size: 16 }),
|
|
27226
27227
|
disabled: dr,
|
|
27227
27228
|
onSelect: Ht
|
|
@@ -27261,7 +27262,7 @@ function mB({
|
|
|
27261
27262
|
icon: /* @__PURE__ */ c.jsx(gd, { size: 16 }),
|
|
27262
27263
|
onSelect: () => Mr(xe)
|
|
27263
27264
|
} : {
|
|
27264
|
-
label:
|
|
27265
|
+
label: O,
|
|
27265
27266
|
icon: /* @__PURE__ */ c.jsx(gd, { size: 16 }),
|
|
27266
27267
|
onSelect: () => Ha(xe)
|
|
27267
27268
|
}
|
|
@@ -27272,7 +27273,7 @@ function mB({
|
|
|
27272
27273
|
onSelect: () => jr(xe)
|
|
27273
27274
|
},
|
|
27274
27275
|
{
|
|
27275
|
-
label:
|
|
27276
|
+
label: z,
|
|
27276
27277
|
icon: /* @__PURE__ */ c.jsx(k0, { size: 16 }),
|
|
27277
27278
|
destructive: !0,
|
|
27278
27279
|
onSelect: () => {
|
|
@@ -27296,7 +27297,7 @@ function mB({
|
|
|
27296
27297
|
/* @__PURE__ */ c.jsx(Xv, { children: /* @__PURE__ */ c.jsxs("form", { onSubmit: Ft, children: [
|
|
27297
27298
|
/* @__PURE__ */ c.jsx(Qv, { children: q }),
|
|
27298
27299
|
X ? /* @__PURE__ */ c.jsx(Jv, { children: X }) : null,
|
|
27299
|
-
/* @__PURE__ */ c.jsx(lB, { htmlFor: pt, children:
|
|
27300
|
+
/* @__PURE__ */ c.jsx(lB, { htmlFor: pt, children: F }),
|
|
27300
27301
|
/* @__PURE__ */ c.jsx(
|
|
27301
27302
|
sB,
|
|
27302
27303
|
{
|
|
@@ -27371,7 +27372,7 @@ var gB = [" ", "Enter", "ArrowUp", "ArrowDown"], vB = [" ", "Enter"], On = "Sele
|
|
|
27371
27372
|
disabled: A,
|
|
27372
27373
|
required: E,
|
|
27373
27374
|
form: T
|
|
27374
|
-
} = e, C = Mu(a), [S, k] = s.useState(null), [M, j] = s.useState(null), [
|
|
27375
|
+
} = e, C = Mu(a), [S, k] = s.useState(null), [M, j] = s.useState(null), [V, O] = s.useState(!1), N = Es(v), [D, z] = Da({
|
|
27375
27376
|
prop: i,
|
|
27376
27377
|
defaultProp: d ?? !1,
|
|
27377
27378
|
onChange: u,
|
|
@@ -27381,7 +27382,7 @@ var gB = [" ", "Enter", "ArrowUp", "ArrowDown"], vB = [" ", "Enter"], On = "Sele
|
|
|
27381
27382
|
defaultProp: b,
|
|
27382
27383
|
onChange: m,
|
|
27383
27384
|
caller: On
|
|
27384
|
-
}),
|
|
27385
|
+
}), F = s.useRef(null), re = S ? T || !!S.closest("form") : !0, [se, I] = s.useState(/* @__PURE__ */ new Set()), ue = Array.from(se).map((H) => H.props.value).join(";");
|
|
27385
27386
|
return /* @__PURE__ */ c.jsx(nu, { ...C, children: /* @__PURE__ */ c.jsxs(
|
|
27386
27387
|
xB,
|
|
27387
27388
|
{
|
|
@@ -27391,15 +27392,15 @@ var gB = [" ", "Enter", "ArrowUp", "ArrowDown"], vB = [" ", "Enter"], On = "Sele
|
|
|
27391
27392
|
onTriggerChange: k,
|
|
27392
27393
|
valueNode: M,
|
|
27393
27394
|
onValueNodeChange: j,
|
|
27394
|
-
valueNodeHasChildren:
|
|
27395
|
-
onValueNodeHasChildrenChange:
|
|
27395
|
+
valueNodeHasChildren: V,
|
|
27396
|
+
onValueNodeHasChildrenChange: O,
|
|
27396
27397
|
contentId: xa(),
|
|
27397
27398
|
value: q,
|
|
27398
27399
|
onValueChange: X,
|
|
27399
27400
|
open: D,
|
|
27400
|
-
onOpenChange:
|
|
27401
|
+
onOpenChange: z,
|
|
27401
27402
|
dir: N,
|
|
27402
|
-
triggerPointerDownPosRef:
|
|
27403
|
+
triggerPointerDownPosRef: F,
|
|
27403
27404
|
disabled: A,
|
|
27404
27405
|
children: [
|
|
27405
27406
|
/* @__PURE__ */ c.jsx(Tu.Provider, { scope: a, children: /* @__PURE__ */ c.jsx(
|
|
@@ -27550,7 +27551,7 @@ var Ra = 10, [d4, fn] = cl(Fn), EB = "SelectContentImpl", kB = /* @__PURE__ */ H
|
|
|
27550
27551
|
avoidCollisions: S,
|
|
27551
27552
|
//
|
|
27552
27553
|
...k
|
|
27553
|
-
} = e, M = un(Fn, n), [j,
|
|
27554
|
+
} = e, M = un(Fn, n), [j, V] = s.useState(null), [O, N] = s.useState(null), D = Ue(a, (ne) => V(ne)), [z, q] = s.useState(null), [X, F] = s.useState(
|
|
27554
27555
|
null
|
|
27555
27556
|
), re = Ru(n), [se, I] = s.useState(!1), ue = s.useRef(!1);
|
|
27556
27557
|
s.useEffect(() => {
|
|
@@ -27560,12 +27561,12 @@ var Ra = 10, [d4, fn] = cl(Fn), EB = "SelectContentImpl", kB = /* @__PURE__ */ H
|
|
|
27560
27561
|
(ne) => {
|
|
27561
27562
|
const [Ae, ...fe] = re().map((Me) => Me.ref.current), [ve] = fe.slice(-1), ke = document.activeElement;
|
|
27562
27563
|
for (const Me of ne)
|
|
27563
|
-
if (Me === ke || (Me == null || Me.scrollIntoView({ block: "nearest" }), Me === Ae &&
|
|
27564
|
+
if (Me === ke || (Me == null || Me.scrollIntoView({ block: "nearest" }), Me === Ae && O && (O.scrollTop = 0), Me === ve && O && (O.scrollTop = O.scrollHeight), Me == null || Me.focus(), document.activeElement !== ke)) return;
|
|
27564
27565
|
},
|
|
27565
|
-
[re,
|
|
27566
|
+
[re, O]
|
|
27566
27567
|
), G = s.useCallback(
|
|
27567
|
-
() => H([
|
|
27568
|
-
[H,
|
|
27568
|
+
() => H([z, j]),
|
|
27569
|
+
[H, z, j]
|
|
27569
27570
|
);
|
|
27570
27571
|
s.useEffect(() => {
|
|
27571
27572
|
se && G();
|
|
@@ -27605,7 +27606,7 @@ var Ra = 10, [d4, fn] = cl(Fn), EB = "SelectContentImpl", kB = /* @__PURE__ */ H
|
|
|
27605
27606
|
), ce = s.useCallback(() => j == null ? void 0 : j.focus(), [j]), J = s.useCallback(
|
|
27606
27607
|
(ne, Ae, fe) => {
|
|
27607
27608
|
const ve = !ue.current && !fe;
|
|
27608
|
-
(M.value !== void 0 && M.value === Ae || ve) &&
|
|
27609
|
+
(M.value !== void 0 && M.value === Ae || ve) && F(ne);
|
|
27609
27610
|
},
|
|
27610
27611
|
[M.value]
|
|
27611
27612
|
), he = i === "popper" ? $0 : f4, pe = he === $0 ? {
|
|
@@ -27625,10 +27626,10 @@ var Ra = 10, [d4, fn] = cl(Fn), EB = "SelectContentImpl", kB = /* @__PURE__ */ H
|
|
|
27625
27626
|
{
|
|
27626
27627
|
scope: n,
|
|
27627
27628
|
content: j,
|
|
27628
|
-
viewport:
|
|
27629
|
+
viewport: O,
|
|
27629
27630
|
onViewportChange: N,
|
|
27630
27631
|
itemRefCallback: $,
|
|
27631
|
-
selectedItem:
|
|
27632
|
+
selectedItem: z,
|
|
27632
27633
|
onItemLeave: ce,
|
|
27633
27634
|
itemTextRefCallback: J,
|
|
27634
27635
|
focusSelectedItem: G,
|
|
@@ -27702,9 +27703,9 @@ u4.displayName = EB;
|
|
|
27702
27703
|
var TB = "SelectItemAlignedPosition", f4 = s.forwardRef((e, a) => {
|
|
27703
27704
|
const { __scopeSelect: n, onPlaced: i, ...d } = e, u = un(Fn, n), p = fn(Fn, n), [b, m] = s.useState(null), [v, y] = s.useState(null), x = Ue(a, (D) => y(D)), A = Ru(n), E = s.useRef(!1), T = s.useRef(!0), { viewport: C, selectedItem: S, selectedItemText: k, focusSelectedItem: M } = p, j = s.useCallback(() => {
|
|
27704
27705
|
if (u.trigger && u.valueNode && b && v && C && S && k) {
|
|
27705
|
-
const D = u.trigger.getBoundingClientRect(),
|
|
27706
|
+
const D = u.trigger.getBoundingClientRect(), z = v.getBoundingClientRect(), q = u.valueNode.getBoundingClientRect(), X = k.getBoundingClientRect();
|
|
27706
27707
|
if (u.dir !== "rtl") {
|
|
27707
|
-
const ke = X.left -
|
|
27708
|
+
const ke = X.left - z.left, Me = q.left - ke, Le = D.left - Me, He = D.width + Le, nt = Math.max(He, z.width), it = window.innerWidth - Ra, At = ty(Me, [
|
|
27708
27709
|
Ra,
|
|
27709
27710
|
// Prevents the content from going off the starting edge of the
|
|
27710
27711
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -27715,15 +27716,15 @@ var TB = "SelectItemAlignedPosition", f4 = s.forwardRef((e, a) => {
|
|
|
27715
27716
|
]);
|
|
27716
27717
|
b.style.minWidth = He + "px", b.style.left = At + "px";
|
|
27717
27718
|
} else {
|
|
27718
|
-
const ke =
|
|
27719
|
+
const ke = z.right - X.right, Me = window.innerWidth - q.right - ke, Le = window.innerWidth - D.right - Me, He = D.width + Le, nt = Math.max(He, z.width), it = window.innerWidth - Ra, At = ty(Me, [
|
|
27719
27720
|
Ra,
|
|
27720
27721
|
Math.max(Ra, it - nt)
|
|
27721
27722
|
]);
|
|
27722
27723
|
b.style.minWidth = He + "px", b.style.right = At + "px";
|
|
27723
27724
|
}
|
|
27724
|
-
const
|
|
27725
|
+
const F = A(), re = window.innerHeight - Ra * 2, se = C.scrollHeight, I = window.getComputedStyle(v), ue = parseInt(I.borderTopWidth, 10), H = parseInt(I.paddingTop, 10), G = parseInt(I.borderBottomWidth, 10), Z = parseInt(I.paddingBottom, 10), ee = ue + H + se + Z + G, te = Math.min(S.offsetHeight * 5, ee), L = window.getComputedStyle(C), $ = parseInt(L.paddingTop, 10), ce = parseInt(L.paddingBottom, 10), J = D.top + D.height / 2 - Ra, he = re - J, pe = S.offsetHeight / 2, ne = S.offsetTop + pe, Ae = ue + H + ne, fe = ee - Ae;
|
|
27725
27726
|
if (Ae <= J) {
|
|
27726
|
-
const ke =
|
|
27727
|
+
const ke = F.length > 0 && S === F[F.length - 1].ref.current;
|
|
27727
27728
|
b.style.bottom = "0px";
|
|
27728
27729
|
const Me = v.clientHeight - C.offsetTop - C.offsetHeight, Le = Math.max(
|
|
27729
27730
|
he,
|
|
@@ -27732,7 +27733,7 @@ var TB = "SelectItemAlignedPosition", f4 = s.forwardRef((e, a) => {
|
|
|
27732
27733
|
), He = Ae + Le;
|
|
27733
27734
|
b.style.height = He + "px";
|
|
27734
27735
|
} else {
|
|
27735
|
-
const ke =
|
|
27736
|
+
const ke = F.length > 0 && S === F[0].ref.current;
|
|
27736
27737
|
b.style.top = "0px";
|
|
27737
27738
|
const Le = Math.max(
|
|
27738
27739
|
J,
|
|
@@ -27756,9 +27757,9 @@ var TB = "SelectItemAlignedPosition", f4 = s.forwardRef((e, a) => {
|
|
|
27756
27757
|
i
|
|
27757
27758
|
]);
|
|
27758
27759
|
Ar(() => j(), [j]);
|
|
27759
|
-
const [
|
|
27760
|
+
const [V, O] = s.useState();
|
|
27760
27761
|
Ar(() => {
|
|
27761
|
-
v &&
|
|
27762
|
+
v && O(window.getComputedStyle(v).zIndex);
|
|
27762
27763
|
}, [v]);
|
|
27763
27764
|
const N = s.useCallback(
|
|
27764
27765
|
(D) => {
|
|
@@ -27781,7 +27782,7 @@ var TB = "SelectItemAlignedPosition", f4 = s.forwardRef((e, a) => {
|
|
|
27781
27782
|
display: "flex",
|
|
27782
27783
|
flexDirection: "column",
|
|
27783
27784
|
position: "fixed",
|
|
27784
|
-
zIndex:
|
|
27785
|
+
zIndex: V
|
|
27785
27786
|
},
|
|
27786
27787
|
children: /* @__PURE__ */ c.jsx(
|
|
27787
27788
|
ze.div,
|
|
@@ -27873,8 +27874,8 @@ var [MB, ih] = cl(Fn, {}), Y0 = "SelectViewport", p4 = s.forwardRef(
|
|
|
27873
27874
|
if (E > 0) {
|
|
27874
27875
|
const T = window.innerHeight - Ra * 2, C = parseFloat(x.style.minHeight), S = parseFloat(x.style.height), k = Math.max(C, S);
|
|
27875
27876
|
if (k < T) {
|
|
27876
|
-
const M = k + E, j = Math.min(T, M),
|
|
27877
|
-
x.style.height = j + "px", x.style.bottom === "0px" && (y.scrollTop =
|
|
27877
|
+
const M = k + E, j = Math.min(T, M), V = M - j;
|
|
27878
|
+
x.style.height = j + "px", x.style.bottom === "0px" && (y.scrollTop = V > 0 ? V : 0, x.style.justifyContent = "flex-end");
|
|
27878
27879
|
}
|
|
27879
27880
|
}
|
|
27880
27881
|
}
|
|
@@ -27972,8 +27973,8 @@ var Id = "SelectItem", [NB, v4] = cl(Id), y4 = s.forwardRef(
|
|
|
27972
27973
|
M.currentTarget === document.activeElement && ((j = m.onItemLeave) == null || j.call(m));
|
|
27973
27974
|
}),
|
|
27974
27975
|
onKeyDown: ge(p.onKeyDown, (M) => {
|
|
27975
|
-
var
|
|
27976
|
-
((
|
|
27976
|
+
var V;
|
|
27977
|
+
((V = m.searchRef) == null ? void 0 : V.current) !== "" && M.key === " " || (vB.includes(M.key) && k(), M.key === " " && M.preventDefault());
|
|
27977
27978
|
})
|
|
27978
27979
|
}
|
|
27979
27980
|
)
|
|
@@ -28387,9 +28388,9 @@ const QB = {
|
|
|
28387
28388
|
const k = typeof u == "number" ? { width: u, minWidth: u } : void 0, M = (Z) => /* @__PURE__ */ c.jsxs(s_, { value: Z.value, disabled: Z.disabled, children: [
|
|
28388
28389
|
/* @__PURE__ */ c.jsx(c_, { children: Z.label }),
|
|
28389
28390
|
/* @__PURE__ */ c.jsx(d_, { children: /* @__PURE__ */ c.jsx(XB, { children: /* @__PURE__ */ c.jsx(Or, { size: 13, weight: "bold" }) }) })
|
|
28390
|
-
] }, Z.value), j = y !== void 0, [
|
|
28391
|
+
] }, Z.value), j = y !== void 0, [V, O] = s.useState(x), N = j ? y : V, D = (G = e.find((Z) => Z.value === N)) == null ? void 0 : G.label, [z, q] = s.useState(i), X = n ?? z, F = s.useRef(null), [re, se] = s.useState(!1);
|
|
28391
28392
|
s.useEffect(() => {
|
|
28392
|
-
const Z =
|
|
28393
|
+
const Z = F.current;
|
|
28393
28394
|
if (!Z || typeof globalThis.ResizeObserver > "u") return;
|
|
28394
28395
|
const ee = () => se(Z.scrollWidth > Z.clientWidth + 1);
|
|
28395
28396
|
ee();
|
|
@@ -28397,7 +28398,7 @@ const QB = {
|
|
|
28397
28398
|
return te.observe(Z), () => te.disconnect();
|
|
28398
28399
|
}, [D]);
|
|
28399
28400
|
const I = (Z) => {
|
|
28400
|
-
j ||
|
|
28401
|
+
j || O(Z), A == null || A(Z);
|
|
28401
28402
|
}, ue = (Z) => {
|
|
28402
28403
|
n === void 0 && q(Z), d == null || d(Z);
|
|
28403
28404
|
}, H = /* @__PURE__ */ c.jsxs(
|
|
@@ -28411,7 +28412,7 @@ const QB = {
|
|
|
28411
28412
|
ownerState: { size: b, error: !!p },
|
|
28412
28413
|
className: m,
|
|
28413
28414
|
children: [
|
|
28414
|
-
/* @__PURE__ */ c.jsx(a_, { ref:
|
|
28415
|
+
/* @__PURE__ */ c.jsx(a_, { ref: F, children: /* @__PURE__ */ c.jsx(IB, { placeholder: a }) }),
|
|
28415
28416
|
/* @__PURE__ */ c.jsx(o_, { children: /* @__PURE__ */ c.jsx(n_, { ownerState: { open: !!X }, size: 10 }) })
|
|
28416
28417
|
]
|
|
28417
28418
|
}
|
|
@@ -28906,15 +28907,15 @@ function cy({
|
|
|
28906
28907
|
onNavigateTo: C,
|
|
28907
28908
|
className: S
|
|
28908
28909
|
}) {
|
|
28909
|
-
const [k, M] = s.useState(!1), [j,
|
|
28910
|
+
const [k, M] = s.useState(!1), [j, V] = s.useState(e), O = (/* @__PURE__ */ new Date()).getFullYear();
|
|
28910
28911
|
s.useEffect(() => {
|
|
28911
|
-
k ||
|
|
28912
|
+
k || V(e);
|
|
28912
28913
|
}, [e, k]);
|
|
28913
|
-
const N = new Date(e, a, 1).getDay(), D = b_(e, a),
|
|
28914
|
-
for (let
|
|
28915
|
-
|
|
28916
|
-
for (;
|
|
28917
|
-
|
|
28914
|
+
const N = new Date(e, a, 1).getDay(), D = b_(e, a), z = Array(N).fill(null);
|
|
28915
|
+
for (let F = 1; F <= D; F += 1)
|
|
28916
|
+
z.push(F);
|
|
28917
|
+
for (; z.length % 7 !== 0; )
|
|
28918
|
+
z.push(null);
|
|
28918
28919
|
const q = i ?? (u ? d : void 0), X = n && q ? J0(n, q) : void 0;
|
|
28919
28920
|
return /* @__PURE__ */ c.jsxs(R_, { className: S, children: [
|
|
28920
28921
|
/* @__PURE__ */ c.jsxs(M_, { children: [
|
|
@@ -28923,7 +28924,7 @@ function cy({
|
|
|
28923
28924
|
{
|
|
28924
28925
|
type: "button",
|
|
28925
28926
|
ownerState: { disableable: !0 },
|
|
28926
|
-
onClick: () =>
|
|
28927
|
+
onClick: () => V((F) => F - 1),
|
|
28927
28928
|
disabled: j <= dh,
|
|
28928
28929
|
"aria-label": "Previous year",
|
|
28929
28930
|
children: /* @__PURE__ */ c.jsx(E0, { size: 14, weight: "bold" })
|
|
@@ -28934,7 +28935,7 @@ function cy({
|
|
|
28934
28935
|
{
|
|
28935
28936
|
type: "button",
|
|
28936
28937
|
onClick: () => {
|
|
28937
|
-
|
|
28938
|
+
V(e), M((F) => !F);
|
|
28938
28939
|
},
|
|
28939
28940
|
children: [
|
|
28940
28941
|
k ? j : `${p_[a]}, ${e}`,
|
|
@@ -28947,14 +28948,14 @@ function cy({
|
|
|
28947
28948
|
{
|
|
28948
28949
|
type: "button",
|
|
28949
28950
|
ownerState: { disableable: !0 },
|
|
28950
|
-
onClick: () =>
|
|
28951
|
-
disabled: j >=
|
|
28951
|
+
onClick: () => V((F) => F + 1),
|
|
28952
|
+
disabled: j >= O + 1,
|
|
28952
28953
|
"aria-label": "Next year",
|
|
28953
28954
|
children: /* @__PURE__ */ c.jsx(Rd, { size: 14, weight: "bold" })
|
|
28954
28955
|
}
|
|
28955
28956
|
) : A ? /* @__PURE__ */ c.jsx(pd, { type: "button", ownerState: { disableable: !1 }, onClick: y, "aria-label": "Next month", children: /* @__PURE__ */ c.jsx(Rd, { size: 14, weight: "bold" }) }) : /* @__PURE__ */ c.jsx(sy, { "aria-hidden": "true" })
|
|
28956
28957
|
] }),
|
|
28957
|
-
k ? /* @__PURE__ */ c.jsx(N_, { children: ry.map((
|
|
28958
|
+
k ? /* @__PURE__ */ c.jsx(N_, { children: ry.map((F, re) => {
|
|
28958
28959
|
const se = re === a && j === e, I = k_({ year: j, month: re }, E, T);
|
|
28959
28960
|
return /* @__PURE__ */ c.jsx(
|
|
28960
28961
|
z_,
|
|
@@ -28965,18 +28966,18 @@ function cy({
|
|
|
28965
28966
|
onClick: () => {
|
|
28966
28967
|
I || (C == null || C(j, re), M(!1));
|
|
28967
28968
|
},
|
|
28968
|
-
children:
|
|
28969
|
+
children: F
|
|
28969
28970
|
},
|
|
28970
28971
|
re
|
|
28971
28972
|
);
|
|
28972
28973
|
}) }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
28973
|
-
/* @__PURE__ */ c.jsx(V_, { children: h_.map((
|
|
28974
|
+
/* @__PURE__ */ c.jsx(V_, { children: h_.map((F, re) => /* @__PURE__ */ c.jsx(L_, { children: F }, `${F}-${re}`)) }),
|
|
28974
28975
|
/* @__PURE__ */ c.jsxs(H_, { children: [
|
|
28975
28976
|
/* @__PURE__ */ c.jsx(B_, { children: ry[a] }),
|
|
28976
|
-
|
|
28977
|
-
if (!
|
|
28977
|
+
z.map((F, re) => {
|
|
28978
|
+
if (!F)
|
|
28978
28979
|
return /* @__PURE__ */ c.jsx(__, {}, `blank-${re}`);
|
|
28979
|
-
const se = new Date(e, a,
|
|
28980
|
+
const se = new Date(e, a, F), I = Zd(se, (X == null ? void 0 : X.from) ?? n), ue = Zd(se, (X == null ? void 0 : X.to) ?? i), H = I || ue, G = !!(X && _r(se, X.from) > 0 && _r(se, X.to) < 0), Z = p(se), ee = re % 7, te = !!(X && _r(X.from, X.to) !== 0), L = G || te && H, $ = te && I ? "start" : te && ue ? "end" : "middle";
|
|
28980
28981
|
return /* @__PURE__ */ c.jsxs(
|
|
28981
28982
|
O_,
|
|
28982
28983
|
{
|
|
@@ -28988,8 +28989,8 @@ function cy({
|
|
|
28988
28989
|
{
|
|
28989
28990
|
ownerState: {
|
|
28990
28991
|
shape: $,
|
|
28991
|
-
roundLeft: ee === 0 ||
|
|
28992
|
-
roundRight: ee === 6 ||
|
|
28992
|
+
roundLeft: ee === 0 || F === 1,
|
|
28993
|
+
roundRight: ee === 6 || F === D
|
|
28993
28994
|
},
|
|
28994
28995
|
"aria-hidden": "true"
|
|
28995
28996
|
}
|
|
@@ -29010,12 +29011,12 @@ function cy({
|
|
|
29010
29011
|
inRange: G,
|
|
29011
29012
|
disabled: Z
|
|
29012
29013
|
},
|
|
29013
|
-
children:
|
|
29014
|
+
children: F
|
|
29014
29015
|
}
|
|
29015
29016
|
)
|
|
29016
29017
|
]
|
|
29017
29018
|
},
|
|
29018
|
-
|
|
29019
|
+
F
|
|
29019
29020
|
);
|
|
29020
29021
|
})
|
|
29021
29022
|
] })
|
|
@@ -29353,14 +29354,14 @@ function bO({
|
|
|
29353
29354
|
open: k,
|
|
29354
29355
|
defaultOpen: M = !1,
|
|
29355
29356
|
onOpenChange: j,
|
|
29356
|
-
infoText:
|
|
29357
|
-
customPresetLabel:
|
|
29357
|
+
infoText: V,
|
|
29358
|
+
customPresetLabel: O = "Custom",
|
|
29358
29359
|
customPresetDefaultDays: N = 30,
|
|
29359
29360
|
applyLabel: D = "Apply",
|
|
29360
|
-
cancelLabel:
|
|
29361
|
+
cancelLabel: z = "Cancel",
|
|
29361
29362
|
clearLabel: q = "Clear",
|
|
29362
29363
|
formatDate: X = R4,
|
|
29363
|
-
formatRange:
|
|
29364
|
+
formatRange: F,
|
|
29364
29365
|
triggerClassName: re,
|
|
29365
29366
|
contentClassName: se,
|
|
29366
29367
|
calendarClassName: I,
|
|
@@ -29456,11 +29457,11 @@ function bO({
|
|
|
29456
29457
|
ee
|
|
29457
29458
|
]);
|
|
29458
29459
|
const et = s.useMemo(() => {
|
|
29459
|
-
if (
|
|
29460
|
-
return
|
|
29460
|
+
if (F)
|
|
29461
|
+
return F(J);
|
|
29461
29462
|
const ye = E_(d, J.preset);
|
|
29462
29463
|
return ye && J.preset !== xr ? ye : Ta(J) ? Zd(J.from, J.to) ? X(J.from) : `${X(J.from)} - ${X(J.to)}` : u;
|
|
29463
|
-
}, [J, X,
|
|
29464
|
+
}, [J, X, F, u, d]), Wr = s.useCallback(
|
|
29464
29465
|
(ye) => {
|
|
29465
29466
|
zt(ye);
|
|
29466
29467
|
const rt = oy(ye), { from: Pe, to: Ht } = A_(rt, { minDate: x, maxDate: A, maxRangeDays: E });
|
|
@@ -29510,7 +29511,7 @@ function bO({
|
|
|
29510
29511
|
ke(J), fe(J.preset ?? (Ta(J) ? xr : "")), nt(!1), Le(void 0), De(!1);
|
|
29511
29512
|
}, La = () => {
|
|
29512
29513
|
pt({}), ke({}), fe(""), nt(!1), De(!1);
|
|
29513
|
-
}, Gr = Ta(ve), Dt = Ae === xr, Qa = G ? !!ve.from : Gr, Mr =
|
|
29514
|
+
}, Gr = Ta(ve), Dt = Ae === xr, Qa = G ? !!ve.from : Gr, Mr = V ?? (E ? `Date range can be selected for up to ${E} days.` : H ? "Date can be viewed only for the last 90 days." : G && Z ? "Date can be viewed only for a period of future date." : "Date can be viewed only for a period of up to 1 year."), $r = tn(Ot, Ve) > 0, la = Jt === 2 ? tn(Je, Ct) < 0 : tn(Ot, Ct) < 0;
|
|
29514
29515
|
return /* @__PURE__ */ c.jsxs(I_, { className: e, ...te, children: [
|
|
29515
29516
|
p && /* @__PURE__ */ c.jsx(Z_, { children: p }),
|
|
29516
29517
|
/* @__PURE__ */ c.jsxs(Un, { open: ne, onOpenChange: De, children: [
|
|
@@ -29570,7 +29571,7 @@ function bO({
|
|
|
29570
29571
|
onClick: tt,
|
|
29571
29572
|
ownerState: { md: m === "md", selected: Dt, presetDisabled: !1 },
|
|
29572
29573
|
children: [
|
|
29573
|
-
/* @__PURE__ */ c.jsx("span", { children:
|
|
29574
|
+
/* @__PURE__ */ c.jsx("span", { children: O }),
|
|
29574
29575
|
Dt && /* @__PURE__ */ c.jsx(Or, { size: 14, weight: "bold" })
|
|
29575
29576
|
]
|
|
29576
29577
|
}
|
|
@@ -29659,7 +29660,7 @@ function bO({
|
|
|
29659
29660
|
] }),
|
|
29660
29661
|
/* @__PURE__ */ c.jsxs(pO, { children: [
|
|
29661
29662
|
y && /* @__PURE__ */ c.jsx(ut, { variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ c.jsx(Er, { size: 13, weight: "bold" }), onClick: La, children: q }),
|
|
29662
|
-
/* @__PURE__ */ c.jsx(ut, { variant: "outline", size: "sm", onClick: dr, children:
|
|
29663
|
+
/* @__PURE__ */ c.jsx(ut, { variant: "outline", size: "sm", onClick: dr, children: z }),
|
|
29663
29664
|
/* @__PURE__ */ c.jsx(ut, { size: "sm", disabled: !Qa, onClick: Ur, children: D })
|
|
29664
29665
|
] })
|
|
29665
29666
|
] }) })
|
|
@@ -29813,8 +29814,8 @@ function D4({
|
|
|
29813
29814
|
headerClassName: k,
|
|
29814
29815
|
footerClassName: M
|
|
29815
29816
|
}) {
|
|
29816
|
-
const j = (
|
|
29817
|
-
!
|
|
29817
|
+
const j = (V) => {
|
|
29818
|
+
!V && T || (n == null || n(V), V || i == null || i());
|
|
29818
29819
|
};
|
|
29819
29820
|
return /* @__PURE__ */ c.jsxs(ms, { open: e, defaultOpen: a, onOpenChange: j, children: [
|
|
29820
29821
|
d && /* @__PURE__ */ c.jsx(U1, { asChild: !0, children: d }),
|
|
@@ -29825,11 +29826,11 @@ function D4({
|
|
|
29825
29826
|
{
|
|
29826
29827
|
ownerState: { placement: v, size: y },
|
|
29827
29828
|
className: rn(C, S),
|
|
29828
|
-
onPointerDownOutside: (
|
|
29829
|
-
(!A || T) &&
|
|
29829
|
+
onPointerDownOutside: (V) => {
|
|
29830
|
+
(!A || T) && V.preventDefault();
|
|
29830
29831
|
},
|
|
29831
|
-
onEscapeKeyDown: (
|
|
29832
|
-
(!E || T) &&
|
|
29832
|
+
onEscapeKeyDown: (V) => {
|
|
29833
|
+
(!E || T) && V.preventDefault();
|
|
29833
29834
|
},
|
|
29834
29835
|
children: [
|
|
29835
29836
|
(u || p || x) && /* @__PURE__ */ c.jsxs(xO, { className: k, children: [
|
|
@@ -30087,9 +30088,9 @@ const PO = /* @__PURE__ */ g("div", {
|
|
|
30087
30088
|
children: k,
|
|
30088
30089
|
...M
|
|
30089
30090
|
}, j) => {
|
|
30090
|
-
const
|
|
30091
|
-
return !
|
|
30092
|
-
|
|
30091
|
+
const V = !!u || !!n || !!p || !!b || !!A || !!x || s.Children.toArray(k).length > 0, O = v.length > 0 || m > 0;
|
|
30092
|
+
return !V && !O ? null : /* @__PURE__ */ c.jsxs(PO, { ref: j, ownerState: { sticky: !!E }, className: e, ...M, children: [
|
|
30093
|
+
V && /* @__PURE__ */ c.jsxs(IO, { className: T, children: [
|
|
30093
30094
|
u ?? (n && /* @__PURE__ */ c.jsx(
|
|
30094
30095
|
ZO,
|
|
30095
30096
|
{
|
|
@@ -30111,7 +30112,7 @@ const PO = /* @__PURE__ */ g("div", {
|
|
|
30111
30112
|
A,
|
|
30112
30113
|
x
|
|
30113
30114
|
] }),
|
|
30114
|
-
|
|
30115
|
+
O && /* @__PURE__ */ c.jsxs(GO, { className: C, children: [
|
|
30115
30116
|
v.map((N) => /* @__PURE__ */ c.jsx(qi, { tone: "neutral", onRemove: N.onRemove, children: N.label }, N.id)),
|
|
30116
30117
|
v.length === 0 && m > 0 && /* @__PURE__ */ c.jsxs(qi, { tone: "neutral", children: [
|
|
30117
30118
|
m,
|
|
@@ -31247,14 +31248,14 @@ const Hi = (e) => Array.from(new Set(e)), tP = {
|
|
|
31247
31248
|
footer: k,
|
|
31248
31249
|
applyLabel: M = "Apply",
|
|
31249
31250
|
cancelLabel: j,
|
|
31250
|
-
clearLabel:
|
|
31251
|
-
applyVariant:
|
|
31251
|
+
clearLabel: V,
|
|
31252
|
+
applyVariant: O = "outline",
|
|
31252
31253
|
cancelVariant: N,
|
|
31253
31254
|
clearVariant: D,
|
|
31254
|
-
className:
|
|
31255
|
+
className: z,
|
|
31255
31256
|
id: q,
|
|
31256
31257
|
"aria-describedby": X,
|
|
31257
|
-
"aria-invalid":
|
|
31258
|
+
"aria-invalid": F
|
|
31258
31259
|
}, re) => {
|
|
31259
31260
|
const se = S === "apply", [I, ue] = s.useState(!1), [H, G] = s.useState(""), [Z, ee] = s.useState(0), [te, L] = s.useState(() => Hi(n)), [$, ce] = s.useState(() => Hi(n)), J = s.useRef(null), he = b ?? p !== "filter", pe = s.useMemo(() => Hi(a ?? te), [a, te]), ne = se ? $ : pe, Ae = s.useMemo(() => new Set(ne), [ne]), fe = s.useMemo(() => new Map(e.map((be) => [be.value, be])), [e]), ve = pe.map((be) => fe.get(be) ?? { value: be, label: be }), ke = ve.slice(0, 1), Me = Math.max(ve.length - ke.length, 0), Le = s.useMemo(
|
|
31260
31261
|
() => he ? e.filter((be) => be.label.toLowerCase().includes(H.toLowerCase())) : e,
|
|
@@ -31273,7 +31274,7 @@ const Hi = (e) => Array.from(new Set(e)), tP = {
|
|
|
31273
31274
|
se ? ce(Hi(Re)) : nt(Re);
|
|
31274
31275
|
}, Wt = () => {
|
|
31275
31276
|
nt($), d == null || d(Hi($)), it(!1);
|
|
31276
|
-
}, jt = j ??
|
|
31277
|
+
}, jt = j ?? V ?? "Cancel", zt = N ?? D ?? "outline", Ot = () => {
|
|
31277
31278
|
ce(pe), it(!1);
|
|
31278
31279
|
}, St = (be) => {
|
|
31279
31280
|
if (!I && ["ArrowDown", "Enter", " "].includes(be.key)) {
|
|
@@ -31316,10 +31317,10 @@ const Hi = (e) => Array.from(new Set(e)), tP = {
|
|
|
31316
31317
|
"aria-haspopup": "listbox",
|
|
31317
31318
|
"aria-expanded": I,
|
|
31318
31319
|
"aria-describedby": X,
|
|
31319
|
-
"aria-invalid":
|
|
31320
|
+
"aria-invalid": F ?? A,
|
|
31320
31321
|
"data-filled": Je && !A ? "" : void 0,
|
|
31321
31322
|
ownerState: { size: T, error: !!A, hasSelection: Je },
|
|
31322
|
-
className:
|
|
31323
|
+
className: z,
|
|
31323
31324
|
onKeyDown: St,
|
|
31324
31325
|
children: [
|
|
31325
31326
|
/* @__PURE__ */ c.jsx(lP, { children: Je ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -31378,7 +31379,7 @@ const Hi = (e) => Array.from(new Set(e)), tP = {
|
|
|
31378
31379
|
] }, `group-${Re}`)) }),
|
|
31379
31380
|
k !== void 0 ? /* @__PURE__ */ c.jsx(SP, { children: k }) : Ut ? /* @__PURE__ */ c.jsxs(AP, { children: [
|
|
31380
31381
|
/* @__PURE__ */ c.jsx(py, { type: "button", variant: zt, size: "xs", onClick: Ot, children: jt }),
|
|
31381
|
-
/* @__PURE__ */ c.jsx(py, { type: "button", variant:
|
|
31382
|
+
/* @__PURE__ */ c.jsx(py, { type: "button", variant: O, size: "xs", onClick: Wt, children: M })
|
|
31382
31383
|
] }) : null
|
|
31383
31384
|
]
|
|
31384
31385
|
}
|
|
@@ -31473,8 +31474,8 @@ const $4 = {
|
|
|
31473
31474
|
]), jP = (e, a, n) => typeof a == "number" && e < a ? a : typeof n == "number" && e > n ? n : e, Y4 = s.forwardRef(
|
|
31474
31475
|
({ className: e, value: a, defaultValue: n = 0, onValueChange: i, min: d, max: u, step: p = 1, size: b = "md", error: m, disabled: v, ...y }, x) => {
|
|
31475
31476
|
const [A, E] = s.useState(n), T = a ?? A, C = (j) => {
|
|
31476
|
-
const
|
|
31477
|
-
a === void 0 && E(
|
|
31477
|
+
const V = jP(Number.isFinite(j) ? j : d ?? 0, d, u);
|
|
31478
|
+
a === void 0 && E(V), i == null || i(V);
|
|
31478
31479
|
}, S = v || typeof d == "number" && T <= d, k = v || typeof u == "number" && T >= u, M = {
|
|
31479
31480
|
size: b,
|
|
31480
31481
|
error: !!m,
|
|
@@ -31831,8 +31832,8 @@ const IP = /* @__PURE__ */ g("div", {
|
|
|
31831
31832
|
tabsClassName: k,
|
|
31832
31833
|
filtersClassName: M,
|
|
31833
31834
|
tableClassName: j,
|
|
31834
|
-
...
|
|
31835
|
-
},
|
|
31835
|
+
...V
|
|
31836
|
+
}, O) => /* @__PURE__ */ c.jsxs(IP, { ref: O, className: e, ...V, children: [
|
|
31836
31837
|
/* @__PURE__ */ c.jsxs(ZP, { className: y, children: [
|
|
31837
31838
|
/* @__PURE__ */ c.jsx(WP, { className: x, children: a }),
|
|
31838
31839
|
n && /* @__PURE__ */ c.jsx(UP, { className: A, children: n })
|
|
@@ -32596,21 +32597,21 @@ const CI = {
|
|
|
32596
32597
|
"aria-describedby": T,
|
|
32597
32598
|
"aria-invalid": C
|
|
32598
32599
|
}, S) => {
|
|
32599
|
-
const k = typeof x == "number" ? { width: x, minWidth: x } : void 0, [M, j] = s.useState(!1), [
|
|
32600
|
-
() => e.filter((I) => I.label.toLowerCase().includes(
|
|
32601
|
-
[e,
|
|
32602
|
-
),
|
|
32603
|
-
j(I), I || (
|
|
32600
|
+
const k = typeof x == "number" ? { width: x, minWidth: x } : void 0, [M, j] = s.useState(!1), [V, O] = s.useState(""), [N, D] = s.useState(0), z = s.useRef(null), q = e.find((I) => I.value === a), X = s.useMemo(
|
|
32601
|
+
() => e.filter((I) => I.label.toLowerCase().includes(V.toLowerCase())),
|
|
32602
|
+
[e, V]
|
|
32603
|
+
), F = (I) => {
|
|
32604
|
+
j(I), I || (O(""), D(0));
|
|
32604
32605
|
}, re = (I) => {
|
|
32605
|
-
n == null || n(I),
|
|
32606
|
+
n == null || n(I), F(!1);
|
|
32606
32607
|
}, se = (I) => {
|
|
32607
32608
|
if (!M && ["ArrowDown", "Enter", " "].includes(I.key)) {
|
|
32608
|
-
I.preventDefault(),
|
|
32609
|
+
I.preventDefault(), F(!0);
|
|
32609
32610
|
return;
|
|
32610
32611
|
}
|
|
32611
|
-
M && (I.key === "Escape" &&
|
|
32612
|
+
M && (I.key === "Escape" && F(!1), I.key === "ArrowDown" && (I.preventDefault(), D((ue) => Math.min(ue + 1, X.length - 1))), I.key === "ArrowUp" && (I.preventDefault(), D((ue) => Math.max(ue - 1, 0))), I.key === "Enter" && X[N] && (I.preventDefault(), re(X[N].value)));
|
|
32612
32613
|
};
|
|
32613
|
-
return /* @__PURE__ */ c.jsxs(Un, { open: M, onOpenChange:
|
|
32614
|
+
return /* @__PURE__ */ c.jsxs(Un, { open: M, onOpenChange: F, children: [
|
|
32614
32615
|
/* @__PURE__ */ c.jsx(Vs, { asChild: !0, children: /* @__PURE__ */ c.jsxs(
|
|
32615
32616
|
RI,
|
|
32616
32617
|
{
|
|
@@ -32654,7 +32655,7 @@ const CI = {
|
|
|
32654
32655
|
collisionPadding: Sa,
|
|
32655
32656
|
onOpenAutoFocus: (I) => {
|
|
32656
32657
|
var ue;
|
|
32657
|
-
I.preventDefault(), (ue =
|
|
32658
|
+
I.preventDefault(), (ue = z.current) == null || ue.focus();
|
|
32658
32659
|
},
|
|
32659
32660
|
onKeyDown: se,
|
|
32660
32661
|
style: k,
|
|
@@ -32663,10 +32664,10 @@ const CI = {
|
|
|
32663
32664
|
/* @__PURE__ */ c.jsx(
|
|
32664
32665
|
VI,
|
|
32665
32666
|
{
|
|
32666
|
-
ref:
|
|
32667
|
-
value:
|
|
32667
|
+
ref: z,
|
|
32668
|
+
value: V,
|
|
32668
32669
|
onChange: (I) => {
|
|
32669
|
-
|
|
32670
|
+
O(I.target.value), D(0);
|
|
32670
32671
|
},
|
|
32671
32672
|
placeholder: d
|
|
32672
32673
|
}
|
|
@@ -32895,14 +32896,14 @@ const PI = {
|
|
|
32895
32896
|
color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
|
|
32896
32897
|
}), r5 = s.forwardRef(
|
|
32897
32898
|
({ suggestions: e, value: a, defaultValue: n = "", onValueChange: i, onSuggestionSelect: d, renderItem: u, placeholder: p = "Search or type", emptyText: b = "No suggestions found", loading: m, disabled: v, error: y, className: x, id: A, "aria-describedby": E, "aria-invalid": T }, C) => {
|
|
32898
|
-
const [S, k] = s.useState(n), [M, j] = s.useState(!1), [
|
|
32899
|
+
const [S, k] = s.useState(n), [M, j] = s.useState(!1), [V, O] = s.useState(0), N = s.useRef(null), D = a ?? S, z = s.useMemo(() => e, [e]), q = M && (m || z.length > 0 || D.length > 0), X = (I) => {
|
|
32899
32900
|
N.current = I, typeof C == "function" ? C(I) : C && (C.current = I);
|
|
32900
|
-
},
|
|
32901
|
+
}, F = (I) => {
|
|
32901
32902
|
a === void 0 && k(I), i == null || i(I);
|
|
32902
32903
|
}, re = (I) => {
|
|
32903
|
-
I.disabled || (
|
|
32904
|
+
I.disabled || (F(I.value), d == null || d(I), j(!1));
|
|
32904
32905
|
}, se = (I) => {
|
|
32905
|
-
I.key === "ArrowDown" && (I.preventDefault(), j(!0),
|
|
32906
|
+
I.key === "ArrowDown" && (I.preventDefault(), j(!0), O((ue) => Math.min(ue + 1, Math.max(z.length - 1, 0)))), I.key === "ArrowUp" && (I.preventDefault(), O((ue) => Math.max(ue - 1, 0))), I.key === "Escape" && j(!1), I.key === "Enter" && q && z[V] && (I.preventDefault(), re(z[V]));
|
|
32906
32907
|
};
|
|
32907
32908
|
return /* @__PURE__ */ c.jsxs(Un, { open: q, onOpenChange: j, children: [
|
|
32908
32909
|
/* @__PURE__ */ c.jsx(Z6, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
@@ -32920,7 +32921,7 @@ const PI = {
|
|
|
32920
32921
|
ownerState: { error: !!y },
|
|
32921
32922
|
className: x,
|
|
32922
32923
|
onChange: (I) => {
|
|
32923
|
-
|
|
32924
|
+
F(I.currentTarget.value), j(!0), O(0);
|
|
32924
32925
|
},
|
|
32925
32926
|
onFocus: () => j(!0),
|
|
32926
32927
|
onKeyDown: se
|
|
@@ -32933,7 +32934,7 @@ const PI = {
|
|
|
32933
32934
|
sideOffset: 6,
|
|
32934
32935
|
collisionPadding: Sa,
|
|
32935
32936
|
onOpenAutoFocus: (I) => I.preventDefault(),
|
|
32936
|
-
children: /* @__PURE__ */ c.jsx(GI, { role: "listbox", children: m ? /* @__PURE__ */ c.jsx($I, { children: /* @__PURE__ */ c.jsx(xo, { size: "sm" }) }) :
|
|
32937
|
+
children: /* @__PURE__ */ c.jsx(GI, { role: "listbox", children: m ? /* @__PURE__ */ c.jsx($I, { children: /* @__PURE__ */ c.jsx(xo, { size: "sm" }) }) : z.length === 0 ? /* @__PURE__ */ c.jsx(YI, { children: b }) : z.map((I, ue) => {
|
|
32937
32938
|
const H = I.value === D;
|
|
32938
32939
|
return /* @__PURE__ */ c.jsxs(
|
|
32939
32940
|
qI,
|
|
@@ -32942,8 +32943,8 @@ const PI = {
|
|
|
32942
32943
|
role: "option",
|
|
32943
32944
|
"aria-selected": H,
|
|
32944
32945
|
disabled: I.disabled,
|
|
32945
|
-
ownerState: { selected: H, active:
|
|
32946
|
-
onMouseEnter: () =>
|
|
32946
|
+
ownerState: { selected: H, active: V === ue },
|
|
32947
|
+
onMouseEnter: () => O(ue),
|
|
32947
32948
|
onClick: () => re(I),
|
|
32948
32949
|
children: [
|
|
32949
32950
|
/* @__PURE__ */ c.jsx(KI, { children: u ? u(I) : /* @__PURE__ */ c.jsx(tZ, { item: I, selected: H }) }),
|
|
@@ -33115,18 +33116,18 @@ const rZ = {
|
|
|
33115
33116
|
"aria-describedby": x,
|
|
33116
33117
|
"aria-invalid": A
|
|
33117
33118
|
}, E) => {
|
|
33118
|
-
const [T, C] = s.useState(""), [S, k] = s.useState(!1), [M, j] = s.useState(0),
|
|
33119
|
-
() =>
|
|
33120
|
-
[
|
|
33121
|
-
), D = S && N.length > 0,
|
|
33122
|
-
const re =
|
|
33119
|
+
const [T, C] = s.useState(""), [S, k] = s.useState(!1), [M, j] = s.useState(0), V = s.useRef(null), O = T.trim().toLowerCase(), N = s.useMemo(
|
|
33120
|
+
() => O ? n.filter((F) => F.toLowerCase().includes(O) && !e.includes(F)).slice(0, u) : [],
|
|
33121
|
+
[O, n, e, u]
|
|
33122
|
+
), D = S && N.length > 0, z = (F) => {
|
|
33123
|
+
const re = F.trim();
|
|
33123
33124
|
re && !e.includes(re) && a([...e, re]), C(""), j(0);
|
|
33124
|
-
}, q = (
|
|
33125
|
+
}, q = (F) => {
|
|
33125
33126
|
var re;
|
|
33126
|
-
|
|
33127
|
+
F.key === "Enter" || F.key === "," ? (F.preventDefault(), D && N[M] ? z(N[M]) : i && z(T)) : F.key === "Backspace" && !T && e.length ? a(e.slice(0, -1)) : F.key === "ArrowDown" ? (F.preventDefault(), j((se) => Math.min(se + 1, N.length - 1))) : F.key === "ArrowUp" ? (F.preventDefault(), j((se) => Math.max(se - 1, 0))) : F.key === "Escape" && (k(!1), (re = V.current) == null || re.blur());
|
|
33127
33128
|
}, X = e.length > 0;
|
|
33128
|
-
return /* @__PURE__ */ c.jsxs(Un, { open: D, onOpenChange: (
|
|
33129
|
-
|
|
33129
|
+
return /* @__PURE__ */ c.jsxs(Un, { open: D, onOpenChange: (F) => {
|
|
33130
|
+
F || k(!1);
|
|
33130
33131
|
}, children: [
|
|
33131
33132
|
/* @__PURE__ */ c.jsx(Z6, { asChild: !0, children: /* @__PURE__ */ c.jsxs(
|
|
33132
33133
|
lZ,
|
|
@@ -33138,35 +33139,35 @@ const rZ = {
|
|
|
33138
33139
|
ownerState: { size: p, error: !!m, disabled: !!b },
|
|
33139
33140
|
className: v,
|
|
33140
33141
|
onClick: () => {
|
|
33141
|
-
var
|
|
33142
|
-
return !b && ((
|
|
33142
|
+
var F;
|
|
33143
|
+
return !b && ((F = V.current) == null ? void 0 : F.focus());
|
|
33143
33144
|
},
|
|
33144
33145
|
children: [
|
|
33145
|
-
e.map((
|
|
33146
|
+
e.map((F) => /* @__PURE__ */ c.jsx(
|
|
33146
33147
|
qi,
|
|
33147
33148
|
{
|
|
33148
33149
|
size: p === "sm" ? "xs" : "sm",
|
|
33149
33150
|
tone: "primary",
|
|
33150
33151
|
variant: "soft",
|
|
33151
33152
|
removable: !b,
|
|
33152
|
-
removeLabel: `Remove ${
|
|
33153
|
-
onRemove: b ? void 0 : () => a(e.filter((re) => re !==
|
|
33154
|
-
children:
|
|
33153
|
+
removeLabel: `Remove ${F}`,
|
|
33154
|
+
onRemove: b ? void 0 : () => a(e.filter((re) => re !== F)),
|
|
33155
|
+
children: F
|
|
33155
33156
|
},
|
|
33156
|
-
|
|
33157
|
+
F
|
|
33157
33158
|
)),
|
|
33158
33159
|
/* @__PURE__ */ c.jsx(
|
|
33159
33160
|
sZ,
|
|
33160
33161
|
{
|
|
33161
|
-
ref:
|
|
33162
|
+
ref: V,
|
|
33162
33163
|
id: y,
|
|
33163
33164
|
value: T,
|
|
33164
33165
|
disabled: b,
|
|
33165
33166
|
placeholder: X ? void 0 : d,
|
|
33166
33167
|
"aria-autocomplete": "list",
|
|
33167
33168
|
"aria-expanded": D,
|
|
33168
|
-
onChange: (
|
|
33169
|
-
C(
|
|
33169
|
+
onChange: (F) => {
|
|
33170
|
+
C(F.target.value), j(0);
|
|
33170
33171
|
},
|
|
33171
33172
|
onKeyDown: q,
|
|
33172
33173
|
onFocus: () => k(!0),
|
|
@@ -33182,8 +33183,8 @@ const rZ = {
|
|
|
33182
33183
|
align: "start",
|
|
33183
33184
|
sideOffset: 6,
|
|
33184
33185
|
collisionPadding: Sa,
|
|
33185
|
-
onOpenAutoFocus: (
|
|
33186
|
-
children: /* @__PURE__ */ c.jsx(dZ, { role: "listbox", children: N.map((
|
|
33186
|
+
onOpenAutoFocus: (F) => F.preventDefault(),
|
|
33187
|
+
children: /* @__PURE__ */ c.jsx(dZ, { role: "listbox", children: N.map((F, re) => /* @__PURE__ */ c.jsx(
|
|
33187
33188
|
fZ,
|
|
33188
33189
|
{
|
|
33189
33190
|
type: "button",
|
|
@@ -33191,12 +33192,12 @@ const rZ = {
|
|
|
33191
33192
|
"aria-selected": M === re,
|
|
33192
33193
|
ownerState: { size: p, active: M === re },
|
|
33193
33194
|
onMouseDown: (se) => {
|
|
33194
|
-
se.preventDefault(),
|
|
33195
|
+
se.preventDefault(), z(F);
|
|
33195
33196
|
},
|
|
33196
33197
|
onMouseEnter: () => j(re),
|
|
33197
|
-
children:
|
|
33198
|
+
children: F
|
|
33198
33199
|
},
|
|
33199
|
-
|
|
33200
|
+
F
|
|
33200
33201
|
)) })
|
|
33201
33202
|
}
|
|
33202
33203
|
) }) })
|
|
@@ -33466,10 +33467,10 @@ const hZ = /* @__PURE__ */ g("input", {
|
|
|
33466
33467
|
v == null || v((m ?? []).filter((D) => D !== N));
|
|
33467
33468
|
}, j = (N, D) => {
|
|
33468
33469
|
N.preventDefault(), N.stopPropagation(), i || T(D);
|
|
33469
|
-
},
|
|
33470
|
+
}, V = () => {
|
|
33470
33471
|
var N;
|
|
33471
33472
|
i || (A.current && (A.current.value = ""), (N = A.current) == null || N.click());
|
|
33472
|
-
},
|
|
33473
|
+
}, O = /* @__PURE__ */ c.jsx(
|
|
33473
33474
|
hZ,
|
|
33474
33475
|
{
|
|
33475
33476
|
ref: A,
|
|
@@ -33496,7 +33497,7 @@ const hZ = /* @__PURE__ */ g("input", {
|
|
|
33496
33497
|
},
|
|
33497
33498
|
...y,
|
|
33498
33499
|
children: [
|
|
33499
|
-
|
|
33500
|
+
O,
|
|
33500
33501
|
m.map((N, D) => /* @__PURE__ */ c.jsxs(mZ, { ownerState: { divided: D > 0 }, children: [
|
|
33501
33502
|
/* @__PURE__ */ c.jsx(gZ, { children: /* @__PURE__ */ c.jsx(iE, { size: 16, weight: "bold" }) }),
|
|
33502
33503
|
/* @__PURE__ */ c.jsxs(vZ, { children: [
|
|
@@ -33508,14 +33509,14 @@ const hZ = /* @__PURE__ */ g("input", {
|
|
|
33508
33509
|
{
|
|
33509
33510
|
type: "button",
|
|
33510
33511
|
"aria-label": `Remove ${N.name}`,
|
|
33511
|
-
onClick: (
|
|
33512
|
-
|
|
33512
|
+
onClick: (z) => {
|
|
33513
|
+
z.stopPropagation(), M(N);
|
|
33513
33514
|
},
|
|
33514
33515
|
children: /* @__PURE__ */ c.jsx(Er, { size: 13, weight: "bold" })
|
|
33515
33516
|
}
|
|
33516
33517
|
)
|
|
33517
33518
|
] }, `${N.name}-${D}`)),
|
|
33518
|
-
n && !i && /* @__PURE__ */ c.jsxs(SZ, { type: "button", onClick:
|
|
33519
|
+
n && !i && /* @__PURE__ */ c.jsxs(SZ, { type: "button", onClick: V, children: [
|
|
33519
33520
|
/* @__PURE__ */ c.jsx(T0, { size: 13, weight: "bold" }),
|
|
33520
33521
|
/* @__PURE__ */ c.jsx("span", { children: "Add more files" })
|
|
33521
33522
|
] })
|
|
@@ -33527,7 +33528,7 @@ const hZ = /* @__PURE__ */ g("input", {
|
|
|
33527
33528
|
ref: x,
|
|
33528
33529
|
ownerState: S,
|
|
33529
33530
|
className: e,
|
|
33530
|
-
onClick:
|
|
33531
|
+
onClick: V,
|
|
33531
33532
|
onDragEnter: (N) => j(N, !0),
|
|
33532
33533
|
onDragOver: (N) => j(N, !0),
|
|
33533
33534
|
onDragLeave: (N) => j(N, !1),
|
|
@@ -33536,7 +33537,7 @@ const hZ = /* @__PURE__ */ g("input", {
|
|
|
33536
33537
|
},
|
|
33537
33538
|
...y,
|
|
33538
33539
|
children: [
|
|
33539
|
-
|
|
33540
|
+
O,
|
|
33540
33541
|
/* @__PURE__ */ c.jsx(EZ, { children: /* @__PURE__ */ c.jsx(T0, { size: 20, weight: "bold" }) }),
|
|
33541
33542
|
/* @__PURE__ */ c.jsx(kZ, { children: u }),
|
|
33542
33543
|
/* @__PURE__ */ c.jsx(TZ, { children: p }),
|
|
@@ -33765,9 +33766,9 @@ const LZ = ({ size: e }) => /* @__PURE__ */ c.jsx("svg", { width: e, height: e,
|
|
|
33765
33766
|
copiedLabel: k = "Copied",
|
|
33766
33767
|
valueClassName: M,
|
|
33767
33768
|
actionClassName: j,
|
|
33768
|
-
...
|
|
33769
|
-
},
|
|
33770
|
-
const [N, D] = s.useState(i), [
|
|
33769
|
+
...V
|
|
33770
|
+
}, O) => {
|
|
33771
|
+
const [N, D] = s.useState(i), [z, q] = s.useState("idle"), X = s.useRef(), F = !IZ(a), re = a ?? "", se = d ?? N, I = se ? v ?? re : ZZ(re, x, A);
|
|
33771
33772
|
s.useEffect(() => () => {
|
|
33772
33773
|
X.current !== void 0 && window.clearTimeout(X.current);
|
|
33773
33774
|
}, []);
|
|
@@ -33782,7 +33783,7 @@ const LZ = ({ size: e }) => /* @__PURE__ */ c.jsx("svg", { width: e, height: e,
|
|
|
33782
33783
|
b == null || b(ee);
|
|
33783
33784
|
}
|
|
33784
33785
|
};
|
|
33785
|
-
return
|
|
33786
|
+
return F ? /* @__PURE__ */ c.jsxs(vy, { ref: O, ownerState: { hasValue: !0 }, className: e, ...V, children: [
|
|
33786
33787
|
/* @__PURE__ */ c.jsx(_Z, { as: "span", ownerState: { size: T }, className: M, children: I }),
|
|
33787
33788
|
!se && /* @__PURE__ */ c.jsx(
|
|
33788
33789
|
OZ,
|
|
@@ -33803,19 +33804,19 @@ const LZ = ({ size: e }) => /* @__PURE__ */ c.jsx("svg", { width: e, height: e,
|
|
|
33803
33804
|
FZ,
|
|
33804
33805
|
{
|
|
33805
33806
|
type: "button",
|
|
33806
|
-
"aria-label":
|
|
33807
|
-
title:
|
|
33807
|
+
"aria-label": z === "copied" ? k : S,
|
|
33808
|
+
title: z === "copied" ? k : S,
|
|
33808
33809
|
variant: "ghost",
|
|
33809
33810
|
size: "sm",
|
|
33810
|
-
ownerState: { size: T, copied:
|
|
33811
|
+
ownerState: { size: T, copied: z === "copied" },
|
|
33811
33812
|
className: j,
|
|
33812
|
-
icon: /* @__PURE__ */ c.jsx(P4, { icon:
|
|
33813
|
+
icon: /* @__PURE__ */ c.jsx(P4, { icon: z === "copied" ? Or : Ky, size: gy[T], weight: "bold" }),
|
|
33813
33814
|
onClick: H
|
|
33814
33815
|
}
|
|
33815
33816
|
),
|
|
33816
|
-
/* @__PURE__ */ c.jsx(PZ, { "aria-live": "polite", children:
|
|
33817
|
+
/* @__PURE__ */ c.jsx(PZ, { "aria-live": "polite", children: z === "copied" ? k : "" })
|
|
33817
33818
|
] })
|
|
33818
|
-
] }) : /* @__PURE__ */ c.jsx(vy, { ref:
|
|
33819
|
+
] }) : /* @__PURE__ */ c.jsx(vy, { ref: O, ownerState: { hasValue: !1 }, className: e, ...V, children: /* @__PURE__ */ c.jsx(BZ, { as: "span", tone: "muted", ownerState: { size: T }, className: M, children: y }) });
|
|
33819
33820
|
}
|
|
33820
33821
|
);
|
|
33821
33822
|
bh.displayName = "RevealAndCopy";
|
|
@@ -34121,18 +34122,18 @@ const oW = /* @__PURE__ */ g("div", {
|
|
|
34121
34122
|
"aria-describedby": k,
|
|
34122
34123
|
"aria-invalid": M,
|
|
34123
34124
|
"aria-valuetext": j,
|
|
34124
|
-
...
|
|
34125
|
-
},
|
|
34126
|
-
const N = s.useId(), D = u ?? N,
|
|
34125
|
+
...V
|
|
34126
|
+
}, O) => {
|
|
34127
|
+
const N = s.useId(), D = u ?? N, z = E ? `${D}-helper` : void 0, q = T ? `${D}-error` : void 0, X = [k, z, q].filter(Boolean).join(" ") || void 0, F = S ? S(p) : p;
|
|
34127
34128
|
return /* @__PURE__ */ c.jsxs(oW, { className: rn(a, e) || void 0, children: [
|
|
34128
|
-
(A ||
|
|
34129
|
+
(A || F !== void 0) && /* @__PURE__ */ c.jsxs(nW, { children: [
|
|
34129
34130
|
A ? /* @__PURE__ */ c.jsx(iW, { htmlFor: D, ownerState: { disabled: !!x }, className: n, children: A }) : /* @__PURE__ */ c.jsx("span", {}),
|
|
34130
|
-
/* @__PURE__ */ c.jsx(sW, { htmlFor: D, ownerState: { size: C, disabled: !!x }, className: i, children:
|
|
34131
|
+
/* @__PURE__ */ c.jsx(sW, { htmlFor: D, ownerState: { size: C, disabled: !!x }, className: i, children: F })
|
|
34131
34132
|
] }),
|
|
34132
34133
|
/* @__PURE__ */ c.jsx(
|
|
34133
34134
|
dW,
|
|
34134
34135
|
{
|
|
34135
|
-
ref:
|
|
34136
|
+
ref: O,
|
|
34136
34137
|
id: D,
|
|
34137
34138
|
type: "range",
|
|
34138
34139
|
value: p,
|
|
@@ -34142,18 +34143,18 @@ const oW = /* @__PURE__ */ g("div", {
|
|
|
34142
34143
|
disabled: x,
|
|
34143
34144
|
"aria-describedby": X,
|
|
34144
34145
|
"aria-invalid": M ?? !!T,
|
|
34145
|
-
"aria-valuetext": j ?? hW(
|
|
34146
|
+
"aria-valuetext": j ?? hW(F),
|
|
34146
34147
|
ownerState: { size: C },
|
|
34147
34148
|
className: d,
|
|
34148
34149
|
onChange: (re) => b(re.currentTarget.valueAsNumber),
|
|
34149
|
-
...
|
|
34150
|
+
...V
|
|
34150
34151
|
}
|
|
34151
34152
|
),
|
|
34152
34153
|
/* @__PURE__ */ c.jsxs(uW, { children: [
|
|
34153
34154
|
/* @__PURE__ */ c.jsx("span", { children: m }),
|
|
34154
34155
|
/* @__PURE__ */ c.jsx("span", { children: v })
|
|
34155
34156
|
] }),
|
|
34156
|
-
T ? /* @__PURE__ */ c.jsx(fW, { id: q, children: T }) : E ? /* @__PURE__ */ c.jsx(pW, { id:
|
|
34157
|
+
T ? /* @__PURE__ */ c.jsx(fW, { id: q, children: T }) : E ? /* @__PURE__ */ c.jsx(pW, { id: z, children: E }) : null
|
|
34157
34158
|
] });
|
|
34158
34159
|
}
|
|
34159
34160
|
);
|
|
@@ -34849,17 +34850,17 @@ const v5 = s.forwardRef(
|
|
|
34849
34850
|
style: T,
|
|
34850
34851
|
...C
|
|
34851
34852
|
}, S) => {
|
|
34852
|
-
const k = a.map((D,
|
|
34853
|
+
const k = a.map((D, z) => ({
|
|
34853
34854
|
...D,
|
|
34854
|
-
state: dU(D,
|
|
34855
|
+
state: dU(D, z, n)
|
|
34855
34856
|
})), M = {
|
|
34856
34857
|
gridTemplateColumns: `repeat(${Math.max(k.length, 1)}, minmax(0, 1fr))`
|
|
34857
|
-
}, j = b && !!v,
|
|
34858
|
+
}, j = b && !!v, V = is[x] ? x : "sm", O = g5[E] ? E : "primary", N = d ?? u;
|
|
34858
34859
|
return /* @__PURE__ */ c.jsxs(
|
|
34859
34860
|
WW,
|
|
34860
34861
|
{
|
|
34861
34862
|
ref: S,
|
|
34862
|
-
ownerState: { size:
|
|
34863
|
+
ownerState: { size: V, surface: A },
|
|
34863
34864
|
className: e,
|
|
34864
34865
|
style: T,
|
|
34865
34866
|
"aria-label": typeof i == "string" ? i : "Step progress",
|
|
@@ -34868,10 +34869,10 @@ const v5 = s.forwardRef(
|
|
|
34868
34869
|
p && /* @__PURE__ */ c.jsxs(
|
|
34869
34870
|
UW,
|
|
34870
34871
|
{
|
|
34871
|
-
ownerState: { size:
|
|
34872
|
-
style:
|
|
34872
|
+
ownerState: { size: V, variant: O, canClose: j },
|
|
34873
|
+
style: O === "warning" ? nn : void 0,
|
|
34873
34874
|
children: [
|
|
34874
|
-
|
|
34875
|
+
O === "warning" ? /* @__PURE__ */ c.jsx(GW, { children: /* @__PURE__ */ c.jsx(Xd, {}) }) : /* @__PURE__ */ c.jsx($W, { size: is[V].announcementIcon, weight: "regular" }),
|
|
34875
34876
|
/* @__PURE__ */ c.jsx(YW, { children: p })
|
|
34876
34877
|
]
|
|
34877
34878
|
}
|
|
@@ -34880,55 +34881,55 @@ const v5 = s.forwardRef(
|
|
|
34880
34881
|
qW,
|
|
34881
34882
|
{
|
|
34882
34883
|
"aria-label": m,
|
|
34883
|
-
icon: /* @__PURE__ */ c.jsx(Er, { size: is[
|
|
34884
|
-
size: is[
|
|
34884
|
+
icon: /* @__PURE__ */ c.jsx(Er, { size: is[V].closeIcon }),
|
|
34885
|
+
size: is[V].closeSize,
|
|
34885
34886
|
variant: "ghost",
|
|
34886
|
-
ownerState: { size:
|
|
34887
|
+
ownerState: { size: V },
|
|
34887
34888
|
onClick: v
|
|
34888
34889
|
}
|
|
34889
34890
|
),
|
|
34890
34891
|
k.length > 0 && /* @__PURE__ */ c.jsx(
|
|
34891
34892
|
KW,
|
|
34892
34893
|
{
|
|
34893
|
-
ownerState: { size:
|
|
34894
|
+
ownerState: { size: V, hasAnnouncement: !!p },
|
|
34894
34895
|
style: M,
|
|
34895
34896
|
"aria-live": "polite",
|
|
34896
|
-
children: k.map((D,
|
|
34897
|
-
const q = !!y && !D.disabled, X = D.state === "pending" || D.state === "disabled",
|
|
34897
|
+
children: k.map((D, z) => {
|
|
34898
|
+
const q = !!y && !D.disabled, X = D.state === "pending" || D.state === "disabled", F = D.id ?? z, re = /* @__PURE__ */ c.jsx(uU, { state: D.state, size: V, variant: O }), se = D.secondaryText ?? D.description, I = /* @__PURE__ */ c.jsxs(oU, { ownerState: { size: V }, children: [
|
|
34898
34899
|
/* @__PURE__ */ c.jsx(
|
|
34899
34900
|
nU,
|
|
34900
34901
|
{
|
|
34901
|
-
ownerState: { size:
|
|
34902
|
-
style: !X &&
|
|
34902
|
+
ownerState: { size: V, variant: O, muted: X },
|
|
34903
|
+
style: !X && O === "warning" ? _x : void 0,
|
|
34903
34904
|
children: D.label
|
|
34904
34905
|
}
|
|
34905
34906
|
),
|
|
34906
|
-
se && /* @__PURE__ */ c.jsx(iU, { ownerState: { size:
|
|
34907
|
+
se && /* @__PURE__ */ c.jsx(iU, { ownerState: { size: V }, children: se })
|
|
34907
34908
|
] });
|
|
34908
34909
|
return /* @__PURE__ */ c.jsxs(XW, { "aria-current": D.state === "active" ? "step" : void 0, children: [
|
|
34909
|
-
|
|
34910
|
+
z < k.length - 1 && /* @__PURE__ */ c.jsx(QW, { ownerState: { size: V }, "aria-hidden": "true" }),
|
|
34910
34911
|
q ? /* @__PURE__ */ c.jsxs(
|
|
34911
34912
|
JW,
|
|
34912
34913
|
{
|
|
34913
34914
|
type: "button",
|
|
34914
|
-
ownerState: { size:
|
|
34915
|
-
onClick: () => y == null ? void 0 : y(D,
|
|
34915
|
+
ownerState: { size: V },
|
|
34916
|
+
onClick: () => y == null ? void 0 : y(D, z),
|
|
34916
34917
|
children: [
|
|
34917
34918
|
re,
|
|
34918
34919
|
I
|
|
34919
34920
|
]
|
|
34920
34921
|
}
|
|
34921
|
-
) : /* @__PURE__ */ c.jsxs(eU, { ownerState: { size:
|
|
34922
|
+
) : /* @__PURE__ */ c.jsxs(eU, { ownerState: { size: V }, children: [
|
|
34922
34923
|
re,
|
|
34923
34924
|
I
|
|
34924
34925
|
] })
|
|
34925
|
-
] },
|
|
34926
|
+
] }, F);
|
|
34926
34927
|
})
|
|
34927
34928
|
}
|
|
34928
34929
|
),
|
|
34929
|
-
(i || N) && /* @__PURE__ */ c.jsxs(lU, { ownerState: { size:
|
|
34930
|
-
i && /* @__PURE__ */ c.jsx(sU, { ownerState: { size:
|
|
34931
|
-
N && /* @__PURE__ */ c.jsx(cU, { ownerState: { size:
|
|
34930
|
+
(i || N) && /* @__PURE__ */ c.jsxs(lU, { ownerState: { size: V, withoutSteps: k.length === 0 }, children: [
|
|
34931
|
+
i && /* @__PURE__ */ c.jsx(sU, { ownerState: { size: V }, children: i }),
|
|
34932
|
+
N && /* @__PURE__ */ c.jsx(cU, { ownerState: { size: V }, children: N })
|
|
34932
34933
|
] })
|
|
34933
34934
|
]
|
|
34934
34935
|
}
|
|
@@ -35183,11 +35184,11 @@ const y5 = s.forwardRef(
|
|
|
35183
35184
|
i && /* @__PURE__ */ c.jsx(yU, { className: u, children: i })
|
|
35184
35185
|
] }),
|
|
35185
35186
|
/* @__PURE__ */ c.jsx(xU, { "aria-live": "polite", children: E.map((C, S) => {
|
|
35186
|
-
const k = E[S + 1], M = C.state === "done" || C.state === "active" && (k == null ? void 0 : k.state) === "done" ? "done" : "pending", j = (k == null ? void 0 : k.state) === "active",
|
|
35187
|
+
const k = E[S + 1], M = C.state === "done" || C.state === "active" && (k == null ? void 0 : k.state) === "done" ? "done" : "pending", j = (k == null ? void 0 : k.state) === "active", V = C.state === "active";
|
|
35187
35188
|
return /* @__PURE__ */ c.jsxs(wU, { children: [
|
|
35188
|
-
/* @__PURE__ */ c.jsxs(SU, { ownerState: { active:
|
|
35189
|
+
/* @__PURE__ */ c.jsxs(SU, { ownerState: { active: V }, children: [
|
|
35189
35190
|
/* @__PURE__ */ c.jsx(jU, { state: C.state, animated: v }),
|
|
35190
|
-
S < E.length - 1 && /* @__PURE__ */ c.jsx(EU, { ownerState: { activeStep:
|
|
35191
|
+
S < E.length - 1 && /* @__PURE__ */ c.jsx(EU, { ownerState: { activeStep: V, nextActive: !!j }, children: /* @__PURE__ */ c.jsx(kU, { ownerState: { done: M === "done", animated: v } }) })
|
|
35191
35192
|
] }),
|
|
35192
35193
|
/* @__PURE__ */ c.jsx(TU, { children: /* @__PURE__ */ c.jsx(RU, { ownerState: { state: C.state }, children: C.label }) })
|
|
35193
35194
|
] }, C.id ?? S);
|
|
@@ -35629,37 +35630,37 @@ const S5 = s.forwardRef(
|
|
|
35629
35630
|
k ? /* @__PURE__ */ c.jsxs(XU, { children: [
|
|
35630
35631
|
/* @__PURE__ */ c.jsx(S0, { animated: !1, variant: "text", ownerState: { width: "118px" } }),
|
|
35631
35632
|
/* @__PURE__ */ c.jsx(S0, { animated: !1, variant: "text", ownerState: { width: "98px" } })
|
|
35632
|
-
] }) : M.length > 0 && /* @__PURE__ */ c.jsx(QU, { children: M.map((
|
|
35633
|
+
] }) : M.length > 0 && /* @__PURE__ */ c.jsx(QU, { children: M.map((V, O) => A0(V.label) ? /* @__PURE__ */ c.jsx(
|
|
35633
35634
|
S0,
|
|
35634
35635
|
{
|
|
35635
35636
|
animated: !1,
|
|
35636
35637
|
variant: "text",
|
|
35637
|
-
ownerState: { width: yy[
|
|
35638
|
+
ownerState: { width: yy[O % yy.length] }
|
|
35638
35639
|
},
|
|
35639
|
-
|
|
35640
|
+
O
|
|
35640
35641
|
) : /* @__PURE__ */ c.jsxs(JU, { children: [
|
|
35641
|
-
|
|
35642
|
-
/* @__PURE__ */ c.jsx(tG, { children:
|
|
35643
|
-
] },
|
|
35642
|
+
V.icon && /* @__PURE__ */ c.jsx(eG, { children: V.icon }),
|
|
35643
|
+
/* @__PURE__ */ c.jsx(tG, { children: V.label })
|
|
35644
|
+
] }, O)) })
|
|
35644
35645
|
] }),
|
|
35645
|
-
/* @__PURE__ */ c.jsx(rG, { children: b.length === 0 ? /* @__PURE__ */ c.jsx(fG, { rows: w5 }) : b.map((
|
|
35646
|
-
|
|
35647
|
-
/* @__PURE__ */ c.jsx(lG, { children:
|
|
35648
|
-
const
|
|
35646
|
+
/* @__PURE__ */ c.jsx(rG, { children: b.length === 0 ? /* @__PURE__ */ c.jsx(fG, { rows: w5 }) : b.map((V, O) => /* @__PURE__ */ c.jsxs(nG, { ownerState: { spaced: O > 0 }, children: [
|
|
35647
|
+
V.title && /* @__PURE__ */ c.jsx(iG, { children: V.title }),
|
|
35648
|
+
/* @__PURE__ */ c.jsx(lG, { children: V.items.map((N, D) => {
|
|
35649
|
+
const z = A0(N.value);
|
|
35649
35650
|
return /* @__PURE__ */ c.jsxs(sG, { children: [
|
|
35650
|
-
/* @__PURE__ */ c.jsx(cG, { children:
|
|
35651
|
-
/* @__PURE__ */ c.jsx(dG, { "aria-hidden": "true", children:
|
|
35652
|
-
/* @__PURE__ */ c.jsx(uG, { children:
|
|
35651
|
+
/* @__PURE__ */ c.jsx(cG, { children: z ? /* @__PURE__ */ c.jsx(Gi, { animated: !1, variant: "text", ownerState: { width: "100%" } }) : N.label }),
|
|
35652
|
+
/* @__PURE__ */ c.jsx(dG, { "aria-hidden": "true", children: z ? /* @__PURE__ */ c.jsx(Gi, { animated: !1, variant: "text", ownerState: { width: ".25rem" } }) : ":" }),
|
|
35653
|
+
/* @__PURE__ */ c.jsx(uG, { children: z ? /* @__PURE__ */ c.jsx(
|
|
35653
35654
|
Gi,
|
|
35654
35655
|
{
|
|
35655
35656
|
animated: !1,
|
|
35656
35657
|
variant: "text",
|
|
35657
|
-
ownerState: { width: Wd[(
|
|
35658
|
+
ownerState: { width: Wd[(O + D) % Wd.length] }
|
|
35658
35659
|
}
|
|
35659
35660
|
) : N.value })
|
|
35660
35661
|
] }, D);
|
|
35661
35662
|
}) })
|
|
35662
|
-
] },
|
|
35663
|
+
] }, O)) })
|
|
35663
35664
|
] });
|
|
35664
35665
|
}
|
|
35665
35666
|
);
|
|
@@ -35991,7 +35992,7 @@ const DG = /* @__PURE__ */ g("div", {
|
|
|
35991
35992
|
T(k ? E.filter((M) => M !== S) : [...E, S]);
|
|
35992
35993
|
};
|
|
35993
35994
|
return /* @__PURE__ */ c.jsx(DG, { ref: m, className: e, ...b, children: a.map((S, k) => {
|
|
35994
|
-
const M = E.includes(S.value), j = `${v}-trigger-${k}`,
|
|
35995
|
+
const M = E.includes(S.value), j = `${v}-trigger-${k}`, V = `${v}-panel-${k}`;
|
|
35995
35996
|
return /* @__PURE__ */ c.jsxs(NG, { ownerState: { divided: k > 0 }, children: [
|
|
35996
35997
|
/* @__PURE__ */ c.jsxs(
|
|
35997
35998
|
zG,
|
|
@@ -35999,7 +36000,7 @@ const DG = /* @__PURE__ */ g("div", {
|
|
|
35999
36000
|
type: "button",
|
|
36000
36001
|
id: j,
|
|
36001
36002
|
"aria-expanded": M,
|
|
36002
|
-
"aria-controls":
|
|
36003
|
+
"aria-controls": V,
|
|
36003
36004
|
disabled: S.disabled,
|
|
36004
36005
|
onClick: () => C(S.value),
|
|
36005
36006
|
children: [
|
|
@@ -36011,7 +36012,7 @@ const DG = /* @__PURE__ */ g("div", {
|
|
|
36011
36012
|
]
|
|
36012
36013
|
}
|
|
36013
36014
|
),
|
|
36014
|
-
M && /* @__PURE__ */ c.jsx(_G, { id:
|
|
36015
|
+
M && /* @__PURE__ */ c.jsx(_G, { id: V, role: "region", "aria-labelledby": j, children: S.content })
|
|
36015
36016
|
] }, S.value);
|
|
36016
36017
|
}) });
|
|
36017
36018
|
}
|
|
@@ -36243,7 +36244,7 @@ var Du = "Switch", [o$] = Pr(Du), [n$, i$] = o$(Du), R5 = s.forwardRef(
|
|
|
36243
36244
|
...x,
|
|
36244
36245
|
ref: T,
|
|
36245
36246
|
onClick: ge(e.onClick, (j) => {
|
|
36246
|
-
M((
|
|
36247
|
+
M((V) => !V), S && (C.current = j.isPropagationStopped(), C.current || j.stopPropagation());
|
|
36247
36248
|
})
|
|
36248
36249
|
}
|
|
36249
36250
|
),
|
|
@@ -40189,17 +40190,17 @@ class bS extends me {
|
|
|
40189
40190
|
...m,
|
|
40190
40191
|
header: this.slotNode("leading-column-header", m.header ?? ""),
|
|
40191
40192
|
cell: (S, k) => {
|
|
40192
|
-
const M = m.cellType ?? "text", j = m.cellConfig ?? {},
|
|
40193
|
-
return M === "button" ? this.renderButtonCell("__leading", S, k.rowIndex, m.action ?? {},
|
|
40193
|
+
const M = m.cellType ?? "text", j = m.cellConfig ?? {}, V = Rt(S, j.valueKey);
|
|
40194
|
+
return M === "button" ? this.renderButtonCell("__leading", S, k.rowIndex, m.action ?? {}, V) : M === "buttons" || M === "actions" && m.actionsDisplay === "inline" ? this.renderButtonGroupCell("__leading", S, k.rowIndex, m.actions ?? [], V) : M === "actions" ? this.renderActionMenuCell("__leading", S, k.rowIndex, m.actions ?? []) : this.renderRichCell("__leading", M, j, S, k.rowIndex, V);
|
|
40194
40195
|
}
|
|
40195
40196
|
} : this.propValue("leadingColumn"), y = this.arrayValue("row-actions"), x = y.length > 0 ? (S) => {
|
|
40196
40197
|
const k = a.indexOf(S);
|
|
40197
40198
|
return this.renderActionMenuCell("__row-actions", S, k, y);
|
|
40198
40199
|
} : this.propValue("rowActions"), A = this.arrayValue("row-class-rules"), E = this.textAttribute("row-class-name") ?? this.propValue("rowClassName"), T = A.length > 0 ? (S, k) => {
|
|
40199
|
-
const M = typeof E == "function" ? E(S, k) : E, j = A.filter((
|
|
40200
|
-
const
|
|
40201
|
-
return !("equals" in
|
|
40202
|
-
}).map((
|
|
40200
|
+
const M = typeof E == "function" ? E(S, k) : E, j = A.filter((V) => {
|
|
40201
|
+
const O = Rt(S, V.path);
|
|
40202
|
+
return !("equals" in V && !Object.is(O, V.equals) || "notEquals" in V && Object.is(O, V.notEquals) || V.truthy !== void 0 && !!O !== V.truthy);
|
|
40203
|
+
}).map((V) => V.className);
|
|
40203
40204
|
return [M, ...j].filter(Boolean).join(" ") || void 0;
|
|
40204
40205
|
} : E, C = this.textAttribute("row-id-key") ?? this.propValue("rowIdKey");
|
|
40205
40206
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -40316,23 +40317,23 @@ class bS extends me {
|
|
|
40316
40317
|
return this.renderCaptionedCell(i, d, C);
|
|
40317
40318
|
}
|
|
40318
40319
|
if (n === "chip" || n === "chips" || n === "badge" || n === "badges") {
|
|
40319
|
-
const C = n === "chips" || n === "badges", k = Rt(d, i.itemsKey) ?? b, M = C ? Array.isArray(k) ? k : k == null ? [] : [k] : [k], j = Rt(d, i.toneKey),
|
|
40320
|
-
const X = !C && (i.label !== void 0 || i.labelKey) ? m : Rt(
|
|
40320
|
+
const C = n === "chips" || n === "badges", k = Rt(d, i.itemsKey) ?? b, M = C ? Array.isArray(k) ? k : k == null ? [] : [k] : [k], j = Rt(d, i.toneKey), V = Rt(d, i.variantKey), O = Rt(d, i.sizeKey), N = Rt(d, i.dotKey), D = /* @__PURE__ */ c.jsx(Ty, { children: M.map((z, q) => {
|
|
40321
|
+
const X = !C && (i.label !== void 0 || i.labelKey) ? m : Rt(z, i.itemLabelKey) ?? Rt(z, i.itemValueKey) ?? Rt(z, "label") ?? Rt(z, "value") ?? z, F = i.tone ?? j ?? Rt(z, i.itemToneKey) ?? Rt(z, "tone"), re = `${Vt(X, "item")}-${q}`;
|
|
40321
40322
|
return n === "chip" || n === "chips" ? /* @__PURE__ */ c.jsx(
|
|
40322
40323
|
qi,
|
|
40323
40324
|
{
|
|
40324
|
-
tone:
|
|
40325
|
-
variant: i.variant ??
|
|
40326
|
-
size: i.size ??
|
|
40325
|
+
tone: F,
|
|
40326
|
+
variant: i.variant ?? V,
|
|
40327
|
+
size: i.size ?? O,
|
|
40327
40328
|
children: Vt(X)
|
|
40328
40329
|
},
|
|
40329
40330
|
re
|
|
40330
40331
|
) : /* @__PURE__ */ c.jsx(
|
|
40331
40332
|
ln,
|
|
40332
40333
|
{
|
|
40333
|
-
tone:
|
|
40334
|
-
variant: i.variant ??
|
|
40335
|
-
size: i.size ??
|
|
40334
|
+
tone: F,
|
|
40335
|
+
variant: i.variant ?? V,
|
|
40336
|
+
size: i.size ?? O,
|
|
40336
40337
|
dot: !!(i.dot ?? N),
|
|
40337
40338
|
children: Vt(X)
|
|
40338
40339
|
},
|