@dipusevilla/componentes-iu 1.0.36 → 1.0.37
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 +7 -7
- package/dist/index.es.js +754 -751
- package/dist/index.umd.js +8 -8
- package/dist/types/components/InputGroup.d.ts +13 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -63,9 +63,9 @@ function On() {
|
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case F:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case P:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case M:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof j == "object")
|
|
@@ -78,7 +78,7 @@ 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 O:
|
|
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
84
|
case q:
|
|
@@ -131,7 +131,7 @@ function On() {
|
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function o(j) {
|
|
134
|
-
if (
|
|
134
|
+
if ($.call(j, "key")) {
|
|
135
135
|
var k = Object.getOwnPropertyDescriptor(j, "key").get;
|
|
136
136
|
if (k && k.isReactWarning) return !1;
|
|
137
137
|
}
|
|
@@ -155,7 +155,7 @@ function On() {
|
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), j = this.props.ref, j !== void 0 ? j : null;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function u(j, k, C, D, Q, re, ue, se) {
|
|
159
159
|
return C = re.ref, j = {
|
|
160
160
|
$$typeof: y,
|
|
161
161
|
type: j,
|
|
@@ -187,7 +187,7 @@ function On() {
|
|
|
187
187
|
value: se
|
|
188
188
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function d(j, k, C, D, Q, re, ue, se) {
|
|
191
191
|
var oe = k.children;
|
|
192
192
|
if (oe !== void 0)
|
|
193
193
|
if (D)
|
|
@@ -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 ($.call(k, "key")) {
|
|
204
204
|
oe = r(j);
|
|
205
|
-
var
|
|
205
|
+
var pe = Object.keys(k).filter(function(te) {
|
|
206
206
|
return te !== "key";
|
|
207
207
|
});
|
|
208
|
-
D = 0 <
|
|
208
|
+
D = 0 < pe.length ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}", Z[oe + D] || (pe = 0 < pe.length ? "{" + pe.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,7 +214,7 @@ 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
|
+
pe,
|
|
218
218
|
oe
|
|
219
219
|
), Z[oe + D] = !0);
|
|
220
220
|
}
|
|
@@ -226,7 +226,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
226
226
|
return oe && l(
|
|
227
227
|
C,
|
|
228
228
|
typeof j == "function" ? j.displayName || j.name || "Unknown" : j
|
|
229
|
-
),
|
|
229
|
+
), u(
|
|
230
230
|
j,
|
|
231
231
|
oe,
|
|
232
232
|
re,
|
|
@@ -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"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), S = Symbol.for("react.context"),
|
|
243
|
+
var m = ne, y = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), S = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), J = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, Y = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
m = {
|
|
@@ -254,7 +254,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
254
254
|
)(), h = K(s(a)), Z = {};
|
|
255
255
|
ht.Fragment = w, ht.jsx = function(j, k, C, D, Q) {
|
|
256
256
|
var re = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
257
|
-
return
|
|
257
|
+
return d(
|
|
258
258
|
j,
|
|
259
259
|
k,
|
|
260
260
|
C,
|
|
@@ -266,7 +266,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
266
266
|
);
|
|
267
267
|
}, ht.jsxs = function(j, k, C, D, Q) {
|
|
268
268
|
var re = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
269
|
-
return
|
|
269
|
+
return d(
|
|
270
270
|
j,
|
|
271
271
|
k,
|
|
272
272
|
C,
|
|
@@ -348,15 +348,15 @@ function He({
|
|
|
348
348
|
iconPosition: o = "left",
|
|
349
349
|
ariaLabel: l,
|
|
350
350
|
children: c,
|
|
351
|
-
onClick:
|
|
352
|
-
className:
|
|
351
|
+
onClick: u,
|
|
352
|
+
className: d
|
|
353
353
|
}) {
|
|
354
354
|
const p = !!a, m = p && !c, y = m ? In[t] : Dn[t];
|
|
355
355
|
return /* @__PURE__ */ i.jsxs(
|
|
356
356
|
"button",
|
|
357
357
|
{
|
|
358
358
|
type: r,
|
|
359
|
-
onClick:
|
|
359
|
+
onClick: u,
|
|
360
360
|
disabled: n,
|
|
361
361
|
"aria-label": m ? l : void 0,
|
|
362
362
|
style: s ? { width: s } : void 0,
|
|
@@ -365,7 +365,7 @@ function He({
|
|
|
365
365
|
Mn[e],
|
|
366
366
|
y,
|
|
367
367
|
Ln,
|
|
368
|
-
|
|
368
|
+
d,
|
|
369
369
|
p && c && "gap-2"
|
|
370
370
|
),
|
|
371
371
|
children: [
|
|
@@ -726,13 +726,13 @@ function Lr({
|
|
|
726
726
|
contentClassName: a,
|
|
727
727
|
headerClassName: o
|
|
728
728
|
}) {
|
|
729
|
-
const [l, c] = ae(t),
|
|
730
|
-
|
|
729
|
+
const [l, c] = ae(t), u = ke(null), [d, p] = ae(0), m = () => {
|
|
730
|
+
u.current && p(u.current.scrollHeight);
|
|
731
731
|
};
|
|
732
732
|
Ns(() => {
|
|
733
733
|
m();
|
|
734
734
|
}, [l]), de(() => {
|
|
735
|
-
const x =
|
|
735
|
+
const x = u.current;
|
|
736
736
|
if (!x) return;
|
|
737
737
|
const w = new ResizeObserver(() => m());
|
|
738
738
|
return w.observe(x), () => w.disconnect();
|
|
@@ -766,11 +766,11 @@ function Lr({
|
|
|
766
766
|
"overflow-hidden transition-all duration-300 ease-in-out",
|
|
767
767
|
l ? "opacity-100" : "opacity-0"
|
|
768
768
|
),
|
|
769
|
-
style: { maxHeight: l ? `${
|
|
769
|
+
style: { maxHeight: l ? `${d}px` : "0px" },
|
|
770
770
|
children: /* @__PURE__ */ i.jsx(
|
|
771
771
|
"div",
|
|
772
772
|
{
|
|
773
|
-
ref:
|
|
773
|
+
ref: u,
|
|
774
774
|
className: I(y.padY, a),
|
|
775
775
|
children: e
|
|
776
776
|
}
|
|
@@ -885,7 +885,7 @@ const jr = "-", ca = (r) => {
|
|
|
885
885
|
} = r;
|
|
886
886
|
let s = (n) => {
|
|
887
887
|
const a = [];
|
|
888
|
-
let o = 0, l = 0, c = 0,
|
|
888
|
+
let o = 0, l = 0, c = 0, u;
|
|
889
889
|
for (let x = 0; x < n.length; x++) {
|
|
890
890
|
let w = n[x];
|
|
891
891
|
if (o === 0 && l === 0) {
|
|
@@ -894,13 +894,13 @@ const jr = "-", ca = (r) => {
|
|
|
894
894
|
continue;
|
|
895
895
|
}
|
|
896
896
|
if (w === "/") {
|
|
897
|
-
|
|
897
|
+
u = x;
|
|
898
898
|
continue;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
w === "[" ? o++ : w === "]" ? o-- : w === "(" ? l++ : w === ")" && l--;
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const d = a.length === 0 ? n : n.substring(c), p = xa(d), m = p !== d, y = u && u > c ? u - c : void 0;
|
|
904
904
|
return {
|
|
905
905
|
modifiers: a,
|
|
906
906
|
hasImportantModifier: m,
|
|
@@ -950,40 +950,40 @@ const jr = "-", ca = (r) => {
|
|
|
950
950
|
sortModifiers: a
|
|
951
951
|
} = e, o = [], l = r.trim().split(ya);
|
|
952
952
|
let c = "";
|
|
953
|
-
for (let
|
|
954
|
-
const
|
|
953
|
+
for (let u = l.length - 1; u >= 0; u -= 1) {
|
|
954
|
+
const d = l[u], {
|
|
955
955
|
isExternal: p,
|
|
956
956
|
modifiers: m,
|
|
957
957
|
hasImportantModifier: y,
|
|
958
958
|
baseClassName: x,
|
|
959
959
|
maybePostfixModifierPosition: w
|
|
960
|
-
} = t(
|
|
960
|
+
} = t(d);
|
|
961
961
|
if (p) {
|
|
962
|
-
c =
|
|
962
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
963
963
|
continue;
|
|
964
964
|
}
|
|
965
965
|
let _ = !!w, v = s(_ ? x.substring(0, w) : x);
|
|
966
966
|
if (!v) {
|
|
967
967
|
if (!_) {
|
|
968
|
-
c =
|
|
968
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
969
969
|
continue;
|
|
970
970
|
}
|
|
971
971
|
if (v = s(x), !v) {
|
|
972
|
-
c =
|
|
972
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
973
973
|
continue;
|
|
974
974
|
}
|
|
975
975
|
_ = !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, O = S + v;
|
|
978
|
+
if (o.includes(O))
|
|
979
979
|
continue;
|
|
980
|
-
o.push(
|
|
980
|
+
o.push(O);
|
|
981
981
|
const F = n(v, _);
|
|
982
|
-
for (let
|
|
983
|
-
const q = F[
|
|
982
|
+
for (let P = 0; P < F.length; ++P) {
|
|
983
|
+
const q = F[P];
|
|
984
984
|
o.push(S + q);
|
|
985
985
|
}
|
|
986
|
-
c =
|
|
986
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
987
987
|
}
|
|
988
988
|
return c;
|
|
989
989
|
};
|
|
@@ -1004,15 +1004,15 @@ const As = (r) => {
|
|
|
1004
1004
|
function ka(r, ...e) {
|
|
1005
1005
|
let t, s, n, a = o;
|
|
1006
1006
|
function o(c) {
|
|
1007
|
-
const
|
|
1008
|
-
return t = ba(
|
|
1007
|
+
const u = e.reduce((d, p) => p(d), r());
|
|
1008
|
+
return t = ba(u), s = t.cache.get, n = t.cache.set, a = l, l(c);
|
|
1009
1009
|
}
|
|
1010
1010
|
function l(c) {
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
1013
|
-
return
|
|
1014
|
-
const
|
|
1015
|
-
return n(c,
|
|
1011
|
+
const u = s(c);
|
|
1012
|
+
if (u)
|
|
1013
|
+
return u;
|
|
1014
|
+
const d = va(c, t);
|
|
1015
|
+
return n(c, d), d;
|
|
1016
1016
|
}
|
|
1017
1017
|
return function() {
|
|
1018
1018
|
return a(wa.apply(null, arguments));
|
|
@@ -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) => !z(r) && !U(r), Va = (r) => lt(r, Ms, Rs), z = (r) => Cs.test(r), Xe = (r) => lt(r, Ds, Aa), Qt = (r) => lt(r, La, ee), Ur = (r) => lt(r, Vs, Rs), $a = (r) => lt(r, $s, Oa), Nt = (r) => lt(r, Is, Ca), U = (r) => Os.test(r), mt = (r) => ct(r, Ds), Ma = (r) => ct(r, Pa), Br = (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"),
|
|
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"), _ = ge("aspect"), v = ge("ease"), g = ge("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
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 = () => [...O(), U, z], P = () => ["auto", "hidden", "clip", "visible", "scroll"], q = () => ["auto", "contain", "none"], N = () => [U, z, c], M = () => [rt, "full", "auto", ...N()], J = () => [qe, "none", "subgrid", U, z], B = () => ["auto", {
|
|
1055
|
+
span: ["full", qe, U, z]
|
|
1056
|
+
}, qe, U, z], $ = () => [qe, "auto", U, z], Y = () => ["auto", "min", "max", "fr", U, z], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...N()], A = () => [rt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], h = () => [r, U, z], Z = () => [...O(), Br, Ur, {
|
|
1057
|
+
position: [U, z]
|
|
1058
1058
|
}], j = () => ["no-repeat", {
|
|
1059
1059
|
repeat: ["", "x", "y", "space", "round"]
|
|
1060
1060
|
}], k = () => ["auto", "cover", "contain", Da, Va, {
|
|
1061
|
-
size: [
|
|
1061
|
+
size: [U, z]
|
|
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
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1067
|
+
u,
|
|
1068
|
+
U,
|
|
1069
|
+
z
|
|
1070
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, Br, Ur], oe = () => [
|
|
1071
1071
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1072
1072
|
"",
|
|
1073
1073
|
"none",
|
|
1074
1074
|
x,
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
],
|
|
1075
|
+
U,
|
|
1076
|
+
z
|
|
1077
|
+
], pe = () => ["none", ee, U, z], ye = () => ["none", ee, U, z], te = () => [ee, U, z], fe = () => [rt, "full", ...N()];
|
|
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, z, U, _]
|
|
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, z, U, l]
|
|
1124
1124
|
}],
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Break After
|
|
@@ -1205,21 +1205,21 @@ const ge = (r) => {
|
|
|
1205
1205
|
* @see https://tailwindcss.com/docs/overflow
|
|
1206
1206
|
*/
|
|
1207
1207
|
overflow: [{
|
|
1208
|
-
overflow:
|
|
1208
|
+
overflow: P()
|
|
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": P()
|
|
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": P()
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Overscroll Behavior
|
|
@@ -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: M()
|
|
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": M()
|
|
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": M()
|
|
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: M()
|
|
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: M()
|
|
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: M()
|
|
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: M()
|
|
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: M()
|
|
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: M()
|
|
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", U, z]
|
|
1324
1324
|
}],
|
|
1325
1325
|
// ------------------------
|
|
1326
1326
|
// --- Flexbox and Grid ---
|
|
@@ -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", z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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", U, z]
|
|
1376
1376
|
}],
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Grid Template Columns
|
|
@@ -1393,14 +1393,14 @@ const ge = (r) => {
|
|
|
1393
1393
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1394
1394
|
*/
|
|
1395
1395
|
"col-start": [{
|
|
1396
|
-
"col-start":
|
|
1396
|
+
"col-start": $()
|
|
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": $()
|
|
1404
1404
|
}],
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Grid Template Rows
|
|
@@ -1421,14 +1421,14 @@ const ge = (r) => {
|
|
|
1421
1421
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1422
1422
|
*/
|
|
1423
1423
|
"row-start": [{
|
|
1424
|
-
"row-start":
|
|
1424
|
+
"row-start": $()
|
|
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": $()
|
|
1432
1432
|
}],
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Grid Auto Flow
|
|
@@ -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, U, 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, z]
|
|
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, z, 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, U, z]
|
|
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", U, Qt]
|
|
1846
1846
|
}],
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Line Height
|
|
@@ -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", U, z]
|
|
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", U, z]
|
|
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", U, 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", U, z]
|
|
1933
1933
|
}],
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Text Transform
|
|
@@ -1960,7 +1960,7 @@ const ge = (r) => {
|
|
|
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", U, z]
|
|
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", U, z]
|
|
1999
1999
|
}],
|
|
2000
2000
|
// -------------------
|
|
2001
2001
|
// --- Backgrounds ---
|
|
@@ -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, U, z],
|
|
2054
|
+
radial: ["", U, z],
|
|
2055
|
+
conic: [qe, U, z]
|
|
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, U, z]
|
|
2399
2399
|
}],
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Outline Width
|
|
@@ -2423,7 +2423,7 @@ const ge = (r) => {
|
|
|
2423
2423
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2424
2424
|
"",
|
|
2425
2425
|
"none",
|
|
2426
|
-
|
|
2426
|
+
d,
|
|
2427
2427
|
_t,
|
|
2428
2428
|
Nt
|
|
2429
2429
|
]
|
|
@@ -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, U, z]
|
|
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": [U, z]
|
|
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": O()
|
|
2671
2671
|
}],
|
|
2672
2672
|
"mask-image-conic-pos": [{
|
|
2673
2673
|
"mask-conic": [ee]
|
|
@@ -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", U, z]
|
|
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
|
+
U,
|
|
2749
|
+
z
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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
|
+
U,
|
|
2839
|
+
z
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
2904
2904
|
}],
|
|
2905
2905
|
// --------------
|
|
2906
2906
|
// --- Tables ---
|
|
@@ -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", U, z]
|
|
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", U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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, U, z]
|
|
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: pe()
|
|
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": pe()
|
|
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": pe()
|
|
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": pe()
|
|
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: [U, z, "", "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", U, z]
|
|
3192
3192
|
}],
|
|
3193
3193
|
/**
|
|
3194
3194
|
* Field Sizing
|
|
@@ -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", U, z]
|
|
3414
3414
|
}],
|
|
3415
3415
|
// -----------
|
|
3416
3416
|
// --- SVG ---
|
|
@@ -3505,9 +3505,9 @@ const ge = (r) => {
|
|
|
3505
3505
|
}, Ua = /* @__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 me = (r) => !Ee(r) && !Array.isArray(r) && Ls(r) && !Ke(r), Ps = (r) => me(r) && r.target ? vt(r.target) ? r.target.checked : r.target.value : r, Ba = (r) => r.substring(0, r.search(/\.\d+(\.|$)/)) || r, zs = (r, e) => r.has(Ba(e)), Za = (r) => {
|
|
3509
3509
|
const e = r.constructor && r.constructor.prototype;
|
|
3510
|
-
return
|
|
3510
|
+
return me(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 || me(r)))
|
|
3520
3520
|
if (e = t ? [] : {}, !t && !Za(r))
|
|
3521
3521
|
e = r;
|
|
3522
3522
|
else
|
|
@@ -3526,11 +3526,11 @@ 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) : [], he = (r) => r === void 0, V = (r, e, t) => {
|
|
3530
|
+
if (!e || !me(r))
|
|
3531
3531
|
return t;
|
|
3532
3532
|
const s = qt(e.split(/[,[\].]+?/)).reduce((n, a) => Ee(n) ? n : n[a], r);
|
|
3533
|
-
return
|
|
3533
|
+
return he(s) || s === r ? he(r[e]) ? t : r[e] : s;
|
|
3534
3534
|
}, Te = (r) => typeof r == "boolean", Nr = (r) => /^\w*$/.test(r), Us = (r) => qt(r.replace(/["|']|\]/g, "").split(/\.|\[/)), ie = (r, e, t) => {
|
|
3535
3535
|
let s = -1;
|
|
3536
3536
|
const n = Nr(e) ? [e] : Us(e), a = n.length, o = a - 1;
|
|
@@ -3538,8 +3538,8 @@ var qt = (r) => Array.isArray(r) ? r.filter(Boolean) : [], me = (r) => r === voi
|
|
|
3538
3538
|
const l = n[s];
|
|
3539
3539
|
let c = t;
|
|
3540
3540
|
if (s !== o) {
|
|
3541
|
-
const
|
|
3542
|
-
c =
|
|
3541
|
+
const u = r[l];
|
|
3542
|
+
c = me(u) || Array.isArray(u) ? u : isNaN(+n[s + 1]) ? {} : [];
|
|
3543
3543
|
}
|
|
3544
3544
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
3545
3545
|
return;
|
|
@@ -3597,10 +3597,10 @@ function qa(r) {
|
|
|
3597
3597
|
name: n,
|
|
3598
3598
|
formState: c.current,
|
|
3599
3599
|
exact: a,
|
|
3600
|
-
callback: (
|
|
3600
|
+
callback: (u) => {
|
|
3601
3601
|
!s && l({
|
|
3602
3602
|
...t._formState,
|
|
3603
|
-
...
|
|
3603
|
+
...u
|
|
3604
3604
|
});
|
|
3605
3605
|
}
|
|
3606
3606
|
}), [n, s, a]), ne.useEffect(() => {
|
|
@@ -3609,14 +3609,14 @@ function qa(r) {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
var Ie = (r) => typeof r == "string", Ws = (r, e, t, s, n) => Ie(r) ? (s && e.watch.add(r), V(t, r, n)) : Array.isArray(r) ? r.map((a) => (s && e.watch.add(a), V(t, a))) : (s && (e.watchAll = !0), t);
|
|
3611
3611
|
function Fr(r) {
|
|
3612
|
-
const e = wt(), { control: t = e.control, name: s, defaultValue: n, disabled: a, exact: o } = r || {}, l = ne.useRef(n), [c,
|
|
3612
|
+
const e = wt(), { control: t = e.control, name: s, defaultValue: n, disabled: a, exact: o } = r || {}, l = ne.useRef(n), [c, u] = ne.useState(t._getWatch(s, l.current));
|
|
3613
3613
|
return _r(() => t._subscribe({
|
|
3614
3614
|
name: s,
|
|
3615
3615
|
formState: {
|
|
3616
3616
|
values: !0
|
|
3617
3617
|
},
|
|
3618
3618
|
exact: o,
|
|
3619
|
-
callback: (
|
|
3619
|
+
callback: (d) => !a && u(Ws(s, t._names, d.values || t._formValues, !1, l.current))
|
|
3620
3620
|
}), [s, t, a, o]), ne.useEffect(() => t._removeUnmounted()), c;
|
|
3621
3621
|
}
|
|
3622
3622
|
function qs(r) {
|
|
@@ -3629,7 +3629,7 @@ function qs(r) {
|
|
|
3629
3629
|
control: n,
|
|
3630
3630
|
name: t,
|
|
3631
3631
|
exact: !0
|
|
3632
|
-
}),
|
|
3632
|
+
}), u = ne.useRef(r), d = ne.useRef(n.register(t, {
|
|
3633
3633
|
...r.rules,
|
|
3634
3634
|
value: l,
|
|
3635
3635
|
...Te(r.disabled) ? { disabled: r.disabled } : {}
|
|
@@ -3654,13 +3654,13 @@ 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((_) => d.current.onChange({
|
|
3658
3658
|
target: {
|
|
3659
3659
|
value: Ps(_),
|
|
3660
3660
|
name: t
|
|
3661
3661
|
},
|
|
3662
3662
|
type: It.CHANGE
|
|
3663
|
-
}), [t]), y = ne.useCallback(() =>
|
|
3663
|
+
}), [t]), y = ne.useCallback(() => d.current.onBlur({
|
|
3664
3664
|
target: {
|
|
3665
3665
|
value: V(n._formValues, t),
|
|
3666
3666
|
name: t
|
|
@@ -3685,16 +3685,16 @@ function qs(r) {
|
|
|
3685
3685
|
return ne.useEffect(() => {
|
|
3686
3686
|
const _ = n._options.shouldUnregister || a;
|
|
3687
3687
|
n.register(t, {
|
|
3688
|
-
...
|
|
3689
|
-
...Te(
|
|
3688
|
+
...u.current.rules,
|
|
3689
|
+
...Te(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3690
3690
|
});
|
|
3691
3691
|
const v = (g, S) => {
|
|
3692
|
-
const
|
|
3693
|
-
|
|
3692
|
+
const O = V(n._fields, g);
|
|
3693
|
+
O && O._f && (O._f.mount = S);
|
|
3694
3694
|
};
|
|
3695
3695
|
if (v(t, !0), _) {
|
|
3696
3696
|
const g = we(V(n._options.defaultValues, t));
|
|
3697
|
-
ie(n._defaultValues, t, g),
|
|
3697
|
+
ie(n._defaultValues, t, g), he(V(n._formValues, t)) && ie(n._formValues, t, g);
|
|
3698
3698
|
}
|
|
3699
3699
|
return !o && n.register(t), () => {
|
|
3700
3700
|
(o ? _ && !n._state.action : _) ? n.unregister(t) : v(t, !1);
|
|
@@ -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) || me(a) && me(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) => me(r) && !Object.keys(r).length, Sr = (r) => r.type === "file", Ve = (r) => typeof r == "function", Lt = (r) => {
|
|
3761
3761
|
if (!Er)
|
|
3762
3762
|
return !1;
|
|
3763
3763
|
const e = r ? r.ownerDocument : 0;
|
|
@@ -3767,18 +3767,18 @@ 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 = he(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) && !he(r[e]))
|
|
3776
3776
|
return !1;
|
|
3777
3777
|
return !0;
|
|
3778
3778
|
}
|
|
3779
3779
|
function be(r, e) {
|
|
3780
3780
|
const t = Array.isArray(e) ? e : Nr(e) ? [e] : Us(e), s = t.length === 1 ? r : Ya(r, t), n = t.length - 1, a = t[n];
|
|
3781
|
-
return s && delete s[a], n !== 0 && (
|
|
3781
|
+
return s && delete s[a], n !== 0 && (me(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)
|
|
@@ -3788,16 +3788,16 @@ var Hs = (r) => {
|
|
|
3788
3788
|
};
|
|
3789
3789
|
function Pt(r, e = {}) {
|
|
3790
3790
|
const t = Array.isArray(r);
|
|
3791
|
-
if (
|
|
3791
|
+
if (me(r) || t)
|
|
3792
3792
|
for (const s in r)
|
|
3793
|
-
Array.isArray(r[s]) ||
|
|
3793
|
+
Array.isArray(r[s]) || me(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 (me(r) || s)
|
|
3799
3799
|
for (const n in r)
|
|
3800
|
-
Array.isArray(r[n]) ||
|
|
3800
|
+
Array.isArray(r[n]) || me(r[n]) && !Hs(r[n]) ? he(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 && !he(r[0].attributes.value) ? he(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 }) => he(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(he(e.value) ? r.ref.value : e.value, r);
|
|
3832
3832
|
}
|
|
3833
3833
|
var Xa = (r, e, t, s) => {
|
|
3834
3834
|
const n = {};
|
|
@@ -3842,7 +3842,7 @@ var Xa = (r, e, t, s) => {
|
|
|
3842
3842
|
fields: n,
|
|
3843
3843
|
shouldUseNativeValidation: s
|
|
3844
3844
|
};
|
|
3845
|
-
}, zt = (r) => r instanceof RegExp, xt = (r) =>
|
|
3845
|
+
}, zt = (r) => r instanceof RegExp, xt = (r) => he(r) ? r : zt(r) ? r.source : me(r) ? zt(r.value) ? r.value.source : r.value : r, Hr = (r) => ({
|
|
3846
3846
|
isOnSubmit: !r || r === Re.onSubmit,
|
|
3847
3847
|
isOnBlur: r === Re.onBlur,
|
|
3848
3848
|
isOnChange: r === Re.onChange,
|
|
@@ -3850,7 +3850,7 @@ var Xa = (r, e, t, s) => {
|
|
|
3850
3850
|
isOnTouch: r === Re.onTouched
|
|
3851
3851
|
});
|
|
3852
3852
|
const Xr = "AsyncFunction";
|
|
3853
|
-
var Ka = (r) => !!r && !!r.validate && !!(Ve(r.validate) && r.validate.constructor.name === Xr ||
|
|
3853
|
+
var Ka = (r) => !!r && !!r.validate && !!(Ve(r.validate) && r.validate.constructor.name === Xr || me(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 (me(l) && yt(l, e))
|
|
3867
3867
|
break;
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
@@ -3907,89 +3907,89 @@ function Qr(r, e, t = "validate") {
|
|
|
3907
3907
|
ref: e
|
|
3908
3908
|
};
|
|
3909
3909
|
}
|
|
3910
|
-
var st = (r) =>
|
|
3910
|
+
var st = (r) => me(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:
|
|
3914
|
+
const { ref: o, refs: l, required: c, maxLength: u, minLength: d, min: p, max: m, pattern: y, validate: x, name: w, valueAsNumber: _, 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, O = ($) => {
|
|
3918
|
+
n && S.reportValidity && (S.setCustomValidity(Te($) ? "" : $ || ""), S.reportValidity());
|
|
3919
|
+
}, F = {}, P = Tr(o), q = vt(o), N = P || q, M = (_ || Sr(o)) && he(o.value) && he(g) || Lt(o) && o.value === "" || g === "" || Array.isArray(g) && !g.length, J = Gs.bind(null, w, s, F), B = ($, Y, K, W = Pe.maxLength, H = Pe.minLength) => {
|
|
3920
|
+
const A = $ ? Y : K;
|
|
3921
3921
|
F[w] = {
|
|
3922
|
-
type:
|
|
3922
|
+
type: $ ? W : H,
|
|
3923
3923
|
message: A,
|
|
3924
3924
|
ref: o,
|
|
3925
|
-
...J(
|
|
3925
|
+
...J($ ? W : H, A)
|
|
3926
3926
|
};
|
|
3927
3927
|
};
|
|
3928
|
-
if (a ? !Array.isArray(g) || !g.length : c && (!N && (
|
|
3929
|
-
const { value:
|
|
3930
|
-
if (
|
|
3928
|
+
if (a ? !Array.isArray(g) || !g.length : c && (!N && (M || Ee(g)) || Te(g) && !g || q && !Ks(l).isValid || P && !Qs(l).isValid)) {
|
|
3929
|
+
const { value: $, message: Y } = Vt(c) ? { value: !!c, message: c } : st(c);
|
|
3930
|
+
if ($ && (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 O(Y), F;
|
|
3937
3937
|
}
|
|
3938
|
-
if (!
|
|
3939
|
-
let
|
|
3938
|
+
if (!M && (!Ee(p) || !Ee(m))) {
|
|
3939
|
+
let $, Y;
|
|
3940
3940
|
const K = st(m), W = 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) || ($ = H > K.value), Ee(W.value) || (Y = H < W.value);
|
|
3944
3944
|
} else {
|
|
3945
3945
|
const H = o.valueAsDate || new Date(g), A = (j) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + j), h = o.type == "time", Z = o.type == "week";
|
|
3946
|
-
Ie(K.value) && g && (
|
|
3946
|
+
Ie(K.value) && g && ($ = h ? A(g) > A(K.value) : Z ? g > K.value : H > new Date(K.value)), Ie(W.value) && g && (Y = h ? A(g) < A(W.value) : Z ? g < W.value : H < new Date(W.value));
|
|
3947
3947
|
}
|
|
3948
|
-
if ((
|
|
3949
|
-
return
|
|
3948
|
+
if (($ || Y) && (B(!!$, K.message, W.message, Pe.max, Pe.min), !s))
|
|
3949
|
+
return O(F[w].message), F;
|
|
3950
3950
|
}
|
|
3951
|
-
if ((
|
|
3952
|
-
const
|
|
3953
|
-
if ((K || W) && (B(K,
|
|
3954
|
-
return
|
|
3951
|
+
if ((u || d) && !M && (Ie(g) || a && Array.isArray(g))) {
|
|
3952
|
+
const $ = st(u), Y = st(d), K = !Ee($.value) && g.length > +$.value, W = !Ee(Y.value) && g.length < +Y.value;
|
|
3953
|
+
if ((K || W) && (B(K, $.message, Y.message), !s))
|
|
3954
|
+
return O(F[w].message), F;
|
|
3955
3955
|
}
|
|
3956
|
-
if (y && !
|
|
3957
|
-
const { value:
|
|
3958
|
-
if (zt(
|
|
3956
|
+
if (y && !M && Ie(g)) {
|
|
3957
|
+
const { value: $, message: Y } = st(y);
|
|
3958
|
+
if (zt($) && !g.match($) && (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 O(Y), F;
|
|
3965
3965
|
}
|
|
3966
3966
|
if (x) {
|
|
3967
3967
|
if (Ve(x)) {
|
|
3968
|
-
const
|
|
3968
|
+
const $ = await x(g, t), Y = Qr($, 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 O(Y.message), F;
|
|
3974
|
+
} else if (me(x)) {
|
|
3975
|
+
let $ = {};
|
|
3976
3976
|
for (const Y in x) {
|
|
3977
|
-
if (!je(
|
|
3977
|
+
if (!je($) && !s)
|
|
3978
3978
|
break;
|
|
3979
3979
|
const K = Qr(await x[Y](g, t), S, Y);
|
|
3980
|
-
K && (
|
|
3980
|
+
K && ($ = {
|
|
3981
3981
|
...K,
|
|
3982
3982
|
...J(Y, K.message)
|
|
3983
|
-
},
|
|
3983
|
+
}, O(K.message), s && (F[w] = $));
|
|
3984
3984
|
}
|
|
3985
|
-
if (!je(
|
|
3985
|
+
if (!je($) && (F[w] = {
|
|
3986
3986
|
ref: S,
|
|
3987
|
-
|
|
3987
|
+
...$
|
|
3988
3988
|
}, !s))
|
|
3989
3989
|
return F;
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
|
-
return
|
|
3992
|
+
return O(!0), F;
|
|
3993
3993
|
};
|
|
3994
3994
|
const no = {
|
|
3995
3995
|
mode: Re.onSubmit,
|
|
@@ -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 = me(e.defaultValues) || me(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
|
|
@@ -4027,8 +4027,8 @@ function ao(r = {}) {
|
|
|
4027
4027
|
unMount: /* @__PURE__ */ new Set(),
|
|
4028
4028
|
array: /* @__PURE__ */ new Set(),
|
|
4029
4029
|
watch: /* @__PURE__ */ new Set()
|
|
4030
|
-
}, c,
|
|
4031
|
-
const
|
|
4030
|
+
}, c, u = 0;
|
|
4031
|
+
const d = {
|
|
4032
4032
|
isDirty: !1,
|
|
4033
4033
|
dirtyFields: !1,
|
|
4034
4034
|
validatingFields: !1,
|
|
@@ -4038,22 +4038,22 @@ function ao(r = {}) {
|
|
|
4038
4038
|
errors: !1
|
|
4039
4039
|
};
|
|
4040
4040
|
let p = {
|
|
4041
|
-
...
|
|
4041
|
+
...d
|
|
4042
4042
|
};
|
|
4043
4043
|
const m = {
|
|
4044
4044
|
array: Zr(),
|
|
4045
4045
|
state: Zr()
|
|
4046
4046
|
}, y = e.criteriaMode === Re.all, x = (f) => (b) => {
|
|
4047
|
-
clearTimeout(
|
|
4047
|
+
clearTimeout(u), u = setTimeout(f, b);
|
|
4048
4048
|
}, w = async (f) => {
|
|
4049
|
-
if (!e.disabled && (
|
|
4050
|
-
const b = e.resolver ? je((await q()).errors) : await
|
|
4049
|
+
if (!e.disabled && (d.isValid || p.isValid || f)) {
|
|
4050
|
+
const b = e.resolver ? je((await q()).errors) : await M(s, !0);
|
|
4051
4051
|
b !== t.isValid && m.state.next({
|
|
4052
4052
|
isValid: b
|
|
4053
4053
|
});
|
|
4054
4054
|
}
|
|
4055
4055
|
}, _ = (f, b) => {
|
|
4056
|
-
!e.disabled && (
|
|
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({
|
|
4059
4059
|
validatingFields: t.validatingFields,
|
|
@@ -4069,11 +4069,11 @@ function ao(r = {}) {
|
|
|
4069
4069
|
const X = E(V(t.errors, f), L.argA, L.argB);
|
|
4070
4070
|
R && ie(t.errors, f, X), ro(t.errors, f);
|
|
4071
4071
|
}
|
|
4072
|
-
if ((
|
|
4072
|
+
if ((d.touchedFields || p.touchedFields) && T && Array.isArray(V(t.touchedFields, f))) {
|
|
4073
4073
|
const X = E(V(t.touchedFields, f), L.argA, L.argB);
|
|
4074
4074
|
R && ie(t.touchedFields, f, X);
|
|
4075
4075
|
}
|
|
4076
|
-
(
|
|
4076
|
+
(d.dirtyFields || p.dirtyFields) && (t.dirtyFields = pt(n, a)), m.state.next({
|
|
4077
4077
|
name: f,
|
|
4078
4078
|
isDirty: B(f, b),
|
|
4079
4079
|
dirtyFields: t.dirtyFields,
|
|
@@ -4091,11 +4091,11 @@ function ao(r = {}) {
|
|
|
4091
4091
|
errors: t.errors,
|
|
4092
4092
|
isValid: !1
|
|
4093
4093
|
});
|
|
4094
|
-
},
|
|
4094
|
+
}, O = (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, he(E) ? V(n, f) : E);
|
|
4098
|
+
he(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,20 +4104,20 @@ function ao(r = {}) {
|
|
|
4104
4104
|
};
|
|
4105
4105
|
if (!e.disabled) {
|
|
4106
4106
|
if (!E || L) {
|
|
4107
|
-
(
|
|
4107
|
+
(d.isDirty || p.isDirty) && (X = t.isDirty, t.isDirty = le.isDirty = B(), T = X !== le.isDirty);
|
|
4108
4108
|
const ce = Ye(V(n, f), b);
|
|
4109
|
-
X = !!V(t.dirtyFields, f), ce ? be(t.dirtyFields, f) : ie(t.dirtyFields, f, !0), le.dirtyFields = t.dirtyFields, T = T || (
|
|
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
|
}
|
|
4111
4111
|
if (E) {
|
|
4112
4112
|
const ce = V(t.touchedFields, f);
|
|
4113
|
-
ce || (ie(t.touchedFields, f, E), le.touchedFields = t.touchedFields, T = T || (
|
|
4113
|
+
ce || (ie(t.touchedFields, f, E), le.touchedFields = t.touchedFields, T = T || (d.touchedFields || p.touchedFields) && ce !== E);
|
|
4114
4114
|
}
|
|
4115
4115
|
T && R && m.state.next(le);
|
|
4116
4116
|
}
|
|
4117
4117
|
return T ? le : {};
|
|
4118
|
-
},
|
|
4119
|
-
const R = V(t.errors, f), T = (
|
|
4120
|
-
if (e.delayError && E ? (c = x(() => g(f, E)), c(e.delayError)) : (clearTimeout(
|
|
4118
|
+
}, P = (f, b, E, L) => {
|
|
4119
|
+
const R = V(t.errors, f), T = (d.isValid || p.isValid) && Te(b) && t.isValid !== b;
|
|
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 = {
|
|
4122
4122
|
...L,
|
|
4123
4123
|
...T && Te(b) ? { isValid: b } : {},
|
|
@@ -4143,7 +4143,7 @@ function ao(r = {}) {
|
|
|
4143
4143
|
else
|
|
4144
4144
|
t.errors = b;
|
|
4145
4145
|
return b;
|
|
4146
|
-
},
|
|
4146
|
+
}, M = 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 &&
|
|
4155
|
+
ce && d.validatingFields && _([L], !0);
|
|
4156
4156
|
const Ce = await es(R, l.disabled, a, y, e.shouldUseNativeValidation && !b, le);
|
|
4157
|
-
if (ce &&
|
|
4157
|
+
if (ce && d.validatingFields && _([L]), Ce[T.name] && (E.valid = !1, b))
|
|
4158
4158
|
break;
|
|
4159
4159
|
!b && (V(Ce, T.name) ? le ? so(t.errors, Ce, T.name) : ie(t.errors, T.name, Ce[T.name]) : be(t.errors, T.name));
|
|
4160
4160
|
}
|
|
4161
|
-
!je(X) && await
|
|
4161
|
+
!je(X) && await M(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
|
-
}, B = (f, b) => !e.disabled && (f && b && ie(a, f, b), !Ye(j(), n)),
|
|
4172
|
-
...o.mount ? a :
|
|
4171
|
+
}, B = (f, b) => !e.disabled && (f && b && ie(a, f, b), !Ye(j(), n)), $ = (f, b, E) => Ws(f, l, {
|
|
4172
|
+
...o.mount ? a : he(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;
|
|
@@ -4188,14 +4188,14 @@ function ao(r = {}) {
|
|
|
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) || me(R) || X && !X._f) && !Ke(R) ? W(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);
|
|
4195
4195
|
ie(a, f, T), R ? (m.array.next({
|
|
4196
4196
|
name: f,
|
|
4197
4197
|
values: we(a)
|
|
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
4201
|
isDirty: B(f, T)
|
|
@@ -4220,7 +4220,7 @@ function ao(r = {}) {
|
|
|
4220
4220
|
type: f.type,
|
|
4221
4221
|
values: we(a)
|
|
4222
4222
|
}), Fn)
|
|
4223
|
-
return (
|
|
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
4225
|
const { errors: Rr } = await q([E]);
|
|
4226
4226
|
if (T(jt), L) {
|
|
@@ -4228,8 +4228,8 @@ function ao(r = {}) {
|
|
|
4228
4228
|
ce = Vr.error, E = Vr.name, Ce = je(Rr);
|
|
4229
4229
|
}
|
|
4230
4230
|
} else
|
|
4231
|
-
_([E], !0), ce = (await es(R, l.disabled, a, y, e.shouldUseNativeValidation))[E], _([E]), T(jt), L && (ce ? Ce = !1 : (
|
|
4232
|
-
L && (R._f.deps && Z(R._f.deps),
|
|
4231
|
+
_([E], !0), ce = (await es(R, l.disabled, a, y, e.shouldUseNativeValidation))[E], _([E]), T(jt), L && (ce ? Ce = !1 : (d.isValid || p.isValid) && (Ce = await M(s, !0)));
|
|
4232
|
+
L && (R._f.deps && Z(R._f.deps), P(E, Ce, ce, Kt));
|
|
4233
4233
|
}
|
|
4234
4234
|
}, h = (f, b) => {
|
|
4235
4235
|
if (V(t.errors, b) && f.focus)
|
|
@@ -4238,14 +4238,14 @@ function ao(r = {}) {
|
|
|
4238
4238
|
let E, L;
|
|
4239
4239
|
const R = bt(f);
|
|
4240
4240
|
if (e.resolver) {
|
|
4241
|
-
const T = await N(
|
|
4241
|
+
const T = await N(he(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 M(X && X._f ? { [T]: X } : X);
|
|
4246
|
+
}))).every(Boolean), !(!L && !t.isValid) && w()) : L = E = await M(s);
|
|
4247
4247
|
return m.state.next({
|
|
4248
|
-
...!Ie(f) || (
|
|
4248
|
+
...!Ie(f) || (d.isValid || p.isValid) && E !== t.isValid ? {} : { name: f },
|
|
4249
4249
|
...e.resolver || !f ? { isValid: E } : {},
|
|
4250
4250
|
errors: t.errors
|
|
4251
4251
|
}), b.shouldFocus && !L && yt(s, h, f ? R : l.mount), L;
|
|
@@ -4253,7 +4253,7 @@ function ao(r = {}) {
|
|
|
4253
4253
|
const b = {
|
|
4254
4254
|
...o.mount ? a : n
|
|
4255
4255
|
};
|
|
4256
|
-
return
|
|
4256
|
+
return he(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),
|
|
@@ -4276,10 +4276,10 @@ function ao(r = {}) {
|
|
|
4276
4276
|
isValid: !1
|
|
4277
4277
|
}), E && E.shouldFocus && L && L.focus && L.focus();
|
|
4278
4278
|
}, Q = (f, b) => Ve(f) ? m.state.subscribe({
|
|
4279
|
-
next: (E) => f(
|
|
4280
|
-
}) :
|
|
4279
|
+
next: (E) => f($(void 0, b), E)
|
|
4280
|
+
}) : $(f, b, !0), re = (f) => m.state.subscribe({
|
|
4281
4281
|
next: (b) => {
|
|
4282
|
-
eo(f.name, b.name, f.exact) && Qa(b, f.formState ||
|
|
4282
|
+
eo(f.name, b.name, f.exact) && Qa(b, f.formState || d, Yt, f.reRenderRoot) && f.callback({
|
|
4283
4283
|
values: { ...a },
|
|
4284
4284
|
...t,
|
|
4285
4285
|
...b
|
|
@@ -4302,7 +4302,7 @@ function ao(r = {}) {
|
|
|
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
|
+
}, pe = (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
|
+
}) : O(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
|
+
pe(f, b), E = V(s, f);
|
|
4335
|
+
const T = he(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
|
+
}), O(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
|
}
|
|
@@ -4369,7 +4369,7 @@ function ao(r = {}) {
|
|
|
4369
4369
|
const { errors: T, values: X } = await q();
|
|
4370
4370
|
t.errors = T, R = X;
|
|
4371
4371
|
} else
|
|
4372
|
-
await
|
|
4372
|
+
await M(s);
|
|
4373
4373
|
if (l.disabled.size)
|
|
4374
4374
|
for (const T of l.disabled)
|
|
4375
4375
|
ie(R, T, void 0);
|
|
@@ -4393,8 +4393,8 @@ function ao(r = {}) {
|
|
|
4393
4393
|
}), L)
|
|
4394
4394
|
throw L;
|
|
4395
4395
|
}, Ae = (f, b = {}) => {
|
|
4396
|
-
V(s, f) && (
|
|
4397
|
-
},
|
|
4396
|
+
V(s, f) && (he(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 ? B(f, we(V(n, f))) : B()), b.keepError || (be(t.errors, f), d.isValid && w()), m.state.next({ ...t }));
|
|
4397
|
+
}, xe = (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,7 +4405,7 @@ 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 && he(f))
|
|
4409
4409
|
for (const X of l.mount) {
|
|
4410
4410
|
const le = V(s, X);
|
|
4411
4411
|
if (le && le._f) {
|
|
@@ -4436,7 +4436,7 @@ function ao(r = {}) {
|
|
|
4436
4436
|
watch: /* @__PURE__ */ new Set(),
|
|
4437
4437
|
watchAll: !1,
|
|
4438
4438
|
focus: ""
|
|
4439
|
-
}, o.mount = !
|
|
4439
|
+
}, o.mount = !d.isValid || !!b.keepIsValid || !!b.keepDirtyValues, o.watch = !!e.shouldUnregister, m.state.next({
|
|
4440
4440
|
submitCount: b.keepSubmitCount ? t.submitCount : 0,
|
|
4441
4441
|
isDirty: R ? !1 : b.keepDirty ? t.isDirty : !!(b.keepDefaultValues && !Ye(f, n)),
|
|
4442
4442
|
isSubmitted: b.keepIsSubmitted ? t.isSubmitted : !1,
|
|
@@ -4446,7 +4446,7 @@ 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) => xe(Ve(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;
|
|
@@ -4459,21 +4459,21 @@ function ao(r = {}) {
|
|
|
4459
4459
|
};
|
|
4460
4460
|
}, dt = {
|
|
4461
4461
|
control: {
|
|
4462
|
-
register:
|
|
4462
|
+
register: pe,
|
|
4463
4463
|
unregister: se,
|
|
4464
4464
|
getFieldState: k,
|
|
4465
4465
|
handleSubmit: fe,
|
|
4466
4466
|
setError: D,
|
|
4467
4467
|
_subscribe: re,
|
|
4468
4468
|
_runSchema: q,
|
|
4469
|
-
_getWatch:
|
|
4469
|
+
_getWatch: $,
|
|
4470
4470
|
_getDirty: B,
|
|
4471
4471
|
_setValid: w,
|
|
4472
4472
|
_setFieldArray: v,
|
|
4473
4473
|
_setDisabledField: oe,
|
|
4474
4474
|
_setErrors: S,
|
|
4475
4475
|
_getFieldArray: Y,
|
|
4476
|
-
_reset:
|
|
4476
|
+
_reset: xe,
|
|
4477
4477
|
_resetDefaultValues: () => Ve(e.defaultValues) && e.defaultValues().then((f) => {
|
|
4478
4478
|
Me(f, e.resetOptions), m.state.next({
|
|
4479
4479
|
isLoading: !1
|
|
@@ -4482,7 +4482,7 @@ function ao(r = {}) {
|
|
|
4482
4482
|
_removeUnmounted: J,
|
|
4483
4483
|
_disableForm: te,
|
|
4484
4484
|
_subjects: m,
|
|
4485
|
-
_proxyFormState:
|
|
4485
|
+
_proxyFormState: d,
|
|
4486
4486
|
get _fields() {
|
|
4487
4487
|
return s;
|
|
4488
4488
|
},
|
|
@@ -4519,7 +4519,7 @@ function ao(r = {}) {
|
|
|
4519
4519
|
},
|
|
4520
4520
|
subscribe: ue,
|
|
4521
4521
|
trigger: Z,
|
|
4522
|
-
register:
|
|
4522
|
+
register: pe,
|
|
4523
4523
|
handleSubmit: fe,
|
|
4524
4524
|
watch: Q,
|
|
4525
4525
|
setValue: H,
|
|
@@ -4636,8 +4636,8 @@ function co(r) {
|
|
|
4636
4636
|
size: o = "sm",
|
|
4637
4637
|
width: l = "100%",
|
|
4638
4638
|
label: c,
|
|
4639
|
-
labelHidden:
|
|
4640
|
-
hasError:
|
|
4639
|
+
labelHidden: u = !1,
|
|
4640
|
+
hasError: d = !1,
|
|
4641
4641
|
errorMessage: p = "",
|
|
4642
4642
|
disabled: m = !1,
|
|
4643
4643
|
className: y,
|
|
@@ -4656,7 +4656,7 @@ function co(r) {
|
|
|
4656
4656
|
className: I(
|
|
4657
4657
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
4658
4658
|
en[o],
|
|
4659
|
-
|
|
4659
|
+
u && "sr-only"
|
|
4660
4660
|
),
|
|
4661
4661
|
children: c
|
|
4662
4662
|
}
|
|
@@ -4700,7 +4700,7 @@ function co(r) {
|
|
|
4700
4700
|
onChange: x
|
|
4701
4701
|
},
|
|
4702
4702
|
m,
|
|
4703
|
-
|
|
4703
|
+
d ? { message: p } : void 0,
|
|
4704
4704
|
y
|
|
4705
4705
|
)
|
|
4706
4706
|
)
|
|
@@ -4708,7 +4708,7 @@ function co(r) {
|
|
|
4708
4708
|
}
|
|
4709
4709
|
);
|
|
4710
4710
|
}
|
|
4711
|
-
const
|
|
4711
|
+
const al = ({
|
|
4712
4712
|
trigger: r,
|
|
4713
4713
|
items: e,
|
|
4714
4714
|
align: t = "left",
|
|
@@ -4716,25 +4716,25 @@ const nl = ({
|
|
|
4716
4716
|
}) => {
|
|
4717
4717
|
const [n, a] = ae(!1), o = ke(null), l = ke([]);
|
|
4718
4718
|
de(() => {
|
|
4719
|
-
const
|
|
4720
|
-
o.current && !o.current.contains(
|
|
4719
|
+
const u = (d) => {
|
|
4720
|
+
o.current && !o.current.contains(d.target) && a(!1);
|
|
4721
4721
|
};
|
|
4722
|
-
return document.addEventListener("mousedown",
|
|
4722
|
+
return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
|
|
4723
4723
|
}, []);
|
|
4724
|
-
const c = (
|
|
4724
|
+
const c = (u) => {
|
|
4725
4725
|
var p, m;
|
|
4726
|
-
const
|
|
4726
|
+
const d = l.current.findIndex(
|
|
4727
4727
|
(y) => y === document.activeElement
|
|
4728
4728
|
);
|
|
4729
|
-
if (
|
|
4729
|
+
if (u.key === "Escape")
|
|
4730
4730
|
a(!1);
|
|
4731
|
-
else if (
|
|
4732
|
-
|
|
4733
|
-
const y = (
|
|
4731
|
+
else if (u.key === "ArrowDown") {
|
|
4732
|
+
u.preventDefault();
|
|
4733
|
+
const y = (d + 1) % e.length;
|
|
4734
4734
|
(p = l.current[y]) == null || p.focus();
|
|
4735
|
-
} else if (
|
|
4736
|
-
|
|
4737
|
-
const y = (
|
|
4735
|
+
} else if (u.key === "ArrowUp") {
|
|
4736
|
+
u.preventDefault();
|
|
4737
|
+
const y = (d - 1 + e.length) % e.length;
|
|
4738
4738
|
(m = l.current[y]) == null || m.focus();
|
|
4739
4739
|
}
|
|
4740
4740
|
};
|
|
@@ -4743,7 +4743,7 @@ const nl = ({
|
|
|
4743
4743
|
"button",
|
|
4744
4744
|
{
|
|
4745
4745
|
type: "button",
|
|
4746
|
-
onClick: () => a((
|
|
4746
|
+
onClick: () => a((u) => !u),
|
|
4747
4747
|
className: "inline-flex items-center focus:outline-none",
|
|
4748
4748
|
"aria-haspopup": "menu",
|
|
4749
4749
|
"aria-expanded": n,
|
|
@@ -4761,8 +4761,8 @@ const nl = ({
|
|
|
4761
4761
|
t === "right" ? "right-0" : "left-0"
|
|
4762
4762
|
),
|
|
4763
4763
|
onKeyDown: c,
|
|
4764
|
-
children: e.map((
|
|
4765
|
-
const { label: p, onSelect: m, disabled: y, icon: x } =
|
|
4764
|
+
children: e.map((u, d) => {
|
|
4765
|
+
const { label: p, onSelect: m, disabled: y, icon: x } = u;
|
|
4766
4766
|
return /* @__PURE__ */ i.jsxs(
|
|
4767
4767
|
"button",
|
|
4768
4768
|
{
|
|
@@ -4770,7 +4770,7 @@ const nl = ({
|
|
|
4770
4770
|
type: "button",
|
|
4771
4771
|
disabled: y,
|
|
4772
4772
|
ref: (w) => {
|
|
4773
|
-
l.current[
|
|
4773
|
+
l.current[d] = w;
|
|
4774
4774
|
},
|
|
4775
4775
|
className: I(
|
|
4776
4776
|
"w-full flex items-center px-4 py-2 text-[var(--color-ds-text-primary)] text-ds-md transition-colors",
|
|
@@ -4784,7 +4784,7 @@ const nl = ({
|
|
|
4784
4784
|
p
|
|
4785
4785
|
]
|
|
4786
4786
|
},
|
|
4787
|
-
|
|
4787
|
+
d
|
|
4788
4788
|
);
|
|
4789
4789
|
})
|
|
4790
4790
|
}
|
|
@@ -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 O, F, P, q;
|
|
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 N = (J, B) => Je(B) ? B : ho(B) && Je(B.defaultValue) ? B.defaultValue : Array.isArray(J) ? J[J.length - 1] : J,
|
|
4894
|
-
return
|
|
4893
|
+
const N = (J, B) => Je(B) ? B : ho(B) && Je(B.defaultValue) ? B.defaultValue : Array.isArray(J) ? J[J.length - 1] : J, M = [N, {}, !1];
|
|
4894
|
+
return M.t = N, M.i18n = {}, M.ready = !1, M;
|
|
4895
4895
|
}
|
|
4896
|
-
(
|
|
4896
|
+
(O = a.options.react) != null && O.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,
|
|
@@ -4902,35 +4902,35 @@ const Eo = (r, e) => {
|
|
|
4902
4902
|
useSuspense: l,
|
|
4903
4903
|
keyPrefix: c
|
|
4904
4904
|
} = o;
|
|
4905
|
-
let
|
|
4906
|
-
|
|
4907
|
-
const
|
|
4908
|
-
let _ =
|
|
4905
|
+
let u = n || ((F = a.options) == null ? void 0 : F.defaultNS);
|
|
4906
|
+
u = Je(u) ? [u] : u || ["translation"], (q = (P = a.reportNamespaces).addUsedNamespaces) == null || q.call(P, u);
|
|
4907
|
+
const d = (a.isInitialized || a.initializedStoreOnce) && u.every((N) => fo(N, 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 _ = u.join();
|
|
4909
4909
|
e.lng && (_ = `${e.lng}${_}`);
|
|
4910
4910
|
const v = Eo(_), g = ke(!0);
|
|
4911
4911
|
de(() => {
|
|
4912
4912
|
const {
|
|
4913
4913
|
bindI18n: N,
|
|
4914
|
-
bindI18nStore:
|
|
4914
|
+
bindI18nStore: M
|
|
4915
4915
|
} = o;
|
|
4916
|
-
g.current = !0, !
|
|
4916
|
+
g.current = !0, !d && !l && (e.lng ? ss(a, e.lng, u, () => {
|
|
4917
4917
|
g.current && w(y);
|
|
4918
|
-
}) : fr(a,
|
|
4918
|
+
}) : fr(a, u, () => {
|
|
4919
4919
|
g.current && w(y);
|
|
4920
|
-
})),
|
|
4920
|
+
})), d && v && v !== _ && g.current && w(y);
|
|
4921
4921
|
const J = () => {
|
|
4922
4922
|
g.current && w(y);
|
|
4923
4923
|
};
|
|
4924
|
-
return N && (a == null || a.on(N, J)),
|
|
4925
|
-
g.current = !1, a && (N == null || N.split(" ").forEach((B) => a.off(B, J))),
|
|
4924
|
+
return N && (a == null || a.on(N, J)), M && (a == null || a.store.on(M, J)), () => {
|
|
4925
|
+
g.current = !1, a && (N == null || N.split(" ").forEach((B) => a.off(B, J))), M && a && M.split(" ").forEach((B) => a.store.off(B, J));
|
|
4926
4926
|
};
|
|
4927
4927
|
}, [a, _]), de(() => {
|
|
4928
|
-
g.current &&
|
|
4929
|
-
}, [a, c,
|
|
4930
|
-
const S = [x, a,
|
|
4931
|
-
if (S.t = x, S.i18n = a, S.ready =
|
|
4928
|
+
g.current && d && w(m);
|
|
4929
|
+
}, [a, c, d]);
|
|
4930
|
+
const S = [x, a, d];
|
|
4931
|
+
if (S.t = x, S.i18n = a, S.ready = d, d || !d && !l) return S;
|
|
4932
4932
|
throw new Promise((N) => {
|
|
4933
|
-
e.lng ? ss(a, e.lng,
|
|
4933
|
+
e.lng ? ss(a, e.lng, u, () => N()) : fr(a, u, () => N());
|
|
4934
4934
|
});
|
|
4935
4935
|
}, hr = {
|
|
4936
4936
|
sm: "text-sm",
|
|
@@ -4938,27 +4938,27 @@ const Eo = (r, e) => {
|
|
|
4938
4938
|
lg: "text-lg"
|
|
4939
4939
|
};
|
|
4940
4940
|
function ns(r, e, t, s, n, a, o, l, c) {
|
|
4941
|
-
const { t:
|
|
4941
|
+
const { t: u } = Ar(), d = ke(null), p = typeof s == "number" && e.length >= s, m = () => {
|
|
4942
4942
|
var g;
|
|
4943
|
-
!o && !p && ((g =
|
|
4943
|
+
!o && !p && ((g = d.current) == null || g.click());
|
|
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 O = Array.from(S);
|
|
4948
|
+
let F = e.concat(O);
|
|
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 O = e.concat(S);
|
|
4954
|
+
s && (O = O.slice(0, s)), t(O);
|
|
4955
4955
|
}, w = (g) => {
|
|
4956
4956
|
g.preventDefault();
|
|
4957
4957
|
}, _ = (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((O, F) => F !== g);
|
|
4962
4962
|
t(S);
|
|
4963
4963
|
};
|
|
4964
4964
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -4971,7 +4971,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
4971
4971
|
icon: Ir,
|
|
4972
4972
|
onClick: m,
|
|
4973
4973
|
disabled: o || p,
|
|
4974
|
-
children:
|
|
4974
|
+
children: u("ds.fileUploader.browse", "Browse files")
|
|
4975
4975
|
}
|
|
4976
4976
|
) }),
|
|
4977
4977
|
!p && /* @__PURE__ */ i.jsxs(
|
|
@@ -4991,7 +4991,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
4991
4991
|
{
|
|
4992
4992
|
id: r,
|
|
4993
4993
|
type: "file",
|
|
4994
|
-
ref:
|
|
4994
|
+
ref: d,
|
|
4995
4995
|
className: "hidden",
|
|
4996
4996
|
multiple: s !== 1,
|
|
4997
4997
|
accept: n,
|
|
@@ -5007,7 +5007,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
5007
5007
|
className: "w-8 h-8 text-[var(--color-ds-text-secondary)]"
|
|
5008
5008
|
}
|
|
5009
5009
|
),
|
|
5010
|
-
/* @__PURE__ */ i.jsx("p", { className: "mt-3 text-[var(--color-ds-text-secondary)] text-center", children:
|
|
5010
|
+
/* @__PURE__ */ i.jsx("p", { className: "mt-3 text-[var(--color-ds-text-secondary)] text-center", children: u(
|
|
5011
5011
|
"ds.fileUploader.dragDrop",
|
|
5012
5012
|
"Drag & drop your files here or click to browse"
|
|
5013
5013
|
) })
|
|
@@ -5030,7 +5030,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
5030
5030
|
variant: "ghost",
|
|
5031
5031
|
size: "sm",
|
|
5032
5032
|
icon: Ss,
|
|
5033
|
-
ariaLabel:
|
|
5033
|
+
ariaLabel: u("ds.fileUploader.view", "View"),
|
|
5034
5034
|
onClick: () => _(g)
|
|
5035
5035
|
}
|
|
5036
5036
|
),
|
|
@@ -5040,7 +5040,7 @@ function ns(r, e, t, s, n, a, o, l, c) {
|
|
|
5040
5040
|
variant: "ghost",
|
|
5041
5041
|
size: "sm",
|
|
5042
5042
|
icon: kr,
|
|
5043
|
-
ariaLabel:
|
|
5043
|
+
ariaLabel: u("ds.fileUploader.remove", "Remove"),
|
|
5044
5044
|
onClick: () => v(S)
|
|
5045
5045
|
}
|
|
5046
5046
|
)
|
|
@@ -5062,8 +5062,8 @@ function _o(r) {
|
|
|
5062
5062
|
accept: o,
|
|
5063
5063
|
size: l = "sm",
|
|
5064
5064
|
width: c = "100%",
|
|
5065
|
-
label:
|
|
5066
|
-
labelHidden:
|
|
5065
|
+
label: u,
|
|
5066
|
+
labelHidden: d = !1,
|
|
5067
5067
|
disabled: p = !1,
|
|
5068
5068
|
hasError: m = !1,
|
|
5069
5069
|
errorMessage: y = "",
|
|
@@ -5071,16 +5071,16 @@ function _o(r) {
|
|
|
5071
5071
|
} = r, w = et(), _ = 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
5077
|
htmlFor: _,
|
|
5078
5078
|
className: I(
|
|
5079
5079
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5080
5080
|
hr[l],
|
|
5081
|
-
|
|
5081
|
+
d && "sr-only"
|
|
5082
5082
|
),
|
|
5083
|
-
children:
|
|
5083
|
+
children: u
|
|
5084
5084
|
}
|
|
5085
5085
|
),
|
|
5086
5086
|
/* @__PURE__ */ i.jsx(
|
|
@@ -5090,7 +5090,7 @@ function _o(r) {
|
|
|
5090
5090
|
control: e,
|
|
5091
5091
|
rules: s,
|
|
5092
5092
|
defaultValue: n instanceof FileList ? Array.from(n) : n || [],
|
|
5093
|
-
render: ({ field: S, fieldState:
|
|
5093
|
+
render: ({ field: S, fieldState: O }) => ns(
|
|
5094
5094
|
_,
|
|
5095
5095
|
S.value,
|
|
5096
5096
|
(F) => S.onChange(F),
|
|
@@ -5098,7 +5098,7 @@ function _o(r) {
|
|
|
5098
5098
|
o,
|
|
5099
5099
|
l,
|
|
5100
5100
|
p,
|
|
5101
|
-
|
|
5101
|
+
O.error,
|
|
5102
5102
|
x
|
|
5103
5103
|
)
|
|
5104
5104
|
}
|
|
@@ -5108,16 +5108,16 @@ function _o(r) {
|
|
|
5108
5108
|
n instanceof FileList ? Array.from(n) : n || []
|
|
5109
5109
|
);
|
|
5110
5110
|
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", x), style: { width: c }, children: [
|
|
5111
|
-
|
|
5111
|
+
u && /* @__PURE__ */ i.jsx(
|
|
5112
5112
|
"label",
|
|
5113
5113
|
{
|
|
5114
5114
|
htmlFor: _,
|
|
5115
5115
|
className: I(
|
|
5116
5116
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5117
5117
|
hr[l],
|
|
5118
|
-
|
|
5118
|
+
d && "sr-only"
|
|
5119
5119
|
),
|
|
5120
|
-
children:
|
|
5120
|
+
children: u
|
|
5121
5121
|
}
|
|
5122
5122
|
),
|
|
5123
5123
|
ns(
|
|
@@ -5189,8 +5189,8 @@ function Cr({
|
|
|
5189
5189
|
hasError: o = !1,
|
|
5190
5190
|
errorMessage: l = "",
|
|
5191
5191
|
prefixIcon: c,
|
|
5192
|
-
suffixIcon:
|
|
5193
|
-
separator:
|
|
5192
|
+
suffixIcon: u,
|
|
5193
|
+
separator: d,
|
|
5194
5194
|
suffixButton: p,
|
|
5195
5195
|
disabled: m = !1,
|
|
5196
5196
|
control: y,
|
|
@@ -5201,10 +5201,10 @@ function Cr({
|
|
|
5201
5201
|
disableErrorPlaceholder: g,
|
|
5202
5202
|
// <- alias deprecado
|
|
5203
5203
|
loading: S = !1,
|
|
5204
|
-
className:
|
|
5204
|
+
className: O,
|
|
5205
5205
|
...F
|
|
5206
5206
|
}) {
|
|
5207
|
-
const
|
|
5207
|
+
const P = et(), [q, N] = ae(!1), M = r || P, J = e === "password", $ = c ?? (e === "number" ? ea : void 0), Y = J ? q ? Kn : Ss : u, K = typeof v == "boolean" ? v : typeof g == "boolean" ? !g : !!y, W = 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,7 +5217,7 @@ 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: M, 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(
|
|
@@ -5228,23 +5228,23 @@ function Cr({
|
|
|
5228
5228
|
rules: w,
|
|
5229
5229
|
defaultValue: _,
|
|
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: M, 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
|
+
$ && /* @__PURE__ */ i.jsx("div", { className: I("absolute left-0 flex items-center h-full", as[t]), children: /* @__PURE__ */ i.jsx(Be, { component: $, size: t, className: "text-[var(--color-ds-text-secondary)]" }) }),
|
|
5234
5234
|
/* @__PURE__ */ i.jsx(
|
|
5235
5235
|
"input",
|
|
5236
5236
|
{
|
|
5237
5237
|
...H,
|
|
5238
|
-
id:
|
|
5238
|
+
id: M,
|
|
5239
5239
|
type: J ? q ? "text" : "password" : e,
|
|
5240
5240
|
disabled: m,
|
|
5241
5241
|
"aria-invalid": !!A.error,
|
|
5242
|
-
className: I(W,
|
|
5242
|
+
className: I(W, $ && "pl-9", Y && "pr-9", O),
|
|
5243
5243
|
onInvalid: (h) => h.preventDefault(),
|
|
5244
5244
|
style: J && !q ? { 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 }),
|
|
5248
5248
|
p && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full pr-2", children: p }),
|
|
5249
5249
|
Y && /* @__PURE__ */ i.jsx(
|
|
5250
5250
|
"button",
|
|
@@ -5261,23 +5261,23 @@ 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: M, 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
|
+
$ && /* @__PURE__ */ i.jsx("div", { className: I("absolute left-0 flex items-center h-full", as[t]), children: /* @__PURE__ */ i.jsx(Be, { component: $, size: t, className: "text-[var(--color-ds-text-secondary)]" }) }),
|
|
5267
5267
|
/* @__PURE__ */ i.jsx(
|
|
5268
5268
|
"input",
|
|
5269
5269
|
{
|
|
5270
5270
|
...F,
|
|
5271
|
-
id:
|
|
5271
|
+
id: M,
|
|
5272
5272
|
type: J ? q ? "text" : "password" : e,
|
|
5273
5273
|
disabled: m,
|
|
5274
5274
|
"aria-invalid": o,
|
|
5275
|
-
className: I(W,
|
|
5275
|
+
className: I(W, $ && "pl-9", Y && "pr-9", O),
|
|
5276
5276
|
onInvalid: (H) => H.preventDefault(),
|
|
5277
5277
|
style: J && !q ? { 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 }),
|
|
5281
5281
|
p && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: p }),
|
|
5282
5282
|
Y && /* @__PURE__ */ i.jsx(
|
|
5283
5283
|
"button",
|
|
@@ -5303,7 +5303,7 @@ const Ao = {
|
|
|
5303
5303
|
position: t = "top",
|
|
5304
5304
|
className: s
|
|
5305
5305
|
}) => {
|
|
5306
|
-
const [n, a] = ae(!1), [o, l] = ae({ x: 0, y: 0 }), c = ke(null),
|
|
5306
|
+
const [n, a] = ae(!1), [o, l] = ae({ x: 0, y: 0 }), c = ke(null), u = et();
|
|
5307
5307
|
de(() => {
|
|
5308
5308
|
if (n && c.current) {
|
|
5309
5309
|
const m = c.current.getBoundingClientRect();
|
|
@@ -5325,10 +5325,10 @@ const Ao = {
|
|
|
5325
5325
|
l({ x: y, y: x });
|
|
5326
5326
|
}
|
|
5327
5327
|
}, [n, t]);
|
|
5328
|
-
const
|
|
5328
|
+
const d = () => typeof r == "string" ? /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: r }), p = n ? /* @__PURE__ */ i.jsx(
|
|
5329
5329
|
"div",
|
|
5330
5330
|
{
|
|
5331
|
-
id:
|
|
5331
|
+
id: u,
|
|
5332
5332
|
role: "tooltip",
|
|
5333
5333
|
className: I(
|
|
5334
5334
|
"fixed z-50 w-[250px] bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)] text-ds-sm rounded p-2 shadow-lg",
|
|
@@ -5339,7 +5339,7 @@ const Ao = {
|
|
|
5339
5339
|
left: `${o.x}px`,
|
|
5340
5340
|
transform: t === "left" || t === "right" ? "translateY(-50%)" : t === "top" ? "translateY(-100%)" : void 0
|
|
5341
5341
|
},
|
|
5342
|
-
children:
|
|
5342
|
+
children: d()
|
|
5343
5343
|
}
|
|
5344
5344
|
) : null;
|
|
5345
5345
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -5347,7 +5347,7 @@ const Ao = {
|
|
|
5347
5347
|
"button",
|
|
5348
5348
|
{
|
|
5349
5349
|
type: "button",
|
|
5350
|
-
"aria-describedby":
|
|
5350
|
+
"aria-describedby": u,
|
|
5351
5351
|
ref: c,
|
|
5352
5352
|
className: I(
|
|
5353
5353
|
"inline-flex items-center justify-center focus:outline-none",
|
|
@@ -5375,11 +5375,11 @@ function Oo({
|
|
|
5375
5375
|
validation: o,
|
|
5376
5376
|
loadingDefaults: l,
|
|
5377
5377
|
disabled: c,
|
|
5378
|
-
info:
|
|
5378
|
+
info: u
|
|
5379
5379
|
}) {
|
|
5380
5380
|
var _;
|
|
5381
5381
|
const {
|
|
5382
|
-
control:
|
|
5382
|
+
control: d,
|
|
5383
5383
|
formState: { errors: p }
|
|
5384
5384
|
} = wt(), m = !!p[r], y = ((_ = p[r]) == null ? void 0 : _.message) || "", x = "relative", w = n ?? "w-full";
|
|
5385
5385
|
return /* @__PURE__ */ i.jsxs("div", { className: x, children: [
|
|
@@ -5387,7 +5387,7 @@ function Oo({
|
|
|
5387
5387
|
Oe,
|
|
5388
5388
|
{
|
|
5389
5389
|
name: r,
|
|
5390
|
-
control:
|
|
5390
|
+
control: d,
|
|
5391
5391
|
rules: o,
|
|
5392
5392
|
render: ({ field: v }) => /* @__PURE__ */ i.jsx(
|
|
5393
5393
|
Cr,
|
|
@@ -5407,20 +5407,20 @@ function Oo({
|
|
|
5407
5407
|
)
|
|
5408
5408
|
}
|
|
5409
5409
|
),
|
|
5410
|
-
|
|
5410
|
+
u && /* @__PURE__ */ i.jsx(
|
|
5411
5411
|
Co,
|
|
5412
5412
|
{
|
|
5413
5413
|
size: s,
|
|
5414
5414
|
position: "left",
|
|
5415
5415
|
className: "absolute top-1/2 right-2 -translate-y-1/2",
|
|
5416
|
-
children:
|
|
5416
|
+
children: u
|
|
5417
5417
|
}
|
|
5418
5418
|
)
|
|
5419
5419
|
] });
|
|
5420
5420
|
}
|
|
5421
5421
|
const sn = ne.memo(Oo);
|
|
5422
5422
|
sn.displayName = "FormFieldInput";
|
|
5423
|
-
function
|
|
5423
|
+
function ol({
|
|
5424
5424
|
title: r,
|
|
5425
5425
|
headerButtons: e,
|
|
5426
5426
|
children: t,
|
|
@@ -5477,21 +5477,21 @@ function $o(r, e, t) {
|
|
|
5477
5477
|
try {
|
|
5478
5478
|
return Promise.resolve(function(o, l) {
|
|
5479
5479
|
try {
|
|
5480
|
-
var c = (e != null && e.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(r[t.mode === "sync" ? "validateSync" : "validate"](s, Object.assign({ abortEarly: !1 }, e, { context: n }))).then(function(
|
|
5481
|
-
return a.shouldUseNativeValidation && nn({}, a), { values: t.raw ? Object.assign({}, s) :
|
|
5480
|
+
var c = (e != null && e.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(r[t.mode === "sync" ? "validateSync" : "validate"](s, Object.assign({ abortEarly: !1 }, e, { context: n }))).then(function(u) {
|
|
5481
|
+
return a.shouldUseNativeValidation && nn({}, a), { values: t.raw ? Object.assign({}, s) : u, errors: {} };
|
|
5482
5482
|
}));
|
|
5483
|
-
} catch (
|
|
5484
|
-
return l(
|
|
5483
|
+
} catch (u) {
|
|
5484
|
+
return l(u);
|
|
5485
5485
|
}
|
|
5486
5486
|
return c && c.then ? c.then(void 0, l) : c;
|
|
5487
5487
|
}(0, function(o) {
|
|
5488
5488
|
if (!o.inner) throw o;
|
|
5489
|
-
return { values: {}, errors: Ro((l = o, c = !a.shouldUseNativeValidation && a.criteriaMode === "all", (l.inner || []).reduce(function(
|
|
5490
|
-
if (d
|
|
5491
|
-
var p = d
|
|
5492
|
-
d
|
|
5489
|
+
return { values: {}, errors: Ro((l = o, c = !a.shouldUseNativeValidation && a.criteriaMode === "all", (l.inner || []).reduce(function(u, d) {
|
|
5490
|
+
if (u[d.path] || (u[d.path] = { message: d.message, type: d.type }), c) {
|
|
5491
|
+
var p = u[d.path].types, m = p && p[d.type];
|
|
5492
|
+
u[d.path] = Gs(d.path, c, u, d.type, m ? [].concat(m, d.message) : d.message);
|
|
5493
5493
|
}
|
|
5494
|
-
return
|
|
5494
|
+
return u;
|
|
5495
5495
|
}, {})), a) };
|
|
5496
5496
|
var l, c;
|
|
5497
5497
|
}));
|
|
@@ -5514,28 +5514,28 @@ function Mo() {
|
|
|
5514
5514
|
}, r.prototype.set = function(v, g) {
|
|
5515
5515
|
return this._size >= this._maxSize && this.clear(), v in this._values || this._size++, this._values[v] = g;
|
|
5516
5516
|
};
|
|
5517
|
-
var e = /[^.^\]^[]+|(?=\[\]|\.\.)/g, t = /^\d+$/, s = /^\d/, n = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, o = 512, l = new r(o), c = new r(o),
|
|
5517
|
+
var e = /[^.^\]^[]+|(?=\[\]|\.\.)/g, t = /^\d+$/, s = /^\d/, n = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, o = 512, l = new r(o), c = new r(o), u = new r(o);
|
|
5518
5518
|
rr = {
|
|
5519
5519
|
Cache: r,
|
|
5520
5520
|
split: p,
|
|
5521
|
-
normalizePath:
|
|
5521
|
+
normalizePath: d,
|
|
5522
5522
|
setter: function(v) {
|
|
5523
|
-
var g =
|
|
5524
|
-
return c.get(v) || c.set(v, function(
|
|
5525
|
-
for (var
|
|
5526
|
-
var
|
|
5527
|
-
if (
|
|
5528
|
-
return
|
|
5529
|
-
N = N[g[
|
|
5523
|
+
var g = d(v);
|
|
5524
|
+
return c.get(v) || c.set(v, function(O, F) {
|
|
5525
|
+
for (var P = 0, q = g.length, N = O; P < q - 1; ) {
|
|
5526
|
+
var M = g[P];
|
|
5527
|
+
if (M === "__proto__" || M === "constructor" || M === "prototype")
|
|
5528
|
+
return O;
|
|
5529
|
+
N = N[g[P++]];
|
|
5530
5530
|
}
|
|
5531
|
-
N[g[
|
|
5531
|
+
N[g[P]] = F;
|
|
5532
5532
|
});
|
|
5533
5533
|
},
|
|
5534
5534
|
getter: function(v, g) {
|
|
5535
|
-
var S =
|
|
5536
|
-
return
|
|
5537
|
-
for (var
|
|
5538
|
-
if (F != null || !g) F = F[S[
|
|
5535
|
+
var S = d(v);
|
|
5536
|
+
return u.get(v) || u.set(v, function(F) {
|
|
5537
|
+
for (var P = 0, q = S.length; P < q; )
|
|
5538
|
+
if (F != null || !g) F = F[S[P++]];
|
|
5539
5539
|
else return;
|
|
5540
5540
|
return F;
|
|
5541
5541
|
});
|
|
@@ -5549,7 +5549,7 @@ function Mo() {
|
|
|
5549
5549
|
m(Array.isArray(v) ? v : p(v), g, S);
|
|
5550
5550
|
}
|
|
5551
5551
|
};
|
|
5552
|
-
function
|
|
5552
|
+
function d(v) {
|
|
5553
5553
|
return l.get(v) || l.set(
|
|
5554
5554
|
v,
|
|
5555
5555
|
p(v).map(function(g) {
|
|
@@ -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 O = v.length, F, P, q, N;
|
|
5565
|
+
for (P = 0; P < O; P++)
|
|
5566
|
+
F = v[P], F && (_(F) && (F = '"' + F + '"'), N = y(F), q = !N && /^\d+$/.test(F), g.call(S, F, N, q, P, v));
|
|
5567
5567
|
}
|
|
5568
5568
|
function y(v) {
|
|
5569
5569
|
return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
|
|
@@ -5583,7 +5583,7 @@ var Qe = Mo(), sr, cs;
|
|
|
5583
5583
|
function Do() {
|
|
5584
5584
|
if (cs) return sr;
|
|
5585
5585
|
cs = 1;
|
|
5586
|
-
const r = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, e = (
|
|
5586
|
+
const r = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, e = (d) => d.match(r) || [], t = (d) => d[0].toUpperCase() + d.slice(1), s = (d, p) => e(d).join(p).toLowerCase(), n = (d) => e(d).reduce(
|
|
5587
5587
|
(p, m) => `${p}${p ? m[0].toUpperCase() + m.slice(1).toLowerCase() : m.toLowerCase()}`,
|
|
5588
5588
|
""
|
|
5589
5589
|
);
|
|
@@ -5591,11 +5591,11 @@ function Do() {
|
|
|
5591
5591
|
words: e,
|
|
5592
5592
|
upperFirst: t,
|
|
5593
5593
|
camelCase: n,
|
|
5594
|
-
pascalCase: (
|
|
5595
|
-
snakeCase: (
|
|
5596
|
-
kebabCase: (
|
|
5597
|
-
sentenceCase: (
|
|
5598
|
-
titleCase: (
|
|
5594
|
+
pascalCase: (d) => t(n(d)),
|
|
5595
|
+
snakeCase: (d) => s(d, "_"),
|
|
5596
|
+
kebabCase: (d) => s(d, "-"),
|
|
5597
|
+
sentenceCase: (d) => t(s(d, " ")),
|
|
5598
|
+
titleCase: (d) => e(d).map(t).join(" ")
|
|
5599
5599
|
}, sr;
|
|
5600
5600
|
}
|
|
5601
5601
|
var nr = Do(), Tt = { exports: {} }, us;
|
|
@@ -5605,12 +5605,12 @@ function Io() {
|
|
|
5605
5605
|
return r(e(n), n);
|
|
5606
5606
|
}, Tt.exports.array = r;
|
|
5607
5607
|
function r(n, a) {
|
|
5608
|
-
var o = n.length, l = new Array(o), c = {},
|
|
5608
|
+
var o = n.length, l = new Array(o), c = {}, u = o, d = t(a), p = s(n);
|
|
5609
5609
|
for (a.forEach(function(y) {
|
|
5610
5610
|
if (!p.has(y[0]) || !p.has(y[1]))
|
|
5611
5611
|
throw new Error("Unknown node. There is an unknown node in the supplied edges.");
|
|
5612
|
-
});
|
|
5613
|
-
c[
|
|
5612
|
+
}); u--; )
|
|
5613
|
+
c[u] || m(n[u], u, /* @__PURE__ */ new Set());
|
|
5614
5614
|
return l;
|
|
5615
5615
|
function m(y, x, w) {
|
|
5616
5616
|
if (w.has(y)) {
|
|
@@ -5626,7 +5626,7 @@ function Io() {
|
|
|
5626
5626
|
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(y));
|
|
5627
5627
|
if (!c[x]) {
|
|
5628
5628
|
c[x] = !0;
|
|
5629
|
-
var v =
|
|
5629
|
+
var v = d.get(y) || /* @__PURE__ */ new Set();
|
|
5630
5630
|
if (v = Array.from(v), x = v.length) {
|
|
5631
5631
|
w.add(y);
|
|
5632
5632
|
do {
|
|
@@ -5806,9 +5806,9 @@ class Ut {
|
|
|
5806
5806
|
otherwise: a
|
|
5807
5807
|
} = t, o = typeof s == "function" ? s : (...l) => l.every((c) => c === s);
|
|
5808
5808
|
return new Ut(e, (l, c) => {
|
|
5809
|
-
var
|
|
5810
|
-
let
|
|
5811
|
-
return (
|
|
5809
|
+
var u;
|
|
5810
|
+
let d = o(...l) ? n : a;
|
|
5811
|
+
return (u = d == null ? void 0 : d(c)) != null ? u : c;
|
|
5812
5812
|
});
|
|
5813
5813
|
}
|
|
5814
5814
|
constructor(e, t) {
|
|
@@ -5879,8 +5879,8 @@ function nt(r) {
|
|
|
5879
5879
|
schema: o
|
|
5880
5880
|
}, l, c) {
|
|
5881
5881
|
const {
|
|
5882
|
-
name:
|
|
5883
|
-
test:
|
|
5882
|
+
name: u,
|
|
5883
|
+
test: d,
|
|
5884
5884
|
params: p,
|
|
5885
5885
|
message: m,
|
|
5886
5886
|
skipAbsent: y
|
|
@@ -5895,7 +5895,7 @@ function nt(r) {
|
|
|
5895
5895
|
return tt.isRef(B) ? B.getValue(t, x, w) : B;
|
|
5896
5896
|
}
|
|
5897
5897
|
function S(B = {}) {
|
|
5898
|
-
const
|
|
5898
|
+
const $ = Object.assign({
|
|
5899
5899
|
value: t,
|
|
5900
5900
|
originalValue: a,
|
|
5901
5901
|
label: o.spec.label,
|
|
@@ -5903,15 +5903,15 @@ function nt(r) {
|
|
|
5903
5903
|
spec: o.spec,
|
|
5904
5904
|
disableStackTrace: B.disableStackTrace || v
|
|
5905
5905
|
}, p, B.params);
|
|
5906
|
-
for (const K of Object.keys(
|
|
5907
|
-
const Y = new _e(_e.formatError(B.message || m,
|
|
5908
|
-
return Y.params =
|
|
5906
|
+
for (const K of Object.keys($)) $[K] = g($[K]);
|
|
5907
|
+
const Y = new _e(_e.formatError(B.message || m, $), t, $.path, B.type || u, $.disableStackTrace);
|
|
5908
|
+
return Y.params = $, Y;
|
|
5909
5909
|
}
|
|
5910
|
-
const
|
|
5910
|
+
const O = _ ? l : c;
|
|
5911
5911
|
let F = {
|
|
5912
5912
|
path: s,
|
|
5913
5913
|
parent: x,
|
|
5914
|
-
type:
|
|
5914
|
+
type: u,
|
|
5915
5915
|
from: n.from,
|
|
5916
5916
|
createError: S,
|
|
5917
5917
|
resolve: g,
|
|
@@ -5919,50 +5919,50 @@ function nt(r) {
|
|
|
5919
5919
|
originalValue: a,
|
|
5920
5920
|
schema: o
|
|
5921
5921
|
};
|
|
5922
|
-
const
|
|
5923
|
-
_e.isError(B) ?
|
|
5922
|
+
const P = (B) => {
|
|
5923
|
+
_e.isError(B) ? O(B) : B ? c(null) : O(S());
|
|
5924
5924
|
}, q = (B) => {
|
|
5925
|
-
_e.isError(B) ?
|
|
5925
|
+
_e.isError(B) ? O(B) : l(B);
|
|
5926
5926
|
};
|
|
5927
5927
|
if (y && $e(t))
|
|
5928
|
-
return
|
|
5929
|
-
let
|
|
5928
|
+
return P(!0);
|
|
5929
|
+
let M;
|
|
5930
5930
|
try {
|
|
5931
5931
|
var J;
|
|
5932
|
-
if (
|
|
5932
|
+
if (M = d.call(F, t, F), typeof ((J = M) == 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(M).then(P, q);
|
|
5936
5936
|
}
|
|
5937
5937
|
} catch (B) {
|
|
5938
5938
|
q(B);
|
|
5939
5939
|
return;
|
|
5940
5940
|
}
|
|
5941
|
-
|
|
5941
|
+
P(M);
|
|
5942
5942
|
}
|
|
5943
5943
|
return e.OPTIONS = r, e;
|
|
5944
5944
|
}
|
|
5945
5945
|
function Ho(r, e, t, s = t) {
|
|
5946
5946
|
let n, a, o;
|
|
5947
|
-
return e ? (Qe.forEach(e, (l, c,
|
|
5948
|
-
let
|
|
5947
|
+
return e ? (Qe.forEach(e, (l, c, u) => {
|
|
5948
|
+
let d = c ? l.slice(1, l.length - 1) : l;
|
|
5949
5949
|
r = r.resolve({
|
|
5950
5950
|
context: s,
|
|
5951
5951
|
parent: n,
|
|
5952
5952
|
value: t
|
|
5953
5953
|
});
|
|
5954
|
-
let p = r.type === "tuple", m =
|
|
5954
|
+
let p = r.type === "tuple", m = u ? parseInt(d, 10) : 0;
|
|
5955
5955
|
if (r.innerType || p) {
|
|
5956
|
-
if (p && !
|
|
5956
|
+
if (p && !u) throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);
|
|
5957
5957
|
if (t && m >= t.length)
|
|
5958
5958
|
throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);
|
|
5959
5959
|
n = t, t = t && t[m], r = p ? r.spec.types[m] : r.innerType;
|
|
5960
5960
|
}
|
|
5961
|
-
if (!
|
|
5962
|
-
if (!r.fields || !r.fields[
|
|
5963
|
-
n = t, t = t && t[
|
|
5961
|
+
if (!u) {
|
|
5962
|
+
if (!r.fields || !r.fields[d]) throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${r.type}")`);
|
|
5963
|
+
n = t, t = t && t[d], r = r.fields[d];
|
|
5964
5964
|
}
|
|
5965
|
-
a =
|
|
5965
|
+
a = d, o = c ? "[" + l + "]" : "." + l;
|
|
5966
5966
|
}), {
|
|
5967
5967
|
schema: r,
|
|
5968
5968
|
parent: n,
|
|
@@ -6123,18 +6123,18 @@ attempted value: ${o}
|
|
|
6123
6123
|
l || (c = this._cast(c, Object.assign({
|
|
6124
6124
|
assert: !1
|
|
6125
6125
|
}, t)));
|
|
6126
|
-
let
|
|
6127
|
-
for (let
|
|
6128
|
-
|
|
6126
|
+
let u = [];
|
|
6127
|
+
for (let d of Object.values(this.internalTests))
|
|
6128
|
+
d && u.push(d);
|
|
6129
6129
|
this.runTests({
|
|
6130
6130
|
path: a,
|
|
6131
6131
|
value: c,
|
|
6132
6132
|
originalValue: o,
|
|
6133
6133
|
options: t,
|
|
6134
|
-
tests:
|
|
6135
|
-
}, s, (
|
|
6136
|
-
if (
|
|
6137
|
-
return n(
|
|
6134
|
+
tests: u
|
|
6135
|
+
}, s, (d) => {
|
|
6136
|
+
if (d.length)
|
|
6137
|
+
return n(d, c);
|
|
6138
6138
|
this.runTests({
|
|
6139
6139
|
path: a,
|
|
6140
6140
|
value: c,
|
|
@@ -6154,8 +6154,8 @@ attempted value: ${o}
|
|
|
6154
6154
|
value: o,
|
|
6155
6155
|
originalValue: l,
|
|
6156
6156
|
path: c,
|
|
6157
|
-
options:
|
|
6158
|
-
} = e,
|
|
6157
|
+
options: u
|
|
6158
|
+
} = e, d = (w) => {
|
|
6159
6159
|
n || (n = !0, t(w, o));
|
|
6160
6160
|
}, p = (w) => {
|
|
6161
6161
|
n || (n = !0, s(w, o));
|
|
@@ -6165,12 +6165,12 @@ attempted value: ${o}
|
|
|
6165
6165
|
value: o,
|
|
6166
6166
|
originalValue: l,
|
|
6167
6167
|
path: c,
|
|
6168
|
-
options:
|
|
6168
|
+
options: u,
|
|
6169
6169
|
schema: this
|
|
6170
6170
|
};
|
|
6171
6171
|
for (let w = 0; w < a.length; w++) {
|
|
6172
6172
|
const _ = a[w];
|
|
6173
|
-
_(x,
|
|
6173
|
+
_(x, d, function(g) {
|
|
6174
6174
|
g && (Array.isArray(g) ? y.push(...g) : y.push(g)), --m <= 0 && p(y);
|
|
6175
6175
|
});
|
|
6176
6176
|
}
|
|
@@ -6187,14 +6187,14 @@ attempted value: ${o}
|
|
|
6187
6187
|
if (l == null)
|
|
6188
6188
|
throw TypeError("Must include `key` or `index` for nested validations");
|
|
6189
6189
|
const c = typeof l == "number";
|
|
6190
|
-
let
|
|
6191
|
-
const
|
|
6190
|
+
let u = s[l];
|
|
6191
|
+
const d = Object.assign({}, o, {
|
|
6192
6192
|
// Nested validations fields are always strict:
|
|
6193
6193
|
// 1. parent isn't strict so the casting will also have cast inner values
|
|
6194
6194
|
// 2. parent is strict in which case the nested values weren't cast either
|
|
6195
6195
|
strict: !0,
|
|
6196
6196
|
parent: s,
|
|
6197
|
-
value:
|
|
6197
|
+
value: u,
|
|
6198
6198
|
originalValue: a[l],
|
|
6199
6199
|
// FIXME: tests depend on `index` being passed around deeply,
|
|
6200
6200
|
// we should not let the options.key/index bleed through
|
|
@@ -6203,17 +6203,17 @@ attempted value: ${o}
|
|
|
6203
6203
|
[c ? "index" : "key"]: l,
|
|
6204
6204
|
path: c || l.includes(".") ? `${n || ""}[${c ? l : `"${l}"`}]` : (n ? `${n}.` : "") + e
|
|
6205
6205
|
});
|
|
6206
|
-
return (p, m, y) => this.resolve(
|
|
6206
|
+
return (p, m, y) => this.resolve(d)._validate(u, d, m, y);
|
|
6207
6207
|
}
|
|
6208
6208
|
validate(e, t) {
|
|
6209
6209
|
var s;
|
|
6210
6210
|
let n = this.resolve(Object.assign({}, t, {
|
|
6211
6211
|
value: e
|
|
6212
6212
|
})), a = (s = t == null ? void 0 : t.disableStackTrace) != null ? s : n.spec.disableStackTrace;
|
|
6213
|
-
return new Promise((o, l) => n._validate(e, t, (c,
|
|
6214
|
-
_e.isError(c) && (c.value =
|
|
6215
|
-
}, (c,
|
|
6216
|
-
c.length ? l(new _e(c,
|
|
6213
|
+
return new Promise((o, l) => n._validate(e, t, (c, u) => {
|
|
6214
|
+
_e.isError(c) && (c.value = u), l(c);
|
|
6215
|
+
}, (c, u) => {
|
|
6216
|
+
c.length ? l(new _e(c, u, void 0, void 0, a)) : o(u);
|
|
6217
6217
|
}));
|
|
6218
6218
|
}
|
|
6219
6219
|
validateSync(e, t) {
|
|
@@ -6424,7 +6424,7 @@ attempted value: ${o}
|
|
|
6424
6424
|
tests: t.tests.map((c) => ({
|
|
6425
6425
|
name: c.OPTIONS.name,
|
|
6426
6426
|
params: c.OPTIONS.params
|
|
6427
|
-
})).filter((c,
|
|
6427
|
+
})).filter((c, u, d) => d.findIndex((p) => p.name === c.name) === u)
|
|
6428
6428
|
};
|
|
6429
6429
|
}
|
|
6430
6430
|
}
|
|
@@ -6989,32 +6989,32 @@ class vn extends Se {
|
|
|
6989
6989
|
let n = super._cast(e, t);
|
|
6990
6990
|
if (n === void 0) return this.getDefault(t);
|
|
6991
6991
|
if (!this._typeCheck(n)) return n;
|
|
6992
|
-
let a = this.fields, o = (s = t.stripUnknown) != null ? s : this.spec.noUnknown, l = [].concat(this._nodes, Object.keys(n).filter((p) => !this._nodes.includes(p))), c = {},
|
|
6992
|
+
let a = this.fields, o = (s = t.stripUnknown) != null ? s : this.spec.noUnknown, l = [].concat(this._nodes, Object.keys(n).filter((p) => !this._nodes.includes(p))), c = {}, u = Object.assign({}, t, {
|
|
6993
6993
|
parent: c,
|
|
6994
6994
|
__validating: t.__validating || !1
|
|
6995
|
-
}),
|
|
6995
|
+
}), d = !1;
|
|
6996
6996
|
for (const p of l) {
|
|
6997
6997
|
let m = a[p], y = p in n;
|
|
6998
6998
|
if (m) {
|
|
6999
6999
|
let x, w = n[p];
|
|
7000
|
-
|
|
7000
|
+
u.path = (t.path ? `${t.path}.` : "") + p, m = m.resolve({
|
|
7001
7001
|
value: w,
|
|
7002
7002
|
context: t.context,
|
|
7003
7003
|
parent: c
|
|
7004
7004
|
});
|
|
7005
7005
|
let _ = m instanceof Se ? m.spec : void 0, v = _ == null ? void 0 : _.strict;
|
|
7006
7006
|
if (_ != null && _.strip) {
|
|
7007
|
-
|
|
7007
|
+
d = d || p in n;
|
|
7008
7008
|
continue;
|
|
7009
7009
|
}
|
|
7010
7010
|
x = !t.__validating || !v ? (
|
|
7011
7011
|
// TODO: use _cast, this is double resolving
|
|
7012
|
-
m.cast(n[p],
|
|
7012
|
+
m.cast(n[p], u)
|
|
7013
7013
|
) : n[p], x !== void 0 && (c[p] = x);
|
|
7014
7014
|
} else y && !o && (c[p] = n[p]);
|
|
7015
|
-
(y !== p in c || c[p] !== n[p]) && (
|
|
7015
|
+
(y !== p in c || c[p] !== n[p]) && (d = !0);
|
|
7016
7016
|
}
|
|
7017
|
-
return
|
|
7017
|
+
return d ? c : n;
|
|
7018
7018
|
}
|
|
7019
7019
|
_validate(e, t = {}, s, n) {
|
|
7020
7020
|
let {
|
|
@@ -7025,30 +7025,30 @@ class vn extends Se {
|
|
|
7025
7025
|
t.from = [{
|
|
7026
7026
|
schema: this,
|
|
7027
7027
|
value: o
|
|
7028
|
-
}, ...a], t.__validating = !0, t.originalValue = o, super._validate(e, t, s, (c,
|
|
7029
|
-
if (!l || !ms(
|
|
7030
|
-
n(c,
|
|
7028
|
+
}, ...a], t.__validating = !0, t.originalValue = o, super._validate(e, t, s, (c, u) => {
|
|
7029
|
+
if (!l || !ms(u)) {
|
|
7030
|
+
n(c, u);
|
|
7031
7031
|
return;
|
|
7032
7032
|
}
|
|
7033
|
-
o = o ||
|
|
7034
|
-
let
|
|
7033
|
+
o = o || u;
|
|
7034
|
+
let d = [];
|
|
7035
7035
|
for (let p of this._nodes) {
|
|
7036
7036
|
let m = this.fields[p];
|
|
7037
|
-
!m || tt.isRef(m) ||
|
|
7037
|
+
!m || tt.isRef(m) || d.push(m.asNestedTest({
|
|
7038
7038
|
options: t,
|
|
7039
7039
|
key: p,
|
|
7040
|
-
parent:
|
|
7040
|
+
parent: u,
|
|
7041
7041
|
parentPath: t.path,
|
|
7042
7042
|
originalParent: o
|
|
7043
7043
|
}));
|
|
7044
7044
|
}
|
|
7045
7045
|
this.runTests({
|
|
7046
|
-
tests:
|
|
7047
|
-
value:
|
|
7046
|
+
tests: d,
|
|
7047
|
+
value: u,
|
|
7048
7048
|
originalValue: o,
|
|
7049
7049
|
options: t
|
|
7050
7050
|
}, s, (p) => {
|
|
7051
|
-
n(p.sort(this._sortErrors).concat(c),
|
|
7051
|
+
n(p.sort(this._sortErrors).concat(c), u);
|
|
7052
7052
|
});
|
|
7053
7053
|
});
|
|
7054
7054
|
}
|
|
@@ -7234,29 +7234,29 @@ class wn extends Se {
|
|
|
7234
7234
|
_validate(e, t = {}, s, n) {
|
|
7235
7235
|
var a;
|
|
7236
7236
|
let o = this.innerType, l = (a = t.recursive) != null ? a : this.spec.recursive;
|
|
7237
|
-
t.originalValue != null && t.originalValue, super._validate(e, t, s, (c,
|
|
7238
|
-
var
|
|
7239
|
-
if (!l || !o || !this._typeCheck(
|
|
7240
|
-
n(c,
|
|
7237
|
+
t.originalValue != null && t.originalValue, super._validate(e, t, s, (c, u) => {
|
|
7238
|
+
var d;
|
|
7239
|
+
if (!l || !o || !this._typeCheck(u)) {
|
|
7240
|
+
n(c, u);
|
|
7241
7241
|
return;
|
|
7242
7242
|
}
|
|
7243
|
-
let p = new Array(
|
|
7244
|
-
for (let y = 0; y <
|
|
7243
|
+
let p = new Array(u.length);
|
|
7244
|
+
for (let y = 0; y < u.length; y++) {
|
|
7245
7245
|
var m;
|
|
7246
7246
|
p[y] = o.asNestedTest({
|
|
7247
7247
|
options: t,
|
|
7248
7248
|
index: y,
|
|
7249
|
-
parent:
|
|
7249
|
+
parent: u,
|
|
7250
7250
|
parentPath: t.path,
|
|
7251
7251
|
originalParent: (m = t.originalValue) != null ? m : e
|
|
7252
7252
|
});
|
|
7253
7253
|
}
|
|
7254
7254
|
this.runTests({
|
|
7255
|
-
value:
|
|
7255
|
+
value: u,
|
|
7256
7256
|
tests: p,
|
|
7257
|
-
originalValue: (
|
|
7257
|
+
originalValue: (d = t.originalValue) != null ? d : e,
|
|
7258
7258
|
options: t
|
|
7259
|
-
}, s, (y) => n(y.concat(c),
|
|
7259
|
+
}, s, (y) => n(y.concat(c), u));
|
|
7260
7260
|
});
|
|
7261
7261
|
}
|
|
7262
7262
|
clone(e) {
|
|
@@ -7440,9 +7440,9 @@ function gi({
|
|
|
7440
7440
|
const l = n.current;
|
|
7441
7441
|
if (!l) return;
|
|
7442
7442
|
const c = () => {
|
|
7443
|
-
const
|
|
7444
|
-
if (
|
|
7445
|
-
const
|
|
7443
|
+
const u = r.findIndex((_) => _.value === e);
|
|
7444
|
+
if (u < 0) return;
|
|
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 });
|
|
7447
7447
|
};
|
|
7448
7448
|
return c(), window.addEventListener("resize", c), l.addEventListener("scroll", c), () => {
|
|
@@ -7534,9 +7534,9 @@ function Zt(r) {
|
|
|
7534
7534
|
reloadDeps: l = [],
|
|
7535
7535
|
/* unctrl */
|
|
7536
7536
|
value: c,
|
|
7537
|
-
onChange:
|
|
7537
|
+
onChange: u,
|
|
7538
7538
|
/* ui */
|
|
7539
|
-
size:
|
|
7539
|
+
size: d = "sm",
|
|
7540
7540
|
width: p = "100%",
|
|
7541
7541
|
label: m,
|
|
7542
7542
|
labelHidden: y = !1,
|
|
@@ -7548,13 +7548,13 @@ function Zt(r) {
|
|
|
7548
7548
|
// alias legacy
|
|
7549
7549
|
disabled: g = !1,
|
|
7550
7550
|
className: S,
|
|
7551
|
-
suffixButton:
|
|
7551
|
+
suffixButton: O,
|
|
7552
7552
|
loading: F = !1,
|
|
7553
7553
|
/* coerción de primera opción */
|
|
7554
|
-
coerceFirstValid:
|
|
7555
|
-
} = r, q = et(), N = t || q, [
|
|
7554
|
+
coerceFirstValid: P = !0
|
|
7555
|
+
} = r, q = et(), N = t || q, [M, J] = ae(a), [B, $] = ae(!!o);
|
|
7556
7556
|
de(() => {
|
|
7557
|
-
o && (
|
|
7557
|
+
o && ($(!0), o().then((W) => J(W)).finally(() => $(!1)));
|
|
7558
7558
|
}, [o, ...l]);
|
|
7559
7559
|
const Y = (W) => W.find((H) => H.value !== "" && H.value !== void 0) ?? W[0], K = typeof _ == "boolean" ? _ : !!e;
|
|
7560
7560
|
if (e && t) {
|
|
@@ -7565,18 +7565,18 @@ function Zt(r) {
|
|
|
7565
7565
|
defaultValue: n
|
|
7566
7566
|
});
|
|
7567
7567
|
return de(() => {
|
|
7568
|
-
if (!B &&
|
|
7569
|
-
const A = W.value, h =
|
|
7570
|
-
(A === void 0 || !h) && W.onChange(Y(
|
|
7568
|
+
if (!B && M.length > 0 && P) {
|
|
7569
|
+
const A = W.value, h = M.some((Z) => String(Z.value) === String(A));
|
|
7570
|
+
(A === void 0 || !h) && W.onChange(Y(M).value);
|
|
7571
7571
|
}
|
|
7572
|
-
}, [
|
|
7572
|
+
}, [M, B, W, P]), /* @__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
7576
|
htmlFor: N,
|
|
7577
7577
|
className: I(
|
|
7578
7578
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
7579
|
-
Ot[
|
|
7579
|
+
Ot[d],
|
|
7580
7580
|
y && "sr-only"
|
|
7581
7581
|
),
|
|
7582
7582
|
children: m
|
|
@@ -7586,7 +7586,7 @@ function Zt(r) {
|
|
|
7586
7586
|
it,
|
|
7587
7587
|
{
|
|
7588
7588
|
width: "100%",
|
|
7589
|
-
height: bs[
|
|
7589
|
+
height: bs[d],
|
|
7590
7590
|
variant: "rect",
|
|
7591
7591
|
className: "rounded-lg"
|
|
7592
7592
|
}
|
|
@@ -7594,7 +7594,7 @@ function Zt(r) {
|
|
|
7594
7594
|
ys,
|
|
7595
7595
|
{
|
|
7596
7596
|
id: N,
|
|
7597
|
-
size:
|
|
7597
|
+
size: d,
|
|
7598
7598
|
disabled: g,
|
|
7599
7599
|
error: H.error,
|
|
7600
7600
|
reserveErrorSpace: (
|
|
@@ -7602,7 +7602,7 @@ function Zt(r) {
|
|
|
7602
7602
|
typeof v == "boolean" ? !v : K
|
|
7603
7603
|
),
|
|
7604
7604
|
className: S,
|
|
7605
|
-
suffixButton:
|
|
7605
|
+
suffixButton: O,
|
|
7606
7606
|
children: /* @__PURE__ */ i.jsx(
|
|
7607
7607
|
"select",
|
|
7608
7608
|
{
|
|
@@ -7612,13 +7612,13 @@ function Zt(r) {
|
|
|
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)]",
|
|
7615
|
-
Ot[
|
|
7616
|
-
xs[
|
|
7617
|
-
gs[
|
|
7615
|
+
Ot[d],
|
|
7616
|
+
xs[d],
|
|
7617
|
+
gs[d],
|
|
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: M.map((A) => /* @__PURE__ */ i.jsx(
|
|
7622
7622
|
"option",
|
|
7623
7623
|
{
|
|
7624
7624
|
value: A.value,
|
|
@@ -7634,18 +7634,18 @@ function Zt(r) {
|
|
|
7634
7634
|
] });
|
|
7635
7635
|
}
|
|
7636
7636
|
return de(() => {
|
|
7637
|
-
if (!e &&
|
|
7638
|
-
const W =
|
|
7639
|
-
(c === void 0 || c === "" || !W) &&
|
|
7637
|
+
if (!e && M.length > 0 && P) {
|
|
7638
|
+
const W = M.some((A) => String(A.value) === String(c));
|
|
7639
|
+
(c === void 0 || c === "" || !W) && u && u(Y(M).value);
|
|
7640
7640
|
}
|
|
7641
|
-
}, [
|
|
7641
|
+
}, [M, c, u, e, P]), /* @__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
7645
|
htmlFor: N,
|
|
7646
7646
|
className: I(
|
|
7647
7647
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
7648
|
-
Ot[
|
|
7648
|
+
Ot[d],
|
|
7649
7649
|
y && "sr-only"
|
|
7650
7650
|
),
|
|
7651
7651
|
children: m
|
|
@@ -7655,7 +7655,7 @@ function Zt(r) {
|
|
|
7655
7655
|
it,
|
|
7656
7656
|
{
|
|
7657
7657
|
width: "100%",
|
|
7658
|
-
height: bs[
|
|
7658
|
+
height: bs[d],
|
|
7659
7659
|
variant: "rect",
|
|
7660
7660
|
className: "rounded-lg"
|
|
7661
7661
|
}
|
|
@@ -7663,7 +7663,7 @@ function Zt(r) {
|
|
|
7663
7663
|
ys,
|
|
7664
7664
|
{
|
|
7665
7665
|
id: N,
|
|
7666
|
-
size:
|
|
7666
|
+
size: d,
|
|
7667
7667
|
disabled: g,
|
|
7668
7668
|
error: x ? { message: w } : void 0,
|
|
7669
7669
|
reserveErrorSpace: (
|
|
@@ -7671,23 +7671,23 @@ function Zt(r) {
|
|
|
7671
7671
|
typeof v == "boolean" ? !v : !!(_ ?? !1)
|
|
7672
7672
|
),
|
|
7673
7673
|
className: S,
|
|
7674
|
-
suffixButton:
|
|
7674
|
+
suffixButton: O,
|
|
7675
7675
|
children: /* @__PURE__ */ i.jsx(
|
|
7676
7676
|
"select",
|
|
7677
7677
|
{
|
|
7678
7678
|
id: N,
|
|
7679
7679
|
value: c,
|
|
7680
|
-
onChange: (W) =>
|
|
7680
|
+
onChange: (W) => u == null ? void 0 : u(W.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)]",
|
|
7684
|
-
Ot[
|
|
7685
|
-
xs[
|
|
7686
|
-
gs[
|
|
7684
|
+
Ot[d],
|
|
7685
|
+
xs[d],
|
|
7686
|
+
gs[d],
|
|
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: M.map((W) => /* @__PURE__ */ i.jsx(
|
|
7691
7691
|
"option",
|
|
7692
7692
|
{
|
|
7693
7693
|
value: W.value,
|
|
@@ -7707,7 +7707,10 @@ const vs = {
|
|
|
7707
7707
|
md: "text-ds-md",
|
|
7708
7708
|
lg: "text-ds-lg"
|
|
7709
7709
|
};
|
|
7710
|
-
function bi({
|
|
7710
|
+
function bi(r) {
|
|
7711
|
+
return "options" in r || "loadOptions" in r;
|
|
7712
|
+
}
|
|
7713
|
+
function yi({
|
|
7711
7714
|
groupLabel: r,
|
|
7712
7715
|
inputs: e = [],
|
|
7713
7716
|
separator: t = /* @__PURE__ */ i.jsx("span", { className: "px-1 select-none", children: "/" }),
|
|
@@ -7721,46 +7724,45 @@ function bi({
|
|
|
7721
7724
|
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", n), style: l ? { width: l } : void 0, children: [
|
|
7722
7725
|
/* @__PURE__ */ i.jsx("label", { className: I("sr-only pb-2", vs[o]), children: r }),
|
|
7723
7726
|
a && /* @__PURE__ */ i.jsx("label", { className: I("pb-2", vs[o]), children: r }),
|
|
7724
|
-
/* @__PURE__ */ i.jsx("div", { className: "flex items-center flex-nowrap", children: e.map((
|
|
7725
|
-
const {
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
loadOptions: x,
|
|
7730
|
-
control: w,
|
|
7731
|
-
name: _,
|
|
7732
|
-
...v
|
|
7733
|
-
} = d, g = Array.isArray(y) || typeof x == "function";
|
|
7734
|
-
let S = "rounded-lg";
|
|
7735
|
-
!s && c > 1 && (u === 0 ? S = "rounded-l-lg rounded-r-none" : u === c - 1 ? S = "rounded-r-lg rounded-l-none" : S = "rounded-none");
|
|
7736
|
-
const $ = I(
|
|
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, _ = bi(u);
|
|
7729
|
+
let v = "rounded-lg";
|
|
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(
|
|
7737
7732
|
"inline-flex items-center flex-shrink-0 overflow-hidden",
|
|
7738
7733
|
typeof p == "string" && p.startsWith("w-") ? p : void 0
|
|
7739
|
-
),
|
|
7734
|
+
), S = typeof p == "string" && !p.startsWith("w-") ? { width: p } : void 0, O = I(m, v), F = (P) => y && x ? /* @__PURE__ */ i.jsx(
|
|
7740
7735
|
Oe,
|
|
7741
7736
|
{
|
|
7742
|
-
name:
|
|
7743
|
-
control:
|
|
7744
|
-
render: ({ field:
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7737
|
+
name: x,
|
|
7738
|
+
control: y,
|
|
7739
|
+
render: ({ field: q }) => {
|
|
7740
|
+
const N = q.value;
|
|
7741
|
+
return P({
|
|
7742
|
+
...w,
|
|
7743
|
+
value: _ ? N === null ? void 0 : N ?? void 0 : N ?? "",
|
|
7744
|
+
onChange: q.onChange,
|
|
7745
|
+
className: O,
|
|
7746
|
+
size: o
|
|
7747
|
+
});
|
|
7748
|
+
}
|
|
7751
7749
|
}
|
|
7752
|
-
) :
|
|
7753
|
-
|
|
7754
|
-
|
|
7750
|
+
) : P({
|
|
7751
|
+
...w,
|
|
7752
|
+
className: O,
|
|
7753
|
+
size: o
|
|
7754
|
+
});
|
|
7755
|
+
return /* @__PURE__ */ i.jsxs("div", { className: g, style: S, children: [
|
|
7756
|
+
F(_ ? (P) => /* @__PURE__ */ i.jsx(
|
|
7755
7757
|
Zt,
|
|
7756
7758
|
{
|
|
7757
|
-
...
|
|
7758
|
-
options:
|
|
7759
|
-
loadOptions:
|
|
7759
|
+
...P,
|
|
7760
|
+
options: u.options,
|
|
7761
|
+
loadOptions: u.loadOptions
|
|
7760
7762
|
}
|
|
7761
|
-
) : (
|
|
7762
|
-
s &&
|
|
7763
|
-
] },
|
|
7763
|
+
) : (P) => /* @__PURE__ */ i.jsx(Cr, { ...P })),
|
|
7764
|
+
s && d < c - 1 && t
|
|
7765
|
+
] }, d);
|
|
7764
7766
|
}) })
|
|
7765
7767
|
] });
|
|
7766
7768
|
}
|
|
@@ -7768,12 +7770,12 @@ const ws = {
|
|
|
7768
7770
|
sm: "text-ds-sm",
|
|
7769
7771
|
md: "text-ds-md",
|
|
7770
7772
|
lg: "text-ds-lg"
|
|
7771
|
-
},
|
|
7773
|
+
}, vi = {
|
|
7772
7774
|
sm: "w-4 h-4",
|
|
7773
7775
|
md: "w-5 h-5",
|
|
7774
7776
|
lg: "w-6 h-6"
|
|
7775
7777
|
};
|
|
7776
|
-
function
|
|
7778
|
+
function wi({
|
|
7777
7779
|
groupLabel: r,
|
|
7778
7780
|
options: e,
|
|
7779
7781
|
control: t,
|
|
@@ -7783,8 +7785,8 @@ function vi({
|
|
|
7783
7785
|
multiple: o = !0,
|
|
7784
7786
|
size: l = "sm",
|
|
7785
7787
|
vertical: c = !0,
|
|
7786
|
-
className:
|
|
7787
|
-
showVisibleLabel:
|
|
7788
|
+
className: u,
|
|
7789
|
+
showVisibleLabel: d = !0
|
|
7788
7790
|
}) {
|
|
7789
7791
|
return /* @__PURE__ */ i.jsx(
|
|
7790
7792
|
Oe,
|
|
@@ -7803,7 +7805,7 @@ function vi({
|
|
|
7803
7805
|
} else
|
|
7804
7806
|
x(v);
|
|
7805
7807
|
};
|
|
7806
|
-
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full",
|
|
7808
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full", u), children: [
|
|
7807
7809
|
/* @__PURE__ */ i.jsx(
|
|
7808
7810
|
"label",
|
|
7809
7811
|
{
|
|
@@ -7814,7 +7816,7 @@ function vi({
|
|
|
7814
7816
|
children: r
|
|
7815
7817
|
}
|
|
7816
7818
|
),
|
|
7817
|
-
|
|
7819
|
+
d && /* @__PURE__ */ i.jsx(
|
|
7818
7820
|
"label",
|
|
7819
7821
|
{
|
|
7820
7822
|
className: I(
|
|
@@ -7844,7 +7846,7 @@ function vi({
|
|
|
7844
7846
|
checked: w(v.value),
|
|
7845
7847
|
onChange: () => _(v.value),
|
|
7846
7848
|
className: I(
|
|
7847
|
-
|
|
7849
|
+
vi[l],
|
|
7848
7850
|
"text-[var(--color-ds-button-primary-bg)]",
|
|
7849
7851
|
"border-[var(--color-ds-border-default)]"
|
|
7850
7852
|
)
|
|
@@ -7862,16 +7864,16 @@ function vi({
|
|
|
7862
7864
|
}
|
|
7863
7865
|
);
|
|
7864
7866
|
}
|
|
7865
|
-
function
|
|
7867
|
+
function ki(r) {
|
|
7866
7868
|
function e(o) {
|
|
7867
7869
|
var l, c;
|
|
7868
|
-
for (const
|
|
7869
|
-
if ((l = o[
|
|
7870
|
-
return
|
|
7871
|
-
if (typeof o[
|
|
7872
|
-
const
|
|
7873
|
-
if (
|
|
7874
|
-
return `${
|
|
7870
|
+
for (const u of Object.keys(o)) {
|
|
7871
|
+
if ((l = o[u]) != null && l.types || (c = o[u]) != null && c.message)
|
|
7872
|
+
return u;
|
|
7873
|
+
if (typeof o[u] == "object") {
|
|
7874
|
+
const d = e(o[u]);
|
|
7875
|
+
if (d)
|
|
7876
|
+
return `${u}.${d}`;
|
|
7875
7877
|
}
|
|
7876
7878
|
}
|
|
7877
7879
|
return null;
|
|
@@ -7881,12 +7883,12 @@ function wi(r) {
|
|
|
7881
7883
|
const s = `[name="${t}"]`, n = `[name^="${t}["], [name^="${t}."]`, a = document.querySelector(s) ?? document.querySelector(n);
|
|
7882
7884
|
a && (a.scrollIntoView({ behavior: "smooth", block: "center" }), a.focus({ preventScroll: !0 }));
|
|
7883
7885
|
}
|
|
7884
|
-
const
|
|
7886
|
+
const ji = {
|
|
7885
7887
|
success: "bg-green-100 border-green-500 text-green-800",
|
|
7886
7888
|
error: "bg-red-100 border-red-500 text-red-800",
|
|
7887
7889
|
info: "bg-blue-100 border-blue-500 text-blue-800",
|
|
7888
7890
|
warning: "bg-yellow-100 border-yellow-500 text-yellow-800"
|
|
7889
|
-
},
|
|
7891
|
+
}, Ei = ({
|
|
7890
7892
|
id: r,
|
|
7891
7893
|
message: e,
|
|
7892
7894
|
variant: t = "info",
|
|
@@ -7900,7 +7902,7 @@ const ki = {
|
|
|
7900
7902
|
{
|
|
7901
7903
|
className: I(
|
|
7902
7904
|
"w-80 max-w-full border-l-4 rounded shadow-md p-4 mb-2 flex justify-between items-start",
|
|
7903
|
-
|
|
7905
|
+
ji[t]
|
|
7904
7906
|
),
|
|
7905
7907
|
role: "alert",
|
|
7906
7908
|
"aria-live": "assertive",
|
|
@@ -7918,43 +7920,43 @@ const ki = {
|
|
|
7918
7920
|
}
|
|
7919
7921
|
));
|
|
7920
7922
|
let Rt;
|
|
7921
|
-
const
|
|
7922
|
-
function
|
|
7923
|
+
const Ni = new Uint8Array(16);
|
|
7924
|
+
function _i() {
|
|
7923
7925
|
if (!Rt && (Rt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Rt))
|
|
7924
7926
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
7925
|
-
return Rt(
|
|
7927
|
+
return Rt(Ni);
|
|
7926
7928
|
}
|
|
7927
7929
|
const ve = [];
|
|
7928
7930
|
for (let r = 0; r < 256; ++r)
|
|
7929
7931
|
ve.push((r + 256).toString(16).slice(1));
|
|
7930
|
-
function
|
|
7932
|
+
function Fi(r, e = 0) {
|
|
7931
7933
|
return ve[r[e + 0]] + ve[r[e + 1]] + ve[r[e + 2]] + ve[r[e + 3]] + "-" + ve[r[e + 4]] + ve[r[e + 5]] + "-" + ve[r[e + 6]] + ve[r[e + 7]] + "-" + ve[r[e + 8]] + ve[r[e + 9]] + "-" + ve[r[e + 10]] + ve[r[e + 11]] + ve[r[e + 12]] + ve[r[e + 13]] + ve[r[e + 14]] + ve[r[e + 15]];
|
|
7932
7934
|
}
|
|
7933
|
-
const
|
|
7934
|
-
randomUUID:
|
|
7935
|
+
const Si = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ks = {
|
|
7936
|
+
randomUUID: Si
|
|
7935
7937
|
};
|
|
7936
|
-
function
|
|
7938
|
+
function Ti(r, e, t) {
|
|
7937
7939
|
if (ks.randomUUID && !r)
|
|
7938
7940
|
return ks.randomUUID();
|
|
7939
7941
|
r = r || {};
|
|
7940
|
-
const s = r.random || (r.rng ||
|
|
7941
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
7942
|
+
const s = r.random || (r.rng || _i)();
|
|
7943
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Fi(s);
|
|
7942
7944
|
}
|
|
7943
|
-
const kn = yr(null),
|
|
7945
|
+
const kn = yr(null), Ai = () => {
|
|
7944
7946
|
const r = vr(kn);
|
|
7945
7947
|
if (!r) throw new Error("useToast debe usarse dentro de <ToastProvider>");
|
|
7946
7948
|
return r;
|
|
7947
|
-
},
|
|
7949
|
+
}, il = ({ children: r }) => {
|
|
7948
7950
|
const [e, t] = ae([]), s = (a, o = "info", l = 5e3) => {
|
|
7949
|
-
const c =
|
|
7950
|
-
t((
|
|
7951
|
+
const c = Ti();
|
|
7952
|
+
t((u) => [...u, { id: c, message: a, variant: o, duration: l }]);
|
|
7951
7953
|
}, n = (a) => {
|
|
7952
7954
|
t((o) => o.filter((l) => l.id !== a));
|
|
7953
7955
|
};
|
|
7954
7956
|
return /* @__PURE__ */ i.jsxs(kn.Provider, { value: { show: s }, children: [
|
|
7955
7957
|
r,
|
|
7956
7958
|
/* @__PURE__ */ i.jsx("div", { className: "fixed top-4 right-4 z-50 flex flex-col items-end", children: e.map((a) => /* @__PURE__ */ i.jsx(
|
|
7957
|
-
|
|
7959
|
+
Ei,
|
|
7958
7960
|
{
|
|
7959
7961
|
id: a.id,
|
|
7960
7962
|
message: a.message,
|
|
@@ -7965,17 +7967,17 @@ const kn = yr(null), Ti = () => {
|
|
|
7965
7967
|
a.id
|
|
7966
7968
|
)) })
|
|
7967
7969
|
] });
|
|
7968
|
-
},
|
|
7969
|
-
function
|
|
7970
|
+
}, Ci = (r) => r.type === "inputGroup", Oi = (r) => r.type === "button", Ri = (r) => !Ci(r) && !Oi(r);
|
|
7971
|
+
function Vi(r) {
|
|
7970
7972
|
const e = Array.isArray(r) ? r : [];
|
|
7971
7973
|
return Fe(() => {
|
|
7972
7974
|
const t = {};
|
|
7973
7975
|
for (const s of e)
|
|
7974
|
-
|
|
7976
|
+
Ri(s) && s.name && (t[s.name] = s);
|
|
7975
7977
|
return t;
|
|
7976
7978
|
}, [e]);
|
|
7977
7979
|
}
|
|
7978
|
-
function
|
|
7980
|
+
function $i(r = [], e = []) {
|
|
7979
7981
|
if (r === e) return !0;
|
|
7980
7982
|
if (r.length !== e.length) return !1;
|
|
7981
7983
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -7984,7 +7986,7 @@ function Vi(r = [], e = []) {
|
|
|
7984
7986
|
}
|
|
7985
7987
|
return !0;
|
|
7986
7988
|
}
|
|
7987
|
-
function
|
|
7989
|
+
function Mi(r) {
|
|
7988
7990
|
const [e, t] = ae({}), [s, n] = ae(0), a = Fe(() => r.filter(
|
|
7989
7991
|
(c) => (c == null ? void 0 : c.type) === "select" && (c == null ? void 0 : c.name) && !Array.isArray(c == null ? void 0 : c.options) && typeof (c == null ? void 0 : c.loadOptions) == "function"
|
|
7990
7992
|
).map((c) => ({ name: c.name, load: c.loadOptions })), [r]), o = Fe(
|
|
@@ -7996,14 +7998,14 @@ function $i(r) {
|
|
|
7996
7998
|
l.current = o;
|
|
7997
7999
|
let c = !1;
|
|
7998
8000
|
return (async () => {
|
|
7999
|
-
a.length && (n((
|
|
8000
|
-
a.map(async ({ name:
|
|
8001
|
+
a.length && (n((d) => d + a.length), await Promise.all(
|
|
8002
|
+
a.map(async ({ name: d, load: p }) => {
|
|
8001
8003
|
try {
|
|
8002
8004
|
const m = await p();
|
|
8003
8005
|
if (c) return;
|
|
8004
8006
|
t((y) => {
|
|
8005
|
-
const x = y[
|
|
8006
|
-
return
|
|
8007
|
+
const x = y[d] ?? [];
|
|
8008
|
+
return $i(x, m) ? y : { ...y, [d]: m };
|
|
8007
8009
|
});
|
|
8008
8010
|
} catch {
|
|
8009
8011
|
} finally {
|
|
@@ -8016,19 +8018,19 @@ function $i(r) {
|
|
|
8016
8018
|
};
|
|
8017
8019
|
}, [o, a]), { optionsMap: e, loadingCount: s };
|
|
8018
8020
|
}
|
|
8019
|
-
const
|
|
8020
|
-
function
|
|
8021
|
+
const Di = (r) => r.type === "inputGroup", Ii = (r) => r.type === "button", Li = (r) => !Di(r) && !Ii(r);
|
|
8022
|
+
function Pi(r) {
|
|
8021
8023
|
return typeof r == "object" && r !== null;
|
|
8022
8024
|
}
|
|
8023
|
-
const
|
|
8025
|
+
const zi = (r) => {
|
|
8024
8026
|
const e = r.disabledWhen;
|
|
8025
|
-
if (!
|
|
8027
|
+
if (!Pi(e)) return !1;
|
|
8026
8028
|
const t = "watchField" in e, s = "rule" in e;
|
|
8027
8029
|
return t && !s;
|
|
8028
8030
|
};
|
|
8029
|
-
function
|
|
8031
|
+
function Ui(r, e) {
|
|
8030
8032
|
const t = Array.isArray(r) ? r : [], s = Fe(
|
|
8031
|
-
() => t.filter(
|
|
8033
|
+
() => t.filter(Li).filter(zi),
|
|
8032
8034
|
[t]
|
|
8033
8035
|
), n = Fe(
|
|
8034
8036
|
() => s.map((c) => c.disabledWhen.watchField),
|
|
@@ -8037,16 +8039,16 @@ function zi(r, e) {
|
|
|
8037
8039
|
control: e,
|
|
8038
8040
|
...n.length > 0 ? { name: n } : {}
|
|
8039
8041
|
}), o = Array.isArray(a) ? a : [], l = {};
|
|
8040
|
-
return s.forEach((c,
|
|
8041
|
-
const
|
|
8042
|
-
l[c.name ?? `__unnamed_${
|
|
8042
|
+
return s.forEach((c, u) => {
|
|
8043
|
+
const d = o[u];
|
|
8044
|
+
l[c.name ?? `__unnamed_${u}`] = d === c.disabledWhen.watchValue;
|
|
8043
8045
|
}), l;
|
|
8044
8046
|
}
|
|
8045
8047
|
const js = {
|
|
8046
8048
|
sm: "text-ds-sm",
|
|
8047
8049
|
md: "text-ds-md",
|
|
8048
8050
|
lg: "text-ds-lg"
|
|
8049
|
-
},
|
|
8051
|
+
}, Bi = {
|
|
8050
8052
|
sm: "px-2 py-1",
|
|
8051
8053
|
md: "px-3 py-2",
|
|
8052
8054
|
lg: "px-4 py-3"
|
|
@@ -8061,8 +8063,8 @@ function jn({
|
|
|
8061
8063
|
label: o,
|
|
8062
8064
|
labelHidden: l = !1,
|
|
8063
8065
|
hasError: c = !1,
|
|
8064
|
-
errorMessage:
|
|
8065
|
-
maxLength:
|
|
8066
|
+
errorMessage: u = "",
|
|
8067
|
+
maxLength: d,
|
|
8066
8068
|
showCounter: p = !1,
|
|
8067
8069
|
className: m,
|
|
8068
8070
|
suffixButton: y,
|
|
@@ -8077,8 +8079,8 @@ function jn({
|
|
|
8077
8079
|
control: r,
|
|
8078
8080
|
rules: t,
|
|
8079
8081
|
defaultValue: s || "",
|
|
8080
|
-
render: ({ field:
|
|
8081
|
-
var
|
|
8082
|
+
render: ({ field: O, fieldState: F }) => {
|
|
8083
|
+
var P;
|
|
8082
8084
|
return /* @__PURE__ */ i.jsx(
|
|
8083
8085
|
jn,
|
|
8084
8086
|
{
|
|
@@ -8088,13 +8090,13 @@ function jn({
|
|
|
8088
8090
|
label: o,
|
|
8089
8091
|
labelHidden: l,
|
|
8090
8092
|
hasError: !!F.error,
|
|
8091
|
-
errorMessage: ((
|
|
8092
|
-
maxLength:
|
|
8093
|
+
errorMessage: ((P = F.error) == null ? void 0 : P.message) || "",
|
|
8094
|
+
maxLength: d,
|
|
8093
8095
|
showCounter: p,
|
|
8094
8096
|
className: m,
|
|
8095
8097
|
suffixButton: y,
|
|
8096
|
-
value:
|
|
8097
|
-
onChange:
|
|
8098
|
+
value: O.value,
|
|
8099
|
+
onChange: O.onChange
|
|
8098
8100
|
}
|
|
8099
8101
|
);
|
|
8100
8102
|
}
|
|
@@ -8103,9 +8105,9 @@ function jn({
|
|
|
8103
8105
|
de(() => {
|
|
8104
8106
|
g(s || "");
|
|
8105
8107
|
}, [s]);
|
|
8106
|
-
const S = (
|
|
8108
|
+
const S = (O) => {
|
|
8107
8109
|
var F;
|
|
8108
|
-
|
|
8110
|
+
d !== void 0 && O.target.value.length > d || (g(O.target.value), (F = x.onChange) == null || F.call(x, O));
|
|
8109
8111
|
};
|
|
8110
8112
|
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", m), style: { width: a }, children: [
|
|
8111
8113
|
o && /* @__PURE__ */ i.jsx(
|
|
@@ -8128,34 +8130,34 @@ function jn({
|
|
|
8128
8130
|
className: I(
|
|
8129
8131
|
"box-border bg-[var(--color-ds-background-page)] w-full resize vertical rounded-lg border outline-none transition font-[var(--font-primary)]",
|
|
8130
8132
|
js[n],
|
|
8131
|
-
|
|
8133
|
+
Bi[n],
|
|
8132
8134
|
c ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]",
|
|
8133
8135
|
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)]"
|
|
8134
8136
|
),
|
|
8135
8137
|
value: v,
|
|
8136
8138
|
onChange: S,
|
|
8137
|
-
maxLength:
|
|
8139
|
+
maxLength: d,
|
|
8138
8140
|
...x
|
|
8139
8141
|
}
|
|
8140
8142
|
),
|
|
8141
8143
|
y ? /* @__PURE__ */ i.jsx("div", { className: "shrink-0", children: y }) : null
|
|
8142
8144
|
] }),
|
|
8143
8145
|
/* @__PURE__ */ i.jsxs("div", { className: "flex justify-between pt-1 min-h-[18px]", children: [
|
|
8144
|
-
c &&
|
|
8145
|
-
p &&
|
|
8146
|
+
c && u ? /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: u }) : /* @__PURE__ */ i.jsx("span", { "aria-hidden": "true", children: " " }),
|
|
8147
|
+
p && d !== void 0 && /* @__PURE__ */ i.jsxs("span", { className: "text-xs text-[var(--color-ds-text-secondary)]", children: [
|
|
8146
8148
|
v.length,
|
|
8147
8149
|
"/",
|
|
8148
|
-
|
|
8150
|
+
d
|
|
8149
8151
|
] })
|
|
8150
8152
|
] })
|
|
8151
8153
|
] });
|
|
8152
8154
|
}
|
|
8153
|
-
const
|
|
8155
|
+
const Zi = {
|
|
8154
8156
|
sm: "w-4 h-4",
|
|
8155
8157
|
md: "w-5 h-5",
|
|
8156
8158
|
lg: "w-6 h-6"
|
|
8157
8159
|
};
|
|
8158
|
-
function
|
|
8160
|
+
function Wi({
|
|
8159
8161
|
control: r = null,
|
|
8160
8162
|
name: e,
|
|
8161
8163
|
rules: t,
|
|
@@ -8165,13 +8167,13 @@ function Zi({
|
|
|
8165
8167
|
disabled: o = !1,
|
|
8166
8168
|
size: l = "sm",
|
|
8167
8169
|
className: c,
|
|
8168
|
-
hasError:
|
|
8169
|
-
errorMessage:
|
|
8170
|
+
hasError: u = !1,
|
|
8171
|
+
errorMessage: d = "",
|
|
8170
8172
|
checked: p,
|
|
8171
8173
|
onChange: m
|
|
8172
8174
|
}) {
|
|
8173
8175
|
const y = I(
|
|
8174
|
-
|
|
8176
|
+
Zi[l],
|
|
8175
8177
|
"text-[var(--color-ds-button-primary-bg)]",
|
|
8176
8178
|
"border-[var(--color-ds-border-default)]",
|
|
8177
8179
|
o && "opacity-50 cursor-not-allowed"
|
|
@@ -8204,7 +8206,7 @@ function Zi({
|
|
|
8204
8206
|
),
|
|
8205
8207
|
n && /* @__PURE__ */ i.jsx("span", { className: x, children: n })
|
|
8206
8208
|
] }),
|
|
8207
|
-
(
|
|
8209
|
+
(u || v) && ((v == null ? void 0 : v.message) || d) && /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: (v == null ? void 0 : v.message) || d })
|
|
8208
8210
|
] });
|
|
8209
8211
|
}
|
|
8210
8212
|
}
|
|
@@ -8223,10 +8225,10 @@ function Zi({
|
|
|
8223
8225
|
),
|
|
8224
8226
|
n && /* @__PURE__ */ i.jsx("span", { className: x, children: n })
|
|
8225
8227
|
] }),
|
|
8226
|
-
|
|
8228
|
+
u && !!d && /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: d })
|
|
8227
8229
|
] });
|
|
8228
8230
|
}
|
|
8229
|
-
function
|
|
8231
|
+
function qi({
|
|
8230
8232
|
name: r,
|
|
8231
8233
|
control: e,
|
|
8232
8234
|
searchFn: t,
|
|
@@ -8236,10 +8238,10 @@ function Wi({
|
|
|
8236
8238
|
width: o = "100%",
|
|
8237
8239
|
disabled: l = !1,
|
|
8238
8240
|
searchMode: c = "button",
|
|
8239
|
-
minChars:
|
|
8240
|
-
debounceMs:
|
|
8241
|
+
minChars: u = 3,
|
|
8242
|
+
debounceMs: d = 600
|
|
8241
8243
|
}) {
|
|
8242
|
-
const p = wt(), { watch: m, getValues: y, setValue: x } = p, w = Fr({ control: e, name: r }), [_, v] = ae([]), [g, S] = ae(!1), [
|
|
8244
|
+
const p = wt(), { watch: m, getValues: y, setValue: x } = p, w = Fr({ control: e, name: r }), [_, v] = ae([]), [g, S] = ae(!1), [O, F] = ae(!1), [P, q] = ae(""), N = ke(null), M = ke(null), J = ke(!1), B = ke(!1), $ = ke(!0), Y = Fe(() => {
|
|
8243
8245
|
const h = /* @__PURE__ */ new Map();
|
|
8244
8246
|
for (const Z of _) h.set(String(Z.value).trim(), Z.label ?? "");
|
|
8245
8247
|
return h;
|
|
@@ -8261,9 +8263,9 @@ function Wi({
|
|
|
8261
8263
|
function h(Z) {
|
|
8262
8264
|
N.current && !N.current.contains(Z.target) && F(!1);
|
|
8263
8265
|
}
|
|
8264
|
-
if (
|
|
8266
|
+
if (O)
|
|
8265
8267
|
return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
|
|
8266
|
-
}, [
|
|
8268
|
+
}, [O]), de(() => {
|
|
8267
8269
|
if (J.current) return;
|
|
8268
8270
|
const Z = (w ? String(w) : "").trim();
|
|
8269
8271
|
if (!Z) {
|
|
@@ -8272,7 +8274,7 @@ function Wi({
|
|
|
8272
8274
|
}
|
|
8273
8275
|
const j = Y.get(Z);
|
|
8274
8276
|
if (j) {
|
|
8275
|
-
q(j), F(!1),
|
|
8277
|
+
q(j), F(!1), $.current = !0;
|
|
8276
8278
|
return;
|
|
8277
8279
|
}
|
|
8278
8280
|
let k = !1;
|
|
@@ -8280,34 +8282,34 @@ function Wi({
|
|
|
8280
8282
|
if (s)
|
|
8281
8283
|
try {
|
|
8282
8284
|
const C = await s(Z, { watch: m, getValues: y });
|
|
8283
|
-
k || (q((C == null ? void 0 : C.label) ?? Z), F(!1),
|
|
8285
|
+
k || (q((C == null ? void 0 : C.label) ?? Z), F(!1), $.current = !0);
|
|
8284
8286
|
} catch {
|
|
8285
|
-
k || (q(Z), F(!1),
|
|
8287
|
+
k || (q(Z), F(!1), $.current = !0);
|
|
8286
8288
|
}
|
|
8287
8289
|
else
|
|
8288
|
-
q(Z), F(!1),
|
|
8290
|
+
q(Z), F(!1), $.current = !0;
|
|
8289
8291
|
})(), () => {
|
|
8290
8292
|
k = !0;
|
|
8291
8293
|
};
|
|
8292
8294
|
}, [w, Y, s, m, y]), de(() => {
|
|
8293
8295
|
if (c !== "debounced" || l) return;
|
|
8294
|
-
if (
|
|
8295
|
-
|
|
8296
|
+
if ($.current) {
|
|
8297
|
+
$.current = !1;
|
|
8296
8298
|
return;
|
|
8297
8299
|
}
|
|
8298
8300
|
if (!B.current) return;
|
|
8299
|
-
|
|
8300
|
-
const h = (
|
|
8301
|
-
return h.length >=
|
|
8301
|
+
M.current && (window.clearTimeout(M.current), M.current = null);
|
|
8302
|
+
const h = (P || "").trim();
|
|
8303
|
+
return h.length >= u ? M.current = window.setTimeout(() => {
|
|
8302
8304
|
K(h);
|
|
8303
|
-
},
|
|
8304
|
-
|
|
8305
|
+
}, d) : (v([]), F(!1)), () => {
|
|
8306
|
+
M.current && (window.clearTimeout(M.current), M.current = null);
|
|
8305
8307
|
};
|
|
8306
|
-
}, [
|
|
8308
|
+
}, [P, c, u, d, l]);
|
|
8307
8309
|
const W = 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) => {
|
|
8308
8310
|
if (l) return;
|
|
8309
|
-
const Z = (
|
|
8310
|
-
h.key === "Enter" && (h.preventDefault(), c === "debounced" ? Z.length >=
|
|
8311
|
+
const Z = (P || "").trim();
|
|
8312
|
+
h.key === "Enter" && (h.preventDefault(), c === "debounced" ? Z.length >= u && K(Z) : K(Z)), h.key === "Escape" && F(!1);
|
|
8311
8313
|
};
|
|
8312
8314
|
return /* @__PURE__ */ i.jsx(
|
|
8313
8315
|
Oe,
|
|
@@ -8325,7 +8327,7 @@ function Wi({
|
|
|
8325
8327
|
type: "text",
|
|
8326
8328
|
size: a,
|
|
8327
8329
|
width: "100%",
|
|
8328
|
-
value:
|
|
8330
|
+
value: P,
|
|
8329
8331
|
onChange: (k) => {
|
|
8330
8332
|
const C = k.target.value;
|
|
8331
8333
|
J.current = !0, B.current = !0, q(C), (w ? String(w) : "").trim() && x(r, "", { shouldDirty: !0 });
|
|
@@ -8339,7 +8341,7 @@ function Wi({
|
|
|
8339
8341
|
errorMessage: (j = Z.error) == null ? void 0 : j.message,
|
|
8340
8342
|
onFocus: () => {
|
|
8341
8343
|
if (J.current = !0, c === "button" && B.current) {
|
|
8342
|
-
const k = (
|
|
8344
|
+
const k = (P || "").trim();
|
|
8343
8345
|
k && K(k);
|
|
8344
8346
|
}
|
|
8345
8347
|
},
|
|
@@ -8350,7 +8352,7 @@ function Wi({
|
|
|
8350
8352
|
className: "!rounded-l-none",
|
|
8351
8353
|
size: a,
|
|
8352
8354
|
variant: "primary",
|
|
8353
|
-
onClick: () => K((
|
|
8355
|
+
onClick: () => K((P || "").trim()),
|
|
8354
8356
|
disabled: l,
|
|
8355
8357
|
children: "Buscar"
|
|
8356
8358
|
}
|
|
@@ -8366,7 +8368,7 @@ function Wi({
|
|
|
8366
8368
|
className: "rounded-lg"
|
|
8367
8369
|
}
|
|
8368
8370
|
) }),
|
|
8369
|
-
|
|
8371
|
+
O && !g && _.length > 0 && /* @__PURE__ */ i.jsx(
|
|
8370
8372
|
"ul",
|
|
8371
8373
|
{
|
|
8372
8374
|
className: `
|
|
@@ -8397,7 +8399,7 @@ function Wi({
|
|
|
8397
8399
|
);
|
|
8398
8400
|
}
|
|
8399
8401
|
const gt = (r, e) => r[e], Es = (r) => r instanceof Date ? r.getTime() : r;
|
|
8400
|
-
function
|
|
8402
|
+
function Gi(r, e, t) {
|
|
8401
8403
|
const s = Es(r), n = Es(e);
|
|
8402
8404
|
return typeof s == "number" && typeof n == "number" || typeof s == "string" && typeof n == "string" ? t === "gt" ? s > n : t === "gte" ? s >= n : t === "lt" ? s < n : s <= n : !1;
|
|
8403
8405
|
}
|
|
@@ -8416,7 +8418,7 @@ function Wt(r, e) {
|
|
|
8416
8418
|
case "gte":
|
|
8417
8419
|
case "lt":
|
|
8418
8420
|
case "lte":
|
|
8419
|
-
return
|
|
8421
|
+
return Gi(gt(e, r.field), r.value, r.op);
|
|
8420
8422
|
case "and":
|
|
8421
8423
|
return r.rules.every((t) => Wt(t, e));
|
|
8422
8424
|
case "or":
|
|
@@ -8425,11 +8427,10 @@ function Wt(r, e) {
|
|
|
8425
8427
|
return !1;
|
|
8426
8428
|
}
|
|
8427
8429
|
}
|
|
8428
|
-
const
|
|
8429
|
-
function
|
|
8430
|
+
const Yi = (r) => r.type !== "inputGroup" && r.type !== "button";
|
|
8431
|
+
function ll({
|
|
8430
8432
|
schema: r,
|
|
8431
8433
|
resolver: e
|
|
8432
|
-
// <- opcional: pasa tu yupResolver desde fuera
|
|
8433
8434
|
}) {
|
|
8434
8435
|
const {
|
|
8435
8436
|
layout: t,
|
|
@@ -8439,18 +8440,18 @@ function il({
|
|
|
8439
8440
|
errorMessage: o,
|
|
8440
8441
|
footerButtons: l,
|
|
8441
8442
|
defaultValues: c,
|
|
8442
|
-
loadDefaultValues:
|
|
8443
|
-
validationSchema:
|
|
8443
|
+
loadDefaultValues: u,
|
|
8444
|
+
validationSchema: d
|
|
8444
8445
|
// por compatibilidad con esquemas explícitos ya existentes
|
|
8445
|
-
} = r, { show: p } =
|
|
8446
|
+
} = r, { show: p } = Ai(), { t: m } = Ar(), y = Fe(() => {
|
|
8446
8447
|
if (e) return e;
|
|
8447
8448
|
try {
|
|
8448
|
-
const A =
|
|
8449
|
+
const A = d ?? xi(r);
|
|
8449
8450
|
return $o(A);
|
|
8450
8451
|
} catch {
|
|
8451
8452
|
return;
|
|
8452
8453
|
}
|
|
8453
|
-
}, [e, r,
|
|
8454
|
+
}, [e, r, d]), x = oo({
|
|
8454
8455
|
resolver: y,
|
|
8455
8456
|
mode: "onBlur",
|
|
8456
8457
|
reValidateMode: "onChange",
|
|
@@ -8460,19 +8461,19 @@ function il({
|
|
|
8460
8461
|
reset: _,
|
|
8461
8462
|
handleSubmit: v,
|
|
8462
8463
|
formState: { errors: g, isSubmitting: S }
|
|
8463
|
-
} = x, [
|
|
8464
|
+
} = x, [O, F] = ae(!1);
|
|
8464
8465
|
de(() => {
|
|
8465
|
-
|
|
8466
|
-
}, [
|
|
8467
|
-
const
|
|
8468
|
-
() => (s ?? []).filter(
|
|
8466
|
+
u && (F(!0), u().then((A) => _(A)).finally(() => F(!1)));
|
|
8467
|
+
}, [u, _]);
|
|
8468
|
+
const P = Fe(
|
|
8469
|
+
() => (s ?? []).filter(Yi),
|
|
8469
8470
|
[s]
|
|
8470
|
-
), { loadingCount: q, optionsMap: N } =
|
|
8471
|
+
), { loadingCount: q, optionsMap: N } = Mi(P), M = Vi(s), J = Ui(s, w), B = Fe(() => {
|
|
8471
8472
|
const A = {};
|
|
8472
8473
|
return t.forEach((h, Z) => {
|
|
8473
8474
|
h.type === "tabs" && (A[Z] = h.tabs[0].key);
|
|
8474
8475
|
}), A;
|
|
8475
|
-
}, [t]), [
|
|
8476
|
+
}, [t]), [$, Y] = ae(B), K = or(
|
|
8476
8477
|
(A, h) => {
|
|
8477
8478
|
if (!(A != null && A.enabled) || !A.rule) return h;
|
|
8478
8479
|
try {
|
|
@@ -8518,10 +8519,10 @@ function il({
|
|
|
8518
8519
|
}, [x, W]);
|
|
8519
8520
|
const H = or(
|
|
8520
8521
|
(A) => {
|
|
8521
|
-
var se, oe,
|
|
8522
|
+
var se, oe, pe, ye;
|
|
8522
8523
|
let h;
|
|
8523
8524
|
if (typeof A == "string") {
|
|
8524
|
-
if (h =
|
|
8525
|
+
if (h = M[A], !h) return null;
|
|
8525
8526
|
} else
|
|
8526
8527
|
h = A;
|
|
8527
8528
|
const Z = h.visibleWhen;
|
|
@@ -8542,7 +8543,7 @@ function il({
|
|
|
8542
8543
|
watch: x.watch
|
|
8543
8544
|
}), fe = {};
|
|
8544
8545
|
return h.searchMode && (fe.searchMode = h.searchMode), h.minChars && (fe.minChars = h.minChars), h.debounceMs && (fe.debounceMs = h.debounceMs), h.resolveByValue && (fe.resolveByValue = h.resolveByValue), /* @__PURE__ */ i.jsx(
|
|
8545
|
-
|
|
8546
|
+
qi,
|
|
8546
8547
|
{
|
|
8547
8548
|
name: h.name,
|
|
8548
8549
|
control: w,
|
|
@@ -8559,35 +8560,37 @@ function il({
|
|
|
8559
8560
|
if (h.type === "inputGroup") {
|
|
8560
8561
|
const te = h, fe = te.inputs.map((Ae) => {
|
|
8561
8562
|
var dt;
|
|
8562
|
-
const
|
|
8563
|
-
if (!
|
|
8564
|
-
const Me =
|
|
8565
|
-
let ut = !!
|
|
8563
|
+
const xe = typeof Ae == "string" ? M[Ae] : Ae;
|
|
8564
|
+
if (!xe) return null;
|
|
8565
|
+
const Me = xe.disabledWhen;
|
|
8566
|
+
let ut = !!xe.disabled;
|
|
8566
8567
|
const Yt = K(Me, !1);
|
|
8567
|
-
Me != null && Me.enabled && (ut = Yt), !(Me != null && Me.enabled) && J[
|
|
8568
|
+
Me != null && Me.enabled && (ut = Yt), !(Me != null && Me.enabled) && J[xe.name] && (ut = !0);
|
|
8568
8569
|
const Ht = {
|
|
8569
|
-
name:
|
|
8570
|
+
name: xe.name,
|
|
8570
8571
|
control: w,
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
loading: $,
|
|
8572
|
+
label: xe.label,
|
|
8573
|
+
size: xe.size,
|
|
8574
|
+
width: xe.width,
|
|
8575
|
+
placeholder: xe.placeholder,
|
|
8576
|
+
hasError: !!g[xe.name],
|
|
8577
|
+
errorMessage: ((dt = g[xe.name]) == null ? void 0 : dt.message) || "",
|
|
8578
|
+
loading: O,
|
|
8579
8579
|
disabled: ut,
|
|
8580
|
-
suffixButton:
|
|
8580
|
+
suffixButton: xe.suffixButton,
|
|
8581
8581
|
reserveErrorSpace: !0
|
|
8582
8582
|
};
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8583
|
+
if (xe.type === "select") {
|
|
8584
|
+
const f = {
|
|
8585
|
+
options: xe.options ?? N[xe.name] ?? [],
|
|
8586
|
+
loadOptions: xe.options ? void 0 : xe.loadOptions
|
|
8587
|
+
};
|
|
8588
|
+
return { ...Ht, ...f };
|
|
8589
|
+
}
|
|
8590
|
+
return Ht;
|
|
8588
8591
|
}).filter((Ae) => Ae !== null);
|
|
8589
8592
|
return /* @__PURE__ */ i.jsx(
|
|
8590
|
-
|
|
8593
|
+
yi,
|
|
8591
8594
|
{
|
|
8592
8595
|
groupLabel: te.groupLabel,
|
|
8593
8596
|
inputs: fe,
|
|
@@ -8694,7 +8697,7 @@ function il({
|
|
|
8694
8697
|
);
|
|
8695
8698
|
case "checkbox":
|
|
8696
8699
|
return /* @__PURE__ */ i.jsx(
|
|
8697
|
-
|
|
8700
|
+
Wi,
|
|
8698
8701
|
{
|
|
8699
8702
|
...ue,
|
|
8700
8703
|
defaultValue: !1,
|
|
@@ -8712,13 +8715,13 @@ function il({
|
|
|
8712
8715
|
defaultValue: "",
|
|
8713
8716
|
showTime: !!h.showTime,
|
|
8714
8717
|
hasError: !!g[h.name],
|
|
8715
|
-
errorMessage: (
|
|
8718
|
+
errorMessage: (pe = g[h.name]) == null ? void 0 : pe.message
|
|
8716
8719
|
},
|
|
8717
8720
|
h.name
|
|
8718
8721
|
);
|
|
8719
8722
|
case "optionGroup":
|
|
8720
8723
|
return /* @__PURE__ */ i.jsx(
|
|
8721
|
-
|
|
8724
|
+
wi,
|
|
8722
8725
|
{
|
|
8723
8726
|
...ue,
|
|
8724
8727
|
options: h.options || [],
|
|
@@ -8737,7 +8740,7 @@ function il({
|
|
|
8737
8740
|
{
|
|
8738
8741
|
...ue,
|
|
8739
8742
|
type: h.type,
|
|
8740
|
-
loadingDefaults:
|
|
8743
|
+
loadingDefaults: O,
|
|
8741
8744
|
hasError: !!g[h.name],
|
|
8742
8745
|
errorMessage: (ye = g[h.name]) == null ? void 0 : ye.message,
|
|
8743
8746
|
suffixButton: re,
|
|
@@ -8748,11 +8751,11 @@ function il({
|
|
|
8748
8751
|
}
|
|
8749
8752
|
},
|
|
8750
8753
|
[
|
|
8751
|
-
|
|
8754
|
+
M,
|
|
8752
8755
|
w,
|
|
8753
8756
|
g,
|
|
8754
8757
|
S,
|
|
8755
|
-
|
|
8758
|
+
O,
|
|
8756
8759
|
N,
|
|
8757
8760
|
K,
|
|
8758
8761
|
J,
|
|
@@ -8769,7 +8772,7 @@ function il({
|
|
|
8769
8772
|
await n(A), p(a ?? m("ds.form.saveSuccess"), "success");
|
|
8770
8773
|
},
|
|
8771
8774
|
(A) => {
|
|
8772
|
-
console.log("❌ errores de validación:", A),
|
|
8775
|
+
console.log("❌ errores de validación:", A), ki(A), p(o ?? m("ds.form.saveError"), "error");
|
|
8773
8776
|
}
|
|
8774
8777
|
),
|
|
8775
8778
|
className: "space-y-6",
|
|
@@ -8789,7 +8792,7 @@ function il({
|
|
|
8789
8792
|
{
|
|
8790
8793
|
className: `${D.width} px-2 flex flex-col`,
|
|
8791
8794
|
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(
|
|
8792
|
-
(oe,
|
|
8795
|
+
(oe, pe) => {
|
|
8793
8796
|
var ye;
|
|
8794
8797
|
return /* @__PURE__ */ i.jsx(
|
|
8795
8798
|
"div",
|
|
@@ -8799,7 +8802,7 @@ function il({
|
|
|
8799
8802
|
(te) => H(te)
|
|
8800
8803
|
)
|
|
8801
8804
|
},
|
|
8802
|
-
|
|
8805
|
+
pe
|
|
8803
8806
|
);
|
|
8804
8807
|
}
|
|
8805
8808
|
) }) }, se)) })
|
|
@@ -8813,7 +8816,7 @@ function il({
|
|
|
8813
8816
|
gi,
|
|
8814
8817
|
{
|
|
8815
8818
|
options: A.tabs.map((Z) => ({ label: Z.label, value: Z.key })),
|
|
8816
|
-
value:
|
|
8819
|
+
value: $[h],
|
|
8817
8820
|
onChange: (Z) => Y((j) => ({ ...j, [h]: Z })),
|
|
8818
8821
|
children: Object.fromEntries(
|
|
8819
8822
|
A.tabs.map((Z) => [
|
|
@@ -8849,7 +8852,7 @@ function il({
|
|
|
8849
8852
|
variant: "primary",
|
|
8850
8853
|
icon: zn,
|
|
8851
8854
|
size: "sm",
|
|
8852
|
-
disabled: S ||
|
|
8855
|
+
disabled: S || O || q > 0,
|
|
8853
8856
|
children: m(S ? "ds.form.sending" : "ds.form.submit")
|
|
8854
8857
|
}
|
|
8855
8858
|
) })
|
|
@@ -8857,7 +8860,7 @@ function il({
|
|
|
8857
8860
|
}
|
|
8858
8861
|
) });
|
|
8859
8862
|
}
|
|
8860
|
-
const
|
|
8863
|
+
const Hi = {
|
|
8861
8864
|
sm: "h-8 w-8",
|
|
8862
8865
|
// 2rem x 2rem
|
|
8863
8866
|
md: "h-10 w-10",
|
|
@@ -8865,7 +8868,7 @@ const Yi = {
|
|
|
8865
8868
|
lg: "h-12 w-12"
|
|
8866
8869
|
// 3rem x 3rem
|
|
8867
8870
|
};
|
|
8868
|
-
function
|
|
8871
|
+
function Xi({
|
|
8869
8872
|
icon: r,
|
|
8870
8873
|
size: e = "md",
|
|
8871
8874
|
ariaLabel: t,
|
|
@@ -8890,7 +8893,7 @@ function Hi({
|
|
|
8890
8893
|
"transition-transform",
|
|
8891
8894
|
// para la animación de pulso
|
|
8892
8895
|
"focus:outline-none",
|
|
8893
|
-
|
|
8896
|
+
Hi[e],
|
|
8894
8897
|
s ? "opacity-50 cursor-not-allowed" : [
|
|
8895
8898
|
"hover:scale-110",
|
|
8896
8899
|
// ligero tamaño extra en hover
|
|
@@ -8903,7 +8906,7 @@ function Hi({
|
|
|
8903
8906
|
}
|
|
8904
8907
|
);
|
|
8905
8908
|
}
|
|
8906
|
-
function
|
|
8909
|
+
function Ki({ dark: r, onToggle: e }) {
|
|
8907
8910
|
return /* @__PURE__ */ i.jsx(
|
|
8908
8911
|
"button",
|
|
8909
8912
|
{
|
|
@@ -8961,7 +8964,7 @@ const En = yr({
|
|
|
8961
8964
|
toggle: () => {
|
|
8962
8965
|
}
|
|
8963
8966
|
});
|
|
8964
|
-
function
|
|
8967
|
+
function cl({ children: r }) {
|
|
8965
8968
|
const [e, t] = ae(!1), [s, n] = ae("light");
|
|
8966
8969
|
de(() => {
|
|
8967
8970
|
if (typeof window > "u") return;
|
|
@@ -8973,7 +8976,7 @@ function ll({ children: r }) {
|
|
|
8973
8976
|
const a = () => n((o) => o === "light" ? "dark" : "light");
|
|
8974
8977
|
return e ? /* @__PURE__ */ i.jsx(En.Provider, { value: { theme: s, toggle: a }, children: r }) : null;
|
|
8975
8978
|
}
|
|
8976
|
-
const Nn = () => vr(En),
|
|
8979
|
+
const Nn = () => vr(En), Ji = ({
|
|
8977
8980
|
pinnedPages: r,
|
|
8978
8981
|
onRemovePinned: e,
|
|
8979
8982
|
onBack: t,
|
|
@@ -8983,13 +8986,13 @@ const Nn = () => vr(En), Ki = ({
|
|
|
8983
8986
|
onChangeLocale: o,
|
|
8984
8987
|
profile: l,
|
|
8985
8988
|
profileOptions: c,
|
|
8986
|
-
onChangeProfile:
|
|
8989
|
+
onChangeProfile: u
|
|
8987
8990
|
}) => {
|
|
8988
|
-
const
|
|
8991
|
+
const d = r.slice(0, 3), { toggle: p } = Nn(), { t: m, i18n: y } = Ar(), x = (w) => {
|
|
8989
8992
|
o(w);
|
|
8990
8993
|
};
|
|
8991
8994
|
return /* @__PURE__ */ i.jsxs("header", { className: "flex items-center bg-[var(--color-ds-background-page)] py-2", children: [
|
|
8992
|
-
/* @__PURE__ */ i.jsx("div", { className: "flex items-center space-x-2", children:
|
|
8995
|
+
/* @__PURE__ */ i.jsx("div", { className: "flex items-center space-x-2", children: d.map((w) => /* @__PURE__ */ i.jsxs("div", { className: "flex items-center", children: [
|
|
8993
8996
|
/* @__PURE__ */ i.jsx(
|
|
8994
8997
|
"a",
|
|
8995
8998
|
{
|
|
@@ -9005,7 +9008,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9005
9008
|
}
|
|
9006
9009
|
),
|
|
9007
9010
|
/* @__PURE__ */ i.jsx(
|
|
9008
|
-
|
|
9011
|
+
Xi,
|
|
9009
9012
|
{
|
|
9010
9013
|
icon: kr,
|
|
9011
9014
|
size: "sm",
|
|
@@ -9034,14 +9037,14 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9034
9037
|
width: "auto",
|
|
9035
9038
|
options: c,
|
|
9036
9039
|
value: l,
|
|
9037
|
-
onChange:
|
|
9040
|
+
onChange: u,
|
|
9038
9041
|
disableErrorPlaceholder: !0
|
|
9039
9042
|
}
|
|
9040
9043
|
),
|
|
9041
|
-
/* @__PURE__ */ i.jsx(
|
|
9044
|
+
/* @__PURE__ */ i.jsx(Ki, { dark: s, onToggle: p })
|
|
9042
9045
|
] })
|
|
9043
9046
|
] });
|
|
9044
|
-
},
|
|
9047
|
+
}, ul = ({
|
|
9045
9048
|
loading: r = !1,
|
|
9046
9049
|
ariaLabel: e = "Cargando..."
|
|
9047
9050
|
}) => r ? /* @__PURE__ */ i.jsxs(
|
|
@@ -9072,7 +9075,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9072
9075
|
/* @__PURE__ */ i.jsx("span", { className: "sr-only", children: e })
|
|
9073
9076
|
]
|
|
9074
9077
|
}
|
|
9075
|
-
) : null,
|
|
9078
|
+
) : null, dl = ({
|
|
9076
9079
|
isOpen: r,
|
|
9077
9080
|
onClose: e,
|
|
9078
9081
|
title: t,
|
|
@@ -9144,17 +9147,17 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9144
9147
|
};
|
|
9145
9148
|
return /* @__PURE__ */ i.jsx("ul", { className: I(s > 0 ? "mt-1" : "mt-0"), children: r.map((l) => {
|
|
9146
9149
|
var x;
|
|
9147
|
-
const c = l.value === e,
|
|
9150
|
+
const c = l.value === e, u = n.has(l.value), d = ["pl-2", "pl-2", "pl-2"][s] || "pl-4", p = s === 0 ? u || c ? "bg-[var(--color-ds-background-accent)] text-[var(--color-ds-text-on-accent)] rounded-r-lg" : "text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]" : c ? "bg-[var(--color-ds-background-surface)] text-[var(--color-ds-text-primary)]" : "text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]", m = s === 0 && (u || c) ? "text-[var(--color-ds-text-on-accent)]" : "text-[var(--color-ds-text-secondary)]", y = !!((x = l.children) != null && x.length);
|
|
9148
9151
|
return /* @__PURE__ */ i.jsxs("li", { children: [
|
|
9149
9152
|
/* @__PURE__ */ i.jsxs(
|
|
9150
9153
|
"button",
|
|
9151
9154
|
{
|
|
9152
9155
|
type: "button",
|
|
9153
9156
|
onClick: () => y ? o(l.value) : t(l.value),
|
|
9154
|
-
"aria-expanded": y ?
|
|
9157
|
+
"aria-expanded": y ? u : void 0,
|
|
9155
9158
|
className: I(
|
|
9156
9159
|
"w-full flex items-center justify-between h-8 transition-colors",
|
|
9157
|
-
|
|
9160
|
+
d,
|
|
9158
9161
|
p
|
|
9159
9162
|
),
|
|
9160
9163
|
children: [
|
|
@@ -9162,7 +9165,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9162
9165
|
s === 0 && l.icon && /* @__PURE__ */ i.jsx(l.icon, { className: "w-5 h-5 ml-2" }),
|
|
9163
9166
|
/* @__PURE__ */ i.jsx("span", { className: "text-ds-sm", children: l.label })
|
|
9164
9167
|
] }),
|
|
9165
|
-
y && (
|
|
9168
|
+
y && (u ? /* @__PURE__ */ i.jsx(wr, { className: I("w-4 h-4", m) }) : /* @__PURE__ */ i.jsx(Zn, { className: I("w-4 h-4", m) }))
|
|
9166
9169
|
]
|
|
9167
9170
|
}
|
|
9168
9171
|
),
|
|
@@ -9172,7 +9175,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9172
9175
|
className: I(
|
|
9173
9176
|
"overflow-hidden transition-[max-height] duration-300 ease-in-out",
|
|
9174
9177
|
"border-l-1 border-[var(--color-ds-background-accent)] ml-6",
|
|
9175
|
-
|
|
9178
|
+
u ? "max-h-screen" : "max-h-0"
|
|
9176
9179
|
),
|
|
9177
9180
|
children: /* @__PURE__ */ i.jsx(
|
|
9178
9181
|
_n,
|
|
@@ -9187,7 +9190,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9187
9190
|
)
|
|
9188
9191
|
] }, l.value);
|
|
9189
9192
|
}) });
|
|
9190
|
-
}, Ji = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23FFFFFF;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e", Qi = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23005751;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e", el = ({
|
|
9193
|
+
}, Qi = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23FFFFFF;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e", el = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23005751;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e", tl = ({
|
|
9191
9194
|
appName: r,
|
|
9192
9195
|
orgName: e,
|
|
9193
9196
|
username: t,
|
|
@@ -9197,7 +9200,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9197
9200
|
onSelectNav: o,
|
|
9198
9201
|
width: l = "200px"
|
|
9199
9202
|
}) => {
|
|
9200
|
-
const { theme: c } = Nn(),
|
|
9203
|
+
const { theme: c } = Nn(), u = c === "dark" ? Qi : el;
|
|
9201
9204
|
return /* @__PURE__ */ i.jsxs(
|
|
9202
9205
|
"aside",
|
|
9203
9206
|
{
|
|
@@ -9208,7 +9211,7 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9208
9211
|
/* @__PURE__ */ i.jsx(
|
|
9209
9212
|
"img",
|
|
9210
9213
|
{
|
|
9211
|
-
src:
|
|
9214
|
+
src: u,
|
|
9212
9215
|
alt: "Logo Diputación",
|
|
9213
9216
|
className: "w-20 h-20"
|
|
9214
9217
|
}
|
|
@@ -9231,22 +9234,22 @@ const Nn = () => vr(En), Ki = ({
|
|
|
9231
9234
|
}
|
|
9232
9235
|
);
|
|
9233
9236
|
};
|
|
9234
|
-
function
|
|
9237
|
+
function fl({ hideSidebar: r = !1, sidebar: e, header: t, children: s }) {
|
|
9235
9238
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex h-screen overflow-hidden bg-[var(--color-ds-background-page)]", children: [
|
|
9236
|
-
!r && /* @__PURE__ */ i.jsx(
|
|
9239
|
+
!r && /* @__PURE__ */ i.jsx(tl, { ...e }),
|
|
9237
9240
|
/* @__PURE__ */ i.jsxs(
|
|
9238
9241
|
"div",
|
|
9239
9242
|
{
|
|
9240
9243
|
className: `flex-1 flex flex-col overflow-auto [scrollbar-gutter:stable_both-edges] ${r ? "px-0" : "px-10"}`,
|
|
9241
9244
|
children: [
|
|
9242
|
-
/* @__PURE__ */ i.jsx(
|
|
9245
|
+
/* @__PURE__ */ i.jsx(Ji, { ...t }),
|
|
9243
9246
|
/* @__PURE__ */ i.jsx("main", { className: "flex-1", children: s })
|
|
9244
9247
|
]
|
|
9245
9248
|
}
|
|
9246
9249
|
)
|
|
9247
9250
|
] });
|
|
9248
9251
|
}
|
|
9249
|
-
function
|
|
9252
|
+
function hl({
|
|
9250
9253
|
columns: r,
|
|
9251
9254
|
data: e,
|
|
9252
9255
|
loadData: t,
|
|
@@ -9256,8 +9259,8 @@ function fl({
|
|
|
9256
9259
|
onSelectionChange: o,
|
|
9257
9260
|
pageSize: l = 10,
|
|
9258
9261
|
initialSort: c,
|
|
9259
|
-
onSort:
|
|
9260
|
-
className:
|
|
9262
|
+
onSort: u,
|
|
9263
|
+
className: d,
|
|
9261
9264
|
onRowDoubleClick: p
|
|
9262
9265
|
}) {
|
|
9263
9266
|
const m = e !== void 0, [y, x] = ae([]), [w, _] = ae(!1), v = ke(null);
|
|
@@ -9272,7 +9275,7 @@ function fl({
|
|
|
9272
9275
|
k.signal.aborted || _(!1);
|
|
9273
9276
|
}), () => k.abort();
|
|
9274
9277
|
}, [t, m]);
|
|
9275
|
-
const g = Fe(() => m ? e : y, [e, y, m]), S = s ?? (t ? w : !1), [
|
|
9278
|
+
const g = Fe(() => m ? e : y, [e, y, m]), S = s ?? (t ? w : !1), [O, F] = ae(/* @__PURE__ */ new Set()), [P, q] = ae(1), [N, M] = ae(c == null ? void 0 : c.sortBy), [J, B] = ae((c == null ? void 0 : c.sortDir) ?? "asc"), $ = (k) => typeof n == "function" ? n(k) : k[n], Y = ke(null);
|
|
9276
9279
|
de(() => {
|
|
9277
9280
|
Y.current !== g && (F(/* @__PURE__ */ new Set()), q(1), Y.current = g);
|
|
9278
9281
|
}, [g]);
|
|
@@ -9284,30 +9287,30 @@ function fl({
|
|
|
9284
9287
|
return Q == null ? -k : re == null || Q > re ? k : Q < re ? -k : 0;
|
|
9285
9288
|
});
|
|
9286
9289
|
}, [g, N, J]), W = Math.max(1, Math.ceil(K.length / l)), H = Fe(() => {
|
|
9287
|
-
const k = (
|
|
9290
|
+
const k = (P - 1) * l;
|
|
9288
9291
|
return K.slice(k, k + l);
|
|
9289
|
-
}, [K,
|
|
9290
|
-
const C = new Set(
|
|
9291
|
-
C.has(k) ? C.delete(k) : C.add(k), F(C), o == null || o(g.filter((D) => C.has(
|
|
9292
|
+
}, [K, P, l]), A = (k) => {
|
|
9293
|
+
const C = new Set(O);
|
|
9294
|
+
C.has(k) ? C.delete(k) : C.add(k), F(C), o == null || o(g.filter((D) => C.has($(D))));
|
|
9292
9295
|
}, h = () => {
|
|
9293
|
-
const k = H.every((D) =>
|
|
9296
|
+
const k = H.every((D) => O.has($(D))), C = new Set(O);
|
|
9294
9297
|
H.forEach((D) => {
|
|
9295
|
-
k ? C.delete(
|
|
9296
|
-
}), F(C), o == null || o(g.filter((D) => C.has(
|
|
9298
|
+
k ? C.delete($(D)) : C.add($(D));
|
|
9299
|
+
}), F(C), o == null || o(g.filter((D) => C.has($(D))));
|
|
9297
9300
|
}, Z = (k) => {
|
|
9298
9301
|
if (!k.sortable) return;
|
|
9299
9302
|
const C = typeof k.accessor == "string" ? k.accessor : k.sortKey;
|
|
9300
9303
|
if (N === C) {
|
|
9301
9304
|
const D = J === "asc" ? "desc" : "asc";
|
|
9302
|
-
B(D),
|
|
9305
|
+
B(D), u == null || u(C, D);
|
|
9303
9306
|
} else
|
|
9304
|
-
|
|
9307
|
+
M(C), B("asc"), u == null || u(C, "asc");
|
|
9305
9308
|
q(1);
|
|
9306
9309
|
}, j = () => S ? /* @__PURE__ */ i.jsx("tbody", { children: Array.from({ length: l }).map((k, C) => /* @__PURE__ */ i.jsxs("tr", { children: [
|
|
9307
9310
|
a && /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(it, { width: "1rem", height: "1rem", variant: "circle" }) }),
|
|
9308
9311
|
r.map((D, Q) => /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(it, { width: "100%", height: "1em", variant: "rect" }) }, Q))
|
|
9309
9312
|
] }, C)) }) : H.length ? /* @__PURE__ */ i.jsx("tbody", { children: H.map((k) => {
|
|
9310
|
-
const C =
|
|
9313
|
+
const C = $(k);
|
|
9311
9314
|
return /* @__PURE__ */ i.jsxs(
|
|
9312
9315
|
"tr",
|
|
9313
9316
|
{
|
|
@@ -9322,7 +9325,7 @@ function fl({
|
|
|
9322
9325
|
"input",
|
|
9323
9326
|
{
|
|
9324
9327
|
type: "checkbox",
|
|
9325
|
-
checked:
|
|
9328
|
+
checked: O.has(C),
|
|
9326
9329
|
onChange: () => A(C),
|
|
9327
9330
|
onDoubleClick: (D) => D.stopPropagation()
|
|
9328
9331
|
}
|
|
@@ -9343,14 +9346,14 @@ function fl({
|
|
|
9343
9346
|
C
|
|
9344
9347
|
);
|
|
9345
9348
|
}) }) : /* @__PURE__ */ i.jsx("tbody", { children: /* @__PURE__ */ i.jsx("tr", { children: /* @__PURE__ */ i.jsx("td", { colSpan: r.length + (a ? 1 : 0), children: "No hay datos" }) }) });
|
|
9346
|
-
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full overflow-auto",
|
|
9349
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full overflow-auto", d), children: [
|
|
9347
9350
|
/* @__PURE__ */ i.jsxs("table", { className: "min-w-full divide-y divide-gray-200", children: [
|
|
9348
9351
|
/* @__PURE__ */ i.jsx("thead", { className: "bg-gray-50", children: /* @__PURE__ */ i.jsxs("tr", { children: [
|
|
9349
9352
|
a && /* @__PURE__ */ i.jsx("th", { children: /* @__PURE__ */ i.jsx(
|
|
9350
9353
|
"input",
|
|
9351
9354
|
{
|
|
9352
9355
|
type: "checkbox",
|
|
9353
|
-
checked: H.length > 0 && H.every((k) =>
|
|
9356
|
+
checked: H.length > 0 && H.every((k) => O.has($(k))),
|
|
9354
9357
|
onChange: h,
|
|
9355
9358
|
onDoubleClick: (k) => k.stopPropagation()
|
|
9356
9359
|
}
|
|
@@ -9374,15 +9377,15 @@ function fl({
|
|
|
9374
9377
|
j()
|
|
9375
9378
|
] }),
|
|
9376
9379
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between py-2 px-4", children: [
|
|
9377
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: S ? "Cargando..." : `Página ${
|
|
9380
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: S ? "Cargando..." : `Página ${P} de ${W}` }),
|
|
9378
9381
|
/* @__PURE__ */ i.jsxs("div", { className: "space-x-2", children: [
|
|
9379
|
-
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S ||
|
|
9380
|
-
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S ||
|
|
9382
|
+
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S || P <= 1, onClick: () => q((k) => Math.max(1, k - 1)), children: "Prev" }),
|
|
9383
|
+
/* @__PURE__ */ i.jsx(He, { size: "sm", variant: "outline", disabled: S || P >= W, onClick: () => q((k) => Math.min(W, k + 1)), children: "Next" })
|
|
9381
9384
|
] })
|
|
9382
9385
|
] })
|
|
9383
9386
|
] });
|
|
9384
9387
|
}
|
|
9385
|
-
function
|
|
9388
|
+
function rl({
|
|
9386
9389
|
control: r,
|
|
9387
9390
|
name: e,
|
|
9388
9391
|
rules: t,
|
|
@@ -9392,8 +9395,8 @@ function tl({
|
|
|
9392
9395
|
disabled: o = !1,
|
|
9393
9396
|
label: l,
|
|
9394
9397
|
labelPosition: c = "right",
|
|
9395
|
-
errorMessage:
|
|
9396
|
-
className:
|
|
9398
|
+
errorMessage: u = "",
|
|
9399
|
+
className: d
|
|
9397
9400
|
}) {
|
|
9398
9401
|
const p = et();
|
|
9399
9402
|
if (r && e)
|
|
@@ -9407,7 +9410,7 @@ function tl({
|
|
|
9407
9410
|
render: ({ field: y, fieldState: x }) => {
|
|
9408
9411
|
var w;
|
|
9409
9412
|
return /* @__PURE__ */ i.jsx(
|
|
9410
|
-
|
|
9413
|
+
rl,
|
|
9411
9414
|
{
|
|
9412
9415
|
checked: y.value,
|
|
9413
9416
|
onChange: y.onChange,
|
|
@@ -9415,14 +9418,14 @@ function tl({
|
|
|
9415
9418
|
label: l,
|
|
9416
9419
|
labelPosition: c,
|
|
9417
9420
|
errorMessage: ((w = x.error) == null ? void 0 : w.message) || "",
|
|
9418
|
-
className:
|
|
9421
|
+
className: d
|
|
9419
9422
|
}
|
|
9420
9423
|
);
|
|
9421
9424
|
}
|
|
9422
9425
|
}
|
|
9423
9426
|
);
|
|
9424
9427
|
const m = !!n;
|
|
9425
|
-
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col",
|
|
9428
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", d), children: [
|
|
9426
9429
|
/* @__PURE__ */ i.jsxs(
|
|
9427
9430
|
"label",
|
|
9428
9431
|
{
|
|
@@ -9462,10 +9465,10 @@ function tl({
|
|
|
9462
9465
|
]
|
|
9463
9466
|
}
|
|
9464
9467
|
),
|
|
9465
|
-
/* @__PURE__ */ i.jsx("div", { className: "pt-1 min-h-[18px] w-full", children:
|
|
9468
|
+
/* @__PURE__ */ i.jsx("div", { className: "pt-1 min-h-[18px] w-full", children: u ? /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: u }) : /* @__PURE__ */ i.jsx("span", { "aria-hidden": "true", children: " " }) })
|
|
9466
9469
|
] });
|
|
9467
9470
|
}
|
|
9468
|
-
function
|
|
9471
|
+
function ml({
|
|
9469
9472
|
items: r,
|
|
9470
9473
|
value: e,
|
|
9471
9474
|
onValueChange: t,
|
|
@@ -9476,15 +9479,15 @@ function hl({
|
|
|
9476
9479
|
const o = Fe(
|
|
9477
9480
|
() => r.filter((x) => x.defaultOpen && !x.disabled).map((x) => x.id),
|
|
9478
9481
|
[r]
|
|
9479
|
-
), [l, c] = ae(o),
|
|
9482
|
+
), [l, c] = ae(o), u = e ?? l, d = (x) => {
|
|
9480
9483
|
t ? t(x) : c(x);
|
|
9481
9484
|
}, p = (x, w) => {
|
|
9482
|
-
w &&
|
|
9485
|
+
w && d(s ? u.includes(x) ? u.filter((_) => _ !== x) : [...u, x] : u.includes(x) ? [] : [x]);
|
|
9483
9486
|
}, m = (x, w, _) => {
|
|
9484
9487
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p(w, _));
|
|
9485
9488
|
}, y = n ? "py-1" : "py-2";
|
|
9486
9489
|
return /* @__PURE__ */ i.jsx("div", { className: ["divide-y", "divide-[var(--color-ds-border-default-50)]", a].filter(Boolean).join(" "), children: r.map((x) => {
|
|
9487
|
-
const w =
|
|
9490
|
+
const w = u.includes(x.id), _ = !x.disabled;
|
|
9488
9491
|
return /* @__PURE__ */ i.jsxs("section", { "aria-disabled": x.disabled || void 0, children: [
|
|
9489
9492
|
/* @__PURE__ */ i.jsxs(
|
|
9490
9493
|
"button",
|
|
@@ -9526,37 +9529,37 @@ function hl({
|
|
|
9526
9529
|
}
|
|
9527
9530
|
export {
|
|
9528
9531
|
He as Button,
|
|
9529
|
-
|
|
9532
|
+
Wi as Checkbox,
|
|
9530
9533
|
Lr as CollapsibleSection,
|
|
9531
|
-
|
|
9534
|
+
ml as CompactAccordion,
|
|
9532
9535
|
co as DateInput,
|
|
9533
|
-
|
|
9536
|
+
al as DropdownMenu,
|
|
9534
9537
|
_o as FileUploader,
|
|
9535
9538
|
sn as FormFieldInput,
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
+
ol as FormPageLayout,
|
|
9540
|
+
ll as FormRenderer,
|
|
9541
|
+
Ji as Header,
|
|
9539
9542
|
Be as Icon,
|
|
9540
|
-
|
|
9543
|
+
Xi as IconButton,
|
|
9541
9544
|
Co as InfoButton,
|
|
9542
9545
|
Cr as Input,
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9546
|
+
yi as InputGroup,
|
|
9547
|
+
ul as LoadingScreen,
|
|
9548
|
+
dl as Modal,
|
|
9549
|
+
wi as OptionGroup,
|
|
9550
|
+
fl as PageLayout,
|
|
9551
|
+
qi as SearchField,
|
|
9549
9552
|
Zt as Select,
|
|
9550
|
-
|
|
9553
|
+
tl as Sidebar,
|
|
9551
9554
|
_n as SidebarNav,
|
|
9552
9555
|
it as SkeletonLoader,
|
|
9553
|
-
|
|
9556
|
+
hl as Table,
|
|
9554
9557
|
gi as Tabs,
|
|
9555
9558
|
jn as TextArea,
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9559
|
+
cl as ThemeProvider,
|
|
9560
|
+
Ki as ThemeToggle,
|
|
9561
|
+
Ei as Toast,
|
|
9562
|
+
il as ToastProvider,
|
|
9563
|
+
rl as ToggleSwitch,
|
|
9564
|
+
Ai as useToast
|
|
9562
9565
|
};
|