@dipusevilla/componentes-iu 1.0.24 → 1.0.25
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 +744 -743
- package/dist/index.umd.js +8 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -49,232 +49,232 @@ var ot = {};
|
|
|
49
49
|
var jr;
|
|
50
50
|
function gn() {
|
|
51
51
|
return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
-
function r(
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
52
|
+
function r(h) {
|
|
53
|
+
if (h == null) return null;
|
|
54
|
+
if (typeof h == "function")
|
|
55
|
+
return h.$$typeof === L ? null : h.displayName || h.name || null;
|
|
56
|
+
if (typeof h == "string") return h;
|
|
57
|
+
switch (h) {
|
|
58
58
|
case k:
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case v:
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case S:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case F:
|
|
65
65
|
return "Suspense";
|
|
66
66
|
case U:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
case V:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
71
|
+
if (typeof h == "object")
|
|
72
|
+
switch (typeof h.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
74
|
+
), h.$$typeof) {
|
|
75
75
|
case E:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case j:
|
|
78
|
-
return (
|
|
78
|
+
return (h.displayName || "Context") + ".Provider";
|
|
79
79
|
case y:
|
|
80
|
-
return (
|
|
80
|
+
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case O:
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var N = h.render;
|
|
83
|
+
return h = h.displayName, h || (h = N.displayName || N.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
84
|
case Y:
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
85
|
+
return N = h.displayName || null, N !== null ? N : r(h.type) || "Memo";
|
|
86
|
+
case _:
|
|
87
|
+
N = h._payload, h = h._init;
|
|
88
88
|
try {
|
|
89
|
-
return r(
|
|
89
|
+
return r(h(N));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
|
-
function t(
|
|
96
|
-
return "" +
|
|
95
|
+
function t(h) {
|
|
96
|
+
return "" + h;
|
|
97
97
|
}
|
|
98
|
-
function e(
|
|
98
|
+
function e(h) {
|
|
99
99
|
try {
|
|
100
|
-
t(
|
|
101
|
-
var
|
|
100
|
+
t(h);
|
|
101
|
+
var N = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
N = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
105
|
+
if (N) {
|
|
106
|
+
N = console;
|
|
107
|
+
var $ = N.error, B = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return $.call(
|
|
109
|
+
N,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
112
|
-
), t(
|
|
111
|
+
B
|
|
112
|
+
), t(h);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function s(
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
115
|
+
function s(h) {
|
|
116
|
+
if (h === k) return "<>";
|
|
117
|
+
if (typeof h == "object" && h !== null && h.$$typeof === _)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var N = r(h);
|
|
121
|
+
return N ? "<" + N + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function n() {
|
|
127
|
-
var
|
|
128
|
-
return
|
|
127
|
+
var h = M.A;
|
|
128
|
+
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
|
-
function o(
|
|
134
|
-
if (R.call(
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
133
|
+
function o(h) {
|
|
134
|
+
if (R.call(h, "key")) {
|
|
135
|
+
var N = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
136
|
+
if (N && N.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function l(
|
|
141
|
-
function
|
|
140
|
+
function l(h, N) {
|
|
141
|
+
function $() {
|
|
142
142
|
K || (K = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
|
-
|
|
144
|
+
N
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
$.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: $,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
|
-
var
|
|
154
|
-
return re[
|
|
153
|
+
var h = r(this.type);
|
|
154
|
+
return re[h] || (re[h] = !0, console.error(
|
|
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
|
+
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function u(
|
|
159
|
-
return
|
|
158
|
+
function u(h, N, $, B, ee, le, xe, W) {
|
|
159
|
+
return $ = le.ref, h = {
|
|
160
160
|
$$typeof: b,
|
|
161
|
-
type:
|
|
162
|
-
key:
|
|
161
|
+
type: h,
|
|
162
|
+
key: N,
|
|
163
163
|
props: le,
|
|
164
164
|
_owner: ee
|
|
165
|
-
}, (
|
|
165
|
+
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
168
|
-
}) : Object.defineProperty(
|
|
168
|
+
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(h, "_debugInfo", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
177
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
178
|
+
}), Object.defineProperty(h, "_debugStack", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
182
|
value: xe
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
|
-
value:
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
187
|
+
value: W
|
|
188
|
+
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(
|
|
191
|
-
var te =
|
|
190
|
+
function f(h, N, $, B, ee, le, xe, W) {
|
|
191
|
+
var te = N.children;
|
|
192
192
|
if (te !== void 0)
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
|
|
193
|
+
if (B)
|
|
194
|
+
if (G(te)) {
|
|
195
|
+
for (B = 0; B < te.length; B++)
|
|
196
|
+
m(te[B]);
|
|
197
197
|
Object.freeze && Object.freeze(te);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
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
|
-
else
|
|
203
|
-
if (R.call(
|
|
204
|
-
te = r(
|
|
205
|
-
var ce = Object.keys(
|
|
202
|
+
else m(te);
|
|
203
|
+
if (R.call(N, "key")) {
|
|
204
|
+
te = r(h);
|
|
205
|
+
var ce = Object.keys(N).filter(function(we) {
|
|
206
206
|
return we !== "key";
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
B = 0 < ce.length ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}", X[te + B] || (ce = 0 < ce.length ? "{" + ce.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} />
|
|
212
212
|
React keys must be passed directly to JSX without using spread:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
215
|
+
B,
|
|
216
216
|
te,
|
|
217
217
|
ce,
|
|
218
218
|
te
|
|
219
|
-
),
|
|
219
|
+
), X[te + B] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (te = null,
|
|
222
|
-
|
|
223
|
-
for (var se in
|
|
224
|
-
se !== "key" && (
|
|
225
|
-
} else
|
|
221
|
+
if (te = null, $ !== void 0 && (e($), te = "" + $), o(N) && (e(N.key), te = "" + N.key), "key" in N) {
|
|
222
|
+
$ = {};
|
|
223
|
+
for (var se in N)
|
|
224
|
+
se !== "key" && ($[se] = N[se]);
|
|
225
|
+
} else $ = N;
|
|
226
226
|
return te && l(
|
|
227
|
-
|
|
228
|
-
typeof
|
|
227
|
+
$,
|
|
228
|
+
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), u(
|
|
230
|
-
|
|
230
|
+
h,
|
|
231
231
|
te,
|
|
232
232
|
le,
|
|
233
233
|
ee,
|
|
234
234
|
n(),
|
|
235
|
-
|
|
235
|
+
$,
|
|
236
236
|
xe,
|
|
237
|
-
|
|
237
|
+
W
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function h
|
|
241
|
-
typeof
|
|
240
|
+
function m(h) {
|
|
241
|
+
typeof h == "object" && h !== null && h.$$typeof === b && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var p = ne, b = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), j = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"),
|
|
243
|
+
var p = ne, b = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), j = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), U = Symbol.for("react.suspense_list"), Y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, G = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
p = {
|
|
247
|
-
"react-stack-bottom-frame": function(
|
|
248
|
-
return
|
|
247
|
+
"react-stack-bottom-frame": function(h) {
|
|
248
|
+
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var K, re = {},
|
|
251
|
+
var K, re = {}, H = p["react-stack-bottom-frame"].bind(
|
|
252
252
|
p,
|
|
253
253
|
a
|
|
254
|
-
)(), g =
|
|
255
|
-
ot.Fragment = k, ot.jsx = function(
|
|
254
|
+
)(), g = J(s(a)), X = {};
|
|
255
|
+
ot.Fragment = k, ot.jsx = function(h, N, $, B, ee) {
|
|
256
256
|
var le = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
h,
|
|
259
|
+
N,
|
|
260
|
+
$,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
262
|
+
B,
|
|
263
263
|
ee,
|
|
264
|
-
le ? Error("react-stack-top-frame") :
|
|
265
|
-
le ?
|
|
264
|
+
le ? Error("react-stack-top-frame") : H,
|
|
265
|
+
le ? J(s(h)) : g
|
|
266
266
|
);
|
|
267
|
-
}, ot.jsxs = function(
|
|
267
|
+
}, ot.jsxs = function(h, N, $, B, ee) {
|
|
268
268
|
var le = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
h,
|
|
271
|
+
N,
|
|
272
|
+
$,
|
|
273
273
|
!0,
|
|
274
|
-
|
|
274
|
+
B,
|
|
275
275
|
ee,
|
|
276
|
-
le ? Error("react-stack-top-frame") :
|
|
277
|
-
le ?
|
|
276
|
+
le ? Error("react-stack-top-frame") : H,
|
|
277
|
+
le ? J(s(h)) : g
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), ot;
|
|
@@ -293,7 +293,7 @@ function fs(r) {
|
|
|
293
293
|
} else for (e in r) r[e] && (s && (s += " "), s += e);
|
|
294
294
|
return s;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function I() {
|
|
297
297
|
for (var r, t, e = 0, s = "", n = arguments.length; e < n; e++) (r = arguments[e]) && (t = fs(r)) && (s && (s += " "), s += t);
|
|
298
298
|
return s;
|
|
299
299
|
}
|
|
@@ -313,7 +313,7 @@ function Ie({
|
|
|
313
313
|
return /* @__PURE__ */ i.jsx(
|
|
314
314
|
r,
|
|
315
315
|
{
|
|
316
|
-
className:
|
|
316
|
+
className: I(yn[t], e),
|
|
317
317
|
"aria-hidden": s["aria-label"] ? void 0 : !0,
|
|
318
318
|
...s
|
|
319
319
|
}
|
|
@@ -351,7 +351,7 @@ function We({
|
|
|
351
351
|
onClick: u,
|
|
352
352
|
className: f
|
|
353
353
|
}) {
|
|
354
|
-
const
|
|
354
|
+
const m = !!a, p = m && !c, b = p ? jn[e] : kn[e];
|
|
355
355
|
return /* @__PURE__ */ i.jsxs(
|
|
356
356
|
"button",
|
|
357
357
|
{
|
|
@@ -360,13 +360,13 @@ function We({
|
|
|
360
360
|
disabled: n,
|
|
361
361
|
"aria-label": p ? l : void 0,
|
|
362
362
|
style: s ? { width: s } : void 0,
|
|
363
|
-
className:
|
|
363
|
+
className: I(
|
|
364
364
|
vn,
|
|
365
365
|
wn[t],
|
|
366
366
|
b,
|
|
367
367
|
En,
|
|
368
368
|
f,
|
|
369
|
-
|
|
369
|
+
m && c && "gap-2"
|
|
370
370
|
),
|
|
371
371
|
children: [
|
|
372
372
|
a && o === "left" && /* @__PURE__ */ i.jsx(Ie, { component: a, size: e }),
|
|
@@ -700,27 +700,27 @@ function _r({
|
|
|
700
700
|
}) {
|
|
701
701
|
const [n, a] = oe(e), o = Fe(null), l = Fe(null), [c, u] = oe(0), f = () => {
|
|
702
702
|
if (l.current) {
|
|
703
|
-
const
|
|
704
|
-
u(
|
|
703
|
+
const m = l.current.scrollHeight;
|
|
704
|
+
u(m);
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
return ds(() => {
|
|
708
708
|
f();
|
|
709
709
|
}, [n]), fe(() => {
|
|
710
|
-
const
|
|
711
|
-
if (!
|
|
710
|
+
const m = l.current;
|
|
711
|
+
if (!m) return;
|
|
712
712
|
const p = new ResizeObserver(() => {
|
|
713
713
|
f();
|
|
714
714
|
});
|
|
715
|
-
return p.observe(
|
|
715
|
+
return p.observe(m), () => {
|
|
716
716
|
p.disconnect();
|
|
717
717
|
};
|
|
718
|
-
}, []), /* @__PURE__ */ i.jsxs("div", { className:
|
|
718
|
+
}, []), /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col w-full gap-3", s), children: [
|
|
719
719
|
/* @__PURE__ */ i.jsxs(
|
|
720
720
|
"button",
|
|
721
721
|
{
|
|
722
722
|
type: "button",
|
|
723
|
-
onClick: () => a((
|
|
723
|
+
onClick: () => a((m) => !m),
|
|
724
724
|
className: "flex items-center justify-between w-full hover:bg-[var(--color-ds-surface-hover)] transition-colors",
|
|
725
725
|
children: [
|
|
726
726
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -735,7 +735,7 @@ function _r({
|
|
|
735
735
|
"div",
|
|
736
736
|
{
|
|
737
737
|
ref: o,
|
|
738
|
-
className:
|
|
738
|
+
className: I(
|
|
739
739
|
"overflow-hidden transition-all duration-300 ease-in-out",
|
|
740
740
|
n ? "opacity-100" : "opacity-0"
|
|
741
741
|
),
|
|
@@ -866,11 +866,11 @@ const or = "-", Gn = (r) => {
|
|
|
866
866
|
}
|
|
867
867
|
k === "[" ? o++ : k === "]" ? o-- : k === "(" ? l++ : k === ")" && l--;
|
|
868
868
|
}
|
|
869
|
-
const f = a.length === 0 ? n : n.substring(c),
|
|
869
|
+
const f = a.length === 0 ? n : n.substring(c), m = ea(f), p = m !== f, b = u && u > c ? u - c : void 0;
|
|
870
870
|
return {
|
|
871
871
|
modifiers: a,
|
|
872
872
|
hasImportantModifier: p,
|
|
873
|
-
baseClassName:
|
|
873
|
+
baseClassName: m,
|
|
874
874
|
maybePostfixModifierPosition: b
|
|
875
875
|
};
|
|
876
876
|
};
|
|
@@ -918,13 +918,13 @@ const or = "-", Gn = (r) => {
|
|
|
918
918
|
let c = "";
|
|
919
919
|
for (let u = l.length - 1; u >= 0; u -= 1) {
|
|
920
920
|
const f = l[u], {
|
|
921
|
-
isExternal:
|
|
921
|
+
isExternal: m,
|
|
922
922
|
modifiers: p,
|
|
923
923
|
hasImportantModifier: b,
|
|
924
924
|
baseClassName: E,
|
|
925
925
|
maybePostfixModifierPosition: k
|
|
926
926
|
} = e(f);
|
|
927
|
-
if (
|
|
927
|
+
if (m) {
|
|
928
928
|
c = f + (c.length > 0 ? " " + c : c);
|
|
929
929
|
continue;
|
|
930
930
|
}
|
|
@@ -944,9 +944,9 @@ const or = "-", Gn = (r) => {
|
|
|
944
944
|
if (o.includes(O))
|
|
945
945
|
continue;
|
|
946
946
|
o.push(O);
|
|
947
|
-
const
|
|
948
|
-
for (let U = 0; U <
|
|
949
|
-
const Y =
|
|
947
|
+
const F = n(v, S);
|
|
948
|
+
for (let U = 0; U < F.length; ++U) {
|
|
949
|
+
const Y = F[U];
|
|
950
950
|
o.push(j + Y);
|
|
951
951
|
}
|
|
952
952
|
c = f + (c.length > 0 ? " " + c : c);
|
|
@@ -970,7 +970,7 @@ const xs = (r) => {
|
|
|
970
970
|
function oa(r, ...t) {
|
|
971
971
|
let e, s, n, a = o;
|
|
972
972
|
function o(c) {
|
|
973
|
-
const u = t.reduce((f,
|
|
973
|
+
const u = t.reduce((f, m) => m(f), r());
|
|
974
974
|
return e = ra(u), s = e.cache.get, n = e.cache.set, a = l, l(c);
|
|
975
975
|
}
|
|
976
976
|
function l(c) {
|
|
@@ -999,7 +999,7 @@ const me = (r) => {
|
|
|
999
999
|
const s = bs.exec(r);
|
|
1000
1000
|
return s ? s[1] ? t(s[1]) : e : !1;
|
|
1001
1001
|
}, vs = (r) => r === "position" || r === "percentage", ws = (r) => r === "image" || r === "url", ks = (r) => r === "length" || r === "size" || r === "bg-size", js = (r) => r === "length", ja = (r) => r === "number", Ea = (r) => r === "family-name", Es = (r) => r === "shadow", Na = () => {
|
|
1002
|
-
const r = me("color"), t = me("font"), e = me("text"), s = me("font-weight"), n = me("tracking"), a = me("leading"), o = me("breakpoint"), l = me("container"), c = me("spacing"), u = me("radius"), f = me("shadow"),
|
|
1002
|
+
const r = me("color"), t = me("font"), e = me("text"), s = me("font-weight"), n = me("tracking"), a = me("leading"), o = me("breakpoint"), l = me("container"), c = me("spacing"), u = me("radius"), f = me("shadow"), m = me("inset-shadow"), p = me("text-shadow"), b = me("drop-shadow"), E = me("blur"), k = me("perspective"), S = me("aspect"), v = me("ease"), y = me("animate"), j = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
1003
1003
|
"center",
|
|
1004
1004
|
"top",
|
|
1005
1005
|
"bottom",
|
|
@@ -1017,15 +1017,15 @@ const me = (r) => {
|
|
|
1017
1017
|
"bottom-left",
|
|
1018
1018
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1019
1019
|
"left-bottom"
|
|
1020
|
-
],
|
|
1020
|
+
], F = () => [...O(), z, P], U = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", "contain", "none"], _ = () => [z, P, c], V = () => [Ke, "full", "auto", ..._()], L = () => [ze, "none", "subgrid", z, P], M = () => ["auto", {
|
|
1021
1021
|
span: ["full", ze, z, P]
|
|
1022
|
-
}, ze, z, P], R = () => [ze, "auto", z, P],
|
|
1022
|
+
}, ze, z, P], R = () => [ze, "auto", z, P], G = () => ["auto", "min", "max", "fr", z, P], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], re = () => ["auto", ..._()], H = () => [Ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], g = () => [r, z, P], X = () => [...O(), Cr, Tr, {
|
|
1023
1023
|
position: [z, P]
|
|
1024
|
-
}],
|
|
1024
|
+
}], h = () => ["no-repeat", {
|
|
1025
1025
|
repeat: ["", "x", "y", "space", "round"]
|
|
1026
|
-
}],
|
|
1026
|
+
}], N = () => ["auto", "cover", "contain", wa, ba, {
|
|
1027
1027
|
size: [z, P]
|
|
1028
|
-
}],
|
|
1028
|
+
}], $ = () => [It, it, qe], B = () => [
|
|
1029
1029
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1030
1030
|
"",
|
|
1031
1031
|
"none",
|
|
@@ -1033,14 +1033,14 @@ const me = (r) => {
|
|
|
1033
1033
|
u,
|
|
1034
1034
|
z,
|
|
1035
1035
|
P
|
|
1036
|
-
], ee = () => ["", Q, it, qe], le = () => ["solid", "dashed", "dotted", "double"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
1036
|
+
], ee = () => ["", Q, it, qe], le = () => ["solid", "dashed", "dotted", "double"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], W = () => [Q, It, Cr, Tr], te = () => [
|
|
1037
1037
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1038
1038
|
"",
|
|
1039
1039
|
"none",
|
|
1040
1040
|
E,
|
|
1041
1041
|
z,
|
|
1042
1042
|
P
|
|
1043
|
-
], ce = () => ["none", Q, z, P], se = () => ["none", Q, z, P], we = () => [Q, z, P], Oe = () => [Ke, "full", ...
|
|
1043
|
+
], ce = () => ["none", Q, z, P], se = () => ["none", Q, z, P], we = () => [Q, z, P], Oe = () => [Ke, "full", ..._()];
|
|
1044
1044
|
return {
|
|
1045
1045
|
cacheSize: 500,
|
|
1046
1046
|
theme: {
|
|
@@ -1164,7 +1164,7 @@ const me = (r) => {
|
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/object-position
|
|
1165
1165
|
*/
|
|
1166
1166
|
"object-position": [{
|
|
1167
|
-
object:
|
|
1167
|
+
object: F()
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Overflow
|
|
@@ -1296,7 +1296,7 @@ const me = (r) => {
|
|
|
1296
1296
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1297
1297
|
*/
|
|
1298
1298
|
basis: [{
|
|
1299
|
-
basis: [Ke, "full", "auto", l, ...
|
|
1299
|
+
basis: [Ke, "full", "auto", l, ..._()]
|
|
1300
1300
|
}],
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Flex Direction
|
|
@@ -1408,42 +1408,42 @@ const me = (r) => {
|
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1409
1409
|
*/
|
|
1410
1410
|
"auto-cols": [{
|
|
1411
|
-
"auto-cols":
|
|
1411
|
+
"auto-cols": G()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Grid Auto Rows
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1416
1416
|
*/
|
|
1417
1417
|
"auto-rows": [{
|
|
1418
|
-
"auto-rows":
|
|
1418
|
+
"auto-rows": G()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Gap
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/gap
|
|
1423
1423
|
*/
|
|
1424
1424
|
gap: [{
|
|
1425
|
-
gap:
|
|
1425
|
+
gap: _()
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Gap X
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/gap
|
|
1430
1430
|
*/
|
|
1431
1431
|
"gap-x": [{
|
|
1432
|
-
"gap-x":
|
|
1432
|
+
"gap-x": _()
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Gap Y
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/gap
|
|
1437
1437
|
*/
|
|
1438
1438
|
"gap-y": [{
|
|
1439
|
-
"gap-y":
|
|
1439
|
+
"gap-y": _()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Justify Content
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1444
1444
|
*/
|
|
1445
1445
|
"justify-content": [{
|
|
1446
|
-
justify: [...
|
|
1446
|
+
justify: [...J(), "normal"]
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Justify Items
|
|
@@ -1464,7 +1464,7 @@ const me = (r) => {
|
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/align-content
|
|
1465
1465
|
*/
|
|
1466
1466
|
"align-content": [{
|
|
1467
|
-
content: ["normal", ...
|
|
1467
|
+
content: ["normal", ...J()]
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Align Items
|
|
@@ -1489,7 +1489,7 @@ const me = (r) => {
|
|
|
1489
1489
|
* @see https://tailwindcss.com/docs/place-content
|
|
1490
1490
|
*/
|
|
1491
1491
|
"place-content": [{
|
|
1492
|
-
"place-content":
|
|
1492
|
+
"place-content": J()
|
|
1493
1493
|
}],
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Place Items
|
|
@@ -1511,63 +1511,63 @@ const me = (r) => {
|
|
|
1511
1511
|
* @see https://tailwindcss.com/docs/padding
|
|
1512
1512
|
*/
|
|
1513
1513
|
p: [{
|
|
1514
|
-
p:
|
|
1514
|
+
p: _()
|
|
1515
1515
|
}],
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Padding X
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/padding
|
|
1519
1519
|
*/
|
|
1520
1520
|
px: [{
|
|
1521
|
-
px:
|
|
1521
|
+
px: _()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Padding Y
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/padding
|
|
1526
1526
|
*/
|
|
1527
1527
|
py: [{
|
|
1528
|
-
py:
|
|
1528
|
+
py: _()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Padding Start
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/padding
|
|
1533
1533
|
*/
|
|
1534
1534
|
ps: [{
|
|
1535
|
-
ps:
|
|
1535
|
+
ps: _()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Padding End
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/padding
|
|
1540
1540
|
*/
|
|
1541
1541
|
pe: [{
|
|
1542
|
-
pe:
|
|
1542
|
+
pe: _()
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Padding Top
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/padding
|
|
1547
1547
|
*/
|
|
1548
1548
|
pt: [{
|
|
1549
|
-
pt:
|
|
1549
|
+
pt: _()
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Padding Right
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/padding
|
|
1554
1554
|
*/
|
|
1555
1555
|
pr: [{
|
|
1556
|
-
pr:
|
|
1556
|
+
pr: _()
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Padding Bottom
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/padding
|
|
1561
1561
|
*/
|
|
1562
1562
|
pb: [{
|
|
1563
|
-
pb:
|
|
1563
|
+
pb: _()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Padding Left
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/padding
|
|
1568
1568
|
*/
|
|
1569
1569
|
pl: [{
|
|
1570
|
-
pl:
|
|
1570
|
+
pl: _()
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Margin
|
|
@@ -1637,7 +1637,7 @@ const me = (r) => {
|
|
|
1637
1637
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1638
1638
|
*/
|
|
1639
1639
|
"space-x": [{
|
|
1640
|
-
"space-x":
|
|
1640
|
+
"space-x": _()
|
|
1641
1641
|
}],
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Space Between X Reverse
|
|
@@ -1649,7 +1649,7 @@ const me = (r) => {
|
|
|
1649
1649
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1650
1650
|
*/
|
|
1651
1651
|
"space-y": [{
|
|
1652
|
-
"space-y":
|
|
1652
|
+
"space-y": _()
|
|
1653
1653
|
}],
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Space Between Y Reverse
|
|
@@ -1664,14 +1664,14 @@ const me = (r) => {
|
|
|
1664
1664
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1665
1665
|
*/
|
|
1666
1666
|
size: [{
|
|
1667
|
-
size:
|
|
1667
|
+
size: H()
|
|
1668
1668
|
}],
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Width
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/width
|
|
1672
1672
|
*/
|
|
1673
1673
|
w: [{
|
|
1674
|
-
w: [l, "screen", ...
|
|
1674
|
+
w: [l, "screen", ...H()]
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Min-Width
|
|
@@ -1683,7 +1683,7 @@ const me = (r) => {
|
|
|
1683
1683
|
"screen",
|
|
1684
1684
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1685
1685
|
"none",
|
|
1686
|
-
...
|
|
1686
|
+
...H()
|
|
1687
1687
|
]
|
|
1688
1688
|
}],
|
|
1689
1689
|
/**
|
|
@@ -1701,7 +1701,7 @@ const me = (r) => {
|
|
|
1701
1701
|
{
|
|
1702
1702
|
screen: [o]
|
|
1703
1703
|
},
|
|
1704
|
-
...
|
|
1704
|
+
...H()
|
|
1705
1705
|
]
|
|
1706
1706
|
}],
|
|
1707
1707
|
/**
|
|
@@ -1709,21 +1709,21 @@ const me = (r) => {
|
|
|
1709
1709
|
* @see https://tailwindcss.com/docs/height
|
|
1710
1710
|
*/
|
|
1711
1711
|
h: [{
|
|
1712
|
-
h: ["screen", "lh", ...
|
|
1712
|
+
h: ["screen", "lh", ...H()]
|
|
1713
1713
|
}],
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Min-Height
|
|
1716
1716
|
* @see https://tailwindcss.com/docs/min-height
|
|
1717
1717
|
*/
|
|
1718
1718
|
"min-h": [{
|
|
1719
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1719
|
+
"min-h": ["screen", "lh", "none", ...H()]
|
|
1720
1720
|
}],
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Max-Height
|
|
1723
1723
|
* @see https://tailwindcss.com/docs/max-height
|
|
1724
1724
|
*/
|
|
1725
1725
|
"max-h": [{
|
|
1726
|
-
"max-h": ["screen", "lh", ...
|
|
1726
|
+
"max-h": ["screen", "lh", ...H()]
|
|
1727
1727
|
}],
|
|
1728
1728
|
// ------------------
|
|
1729
1729
|
// --- Typography ---
|
|
@@ -1818,7 +1818,7 @@ const me = (r) => {
|
|
|
1818
1818
|
leading: [
|
|
1819
1819
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1820
1820
|
a,
|
|
1821
|
-
...
|
|
1821
|
+
..._()
|
|
1822
1822
|
]
|
|
1823
1823
|
}],
|
|
1824
1824
|
/**
|
|
@@ -1919,7 +1919,7 @@ const me = (r) => {
|
|
|
1919
1919
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1920
1920
|
*/
|
|
1921
1921
|
indent: [{
|
|
1922
|
-
indent:
|
|
1922
|
+
indent: _()
|
|
1923
1923
|
}],
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Vertical Alignment
|
|
@@ -1992,21 +1992,21 @@ const me = (r) => {
|
|
|
1992
1992
|
* @see https://tailwindcss.com/docs/background-position
|
|
1993
1993
|
*/
|
|
1994
1994
|
"bg-position": [{
|
|
1995
|
-
bg:
|
|
1995
|
+
bg: X()
|
|
1996
1996
|
}],
|
|
1997
1997
|
/**
|
|
1998
1998
|
* Background Repeat
|
|
1999
1999
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
2000
2000
|
*/
|
|
2001
2001
|
"bg-repeat": [{
|
|
2002
|
-
bg:
|
|
2002
|
+
bg: h()
|
|
2003
2003
|
}],
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Background Size
|
|
2006
2006
|
* @see https://tailwindcss.com/docs/background-size
|
|
2007
2007
|
*/
|
|
2008
2008
|
"bg-size": [{
|
|
2009
|
-
bg:
|
|
2009
|
+
bg: N()
|
|
2010
2010
|
}],
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Background Image
|
|
@@ -2033,21 +2033,21 @@ const me = (r) => {
|
|
|
2033
2033
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2034
2034
|
*/
|
|
2035
2035
|
"gradient-from-pos": [{
|
|
2036
|
-
from:
|
|
2036
|
+
from: $()
|
|
2037
2037
|
}],
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Gradient Color Stops Via Position
|
|
2040
2040
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2041
2041
|
*/
|
|
2042
2042
|
"gradient-via-pos": [{
|
|
2043
|
-
via:
|
|
2043
|
+
via: $()
|
|
2044
2044
|
}],
|
|
2045
2045
|
/**
|
|
2046
2046
|
* Gradient Color Stops To Position
|
|
2047
2047
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2048
2048
|
*/
|
|
2049
2049
|
"gradient-to-pos": [{
|
|
2050
|
-
to:
|
|
2050
|
+
to: $()
|
|
2051
2051
|
}],
|
|
2052
2052
|
/**
|
|
2053
2053
|
* Gradient Color Stops From
|
|
@@ -2078,105 +2078,105 @@ const me = (r) => {
|
|
|
2078
2078
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2079
2079
|
*/
|
|
2080
2080
|
rounded: [{
|
|
2081
|
-
rounded:
|
|
2081
|
+
rounded: B()
|
|
2082
2082
|
}],
|
|
2083
2083
|
/**
|
|
2084
2084
|
* Border Radius Start
|
|
2085
2085
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2086
2086
|
*/
|
|
2087
2087
|
"rounded-s": [{
|
|
2088
|
-
"rounded-s":
|
|
2088
|
+
"rounded-s": B()
|
|
2089
2089
|
}],
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Border Radius End
|
|
2092
2092
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2093
2093
|
*/
|
|
2094
2094
|
"rounded-e": [{
|
|
2095
|
-
"rounded-e":
|
|
2095
|
+
"rounded-e": B()
|
|
2096
2096
|
}],
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Border Radius Top
|
|
2099
2099
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2100
2100
|
*/
|
|
2101
2101
|
"rounded-t": [{
|
|
2102
|
-
"rounded-t":
|
|
2102
|
+
"rounded-t": B()
|
|
2103
2103
|
}],
|
|
2104
2104
|
/**
|
|
2105
2105
|
* Border Radius Right
|
|
2106
2106
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2107
2107
|
*/
|
|
2108
2108
|
"rounded-r": [{
|
|
2109
|
-
"rounded-r":
|
|
2109
|
+
"rounded-r": B()
|
|
2110
2110
|
}],
|
|
2111
2111
|
/**
|
|
2112
2112
|
* Border Radius Bottom
|
|
2113
2113
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2114
2114
|
*/
|
|
2115
2115
|
"rounded-b": [{
|
|
2116
|
-
"rounded-b":
|
|
2116
|
+
"rounded-b": B()
|
|
2117
2117
|
}],
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Border Radius Left
|
|
2120
2120
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2121
2121
|
*/
|
|
2122
2122
|
"rounded-l": [{
|
|
2123
|
-
"rounded-l":
|
|
2123
|
+
"rounded-l": B()
|
|
2124
2124
|
}],
|
|
2125
2125
|
/**
|
|
2126
2126
|
* Border Radius Start Start
|
|
2127
2127
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2128
2128
|
*/
|
|
2129
2129
|
"rounded-ss": [{
|
|
2130
|
-
"rounded-ss":
|
|
2130
|
+
"rounded-ss": B()
|
|
2131
2131
|
}],
|
|
2132
2132
|
/**
|
|
2133
2133
|
* Border Radius Start End
|
|
2134
2134
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2135
2135
|
*/
|
|
2136
2136
|
"rounded-se": [{
|
|
2137
|
-
"rounded-se":
|
|
2137
|
+
"rounded-se": B()
|
|
2138
2138
|
}],
|
|
2139
2139
|
/**
|
|
2140
2140
|
* Border Radius End End
|
|
2141
2141
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2142
2142
|
*/
|
|
2143
2143
|
"rounded-ee": [{
|
|
2144
|
-
"rounded-ee":
|
|
2144
|
+
"rounded-ee": B()
|
|
2145
2145
|
}],
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Border Radius End Start
|
|
2148
2148
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2149
2149
|
*/
|
|
2150
2150
|
"rounded-es": [{
|
|
2151
|
-
"rounded-es":
|
|
2151
|
+
"rounded-es": B()
|
|
2152
2152
|
}],
|
|
2153
2153
|
/**
|
|
2154
2154
|
* Border Radius Top Left
|
|
2155
2155
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2156
2156
|
*/
|
|
2157
2157
|
"rounded-tl": [{
|
|
2158
|
-
"rounded-tl":
|
|
2158
|
+
"rounded-tl": B()
|
|
2159
2159
|
}],
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Border Radius Top Right
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2163
2163
|
*/
|
|
2164
2164
|
"rounded-tr": [{
|
|
2165
|
-
"rounded-tr":
|
|
2165
|
+
"rounded-tr": B()
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Border Radius Bottom Right
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2170
2170
|
*/
|
|
2171
2171
|
"rounded-br": [{
|
|
2172
|
-
"rounded-br":
|
|
2172
|
+
"rounded-br": B()
|
|
2173
2173
|
}],
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Border Radius Bottom Left
|
|
2176
2176
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2177
2177
|
*/
|
|
2178
2178
|
"rounded-bl": [{
|
|
2179
|
-
"rounded-bl":
|
|
2179
|
+
"rounded-bl": B()
|
|
2180
2180
|
}],
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Border Width
|
|
@@ -2406,7 +2406,7 @@ const me = (r) => {
|
|
|
2406
2406
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2407
2407
|
*/
|
|
2408
2408
|
"inset-shadow": [{
|
|
2409
|
-
"inset-shadow": ["none",
|
|
2409
|
+
"inset-shadow": ["none", m, yt, bt]
|
|
2410
2410
|
}],
|
|
2411
2411
|
/**
|
|
2412
2412
|
* Inset Box Shadow Color
|
|
@@ -2525,10 +2525,10 @@ const me = (r) => {
|
|
|
2525
2525
|
"mask-linear": [Q]
|
|
2526
2526
|
}],
|
|
2527
2527
|
"mask-image-linear-from-pos": [{
|
|
2528
|
-
"mask-linear-from":
|
|
2528
|
+
"mask-linear-from": W()
|
|
2529
2529
|
}],
|
|
2530
2530
|
"mask-image-linear-to-pos": [{
|
|
2531
|
-
"mask-linear-to":
|
|
2531
|
+
"mask-linear-to": W()
|
|
2532
2532
|
}],
|
|
2533
2533
|
"mask-image-linear-from-color": [{
|
|
2534
2534
|
"mask-linear-from": g()
|
|
@@ -2537,10 +2537,10 @@ const me = (r) => {
|
|
|
2537
2537
|
"mask-linear-to": g()
|
|
2538
2538
|
}],
|
|
2539
2539
|
"mask-image-t-from-pos": [{
|
|
2540
|
-
"mask-t-from":
|
|
2540
|
+
"mask-t-from": W()
|
|
2541
2541
|
}],
|
|
2542
2542
|
"mask-image-t-to-pos": [{
|
|
2543
|
-
"mask-t-to":
|
|
2543
|
+
"mask-t-to": W()
|
|
2544
2544
|
}],
|
|
2545
2545
|
"mask-image-t-from-color": [{
|
|
2546
2546
|
"mask-t-from": g()
|
|
@@ -2549,10 +2549,10 @@ const me = (r) => {
|
|
|
2549
2549
|
"mask-t-to": g()
|
|
2550
2550
|
}],
|
|
2551
2551
|
"mask-image-r-from-pos": [{
|
|
2552
|
-
"mask-r-from":
|
|
2552
|
+
"mask-r-from": W()
|
|
2553
2553
|
}],
|
|
2554
2554
|
"mask-image-r-to-pos": [{
|
|
2555
|
-
"mask-r-to":
|
|
2555
|
+
"mask-r-to": W()
|
|
2556
2556
|
}],
|
|
2557
2557
|
"mask-image-r-from-color": [{
|
|
2558
2558
|
"mask-r-from": g()
|
|
@@ -2561,10 +2561,10 @@ const me = (r) => {
|
|
|
2561
2561
|
"mask-r-to": g()
|
|
2562
2562
|
}],
|
|
2563
2563
|
"mask-image-b-from-pos": [{
|
|
2564
|
-
"mask-b-from":
|
|
2564
|
+
"mask-b-from": W()
|
|
2565
2565
|
}],
|
|
2566
2566
|
"mask-image-b-to-pos": [{
|
|
2567
|
-
"mask-b-to":
|
|
2567
|
+
"mask-b-to": W()
|
|
2568
2568
|
}],
|
|
2569
2569
|
"mask-image-b-from-color": [{
|
|
2570
2570
|
"mask-b-from": g()
|
|
@@ -2573,10 +2573,10 @@ const me = (r) => {
|
|
|
2573
2573
|
"mask-b-to": g()
|
|
2574
2574
|
}],
|
|
2575
2575
|
"mask-image-l-from-pos": [{
|
|
2576
|
-
"mask-l-from":
|
|
2576
|
+
"mask-l-from": W()
|
|
2577
2577
|
}],
|
|
2578
2578
|
"mask-image-l-to-pos": [{
|
|
2579
|
-
"mask-l-to":
|
|
2579
|
+
"mask-l-to": W()
|
|
2580
2580
|
}],
|
|
2581
2581
|
"mask-image-l-from-color": [{
|
|
2582
2582
|
"mask-l-from": g()
|
|
@@ -2585,10 +2585,10 @@ const me = (r) => {
|
|
|
2585
2585
|
"mask-l-to": g()
|
|
2586
2586
|
}],
|
|
2587
2587
|
"mask-image-x-from-pos": [{
|
|
2588
|
-
"mask-x-from":
|
|
2588
|
+
"mask-x-from": W()
|
|
2589
2589
|
}],
|
|
2590
2590
|
"mask-image-x-to-pos": [{
|
|
2591
|
-
"mask-x-to":
|
|
2591
|
+
"mask-x-to": W()
|
|
2592
2592
|
}],
|
|
2593
2593
|
"mask-image-x-from-color": [{
|
|
2594
2594
|
"mask-x-from": g()
|
|
@@ -2597,10 +2597,10 @@ const me = (r) => {
|
|
|
2597
2597
|
"mask-x-to": g()
|
|
2598
2598
|
}],
|
|
2599
2599
|
"mask-image-y-from-pos": [{
|
|
2600
|
-
"mask-y-from":
|
|
2600
|
+
"mask-y-from": W()
|
|
2601
2601
|
}],
|
|
2602
2602
|
"mask-image-y-to-pos": [{
|
|
2603
|
-
"mask-y-to":
|
|
2603
|
+
"mask-y-to": W()
|
|
2604
2604
|
}],
|
|
2605
2605
|
"mask-image-y-from-color": [{
|
|
2606
2606
|
"mask-y-from": g()
|
|
@@ -2612,10 +2612,10 @@ const me = (r) => {
|
|
|
2612
2612
|
"mask-radial": [z, P]
|
|
2613
2613
|
}],
|
|
2614
2614
|
"mask-image-radial-from-pos": [{
|
|
2615
|
-
"mask-radial-from":
|
|
2615
|
+
"mask-radial-from": W()
|
|
2616
2616
|
}],
|
|
2617
2617
|
"mask-image-radial-to-pos": [{
|
|
2618
|
-
"mask-radial-to":
|
|
2618
|
+
"mask-radial-to": W()
|
|
2619
2619
|
}],
|
|
2620
2620
|
"mask-image-radial-from-color": [{
|
|
2621
2621
|
"mask-radial-from": g()
|
|
@@ -2639,10 +2639,10 @@ const me = (r) => {
|
|
|
2639
2639
|
"mask-conic": [Q]
|
|
2640
2640
|
}],
|
|
2641
2641
|
"mask-image-conic-from-pos": [{
|
|
2642
|
-
"mask-conic-from":
|
|
2642
|
+
"mask-conic-from": W()
|
|
2643
2643
|
}],
|
|
2644
2644
|
"mask-image-conic-to-pos": [{
|
|
2645
|
-
"mask-conic-to":
|
|
2645
|
+
"mask-conic-to": W()
|
|
2646
2646
|
}],
|
|
2647
2647
|
"mask-image-conic-from-color": [{
|
|
2648
2648
|
"mask-conic-from": g()
|
|
@@ -2669,21 +2669,21 @@ const me = (r) => {
|
|
|
2669
2669
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2670
2670
|
*/
|
|
2671
2671
|
"mask-position": [{
|
|
2672
|
-
mask:
|
|
2672
|
+
mask: X()
|
|
2673
2673
|
}],
|
|
2674
2674
|
/**
|
|
2675
2675
|
* Mask Repeat
|
|
2676
2676
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2677
2677
|
*/
|
|
2678
2678
|
"mask-repeat": [{
|
|
2679
|
-
mask:
|
|
2679
|
+
mask: h()
|
|
2680
2680
|
}],
|
|
2681
2681
|
/**
|
|
2682
2682
|
* Mask Size
|
|
2683
2683
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2684
2684
|
*/
|
|
2685
2685
|
"mask-size": [{
|
|
2686
|
-
mask:
|
|
2686
|
+
mask: N()
|
|
2687
2687
|
}],
|
|
2688
2688
|
/**
|
|
2689
2689
|
* Mask Type
|
|
@@ -2883,21 +2883,21 @@ const me = (r) => {
|
|
|
2883
2883
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2884
2884
|
*/
|
|
2885
2885
|
"border-spacing": [{
|
|
2886
|
-
"border-spacing":
|
|
2886
|
+
"border-spacing": _()
|
|
2887
2887
|
}],
|
|
2888
2888
|
/**
|
|
2889
2889
|
* Border Spacing X
|
|
2890
2890
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2891
2891
|
*/
|
|
2892
2892
|
"border-spacing-x": [{
|
|
2893
|
-
"border-spacing-x":
|
|
2893
|
+
"border-spacing-x": _()
|
|
2894
2894
|
}],
|
|
2895
2895
|
/**
|
|
2896
2896
|
* Border Spacing Y
|
|
2897
2897
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2898
2898
|
*/
|
|
2899
2899
|
"border-spacing-y": [{
|
|
2900
|
-
"border-spacing-y":
|
|
2900
|
+
"border-spacing-y": _()
|
|
2901
2901
|
}],
|
|
2902
2902
|
/**
|
|
2903
2903
|
* Table Layout
|
|
@@ -2980,7 +2980,7 @@ const me = (r) => {
|
|
|
2980
2980
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2981
2981
|
*/
|
|
2982
2982
|
"perspective-origin": [{
|
|
2983
|
-
"perspective-origin":
|
|
2983
|
+
"perspective-origin": F()
|
|
2984
2984
|
}],
|
|
2985
2985
|
/**
|
|
2986
2986
|
* Rotate
|
|
@@ -3076,7 +3076,7 @@ const me = (r) => {
|
|
|
3076
3076
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3077
3077
|
*/
|
|
3078
3078
|
"transform-origin": [{
|
|
3079
|
-
origin:
|
|
3079
|
+
origin: F()
|
|
3080
3080
|
}],
|
|
3081
3081
|
/**
|
|
3082
3082
|
* Transform Style
|
|
@@ -3189,126 +3189,126 @@ const me = (r) => {
|
|
|
3189
3189
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3190
3190
|
*/
|
|
3191
3191
|
"scroll-m": [{
|
|
3192
|
-
"scroll-m":
|
|
3192
|
+
"scroll-m": _()
|
|
3193
3193
|
}],
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Scroll Margin X
|
|
3196
3196
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3197
3197
|
*/
|
|
3198
3198
|
"scroll-mx": [{
|
|
3199
|
-
"scroll-mx":
|
|
3199
|
+
"scroll-mx": _()
|
|
3200
3200
|
}],
|
|
3201
3201
|
/**
|
|
3202
3202
|
* Scroll Margin Y
|
|
3203
3203
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3204
3204
|
*/
|
|
3205
3205
|
"scroll-my": [{
|
|
3206
|
-
"scroll-my":
|
|
3206
|
+
"scroll-my": _()
|
|
3207
3207
|
}],
|
|
3208
3208
|
/**
|
|
3209
3209
|
* Scroll Margin Start
|
|
3210
3210
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3211
3211
|
*/
|
|
3212
3212
|
"scroll-ms": [{
|
|
3213
|
-
"scroll-ms":
|
|
3213
|
+
"scroll-ms": _()
|
|
3214
3214
|
}],
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Scroll Margin End
|
|
3217
3217
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3218
3218
|
*/
|
|
3219
3219
|
"scroll-me": [{
|
|
3220
|
-
"scroll-me":
|
|
3220
|
+
"scroll-me": _()
|
|
3221
3221
|
}],
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Scroll Margin Top
|
|
3224
3224
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3225
3225
|
*/
|
|
3226
3226
|
"scroll-mt": [{
|
|
3227
|
-
"scroll-mt":
|
|
3227
|
+
"scroll-mt": _()
|
|
3228
3228
|
}],
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Scroll Margin Right
|
|
3231
3231
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3232
3232
|
*/
|
|
3233
3233
|
"scroll-mr": [{
|
|
3234
|
-
"scroll-mr":
|
|
3234
|
+
"scroll-mr": _()
|
|
3235
3235
|
}],
|
|
3236
3236
|
/**
|
|
3237
3237
|
* Scroll Margin Bottom
|
|
3238
3238
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3239
3239
|
*/
|
|
3240
3240
|
"scroll-mb": [{
|
|
3241
|
-
"scroll-mb":
|
|
3241
|
+
"scroll-mb": _()
|
|
3242
3242
|
}],
|
|
3243
3243
|
/**
|
|
3244
3244
|
* Scroll Margin Left
|
|
3245
3245
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3246
3246
|
*/
|
|
3247
3247
|
"scroll-ml": [{
|
|
3248
|
-
"scroll-ml":
|
|
3248
|
+
"scroll-ml": _()
|
|
3249
3249
|
}],
|
|
3250
3250
|
/**
|
|
3251
3251
|
* Scroll Padding
|
|
3252
3252
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3253
3253
|
*/
|
|
3254
3254
|
"scroll-p": [{
|
|
3255
|
-
"scroll-p":
|
|
3255
|
+
"scroll-p": _()
|
|
3256
3256
|
}],
|
|
3257
3257
|
/**
|
|
3258
3258
|
* Scroll Padding X
|
|
3259
3259
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3260
3260
|
*/
|
|
3261
3261
|
"scroll-px": [{
|
|
3262
|
-
"scroll-px":
|
|
3262
|
+
"scroll-px": _()
|
|
3263
3263
|
}],
|
|
3264
3264
|
/**
|
|
3265
3265
|
* Scroll Padding Y
|
|
3266
3266
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3267
3267
|
*/
|
|
3268
3268
|
"scroll-py": [{
|
|
3269
|
-
"scroll-py":
|
|
3269
|
+
"scroll-py": _()
|
|
3270
3270
|
}],
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Scroll Padding Start
|
|
3273
3273
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3274
3274
|
*/
|
|
3275
3275
|
"scroll-ps": [{
|
|
3276
|
-
"scroll-ps":
|
|
3276
|
+
"scroll-ps": _()
|
|
3277
3277
|
}],
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Scroll Padding End
|
|
3280
3280
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3281
3281
|
*/
|
|
3282
3282
|
"scroll-pe": [{
|
|
3283
|
-
"scroll-pe":
|
|
3283
|
+
"scroll-pe": _()
|
|
3284
3284
|
}],
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Scroll Padding Top
|
|
3287
3287
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3288
3288
|
*/
|
|
3289
3289
|
"scroll-pt": [{
|
|
3290
|
-
"scroll-pt":
|
|
3290
|
+
"scroll-pt": _()
|
|
3291
3291
|
}],
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Scroll Padding Right
|
|
3294
3294
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3295
3295
|
*/
|
|
3296
3296
|
"scroll-pr": [{
|
|
3297
|
-
"scroll-pr":
|
|
3297
|
+
"scroll-pr": _()
|
|
3298
3298
|
}],
|
|
3299
3299
|
/**
|
|
3300
3300
|
* Scroll Padding Bottom
|
|
3301
3301
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3302
3302
|
*/
|
|
3303
3303
|
"scroll-pb": [{
|
|
3304
|
-
"scroll-pb":
|
|
3304
|
+
"scroll-pb": _()
|
|
3305
3305
|
}],
|
|
3306
3306
|
/**
|
|
3307
3307
|
* Scroll Padding Left
|
|
3308
3308
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3309
3309
|
*/
|
|
3310
3310
|
"scroll-pl": [{
|
|
3311
|
-
"scroll-pl":
|
|
3311
|
+
"scroll-pl": _()
|
|
3312
3312
|
}],
|
|
3313
3313
|
/**
|
|
3314
3314
|
* Scroll Snap Align
|
|
@@ -3599,7 +3599,7 @@ function Os(r) {
|
|
|
3599
3599
|
...r.rules,
|
|
3600
3600
|
value: l,
|
|
3601
3601
|
...Ee(r.disabled) ? { disabled: r.disabled } : {}
|
|
3602
|
-
})),
|
|
3602
|
+
})), m = ne.useMemo(() => Object.defineProperties({}, {
|
|
3603
3603
|
invalid: {
|
|
3604
3604
|
enumerable: !0,
|
|
3605
3605
|
get: () => !!A(c.errors, e)
|
|
@@ -3673,8 +3673,8 @@ function Os(r) {
|
|
|
3673
3673
|
}, [s, e, n]), ne.useMemo(() => ({
|
|
3674
3674
|
field: k,
|
|
3675
3675
|
formState: c,
|
|
3676
|
-
fieldState:
|
|
3677
|
-
}), [k, c,
|
|
3676
|
+
fieldState: m
|
|
3677
|
+
}), [k, c, m]);
|
|
3678
3678
|
}
|
|
3679
3679
|
const Ae = (r) => r.render(Os(r));
|
|
3680
3680
|
var Ms = (r, t, e, s, n) => t ? {
|
|
@@ -3877,85 +3877,85 @@ var Qe = (r) => he(r) && !At(r) ? r : {
|
|
|
3877
3877
|
value: r,
|
|
3878
3878
|
message: ""
|
|
3879
3879
|
}, zr = async (r, t, e, s, n, a) => {
|
|
3880
|
-
const { ref: o, refs: l, required: c, maxLength: u, minLength: f, min:
|
|
3880
|
+
const { ref: o, refs: l, required: c, maxLength: u, minLength: f, min: m, max: p, pattern: b, validate: E, name: k, valueAsNumber: S, mount: v } = r._f, y = A(e, k);
|
|
3881
3881
|
if (!v || t.has(k))
|
|
3882
3882
|
return {};
|
|
3883
3883
|
const j = l ? l[0] : o, O = (R) => {
|
|
3884
3884
|
n && j.reportValidity && (j.setCustomValidity(Ee(R) ? "" : R || ""), j.reportValidity());
|
|
3885
|
-
},
|
|
3886
|
-
const
|
|
3887
|
-
|
|
3885
|
+
}, F = {}, U = fr(o), Y = ft(o), _ = U || Y, V = (S || ur(o)) && ue(o.value) && ue(y) || Tt(o) && o.value === "" || y === "" || Array.isArray(y) && !y.length, L = Ms.bind(null, k, s, F), M = (R, G, J, K = $e.maxLength, re = $e.minLength) => {
|
|
3886
|
+
const H = R ? G : J;
|
|
3887
|
+
F[k] = {
|
|
3888
3888
|
type: R ? K : re,
|
|
3889
|
-
message:
|
|
3889
|
+
message: H,
|
|
3890
3890
|
ref: o,
|
|
3891
|
-
...L(R ? K : re,
|
|
3891
|
+
...L(R ? K : re, H)
|
|
3892
3892
|
};
|
|
3893
3893
|
};
|
|
3894
|
-
if (a ? !Array.isArray(y) || !y.length : c && (!
|
|
3895
|
-
const { value: R, message:
|
|
3896
|
-
if (R && (
|
|
3894
|
+
if (a ? !Array.isArray(y) || !y.length : c && (!_ && (V || ve(y)) || Ee(y) && !y || Y && !Ds(l).isValid || U && !Ls(l).isValid)) {
|
|
3895
|
+
const { value: R, message: G } = Nt(c) ? { value: !!c, message: c } : Qe(c);
|
|
3896
|
+
if (R && (F[k] = {
|
|
3897
3897
|
type: $e.required,
|
|
3898
|
-
message:
|
|
3898
|
+
message: G,
|
|
3899
3899
|
ref: j,
|
|
3900
|
-
...L($e.required,
|
|
3900
|
+
...L($e.required, G)
|
|
3901
3901
|
}, !s))
|
|
3902
|
-
return O(
|
|
3902
|
+
return O(G), F;
|
|
3903
3903
|
}
|
|
3904
|
-
if (!V && (!ve(
|
|
3905
|
-
let R,
|
|
3906
|
-
const
|
|
3904
|
+
if (!V && (!ve(m) || !ve(p))) {
|
|
3905
|
+
let R, G;
|
|
3906
|
+
const J = Qe(p), K = Qe(m);
|
|
3907
3907
|
if (!ve(y) && !isNaN(y)) {
|
|
3908
3908
|
const re = o.valueAsNumber || y && +y;
|
|
3909
|
-
ve(
|
|
3909
|
+
ve(J.value) || (R = re > J.value), ve(K.value) || (G = re < K.value);
|
|
3910
3910
|
} else {
|
|
3911
|
-
const re = o.valueAsDate || new Date(y),
|
|
3912
|
-
Re(
|
|
3911
|
+
const re = o.valueAsDate || new Date(y), H = (h) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + h), g = o.type == "time", X = o.type == "week";
|
|
3912
|
+
Re(J.value) && y && (R = g ? H(y) > H(J.value) : X ? y > J.value : re > new Date(J.value)), Re(K.value) && y && (G = g ? H(y) < H(K.value) : X ? y < K.value : re < new Date(K.value));
|
|
3913
3913
|
}
|
|
3914
|
-
if ((R ||
|
|
3915
|
-
return O(
|
|
3914
|
+
if ((R || G) && (M(!!R, J.message, K.message, $e.max, $e.min), !s))
|
|
3915
|
+
return O(F[k].message), F;
|
|
3916
3916
|
}
|
|
3917
3917
|
if ((u || f) && !V && (Re(y) || a && Array.isArray(y))) {
|
|
3918
|
-
const R = Qe(u),
|
|
3919
|
-
if ((
|
|
3920
|
-
return O(
|
|
3918
|
+
const R = Qe(u), G = Qe(f), J = !ve(R.value) && y.length > +R.value, K = !ve(G.value) && y.length < +G.value;
|
|
3919
|
+
if ((J || K) && (M(J, R.message, G.message), !s))
|
|
3920
|
+
return O(F[k].message), F;
|
|
3921
3921
|
}
|
|
3922
3922
|
if (b && !V && Re(y)) {
|
|
3923
|
-
const { value: R, message:
|
|
3924
|
-
if (At(R) && !y.match(R) && (
|
|
3923
|
+
const { value: R, message: G } = Qe(b);
|
|
3924
|
+
if (At(R) && !y.match(R) && (F[k] = {
|
|
3925
3925
|
type: $e.pattern,
|
|
3926
|
-
message:
|
|
3926
|
+
message: G,
|
|
3927
3927
|
ref: o,
|
|
3928
|
-
...L($e.pattern,
|
|
3928
|
+
...L($e.pattern, G)
|
|
3929
3929
|
}, !s))
|
|
3930
|
-
return O(
|
|
3930
|
+
return O(G), F;
|
|
3931
3931
|
}
|
|
3932
3932
|
if (E) {
|
|
3933
3933
|
if (Ce(E)) {
|
|
3934
|
-
const R = await E(y, e),
|
|
3935
|
-
if (
|
|
3936
|
-
...
|
|
3937
|
-
...L($e.validate,
|
|
3934
|
+
const R = await E(y, e), G = Pr(R, j);
|
|
3935
|
+
if (G && (F[k] = {
|
|
3936
|
+
...G,
|
|
3937
|
+
...L($e.validate, G.message)
|
|
3938
3938
|
}, !s))
|
|
3939
|
-
return O(
|
|
3939
|
+
return O(G.message), F;
|
|
3940
3940
|
} else if (he(E)) {
|
|
3941
3941
|
let R = {};
|
|
3942
|
-
for (const
|
|
3942
|
+
for (const G in E) {
|
|
3943
3943
|
if (!ye(R) && !s)
|
|
3944
3944
|
break;
|
|
3945
|
-
const
|
|
3946
|
-
|
|
3947
|
-
...
|
|
3948
|
-
...L(
|
|
3949
|
-
}, O(
|
|
3945
|
+
const J = Pr(await E[G](y, e), j, G);
|
|
3946
|
+
J && (R = {
|
|
3947
|
+
...J,
|
|
3948
|
+
...L(G, J.message)
|
|
3949
|
+
}, O(J.message), s && (F[k] = R));
|
|
3950
3950
|
}
|
|
3951
|
-
if (!ye(R) && (
|
|
3951
|
+
if (!ye(R) && (F[k] = {
|
|
3952
3952
|
ref: j,
|
|
3953
3953
|
...R
|
|
3954
3954
|
}, !s))
|
|
3955
|
-
return
|
|
3955
|
+
return F;
|
|
3956
3956
|
}
|
|
3957
3957
|
}
|
|
3958
|
-
return O(!0),
|
|
3958
|
+
return O(!0), F;
|
|
3959
3959
|
};
|
|
3960
3960
|
const Ua = {
|
|
3961
3961
|
mode: Te.onSubmit,
|
|
@@ -4003,7 +4003,7 @@ function Ba(r = {}) {
|
|
|
4003
4003
|
isValid: !1,
|
|
4004
4004
|
errors: !1
|
|
4005
4005
|
};
|
|
4006
|
-
let
|
|
4006
|
+
let m = {
|
|
4007
4007
|
...f
|
|
4008
4008
|
};
|
|
4009
4009
|
const p = {
|
|
@@ -4012,34 +4012,34 @@ function Ba(r = {}) {
|
|
|
4012
4012
|
}, b = t.criteriaMode === Te.all, E = (d) => (x) => {
|
|
4013
4013
|
clearTimeout(u), u = setTimeout(d, x);
|
|
4014
4014
|
}, k = async (d) => {
|
|
4015
|
-
if (!t.disabled && (f.isValid ||
|
|
4015
|
+
if (!t.disabled && (f.isValid || m.isValid || d)) {
|
|
4016
4016
|
const x = t.resolver ? ye((await Y()).errors) : await V(s, !0);
|
|
4017
4017
|
x !== e.isValid && p.state.next({
|
|
4018
4018
|
isValid: x
|
|
4019
4019
|
});
|
|
4020
4020
|
}
|
|
4021
4021
|
}, S = (d, x) => {
|
|
4022
|
-
!t.disabled && (f.isValidating || f.validatingFields ||
|
|
4022
|
+
!t.disabled && (f.isValidating || f.validatingFields || m.isValidating || m.validatingFields) && ((d || Array.from(l.mount)).forEach((w) => {
|
|
4023
4023
|
w && (x ? ae(e.validatingFields, w, x) : pe(e.validatingFields, w));
|
|
4024
4024
|
}), p.state.next({
|
|
4025
4025
|
validatingFields: e.validatingFields,
|
|
4026
4026
|
isValidating: !ye(e.validatingFields)
|
|
4027
4027
|
}));
|
|
4028
|
-
}, v = (d, x = [], w,
|
|
4029
|
-
if (
|
|
4028
|
+
}, v = (d, x = [], w, D, C = !0, T = !0) => {
|
|
4029
|
+
if (D && w && !t.disabled) {
|
|
4030
4030
|
if (o.action = !0, T && Array.isArray(A(s, d))) {
|
|
4031
|
-
const q = w(A(s, d),
|
|
4031
|
+
const q = w(A(s, d), D.argA, D.argB);
|
|
4032
4032
|
C && ae(s, d, q);
|
|
4033
4033
|
}
|
|
4034
4034
|
if (T && Array.isArray(A(e.errors, d))) {
|
|
4035
|
-
const q = w(A(e.errors, d),
|
|
4035
|
+
const q = w(A(e.errors, d), D.argA, D.argB);
|
|
4036
4036
|
C && ae(e.errors, d, q), Pa(e.errors, d);
|
|
4037
4037
|
}
|
|
4038
|
-
if ((f.touchedFields ||
|
|
4039
|
-
const q = w(A(e.touchedFields, d),
|
|
4038
|
+
if ((f.touchedFields || m.touchedFields) && T && Array.isArray(A(e.touchedFields, d))) {
|
|
4039
|
+
const q = w(A(e.touchedFields, d), D.argA, D.argB);
|
|
4040
4040
|
C && ae(e.touchedFields, d, q);
|
|
4041
4041
|
}
|
|
4042
|
-
(f.dirtyFields ||
|
|
4042
|
+
(f.dirtyFields || m.dirtyFields) && (e.dirtyFields = lt(n, a)), p.state.next({
|
|
4043
4043
|
name: d,
|
|
4044
4044
|
isDirty: M(d, x),
|
|
4045
4045
|
dirtyFields: e.dirtyFields,
|
|
@@ -4057,35 +4057,35 @@ function Ba(r = {}) {
|
|
|
4057
4057
|
errors: e.errors,
|
|
4058
4058
|
isValid: !1
|
|
4059
4059
|
});
|
|
4060
|
-
}, O = (d, x, w,
|
|
4060
|
+
}, O = (d, x, w, D) => {
|
|
4061
4061
|
const C = A(s, d);
|
|
4062
4062
|
if (C) {
|
|
4063
4063
|
const T = A(a, d, ue(w) ? A(n, d) : w);
|
|
4064
|
-
ue(T) ||
|
|
4064
|
+
ue(T) || D && D.defaultChecked || x ? ae(a, d, x ? T : Vr(C._f)) : J(d, T), o.mount && k();
|
|
4065
4065
|
}
|
|
4066
|
-
},
|
|
4066
|
+
}, F = (d, x, w, D, C) => {
|
|
4067
4067
|
let T = !1, q = !1;
|
|
4068
4068
|
const ie = {
|
|
4069
4069
|
name: d
|
|
4070
4070
|
};
|
|
4071
4071
|
if (!t.disabled) {
|
|
4072
|
-
if (!w ||
|
|
4073
|
-
(f.isDirty ||
|
|
4072
|
+
if (!w || D) {
|
|
4073
|
+
(f.isDirty || m.isDirty) && (q = e.isDirty, e.isDirty = ie.isDirty = M(), T = q !== ie.isDirty);
|
|
4074
4074
|
const de = Be(A(n, d), x);
|
|
4075
|
-
q = !!A(e.dirtyFields, d), de ? pe(e.dirtyFields, d) : ae(e.dirtyFields, d, !0), ie.dirtyFields = e.dirtyFields, T = T || (f.dirtyFields ||
|
|
4075
|
+
q = !!A(e.dirtyFields, d), de ? pe(e.dirtyFields, d) : ae(e.dirtyFields, d, !0), ie.dirtyFields = e.dirtyFields, T = T || (f.dirtyFields || m.dirtyFields) && q !== !de;
|
|
4076
4076
|
}
|
|
4077
4077
|
if (w) {
|
|
4078
4078
|
const de = A(e.touchedFields, d);
|
|
4079
|
-
de || (ae(e.touchedFields, d, w), ie.touchedFields = e.touchedFields, T = T || (f.touchedFields ||
|
|
4079
|
+
de || (ae(e.touchedFields, d, w), ie.touchedFields = e.touchedFields, T = T || (f.touchedFields || m.touchedFields) && de !== w);
|
|
4080
4080
|
}
|
|
4081
4081
|
T && C && p.state.next(ie);
|
|
4082
4082
|
}
|
|
4083
4083
|
return T ? ie : {};
|
|
4084
|
-
}, U = (d, x, w,
|
|
4085
|
-
const C = A(e.errors, d), T = (f.isValid ||
|
|
4086
|
-
if (t.delayError && w ? (c = E(() => y(d, w)), c(t.delayError)) : (clearTimeout(u), c = null, w ? ae(e.errors, d, w) : pe(e.errors, d)), (w ? !Be(C, w) : C) || !ye(
|
|
4084
|
+
}, U = (d, x, w, D) => {
|
|
4085
|
+
const C = A(e.errors, d), T = (f.isValid || m.isValid) && Ee(x) && e.isValid !== x;
|
|
4086
|
+
if (t.delayError && w ? (c = E(() => y(d, w)), c(t.delayError)) : (clearTimeout(u), c = null, w ? ae(e.errors, d, w) : pe(e.errors, d)), (w ? !Be(C, w) : C) || !ye(D) || T) {
|
|
4087
4087
|
const q = {
|
|
4088
|
-
|
|
4088
|
+
...D,
|
|
4089
4089
|
...T && Ee(x) ? { isValid: x } : {},
|
|
4090
4090
|
errors: e.errors,
|
|
4091
4091
|
name: d
|
|
@@ -4099,12 +4099,12 @@ function Ba(r = {}) {
|
|
|
4099
4099
|
S(d, !0);
|
|
4100
4100
|
const x = await t.resolver(a, t.context, Ra(d || l.mount, s, t.criteriaMode, t.shouldUseNativeValidation));
|
|
4101
4101
|
return S(d), x;
|
|
4102
|
-
},
|
|
4102
|
+
}, _ = async (d) => {
|
|
4103
4103
|
const { errors: x } = await Y(d);
|
|
4104
4104
|
if (d)
|
|
4105
4105
|
for (const w of d) {
|
|
4106
|
-
const
|
|
4107
|
-
|
|
4106
|
+
const D = A(x, w);
|
|
4107
|
+
D ? ae(e.errors, w, D) : pe(e.errors, w);
|
|
4108
4108
|
}
|
|
4109
4109
|
else
|
|
4110
4110
|
e.errors = x;
|
|
@@ -4112,15 +4112,15 @@ function Ba(r = {}) {
|
|
|
4112
4112
|
}, V = async (d, x, w = {
|
|
4113
4113
|
valid: !0
|
|
4114
4114
|
}) => {
|
|
4115
|
-
for (const
|
|
4116
|
-
const C = d[
|
|
4115
|
+
for (const D in d) {
|
|
4116
|
+
const C = d[D];
|
|
4117
4117
|
if (C) {
|
|
4118
4118
|
const { _f: T, ...q } = C;
|
|
4119
4119
|
if (T) {
|
|
4120
4120
|
const ie = l.array.has(T.name), de = C._f && Va(C._f);
|
|
4121
|
-
de && f.validatingFields && S([
|
|
4121
|
+
de && f.validatingFields && S([D], !0);
|
|
4122
4122
|
const Ne = await zr(C, l.disabled, a, b, t.shouldUseNativeValidation && !x, ie);
|
|
4123
|
-
if (de && f.validatingFields && S([
|
|
4123
|
+
if (de && f.validatingFields && S([D]), Ne[T.name] && (w.valid = !1, x))
|
|
4124
4124
|
break;
|
|
4125
4125
|
!x && (A(Ne, T.name) ? ie ? za(e.errors, Ne, T.name) : ae(e.errors, T.name, Ne[T.name]) : pe(e.errors, T.name));
|
|
4126
4126
|
}
|
|
@@ -4131,16 +4131,16 @@ function Ba(r = {}) {
|
|
|
4131
4131
|
}, L = () => {
|
|
4132
4132
|
for (const d of l.unMount) {
|
|
4133
4133
|
const x = A(s, d);
|
|
4134
|
-
x && (x._f.refs ? x._f.refs.every((w) => !Pt(w)) : !Pt(x._f.ref)) &&
|
|
4134
|
+
x && (x._f.refs ? x._f.refs.every((w) => !Pt(w)) : !Pt(x._f.ref)) && W(d);
|
|
4135
4135
|
}
|
|
4136
4136
|
l.unMount = /* @__PURE__ */ new Set();
|
|
4137
|
-
}, M = (d, x) => !t.disabled && (d && x && ae(a, d, x), !Be(
|
|
4137
|
+
}, M = (d, x) => !t.disabled && (d && x && ae(a, d, x), !Be(h(), n)), R = (d, x, w) => As(d, l, {
|
|
4138
4138
|
...o.mount ? a : ue(x) ? n : Re(d) ? { [d]: x } : x
|
|
4139
|
-
}, w, x),
|
|
4140
|
-
const
|
|
4139
|
+
}, w, x), G = (d) => Vt(A(o.mount ? a : n, d, t.shouldUnregister ? A(n, d, []) : [])), J = (d, x, w = {}) => {
|
|
4140
|
+
const D = A(s, d);
|
|
4141
4141
|
let C = x;
|
|
4142
|
-
if (
|
|
4143
|
-
const T =
|
|
4142
|
+
if (D) {
|
|
4143
|
+
const T = D._f;
|
|
4144
4144
|
T && (!T.disabled && ae(a, d, Is(x, T)), C = Tt(T.ref) && ve(x) ? "" : x, Rs(T.ref) ? [...T.ref.options].forEach((q) => q.selected = C.includes(q.value)) : T.refs ? ft(T.ref) ? T.refs.forEach((q) => {
|
|
4145
4145
|
(!q.defaultChecked || !q.disabled) && (Array.isArray(C) ? q.checked = !!C.find((ie) => ie === q.value) : q.checked = C === q.value || !!C);
|
|
4146
4146
|
}) : T.refs.forEach((q) => q.checked = q.value === C) : ur(T.ref) ? T.ref.value = "" : (T.ref.value = C, T.ref.type || p.state.next({
|
|
@@ -4148,99 +4148,99 @@ function Ba(r = {}) {
|
|
|
4148
4148
|
values: be(a)
|
|
4149
4149
|
})));
|
|
4150
4150
|
}
|
|
4151
|
-
(w.shouldDirty || w.shouldTouch) &&
|
|
4151
|
+
(w.shouldDirty || w.shouldTouch) && F(d, C, w.shouldTouch, w.shouldDirty, !0), w.shouldValidate && X(d);
|
|
4152
4152
|
}, K = (d, x, w) => {
|
|
4153
|
-
for (const
|
|
4154
|
-
if (!x.hasOwnProperty(
|
|
4153
|
+
for (const D in x) {
|
|
4154
|
+
if (!x.hasOwnProperty(D))
|
|
4155
4155
|
return;
|
|
4156
|
-
const C = x[
|
|
4157
|
-
(l.array.has(d) || he(C) || q && !q._f) && !Ge(C) ? K(T, C, w) :
|
|
4156
|
+
const C = x[D], T = `${d}.${D}`, q = A(s, T);
|
|
4157
|
+
(l.array.has(d) || he(C) || q && !q._f) && !Ge(C) ? K(T, C, w) : J(T, C, w);
|
|
4158
4158
|
}
|
|
4159
4159
|
}, re = (d, x, w = {}) => {
|
|
4160
|
-
const
|
|
4160
|
+
const D = A(s, d), C = l.array.has(d), T = be(x);
|
|
4161
4161
|
ae(a, d, T), C ? (p.array.next({
|
|
4162
4162
|
name: d,
|
|
4163
4163
|
values: be(a)
|
|
4164
|
-
}), (f.isDirty || f.dirtyFields ||
|
|
4164
|
+
}), (f.isDirty || f.dirtyFields || m.isDirty || m.dirtyFields) && w.shouldDirty && p.state.next({
|
|
4165
4165
|
name: d,
|
|
4166
4166
|
dirtyFields: lt(n, a),
|
|
4167
4167
|
isDirty: M(d, T)
|
|
4168
|
-
})) :
|
|
4168
|
+
})) : D && !D._f && !ve(T) ? K(d, T, w) : J(d, T, w), Ir(d, l) && p.state.next({ ...e }), p.state.next({
|
|
4169
4169
|
name: o.mount ? d : void 0,
|
|
4170
4170
|
values: be(a)
|
|
4171
4171
|
});
|
|
4172
|
-
},
|
|
4172
|
+
}, H = async (d) => {
|
|
4173
4173
|
o.mount = !0;
|
|
4174
4174
|
const x = d.target;
|
|
4175
|
-
let w = x.name,
|
|
4175
|
+
let w = x.name, D = !0;
|
|
4176
4176
|
const C = A(s, w), T = (de) => {
|
|
4177
|
-
|
|
4177
|
+
D = Number.isNaN(de) || Ge(de) && isNaN(de.getTime()) || Be(de, A(a, w, de));
|
|
4178
4178
|
}, q = $r(t.mode), ie = $r(t.reValidateMode);
|
|
4179
4179
|
if (C) {
|
|
4180
4180
|
let de, Ne;
|
|
4181
4181
|
const xt = x.type ? Vr(C._f) : _s(d), Pe = d.type === St.BLUR || d.type === St.FOCUS_OUT, fn = !$a(C._f) && !t.resolver && !A(e.errors, w) && !C._f.deps || La(Pe, A(e.touchedFields, w), e.isSubmitted, ie, q), $t = Ir(w, l, Pe);
|
|
4182
4182
|
ae(a, w, xt), Pe ? (C._f.onBlur && C._f.onBlur(d), c && c(0)) : C._f.onChange && C._f.onChange(d);
|
|
4183
|
-
const Dt =
|
|
4183
|
+
const Dt = F(w, xt, Pe), hn = !ye(Dt) || $t;
|
|
4184
4184
|
if (!Pe && p.state.next({
|
|
4185
4185
|
name: w,
|
|
4186
4186
|
type: d.type,
|
|
4187
4187
|
values: be(a)
|
|
4188
4188
|
}), fn)
|
|
4189
|
-
return (f.isValid ||
|
|
4189
|
+
return (f.isValid || m.isValid) && (t.mode === "onBlur" ? Pe && k() : Pe || k()), hn && p.state.next({ name: w, ...$t ? {} : Dt });
|
|
4190
4190
|
if (!Pe && $t && p.state.next({ ...e }), t.resolver) {
|
|
4191
4191
|
const { errors: vr } = await Y([w]);
|
|
4192
|
-
if (T(xt),
|
|
4192
|
+
if (T(xt), D) {
|
|
4193
4193
|
const mn = Lr(e.errors, s, w), wr = Lr(vr, s, mn.name || w);
|
|
4194
4194
|
de = wr.error, w = wr.name, Ne = ye(vr);
|
|
4195
4195
|
}
|
|
4196
4196
|
} else
|
|
4197
|
-
S([w], !0), de = (await zr(C, l.disabled, a, b, t.shouldUseNativeValidation))[w], S([w]), T(xt),
|
|
4198
|
-
|
|
4197
|
+
S([w], !0), de = (await zr(C, l.disabled, a, b, t.shouldUseNativeValidation))[w], S([w]), T(xt), D && (de ? Ne = !1 : (f.isValid || m.isValid) && (Ne = await V(s, !0)));
|
|
4198
|
+
D && (C._f.deps && X(C._f.deps), U(w, Ne, de, Dt));
|
|
4199
4199
|
}
|
|
4200
4200
|
}, g = (d, x) => {
|
|
4201
4201
|
if (A(e.errors, x) && d.focus)
|
|
4202
4202
|
return d.focus(), 1;
|
|
4203
|
-
},
|
|
4204
|
-
let w,
|
|
4203
|
+
}, X = async (d, x = {}) => {
|
|
4204
|
+
let w, D;
|
|
4205
4205
|
const C = dt(d);
|
|
4206
4206
|
if (t.resolver) {
|
|
4207
|
-
const T = await
|
|
4208
|
-
w = ye(T),
|
|
4209
|
-
} else d ? (
|
|
4207
|
+
const T = await _(ue(d) ? d : C);
|
|
4208
|
+
w = ye(T), D = d ? !C.some((q) => A(T, q)) : w;
|
|
4209
|
+
} else d ? (D = (await Promise.all(C.map(async (T) => {
|
|
4210
4210
|
const q = A(s, T);
|
|
4211
4211
|
return await V(q && q._f ? { [T]: q } : q);
|
|
4212
|
-
}))).every(Boolean), !(
|
|
4212
|
+
}))).every(Boolean), !(!D && !e.isValid) && k()) : D = w = await V(s);
|
|
4213
4213
|
return p.state.next({
|
|
4214
|
-
...!Re(d) || (f.isValid ||
|
|
4214
|
+
...!Re(d) || (f.isValid || m.isValid) && w !== e.isValid ? {} : { name: d },
|
|
4215
4215
|
...t.resolver || !d ? { isValid: w } : {},
|
|
4216
4216
|
errors: e.errors
|
|
4217
|
-
}), x.shouldFocus &&
|
|
4218
|
-
},
|
|
4217
|
+
}), x.shouldFocus && !D && ut(s, g, d ? C : l.mount), D;
|
|
4218
|
+
}, h = (d) => {
|
|
4219
4219
|
const x = {
|
|
4220
4220
|
...o.mount ? a : n
|
|
4221
4221
|
};
|
|
4222
4222
|
return ue(d) ? x : Re(d) ? A(x, d) : d.map((w) => A(x, w));
|
|
4223
|
-
},
|
|
4223
|
+
}, N = (d, x) => ({
|
|
4224
4224
|
invalid: !!A((x || e).errors, d),
|
|
4225
4225
|
isDirty: !!A((x || e).dirtyFields, d),
|
|
4226
4226
|
error: A((x || e).errors, d),
|
|
4227
4227
|
isValidating: !!A(e.validatingFields, d),
|
|
4228
4228
|
isTouched: !!A((x || e).touchedFields, d)
|
|
4229
|
-
}),
|
|
4229
|
+
}), $ = (d) => {
|
|
4230
4230
|
d && dt(d).forEach((x) => pe(e.errors, x)), p.state.next({
|
|
4231
4231
|
errors: d ? e.errors : {}
|
|
4232
4232
|
});
|
|
4233
|
-
},
|
|
4234
|
-
const
|
|
4233
|
+
}, B = (d, x, w) => {
|
|
4234
|
+
const D = (A(s, d, { _f: {} })._f || {}).ref, C = A(e.errors, d) || {}, { ref: T, message: q, type: ie, ...de } = C;
|
|
4235
4235
|
ae(e.errors, d, {
|
|
4236
4236
|
...de,
|
|
4237
4237
|
...x,
|
|
4238
|
-
ref:
|
|
4238
|
+
ref: D
|
|
4239
4239
|
}), p.state.next({
|
|
4240
4240
|
name: d,
|
|
4241
4241
|
errors: e.errors,
|
|
4242
4242
|
isValid: !1
|
|
4243
|
-
}), w && w.shouldFocus &&
|
|
4243
|
+
}), w && w.shouldFocus && D && D.focus && D.focus();
|
|
4244
4244
|
}, ee = (d, x) => Ce(d) ? p.state.subscribe({
|
|
4245
4245
|
next: (w) => d(R(void 0, x), w)
|
|
4246
4246
|
}) : R(d, x, !0), le = (d) => p.state.subscribe({
|
|
@@ -4251,13 +4251,13 @@ function Ba(r = {}) {
|
|
|
4251
4251
|
...x
|
|
4252
4252
|
});
|
|
4253
4253
|
}
|
|
4254
|
-
}).unsubscribe, xe = (d) => (o.mount = !0,
|
|
4255
|
-
...
|
|
4254
|
+
}).unsubscribe, xe = (d) => (o.mount = !0, m = {
|
|
4255
|
+
...m,
|
|
4256
4256
|
...d.formState
|
|
4257
4257
|
}, le({
|
|
4258
4258
|
...d,
|
|
4259
|
-
formState:
|
|
4260
|
-
})),
|
|
4259
|
+
formState: m
|
|
4260
|
+
})), W = (d, x = {}) => {
|
|
4261
4261
|
for (const w of d ? dt(d) : l.mount)
|
|
4262
4262
|
l.mount.delete(w), l.array.delete(w), x.keepValue || (pe(s, w), pe(a, w)), !x.keepError && pe(e.errors, w), !x.keepDirty && pe(e.dirtyFields, w), !x.keepTouched && pe(e.touchedFields, w), !x.keepIsValidating && pe(e.validatingFields, w), !t.shouldUnregister && !x.keepDefaultValue && pe(n, w);
|
|
4263
4263
|
p.state.next({
|
|
@@ -4270,7 +4270,7 @@ function Ba(r = {}) {
|
|
|
4270
4270
|
(Ee(d) && o.mount || d || l.disabled.has(x)) && (d ? l.disabled.add(x) : l.disabled.delete(x));
|
|
4271
4271
|
}, ce = (d, x = {}) => {
|
|
4272
4272
|
let w = A(s, d);
|
|
4273
|
-
const
|
|
4273
|
+
const D = Ee(x.disabled) || Ee(t.disabled);
|
|
4274
4274
|
return ae(s, d, {
|
|
4275
4275
|
...w || {},
|
|
4276
4276
|
_f: {
|
|
@@ -4283,7 +4283,7 @@ function Ba(r = {}) {
|
|
|
4283
4283
|
disabled: Ee(x.disabled) ? x.disabled : t.disabled,
|
|
4284
4284
|
name: d
|
|
4285
4285
|
}) : O(d, !0, x.value), {
|
|
4286
|
-
|
|
4286
|
+
...D ? { disabled: x.disabled || t.disabled } : {},
|
|
4287
4287
|
...t.progressive ? {
|
|
4288
4288
|
required: !!x.required,
|
|
4289
4289
|
min: ct(x.min),
|
|
@@ -4293,8 +4293,8 @@ function Ba(r = {}) {
|
|
|
4293
4293
|
pattern: ct(x.pattern)
|
|
4294
4294
|
} : {},
|
|
4295
4295
|
name: d,
|
|
4296
|
-
onChange:
|
|
4297
|
-
onBlur:
|
|
4296
|
+
onChange: H,
|
|
4297
|
+
onBlur: H,
|
|
4298
4298
|
ref: (C) => {
|
|
4299
4299
|
if (C) {
|
|
4300
4300
|
ce(d, x), w = A(s, d);
|
|
@@ -4320,13 +4320,13 @@ function Ba(r = {}) {
|
|
|
4320
4320
|
};
|
|
4321
4321
|
}, se = () => t.shouldFocusError && ut(s, g, l.mount), we = (d) => {
|
|
4322
4322
|
Ee(d) && (p.state.next({ disabled: d }), ut(s, (x, w) => {
|
|
4323
|
-
const
|
|
4324
|
-
|
|
4325
|
-
C.disabled =
|
|
4323
|
+
const D = A(s, w);
|
|
4324
|
+
D && (x.disabled = D._f.disabled || d, Array.isArray(D._f.refs) && D._f.refs.forEach((C) => {
|
|
4325
|
+
C.disabled = D._f.disabled || d;
|
|
4326
4326
|
}));
|
|
4327
4327
|
}, 0, !1));
|
|
4328
4328
|
}, Oe = (d, x) => async (w) => {
|
|
4329
|
-
let
|
|
4329
|
+
let D;
|
|
4330
4330
|
w && (w.preventDefault && w.preventDefault(), w.persist && w.persist());
|
|
4331
4331
|
let C = be(a);
|
|
4332
4332
|
if (p.state.next({
|
|
@@ -4346,22 +4346,22 @@ function Ba(r = {}) {
|
|
|
4346
4346
|
try {
|
|
4347
4347
|
await d(C, w);
|
|
4348
4348
|
} catch (T) {
|
|
4349
|
-
|
|
4349
|
+
D = T;
|
|
4350
4350
|
}
|
|
4351
4351
|
} else
|
|
4352
4352
|
x && await x({ ...e.errors }, w), se(), setTimeout(se);
|
|
4353
4353
|
if (p.state.next({
|
|
4354
4354
|
isSubmitted: !0,
|
|
4355
4355
|
isSubmitting: !1,
|
|
4356
|
-
isSubmitSuccessful: ye(e.errors) &&
|
|
4356
|
+
isSubmitSuccessful: ye(e.errors) && !D,
|
|
4357
4357
|
submitCount: e.submitCount + 1,
|
|
4358
4358
|
errors: e.errors
|
|
4359
|
-
}),
|
|
4360
|
-
throw
|
|
4359
|
+
}), D)
|
|
4360
|
+
throw D;
|
|
4361
4361
|
}, pt = (d, x = {}) => {
|
|
4362
4362
|
A(s, d) && (ue(x.defaultValue) ? re(d, be(A(n, d))) : (re(d, x.defaultValue), ae(n, d, be(x.defaultValue))), x.keepTouched || pe(e.touchedFields, d), x.keepDirty || (pe(e.dirtyFields, d), e.isDirty = x.defaultValue ? M(d, be(A(n, d))) : M()), x.keepError || (pe(e.errors, d), f.isValid && k()), p.state.next({ ...e }));
|
|
4363
4363
|
}, gr = (d, x = {}) => {
|
|
4364
|
-
const w = d ? be(d) : n,
|
|
4364
|
+
const w = d ? be(d) : n, D = be(w), C = ye(d), T = C ? n : D;
|
|
4365
4365
|
if (x.keepDefaultValues || (n = w), !x.keepValues) {
|
|
4366
4366
|
if (x.keepDirtyValues) {
|
|
4367
4367
|
const q = /* @__PURE__ */ new Set([
|
|
@@ -4413,9 +4413,9 @@ function Ba(r = {}) {
|
|
|
4413
4413
|
isSubmitting: !1
|
|
4414
4414
|
});
|
|
4415
4415
|
}, br = (d, x) => gr(Ce(d) ? d(a) : d, x), dn = (d, x = {}) => {
|
|
4416
|
-
const w = A(s, d),
|
|
4417
|
-
if (
|
|
4418
|
-
const C =
|
|
4416
|
+
const w = A(s, d), D = w && w._f;
|
|
4417
|
+
if (D) {
|
|
4418
|
+
const C = D.refs ? D.refs[0] : D.ref;
|
|
4419
4419
|
C.focus && (C.focus(), x.shouldSelect && Ce(C.select) && C.select());
|
|
4420
4420
|
}
|
|
4421
4421
|
}, un = (d) => {
|
|
@@ -4426,10 +4426,10 @@ function Ba(r = {}) {
|
|
|
4426
4426
|
}, yr = {
|
|
4427
4427
|
control: {
|
|
4428
4428
|
register: ce,
|
|
4429
|
-
unregister:
|
|
4430
|
-
getFieldState:
|
|
4429
|
+
unregister: W,
|
|
4430
|
+
getFieldState: N,
|
|
4431
4431
|
handleSubmit: Oe,
|
|
4432
|
-
setError:
|
|
4432
|
+
setError: B,
|
|
4433
4433
|
_subscribe: le,
|
|
4434
4434
|
_runSchema: Y,
|
|
4435
4435
|
_getWatch: R,
|
|
@@ -4438,7 +4438,7 @@ function Ba(r = {}) {
|
|
|
4438
4438
|
_setFieldArray: v,
|
|
4439
4439
|
_setDisabledField: te,
|
|
4440
4440
|
_setErrors: j,
|
|
4441
|
-
_getFieldArray:
|
|
4441
|
+
_getFieldArray: G,
|
|
4442
4442
|
_reset: gr,
|
|
4443
4443
|
_resetDefaultValues: () => Ce(t.defaultValues) && t.defaultValues().then((d) => {
|
|
4444
4444
|
br(d, t.resetOptions), p.state.next({
|
|
@@ -4484,19 +4484,19 @@ function Ba(r = {}) {
|
|
|
4484
4484
|
}
|
|
4485
4485
|
},
|
|
4486
4486
|
subscribe: xe,
|
|
4487
|
-
trigger:
|
|
4487
|
+
trigger: X,
|
|
4488
4488
|
register: ce,
|
|
4489
4489
|
handleSubmit: Oe,
|
|
4490
4490
|
watch: ee,
|
|
4491
4491
|
setValue: re,
|
|
4492
|
-
getValues:
|
|
4492
|
+
getValues: h,
|
|
4493
4493
|
reset: br,
|
|
4494
4494
|
resetField: pt,
|
|
4495
|
-
clearErrors:
|
|
4496
|
-
unregister:
|
|
4497
|
-
setError:
|
|
4495
|
+
clearErrors: $,
|
|
4496
|
+
unregister: W,
|
|
4497
|
+
setError: B,
|
|
4498
4498
|
setFocus: dn,
|
|
4499
|
-
getFieldState:
|
|
4499
|
+
getFieldState: N
|
|
4500
4500
|
};
|
|
4501
4501
|
return {
|
|
4502
4502
|
...yr,
|
|
@@ -4569,13 +4569,13 @@ const Ps = {
|
|
|
4569
4569
|
lg: "px-3"
|
|
4570
4570
|
};
|
|
4571
4571
|
function Ur(r, t, e, s, n, a, o) {
|
|
4572
|
-
const l = t ? "datetime-local" : "date", c =
|
|
4572
|
+
const l = t ? "datetime-local" : "date", c = I(
|
|
4573
4573
|
"box-border w-full rounded-lg border outline-none transition font-[var(--font-primary)]",
|
|
4574
4574
|
Ps[e],
|
|
4575
4575
|
Za[e],
|
|
4576
4576
|
qa[e],
|
|
4577
4577
|
a ? "border-[var(--color-ds-border-error)]" : "border-[var(--color-ds-border-default)]"
|
|
4578
|
-
),
|
|
4578
|
+
), m = _a(c, n ? "bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-disabled)] cursor-not-allowed opacity-60" : "bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)]", o);
|
|
4579
4579
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
4580
4580
|
/* @__PURE__ */ i.jsx(
|
|
4581
4581
|
"input",
|
|
@@ -4586,7 +4586,7 @@ function Ur(r, t, e, s, n, a, o) {
|
|
|
4586
4586
|
"aria-disabled": n,
|
|
4587
4587
|
"data-disabled": n ? "true" : "false",
|
|
4588
4588
|
...s,
|
|
4589
|
-
className:
|
|
4589
|
+
className: m
|
|
4590
4590
|
}
|
|
4591
4591
|
),
|
|
4592
4592
|
/* @__PURE__ */ i.jsx("div", { children: a != null && a.message ? /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: a.message }) : /* @__PURE__ */ i.jsx("span", { "aria-hidden": "true", children: " " }) })
|
|
@@ -4604,7 +4604,7 @@ function Ga(r) {
|
|
|
4604
4604
|
label: c,
|
|
4605
4605
|
labelHidden: u = !1,
|
|
4606
4606
|
hasError: f = !1,
|
|
4607
|
-
errorMessage:
|
|
4607
|
+
errorMessage: m = "",
|
|
4608
4608
|
disabled: p = !1,
|
|
4609
4609
|
className: b,
|
|
4610
4610
|
onChange: E
|
|
@@ -4612,14 +4612,14 @@ function Ga(r) {
|
|
|
4612
4612
|
return /* @__PURE__ */ i.jsxs(
|
|
4613
4613
|
"div",
|
|
4614
4614
|
{
|
|
4615
|
-
className:
|
|
4615
|
+
className: I("flex flex-col", b),
|
|
4616
4616
|
style: { width: l, maxWidth: "100%" },
|
|
4617
4617
|
children: [
|
|
4618
4618
|
c && /* @__PURE__ */ i.jsx(
|
|
4619
4619
|
"label",
|
|
4620
4620
|
{
|
|
4621
4621
|
htmlFor: S,
|
|
4622
|
-
className:
|
|
4622
|
+
className: I(
|
|
4623
4623
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
4624
4624
|
Ps[o],
|
|
4625
4625
|
u && "sr-only"
|
|
@@ -4666,7 +4666,7 @@ function Ga(r) {
|
|
|
4666
4666
|
onChange: E
|
|
4667
4667
|
},
|
|
4668
4668
|
p,
|
|
4669
|
-
f ? { message:
|
|
4669
|
+
f ? { message: m } : void 0,
|
|
4670
4670
|
b
|
|
4671
4671
|
)
|
|
4672
4672
|
)
|
|
@@ -4688,7 +4688,7 @@ const Mi = ({
|
|
|
4688
4688
|
return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
|
|
4689
4689
|
}, []);
|
|
4690
4690
|
const c = (u) => {
|
|
4691
|
-
var
|
|
4691
|
+
var m, p;
|
|
4692
4692
|
const f = l.current.findIndex(
|
|
4693
4693
|
(b) => b === document.activeElement
|
|
4694
4694
|
);
|
|
@@ -4697,14 +4697,14 @@ const Mi = ({
|
|
|
4697
4697
|
else if (u.key === "ArrowDown") {
|
|
4698
4698
|
u.preventDefault();
|
|
4699
4699
|
const b = (f + 1) % t.length;
|
|
4700
|
-
(
|
|
4700
|
+
(m = l.current[b]) == null || m.focus();
|
|
4701
4701
|
} else if (u.key === "ArrowUp") {
|
|
4702
4702
|
u.preventDefault();
|
|
4703
4703
|
const b = (f - 1 + t.length) % t.length;
|
|
4704
4704
|
(p = l.current[b]) == null || p.focus();
|
|
4705
4705
|
}
|
|
4706
4706
|
};
|
|
4707
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
4707
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("relative inline-block", s), ref: o, children: [
|
|
4708
4708
|
/* @__PURE__ */ i.jsx(
|
|
4709
4709
|
"button",
|
|
4710
4710
|
{
|
|
@@ -4721,14 +4721,14 @@ const Mi = ({
|
|
|
4721
4721
|
{
|
|
4722
4722
|
role: "menu",
|
|
4723
4723
|
"aria-orientation": "vertical",
|
|
4724
|
-
className:
|
|
4724
|
+
className: I(
|
|
4725
4725
|
"absolute mt-2 min-w-[160px] bg-[var(--color-ds-background-page)]",
|
|
4726
4726
|
"border border-[var(--color-ds-border-muted)] rounded shadow-lg z-10",
|
|
4727
4727
|
e === "right" ? "right-0" : "left-0"
|
|
4728
4728
|
),
|
|
4729
4729
|
onKeyDown: c,
|
|
4730
4730
|
children: t.map((u, f) => {
|
|
4731
|
-
const { label:
|
|
4731
|
+
const { label: m, onSelect: p, disabled: b, icon: E } = u;
|
|
4732
4732
|
return /* @__PURE__ */ i.jsxs(
|
|
4733
4733
|
"button",
|
|
4734
4734
|
{
|
|
@@ -4738,7 +4738,7 @@ const Mi = ({
|
|
|
4738
4738
|
ref: (k) => {
|
|
4739
4739
|
l.current[f] = k;
|
|
4740
4740
|
},
|
|
4741
|
-
className:
|
|
4741
|
+
className: I(
|
|
4742
4742
|
"w-full flex items-center px-4 py-2 text-[var(--color-ds-text-primary)] text-ds-md transition-colors",
|
|
4743
4743
|
b ? "opacity-50 cursor-not-allowed" : "hover:bg-[var(--color-ds-background-surface)]"
|
|
4744
4744
|
),
|
|
@@ -4747,7 +4747,7 @@ const Mi = ({
|
|
|
4747
4747
|
},
|
|
4748
4748
|
children: [
|
|
4749
4749
|
E && /* @__PURE__ */ i.jsx(E, { className: "w-5 h-5 mr-2 text-[var(--color-ds-text-secondary)]" }),
|
|
4750
|
-
|
|
4750
|
+
m
|
|
4751
4751
|
]
|
|
4752
4752
|
},
|
|
4753
4753
|
f
|
|
@@ -4847,7 +4847,7 @@ const io = (r, t) => {
|
|
|
4847
4847
|
e.current = r;
|
|
4848
4848
|
}, [r, t]), e.current;
|
|
4849
4849
|
}, Us = (r, t, e, s) => r.getFixedT(t, e, s), lo = (r, t, e, s) => Zt(Us(r, t, e, s), [r, t, e, s]), hr = (r, t = {}) => {
|
|
4850
|
-
var O,
|
|
4850
|
+
var O, F, U, Y;
|
|
4851
4851
|
const {
|
|
4852
4852
|
i18n: e
|
|
4853
4853
|
} = t, {
|
|
@@ -4856,8 +4856,8 @@ const io = (r, t) => {
|
|
|
4856
4856
|
} = nr(ao) || {}, a = e || s || no();
|
|
4857
4857
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new oo()), !a) {
|
|
4858
4858
|
Xt(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
4859
|
-
const
|
|
4860
|
-
return V.t =
|
|
4859
|
+
const _ = (L, M) => He(M) ? M : Xa(M) && He(M.defaultValue) ? M.defaultValue : Array.isArray(L) ? L[L.length - 1] : L, V = [_, {}, !1];
|
|
4860
|
+
return V.t = _, V.i18n = {}, V.ready = !1, V;
|
|
4861
4861
|
}
|
|
4862
4862
|
(O = a.options.react) != null && O.wait && Xt(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
4863
4863
|
const o = {
|
|
@@ -4868,15 +4868,15 @@ const io = (r, t) => {
|
|
|
4868
4868
|
useSuspense: l,
|
|
4869
4869
|
keyPrefix: c
|
|
4870
4870
|
} = o;
|
|
4871
|
-
let u = n || ((
|
|
4871
|
+
let u = n || ((F = a.options) == null ? void 0 : F.defaultNS);
|
|
4872
4872
|
u = He(u) ? [u] : u || ["translation"], (Y = (U = a.reportNamespaces).addUsedNamespaces) == null || Y.call(U, u);
|
|
4873
|
-
const f = (a.isInitialized || a.initializedStoreOnce) && u.every((
|
|
4873
|
+
const f = (a.isInitialized || a.initializedStoreOnce) && u.every((_) => Ya(_, a, o)), m = lo(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), p = () => m, b = () => Us(a, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), [E, k] = oe(p);
|
|
4874
4874
|
let S = u.join();
|
|
4875
4875
|
t.lng && (S = `${t.lng}${S}`);
|
|
4876
4876
|
const v = io(S), y = Fe(!0);
|
|
4877
4877
|
fe(() => {
|
|
4878
4878
|
const {
|
|
4879
|
-
bindI18n:
|
|
4879
|
+
bindI18n: _,
|
|
4880
4880
|
bindI18nStore: V
|
|
4881
4881
|
} = o;
|
|
4882
4882
|
y.current = !0, !f && !l && (t.lng ? Wr(a, t.lng, u, () => {
|
|
@@ -4887,16 +4887,16 @@ const io = (r, t) => {
|
|
|
4887
4887
|
const L = () => {
|
|
4888
4888
|
y.current && k(b);
|
|
4889
4889
|
};
|
|
4890
|
-
return
|
|
4891
|
-
y.current = !1, a && (
|
|
4890
|
+
return _ && (a == null || a.on(_, L)), V && (a == null || a.store.on(V, L)), () => {
|
|
4891
|
+
y.current = !1, a && (_ == null || _.split(" ").forEach((M) => a.off(M, L))), V && a && V.split(" ").forEach((M) => a.store.off(M, L));
|
|
4892
4892
|
};
|
|
4893
4893
|
}, [a, S]), fe(() => {
|
|
4894
4894
|
y.current && f && k(p);
|
|
4895
4895
|
}, [a, c, f]);
|
|
4896
4896
|
const j = [E, a, f];
|
|
4897
4897
|
if (j.t = E, j.i18n = a, j.ready = f, f || !f && !l) return j;
|
|
4898
|
-
throw new Promise((
|
|
4899
|
-
t.lng ? Wr(a, t.lng, u, () =>
|
|
4898
|
+
throw new Promise((_) => {
|
|
4899
|
+
t.lng ? Wr(a, t.lng, u, () => _()) : Jt(a, u, () => _());
|
|
4900
4900
|
});
|
|
4901
4901
|
}, Kt = {
|
|
4902
4902
|
sm: "text-sm",
|
|
@@ -4904,17 +4904,17 @@ const io = (r, t) => {
|
|
|
4904
4904
|
lg: "text-lg"
|
|
4905
4905
|
};
|
|
4906
4906
|
function Zr(r, t, e, s, n, a, o, l, c) {
|
|
4907
|
-
const { t: u } = hr(), f = Fe(null),
|
|
4907
|
+
const { t: u } = hr(), f = Fe(null), m = typeof s == "number" && t.length >= s, p = () => {
|
|
4908
4908
|
var y;
|
|
4909
|
-
!o && !
|
|
4909
|
+
!o && !m && ((y = f.current) == null || y.click());
|
|
4910
4910
|
}, b = (y) => {
|
|
4911
4911
|
const j = y.target.files;
|
|
4912
4912
|
if (!j) return;
|
|
4913
4913
|
const O = Array.from(j);
|
|
4914
|
-
let
|
|
4915
|
-
s && (
|
|
4914
|
+
let F = t.concat(O);
|
|
4915
|
+
s && (F = F.slice(0, s)), e(F), y.target.value = "";
|
|
4916
4916
|
}, E = (y) => {
|
|
4917
|
-
if (y.preventDefault(), o ||
|
|
4917
|
+
if (y.preventDefault(), o || m) return;
|
|
4918
4918
|
const j = Array.from(y.dataTransfer.files);
|
|
4919
4919
|
let O = t.concat(j);
|
|
4920
4920
|
s && (O = O.slice(0, s)), e(O);
|
|
@@ -4924,7 +4924,7 @@ function Zr(r, t, e, s, n, a, o, l, c) {
|
|
|
4924
4924
|
const j = URL.createObjectURL(y);
|
|
4925
4925
|
window.open(j);
|
|
4926
4926
|
}, v = (y) => {
|
|
4927
|
-
const j = t.filter((O,
|
|
4927
|
+
const j = t.filter((O, F) => F !== y);
|
|
4928
4928
|
e(j);
|
|
4929
4929
|
};
|
|
4930
4930
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
@@ -4936,14 +4936,14 @@ function Zr(r, t, e, s, n, a, o, l, c) {
|
|
|
4936
4936
|
size: a,
|
|
4937
4937
|
icon: Nr,
|
|
4938
4938
|
onClick: p,
|
|
4939
|
-
disabled: o ||
|
|
4939
|
+
disabled: o || m,
|
|
4940
4940
|
children: u("ds.fileUploader.browse", "Browse files")
|
|
4941
4941
|
}
|
|
4942
4942
|
) }),
|
|
4943
|
-
!
|
|
4943
|
+
!m && /* @__PURE__ */ i.jsxs(
|
|
4944
4944
|
"div",
|
|
4945
4945
|
{
|
|
4946
|
-
className:
|
|
4946
|
+
className: I(
|
|
4947
4947
|
"relative flex bg-[var(--color-ds-background-page)] flex-col items-center justify-center border-2 border-dashed border-[var(--color-ds-border-muted)] rounded-lg p-4",
|
|
4948
4948
|
o ? "opacity-50 cursor-not-allowed" : "hover:border-[var(--color-ds-border-default)]",
|
|
4949
4949
|
Kt[a],
|
|
@@ -5030,18 +5030,18 @@ function co(r) {
|
|
|
5030
5030
|
width: c = "100%",
|
|
5031
5031
|
label: u,
|
|
5032
5032
|
labelHidden: f = !1,
|
|
5033
|
-
disabled:
|
|
5033
|
+
disabled: m = !1,
|
|
5034
5034
|
hasError: p = !1,
|
|
5035
5035
|
errorMessage: b = "",
|
|
5036
5036
|
className: E
|
|
5037
5037
|
} = r, k = Xe(), S = e || k;
|
|
5038
5038
|
if (t && e)
|
|
5039
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5039
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", E), style: { width: c }, children: [
|
|
5040
5040
|
u && /* @__PURE__ */ i.jsx(
|
|
5041
5041
|
"label",
|
|
5042
5042
|
{
|
|
5043
5043
|
htmlFor: S,
|
|
5044
|
-
className:
|
|
5044
|
+
className: I(
|
|
5045
5045
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5046
5046
|
Kt[l],
|
|
5047
5047
|
f && "sr-only"
|
|
@@ -5059,11 +5059,11 @@ function co(r) {
|
|
|
5059
5059
|
render: ({ field: j, fieldState: O }) => Zr(
|
|
5060
5060
|
S,
|
|
5061
5061
|
j.value,
|
|
5062
|
-
(
|
|
5062
|
+
(F) => j.onChange(F),
|
|
5063
5063
|
a,
|
|
5064
5064
|
o,
|
|
5065
5065
|
l,
|
|
5066
|
-
|
|
5066
|
+
m,
|
|
5067
5067
|
O.error,
|
|
5068
5068
|
E
|
|
5069
5069
|
)
|
|
@@ -5073,12 +5073,12 @@ function co(r) {
|
|
|
5073
5073
|
const [v, y] = oe(
|
|
5074
5074
|
n instanceof FileList ? Array.from(n) : n || []
|
|
5075
5075
|
);
|
|
5076
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5076
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", E), style: { width: c }, children: [
|
|
5077
5077
|
u && /* @__PURE__ */ i.jsx(
|
|
5078
5078
|
"label",
|
|
5079
5079
|
{
|
|
5080
5080
|
htmlFor: S,
|
|
5081
|
-
className:
|
|
5081
|
+
className: I(
|
|
5082
5082
|
"pb-[10px] text-[var(--color-ds-text-primary)]",
|
|
5083
5083
|
Kt[l],
|
|
5084
5084
|
f && "sr-only"
|
|
@@ -5093,7 +5093,7 @@ function co(r) {
|
|
|
5093
5093
|
a,
|
|
5094
5094
|
o,
|
|
5095
5095
|
l,
|
|
5096
|
-
|
|
5096
|
+
m,
|
|
5097
5097
|
p ? { message: b } : void 0,
|
|
5098
5098
|
E
|
|
5099
5099
|
)
|
|
@@ -5112,7 +5112,7 @@ const rt = ({
|
|
|
5112
5112
|
{
|
|
5113
5113
|
role: "status",
|
|
5114
5114
|
"aria-label": "Cargando...",
|
|
5115
|
-
className:
|
|
5115
|
+
className: I(
|
|
5116
5116
|
"bg-[var(--color-ds-border-muted)] animate-pulse inline-block",
|
|
5117
5117
|
s === "circle" ? "rounded-full" : "rounded",
|
|
5118
5118
|
n
|
|
@@ -5157,7 +5157,7 @@ function mr({
|
|
|
5157
5157
|
prefixIcon: c,
|
|
5158
5158
|
suffixIcon: u,
|
|
5159
5159
|
separator: f,
|
|
5160
|
-
suffixButton:
|
|
5160
|
+
suffixButton: m,
|
|
5161
5161
|
disabled: p = !1,
|
|
5162
5162
|
control: b,
|
|
5163
5163
|
name: E,
|
|
@@ -5167,7 +5167,7 @@ function mr({
|
|
|
5167
5167
|
className: y,
|
|
5168
5168
|
...j
|
|
5169
5169
|
}) {
|
|
5170
|
-
const O = Xe(), [
|
|
5170
|
+
const O = Xe(), [F, U] = oe(!1), Y = r || O, _ = t === "password", L = c ?? (t === "number" ? Ln : void 0), M = _ ? F ? $n : ms : u, R = I(
|
|
5171
5171
|
"box-border w-full rounded-lg border placeholder-[var(--color-ds-text-secondary)] outline-none transition font-[var(--font-primary)] appearance-none",
|
|
5172
5172
|
vt[e],
|
|
5173
5173
|
uo[e],
|
|
@@ -5180,7 +5180,7 @@ function mr({
|
|
|
5180
5180
|
"disabled:cursor-not-allowed"
|
|
5181
5181
|
);
|
|
5182
5182
|
return v ? /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s, maxWidth: "100%" }, children: [
|
|
5183
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className:
|
|
5183
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className: I("pb-2", vt[e]), children: n }),
|
|
5184
5184
|
/* @__PURE__ */ i.jsx(
|
|
5185
5185
|
rt,
|
|
5186
5186
|
{
|
|
@@ -5198,13 +5198,13 @@ function mr({
|
|
|
5198
5198
|
control: b,
|
|
5199
5199
|
rules: k,
|
|
5200
5200
|
defaultValue: S,
|
|
5201
|
-
render: ({ field:
|
|
5202
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className:
|
|
5201
|
+
render: ({ field: G, fieldState: J }) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
|
|
5202
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className: I("pb-2 text-[var(--color-ds-text-primary)]", vt[e]), children: n }),
|
|
5203
5203
|
/* @__PURE__ */ i.jsxs("div", { className: "relative flex items-center w-full", children: [
|
|
5204
5204
|
L && /* @__PURE__ */ i.jsx(
|
|
5205
5205
|
"div",
|
|
5206
5206
|
{
|
|
5207
|
-
className:
|
|
5207
|
+
className: I(
|
|
5208
5208
|
"absolute left-0 flex items-center h-full",
|
|
5209
5209
|
qr[e]
|
|
5210
5210
|
),
|
|
@@ -5221,26 +5221,26 @@ function mr({
|
|
|
5221
5221
|
/* @__PURE__ */ i.jsx(
|
|
5222
5222
|
"input",
|
|
5223
5223
|
{
|
|
5224
|
-
...
|
|
5224
|
+
...G,
|
|
5225
5225
|
id: Y,
|
|
5226
|
-
type:
|
|
5226
|
+
type: _ ? F ? "text" : "password" : t,
|
|
5227
5227
|
disabled: p,
|
|
5228
|
-
"aria-invalid": !!
|
|
5229
|
-
className:
|
|
5228
|
+
"aria-invalid": !!J.error,
|
|
5229
|
+
className: I(
|
|
5230
5230
|
R,
|
|
5231
5231
|
L && "pl-9",
|
|
5232
5232
|
M && "pr-9",
|
|
5233
5233
|
y
|
|
5234
5234
|
),
|
|
5235
5235
|
onInvalid: (K) => K.preventDefault(),
|
|
5236
|
-
style:
|
|
5236
|
+
style: _ && !F ? {
|
|
5237
5237
|
WebkitTextSecurity: "disc",
|
|
5238
5238
|
MozTextSecurity: "disc"
|
|
5239
5239
|
} : void 0
|
|
5240
5240
|
}
|
|
5241
5241
|
),
|
|
5242
5242
|
f && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: f }),
|
|
5243
|
-
|
|
5243
|
+
m && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full pr-2", children: m }),
|
|
5244
5244
|
M && /* @__PURE__ */ i.jsx(
|
|
5245
5245
|
"button",
|
|
5246
5246
|
{
|
|
@@ -5259,16 +5259,16 @@ function mr({
|
|
|
5259
5259
|
}
|
|
5260
5260
|
)
|
|
5261
5261
|
] }),
|
|
5262
|
-
/* @__PURE__ */ i.jsx("div", { className: "min-h-[18px]", children:
|
|
5262
|
+
/* @__PURE__ */ i.jsx("div", { className: "min-h-[18px]", children: J.error ? /* @__PURE__ */ i.jsx("span", { className: "text-xs text-[var(--color-ds-text-error)]", children: J.error.message }) : /* @__PURE__ */ i.jsx("span", { "aria-hidden": "true", children: " " }) })
|
|
5263
5263
|
] })
|
|
5264
5264
|
}
|
|
5265
5265
|
) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", style: { width: s }, children: [
|
|
5266
|
-
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className:
|
|
5266
|
+
!a && n && /* @__PURE__ */ i.jsx("label", { htmlFor: Y, className: I("pb-2 text-[var(--color-ds-text-primary)]", vt[e]), children: n }),
|
|
5267
5267
|
/* @__PURE__ */ i.jsxs("div", { className: "relative flex items-center w-full", children: [
|
|
5268
5268
|
L && /* @__PURE__ */ i.jsx(
|
|
5269
5269
|
"div",
|
|
5270
5270
|
{
|
|
5271
|
-
className:
|
|
5271
|
+
className: I(
|
|
5272
5272
|
"absolute left-0 flex items-center h-full",
|
|
5273
5273
|
qr[e]
|
|
5274
5274
|
),
|
|
@@ -5287,29 +5287,29 @@ function mr({
|
|
|
5287
5287
|
{
|
|
5288
5288
|
...j,
|
|
5289
5289
|
id: Y,
|
|
5290
|
-
type:
|
|
5290
|
+
type: _ ? F ? "text" : "password" : t,
|
|
5291
5291
|
disabled: p,
|
|
5292
5292
|
"aria-invalid": o,
|
|
5293
|
-
className:
|
|
5293
|
+
className: I(
|
|
5294
5294
|
R,
|
|
5295
5295
|
L && "pl-9",
|
|
5296
5296
|
M && "pr-9",
|
|
5297
5297
|
y
|
|
5298
5298
|
),
|
|
5299
|
-
onInvalid: (
|
|
5300
|
-
style:
|
|
5299
|
+
onInvalid: (G) => G.preventDefault(),
|
|
5300
|
+
style: _ && !F ? {
|
|
5301
5301
|
WebkitTextSecurity: "disc",
|
|
5302
5302
|
MozTextSecurity: "disc"
|
|
5303
5303
|
} : void 0
|
|
5304
5304
|
}
|
|
5305
5305
|
),
|
|
5306
5306
|
f && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: f }),
|
|
5307
|
-
|
|
5307
|
+
m && /* @__PURE__ */ i.jsx("div", { className: "flex items-center h-full", children: m }),
|
|
5308
5308
|
M && /* @__PURE__ */ i.jsx(
|
|
5309
5309
|
"button",
|
|
5310
5310
|
{
|
|
5311
5311
|
type: "button",
|
|
5312
|
-
onClick: () => U((
|
|
5312
|
+
onClick: () => U((G) => !G),
|
|
5313
5313
|
className: "absolute right-0 flex items-center h-full pr-2",
|
|
5314
5314
|
tabIndex: -1,
|
|
5315
5315
|
children: /* @__PURE__ */ i.jsx(
|
|
@@ -5358,12 +5358,12 @@ const mo = {
|
|
|
5358
5358
|
l({ x: b, y: E });
|
|
5359
5359
|
}
|
|
5360
5360
|
}, [n, e]);
|
|
5361
|
-
const f = () => typeof r == "string" ? /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: r }),
|
|
5361
|
+
const f = () => typeof r == "string" ? /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ i.jsx(i.Fragment, { children: r }), m = n ? /* @__PURE__ */ i.jsx(
|
|
5362
5362
|
"div",
|
|
5363
5363
|
{
|
|
5364
5364
|
id: u,
|
|
5365
5365
|
role: "tooltip",
|
|
5366
|
-
className:
|
|
5366
|
+
className: I(
|
|
5367
5367
|
"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",
|
|
5368
5368
|
"pointer-events-none"
|
|
5369
5369
|
),
|
|
@@ -5382,7 +5382,7 @@ const mo = {
|
|
|
5382
5382
|
type: "button",
|
|
5383
5383
|
"aria-describedby": u,
|
|
5384
5384
|
ref: c,
|
|
5385
|
-
className:
|
|
5385
|
+
className: I(
|
|
5386
5386
|
"inline-flex items-center justify-center focus:outline-none",
|
|
5387
5387
|
mo[t],
|
|
5388
5388
|
"text-[var(--color-ds-text-secondary)] hover:text-[var(--color-ds-text-primary)]",
|
|
@@ -5395,7 +5395,7 @@ const mo = {
|
|
|
5395
5395
|
children: /* @__PURE__ */ i.jsx(zn, { className: "w-full h-full" })
|
|
5396
5396
|
}
|
|
5397
5397
|
),
|
|
5398
|
-
us.createPortal(
|
|
5398
|
+
us.createPortal(m, document.body)
|
|
5399
5399
|
] });
|
|
5400
5400
|
};
|
|
5401
5401
|
function xo({
|
|
@@ -5413,8 +5413,8 @@ function xo({
|
|
|
5413
5413
|
var S;
|
|
5414
5414
|
const {
|
|
5415
5415
|
control: f,
|
|
5416
|
-
formState: { errors:
|
|
5417
|
-
} = ht(), p = !!
|
|
5416
|
+
formState: { errors: m }
|
|
5417
|
+
} = ht(), p = !!m[r], b = ((S = m[r]) == null ? void 0 : S.message) || "", E = "relative", k = n ?? "w-full";
|
|
5418
5418
|
return /* @__PURE__ */ i.jsxs("div", { className: E, children: [
|
|
5419
5419
|
/* @__PURE__ */ i.jsx(
|
|
5420
5420
|
Ae,
|
|
@@ -5458,7 +5458,7 @@ function Ri({
|
|
|
5458
5458
|
children: e,
|
|
5459
5459
|
className: s
|
|
5460
5460
|
}) {
|
|
5461
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5461
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col h-full", s), children: [
|
|
5462
5462
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between py-4", children: [
|
|
5463
5463
|
/* @__PURE__ */ i.jsx(
|
|
5464
5464
|
"div",
|
|
@@ -5489,7 +5489,7 @@ function go({
|
|
|
5489
5489
|
const c = () => {
|
|
5490
5490
|
const u = r.findIndex((S) => S.value === t);
|
|
5491
5491
|
if (u < 0) return;
|
|
5492
|
-
const f = l.children[u],
|
|
5492
|
+
const f = l.children[u], m = f.querySelector("span"), p = (m == null ? void 0 : m.offsetWidth) ?? f.offsetWidth, b = f.offsetWidth, k = f.offsetLeft + (b - p) / 2;
|
|
5493
5493
|
o({ left: k, width: p });
|
|
5494
5494
|
};
|
|
5495
5495
|
return c(), window.addEventListener("resize", c), l.addEventListener("scroll", c), () => {
|
|
@@ -5511,7 +5511,7 @@ function go({
|
|
|
5511
5511
|
role: "tab",
|
|
5512
5512
|
"aria-selected": c,
|
|
5513
5513
|
onClick: () => e(l.value),
|
|
5514
|
-
className:
|
|
5514
|
+
className: I(
|
|
5515
5515
|
"cursor-pointer whitespace-nowrap px-4 py-2 transition-colors duration-150 ease-in-out",
|
|
5516
5516
|
c ? "text-[var(--color-ds-background-accent)]" : "text-[var(--color-ds-text-primary)]"
|
|
5517
5517
|
),
|
|
@@ -5559,7 +5559,7 @@ function Hr(r, t, e, s, n, a, o, l, c) {
|
|
|
5559
5559
|
id: r,
|
|
5560
5560
|
...s,
|
|
5561
5561
|
disabled: n,
|
|
5562
|
-
className:
|
|
5562
|
+
className: I(
|
|
5563
5563
|
"box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition font-[var(--font-primary)]",
|
|
5564
5564
|
Qt[e],
|
|
5565
5565
|
bo[e],
|
|
@@ -5596,7 +5596,7 @@ function Ot(r) {
|
|
|
5596
5596
|
value: c,
|
|
5597
5597
|
onChange: u,
|
|
5598
5598
|
size: f = "sm",
|
|
5599
|
-
width:
|
|
5599
|
+
width: m = "100%",
|
|
5600
5600
|
label: p,
|
|
5601
5601
|
labelHidden: b = !1,
|
|
5602
5602
|
hasError: E = !1,
|
|
@@ -5605,7 +5605,7 @@ function Ot(r) {
|
|
|
5605
5605
|
disabled: v = !1,
|
|
5606
5606
|
className: y,
|
|
5607
5607
|
suffixButton: j
|
|
5608
|
-
} = r, O = Xe(),
|
|
5608
|
+
} = r, O = Xe(), F = e || O, [U, Y] = oe(a), [_, V] = oe(!!o);
|
|
5609
5609
|
if (fe(() => {
|
|
5610
5610
|
o && (V(!0), o().then((L) => Y(L)).finally(() => V(!1)));
|
|
5611
5611
|
}, [o, ...l]), fe(() => {
|
|
@@ -5621,16 +5621,16 @@ function Ot(r) {
|
|
|
5621
5621
|
defaultValue: n
|
|
5622
5622
|
});
|
|
5623
5623
|
return fe(() => {
|
|
5624
|
-
if (!
|
|
5624
|
+
if (!_ && U.length > 0) {
|
|
5625
5625
|
const R = L.value;
|
|
5626
|
-
(R === void 0 || !U.some((
|
|
5626
|
+
(R === void 0 || !U.some((G) => G.value === R)) && L.onChange(U[0].value);
|
|
5627
5627
|
}
|
|
5628
|
-
}, [U,
|
|
5628
|
+
}, [U, _, L]), /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", y), style: { width: m, maxWidth: "100%" }, children: [
|
|
5629
5629
|
p && /* @__PURE__ */ i.jsx(
|
|
5630
5630
|
"label",
|
|
5631
5631
|
{
|
|
5632
|
-
htmlFor:
|
|
5633
|
-
className:
|
|
5632
|
+
htmlFor: F,
|
|
5633
|
+
className: I(
|
|
5634
5634
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
5635
5635
|
Qt[f],
|
|
5636
5636
|
b && "sr-only"
|
|
@@ -5638,7 +5638,7 @@ function Ot(r) {
|
|
|
5638
5638
|
children: p
|
|
5639
5639
|
}
|
|
5640
5640
|
),
|
|
5641
|
-
|
|
5641
|
+
_ ? /* @__PURE__ */ i.jsx(
|
|
5642
5642
|
rt,
|
|
5643
5643
|
{
|
|
5644
5644
|
width: "100%",
|
|
@@ -5647,7 +5647,7 @@ function Ot(r) {
|
|
|
5647
5647
|
className: "rounded-lg"
|
|
5648
5648
|
}
|
|
5649
5649
|
) : Hr(
|
|
5650
|
-
|
|
5650
|
+
F,
|
|
5651
5651
|
U,
|
|
5652
5652
|
f,
|
|
5653
5653
|
{
|
|
@@ -5662,12 +5662,12 @@ function Ot(r) {
|
|
|
5662
5662
|
)
|
|
5663
5663
|
] });
|
|
5664
5664
|
}
|
|
5665
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5665
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", y), style: { width: m, maxWidth: "100%" }, children: [
|
|
5666
5666
|
p && /* @__PURE__ */ i.jsx(
|
|
5667
5667
|
"label",
|
|
5668
5668
|
{
|
|
5669
|
-
htmlFor:
|
|
5670
|
-
className:
|
|
5669
|
+
htmlFor: F,
|
|
5670
|
+
className: I(
|
|
5671
5671
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
5672
5672
|
Qt[f],
|
|
5673
5673
|
b && "sr-only"
|
|
@@ -5675,7 +5675,7 @@ function Ot(r) {
|
|
|
5675
5675
|
children: p
|
|
5676
5676
|
}
|
|
5677
5677
|
),
|
|
5678
|
-
|
|
5678
|
+
_ ? /* @__PURE__ */ i.jsx(
|
|
5679
5679
|
rt,
|
|
5680
5680
|
{
|
|
5681
5681
|
width: "100%",
|
|
@@ -5684,7 +5684,7 @@ function Ot(r) {
|
|
|
5684
5684
|
className: "rounded-lg"
|
|
5685
5685
|
}
|
|
5686
5686
|
) : Hr(
|
|
5687
|
-
|
|
5687
|
+
F,
|
|
5688
5688
|
U,
|
|
5689
5689
|
f,
|
|
5690
5690
|
{
|
|
@@ -5718,14 +5718,14 @@ function vo({
|
|
|
5718
5718
|
return /* @__PURE__ */ i.jsxs(
|
|
5719
5719
|
"div",
|
|
5720
5720
|
{
|
|
5721
|
-
className:
|
|
5721
|
+
className: I("flex flex-col", n),
|
|
5722
5722
|
style: l ? { width: l } : void 0,
|
|
5723
5723
|
children: [
|
|
5724
|
-
/* @__PURE__ */ i.jsx("label", { className:
|
|
5725
|
-
a && /* @__PURE__ */ i.jsx("label", { className:
|
|
5724
|
+
/* @__PURE__ */ i.jsx("label", { className: I("sr-only pb-2", Yr[o]), children: r }),
|
|
5725
|
+
a && /* @__PURE__ */ i.jsx("label", { className: I("pb-2", Yr[o]), children: r }),
|
|
5726
5726
|
/* @__PURE__ */ i.jsx("div", { className: "flex items-center flex-nowrap", children: t.map((u, f) => {
|
|
5727
5727
|
const {
|
|
5728
|
-
width:
|
|
5728
|
+
width: m,
|
|
5729
5729
|
className: p,
|
|
5730
5730
|
options: b,
|
|
5731
5731
|
loadOptions: E,
|
|
@@ -5733,10 +5733,10 @@ function vo({
|
|
|
5733
5733
|
} = u, S = Array.isArray(b) || typeof E == "function";
|
|
5734
5734
|
let v = "rounded-lg";
|
|
5735
5735
|
!s && c > 1 && (f === 0 ? v = "rounded-l-lg rounded-r-none" : f === c - 1 ? v = "rounded-r-lg rounded-l-none" : v = "rounded-none");
|
|
5736
|
-
const y =
|
|
5736
|
+
const y = I(
|
|
5737
5737
|
"inline-flex items-center flex-shrink-0 overflow-hidden",
|
|
5738
|
-
typeof
|
|
5739
|
-
), j = typeof
|
|
5738
|
+
typeof m == "string" && m.startsWith("w-") ? m : void 0
|
|
5739
|
+
), j = typeof m == "string" && !m.startsWith("w-") ? { width: m } : void 0, O = I(p, v);
|
|
5740
5740
|
return /* @__PURE__ */ i.jsxs("div", { className: y, style: j, children: [
|
|
5741
5741
|
S ? /* @__PURE__ */ i.jsx(
|
|
5742
5742
|
Ot,
|
|
@@ -5791,8 +5791,8 @@ function ko({
|
|
|
5791
5791
|
control: e,
|
|
5792
5792
|
rules: n,
|
|
5793
5793
|
defaultValue: a,
|
|
5794
|
-
render: ({ field:
|
|
5795
|
-
const { value: b, onChange: E } =
|
|
5794
|
+
render: ({ field: m, fieldState: p }) => {
|
|
5795
|
+
const { value: b, onChange: E } = m;
|
|
5796
5796
|
p.error;
|
|
5797
5797
|
const k = (v) => o ? Array.isArray(b) && b.includes(v) : b === v, S = (v) => {
|
|
5798
5798
|
if (o) {
|
|
@@ -5801,11 +5801,11 @@ function ko({
|
|
|
5801
5801
|
} else
|
|
5802
5802
|
E(v);
|
|
5803
5803
|
};
|
|
5804
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5804
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full", u), children: [
|
|
5805
5805
|
/* @__PURE__ */ i.jsx(
|
|
5806
5806
|
"label",
|
|
5807
5807
|
{
|
|
5808
|
-
className:
|
|
5808
|
+
className: I(
|
|
5809
5809
|
"sr-only pb-2 text-[var(--color-ds-text-primary)]",
|
|
5810
5810
|
Xr[l]
|
|
5811
5811
|
),
|
|
@@ -5815,7 +5815,7 @@ function ko({
|
|
|
5815
5815
|
f && /* @__PURE__ */ i.jsx(
|
|
5816
5816
|
"label",
|
|
5817
5817
|
{
|
|
5818
|
-
className:
|
|
5818
|
+
className: I(
|
|
5819
5819
|
"block pb-2 text-[var(--color-ds-text-primary)]",
|
|
5820
5820
|
Xr[l]
|
|
5821
5821
|
),
|
|
@@ -5825,7 +5825,7 @@ function ko({
|
|
|
5825
5825
|
/* @__PURE__ */ i.jsx(
|
|
5826
5826
|
"div",
|
|
5827
5827
|
{
|
|
5828
|
-
className:
|
|
5828
|
+
className: I(
|
|
5829
5829
|
c ? "flex flex-col gap-2" : "flex flex-wrap gap-4"
|
|
5830
5830
|
),
|
|
5831
5831
|
children: t.map((v) => /* @__PURE__ */ i.jsxs(
|
|
@@ -5841,7 +5841,7 @@ function ko({
|
|
|
5841
5841
|
value: v.value,
|
|
5842
5842
|
checked: k(v.value),
|
|
5843
5843
|
onChange: () => S(v.value),
|
|
5844
|
-
className:
|
|
5844
|
+
className: I(
|
|
5845
5845
|
wo[l],
|
|
5846
5846
|
"text-[var(--color-ds-button-primary-bg)]",
|
|
5847
5847
|
"border-[var(--color-ds-border-default)]"
|
|
@@ -5896,7 +5896,7 @@ const Eo = {
|
|
|
5896
5896
|
}, [r, s, n]), /* @__PURE__ */ i.jsxs(
|
|
5897
5897
|
"div",
|
|
5898
5898
|
{
|
|
5899
|
-
className:
|
|
5899
|
+
className: I(
|
|
5900
5900
|
"w-80 max-w-full border-l-4 rounded shadow-md p-4 mb-2 flex justify-between items-start",
|
|
5901
5901
|
Eo[e]
|
|
5902
5902
|
),
|
|
@@ -6007,7 +6007,7 @@ function es(r, t, e) {
|
|
|
6007
6007
|
if (!o.inner) throw o;
|
|
6008
6008
|
return { values: {}, errors: Oo((l = o, c = !a.shouldUseNativeValidation && a.criteriaMode === "all", (l.inner || []).reduce(function(u, f) {
|
|
6009
6009
|
if (u[f.path] || (u[f.path] = { message: f.message, type: f.type }), c) {
|
|
6010
|
-
var
|
|
6010
|
+
var m = u[f.path].types, p = m && m[f.type];
|
|
6011
6011
|
u[f.path] = Ms(f.path, c, u, f.type, p ? [].concat(p, f.message) : f.message);
|
|
6012
6012
|
}
|
|
6013
6013
|
return u;
|
|
@@ -6036,27 +6036,27 @@ function Ro() {
|
|
|
6036
6036
|
var t = /[^.^\]^[]+|(?=\[\]|\.\.)/g, e = /^\d+$/, s = /^\d/, n = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, o = 512, l = new r(o), c = new r(o), u = new r(o);
|
|
6037
6037
|
Ut = {
|
|
6038
6038
|
Cache: r,
|
|
6039
|
-
split:
|
|
6039
|
+
split: m,
|
|
6040
6040
|
normalizePath: f,
|
|
6041
6041
|
setter: function(v) {
|
|
6042
6042
|
var y = f(v);
|
|
6043
|
-
return c.get(v) || c.set(v, function(O,
|
|
6044
|
-
for (var U = 0, Y = y.length,
|
|
6043
|
+
return c.get(v) || c.set(v, function(O, F) {
|
|
6044
|
+
for (var U = 0, Y = y.length, _ = O; U < Y - 1; ) {
|
|
6045
6045
|
var V = y[U];
|
|
6046
6046
|
if (V === "__proto__" || V === "constructor" || V === "prototype")
|
|
6047
6047
|
return O;
|
|
6048
|
-
|
|
6048
|
+
_ = _[y[U++]];
|
|
6049
6049
|
}
|
|
6050
|
-
|
|
6050
|
+
_[y[U]] = F;
|
|
6051
6051
|
});
|
|
6052
6052
|
},
|
|
6053
6053
|
getter: function(v, y) {
|
|
6054
6054
|
var j = f(v);
|
|
6055
|
-
return u.get(v) || u.set(v, function(
|
|
6055
|
+
return u.get(v) || u.set(v, function(F) {
|
|
6056
6056
|
for (var U = 0, Y = j.length; U < Y; )
|
|
6057
|
-
if (
|
|
6057
|
+
if (F != null || !y) F = F[j[U++]];
|
|
6058
6058
|
else return;
|
|
6059
|
-
return
|
|
6059
|
+
return F;
|
|
6060
6060
|
});
|
|
6061
6061
|
},
|
|
6062
6062
|
join: function(v) {
|
|
@@ -6065,24 +6065,24 @@ function Ro() {
|
|
|
6065
6065
|
}, "");
|
|
6066
6066
|
},
|
|
6067
6067
|
forEach: function(v, y, j) {
|
|
6068
|
-
p(Array.isArray(v) ? v :
|
|
6068
|
+
p(Array.isArray(v) ? v : m(v), y, j);
|
|
6069
6069
|
}
|
|
6070
6070
|
};
|
|
6071
6071
|
function f(v) {
|
|
6072
6072
|
return l.get(v) || l.set(
|
|
6073
6073
|
v,
|
|
6074
|
-
|
|
6074
|
+
m(v).map(function(y) {
|
|
6075
6075
|
return y.replace(a, "$2");
|
|
6076
6076
|
})
|
|
6077
6077
|
);
|
|
6078
6078
|
}
|
|
6079
|
-
function
|
|
6079
|
+
function m(v) {
|
|
6080
6080
|
return v.match(t) || [""];
|
|
6081
6081
|
}
|
|
6082
6082
|
function p(v, y, j) {
|
|
6083
|
-
var O = v.length,
|
|
6083
|
+
var O = v.length, F, U, Y, _;
|
|
6084
6084
|
for (U = 0; U < O; U++)
|
|
6085
|
-
|
|
6085
|
+
F = v[U], F && (S(F) && (F = '"' + F + '"'), _ = b(F), Y = !_ && /^\d+$/.test(F), y.call(j, F, _, Y, U, v));
|
|
6086
6086
|
}
|
|
6087
6087
|
function b(v) {
|
|
6088
6088
|
return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
|
|
@@ -6102,8 +6102,8 @@ var Ye = Ro(), Bt, rs;
|
|
|
6102
6102
|
function Vo() {
|
|
6103
6103
|
if (rs) return Bt;
|
|
6104
6104
|
rs = 1;
|
|
6105
|
-
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, t = (f) => f.match(r) || [], e = (f) => f[0].toUpperCase() + f.slice(1), s = (f,
|
|
6106
|
-
(
|
|
6105
|
+
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, t = (f) => f.match(r) || [], e = (f) => f[0].toUpperCase() + f.slice(1), s = (f, m) => t(f).join(m).toLowerCase(), n = (f) => t(f).reduce(
|
|
6106
|
+
(m, p) => `${m}${m ? p[0].toUpperCase() + p.slice(1).toLowerCase() : p.toLowerCase()}`,
|
|
6107
6107
|
""
|
|
6108
6108
|
);
|
|
6109
6109
|
return Bt = {
|
|
@@ -6124,9 +6124,9 @@ function $o() {
|
|
|
6124
6124
|
return r(t(n), n);
|
|
6125
6125
|
}, jt.exports.array = r;
|
|
6126
6126
|
function r(n, a) {
|
|
6127
|
-
var o = n.length, l = new Array(o), c = {}, u = o, f = e(a),
|
|
6127
|
+
var o = n.length, l = new Array(o), c = {}, u = o, f = e(a), m = s(n);
|
|
6128
6128
|
for (a.forEach(function(b) {
|
|
6129
|
-
if (!
|
|
6129
|
+
if (!m.has(b[0]) || !m.has(b[1]))
|
|
6130
6130
|
throw new Error("Unknown node. There is an unknown node in the supplied edges.");
|
|
6131
6131
|
}); u--; )
|
|
6132
6132
|
c[u] || p(n[u], u, /* @__PURE__ */ new Set());
|
|
@@ -6141,7 +6141,7 @@ function $o() {
|
|
|
6141
6141
|
}
|
|
6142
6142
|
throw new Error("Cyclic dependency" + S);
|
|
6143
6143
|
}
|
|
6144
|
-
if (!
|
|
6144
|
+
if (!m.has(b))
|
|
6145
6145
|
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(b));
|
|
6146
6146
|
if (!c[E]) {
|
|
6147
6147
|
c[E] = !0;
|
|
@@ -6150,7 +6150,7 @@ function $o() {
|
|
|
6150
6150
|
k.add(b);
|
|
6151
6151
|
do {
|
|
6152
6152
|
var y = v[--E];
|
|
6153
|
-
p(y,
|
|
6153
|
+
p(y, m.get(y), k);
|
|
6154
6154
|
} while (E);
|
|
6155
6155
|
k.delete(b);
|
|
6156
6156
|
}
|
|
@@ -6400,7 +6400,7 @@ function et(r) {
|
|
|
6400
6400
|
const {
|
|
6401
6401
|
name: u,
|
|
6402
6402
|
test: f,
|
|
6403
|
-
params:
|
|
6403
|
+
params: m,
|
|
6404
6404
|
message: p,
|
|
6405
6405
|
skipAbsent: b
|
|
6406
6406
|
} = r;
|
|
@@ -6421,13 +6421,13 @@ function et(r) {
|
|
|
6421
6421
|
path: M.path || s,
|
|
6422
6422
|
spec: o.spec,
|
|
6423
6423
|
disableStackTrace: M.disableStackTrace || v
|
|
6424
|
-
},
|
|
6425
|
-
for (const
|
|
6426
|
-
const
|
|
6427
|
-
return
|
|
6424
|
+
}, m, M.params);
|
|
6425
|
+
for (const J of Object.keys(R)) R[J] = y(R[J]);
|
|
6426
|
+
const G = new je(je.formatError(M.message || p, R), e, R.path, M.type || u, R.disableStackTrace);
|
|
6427
|
+
return G.params = R, G;
|
|
6428
6428
|
}
|
|
6429
6429
|
const O = S ? l : c;
|
|
6430
|
-
let
|
|
6430
|
+
let F = {
|
|
6431
6431
|
path: s,
|
|
6432
6432
|
parent: E,
|
|
6433
6433
|
type: u,
|
|
@@ -6448,9 +6448,9 @@ function et(r) {
|
|
|
6448
6448
|
let V;
|
|
6449
6449
|
try {
|
|
6450
6450
|
var L;
|
|
6451
|
-
if (V = f.call(
|
|
6451
|
+
if (V = f.call(F, e, F), typeof ((L = V) == null ? void 0 : L.then) == "function") {
|
|
6452
6452
|
if (n.sync)
|
|
6453
|
-
throw new Error(`Validation test of type: "${
|
|
6453
|
+
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`);
|
|
6454
6454
|
return Promise.resolve(V).then(U, Y);
|
|
6455
6455
|
}
|
|
6456
6456
|
} catch (M) {
|
|
@@ -6470,12 +6470,12 @@ function Yo(r, t, e, s = e) {
|
|
|
6470
6470
|
parent: n,
|
|
6471
6471
|
value: e
|
|
6472
6472
|
});
|
|
6473
|
-
let
|
|
6474
|
-
if (r.innerType ||
|
|
6475
|
-
if (
|
|
6473
|
+
let m = r.type === "tuple", p = u ? parseInt(f, 10) : 0;
|
|
6474
|
+
if (r.innerType || m) {
|
|
6475
|
+
if (m && !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]"`);
|
|
6476
6476
|
if (e && p >= e.length)
|
|
6477
6477
|
throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);
|
|
6478
|
-
n = e, e = e && e[p], r =
|
|
6478
|
+
n = e, e = e && e[p], r = m ? r.spec.types[p] : r.innerType;
|
|
6479
6479
|
}
|
|
6480
6480
|
if (!u) {
|
|
6481
6481
|
if (!r.fields || !r.fields[f]) throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${r.type}")`);
|
|
@@ -6676,10 +6676,10 @@ attempted value: ${o}
|
|
|
6676
6676
|
options: u
|
|
6677
6677
|
} = t, f = (k) => {
|
|
6678
6678
|
n || (n = !0, e(k, o));
|
|
6679
|
-
},
|
|
6679
|
+
}, m = (k) => {
|
|
6680
6680
|
n || (n = !0, s(k, o));
|
|
6681
6681
|
}, p = a.length, b = [];
|
|
6682
|
-
if (!p) return
|
|
6682
|
+
if (!p) return m([]);
|
|
6683
6683
|
let E = {
|
|
6684
6684
|
value: o,
|
|
6685
6685
|
originalValue: l,
|
|
@@ -6690,7 +6690,7 @@ attempted value: ${o}
|
|
|
6690
6690
|
for (let k = 0; k < a.length; k++) {
|
|
6691
6691
|
const S = a[k];
|
|
6692
6692
|
S(E, f, function(y) {
|
|
6693
|
-
y && (Array.isArray(y) ? b.push(...y) : b.push(y)), --p <= 0 &&
|
|
6693
|
+
y && (Array.isArray(y) ? b.push(...y) : b.push(y)), --p <= 0 && m(b);
|
|
6694
6694
|
});
|
|
6695
6695
|
}
|
|
6696
6696
|
}
|
|
@@ -6722,7 +6722,7 @@ attempted value: ${o}
|
|
|
6722
6722
|
[c ? "index" : "key"]: l,
|
|
6723
6723
|
path: c || l.includes(".") ? `${n || ""}[${c ? l : `"${l}"`}]` : (n ? `${n}.` : "") + t
|
|
6724
6724
|
});
|
|
6725
|
-
return (
|
|
6725
|
+
return (m, p, b) => this.resolve(f)._validate(u, f, p, b);
|
|
6726
6726
|
}
|
|
6727
6727
|
validate(t, e) {
|
|
6728
6728
|
var s;
|
|
@@ -6943,7 +6943,7 @@ attempted value: ${o}
|
|
|
6943
6943
|
tests: e.tests.map((c) => ({
|
|
6944
6944
|
name: c.OPTIONS.name,
|
|
6945
6945
|
params: c.OPTIONS.params
|
|
6946
|
-
})).filter((c, u, f) => f.findIndex((
|
|
6946
|
+
})).filter((c, u, f) => f.findIndex((m) => m.name === c.name) === u)
|
|
6947
6947
|
};
|
|
6948
6948
|
}
|
|
6949
6949
|
}
|
|
@@ -7436,30 +7436,30 @@ class nn extends Se {
|
|
|
7436
7436
|
let n = super._cast(t, e);
|
|
7437
7437
|
if (n === void 0) return this.getDefault(e);
|
|
7438
7438
|
if (!this._typeCheck(n)) return n;
|
|
7439
|
-
let a = this.fields, o = (s = e.stripUnknown) != null ? s : this.spec.noUnknown, l = [].concat(this._nodes, Object.keys(n).filter((
|
|
7439
|
+
let a = this.fields, o = (s = e.stripUnknown) != null ? s : this.spec.noUnknown, l = [].concat(this._nodes, Object.keys(n).filter((m) => !this._nodes.includes(m))), c = {}, u = Object.assign({}, e, {
|
|
7440
7440
|
parent: c,
|
|
7441
7441
|
__validating: e.__validating || !1
|
|
7442
7442
|
}), f = !1;
|
|
7443
|
-
for (const
|
|
7444
|
-
let p = a[
|
|
7443
|
+
for (const m of l) {
|
|
7444
|
+
let p = a[m], b = m in n;
|
|
7445
7445
|
if (p) {
|
|
7446
|
-
let E, k = n[
|
|
7447
|
-
u.path = (e.path ? `${e.path}.` : "") +
|
|
7446
|
+
let E, k = n[m];
|
|
7447
|
+
u.path = (e.path ? `${e.path}.` : "") + m, p = p.resolve({
|
|
7448
7448
|
value: k,
|
|
7449
7449
|
context: e.context,
|
|
7450
7450
|
parent: c
|
|
7451
7451
|
});
|
|
7452
7452
|
let S = p instanceof Se ? p.spec : void 0, v = S == null ? void 0 : S.strict;
|
|
7453
7453
|
if (S != null && S.strip) {
|
|
7454
|
-
f = f ||
|
|
7454
|
+
f = f || m in n;
|
|
7455
7455
|
continue;
|
|
7456
7456
|
}
|
|
7457
7457
|
E = !e.__validating || !v ? (
|
|
7458
7458
|
// TODO: use _cast, this is double resolving
|
|
7459
|
-
p.cast(n[
|
|
7460
|
-
) : n[
|
|
7461
|
-
} else b && !o && (c[
|
|
7462
|
-
(b !==
|
|
7459
|
+
p.cast(n[m], u)
|
|
7460
|
+
) : n[m], E !== void 0 && (c[m] = E);
|
|
7461
|
+
} else b && !o && (c[m] = n[m]);
|
|
7462
|
+
(b !== m in c || c[m] !== n[m]) && (f = !0);
|
|
7463
7463
|
}
|
|
7464
7464
|
return f ? c : n;
|
|
7465
7465
|
}
|
|
@@ -7479,11 +7479,11 @@ class nn extends Se {
|
|
|
7479
7479
|
}
|
|
7480
7480
|
o = o || u;
|
|
7481
7481
|
let f = [];
|
|
7482
|
-
for (let
|
|
7483
|
-
let p = this.fields[
|
|
7482
|
+
for (let m of this._nodes) {
|
|
7483
|
+
let p = this.fields[m];
|
|
7484
7484
|
!p || Je.isRef(p) || f.push(p.asNestedTest({
|
|
7485
7485
|
options: e,
|
|
7486
|
-
key:
|
|
7486
|
+
key: m,
|
|
7487
7487
|
parent: u,
|
|
7488
7488
|
parentPath: e.path,
|
|
7489
7489
|
originalParent: o
|
|
@@ -7494,8 +7494,8 @@ class nn extends Se {
|
|
|
7494
7494
|
value: u,
|
|
7495
7495
|
originalValue: o,
|
|
7496
7496
|
options: e
|
|
7497
|
-
}, s, (
|
|
7498
|
-
n(
|
|
7497
|
+
}, s, (m) => {
|
|
7498
|
+
n(m.sort(this._sortErrors).concat(c), u);
|
|
7499
7499
|
});
|
|
7500
7500
|
});
|
|
7501
7501
|
}
|
|
@@ -7659,7 +7659,7 @@ function mi({
|
|
|
7659
7659
|
return es(t);
|
|
7660
7660
|
const e = {};
|
|
7661
7661
|
r.forEach((n) => {
|
|
7662
|
-
var o, l, c, u, f,
|
|
7662
|
+
var o, l, c, u, f, m, p;
|
|
7663
7663
|
let a;
|
|
7664
7664
|
switch (n.type) {
|
|
7665
7665
|
case "text":
|
|
@@ -7688,7 +7688,7 @@ function mi({
|
|
|
7688
7688
|
break;
|
|
7689
7689
|
case "select":
|
|
7690
7690
|
case "optionGroup":
|
|
7691
|
-
if (a = tr(), (
|
|
7691
|
+
if (a = tr(), (m = n.validation) != null && m.required) {
|
|
7692
7692
|
const b = typeof n.validation.required == "string" ? n.validation.required : "Campo obligatorio";
|
|
7693
7693
|
a = a.required(b);
|
|
7694
7694
|
}
|
|
@@ -7766,7 +7766,7 @@ function an({
|
|
|
7766
7766
|
hasError: c = !1,
|
|
7767
7767
|
errorMessage: u = "",
|
|
7768
7768
|
maxLength: f,
|
|
7769
|
-
showCounter:
|
|
7769
|
+
showCounter: m = !1,
|
|
7770
7770
|
className: p,
|
|
7771
7771
|
...b
|
|
7772
7772
|
}) {
|
|
@@ -7780,7 +7780,7 @@ function an({
|
|
|
7780
7780
|
rules: e,
|
|
7781
7781
|
defaultValue: s || "",
|
|
7782
7782
|
render: ({ field: j, fieldState: O }) => {
|
|
7783
|
-
var
|
|
7783
|
+
var F;
|
|
7784
7784
|
return /* @__PURE__ */ i.jsx(
|
|
7785
7785
|
an,
|
|
7786
7786
|
{
|
|
@@ -7790,9 +7790,9 @@ function an({
|
|
|
7790
7790
|
label: o,
|
|
7791
7791
|
labelHidden: l,
|
|
7792
7792
|
hasError: !!O.error,
|
|
7793
|
-
errorMessage: ((
|
|
7793
|
+
errorMessage: ((F = O.error) == null ? void 0 : F.message) || "",
|
|
7794
7794
|
maxLength: f,
|
|
7795
|
-
showCounter:
|
|
7795
|
+
showCounter: m,
|
|
7796
7796
|
className: p,
|
|
7797
7797
|
value: j.value,
|
|
7798
7798
|
onChange: j.onChange
|
|
@@ -7808,12 +7808,12 @@ function an({
|
|
|
7808
7808
|
var O;
|
|
7809
7809
|
f !== void 0 && j.target.value.length > f || (v(j.target.value), (O = b.onChange) == null || O.call(b, j));
|
|
7810
7810
|
};
|
|
7811
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
7811
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", p), style: { width: a }, children: [
|
|
7812
7812
|
o && /* @__PURE__ */ i.jsx(
|
|
7813
7813
|
"label",
|
|
7814
7814
|
{
|
|
7815
7815
|
htmlFor: k,
|
|
7816
|
-
className:
|
|
7816
|
+
className: I(
|
|
7817
7817
|
"pb-2 text-[var(--color-ds-text-primary)]",
|
|
7818
7818
|
cs[n],
|
|
7819
7819
|
l && "sr-only"
|
|
@@ -7825,7 +7825,7 @@ function an({
|
|
|
7825
7825
|
"textarea",
|
|
7826
7826
|
{
|
|
7827
7827
|
id: k,
|
|
7828
|
-
className:
|
|
7828
|
+
className: I(
|
|
7829
7829
|
"box-border bg-[var(--color-ds-background-page)] w-full resize vertical rounded-lg border outline-none transition font-[var(--font-primary)]",
|
|
7830
7830
|
cs[n],
|
|
7831
7831
|
bi[n],
|
|
@@ -7840,7 +7840,7 @@ function an({
|
|
|
7840
7840
|
),
|
|
7841
7841
|
/* @__PURE__ */ i.jsxs("div", { className: "flex justify-between pt-1 min-h-[18px]", children: [
|
|
7842
7842
|
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: " " }),
|
|
7843
|
-
|
|
7843
|
+
m && f !== void 0 && /* @__PURE__ */ i.jsxs("span", { className: "text-xs text-[var(--color-ds-text-secondary)]", children: [
|
|
7844
7844
|
S.length,
|
|
7845
7845
|
"/",
|
|
7846
7846
|
f
|
|
@@ -7866,14 +7866,14 @@ function vi({
|
|
|
7866
7866
|
hasError: u = !1,
|
|
7867
7867
|
errorMessage: f = ""
|
|
7868
7868
|
}) {
|
|
7869
|
-
return /* @__PURE__ */ i.jsx("div", { className:
|
|
7869
|
+
return /* @__PURE__ */ i.jsx("div", { className: I("flex flex-col", c), children: /* @__PURE__ */ i.jsx(
|
|
7870
7870
|
Ae,
|
|
7871
7871
|
{
|
|
7872
7872
|
name: t,
|
|
7873
7873
|
control: r,
|
|
7874
7874
|
rules: e,
|
|
7875
7875
|
defaultValue: s,
|
|
7876
|
-
render: ({ field:
|
|
7876
|
+
render: ({ field: m, fieldState: p }) => {
|
|
7877
7877
|
const b = p.error;
|
|
7878
7878
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
7879
7879
|
/* @__PURE__ */ i.jsx(
|
|
@@ -7881,21 +7881,21 @@ function vi({
|
|
|
7881
7881
|
{
|
|
7882
7882
|
id: t,
|
|
7883
7883
|
type: "checkbox",
|
|
7884
|
-
className:
|
|
7884
|
+
className: I(
|
|
7885
7885
|
yi[l],
|
|
7886
7886
|
"text-[var(--color-ds-button-primary-bg)]",
|
|
7887
7887
|
"border-[var(--color-ds-border-default)]",
|
|
7888
7888
|
o && "opacity-50 cursor-not-allowed"
|
|
7889
7889
|
),
|
|
7890
|
-
checked:
|
|
7891
|
-
onChange: (E) =>
|
|
7890
|
+
checked: m.value,
|
|
7891
|
+
onChange: (E) => m.onChange(E.target.checked),
|
|
7892
7892
|
disabled: o
|
|
7893
7893
|
}
|
|
7894
7894
|
),
|
|
7895
7895
|
/* @__PURE__ */ i.jsx(
|
|
7896
7896
|
"span",
|
|
7897
7897
|
{
|
|
7898
|
-
className:
|
|
7898
|
+
className: I(
|
|
7899
7899
|
"text-[var(--color-ds-text-primary)] text-ds-md",
|
|
7900
7900
|
o && "text-[var(--color-ds-text-secondary)]"
|
|
7901
7901
|
),
|
|
@@ -7918,7 +7918,7 @@ function wi({
|
|
|
7918
7918
|
width: o = "100%",
|
|
7919
7919
|
disabled: l = !1
|
|
7920
7920
|
}) {
|
|
7921
|
-
const { watch: c, getValues: u, setValue: f } = ht(),
|
|
7921
|
+
const { watch: c, getValues: u, setValue: f } = ht(), m = dr({ control: t, name: r }), [p, b] = oe([]), [E, k] = oe(!1), [S, v] = oe(!1), [y, j] = oe(""), O = Fe(null), F = _e(() => {
|
|
7922
7922
|
const V = /* @__PURE__ */ new Map();
|
|
7923
7923
|
for (const L of p) V.set(String(L.value), L.label ?? "");
|
|
7924
7924
|
return V;
|
|
@@ -7940,12 +7940,12 @@ function wi({
|
|
|
7940
7940
|
if (S)
|
|
7941
7941
|
return document.addEventListener("mousedown", V), () => document.removeEventListener("mousedown", V);
|
|
7942
7942
|
}, [S]), fe(() => {
|
|
7943
|
-
const V =
|
|
7943
|
+
const V = m ? String(m) : "";
|
|
7944
7944
|
if (!V) {
|
|
7945
7945
|
j("");
|
|
7946
7946
|
return;
|
|
7947
7947
|
}
|
|
7948
|
-
const L =
|
|
7948
|
+
const L = F.get(V);
|
|
7949
7949
|
if (L) {
|
|
7950
7950
|
j(L);
|
|
7951
7951
|
return;
|
|
@@ -7964,8 +7964,8 @@ function wi({
|
|
|
7964
7964
|
})(), () => {
|
|
7965
7965
|
M = !0;
|
|
7966
7966
|
};
|
|
7967
|
-
}, [
|
|
7968
|
-
const Y = a === "sm" ? "text-ds-sm" : a === "md" ? "text-ds-md" : "text-ds-lg",
|
|
7967
|
+
}, [m, F, s]);
|
|
7968
|
+
const Y = a === "sm" ? "text-ds-sm" : a === "md" ? "text-ds-md" : "text-ds-lg", _ = a === "sm" ? "h-6" : a === "md" ? "h-10" : "h-12";
|
|
7969
7969
|
return /* @__PURE__ */ i.jsx(
|
|
7970
7970
|
Ae,
|
|
7971
7971
|
{
|
|
@@ -7984,8 +7984,8 @@ function wi({
|
|
|
7984
7984
|
width: "100%",
|
|
7985
7985
|
value: y,
|
|
7986
7986
|
onChange: (R) => {
|
|
7987
|
-
const
|
|
7988
|
-
j(
|
|
7987
|
+
const G = R.target.value;
|
|
7988
|
+
j(G), f(r, "", { shouldDirty: !0 });
|
|
7989
7989
|
},
|
|
7990
7990
|
disabled: l,
|
|
7991
7991
|
hasError: L.invalid,
|
|
@@ -8026,7 +8026,7 @@ function wi({
|
|
|
8026
8026
|
children: p.map((R) => /* @__PURE__ */ i.jsx(
|
|
8027
8027
|
"li",
|
|
8028
8028
|
{
|
|
8029
|
-
className: `px-2 ${
|
|
8029
|
+
className: `px-2 ${_} flex items-center cursor-pointer
|
|
8030
8030
|
text-[var(--color-ds-text-primary)]
|
|
8031
8031
|
hover:bg-[var(--color-ds-background-surface)]`,
|
|
8032
8032
|
onClick: () => {
|
|
@@ -8054,7 +8054,7 @@ function $i({ schema: r }) {
|
|
|
8054
8054
|
defaultValues: l,
|
|
8055
8055
|
loadDefaultValues: c,
|
|
8056
8056
|
validationSchema: u
|
|
8057
|
-
} = r, { show: f } = Ao(), { t:
|
|
8057
|
+
} = r, { show: f } = Ao(), { t: m } = hr(), p = mi({
|
|
8058
8058
|
fields: e,
|
|
8059
8059
|
explicitSchema: u
|
|
8060
8060
|
}), b = Wa({
|
|
@@ -8071,85 +8071,86 @@ function $i({ schema: r }) {
|
|
|
8071
8071
|
watch: v,
|
|
8072
8072
|
handleSubmit: y,
|
|
8073
8073
|
formState: { errors: j, isSubmitting: O }
|
|
8074
|
-
} = b, [
|
|
8074
|
+
} = b, [F, U] = oe(!1);
|
|
8075
8075
|
fe(() => {
|
|
8076
|
-
c && (U(!0), c().then((
|
|
8076
|
+
c && (U(!0), c().then((H) => S(H)).finally(() => U(!1)));
|
|
8077
8077
|
}, [c, S]);
|
|
8078
|
-
const { loadingCount: Y, optionsMap:
|
|
8079
|
-
const
|
|
8080
|
-
return t.forEach((g,
|
|
8081
|
-
g.type === "tabs" && (
|
|
8082
|
-
}),
|
|
8083
|
-
}, [t]), [R,
|
|
8084
|
-
(
|
|
8085
|
-
if (
|
|
8086
|
-
const g = b.getValues(), { watchField:
|
|
8087
|
-
return typeof
|
|
8078
|
+
const { loadingCount: Y, optionsMap: _ } = xi(e), V = pi(e), L = gi(e, k), M = _e(() => {
|
|
8079
|
+
const H = {};
|
|
8080
|
+
return t.forEach((g, X) => {
|
|
8081
|
+
g.type === "tabs" && (H[X] = g.tabs[0].key);
|
|
8082
|
+
}), H;
|
|
8083
|
+
}, [t]), [R, G] = oe(M), J = Zt(
|
|
8084
|
+
(H) => {
|
|
8085
|
+
if (F) return !1;
|
|
8086
|
+
const g = b.getValues(), { watchField: X, watchValue: h } = H;
|
|
8087
|
+
return typeof h == "function" ? h(
|
|
8088
8088
|
g
|
|
8089
|
-
) : g[
|
|
8089
|
+
) : g[X] === h;
|
|
8090
8090
|
},
|
|
8091
|
-
[b,
|
|
8091
|
+
[b, F]
|
|
8092
8092
|
), K = _e(
|
|
8093
|
-
() => e.filter((
|
|
8094
|
-
name:
|
|
8095
|
-
rule:
|
|
8093
|
+
() => e.filter((H) => "clearWhen" in H && H.clearWhen).map((H) => ({
|
|
8094
|
+
name: H.name,
|
|
8095
|
+
rule: H.clearWhen
|
|
8096
8096
|
})),
|
|
8097
8097
|
[e]
|
|
8098
8098
|
);
|
|
8099
8099
|
fe(() => {
|
|
8100
8100
|
if (!K.length) return;
|
|
8101
|
-
const
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8101
|
+
const H = (X) => {
|
|
8102
|
+
K.forEach(({ name: h, rule: N }) => {
|
|
8103
|
+
if (!(N.watchField in X) || X[N.watchField] === void 0)
|
|
8104
|
+
return;
|
|
8105
|
+
if (typeof N.watchValue == "function" ? N.watchValue(X) : X[N.watchField] === N.watchValue) {
|
|
8106
|
+
const B = N.clearTo ?? "";
|
|
8107
|
+
X[h] !== B && b.setValue(h, B, { shouldDirty: !0, shouldValidate: !0 });
|
|
8107
8108
|
}
|
|
8108
8109
|
});
|
|
8109
|
-
}
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8110
|
+
}, g = b.watch((X, h) => {
|
|
8111
|
+
if (!(h != null && h.name) || !K.some(({ rule: B }) => B.watchField === h.name)) return;
|
|
8112
|
+
const $ = b.getValues();
|
|
8113
|
+
H($);
|
|
8113
8114
|
});
|
|
8114
8115
|
return () => {
|
|
8115
|
-
var
|
|
8116
|
-
return (
|
|
8116
|
+
var X;
|
|
8117
|
+
return (X = g == null ? void 0 : g.unsubscribe) == null ? void 0 : X.call(g);
|
|
8117
8118
|
};
|
|
8118
8119
|
}, [b, K]);
|
|
8119
8120
|
const re = Zt(
|
|
8120
|
-
(
|
|
8121
|
-
var
|
|
8121
|
+
(H) => {
|
|
8122
|
+
var B, ee, le, xe;
|
|
8122
8123
|
let g;
|
|
8123
|
-
if (typeof
|
|
8124
|
-
if (g = V[
|
|
8124
|
+
if (typeof H == "string") {
|
|
8125
|
+
if (g = V[H], !g) return null;
|
|
8125
8126
|
} else
|
|
8126
|
-
g =
|
|
8127
|
-
if ("visibleWhen" in g && g.visibleWhen && !
|
|
8127
|
+
g = H;
|
|
8128
|
+
if ("visibleWhen" in g && g.visibleWhen && !J(g.visibleWhen))
|
|
8128
8129
|
return null;
|
|
8129
|
-
let
|
|
8130
|
-
if ("disabledWhen" in g && g.disabledWhen &&
|
|
8131
|
-
const
|
|
8130
|
+
let X = !!g.disabled;
|
|
8131
|
+
if ("disabledWhen" in g && g.disabledWhen && J(g.disabledWhen) && (X = !0), !X && "name" in g && g.name && L[g.name] && (X = !0), g.type === "search") {
|
|
8132
|
+
const W = (te) => g.searchFn(te, E);
|
|
8132
8133
|
return /* @__PURE__ */ i.jsx(
|
|
8133
8134
|
wi,
|
|
8134
8135
|
{
|
|
8135
8136
|
name: g.name,
|
|
8136
8137
|
control: k,
|
|
8137
|
-
searchFn:
|
|
8138
|
+
searchFn: W,
|
|
8138
8139
|
label: g.label,
|
|
8139
8140
|
size: g.size,
|
|
8140
8141
|
width: g.width,
|
|
8141
|
-
disabled:
|
|
8142
|
+
disabled: X || O
|
|
8142
8143
|
},
|
|
8143
8144
|
g.name
|
|
8144
8145
|
);
|
|
8145
8146
|
}
|
|
8146
8147
|
if (g.type === "inputGroup") {
|
|
8147
|
-
const
|
|
8148
|
+
const W = g, te = W.inputs.map((ce) => {
|
|
8148
8149
|
var pt;
|
|
8149
8150
|
const se = typeof ce == "string" ? V[ce] : ce;
|
|
8150
8151
|
if (!se) return null;
|
|
8151
8152
|
let we = !!se.disabled;
|
|
8152
|
-
se.disabledWhen &&
|
|
8153
|
+
se.disabledWhen && J(se.disabledWhen) && (we = !0), !we && L[se.name] && (we = !0);
|
|
8153
8154
|
const Oe = {
|
|
8154
8155
|
name: se.name,
|
|
8155
8156
|
control: k,
|
|
@@ -8161,58 +8162,58 @@ function $i({ schema: r }) {
|
|
|
8161
8162
|
placeholder: se.placeholder,
|
|
8162
8163
|
hasError: !!j[se.name],
|
|
8163
8164
|
errorMessage: ((pt = j[se.name]) == null ? void 0 : pt.message) || "",
|
|
8164
|
-
loading:
|
|
8165
|
+
loading: F,
|
|
8165
8166
|
disabled: we,
|
|
8166
8167
|
suffixButton: se.suffixButton
|
|
8167
8168
|
};
|
|
8168
8169
|
return se.type === "select" ? {
|
|
8169
8170
|
...Oe,
|
|
8170
|
-
options: se.options ??
|
|
8171
|
+
options: se.options ?? _[se.name] ?? [],
|
|
8171
8172
|
loadOptions: se.options ? void 0 : se.loadOptions
|
|
8172
8173
|
} : Oe;
|
|
8173
8174
|
}).filter((ce) => ce !== null);
|
|
8174
8175
|
return /* @__PURE__ */ i.jsx(
|
|
8175
8176
|
vo,
|
|
8176
8177
|
{
|
|
8177
|
-
groupLabel:
|
|
8178
|
+
groupLabel: W.groupLabel,
|
|
8178
8179
|
inputs: te,
|
|
8179
|
-
separator:
|
|
8180
|
-
useSeparator:
|
|
8181
|
-
className:
|
|
8182
|
-
showVisibleLabel:
|
|
8183
|
-
size:
|
|
8180
|
+
separator: W.separator,
|
|
8181
|
+
useSeparator: W.useSeparator,
|
|
8182
|
+
className: W.className,
|
|
8183
|
+
showVisibleLabel: W.showVisibleLabel,
|
|
8184
|
+
size: W.size
|
|
8184
8185
|
},
|
|
8185
|
-
`inputGroup_${
|
|
8186
|
+
`inputGroup_${W.groupLabel}`
|
|
8186
8187
|
);
|
|
8187
8188
|
}
|
|
8188
8189
|
if (g.type === "button") {
|
|
8189
|
-
const
|
|
8190
|
+
const W = g;
|
|
8190
8191
|
return /* @__PURE__ */ i.jsx("div", { className: "self-center", children: /* @__PURE__ */ i.jsx(
|
|
8191
8192
|
We,
|
|
8192
8193
|
{
|
|
8193
8194
|
type: "button",
|
|
8194
|
-
variant:
|
|
8195
|
-
size:
|
|
8196
|
-
width:
|
|
8197
|
-
icon:
|
|
8198
|
-
iconPosition:
|
|
8199
|
-
ariaLabel:
|
|
8200
|
-
onClick:
|
|
8201
|
-
disabled:
|
|
8202
|
-
children:
|
|
8195
|
+
variant: W.variant,
|
|
8196
|
+
size: W.size,
|
|
8197
|
+
width: W.width,
|
|
8198
|
+
icon: W.icon,
|
|
8199
|
+
iconPosition: W.iconPosition,
|
|
8200
|
+
ariaLabel: W.ariaLabel,
|
|
8201
|
+
onClick: W.onClick,
|
|
8202
|
+
disabled: X || O,
|
|
8203
|
+
children: W.label
|
|
8203
8204
|
}
|
|
8204
|
-
) },
|
|
8205
|
+
) }, W.name);
|
|
8205
8206
|
}
|
|
8206
|
-
const
|
|
8207
|
+
const h = g.suffixButton, N = typeof h == "string" ? re(h) : h, $ = {
|
|
8207
8208
|
name: g.name,
|
|
8208
8209
|
control: k,
|
|
8209
|
-
disabled:
|
|
8210
|
+
disabled: X || O,
|
|
8210
8211
|
label: g.label,
|
|
8211
8212
|
size: g.size,
|
|
8212
8213
|
width: g.width,
|
|
8213
8214
|
placeholder: g.placeholder,
|
|
8214
8215
|
info: g.info,
|
|
8215
|
-
suffixButton:
|
|
8216
|
+
suffixButton: N
|
|
8216
8217
|
};
|
|
8217
8218
|
switch (g.type) {
|
|
8218
8219
|
case "select":
|
|
@@ -8221,19 +8222,19 @@ function $i({ schema: r }) {
|
|
|
8221
8222
|
{
|
|
8222
8223
|
name: g.name,
|
|
8223
8224
|
control: k,
|
|
8224
|
-
render: ({ field:
|
|
8225
|
+
render: ({ field: W }) => {
|
|
8225
8226
|
var te;
|
|
8226
8227
|
return /* @__PURE__ */ i.jsx(
|
|
8227
8228
|
Ot,
|
|
8228
8229
|
{
|
|
8229
|
-
|
|
8230
|
-
value:
|
|
8231
|
-
onChange:
|
|
8232
|
-
options: g.options ??
|
|
8230
|
+
...$,
|
|
8231
|
+
value: W.value,
|
|
8232
|
+
onChange: W.onChange,
|
|
8233
|
+
options: g.options ?? _[g.name] ?? [],
|
|
8233
8234
|
loadOptions: g.options ? void 0 : g.loadOptions,
|
|
8234
8235
|
hasError: !!j[g.name],
|
|
8235
8236
|
errorMessage: (te = j[g.name]) == null ? void 0 : te.message,
|
|
8236
|
-
suffixButton:
|
|
8237
|
+
suffixButton: N
|
|
8237
8238
|
}
|
|
8238
8239
|
);
|
|
8239
8240
|
}
|
|
@@ -8246,14 +8247,14 @@ function $i({ schema: r }) {
|
|
|
8246
8247
|
{
|
|
8247
8248
|
name: g.name,
|
|
8248
8249
|
control: k,
|
|
8249
|
-
render: ({ field:
|
|
8250
|
+
render: ({ field: W, fieldState: te }) => {
|
|
8250
8251
|
var ce;
|
|
8251
8252
|
return /* @__PURE__ */ i.jsx(
|
|
8252
8253
|
an,
|
|
8253
8254
|
{
|
|
8254
|
-
|
|
8255
|
-
value:
|
|
8256
|
-
onChange:
|
|
8255
|
+
...$,
|
|
8256
|
+
value: W.value,
|
|
8257
|
+
onChange: W.onChange,
|
|
8257
8258
|
maxLength: g.maxLength,
|
|
8258
8259
|
showCounter: !!g.showCounter,
|
|
8259
8260
|
hasError: !!te.error,
|
|
@@ -8268,12 +8269,12 @@ function $i({ schema: r }) {
|
|
|
8268
8269
|
return /* @__PURE__ */ i.jsx(
|
|
8269
8270
|
co,
|
|
8270
8271
|
{
|
|
8271
|
-
|
|
8272
|
+
...$,
|
|
8272
8273
|
defaultValue: [],
|
|
8273
8274
|
maxFiles: g.maxFiles,
|
|
8274
8275
|
accept: g.accept,
|
|
8275
8276
|
hasError: !!j[g.name],
|
|
8276
|
-
errorMessage: (
|
|
8277
|
+
errorMessage: (B = j[g.name]) == null ? void 0 : B.message
|
|
8277
8278
|
},
|
|
8278
8279
|
g.name
|
|
8279
8280
|
);
|
|
@@ -8281,7 +8282,7 @@ function $i({ schema: r }) {
|
|
|
8281
8282
|
return /* @__PURE__ */ i.jsx(
|
|
8282
8283
|
vi,
|
|
8283
8284
|
{
|
|
8284
|
-
|
|
8285
|
+
...$,
|
|
8285
8286
|
defaultValue: !1,
|
|
8286
8287
|
hasError: !!j[g.name],
|
|
8287
8288
|
errorMessage: (ee = j[g.name]) == null ? void 0 : ee.message,
|
|
@@ -8293,7 +8294,7 @@ function $i({ schema: r }) {
|
|
|
8293
8294
|
return /* @__PURE__ */ i.jsx(
|
|
8294
8295
|
Ga,
|
|
8295
8296
|
{
|
|
8296
|
-
|
|
8297
|
+
...$,
|
|
8297
8298
|
defaultValue: "",
|
|
8298
8299
|
showTime: !!g.showTime,
|
|
8299
8300
|
hasError: !!j[g.name],
|
|
@@ -8305,7 +8306,7 @@ function $i({ schema: r }) {
|
|
|
8305
8306
|
return /* @__PURE__ */ i.jsx(
|
|
8306
8307
|
ko,
|
|
8307
8308
|
{
|
|
8308
|
-
|
|
8309
|
+
...$,
|
|
8309
8310
|
options: g.options || [],
|
|
8310
8311
|
multiple: g.multiple,
|
|
8311
8312
|
vertical: g.vertical,
|
|
@@ -8320,12 +8321,12 @@ function $i({ schema: r }) {
|
|
|
8320
8321
|
return /* @__PURE__ */ i.jsx(
|
|
8321
8322
|
Bs,
|
|
8322
8323
|
{
|
|
8323
|
-
|
|
8324
|
+
...$,
|
|
8324
8325
|
type: g.type,
|
|
8325
|
-
loadingDefaults:
|
|
8326
|
+
loadingDefaults: F,
|
|
8326
8327
|
hasError: !!j[g.name],
|
|
8327
8328
|
errorMessage: (xe = j[g.name]) == null ? void 0 : xe.message,
|
|
8328
|
-
suffixButton:
|
|
8329
|
+
suffixButton: N,
|
|
8329
8330
|
name: g.name
|
|
8330
8331
|
},
|
|
8331
8332
|
g.name
|
|
@@ -8337,9 +8338,9 @@ function $i({ schema: r }) {
|
|
|
8337
8338
|
k,
|
|
8338
8339
|
j,
|
|
8339
8340
|
O,
|
|
8341
|
+
F,
|
|
8340
8342
|
_,
|
|
8341
|
-
|
|
8342
|
-
X,
|
|
8343
|
+
J,
|
|
8343
8344
|
L
|
|
8344
8345
|
]
|
|
8345
8346
|
);
|
|
@@ -8348,30 +8349,30 @@ function $i({ schema: r }) {
|
|
|
8348
8349
|
{
|
|
8349
8350
|
noValidate: !0,
|
|
8350
8351
|
onSubmit: y(
|
|
8351
|
-
async (
|
|
8352
|
-
await s(
|
|
8352
|
+
async (H) => {
|
|
8353
|
+
await s(H), f(n ?? m("ds.form.saveSuccess"), "success");
|
|
8353
8354
|
},
|
|
8354
|
-
(
|
|
8355
|
-
console.log("❌ errores de validación:",
|
|
8355
|
+
(H) => {
|
|
8356
|
+
console.log("❌ errores de validación:", H), jo(H), f(a ?? m("ds.form.saveError"), "error");
|
|
8356
8357
|
}
|
|
8357
8358
|
),
|
|
8358
8359
|
className: "space-y-6",
|
|
8359
8360
|
children: [
|
|
8360
8361
|
t.map(
|
|
8361
|
-
(
|
|
8362
|
+
(H, g) => H.type === "rows" ? /* @__PURE__ */ i.jsx(ne.Fragment, { children: H.sections.map((X, h) => /* @__PURE__ */ i.jsx("div", { className: "mb-6", children: /* @__PURE__ */ i.jsx(
|
|
8362
8363
|
_r,
|
|
8363
8364
|
{
|
|
8364
|
-
title:
|
|
8365
|
-
defaultOpen:
|
|
8366
|
-
children:
|
|
8367
|
-
|
|
8368
|
-
/* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children:
|
|
8365
|
+
title: X.sectionTitle,
|
|
8366
|
+
defaultOpen: X.defaultOpen,
|
|
8367
|
+
children: X.rows.map((N, $) => /* @__PURE__ */ i.jsxs("div", { children: [
|
|
8368
|
+
N.title && /* @__PURE__ */ i.jsx("h2", { className: "mb-2 text-lg text-[var(--color-ds-text-primary)]", children: N.title }),
|
|
8369
|
+
/* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children: N.columns.map((B, ee) => {
|
|
8369
8370
|
var le;
|
|
8370
8371
|
return /* @__PURE__ */ i.jsx(
|
|
8371
8372
|
"div",
|
|
8372
8373
|
{
|
|
8373
|
-
className: `${
|
|
8374
|
-
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children:
|
|
8374
|
+
className: `${B.width} px-2 flex flex-col`,
|
|
8375
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children: B.fields ? B.fields.map((xe) => re(xe)) : (le = B.rows) == null ? void 0 : le.map((xe, W) => /* @__PURE__ */ i.jsx("div", { className: "mb-1", children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children: xe.columns.map(
|
|
8375
8376
|
(te, ce) => {
|
|
8376
8377
|
var se;
|
|
8377
8378
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -8385,40 +8386,40 @@ function $i({ schema: r }) {
|
|
|
8385
8386
|
ce
|
|
8386
8387
|
);
|
|
8387
8388
|
}
|
|
8388
|
-
) }) },
|
|
8389
|
+
) }) }, W)) })
|
|
8389
8390
|
},
|
|
8390
8391
|
ee
|
|
8391
8392
|
);
|
|
8392
8393
|
}) })
|
|
8393
|
-
] },
|
|
8394
|
+
] }, $))
|
|
8394
8395
|
}
|
|
8395
|
-
) },
|
|
8396
|
+
) }, h)) }, g) : /* @__PURE__ */ i.jsx(
|
|
8396
8397
|
go,
|
|
8397
8398
|
{
|
|
8398
|
-
options:
|
|
8399
|
+
options: H.tabs.map((X) => ({ label: X.label, value: X.key })),
|
|
8399
8400
|
value: R[g],
|
|
8400
|
-
onChange: (
|
|
8401
|
+
onChange: (X) => G((h) => ({ ...h, [g]: X })),
|
|
8401
8402
|
children: Object.fromEntries(
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
/* @__PURE__ */ i.jsx("div", { className: "space-y-6", children:
|
|
8403
|
+
H.tabs.map((X) => [
|
|
8404
|
+
X.key,
|
|
8405
|
+
/* @__PURE__ */ i.jsx("div", { className: "space-y-6", children: X.sections.map((h, N) => /* @__PURE__ */ i.jsx("div", { className: "mb-6", children: /* @__PURE__ */ i.jsx(
|
|
8405
8406
|
_r,
|
|
8406
8407
|
{
|
|
8407
|
-
title:
|
|
8408
|
-
defaultOpen:
|
|
8409
|
-
children:
|
|
8408
|
+
title: h.sectionTitle,
|
|
8409
|
+
defaultOpen: h.defaultOpen,
|
|
8410
|
+
children: h.rows.map(($, B) => /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap -mx-2", children: $.columns.map((ee, le) => {
|
|
8410
8411
|
var xe;
|
|
8411
8412
|
return /* @__PURE__ */ i.jsx(
|
|
8412
8413
|
"div",
|
|
8413
8414
|
{
|
|
8414
8415
|
className: `${ee.width ?? "flex-1"} px-2 flex flex-col`,
|
|
8415
|
-
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children: (xe = ee.fields) == null ? void 0 : xe.map((
|
|
8416
|
+
children: /* @__PURE__ */ i.jsx("div", { className: "space-y-4", children: (xe = ee.fields) == null ? void 0 : xe.map((W, te) => /* @__PURE__ */ i.jsx(ne.Fragment, { children: re(W) }, te)) })
|
|
8416
8417
|
},
|
|
8417
8418
|
le
|
|
8418
8419
|
);
|
|
8419
|
-
}) }) },
|
|
8420
|
+
}) }) }, B))
|
|
8420
8421
|
}
|
|
8421
|
-
) },
|
|
8422
|
+
) }, N)) }, X.key)
|
|
8422
8423
|
])
|
|
8423
8424
|
)
|
|
8424
8425
|
},
|
|
@@ -8432,8 +8433,8 @@ function $i({ schema: r }) {
|
|
|
8432
8433
|
variant: "primary",
|
|
8433
8434
|
icon: _n,
|
|
8434
8435
|
size: "sm",
|
|
8435
|
-
disabled: O ||
|
|
8436
|
-
children:
|
|
8436
|
+
disabled: O || F || Y > 0,
|
|
8437
|
+
children: m(O ? "ds.form.sending" : "ds.form.submit")
|
|
8437
8438
|
}
|
|
8438
8439
|
) })
|
|
8439
8440
|
]
|
|
@@ -8463,7 +8464,7 @@ function ji({
|
|
|
8463
8464
|
"aria-label": e,
|
|
8464
8465
|
disabled: s,
|
|
8465
8466
|
onClick: n,
|
|
8466
|
-
className:
|
|
8467
|
+
className: I(
|
|
8467
8468
|
"inline-flex items-center justify-center",
|
|
8468
8469
|
"rounded-full",
|
|
8469
8470
|
// completamente circular
|
|
@@ -8482,7 +8483,7 @@ function ji({
|
|
|
8482
8483
|
]
|
|
8483
8484
|
),
|
|
8484
8485
|
...a,
|
|
8485
|
-
children: /* @__PURE__ */ i.jsx(r, { className:
|
|
8486
|
+
children: /* @__PURE__ */ i.jsx(r, { className: I(t === "sm" ? "h-4 w-4" : t === "md" ? "h-5 w-5" : "h-6 w-6") })
|
|
8486
8487
|
}
|
|
8487
8488
|
);
|
|
8488
8489
|
}
|
|
@@ -8494,7 +8495,7 @@ function Ei({ dark: r, onToggle: t }) {
|
|
|
8494
8495
|
"aria-pressed": r,
|
|
8495
8496
|
"aria-label": r ? "Cambiar a modo claro" : "Cambiar a modo oscuro",
|
|
8496
8497
|
onClick: t,
|
|
8497
|
-
className:
|
|
8498
|
+
className: I(
|
|
8498
8499
|
"relative inline-flex items-center transition-colors focus:outline-none duration-200 ease-in-out",
|
|
8499
8500
|
// Siempre usar color de acento para el track
|
|
8500
8501
|
"bg-[var(--color-ds-background-accent)]",
|
|
@@ -8504,7 +8505,7 @@ function Ei({ dark: r, onToggle: t }) {
|
|
|
8504
8505
|
children: /* @__PURE__ */ i.jsxs(
|
|
8505
8506
|
"div",
|
|
8506
8507
|
{
|
|
8507
|
-
className:
|
|
8508
|
+
className: I(
|
|
8508
8509
|
"absolute bg-[var(--color-ds-background-page)] flex items-center justify-center rounded-full transition-transform duration-200 ease-in-out",
|
|
8509
8510
|
// Tamaño del knob
|
|
8510
8511
|
"h-5 w-5",
|
|
@@ -8516,7 +8517,7 @@ function Ei({ dark: r, onToggle: t }) {
|
|
|
8516
8517
|
{
|
|
8517
8518
|
component: Zn,
|
|
8518
8519
|
size: "sm",
|
|
8519
|
-
className:
|
|
8520
|
+
className: I(
|
|
8520
8521
|
"absolute transition-opacity duration-200 ease-in-out",
|
|
8521
8522
|
r ? "opacity-0" : "opacity-100 text-[var(--color-ds-background-accent)]"
|
|
8522
8523
|
)
|
|
@@ -8527,7 +8528,7 @@ function Ei({ dark: r, onToggle: t }) {
|
|
|
8527
8528
|
{
|
|
8528
8529
|
component: Bn,
|
|
8529
8530
|
size: "sm",
|
|
8530
|
-
className:
|
|
8531
|
+
className: I(
|
|
8531
8532
|
"absolute transition-opacity duration-200 ease-in-out",
|
|
8532
8533
|
r ? "opacity-100 text-[var(--color-ds-background-accent)]" : "opacity-0"
|
|
8533
8534
|
)
|
|
@@ -8568,7 +8569,7 @@ const ln = () => nr(on), Ni = ({
|
|
|
8568
8569
|
profileOptions: c,
|
|
8569
8570
|
onChangeProfile: u
|
|
8570
8571
|
}) => {
|
|
8571
|
-
const f = r.slice(0, 3), { toggle:
|
|
8572
|
+
const f = r.slice(0, 3), { toggle: m } = ln(), { t: p, i18n: b } = hr(), E = (k) => {
|
|
8572
8573
|
b.changeLanguage(k), o(k);
|
|
8573
8574
|
};
|
|
8574
8575
|
return /* @__PURE__ */ i.jsxs("header", { className: "flex items-center bg-[var(--color-ds-background-page)] py-2", children: [
|
|
@@ -8577,7 +8578,7 @@ const ln = () => nr(on), Ni = ({
|
|
|
8577
8578
|
"a",
|
|
8578
8579
|
{
|
|
8579
8580
|
href: k.href,
|
|
8580
|
-
className:
|
|
8581
|
+
className: I(
|
|
8581
8582
|
"inline-flex items-center rounded-lg",
|
|
8582
8583
|
"py-1 px-1 my-1 text-ds-sm",
|
|
8583
8584
|
"bg-transparent text-[var(--color-ds-text-primary)]",
|
|
@@ -8621,7 +8622,7 @@ const ln = () => nr(on), Ni = ({
|
|
|
8621
8622
|
disableErrorPlaceholder: !0
|
|
8622
8623
|
}
|
|
8623
8624
|
),
|
|
8624
|
-
/* @__PURE__ */ i.jsx(Ei, { dark: s, onToggle:
|
|
8625
|
+
/* @__PURE__ */ i.jsx(Ei, { dark: s, onToggle: m })
|
|
8625
8626
|
] })
|
|
8626
8627
|
] });
|
|
8627
8628
|
}, Ii = ({
|
|
@@ -8725,9 +8726,9 @@ const ln = () => nr(on), Ni = ({
|
|
|
8725
8726
|
const c = new Set(n);
|
|
8726
8727
|
s === 0 ? (c.clear(), n.has(l) || c.add(l)) : c.has(l) ? c.delete(l) : c.add(l), a(c);
|
|
8727
8728
|
};
|
|
8728
|
-
return /* @__PURE__ */ i.jsx("ul", { className:
|
|
8729
|
+
return /* @__PURE__ */ i.jsx("ul", { className: I(s > 0 ? "mt-1" : "mt-0"), children: r.map((l) => {
|
|
8729
8730
|
var E;
|
|
8730
|
-
const c = l.value === t, u = n.has(l.value), f = ["pl-2", "pl-2", "pl-2"][s] || "pl-4",
|
|
8731
|
+
const c = l.value === t, u = n.has(l.value), f = ["pl-2", "pl-2", "pl-2"][s] || "pl-4", m = 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)]", p = s === 0 && (u || c) ? "text-[var(--color-ds-text-on-accent)]" : "text-[var(--color-ds-text-secondary)]", b = !!((E = l.children) != null && E.length);
|
|
8731
8732
|
return /* @__PURE__ */ i.jsxs("li", { children: [
|
|
8732
8733
|
/* @__PURE__ */ i.jsxs(
|
|
8733
8734
|
"button",
|
|
@@ -8735,24 +8736,24 @@ const ln = () => nr(on), Ni = ({
|
|
|
8735
8736
|
type: "button",
|
|
8736
8737
|
onClick: () => b ? o(l.value) : e(l.value),
|
|
8737
8738
|
"aria-expanded": b ? u : void 0,
|
|
8738
|
-
className:
|
|
8739
|
+
className: I(
|
|
8739
8740
|
"w-full flex items-center justify-between h-8 transition-colors",
|
|
8740
8741
|
f,
|
|
8741
|
-
|
|
8742
|
+
m
|
|
8742
8743
|
),
|
|
8743
8744
|
children: [
|
|
8744
8745
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
8745
8746
|
s === 0 && l.icon && /* @__PURE__ */ i.jsx(l.icon, { className: "w-5 h-5 ml-2" }),
|
|
8746
8747
|
/* @__PURE__ */ i.jsx("span", { className: "text-ds-sm", children: l.label })
|
|
8747
8748
|
] }),
|
|
8748
|
-
b && (u ? /* @__PURE__ */ i.jsx(hs, { className:
|
|
8749
|
+
b && (u ? /* @__PURE__ */ i.jsx(hs, { className: I("w-4 h-4", p) }) : /* @__PURE__ */ i.jsx(Tn, { className: I("w-4 h-4", p) }))
|
|
8749
8750
|
]
|
|
8750
8751
|
}
|
|
8751
8752
|
),
|
|
8752
8753
|
b && /* @__PURE__ */ i.jsx(
|
|
8753
8754
|
"div",
|
|
8754
8755
|
{
|
|
8755
|
-
className:
|
|
8756
|
+
className: I(
|
|
8756
8757
|
"overflow-hidden transition-[max-height] duration-300 ease-in-out",
|
|
8757
8758
|
"border-l-1 border-[var(--color-ds-background-accent)] ml-6",
|
|
8758
8759
|
u ? "max-h-screen" : "max-h-0"
|
|
@@ -8836,103 +8837,103 @@ function zi({
|
|
|
8836
8837
|
onSort: u,
|
|
8837
8838
|
className: f
|
|
8838
8839
|
}) {
|
|
8839
|
-
const
|
|
8840
|
+
const m = t !== void 0, [p, b] = oe([]), [E, k] = oe(!1), S = Fe(null);
|
|
8840
8841
|
fe(() => {
|
|
8841
|
-
var
|
|
8842
|
-
if (!e ||
|
|
8843
|
-
(
|
|
8844
|
-
const
|
|
8845
|
-
return S.current =
|
|
8846
|
-
|
|
8842
|
+
var N;
|
|
8843
|
+
if (!e || m) return;
|
|
8844
|
+
(N = S.current) == null || N.abort();
|
|
8845
|
+
const h = new AbortController();
|
|
8846
|
+
return S.current = h, k(!0), e().then(($) => {
|
|
8847
|
+
h.signal.aborted || b($);
|
|
8847
8848
|
}).finally(() => {
|
|
8848
|
-
|
|
8849
|
-
}), () =>
|
|
8850
|
-
}, [e,
|
|
8851
|
-
const v = _e(() =>
|
|
8849
|
+
h.signal.aborted || k(!1);
|
|
8850
|
+
}), () => h.abort();
|
|
8851
|
+
}, [e, m]);
|
|
8852
|
+
const v = _e(() => m ? t : p, [t, p, m]), y = s ?? (e ? E : !1), [j, O] = oe(/* @__PURE__ */ new Set()), [F, U] = oe(1), [Y, _] = oe(c == null ? void 0 : c.sortBy), [V, L] = oe((c == null ? void 0 : c.sortDir) ?? "asc"), M = (h) => typeof n == "function" ? n(h) : h[n], R = Fe(null);
|
|
8852
8853
|
fe(() => {
|
|
8853
8854
|
R.current !== v && (O(/* @__PURE__ */ new Set()), U(1), R.current = v);
|
|
8854
8855
|
}, [v]);
|
|
8855
|
-
const
|
|
8856
|
+
const G = _e(() => {
|
|
8856
8857
|
if (!Y) return v;
|
|
8857
|
-
const
|
|
8858
|
-
return [...v].sort((
|
|
8859
|
-
const
|
|
8860
|
-
return
|
|
8858
|
+
const h = V === "asc" ? 1 : -1;
|
|
8859
|
+
return [...v].sort((N, $) => {
|
|
8860
|
+
const B = N[Y], ee = $[Y];
|
|
8861
|
+
return B == null ? -h : ee == null || B > ee ? h : B < ee ? -h : 0;
|
|
8861
8862
|
});
|
|
8862
|
-
}, [v, Y, V]),
|
|
8863
|
-
const
|
|
8864
|
-
return
|
|
8865
|
-
}, [
|
|
8866
|
-
const
|
|
8867
|
-
|
|
8868
|
-
},
|
|
8869
|
-
const
|
|
8870
|
-
K.forEach((
|
|
8871
|
-
|
|
8872
|
-
}), O(
|
|
8873
|
-
}, g = (
|
|
8874
|
-
if (!
|
|
8875
|
-
const
|
|
8876
|
-
if (Y ===
|
|
8877
|
-
const
|
|
8878
|
-
L(
|
|
8863
|
+
}, [v, Y, V]), J = Math.max(1, Math.ceil(G.length / l)), K = _e(() => {
|
|
8864
|
+
const h = (F - 1) * l;
|
|
8865
|
+
return G.slice(h, h + l);
|
|
8866
|
+
}, [G, F, l]), re = (h) => {
|
|
8867
|
+
const N = new Set(j);
|
|
8868
|
+
N.has(h) ? N.delete(h) : N.add(h), O(N), o == null || o(v.filter(($) => N.has(M($))));
|
|
8869
|
+
}, H = () => {
|
|
8870
|
+
const h = K.every(($) => j.has(M($))), N = new Set(j);
|
|
8871
|
+
K.forEach(($) => {
|
|
8872
|
+
h ? N.delete(M($)) : N.add(M($));
|
|
8873
|
+
}), O(N), o == null || o(v.filter(($) => N.has(M($))));
|
|
8874
|
+
}, g = (h) => {
|
|
8875
|
+
if (!h.sortable) return;
|
|
8876
|
+
const N = typeof h.accessor == "string" ? h.accessor : h.sortKey;
|
|
8877
|
+
if (Y === N) {
|
|
8878
|
+
const $ = V === "asc" ? "desc" : "asc";
|
|
8879
|
+
L($), u == null || u(N, $);
|
|
8879
8880
|
} else
|
|
8880
|
-
N
|
|
8881
|
+
_(N), L("asc"), u == null || u(N, "asc");
|
|
8881
8882
|
U(1);
|
|
8882
|
-
},
|
|
8883
|
+
}, X = () => y ? /* @__PURE__ */ i.jsx("tbody", { children: Array.from({ length: l }).map((h, N) => /* @__PURE__ */ i.jsxs("tr", { children: [
|
|
8883
8884
|
a && /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(rt, { width: "1rem", height: "1rem", variant: "circle" }) }),
|
|
8884
|
-
r.map((
|
|
8885
|
-
] },
|
|
8886
|
-
const
|
|
8885
|
+
r.map(($, B) => /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(rt, { width: "100%", height: "1em", variant: "rect" }) }, B))
|
|
8886
|
+
] }, N)) }) : K.length ? /* @__PURE__ */ i.jsx("tbody", { children: K.map((h) => {
|
|
8887
|
+
const N = M(h);
|
|
8887
8888
|
return /* @__PURE__ */ i.jsxs("tr", { className: "hover:bg-gray-50", children: [
|
|
8888
8889
|
a && /* @__PURE__ */ i.jsx("td", { children: /* @__PURE__ */ i.jsx(
|
|
8889
8890
|
"input",
|
|
8890
8891
|
{
|
|
8891
8892
|
type: "checkbox",
|
|
8892
|
-
checked: j.has(
|
|
8893
|
-
onChange: () => re(
|
|
8893
|
+
checked: j.has(N),
|
|
8894
|
+
onChange: () => re(N)
|
|
8894
8895
|
}
|
|
8895
8896
|
) }),
|
|
8896
|
-
r.map((
|
|
8897
|
-
const ee =
|
|
8898
|
-
return /* @__PURE__ */ i.jsx("td", { className: "px-4 py-2 whitespace-nowrap text-sm", children: ee },
|
|
8897
|
+
r.map(($, B) => {
|
|
8898
|
+
const ee = $.render ? $.render(h) : typeof $.accessor == "function" ? $.accessor(h) : h[$.accessor];
|
|
8899
|
+
return /* @__PURE__ */ i.jsx("td", { className: "px-4 py-2 whitespace-nowrap text-sm", children: ee }, B);
|
|
8899
8900
|
})
|
|
8900
|
-
] },
|
|
8901
|
+
] }, N);
|
|
8901
8902
|
}) }) : /* @__PURE__ */ i.jsx("tbody", { children: /* @__PURE__ */ i.jsx("tr", { children: /* @__PURE__ */ i.jsx("td", { colSpan: r.length + (a ? 1 : 0), children: "No hay datos" }) }) });
|
|
8902
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
8903
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("w-full overflow-auto", f), children: [
|
|
8903
8904
|
/* @__PURE__ */ i.jsxs("table", { className: "min-w-full divide-y divide-gray-200", children: [
|
|
8904
8905
|
/* @__PURE__ */ i.jsx("thead", { className: "bg-gray-50", children: /* @__PURE__ */ i.jsxs("tr", { children: [
|
|
8905
8906
|
a && /* @__PURE__ */ i.jsx("th", { children: /* @__PURE__ */ i.jsx(
|
|
8906
8907
|
"input",
|
|
8907
8908
|
{
|
|
8908
8909
|
type: "checkbox",
|
|
8909
|
-
checked: K.length > 0 && K.every((
|
|
8910
|
-
onChange:
|
|
8910
|
+
checked: K.length > 0 && K.every((h) => j.has(M(h))),
|
|
8911
|
+
onChange: H
|
|
8911
8912
|
}
|
|
8912
8913
|
) }),
|
|
8913
|
-
r.map((
|
|
8914
|
-
const
|
|
8914
|
+
r.map((h) => {
|
|
8915
|
+
const N = typeof h.accessor == "string" ? h.accessor : h.header, $ = Y === (typeof h.accessor == "string" ? h.accessor : h.sortKey);
|
|
8915
8916
|
return /* @__PURE__ */ i.jsx(
|
|
8916
8917
|
"th",
|
|
8917
8918
|
{
|
|
8918
|
-
className:
|
|
8919
|
-
onClick: () => g(
|
|
8919
|
+
className: I("px-4 py-2 text-left text-sm font-medium text-gray-700", h.width),
|
|
8920
|
+
onClick: () => g(h),
|
|
8920
8921
|
children: /* @__PURE__ */ i.jsxs("div", { className: "inline-flex items-center space-x-1 cursor-pointer", children: [
|
|
8921
|
-
/* @__PURE__ */ i.jsx("span", { children:
|
|
8922
|
-
|
|
8922
|
+
/* @__PURE__ */ i.jsx("span", { children: h.header }),
|
|
8923
|
+
h.sortable && /* @__PURE__ */ i.jsx("span", { className: "text-xs", children: $ ? V === "asc" ? "▲" : "▼" : "⇵" })
|
|
8923
8924
|
] })
|
|
8924
8925
|
},
|
|
8925
|
-
|
|
8926
|
+
N
|
|
8926
8927
|
);
|
|
8927
8928
|
})
|
|
8928
8929
|
] }) }),
|
|
8929
|
-
|
|
8930
|
+
X()
|
|
8930
8931
|
] }),
|
|
8931
8932
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between py-2 px-4", children: [
|
|
8932
|
-
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: y ? "Cargando..." : `Página ${
|
|
8933
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm text-gray-700", children: y ? "Cargando..." : `Página ${F} de ${J}` }),
|
|
8933
8934
|
/* @__PURE__ */ i.jsxs("div", { className: "space-x-2", children: [
|
|
8934
|
-
/* @__PURE__ */ i.jsx(We, { size: "sm", variant: "outline", disabled: y ||
|
|
8935
|
-
/* @__PURE__ */ i.jsx(We, { size: "sm", variant: "outline", disabled: y ||
|
|
8935
|
+
/* @__PURE__ */ i.jsx(We, { size: "sm", variant: "outline", disabled: y || F <= 1, onClick: () => U((h) => Math.max(1, h - 1)), children: "Prev" }),
|
|
8936
|
+
/* @__PURE__ */ i.jsx(We, { size: "sm", variant: "outline", disabled: y || F >= J, onClick: () => U((h) => Math.min(J, h + 1)), children: "Next" })
|
|
8936
8937
|
] })
|
|
8937
8938
|
] })
|
|
8938
8939
|
] });
|
|
@@ -8950,7 +8951,7 @@ function Ti({
|
|
|
8950
8951
|
errorMessage: u = "",
|
|
8951
8952
|
className: f
|
|
8952
8953
|
}) {
|
|
8953
|
-
const
|
|
8954
|
+
const m = Xe();
|
|
8954
8955
|
if (r && t)
|
|
8955
8956
|
return /* @__PURE__ */ i.jsx(
|
|
8956
8957
|
Ae,
|
|
@@ -8977,27 +8978,27 @@ function Ti({
|
|
|
8977
8978
|
}
|
|
8978
8979
|
);
|
|
8979
8980
|
const p = !!n;
|
|
8980
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
8981
|
+
return /* @__PURE__ */ i.jsxs("div", { className: I("flex flex-col", f), children: [
|
|
8981
8982
|
/* @__PURE__ */ i.jsxs(
|
|
8982
8983
|
"label",
|
|
8983
8984
|
{
|
|
8984
|
-
className:
|
|
8985
|
+
className: I(
|
|
8985
8986
|
"inline-flex items-center space-x-3 select-none",
|
|
8986
8987
|
o && "opacity-50 cursor-not-allowed"
|
|
8987
8988
|
),
|
|
8988
|
-
htmlFor:
|
|
8989
|
+
htmlFor: m,
|
|
8989
8990
|
children: [
|
|
8990
8991
|
l && c === "left" && /* @__PURE__ */ i.jsx("span", { className: "text-ds-md text-[var(--color-ds-text-primary)]", children: l }),
|
|
8991
8992
|
/* @__PURE__ */ i.jsx(
|
|
8992
8993
|
"button",
|
|
8993
8994
|
{
|
|
8994
|
-
id:
|
|
8995
|
+
id: m,
|
|
8995
8996
|
type: "button",
|
|
8996
8997
|
role: "switch",
|
|
8997
8998
|
"aria-checked": p,
|
|
8998
8999
|
disabled: o,
|
|
8999
9000
|
onClick: () => !o && (a == null ? void 0 : a(!p)),
|
|
9000
|
-
className:
|
|
9001
|
+
className: I(
|
|
9001
9002
|
"relative inline-flex items-center h-8 w-16",
|
|
9002
9003
|
"bg-[var(--color-ds-background-accent)] rounded-full transition-colors duration-200",
|
|
9003
9004
|
"focus:outline-none "
|
|
@@ -9005,7 +9006,7 @@ function Ti({
|
|
|
9005
9006
|
children: /* @__PURE__ */ i.jsx(
|
|
9006
9007
|
"div",
|
|
9007
9008
|
{
|
|
9008
|
-
className:
|
|
9009
|
+
className: I(
|
|
9009
9010
|
"absolute h-6 w-6 bg-[var(--color-ds-background-page)] rounded-full shadow transform transition-transform duration-200",
|
|
9010
9011
|
p ? "translate-x-9" : "translate-x-1"
|
|
9011
9012
|
)
|