@dipusevilla/componentes-iu 1.0.37 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +706 -704
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -59,13 +59,13 @@ function On() {
|
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case v:
|
|
61
61
|
return "Profiler";
|
|
62
|
-
case
|
|
62
|
+
case N:
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case F:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case B:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case O:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof j == "object")
|
|
@@ -78,12 +78,12 @@ function On() {
|
|
|
78
78
|
return (j.displayName || "Context") + ".Provider";
|
|
79
79
|
case g:
|
|
80
80
|
return (j._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case
|
|
81
|
+
case $:
|
|
82
82
|
var k = j.render;
|
|
83
83
|
return j = j.displayName, j || (j = k.displayName || k.name || "", j = j !== "" ? "ForwardRef(" + j + ")" : "ForwardRef"), j;
|
|
84
|
-
case
|
|
84
|
+
case Z:
|
|
85
85
|
return k = j.displayName || null, k !== null ? k : r(j.type) || "Memo";
|
|
86
|
-
case
|
|
86
|
+
case _:
|
|
87
87
|
k = j._payload, j = j._init;
|
|
88
88
|
try {
|
|
89
89
|
return r(j(k));
|
|
@@ -114,7 +114,7 @@ function On() {
|
|
|
114
114
|
}
|
|
115
115
|
function s(j) {
|
|
116
116
|
if (j === w) return "<>";
|
|
117
|
-
if (typeof j == "object" && j !== null && j.$$typeof ===
|
|
117
|
+
if (typeof j == "object" && j !== null && j.$$typeof === _)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
120
|
var k = r(j);
|
|
@@ -124,14 +124,14 @@ function On() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function n() {
|
|
127
|
-
var j =
|
|
127
|
+
var j = U.A;
|
|
128
128
|
return j === null ? null : j.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function o(j) {
|
|
134
|
-
if (
|
|
134
|
+
if (M.call(j, "key")) {
|
|
135
135
|
var k = Object.getOwnPropertyDescriptor(j, "key").get;
|
|
136
136
|
if (k && k.isReactWarning) return !1;
|
|
137
137
|
}
|
|
@@ -139,7 +139,7 @@ function On() {
|
|
|
139
139
|
}
|
|
140
140
|
function l(j, k) {
|
|
141
141
|
function C() {
|
|
142
|
-
|
|
142
|
+
q || (q = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
k
|
|
145
145
|
));
|
|
@@ -200,12 +200,12 @@ function On() {
|
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
202
|
else p(oe);
|
|
203
|
-
if (
|
|
203
|
+
if (M.call(k, "key")) {
|
|
204
204
|
oe = r(j);
|
|
205
|
-
var
|
|
205
|
+
var xe = Object.keys(k).filter(function(te) {
|
|
206
206
|
return te !== "key";
|
|
207
207
|
});
|
|
208
|
-
D = 0 <
|
|
208
|
+
D = 0 < xe.length ? "{key: someKey, " + xe.join(": ..., ") + ": ...}" : "{key: someKey}", W[oe + D] || (xe = 0 < xe.length ? "{" + xe.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -214,9 +214,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
215
|
D,
|
|
216
216
|
oe,
|
|
217
|
-
|
|
217
|
+
xe,
|
|
218
218
|
oe
|
|
219
|
-
),
|
|
219
|
+
), W[oe + D] = !0);
|
|
220
220
|
}
|
|
221
221
|
if (oe = null, C !== void 0 && (t(C), oe = "" + C), o(k) && (t(k.key), oe = "" + k.key), "key" in k) {
|
|
222
222
|
C = {};
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function p(j) {
|
|
241
241
|
typeof j == "object" && j !== null && j.$$typeof === y && j._store && (j._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var m = ne, y = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), w = Symbol.for("react.fragment"),
|
|
243
|
+
var m = ne, y = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), S = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), J = Symbol.for("react.client.reference"), U = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, Y = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
m = {
|
|
@@ -248,12 +248,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return j();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var q, H = {}, A = m["react-stack-bottom-frame"].bind(
|
|
252
252
|
m,
|
|
253
253
|
a
|
|
254
|
-
)(), h = K(s(a)),
|
|
254
|
+
)(), h = K(s(a)), W = {};
|
|
255
255
|
ht.Fragment = w, ht.jsx = function(j, k, C, D, Q) {
|
|
256
|
-
var re = 1e4 >
|
|
256
|
+
var re = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return d(
|
|
258
258
|
j,
|
|
259
259
|
k,
|
|
@@ -265,7 +265,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
re ? K(s(j)) : h
|
|
266
266
|
);
|
|
267
267
|
}, ht.jsxs = function(j, k, C, D, Q) {
|
|
268
|
-
var re = 1e4 >
|
|
268
|
+
var re = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return d(
|
|
270
270
|
j,
|
|
271
271
|
k,
|
|
@@ -304,7 +304,7 @@ const Vn = {
|
|
|
304
304
|
xl: "w-10 h-10",
|
|
305
305
|
full: "w-full h-full"
|
|
306
306
|
};
|
|
307
|
-
function
|
|
307
|
+
function Ue({
|
|
308
308
|
component: r,
|
|
309
309
|
size: e = "sm",
|
|
310
310
|
className: t,
|
|
@@ -369,9 +369,9 @@ function He({
|
|
|
369
369
|
p && c && "gap-2"
|
|
370
370
|
),
|
|
371
371
|
children: [
|
|
372
|
-
a && o === "left" && /* @__PURE__ */ i.jsx(
|
|
372
|
+
a && o === "left" && /* @__PURE__ */ i.jsx(Ue, { component: a, size: t }),
|
|
373
373
|
c,
|
|
374
|
-
a && o === "right" && /* @__PURE__ */ i.jsx(
|
|
374
|
+
a && o === "right" && /* @__PURE__ */ i.jsx(Ue, { component: a, size: t })
|
|
375
375
|
]
|
|
376
376
|
}
|
|
377
377
|
);
|
|
@@ -400,7 +400,7 @@ function Pn({
|
|
|
400
400
|
}));
|
|
401
401
|
}
|
|
402
402
|
const zn = /* @__PURE__ */ G.forwardRef(Pn);
|
|
403
|
-
function
|
|
403
|
+
function Bn({
|
|
404
404
|
title: r,
|
|
405
405
|
titleId: e,
|
|
406
406
|
...t
|
|
@@ -423,8 +423,8 @@ function Un({
|
|
|
423
423
|
d: "m19.5 8.25-7.5 7.5-7.5-7.5"
|
|
424
424
|
}));
|
|
425
425
|
}
|
|
426
|
-
const wr = /* @__PURE__ */ G.forwardRef(
|
|
427
|
-
function
|
|
426
|
+
const wr = /* @__PURE__ */ G.forwardRef(Bn);
|
|
427
|
+
function Un({
|
|
428
428
|
title: r,
|
|
429
429
|
titleId: e,
|
|
430
430
|
...t
|
|
@@ -447,7 +447,7 @@ function Bn({
|
|
|
447
447
|
d: "m8.25 4.5 7.5 7.5-7.5 7.5"
|
|
448
448
|
}));
|
|
449
449
|
}
|
|
450
|
-
const Zn = /* @__PURE__ */ G.forwardRef(
|
|
450
|
+
const Zn = /* @__PURE__ */ G.forwardRef(Un);
|
|
451
451
|
function Wn({
|
|
452
452
|
title: r,
|
|
453
453
|
titleId: e,
|
|
@@ -962,9 +962,9 @@ const jr = "-", ca = (r) => {
|
|
|
962
962
|
c = d + (c.length > 0 ? " " + c : c);
|
|
963
963
|
continue;
|
|
964
964
|
}
|
|
965
|
-
let
|
|
965
|
+
let N = !!w, v = s(N ? x.substring(0, w) : x);
|
|
966
966
|
if (!v) {
|
|
967
|
-
if (!
|
|
967
|
+
if (!N) {
|
|
968
968
|
c = d + (c.length > 0 ? " " + c : c);
|
|
969
969
|
continue;
|
|
970
970
|
}
|
|
@@ -972,16 +972,16 @@ const jr = "-", ca = (r) => {
|
|
|
972
972
|
c = d + (c.length > 0 ? " " + c : c);
|
|
973
973
|
continue;
|
|
974
974
|
}
|
|
975
|
-
|
|
975
|
+
N = !1;
|
|
976
976
|
}
|
|
977
|
-
const g = a(m).join(":"), S = y ? g + lr : g,
|
|
978
|
-
if (o.includes(
|
|
977
|
+
const g = a(m).join(":"), S = y ? g + lr : g, $ = S + v;
|
|
978
|
+
if (o.includes($))
|
|
979
979
|
continue;
|
|
980
|
-
o.push(
|
|
981
|
-
const F = n(v,
|
|
982
|
-
for (let
|
|
983
|
-
const
|
|
984
|
-
o.push(S +
|
|
980
|
+
o.push($);
|
|
981
|
+
const F = n(v, N);
|
|
982
|
+
for (let B = 0; B < F.length; ++B) {
|
|
983
|
+
const Z = F[B];
|
|
984
|
+
o.push(S + Z);
|
|
985
985
|
}
|
|
986
986
|
c = d + (c.length > 0 ? " " + c : c);
|
|
987
987
|
}
|
|
@@ -1026,14 +1026,14 @@ const ge = (r) => {
|
|
|
1026
1026
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1027
1027
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1028
1028
|
Na.test(r) && !_a.test(r)
|
|
1029
|
-
), Rs = () => !1, Ca = (r) => Fa.test(r), Oa = (r) => Sa.test(r), Ra = (r) => !
|
|
1029
|
+
), Rs = () => !1, Ca = (r) => Fa.test(r), Oa = (r) => Sa.test(r), Ra = (r) => !P(r) && !z(r), Va = (r) => lt(r, Ms, Rs), P = (r) => Cs.test(r), Xe = (r) => lt(r, Ds, Aa), Qt = (r) => lt(r, La, ee), Br = (r) => lt(r, Vs, Rs), $a = (r) => lt(r, $s, Oa), Nt = (r) => lt(r, Is, Ca), z = (r) => Os.test(r), mt = (r) => ct(r, Ds), Ma = (r) => ct(r, Pa), Ur = (r) => ct(r, Vs), Da = (r) => ct(r, Ms), Ia = (r) => ct(r, $s), _t = (r) => ct(r, Is, !0), lt = (r, e, t) => {
|
|
1030
1030
|
const s = Cs.exec(r);
|
|
1031
1031
|
return s ? s[1] ? e(s[1]) : t(s[2]) : !1;
|
|
1032
1032
|
}, ct = (r, e, t = !1) => {
|
|
1033
1033
|
const s = Os.exec(r);
|
|
1034
1034
|
return s ? s[1] ? e(s[1]) : t : !1;
|
|
1035
1035
|
}, Vs = (r) => r === "position" || r === "percentage", $s = (r) => r === "image" || r === "url", Ms = (r) => r === "length" || r === "size" || r === "bg-size", Ds = (r) => r === "length", La = (r) => r === "number", Pa = (r) => r === "family-name", Is = (r) => r === "shadow", za = () => {
|
|
1036
|
-
const r = ge("color"), e = ge("font"), t = ge("text"), s = ge("font-weight"), n = ge("tracking"), a = ge("leading"), o = ge("breakpoint"), l = ge("container"), c = ge("spacing"), u = ge("radius"), d = ge("shadow"), p = ge("inset-shadow"), m = ge("text-shadow"), y = ge("drop-shadow"), x = ge("blur"), w = ge("perspective"),
|
|
1036
|
+
const r = ge("color"), e = ge("font"), t = ge("text"), s = ge("font-weight"), n = ge("tracking"), a = ge("leading"), o = ge("breakpoint"), l = ge("container"), c = ge("spacing"), u = ge("radius"), d = ge("shadow"), p = ge("inset-shadow"), m = ge("text-shadow"), y = ge("drop-shadow"), x = ge("blur"), w = ge("perspective"), N = ge("aspect"), v = ge("ease"), g = ge("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
|
|
1037
1037
|
"center",
|
|
1038
1038
|
"top",
|
|
1039
1039
|
"bottom",
|
|
@@ -1051,30 +1051,30 @@ const ge = (r) => {
|
|
|
1051
1051
|
"bottom-left",
|
|
1052
1052
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1053
1053
|
"left-bottom"
|
|
1054
|
-
], F = () => [
|
|
1055
|
-
span: ["full", qe,
|
|
1056
|
-
}, qe,
|
|
1057
|
-
position: [
|
|
1054
|
+
], F = () => [...$(), z, P], B = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", "contain", "none"], _ = () => [z, P, c], O = () => [rt, "full", "auto", ..._()], J = () => [qe, "none", "subgrid", z, P], U = () => ["auto", {
|
|
1055
|
+
span: ["full", qe, z, P]
|
|
1056
|
+
}, qe, z, P], M = () => [qe, "auto", z, P], Y = () => ["auto", "min", "max", "fr", z, P], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ..._()], A = () => [rt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], h = () => [r, z, P], W = () => [...$(), Ur, Br, {
|
|
1057
|
+
position: [z, P]
|
|
1058
1058
|
}], j = () => ["no-repeat", {
|
|
1059
1059
|
repeat: ["", "x", "y", "space", "round"]
|
|
1060
1060
|
}], k = () => ["auto", "cover", "contain", Da, Va, {
|
|
1061
|
-
size: [
|
|
1061
|
+
size: [z, P]
|
|
1062
1062
|
}], C = () => [Jt, mt, Xe], D = () => [
|
|
1063
1063
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1064
1064
|
"",
|
|
1065
1065
|
"none",
|
|
1066
1066
|
"full",
|
|
1067
1067
|
u,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
], Q = () => ["", ee, mt, Xe], re = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [ee, Jt,
|
|
1068
|
+
z,
|
|
1069
|
+
P
|
|
1070
|
+
], Q = () => ["", ee, mt, Xe], re = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [ee, Jt, Ur, Br], oe = () => [
|
|
1071
1071
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1072
1072
|
"",
|
|
1073
1073
|
"none",
|
|
1074
1074
|
x,
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
],
|
|
1075
|
+
z,
|
|
1076
|
+
P
|
|
1077
|
+
], xe = () => ["none", ee, z, P], ye = () => ["none", ee, z, P], te = () => [ee, z, P], fe = () => [rt, "full", ..._()];
|
|
1078
1078
|
return {
|
|
1079
1079
|
cacheSize: 500,
|
|
1080
1080
|
theme: {
|
|
@@ -1107,7 +1107,7 @@ const ge = (r) => {
|
|
|
1107
1107
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1108
1108
|
*/
|
|
1109
1109
|
aspect: [{
|
|
1110
|
-
aspect: ["auto", "square", rt,
|
|
1110
|
+
aspect: ["auto", "square", rt, P, z, N]
|
|
1111
1111
|
}],
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Container
|
|
@@ -1120,7 +1120,7 @@ const ge = (r) => {
|
|
|
1120
1120
|
* @see https://tailwindcss.com/docs/columns
|
|
1121
1121
|
*/
|
|
1122
1122
|
columns: [{
|
|
1123
|
-
columns: [ee,
|
|
1123
|
+
columns: [ee, P, z, l]
|
|
1124
1124
|
}],
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Break After
|
|
@@ -1205,42 +1205,42 @@ const ge = (r) => {
|
|
|
1205
1205
|
* @see https://tailwindcss.com/docs/overflow
|
|
1206
1206
|
*/
|
|
1207
1207
|
overflow: [{
|
|
1208
|
-
overflow:
|
|
1208
|
+
overflow: B()
|
|
1209
1209
|
}],
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Overflow X
|
|
1212
1212
|
* @see https://tailwindcss.com/docs/overflow
|
|
1213
1213
|
*/
|
|
1214
1214
|
"overflow-x": [{
|
|
1215
|
-
"overflow-x":
|
|
1215
|
+
"overflow-x": B()
|
|
1216
1216
|
}],
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Overflow Y
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/overflow
|
|
1220
1220
|
*/
|
|
1221
1221
|
"overflow-y": [{
|
|
1222
|
-
"overflow-y":
|
|
1222
|
+
"overflow-y": B()
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Overscroll Behavior
|
|
1226
1226
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1227
1227
|
*/
|
|
1228
1228
|
overscroll: [{
|
|
1229
|
-
overscroll:
|
|
1229
|
+
overscroll: Z()
|
|
1230
1230
|
}],
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Overscroll Behavior X
|
|
1233
1233
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1234
1234
|
*/
|
|
1235
1235
|
"overscroll-x": [{
|
|
1236
|
-
"overscroll-x":
|
|
1236
|
+
"overscroll-x": Z()
|
|
1237
1237
|
}],
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Overscroll Behavior Y
|
|
1240
1240
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1241
1241
|
*/
|
|
1242
1242
|
"overscroll-y": [{
|
|
1243
|
-
"overscroll-y":
|
|
1243
|
+
"overscroll-y": Z()
|
|
1244
1244
|
}],
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Position
|
|
@@ -1252,63 +1252,63 @@ const ge = (r) => {
|
|
|
1252
1252
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1253
1253
|
*/
|
|
1254
1254
|
inset: [{
|
|
1255
|
-
inset:
|
|
1255
|
+
inset: O()
|
|
1256
1256
|
}],
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Right / Left
|
|
1259
1259
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1260
1260
|
*/
|
|
1261
1261
|
"inset-x": [{
|
|
1262
|
-
"inset-x":
|
|
1262
|
+
"inset-x": O()
|
|
1263
1263
|
}],
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Top / Bottom
|
|
1266
1266
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1267
1267
|
*/
|
|
1268
1268
|
"inset-y": [{
|
|
1269
|
-
"inset-y":
|
|
1269
|
+
"inset-y": O()
|
|
1270
1270
|
}],
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Start
|
|
1273
1273
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1274
1274
|
*/
|
|
1275
1275
|
start: [{
|
|
1276
|
-
start:
|
|
1276
|
+
start: O()
|
|
1277
1277
|
}],
|
|
1278
1278
|
/**
|
|
1279
1279
|
* End
|
|
1280
1280
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1281
1281
|
*/
|
|
1282
1282
|
end: [{
|
|
1283
|
-
end:
|
|
1283
|
+
end: O()
|
|
1284
1284
|
}],
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Top
|
|
1287
1287
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1288
1288
|
*/
|
|
1289
1289
|
top: [{
|
|
1290
|
-
top:
|
|
1290
|
+
top: O()
|
|
1291
1291
|
}],
|
|
1292
1292
|
/**
|
|
1293
1293
|
* Right
|
|
1294
1294
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1295
1295
|
*/
|
|
1296
1296
|
right: [{
|
|
1297
|
-
right:
|
|
1297
|
+
right: O()
|
|
1298
1298
|
}],
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Bottom
|
|
1301
1301
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1302
1302
|
*/
|
|
1303
1303
|
bottom: [{
|
|
1304
|
-
bottom:
|
|
1304
|
+
bottom: O()
|
|
1305
1305
|
}],
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Left
|
|
1308
1308
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1309
1309
|
*/
|
|
1310
1310
|
left: [{
|
|
1311
|
-
left:
|
|
1311
|
+
left: O()
|
|
1312
1312
|
}],
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Visibility
|
|
@@ -1320,7 +1320,7 @@ const ge = (r) => {
|
|
|
1320
1320
|
* @see https://tailwindcss.com/docs/z-index
|
|
1321
1321
|
*/
|
|
1322
1322
|
z: [{
|
|
1323
|
-
z: [qe, "auto",
|
|
1323
|
+
z: [qe, "auto", z, P]
|
|
1324
1324
|
}],
|
|
1325
1325
|
// ------------------------
|
|
1326
1326
|
// --- Flexbox and Grid ---
|
|
@@ -1330,7 +1330,7 @@ const ge = (r) => {
|
|
|
1330
1330
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1331
1331
|
*/
|
|
1332
1332
|
basis: [{
|
|
1333
|
-
basis: [rt, "full", "auto", l, ...
|
|
1333
|
+
basis: [rt, "full", "auto", l, ..._()]
|
|
1334
1334
|
}],
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Flex Direction
|
|
@@ -1351,28 +1351,28 @@ const ge = (r) => {
|
|
|
1351
1351
|
* @see https://tailwindcss.com/docs/flex
|
|
1352
1352
|
*/
|
|
1353
1353
|
flex: [{
|
|
1354
|
-
flex: [ee, rt, "auto", "initial", "none",
|
|
1354
|
+
flex: [ee, rt, "auto", "initial", "none", P]
|
|
1355
1355
|
}],
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Flex Grow
|
|
1358
1358
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1359
1359
|
*/
|
|
1360
1360
|
grow: [{
|
|
1361
|
-
grow: ["", ee,
|
|
1361
|
+
grow: ["", ee, z, P]
|
|
1362
1362
|
}],
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Flex Shrink
|
|
1365
1365
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1366
1366
|
*/
|
|
1367
1367
|
shrink: [{
|
|
1368
|
-
shrink: ["", ee,
|
|
1368
|
+
shrink: ["", ee, z, P]
|
|
1369
1369
|
}],
|
|
1370
1370
|
/**
|
|
1371
1371
|
* Order
|
|
1372
1372
|
* @see https://tailwindcss.com/docs/order
|
|
1373
1373
|
*/
|
|
1374
1374
|
order: [{
|
|
1375
|
-
order: [qe, "first", "last", "none",
|
|
1375
|
+
order: [qe, "first", "last", "none", z, P]
|
|
1376
1376
|
}],
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Grid Template Columns
|
|
@@ -1386,21 +1386,21 @@ const ge = (r) => {
|
|
|
1386
1386
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1387
1387
|
*/
|
|
1388
1388
|
"col-start-end": [{
|
|
1389
|
-
col:
|
|
1389
|
+
col: U()
|
|
1390
1390
|
}],
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Grid Column Start
|
|
1393
1393
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1394
1394
|
*/
|
|
1395
1395
|
"col-start": [{
|
|
1396
|
-
"col-start":
|
|
1396
|
+
"col-start": M()
|
|
1397
1397
|
}],
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Grid Column End
|
|
1400
1400
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1401
1401
|
*/
|
|
1402
1402
|
"col-end": [{
|
|
1403
|
-
"col-end":
|
|
1403
|
+
"col-end": M()
|
|
1404
1404
|
}],
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Grid Template Rows
|
|
@@ -1414,21 +1414,21 @@ const ge = (r) => {
|
|
|
1414
1414
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1415
1415
|
*/
|
|
1416
1416
|
"row-start-end": [{
|
|
1417
|
-
row:
|
|
1417
|
+
row: U()
|
|
1418
1418
|
}],
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Grid Row Start
|
|
1421
1421
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1422
1422
|
*/
|
|
1423
1423
|
"row-start": [{
|
|
1424
|
-
"row-start":
|
|
1424
|
+
"row-start": M()
|
|
1425
1425
|
}],
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Grid Row End
|
|
1428
1428
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1429
1429
|
*/
|
|
1430
1430
|
"row-end": [{
|
|
1431
|
-
"row-end":
|
|
1431
|
+
"row-end": M()
|
|
1432
1432
|
}],
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Grid Auto Flow
|
|
@@ -1456,21 +1456,21 @@ const ge = (r) => {
|
|
|
1456
1456
|
* @see https://tailwindcss.com/docs/gap
|
|
1457
1457
|
*/
|
|
1458
1458
|
gap: [{
|
|
1459
|
-
gap:
|
|
1459
|
+
gap: _()
|
|
1460
1460
|
}],
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Gap X
|
|
1463
1463
|
* @see https://tailwindcss.com/docs/gap
|
|
1464
1464
|
*/
|
|
1465
1465
|
"gap-x": [{
|
|
1466
|
-
"gap-x":
|
|
1466
|
+
"gap-x": _()
|
|
1467
1467
|
}],
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Gap Y
|
|
1470
1470
|
* @see https://tailwindcss.com/docs/gap
|
|
1471
1471
|
*/
|
|
1472
1472
|
"gap-y": [{
|
|
1473
|
-
"gap-y":
|
|
1473
|
+
"gap-y": _()
|
|
1474
1474
|
}],
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Justify Content
|
|
@@ -1484,14 +1484,14 @@ const ge = (r) => {
|
|
|
1484
1484
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1485
1485
|
*/
|
|
1486
1486
|
"justify-items": [{
|
|
1487
|
-
"justify-items": [...
|
|
1487
|
+
"justify-items": [...q(), "normal"]
|
|
1488
1488
|
}],
|
|
1489
1489
|
/**
|
|
1490
1490
|
* Justify Self
|
|
1491
1491
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1492
1492
|
*/
|
|
1493
1493
|
"justify-self": [{
|
|
1494
|
-
"justify-self": ["auto", ...
|
|
1494
|
+
"justify-self": ["auto", ...q()]
|
|
1495
1495
|
}],
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Align Content
|
|
@@ -1505,7 +1505,7 @@ const ge = (r) => {
|
|
|
1505
1505
|
* @see https://tailwindcss.com/docs/align-items
|
|
1506
1506
|
*/
|
|
1507
1507
|
"align-items": [{
|
|
1508
|
-
items: [...
|
|
1508
|
+
items: [...q(), {
|
|
1509
1509
|
baseline: ["", "last"]
|
|
1510
1510
|
}]
|
|
1511
1511
|
}],
|
|
@@ -1514,7 +1514,7 @@ const ge = (r) => {
|
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/align-self
|
|
1515
1515
|
*/
|
|
1516
1516
|
"align-self": [{
|
|
1517
|
-
self: ["auto", ...
|
|
1517
|
+
self: ["auto", ...q(), {
|
|
1518
1518
|
baseline: ["", "last"]
|
|
1519
1519
|
}]
|
|
1520
1520
|
}],
|
|
@@ -1530,14 +1530,14 @@ const ge = (r) => {
|
|
|
1530
1530
|
* @see https://tailwindcss.com/docs/place-items
|
|
1531
1531
|
*/
|
|
1532
1532
|
"place-items": [{
|
|
1533
|
-
"place-items": [...
|
|
1533
|
+
"place-items": [...q(), "baseline"]
|
|
1534
1534
|
}],
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Place Self
|
|
1537
1537
|
* @see https://tailwindcss.com/docs/place-self
|
|
1538
1538
|
*/
|
|
1539
1539
|
"place-self": [{
|
|
1540
|
-
"place-self": ["auto", ...
|
|
1540
|
+
"place-self": ["auto", ...q()]
|
|
1541
1541
|
}],
|
|
1542
1542
|
// Spacing
|
|
1543
1543
|
/**
|
|
@@ -1545,63 +1545,63 @@ const ge = (r) => {
|
|
|
1545
1545
|
* @see https://tailwindcss.com/docs/padding
|
|
1546
1546
|
*/
|
|
1547
1547
|
p: [{
|
|
1548
|
-
p:
|
|
1548
|
+
p: _()
|
|
1549
1549
|
}],
|
|
1550
1550
|
/**
|
|
1551
1551
|
* Padding X
|
|
1552
1552
|
* @see https://tailwindcss.com/docs/padding
|
|
1553
1553
|
*/
|
|
1554
1554
|
px: [{
|
|
1555
|
-
px:
|
|
1555
|
+
px: _()
|
|
1556
1556
|
}],
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Padding Y
|
|
1559
1559
|
* @see https://tailwindcss.com/docs/padding
|
|
1560
1560
|
*/
|
|
1561
1561
|
py: [{
|
|
1562
|
-
py:
|
|
1562
|
+
py: _()
|
|
1563
1563
|
}],
|
|
1564
1564
|
/**
|
|
1565
1565
|
* Padding Start
|
|
1566
1566
|
* @see https://tailwindcss.com/docs/padding
|
|
1567
1567
|
*/
|
|
1568
1568
|
ps: [{
|
|
1569
|
-
ps:
|
|
1569
|
+
ps: _()
|
|
1570
1570
|
}],
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Padding End
|
|
1573
1573
|
* @see https://tailwindcss.com/docs/padding
|
|
1574
1574
|
*/
|
|
1575
1575
|
pe: [{
|
|
1576
|
-
pe:
|
|
1576
|
+
pe: _()
|
|
1577
1577
|
}],
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Padding Top
|
|
1580
1580
|
* @see https://tailwindcss.com/docs/padding
|
|
1581
1581
|
*/
|
|
1582
1582
|
pt: [{
|
|
1583
|
-
pt:
|
|
1583
|
+
pt: _()
|
|
1584
1584
|
}],
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Padding Right
|
|
1587
1587
|
* @see https://tailwindcss.com/docs/padding
|
|
1588
1588
|
*/
|
|
1589
1589
|
pr: [{
|
|
1590
|
-
pr:
|
|
1590
|
+
pr: _()
|
|
1591
1591
|
}],
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Padding Bottom
|
|
1594
1594
|
* @see https://tailwindcss.com/docs/padding
|
|
1595
1595
|
*/
|
|
1596
1596
|
pb: [{
|
|
1597
|
-
pb:
|
|
1597
|
+
pb: _()
|
|
1598
1598
|
}],
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Padding Left
|
|
1601
1601
|
* @see https://tailwindcss.com/docs/padding
|
|
1602
1602
|
*/
|
|
1603
1603
|
pl: [{
|
|
1604
|
-
pl:
|
|
1604
|
+
pl: _()
|
|
1605
1605
|
}],
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Margin
|
|
@@ -1671,7 +1671,7 @@ const ge = (r) => {
|
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1672
1672
|
*/
|
|
1673
1673
|
"space-x": [{
|
|
1674
|
-
"space-x":
|
|
1674
|
+
"space-x": _()
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Space Between X Reverse
|
|
@@ -1683,7 +1683,7 @@ const ge = (r) => {
|
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1684
1684
|
*/
|
|
1685
1685
|
"space-y": [{
|
|
1686
|
-
"space-y":
|
|
1686
|
+
"space-y": _()
|
|
1687
1687
|
}],
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Space Between Y Reverse
|
|
@@ -1784,21 +1784,21 @@ const ge = (r) => {
|
|
|
1784
1784
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1785
1785
|
*/
|
|
1786
1786
|
"font-weight": [{
|
|
1787
|
-
font: [s,
|
|
1787
|
+
font: [s, z, Qt]
|
|
1788
1788
|
}],
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Font Stretch
|
|
1791
1791
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1792
1792
|
*/
|
|
1793
1793
|
"font-stretch": [{
|
|
1794
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Jt,
|
|
1794
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Jt, P]
|
|
1795
1795
|
}],
|
|
1796
1796
|
/**
|
|
1797
1797
|
* Font Family
|
|
1798
1798
|
* @see https://tailwindcss.com/docs/font-family
|
|
1799
1799
|
*/
|
|
1800
1800
|
"font-family": [{
|
|
1801
|
-
font: [Ma,
|
|
1801
|
+
font: [Ma, P, e]
|
|
1802
1802
|
}],
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Font Variant Numeric
|
|
@@ -1835,14 +1835,14 @@ const ge = (r) => {
|
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1836
1836
|
*/
|
|
1837
1837
|
tracking: [{
|
|
1838
|
-
tracking: [n,
|
|
1838
|
+
tracking: [n, z, P]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Line Clamp
|
|
1842
1842
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1843
1843
|
*/
|
|
1844
1844
|
"line-clamp": [{
|
|
1845
|
-
"line-clamp": [ee, "none",
|
|
1845
|
+
"line-clamp": [ee, "none", z, Qt]
|
|
1846
1846
|
}],
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Line Height
|
|
@@ -1852,7 +1852,7 @@ const ge = (r) => {
|
|
|
1852
1852
|
leading: [
|
|
1853
1853
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1854
1854
|
a,
|
|
1855
|
-
...
|
|
1855
|
+
..._()
|
|
1856
1856
|
]
|
|
1857
1857
|
}],
|
|
1858
1858
|
/**
|
|
@@ -1860,7 +1860,7 @@ const ge = (r) => {
|
|
|
1860
1860
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1861
1861
|
*/
|
|
1862
1862
|
"list-image": [{
|
|
1863
|
-
"list-image": ["none",
|
|
1863
|
+
"list-image": ["none", z, P]
|
|
1864
1864
|
}],
|
|
1865
1865
|
/**
|
|
1866
1866
|
* List Style Position
|
|
@@ -1874,7 +1874,7 @@ const ge = (r) => {
|
|
|
1874
1874
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1875
1875
|
*/
|
|
1876
1876
|
"list-style-type": [{
|
|
1877
|
-
list: ["disc", "decimal", "none",
|
|
1877
|
+
list: ["disc", "decimal", "none", z, P]
|
|
1878
1878
|
}],
|
|
1879
1879
|
/**
|
|
1880
1880
|
* Text Alignment
|
|
@@ -1915,7 +1915,7 @@ const ge = (r) => {
|
|
|
1915
1915
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1916
1916
|
*/
|
|
1917
1917
|
"text-decoration-thickness": [{
|
|
1918
|
-
decoration: [ee, "from-font", "auto",
|
|
1918
|
+
decoration: [ee, "from-font", "auto", z, Xe]
|
|
1919
1919
|
}],
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Text Decoration Color
|
|
@@ -1929,7 +1929,7 @@ const ge = (r) => {
|
|
|
1929
1929
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1930
1930
|
*/
|
|
1931
1931
|
"underline-offset": [{
|
|
1932
|
-
"underline-offset": [ee, "auto",
|
|
1932
|
+
"underline-offset": [ee, "auto", z, P]
|
|
1933
1933
|
}],
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Text Transform
|
|
@@ -1953,14 +1953,14 @@ const ge = (r) => {
|
|
|
1953
1953
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1954
1954
|
*/
|
|
1955
1955
|
indent: [{
|
|
1956
|
-
indent:
|
|
1956
|
+
indent: _()
|
|
1957
1957
|
}],
|
|
1958
1958
|
/**
|
|
1959
1959
|
* Vertical Alignment
|
|
1960
1960
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1961
1961
|
*/
|
|
1962
1962
|
"vertical-align": [{
|
|
1963
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1963
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", z, P]
|
|
1964
1964
|
}],
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Whitespace
|
|
@@ -1995,7 +1995,7 @@ const ge = (r) => {
|
|
|
1995
1995
|
* @see https://tailwindcss.com/docs/content
|
|
1996
1996
|
*/
|
|
1997
1997
|
content: [{
|
|
1998
|
-
content: ["none",
|
|
1998
|
+
content: ["none", z, P]
|
|
1999
1999
|
}],
|
|
2000
2000
|
// -------------------
|
|
2001
2001
|
// --- Backgrounds ---
|
|
@@ -2026,7 +2026,7 @@ const ge = (r) => {
|
|
|
2026
2026
|
* @see https://tailwindcss.com/docs/background-position
|
|
2027
2027
|
*/
|
|
2028
2028
|
"bg-position": [{
|
|
2029
|
-
bg:
|
|
2029
|
+
bg: W()
|
|
2030
2030
|
}],
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Background Repeat
|
|
@@ -2050,9 +2050,9 @@ const ge = (r) => {
|
|
|
2050
2050
|
bg: ["none", {
|
|
2051
2051
|
linear: [{
|
|
2052
2052
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2053
|
-
}, qe,
|
|
2054
|
-
radial: ["",
|
|
2055
|
-
conic: [qe,
|
|
2053
|
+
}, qe, z, P],
|
|
2054
|
+
radial: ["", z, P],
|
|
2055
|
+
conic: [qe, z, P]
|
|
2056
2056
|
}, Ia, $a]
|
|
2057
2057
|
}],
|
|
2058
2058
|
/**
|
|
@@ -2395,7 +2395,7 @@ const ge = (r) => {
|
|
|
2395
2395
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2396
2396
|
*/
|
|
2397
2397
|
"outline-offset": [{
|
|
2398
|
-
"outline-offset": [ee,
|
|
2398
|
+
"outline-offset": [ee, z, P]
|
|
2399
2399
|
}],
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Outline Width
|
|
@@ -2521,7 +2521,7 @@ const ge = (r) => {
|
|
|
2521
2521
|
* @see https://tailwindcss.com/docs/opacity
|
|
2522
2522
|
*/
|
|
2523
2523
|
opacity: [{
|
|
2524
|
-
opacity: [ee,
|
|
2524
|
+
opacity: [ee, z, P]
|
|
2525
2525
|
}],
|
|
2526
2526
|
/**
|
|
2527
2527
|
* Mix Blend Mode
|
|
@@ -2643,7 +2643,7 @@ const ge = (r) => {
|
|
|
2643
2643
|
"mask-y-to": h()
|
|
2644
2644
|
}],
|
|
2645
2645
|
"mask-image-radial": [{
|
|
2646
|
-
"mask-radial": [
|
|
2646
|
+
"mask-radial": [z, P]
|
|
2647
2647
|
}],
|
|
2648
2648
|
"mask-image-radial-from-pos": [{
|
|
2649
2649
|
"mask-radial-from": se()
|
|
@@ -2667,7 +2667,7 @@ const ge = (r) => {
|
|
|
2667
2667
|
}]
|
|
2668
2668
|
}],
|
|
2669
2669
|
"mask-image-radial-pos": [{
|
|
2670
|
-
"mask-radial-at":
|
|
2670
|
+
"mask-radial-at": $()
|
|
2671
2671
|
}],
|
|
2672
2672
|
"mask-image-conic-pos": [{
|
|
2673
2673
|
"mask-conic": [ee]
|
|
@@ -2703,7 +2703,7 @@ const ge = (r) => {
|
|
|
2703
2703
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2704
2704
|
*/
|
|
2705
2705
|
"mask-position": [{
|
|
2706
|
-
mask:
|
|
2706
|
+
mask: W()
|
|
2707
2707
|
}],
|
|
2708
2708
|
/**
|
|
2709
2709
|
* Mask Repeat
|
|
@@ -2731,7 +2731,7 @@ const ge = (r) => {
|
|
|
2731
2731
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2732
2732
|
*/
|
|
2733
2733
|
"mask-image": [{
|
|
2734
|
-
mask: ["none",
|
|
2734
|
+
mask: ["none", z, P]
|
|
2735
2735
|
}],
|
|
2736
2736
|
// ---------------
|
|
2737
2737
|
// --- Filters ---
|
|
@@ -2745,8 +2745,8 @@ const ge = (r) => {
|
|
|
2745
2745
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2746
2746
|
"",
|
|
2747
2747
|
"none",
|
|
2748
|
-
|
|
2749
|
-
|
|
2748
|
+
z,
|
|
2749
|
+
P
|
|
2750
2750
|
]
|
|
2751
2751
|
}],
|
|
2752
2752
|
/**
|
|
@@ -2761,14 +2761,14 @@ const ge = (r) => {
|
|
|
2761
2761
|
* @see https://tailwindcss.com/docs/brightness
|
|
2762
2762
|
*/
|
|
2763
2763
|
brightness: [{
|
|
2764
|
-
brightness: [ee,
|
|
2764
|
+
brightness: [ee, z, P]
|
|
2765
2765
|
}],
|
|
2766
2766
|
/**
|
|
2767
2767
|
* Contrast
|
|
2768
2768
|
* @see https://tailwindcss.com/docs/contrast
|
|
2769
2769
|
*/
|
|
2770
2770
|
contrast: [{
|
|
2771
|
-
contrast: [ee,
|
|
2771
|
+
contrast: [ee, z, P]
|
|
2772
2772
|
}],
|
|
2773
2773
|
/**
|
|
2774
2774
|
* Drop Shadow
|
|
@@ -2796,35 +2796,35 @@ const ge = (r) => {
|
|
|
2796
2796
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2797
2797
|
*/
|
|
2798
2798
|
grayscale: [{
|
|
2799
|
-
grayscale: ["", ee,
|
|
2799
|
+
grayscale: ["", ee, z, P]
|
|
2800
2800
|
}],
|
|
2801
2801
|
/**
|
|
2802
2802
|
* Hue Rotate
|
|
2803
2803
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2804
2804
|
*/
|
|
2805
2805
|
"hue-rotate": [{
|
|
2806
|
-
"hue-rotate": [ee,
|
|
2806
|
+
"hue-rotate": [ee, z, P]
|
|
2807
2807
|
}],
|
|
2808
2808
|
/**
|
|
2809
2809
|
* Invert
|
|
2810
2810
|
* @see https://tailwindcss.com/docs/invert
|
|
2811
2811
|
*/
|
|
2812
2812
|
invert: [{
|
|
2813
|
-
invert: ["", ee,
|
|
2813
|
+
invert: ["", ee, z, P]
|
|
2814
2814
|
}],
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Saturate
|
|
2817
2817
|
* @see https://tailwindcss.com/docs/saturate
|
|
2818
2818
|
*/
|
|
2819
2819
|
saturate: [{
|
|
2820
|
-
saturate: [ee,
|
|
2820
|
+
saturate: [ee, z, P]
|
|
2821
2821
|
}],
|
|
2822
2822
|
/**
|
|
2823
2823
|
* Sepia
|
|
2824
2824
|
* @see https://tailwindcss.com/docs/sepia
|
|
2825
2825
|
*/
|
|
2826
2826
|
sepia: [{
|
|
2827
|
-
sepia: ["", ee,
|
|
2827
|
+
sepia: ["", ee, z, P]
|
|
2828
2828
|
}],
|
|
2829
2829
|
/**
|
|
2830
2830
|
* Backdrop Filter
|
|
@@ -2835,8 +2835,8 @@ const ge = (r) => {
|
|
|
2835
2835
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2836
2836
|
"",
|
|
2837
2837
|
"none",
|
|
2838
|
-
|
|
2839
|
-
|
|
2838
|
+
z,
|
|
2839
|
+
P
|
|
2840
2840
|
]
|
|
2841
2841
|
}],
|
|
2842
2842
|
/**
|
|
@@ -2851,56 +2851,56 @@ const ge = (r) => {
|
|
|
2851
2851
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2852
2852
|
*/
|
|
2853
2853
|
"backdrop-brightness": [{
|
|
2854
|
-
"backdrop-brightness": [ee,
|
|
2854
|
+
"backdrop-brightness": [ee, z, P]
|
|
2855
2855
|
}],
|
|
2856
2856
|
/**
|
|
2857
2857
|
* Backdrop Contrast
|
|
2858
2858
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2859
2859
|
*/
|
|
2860
2860
|
"backdrop-contrast": [{
|
|
2861
|
-
"backdrop-contrast": [ee,
|
|
2861
|
+
"backdrop-contrast": [ee, z, P]
|
|
2862
2862
|
}],
|
|
2863
2863
|
/**
|
|
2864
2864
|
* Backdrop Grayscale
|
|
2865
2865
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2866
2866
|
*/
|
|
2867
2867
|
"backdrop-grayscale": [{
|
|
2868
|
-
"backdrop-grayscale": ["", ee,
|
|
2868
|
+
"backdrop-grayscale": ["", ee, z, P]
|
|
2869
2869
|
}],
|
|
2870
2870
|
/**
|
|
2871
2871
|
* Backdrop Hue Rotate
|
|
2872
2872
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2873
2873
|
*/
|
|
2874
2874
|
"backdrop-hue-rotate": [{
|
|
2875
|
-
"backdrop-hue-rotate": [ee,
|
|
2875
|
+
"backdrop-hue-rotate": [ee, z, P]
|
|
2876
2876
|
}],
|
|
2877
2877
|
/**
|
|
2878
2878
|
* Backdrop Invert
|
|
2879
2879
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2880
2880
|
*/
|
|
2881
2881
|
"backdrop-invert": [{
|
|
2882
|
-
"backdrop-invert": ["", ee,
|
|
2882
|
+
"backdrop-invert": ["", ee, z, P]
|
|
2883
2883
|
}],
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Backdrop Opacity
|
|
2886
2886
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2887
2887
|
*/
|
|
2888
2888
|
"backdrop-opacity": [{
|
|
2889
|
-
"backdrop-opacity": [ee,
|
|
2889
|
+
"backdrop-opacity": [ee, z, P]
|
|
2890
2890
|
}],
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Backdrop Saturate
|
|
2893
2893
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2894
2894
|
*/
|
|
2895
2895
|
"backdrop-saturate": [{
|
|
2896
|
-
"backdrop-saturate": [ee,
|
|
2896
|
+
"backdrop-saturate": [ee, z, P]
|
|
2897
2897
|
}],
|
|
2898
2898
|
/**
|
|
2899
2899
|
* Backdrop Sepia
|
|
2900
2900
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2901
2901
|
*/
|
|
2902
2902
|
"backdrop-sepia": [{
|
|
2903
|
-
"backdrop-sepia": ["", ee,
|
|
2903
|
+
"backdrop-sepia": ["", ee, z, P]
|
|
2904
2904
|
}],
|
|
2905
2905
|
// --------------
|
|
2906
2906
|
// --- Tables ---
|
|
@@ -2917,21 +2917,21 @@ const ge = (r) => {
|
|
|
2917
2917
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2918
2918
|
*/
|
|
2919
2919
|
"border-spacing": [{
|
|
2920
|
-
"border-spacing":
|
|
2920
|
+
"border-spacing": _()
|
|
2921
2921
|
}],
|
|
2922
2922
|
/**
|
|
2923
2923
|
* Border Spacing X
|
|
2924
2924
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2925
2925
|
*/
|
|
2926
2926
|
"border-spacing-x": [{
|
|
2927
|
-
"border-spacing-x":
|
|
2927
|
+
"border-spacing-x": _()
|
|
2928
2928
|
}],
|
|
2929
2929
|
/**
|
|
2930
2930
|
* Border Spacing Y
|
|
2931
2931
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2932
2932
|
*/
|
|
2933
2933
|
"border-spacing-y": [{
|
|
2934
|
-
"border-spacing-y":
|
|
2934
|
+
"border-spacing-y": _()
|
|
2935
2935
|
}],
|
|
2936
2936
|
/**
|
|
2937
2937
|
* Table Layout
|
|
@@ -2955,7 +2955,7 @@ const ge = (r) => {
|
|
|
2955
2955
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2956
2956
|
*/
|
|
2957
2957
|
transition: [{
|
|
2958
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2958
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", z, P]
|
|
2959
2959
|
}],
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Transition Behavior
|
|
@@ -2969,28 +2969,28 @@ const ge = (r) => {
|
|
|
2969
2969
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2970
2970
|
*/
|
|
2971
2971
|
duration: [{
|
|
2972
|
-
duration: [ee, "initial",
|
|
2972
|
+
duration: [ee, "initial", z, P]
|
|
2973
2973
|
}],
|
|
2974
2974
|
/**
|
|
2975
2975
|
* Transition Timing Function
|
|
2976
2976
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2977
2977
|
*/
|
|
2978
2978
|
ease: [{
|
|
2979
|
-
ease: ["linear", "initial", v,
|
|
2979
|
+
ease: ["linear", "initial", v, z, P]
|
|
2980
2980
|
}],
|
|
2981
2981
|
/**
|
|
2982
2982
|
* Transition Delay
|
|
2983
2983
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2984
2984
|
*/
|
|
2985
2985
|
delay: [{
|
|
2986
|
-
delay: [ee,
|
|
2986
|
+
delay: [ee, z, P]
|
|
2987
2987
|
}],
|
|
2988
2988
|
/**
|
|
2989
2989
|
* Animation
|
|
2990
2990
|
* @see https://tailwindcss.com/docs/animation
|
|
2991
2991
|
*/
|
|
2992
2992
|
animate: [{
|
|
2993
|
-
animate: ["none", g,
|
|
2993
|
+
animate: ["none", g, z, P]
|
|
2994
2994
|
}],
|
|
2995
2995
|
// ------------------
|
|
2996
2996
|
// --- Transforms ---
|
|
@@ -3007,7 +3007,7 @@ const ge = (r) => {
|
|
|
3007
3007
|
* @see https://tailwindcss.com/docs/perspective
|
|
3008
3008
|
*/
|
|
3009
3009
|
perspective: [{
|
|
3010
|
-
perspective: [w,
|
|
3010
|
+
perspective: [w, z, P]
|
|
3011
3011
|
}],
|
|
3012
3012
|
/**
|
|
3013
3013
|
* Perspective Origin
|
|
@@ -3021,28 +3021,28 @@ const ge = (r) => {
|
|
|
3021
3021
|
* @see https://tailwindcss.com/docs/rotate
|
|
3022
3022
|
*/
|
|
3023
3023
|
rotate: [{
|
|
3024
|
-
rotate:
|
|
3024
|
+
rotate: xe()
|
|
3025
3025
|
}],
|
|
3026
3026
|
/**
|
|
3027
3027
|
* Rotate X
|
|
3028
3028
|
* @see https://tailwindcss.com/docs/rotate
|
|
3029
3029
|
*/
|
|
3030
3030
|
"rotate-x": [{
|
|
3031
|
-
"rotate-x":
|
|
3031
|
+
"rotate-x": xe()
|
|
3032
3032
|
}],
|
|
3033
3033
|
/**
|
|
3034
3034
|
* Rotate Y
|
|
3035
3035
|
* @see https://tailwindcss.com/docs/rotate
|
|
3036
3036
|
*/
|
|
3037
3037
|
"rotate-y": [{
|
|
3038
|
-
"rotate-y":
|
|
3038
|
+
"rotate-y": xe()
|
|
3039
3039
|
}],
|
|
3040
3040
|
/**
|
|
3041
3041
|
* Rotate Z
|
|
3042
3042
|
* @see https://tailwindcss.com/docs/rotate
|
|
3043
3043
|
*/
|
|
3044
3044
|
"rotate-z": [{
|
|
3045
|
-
"rotate-z":
|
|
3045
|
+
"rotate-z": xe()
|
|
3046
3046
|
}],
|
|
3047
3047
|
/**
|
|
3048
3048
|
* Scale
|
|
@@ -3103,7 +3103,7 @@ const ge = (r) => {
|
|
|
3103
3103
|
* @see https://tailwindcss.com/docs/transform
|
|
3104
3104
|
*/
|
|
3105
3105
|
transform: [{
|
|
3106
|
-
transform: [
|
|
3106
|
+
transform: [z, P, "", "none", "gpu", "cpu"]
|
|
3107
3107
|
}],
|
|
3108
3108
|
/**
|
|
3109
3109
|
* Transform Origin
|
|
@@ -3188,7 +3188,7 @@ const ge = (r) => {
|
|
|
3188
3188
|
* @see https://tailwindcss.com/docs/cursor
|
|
3189
3189
|
*/
|
|
3190
3190
|
cursor: [{
|
|
3191
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3191
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", z, P]
|
|
3192
3192
|
}],
|
|
3193
3193
|
/**
|
|
3194
3194
|
* Field Sizing
|
|
@@ -3223,126 +3223,126 @@ const ge = (r) => {
|
|
|
3223
3223
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3224
3224
|
*/
|
|
3225
3225
|
"scroll-m": [{
|
|
3226
|
-
"scroll-m":
|
|
3226
|
+
"scroll-m": _()
|
|
3227
3227
|
}],
|
|
3228
3228
|
/**
|
|
3229
3229
|
* Scroll Margin X
|
|
3230
3230
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3231
3231
|
*/
|
|
3232
3232
|
"scroll-mx": [{
|
|
3233
|
-
"scroll-mx":
|
|
3233
|
+
"scroll-mx": _()
|
|
3234
3234
|
}],
|
|
3235
3235
|
/**
|
|
3236
3236
|
* Scroll Margin Y
|
|
3237
3237
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3238
3238
|
*/
|
|
3239
3239
|
"scroll-my": [{
|
|
3240
|
-
"scroll-my":
|
|
3240
|
+
"scroll-my": _()
|
|
3241
3241
|
}],
|
|
3242
3242
|
/**
|
|
3243
3243
|
* Scroll Margin Start
|
|
3244
3244
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3245
3245
|
*/
|
|
3246
3246
|
"scroll-ms": [{
|
|
3247
|
-
"scroll-ms":
|
|
3247
|
+
"scroll-ms": _()
|
|
3248
3248
|
}],
|
|
3249
3249
|
/**
|
|
3250
3250
|
* Scroll Margin End
|
|
3251
3251
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3252
3252
|
*/
|
|
3253
3253
|
"scroll-me": [{
|
|
3254
|
-
"scroll-me":
|
|
3254
|
+
"scroll-me": _()
|
|
3255
3255
|
}],
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Scroll Margin Top
|
|
3258
3258
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3259
3259
|
*/
|
|
3260
3260
|
"scroll-mt": [{
|
|
3261
|
-
"scroll-mt":
|
|
3261
|
+
"scroll-mt": _()
|
|
3262
3262
|
}],
|
|
3263
3263
|
/**
|
|
3264
3264
|
* Scroll Margin Right
|
|
3265
3265
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3266
3266
|
*/
|
|
3267
3267
|
"scroll-mr": [{
|
|
3268
|
-
"scroll-mr":
|
|
3268
|
+
"scroll-mr": _()
|
|
3269
3269
|
}],
|
|
3270
3270
|
/**
|
|
3271
3271
|
* Scroll Margin Bottom
|
|
3272
3272
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3273
3273
|
*/
|
|
3274
3274
|
"scroll-mb": [{
|
|
3275
|
-
"scroll-mb":
|
|
3275
|
+
"scroll-mb": _()
|
|
3276
3276
|
}],
|
|
3277
3277
|
/**
|
|
3278
3278
|
* Scroll Margin Left
|
|
3279
3279
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3280
3280
|
*/
|
|
3281
3281
|
"scroll-ml": [{
|
|
3282
|
-
"scroll-ml":
|
|
3282
|
+
"scroll-ml": _()
|
|
3283
3283
|
}],
|
|
3284
3284
|
/**
|
|
3285
3285
|
* Scroll Padding
|
|
3286
3286
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3287
3287
|
*/
|
|
3288
3288
|
"scroll-p": [{
|
|
3289
|
-
"scroll-p":
|
|
3289
|
+
"scroll-p": _()
|
|
3290
3290
|
}],
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Scroll Padding X
|
|
3293
3293
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3294
3294
|
*/
|
|
3295
3295
|
"scroll-px": [{
|
|
3296
|
-
"scroll-px":
|
|
3296
|
+
"scroll-px": _()
|
|
3297
3297
|
}],
|
|
3298
3298
|
/**
|
|
3299
3299
|
* Scroll Padding Y
|
|
3300
3300
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3301
3301
|
*/
|
|
3302
3302
|
"scroll-py": [{
|
|
3303
|
-
"scroll-py":
|
|
3303
|
+
"scroll-py": _()
|
|
3304
3304
|
}],
|
|
3305
3305
|
/**
|
|
3306
3306
|
* Scroll Padding Start
|
|
3307
3307
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3308
3308
|
*/
|
|
3309
3309
|
"scroll-ps": [{
|
|
3310
|
-
"scroll-ps":
|
|
3310
|
+
"scroll-ps": _()
|
|
3311
3311
|
}],
|
|
3312
3312
|
/**
|
|
3313
3313
|
* Scroll Padding End
|
|
3314
3314
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3315
3315
|
*/
|
|
3316
3316
|
"scroll-pe": [{
|
|
3317
|
-
"scroll-pe":
|
|
3317
|
+
"scroll-pe": _()
|
|
3318
3318
|
}],
|
|
3319
3319
|
/**
|
|
3320
3320
|
* Scroll Padding Top
|
|
3321
3321
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3322
3322
|
*/
|
|
3323
3323
|
"scroll-pt": [{
|
|
3324
|
-
"scroll-pt":
|
|
3324
|
+
"scroll-pt": _()
|
|
3325
3325
|
}],
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Scroll Padding Right
|
|
3328
3328
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3329
3329
|
*/
|
|
3330
3330
|
"scroll-pr": [{
|
|
3331
|
-
"scroll-pr":
|
|
3331
|
+
"scroll-pr": _()
|
|
3332
3332
|
}],
|
|
3333
3333
|
/**
|
|
3334
3334
|
* Scroll Padding Bottom
|
|
3335
3335
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3336
3336
|
*/
|
|
3337
3337
|
"scroll-pb": [{
|
|
3338
|
-
"scroll-pb":
|
|
3338
|
+
"scroll-pb": _()
|
|
3339
3339
|
}],
|
|
3340
3340
|
/**
|
|
3341
3341
|
* Scroll Padding Left
|
|
3342
3342
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3343
3343
|
*/
|
|
3344
3344
|
"scroll-pl": [{
|
|
3345
|
-
"scroll-pl":
|
|
3345
|
+
"scroll-pl": _()
|
|
3346
3346
|
}],
|
|
3347
3347
|
/**
|
|
3348
3348
|
* Scroll Snap Align
|
|
@@ -3410,7 +3410,7 @@ const ge = (r) => {
|
|
|
3410
3410
|
* @see https://tailwindcss.com/docs/will-change
|
|
3411
3411
|
*/
|
|
3412
3412
|
"will-change": [{
|
|
3413
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3413
|
+
"will-change": ["auto", "scroll", "contents", "transform", z, P]
|
|
3414
3414
|
}],
|
|
3415
3415
|
// -----------
|
|
3416
3416
|
// --- SVG ---
|
|
@@ -3502,12 +3502,12 @@ const ge = (r) => {
|
|
|
3502
3502
|
},
|
|
3503
3503
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3504
3504
|
};
|
|
3505
|
-
},
|
|
3505
|
+
}, Ba = /* @__PURE__ */ ka(za);
|
|
3506
3506
|
var vt = (r) => r.type === "checkbox", Ke = (r) => r instanceof Date, Ee = (r) => r == null;
|
|
3507
3507
|
const Ls = (r) => typeof r == "object";
|
|
3508
|
-
var
|
|
3508
|
+
var pe = (r) => !Ee(r) && !Array.isArray(r) && Ls(r) && !Ke(r), Ps = (r) => pe(r) && r.target ? vt(r.target) ? r.target.checked : r.target.value : r, Ua = (r) => r.substring(0, r.search(/\.\d+(\.|$)/)) || r, zs = (r, e) => r.has(Ua(e)), Za = (r) => {
|
|
3509
3509
|
const e = r.constructor && r.constructor.prototype;
|
|
3510
|
-
return
|
|
3510
|
+
return pe(e) && e.hasOwnProperty("isPrototypeOf");
|
|
3511
3511
|
}, Er = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
3512
3512
|
function we(r) {
|
|
3513
3513
|
let e;
|
|
@@ -3516,7 +3516,7 @@ function we(r) {
|
|
|
3516
3516
|
e = new Date(r);
|
|
3517
3517
|
else if (r instanceof Set)
|
|
3518
3518
|
e = new Set(r);
|
|
3519
|
-
else if (!(Er && (r instanceof Blob || s)) && (t ||
|
|
3519
|
+
else if (!(Er && (r instanceof Blob || s)) && (t || pe(r)))
|
|
3520
3520
|
if (e = t ? [] : {}, !t && !Za(r))
|
|
3521
3521
|
e = r;
|
|
3522
3522
|
else
|
|
@@ -3526,20 +3526,20 @@ function we(r) {
|
|
|
3526
3526
|
return r;
|
|
3527
3527
|
return e;
|
|
3528
3528
|
}
|
|
3529
|
-
var qt = (r) => Array.isArray(r) ? r.filter(Boolean) : [],
|
|
3530
|
-
if (!e || !
|
|
3529
|
+
var qt = (r) => Array.isArray(r) ? r.filter(Boolean) : [], me = (r) => r === void 0, V = (r, e, t) => {
|
|
3530
|
+
if (!e || !pe(r))
|
|
3531
3531
|
return t;
|
|
3532
3532
|
const s = qt(e.split(/[,[\].]+?/)).reduce((n, a) => Ee(n) ? n : n[a], r);
|
|
3533
|
-
return
|
|
3534
|
-
}, Te = (r) => typeof r == "boolean", Nr = (r) => /^\w*$/.test(r),
|
|
3533
|
+
return me(s) || s === r ? me(r[e]) ? t : r[e] : s;
|
|
3534
|
+
}, Te = (r) => typeof r == "boolean", Nr = (r) => /^\w*$/.test(r), Bs = (r) => qt(r.replace(/["|']|\]/g, "").split(/\.|\[/)), ie = (r, e, t) => {
|
|
3535
3535
|
let s = -1;
|
|
3536
|
-
const n = Nr(e) ? [e] :
|
|
3536
|
+
const n = Nr(e) ? [e] : Bs(e), a = n.length, o = a - 1;
|
|
3537
3537
|
for (; ++s < a; ) {
|
|
3538
3538
|
const l = n[s];
|
|
3539
3539
|
let c = t;
|
|
3540
3540
|
if (s !== o) {
|
|
3541
3541
|
const u = r[l];
|
|
3542
|
-
c =
|
|
3542
|
+
c = pe(u) || Array.isArray(u) ? u : isNaN(+n[s + 1]) ? {} : [];
|
|
3543
3543
|
}
|
|
3544
3544
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
3545
3545
|
return;
|
|
@@ -3550,7 +3550,7 @@ const It = {
|
|
|
3550
3550
|
BLUR: "blur",
|
|
3551
3551
|
FOCUS_OUT: "focusout",
|
|
3552
3552
|
CHANGE: "change"
|
|
3553
|
-
},
|
|
3553
|
+
}, Oe = {
|
|
3554
3554
|
onBlur: "onBlur",
|
|
3555
3555
|
onChange: "onChange",
|
|
3556
3556
|
onSubmit: "onSubmit",
|
|
@@ -3564,9 +3564,9 @@ const It = {
|
|
|
3564
3564
|
pattern: "pattern",
|
|
3565
3565
|
required: "required",
|
|
3566
3566
|
validate: "validate"
|
|
3567
|
-
},
|
|
3567
|
+
}, Us = ne.createContext(null), wt = () => ne.useContext(Us), Wa = (r) => {
|
|
3568
3568
|
const { children: e, ...t } = r;
|
|
3569
|
-
return ne.createElement(
|
|
3569
|
+
return ne.createElement(Us.Provider, { value: t }, e);
|
|
3570
3570
|
};
|
|
3571
3571
|
var Zs = (r, e, t, s = !0) => {
|
|
3572
3572
|
const n = {
|
|
@@ -3576,7 +3576,7 @@ var Zs = (r, e, t, s = !0) => {
|
|
|
3576
3576
|
Object.defineProperty(n, a, {
|
|
3577
3577
|
get: () => {
|
|
3578
3578
|
const o = a;
|
|
3579
|
-
return e._proxyFormState[o] !==
|
|
3579
|
+
return e._proxyFormState[o] !== Oe.all && (e._proxyFormState[o] = !s || Oe.all), t && (t[o] = !0), r[o];
|
|
3580
3580
|
}
|
|
3581
3581
|
});
|
|
3582
3582
|
return n;
|
|
@@ -3654,9 +3654,9 @@ function qs(r) {
|
|
|
3654
3654
|
enumerable: !0,
|
|
3655
3655
|
get: () => V(c.errors, t)
|
|
3656
3656
|
}
|
|
3657
|
-
}), [c, t]), m = ne.useCallback((
|
|
3657
|
+
}), [c, t]), m = ne.useCallback((N) => d.current.onChange({
|
|
3658
3658
|
target: {
|
|
3659
|
-
value: Ps(
|
|
3659
|
+
value: Ps(N),
|
|
3660
3660
|
name: t
|
|
3661
3661
|
},
|
|
3662
3662
|
type: It.CHANGE
|
|
@@ -3666,13 +3666,13 @@ function qs(r) {
|
|
|
3666
3666
|
name: t
|
|
3667
3667
|
},
|
|
3668
3668
|
type: It.BLUR
|
|
3669
|
-
}), [t, n._formValues]), x = ne.useCallback((
|
|
3669
|
+
}), [t, n._formValues]), x = ne.useCallback((N) => {
|
|
3670
3670
|
const v = V(n._fields, t);
|
|
3671
|
-
v &&
|
|
3672
|
-
focus: () =>
|
|
3673
|
-
select: () =>
|
|
3674
|
-
setCustomValidity: (g) =>
|
|
3675
|
-
reportValidity: () =>
|
|
3671
|
+
v && N && (v._f.ref = {
|
|
3672
|
+
focus: () => N.focus(),
|
|
3673
|
+
select: () => N.select(),
|
|
3674
|
+
setCustomValidity: (g) => N.setCustomValidity(g),
|
|
3675
|
+
reportValidity: () => N.reportValidity()
|
|
3676
3676
|
});
|
|
3677
3677
|
}, [n._fields, t]), w = ne.useMemo(() => ({
|
|
3678
3678
|
name: t,
|
|
@@ -3683,21 +3683,21 @@ function qs(r) {
|
|
|
3683
3683
|
ref: x
|
|
3684
3684
|
}), [t, s, c.disabled, m, y, x, l]);
|
|
3685
3685
|
return ne.useEffect(() => {
|
|
3686
|
-
const
|
|
3686
|
+
const N = n._options.shouldUnregister || a;
|
|
3687
3687
|
n.register(t, {
|
|
3688
3688
|
...u.current.rules,
|
|
3689
3689
|
...Te(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3690
3690
|
});
|
|
3691
3691
|
const v = (g, S) => {
|
|
3692
|
-
const
|
|
3693
|
-
|
|
3692
|
+
const $ = V(n._fields, g);
|
|
3693
|
+
$ && $._f && ($._f.mount = S);
|
|
3694
3694
|
};
|
|
3695
|
-
if (v(t, !0),
|
|
3695
|
+
if (v(t, !0), N) {
|
|
3696
3696
|
const g = we(V(n._options.defaultValues, t));
|
|
3697
|
-
ie(n._defaultValues, t, g),
|
|
3697
|
+
ie(n._defaultValues, t, g), me(V(n._formValues, t)) && ie(n._formValues, t, g);
|
|
3698
3698
|
}
|
|
3699
3699
|
return !o && n.register(t), () => {
|
|
3700
|
-
(o ?
|
|
3700
|
+
(o ? N && !n._state.action : N) ? n.unregister(t) : v(t, !1);
|
|
3701
3701
|
};
|
|
3702
3702
|
}, [t, n, o, a]), ne.useEffect(() => {
|
|
3703
3703
|
n._setDisabledField({
|
|
@@ -3710,7 +3710,7 @@ function qs(r) {
|
|
|
3710
3710
|
fieldState: p
|
|
3711
3711
|
}), [w, c, p]);
|
|
3712
3712
|
}
|
|
3713
|
-
const
|
|
3713
|
+
const Ce = (r) => r.render(qs(r));
|
|
3714
3714
|
var Gs = (r, e, t, s, n) => e ? {
|
|
3715
3715
|
...t[r],
|
|
3716
3716
|
types: {
|
|
@@ -3751,13 +3751,13 @@ function Ye(r, e) {
|
|
|
3751
3751
|
return !1;
|
|
3752
3752
|
if (n !== "ref") {
|
|
3753
3753
|
const o = e[n];
|
|
3754
|
-
if (Ke(a) && Ke(o) ||
|
|
3754
|
+
if (Ke(a) && Ke(o) || pe(a) && pe(o) || Array.isArray(a) && Array.isArray(o) ? !Ye(a, o) : a !== o)
|
|
3755
3755
|
return !1;
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
3758
|
return !0;
|
|
3759
3759
|
}
|
|
3760
|
-
var je = (r) =>
|
|
3760
|
+
var je = (r) => pe(r) && !Object.keys(r).length, Sr = (r) => r.type === "file", Re = (r) => typeof r == "function", Lt = (r) => {
|
|
3761
3761
|
if (!Er)
|
|
3762
3762
|
return !1;
|
|
3763
3763
|
const e = r ? r.ownerDocument : 0;
|
|
@@ -3767,37 +3767,37 @@ function Ya(r, e) {
|
|
|
3767
3767
|
const t = e.slice(0, -1).length;
|
|
3768
3768
|
let s = 0;
|
|
3769
3769
|
for (; s < t; )
|
|
3770
|
-
r =
|
|
3770
|
+
r = me(r) ? s++ : r[e[s++]];
|
|
3771
3771
|
return r;
|
|
3772
3772
|
}
|
|
3773
3773
|
function Ha(r) {
|
|
3774
3774
|
for (const e in r)
|
|
3775
|
-
if (r.hasOwnProperty(e) && !
|
|
3775
|
+
if (r.hasOwnProperty(e) && !me(r[e]))
|
|
3776
3776
|
return !1;
|
|
3777
3777
|
return !0;
|
|
3778
3778
|
}
|
|
3779
3779
|
function be(r, e) {
|
|
3780
|
-
const t = Array.isArray(e) ? e : Nr(e) ? [e] :
|
|
3781
|
-
return s && delete s[a], n !== 0 && (
|
|
3780
|
+
const t = Array.isArray(e) ? e : Nr(e) ? [e] : Bs(e), s = t.length === 1 ? r : Ya(r, t), n = t.length - 1, a = t[n];
|
|
3781
|
+
return s && delete s[a], n !== 0 && (pe(s) && je(s) || Array.isArray(s) && Ha(s)) && be(r, t.slice(0, -1)), r;
|
|
3782
3782
|
}
|
|
3783
3783
|
var Hs = (r) => {
|
|
3784
3784
|
for (const e in r)
|
|
3785
|
-
if (
|
|
3785
|
+
if (Re(r[e]))
|
|
3786
3786
|
return !0;
|
|
3787
3787
|
return !1;
|
|
3788
3788
|
};
|
|
3789
3789
|
function Pt(r, e = {}) {
|
|
3790
3790
|
const t = Array.isArray(r);
|
|
3791
|
-
if (
|
|
3791
|
+
if (pe(r) || t)
|
|
3792
3792
|
for (const s in r)
|
|
3793
|
-
Array.isArray(r[s]) ||
|
|
3793
|
+
Array.isArray(r[s]) || pe(r[s]) && !Hs(r[s]) ? (e[s] = Array.isArray(r[s]) ? [] : {}, Pt(r[s], e[s])) : Ee(r[s]) || (e[s] = !0);
|
|
3794
3794
|
return e;
|
|
3795
3795
|
}
|
|
3796
3796
|
function Xs(r, e, t) {
|
|
3797
3797
|
const s = Array.isArray(r);
|
|
3798
|
-
if (
|
|
3798
|
+
if (pe(r) || s)
|
|
3799
3799
|
for (const n in r)
|
|
3800
|
-
Array.isArray(r[n]) ||
|
|
3800
|
+
Array.isArray(r[n]) || pe(r[n]) && !Hs(r[n]) ? me(e) || ur(t[n]) ? t[n] = Array.isArray(r[n]) ? Pt(r[n], []) : { ...Pt(r[n]) } : Xs(r[n], Ee(e) ? {} : e[n], t[n]) : t[n] = !Ye(r[n], e[n]);
|
|
3801
3801
|
return t;
|
|
3802
3802
|
}
|
|
3803
3803
|
var pt = (r, e) => Xs(r, e, Pt(e));
|
|
@@ -3813,11 +3813,11 @@ var Ks = (r) => {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
return r[0].checked && !r[0].disabled ? (
|
|
3815
3815
|
// @ts-expect-error expected to work in the browser
|
|
3816
|
-
r[0].attributes && !
|
|
3816
|
+
r[0].attributes && !me(r[0].attributes.value) ? me(r[0].value) || r[0].value === "" ? qr : { value: r[0].value, isValid: !0 } : qr
|
|
3817
3817
|
) : Wr;
|
|
3818
3818
|
}
|
|
3819
3819
|
return Wr;
|
|
3820
|
-
}, Js = (r, { valueAsNumber: e, valueAsDate: t, setValueAs: s }) =>
|
|
3820
|
+
}, Js = (r, { valueAsNumber: e, valueAsDate: t, setValueAs: s }) => me(r) ? r : e ? r === "" ? NaN : r && +r : t && Ie(r) ? new Date(r) : s ? s(r) : r;
|
|
3821
3821
|
const Gr = {
|
|
3822
3822
|
isValid: !1,
|
|
3823
3823
|
value: null
|
|
@@ -3828,7 +3828,7 @@ var Qs = (r) => Array.isArray(r) ? r.reduce((e, t) => t && t.checked && !t.disab
|
|
|
3828
3828
|
} : e, Gr) : Gr;
|
|
3829
3829
|
function Yr(r) {
|
|
3830
3830
|
const e = r.ref;
|
|
3831
|
-
return Sr(e) ? e.files : Tr(e) ? Qs(r.refs).value : Ys(e) ? [...e.selectedOptions].map(({ value: t }) => t) : vt(e) ? Ks(r.refs).value : Js(
|
|
3831
|
+
return Sr(e) ? e.files : Tr(e) ? Qs(r.refs).value : Ys(e) ? [...e.selectedOptions].map(({ value: t }) => t) : vt(e) ? Ks(r.refs).value : Js(me(e.value) ? r.ref.value : e.value, r);
|
|
3832
3832
|
}
|
|
3833
3833
|
var Xa = (r, e, t, s) => {
|
|
3834
3834
|
const n = {};
|
|
@@ -3842,15 +3842,15 @@ var Xa = (r, e, t, s) => {
|
|
|
3842
3842
|
fields: n,
|
|
3843
3843
|
shouldUseNativeValidation: s
|
|
3844
3844
|
};
|
|
3845
|
-
}, zt = (r) => r instanceof RegExp, xt = (r) =>
|
|
3846
|
-
isOnSubmit: !r || r ===
|
|
3847
|
-
isOnBlur: r ===
|
|
3848
|
-
isOnChange: r ===
|
|
3849
|
-
isOnAll: r ===
|
|
3850
|
-
isOnTouch: r ===
|
|
3845
|
+
}, zt = (r) => r instanceof RegExp, xt = (r) => me(r) ? r : zt(r) ? r.source : pe(r) ? zt(r.value) ? r.value.source : r.value : r, Hr = (r) => ({
|
|
3846
|
+
isOnSubmit: !r || r === Oe.onSubmit,
|
|
3847
|
+
isOnBlur: r === Oe.onBlur,
|
|
3848
|
+
isOnChange: r === Oe.onChange,
|
|
3849
|
+
isOnAll: r === Oe.all,
|
|
3850
|
+
isOnTouch: r === Oe.onTouched
|
|
3851
3851
|
});
|
|
3852
3852
|
const Xr = "AsyncFunction";
|
|
3853
|
-
var Ka = (r) => !!r && !!r.validate && !!(
|
|
3853
|
+
var Ka = (r) => !!r && !!r.validate && !!(Re(r.validate) && r.validate.constructor.name === Xr || pe(r.validate) && Object.values(r.validate).find((e) => e.constructor.name === Xr)), Ja = (r) => r.mount && (r.required || r.min || r.max || r.maxLength || r.minLength || r.pattern || r.validate), Kr = (r, e, t) => !t && (e.watchAll || e.watch.has(r) || [...e.watch].some((s) => r.startsWith(s) && /^\.\w+/.test(r.slice(s.length))));
|
|
3854
3854
|
const yt = (r, e, t, s) => {
|
|
3855
3855
|
for (const n of t || Object.keys(r)) {
|
|
3856
3856
|
const a = V(r, n);
|
|
@@ -3863,7 +3863,7 @@ const yt = (r, e, t, s) => {
|
|
|
3863
3863
|
return !0;
|
|
3864
3864
|
if (yt(l, e))
|
|
3865
3865
|
break;
|
|
3866
|
-
} else if (
|
|
3866
|
+
} else if (pe(l) && yt(l, e))
|
|
3867
3867
|
break;
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
@@ -3894,7 +3894,7 @@ function Jr(r, e, t) {
|
|
|
3894
3894
|
var Qa = (r, e, t, s) => {
|
|
3895
3895
|
t(r);
|
|
3896
3896
|
const { name: n, ...a } = r;
|
|
3897
|
-
return je(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((o) => e[o] === (!s ||
|
|
3897
|
+
return je(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((o) => e[o] === (!s || Oe.all));
|
|
3898
3898
|
}, eo = (r, e, t) => !r || !e || r === e || bt(r).some((s) => s && (t ? s === e : s.startsWith(e) || e.startsWith(s))), to = (r, e, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(e || r) : (t ? s.isOnBlur : n.isOnBlur) ? !r : (t ? s.isOnChange : n.isOnChange) ? r : !0, ro = (r, e) => !qt(V(r, e)).length && be(r, e), so = (r, e, t) => {
|
|
3899
3899
|
const s = bt(V(r, t));
|
|
3900
3900
|
return ie(s, "root", e[t]), ie(r, t, s), r;
|
|
@@ -3907,93 +3907,93 @@ function Qr(r, e, t = "validate") {
|
|
|
3907
3907
|
ref: e
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
|
-
var st = (r) =>
|
|
3910
|
+
var st = (r) => pe(r) && !zt(r) ? r : {
|
|
3911
3911
|
value: r,
|
|
3912
3912
|
message: ""
|
|
3913
3913
|
}, es = async (r, e, t, s, n, a) => {
|
|
3914
|
-
const { ref: o, refs: l, required: c, maxLength: u, minLength: d, min: p, max: m, pattern: y, validate: x, name: w, valueAsNumber:
|
|
3914
|
+
const { ref: o, refs: l, required: c, maxLength: u, minLength: d, min: p, max: m, pattern: y, validate: x, name: w, valueAsNumber: N, mount: v } = r._f, g = V(t, w);
|
|
3915
3915
|
if (!v || e.has(w))
|
|
3916
3916
|
return {};
|
|
3917
|
-
const S = l ? l[0] : o,
|
|
3918
|
-
n && S.reportValidity && (S.setCustomValidity(Te(
|
|
3919
|
-
}, F = {},
|
|
3920
|
-
const A =
|
|
3917
|
+
const S = l ? l[0] : o, $ = (M) => {
|
|
3918
|
+
n && S.reportValidity && (S.setCustomValidity(Te(M) ? "" : M || ""), S.reportValidity());
|
|
3919
|
+
}, F = {}, B = Tr(o), Z = vt(o), _ = B || Z, O = (N || Sr(o)) && me(o.value) && me(g) || Lt(o) && o.value === "" || g === "" || Array.isArray(g) && !g.length, J = Gs.bind(null, w, s, F), U = (M, Y, K, q = Pe.maxLength, H = Pe.minLength) => {
|
|
3920
|
+
const A = M ? Y : K;
|
|
3921
3921
|
F[w] = {
|
|
3922
|
-
type:
|
|
3922
|
+
type: M ? q : H,
|
|
3923
3923
|
message: A,
|
|
3924
3924
|
ref: o,
|
|
3925
|
-
...J(
|
|
3925
|
+
...J(M ? q : H, A)
|
|
3926
3926
|
};
|
|
3927
3927
|
};
|
|
3928
|
-
if (a ? !Array.isArray(g) || !g.length : c && (!
|
|
3929
|
-
const { value:
|
|
3930
|
-
if (
|
|
3928
|
+
if (a ? !Array.isArray(g) || !g.length : c && (!_ && (O || Ee(g)) || Te(g) && !g || Z && !Ks(l).isValid || B && !Qs(l).isValid)) {
|
|
3929
|
+
const { value: M, message: Y } = Vt(c) ? { value: !!c, message: c } : st(c);
|
|
3930
|
+
if (M && (F[w] = {
|
|
3931
3931
|
type: Pe.required,
|
|
3932
3932
|
message: Y,
|
|
3933
3933
|
ref: S,
|
|
3934
3934
|
...J(Pe.required, Y)
|
|
3935
3935
|
}, !s))
|
|
3936
|
-
return
|
|
3936
|
+
return $(Y), F;
|
|
3937
3937
|
}
|
|
3938
|
-
if (!
|
|
3939
|
-
let
|
|
3940
|
-
const K = st(m),
|
|
3938
|
+
if (!O && (!Ee(p) || !Ee(m))) {
|
|
3939
|
+
let M, Y;
|
|
3940
|
+
const K = st(m), q = st(p);
|
|
3941
3941
|
if (!Ee(g) && !isNaN(g)) {
|
|
3942
3942
|
const H = o.valueAsNumber || g && +g;
|
|
3943
|
-
Ee(K.value) || (
|
|
3943
|
+
Ee(K.value) || (M = H > K.value), Ee(q.value) || (Y = H < q.value);
|
|
3944
3944
|
} else {
|
|
3945
|
-
const H = o.valueAsDate || new Date(g), A = (j) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + j), h = o.type == "time",
|
|
3946
|
-
Ie(K.value) && g && (
|
|
3945
|
+
const H = o.valueAsDate || new Date(g), A = (j) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + j), h = o.type == "time", W = o.type == "week";
|
|
3946
|
+
Ie(K.value) && g && (M = h ? A(g) > A(K.value) : W ? g > K.value : H > new Date(K.value)), Ie(q.value) && g && (Y = h ? A(g) < A(q.value) : W ? g < q.value : H < new Date(q.value));
|
|
3947
3947
|
}
|
|
3948
|
-
if ((
|
|
3949
|
-
return
|
|
3948
|
+
if ((M || Y) && (U(!!M, K.message, q.message, Pe.max, Pe.min), !s))
|
|
3949
|
+
return $(F[w].message), F;
|
|
3950
3950
|
}
|
|
3951
|
-
if ((u || d) && !
|
|
3952
|
-
const
|
|
3953
|
-
if ((K ||
|
|
3954
|
-
return
|
|
3951
|
+
if ((u || d) && !O && (Ie(g) || a && Array.isArray(g))) {
|
|
3952
|
+
const M = st(u), Y = st(d), K = !Ee(M.value) && g.length > +M.value, q = !Ee(Y.value) && g.length < +Y.value;
|
|
3953
|
+
if ((K || q) && (U(K, M.message, Y.message), !s))
|
|
3954
|
+
return $(F[w].message), F;
|
|
3955
3955
|
}
|
|
3956
|
-
if (y && !
|
|
3957
|
-
const { value:
|
|
3958
|
-
if (zt(
|
|
3956
|
+
if (y && !O && Ie(g)) {
|
|
3957
|
+
const { value: M, message: Y } = st(y);
|
|
3958
|
+
if (zt(M) && !g.match(M) && (F[w] = {
|
|
3959
3959
|
type: Pe.pattern,
|
|
3960
3960
|
message: Y,
|
|
3961
3961
|
ref: o,
|
|
3962
3962
|
...J(Pe.pattern, Y)
|
|
3963
3963
|
}, !s))
|
|
3964
|
-
return
|
|
3964
|
+
return $(Y), F;
|
|
3965
3965
|
}
|
|
3966
3966
|
if (x) {
|
|
3967
|
-
if (
|
|
3968
|
-
const
|
|
3967
|
+
if (Re(x)) {
|
|
3968
|
+
const M = await x(g, t), Y = Qr(M, S);
|
|
3969
3969
|
if (Y && (F[w] = {
|
|
3970
3970
|
...Y,
|
|
3971
3971
|
...J(Pe.validate, Y.message)
|
|
3972
3972
|
}, !s))
|
|
3973
|
-
return
|
|
3974
|
-
} else if (
|
|
3975
|
-
let
|
|
3973
|
+
return $(Y.message), F;
|
|
3974
|
+
} else if (pe(x)) {
|
|
3975
|
+
let M = {};
|
|
3976
3976
|
for (const Y in x) {
|
|
3977
|
-
if (!je(
|
|
3977
|
+
if (!je(M) && !s)
|
|
3978
3978
|
break;
|
|
3979
3979
|
const K = Qr(await x[Y](g, t), S, Y);
|
|
3980
|
-
K && (
|
|
3980
|
+
K && (M = {
|
|
3981
3981
|
...K,
|
|
3982
3982
|
...J(Y, K.message)
|
|
3983
|
-
},
|
|
3983
|
+
}, $(K.message), s && (F[w] = M));
|
|
3984
3984
|
}
|
|
3985
|
-
if (!je(
|
|
3985
|
+
if (!je(M) && (F[w] = {
|
|
3986
3986
|
ref: S,
|
|
3987
|
-
|
|
3987
|
+
...M
|
|
3988
3988
|
}, !s))
|
|
3989
3989
|
return F;
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
|
-
return
|
|
3992
|
+
return $(!0), F;
|
|
3993
3993
|
};
|
|
3994
3994
|
const no = {
|
|
3995
|
-
mode:
|
|
3996
|
-
reValidateMode:
|
|
3995
|
+
mode: Oe.onSubmit,
|
|
3996
|
+
reValidateMode: Oe.onChange,
|
|
3997
3997
|
shouldFocusError: !0
|
|
3998
3998
|
};
|
|
3999
3999
|
function ao(r = {}) {
|
|
@@ -4004,7 +4004,7 @@ function ao(r = {}) {
|
|
|
4004
4004
|
submitCount: 0,
|
|
4005
4005
|
isDirty: !1,
|
|
4006
4006
|
isReady: !1,
|
|
4007
|
-
isLoading:
|
|
4007
|
+
isLoading: Re(e.defaultValues),
|
|
4008
4008
|
isValidating: !1,
|
|
4009
4009
|
isSubmitted: !1,
|
|
4010
4010
|
isSubmitting: !1,
|
|
@@ -4017,7 +4017,7 @@ function ao(r = {}) {
|
|
|
4017
4017
|
disabled: e.disabled || !1
|
|
4018
4018
|
};
|
|
4019
4019
|
const s = {};
|
|
4020
|
-
let n =
|
|
4020
|
+
let n = pe(e.defaultValues) || pe(e.values) ? we(e.defaultValues || e.values) || {} : {}, a = e.shouldUnregister ? {} : we(n), o = {
|
|
4021
4021
|
action: !1,
|
|
4022
4022
|
mount: !1,
|
|
4023
4023
|
watch: !1
|
|
@@ -4043,16 +4043,16 @@ function ao(r = {}) {
|
|
|
4043
4043
|
const m = {
|
|
4044
4044
|
array: Zr(),
|
|
4045
4045
|
state: Zr()
|
|
4046
|
-
}, y = e.criteriaMode ===
|
|
4046
|
+
}, y = e.criteriaMode === Oe.all, x = (f) => (b) => {
|
|
4047
4047
|
clearTimeout(u), u = setTimeout(f, b);
|
|
4048
4048
|
}, w = async (f) => {
|
|
4049
4049
|
if (!e.disabled && (d.isValid || p.isValid || f)) {
|
|
4050
|
-
const b = e.resolver ? je((await
|
|
4050
|
+
const b = e.resolver ? je((await Z()).errors) : await O(s, !0);
|
|
4051
4051
|
b !== t.isValid && m.state.next({
|
|
4052
4052
|
isValid: b
|
|
4053
4053
|
});
|
|
4054
4054
|
}
|
|
4055
|
-
},
|
|
4055
|
+
}, N = (f, b) => {
|
|
4056
4056
|
!e.disabled && (d.isValidating || d.validatingFields || p.isValidating || p.validatingFields) && ((f || Array.from(l.mount)).forEach((E) => {
|
|
4057
4057
|
E && (b ? ie(t.validatingFields, E, b) : be(t.validatingFields, E));
|
|
4058
4058
|
}), m.state.next({
|
|
@@ -4075,7 +4075,7 @@ function ao(r = {}) {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
(d.dirtyFields || p.dirtyFields) && (t.dirtyFields = pt(n, a)), m.state.next({
|
|
4077
4077
|
name: f,
|
|
4078
|
-
isDirty:
|
|
4078
|
+
isDirty: U(f, b),
|
|
4079
4079
|
dirtyFields: t.dirtyFields,
|
|
4080
4080
|
errors: t.errors,
|
|
4081
4081
|
isValid: t.isValid
|
|
@@ -4091,11 +4091,11 @@ function ao(r = {}) {
|
|
|
4091
4091
|
errors: t.errors,
|
|
4092
4092
|
isValid: !1
|
|
4093
4093
|
});
|
|
4094
|
-
},
|
|
4094
|
+
}, $ = (f, b, E, L) => {
|
|
4095
4095
|
const R = V(s, f);
|
|
4096
4096
|
if (R) {
|
|
4097
|
-
const T = V(a, f,
|
|
4098
|
-
|
|
4097
|
+
const T = V(a, f, me(E) ? V(n, f) : E);
|
|
4098
|
+
me(T) || L && L.defaultChecked || b ? ie(a, f, b ? T : Yr(R._f)) : K(f, T), o.mount && w();
|
|
4099
4099
|
}
|
|
4100
4100
|
}, F = (f, b, E, L, R) => {
|
|
4101
4101
|
let T = !1, X = !1;
|
|
@@ -4104,7 +4104,7 @@ function ao(r = {}) {
|
|
|
4104
4104
|
};
|
|
4105
4105
|
if (!e.disabled) {
|
|
4106
4106
|
if (!E || L) {
|
|
4107
|
-
(d.isDirty || p.isDirty) && (X = t.isDirty, t.isDirty = le.isDirty =
|
|
4107
|
+
(d.isDirty || p.isDirty) && (X = t.isDirty, t.isDirty = le.isDirty = U(), T = X !== le.isDirty);
|
|
4108
4108
|
const ce = Ye(V(n, f), b);
|
|
4109
4109
|
X = !!V(t.dirtyFields, f), ce ? be(t.dirtyFields, f) : ie(t.dirtyFields, f, !0), le.dirtyFields = t.dirtyFields, T = T || (d.dirtyFields || p.dirtyFields) && X !== !ce;
|
|
4110
4110
|
}
|
|
@@ -4115,7 +4115,7 @@ function ao(r = {}) {
|
|
|
4115
4115
|
T && R && m.state.next(le);
|
|
4116
4116
|
}
|
|
4117
4117
|
return T ? le : {};
|
|
4118
|
-
},
|
|
4118
|
+
}, B = (f, b, E, L) => {
|
|
4119
4119
|
const R = V(t.errors, f), T = (d.isValid || p.isValid) && Te(b) && t.isValid !== b;
|
|
4120
4120
|
if (e.delayError && E ? (c = x(() => g(f, E)), c(e.delayError)) : (clearTimeout(u), c = null, E ? ie(t.errors, f, E) : be(t.errors, f)), (E ? !Ye(R, E) : R) || !je(L) || T) {
|
|
4121
4121
|
const X = {
|
|
@@ -4129,12 +4129,12 @@ function ao(r = {}) {
|
|
|
4129
4129
|
...X
|
|
4130
4130
|
}, m.state.next(X);
|
|
4131
4131
|
}
|
|
4132
|
-
},
|
|
4133
|
-
|
|
4132
|
+
}, Z = async (f) => {
|
|
4133
|
+
N(f, !0);
|
|
4134
4134
|
const b = await e.resolver(a, e.context, Xa(f || l.mount, s, e.criteriaMode, e.shouldUseNativeValidation));
|
|
4135
|
-
return
|
|
4136
|
-
},
|
|
4137
|
-
const { errors: b } = await
|
|
4135
|
+
return N(f), b;
|
|
4136
|
+
}, _ = async (f) => {
|
|
4137
|
+
const { errors: b } = await Z(f);
|
|
4138
4138
|
if (f)
|
|
4139
4139
|
for (const E of f) {
|
|
4140
4140
|
const L = V(b, E);
|
|
@@ -4143,7 +4143,7 @@ function ao(r = {}) {
|
|
|
4143
4143
|
else
|
|
4144
4144
|
t.errors = b;
|
|
4145
4145
|
return b;
|
|
4146
|
-
},
|
|
4146
|
+
}, O = async (f, b, E = {
|
|
4147
4147
|
valid: !0
|
|
4148
4148
|
}) => {
|
|
4149
4149
|
for (const L in f) {
|
|
@@ -4152,13 +4152,13 @@ function ao(r = {}) {
|
|
|
4152
4152
|
const { _f: T, ...X } = R;
|
|
4153
4153
|
if (T) {
|
|
4154
4154
|
const le = l.array.has(T.name), ce = R._f && Ka(R._f);
|
|
4155
|
-
ce && d.validatingFields &&
|
|
4156
|
-
const
|
|
4157
|
-
if (ce && d.validatingFields &&
|
|
4155
|
+
ce && d.validatingFields && N([L], !0);
|
|
4156
|
+
const Ae = await es(R, l.disabled, a, y, e.shouldUseNativeValidation && !b, le);
|
|
4157
|
+
if (ce && d.validatingFields && N([L]), Ae[T.name] && (E.valid = !1, b))
|
|
4158
4158
|
break;
|
|
4159
|
-
!b && (V(
|
|
4159
|
+
!b && (V(Ae, T.name) ? le ? so(t.errors, Ae, T.name) : ie(t.errors, T.name, Ae[T.name]) : be(t.errors, T.name));
|
|
4160
4160
|
}
|
|
4161
|
-
!je(X) && await
|
|
4161
|
+
!je(X) && await O(X, b, E);
|
|
4162
4162
|
}
|
|
4163
4163
|
}
|
|
4164
4164
|
return E.valid;
|
|
@@ -4168,8 +4168,8 @@ function ao(r = {}) {
|
|
|
4168
4168
|
b && (b._f.refs ? b._f.refs.every((E) => !er(E)) : !er(b._f.ref)) && se(f);
|
|
4169
4169
|
}
|
|
4170
4170
|
l.unMount = /* @__PURE__ */ new Set();
|
|
4171
|
-
},
|
|
4172
|
-
...o.mount ? a :
|
|
4171
|
+
}, U = (f, b) => !e.disabled && (f && b && ie(a, f, b), !Ye(j(), n)), M = (f, b, E) => Ws(f, l, {
|
|
4172
|
+
...o.mount ? a : me(b) ? n : Ie(f) ? { [f]: b } : b
|
|
4173
4173
|
}, E, b), Y = (f) => qt(V(o.mount ? a : n, f, e.shouldUnregister ? V(n, f, []) : [])), K = (f, b, E = {}) => {
|
|
4174
4174
|
const L = V(s, f);
|
|
4175
4175
|
let R = b;
|
|
@@ -4182,13 +4182,13 @@ function ao(r = {}) {
|
|
|
4182
4182
|
values: we(a)
|
|
4183
4183
|
})));
|
|
4184
4184
|
}
|
|
4185
|
-
(E.shouldDirty || E.shouldTouch) && F(f, R, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate &&
|
|
4186
|
-
},
|
|
4185
|
+
(E.shouldDirty || E.shouldTouch) && F(f, R, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && W(f);
|
|
4186
|
+
}, q = (f, b, E) => {
|
|
4187
4187
|
for (const L in b) {
|
|
4188
4188
|
if (!b.hasOwnProperty(L))
|
|
4189
4189
|
return;
|
|
4190
4190
|
const R = b[L], T = `${f}.${L}`, X = V(s, T);
|
|
4191
|
-
(l.array.has(f) ||
|
|
4191
|
+
(l.array.has(f) || pe(R) || X && !X._f) && !Ke(R) ? q(T, R, E) : K(T, R, E);
|
|
4192
4192
|
}
|
|
4193
4193
|
}, H = (f, b, E = {}) => {
|
|
4194
4194
|
const L = V(s, f), R = l.array.has(f), T = we(b);
|
|
@@ -4198,8 +4198,8 @@ function ao(r = {}) {
|
|
|
4198
4198
|
}), (d.isDirty || d.dirtyFields || p.isDirty || p.dirtyFields) && E.shouldDirty && m.state.next({
|
|
4199
4199
|
name: f,
|
|
4200
4200
|
dirtyFields: pt(n, a),
|
|
4201
|
-
isDirty:
|
|
4202
|
-
})) : L && !L._f && !Ee(T) ?
|
|
4201
|
+
isDirty: U(f, T)
|
|
4202
|
+
})) : L && !L._f && !Ee(T) ? q(f, T, E) : K(f, T, E), Kr(f, l) && m.state.next({ ...t }), m.state.next({
|
|
4203
4203
|
name: o.mount ? f : void 0,
|
|
4204
4204
|
values: we(a)
|
|
4205
4205
|
});
|
|
@@ -4211,7 +4211,7 @@ function ao(r = {}) {
|
|
|
4211
4211
|
L = Number.isNaN(ce) || Ke(ce) && isNaN(ce.getTime()) || Ye(ce, V(a, E, ce));
|
|
4212
4212
|
}, X = Hr(e.mode), le = Hr(e.reValidateMode);
|
|
4213
4213
|
if (R) {
|
|
4214
|
-
let ce,
|
|
4214
|
+
let ce, Ae;
|
|
4215
4215
|
const jt = b.type ? Yr(R._f) : Ps(f), We = f.type === It.BLUR || f.type === It.FOCUS_OUT, Fn = !Ja(R._f) && !e.resolver && !V(t.errors, E) && !R._f.deps || to(We, V(t.touchedFields, E), t.isSubmitted, le, X), Xt = Kr(E, l, We);
|
|
4216
4216
|
ie(a, E, jt), We ? (R._f.onBlur && R._f.onBlur(f), c && c(0)) : R._f.onChange && R._f.onChange(f);
|
|
4217
4217
|
const Kt = F(E, jt, We), Sn = !je(Kt) || Xt;
|
|
@@ -4222,28 +4222,28 @@ function ao(r = {}) {
|
|
|
4222
4222
|
}), Fn)
|
|
4223
4223
|
return (d.isValid || p.isValid) && (e.mode === "onBlur" ? We && w() : We || w()), Sn && m.state.next({ name: E, ...Xt ? {} : Kt });
|
|
4224
4224
|
if (!We && Xt && m.state.next({ ...t }), e.resolver) {
|
|
4225
|
-
const { errors: Rr } = await
|
|
4225
|
+
const { errors: Rr } = await Z([E]);
|
|
4226
4226
|
if (T(jt), L) {
|
|
4227
4227
|
const Tn = Jr(t.errors, s, E), Vr = Jr(Rr, s, Tn.name || E);
|
|
4228
|
-
ce = Vr.error, E = Vr.name,
|
|
4228
|
+
ce = Vr.error, E = Vr.name, Ae = je(Rr);
|
|
4229
4229
|
}
|
|
4230
4230
|
} else
|
|
4231
|
-
|
|
4232
|
-
L && (R._f.deps &&
|
|
4231
|
+
N([E], !0), ce = (await es(R, l.disabled, a, y, e.shouldUseNativeValidation))[E], N([E]), T(jt), L && (ce ? Ae = !1 : (d.isValid || p.isValid) && (Ae = await O(s, !0)));
|
|
4232
|
+
L && (R._f.deps && W(R._f.deps), B(E, Ae, ce, Kt));
|
|
4233
4233
|
}
|
|
4234
4234
|
}, h = (f, b) => {
|
|
4235
4235
|
if (V(t.errors, b) && f.focus)
|
|
4236
4236
|
return f.focus(), 1;
|
|
4237
|
-
},
|
|
4237
|
+
}, W = async (f, b = {}) => {
|
|
4238
4238
|
let E, L;
|
|
4239
4239
|
const R = bt(f);
|
|
4240
4240
|
if (e.resolver) {
|
|
4241
|
-
const T = await
|
|
4241
|
+
const T = await _(me(f) ? f : R);
|
|
4242
4242
|
E = je(T), L = f ? !R.some((X) => V(T, X)) : E;
|
|
4243
4243
|
} else f ? (L = (await Promise.all(R.map(async (T) => {
|
|
4244
4244
|
const X = V(s, T);
|
|
4245
|
-
return await
|
|
4246
|
-
}))).every(Boolean), !(!L && !t.isValid) && w()) : L = E = await
|
|
4245
|
+
return await O(X && X._f ? { [T]: X } : X);
|
|
4246
|
+
}))).every(Boolean), !(!L && !t.isValid) && w()) : L = E = await O(s);
|
|
4247
4247
|
return m.state.next({
|
|
4248
4248
|
...!Ie(f) || (d.isValid || p.isValid) && E !== t.isValid ? {} : { name: f },
|
|
4249
4249
|
...e.resolver || !f ? { isValid: E } : {},
|
|
@@ -4253,7 +4253,7 @@ function ao(r = {}) {
|
|
|
4253
4253
|
const b = {
|
|
4254
4254
|
...o.mount ? a : n
|
|
4255
4255
|
};
|
|
4256
|
-
return
|
|
4256
|
+
return me(f) ? b : Ie(f) ? V(b, f) : f.map((E) => V(b, E));
|
|
4257
4257
|
}, k = (f, b) => ({
|
|
4258
4258
|
invalid: !!V((b || t).errors, f),
|
|
4259
4259
|
isDirty: !!V((b || t).dirtyFields, f),
|
|
@@ -4275,9 +4275,9 @@ function ao(r = {}) {
|
|
|
4275
4275
|
errors: t.errors,
|
|
4276
4276
|
isValid: !1
|
|
4277
4277
|
}), E && E.shouldFocus && L && L.focus && L.focus();
|
|
4278
|
-
}, Q = (f, b) =>
|
|
4279
|
-
next: (E) => f(
|
|
4280
|
-
}) :
|
|
4278
|
+
}, Q = (f, b) => Re(f) ? m.state.subscribe({
|
|
4279
|
+
next: (E) => f(M(void 0, b), E)
|
|
4280
|
+
}) : M(f, b, !0), re = (f) => m.state.subscribe({
|
|
4281
4281
|
next: (b) => {
|
|
4282
4282
|
eo(f.name, b.name, f.exact) && Qa(b, f.formState || d, Yt, f.reRenderRoot) && f.callback({
|
|
4283
4283
|
values: { ...a },
|
|
@@ -4298,11 +4298,11 @@ function ao(r = {}) {
|
|
|
4298
4298
|
values: we(a)
|
|
4299
4299
|
}), m.state.next({
|
|
4300
4300
|
...t,
|
|
4301
|
-
...b.keepDirty ? { isDirty:
|
|
4301
|
+
...b.keepDirty ? { isDirty: U() } : {}
|
|
4302
4302
|
}), !b.keepIsValid && w();
|
|
4303
4303
|
}, oe = ({ disabled: f, name: b }) => {
|
|
4304
4304
|
(Te(f) && o.mount || f || l.disabled.has(b)) && (f ? l.disabled.add(b) : l.disabled.delete(b));
|
|
4305
|
-
},
|
|
4305
|
+
}, xe = (f, b = {}) => {
|
|
4306
4306
|
let E = V(s, f);
|
|
4307
4307
|
const L = Te(b.disabled) || Te(e.disabled);
|
|
4308
4308
|
return ie(s, f, {
|
|
@@ -4316,7 +4316,7 @@ function ao(r = {}) {
|
|
|
4316
4316
|
}), l.mount.add(f), E ? oe({
|
|
4317
4317
|
disabled: Te(b.disabled) ? b.disabled : e.disabled,
|
|
4318
4318
|
name: f
|
|
4319
|
-
}) :
|
|
4319
|
+
}) : $(f, !0, b.value), {
|
|
4320
4320
|
...L ? { disabled: b.disabled || e.disabled } : {},
|
|
4321
4321
|
...e.progressive ? {
|
|
4322
4322
|
required: !!b.required,
|
|
@@ -4331,8 +4331,8 @@ function ao(r = {}) {
|
|
|
4331
4331
|
onBlur: A,
|
|
4332
4332
|
ref: (R) => {
|
|
4333
4333
|
if (R) {
|
|
4334
|
-
|
|
4335
|
-
const T =
|
|
4334
|
+
xe(f, b), E = V(s, f);
|
|
4335
|
+
const T = me(R.value) && R.querySelectorAll && R.querySelectorAll("input,select,textarea")[0] || R, X = Ga(T), le = E._f.refs || [];
|
|
4336
4336
|
if (X ? le.find((ce) => ce === T) : T === E._f.ref)
|
|
4337
4337
|
return;
|
|
4338
4338
|
ie(s, f, {
|
|
@@ -4347,7 +4347,7 @@ function ao(r = {}) {
|
|
|
4347
4347
|
ref: { type: T.type, name: f }
|
|
4348
4348
|
} : { ref: T }
|
|
4349
4349
|
}
|
|
4350
|
-
}),
|
|
4350
|
+
}), $(f, !1, void 0, T);
|
|
4351
4351
|
} else
|
|
4352
4352
|
E = V(s, f, {}), E._f && (E._f.mount = !1), (e.shouldUnregister || b.shouldUnregister) && !(zs(l.array, f) && o.action) && l.unMount.add(f);
|
|
4353
4353
|
}
|
|
@@ -4366,10 +4366,10 @@ function ao(r = {}) {
|
|
|
4366
4366
|
if (m.state.next({
|
|
4367
4367
|
isSubmitting: !0
|
|
4368
4368
|
}), e.resolver) {
|
|
4369
|
-
const { errors: T, values: X } = await
|
|
4369
|
+
const { errors: T, values: X } = await Z();
|
|
4370
4370
|
t.errors = T, R = X;
|
|
4371
4371
|
} else
|
|
4372
|
-
await
|
|
4372
|
+
await O(s);
|
|
4373
4373
|
if (l.disabled.size)
|
|
4374
4374
|
for (const T of l.disabled)
|
|
4375
4375
|
ie(R, T, void 0);
|
|
@@ -4392,9 +4392,9 @@ function ao(r = {}) {
|
|
|
4392
4392
|
errors: t.errors
|
|
4393
4393
|
}), L)
|
|
4394
4394
|
throw L;
|
|
4395
|
-
},
|
|
4396
|
-
V(s, f) && (
|
|
4397
|
-
},
|
|
4395
|
+
}, $e = (f, b = {}) => {
|
|
4396
|
+
V(s, f) && (me(b.defaultValue) ? H(f, we(V(n, f))) : (H(f, b.defaultValue), ie(n, f, we(b.defaultValue))), b.keepTouched || be(t.touchedFields, f), b.keepDirty || (be(t.dirtyFields, f), t.isDirty = b.defaultValue ? U(f, we(V(n, f))) : U()), b.keepError || (be(t.errors, f), d.isValid && w()), m.state.next({ ...t }));
|
|
4397
|
+
}, he = (f, b = {}) => {
|
|
4398
4398
|
const E = f ? we(f) : n, L = we(E), R = je(f), T = R ? n : L;
|
|
4399
4399
|
if (b.keepDefaultValues || (n = E), !b.keepValues) {
|
|
4400
4400
|
if (b.keepDirtyValues) {
|
|
@@ -4405,15 +4405,15 @@ function ao(r = {}) {
|
|
|
4405
4405
|
for (const le of Array.from(X))
|
|
4406
4406
|
V(t.dirtyFields, le) ? ie(T, le, V(a, le)) : H(le, V(T, le));
|
|
4407
4407
|
} else {
|
|
4408
|
-
if (Er &&
|
|
4408
|
+
if (Er && me(f))
|
|
4409
4409
|
for (const X of l.mount) {
|
|
4410
4410
|
const le = V(s, X);
|
|
4411
4411
|
if (le && le._f) {
|
|
4412
4412
|
const ce = Array.isArray(le._f.refs) ? le._f.refs[0] : le._f.ref;
|
|
4413
4413
|
if (Lt(ce)) {
|
|
4414
|
-
const
|
|
4415
|
-
if (
|
|
4416
|
-
|
|
4414
|
+
const Ae = ce.closest("form");
|
|
4415
|
+
if (Ae) {
|
|
4416
|
+
Ae.reset();
|
|
4417
4417
|
break;
|
|
4418
4418
|
}
|
|
4419
4419
|
}
|
|
@@ -4446,11 +4446,11 @@ function ao(r = {}) {
|
|
|
4446
4446
|
isSubmitSuccessful: b.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
4447
4447
|
isSubmitting: !1
|
|
4448
4448
|
});
|
|
4449
|
-
}, Me = (f, b) =>
|
|
4449
|
+
}, Me = (f, b) => he(Re(f) ? f(a) : f, b), ut = (f, b = {}) => {
|
|
4450
4450
|
const E = V(s, f), L = E && E._f;
|
|
4451
4451
|
if (L) {
|
|
4452
4452
|
const R = L.refs ? L.refs[0] : L.ref;
|
|
4453
|
-
R.focus && (R.focus(), b.shouldSelect &&
|
|
4453
|
+
R.focus && (R.focus(), b.shouldSelect && Re(R.select) && R.select());
|
|
4454
4454
|
}
|
|
4455
4455
|
}, Yt = (f) => {
|
|
4456
4456
|
t = {
|
|
@@ -4459,22 +4459,22 @@ function ao(r = {}) {
|
|
|
4459
4459
|
};
|
|
4460
4460
|
}, dt = {
|
|
4461
4461
|
control: {
|
|
4462
|
-
register:
|
|
4462
|
+
register: xe,
|
|
4463
4463
|
unregister: se,
|
|
4464
4464
|
getFieldState: k,
|
|
4465
4465
|
handleSubmit: fe,
|
|
4466
4466
|
setError: D,
|
|
4467
4467
|
_subscribe: re,
|
|
4468
|
-
_runSchema:
|
|
4469
|
-
_getWatch:
|
|
4470
|
-
_getDirty:
|
|
4468
|
+
_runSchema: Z,
|
|
4469
|
+
_getWatch: M,
|
|
4470
|
+
_getDirty: U,
|
|
4471
4471
|
_setValid: w,
|
|
4472
4472
|
_setFieldArray: v,
|
|
4473
4473
|
_setDisabledField: oe,
|
|
4474
4474
|
_setErrors: S,
|
|
4475
4475
|
_getFieldArray: Y,
|
|
4476
|
-
_reset:
|
|
4477
|
-
_resetDefaultValues: () =>
|
|
4476
|
+
_reset: he,
|
|
4477
|
+
_resetDefaultValues: () => Re(e.defaultValues) && e.defaultValues().then((f) => {
|
|
4478
4478
|
Me(f, e.resetOptions), m.state.next({
|
|
4479
4479
|
isLoading: !1
|
|
4480
4480
|
});
|
|
@@ -4518,14 +4518,14 @@ function ao(r = {}) {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
},
|
|
4520
4520
|
subscribe: ue,
|
|
4521
|
-
trigger:
|
|
4522
|
-
register:
|
|
4521
|
+
trigger: W,
|
|
4522
|
+
register: xe,
|
|
4523
4523
|
handleSubmit: fe,
|
|
4524
4524
|
watch: Q,
|
|
4525
4525
|
setValue: H,
|
|
4526
4526
|
getValues: j,
|
|
4527
4527
|
reset: Me,
|
|
4528
|
-
resetField:
|
|
4528
|
+
resetField: $e,
|
|
4529
4529
|
clearErrors: C,
|
|
4530
4530
|
unregister: se,
|
|
4531
4531
|
setError: D,
|
|
@@ -4541,7 +4541,7 @@ function oo(r = {}) {
|
|
|
4541
4541
|
const e = ne.useRef(void 0), t = ne.useRef(void 0), [s, n] = ne.useState({
|
|
4542
4542
|
isDirty: !1,
|
|
4543
4543
|
isValidating: !1,
|
|
4544
|
-
isLoading:
|
|
4544
|
+
isLoading: Re(r.defaultValues),
|
|
4545
4545
|
isSubmitted: !1,
|
|
4546
4546
|
isSubmitting: !1,
|
|
4547
4547
|
isSubmitSuccessful: !1,
|
|
@@ -4553,12 +4553,12 @@ function oo(r = {}) {
|
|
|
4553
4553
|
errors: r.errors || {},
|
|
4554
4554
|
disabled: r.disabled || !1,
|
|
4555
4555
|
isReady: !1,
|
|
4556
|
-
defaultValues:
|
|
4556
|
+
defaultValues: Re(r.defaultValues) ? void 0 : r.defaultValues
|
|
4557
4557
|
});
|
|
4558
4558
|
e.current || (e.current = {
|
|
4559
4559
|
...r.formControl ? r.formControl : ao(r),
|
|
4560
4560
|
formState: s
|
|
4561
|
-
}, r.formControl && r.defaultValues && !
|
|
4561
|
+
}, r.formControl && r.defaultValues && !Re(r.defaultValues) && r.formControl.reset(r.defaultValues, r.resetOptions));
|
|
4562
4562
|
const a = e.current.control;
|
|
4563
4563
|
return a._options = r, _r(() => {
|
|
4564
4564
|
const o = a._subscribe({
|
|
@@ -4609,7 +4609,7 @@ function ts(r, e, t, s, n, a, o) {
|
|
|
4609
4609
|
io[t],
|
|
4610
4610
|
lo[t],
|
|
4611
4611
|
a ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]"
|
|
4612
|
-
), p =
|
|
4612
|
+
), p = Ba(c, n ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-disabled)] cursor-not-allowed opacity-60" : "bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)]", o);
|
|
4613
4613
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
4614
4614
|
/* @__PURE__ */ i.jsx(
|
|
4615
4615
|
"input",
|
|
@@ -4642,7 +4642,7 @@ function co(r) {
|
|
|
4642
4642
|
disabled: m = !1,
|
|
4643
4643
|
className: y,
|
|
4644
4644
|
onChange: x
|
|
4645
|
-
} = r, w = et(),
|
|
4645
|
+
} = r, w = et(), N = t || w;
|
|
4646
4646
|
return /* @__PURE__ */ i.jsxs(
|
|
4647
4647
|
"div",
|
|
4648
4648
|
{
|
|
@@ -4652,7 +4652,7 @@ function co(r) {
|
|
|
4652
4652
|
c && /* @__PURE__ */ i.jsx(
|
|
4653
4653
|
"label",
|
|
4654
4654
|
{
|
|
4655
|
-
htmlFor:
|
|
4655
|
+
htmlFor: N,
|
|
4656
4656
|
className: I(
|
|
4657
4657
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
4658
4658
|
en[o],
|
|
@@ -4666,14 +4666,14 @@ function co(r) {
|
|
|
4666
4666
|
// Modo “controlado” con React Hook Form
|
|
4667
4667
|
// ---------------------
|
|
4668
4668
|
/* @__PURE__ */ i.jsx(
|
|
4669
|
-
|
|
4669
|
+
Ce,
|
|
4670
4670
|
{
|
|
4671
4671
|
name: t,
|
|
4672
4672
|
control: e,
|
|
4673
4673
|
rules: s,
|
|
4674
4674
|
defaultValue: n,
|
|
4675
4675
|
render: ({ field: v, fieldState: g }) => ts(
|
|
4676
|
-
|
|
4676
|
+
N,
|
|
4677
4677
|
a,
|
|
4678
4678
|
o,
|
|
4679
4679
|
{
|
|
@@ -4692,7 +4692,7 @@ function co(r) {
|
|
|
4692
4692
|
// Modo “no controlado” (solo <input> nativo)
|
|
4693
4693
|
// ---------------------
|
|
4694
4694
|
ts(
|
|
4695
|
-
|
|
4695
|
+
N,
|
|
4696
4696
|
a,
|
|
4697
4697
|
o,
|
|
4698
4698
|
{
|
|
@@ -4881,7 +4881,7 @@ const Eo = (r, e) => {
|
|
|
4881
4881
|
t.current = r;
|
|
4882
4882
|
}, [r, e]), t.current;
|
|
4883
4883
|
}, rn = (r, e, t, s) => r.getFixedT(e, t, s), No = (r, e, t, s) => or(rn(r, e, t, s), [r, e, t, s]), Ar = (r, e = {}) => {
|
|
4884
|
-
var
|
|
4884
|
+
var $, F, B, Z;
|
|
4885
4885
|
const {
|
|
4886
4886
|
i18n: t
|
|
4887
4887
|
} = e, {
|
|
@@ -4890,10 +4890,10 @@ const Eo = (r, e) => {
|
|
|
4890
4890
|
} = vr(ko) || {}, a = t || s || wo();
|
|
4891
4891
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new jo()), !a) {
|
|
4892
4892
|
dr(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
4893
|
-
const
|
|
4894
|
-
return
|
|
4893
|
+
const _ = (J, U) => Je(U) ? U : ho(U) && Je(U.defaultValue) ? U.defaultValue : Array.isArray(J) ? J[J.length - 1] : J, O = [_, {}, !1];
|
|
4894
|
+
return O.t = _, O.i18n = {}, O.ready = !1, O;
|
|
4895
4895
|
}
|
|
4896
|
-
(
|
|
4896
|
+
($ = a.options.react) != null && $.wait && dr(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
4897
4897
|
const o = {
|
|
4898
4898
|
...yo(),
|
|
4899
4899
|
...a.options.react,
|
|
@@ -4903,34 +4903,34 @@ const Eo = (r, e) => {
|
|
|
4903
4903
|
keyPrefix: c
|
|
4904
4904
|
} = o;
|
|
4905
4905
|
let u = n || ((F = a.options) == null ? void 0 : F.defaultNS);
|
|
4906
|
-
u = Je(u) ? [u] : u || ["translation"], (
|
|
4907
|
-
const d = (a.isInitialized || a.initializedStoreOnce) && u.every((
|
|
4908
|
-
let
|
|
4909
|
-
e.lng && (
|
|
4910
|
-
const v = Eo(
|
|
4906
|
+
u = Je(u) ? [u] : u || ["translation"], (Z = (B = a.reportNamespaces).addUsedNamespaces) == null || Z.call(B, u);
|
|
4907
|
+
const d = (a.isInitialized || a.initializedStoreOnce) && u.every((_) => fo(_, a, o)), p = No(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], c), m = () => p, y = () => rn(a, e.lng || null, o.nsMode === "fallback" ? u : u[0], c), [x, w] = ae(m);
|
|
4908
|
+
let N = u.join();
|
|
4909
|
+
e.lng && (N = `${e.lng}${N}`);
|
|
4910
|
+
const v = Eo(N), g = ke(!0);
|
|
4911
4911
|
de(() => {
|
|
4912
4912
|
const {
|
|
4913
|
-
bindI18n:
|
|
4914
|
-
bindI18nStore:
|
|
4913
|
+
bindI18n: _,
|
|
4914
|
+
bindI18nStore: O
|
|
4915
4915
|
} = o;
|
|
4916
4916
|
g.current = !0, !d && !l && (e.lng ? ss(a, e.lng, u, () => {
|
|
4917
4917
|
g.current && w(y);
|
|
4918
4918
|
}) : fr(a, u, () => {
|
|
4919
4919
|
g.current && w(y);
|
|
4920
|
-
})), d && v && v !==
|
|
4920
|
+
})), d && v && v !== N && g.current && w(y);
|
|
4921
4921
|
const J = () => {
|
|
4922
4922
|
g.current && w(y);
|
|
4923
4923
|
};
|
|
4924
|
-
return
|
|
4925
|
-
g.current = !1, a && (
|
|
4924
|
+
return _ && (a == null || a.on(_, J)), O && (a == null || a.store.on(O, J)), () => {
|
|
4925
|
+
g.current = !1, a && (_ == null || _.split(" ").forEach((U) => a.off(U, J))), O && a && O.split(" ").forEach((U) => a.store.off(U, J));
|
|
4926
4926
|
};
|
|
4927
|
-
}, [a,
|
|
4927
|
+
}, [a, N]), de(() => {
|
|
4928
4928
|
g.current && d && w(m);
|
|
4929
4929
|
}, [a, c, d]);
|
|
4930
4930
|
const S = [x, a, d];
|
|
4931
4931
|
if (S.t = x, S.i18n = a, S.ready = d, d || !d && !l) return S;
|
|
4932
|
-
throw new Promise((
|
|
4933
|
-
e.lng ? ss(a, e.lng, u, () =>
|
|
4932
|
+
throw new Promise((_) => {
|
|
4933
|
+
e.lng ? ss(a, e.lng, u, () => _()) : fr(a, u, () => _());
|
|
4934
4934
|
});
|
|
4935
4935
|
}, hr = {
|
|
4936
4936
|
sm: "text-sm",
|
|
@@ -4944,21 +4944,21 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
4944
4944
|
}, y = (g) => {
|
|
4945
4945
|
const S = g.target.files;
|
|
4946
4946
|
if (!S) return;
|
|
4947
|
-
const
|
|
4948
|
-
let F = e.concat(
|
|
4947
|
+
const $ = Array.from(S);
|
|
4948
|
+
let F = e.concat($);
|
|
4949
4949
|
s && (F = F.slice(0, s)), t(F), g.target.value = "";
|
|
4950
4950
|
}, x = (g) => {
|
|
4951
4951
|
if (g.preventDefault(), o || p) return;
|
|
4952
4952
|
const S = Array.from(g.dataTransfer.files);
|
|
4953
|
-
let
|
|
4954
|
-
s && (
|
|
4953
|
+
let $ = e.concat(S);
|
|
4954
|
+
s && ($ = $.slice(0, s)), t($);
|
|
4955
4955
|
}, w = (g) => {
|
|
4956
4956
|
g.preventDefault();
|
|
4957
|
-
},
|
|
4957
|
+
}, N = (g) => {
|
|
4958
4958
|
const S = URL.createObjectURL(g);
|
|
4959
4959
|
window.open(S);
|
|
4960
4960
|
}, v = (g) => {
|
|
4961
|
-
const S = e.filter((
|
|
4961
|
+
const S = e.filter(($, F) => F !== g);
|
|
4962
4962
|
t(S);
|
|
4963
4963
|
};
|
|
4964
4964
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -5000,7 +5000,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
),
|
|
5002
5002
|
/* @__PURE__ */ i.jsx(
|
|
5003
|
-
|
|
5003
|
+
Ue,
|
|
5004
5004
|
{
|
|
5005
5005
|
component: Yn,
|
|
5006
5006
|
size: "md",
|
|
@@ -5031,7 +5031,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
5031
5031
|
size: "sm",
|
|
5032
5032
|
icon: Ss,
|
|
5033
5033
|
ariaLabel: u("ds.fileUploader.view", "View"),
|
|
5034
|
-
onClick: () =>
|
|
5034
|
+
onClick: () => N(g)
|
|
5035
5035
|
}
|
|
5036
5036
|
),
|
|
5037
5037
|
/* @__PURE__ */ i.jsx(
|
|
@@ -5068,13 +5068,13 @@ function _o(r) {
|
|
|
5068
5068
|
hasError: m = !1,
|
|
5069
5069
|
errorMessage: y = "",
|
|
5070
5070
|
className: x
|
|
5071
|
-
} = r, w = et(),
|
|
5071
|
+
} = r, w = et(), N = t || w;
|
|
5072
5072
|
if (e && t)
|
|
5073
5073
|
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", x), style: { width: c }, children: [
|
|
5074
5074
|
u && /* @__PURE__ */ i.jsx(
|
|
5075
5075
|
"label",
|
|
5076
5076
|
{
|
|
5077
|
-
htmlFor:
|
|
5077
|
+
htmlFor: N,
|
|
5078
5078
|
className: I(
|
|
5079
5079
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5080
5080
|
hr[l],
|
|
@@ -5084,21 +5084,21 @@ function _o(r) {
|
|
|
5084
5084
|
}
|
|
5085
5085
|
),
|
|
5086
5086
|
/* @__PURE__ */ i.jsx(
|
|
5087
|
-
|
|
5087
|
+
Ce,
|
|
5088
5088
|
{
|
|
5089
5089
|
name: t,
|
|
5090
5090
|
control: e,
|
|
5091
5091
|
rules: s,
|
|
5092
5092
|
defaultValue: n instanceof FileList ? Array.from(n) : n || [],
|
|
5093
|
-
render: ({ field: S, fieldState:
|
|
5094
|
-
|
|
5093
|
+
render: ({ field: S, fieldState: $ }) => ns(
|
|
5094
|
+
N,
|
|
5095
5095
|
S.value,
|
|
5096
5096
|
(F) => S.onChange(F),
|
|
5097
5097
|
a,
|
|
5098
5098
|
o,
|
|
5099
5099
|
l,
|
|
5100
5100
|
p,
|
|
5101
|
-
|
|
5101
|
+
$.error,
|
|
5102
5102
|
x
|
|
5103
5103
|
)
|
|
5104
5104
|
}
|
|
@@ -5111,7 +5111,7 @@ function _o(r) {
|
|
|
5111
5111
|
u && /* @__PURE__ */ i.jsx(
|
|
5112
5112
|
"label",
|
|
5113
5113
|
{
|
|
5114
|
-
htmlFor:
|
|
5114
|
+
htmlFor: N,
|
|
5115
5115
|
className: I(
|
|
5116
5116
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5117
5117
|
hr[l],
|
|
@@ -5121,7 +5121,7 @@ function _o(r) {
|
|
|
5121
5121
|
}
|
|
5122
5122
|
),
|
|
5123
5123
|
ns(
|
|
5124
|
-
|
|
5124
|
+
N,
|
|
5125
5125
|
v,
|
|
5126
5126
|
g,
|
|
5127
5127
|
a,
|
|
@@ -5196,15 +5196,15 @@ function Cr({
|
|
|
5196
5196
|
control: y,
|
|
5197
5197
|
name: x,
|
|
5198
5198
|
rules: w,
|
|
5199
|
-
defaultValue:
|
|
5199
|
+
defaultValue: N,
|
|
5200
5200
|
reserveErrorSpace: v,
|
|
5201
5201
|
disableErrorPlaceholder: g,
|
|
5202
5202
|
// <- alias deprecado
|
|
5203
5203
|
loading: S = !1,
|
|
5204
|
-
className:
|
|
5204
|
+
className: $,
|
|
5205
5205
|
...F
|
|
5206
5206
|
}) {
|
|
5207
|
-
const
|
|
5207
|
+
const B = et(), [Z, _] = ae(!1), O = r || B, J = e === "password", M = c ?? (e === "number" ? ea : void 0), Y = J ? Z ? Kn : Ss : u, K = typeof v == "boolean" ? v : typeof g == "boolean" ? !g : !!y, q = I(
|
|
5208
5208
|
"box-border w-full rounded-lg border placeholder-[var(--color-ds-text-secondary)] outline-none transition font-[var(--font-primary)] appearance-none",
|
|
5209
5209
|
Ft[t],
|
|
5210
5210
|
Fo[t],
|
|
@@ -5217,31 +5217,31 @@ function Cr({
|
|
|
5217
5217
|
"disabled:cursor-not-allowed"
|
|
5218
5218
|
);
|
|
5219
5219
|
return S ? /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s, maxWidth: "100%" }, children: [
|
|
5220
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor:
|
|
5220
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: O, className: I("pb-2", Ft[t]), children: n }),
|
|
5221
5221
|
/* @__PURE__ */ i.jsx(it, { width: "100%", height: To[t], variant: "rect", className: "rounded-lg" }),
|
|
5222
5222
|
/* @__PURE__ */ i.jsx("div", { className: "min-h-[18px] w-full", children: /* @__PURE__ */ i.jsx("span", { "aria-hidden": "true", children: " " }) })
|
|
5223
5223
|
] }) : y && x ? /* @__PURE__ */ i.jsx(
|
|
5224
|
-
|
|
5224
|
+
Ce,
|
|
5225
5225
|
{
|
|
5226
5226
|
name: x,
|
|
5227
5227
|
control: y,
|
|
5228
5228
|
rules: w,
|
|
5229
|
-
defaultValue:
|
|
5229
|
+
defaultValue: N,
|
|
5230
5230
|
render: ({ field: H, fieldState: A }) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
|
|
5231
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor:
|
|
5231
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: O, className: I("pb-2 text-[var(--color-ds-text-primary)]", Ft[t]), children: n }),
|
|
5232
5232
|
/* @__PURE__ */ i.jsxs("div", { className: "relative flex items-center w-full", children: [
|
|
5233
|
-
|
|
5233
|
+
M && /* @__PURE__ */ i.jsx("div", { className: I("absolute left-0 flex items-center h-full", as[t]), children: /* @__PURE__ */ i.jsx(Ue, { component: M, size: t, className: "text-[var(--color-ds-text-secondary)]" }) }),
|
|
5234
5234
|
/* @__PURE__ */ i.jsx(
|
|
5235
5235
|
"input",
|
|
5236
5236
|
{
|
|
5237
5237
|
...H,
|
|
5238
|
-
id:
|
|
5239
|
-
type: J ?
|
|
5238
|
+
id: O,
|
|
5239
|
+
type: J ? Z ? "text" : "password" : e,
|
|
5240
5240
|
disabled: m,
|
|
5241
5241
|
"aria-invalid": !!A.error,
|
|
5242
|
-
className: I(
|
|
5242
|
+
className: I(q, M && "pl-9", Y && "pr-9", $),
|
|
5243
5243
|
onInvalid: (h) => h.preventDefault(),
|
|
5244
|
-
style: J && !
|
|
5244
|
+
style: J && !Z ? { WebkitTextSecurity: "disc", MozTextSecurity: "disc" } : void 0
|
|
5245
5245
|
}
|
|
5246
5246
|
),
|
|
5247
5247
|
d && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: d }),
|
|
@@ -5250,10 +5250,10 @@ function Cr({
|
|
|
5250
5250
|
"button",
|
|
5251
5251
|
{
|
|
5252
5252
|
type: "button",
|
|
5253
|
-
onClick: () =>
|
|
5253
|
+
onClick: () => _((h) => !h),
|
|
5254
5254
|
className: "absolute right-0 flex items-center h-full pr-2",
|
|
5255
5255
|
tabIndex: -1,
|
|
5256
|
-
children: /* @__PURE__ */ i.jsx(
|
|
5256
|
+
children: /* @__PURE__ */ i.jsx(Ue, { component: Y, size: t, className: "text-[var(--color-ds-text-secondary)]" })
|
|
5257
5257
|
}
|
|
5258
5258
|
)
|
|
5259
5259
|
] }),
|
|
@@ -5261,20 +5261,20 @@ function Cr({
|
|
|
5261
5261
|
] })
|
|
5262
5262
|
}
|
|
5263
5263
|
) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
|
|
5264
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor:
|
|
5264
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: O, className: I("pb-2 text-[var(--color-ds-text-primary)]", Ft[t]), children: n }),
|
|
5265
5265
|
/* @__PURE__ */ i.jsxs("div", { className: "relative flex items-center w-full", children: [
|
|
5266
|
-
|
|
5266
|
+
M && /* @__PURE__ */ i.jsx("div", { className: I("absolute left-0 flex items-center h-full", as[t]), children: /* @__PURE__ */ i.jsx(Ue, { component: M, size: t, className: "text-[var(--color-ds-text-secondary)]" }) }),
|
|
5267
5267
|
/* @__PURE__ */ i.jsx(
|
|
5268
5268
|
"input",
|
|
5269
5269
|
{
|
|
5270
5270
|
...F,
|
|
5271
|
-
id:
|
|
5272
|
-
type: J ?
|
|
5271
|
+
id: O,
|
|
5272
|
+
type: J ? Z ? "text" : "password" : e,
|
|
5273
5273
|
disabled: m,
|
|
5274
5274
|
"aria-invalid": o,
|
|
5275
|
-
className: I(
|
|
5275
|
+
className: I(q, M && "pl-9", Y && "pr-9", $),
|
|
5276
5276
|
onInvalid: (H) => H.preventDefault(),
|
|
5277
|
-
style: J && !
|
|
5277
|
+
style: J && !Z ? { WebkitTextSecurity: "disc", MozTextSecurity: "disc" } : void 0
|
|
5278
5278
|
}
|
|
5279
5279
|
),
|
|
5280
5280
|
d && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: d }),
|
|
@@ -5283,10 +5283,10 @@ function Cr({
|
|
|
5283
5283
|
"button",
|
|
5284
5284
|
{
|
|
5285
5285
|
type: "button",
|
|
5286
|
-
onClick: () =>
|
|
5286
|
+
onClick: () => _((H) => !H),
|
|
5287
5287
|
className: "absolute right-0 flex items-center h-full pr-2",
|
|
5288
5288
|
tabIndex: -1,
|
|
5289
|
-
children: /* @__PURE__ */ i.jsx(
|
|
5289
|
+
children: /* @__PURE__ */ i.jsx(Ue, { component: Y, size: t, className: "text-[var(--color-ds-text-secondary)]" })
|
|
5290
5290
|
}
|
|
5291
5291
|
)
|
|
5292
5292
|
] }),
|
|
@@ -5377,14 +5377,14 @@ function Oo({
|
|
|
5377
5377
|
disabled: c,
|
|
5378
5378
|
info: u
|
|
5379
5379
|
}) {
|
|
5380
|
-
var
|
|
5380
|
+
var N;
|
|
5381
5381
|
const {
|
|
5382
5382
|
control: d,
|
|
5383
5383
|
formState: { errors: p }
|
|
5384
|
-
} = wt(), m = !!p[r], y = ((
|
|
5384
|
+
} = wt(), m = !!p[r], y = ((N = p[r]) == null ? void 0 : N.message) || "", x = "relative", w = n ?? "w-full";
|
|
5385
5385
|
return /* @__PURE__ */ i.jsxs("div", { className: x, children: [
|
|
5386
5386
|
/* @__PURE__ */ i.jsx(
|
|
5387
|
-
|
|
5387
|
+
Ce,
|
|
5388
5388
|
{
|
|
5389
5389
|
name: r,
|
|
5390
5390
|
control: d,
|
|
@@ -5521,21 +5521,21 @@ function Mo() {
|
|
|
5521
5521
|
normalizePath: d,
|
|
5522
5522
|
setter: function(v) {
|
|
5523
5523
|
var g = d(v);
|
|
5524
|
-
return c.get(v) || c.set(v, function(
|
|
5525
|
-
for (var
|
|
5526
|
-
var
|
|
5527
|
-
if (
|
|
5528
|
-
return
|
|
5529
|
-
|
|
5524
|
+
return c.get(v) || c.set(v, function($, F) {
|
|
5525
|
+
for (var B = 0, Z = g.length, _ = $; B < Z - 1; ) {
|
|
5526
|
+
var O = g[B];
|
|
5527
|
+
if (O === "__proto__" || O === "constructor" || O === "prototype")
|
|
5528
|
+
return $;
|
|
5529
|
+
_ = _[g[B++]];
|
|
5530
5530
|
}
|
|
5531
|
-
|
|
5531
|
+
_[g[B]] = F;
|
|
5532
5532
|
});
|
|
5533
5533
|
},
|
|
5534
5534
|
getter: function(v, g) {
|
|
5535
5535
|
var S = d(v);
|
|
5536
5536
|
return u.get(v) || u.set(v, function(F) {
|
|
5537
|
-
for (var
|
|
5538
|
-
if (F != null || !g) F = F[S[
|
|
5537
|
+
for (var B = 0, Z = S.length; B < Z; )
|
|
5538
|
+
if (F != null || !g) F = F[S[B++]];
|
|
5539
5539
|
else return;
|
|
5540
5540
|
return F;
|
|
5541
5541
|
});
|
|
@@ -5561,9 +5561,9 @@ function Mo() {
|
|
|
5561
5561
|
return v.match(e) || [""];
|
|
5562
5562
|
}
|
|
5563
5563
|
function m(v, g, S) {
|
|
5564
|
-
var
|
|
5565
|
-
for (
|
|
5566
|
-
F = v[
|
|
5564
|
+
var $ = v.length, F, B, Z, _;
|
|
5565
|
+
for (B = 0; B < $; B++)
|
|
5566
|
+
F = v[B], F && (N(F) && (F = '"' + F + '"'), _ = y(F), Z = !_ && /^\d+$/.test(F), g.call(S, F, _, Z, B, v));
|
|
5567
5567
|
}
|
|
5568
5568
|
function y(v) {
|
|
5569
5569
|
return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
|
|
@@ -5574,7 +5574,7 @@ function Mo() {
|
|
|
5574
5574
|
function w(v) {
|
|
5575
5575
|
return n.test(v);
|
|
5576
5576
|
}
|
|
5577
|
-
function
|
|
5577
|
+
function N(v) {
|
|
5578
5578
|
return !y(v) && (x(v) || w(v));
|
|
5579
5579
|
}
|
|
5580
5580
|
return rr;
|
|
@@ -5614,13 +5614,13 @@ function Io() {
|
|
|
5614
5614
|
return l;
|
|
5615
5615
|
function m(y, x, w) {
|
|
5616
5616
|
if (w.has(y)) {
|
|
5617
|
-
var
|
|
5617
|
+
var N;
|
|
5618
5618
|
try {
|
|
5619
|
-
|
|
5619
|
+
N = ", node was:" + JSON.stringify(y);
|
|
5620
5620
|
} catch {
|
|
5621
|
-
|
|
5621
|
+
N = "";
|
|
5622
5622
|
}
|
|
5623
|
-
throw new Error("Cyclic dependency" +
|
|
5623
|
+
throw new Error("Cyclic dependency" + N);
|
|
5624
5624
|
}
|
|
5625
5625
|
if (!p.has(y))
|
|
5626
5626
|
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(y));
|
|
@@ -5661,7 +5661,7 @@ function Io() {
|
|
|
5661
5661
|
return Tt.exports;
|
|
5662
5662
|
}
|
|
5663
5663
|
var Lo = Io();
|
|
5664
|
-
const Po = /* @__PURE__ */ An(Lo), zo = Object.prototype.toString,
|
|
5664
|
+
const Po = /* @__PURE__ */ An(Lo), zo = Object.prototype.toString, Bo = Error.prototype.toString, Uo = RegExp.prototype.toString, Zo = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", Wo = /^Symbol\((.*)\)(.*)$/;
|
|
5665
5665
|
function qo(r) {
|
|
5666
5666
|
return r != +r ? "NaN" : r === 0 && 1 / r < 0 ? "-0" : "" + r;
|
|
5667
5667
|
}
|
|
@@ -5673,7 +5673,7 @@ function ds(r, e = !1) {
|
|
|
5673
5673
|
if (t === "function") return "[Function " + (r.name || "anonymous") + "]";
|
|
5674
5674
|
if (t === "symbol") return Zo.call(r).replace(Wo, "Symbol($1)");
|
|
5675
5675
|
const s = zo.call(r).slice(8, -1);
|
|
5676
|
-
return s === "Date" ? isNaN(r.getTime()) ? "" + r : r.toISOString(r) : s === "Error" || r instanceof Error ? "[" +
|
|
5676
|
+
return s === "Date" ? isNaN(r.getTime()) ? "" + r : r.toISOString(r) : s === "Error" || r instanceof Error ? "[" + Bo.call(r) + "]" : s === "RegExp" ? Uo.call(r) : null;
|
|
5677
5677
|
}
|
|
5678
5678
|
function Ze(r, e) {
|
|
5679
5679
|
let t = ds(r, e);
|
|
@@ -5797,7 +5797,7 @@ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
5797
5797
|
tuple: Yo
|
|
5798
5798
|
});
|
|
5799
5799
|
const Gt = (r) => r && r.__isYupSchema__;
|
|
5800
|
-
class
|
|
5800
|
+
class Bt {
|
|
5801
5801
|
static fromOptions(e, t) {
|
|
5802
5802
|
if (!t.then && !t.otherwise) throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");
|
|
5803
5803
|
let {
|
|
@@ -5805,7 +5805,7 @@ class Ut {
|
|
|
5805
5805
|
then: n,
|
|
5806
5806
|
otherwise: a
|
|
5807
5807
|
} = t, o = typeof s == "function" ? s : (...l) => l.every((c) => c === s);
|
|
5808
|
-
return new
|
|
5808
|
+
return new Bt(e, (l, c) => {
|
|
5809
5809
|
var u;
|
|
5810
5810
|
let d = o(...l) ? n : a;
|
|
5811
5811
|
return (u = d == null ? void 0 : d(c)) != null ? u : c;
|
|
@@ -5869,7 +5869,7 @@ class tt {
|
|
|
5869
5869
|
}
|
|
5870
5870
|
}
|
|
5871
5871
|
tt.prototype.__isYupRef = !0;
|
|
5872
|
-
const
|
|
5872
|
+
const Ve = (r) => r == null;
|
|
5873
5873
|
function nt(r) {
|
|
5874
5874
|
function e({
|
|
5875
5875
|
value: t,
|
|
@@ -5888,26 +5888,26 @@ function nt(r) {
|
|
|
5888
5888
|
let {
|
|
5889
5889
|
parent: x,
|
|
5890
5890
|
context: w,
|
|
5891
|
-
abortEarly:
|
|
5891
|
+
abortEarly: N = o.spec.abortEarly,
|
|
5892
5892
|
disableStackTrace: v = o.spec.disableStackTrace
|
|
5893
5893
|
} = n;
|
|
5894
|
-
function g(
|
|
5895
|
-
return tt.isRef(
|
|
5894
|
+
function g(U) {
|
|
5895
|
+
return tt.isRef(U) ? U.getValue(t, x, w) : U;
|
|
5896
5896
|
}
|
|
5897
|
-
function S(
|
|
5898
|
-
const
|
|
5897
|
+
function S(U = {}) {
|
|
5898
|
+
const M = Object.assign({
|
|
5899
5899
|
value: t,
|
|
5900
5900
|
originalValue: a,
|
|
5901
5901
|
label: o.spec.label,
|
|
5902
|
-
path:
|
|
5902
|
+
path: U.path || s,
|
|
5903
5903
|
spec: o.spec,
|
|
5904
|
-
disableStackTrace:
|
|
5905
|
-
}, p,
|
|
5906
|
-
for (const K of Object.keys(
|
|
5907
|
-
const Y = new _e(_e.formatError(
|
|
5908
|
-
return Y.params =
|
|
5904
|
+
disableStackTrace: U.disableStackTrace || v
|
|
5905
|
+
}, p, U.params);
|
|
5906
|
+
for (const K of Object.keys(M)) M[K] = g(M[K]);
|
|
5907
|
+
const Y = new _e(_e.formatError(U.message || m, M), t, M.path, U.type || u, M.disableStackTrace);
|
|
5908
|
+
return Y.params = M, Y;
|
|
5909
5909
|
}
|
|
5910
|
-
const
|
|
5910
|
+
const $ = N ? l : c;
|
|
5911
5911
|
let F = {
|
|
5912
5912
|
path: s,
|
|
5913
5913
|
parent: x,
|
|
@@ -5919,26 +5919,26 @@ function nt(r) {
|
|
|
5919
5919
|
originalValue: a,
|
|
5920
5920
|
schema: o
|
|
5921
5921
|
};
|
|
5922
|
-
const
|
|
5923
|
-
_e.isError(
|
|
5924
|
-
},
|
|
5925
|
-
_e.isError(
|
|
5922
|
+
const B = (U) => {
|
|
5923
|
+
_e.isError(U) ? $(U) : U ? c(null) : $(S());
|
|
5924
|
+
}, Z = (U) => {
|
|
5925
|
+
_e.isError(U) ? $(U) : l(U);
|
|
5926
5926
|
};
|
|
5927
|
-
if (y &&
|
|
5928
|
-
return
|
|
5929
|
-
let
|
|
5927
|
+
if (y && Ve(t))
|
|
5928
|
+
return B(!0);
|
|
5929
|
+
let O;
|
|
5930
5930
|
try {
|
|
5931
5931
|
var J;
|
|
5932
|
-
if (
|
|
5932
|
+
if (O = d.call(F, t, F), typeof ((J = O) == null ? void 0 : J.then) == "function") {
|
|
5933
5933
|
if (n.sync)
|
|
5934
5934
|
throw new Error(`Validation test of type: "${F.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
|
|
5935
|
-
return Promise.resolve(
|
|
5935
|
+
return Promise.resolve(O).then(B, Z);
|
|
5936
5936
|
}
|
|
5937
|
-
} catch (
|
|
5938
|
-
|
|
5937
|
+
} catch (U) {
|
|
5938
|
+
Z(U);
|
|
5939
5939
|
return;
|
|
5940
5940
|
}
|
|
5941
|
-
|
|
5941
|
+
B(O);
|
|
5942
5942
|
}
|
|
5943
5943
|
return e.OPTIONS = r, e;
|
|
5944
5944
|
}
|
|
@@ -5973,7 +5973,7 @@ function Ho(r, e, t, s = t) {
|
|
|
5973
5973
|
schema: r
|
|
5974
5974
|
};
|
|
5975
5975
|
}
|
|
5976
|
-
class
|
|
5976
|
+
class Ut extends Set {
|
|
5977
5977
|
describe() {
|
|
5978
5978
|
const e = [];
|
|
5979
5979
|
for (const t of this.values())
|
|
@@ -5987,7 +5987,7 @@ class Bt extends Set {
|
|
|
5987
5987
|
return t;
|
|
5988
5988
|
}
|
|
5989
5989
|
clone() {
|
|
5990
|
-
return new
|
|
5990
|
+
return new Ut(this.values());
|
|
5991
5991
|
}
|
|
5992
5992
|
merge(e, t) {
|
|
5993
5993
|
const s = this.clone();
|
|
@@ -6020,7 +6020,7 @@ function ot(r, e = /* @__PURE__ */ new Map()) {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
class Se {
|
|
6022
6022
|
constructor(e) {
|
|
6023
|
-
this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new
|
|
6023
|
+
this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new Ut(), this._blacklist = new Ut(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => {
|
|
6024
6024
|
this.typeError(De.notType);
|
|
6025
6025
|
}), this.type = e.type, this._typeCheck = e.check, this.spec = Object.assign({
|
|
6026
6026
|
strip: !1,
|
|
@@ -6100,7 +6100,7 @@ class Se {
|
|
|
6100
6100
|
value: e
|
|
6101
6101
|
}, t)), n = t.assert === "ignore-optionality", a = s._cast(e, t);
|
|
6102
6102
|
if (t.assert !== !1 && !s.isType(a)) {
|
|
6103
|
-
if (n &&
|
|
6103
|
+
if (n && Ve(a))
|
|
6104
6104
|
return a;
|
|
6105
6105
|
let o = Ze(e), l = Ze(a);
|
|
6106
6106
|
throw new TypeError(`The value of ${t.path || "field"} could not be cast to a value that satisfies the schema type: "${s.type}".
|
|
@@ -6169,8 +6169,8 @@ attempted value: ${o}
|
|
|
6169
6169
|
schema: this
|
|
6170
6170
|
};
|
|
6171
6171
|
for (let w = 0; w < a.length; w++) {
|
|
6172
|
-
const
|
|
6173
|
-
|
|
6172
|
+
const N = a[w];
|
|
6173
|
+
N(x, d, function(g) {
|
|
6174
6174
|
g && (Array.isArray(g) ? y.push(...g) : y.push(g)), --m <= 0 && p(y);
|
|
6175
6175
|
});
|
|
6176
6176
|
}
|
|
@@ -6342,7 +6342,7 @@ attempted value: ${o}
|
|
|
6342
6342
|
let s = this.clone(), n = an(e).map((a) => new tt(a));
|
|
6343
6343
|
return n.forEach((a) => {
|
|
6344
6344
|
a.isSibling && s.deps.push(a.key);
|
|
6345
|
-
}), s.conditions.push(typeof t == "function" ? new
|
|
6345
|
+
}), s.conditions.push(typeof t == "function" ? new Bt(n, t) : Bt.fromOptions(n, t)), s;
|
|
6346
6346
|
}
|
|
6347
6347
|
typeError(e) {
|
|
6348
6348
|
let t = this.clone();
|
|
@@ -6487,7 +6487,7 @@ class fn extends Se {
|
|
|
6487
6487
|
value: "true"
|
|
6488
6488
|
},
|
|
6489
6489
|
test(t) {
|
|
6490
|
-
return
|
|
6490
|
+
return Ve(t) || t === !0;
|
|
6491
6491
|
}
|
|
6492
6492
|
});
|
|
6493
6493
|
}
|
|
@@ -6500,7 +6500,7 @@ class fn extends Se {
|
|
|
6500
6500
|
value: "false"
|
|
6501
6501
|
},
|
|
6502
6502
|
test(t) {
|
|
6503
|
-
return
|
|
6503
|
+
return Ve(t) || t === !1;
|
|
6504
6504
|
}
|
|
6505
6505
|
});
|
|
6506
6506
|
}
|
|
@@ -6569,7 +6569,7 @@ let Qo = (
|
|
|
6569
6569
|
), ei = (
|
|
6570
6570
|
// eslint-disable-next-line
|
|
6571
6571
|
/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
|
|
6572
|
-
), ti = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, ri = "^\\d{4}-\\d{2}-\\d{2}", si = "\\d{2}:\\d{2}:\\d{2}", ni = "(([+-]\\d{2}(:?\\d{2})?)|Z)", ai = new RegExp(`${ri}T${si}(\\.\\d+)?${ni}$`), oi = (r) =>
|
|
6572
|
+
), ti = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, ri = "^\\d{4}-\\d{2}-\\d{2}", si = "\\d{2}:\\d{2}:\\d{2}", ni = "(([+-]\\d{2}(:?\\d{2})?)|Z)", ai = new RegExp(`${ri}T${si}(\\.\\d+)?${ni}$`), oi = (r) => Ve(r) || r === r.trim(), ii = {}.toString();
|
|
6573
6573
|
function at() {
|
|
6574
6574
|
return new hn();
|
|
6575
6575
|
}
|
|
@@ -6726,21 +6726,21 @@ class hn extends Se {
|
|
|
6726
6726
|
});
|
|
6727
6727
|
}
|
|
6728
6728
|
lowercase(e = Ne.lowercase) {
|
|
6729
|
-
return this.transform((t) =>
|
|
6729
|
+
return this.transform((t) => Ve(t) ? t : t.toLowerCase()).test({
|
|
6730
6730
|
message: e,
|
|
6731
6731
|
name: "string_case",
|
|
6732
6732
|
exclusive: !0,
|
|
6733
6733
|
skipAbsent: !0,
|
|
6734
|
-
test: (t) =>
|
|
6734
|
+
test: (t) => Ve(t) || t === t.toLowerCase()
|
|
6735
6735
|
});
|
|
6736
6736
|
}
|
|
6737
6737
|
uppercase(e = Ne.uppercase) {
|
|
6738
|
-
return this.transform((t) =>
|
|
6738
|
+
return this.transform((t) => Ve(t) ? t : t.toUpperCase()).test({
|
|
6739
6739
|
message: e,
|
|
6740
6740
|
name: "string_case",
|
|
6741
6741
|
exclusive: !0,
|
|
6742
6742
|
skipAbsent: !0,
|
|
6743
|
-
test: (t) =>
|
|
6743
|
+
test: (t) => Ve(t) || t === t.toUpperCase()
|
|
6744
6744
|
});
|
|
6745
6745
|
}
|
|
6746
6746
|
}
|
|
@@ -6839,14 +6839,14 @@ class pn extends Se {
|
|
|
6839
6839
|
});
|
|
6840
6840
|
}
|
|
6841
6841
|
truncate() {
|
|
6842
|
-
return this.transform((e) =>
|
|
6842
|
+
return this.transform((e) => Ve(e) ? e : e | 0);
|
|
6843
6843
|
}
|
|
6844
6844
|
round(e) {
|
|
6845
6845
|
var t;
|
|
6846
6846
|
let s = ["ceil", "floor", "round", "trunc"];
|
|
6847
6847
|
if (e = ((t = e) == null ? void 0 : t.toLowerCase()) || "round", e === "trunc") return this.truncate();
|
|
6848
6848
|
if (s.indexOf(e.toLowerCase()) === -1) throw new TypeError("Only valid options for round() are: " + s.join(", "));
|
|
6849
|
-
return this.transform((n) =>
|
|
6849
|
+
return this.transform((n) => Ve(n) ? n : Math[e](n));
|
|
6850
6850
|
}
|
|
6851
6851
|
}
|
|
6852
6852
|
mn.prototype = pn.prototype;
|
|
@@ -7002,8 +7002,8 @@ class vn extends Se {
|
|
|
7002
7002
|
context: t.context,
|
|
7003
7003
|
parent: c
|
|
7004
7004
|
});
|
|
7005
|
-
let
|
|
7006
|
-
if (
|
|
7005
|
+
let N = m instanceof Se ? m.spec : void 0, v = N == null ? void 0 : N.strict;
|
|
7006
|
+
if (N != null && N.strip) {
|
|
7007
7007
|
d = d || p in n;
|
|
7008
7008
|
continue;
|
|
7009
7009
|
}
|
|
@@ -7355,7 +7355,7 @@ function ar(r) {
|
|
|
7355
7355
|
const e = r.maxFiles;
|
|
7356
7356
|
return typeof e == "number" ? e : void 0;
|
|
7357
7357
|
}
|
|
7358
|
-
function
|
|
7358
|
+
function Be(r, e) {
|
|
7359
7359
|
return e.required ? r.required(e.requiredMessage || "Requerido") : r;
|
|
7360
7360
|
}
|
|
7361
7361
|
function Ct(r, e) {
|
|
@@ -7370,11 +7370,11 @@ function pi(r) {
|
|
|
7370
7370
|
case "text":
|
|
7371
7371
|
case "password": {
|
|
7372
7372
|
let s = at().trim();
|
|
7373
|
-
return s = Ct(s, e),
|
|
7373
|
+
return s = Ct(s, e), Be(s, e);
|
|
7374
7374
|
}
|
|
7375
7375
|
case "email": {
|
|
7376
7376
|
let s = at().trim().email(e.emailMessage || "Email inválido");
|
|
7377
|
-
return s = Ct(s, e),
|
|
7377
|
+
return s = Ct(s, e), Be(s, e);
|
|
7378
7378
|
}
|
|
7379
7379
|
case "number": {
|
|
7380
7380
|
let s = mn().transform((n, a) => a === "" || a === null ? void 0 : n).typeError(e.typeError || "Debe ser un número");
|
|
@@ -7382,15 +7382,15 @@ function pi(r) {
|
|
|
7382
7382
|
"pattern-number",
|
|
7383
7383
|
e.pattern.message || "Formato inválido",
|
|
7384
7384
|
(n) => n == null || e.pattern.value.test(String(n))
|
|
7385
|
-
)),
|
|
7385
|
+
)), Be(s, e);
|
|
7386
7386
|
}
|
|
7387
7387
|
case "select": {
|
|
7388
7388
|
if (mi(r)) {
|
|
7389
7389
|
const n = br().of(at());
|
|
7390
|
-
return
|
|
7390
|
+
return Be(n, e);
|
|
7391
7391
|
}
|
|
7392
7392
|
let s = at().trim();
|
|
7393
|
-
return s = Ct(s, e),
|
|
7393
|
+
return s = Ct(s, e), Be(s, e);
|
|
7394
7394
|
}
|
|
7395
7395
|
case "checkbox": {
|
|
7396
7396
|
let s = dn();
|
|
@@ -7398,11 +7398,11 @@ function pi(r) {
|
|
|
7398
7398
|
}
|
|
7399
7399
|
case "textarea": {
|
|
7400
7400
|
let s = at().trim();
|
|
7401
|
-
return s = Ct(s, e),
|
|
7401
|
+
return s = Ct(s, e), Be(s, e);
|
|
7402
7402
|
}
|
|
7403
7403
|
case "date": {
|
|
7404
7404
|
const s = Or().typeError(e.typeError || "Fecha inválida").transform((n, a) => a ? new Date(a) : void 0);
|
|
7405
|
-
return
|
|
7405
|
+
return Be(s, e);
|
|
7406
7406
|
}
|
|
7407
7407
|
case "file": {
|
|
7408
7408
|
const s = br().of(xr()).test(
|
|
@@ -7413,11 +7413,11 @@ function pi(r) {
|
|
|
7413
7413
|
return !Array.isArray(n) || !a || n.length <= a;
|
|
7414
7414
|
}
|
|
7415
7415
|
);
|
|
7416
|
-
return
|
|
7416
|
+
return Be(s, e);
|
|
7417
7417
|
}
|
|
7418
7418
|
default: {
|
|
7419
7419
|
const s = xr();
|
|
7420
|
-
return
|
|
7420
|
+
return Be(s, e);
|
|
7421
7421
|
}
|
|
7422
7422
|
}
|
|
7423
7423
|
}
|
|
@@ -7440,7 +7440,7 @@ function gi({
|
|
|
7440
7440
|
const l = n.current;
|
|
7441
7441
|
if (!l) return;
|
|
7442
7442
|
const c = () => {
|
|
7443
|
-
const u = r.findIndex((
|
|
7443
|
+
const u = r.findIndex((N) => N.value === e);
|
|
7444
7444
|
if (u < 0) return;
|
|
7445
7445
|
const d = l.children[u], p = d.querySelector("span"), m = (p == null ? void 0 : p.offsetWidth) ?? d.offsetWidth, y = d.offsetWidth, w = d.offsetLeft + (y - m) / 2;
|
|
7446
7446
|
o({ left: w, width: m });
|
|
@@ -7543,37 +7543,37 @@ function Zt(r) {
|
|
|
7543
7543
|
/* errores */
|
|
7544
7544
|
hasError: x = !1,
|
|
7545
7545
|
errorMessage: w = "",
|
|
7546
|
-
reserveErrorSpace:
|
|
7546
|
+
reserveErrorSpace: N,
|
|
7547
7547
|
disableErrorPlaceholder: v,
|
|
7548
7548
|
// alias legacy
|
|
7549
7549
|
disabled: g = !1,
|
|
7550
7550
|
className: S,
|
|
7551
|
-
suffixButton:
|
|
7551
|
+
suffixButton: $,
|
|
7552
7552
|
loading: F = !1,
|
|
7553
7553
|
/* coerción de primera opción */
|
|
7554
|
-
coerceFirstValid:
|
|
7555
|
-
} = r,
|
|
7554
|
+
coerceFirstValid: B = !0
|
|
7555
|
+
} = r, Z = et(), _ = t || Z, [O, J] = ae(a), [U, M] = ae(!!o);
|
|
7556
7556
|
de(() => {
|
|
7557
|
-
o && (
|
|
7557
|
+
o && (M(!0), o().then((q) => J(q)).finally(() => M(!1)));
|
|
7558
7558
|
}, [o, ...l]);
|
|
7559
|
-
const Y = (
|
|
7559
|
+
const Y = (q) => q.find((H) => H.value !== "" && H.value !== void 0) ?? q[0], K = typeof N == "boolean" ? N : !!e;
|
|
7560
7560
|
if (e && t) {
|
|
7561
|
-
const { field:
|
|
7561
|
+
const { field: q, fieldState: H } = qs({
|
|
7562
7562
|
name: t,
|
|
7563
7563
|
control: e,
|
|
7564
7564
|
rules: s,
|
|
7565
7565
|
defaultValue: n
|
|
7566
7566
|
});
|
|
7567
7567
|
return de(() => {
|
|
7568
|
-
if (!
|
|
7569
|
-
const A =
|
|
7570
|
-
(A === void 0 || !h) &&
|
|
7568
|
+
if (!U && O.length > 0 && B) {
|
|
7569
|
+
const A = q.value, h = O.some((W) => String(W.value) === String(A));
|
|
7570
|
+
(A === void 0 || !h) && q.onChange(Y(O).value);
|
|
7571
7571
|
}
|
|
7572
|
-
}, [
|
|
7572
|
+
}, [O, U, q, B]), /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", S), style: { width: p, maxWidth: "100%" }, children: [
|
|
7573
7573
|
m && /* @__PURE__ */ i.jsx(
|
|
7574
7574
|
"label",
|
|
7575
7575
|
{
|
|
7576
|
-
htmlFor:
|
|
7576
|
+
htmlFor: _,
|
|
7577
7577
|
className: I(
|
|
7578
7578
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
7579
7579
|
Ot[d],
|
|
@@ -7582,7 +7582,7 @@ function Zt(r) {
|
|
|
7582
7582
|
children: m
|
|
7583
7583
|
}
|
|
7584
7584
|
),
|
|
7585
|
-
F ||
|
|
7585
|
+
F || U ? /* @__PURE__ */ i.jsx(
|
|
7586
7586
|
it,
|
|
7587
7587
|
{
|
|
7588
7588
|
width: "100%",
|
|
@@ -7593,7 +7593,7 @@ function Zt(r) {
|
|
|
7593
7593
|
) : /* @__PURE__ */ i.jsx(
|
|
7594
7594
|
ys,
|
|
7595
7595
|
{
|
|
7596
|
-
id:
|
|
7596
|
+
id: _,
|
|
7597
7597
|
size: d,
|
|
7598
7598
|
disabled: g,
|
|
7599
7599
|
error: H.error,
|
|
@@ -7602,13 +7602,13 @@ function Zt(r) {
|
|
|
7602
7602
|
typeof v == "boolean" ? !v : K
|
|
7603
7603
|
),
|
|
7604
7604
|
className: S,
|
|
7605
|
-
suffixButton:
|
|
7605
|
+
suffixButton: $,
|
|
7606
7606
|
children: /* @__PURE__ */ i.jsx(
|
|
7607
7607
|
"select",
|
|
7608
7608
|
{
|
|
7609
|
-
id:
|
|
7610
|
-
value:
|
|
7611
|
-
onChange: (A) =>
|
|
7609
|
+
id: _,
|
|
7610
|
+
value: q.value,
|
|
7611
|
+
onChange: (A) => q.onChange(A.target.value),
|
|
7612
7612
|
disabled: g,
|
|
7613
7613
|
className: I(
|
|
7614
7614
|
"box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition font-[var(--font-primary)]",
|
|
@@ -7618,7 +7618,7 @@ function Zt(r) {
|
|
|
7618
7618
|
H.error ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]",
|
|
7619
7619
|
g ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-primary)] cursor-not-allowed" : "text-[var(--color-ds-text-primary)]"
|
|
7620
7620
|
),
|
|
7621
|
-
children:
|
|
7621
|
+
children: O.map((A) => /* @__PURE__ */ i.jsx(
|
|
7622
7622
|
"option",
|
|
7623
7623
|
{
|
|
7624
7624
|
value: A.value,
|
|
@@ -7634,15 +7634,15 @@ function Zt(r) {
|
|
|
7634
7634
|
] });
|
|
7635
7635
|
}
|
|
7636
7636
|
return de(() => {
|
|
7637
|
-
if (!e &&
|
|
7638
|
-
const
|
|
7639
|
-
(c === void 0 || c === "" || !
|
|
7637
|
+
if (!e && O.length > 0 && B) {
|
|
7638
|
+
const q = O.some((A) => String(A.value) === String(c));
|
|
7639
|
+
(c === void 0 || c === "" || !q) && u && u(Y(O).value);
|
|
7640
7640
|
}
|
|
7641
|
-
}, [
|
|
7641
|
+
}, [O, c, u, e, B]), /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", S), style: { width: p, maxWidth: "100%" }, children: [
|
|
7642
7642
|
m && /* @__PURE__ */ i.jsx(
|
|
7643
7643
|
"label",
|
|
7644
7644
|
{
|
|
7645
|
-
htmlFor:
|
|
7645
|
+
htmlFor: _,
|
|
7646
7646
|
className: I(
|
|
7647
7647
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
7648
7648
|
Ot[d],
|
|
@@ -7651,7 +7651,7 @@ function Zt(r) {
|
|
|
7651
7651
|
children: m
|
|
7652
7652
|
}
|
|
7653
7653
|
),
|
|
7654
|
-
F ||
|
|
7654
|
+
F || U ? /* @__PURE__ */ i.jsx(
|
|
7655
7655
|
it,
|
|
7656
7656
|
{
|
|
7657
7657
|
width: "100%",
|
|
@@ -7662,22 +7662,22 @@ function Zt(r) {
|
|
|
7662
7662
|
) : /* @__PURE__ */ i.jsx(
|
|
7663
7663
|
ys,
|
|
7664
7664
|
{
|
|
7665
|
-
id:
|
|
7665
|
+
id: _,
|
|
7666
7666
|
size: d,
|
|
7667
7667
|
disabled: g,
|
|
7668
7668
|
error: x ? { message: w } : void 0,
|
|
7669
7669
|
reserveErrorSpace: (
|
|
7670
7670
|
// legacy -> invertimos
|
|
7671
|
-
typeof v == "boolean" ? !v : !!(
|
|
7671
|
+
typeof v == "boolean" ? !v : !!(N ?? !1)
|
|
7672
7672
|
),
|
|
7673
7673
|
className: S,
|
|
7674
|
-
suffixButton:
|
|
7674
|
+
suffixButton: $,
|
|
7675
7675
|
children: /* @__PURE__ */ i.jsx(
|
|
7676
7676
|
"select",
|
|
7677
7677
|
{
|
|
7678
|
-
id:
|
|
7678
|
+
id: _,
|
|
7679
7679
|
value: c,
|
|
7680
|
-
onChange: (
|
|
7680
|
+
onChange: (q) => u == null ? void 0 : u(q.target.value),
|
|
7681
7681
|
disabled: g,
|
|
7682
7682
|
className: I(
|
|
7683
7683
|
"box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition font-[var(--font-primary)]",
|
|
@@ -7687,14 +7687,14 @@ function Zt(r) {
|
|
|
7687
7687
|
x ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]",
|
|
7688
7688
|
g ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-primary)] cursor-not-allowed" : "text-[var(--color-ds-text-primary)]"
|
|
7689
7689
|
),
|
|
7690
|
-
children:
|
|
7690
|
+
children: O.map((q) => /* @__PURE__ */ i.jsx(
|
|
7691
7691
|
"option",
|
|
7692
7692
|
{
|
|
7693
|
-
value:
|
|
7693
|
+
value: q.value,
|
|
7694
7694
|
className: "bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)]",
|
|
7695
|
-
children:
|
|
7695
|
+
children: q.label
|
|
7696
7696
|
},
|
|
7697
|
-
|
|
7697
|
+
q.value
|
|
7698
7698
|
))
|
|
7699
7699
|
}
|
|
7700
7700
|
)
|
|
@@ -7725,42 +7725,44 @@ function yi({
|
|
|
7725
7725
|
/* @__PURE__ */ i.jsx("label", { className: I("sr-only pb-2", vs[o]), children: r }),
|
|
7726
7726
|
a && /* @__PURE__ */ i.jsx("label", { className: I("pb-2", vs[o]), children: r }),
|
|
7727
7727
|
/* @__PURE__ */ i.jsx("div", { className: "flex items-center flex-nowrap", children: e.map((u, d) => {
|
|
7728
|
-
const { width: p, className: m, control: y, name: x, ...w } = u,
|
|
7728
|
+
const { width: p, className: m, control: y, name: x, ...w } = u, N = bi(u);
|
|
7729
7729
|
let v = "rounded-lg";
|
|
7730
7730
|
!s && c > 1 && (d === 0 ? v = "rounded-l-lg rounded-r-none" : d === c - 1 ? v = "rounded-r-lg rounded-l-none" : v = "rounded-none");
|
|
7731
|
-
const g = I(
|
|
7732
|
-
"inline-flex items-center flex-shrink-0
|
|
7733
|
-
typeof p == "string"
|
|
7734
|
-
),
|
|
7735
|
-
|
|
7731
|
+
const g = typeof p == "string" && p.split(/\s+/).some((Z) => Z.startsWith("w-") || Z.includes(":w-")), S = I(
|
|
7732
|
+
"inline-flex items-center flex-shrink-0",
|
|
7733
|
+
typeof p == "string" ? p : "w-40"
|
|
7734
|
+
), $ = typeof p == "string" && !g ? { width: p } : void 0, F = I(m, v, p ? void 0 : "w-full"), B = (Z) => y && x ? /* @__PURE__ */ i.jsx(
|
|
7735
|
+
Ce,
|
|
7736
7736
|
{
|
|
7737
7737
|
name: x,
|
|
7738
7738
|
control: y,
|
|
7739
|
-
render: ({ field:
|
|
7740
|
-
const
|
|
7741
|
-
return
|
|
7739
|
+
render: ({ field: _ }) => {
|
|
7740
|
+
const O = _.value;
|
|
7741
|
+
return Z({
|
|
7742
7742
|
...w,
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7743
|
+
name: x,
|
|
7744
|
+
value: N ? O === null ? void 0 : O ?? void 0 : O ?? "",
|
|
7745
|
+
onChange: _.onChange,
|
|
7746
|
+
className: F,
|
|
7746
7747
|
size: o
|
|
7747
7748
|
});
|
|
7748
7749
|
}
|
|
7749
7750
|
}
|
|
7750
|
-
) :
|
|
7751
|
+
) : Z({
|
|
7751
7752
|
...w,
|
|
7752
|
-
|
|
7753
|
+
name: x,
|
|
7754
|
+
className: F,
|
|
7753
7755
|
size: o
|
|
7754
7756
|
});
|
|
7755
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
7756
|
-
|
|
7757
|
+
return /* @__PURE__ */ i.jsxs("div", { className: S, style: $, children: [
|
|
7758
|
+
B(N ? (Z) => /* @__PURE__ */ i.jsx(
|
|
7757
7759
|
Zt,
|
|
7758
7760
|
{
|
|
7759
|
-
...
|
|
7761
|
+
...Z,
|
|
7760
7762
|
options: u.options,
|
|
7761
7763
|
loadOptions: u.loadOptions
|
|
7762
7764
|
}
|
|
7763
|
-
) : (
|
|
7765
|
+
) : (Z) => /* @__PURE__ */ i.jsx(Cr, { ...Z })),
|
|
7764
7766
|
s && d < c - 1 && t
|
|
7765
7767
|
] }, d);
|
|
7766
7768
|
}) })
|
|
@@ -7789,7 +7791,7 @@ function wi({
|
|
|
7789
7791
|
showVisibleLabel: d = !0
|
|
7790
7792
|
}) {
|
|
7791
7793
|
return /* @__PURE__ */ i.jsx(
|
|
7792
|
-
|
|
7794
|
+
Ce,
|
|
7793
7795
|
{
|
|
7794
7796
|
name: s,
|
|
7795
7797
|
control: t,
|
|
@@ -7798,7 +7800,7 @@ function wi({
|
|
|
7798
7800
|
render: ({ field: p, fieldState: m }) => {
|
|
7799
7801
|
const { value: y, onChange: x } = p;
|
|
7800
7802
|
m.error;
|
|
7801
|
-
const w = (v) => o ? Array.isArray(y) && y.includes(v) : y === v,
|
|
7803
|
+
const w = (v) => o ? Array.isArray(y) && y.includes(v) : y === v, N = (v) => {
|
|
7802
7804
|
if (o) {
|
|
7803
7805
|
const g = Array.isArray(y) ? [...y] : [], S = g.indexOf(v);
|
|
7804
7806
|
S >= 0 ? g.splice(S, 1) : g.push(v), x(g);
|
|
@@ -7844,7 +7846,7 @@ function wi({
|
|
|
7844
7846
|
name: s,
|
|
7845
7847
|
value: v.value,
|
|
7846
7848
|
checked: w(v.value),
|
|
7847
|
-
onChange: () =>
|
|
7849
|
+
onChange: () => N(v.value),
|
|
7848
7850
|
className: I(
|
|
7849
7851
|
vi[l],
|
|
7850
7852
|
"text-[var(--color-ds-button-primary-bg)]",
|
|
@@ -8028,7 +8030,7 @@ const zi = (r) => {
|
|
|
8028
8030
|
const t = "watchField" in e, s = "rule" in e;
|
|
8029
8031
|
return t && !s;
|
|
8030
8032
|
};
|
|
8031
|
-
function
|
|
8033
|
+
function Bi(r, e) {
|
|
8032
8034
|
const t = Array.isArray(r) ? r : [], s = Fe(
|
|
8033
8035
|
() => t.filter(Li).filter(zi),
|
|
8034
8036
|
[t]
|
|
@@ -8048,7 +8050,7 @@ const js = {
|
|
|
8048
8050
|
sm: "text-ds-sm",
|
|
8049
8051
|
md: "text-ds-md",
|
|
8050
8052
|
lg: "text-ds-lg"
|
|
8051
|
-
},
|
|
8053
|
+
}, Ui = {
|
|
8052
8054
|
sm: "px-2 py-1",
|
|
8053
8055
|
md: "px-3 py-2",
|
|
8054
8056
|
lg: "px-4 py-3"
|
|
@@ -8070,17 +8072,17 @@ function jn({
|
|
|
8070
8072
|
suffixButton: y,
|
|
8071
8073
|
...x
|
|
8072
8074
|
}) {
|
|
8073
|
-
const w = et(),
|
|
8075
|
+
const w = et(), N = e || w, [v, g] = ae(s || "");
|
|
8074
8076
|
if (r && e)
|
|
8075
8077
|
return /* @__PURE__ */ i.jsx(
|
|
8076
|
-
|
|
8078
|
+
Ce,
|
|
8077
8079
|
{
|
|
8078
8080
|
name: e,
|
|
8079
8081
|
control: r,
|
|
8080
8082
|
rules: t,
|
|
8081
8083
|
defaultValue: s || "",
|
|
8082
|
-
render: ({ field:
|
|
8083
|
-
var
|
|
8084
|
+
render: ({ field: $, fieldState: F }) => {
|
|
8085
|
+
var B;
|
|
8084
8086
|
return /* @__PURE__ */ i.jsx(
|
|
8085
8087
|
jn,
|
|
8086
8088
|
{
|
|
@@ -8090,13 +8092,13 @@ function jn({
|
|
|
8090
8092
|
label: o,
|
|
8091
8093
|
labelHidden: l,
|
|
8092
8094
|
hasError: !!F.error,
|
|
8093
|
-
errorMessage: ((
|
|
8095
|
+
errorMessage: ((B = F.error) == null ? void 0 : B.message) || "",
|
|
8094
8096
|
maxLength: d,
|
|
8095
8097
|
showCounter: p,
|
|
8096
8098
|
className: m,
|
|
8097
8099
|
suffixButton: y,
|
|
8098
|
-
value:
|
|
8099
|
-
onChange:
|
|
8100
|
+
value: $.value,
|
|
8101
|
+
onChange: $.onChange
|
|
8100
8102
|
}
|
|
8101
8103
|
);
|
|
8102
8104
|
}
|
|
@@ -8105,15 +8107,15 @@ function jn({
|
|
|
8105
8107
|
de(() => {
|
|
8106
8108
|
g(s || "");
|
|
8107
8109
|
}, [s]);
|
|
8108
|
-
const S = (
|
|
8110
|
+
const S = ($) => {
|
|
8109
8111
|
var F;
|
|
8110
|
-
d !== void 0 &&
|
|
8112
|
+
d !== void 0 && $.target.value.length > d || (g($.target.value), (F = x.onChange) == null || F.call(x, $));
|
|
8111
8113
|
};
|
|
8112
8114
|
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", m), style: { width: a }, children: [
|
|
8113
8115
|
o && /* @__PURE__ */ i.jsx(
|
|
8114
8116
|
"label",
|
|
8115
8117
|
{
|
|
8116
|
-
htmlFor:
|
|
8118
|
+
htmlFor: N,
|
|
8117
8119
|
className: I(
|
|
8118
8120
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
8119
8121
|
js[n],
|
|
@@ -8126,11 +8128,11 @@ function jn({
|
|
|
8126
8128
|
/* @__PURE__ */ i.jsx(
|
|
8127
8129
|
"textarea",
|
|
8128
8130
|
{
|
|
8129
|
-
id:
|
|
8131
|
+
id: N,
|
|
8130
8132
|
className: I(
|
|
8131
8133
|
"box-border bg-[var(--color-ds-background-page)] w-full resize vertical rounded-lg border outline-none transition font-[var(--font-primary)]",
|
|
8132
8134
|
js[n],
|
|
8133
|
-
|
|
8135
|
+
Ui[n],
|
|
8134
8136
|
c ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]",
|
|
8135
8137
|
x.disabled ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed" : "text-[var(--color-ds-text-primary)]"
|
|
8136
8138
|
),
|
|
@@ -8183,14 +8185,14 @@ function Wi({
|
|
|
8183
8185
|
a && "sr-only"
|
|
8184
8186
|
);
|
|
8185
8187
|
return r ? /* @__PURE__ */ i.jsx("div", { className: I("flex flex-col", c), children: /* @__PURE__ */ i.jsx(
|
|
8186
|
-
|
|
8188
|
+
Ce,
|
|
8187
8189
|
{
|
|
8188
8190
|
name: e || "",
|
|
8189
8191
|
control: r,
|
|
8190
8192
|
rules: t,
|
|
8191
8193
|
defaultValue: s,
|
|
8192
|
-
render: ({ field: w, fieldState:
|
|
8193
|
-
const v =
|
|
8194
|
+
render: ({ field: w, fieldState: N }) => {
|
|
8195
|
+
const v = N.error;
|
|
8194
8196
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
8195
8197
|
/* @__PURE__ */ i.jsxs("label", { className: "flex items-center space-x-2", children: [
|
|
8196
8198
|
/* @__PURE__ */ i.jsx(
|
|
@@ -8241,85 +8243,85 @@ function qi({
|
|
|
8241
8243
|
minChars: u = 3,
|
|
8242
8244
|
debounceMs: d = 600
|
|
8243
8245
|
}) {
|
|
8244
|
-
const p = wt(), { watch: m, getValues: y, setValue: x } = p, w = Fr({ control: e, name: r }), [
|
|
8246
|
+
const p = wt(), { watch: m, getValues: y, setValue: x } = p, w = Fr({ control: e, name: r }), [N, v] = ae([]), [g, S] = ae(!1), [$, F] = ae(!1), [B, Z] = ae(""), _ = ke(null), O = ke(null), J = ke(!1), U = ke(!1), M = ke(!0), Y = Fe(() => {
|
|
8245
8247
|
const h = /* @__PURE__ */ new Map();
|
|
8246
|
-
for (const
|
|
8248
|
+
for (const W of N) h.set(String(W.value).trim(), W.label ?? "");
|
|
8247
8249
|
return h;
|
|
8248
|
-
}, [
|
|
8249
|
-
const
|
|
8250
|
-
if (!
|
|
8250
|
+
}, [N]), K = async (h) => {
|
|
8251
|
+
const W = (h ?? "").trim();
|
|
8252
|
+
if (!W) {
|
|
8251
8253
|
v([]), F(!1);
|
|
8252
8254
|
return;
|
|
8253
8255
|
}
|
|
8254
8256
|
S(!0);
|
|
8255
8257
|
try {
|
|
8256
|
-
const j = await t(
|
|
8258
|
+
const j = await t(W, { watch: m, getValues: y });
|
|
8257
8259
|
v(j ?? []), F(!0);
|
|
8258
8260
|
} finally {
|
|
8259
8261
|
S(!1);
|
|
8260
8262
|
}
|
|
8261
8263
|
};
|
|
8262
8264
|
de(() => {
|
|
8263
|
-
function h(
|
|
8264
|
-
|
|
8265
|
+
function h(W) {
|
|
8266
|
+
_.current && !_.current.contains(W.target) && F(!1);
|
|
8265
8267
|
}
|
|
8266
|
-
if (
|
|
8268
|
+
if ($)
|
|
8267
8269
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
8268
|
-
}, [
|
|
8270
|
+
}, [$]), de(() => {
|
|
8269
8271
|
if (J.current) return;
|
|
8270
|
-
const
|
|
8271
|
-
if (!
|
|
8272
|
-
|
|
8272
|
+
const W = (w ? String(w) : "").trim();
|
|
8273
|
+
if (!W) {
|
|
8274
|
+
Z(""), F(!1);
|
|
8273
8275
|
return;
|
|
8274
8276
|
}
|
|
8275
|
-
const j = Y.get(
|
|
8277
|
+
const j = Y.get(W);
|
|
8276
8278
|
if (j) {
|
|
8277
|
-
|
|
8279
|
+
Z(j), F(!1), M.current = !0;
|
|
8278
8280
|
return;
|
|
8279
8281
|
}
|
|
8280
8282
|
let k = !1;
|
|
8281
8283
|
return (async () => {
|
|
8282
8284
|
if (s)
|
|
8283
8285
|
try {
|
|
8284
|
-
const C = await s(
|
|
8285
|
-
k || (
|
|
8286
|
+
const C = await s(W, { watch: m, getValues: y });
|
|
8287
|
+
k || (Z((C == null ? void 0 : C.label) ?? W), F(!1), M.current = !0);
|
|
8286
8288
|
} catch {
|
|
8287
|
-
k || (
|
|
8289
|
+
k || (Z(W), F(!1), M.current = !0);
|
|
8288
8290
|
}
|
|
8289
8291
|
else
|
|
8290
|
-
|
|
8292
|
+
Z(W), F(!1), M.current = !0;
|
|
8291
8293
|
})(), () => {
|
|
8292
8294
|
k = !0;
|
|
8293
8295
|
};
|
|
8294
8296
|
}, [w, Y, s, m, y]), de(() => {
|
|
8295
8297
|
if (c !== "debounced" || l) return;
|
|
8296
|
-
if (
|
|
8297
|
-
|
|
8298
|
+
if (M.current) {
|
|
8299
|
+
M.current = !1;
|
|
8298
8300
|
return;
|
|
8299
8301
|
}
|
|
8300
|
-
if (!
|
|
8301
|
-
|
|
8302
|
-
const h = (
|
|
8303
|
-
return h.length >= u ?
|
|
8302
|
+
if (!U.current) return;
|
|
8303
|
+
O.current && (window.clearTimeout(O.current), O.current = null);
|
|
8304
|
+
const h = (B || "").trim();
|
|
8305
|
+
return h.length >= u ? O.current = window.setTimeout(() => {
|
|
8304
8306
|
K(h);
|
|
8305
8307
|
}, d) : (v([]), F(!1)), () => {
|
|
8306
|
-
|
|
8308
|
+
O.current && (window.clearTimeout(O.current), O.current = null);
|
|
8307
8309
|
};
|
|
8308
|
-
}, [
|
|
8309
|
-
const
|
|
8310
|
+
}, [B, c, u, d, l]);
|
|
8311
|
+
const q = a === "sm" ? "text-ds-sm" : a === "md" ? "text-ds-md" : "text-ds-lg", H = a === "sm" ? "h-6" : a === "md" ? "h-10" : "h-12", A = (h) => {
|
|
8310
8312
|
if (l) return;
|
|
8311
|
-
const
|
|
8312
|
-
h.key === "Enter" && (h.preventDefault(), c === "debounced" ?
|
|
8313
|
+
const W = (B || "").trim();
|
|
8314
|
+
h.key === "Enter" && (h.preventDefault(), c === "debounced" ? W.length >= u && K(W) : K(W)), h.key === "Escape" && F(!1);
|
|
8313
8315
|
};
|
|
8314
8316
|
return /* @__PURE__ */ i.jsx(
|
|
8315
|
-
|
|
8317
|
+
Ce,
|
|
8316
8318
|
{
|
|
8317
8319
|
name: r,
|
|
8318
8320
|
control: e,
|
|
8319
|
-
render: ({ field: h, fieldState:
|
|
8321
|
+
render: ({ field: h, fieldState: W }) => {
|
|
8320
8322
|
var j;
|
|
8321
|
-
return /* @__PURE__ */ i.jsxs("div", { ref:
|
|
8322
|
-
n && /* @__PURE__ */ i.jsx("label", { className: `pb-2 text-[var(--color-ds-text-primary)] ${
|
|
8323
|
+
return /* @__PURE__ */ i.jsxs("div", { ref: _, className: "relative flex flex-col", style: { width: o }, children: [
|
|
8324
|
+
n && /* @__PURE__ */ i.jsx("label", { className: `pb-2 text-[var(--color-ds-text-primary)] ${q}`, children: n }),
|
|
8323
8325
|
/* @__PURE__ */ i.jsx(
|
|
8324
8326
|
Cr,
|
|
8325
8327
|
{
|
|
@@ -8327,21 +8329,21 @@ function qi({
|
|
|
8327
8329
|
type: "text",
|
|
8328
8330
|
size: a,
|
|
8329
8331
|
width: "100%",
|
|
8330
|
-
value:
|
|
8332
|
+
value: B,
|
|
8331
8333
|
onChange: (k) => {
|
|
8332
8334
|
const C = k.target.value;
|
|
8333
|
-
J.current = !0,
|
|
8335
|
+
J.current = !0, U.current = !0, Z(C), (w ? String(w) : "").trim() && x(r, "", { shouldDirty: !0 });
|
|
8334
8336
|
},
|
|
8335
8337
|
onKeyDown: A,
|
|
8336
8338
|
onBlur: () => {
|
|
8337
8339
|
J.current = !1;
|
|
8338
8340
|
},
|
|
8339
8341
|
disabled: l,
|
|
8340
|
-
hasError:
|
|
8341
|
-
errorMessage: (j =
|
|
8342
|
+
hasError: W.invalid,
|
|
8343
|
+
errorMessage: (j = W.error) == null ? void 0 : j.message,
|
|
8342
8344
|
onFocus: () => {
|
|
8343
|
-
if (J.current = !0, c === "button" &&
|
|
8344
|
-
const k = (
|
|
8345
|
+
if (J.current = !0, c === "button" && U.current) {
|
|
8346
|
+
const k = (B || "").trim();
|
|
8345
8347
|
k && K(k);
|
|
8346
8348
|
}
|
|
8347
8349
|
},
|
|
@@ -8352,7 +8354,7 @@ function qi({
|
|
|
8352
8354
|
className: "!rounded-l-none",
|
|
8353
8355
|
size: a,
|
|
8354
8356
|
variant: "primary",
|
|
8355
|
-
onClick: () => K((
|
|
8357
|
+
onClick: () => K((B || "").trim()),
|
|
8356
8358
|
disabled: l,
|
|
8357
8359
|
children: "Buscar"
|
|
8358
8360
|
}
|
|
@@ -8368,16 +8370,16 @@ function qi({
|
|
|
8368
8370
|
className: "rounded-lg"
|
|
8369
8371
|
}
|
|
8370
8372
|
) }),
|
|
8371
|
-
|
|
8373
|
+
$ && !g && N.length > 0 && /* @__PURE__ */ i.jsx(
|
|
8372
8374
|
"ul",
|
|
8373
8375
|
{
|
|
8374
8376
|
className: `
|
|
8375
8377
|
absolute top-14 left-0 right-0
|
|
8376
8378
|
border-[var(--color-ds-border-default)]
|
|
8377
8379
|
rounded-lg bg-[var(--color-ds-background-page)]
|
|
8378
|
-
shadow-lg ${
|
|
8380
|
+
shadow-lg ${q} max-h-48 overflow-auto z-10
|
|
8379
8381
|
`,
|
|
8380
|
-
children:
|
|
8382
|
+
children: N.map((k) => /* @__PURE__ */ i.jsx(
|
|
8381
8383
|
"li",
|
|
8382
8384
|
{
|
|
8383
8385
|
className: `px-2 ${H} flex items-center cursor-pointer
|
|
@@ -8385,7 +8387,7 @@ function qi({
|
|
|
8385
8387
|
hover:bg-[var(--color-ds-background-surface)]`,
|
|
8386
8388
|
onClick: () => {
|
|
8387
8389
|
const C = String(k.value).trim();
|
|
8388
|
-
x(r, C, { shouldDirty: !0, shouldValidate: !0 }),
|
|
8390
|
+
x(r, C, { shouldDirty: !0, shouldValidate: !0 }), Z(k.label ?? C), J.current = !1, U.current = !1, F(!1);
|
|
8389
8391
|
},
|
|
8390
8392
|
children: k.label
|
|
8391
8393
|
},
|
|
@@ -8458,22 +8460,22 @@ function ll({
|
|
|
8458
8460
|
defaultValues: c ?? {}
|
|
8459
8461
|
}), {
|
|
8460
8462
|
control: w,
|
|
8461
|
-
reset:
|
|
8463
|
+
reset: N,
|
|
8462
8464
|
handleSubmit: v,
|
|
8463
8465
|
formState: { errors: g, isSubmitting: S }
|
|
8464
|
-
} = x, [
|
|
8466
|
+
} = x, [$, F] = ae(!1);
|
|
8465
8467
|
de(() => {
|
|
8466
|
-
u && (F(!0), u().then((A) =>
|
|
8467
|
-
}, [u,
|
|
8468
|
-
const
|
|
8468
|
+
u && (F(!0), u().then((A) => N(A)).finally(() => F(!1)));
|
|
8469
|
+
}, [u, N]);
|
|
8470
|
+
const B = Fe(
|
|
8469
8471
|
() => (s ?? []).filter(Yi),
|
|
8470
8472
|
[s]
|
|
8471
|
-
), { loadingCount:
|
|
8473
|
+
), { loadingCount: Z, optionsMap: _ } = Mi(B), O = Vi(s), J = Bi(s, w), U = Fe(() => {
|
|
8472
8474
|
const A = {};
|
|
8473
|
-
return t.forEach((h,
|
|
8474
|
-
h.type === "tabs" && (A[
|
|
8475
|
+
return t.forEach((h, W) => {
|
|
8476
|
+
h.type === "tabs" && (A[W] = h.tabs[0].key);
|
|
8475
8477
|
}), A;
|
|
8476
|
-
}, [t]), [
|
|
8478
|
+
}, [t]), [M, Y] = ae(U), K = or(
|
|
8477
8479
|
(A, h) => {
|
|
8478
8480
|
if (!(A != null && A.enabled) || !A.rule) return h;
|
|
8479
8481
|
try {
|
|
@@ -8483,7 +8485,7 @@ function ll({
|
|
|
8483
8485
|
}
|
|
8484
8486
|
},
|
|
8485
8487
|
[x]
|
|
8486
|
-
),
|
|
8488
|
+
), q = Fe(
|
|
8487
8489
|
() => s.map((A) => A).filter((A) => {
|
|
8488
8490
|
var h;
|
|
8489
8491
|
return ((h = A.clearWhen) == null ? void 0 : h.enabled) && A.clearWhen.rule;
|
|
@@ -8495,13 +8497,13 @@ function ll({
|
|
|
8495
8497
|
[s]
|
|
8496
8498
|
);
|
|
8497
8499
|
de(() => {
|
|
8498
|
-
if (!
|
|
8499
|
-
const A = (
|
|
8500
|
-
|
|
8500
|
+
if (!q.length) return;
|
|
8501
|
+
const A = (W) => {
|
|
8502
|
+
q.forEach(({ name: j, rule: k, clearTo: C }) => {
|
|
8501
8503
|
try {
|
|
8502
|
-
if (!!Wt(k,
|
|
8504
|
+
if (!!Wt(k, W)) {
|
|
8503
8505
|
const Q = C ?? "";
|
|
8504
|
-
|
|
8506
|
+
W[j] !== Q && x.setValue(j, Q, {
|
|
8505
8507
|
shouldDirty: !0,
|
|
8506
8508
|
shouldValidate: !0
|
|
8507
8509
|
});
|
|
@@ -8513,21 +8515,21 @@ function ll({
|
|
|
8513
8515
|
A(x.getValues());
|
|
8514
8516
|
const h = x.watch(() => A(x.getValues()));
|
|
8515
8517
|
return () => {
|
|
8516
|
-
var
|
|
8517
|
-
return (
|
|
8518
|
+
var W;
|
|
8519
|
+
return (W = h == null ? void 0 : h.unsubscribe) == null ? void 0 : W.call(h);
|
|
8518
8520
|
};
|
|
8519
|
-
}, [x,
|
|
8521
|
+
}, [x, q]);
|
|
8520
8522
|
const H = or(
|
|
8521
8523
|
(A) => {
|
|
8522
|
-
var se, oe,
|
|
8524
|
+
var se, oe, xe, ye;
|
|
8523
8525
|
let h;
|
|
8524
8526
|
if (typeof A == "string") {
|
|
8525
|
-
if (h =
|
|
8527
|
+
if (h = O[A], !h) return null;
|
|
8526
8528
|
} else
|
|
8527
8529
|
h = A;
|
|
8528
|
-
const
|
|
8530
|
+
const W = h.visibleWhen;
|
|
8529
8531
|
if (!K(
|
|
8530
|
-
|
|
8532
|
+
W,
|
|
8531
8533
|
/* default visible */
|
|
8532
8534
|
!0
|
|
8533
8535
|
)) return null;
|
|
@@ -8538,7 +8540,7 @@ function ll({
|
|
|
8538
8540
|
!1
|
|
8539
8541
|
);
|
|
8540
8542
|
if (C != null && C.enabled && (k = D), !(C != null && C.enabled) && "name" in h && h.name && J[h.name] && (k = !0), h.type === "search") {
|
|
8541
|
-
const te = (
|
|
8543
|
+
const te = ($e) => h.searchFn($e, {
|
|
8542
8544
|
getValues: x.getValues,
|
|
8543
8545
|
watch: x.watch
|
|
8544
8546
|
}), fe = {};
|
|
@@ -8558,37 +8560,37 @@ function ll({
|
|
|
8558
8560
|
);
|
|
8559
8561
|
}
|
|
8560
8562
|
if (h.type === "inputGroup") {
|
|
8561
|
-
const te = h, fe = te.inputs.map((
|
|
8563
|
+
const te = h, fe = te.inputs.map(($e) => {
|
|
8562
8564
|
var dt;
|
|
8563
|
-
const
|
|
8564
|
-
if (!
|
|
8565
|
-
const Me =
|
|
8566
|
-
let ut = !!
|
|
8565
|
+
const he = typeof $e == "string" ? O[$e] : $e;
|
|
8566
|
+
if (!he) return null;
|
|
8567
|
+
const Me = he.disabledWhen;
|
|
8568
|
+
let ut = !!he.disabled;
|
|
8567
8569
|
const Yt = K(Me, !1);
|
|
8568
|
-
Me != null && Me.enabled && (ut = Yt), !(Me != null && Me.enabled) && J[
|
|
8570
|
+
Me != null && Me.enabled && (ut = Yt), !(Me != null && Me.enabled) && J[he.name] && (ut = !0);
|
|
8569
8571
|
const Ht = {
|
|
8570
|
-
name:
|
|
8572
|
+
name: he.name,
|
|
8571
8573
|
control: w,
|
|
8572
|
-
label:
|
|
8573
|
-
size:
|
|
8574
|
-
width:
|
|
8575
|
-
placeholder:
|
|
8576
|
-
hasError: !!g[
|
|
8577
|
-
errorMessage: ((dt = g[
|
|
8578
|
-
loading:
|
|
8574
|
+
label: he.label,
|
|
8575
|
+
size: he.size,
|
|
8576
|
+
width: he.width,
|
|
8577
|
+
placeholder: he.placeholder,
|
|
8578
|
+
hasError: !!g[he.name],
|
|
8579
|
+
errorMessage: ((dt = g[he.name]) == null ? void 0 : dt.message) || "",
|
|
8580
|
+
loading: $,
|
|
8579
8581
|
disabled: ut,
|
|
8580
|
-
suffixButton:
|
|
8582
|
+
suffixButton: he.suffixButton,
|
|
8581
8583
|
reserveErrorSpace: !0
|
|
8582
8584
|
};
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
}).filter(
|
|
8585
|
+
return he.type === "select" ? {
|
|
8586
|
+
...Ht,
|
|
8587
|
+
options: he.options ?? _[he.name] ?? [],
|
|
8588
|
+
loadOptions: he.options ? void 0 : he.loadOptions
|
|
8589
|
+
} : {
|
|
8590
|
+
...Ht,
|
|
8591
|
+
type: he.type
|
|
8592
|
+
};
|
|
8593
|
+
}).filter(Boolean);
|
|
8592
8594
|
return /* @__PURE__ */ i.jsx(
|
|
8593
8595
|
yi,
|
|
8594
8596
|
{
|
|
@@ -8635,7 +8637,7 @@ function ll({
|
|
|
8635
8637
|
switch (h.type) {
|
|
8636
8638
|
case "select":
|
|
8637
8639
|
return /* @__PURE__ */ i.jsx(
|
|
8638
|
-
|
|
8640
|
+
Ce,
|
|
8639
8641
|
{
|
|
8640
8642
|
name: h.name,
|
|
8641
8643
|
control: w,
|
|
@@ -8647,7 +8649,7 @@ function ll({
|
|
|
8647
8649
|
...ue,
|
|
8648
8650
|
value: te.value,
|
|
8649
8651
|
onChange: te.onChange,
|
|
8650
|
-
options: h.options ??
|
|
8652
|
+
options: h.options ?? _[h.name] ?? [],
|
|
8651
8653
|
loadOptions: h.options ? void 0 : h.loadOptions,
|
|
8652
8654
|
hasError: !!g[h.name],
|
|
8653
8655
|
errorMessage: (fe = g[h.name]) == null ? void 0 : fe.message,
|
|
@@ -8660,12 +8662,12 @@ function ll({
|
|
|
8660
8662
|
);
|
|
8661
8663
|
case "textarea":
|
|
8662
8664
|
return /* @__PURE__ */ i.jsx(
|
|
8663
|
-
|
|
8665
|
+
Ce,
|
|
8664
8666
|
{
|
|
8665
8667
|
name: h.name,
|
|
8666
8668
|
control: w,
|
|
8667
8669
|
render: ({ field: te, fieldState: fe }) => {
|
|
8668
|
-
var
|
|
8670
|
+
var $e;
|
|
8669
8671
|
return /* @__PURE__ */ i.jsx(
|
|
8670
8672
|
jn,
|
|
8671
8673
|
{
|
|
@@ -8675,7 +8677,7 @@ function ll({
|
|
|
8675
8677
|
maxLength: h.maxLength,
|
|
8676
8678
|
showCounter: !!h.showCounter,
|
|
8677
8679
|
hasError: !!fe.error,
|
|
8678
|
-
errorMessage: ((
|
|
8680
|
+
errorMessage: (($e = fe.error) == null ? void 0 : $e.message) || ""
|
|
8679
8681
|
}
|
|
8680
8682
|
);
|
|
8681
8683
|
}
|
|
@@ -8715,7 +8717,7 @@ function ll({
|
|
|
8715
8717
|
defaultValue: "",
|
|
8716
8718
|
showTime: !!h.showTime,
|
|
8717
8719
|
hasError: !!g[h.name],
|
|
8718
|
-
errorMessage: (
|
|
8720
|
+
errorMessage: (xe = g[h.name]) == null ? void 0 : xe.message
|
|
8719
8721
|
},
|
|
8720
8722
|
h.name
|
|
8721
8723
|
);
|
|
@@ -8740,7 +8742,7 @@ function ll({
|
|
|
8740
8742
|
{
|
|
8741
8743
|
...ue,
|
|
8742
8744
|
type: h.type,
|
|
8743
|
-
loadingDefaults:
|
|
8745
|
+
loadingDefaults: $,
|
|
8744
8746
|
hasError: !!g[h.name],
|
|
8745
8747
|
errorMessage: (ye = g[h.name]) == null ? void 0 : ye.message,
|
|
8746
8748
|
suffixButton: re,
|
|
@@ -8751,12 +8753,12 @@ function ll({
|
|
|
8751
8753
|
}
|
|
8752
8754
|
},
|
|
8753
8755
|
[
|
|
8754
|
-
|
|
8756
|
+
O,
|
|
8755
8757
|
w,
|
|
8756
8758
|
g,
|
|
8757
8759
|
S,
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
+
$,
|
|
8761
|
+
_,
|
|
8760
8762
|
K,
|
|
8761
8763
|
J,
|
|
8762
8764
|
x.getValues,
|
|
@@ -8778,12 +8780,12 @@ function ll({
|
|
|
8778
8780
|
className: "space-y-6",
|
|
8779
8781
|
children: [
|
|
8780
8782
|
t.map(
|
|
8781
|
-
(A, h) => A.type === "rows" ? /* @__PURE__ */ i.jsx(ne.Fragment, { children: A.sections.map((
|
|
8783
|
+
(A, h) => A.type === "rows" ? /* @__PURE__ */ i.jsx(ne.Fragment, { children: A.sections.map((W, j) => /* @__PURE__ */ i.jsx("div", { className: "mb-6", children: /* @__PURE__ */ i.jsx(
|
|
8782
8784
|
Lr,
|
|
8783
8785
|
{
|
|
8784
|
-
title:
|
|
8785
|
-
defaultOpen:
|
|
8786
|
-
children:
|
|
8786
|
+
title: W.sectionTitle,
|
|
8787
|
+
defaultOpen: W.defaultOpen,
|
|
8788
|
+
children: W.rows.map((k, C) => /* @__PURE__ */ i.jsxs("div", { children: [
|
|
8787
8789
|
k.title && /* @__PURE__ */ i.jsx("h2", { className: "mb-2 text-lg text-[var(--color-ds-text-primary)]", children: k.title }),
|
|
8788
8790
|
/* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children: k.columns.map((D, Q) => {
|
|
8789
8791
|
var re;
|
|
@@ -8792,7 +8794,7 @@ function ll({
|
|
|
8792
8794
|
{
|
|
8793
8795
|
className: `${D.width} px-2 flex flex-col`,
|
|
8794
8796
|
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children: D.fields ? D.fields.map((ue) => H(ue)) : (re = D.rows) == null ? void 0 : re.map((ue, se) => /* @__PURE__ */ i.jsx("div", { className: "mb-1", children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children: ue.columns.map(
|
|
8795
|
-
(oe,
|
|
8797
|
+
(oe, xe) => {
|
|
8796
8798
|
var ye;
|
|
8797
8799
|
return /* @__PURE__ */ i.jsx(
|
|
8798
8800
|
"div",
|
|
@@ -8802,7 +8804,7 @@ function ll({
|
|
|
8802
8804
|
(te) => H(te)
|
|
8803
8805
|
)
|
|
8804
8806
|
},
|
|
8805
|
-
|
|
8807
|
+
xe
|
|
8806
8808
|
);
|
|
8807
8809
|
}
|
|
8808
8810
|
) }) }, se)) })
|
|
@@ -8815,13 +8817,13 @@ function ll({
|
|
|
8815
8817
|
) }, j)) }, h) : /* @__PURE__ */ i.jsx(
|
|
8816
8818
|
gi,
|
|
8817
8819
|
{
|
|
8818
|
-
options: A.tabs.map((
|
|
8819
|
-
value:
|
|
8820
|
-
onChange: (
|
|
8820
|
+
options: A.tabs.map((W) => ({ label: W.label, value: W.key })),
|
|
8821
|
+
value: M[h],
|
|
8822
|
+
onChange: (W) => Y((j) => ({ ...j, [h]: W })),
|
|
8821
8823
|
children: Object.fromEntries(
|
|
8822
|
-
A.tabs.map((
|
|
8823
|
-
|
|
8824
|
-
/* @__PURE__ */ i.jsx("div", { className: "space-y-6", children:
|
|
8824
|
+
A.tabs.map((W) => [
|
|
8825
|
+
W.key,
|
|
8826
|
+
/* @__PURE__ */ i.jsx("div", { className: "space-y-6", children: W.sections.map((j, k) => /* @__PURE__ */ i.jsx("div", { className: "mb-6", children: /* @__PURE__ */ i.jsx(
|
|
8825
8827
|
Lr,
|
|
8826
8828
|
{
|
|
8827
8829
|
title: j.sectionTitle,
|
|
@@ -8838,7 +8840,7 @@ function ll({
|
|
|
8838
8840
|
);
|
|
8839
8841
|
}) }) }, D))
|
|
8840
8842
|
}
|
|
8841
|
-
) }, k)) },
|
|
8843
|
+
) }, k)) }, W.key)
|
|
8842
8844
|
])
|
|
8843
8845
|
)
|
|
8844
8846
|
},
|
|
@@ -8852,7 +8854,7 @@ function ll({
|
|
|
8852
8854
|
variant: "primary",
|
|
8853
8855
|
icon: zn,
|
|
8854
8856
|
size: "sm",
|
|
8855
|
-
disabled: S ||
|
|
8857
|
+
disabled: S || $ || Z > 0,
|
|
8856
8858
|
children: m(S ? "ds.form.sending" : "ds.form.submit")
|
|
8857
8859
|
}
|
|
8858
8860
|
) })
|
|
@@ -8932,7 +8934,7 @@ function Ki({ dark: r, onToggle: e }) {
|
|
|
8932
8934
|
),
|
|
8933
8935
|
children: [
|
|
8934
8936
|
/* @__PURE__ */ i.jsx(
|
|
8935
|
-
|
|
8937
|
+
Ue,
|
|
8936
8938
|
{
|
|
8937
8939
|
component: oa,
|
|
8938
8940
|
size: "sm",
|
|
@@ -8943,7 +8945,7 @@ function Ki({ dark: r, onToggle: e }) {
|
|
|
8943
8945
|
}
|
|
8944
8946
|
),
|
|
8945
8947
|
/* @__PURE__ */ i.jsx(
|
|
8946
|
-
|
|
8948
|
+
Ue,
|
|
8947
8949
|
{
|
|
8948
8950
|
component: na,
|
|
8949
8951
|
size: "sm",
|
|
@@ -9263,54 +9265,54 @@ function hl({
|
|
|
9263
9265
|
className: d,
|
|
9264
9266
|
onRowDoubleClick: p
|
|
9265
9267
|
}) {
|
|
9266
|
-
const m = e !== void 0, [y, x] = ae([]), [w,
|
|
9268
|
+
const m = e !== void 0, [y, x] = ae([]), [w, N] = ae(!1), v = ke(null);
|
|
9267
9269
|
de(() => {
|
|
9268
9270
|
var C;
|
|
9269
9271
|
if (!t || m) return;
|
|
9270
9272
|
(C = v.current) == null || C.abort();
|
|
9271
9273
|
const k = new AbortController();
|
|
9272
|
-
return v.current = k,
|
|
9274
|
+
return v.current = k, N(!0), t().then((D) => {
|
|
9273
9275
|
k.signal.aborted || x(D);
|
|
9274
9276
|
}).finally(() => {
|
|
9275
|
-
k.signal.aborted ||
|
|
9277
|
+
k.signal.aborted || N(!1);
|
|
9276
9278
|
}), () => k.abort();
|
|
9277
9279
|
}, [t, m]);
|
|
9278
|
-
const g = Fe(() => m ? e : y, [e, y, m]), S = s ?? (t ? w : !1), [
|
|
9280
|
+
const g = Fe(() => m ? e : y, [e, y, m]), S = s ?? (t ? w : !1), [$, F] = ae(/* @__PURE__ */ new Set()), [B, Z] = ae(1), [_, O] = ae(c == null ? void 0 : c.sortBy), [J, U] = ae((c == null ? void 0 : c.sortDir) ?? "asc"), M = (k) => typeof n == "function" ? n(k) : k[n], Y = ke(null);
|
|
9279
9281
|
de(() => {
|
|
9280
|
-
Y.current !== g && (F(/* @__PURE__ */ new Set()),
|
|
9282
|
+
Y.current !== g && (F(/* @__PURE__ */ new Set()), Z(1), Y.current = g);
|
|
9281
9283
|
}, [g]);
|
|
9282
9284
|
const K = Fe(() => {
|
|
9283
|
-
if (!
|
|
9285
|
+
if (!_) return g;
|
|
9284
9286
|
const k = J === "asc" ? 1 : -1;
|
|
9285
9287
|
return [...g].sort((C, D) => {
|
|
9286
|
-
const Q = C[
|
|
9288
|
+
const Q = C[_], re = D[_];
|
|
9287
9289
|
return Q == null ? -k : re == null || Q > re ? k : Q < re ? -k : 0;
|
|
9288
9290
|
});
|
|
9289
|
-
}, [g,
|
|
9290
|
-
const k = (
|
|
9291
|
+
}, [g, _, J]), q = Math.max(1, Math.ceil(K.length / l)), H = Fe(() => {
|
|
9292
|
+
const k = (B - 1) * l;
|
|
9291
9293
|
return K.slice(k, k + l);
|
|
9292
|
-
}, [K,
|
|
9293
|
-
const C = new Set(
|
|
9294
|
-
C.has(k) ? C.delete(k) : C.add(k), F(C), o == null || o(g.filter((D) => C.has(
|
|
9294
|
+
}, [K, B, l]), A = (k) => {
|
|
9295
|
+
const C = new Set($);
|
|
9296
|
+
C.has(k) ? C.delete(k) : C.add(k), F(C), o == null || o(g.filter((D) => C.has(M(D))));
|
|
9295
9297
|
}, h = () => {
|
|
9296
|
-
const k = H.every((D) =>
|
|
9298
|
+
const k = H.every((D) => $.has(M(D))), C = new Set($);
|
|
9297
9299
|
H.forEach((D) => {
|
|
9298
|
-
k ? C.delete(
|
|
9299
|
-
}), F(C), o == null || o(g.filter((D) => C.has(
|
|
9300
|
-
},
|
|
9300
|
+
k ? C.delete(M(D)) : C.add(M(D));
|
|
9301
|
+
}), F(C), o == null || o(g.filter((D) => C.has(M(D))));
|
|
9302
|
+
}, W = (k) => {
|
|
9301
9303
|
if (!k.sortable) return;
|
|
9302
9304
|
const C = typeof k.accessor == "string" ? k.accessor : k.sortKey;
|
|
9303
|
-
if (
|
|
9305
|
+
if (_ === C) {
|
|
9304
9306
|
const D = J === "asc" ? "desc" : "asc";
|
|
9305
|
-
|
|
9307
|
+
U(D), u == null || u(C, D);
|
|
9306
9308
|
} else
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
+
O(C), U("asc"), u == null || u(C, "asc");
|
|
9310
|
+
Z(1);
|
|
9309
9311
|
}, j = () => S ? /* @__PURE__ */ i.jsx("tbody", { children: Array.from({ length: l }).map((k, C) => /* @__PURE__ */ i.jsxs("tr", { children: [
|
|
9310
9312
|
a && /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(it, { width: "1rem", height: "1rem", variant: "circle" }) }),
|
|
9311
9313
|
r.map((D, Q) => /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(it, { width: "100%", height: "1em", variant: "rect" }) }, Q))
|
|
9312
9314
|
] }, C)) }) : H.length ? /* @__PURE__ */ i.jsx("tbody", { children: H.map((k) => {
|
|
9313
|
-
const C =
|
|
9315
|
+
const C = M(k);
|
|
9314
9316
|
return /* @__PURE__ */ i.jsxs(
|
|
9315
9317
|
"tr",
|
|
9316
9318
|
{
|
|
@@ -9325,7 +9327,7 @@ function hl({
|
|
|
9325
9327
|
"input",
|
|
9326
9328
|
{
|
|
9327
9329
|
type: "checkbox",
|
|
9328
|
-
checked:
|
|
9330
|
+
checked: $.has(C),
|
|
9329
9331
|
onChange: () => A(C),
|
|
9330
9332
|
onDoubleClick: (D) => D.stopPropagation()
|
|
9331
9333
|
}
|
|
@@ -9353,18 +9355,18 @@ function hl({
|
|
|
9353
9355
|
"input",
|
|
9354
9356
|
{
|
|
9355
9357
|
type: "checkbox",
|
|
9356
|
-
checked: H.length > 0 && H.every((k) =>
|
|
9358
|
+
checked: H.length > 0 && H.every((k) => $.has(M(k))),
|
|
9357
9359
|
onChange: h,
|
|
9358
9360
|
onDoubleClick: (k) => k.stopPropagation()
|
|
9359
9361
|
}
|
|
9360
9362
|
) }),
|
|
9361
9363
|
r.map((k) => {
|
|
9362
|
-
const C = typeof k.accessor == "string" ? k.accessor : k.header, D =
|
|
9364
|
+
const C = typeof k.accessor == "string" ? k.accessor : k.header, D = _ === (typeof k.accessor == "string" ? k.accessor : k.sortKey);
|
|
9363
9365
|
return /* @__PURE__ */ i.jsx(
|
|
9364
9366
|
"th",
|
|
9365
9367
|
{
|
|
9366
9368
|
className: I("px-4 py-2 text-left text-sm font-medium text-gray-700", k.width),
|
|
9367
|
-
onClick: () =>
|
|
9369
|
+
onClick: () => W(k),
|
|
9368
9370
|
children: /* @__PURE__ */ i.jsxs("div", { className: "inline-flex items-center space-x-1 cursor-pointer", children: [
|
|
9369
9371
|
/* @__PURE__ */ i.jsx("span", { children: k.header }),
|
|
9370
9372
|
k.sortable && /* @__PURE__ */ i.jsx("span", { className: "text-xs", children: D ? J === "asc" ? "▲" : "▼" : "⇵" })
|
|
@@ -9377,10 +9379,10 @@ function hl({
|
|
|
9377
9379
|
j()
|
|
9378
9380
|
] }),
|
|
9379
9381
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between py-2 px-4", children: [
|
|
9380
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: S ? "Cargando..." : `Página ${
|
|
9382
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: S ? "Cargando..." : `Página ${B} de ${q}` }),
|
|
9381
9383
|
/* @__PURE__ */ i.jsxs("div", { className: "space-x-2", children: [
|
|
9382
|
-
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S ||
|
|
9383
|
-
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S ||
|
|
9384
|
+
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S || B <= 1, onClick: () => Z((k) => Math.max(1, k - 1)), children: "Prev" }),
|
|
9385
|
+
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S || B >= q, onClick: () => Z((k) => Math.min(q, k + 1)), children: "Next" })
|
|
9384
9386
|
] })
|
|
9385
9387
|
] })
|
|
9386
9388
|
] });
|
|
@@ -9401,7 +9403,7 @@ function rl({
|
|
|
9401
9403
|
const p = et();
|
|
9402
9404
|
if (r && e)
|
|
9403
9405
|
return /* @__PURE__ */ i.jsx(
|
|
9404
|
-
|
|
9406
|
+
Ce,
|
|
9405
9407
|
{
|
|
9406
9408
|
name: e,
|
|
9407
9409
|
control: r,
|
|
@@ -9482,19 +9484,19 @@ function ml({
|
|
|
9482
9484
|
), [l, c] = ae(o), u = e ?? l, d = (x) => {
|
|
9483
9485
|
t ? t(x) : c(x);
|
|
9484
9486
|
}, p = (x, w) => {
|
|
9485
|
-
w && d(s ? u.includes(x) ? u.filter((
|
|
9486
|
-
}, m = (x, w,
|
|
9487
|
-
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p(w,
|
|
9487
|
+
w && d(s ? u.includes(x) ? u.filter((N) => N !== x) : [...u, x] : u.includes(x) ? [] : [x]);
|
|
9488
|
+
}, m = (x, w, N) => {
|
|
9489
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p(w, N));
|
|
9488
9490
|
}, y = n ? "py-1" : "py-2";
|
|
9489
9491
|
return /* @__PURE__ */ i.jsx("div", { className: ["divide-y", "divide-[var(--color-ds-border-default-50)]", a].filter(Boolean).join(" "), children: r.map((x) => {
|
|
9490
|
-
const w = u.includes(x.id),
|
|
9492
|
+
const w = u.includes(x.id), N = !x.disabled;
|
|
9491
9493
|
return /* @__PURE__ */ i.jsxs("section", { "aria-disabled": x.disabled || void 0, children: [
|
|
9492
9494
|
/* @__PURE__ */ i.jsxs(
|
|
9493
9495
|
"button",
|
|
9494
9496
|
{
|
|
9495
9497
|
type: "button",
|
|
9496
|
-
onClick: () => p(x.id,
|
|
9497
|
-
onKeyDown: (v) => m(v, x.id,
|
|
9498
|
+
onClick: () => p(x.id, N),
|
|
9499
|
+
onKeyDown: (v) => m(v, x.id, N),
|
|
9498
9500
|
"aria-expanded": w,
|
|
9499
9501
|
className: [
|
|
9500
9502
|
"w-full flex items-center justify-between gap-2 text-left select-none",
|
|
@@ -9539,7 +9541,7 @@ export {
|
|
|
9539
9541
|
ol as FormPageLayout,
|
|
9540
9542
|
ll as FormRenderer,
|
|
9541
9543
|
Ji as Header,
|
|
9542
|
-
|
|
9544
|
+
Ue as Icon,
|
|
9543
9545
|
Xi as IconButton,
|
|
9544
9546
|
Co as InfoButton,
|
|
9545
9547
|
Cr as Input,
|