ui-mathilde-web 0.1.15 → 0.1.17
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/LICENSE +21 -21
- package/README.md +5 -5
- package/dist/assets/images/click.svg +7 -7
- package/dist/assets/images/conversiones.svg +8 -8
- package/dist/assets/images/file.svg +9 -9
- package/dist/assets/images/fileSVG.svg +17 -17
- package/dist/assets/images/impresiones.svg +5 -5
- package/dist/assets/images/porcentaje.svg +5 -5
- package/dist/assets/images/robot.svg +18 -18
- package/dist/assets/images/spinner.svg +32 -32
- package/dist/assets/images/vistas.svg +5 -5
- package/dist/assets/images/window.svg +16 -16
- package/dist/ui-mathilde-web.js +543 -544
- package/dist/ui-mathilde-web.umd.cjs +10 -10
- package/package.json +76 -76
package/dist/ui-mathilde-web.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var wy = Object.defineProperty;
|
|
2
2
|
var ky = (t, e, r) => e in t ? wy(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var K = (t, e, r) => ky(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import _y, { jsx as
|
|
4
|
+
import _y, { jsx as v, jsxs as Q, Fragment as Zt } from "react/jsx-runtime";
|
|
5
5
|
import * as $ from "react";
|
|
6
6
|
import ee, { forwardRef as Oe, useState as ve, useRef as Gt, useEffect as lt, createContext as ft, useContext as rt, createElement as ur, Fragment as Yh, useMemo as no, Children as Qn, cloneElement as ms, isValidElement as Oy, PureComponent as Sy, useImperativeHandle as Vh, useLayoutEffect as ac, useCallback as yn, useId as In } from "react";
|
|
7
7
|
import * as Dy from "react-dom";
|
|
@@ -25,7 +25,7 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
25
25
|
leftIcon: s,
|
|
26
26
|
rightIcon: o,
|
|
27
27
|
iconSize: l = 20
|
|
28
|
-
}) => /* @__PURE__ */
|
|
28
|
+
}) => /* @__PURE__ */ v("div", { className: `${r ? Ri["mth-btn-full"] : ""}`, children: /* @__PURE__ */ Q(
|
|
29
29
|
"button",
|
|
30
30
|
{
|
|
31
31
|
type: i,
|
|
@@ -33,9 +33,9 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
33
33
|
onClick: n,
|
|
34
34
|
disabled: a,
|
|
35
35
|
children: [
|
|
36
|
-
s && /* @__PURE__ */
|
|
36
|
+
s && /* @__PURE__ */ v(s, { size: l }),
|
|
37
37
|
t,
|
|
38
|
-
o && /* @__PURE__ */
|
|
38
|
+
o && /* @__PURE__ */ v(o, { size: l })
|
|
39
39
|
]
|
|
40
40
|
}
|
|
41
41
|
) }), Ry = "checkbox-module__checkmark__pC-qY", ps = {
|
|
@@ -47,7 +47,7 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
47
47
|
checked: r,
|
|
48
48
|
onChange: n
|
|
49
49
|
}) => /* @__PURE__ */ Q("label", { className: ps["checkbox-container"], children: [
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ v(
|
|
51
51
|
"input",
|
|
52
52
|
{
|
|
53
53
|
type: "checkbox",
|
|
@@ -56,15 +56,15 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
56
56
|
onChange: n
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
t && /* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ v("span", { className: ps.checkmark }),
|
|
60
|
+
t && /* @__PURE__ */ v("span", { className: "ml-2", children: t })
|
|
61
61
|
] }), Cn = ({
|
|
62
62
|
src: t,
|
|
63
63
|
alt: e,
|
|
64
64
|
width: r,
|
|
65
65
|
height: n,
|
|
66
66
|
classIm: a
|
|
67
|
-
}) => /* @__PURE__ */
|
|
67
|
+
}) => /* @__PURE__ */ v(
|
|
68
68
|
"img",
|
|
69
69
|
{
|
|
70
70
|
className: a,
|
|
@@ -84,8 +84,8 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
84
84
|
onChange: s,
|
|
85
85
|
...o
|
|
86
86
|
}, l) => /* @__PURE__ */ Q("div", { className: "mb-5", children: [
|
|
87
|
-
e && /* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
e && /* @__PURE__ */ v("label", { className: " mb-1 block font-semibold", children: e }),
|
|
88
|
+
/* @__PURE__ */ v(
|
|
89
89
|
"input",
|
|
90
90
|
{
|
|
91
91
|
ref: l,
|
|
@@ -97,7 +97,7 @@ const Cy = "button-module__mth-btn-default__cda3k", Ey = "button-module__mth-btn
|
|
|
97
97
|
...o
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
|
-
r && /* @__PURE__ */
|
|
100
|
+
r && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-500", children: r })
|
|
101
101
|
] })
|
|
102
102
|
);
|
|
103
103
|
Ny.displayName = "InputForm";
|
|
@@ -232,8 +232,8 @@ const qy = {
|
|
|
232
232
|
const [a, i] = ve(!1), s = () => {
|
|
233
233
|
i(!a);
|
|
234
234
|
};
|
|
235
|
-
return /* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ v("div", { className: "mb-5", children: /* @__PURE__ */ Q("div", { className: "relative inline-block w-full", children: [
|
|
236
|
+
/* @__PURE__ */ v(
|
|
237
237
|
"input",
|
|
238
238
|
{
|
|
239
239
|
type: a ? "text" : "password",
|
|
@@ -244,13 +244,13 @@ const qy = {
|
|
|
244
244
|
...n
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ v(
|
|
248
248
|
"button",
|
|
249
249
|
{
|
|
250
250
|
type: "button",
|
|
251
251
|
onClick: s,
|
|
252
252
|
className: qy["mth-password"],
|
|
253
|
-
children: a ? /* @__PURE__ */
|
|
253
|
+
children: a ? /* @__PURE__ */ v(Yy, {}) : /* @__PURE__ */ v(Vy, {})
|
|
254
254
|
}
|
|
255
255
|
)
|
|
256
256
|
] }) });
|
|
@@ -264,21 +264,21 @@ const qy = {
|
|
|
264
264
|
}) => {
|
|
265
265
|
const n = (r - t) / (e - t) * 100;
|
|
266
266
|
return /* @__PURE__ */ Q("div", { className: "relative h-4 w-full overflow-hidden rounded-full bg-gray-200", children: [
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ v(
|
|
268
268
|
"div",
|
|
269
269
|
{
|
|
270
270
|
className: `absolute left-0 top-0 h-full rounded-full ${n < 50 ? jd["progress-no-check"] : jd["progress-check"]}`,
|
|
271
271
|
style: { width: `${Math.min(n, 100)}%` }
|
|
272
272
|
}
|
|
273
273
|
),
|
|
274
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ v("div", { className: "absolute inset-0 flex items-center px-2", children: /* @__PURE__ */ Q("span", { className: "z-10 text-sm font-medium text-gray-900", children: [
|
|
275
275
|
r.toFixed(2),
|
|
276
276
|
"%"
|
|
277
277
|
] }) })
|
|
278
278
|
] });
|
|
279
279
|
}, Xy = Oe(
|
|
280
280
|
({ options: t, label: e, error: r, value: n, onChange: a, ...i }, s) => /* @__PURE__ */ Q("div", { className: "mb-5", children: [
|
|
281
|
-
e && /* @__PURE__ */
|
|
281
|
+
e && /* @__PURE__ */ v("label", { className: "mb-1 block font-semibold", children: e }),
|
|
282
282
|
/* @__PURE__ */ Q(
|
|
283
283
|
"select",
|
|
284
284
|
{
|
|
@@ -288,12 +288,12 @@ const qy = {
|
|
|
288
288
|
onChange: a,
|
|
289
289
|
...i,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
t == null ? void 0 : t.map((o) => /* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ v("option", { disabled: !0, value: "", children: "Seleccione una opción" }),
|
|
292
|
+
t == null ? void 0 : t.map((o) => /* @__PURE__ */ v("option", { value: o.value, children: o.label }, o.value))
|
|
293
293
|
]
|
|
294
294
|
}
|
|
295
295
|
),
|
|
296
|
-
r && /* @__PURE__ */
|
|
296
|
+
r && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-500", children: r })
|
|
297
297
|
] })
|
|
298
298
|
);
|
|
299
299
|
Xy.displayName = "SelectForm";
|
|
@@ -316,7 +316,7 @@ const Gy = {
|
|
|
316
316
|
minimumFractionDigits: 0
|
|
317
317
|
}).format(o);
|
|
318
318
|
return /* @__PURE__ */ Q("div", { className: "flex flex-col border bg-white px-3.5 py-7", children: [
|
|
319
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ v("div", { className: "flex justify-end", children: /* @__PURE__ */ v(
|
|
320
320
|
Cn,
|
|
321
321
|
{
|
|
322
322
|
src: Gy[t] || "",
|
|
@@ -325,9 +325,9 @@ const Gy = {
|
|
|
325
325
|
height: 30
|
|
326
326
|
}
|
|
327
327
|
) }),
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ v("h2", { className: "my-3 font-bold", children: r }),
|
|
329
|
+
/* @__PURE__ */ v("small", { className: "text-3xl", children: s(e) }),
|
|
330
|
+
/* @__PURE__ */ v("div", { className: "mt-2 w-full", children: /* @__PURE__ */ v(Uy, { start: n, end: a, current: i }) })
|
|
331
331
|
] });
|
|
332
332
|
};
|
|
333
333
|
/*!
|
|
@@ -2670,7 +2670,7 @@ K(Ua, "defaults", {}), K(Ua, "datasetElementType", null), K(Ua, "dataElementType
|
|
|
2670
2670
|
function Ax(t, e, r) {
|
|
2671
2671
|
let n = 1, a = 1, i = 0, s = 0;
|
|
2672
2672
|
if (e < Qe) {
|
|
2673
|
-
const o = t, l = o + e, c = Math.cos(o), d = Math.sin(o), u = Math.cos(l), f = Math.sin(l), h = (k,
|
|
2673
|
+
const o = t, l = o + e, c = Math.cos(o), d = Math.sin(o), u = Math.cos(l), f = Math.sin(l), h = (k, y, x) => Os(k, o, l, !0) ? 1 : Math.max(y, y * r, x, x * r), g = (k, y, x) => Os(k, o, l, !0) ? -1 : Math.min(y, y * r, x, x * r), m = h(0, c, u), p = h(tt, d, f), w = g(at, c, u), b = g(at + tt, d, f);
|
|
2674
2674
|
n = (m - w) / 2, a = (p - b) / 2, i = -(m + w) / 2, s = -(p + b) / 2;
|
|
2675
2675
|
}
|
|
2676
2676
|
return {
|
|
@@ -2720,7 +2720,7 @@ class $a extends Ua {
|
|
|
2720
2720
|
};
|
|
2721
2721
|
}
|
|
2722
2722
|
update(e) {
|
|
2723
|
-
const r = this.chart, { chartArea: n } = r, a = this._cachedMeta, i = a.data, s = this.getMaxBorderWidth() + this.getMaxOffset(i) + this.options.spacing, o = Math.max((Math.min(n.width, n.height) - s) / 2, 0), l = Math.min(vv(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: m } = Ax(u, d, l), p = (n.width - s) / f, w = (n.height - s) / h, b = Math.max(Math.min(p, w) / 2, 0), k = Qh(this.options.radius, b),
|
|
2723
|
+
const r = this.chart, { chartArea: n } = r, a = this._cachedMeta, i = a.data, s = this.getMaxBorderWidth() + this.getMaxOffset(i) + this.options.spacing, o = Math.max((Math.min(n.width, n.height) - s) / 2, 0), l = Math.min(vv(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: m } = Ax(u, d, l), p = (n.width - s) / f, w = (n.height - s) / h, b = Math.max(Math.min(p, w) / 2, 0), k = Qh(this.options.radius, b), y = Math.max(k * l, 0), x = (k - y) / this._getVisibleDatasetWeightTotal();
|
|
2724
2724
|
this.offsetX = g * k, this.offsetY = m * k, a.total = this.calculateTotal(), this.outerRadius = k - x * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - x * c, 0), this.updateElements(i, 0, i.length, e);
|
|
2725
2725
|
}
|
|
2726
2726
|
_circumference(e, r) {
|
|
@@ -2733,7 +2733,7 @@ class $a extends Ua {
|
|
|
2733
2733
|
for (b = 0; b < r; ++b)
|
|
2734
2734
|
w += this._circumference(b, i);
|
|
2735
2735
|
for (b = r; b < r + n; ++b) {
|
|
2736
|
-
const k = this._circumference(b, i),
|
|
2736
|
+
const k = this._circumference(b, i), y = e[b], x = {
|
|
2737
2737
|
x: d + this.offsetX,
|
|
2738
2738
|
y: u + this.offsetY,
|
|
2739
2739
|
startAngle: w,
|
|
@@ -2742,7 +2742,7 @@ class $a extends Ua {
|
|
|
2742
2742
|
outerRadius: g,
|
|
2743
2743
|
innerRadius: h
|
|
2744
2744
|
};
|
|
2745
|
-
p && (x.options = m || this.resolveDataElementOptions(b,
|
|
2745
|
+
p && (x.options = m || this.resolveDataElementOptions(b, y.active ? "active" : a)), w += k, this.updateElement(y, b, x, a);
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
2748
|
calculateTotal() {
|
|
@@ -3904,17 +3904,17 @@ class so extends mi {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
_computeLabelSizes(e, r, n) {
|
|
3906
3906
|
const { ctx: a, _longestTextCache: i } = this, s = [], o = [], l = Math.floor(r / wu(r, n));
|
|
3907
|
-
let c = 0, d = 0, u, f, h, g, m, p, w, b, k,
|
|
3907
|
+
let c = 0, d = 0, u, f, h, g, m, p, w, b, k, y, x;
|
|
3908
3908
|
for (u = 0; u < r; u += l) {
|
|
3909
3909
|
if (g = e[u].label, m = this._resolveTickFontOptions(u), a.font = p = m.string, w = i[p] = i[p] || {
|
|
3910
3910
|
data: {},
|
|
3911
3911
|
gc: []
|
|
3912
|
-
}, b = m.lineHeight, k =
|
|
3913
|
-
k = tu(a, w.data, w.gc, k, g),
|
|
3912
|
+
}, b = m.lineHeight, k = y = 0, !mt(g) && !ct(g))
|
|
3913
|
+
k = tu(a, w.data, w.gc, k, g), y = b;
|
|
3914
3914
|
else if (ct(g))
|
|
3915
3915
|
for (f = 0, h = g.length; f < h; ++f)
|
|
3916
|
-
x = g[f], !mt(x) && !ct(x) && (k = tu(a, w.data, w.gc, k, x),
|
|
3917
|
-
s.push(k), o.push(
|
|
3916
|
+
x = g[f], !mt(x) && !ct(x) && (k = tu(a, w.data, w.gc, k, x), y += b);
|
|
3917
|
+
s.push(k), o.push(y), c = Math.max(k, c), d = Math.max(y, d);
|
|
3918
3918
|
}
|
|
3919
3919
|
bw(i, r);
|
|
3920
3920
|
const _ = s.indexOf(c), T = o.indexOf(d), S = (C) => ({
|
|
@@ -3978,7 +3978,7 @@ class so extends mi {
|
|
|
3978
3978
|
const r = this.axis, n = this.chart, a = this.options, { grid: i, position: s, border: o } = a, l = i.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = Oa(i), h = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, p = m / 2, w = function(W) {
|
|
3979
3979
|
return on(n, W, m);
|
|
3980
3980
|
};
|
|
3981
|
-
let b, k,
|
|
3981
|
+
let b, k, y, x, _, T, S, C, D, z, A, L;
|
|
3982
3982
|
if (s === "top")
|
|
3983
3983
|
b = w(this.bottom), T = this.bottom - f, C = b - p, z = w(e.top) + p, L = e.bottom;
|
|
3984
3984
|
else if (s === "bottom")
|
|
@@ -4007,7 +4007,7 @@ class so extends mi {
|
|
|
4007
4007
|
const M = De(a.ticks.maxTicksLimit, u), I = Math.max(1, Math.ceil(u / M));
|
|
4008
4008
|
for (k = 0; k < u; k += I) {
|
|
4009
4009
|
const W = this.getContext(k), B = i.setContext(W), U = o.setContext(W), J = B.lineWidth, E = B.color, j = U.dash || [], N = U.dashOffset, R = B.tickWidth, P = B.tickColor, O = B.tickBorderDash || [], F = B.tickBorderDashOffset;
|
|
4010
|
-
|
|
4010
|
+
y = pw(this, k, l), y !== void 0 && (x = on(n, y, J), c ? _ = S = D = A = x : T = C = z = L = x, h.push({
|
|
4011
4011
|
tx1: _,
|
|
4012
4012
|
ty1: T,
|
|
4013
4013
|
tx2: S,
|
|
@@ -4030,7 +4030,7 @@ class so extends mi {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
_computeLabelItems(e) {
|
|
4032
4032
|
const r = this.axis, n = this.options, { position: a, ticks: i } = n, s = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = i, f = Oa(n.grid), h = f + d, g = u ? -d : h, m = -xn(this.labelRotation), p = [];
|
|
4033
|
-
let w, b, k,
|
|
4033
|
+
let w, b, k, y, x, _, T, S, C, D, z, A, L = "middle";
|
|
4034
4034
|
if (a === "top")
|
|
4035
4035
|
_ = this.bottom - g, T = this._getXAxisLabelAlignment();
|
|
4036
4036
|
else if (a === "bottom")
|
|
@@ -4061,9 +4061,9 @@ class so extends mi {
|
|
|
4061
4061
|
r === "y" && (l === "start" ? L = "top" : l === "end" && (L = "bottom"));
|
|
4062
4062
|
const M = this._getLabelSizes();
|
|
4063
4063
|
for (w = 0, b = o.length; w < b; ++w) {
|
|
4064
|
-
k = o[w],
|
|
4064
|
+
k = o[w], y = k.label;
|
|
4065
4065
|
const I = i.setContext(this.getContext(w));
|
|
4066
|
-
S = this.getPixelForTick(w) + i.labelOffset, C = this._resolveTickFontOptions(w), D = C.lineHeight, z = ct(
|
|
4066
|
+
S = this.getPixelForTick(w) + i.labelOffset, C = this._resolveTickFontOptions(w), D = C.lineHeight, z = ct(y) ? y.length : 1;
|
|
4067
4067
|
const W = z / 2, B = I.color, U = I.textStrokeColor, J = I.textStrokeWidth;
|
|
4068
4068
|
let E = T;
|
|
4069
4069
|
s ? (x = S, T === "inner" && (w === b - 1 ? E = this.options.reverse ? "left" : "right" : w === 0 ? E = this.options.reverse ? "right" : "left" : E = "center"), a === "top" ? c === "near" || m !== 0 ? A = -z * D + D / 2 : c === "center" ? A = -M.highest.height / 2 - W * D + D : A = -M.highest.height + D / 2 : c === "near" || m !== 0 ? A = D / 2 : c === "center" ? A = M.highest.height / 2 - W * D : A = M.highest.height - z * D, u && (A *= -1), m !== 0 && !I.showLabelBackdrop && (x += D / 2 * Math.sin(m))) : (_ = S, A = (1 - z) * D / 2);
|
|
@@ -4099,7 +4099,7 @@ class so extends mi {
|
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
4101
|
p.push({
|
|
4102
|
-
label:
|
|
4102
|
+
label: y,
|
|
4103
4103
|
font: C,
|
|
4104
4104
|
textOffset: A,
|
|
4105
4105
|
options: {
|
|
@@ -5321,12 +5321,12 @@ function Cs(t, e, r, n, a, i) {
|
|
|
5321
5321
|
const I = d > 0 ? d - n : 0, W = u > 0 ? u - n : 0, B = (I + W) / 2, U = B !== 0 ? g * B / (B + n) : g;
|
|
5322
5322
|
h = (g - U) / 2;
|
|
5323
5323
|
}
|
|
5324
|
-
const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, w = l + p + h, b = a - p - h, { outerStart: k, outerEnd:
|
|
5324
|
+
const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, w = l + p + h, b = a - p - h, { outerStart: k, outerEnd: y, innerStart: x, innerEnd: _ } = Xw(e, f, u, b - w), T = u - k, S = u - y, C = w + k / T, D = b - y / S, z = f + x, A = f + _, L = w + x / z, M = b - _ / A;
|
|
5325
5325
|
if (t.beginPath(), i) {
|
|
5326
5326
|
const I = (C + D) / 2;
|
|
5327
|
-
if (t.arc(s, o, u, C, I), t.arc(s, o, u, I, D),
|
|
5327
|
+
if (t.arc(s, o, u, C, I), t.arc(s, o, u, I, D), y > 0) {
|
|
5328
5328
|
const J = zn(S, D, s, o);
|
|
5329
|
-
t.arc(J.x, J.y,
|
|
5329
|
+
t.arc(J.x, J.y, y, D, b + tt);
|
|
5330
5330
|
}
|
|
5331
5331
|
const W = zn(A, b, s, o);
|
|
5332
5332
|
if (t.lineTo(W.x, W.y), _ > 0) {
|
|
@@ -5580,14 +5580,14 @@ class Iu extends mi {
|
|
|
5580
5580
|
strikethrough: S.hidden,
|
|
5581
5581
|
textAlign: l.textAlign(S.textAlign)
|
|
5582
5582
|
});
|
|
5583
|
-
}, k = this.isHorizontal(),
|
|
5583
|
+
}, k = this.isHorizontal(), y = this._computeTitleHeight();
|
|
5584
5584
|
k ? h = {
|
|
5585
5585
|
x: It(i, this.left + d, this.right - n[0]),
|
|
5586
|
-
y: this.top + d +
|
|
5586
|
+
y: this.top + d + y,
|
|
5587
5587
|
line: 0
|
|
5588
5588
|
} : h = {
|
|
5589
5589
|
x: this.left + d,
|
|
5590
|
-
y: It(i, this.top +
|
|
5590
|
+
y: It(i, this.top + y + d, this.bottom - r[0].height),
|
|
5591
5591
|
line: 0
|
|
5592
5592
|
}, ug(this.ctx, e.textDirection);
|
|
5593
5593
|
const x = p + d;
|
|
@@ -5595,7 +5595,7 @@ class Iu extends mi {
|
|
|
5595
5595
|
a.strokeStyle = _.fontColor, a.fillStyle = _.fontColor;
|
|
5596
5596
|
const S = a.measureText(_.text).width, C = l.textAlign(_.textAlign || (_.textAlign = s.textAlign)), D = g + f + S;
|
|
5597
5597
|
let z = h.x, A = h.y;
|
|
5598
|
-
l.setWidth(this.width), k ? T > 0 && z + D + d > this.right && (A = h.y += x, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : T > 0 && A + x > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, A = h.y = It(i, this.top +
|
|
5598
|
+
l.setWidth(this.width), k ? T > 0 && z + D + d > this.right && (A = h.y += x, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : T > 0 && A + x > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, A = h.y = It(i, this.top + y + d, this.bottom - r[h.line].height));
|
|
5599
5599
|
const L = l.x(z);
|
|
5600
5600
|
if (w(L, A, _), z = Fv(C, z + g + f, k ? z + D : this.right, e.rtl), b(l.x(z), A, _), k)
|
|
5601
5601
|
h.x += D + d;
|
|
@@ -5827,18 +5827,18 @@ function n1(t, e) {
|
|
|
5827
5827
|
}
|
|
5828
5828
|
function Au(t, e) {
|
|
5829
5829
|
const r = t.chart.ctx, { body: n, footer: a, title: i } = t, { boxWidth: s, boxHeight: o } = e, l = _t(e.bodyFont), c = _t(e.titleFont), d = _t(e.footerFont), u = i.length, f = a.length, h = n.length, g = Kt(e.padding);
|
|
5830
|
-
let m = g.height, p = 0, w = n.reduce((
|
|
5830
|
+
let m = g.height, p = 0, w = n.reduce((y, x) => y + x.before.length + x.lines.length + x.after.length, 0);
|
|
5831
5831
|
if (w += t.beforeBody.length + t.afterBody.length, u && (m += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), w) {
|
|
5832
|
-
const
|
|
5833
|
-
m += h *
|
|
5832
|
+
const y = e.displayColors ? Math.max(o, l.lineHeight) : l.lineHeight;
|
|
5833
|
+
m += h * y + (w - h) * l.lineHeight + (w - 1) * e.bodySpacing;
|
|
5834
5834
|
}
|
|
5835
5835
|
f && (m += e.footerMarginTop + f * d.lineHeight + (f - 1) * e.footerSpacing);
|
|
5836
5836
|
let b = 0;
|
|
5837
|
-
const k = function(
|
|
5838
|
-
p = Math.max(p, r.measureText(
|
|
5837
|
+
const k = function(y) {
|
|
5838
|
+
p = Math.max(p, r.measureText(y).width + b);
|
|
5839
5839
|
};
|
|
5840
|
-
return r.save(), r.font = c.string, Se(t.title, k), r.font = l.string, Se(t.beforeBody.concat(t.afterBody), k), b = e.displayColors ? s + 2 + e.boxPadding : 0, Se(n, (
|
|
5841
|
-
Se(
|
|
5840
|
+
return r.save(), r.font = c.string, Se(t.title, k), r.font = l.string, Se(t.beforeBody.concat(t.afterBody), k), b = e.displayColors ? s + 2 + e.boxPadding : 0, Se(n, (y) => {
|
|
5841
|
+
Se(y.before, k), Se(y.lines, k), Se(y.after, k);
|
|
5842
5842
|
}), b = 0, r.font = d.string, Se(t.footer, k), r.restore(), p += g.width, {
|
|
5843
5843
|
width: p,
|
|
5844
5844
|
height: m
|
|
@@ -6044,13 +6044,13 @@ let zu = (Sl = class extends mi {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
getCaretPosition(e, r, n) {
|
|
6046
6046
|
const { xAlign: a, yAlign: i } = this, { caretSize: s, cornerRadius: o } = n, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = qa(o), { x: f, y: h } = e, { width: g, height: m } = r;
|
|
6047
|
-
let p, w, b, k,
|
|
6048
|
-
return i === "center" ? (
|
|
6047
|
+
let p, w, b, k, y, x;
|
|
6048
|
+
return i === "center" ? (y = h + m / 2, a === "left" ? (p = f, w = p - s, k = y + s, x = y - s) : (p = f + g, w = p + s, k = y - s, x = y + s), b = p) : (a === "left" ? w = f + Math.max(l, d) + s : a === "right" ? w = f + g - Math.max(c, u) - s : w = this.caretX, i === "top" ? (k = h, y = k - s, p = w - s, b = w + s) : (k = h + m, y = k + s, p = w + s, b = w - s), x = k), {
|
|
6049
6049
|
x1: p,
|
|
6050
6050
|
x2: w,
|
|
6051
6051
|
x3: b,
|
|
6052
6052
|
y1: k,
|
|
6053
|
-
y2:
|
|
6053
|
+
y2: y,
|
|
6054
6054
|
y3: x
|
|
6055
6055
|
};
|
|
6056
6056
|
}
|
|
@@ -6098,9 +6098,9 @@ let zu = (Sl = class extends mi {
|
|
|
6098
6098
|
const g = Jn(n.rtl, this.x, this.width), m = function(S) {
|
|
6099
6099
|
r.fillText(S, g.x(e.x + h), e.y + f / 2), e.y += f + i;
|
|
6100
6100
|
}, p = g.textAlign(s);
|
|
6101
|
-
let w, b, k,
|
|
6102
|
-
for (r.textAlign = s, r.textBaseline = "middle", r.font = u.string, e.x = Yi(this, p, n), r.fillStyle = n.bodyColor, Se(this.beforeBody, m), h = o && p !== "right" ? s === "center" ? c / 2 + d : c + 2 + d : 0,
|
|
6103
|
-
for (w = a[
|
|
6101
|
+
let w, b, k, y, x, _, T;
|
|
6102
|
+
for (r.textAlign = s, r.textBaseline = "middle", r.font = u.string, e.x = Yi(this, p, n), r.fillStyle = n.bodyColor, Se(this.beforeBody, m), h = o && p !== "right" ? s === "center" ? c / 2 + d : c + 2 + d : 0, y = 0, _ = a.length; y < _; ++y) {
|
|
6103
|
+
for (w = a[y], b = this.labelTextColors[y], r.fillStyle = b, Se(w.before, m), k = w.lines, o && k.length && (this._drawColorBox(r, e, y, g, n), f = Math.max(u.lineHeight, l)), x = 0, T = k.length; x < T; ++x)
|
|
6104
6104
|
m(k[x]), f = u.lineHeight;
|
|
6105
6105
|
Se(w.after, m);
|
|
6106
6106
|
}
|
|
@@ -6763,7 +6763,7 @@ const HN = () => {
|
|
|
6763
6763
|
}
|
|
6764
6764
|
}
|
|
6765
6765
|
};
|
|
6766
|
-
return /* @__PURE__ */
|
|
6766
|
+
return /* @__PURE__ */ v("div", { className: "size-full min-h-[200px]", children: /* @__PURE__ */ v(v1, { data: t, options: e, plugins: [{
|
|
6767
6767
|
id: "textCenter",
|
|
6768
6768
|
beforeDraw(n) {
|
|
6769
6769
|
const {
|
|
@@ -6785,8 +6785,8 @@ function O1(t) {
|
|
|
6785
6785
|
return We({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M144 136v107h179.9l-47.2-47.9c-5-5.1-5-13.3.1-18.4 5.1-5 13.3-5 18.4.1l69 70c2.4 2.5 3.7 5.8 3.7 9.1 0 1.7-.3 3.4-1 5-.6 1.5-1.6 2.9-2.7 4.1l-69 70c-5 5.1-13.3 5.2-18.4.1-5.1-5-5.2-13.3-.1-18.4l47.2-47.9H144v107c0 22 18 40 40 40h240c22 0 40-18 40-40V136c0-22-18-40-40-40H184c-22 0-40 18-40 40zM61 243c-7.2 0-13 5.8-13 13s5.8 13 13 13h83v-26H61z" }, child: [] }] })(t);
|
|
6786
6786
|
}
|
|
6787
6787
|
const S1 = Oe(
|
|
6788
|
-
({ isOpen: t, onClose: e, children: r, width: n = "auto" }, a) => t ? /* @__PURE__ */
|
|
6789
|
-
/* @__PURE__ */
|
|
6788
|
+
({ isOpen: t, onClose: e, children: r, width: n = "auto" }, a) => t ? /* @__PURE__ */ v("div", { className: Zo.overlay, children: /* @__PURE__ */ Q("div", { ref: a, className: Zo.modal, style: { width: n }, children: [
|
|
6789
|
+
/* @__PURE__ */ v("button", { onClick: e, className: Zo.closeButton, children: /* @__PURE__ */ v(_1, {}) }),
|
|
6790
6790
|
r
|
|
6791
6791
|
] }) }) : null
|
|
6792
6792
|
);
|
|
@@ -7034,7 +7034,7 @@ function Xu(t) {
|
|
|
7034
7034
|
return Ng(ds("", null, null, null, [""], t = Rg(t), 0, [0], t));
|
|
7035
7035
|
}
|
|
7036
7036
|
function ds(t, e, r, n, a, i, s, o, l) {
|
|
7037
|
-
for (var c = 0, d = 0, u = s, f = 0, h = 0, g = 0, m = 1, p = 1, w = 1, b = 0, k = "",
|
|
7037
|
+
for (var c = 0, d = 0, u = s, f = 0, h = 0, g = 0, m = 1, p = 1, w = 1, b = 0, k = "", y = a, x = i, _ = n, T = k; p; )
|
|
7038
7038
|
switch (g = b, b = Ft()) {
|
|
7039
7039
|
case 40:
|
|
7040
7040
|
if (g != 108 && ot(T, u - 1) == 58) {
|
|
@@ -7080,15 +7080,15 @@ function ds(t, e, r, n, a, i, s, o, l) {
|
|
|
7080
7080
|
case 59:
|
|
7081
7081
|
T += ";";
|
|
7082
7082
|
default:
|
|
7083
|
-
if (qi(_ = Gu(T, e, r, c, d, a, o, k,
|
|
7083
|
+
if (qi(_ = Gu(T, e, r, c, d, a, o, k, y = [], x = [], u), i), b === 123)
|
|
7084
7084
|
if (d === 0)
|
|
7085
|
-
ds(T, e, _, _,
|
|
7085
|
+
ds(T, e, _, _, y, i, u, o, x);
|
|
7086
7086
|
else
|
|
7087
7087
|
switch (f === 99 && ot(T, 3) === 110 ? 100 : f) {
|
|
7088
7088
|
case 100:
|
|
7089
7089
|
case 109:
|
|
7090
7090
|
case 115:
|
|
7091
|
-
ds(t, _, _, n && qi(Gu(t, _, _, 0, 0, a, o, k, a,
|
|
7091
|
+
ds(t, _, _, n && qi(Gu(t, _, _, 0, 0, a, o, k, a, y = [], u), x), a, x, u, o, n ? y : x);
|
|
7092
7092
|
break;
|
|
7093
7093
|
default:
|
|
7094
7094
|
ds(T, _, _, _, [""], x, 0, o, x);
|
|
@@ -7411,9 +7411,9 @@ var rk = function(e, r, n, a) {
|
|
|
7411
7411
|
If multiple caches share the same key they might "fight" for each other's style elements.`);
|
|
7412
7412
|
if (us && r === "css") {
|
|
7413
7413
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
7414
|
-
Array.prototype.forEach.call(n, function(
|
|
7415
|
-
var x =
|
|
7416
|
-
x.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
7414
|
+
Array.prototype.forEach.call(n, function(y) {
|
|
7415
|
+
var x = y.getAttribute("data-emotion");
|
|
7416
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
7417
7417
|
});
|
|
7418
7418
|
}
|
|
7419
7419
|
var a = e.stylisPlugins || ak;
|
|
@@ -7424,10 +7424,10 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
7424
7424
|
// this means we will ignore elements which don't have a space in them which
|
|
7425
7425
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
7426
7426
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
7427
|
-
function(
|
|
7428
|
-
for (var x =
|
|
7427
|
+
function(y) {
|
|
7428
|
+
for (var x = y.getAttribute("data-emotion").split(" "), _ = 1; _ < x.length; _++)
|
|
7429
7429
|
i[x[_]] = !0;
|
|
7430
|
-
o.push(
|
|
7430
|
+
o.push(y);
|
|
7431
7431
|
}
|
|
7432
7432
|
));
|
|
7433
7433
|
var l, c = [G1, K1];
|
|
@@ -7436,10 +7436,10 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
7436
7436
|
return k.compat;
|
|
7437
7437
|
}
|
|
7438
7438
|
}), tk), us) {
|
|
7439
|
-
var d, u = [Qu, process.env.NODE_ENV !== "production" ? function(
|
|
7440
|
-
|
|
7441
|
-
} : Y1(function(
|
|
7442
|
-
d.insert(
|
|
7439
|
+
var d, u = [Qu, process.env.NODE_ENV !== "production" ? function(y) {
|
|
7440
|
+
y.root || (y.return ? d.insert(y.return) : y.value && y.type !== vc && d.insert(y.value + "{}"));
|
|
7441
|
+
} : Y1(function(y) {
|
|
7442
|
+
d.insert(y);
|
|
7443
7443
|
})], f = Ju(c.concat(a, u)), h = function(x) {
|
|
7444
7444
|
return On(Xu(x), f);
|
|
7445
7445
|
};
|
|
@@ -8114,15 +8114,15 @@ You may have forgotten to import it.`);
|
|
|
8114
8114
|
process.env.NODE_ENV !== "production" && d[0][h] === void 0 && console.error(pf), u.push(d[h], d[0][h]);
|
|
8115
8115
|
}
|
|
8116
8116
|
var g = Oc(function(m, p, w) {
|
|
8117
|
-
var b = c && m.as || a, k = "",
|
|
8117
|
+
var b = c && m.as || a, k = "", y = [], x = m;
|
|
8118
8118
|
if (m.theme == null) {
|
|
8119
8119
|
x = {};
|
|
8120
8120
|
for (var _ in m)
|
|
8121
8121
|
x[_] = m[_];
|
|
8122
8122
|
x.theme = rt(Sc);
|
|
8123
8123
|
}
|
|
8124
|
-
typeof m.className == "string" ? k = kk(p.registered,
|
|
8125
|
-
var T = Ik(u.concat(
|
|
8124
|
+
typeof m.className == "string" ? k = kk(p.registered, y, m.className) : m.className != null && (k = m.className + " ");
|
|
8125
|
+
var T = Ik(u.concat(y), p.registered, x);
|
|
8126
8126
|
k += p.key + "-" + T.name, s !== void 0 && (k += " " + s);
|
|
8127
8127
|
var S = c && o === void 0 ? gf(b) : l, C = {};
|
|
8128
8128
|
for (var D in m)
|
|
@@ -8571,7 +8571,7 @@ var et = Ug.exports, jk = ee.createContext(void 0), Hk = function() {
|
|
|
8571
8571
|
rtl: !1,
|
|
8572
8572
|
transitionDuration: 300
|
|
8573
8573
|
}), Gk = ee.forwardRef(function(t, e) {
|
|
8574
|
-
var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, w = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, b = t.transitionDuration, k = b === void 0 ? 300 : b,
|
|
8574
|
+
var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, w = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, b = t.transitionDuration, k = b === void 0 ? 300 : b, y = t.image, x = t.rtl, _ = t.rootStyles, T = Tn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), S = function() {
|
|
8575
8575
|
if (m)
|
|
8576
8576
|
return "(max-width: ".concat(m, ")");
|
|
8577
8577
|
if (g)
|
|
@@ -8599,7 +8599,7 @@ var et = Ug.exports, jk = ee.createContext(void 0), Hk = function() {
|
|
|
8599
8599
|
qk,
|
|
8600
8600
|
At({ ref: e, "data-testid": "".concat(He.root, "-test-id"), rtl: x, rootStyles: _, width: l, collapsedWidth: d, transitionDuration: k, className: et(He.root, (r = {}, r[He.collapsed] = I, r[He.toggled] = W, r[He.broken] = D, r[He.rtl] = x, r), f) }, T),
|
|
8601
8601
|
ee.createElement(Uk, { "data-testid": "".concat(He.container, "-test-id"), className: He.container, backgroundColor: w }, h),
|
|
8602
|
-
|
|
8602
|
+
y && ee.createElement(Xk, { "data-testid": "".concat(He.image, "-test-id"), src: y, alt: "sidebar background", className: He.image }),
|
|
8603
8603
|
D && W && ee.createElement(Yk, { "data-testid": "".concat(He.backdrop, "-test-id"), role: "button", tabIndex: 0, "aria-label": "backdrop", onClick: B, onKeyPress: B, className: He.backdrop })
|
|
8604
8604
|
)
|
|
8605
8605
|
);
|
|
@@ -9078,7 +9078,7 @@ var k_ = function(e, r) {
|
|
|
9078
9078
|
function __(t) {
|
|
9079
9079
|
var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, s = r.modifiersData.popperOffsets, o = Xt(r.placement), l = Tc(o), c = [St, Bt].indexOf(o) >= 0, d = c ? "height" : "width";
|
|
9080
9080
|
if (!(!i || !s)) {
|
|
9081
|
-
var u = k_(a.padding, r), f = Ec(i), h = l === "y" ? Ot : St, g = l === "y" ? Ht : Bt, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], w = yi(i), b = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, k = m / 2 - p / 2,
|
|
9081
|
+
var u = k_(a.padding, r), f = Ec(i), h = l === "y" ? Ot : St, g = l === "y" ? Ht : Bt, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], w = yi(i), b = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, k = m / 2 - p / 2, y = u[h], x = b - f[d] - u[g], _ = b / 2 - f[d] / 2 + k, T = Xa(y, _, x), S = l;
|
|
9082
9082
|
r.modifiersData[n] = (e = {}, e[S] = T, e.centerOffset = T - _, e);
|
|
9083
9083
|
}
|
|
9084
9084
|
}
|
|
@@ -9126,11 +9126,11 @@ function Nf(t) {
|
|
|
9126
9126
|
y: m
|
|
9127
9127
|
};
|
|
9128
9128
|
h = p.x, m = p.y;
|
|
9129
|
-
var w = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), k = St,
|
|
9129
|
+
var w = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), k = St, y = Ot, x = window;
|
|
9130
9130
|
if (c) {
|
|
9131
9131
|
var _ = yi(r), T = "clientHeight", S = "clientWidth";
|
|
9132
9132
|
if (_ === Vt(r) && (_ = Zr(r), Qt(_).position !== "static" && o === "absolute" && (T = "scrollHeight", S = "scrollWidth")), _ = _, a === Ot || (a === St || a === Bt) && i === ci) {
|
|
9133
|
-
|
|
9133
|
+
y = Ht;
|
|
9134
9134
|
var C = u && _ === x && x.visualViewport ? x.visualViewport.height : (
|
|
9135
9135
|
// $FlowFixMe[prop-missing]
|
|
9136
9136
|
_[T]
|
|
@@ -9157,9 +9157,9 @@ function Nf(t) {
|
|
|
9157
9157
|
};
|
|
9158
9158
|
if (h = A.x, m = A.y, l) {
|
|
9159
9159
|
var L;
|
|
9160
|
-
return Object.assign({}, z, (L = {}, L[
|
|
9160
|
+
return Object.assign({}, z, (L = {}, L[y] = b ? "0" : "", L[k] = w ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", L));
|
|
9161
9161
|
}
|
|
9162
|
-
return Object.assign({}, z, (e = {}, e[
|
|
9162
|
+
return Object.assign({}, z, (e = {}, e[y] = b ? m + "px" : "", e[k] = w ? h + "px" : "", e.transform = "", e));
|
|
9163
9163
|
}
|
|
9164
9164
|
function C_(t) {
|
|
9165
9165
|
var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, s = i === void 0 ? !0 : i, o = r.roundOffsets, l = o === void 0 ? !0 : o;
|
|
@@ -9368,7 +9368,7 @@ function l0(t) {
|
|
|
9368
9368
|
}
|
|
9369
9369
|
function di(t, e) {
|
|
9370
9370
|
e === void 0 && (e = {});
|
|
9371
|
-
var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, o = r.boundary, l = o === void 0 ? i_ : o, c = r.rootBoundary, d = c === void 0 ? e0 : c, u = r.elementContext, f = u === void 0 ? Ma : u, h = r.altBoundary, g = h === void 0 ? !1 : h, m = r.padding, p = m === void 0 ? 0 : m, w = i0(typeof p != "number" ? p : s0(p, bi)), b = f === Ma ? s_ : Ma, k = t.rects.popper,
|
|
9371
|
+
var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, o = r.boundary, l = o === void 0 ? i_ : o, c = r.rootBoundary, d = c === void 0 ? e0 : c, u = r.elementContext, f = u === void 0 ? Ma : u, h = r.altBoundary, g = h === void 0 ? !1 : h, m = r.padding, p = m === void 0 ? 0 : m, w = i0(typeof p != "number" ? p : s0(p, bi)), b = f === Ma ? s_ : Ma, k = t.rects.popper, y = t.elements[g ? b : f], x = W_(Pn(y) ? y : y.contextElement || Zr(t.elements.popper), l, d, s), _ = sa(t.elements.reference), T = l0({
|
|
9372
9372
|
reference: _,
|
|
9373
9373
|
element: k,
|
|
9374
9374
|
placement: a
|
|
@@ -9416,7 +9416,7 @@ function z_(t) {
|
|
|
9416
9416
|
function j_(t) {
|
|
9417
9417
|
var e = t.state, r = t.options, n = t.name;
|
|
9418
9418
|
if (!e.modifiersData[n]._skip) {
|
|
9419
|
-
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, w = Xt(p), b = w === p, k = l || (b || !g ? [fs(p)] : z_(p)),
|
|
9419
|
+
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, w = Xt(p), b = w === p, k = l || (b || !g ? [fs(p)] : z_(p)), y = [p].concat(k).reduce(function(P, O) {
|
|
9420
9420
|
return P.concat(Xt(O) === mo ? $_(e, {
|
|
9421
9421
|
placement: O,
|
|
9422
9422
|
boundary: d,
|
|
@@ -9425,8 +9425,8 @@ function j_(t) {
|
|
|
9425
9425
|
flipVariations: g,
|
|
9426
9426
|
allowedAutoPlacements: m
|
|
9427
9427
|
}) : O);
|
|
9428
|
-
}, []), x = e.rects.reference, _ = e.rects.popper, T = /* @__PURE__ */ new Map(), S = !0, C =
|
|
9429
|
-
var z =
|
|
9428
|
+
}, []), x = e.rects.reference, _ = e.rects.popper, T = /* @__PURE__ */ new Map(), S = !0, C = y[0], D = 0; D < y.length; D++) {
|
|
9429
|
+
var z = y[D], A = Xt(z), L = oa(z) === aa, M = [Ot, Ht].indexOf(A) >= 0, I = M ? "width" : "height", W = di(e, {
|
|
9430
9430
|
placement: z,
|
|
9431
9431
|
boundary: d,
|
|
9432
9432
|
rootBoundary: u,
|
|
@@ -9445,7 +9445,7 @@ function j_(t) {
|
|
|
9445
9445
|
}
|
|
9446
9446
|
if (S)
|
|
9447
9447
|
for (var E = g ? 3 : 1, j = function(O) {
|
|
9448
|
-
var F =
|
|
9448
|
+
var F = y.find(function(X) {
|
|
9449
9449
|
var q = T.get(X);
|
|
9450
9450
|
if (q)
|
|
9451
9451
|
return q.slice(0, O).every(function(G) {
|
|
@@ -9559,7 +9559,7 @@ function Q_(t) {
|
|
|
9559
9559
|
rootBoundary: c,
|
|
9560
9560
|
padding: u,
|
|
9561
9561
|
altBoundary: d
|
|
9562
|
-
}), w = Xt(e.placement), b = oa(e.placement), k = !b,
|
|
9562
|
+
}), w = Xt(e.placement), b = oa(e.placement), k = !b, y = Tc(w), x = K_(y), _ = e.modifiersData.popperOffsets, T = e.rects.reference, S = e.rects.popper, C = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
9563
9563
|
placement: e.placement
|
|
9564
9564
|
})) : m, D = typeof C == "number" ? {
|
|
9565
9565
|
mainAxis: C,
|
|
@@ -9573,14 +9573,14 @@ function Q_(t) {
|
|
|
9573
9573
|
};
|
|
9574
9574
|
if (_) {
|
|
9575
9575
|
if (i) {
|
|
9576
|
-
var L, M =
|
|
9576
|
+
var L, M = y === "y" ? Ot : St, I = y === "y" ? Ht : Bt, W = y === "y" ? "height" : "width", B = _[y], U = B + p[M], J = B - p[I], E = h ? -S[W] / 2 : 0, j = b === aa ? T[W] : S[W], N = b === aa ? -S[W] : -T[W], R = e.elements.arrow, P = h && R ? Ec(R) : {
|
|
9577
9577
|
width: 0,
|
|
9578
9578
|
height: 0
|
|
9579
|
-
}, O = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : a0(), F = O[M], X = O[I], q = Xa(0, T[W], P[W]), G = k ? T[W] / 2 - E - q - F - D.mainAxis : j - q - F - D.mainAxis, Z = k ? -T[W] / 2 + E + q + X + D.mainAxis : N + q + X + D.mainAxis, ne = e.elements.arrow && yi(e.elements.arrow), H = ne ?
|
|
9580
|
-
_[
|
|
9579
|
+
}, O = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : a0(), F = O[M], X = O[I], q = Xa(0, T[W], P[W]), G = k ? T[W] / 2 - E - q - F - D.mainAxis : j - q - F - D.mainAxis, Z = k ? -T[W] / 2 + E + q + X + D.mainAxis : N + q + X + D.mainAxis, ne = e.elements.arrow && yi(e.elements.arrow), H = ne ? y === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ae = (L = z == null ? void 0 : z[y]) != null ? L : 0, re = B + G - ae - H, le = B + Z - ae, fe = Xa(h ? Is(U, re) : U, B, h ? Sn(J, le) : J);
|
|
9580
|
+
_[y] = fe, A[y] = fe - B;
|
|
9581
9581
|
}
|
|
9582
9582
|
if (o) {
|
|
9583
|
-
var de, ie =
|
|
9583
|
+
var de, ie = y === "x" ? Ot : St, $e = y === "x" ? Ht : Bt, ge = _[x], Fe = x === "y" ? "height" : "width", je = ge + p[ie], Ye = ge - p[$e], Et = [Ot, St].indexOf(w) !== -1, Tt = (de = z == null ? void 0 : z[x]) != null ? de : 0, Pt = Et ? je : ge - T[Fe] - S[Fe] - Tt + D.altAxis, Wr = Et ? ge + T[Fe] + S[Fe] - Tt - D.altAxis : Ye, Rt = h && Et ? w_(Pt, ge, Wr) : Xa(h ? Pt : je, ge, h ? Wr : Ye);
|
|
9584
9584
|
_[x] = Rt, A[x] = Rt - ge;
|
|
9585
9585
|
}
|
|
9586
9586
|
e.modifiersData[n] = A;
|
|
@@ -9771,11 +9771,11 @@ function uO(t) {
|
|
|
9771
9771
|
if (d.orderedModifiers = k.filter(function(z) {
|
|
9772
9772
|
return z.enabled;
|
|
9773
9773
|
}), process.env.NODE_ENV !== "production") {
|
|
9774
|
-
var
|
|
9774
|
+
var y = lO([].concat(k, d.options.modifiers), function(z) {
|
|
9775
9775
|
var A = z.name;
|
|
9776
9776
|
return A;
|
|
9777
9777
|
});
|
|
9778
|
-
if (oO(
|
|
9778
|
+
if (oO(y), Xt(d.options.placement) === mo) {
|
|
9779
9779
|
var x = d.orderedModifiers.find(function(z) {
|
|
9780
9780
|
var A = z.name;
|
|
9781
9781
|
return A === "flip";
|
|
@@ -9807,8 +9807,8 @@ function uO(t) {
|
|
|
9807
9807
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(z) {
|
|
9808
9808
|
return d.modifiersData[z.name] = Object.assign({}, z.data);
|
|
9809
9809
|
});
|
|
9810
|
-
for (var
|
|
9811
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
9810
|
+
for (var y = 0, x = 0; x < d.orderedModifiers.length; x++) {
|
|
9811
|
+
if (process.env.NODE_ENV !== "production" && (y += 1, y > 100)) {
|
|
9812
9812
|
console.error(dO);
|
|
9813
9813
|
break;
|
|
9814
9814
|
}
|
|
@@ -9844,9 +9844,9 @@ function uO(t) {
|
|
|
9844
9844
|
});
|
|
9845
9845
|
function g() {
|
|
9846
9846
|
d.orderedModifiers.forEach(function(p) {
|
|
9847
|
-
var w = p.name, b = p.options, k = b === void 0 ? {} : b,
|
|
9848
|
-
if (typeof
|
|
9849
|
-
var x =
|
|
9847
|
+
var w = p.name, b = p.options, k = b === void 0 ? {} : b, y = p.effect;
|
|
9848
|
+
if (typeof y == "function") {
|
|
9849
|
+
var x = y({
|
|
9850
9850
|
state: d,
|
|
9851
9851
|
name: w,
|
|
9852
9852
|
instance: h,
|
|
@@ -9982,7 +9982,7 @@ var fO = [P_, G_, E_, y_, U_, H_, J_, S_, Y_], hO = /* @__PURE__ */ uO({
|
|
|
9982
9982
|
var e = t.buttonStyles;
|
|
9983
9983
|
return e;
|
|
9984
9984
|
}), bO = function(t, e) {
|
|
9985
|
-
var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, w = t.component, b = t.onOpenChange, k = t.onClick,
|
|
9985
|
+
var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, w = t.component, b = t.onOpenChange, k = t.onClick, y = t.onKeyUp, x = Tn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), _ = ee.useContext(Ns), T = ee.useContext(go), S = T.collapsed, C = T.rtl, D = T.transitionDuration, z = Mc(), A = z.renderExpandIcon, L = z.closeOnClick, M = z.menuItemStyles, I = z.transitionDuration, W = ee.useState(!!u), B = W[0], U = W[1], J = ee.useState(!1), E = J[0], j = J[1], N = ee.useState(!1), R = N[0], P = N[1], O = ee.useRef(null), F = ee.useRef(null), X = ee.useRef(), q = gO({
|
|
9986
9986
|
level: _,
|
|
9987
9987
|
buttonRef: O,
|
|
9988
9988
|
contentRef: F
|
|
@@ -10009,7 +10009,7 @@ var fO = [P_, G_, E_, y_, U_, H_, J_, S_, Y_], hO = /* @__PURE__ */ uO({
|
|
|
10009
10009
|
var H = function(fe) {
|
|
10010
10010
|
k == null || k(fe), ne();
|
|
10011
10011
|
}, ae = function(fe) {
|
|
10012
|
-
|
|
10012
|
+
y == null || y(fe), fe.key === "Enter" && ne();
|
|
10013
10013
|
}, re = function(fe) {
|
|
10014
10014
|
if (M) {
|
|
10015
10015
|
var de = { level: _, disabled: m, active: h, isSubmenu: !0, open: d ?? B }, ie = M.root, $e = M.button, ge = M.label, Fe = M.icon, je = M.prefix, Ye = M.suffix, Et = M.subMenuContent, Tt = M.SubMenuExpandIcon;
|
|
@@ -10127,9 +10127,9 @@ var Hf, yO = it.li(Bf || (Bf = pt([`
|
|
|
10127
10127
|
var e = t.buttonStyles;
|
|
10128
10128
|
return e;
|
|
10129
10129
|
}), vO = function(t, e) {
|
|
10130
|
-
var r, n = t.children, a = t.icon, i = t.className, s = t.prefix, o = t.suffix, l = t.active, c = l === void 0 ? !1 : l, d = t.disabled, u = d === void 0 ? !1 : d, f = t.component, h = t.rootStyles, g = Tn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ee.useContext(Ns), p = ee.useContext(go), w = p.collapsed, b = p.rtl, k = p.transitionDuration,
|
|
10131
|
-
if (
|
|
10132
|
-
var S = { level: m, disabled: u, active: c, isSubmenu: !1 }, C =
|
|
10130
|
+
var r, n = t.children, a = t.icon, i = t.className, s = t.prefix, o = t.suffix, l = t.active, c = l === void 0 ? !1 : l, d = t.disabled, u = d === void 0 ? !1 : d, f = t.component, h = t.rootStyles, g = Tn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ee.useContext(Ns), p = ee.useContext(go), w = p.collapsed, b = p.rtl, k = p.transitionDuration, y = Mc().menuItemStyles, x = function(T) {
|
|
10131
|
+
if (y) {
|
|
10132
|
+
var S = { level: m, disabled: u, active: c, isSubmenu: !1 }, C = y.root, D = y.button, z = y.label, A = y.icon, L = y.prefix, M = y.suffix;
|
|
10133
10133
|
switch (T) {
|
|
10134
10134
|
case "root":
|
|
10135
10135
|
return typeof C == "function" ? C(S) : C;
|
|
@@ -10165,7 +10165,7 @@ const wO = {}, u0 = Oe(
|
|
|
10165
10165
|
(t, e) => {
|
|
10166
10166
|
const { imageUrl: r, icon: n, title: a, description: i } = t;
|
|
10167
10167
|
return /* @__PURE__ */ Q("div", { className: `${wO.Card} border px-3.5 py-7`, ref: e, children: [
|
|
10168
|
-
r ? /* @__PURE__ */
|
|
10168
|
+
r ? /* @__PURE__ */ v(
|
|
10169
10169
|
Cn,
|
|
10170
10170
|
{
|
|
10171
10171
|
classIm: "mx-auto",
|
|
@@ -10174,9 +10174,9 @@ const wO = {}, u0 = Oe(
|
|
|
10174
10174
|
width: 74,
|
|
10175
10175
|
height: 74
|
|
10176
10176
|
}
|
|
10177
|
-
) : n ? /* @__PURE__ */
|
|
10178
|
-
/* @__PURE__ */
|
|
10179
|
-
/* @__PURE__ */
|
|
10177
|
+
) : n ? /* @__PURE__ */ v("div", { className: "flex justify-center", children: /* @__PURE__ */ v(n, { size: 74 }) }) : null,
|
|
10178
|
+
/* @__PURE__ */ v("h3", { className: "my-3 font-bold", children: a }),
|
|
10179
|
+
/* @__PURE__ */ v("p", { children: i })
|
|
10180
10180
|
] });
|
|
10181
10181
|
}
|
|
10182
10182
|
);
|
|
@@ -10200,7 +10200,7 @@ const BN = ({
|
|
|
10200
10200
|
}, m = (p) => {
|
|
10201
10201
|
p.action ? p.action() : p.href && (p.target === "_blank" ? window.open(p.href, "_blank") : window.location.href = p.href);
|
|
10202
10202
|
};
|
|
10203
|
-
return /* @__PURE__ */
|
|
10203
|
+
return /* @__PURE__ */ v("div", { className: `fixed left-0 top-0 z-40 h-full ${o}`, children: /* @__PURE__ */ Q(
|
|
10204
10204
|
"div",
|
|
10205
10205
|
{
|
|
10206
10206
|
className: "flex flex-col",
|
|
@@ -10221,7 +10221,7 @@ const BN = ({
|
|
|
10221
10221
|
}
|
|
10222
10222
|
},
|
|
10223
10223
|
children: [
|
|
10224
|
-
/* @__PURE__ */
|
|
10224
|
+
/* @__PURE__ */ v("div", { className: "mb-2 mt-5", children: /* @__PURE__ */ v("a", { href: "/", children: /* @__PURE__ */ v(
|
|
10225
10225
|
Cn,
|
|
10226
10226
|
{
|
|
10227
10227
|
classIm: "mx-3",
|
|
@@ -10231,7 +10231,7 @@ const BN = ({
|
|
|
10231
10231
|
height: t.height
|
|
10232
10232
|
}
|
|
10233
10233
|
) }) }),
|
|
10234
|
-
/* @__PURE__ */
|
|
10234
|
+
/* @__PURE__ */ v(Jk, { children: e.map((p) => /* @__PURE__ */ v(
|
|
10235
10235
|
xO,
|
|
10236
10236
|
{
|
|
10237
10237
|
icon: p.icon,
|
|
@@ -10251,31 +10251,31 @@ const BN = ({
|
|
|
10251
10251
|
},
|
|
10252
10252
|
p.id
|
|
10253
10253
|
)) }),
|
|
10254
|
-
n && /* @__PURE__ */
|
|
10254
|
+
n && /* @__PURE__ */ v("div", { className: "mt-auto w-full cursor-pointer self-end p-4", children: /* @__PURE__ */ v(
|
|
10255
10255
|
"div",
|
|
10256
10256
|
{
|
|
10257
10257
|
className: "flex justify-center rounded-md bg-white p-2",
|
|
10258
10258
|
onClick: n,
|
|
10259
|
-
children: /* @__PURE__ */
|
|
10259
|
+
children: /* @__PURE__ */ v("button", { className: "text-3xl", style: { color: s }, children: /* @__PURE__ */ v(O1, {}) })
|
|
10260
10260
|
}
|
|
10261
10261
|
) })
|
|
10262
10262
|
]
|
|
10263
10263
|
}
|
|
10264
10264
|
),
|
|
10265
|
-
r.length > 0 && /* @__PURE__ */
|
|
10265
|
+
r.length > 0 && /* @__PURE__ */ v(
|
|
10266
10266
|
S1,
|
|
10267
10267
|
{
|
|
10268
10268
|
width: "40%",
|
|
10269
10269
|
isOpen: d === "campaigns",
|
|
10270
10270
|
onClose: () => u(null),
|
|
10271
10271
|
children: /* @__PURE__ */ Q("div", { className: "flex flex-col px-10 pb-5", children: [
|
|
10272
|
-
/* @__PURE__ */
|
|
10273
|
-
/* @__PURE__ */
|
|
10272
|
+
/* @__PURE__ */ v("h2", { className: "mb-3 text-center font-bold", children: "Selecciona el tipo de campaña que quieres crear" }),
|
|
10273
|
+
/* @__PURE__ */ v("div", { className: "flex", children: r.map((p) => /* @__PURE__ */ v(
|
|
10274
10274
|
"div",
|
|
10275
10275
|
{
|
|
10276
10276
|
className: "flex w-3/6 p-2",
|
|
10277
10277
|
onClick: () => m(p),
|
|
10278
|
-
children: /* @__PURE__ */
|
|
10278
|
+
children: /* @__PURE__ */ v(
|
|
10279
10279
|
u0,
|
|
10280
10280
|
{
|
|
10281
10281
|
imageUrl: p.imageUrl,
|
|
@@ -10646,7 +10646,7 @@ function oS(t) {
|
|
|
10646
10646
|
return QO.test(t);
|
|
10647
10647
|
}
|
|
10648
10648
|
function lS() {
|
|
10649
|
-
const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), w = Ne("opacity"), b = Ne("padding"), k = Ne("saturate"),
|
|
10649
|
+
const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), w = Ne("opacity"), b = Ne("padding"), k = Ne("saturate"), y = Ne("scale"), x = Ne("sepia"), _ = Ne("skew"), T = Ne("space"), S = Ne("translate"), C = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", he, e], A = () => [he, e], L = () => ["", wr, zr], M = () => ["auto", wn, he], I = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", he], E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [wn, Xi], N = () => [wn, he];
|
|
10650
10650
|
return {
|
|
10651
10651
|
cacheSize: 500,
|
|
10652
10652
|
separator: ":",
|
|
@@ -12270,21 +12270,21 @@ function lS() {
|
|
|
12270
12270
|
* @see https://tailwindcss.com/docs/scale
|
|
12271
12271
|
*/
|
|
12272
12272
|
scale: [{
|
|
12273
|
-
scale: [
|
|
12273
|
+
scale: [y]
|
|
12274
12274
|
}],
|
|
12275
12275
|
/**
|
|
12276
12276
|
* Scale X
|
|
12277
12277
|
* @see https://tailwindcss.com/docs/scale
|
|
12278
12278
|
*/
|
|
12279
12279
|
"scale-x": [{
|
|
12280
|
-
"scale-x": [
|
|
12280
|
+
"scale-x": [y]
|
|
12281
12281
|
}],
|
|
12282
12282
|
/**
|
|
12283
12283
|
* Scale Y
|
|
12284
12284
|
* @see https://tailwindcss.com/docs/scale
|
|
12285
12285
|
*/
|
|
12286
12286
|
"scale-y": [{
|
|
12287
|
-
"scale-y": [
|
|
12287
|
+
"scale-y": [y]
|
|
12288
12288
|
}],
|
|
12289
12289
|
/**
|
|
12290
12290
|
* Rotate
|
|
@@ -14042,7 +14042,7 @@ const O0 = ({
|
|
|
14042
14042
|
...n
|
|
14043
14043
|
}) => {
|
|
14044
14044
|
const { isOpen: a } = _0(), i = te(ue().accordion.content, r);
|
|
14045
|
-
return /* @__PURE__ */
|
|
14045
|
+
return /* @__PURE__ */ v(
|
|
14046
14046
|
"div",
|
|
14047
14047
|
{
|
|
14048
14048
|
className: Y(i.base, e),
|
|
@@ -14058,7 +14058,7 @@ const O0 = ({
|
|
|
14058
14058
|
isOpen: n,
|
|
14059
14059
|
setOpen: () => a(!n)
|
|
14060
14060
|
} : e;
|
|
14061
|
-
return /* @__PURE__ */
|
|
14061
|
+
return /* @__PURE__ */ v(k0.Provider, { value: i, children: t });
|
|
14062
14062
|
}, D0 = ({
|
|
14063
14063
|
as: t = "h2",
|
|
14064
14064
|
children: e,
|
|
@@ -14075,8 +14075,8 @@ const O0 = ({
|
|
|
14075
14075
|
type: "button",
|
|
14076
14076
|
...a,
|
|
14077
14077
|
children: [
|
|
14078
|
-
/* @__PURE__ */
|
|
14079
|
-
i && /* @__PURE__ */
|
|
14078
|
+
/* @__PURE__ */ v(t, { className: d.heading, "data-testid": "flowbite-accordion-heading", children: e }),
|
|
14079
|
+
i && /* @__PURE__ */ v(
|
|
14080
14080
|
i,
|
|
14081
14081
|
{
|
|
14082
14082
|
"aria-hidden": !0,
|
|
@@ -14110,7 +14110,7 @@ const O0 = ({
|
|
|
14110
14110
|
),
|
|
14111
14111
|
[t, e, r, n, l]
|
|
14112
14112
|
), u = te(ue().accordion.root, s);
|
|
14113
|
-
return /* @__PURE__ */
|
|
14113
|
+
return /* @__PURE__ */ v(
|
|
14114
14114
|
"div",
|
|
14115
14115
|
{
|
|
14116
14116
|
className: Y(u.base, u.flush[n ? "on" : "off"], i),
|
|
@@ -14131,7 +14131,7 @@ Object.assign(M0, {
|
|
|
14131
14131
|
});
|
|
14132
14132
|
const C0 = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
14133
14133
|
const a = te(ue().avatar.group, r);
|
|
14134
|
-
return /* @__PURE__ */
|
|
14134
|
+
return /* @__PURE__ */ v("div", { "data-testid": "avatar-group-element", className: Y(a.base, e), ...n, children: t });
|
|
14135
14135
|
};
|
|
14136
14136
|
C0.displayName = "Avatar.Group";
|
|
14137
14137
|
const E0 = ({
|
|
@@ -14178,7 +14178,7 @@ const T0 = ({
|
|
|
14178
14178
|
};
|
|
14179
14179
|
return /* @__PURE__ */ Q("div", { className: Y(g.root.base, n), "data-testid": "flowbite-avatar", ...h, children: [
|
|
14180
14180
|
/* @__PURE__ */ Q("div", { className: "relative", children: [
|
|
14181
|
-
i ? typeof i == "string" ? /* @__PURE__ */
|
|
14181
|
+
i ? typeof i == "string" ? /* @__PURE__ */ v("img", { alt: t, src: i, ...p }) : i({ alt: t, ...p }) : s ? /* @__PURE__ */ v(
|
|
14182
14182
|
"div",
|
|
14183
14183
|
{
|
|
14184
14184
|
className: Y(
|
|
@@ -14191,19 +14191,19 @@ const T0 = ({
|
|
|
14191
14191
|
o && g.root.rounded
|
|
14192
14192
|
),
|
|
14193
14193
|
"data-testid": "flowbite-avatar-initials-placeholder",
|
|
14194
|
-
children: /* @__PURE__ */
|
|
14194
|
+
children: /* @__PURE__ */ v("span", { className: Y(g.root.initials.text), "data-testid": "flowbite-avatar-initials-placeholder-text", children: s })
|
|
14195
14195
|
}
|
|
14196
|
-
) : /* @__PURE__ */
|
|
14196
|
+
) : /* @__PURE__ */ v("div", { className: Y(m, g.root.img.off), "data-testid": "flowbite-avatar-img", children: /* @__PURE__ */ v(
|
|
14197
14197
|
"svg",
|
|
14198
14198
|
{
|
|
14199
14199
|
className: g.root.img.placeholder,
|
|
14200
14200
|
fill: "currentColor",
|
|
14201
14201
|
viewBox: "0 0 20 20",
|
|
14202
14202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14203
|
-
children: /* @__PURE__ */
|
|
14203
|
+
children: /* @__PURE__ */ v("path", { fillRule: "evenodd", d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z", clipRule: "evenodd" })
|
|
14204
14204
|
}
|
|
14205
14205
|
) }),
|
|
14206
|
-
d && /* @__PURE__ */
|
|
14206
|
+
d && /* @__PURE__ */ v(
|
|
14207
14207
|
"span",
|
|
14208
14208
|
{
|
|
14209
14209
|
"data-testid": "flowbite-avatar-status",
|
|
@@ -14215,7 +14215,7 @@ const T0 = ({
|
|
|
14215
14215
|
}
|
|
14216
14216
|
)
|
|
14217
14217
|
] }),
|
|
14218
|
-
r && /* @__PURE__ */
|
|
14218
|
+
r && /* @__PURE__ */ v("div", { children: r })
|
|
14219
14219
|
] });
|
|
14220
14220
|
};
|
|
14221
14221
|
T0.displayName = "Avatar";
|
|
@@ -14246,12 +14246,12 @@ const P0 = ({
|
|
|
14246
14246
|
"data-testid": "flowbite-badge",
|
|
14247
14247
|
...o,
|
|
14248
14248
|
children: [
|
|
14249
|
-
n && /* @__PURE__ */
|
|
14250
|
-
t && /* @__PURE__ */
|
|
14249
|
+
n && /* @__PURE__ */ v(n, { "aria-hidden": !0, className: l.icon.size[a], "data-testid": "flowbite-badge-icon" }),
|
|
14250
|
+
t && /* @__PURE__ */ v("span", { children: t })
|
|
14251
14251
|
]
|
|
14252
14252
|
}
|
|
14253
14253
|
);
|
|
14254
|
-
return r ? /* @__PURE__ */
|
|
14254
|
+
return r ? /* @__PURE__ */ v("a", { className: l.root.href, href: r, children: /* @__PURE__ */ v(c, {}) }) : /* @__PURE__ */ v(c, {});
|
|
14255
14255
|
};
|
|
14256
14256
|
P0.displayName = "Badge";
|
|
14257
14257
|
const R0 = ({
|
|
@@ -14263,7 +14263,7 @@ const R0 = ({
|
|
|
14263
14263
|
...i
|
|
14264
14264
|
}) => {
|
|
14265
14265
|
const s = te(ue().spinner, a);
|
|
14266
|
-
return /* @__PURE__ */
|
|
14266
|
+
return /* @__PURE__ */ v("span", { role: "status", ...i, children: /* @__PURE__ */ Q(
|
|
14267
14267
|
"svg",
|
|
14268
14268
|
{
|
|
14269
14269
|
fill: "none",
|
|
@@ -14277,14 +14277,14 @@ const R0 = ({
|
|
|
14277
14277
|
t
|
|
14278
14278
|
),
|
|
14279
14279
|
children: [
|
|
14280
|
-
/* @__PURE__ */
|
|
14280
|
+
/* @__PURE__ */ v(
|
|
14281
14281
|
"path",
|
|
14282
14282
|
{
|
|
14283
14283
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
14284
14284
|
fill: "currentColor"
|
|
14285
14285
|
}
|
|
14286
14286
|
),
|
|
14287
|
-
/* @__PURE__ */
|
|
14287
|
+
/* @__PURE__ */ v(
|
|
14288
14288
|
"path",
|
|
14289
14289
|
{
|
|
14290
14290
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
@@ -14317,7 +14317,7 @@ const N0 = (t, e, r) => Qn.map(t, (n, a) => Oy(n) ? n.props.children ? ms(n, {
|
|
|
14317
14317
|
...i
|
|
14318
14318
|
}) => {
|
|
14319
14319
|
const s = no(() => N0(t, r, n), [t, r, n]), o = te(ue().buttonGroup, a);
|
|
14320
|
-
return /* @__PURE__ */
|
|
14320
|
+
return /* @__PURE__ */ v("div", { className: Y(o.base, e), role: "group", ...i, children: s });
|
|
14321
14321
|
};
|
|
14322
14322
|
I0.displayName = "Button.Group";
|
|
14323
14323
|
const A0 = Oe(
|
|
@@ -14340,41 +14340,41 @@ const A0 = Oe(
|
|
|
14340
14340
|
theme: m = {},
|
|
14341
14341
|
...p
|
|
14342
14342
|
}, w) => {
|
|
14343
|
-
const { buttonGroup: b, button: k } = ue(),
|
|
14344
|
-
return /* @__PURE__ */
|
|
14343
|
+
const { buttonGroup: b, button: k } = ue(), y = te(k, m), x = p;
|
|
14344
|
+
return /* @__PURE__ */ v(
|
|
14345
14345
|
Ac,
|
|
14346
14346
|
{
|
|
14347
14347
|
ref: w,
|
|
14348
14348
|
disabled: n,
|
|
14349
14349
|
className: Y(
|
|
14350
|
-
|
|
14351
|
-
n &&
|
|
14352
|
-
!l && !c &&
|
|
14353
|
-
l && !c &&
|
|
14354
|
-
!l && c &&
|
|
14355
|
-
u && (
|
|
14356
|
-
|
|
14357
|
-
a &&
|
|
14350
|
+
y.base,
|
|
14351
|
+
n && y.disabled,
|
|
14352
|
+
!l && !c && y.color[r],
|
|
14353
|
+
l && !c && y.gradientDuoTone[l],
|
|
14354
|
+
!l && c && y.gradient[c],
|
|
14355
|
+
u && (y.outline.color[r] ?? y.outline.color.default),
|
|
14356
|
+
y.pill[f ? "on" : "off"],
|
|
14357
|
+
a && y.fullSized,
|
|
14358
14358
|
b.position[h],
|
|
14359
14359
|
e
|
|
14360
14360
|
),
|
|
14361
14361
|
...x,
|
|
14362
|
-
children: /* @__PURE__ */
|
|
14362
|
+
children: /* @__PURE__ */ v(
|
|
14363
14363
|
"span",
|
|
14364
14364
|
{
|
|
14365
14365
|
className: Y(
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14370
|
-
u && !
|
|
14371
|
-
i &&
|
|
14372
|
-
i &&
|
|
14373
|
-
|
|
14366
|
+
y.inner.base,
|
|
14367
|
+
y.outline[u ? "on" : "off"],
|
|
14368
|
+
y.outline.pill[u && f ? "on" : "off"],
|
|
14369
|
+
y.size[g],
|
|
14370
|
+
u && !y.outline.color[r] && y.inner.outline,
|
|
14371
|
+
i && y.isProcessing,
|
|
14372
|
+
i && y.inner.isProcessingPadding[g],
|
|
14373
|
+
y.inner.position[h]
|
|
14374
14374
|
),
|
|
14375
14375
|
children: /* @__PURE__ */ Q(Zt, { children: [
|
|
14376
|
-
i && /* @__PURE__ */
|
|
14377
|
-
typeof t < "u" ? t : /* @__PURE__ */
|
|
14376
|
+
i && /* @__PURE__ */ v("span", { className: Y(y.spinnerSlot, y.spinnerLeftPosition[g]), children: o || /* @__PURE__ */ v(R0, { size: g }) }),
|
|
14377
|
+
typeof t < "u" ? t : /* @__PURE__ */ v("span", { "data-testid": "flowbite-button-label", className: Y(y.label), children: i ? s : d })
|
|
14378
14378
|
] })
|
|
14379
14379
|
}
|
|
14380
14380
|
)
|
|
@@ -14385,12 +14385,12 @@ const A0 = Oe(
|
|
|
14385
14385
|
A0.displayName = "Button";
|
|
14386
14386
|
const F0 = Object.assign(A0, {
|
|
14387
14387
|
Group: I0
|
|
14388
|
-
}), L0 = ({ children: t, ...e }) => /* @__PURE__ */
|
|
14388
|
+
}), L0 = ({ children: t, ...e }) => /* @__PURE__ */ v(F0, { onClick: (n) => {
|
|
14389
14389
|
const i = n.target.closest('[role="banner"]');
|
|
14390
14390
|
i == null || i.remove();
|
|
14391
14391
|
}, ...e, children: t });
|
|
14392
14392
|
L0.displayName = "Banner.CollapseButton";
|
|
14393
|
-
const W0 = ({ children: t, ...e }) => /* @__PURE__ */
|
|
14393
|
+
const W0 = ({ children: t, ...e }) => /* @__PURE__ */ v("div", { "data-testid": "flowbite-banner", role: "banner", tabIndex: -1, ...e, children: t });
|
|
14394
14394
|
W0.displayName = "Banner";
|
|
14395
14395
|
Object.assign(W0, {
|
|
14396
14396
|
CollapseButton: L0
|
|
@@ -14399,7 +14399,7 @@ const $0 = Oe(
|
|
|
14399
14399
|
({ children: t, className: e, href: r, icon: n, theme: a = {}, ...i }, s) => {
|
|
14400
14400
|
const o = typeof r < "u", l = o ? "a" : "span", c = te(ue().breadcrumb.item, a);
|
|
14401
14401
|
return /* @__PURE__ */ Q("li", { className: Y(c.base, e), ...i, children: [
|
|
14402
|
-
/* @__PURE__ */
|
|
14402
|
+
/* @__PURE__ */ v(p0, { "aria-hidden": !0, className: c.chevron, "data-testid": "flowbite-breadcrumb-separator" }),
|
|
14403
14403
|
/* @__PURE__ */ Q(
|
|
14404
14404
|
l,
|
|
14405
14405
|
{
|
|
@@ -14408,7 +14408,7 @@ const $0 = Oe(
|
|
|
14408
14408
|
"data-testid": "flowbite-breadcrumb-item",
|
|
14409
14409
|
href: r,
|
|
14410
14410
|
children: [
|
|
14411
|
-
n && /* @__PURE__ */
|
|
14411
|
+
n && /* @__PURE__ */ v(n, { "aria-hidden": !0, className: c.icon }),
|
|
14412
14412
|
t
|
|
14413
14413
|
]
|
|
14414
14414
|
}
|
|
@@ -14424,7 +14424,7 @@ const z0 = ({
|
|
|
14424
14424
|
...n
|
|
14425
14425
|
}) => {
|
|
14426
14426
|
const a = te(ue().breadcrumb.root, r);
|
|
14427
|
-
return /* @__PURE__ */
|
|
14427
|
+
return /* @__PURE__ */ v("nav", { "aria-label": "Breadcrumb", className: Y(a.base, e), ...n, children: /* @__PURE__ */ v("ol", { className: a.list, children: t }) });
|
|
14428
14428
|
};
|
|
14429
14429
|
z0.displayName = "Breadcrumb";
|
|
14430
14430
|
Object.assign(z0, {
|
|
@@ -14635,7 +14635,7 @@ class oD extends Sy {
|
|
|
14635
14635
|
}
|
|
14636
14636
|
render() {
|
|
14637
14637
|
const { children: e, draggingClassName: r, className: n, style: a, hideScrollbars: i } = this.props;
|
|
14638
|
-
return /* @__PURE__ */
|
|
14638
|
+
return /* @__PURE__ */ v(
|
|
14639
14639
|
"div",
|
|
14640
14640
|
{
|
|
14641
14641
|
className: eD(n, this.pressed && r, {
|
|
@@ -14665,7 +14665,7 @@ Ze(oD, "defaultProps", {
|
|
|
14665
14665
|
const lD = Oe(
|
|
14666
14666
|
({ className: t, color: e = "default", theme: r = {}, ...n }, a) => {
|
|
14667
14667
|
const i = te(ue().checkbox, r);
|
|
14668
|
-
return /* @__PURE__ */
|
|
14668
|
+
return /* @__PURE__ */ v(
|
|
14669
14669
|
"input",
|
|
14670
14670
|
{
|
|
14671
14671
|
ref: a,
|
|
@@ -14686,7 +14686,7 @@ const vi = ({
|
|
|
14686
14686
|
...i
|
|
14687
14687
|
}) => {
|
|
14688
14688
|
const s = te(ue().helperText, n);
|
|
14689
|
-
return /* @__PURE__ */
|
|
14689
|
+
return /* @__PURE__ */ v("p", { className: Y(s.root.base, s.root.colors[r], e), ...i, children: a ?? t ?? "" });
|
|
14690
14690
|
};
|
|
14691
14691
|
vi.displayName = "HelperText";
|
|
14692
14692
|
const Lc = Oe(
|
|
@@ -14706,11 +14706,11 @@ const Lc = Oe(
|
|
|
14706
14706
|
const f = te(ue().textInput, l);
|
|
14707
14707
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
14708
14708
|
/* @__PURE__ */ Q("div", { className: Y(f.base, e), children: [
|
|
14709
|
-
t && /* @__PURE__ */
|
|
14709
|
+
t && /* @__PURE__ */ v("span", { className: f.addon, children: t }),
|
|
14710
14710
|
/* @__PURE__ */ Q("div", { className: f.field.base, children: [
|
|
14711
|
-
a && /* @__PURE__ */
|
|
14712
|
-
i && /* @__PURE__ */
|
|
14713
|
-
/* @__PURE__ */
|
|
14711
|
+
a && /* @__PURE__ */ v("div", { className: f.field.icon.base, children: /* @__PURE__ */ v(a, { className: f.field.icon.svg }) }),
|
|
14712
|
+
i && /* @__PURE__ */ v("div", { "data-testid": "right-icon", className: f.field.rightIcon.base, children: /* @__PURE__ */ v(i, { className: f.field.rightIcon.svg }) }),
|
|
14713
|
+
/* @__PURE__ */ v(
|
|
14714
14714
|
"input",
|
|
14715
14715
|
{
|
|
14716
14716
|
className: Y(
|
|
@@ -14729,7 +14729,7 @@ const Lc = Oe(
|
|
|
14729
14729
|
)
|
|
14730
14730
|
] })
|
|
14731
14731
|
] }),
|
|
14732
|
-
n && /* @__PURE__ */
|
|
14732
|
+
n && /* @__PURE__ */ v(vi, { color: r, children: n })
|
|
14733
14733
|
] });
|
|
14734
14734
|
}
|
|
14735
14735
|
);
|
|
@@ -14802,10 +14802,10 @@ const xi = (t, e, r) => {
|
|
|
14802
14802
|
language: l
|
|
14803
14803
|
} = bo(), c = te(e.views.days, t), d = uD(l, r), u = dD(i, r);
|
|
14804
14804
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
14805
|
-
/* @__PURE__ */
|
|
14806
|
-
/* @__PURE__ */
|
|
14805
|
+
/* @__PURE__ */ v("div", { className: c.header.base, children: d.map((f, h) => /* @__PURE__ */ v("span", { className: c.header.title, children: f }, h)) }),
|
|
14806
|
+
/* @__PURE__ */ v("div", { className: c.items.base, children: [...Array(42)].map((f, h) => {
|
|
14807
14807
|
const g = Wc(u, h), m = Ka(l, g, { day: "numeric" }), p = yo(s, g), w = !xi(g, n, a);
|
|
14808
|
-
return /* @__PURE__ */
|
|
14808
|
+
return /* @__PURE__ */ v(
|
|
14809
14809
|
"button",
|
|
14810
14810
|
{
|
|
14811
14811
|
disabled: w,
|
|
@@ -14826,9 +14826,9 @@ const xi = (t, e, r) => {
|
|
|
14826
14826
|
] });
|
|
14827
14827
|
}, mD = ({ theme: t = {} }) => {
|
|
14828
14828
|
const { theme: e, selectedDate: r, viewDate: n, setViewDate: a, setView: i } = bo(), s = te(e.views.decades, t);
|
|
14829
|
-
return /* @__PURE__ */
|
|
14829
|
+
return /* @__PURE__ */ v("div", { className: s.items.base, children: [...Array(12)].map((o, l) => {
|
|
14830
14830
|
const d = Un(n, 100) - 10 + l * 10, u = new Date(d, 0, 1), f = qn(u, 9), h = hD(n, d), g = !xi(n, u, f);
|
|
14831
|
-
return /* @__PURE__ */
|
|
14831
|
+
return /* @__PURE__ */ v(
|
|
14832
14832
|
"button",
|
|
14833
14833
|
{
|
|
14834
14834
|
disabled: g,
|
|
@@ -14857,11 +14857,11 @@ const xi = (t, e, r) => {
|
|
|
14857
14857
|
setViewDate: o,
|
|
14858
14858
|
setView: l
|
|
14859
14859
|
} = bo(), c = te(e.views.months, t);
|
|
14860
|
-
return /* @__PURE__ */
|
|
14860
|
+
return /* @__PURE__ */ v("div", { className: c.items.base, children: [...Array(12)].map((d, u) => {
|
|
14861
14861
|
const f = new Date(i.getTime());
|
|
14862
14862
|
f.setMonth(u);
|
|
14863
14863
|
const h = Ka(s, f, { month: "short" }), g = yo(a, f), m = !xi(f, r, n);
|
|
14864
|
-
return /* @__PURE__ */
|
|
14864
|
+
return /* @__PURE__ */ v(
|
|
14865
14865
|
"button",
|
|
14866
14866
|
{
|
|
14867
14867
|
disabled: m,
|
|
@@ -14881,11 +14881,11 @@ const xi = (t, e, r) => {
|
|
|
14881
14881
|
}) });
|
|
14882
14882
|
}, bD = ({ theme: t = {} }) => {
|
|
14883
14883
|
const { theme: e, selectedDate: r, minDate: n, maxDate: a, viewDate: i, setViewDate: s, setView: o } = bo(), l = te(e.views.years, t);
|
|
14884
|
-
return /* @__PURE__ */
|
|
14884
|
+
return /* @__PURE__ */ v("div", { className: l.items.base, children: [...Array(12)].map((c, d) => {
|
|
14885
14885
|
const f = Un(i, 10) - 1 + d * 1, h = new Date(i.getTime());
|
|
14886
14886
|
h.setFullYear(f);
|
|
14887
14887
|
const g = yo(r, h), m = !xi(h, n, a);
|
|
14888
|
-
return /* @__PURE__ */
|
|
14888
|
+
return /* @__PURE__ */ v(
|
|
14889
14889
|
"button",
|
|
14890
14890
|
{
|
|
14891
14891
|
disabled: m,
|
|
@@ -14925,8 +14925,8 @@ const xi = (t, e, r) => {
|
|
|
14925
14925
|
}, w) => {
|
|
14926
14926
|
const b = te(ue().datepicker, g);
|
|
14927
14927
|
l = cD(l, c, d);
|
|
14928
|
-
const [k,
|
|
14929
|
-
S(J), m && m(J), n && x === Le.Days && E == !0 && !r &&
|
|
14928
|
+
const [k, y] = ve(e), [x, _] = ve(Le.Days), [T, S] = ve(l), [C, D] = ve(l), z = Gt(null), A = Gt(null), L = (J, E) => {
|
|
14929
|
+
S(J), m && m(J), n && x === Le.Days && E == !0 && !r && y(!1);
|
|
14930
14930
|
}, M = () => {
|
|
14931
14931
|
L(l, !0), l && D(l);
|
|
14932
14932
|
};
|
|
@@ -14942,14 +14942,14 @@ const xi = (t, e, r) => {
|
|
|
14942
14942
|
const I = (J) => {
|
|
14943
14943
|
switch (J) {
|
|
14944
14944
|
case Le.Decades:
|
|
14945
|
-
return /* @__PURE__ */
|
|
14945
|
+
return /* @__PURE__ */ v(mD, { theme: b.views.decades });
|
|
14946
14946
|
case Le.Years:
|
|
14947
|
-
return /* @__PURE__ */
|
|
14947
|
+
return /* @__PURE__ */ v(bD, { theme: b.views.years });
|
|
14948
14948
|
case Le.Months:
|
|
14949
|
-
return /* @__PURE__ */
|
|
14949
|
+
return /* @__PURE__ */ v(pD, { theme: b.views.months });
|
|
14950
14950
|
case Le.Days:
|
|
14951
14951
|
default:
|
|
14952
|
-
return /* @__PURE__ */
|
|
14952
|
+
return /* @__PURE__ */ v(gD, { theme: b.views.days });
|
|
14953
14953
|
}
|
|
14954
14954
|
}, W = () => {
|
|
14955
14955
|
switch (x) {
|
|
@@ -14991,12 +14991,12 @@ const xi = (t, e, r) => {
|
|
|
14991
14991
|
const J = (E) => {
|
|
14992
14992
|
var R, P;
|
|
14993
14993
|
const j = (R = A == null ? void 0 : A.current) == null ? void 0 : R.contains(E.target), N = (P = z == null ? void 0 : z.current) == null ? void 0 : P.contains(E.target);
|
|
14994
|
-
!j && !N &&
|
|
14994
|
+
!j && !N && y(!1);
|
|
14995
14995
|
};
|
|
14996
14996
|
return document.addEventListener("mousedown", J), () => {
|
|
14997
14997
|
document.removeEventListener("mousedown", J);
|
|
14998
14998
|
};
|
|
14999
|
-
}, [z, A,
|
|
14999
|
+
}, [z, A, y]), /* @__PURE__ */ v(
|
|
15000
15000
|
V0.Provider,
|
|
15001
15001
|
{
|
|
15002
15002
|
value: {
|
|
@@ -15006,7 +15006,7 @@ const xi = (t, e, r) => {
|
|
|
15006
15006
|
maxDate: d,
|
|
15007
15007
|
weekStart: f,
|
|
15008
15008
|
isOpen: k,
|
|
15009
|
-
setIsOpen:
|
|
15009
|
+
setIsOpen: y,
|
|
15010
15010
|
view: x,
|
|
15011
15011
|
setView: _,
|
|
15012
15012
|
viewDate: C,
|
|
@@ -15016,25 +15016,25 @@ const xi = (t, e, r) => {
|
|
|
15016
15016
|
changeSelectedDate: L
|
|
15017
15017
|
},
|
|
15018
15018
|
children: /* @__PURE__ */ Q("div", { className: Y(b.root.base, h), children: [
|
|
15019
|
-
!r && /* @__PURE__ */
|
|
15019
|
+
!r && /* @__PURE__ */ v(
|
|
15020
15020
|
Lc,
|
|
15021
15021
|
{
|
|
15022
15022
|
theme: b.root.input,
|
|
15023
15023
|
icon: OO,
|
|
15024
15024
|
ref: z,
|
|
15025
15025
|
onFocus: () => {
|
|
15026
|
-
yo(C, T) || D(T),
|
|
15026
|
+
yo(C, T) || D(T), y(!0);
|
|
15027
15027
|
},
|
|
15028
15028
|
value: T && Ka(u, T),
|
|
15029
15029
|
readOnly: !0,
|
|
15030
15030
|
...p
|
|
15031
15031
|
}
|
|
15032
15032
|
),
|
|
15033
|
-
(k || r) && /* @__PURE__ */
|
|
15033
|
+
(k || r) && /* @__PURE__ */ v("div", { ref: A, className: Y(b.popup.root.base, r && b.popup.root.inline), children: /* @__PURE__ */ Q("div", { className: b.popup.root.inner, children: [
|
|
15034
15034
|
/* @__PURE__ */ Q("div", { className: b.popup.header.base, children: [
|
|
15035
|
-
t && /* @__PURE__ */
|
|
15035
|
+
t && /* @__PURE__ */ v("div", { className: b.popup.header.title, children: t }),
|
|
15036
15036
|
/* @__PURE__ */ Q("div", { className: b.popup.header.selectors.base, children: [
|
|
15037
|
-
/* @__PURE__ */
|
|
15037
|
+
/* @__PURE__ */ v(
|
|
15038
15038
|
"button",
|
|
15039
15039
|
{
|
|
15040
15040
|
type: "button",
|
|
@@ -15043,10 +15043,10 @@ const xi = (t, e, r) => {
|
|
|
15043
15043
|
b.popup.header.selectors.button.prev
|
|
15044
15044
|
),
|
|
15045
15045
|
onClick: () => D(U(x, C, -1)),
|
|
15046
|
-
children: /* @__PURE__ */
|
|
15046
|
+
children: /* @__PURE__ */ v(kO, {})
|
|
15047
15047
|
}
|
|
15048
15048
|
),
|
|
15049
|
-
/* @__PURE__ */
|
|
15049
|
+
/* @__PURE__ */ v(
|
|
15050
15050
|
"button",
|
|
15051
15051
|
{
|
|
15052
15052
|
type: "button",
|
|
@@ -15058,7 +15058,7 @@ const xi = (t, e, r) => {
|
|
|
15058
15058
|
children: B()
|
|
15059
15059
|
}
|
|
15060
15060
|
),
|
|
15061
|
-
/* @__PURE__ */
|
|
15061
|
+
/* @__PURE__ */ v(
|
|
15062
15062
|
"button",
|
|
15063
15063
|
{
|
|
15064
15064
|
type: "button",
|
|
@@ -15067,14 +15067,14 @@ const xi = (t, e, r) => {
|
|
|
15067
15067
|
b.popup.header.selectors.button.next
|
|
15068
15068
|
),
|
|
15069
15069
|
onClick: () => D(U(x, C, 1)),
|
|
15070
|
-
children: /* @__PURE__ */
|
|
15070
|
+
children: /* @__PURE__ */ v(_O, {})
|
|
15071
15071
|
}
|
|
15072
15072
|
)
|
|
15073
15073
|
] })
|
|
15074
15074
|
] }),
|
|
15075
|
-
/* @__PURE__ */
|
|
15075
|
+
/* @__PURE__ */ v("div", { className: b.popup.view.base, children: I(x) }),
|
|
15076
15076
|
(a || s) && /* @__PURE__ */ Q("div", { className: b.popup.footer.base, children: [
|
|
15077
|
-
s && /* @__PURE__ */
|
|
15077
|
+
s && /* @__PURE__ */ v(
|
|
15078
15078
|
"button",
|
|
15079
15079
|
{
|
|
15080
15080
|
type: "button",
|
|
@@ -15086,7 +15086,7 @@ const xi = (t, e, r) => {
|
|
|
15086
15086
|
children: o
|
|
15087
15087
|
}
|
|
15088
15088
|
),
|
|
15089
|
-
a && /* @__PURE__ */
|
|
15089
|
+
a && /* @__PURE__ */ v(
|
|
15090
15090
|
"button",
|
|
15091
15091
|
{
|
|
15092
15092
|
type: "button",
|
|
@@ -15480,7 +15480,7 @@ const RD = async (t, e, r) => {
|
|
|
15480
15480
|
} = o[m], {
|
|
15481
15481
|
x: b,
|
|
15482
15482
|
y: k,
|
|
15483
|
-
data:
|
|
15483
|
+
data: y,
|
|
15484
15484
|
reset: x
|
|
15485
15485
|
} = await w({
|
|
15486
15486
|
x: d,
|
|
@@ -15500,7 +15500,7 @@ const RD = async (t, e, r) => {
|
|
|
15500
15500
|
...h,
|
|
15501
15501
|
[p]: {
|
|
15502
15502
|
...h[p],
|
|
15503
|
-
...
|
|
15503
|
+
...y
|
|
15504
15504
|
}
|
|
15505
15505
|
}, x && g <= 50 && (g++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (c = x.rects === !0 ? await s.getElementRects({
|
|
15506
15506
|
reference: t,
|
|
@@ -15544,7 +15544,7 @@ async function Uc(t, e) {
|
|
|
15544
15544
|
...s.floating,
|
|
15545
15545
|
x: n,
|
|
15546
15546
|
y: a
|
|
15547
|
-
} : s.reference, k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)),
|
|
15547
|
+
} : s.reference, k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), y = await (i.isElement == null ? void 0 : i.isElement(k)) ? await (i.getScale == null ? void 0 : i.getScale(k)) || {
|
|
15548
15548
|
x: 1,
|
|
15549
15549
|
y: 1
|
|
15550
15550
|
} : {
|
|
@@ -15557,10 +15557,10 @@ async function Uc(t, e) {
|
|
|
15557
15557
|
strategy: l
|
|
15558
15558
|
}) : b);
|
|
15559
15559
|
return {
|
|
15560
|
-
top: (w.top - x.top + g.top) /
|
|
15561
|
-
bottom: (x.bottom - w.bottom + g.bottom) /
|
|
15562
|
-
left: (w.left - x.left + g.left) /
|
|
15563
|
-
right: (x.right - w.right + g.right) /
|
|
15560
|
+
top: (w.top - x.top + g.top) / y.y,
|
|
15561
|
+
bottom: (x.bottom - w.bottom + g.bottom) / y.y,
|
|
15562
|
+
left: (w.left - x.left + g.left) / y.x,
|
|
15563
|
+
right: (x.right - w.right + g.right) / y.x
|
|
15564
15564
|
};
|
|
15565
15565
|
}
|
|
15566
15566
|
const ND = (t) => ({
|
|
@@ -15584,10 +15584,10 @@ const ND = (t) => ({
|
|
|
15584
15584
|
const u = rm(d), f = {
|
|
15585
15585
|
x: r,
|
|
15586
15586
|
y: n
|
|
15587
|
-
}, h = qc(a), g = Vc(h), m = await s.getDimensions(c), p = h === "y", w = p ? "top" : "left", b = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth",
|
|
15587
|
+
}, h = qc(a), g = Vc(h), m = await s.getDimensions(c), p = h === "y", w = p ? "top" : "left", b = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth", y = i.reference[g] + i.reference[h] - f[h] - i.floating[g], x = f[h] - i.reference[h], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
15588
15588
|
let T = _ ? _[k] : 0;
|
|
15589
15589
|
(!T || !await (s.isElement == null ? void 0 : s.isElement(_))) && (T = o.floating[k] || i.floating[g]);
|
|
15590
|
-
const S =
|
|
15590
|
+
const S = y / 2 - x / 2, C = T / 2 - m[g] / 2 - 1, D = la(u[w], C), z = la(u[b], C), A = D, L = T - m[g] - z, M = T / 2 - m[g] / 2 + S, I = Yl(A, M, L), W = !l.arrow && gr(a) != null && M !== I && i.reference[g] / 2 - (M < A ? D : z) - m[g] / 2 < 0, B = W ? M < A ? M - A : M - L : 0;
|
|
15591
15591
|
return {
|
|
15592
15592
|
[h]: f[h] + B,
|
|
15593
15593
|
data: {
|
|
@@ -15632,9 +15632,9 @@ const AD = function(t) {
|
|
|
15632
15632
|
placement: m[0]
|
|
15633
15633
|
}
|
|
15634
15634
|
};
|
|
15635
|
-
const
|
|
15635
|
+
const y = [p[Pr(b)], p[k[0]], p[k[1]]], x = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
|
|
15636
15636
|
placement: b,
|
|
15637
|
-
overflows:
|
|
15637
|
+
overflows: y
|
|
15638
15638
|
}], _ = m[w + 1];
|
|
15639
15639
|
if (_)
|
|
15640
15640
|
return {
|
|
@@ -15696,9 +15696,9 @@ const AD = function(t) {
|
|
|
15696
15696
|
} = pa(t, e);
|
|
15697
15697
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
15698
15698
|
return {};
|
|
15699
|
-
const w = Pr(a), b = Pr(o) === o, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)),
|
|
15700
|
-
!f && g !== "none" &&
|
|
15701
|
-
const x = [o, ...
|
|
15699
|
+
const w = Pr(a), b = Pr(o) === o, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (b || !m ? [Ws(o)] : CD(o));
|
|
15700
|
+
!f && g !== "none" && y.push(...TD(o, m, g, k));
|
|
15701
|
+
const x = [o, ...y], _ = await Uc(e, p), T = [];
|
|
15702
15702
|
let S = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
15703
15703
|
if (d && T.push(_[w]), u) {
|
|
15704
15704
|
const A = tm(a, s, k);
|
|
@@ -15897,8 +15897,8 @@ function Rn(t, e, r, n) {
|
|
|
15897
15897
|
const f = Dt(i), h = n && Ce(n) ? Dt(n) : n;
|
|
15898
15898
|
let g = f, m = Hl(g);
|
|
15899
15899
|
for (; m && n && h !== g; ) {
|
|
15900
|
-
const p = Zn(m), w = m.getBoundingClientRect(), b = Yt(m), k = w.left + (m.clientLeft + parseFloat(b.paddingLeft)) * p.x,
|
|
15901
|
-
l *= p.x, c *= p.y, d *= p.x, u *= p.y, l += k, c +=
|
|
15900
|
+
const p = Zn(m), w = m.getBoundingClientRect(), b = Yt(m), k = w.left + (m.clientLeft + parseFloat(b.paddingLeft)) * p.x, y = w.top + (m.clientTop + parseFloat(b.paddingTop)) * p.y;
|
|
15901
|
+
l *= p.x, c *= p.y, d *= p.x, u *= p.y, l += k, c += y, g = Dt(m), m = Hl(g);
|
|
15902
15902
|
}
|
|
15903
15903
|
}
|
|
15904
15904
|
return $s({
|
|
@@ -16152,17 +16152,17 @@ function eM(t, e) {
|
|
|
16152
16152
|
rootMargin: -g + "px " + -m + "px " + -p + "px " + -w + "px",
|
|
16153
16153
|
threshold: Dn(0, la(1, l)) || 1
|
|
16154
16154
|
};
|
|
16155
|
-
let
|
|
16155
|
+
let y = !0;
|
|
16156
16156
|
function x(_) {
|
|
16157
16157
|
const T = _[0].intersectionRatio;
|
|
16158
16158
|
if (T !== l) {
|
|
16159
|
-
if (!
|
|
16159
|
+
if (!y)
|
|
16160
16160
|
return s();
|
|
16161
16161
|
T ? s(!1, T) : n = setTimeout(() => {
|
|
16162
16162
|
s(!1, 1e-7);
|
|
16163
16163
|
}, 1e3);
|
|
16164
16164
|
}
|
|
16165
|
-
T === 1 && !lm(c, t.getBoundingClientRect()) && s(),
|
|
16165
|
+
T === 1 && !lm(c, t.getBoundingClientRect()) && s(), y = !1;
|
|
16166
16166
|
}
|
|
16167
16167
|
try {
|
|
16168
16168
|
r = new IntersectionObserver(x, {
|
|
@@ -16297,7 +16297,7 @@ function sM(t) {
|
|
|
16297
16297
|
U !== _.current && (_.current = U, m(U));
|
|
16298
16298
|
}, []), k = $.useCallback((U) => {
|
|
16299
16299
|
U !== T.current && (T.current = U, w(U));
|
|
16300
|
-
}, []),
|
|
16300
|
+
}, []), y = i || g, x = s || p, _ = $.useRef(null), T = $.useRef(null), S = $.useRef(d), C = l != null, D = al(l), z = al(a), A = al(c), L = $.useCallback(() => {
|
|
16301
16301
|
if (!_.current || !T.current)
|
|
16302
16302
|
return;
|
|
16303
16303
|
const U = {
|
|
@@ -16329,21 +16329,21 @@ function sM(t) {
|
|
|
16329
16329
|
hs(() => (M.current = !0, () => {
|
|
16330
16330
|
M.current = !1;
|
|
16331
16331
|
}), []), hs(() => {
|
|
16332
|
-
if (
|
|
16332
|
+
if (y && (_.current = y), x && (T.current = x), y && x) {
|
|
16333
16333
|
if (D.current)
|
|
16334
|
-
return D.current(
|
|
16334
|
+
return D.current(y, x, L);
|
|
16335
16335
|
L();
|
|
16336
16336
|
}
|
|
16337
|
-
}, [
|
|
16337
|
+
}, [y, x, L, D, C]);
|
|
16338
16338
|
const I = $.useMemo(() => ({
|
|
16339
16339
|
reference: _,
|
|
16340
16340
|
floating: T,
|
|
16341
16341
|
setReference: b,
|
|
16342
16342
|
setFloating: k
|
|
16343
16343
|
}), [b, k]), W = $.useMemo(() => ({
|
|
16344
|
-
reference:
|
|
16344
|
+
reference: y,
|
|
16345
16345
|
floating: x
|
|
16346
|
-
}), [
|
|
16346
|
+
}), [y, x]), B = $.useMemo(() => {
|
|
16347
16347
|
const U = {
|
|
16348
16348
|
position: r,
|
|
16349
16349
|
left: 0,
|
|
@@ -16924,7 +16924,7 @@ function XM(t, e) {
|
|
|
16924
16924
|
mouseOnly: f = !1,
|
|
16925
16925
|
restMs: h = 0,
|
|
16926
16926
|
move: g = !0
|
|
16927
|
-
} = e, m = _i(), p = So(), w = mr(u), b = mr(d), k = $.useRef(),
|
|
16927
|
+
} = e, m = _i(), p = So(), w = mr(u), b = mr(d), k = $.useRef(), y = $.useRef(), x = $.useRef(), _ = $.useRef(), T = $.useRef(!0), S = $.useRef(!1), C = $.useRef(() => {
|
|
16928
16928
|
}), D = $.useCallback(() => {
|
|
16929
16929
|
var M;
|
|
16930
16930
|
const I = (M = a.current.openEvent) == null ? void 0 : M.type;
|
|
@@ -16937,7 +16937,7 @@ function XM(t, e) {
|
|
|
16937
16937
|
let {
|
|
16938
16938
|
open: W
|
|
16939
16939
|
} = I;
|
|
16940
|
-
W || (clearTimeout(
|
|
16940
|
+
W || (clearTimeout(y.current), clearTimeout(_.current), T.current = !0);
|
|
16941
16941
|
}
|
|
16942
16942
|
return i.on("openchange", M), () => {
|
|
16943
16943
|
i.off("openchange", M);
|
|
@@ -16956,7 +16956,7 @@ function XM(t, e) {
|
|
|
16956
16956
|
const z = $.useCallback(function(M, I, W) {
|
|
16957
16957
|
I === void 0 && (I = !0), W === void 0 && (W = "hover");
|
|
16958
16958
|
const B = ol(b.current, "close", k.current);
|
|
16959
|
-
B && !x.current ? (clearTimeout(
|
|
16959
|
+
B && !x.current ? (clearTimeout(y.current), y.current = setTimeout(() => n(!1, M, W), B)) : I && (clearTimeout(y.current), n(!1, M, W));
|
|
16960
16960
|
}, [b, n]), A = $.useCallback(() => {
|
|
16961
16961
|
C.current(), x.current = void 0;
|
|
16962
16962
|
}, []), L = $.useCallback(() => {
|
|
@@ -16972,10 +16972,10 @@ function XM(t, e) {
|
|
|
16972
16972
|
return a.current.openEvent ? ["click", "mousedown"].includes(a.current.openEvent.type) : !1;
|
|
16973
16973
|
}
|
|
16974
16974
|
function I(U) {
|
|
16975
|
-
if (clearTimeout(
|
|
16975
|
+
if (clearTimeout(y.current), T.current = !1, f && !As(k.current) || h > 0 && ol(b.current, "open") === 0)
|
|
16976
16976
|
return;
|
|
16977
16977
|
const J = ol(b.current, "open", k.current);
|
|
16978
|
-
J ?
|
|
16978
|
+
J ? y.current = setTimeout(() => {
|
|
16979
16979
|
n(!0, U, "hover");
|
|
16980
16980
|
}, J) : n(!0, U, "hover");
|
|
16981
16981
|
}
|
|
@@ -16985,7 +16985,7 @@ function XM(t, e) {
|
|
|
16985
16985
|
C.current();
|
|
16986
16986
|
const J = yt(o);
|
|
16987
16987
|
if (clearTimeout(_.current), w.current) {
|
|
16988
|
-
r || clearTimeout(
|
|
16988
|
+
r || clearTimeout(y.current), x.current = w.current({
|
|
16989
16989
|
...t,
|
|
16990
16990
|
tree: m,
|
|
16991
16991
|
x: U.clientX,
|
|
@@ -17036,7 +17036,7 @@ function XM(t, e) {
|
|
|
17036
17036
|
}, [c, r, p, o, s, m, w, D]), Re(() => {
|
|
17037
17037
|
r || (k.current = void 0, A(), L());
|
|
17038
17038
|
}, [r, A, L]), $.useEffect(() => () => {
|
|
17039
|
-
A(), clearTimeout(
|
|
17039
|
+
A(), clearTimeout(y.current), clearTimeout(_.current), L();
|
|
17040
17040
|
}, [c, s, A, L]), $.useMemo(() => {
|
|
17041
17041
|
if (!c)
|
|
17042
17042
|
return {};
|
|
@@ -17055,7 +17055,7 @@ function XM(t, e) {
|
|
|
17055
17055
|
},
|
|
17056
17056
|
floating: {
|
|
17057
17057
|
onMouseEnter() {
|
|
17058
|
-
clearTimeout(
|
|
17058
|
+
clearTimeout(y.current);
|
|
17059
17059
|
},
|
|
17060
17060
|
onMouseLeave(I) {
|
|
17061
17061
|
z(I.nativeEvent, !1);
|
|
@@ -17342,7 +17342,7 @@ function _m(t) {
|
|
|
17342
17342
|
domReference: w,
|
|
17343
17343
|
floating: b
|
|
17344
17344
|
}
|
|
17345
|
-
} = e, k = typeof s == "number" && s < 0,
|
|
17345
|
+
} = e, k = typeof s == "number" && s < 0, y = Z0(w) && k, x = QM() ? i : !0, _ = mr(a), T = mr(s), S = mr(o), C = _i(), D = km(), z = $.useRef(null), A = $.useRef(null), L = $.useRef(!1), M = $.useRef(!1), I = D != null, W = $.useCallback(function(E) {
|
|
17346
17346
|
return E === void 0 && (E = b), E ? _o(E, hi()) : [];
|
|
17347
17347
|
}, [b]), B = $.useCallback((E) => {
|
|
17348
17348
|
const j = W(E);
|
|
@@ -17352,7 +17352,7 @@ function _m(t) {
|
|
|
17352
17352
|
if (n || !l) return;
|
|
17353
17353
|
function E(N) {
|
|
17354
17354
|
if (N.key === "Tab") {
|
|
17355
|
-
Ge(b, or(yt(b))) && W().length === 0 && !
|
|
17355
|
+
Ge(b, or(yt(b))) && W().length === 0 && !y && st(N);
|
|
17356
17356
|
const R = B(), P = Br(N);
|
|
17357
17357
|
_.current[0] === "reference" && P === w && (st(N), N.shiftKey ? Dr(R[R.length - 1]) : Dr(R[1])), _.current[1] === "floating" && P === b && N.shiftKey && (st(N), Dr(R[0]));
|
|
17358
17358
|
}
|
|
@@ -17361,7 +17361,7 @@ function _m(t) {
|
|
|
17361
17361
|
return j.addEventListener("keydown", E), () => {
|
|
17362
17362
|
j.removeEventListener("keydown", E);
|
|
17363
17363
|
};
|
|
17364
|
-
}, [n, w, b, l, _,
|
|
17364
|
+
}, [n, w, b, l, _, y, W, B]), $.useEffect(() => {
|
|
17365
17365
|
if (n || !d) return;
|
|
17366
17366
|
function E() {
|
|
17367
17367
|
M.current = !0, setTimeout(() => {
|
|
@@ -17391,12 +17391,12 @@ function _m(t) {
|
|
|
17391
17391
|
if (n) return;
|
|
17392
17392
|
const j = Array.from((D == null || (E = D.portalNode) == null ? void 0 : E.querySelectorAll("[" + Nn("portal") + "]")) || []);
|
|
17393
17393
|
if (b) {
|
|
17394
|
-
const N = [b, ...j, z.current, A.current, _.current.includes("reference") ||
|
|
17394
|
+
const N = [b, ...j, z.current, A.current, _.current.includes("reference") || y ? w : null].filter((P) => P != null), R = l || y ? sh(N, x, !x) : sh(N);
|
|
17395
17395
|
return () => {
|
|
17396
17396
|
R();
|
|
17397
17397
|
};
|
|
17398
17398
|
}
|
|
17399
|
-
}, [n, w, b, l, _, D,
|
|
17399
|
+
}, [n, w, b, l, _, D, y, x]), Re(() => {
|
|
17400
17400
|
if (n || !b) return;
|
|
17401
17401
|
const E = yt(b), j = or(E);
|
|
17402
17402
|
queueMicrotask(() => {
|
|
@@ -17489,7 +17489,7 @@ function _m(t) {
|
|
|
17489
17489
|
(j = D.beforeOutsideRef.current) == null || j.focus();
|
|
17490
17490
|
}
|
|
17491
17491
|
}
|
|
17492
|
-
}), !
|
|
17492
|
+
}), !y && U("start"), r, U("end"), J && /* @__PURE__ */ $.createElement(Ys, {
|
|
17493
17493
|
"data-type": "inside",
|
|
17494
17494
|
ref: D == null ? void 0 : D.afterInsideRef,
|
|
17495
17495
|
onFocus: (E) => {
|
|
@@ -17634,7 +17634,7 @@ function Sm(t, e) {
|
|
|
17634
17634
|
ancestorScroll: m = !1,
|
|
17635
17635
|
bubbles: p,
|
|
17636
17636
|
capture: w
|
|
17637
|
-
} = e, b = _i(), k = lr(typeof u == "function" ? u : () => !1),
|
|
17637
|
+
} = e, b = _i(), k = lr(typeof u == "function" ? u : () => !1), y = typeof u == "function" ? k : u, x = $.useRef(!1), _ = $.useRef(!1), {
|
|
17638
17638
|
escapeKey: T,
|
|
17639
17639
|
outsidePress: S
|
|
17640
17640
|
} = fh(p), {
|
|
@@ -17667,7 +17667,7 @@ function Sm(t, e) {
|
|
|
17667
17667
|
const W = x.current;
|
|
17668
17668
|
x.current = !1;
|
|
17669
17669
|
const B = _.current;
|
|
17670
|
-
if (_.current = !1, f === "click" && B || W || typeof
|
|
17670
|
+
if (_.current = !1, f === "click" && B || W || typeof y == "function" && !y(I))
|
|
17671
17671
|
return;
|
|
17672
17672
|
const U = Br(I), J = "[" + Nn("inert") + "]", E = yt(o).querySelectorAll(J);
|
|
17673
17673
|
let j = Ce(U) ? U : null;
|
|
@@ -17723,7 +17723,7 @@ function Sm(t, e) {
|
|
|
17723
17723
|
n(!1, U, "ancestor-scroll");
|
|
17724
17724
|
}
|
|
17725
17725
|
const W = yt(o);
|
|
17726
|
-
d && W.addEventListener("keydown", C ? A : z, C),
|
|
17726
|
+
d && W.addEventListener("keydown", C ? A : z, C), y && W.addEventListener(f, D ? M : L, D);
|
|
17727
17727
|
let B = [];
|
|
17728
17728
|
return m && (Ce(s) && (B = Ur(s)), Ce(o) && (B = B.concat(Ur(o))), !Ce(i) && i && i.contextElement && (B = B.concat(Ur(i.contextElement)))), B = B.filter((U) => {
|
|
17729
17729
|
var J;
|
|
@@ -17733,13 +17733,13 @@ function Sm(t, e) {
|
|
|
17733
17733
|
passive: !0
|
|
17734
17734
|
});
|
|
17735
17735
|
}), () => {
|
|
17736
|
-
d && W.removeEventListener("keydown", C ? A : z, C),
|
|
17736
|
+
d && W.removeEventListener("keydown", C ? A : z, C), y && W.removeEventListener(f, D ? M : L, D), B.forEach((U) => {
|
|
17737
17737
|
U.removeEventListener("scroll", I);
|
|
17738
17738
|
});
|
|
17739
17739
|
};
|
|
17740
|
-
}, [l, o, s, i, d,
|
|
17740
|
+
}, [l, o, s, i, d, y, f, r, n, m, c, T, S, z, C, A, L, D, M]), $.useEffect(() => {
|
|
17741
17741
|
x.current = !1;
|
|
17742
|
-
}, [
|
|
17742
|
+
}, [y, f]), $.useMemo(() => c ? {
|
|
17743
17743
|
reference: {
|
|
17744
17744
|
onKeyDown: z,
|
|
17745
17745
|
[l2[g]]: (I) => {
|
|
@@ -17794,17 +17794,17 @@ function Dm(t) {
|
|
|
17794
17794
|
contextElement: S
|
|
17795
17795
|
} : S;
|
|
17796
17796
|
u.refs.setReference(C);
|
|
17797
|
-
}, [u.refs]),
|
|
17797
|
+
}, [u.refs]), y = $.useCallback((S) => {
|
|
17798
17798
|
(Ce(S) || S === null) && (m.current = S, c(S)), (Ce(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
17799
17799
|
// `null` to support `positionReference` + an unstable `reference`
|
|
17800
17800
|
// callback ref.
|
|
17801
17801
|
S !== null && !Ce(S)) && u.refs.setReference(S);
|
|
17802
17802
|
}, [u.refs]), x = $.useMemo(() => ({
|
|
17803
17803
|
...u.refs,
|
|
17804
|
-
setReference:
|
|
17804
|
+
setReference: y,
|
|
17805
17805
|
setPositionReference: k,
|
|
17806
17806
|
domReference: m
|
|
17807
|
-
}), [u.refs,
|
|
17807
|
+
}), [u.refs, y, k]), _ = $.useMemo(() => ({
|
|
17808
17808
|
...u.elements,
|
|
17809
17809
|
domReference: d
|
|
17810
17810
|
}), [u.elements, d]), T = $.useMemo(() => ({
|
|
@@ -18001,7 +18001,7 @@ function f2(t, e) {
|
|
|
18001
18001
|
focusItemOnOpen: w = "auto",
|
|
18002
18002
|
focusItemOnHover: b = !0,
|
|
18003
18003
|
openOnArrowKeyDown: k = !0,
|
|
18004
|
-
disabledIndices:
|
|
18004
|
+
disabledIndices: y = void 0,
|
|
18005
18005
|
orientation: x = "vertical",
|
|
18006
18006
|
cols: _ = 1,
|
|
18007
18007
|
scrollItemIntoView: T = !0,
|
|
@@ -18010,7 +18010,7 @@ function f2(t, e) {
|
|
|
18010
18010
|
dense: D = !1
|
|
18011
18011
|
} = e;
|
|
18012
18012
|
process.env.NODE_ENV !== "production" && (f && (h || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), p || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), x === "vertical" && _ > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
|
|
18013
|
-
const z = So(), A = _i(), L = lr(c), M = $.useRef(w), I = $.useRef(u ?? -1), W = $.useRef(null), B = $.useRef(!0), U = $.useRef(L), J = $.useRef(!!s), E = $.useRef(!1), j = $.useRef(!1), N = mr(
|
|
18013
|
+
const z = So(), A = _i(), L = lr(c), M = $.useRef(w), I = $.useRef(u ?? -1), W = $.useRef(null), B = $.useRef(!0), U = $.useRef(L), J = $.useRef(!!s), E = $.useRef(!1), j = $.useRef(!1), N = mr(y), R = mr(r), P = mr(T), [O, F] = $.useState(), [X, q] = $.useState(), G = lr(function(H, ae, re) {
|
|
18014
18014
|
re === void 0 && (re = !1);
|
|
18015
18015
|
const le = H.current[ae.current];
|
|
18016
18016
|
le && (p ? (F(le.id), A == null || A.events.emit("virtualfocus", le), S && (S.current = le)) : Dr(le, {
|
|
@@ -18339,7 +18339,7 @@ function g2(t, e) {
|
|
|
18339
18339
|
resetMs: u = 750,
|
|
18340
18340
|
ignoreKeys: f = [],
|
|
18341
18341
|
selectedIndex: h = null
|
|
18342
|
-
} = e, g = $.useRef(), m = $.useRef(""), p = $.useRef((r = h ?? s) != null ? r : -1), w = $.useRef(null), b = lr(o), k = lr(l),
|
|
18342
|
+
} = e, g = $.useRef(), m = $.useRef(""), p = $.useRef((r = h ?? s) != null ? r : -1), w = $.useRef(null), b = lr(o), k = lr(l), y = mr(d), x = mr(f);
|
|
18343
18343
|
return Re(() => {
|
|
18344
18344
|
n && (clearTimeout(g.current), w.current = null, m.current = "");
|
|
18345
18345
|
}, [n]), Re(() => {
|
|
@@ -18354,7 +18354,7 @@ function g2(t, e) {
|
|
|
18354
18354
|
C ? a.current.typing || (a.current.typing = C, k(C)) : a.current.typing && (a.current.typing = C, k(C));
|
|
18355
18355
|
}
|
|
18356
18356
|
function T(C, D, z) {
|
|
18357
|
-
const A =
|
|
18357
|
+
const A = y.current ? y.current(D, z) : D.find((L) => (L == null ? void 0 : L.toLocaleLowerCase().indexOf(z.toLocaleLowerCase())) === 0);
|
|
18358
18358
|
return A ? C.indexOf(A) : -1;
|
|
18359
18359
|
}
|
|
18360
18360
|
function S(C) {
|
|
@@ -18383,7 +18383,7 @@ function g2(t, e) {
|
|
|
18383
18383
|
}
|
|
18384
18384
|
}
|
|
18385
18385
|
};
|
|
18386
|
-
}, [c, n, a, i, u, x,
|
|
18386
|
+
}, [c, n, a, i, u, x, y, b, k]);
|
|
18387
18387
|
}
|
|
18388
18388
|
function yh(t, e) {
|
|
18389
18389
|
const [r, n] = t;
|
|
@@ -18423,7 +18423,7 @@ function p2(t) {
|
|
|
18423
18423
|
nodeId: w,
|
|
18424
18424
|
tree: b
|
|
18425
18425
|
} = u;
|
|
18426
|
-
return function(
|
|
18426
|
+
return function(y) {
|
|
18427
18427
|
function x() {
|
|
18428
18428
|
clearTimeout(a), p();
|
|
18429
18429
|
}
|
|
@@ -18432,14 +18432,14 @@ function p2(t) {
|
|
|
18432
18432
|
const {
|
|
18433
18433
|
clientX: _,
|
|
18434
18434
|
clientY: T
|
|
18435
|
-
} =
|
|
18435
|
+
} = y, S = [_, T], C = Br(y), D = y.type === "mouseleave", z = Ge(m.floating, C), A = Ge(m.domReference, C), L = m.domReference.getBoundingClientRect(), M = m.floating.getBoundingClientRect(), I = g.split("-")[0], W = f > M.right - M.width / 2, B = h > M.bottom - M.height / 2, U = m2(S, L), J = M.width > L.width, E = M.height > L.height, j = (J ? L : M).left, N = (J ? L : M).right, R = (E ? L : M).top, P = (E ? L : M).bottom;
|
|
18436
18436
|
if (z && (i = !0, !D))
|
|
18437
18437
|
return;
|
|
18438
18438
|
if (A && (i = !1), A && !D) {
|
|
18439
18439
|
i = !0;
|
|
18440
18440
|
return;
|
|
18441
18441
|
}
|
|
18442
|
-
if (D && Ce(
|
|
18442
|
+
if (D && Ce(y.relatedTarget) && Ge(m.floating, y.relatedTarget) || b && Mn(b.nodesRef.current, w).some((X) => {
|
|
18443
18443
|
let {
|
|
18444
18444
|
context: q
|
|
18445
18445
|
} = X;
|
|
@@ -18488,7 +18488,7 @@ function p2(t) {
|
|
|
18488
18488
|
if (i && !U)
|
|
18489
18489
|
return x();
|
|
18490
18490
|
if (!D && n) {
|
|
18491
|
-
const X = c(
|
|
18491
|
+
const X = c(y.clientX, y.clientY);
|
|
18492
18492
|
if (X !== null && X < 0.1)
|
|
18493
18493
|
return x();
|
|
18494
18494
|
}
|
|
@@ -18545,17 +18545,17 @@ function Jc() {
|
|
|
18545
18545
|
}
|
|
18546
18546
|
const Zc = ({ className: t, theme: e = {}, ...r }) => {
|
|
18547
18547
|
const { theme: n } = Jc(), a = e.divider ?? n.floating.divider;
|
|
18548
|
-
return /* @__PURE__ */
|
|
18548
|
+
return /* @__PURE__ */ v("div", { className: Y(a, t), ...r });
|
|
18549
18549
|
}, Rm = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
18550
18550
|
const { theme: a } = Jc(), i = r.header ?? a.floating.header;
|
|
18551
18551
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
18552
|
-
/* @__PURE__ */
|
|
18553
|
-
/* @__PURE__ */
|
|
18552
|
+
/* @__PURE__ */ v("div", { className: Y(i, e), ...n, children: t }),
|
|
18553
|
+
/* @__PURE__ */ v(Zc, {})
|
|
18554
18554
|
] });
|
|
18555
18555
|
}, Nm = Oe(
|
|
18556
18556
|
({ children: t, className: e, icon: r, onClick: n, theme: a = {}, ...i }, s) => {
|
|
18557
18557
|
const { ref: o, index: l } = jM({ label: typeof t == "string" ? t : void 0 }), c = mm([s, o]), { theme: d, activeIndex: u, dismissOnClick: f, getItemProps: h, handleSelect: g } = Jc(), m = u === l, p = te(d.floating.item, a), w = i;
|
|
18558
|
-
return /* @__PURE__ */
|
|
18558
|
+
return /* @__PURE__ */ v("li", { role: "menuitem", className: p.container, children: /* @__PURE__ */ Q(
|
|
18559
18559
|
Ac,
|
|
18560
18560
|
{
|
|
18561
18561
|
ref: c,
|
|
@@ -18568,7 +18568,7 @@ const Zc = ({ className: t, theme: e = {}, ...r }) => {
|
|
|
18568
18568
|
}),
|
|
18569
18569
|
tabIndex: m ? 0 : -1,
|
|
18570
18570
|
children: [
|
|
18571
|
-
r && /* @__PURE__ */
|
|
18571
|
+
r && /* @__PURE__ */ v(r, { className: p.icon }),
|
|
18572
18572
|
t
|
|
18573
18573
|
]
|
|
18574
18574
|
}
|
|
@@ -18599,7 +18599,7 @@ const x2 = {
|
|
|
18599
18599
|
const u = o(n);
|
|
18600
18600
|
return ms(u, { ref: t.setReference, disabled: a, ...d, ...u.props });
|
|
18601
18601
|
}
|
|
18602
|
-
return r ? /* @__PURE__ */
|
|
18602
|
+
return r ? /* @__PURE__ */ v("button", { type: "button", ref: t.setReference, className: n == null ? void 0 : n.inlineWrapper, disabled: a, ...d, children: e }) : /* @__PURE__ */ v(F0, { ...l, disabled: a, type: "button", ref: t.setReference, ...d, children: e });
|
|
18603
18603
|
}, Im = ({
|
|
18604
18604
|
children: t,
|
|
18605
18605
|
className: e,
|
|
@@ -18610,7 +18610,7 @@ const x2 = {
|
|
|
18610
18610
|
}) => {
|
|
18611
18611
|
const [s, o] = ve(!1), [l, c] = ve(null), [d, u] = ve(null), [f, h] = ve(void 0), g = Gt([]), m = Gt([]), p = te(ue().dropdown, n), w = i, b = i["data-testid"] || "flowbite-dropdown-target", {
|
|
18612
18612
|
placement: k = i.inline ? "bottom-start" : "bottom",
|
|
18613
|
-
trigger:
|
|
18613
|
+
trigger: y = "click",
|
|
18614
18614
|
label: x,
|
|
18615
18615
|
inline: _,
|
|
18616
18616
|
arrowIcon: T = !0,
|
|
@@ -18639,7 +18639,7 @@ const x2 = {
|
|
|
18639
18639
|
}), { getReferenceProps: W, getFloatingProps: B, getItemProps: U } = Tm({
|
|
18640
18640
|
context: z,
|
|
18641
18641
|
role: "menu",
|
|
18642
|
-
trigger:
|
|
18642
|
+
trigger: y,
|
|
18643
18643
|
interactions: [M, I]
|
|
18644
18644
|
}), J = no(() => {
|
|
18645
18645
|
const [E] = k.split("-");
|
|
@@ -18660,11 +18660,11 @@ const x2 = {
|
|
|
18660
18660
|
renderTrigger: a,
|
|
18661
18661
|
children: [
|
|
18662
18662
|
x,
|
|
18663
|
-
T && /* @__PURE__ */
|
|
18663
|
+
T && /* @__PURE__ */ v(J, { className: p.arrowIcon })
|
|
18664
18664
|
]
|
|
18665
18665
|
}
|
|
18666
18666
|
),
|
|
18667
|
-
s && /* @__PURE__ */
|
|
18667
|
+
s && /* @__PURE__ */ v(_m, { context: z, modal: !1, children: /* @__PURE__ */ v(
|
|
18668
18668
|
"div",
|
|
18669
18669
|
{
|
|
18670
18670
|
ref: L.setFloating,
|
|
@@ -18681,7 +18681,7 @@ const x2 = {
|
|
|
18681
18681
|
e
|
|
18682
18682
|
)
|
|
18683
18683
|
}),
|
|
18684
|
-
children: /* @__PURE__ */
|
|
18684
|
+
children: /* @__PURE__ */ v(zM, { elementsRef: g, labelsRef: m, children: /* @__PURE__ */ v("ul", { className: p.content, tabIndex: -1, children: t }) })
|
|
18685
18685
|
}
|
|
18686
18686
|
) })
|
|
18687
18687
|
] });
|
|
@@ -18698,7 +18698,7 @@ const Am = Oe(
|
|
|
18698
18698
|
({ className: t, color: e = "gray", helperText: r, sizing: n = "md", theme: a = {}, ...i }, s) => {
|
|
18699
18699
|
const o = te(ue().fileInput, a);
|
|
18700
18700
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
18701
|
-
/* @__PURE__ */
|
|
18701
|
+
/* @__PURE__ */ v("div", { className: Y(o.root.base, t), children: /* @__PURE__ */ v("div", { className: o.field.base, children: /* @__PURE__ */ v(
|
|
18702
18702
|
"input",
|
|
18703
18703
|
{
|
|
18704
18704
|
className: Y(
|
|
@@ -18711,7 +18711,7 @@ const Am = Oe(
|
|
|
18711
18711
|
ref: s
|
|
18712
18712
|
}
|
|
18713
18713
|
) }) }),
|
|
18714
|
-
r && /* @__PURE__ */
|
|
18714
|
+
r && /* @__PURE__ */ v(vi, { color: e, children: r })
|
|
18715
18715
|
] });
|
|
18716
18716
|
}
|
|
18717
18717
|
);
|
|
@@ -18731,7 +18731,7 @@ const k2 = Oe(
|
|
|
18731
18731
|
const d = In(), u = te(ue().floatingLabel, s);
|
|
18732
18732
|
return /* @__PURE__ */ Q("div", { children: [
|
|
18733
18733
|
/* @__PURE__ */ Q("div", { className: Y("relative", a === "standard" ? "z-0" : ""), children: [
|
|
18734
|
-
/* @__PURE__ */
|
|
18734
|
+
/* @__PURE__ */ v(
|
|
18735
18735
|
"input",
|
|
18736
18736
|
{
|
|
18737
18737
|
type: "text",
|
|
@@ -18745,7 +18745,7 @@ const k2 = Oe(
|
|
|
18745
18745
|
ref: c
|
|
18746
18746
|
}
|
|
18747
18747
|
),
|
|
18748
|
-
/* @__PURE__ */
|
|
18748
|
+
/* @__PURE__ */ v(
|
|
18749
18749
|
"label",
|
|
18750
18750
|
{
|
|
18751
18751
|
htmlFor: l.id ? l.id : "floatingLabel" + d,
|
|
@@ -18754,7 +18754,7 @@ const k2 = Oe(
|
|
|
18754
18754
|
}
|
|
18755
18755
|
)
|
|
18756
18756
|
] }),
|
|
18757
|
-
/* @__PURE__ */
|
|
18757
|
+
/* @__PURE__ */ v("p", { id: "outlined_helper_text" + d, className: Y(u.helperText[r], o), children: e })
|
|
18758
18758
|
] });
|
|
18759
18759
|
}
|
|
18760
18760
|
);
|
|
@@ -18770,11 +18770,11 @@ const Fm = ({
|
|
|
18770
18770
|
...o
|
|
18771
18771
|
}) => {
|
|
18772
18772
|
const l = te(ue().footer.brand, s);
|
|
18773
|
-
return /* @__PURE__ */
|
|
18774
|
-
/* @__PURE__ */
|
|
18775
|
-
/* @__PURE__ */
|
|
18773
|
+
return /* @__PURE__ */ v("div", { children: n ? /* @__PURE__ */ Q("a", { "data-testid": "flowbite-footer-brand", href: n, className: Y(l.base, e), ...o, children: [
|
|
18774
|
+
/* @__PURE__ */ v("img", { alt: t, src: i, className: l.img }),
|
|
18775
|
+
/* @__PURE__ */ v("span", { "data-testid": "flowbite-footer-brand-span", className: l.span, children: a }),
|
|
18776
18776
|
r
|
|
18777
|
-
] }) : /* @__PURE__ */
|
|
18777
|
+
] }) : /* @__PURE__ */ v(
|
|
18778
18778
|
"img",
|
|
18779
18779
|
{
|
|
18780
18780
|
alt: t,
|
|
@@ -18796,11 +18796,11 @@ const Fm = ({
|
|
|
18796
18796
|
return /* @__PURE__ */ Q("div", { "data-testid": "flowbite-footer-copyright", className: Y(s.base, e), ...i, children: [
|
|
18797
18797
|
"© ",
|
|
18798
18798
|
a,
|
|
18799
|
-
r ? /* @__PURE__ */
|
|
18799
|
+
r ? /* @__PURE__ */ v("a", { href: r, className: s.href, children: t }) : /* @__PURE__ */ v("span", { "data-testid": "flowbite-footer-copyright-span", className: s.span, children: t })
|
|
18800
18800
|
] });
|
|
18801
18801
|
}, Wm = ({ className: t, theme: e = {}, ...r }) => {
|
|
18802
18802
|
const n = te(ue().footer.divider, e);
|
|
18803
|
-
return /* @__PURE__ */
|
|
18803
|
+
return /* @__PURE__ */ v("hr", { "data-testid": "footer-divider", className: Y(n.base, t), ...r });
|
|
18804
18804
|
}, $m = ({
|
|
18805
18805
|
ariaLabel: t,
|
|
18806
18806
|
className: e,
|
|
@@ -18810,7 +18810,7 @@ const Fm = ({
|
|
|
18810
18810
|
...i
|
|
18811
18811
|
}) => {
|
|
18812
18812
|
const s = te(ue().footer.icon, a);
|
|
18813
|
-
return /* @__PURE__ */
|
|
18813
|
+
return /* @__PURE__ */ v("div", { children: r ? /* @__PURE__ */ v(
|
|
18814
18814
|
"a",
|
|
18815
18815
|
{
|
|
18816
18816
|
"aria-label": t,
|
|
@@ -18818,9 +18818,9 @@ const Fm = ({
|
|
|
18818
18818
|
href: r,
|
|
18819
18819
|
className: Y(s.base, e),
|
|
18820
18820
|
...i,
|
|
18821
|
-
children: /* @__PURE__ */
|
|
18821
|
+
children: /* @__PURE__ */ v(n, { className: s.size })
|
|
18822
18822
|
}
|
|
18823
|
-
) : /* @__PURE__ */
|
|
18823
|
+
) : /* @__PURE__ */ v(n, { "data-testid": "flowbite-footer-icon", className: s.size, ...i }) });
|
|
18824
18824
|
}, zm = ({
|
|
18825
18825
|
as: t = "a",
|
|
18826
18826
|
children: e,
|
|
@@ -18830,7 +18830,7 @@ const Fm = ({
|
|
|
18830
18830
|
...i
|
|
18831
18831
|
}) => {
|
|
18832
18832
|
const s = te(ue().footer.groupLink.link, a);
|
|
18833
|
-
return /* @__PURE__ */
|
|
18833
|
+
return /* @__PURE__ */ v("li", { className: Y(s.base, r), children: /* @__PURE__ */ v(t, { href: n, className: s.href, ...i, children: e }) });
|
|
18834
18834
|
}, jm = ({
|
|
18835
18835
|
children: t,
|
|
18836
18836
|
className: e,
|
|
@@ -18839,7 +18839,7 @@ const Fm = ({
|
|
|
18839
18839
|
...a
|
|
18840
18840
|
}) => {
|
|
18841
18841
|
const i = te(ue().footer.groupLink, n);
|
|
18842
|
-
return /* @__PURE__ */
|
|
18842
|
+
return /* @__PURE__ */ v("ul", { "data-testid": "footer-groupLink", className: Y(i.base, r && i.col, e), ...a, children: t });
|
|
18843
18843
|
}, Hm = ({
|
|
18844
18844
|
as: t = "h2",
|
|
18845
18845
|
className: e,
|
|
@@ -18848,7 +18848,7 @@ const Fm = ({
|
|
|
18848
18848
|
...a
|
|
18849
18849
|
}) => {
|
|
18850
18850
|
const i = te(ue().footer.title, r);
|
|
18851
|
-
return /* @__PURE__ */
|
|
18851
|
+
return /* @__PURE__ */ v(t, { "data-testid": "flowbite-footer-title", className: Y(i.base, e), ...a, children: n });
|
|
18852
18852
|
}, Bm = ({
|
|
18853
18853
|
bgDark: t = !1,
|
|
18854
18854
|
children: e,
|
|
@@ -18858,7 +18858,7 @@ const Fm = ({
|
|
|
18858
18858
|
...i
|
|
18859
18859
|
}) => {
|
|
18860
18860
|
const s = te(ue().footer, a);
|
|
18861
|
-
return /* @__PURE__ */
|
|
18861
|
+
return /* @__PURE__ */ v(
|
|
18862
18862
|
"footer",
|
|
18863
18863
|
{
|
|
18864
18864
|
"data-testid": "flowbite-footer",
|
|
@@ -18895,7 +18895,7 @@ const Ym = ({
|
|
|
18895
18895
|
...s
|
|
18896
18896
|
}) => {
|
|
18897
18897
|
const o = te(ue().label, a);
|
|
18898
|
-
return /* @__PURE__ */
|
|
18898
|
+
return /* @__PURE__ */ v(
|
|
18899
18899
|
"label",
|
|
18900
18900
|
{
|
|
18901
18901
|
className: Y(o.root.base, o.root.colors[r], n && o.root.disabled, e),
|
|
@@ -18909,7 +18909,7 @@ Ym.displayName = "Label";
|
|
|
18909
18909
|
const Vm = ({ children: t, className: e, icon: r, theme: n = {}, ...a }) => {
|
|
18910
18910
|
const i = te(ue().list.item, n);
|
|
18911
18911
|
return /* @__PURE__ */ Q("li", { className: Y(i.withIcon[r ? "on" : "off"], e), ...a, children: [
|
|
18912
|
-
r && /* @__PURE__ */
|
|
18912
|
+
r && /* @__PURE__ */ v(r, { className: Y(i.icon) }),
|
|
18913
18913
|
t
|
|
18914
18914
|
] });
|
|
18915
18915
|
}, qm = ({
|
|
@@ -18923,7 +18923,7 @@ const Vm = ({ children: t, className: e, icon: r, theme: n = {}, ...a }) => {
|
|
|
18923
18923
|
...o
|
|
18924
18924
|
}) => {
|
|
18925
18925
|
const l = te(ue().list, s);
|
|
18926
|
-
return /* @__PURE__ */
|
|
18926
|
+
return /* @__PURE__ */ v(
|
|
18927
18927
|
a ? "ol" : "ul",
|
|
18928
18928
|
{
|
|
18929
18929
|
className: Y(
|
|
@@ -18954,7 +18954,7 @@ const Um = ({
|
|
|
18954
18954
|
...l
|
|
18955
18955
|
}) => {
|
|
18956
18956
|
const c = te(ue().listGroup.item, s), d = typeof n < "u", u = d ? "a" : "button";
|
|
18957
|
-
return /* @__PURE__ */
|
|
18957
|
+
return /* @__PURE__ */ v("li", { className: Y(c.base, r), children: /* @__PURE__ */ Q(
|
|
18958
18958
|
u,
|
|
18959
18959
|
{
|
|
18960
18960
|
href: n,
|
|
@@ -18969,14 +18969,14 @@ const Um = ({
|
|
|
18969
18969
|
),
|
|
18970
18970
|
...l,
|
|
18971
18971
|
children: [
|
|
18972
|
-
a && /* @__PURE__ */
|
|
18972
|
+
a && /* @__PURE__ */ v(a, { "aria-hidden": !0, "data-testid": "flowbite-list-group-item-icon", className: c.link.icon }),
|
|
18973
18973
|
e
|
|
18974
18974
|
]
|
|
18975
18975
|
}
|
|
18976
18976
|
) });
|
|
18977
18977
|
}, Xm = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
18978
18978
|
const a = te(ue().listGroup, r);
|
|
18979
|
-
return /* @__PURE__ */
|
|
18979
|
+
return /* @__PURE__ */ v("ul", { className: Y(a.root.base, e), ...n, children: t });
|
|
18980
18980
|
};
|
|
18981
18981
|
Xm.displayName = "ListGroup";
|
|
18982
18982
|
Um.displayName = "ListGroup.Item";
|
|
@@ -18992,10 +18992,10 @@ function ed() {
|
|
|
18992
18992
|
}
|
|
18993
18993
|
const Km = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
18994
18994
|
const { theme: a, popup: i } = ed(), s = te(a.body, r);
|
|
18995
|
-
return /* @__PURE__ */
|
|
18995
|
+
return /* @__PURE__ */ v("div", { className: Y(s.base, i && [s.popup], e), ...n, children: t });
|
|
18996
18996
|
}, Qm = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
18997
18997
|
const { theme: a, popup: i } = ed(), s = te(a.footer, r);
|
|
18998
|
-
return /* @__PURE__ */
|
|
18998
|
+
return /* @__PURE__ */ v("div", { className: Y(s.base, !i && s.popup, e), ...n, children: t });
|
|
18999
18999
|
}, Jm = ({
|
|
19000
19000
|
as: t = "h3",
|
|
19001
19001
|
children: e,
|
|
@@ -19006,8 +19006,8 @@ const Km = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
|
19006
19006
|
}) => {
|
|
19007
19007
|
const s = In(), o = a || s, { theme: l, popup: c, onClose: d, setHeaderId: u } = ed(), f = te(l.header, n);
|
|
19008
19008
|
return ac(() => (u(o), () => u(void 0)), [o, u]), /* @__PURE__ */ Q("div", { className: Y(f.base, c && f.popup, r), ...i, children: [
|
|
19009
|
-
/* @__PURE__ */
|
|
19010
|
-
/* @__PURE__ */
|
|
19009
|
+
/* @__PURE__ */ v(t, { id: o, className: f.title, children: e }),
|
|
19010
|
+
/* @__PURE__ */ v("button", { "aria-label": "Close", className: f.close.base, type: "button", onClick: d, children: /* @__PURE__ */ v(PO, { "aria-hidden": !0, className: f.close.icon }) })
|
|
19011
19011
|
] });
|
|
19012
19012
|
}, Zm = Oe(
|
|
19013
19013
|
({
|
|
@@ -19027,8 +19027,8 @@ const Km = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
|
19027
19027
|
const [h, g] = ve(void 0), m = te(ue().modal, c), { context: p } = Dm({
|
|
19028
19028
|
open: o,
|
|
19029
19029
|
onOpenChange: () => n && n()
|
|
19030
|
-
}), w = mm([p.refs.setFloating, f]), b = Om(p), k = Sm(p, { outsidePressEvent: "mousedown", enabled: r }),
|
|
19031
|
-
return o ? /* @__PURE__ */
|
|
19030
|
+
}), w = mm([p.refs.setFloating, f]), b = Om(p), k = Sm(p, { outsidePressEvent: "mousedown", enabled: r }), y = Cm(p), { getFloatingProps: x } = Mm([b, k, y]);
|
|
19031
|
+
return o ? /* @__PURE__ */ v(Gm.Provider, { value: { theme: m, popup: a, onClose: n, setHeaderId: g }, children: /* @__PURE__ */ v(a2, { root: s, children: /* @__PURE__ */ v(
|
|
19032
19032
|
o2,
|
|
19033
19033
|
{
|
|
19034
19034
|
lockScroll: !0,
|
|
@@ -19040,14 +19040,14 @@ const Km = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
|
19040
19040
|
e
|
|
19041
19041
|
),
|
|
19042
19042
|
...u,
|
|
19043
|
-
children: /* @__PURE__ */
|
|
19043
|
+
children: /* @__PURE__ */ v(_m, { context: p, initialFocus: d, children: /* @__PURE__ */ v(
|
|
19044
19044
|
"div",
|
|
19045
19045
|
{
|
|
19046
19046
|
ref: w,
|
|
19047
19047
|
...x(u),
|
|
19048
19048
|
"aria-labelledby": h,
|
|
19049
19049
|
className: Y(m.content.base, m.root.sizes[l]),
|
|
19050
|
-
children: /* @__PURE__ */
|
|
19050
|
+
children: /* @__PURE__ */ v("div", { className: m.content.inner, children: t })
|
|
19051
19051
|
}
|
|
19052
19052
|
) })
|
|
19053
19053
|
}
|
|
@@ -19078,16 +19078,16 @@ const tp = ({
|
|
|
19078
19078
|
...a
|
|
19079
19079
|
}) => {
|
|
19080
19080
|
const { theme: i } = Mo(), s = te(i.brand, n);
|
|
19081
|
-
return /* @__PURE__ */
|
|
19081
|
+
return /* @__PURE__ */ v(t, { className: Y(s.base, r), ...a, children: e });
|
|
19082
19082
|
}, rp = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
19083
19083
|
const { theme: a, isOpen: i } = Mo(), s = te(a.collapse, r);
|
|
19084
|
-
return /* @__PURE__ */
|
|
19084
|
+
return /* @__PURE__ */ v(
|
|
19085
19085
|
"div",
|
|
19086
19086
|
{
|
|
19087
19087
|
"data-testid": "flowbite-navbar-collapse",
|
|
19088
19088
|
className: Y(s.base, s.hidden[i ? "off" : "on"], e),
|
|
19089
19089
|
...n,
|
|
19090
|
-
children: /* @__PURE__ */
|
|
19090
|
+
children: /* @__PURE__ */ v("ul", { className: s.list, children: t })
|
|
19091
19091
|
}
|
|
19092
19092
|
);
|
|
19093
19093
|
}, np = ({
|
|
@@ -19103,7 +19103,7 @@ const tp = ({
|
|
|
19103
19103
|
const { theme: l, setIsOpen: c } = Mo(), d = te(l.link, i), u = (f) => {
|
|
19104
19104
|
c(!1), s == null || s(f);
|
|
19105
19105
|
};
|
|
19106
|
-
return /* @__PURE__ */
|
|
19106
|
+
return /* @__PURE__ */ v("li", { children: /* @__PURE__ */ v(
|
|
19107
19107
|
e,
|
|
19108
19108
|
{
|
|
19109
19109
|
className: Y(
|
|
@@ -19135,8 +19135,8 @@ const tp = ({
|
|
|
19135
19135
|
className: Y(o.base, e),
|
|
19136
19136
|
...n,
|
|
19137
19137
|
children: [
|
|
19138
|
-
/* @__PURE__ */
|
|
19139
|
-
/* @__PURE__ */
|
|
19138
|
+
/* @__PURE__ */ v("span", { className: "sr-only", children: "Open main menu" }),
|
|
19139
|
+
/* @__PURE__ */ v(t, { "aria-hidden": !0, className: o.icon })
|
|
19140
19140
|
]
|
|
19141
19141
|
}
|
|
19142
19142
|
);
|
|
@@ -19151,7 +19151,7 @@ const tp = ({
|
|
|
19151
19151
|
...o
|
|
19152
19152
|
}) => {
|
|
19153
19153
|
const [l, c] = ve(a), d = te(ue().navbar, s);
|
|
19154
|
-
return /* @__PURE__ */
|
|
19154
|
+
return /* @__PURE__ */ v(ep.Provider, { value: { theme: d, isOpen: l, setIsOpen: c }, children: /* @__PURE__ */ v(
|
|
19155
19155
|
"nav",
|
|
19156
19156
|
{
|
|
19157
19157
|
className: Y(
|
|
@@ -19161,7 +19161,7 @@ const tp = ({
|
|
|
19161
19161
|
r
|
|
19162
19162
|
),
|
|
19163
19163
|
...o,
|
|
19164
|
-
children: /* @__PURE__ */
|
|
19164
|
+
children: /* @__PURE__ */ v("div", { className: Y(d.root.inner.base, d.root.inner.fluid[n ? "on" : "off"]), children: e })
|
|
19165
19165
|
}
|
|
19166
19166
|
) });
|
|
19167
19167
|
};
|
|
@@ -19185,7 +19185,7 @@ const _2 = (t, e) => t >= e ? [] : [...Array(e - t + 1).keys()].map((r) => r + t
|
|
|
19185
19185
|
...i
|
|
19186
19186
|
}) => {
|
|
19187
19187
|
const s = te(ue().pagination, a);
|
|
19188
|
-
return /* @__PURE__ */
|
|
19188
|
+
return /* @__PURE__ */ v(
|
|
19189
19189
|
"button",
|
|
19190
19190
|
{
|
|
19191
19191
|
type: "button",
|
|
@@ -19206,7 +19206,7 @@ const Ul = ({
|
|
|
19206
19206
|
...i
|
|
19207
19207
|
}) => {
|
|
19208
19208
|
const s = te(ue().pagination, n);
|
|
19209
|
-
return /* @__PURE__ */
|
|
19209
|
+
return /* @__PURE__ */ v(
|
|
19210
19210
|
"button",
|
|
19211
19211
|
{
|
|
19212
19212
|
type: "button",
|
|
@@ -19226,7 +19226,7 @@ const sp = ({
|
|
|
19226
19226
|
nextLabel: n = "Next",
|
|
19227
19227
|
onPageChange: a,
|
|
19228
19228
|
previousLabel: i = "Previous",
|
|
19229
|
-
renderPaginationButton: s = (u) => /* @__PURE__ */
|
|
19229
|
+
renderPaginationButton: s = (u) => /* @__PURE__ */ v(td, { ...u }),
|
|
19230
19230
|
showIcons: o = !1,
|
|
19231
19231
|
theme: l = {},
|
|
19232
19232
|
totalPages: c,
|
|
@@ -19240,33 +19240,33 @@ const sp = ({
|
|
|
19240
19240
|
return /* @__PURE__ */ Q("nav", { className: Y(u.base, t), ...d, children: [
|
|
19241
19241
|
r === "table" && /* @__PURE__ */ Q("div", { className: u.layout.table.base, children: [
|
|
19242
19242
|
"Showing ",
|
|
19243
|
-
/* @__PURE__ */
|
|
19243
|
+
/* @__PURE__ */ v("span", { className: u.layout.table.span, children: h }),
|
|
19244
19244
|
" to ",
|
|
19245
|
-
/* @__PURE__ */
|
|
19245
|
+
/* @__PURE__ */ v("span", { className: u.layout.table.span, children: f }),
|
|
19246
19246
|
" of ",
|
|
19247
|
-
/* @__PURE__ */
|
|
19247
|
+
/* @__PURE__ */ v("span", { className: u.layout.table.span, children: c }),
|
|
19248
19248
|
" Entries"
|
|
19249
19249
|
] }),
|
|
19250
19250
|
/* @__PURE__ */ Q("ul", { className: u.pages.base, children: [
|
|
19251
|
-
/* @__PURE__ */
|
|
19251
|
+
/* @__PURE__ */ v("li", { children: /* @__PURE__ */ Q(
|
|
19252
19252
|
Ul,
|
|
19253
19253
|
{
|
|
19254
19254
|
className: Y(u.pages.previous.base, o && u.pages.showIcon),
|
|
19255
19255
|
onClick: m,
|
|
19256
19256
|
disabled: e === 1,
|
|
19257
19257
|
children: [
|
|
19258
|
-
o && /* @__PURE__ */
|
|
19258
|
+
o && /* @__PURE__ */ v(h0, { "aria-hidden": !0, className: u.pages.previous.icon }),
|
|
19259
19259
|
i
|
|
19260
19260
|
]
|
|
19261
19261
|
}
|
|
19262
19262
|
) }),
|
|
19263
|
-
r === "pagination" && _2(h, f).map((p) => /* @__PURE__ */
|
|
19263
|
+
r === "pagination" && _2(h, f).map((p) => /* @__PURE__ */ v("li", { "aria-current": p === e ? "page" : void 0, children: s({
|
|
19264
19264
|
className: Y(u.pages.selector.base, e === p && u.pages.selector.active),
|
|
19265
19265
|
active: p === e,
|
|
19266
19266
|
onClick: () => a(p),
|
|
19267
19267
|
children: p
|
|
19268
19268
|
}) }, p)),
|
|
19269
|
-
/* @__PURE__ */
|
|
19269
|
+
/* @__PURE__ */ v("li", { children: /* @__PURE__ */ Q(
|
|
19270
19270
|
Ul,
|
|
19271
19271
|
{
|
|
19272
19272
|
className: Y(u.pages.next.base, o && u.pages.showIcon),
|
|
@@ -19274,7 +19274,7 @@ const sp = ({
|
|
|
19274
19274
|
disabled: e === c,
|
|
19275
19275
|
children: [
|
|
19276
19276
|
n,
|
|
19277
|
-
o && /* @__PURE__ */
|
|
19277
|
+
o && /* @__PURE__ */ v(g0, { "aria-hidden": !0, className: u.pages.next.icon })
|
|
19278
19278
|
]
|
|
19279
19279
|
}
|
|
19280
19280
|
) })
|
|
@@ -19288,14 +19288,14 @@ Object.assign(sp, {
|
|
|
19288
19288
|
const O2 = Oe(
|
|
19289
19289
|
({ className: t, theme: e = {}, ...r }, n) => {
|
|
19290
19290
|
const a = te(ue().radio, e);
|
|
19291
|
-
return /* @__PURE__ */
|
|
19291
|
+
return /* @__PURE__ */ v("input", { ref: n, type: "radio", className: Y(a.root.base, t), ...r });
|
|
19292
19292
|
}
|
|
19293
19293
|
);
|
|
19294
19294
|
O2.displayName = "Radio";
|
|
19295
19295
|
const S2 = Oe(
|
|
19296
19296
|
({ className: t, sizing: e = "md", theme: r = {}, ...n }, a) => {
|
|
19297
19297
|
const i = te(ue().rangeSlider, r);
|
|
19298
|
-
return /* @__PURE__ */
|
|
19298
|
+
return /* @__PURE__ */ v(Zt, { children: /* @__PURE__ */ v("div", { "data-testid": "flowbite-range-slider", className: Y(i.root.base, t), children: /* @__PURE__ */ v("div", { className: i.field.base, children: /* @__PURE__ */ v(
|
|
19299
19299
|
"input",
|
|
19300
19300
|
{
|
|
19301
19301
|
ref: a,
|
|
@@ -19316,8 +19316,8 @@ const op = ({
|
|
|
19316
19316
|
}) => {
|
|
19317
19317
|
const i = te(ue().ratingAdvanced, n);
|
|
19318
19318
|
return /* @__PURE__ */ Q("div", { className: Y(i.base, e), ...a, children: [
|
|
19319
|
-
/* @__PURE__ */
|
|
19320
|
-
/* @__PURE__ */
|
|
19319
|
+
/* @__PURE__ */ v("span", { className: i.label, children: t }),
|
|
19320
|
+
/* @__PURE__ */ v("div", { className: i.progress.base, children: /* @__PURE__ */ v(
|
|
19321
19321
|
"div",
|
|
19322
19322
|
{
|
|
19323
19323
|
className: i.progress.fill,
|
|
@@ -19325,7 +19325,7 @@ const op = ({
|
|
|
19325
19325
|
style: { width: `${r}%` }
|
|
19326
19326
|
}
|
|
19327
19327
|
) }),
|
|
19328
|
-
/* @__PURE__ */
|
|
19328
|
+
/* @__PURE__ */ v("span", { className: i.progress.label, children: `${r}%` })
|
|
19329
19329
|
] });
|
|
19330
19330
|
}, lp = ft(void 0);
|
|
19331
19331
|
function D2() {
|
|
@@ -19342,7 +19342,7 @@ const cp = ({
|
|
|
19342
19342
|
...a
|
|
19343
19343
|
}) => {
|
|
19344
19344
|
const { theme: i, size: s = "sm" } = D2(), o = te(i.star, n);
|
|
19345
|
-
return /* @__PURE__ */
|
|
19345
|
+
return /* @__PURE__ */ v(
|
|
19346
19346
|
r,
|
|
19347
19347
|
{
|
|
19348
19348
|
"data-testid": "flowbite-rating-star",
|
|
@@ -19352,7 +19352,7 @@ const cp = ({
|
|
|
19352
19352
|
);
|
|
19353
19353
|
}, dp = ({ children: t, className: e, size: r = "sm", theme: n = {}, ...a }) => {
|
|
19354
19354
|
const i = te(ue().rating, n);
|
|
19355
|
-
return /* @__PURE__ */
|
|
19355
|
+
return /* @__PURE__ */ v(lp.Provider, { value: { theme: i, size: r }, children: /* @__PURE__ */ v("div", { className: Y(i.root.base, e), ...a, children: t }) });
|
|
19356
19356
|
};
|
|
19357
19357
|
dp.displayName = "Rating";
|
|
19358
19358
|
cp.displayName = "Rating.Star";
|
|
@@ -19376,10 +19376,10 @@ const M2 = Oe(
|
|
|
19376
19376
|
}, d) => {
|
|
19377
19377
|
const u = te(ue().select, l);
|
|
19378
19378
|
return /* @__PURE__ */ Q("div", { className: Y(u.base, r), children: [
|
|
19379
|
-
t && /* @__PURE__ */
|
|
19379
|
+
t && /* @__PURE__ */ v("span", { className: u.addon, children: t }),
|
|
19380
19380
|
/* @__PURE__ */ Q("div", { className: u.field.base, children: [
|
|
19381
|
-
i && /* @__PURE__ */
|
|
19382
|
-
/* @__PURE__ */
|
|
19381
|
+
i && /* @__PURE__ */ v("div", { className: u.field.icon.base, children: /* @__PURE__ */ v(i, { className: u.field.icon.svg }) }),
|
|
19382
|
+
/* @__PURE__ */ v(
|
|
19383
19383
|
"select",
|
|
19384
19384
|
{
|
|
19385
19385
|
className: Y(
|
|
@@ -19395,7 +19395,7 @@ const M2 = Oe(
|
|
|
19395
19395
|
children: e
|
|
19396
19396
|
}
|
|
19397
19397
|
),
|
|
19398
|
-
a && /* @__PURE__ */
|
|
19398
|
+
a && /* @__PURE__ */ v(vi, { color: n, children: a })
|
|
19399
19399
|
] })
|
|
19400
19400
|
] });
|
|
19401
19401
|
}
|
|
@@ -19424,7 +19424,7 @@ const C2 = ({
|
|
|
19424
19424
|
middlewareData: { arrow: { x: p, y: w } = {} },
|
|
19425
19425
|
refs: b,
|
|
19426
19426
|
strategy: k,
|
|
19427
|
-
update:
|
|
19427
|
+
update: y,
|
|
19428
19428
|
x,
|
|
19429
19429
|
y: _
|
|
19430
19430
|
} = g, T = d2(m), { getFloatingProps: S, getReferenceProps: C } = Tm({
|
|
@@ -19435,9 +19435,9 @@ const C2 = ({
|
|
|
19435
19435
|
});
|
|
19436
19436
|
return lt(() => {
|
|
19437
19437
|
if (b.reference.current && b.floating.current && f)
|
|
19438
|
-
return cm(b.reference.current, b.floating.current,
|
|
19439
|
-
}, [f, b.floating, b.reference,
|
|
19440
|
-
/* @__PURE__ */
|
|
19438
|
+
return cm(b.reference.current, b.floating.current, y);
|
|
19439
|
+
}, [f, b.floating, b.reference, y]), /* @__PURE__ */ Q(Zt, { children: [
|
|
19440
|
+
/* @__PURE__ */ v(
|
|
19441
19441
|
"div",
|
|
19442
19442
|
{
|
|
19443
19443
|
ref: b.setReference,
|
|
@@ -19469,8 +19469,8 @@ const C2 = ({
|
|
|
19469
19469
|
...d
|
|
19470
19470
|
}),
|
|
19471
19471
|
children: [
|
|
19472
|
-
/* @__PURE__ */
|
|
19473
|
-
e && /* @__PURE__ */
|
|
19472
|
+
/* @__PURE__ */ v("div", { className: o.content, children: a }),
|
|
19473
|
+
e && /* @__PURE__ */ v(
|
|
19474
19474
|
"div",
|
|
19475
19475
|
{
|
|
19476
19476
|
className: Y(
|
|
@@ -19508,7 +19508,7 @@ const C2 = ({
|
|
|
19508
19508
|
...c
|
|
19509
19509
|
}) => {
|
|
19510
19510
|
const d = te(ue().tooltip, o);
|
|
19511
|
-
return /* @__PURE__ */
|
|
19511
|
+
return /* @__PURE__ */ v(
|
|
19512
19512
|
C2,
|
|
19513
19513
|
{
|
|
19514
19514
|
animation: t,
|
|
@@ -19551,7 +19551,7 @@ const fp = ({
|
|
|
19551
19551
|
...l
|
|
19552
19552
|
}) => {
|
|
19553
19553
|
const c = In(), [d, u] = ve(s), { theme: f, isCollapsed: h } = ya(), g = te(f.collapse, o);
|
|
19554
|
-
return lt(() => u(s), [s]), /* @__PURE__ */ Q(({ children: p }) => /* @__PURE__ */
|
|
19554
|
+
return lt(() => u(s), [s]), /* @__PURE__ */ Q(({ children: p }) => /* @__PURE__ */ v("li", { children: h && !d ? /* @__PURE__ */ v(rd, { content: n, placement: "right", children: p }) : p }), { children: [
|
|
19555
19555
|
/* @__PURE__ */ Q(
|
|
19556
19556
|
"button",
|
|
19557
19557
|
{
|
|
@@ -19562,7 +19562,7 @@ const fp = ({
|
|
|
19562
19562
|
className: Y(g.button, e),
|
|
19563
19563
|
...l,
|
|
19564
19564
|
children: [
|
|
19565
|
-
r && /* @__PURE__ */
|
|
19565
|
+
r && /* @__PURE__ */ v(
|
|
19566
19566
|
r,
|
|
19567
19567
|
{
|
|
19568
19568
|
"aria-hidden": !0,
|
|
@@ -19570,9 +19570,9 @@ const fp = ({
|
|
|
19570
19570
|
className: Y(g.icon.base, g.icon.open[d ? "on" : "off"])
|
|
19571
19571
|
}
|
|
19572
19572
|
),
|
|
19573
|
-
h ? /* @__PURE__ */
|
|
19574
|
-
/* @__PURE__ */
|
|
19575
|
-
i ? i(g, d) : /* @__PURE__ */
|
|
19573
|
+
h ? /* @__PURE__ */ v("span", { className: "sr-only", children: n }) : /* @__PURE__ */ Q(Zt, { children: [
|
|
19574
|
+
/* @__PURE__ */ v("span", { "data-testid": "flowbite-sidebar-collapse-label", className: g.label.base, children: n }),
|
|
19575
|
+
i ? i(g, d) : /* @__PURE__ */ v(
|
|
19576
19576
|
a,
|
|
19577
19577
|
{
|
|
19578
19578
|
"aria-hidden": !0,
|
|
@@ -19583,7 +19583,7 @@ const fp = ({
|
|
|
19583
19583
|
]
|
|
19584
19584
|
}
|
|
19585
19585
|
),
|
|
19586
|
-
/* @__PURE__ */
|
|
19586
|
+
/* @__PURE__ */ v("ul", { "aria-labelledby": `flowbite-sidebar-collapse-${c}`, hidden: !d, className: g.list, children: /* @__PURE__ */ v(nd.Provider, { value: { isInsideCollapse: !0 }, children: t }) })
|
|
19587
19587
|
] });
|
|
19588
19588
|
};
|
|
19589
19589
|
fp.displayName = "Sidebar.Collapse";
|
|
@@ -19595,7 +19595,7 @@ const hp = ({
|
|
|
19595
19595
|
...a
|
|
19596
19596
|
}) => {
|
|
19597
19597
|
const { theme: i, isCollapsed: s } = ya(), o = te(i.cta, n);
|
|
19598
|
-
return /* @__PURE__ */
|
|
19598
|
+
return /* @__PURE__ */ v(
|
|
19599
19599
|
"div",
|
|
19600
19600
|
{
|
|
19601
19601
|
"data-testid": "sidebar-cta",
|
|
@@ -19607,14 +19607,14 @@ const hp = ({
|
|
|
19607
19607
|
);
|
|
19608
19608
|
};
|
|
19609
19609
|
hp.displayName = "Sidebar.CTA";
|
|
19610
|
-
const T2 = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a, ...i }) => /* @__PURE__ */
|
|
19610
|
+
const T2 = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a, ...i }) => /* @__PURE__ */ v("li", { ...i, children: r ? /* @__PURE__ */ v(
|
|
19611
19611
|
rd,
|
|
19612
19612
|
{
|
|
19613
|
-
content: /* @__PURE__ */
|
|
19613
|
+
content: /* @__PURE__ */ v(gp, { id: t, theme: e, children: n }),
|
|
19614
19614
|
placement: "right",
|
|
19615
19615
|
children: a
|
|
19616
19616
|
}
|
|
19617
|
-
) : a }), gp = ({ id: t, theme: e, children: r }) => /* @__PURE__ */
|
|
19617
|
+
) : a }), gp = ({ id: t, theme: e, children: r }) => /* @__PURE__ */ v(
|
|
19618
19618
|
"span",
|
|
19619
19619
|
{
|
|
19620
19620
|
"data-testid": "flowbite-sidebar-item-content",
|
|
@@ -19636,7 +19636,7 @@ const T2 = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a,
|
|
|
19636
19636
|
}, c) => {
|
|
19637
19637
|
var m, p, w, b;
|
|
19638
19638
|
const d = In(), { theme: u, isCollapsed: f } = ya(), { isInsideCollapse: h } = E2(), g = te(u.item, o);
|
|
19639
|
-
return /* @__PURE__ */
|
|
19639
|
+
return /* @__PURE__ */ v(T2, { theme: g, className: g.listItem, id: d, isCollapsed: f, tooltipChildren: r, children: /* @__PURE__ */ Q(
|
|
19640
19640
|
e,
|
|
19641
19641
|
{
|
|
19642
19642
|
"aria-labelledby": `flowbite-sidebar-item-${d}`,
|
|
@@ -19649,7 +19649,7 @@ const T2 = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a,
|
|
|
19649
19649
|
),
|
|
19650
19650
|
...l,
|
|
19651
19651
|
children: [
|
|
19652
|
-
a && /* @__PURE__ */
|
|
19652
|
+
a && /* @__PURE__ */ v(
|
|
19653
19653
|
a,
|
|
19654
19654
|
{
|
|
19655
19655
|
"aria-hidden": !0,
|
|
@@ -19657,9 +19657,9 @@ const T2 = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a,
|
|
|
19657
19657
|
className: Y((p = g.icon) == null ? void 0 : p.base, t && ((w = g.icon) == null ? void 0 : w.active))
|
|
19658
19658
|
}
|
|
19659
19659
|
),
|
|
19660
|
-
f && !a && /* @__PURE__ */
|
|
19661
|
-
!f && /* @__PURE__ */
|
|
19662
|
-
!f && i && /* @__PURE__ */
|
|
19660
|
+
f && !a && /* @__PURE__ */ v("span", { className: (b = g.collapsed) == null ? void 0 : b.noIcon, children: r.charAt(0).toLocaleUpperCase() ?? "?" }),
|
|
19661
|
+
!f && /* @__PURE__ */ v(gp, { id: d, theme: g, children: r }),
|
|
19662
|
+
!f && i && /* @__PURE__ */ v(P0, { color: s, "data-testid": "flowbite-sidebar-label", hidden: f, className: g.label, children: i })
|
|
19663
19663
|
]
|
|
19664
19664
|
}
|
|
19665
19665
|
) });
|
|
@@ -19673,12 +19673,12 @@ const pp = ({
|
|
|
19673
19673
|
...n
|
|
19674
19674
|
}) => {
|
|
19675
19675
|
const { theme: a } = ya(), i = te(a.itemGroup, r);
|
|
19676
|
-
return /* @__PURE__ */
|
|
19676
|
+
return /* @__PURE__ */ v("ul", { "data-testid": "flowbite-sidebar-item-group", className: Y(i.base, e), ...n, children: /* @__PURE__ */ v(nd.Provider, { value: { isInsideCollapse: !1 }, children: t }) });
|
|
19677
19677
|
};
|
|
19678
19678
|
pp.displayName = "Sidebar.ItemGroup";
|
|
19679
19679
|
const bp = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
19680
19680
|
const { theme: a } = ya(), i = te(a.items, r);
|
|
19681
|
-
return /* @__PURE__ */
|
|
19681
|
+
return /* @__PURE__ */ v("div", { className: Y(i.base, e), "data-testid": "flowbite-sidebar-items", ...n, children: t });
|
|
19682
19682
|
};
|
|
19683
19683
|
bp.displayName = "Sidebar.Items";
|
|
19684
19684
|
const yp = ({
|
|
@@ -19699,8 +19699,8 @@ const yp = ({
|
|
|
19699
19699
|
className: Y(d.base, e),
|
|
19700
19700
|
...s,
|
|
19701
19701
|
children: [
|
|
19702
|
-
/* @__PURE__ */
|
|
19703
|
-
/* @__PURE__ */
|
|
19702
|
+
/* @__PURE__ */ v("img", { alt: a, src: n, className: d.img }),
|
|
19703
|
+
/* @__PURE__ */ v("span", { className: d.collapsed[c ? "on" : "off"], id: `flowbite-sidebar-logo-${o}`, children: t })
|
|
19704
19704
|
]
|
|
19705
19705
|
}
|
|
19706
19706
|
);
|
|
@@ -19716,14 +19716,14 @@ const vp = ({
|
|
|
19716
19716
|
...s
|
|
19717
19717
|
}) => {
|
|
19718
19718
|
const o = te(ue().sidebar, a);
|
|
19719
|
-
return /* @__PURE__ */
|
|
19719
|
+
return /* @__PURE__ */ v(up.Provider, { value: { theme: o, isCollapsed: n }, children: /* @__PURE__ */ v(
|
|
19720
19720
|
e,
|
|
19721
19721
|
{
|
|
19722
19722
|
"aria-label": "Sidebar",
|
|
19723
19723
|
hidden: n && r === "hide",
|
|
19724
19724
|
className: Y(o.root.base, o.root.collapsed[n ? "on" : "off"], i),
|
|
19725
19725
|
...s,
|
|
19726
|
-
children: /* @__PURE__ */
|
|
19726
|
+
children: /* @__PURE__ */ v("div", { className: o.root.inner, children: t })
|
|
19727
19727
|
}
|
|
19728
19728
|
) });
|
|
19729
19729
|
};
|
|
@@ -19753,14 +19753,14 @@ function ad() {
|
|
|
19753
19753
|
const kp = Oe(
|
|
19754
19754
|
({ children: t, className: e, theme: r = {}, ...n }, a) => {
|
|
19755
19755
|
const { theme: i } = ad(), s = te(i.body, r);
|
|
19756
|
-
return /* @__PURE__ */
|
|
19756
|
+
return /* @__PURE__ */ v(xp.Provider, { value: { theme: s }, children: /* @__PURE__ */ v("tbody", { className: Y(s.base, e), ref: a, ...n, children: t }) });
|
|
19757
19757
|
}
|
|
19758
19758
|
);
|
|
19759
19759
|
kp.displayName = "Table.Body";
|
|
19760
19760
|
const _p = Oe(
|
|
19761
19761
|
({ children: t, className: e, theme: r = {}, ...n }, a) => {
|
|
19762
19762
|
const { theme: i } = P2(), s = te(i.cell, r);
|
|
19763
|
-
return /* @__PURE__ */
|
|
19763
|
+
return /* @__PURE__ */ v("td", { className: Y(s.base, e), ref: a, ...n, children: t });
|
|
19764
19764
|
}
|
|
19765
19765
|
);
|
|
19766
19766
|
_p.displayName = "Table.Cell";
|
|
@@ -19774,21 +19774,21 @@ function R2() {
|
|
|
19774
19774
|
const Sp = Oe(
|
|
19775
19775
|
({ children: t, className: e, theme: r = {}, ...n }, a) => {
|
|
19776
19776
|
const { theme: i } = ad(), s = te(i.head, r);
|
|
19777
|
-
return /* @__PURE__ */
|
|
19777
|
+
return /* @__PURE__ */ v(Op.Provider, { value: { theme: s }, children: /* @__PURE__ */ v("thead", { className: Y(s.base, e), ref: a, ...n, children: /* @__PURE__ */ v("tr", { children: t }) }) });
|
|
19778
19778
|
}
|
|
19779
19779
|
);
|
|
19780
19780
|
Sp.displayName = "Table.Head";
|
|
19781
19781
|
const Dp = Oe(
|
|
19782
19782
|
({ children: t, className: e, theme: r = {}, ...n }, a) => {
|
|
19783
19783
|
const { theme: i } = R2(), s = te(i.cell, r);
|
|
19784
|
-
return /* @__PURE__ */
|
|
19784
|
+
return /* @__PURE__ */ v("th", { className: Y(s.base, e), ref: a, ...n, children: t });
|
|
19785
19785
|
}
|
|
19786
19786
|
);
|
|
19787
19787
|
Dp.displayName = "Table.HeadCell";
|
|
19788
19788
|
const Mp = Oe(
|
|
19789
19789
|
({ children: t, className: e, theme: r = {}, ...n }, a) => {
|
|
19790
19790
|
const { theme: i, hoverable: s, striped: o } = ad(), l = te(i.row, r);
|
|
19791
|
-
return /* @__PURE__ */
|
|
19791
|
+
return /* @__PURE__ */ v(
|
|
19792
19792
|
"tr",
|
|
19793
19793
|
{
|
|
19794
19794
|
ref: a,
|
|
@@ -19804,9 +19804,9 @@ Mp.displayName = "Table.Row";
|
|
|
19804
19804
|
const Cp = Oe(
|
|
19805
19805
|
({ children: t, className: e, striped: r, hoverable: n, theme: a = {}, ...i }, s) => {
|
|
19806
19806
|
const o = te(ue().table, a);
|
|
19807
|
-
return /* @__PURE__ */
|
|
19808
|
-
/* @__PURE__ */
|
|
19809
|
-
/* @__PURE__ */
|
|
19807
|
+
return /* @__PURE__ */ v("div", { "data-testid": "table-element", className: Y(o.root.wrapper), children: /* @__PURE__ */ Q(wp.Provider, { value: { theme: o, striped: r, hoverable: n }, children: [
|
|
19808
|
+
/* @__PURE__ */ v("div", { className: Y(o.root.shadow, e) }),
|
|
19809
|
+
/* @__PURE__ */ v("table", { className: Y(o.root.base, e), ...i, ref: s, children: t })
|
|
19810
19810
|
] }) });
|
|
19811
19811
|
}
|
|
19812
19812
|
);
|
|
@@ -19817,42 +19817,42 @@ const Hn = Object.assign(Cp, {
|
|
|
19817
19817
|
Row: Mp,
|
|
19818
19818
|
Cell: _p,
|
|
19819
19819
|
HeadCell: Dp
|
|
19820
|
-
}), Gn = ({ children: t, className: e }) => /* @__PURE__ */
|
|
19820
|
+
}), Gn = ({ children: t, className: e }) => /* @__PURE__ */ v("div", { className: e, children: t });
|
|
19821
19821
|
Gn.displayName = "Tabs.Item";
|
|
19822
19822
|
const Ep = Oe(
|
|
19823
19823
|
({ children: t, className: e, onActiveTabChange: r, style: n = "default", theme: a = {}, ...i }, s) => {
|
|
19824
19824
|
const o = te(ue().tabs, a), l = In(), c = no(
|
|
19825
19825
|
() => Qn.map(
|
|
19826
19826
|
Qn.toArray(t),
|
|
19827
|
-
({ props:
|
|
19827
|
+
({ props: y }) => y
|
|
19828
19828
|
),
|
|
19829
19829
|
[t]
|
|
19830
19830
|
), d = Gt([]), [u, f] = ve(
|
|
19831
19831
|
Math.max(
|
|
19832
19832
|
0,
|
|
19833
|
-
c.findIndex((
|
|
19833
|
+
c.findIndex((y) => y.active)
|
|
19834
19834
|
)
|
|
19835
|
-
), [h, g] = ve(-1), m = (
|
|
19836
|
-
f(
|
|
19837
|
-
}, p = ({ target:
|
|
19838
|
-
m(
|
|
19839
|
-
}, w = ({ event:
|
|
19840
|
-
|
|
19835
|
+
), [h, g] = ve(-1), m = (y) => {
|
|
19836
|
+
f(y), r && r(y);
|
|
19837
|
+
}, p = ({ target: y }) => {
|
|
19838
|
+
m(y), g(y);
|
|
19839
|
+
}, w = ({ event: y, target: x }) => {
|
|
19840
|
+
y.key === "ArrowLeft" && g(Math.max(0, h - 1)), y.key === "ArrowRight" && g(Math.min(c.length - 1, h + 1)), y.key === "Enter" && (m(x), g(x));
|
|
19841
19841
|
}, b = o.tablist.tabitem.styles[n], k = o.tabitemcontainer.styles[n];
|
|
19842
19842
|
return lt(() => {
|
|
19843
|
-
var
|
|
19844
|
-
(
|
|
19843
|
+
var y;
|
|
19844
|
+
(y = d.current[h]) == null || y.focus();
|
|
19845
19845
|
}, [h]), Vh(s, () => ({
|
|
19846
19846
|
setActiveTab: m
|
|
19847
19847
|
})), /* @__PURE__ */ Q("div", { className: Y(o.base, e), children: [
|
|
19848
|
-
/* @__PURE__ */
|
|
19848
|
+
/* @__PURE__ */ v(
|
|
19849
19849
|
"div",
|
|
19850
19850
|
{
|
|
19851
19851
|
"aria-label": "Tabs",
|
|
19852
19852
|
role: "tablist",
|
|
19853
19853
|
className: Y(o.tablist.base, o.tablist.styles[n], e),
|
|
19854
19854
|
...i,
|
|
19855
|
-
children: c.map((
|
|
19855
|
+
children: c.map((y, x) => /* @__PURE__ */ Q(
|
|
19856
19856
|
"button",
|
|
19857
19857
|
{
|
|
19858
19858
|
type: "button",
|
|
@@ -19862,9 +19862,9 @@ const Ep = Oe(
|
|
|
19862
19862
|
o.tablist.tabitem.base,
|
|
19863
19863
|
b.base,
|
|
19864
19864
|
x === u && b.active.on,
|
|
19865
|
-
x !== u && !
|
|
19865
|
+
x !== u && !y.disabled && b.active.off
|
|
19866
19866
|
),
|
|
19867
|
-
disabled:
|
|
19867
|
+
disabled: y.disabled,
|
|
19868
19868
|
id: `${l}-tab-${x}`,
|
|
19869
19869
|
onClick: () => p({ target: x }),
|
|
19870
19870
|
onKeyDown: (_) => w({ event: _, target: x }),
|
|
@@ -19873,15 +19873,15 @@ const Ep = Oe(
|
|
|
19873
19873
|
tabIndex: x === h ? 0 : -1,
|
|
19874
19874
|
style: { zIndex: x === h ? 2 : 1 },
|
|
19875
19875
|
children: [
|
|
19876
|
-
|
|
19877
|
-
|
|
19876
|
+
y.icon && /* @__PURE__ */ v(y.icon, { className: o.tablist.tabitem.icon }),
|
|
19877
|
+
y.title
|
|
19878
19878
|
]
|
|
19879
19879
|
},
|
|
19880
19880
|
x
|
|
19881
19881
|
))
|
|
19882
19882
|
}
|
|
19883
19883
|
),
|
|
19884
|
-
/* @__PURE__ */
|
|
19884
|
+
/* @__PURE__ */ v("div", { className: Y(o.tabitemcontainer.base, k), children: c.map((y, x) => /* @__PURE__ */ v(
|
|
19885
19885
|
"div",
|
|
19886
19886
|
{
|
|
19887
19887
|
"aria-labelledby": `${l}-tab-${x}`,
|
|
@@ -19890,7 +19890,7 @@ const Ep = Oe(
|
|
|
19890
19890
|
id: `${l}-tabpanel-${x}`,
|
|
19891
19891
|
role: "tabpanel",
|
|
19892
19892
|
tabIndex: 0,
|
|
19893
|
-
children:
|
|
19893
|
+
children: y.children
|
|
19894
19894
|
},
|
|
19895
19895
|
x
|
|
19896
19896
|
)) })
|
|
@@ -19904,7 +19904,7 @@ const N2 = Object.assign(Ep, {
|
|
|
19904
19904
|
({ className: t, color: e = "gray", helperText: r, shadow: n, theme: a = {}, ...i }, s) => {
|
|
19905
19905
|
const o = te(ue().textarea, a);
|
|
19906
19906
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
19907
|
-
/* @__PURE__ */
|
|
19907
|
+
/* @__PURE__ */ v(
|
|
19908
19908
|
"textarea",
|
|
19909
19909
|
{
|
|
19910
19910
|
ref: s,
|
|
@@ -19912,7 +19912,7 @@ const N2 = Object.assign(Ep, {
|
|
|
19912
19912
|
...i
|
|
19913
19913
|
}
|
|
19914
19914
|
),
|
|
19915
|
-
r && /* @__PURE__ */
|
|
19915
|
+
r && /* @__PURE__ */ v(vi, { color: e, children: r })
|
|
19916
19916
|
] });
|
|
19917
19917
|
}
|
|
19918
19918
|
);
|
|
@@ -19926,7 +19926,7 @@ function id() {
|
|
|
19926
19926
|
}
|
|
19927
19927
|
const Pp = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
19928
19928
|
const { theme: a } = id(), i = te(a.body, r);
|
|
19929
|
-
return /* @__PURE__ */
|
|
19929
|
+
return /* @__PURE__ */ v("div", { className: Y(i.base, e), ...n, children: t });
|
|
19930
19930
|
}, Rp = ft(void 0);
|
|
19931
19931
|
function sd() {
|
|
19932
19932
|
const t = rt(Rp);
|
|
@@ -19948,10 +19948,10 @@ const Ap = ({
|
|
|
19948
19948
|
...n
|
|
19949
19949
|
}) => {
|
|
19950
19950
|
const { horizontal: a } = sd(), { theme: i } = Ip(), s = te(i.content, r);
|
|
19951
|
-
return /* @__PURE__ */
|
|
19951
|
+
return /* @__PURE__ */ v(Tp.Provider, { value: { theme: s }, children: /* @__PURE__ */ v("div", { "data-testid": "timeline-content", className: Y(a && s.root.base, e), ...n, children: t }) });
|
|
19952
19952
|
}, Fp = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
19953
19953
|
const { theme: a, horizontal: i } = sd(), s = te(a.item, r);
|
|
19954
|
-
return /* @__PURE__ */
|
|
19954
|
+
return /* @__PURE__ */ v(Np.Provider, { value: { theme: s }, children: /* @__PURE__ */ v(
|
|
19955
19955
|
"li",
|
|
19956
19956
|
{
|
|
19957
19957
|
"data-testid": "timeline-item",
|
|
@@ -19976,19 +19976,19 @@ const Ap = ({
|
|
|
19976
19976
|
...a,
|
|
19977
19977
|
children: [
|
|
19978
19978
|
t,
|
|
19979
|
-
r ? /* @__PURE__ */
|
|
19979
|
+
r ? /* @__PURE__ */ v("span", { className: Y(o.marker.icon.wrapper), children: /* @__PURE__ */ v(r, { "aria-hidden": !0, className: Y(o.marker.icon.base) }) }) : /* @__PURE__ */ v(
|
|
19980
19980
|
"div",
|
|
19981
19981
|
{
|
|
19982
19982
|
className: Y(i && o.marker.base.horizontal, !i && o.marker.base.vertical)
|
|
19983
19983
|
}
|
|
19984
19984
|
),
|
|
19985
|
-
i && /* @__PURE__ */
|
|
19985
|
+
i && /* @__PURE__ */ v("div", { className: Y(o.line) })
|
|
19986
19986
|
]
|
|
19987
19987
|
}
|
|
19988
19988
|
);
|
|
19989
19989
|
}, Wp = ({ children: t, className: e, theme: r = {}, ...n }) => {
|
|
19990
19990
|
const { theme: a } = id(), i = te(a.time, r);
|
|
19991
|
-
return /* @__PURE__ */
|
|
19991
|
+
return /* @__PURE__ */ v("time", { className: Y(i.base, e), ...n, children: t });
|
|
19992
19992
|
}, $p = ({
|
|
19993
19993
|
as: t = "h3",
|
|
19994
19994
|
children: e,
|
|
@@ -19997,7 +19997,7 @@ const Ap = ({
|
|
|
19997
19997
|
...a
|
|
19998
19998
|
}) => {
|
|
19999
19999
|
const { theme: i } = id(), s = te(i.title, n);
|
|
20000
|
-
return /* @__PURE__ */
|
|
20000
|
+
return /* @__PURE__ */ v(t, { className: Y(s.base, r), ...a, children: e });
|
|
20001
20001
|
}, zp = ({
|
|
20002
20002
|
children: t,
|
|
20003
20003
|
className: e,
|
|
@@ -20006,7 +20006,7 @@ const Ap = ({
|
|
|
20006
20006
|
...a
|
|
20007
20007
|
}) => {
|
|
20008
20008
|
const i = te(ue().timeline, n);
|
|
20009
|
-
return /* @__PURE__ */
|
|
20009
|
+
return /* @__PURE__ */ v(Rp.Provider, { value: { theme: i, horizontal: r }, children: /* @__PURE__ */ v(
|
|
20010
20010
|
"ol",
|
|
20011
20011
|
{
|
|
20012
20012
|
"data-testid": "timeline-component",
|
|
@@ -20051,7 +20051,7 @@ const Hp = ({
|
|
|
20051
20051
|
...i
|
|
20052
20052
|
}) => {
|
|
20053
20053
|
const { theme: s, duration: o, isClosed: l, isRemoved: c, setIsClosed: d, setIsRemoved: u } = A2(), f = te(s.toggle, r);
|
|
20054
|
-
return /* @__PURE__ */
|
|
20054
|
+
return /* @__PURE__ */ v(
|
|
20055
20055
|
"button",
|
|
20056
20056
|
{
|
|
20057
20057
|
"aria-label": "Close",
|
|
@@ -20065,7 +20065,7 @@ const Hp = ({
|
|
|
20065
20065
|
type: "button",
|
|
20066
20066
|
className: Y(f.base, t),
|
|
20067
20067
|
...i,
|
|
20068
|
-
children: /* @__PURE__ */
|
|
20068
|
+
children: /* @__PURE__ */ v(n, { "aria-hidden": !0, className: f.icon })
|
|
20069
20069
|
}
|
|
20070
20070
|
);
|
|
20071
20071
|
}, F2 = {
|
|
@@ -20079,7 +20079,7 @@ const Hp = ({
|
|
|
20079
20079
|
1e3: "duration-1000"
|
|
20080
20080
|
}, Bp = ({ children: t, className: e, duration: r = 300, theme: n = {}, ...a }) => {
|
|
20081
20081
|
const [i, s] = ve(!1), [o, l] = ve(!1), c = te(ue().toast, n);
|
|
20082
|
-
return o ? null : /* @__PURE__ */
|
|
20082
|
+
return o ? null : /* @__PURE__ */ v(jp.Provider, { value: { theme: c, duration: r, isClosed: i, isRemoved: o, setIsClosed: s, setIsRemoved: l }, children: /* @__PURE__ */ v(
|
|
20083
20083
|
"div",
|
|
20084
20084
|
{
|
|
20085
20085
|
"data-testid": "flowbite-toast",
|
|
@@ -20114,7 +20114,7 @@ const L2 = Oe(
|
|
|
20114
20114
|
p.code == "Enter" && p.preventDefault();
|
|
20115
20115
|
};
|
|
20116
20116
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
20117
|
-
s && t ? /* @__PURE__ */
|
|
20117
|
+
s && t ? /* @__PURE__ */ v("input", { ref: d, checked: t, hidden: !0, name: s, readOnly: !0, type: "checkbox", className: "sr-only" }) : null,
|
|
20118
20118
|
/* @__PURE__ */ Q(
|
|
20119
20119
|
"button",
|
|
20120
20120
|
{
|
|
@@ -20130,7 +20130,7 @@ const L2 = Oe(
|
|
|
20130
20130
|
className: Y(f.root.base, f.root.active[a ? "off" : "on"], e),
|
|
20131
20131
|
...c,
|
|
20132
20132
|
children: [
|
|
20133
|
-
/* @__PURE__ */
|
|
20133
|
+
/* @__PURE__ */ v(
|
|
20134
20134
|
"div",
|
|
20135
20135
|
{
|
|
20136
20136
|
"data-testid": "flowbite-toggleswitch-toggle",
|
|
@@ -20142,7 +20142,7 @@ const L2 = Oe(
|
|
|
20142
20142
|
)
|
|
20143
20143
|
}
|
|
20144
20144
|
),
|
|
20145
|
-
i != null && i.length ? /* @__PURE__ */
|
|
20145
|
+
i != null && i.length ? /* @__PURE__ */ v(
|
|
20146
20146
|
"span",
|
|
20147
20147
|
{
|
|
20148
20148
|
"data-testid": "flowbite-toggleswitch-label",
|
|
@@ -20163,13 +20163,13 @@ const W2 = ({
|
|
|
20163
20163
|
totalPages: e,
|
|
20164
20164
|
onPageChange: r
|
|
20165
20165
|
}) => /* @__PURE__ */ Q("div", { className: "flex items-center justify-center gap-4", children: [
|
|
20166
|
-
/* @__PURE__ */
|
|
20166
|
+
/* @__PURE__ */ v(
|
|
20167
20167
|
"button",
|
|
20168
20168
|
{
|
|
20169
20169
|
onClick: () => r(t - 1),
|
|
20170
20170
|
disabled: t === 1,
|
|
20171
20171
|
className: "p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",
|
|
20172
|
-
children: /* @__PURE__ */
|
|
20172
|
+
children: /* @__PURE__ */ v(h0, { className: "h-5 w-5" })
|
|
20173
20173
|
}
|
|
20174
20174
|
),
|
|
20175
20175
|
/* @__PURE__ */ Q("span", { className: "text-sm text-gray-700", children: [
|
|
@@ -20177,13 +20177,13 @@ const W2 = ({
|
|
|
20177
20177
|
" de ",
|
|
20178
20178
|
e
|
|
20179
20179
|
] }),
|
|
20180
|
-
/* @__PURE__ */
|
|
20180
|
+
/* @__PURE__ */ v(
|
|
20181
20181
|
"button",
|
|
20182
20182
|
{
|
|
20183
20183
|
onClick: () => r(t + 1),
|
|
20184
20184
|
disabled: t === e,
|
|
20185
20185
|
className: "p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",
|
|
20186
|
-
children: /* @__PURE__ */
|
|
20186
|
+
children: /* @__PURE__ */ v(g0, { className: "h-5 w-5" })
|
|
20187
20187
|
}
|
|
20188
20188
|
)
|
|
20189
20189
|
] });
|
|
@@ -20200,7 +20200,7 @@ function $2({
|
|
|
20200
20200
|
{
|
|
20201
20201
|
className: `inline-flex items-center ${r ? "cursor-not-allowed opacity-60" : "cursor-pointer"}`,
|
|
20202
20202
|
children: [
|
|
20203
|
-
/* @__PURE__ */
|
|
20203
|
+
/* @__PURE__ */ v(
|
|
20204
20204
|
"input",
|
|
20205
20205
|
{
|
|
20206
20206
|
type: "checkbox",
|
|
@@ -20214,25 +20214,25 @@ function $2({
|
|
|
20214
20214
|
disabled: r
|
|
20215
20215
|
}
|
|
20216
20216
|
),
|
|
20217
|
-
/* @__PURE__ */
|
|
20217
|
+
/* @__PURE__ */ v(
|
|
20218
20218
|
"div",
|
|
20219
20219
|
{
|
|
20220
|
-
className: `peer relative h-6 w-11 rounded-full bg-gray-200
|
|
20221
|
-
after:absolute after:start-[2px]
|
|
20222
|
-
after:top-0.5 after:h-5
|
|
20223
|
-
after:w-5 after:rounded-full
|
|
20224
|
-
after:border after:border-gray-300
|
|
20225
|
-
after:bg-white after:transition-all after:content-['']
|
|
20226
|
-
peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white
|
|
20227
|
-
peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600
|
|
20228
|
-
dark:bg-gray-700 dark:peer-checked:bg-blue-600
|
|
20220
|
+
className: `peer relative h-6 w-11 rounded-full bg-gray-200 \r
|
|
20221
|
+
after:absolute after:start-[2px] \r
|
|
20222
|
+
after:top-0.5 after:h-5 \r
|
|
20223
|
+
after:w-5 after:rounded-full \r
|
|
20224
|
+
after:border after:border-gray-300 \r
|
|
20225
|
+
after:bg-white after:transition-all after:content-[''] \r
|
|
20226
|
+
peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white \r
|
|
20227
|
+
peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600 \r
|
|
20228
|
+
dark:bg-gray-700 dark:peer-checked:bg-blue-600 \r
|
|
20229
20229
|
dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`
|
|
20230
20230
|
}
|
|
20231
20231
|
)
|
|
20232
20232
|
]
|
|
20233
20233
|
}
|
|
20234
20234
|
),
|
|
20235
|
-
t && /* @__PURE__ */
|
|
20235
|
+
t && /* @__PURE__ */ v(
|
|
20236
20236
|
"span",
|
|
20237
20237
|
{
|
|
20238
20238
|
className: `text-sm ${r ? "text-gray-500" : "text-gray-700"}`,
|
|
@@ -20250,12 +20250,12 @@ const YN = ({
|
|
|
20250
20250
|
onToggleChange: i
|
|
20251
20251
|
}) => {
|
|
20252
20252
|
const [s, o] = $.useState(""), [l, c] = $.useState(1), [d, u] = $.useState(null), f = $.useMemo(() => d ? [...e].sort((b, k) => {
|
|
20253
|
-
const
|
|
20254
|
-
return
|
|
20253
|
+
const y = b[d.key], x = k[d.key];
|
|
20254
|
+
return y == null || x == null ? 0 : typeof y == "string" && typeof x == "string" ? d.direction === "asc" ? y.localeCompare(x) : x.localeCompare(y) : d.direction === "asc" ? Number(y) - Number(x) : Number(x) - Number(y);
|
|
20255
20255
|
}) : e, [e, d]), h = $.useMemo(() => s.trim() ? f.filter(
|
|
20256
20256
|
(b) => t.some((k) => {
|
|
20257
|
-
const
|
|
20258
|
-
return
|
|
20257
|
+
const y = b[k.relation];
|
|
20258
|
+
return y != null && String(y).toLowerCase().includes(s.toLowerCase().trim());
|
|
20259
20259
|
})
|
|
20260
20260
|
) : f, [f, s, t]), g = $.useMemo(() => {
|
|
20261
20261
|
const b = (l - 1) * n, k = b + n;
|
|
@@ -20266,11 +20266,11 @@ const YN = ({
|
|
|
20266
20266
|
direction: k.direction === "asc" ? "desc" : "asc"
|
|
20267
20267
|
});
|
|
20268
20268
|
}, w = (b, k) => {
|
|
20269
|
-
const
|
|
20269
|
+
const y = k[b.relation];
|
|
20270
20270
|
if (b.isToggle) {
|
|
20271
|
-
const x = !!
|
|
20271
|
+
const x = !!y;
|
|
20272
20272
|
return /* @__PURE__ */ Q("div", { className: "flex items-center gap-2", children: [
|
|
20273
|
-
/* @__PURE__ */
|
|
20273
|
+
/* @__PURE__ */ v(
|
|
20274
20274
|
$2,
|
|
20275
20275
|
{
|
|
20276
20276
|
checked: x,
|
|
@@ -20283,15 +20283,15 @@ const YN = ({
|
|
|
20283
20283
|
disabled: !1
|
|
20284
20284
|
}
|
|
20285
20285
|
),
|
|
20286
|
-
b.toggleText && /* @__PURE__ */
|
|
20286
|
+
b.toggleText && /* @__PURE__ */ v("span", { className: "text-sm text-gray-600", children: x ? b.toggleText.active : b.toggleText.inactive })
|
|
20287
20287
|
] });
|
|
20288
20288
|
}
|
|
20289
|
-
return b.cell ? b.cell(k) :
|
|
20289
|
+
return b.cell ? b.cell(k) : y != null ? String(y) : "";
|
|
20290
20290
|
};
|
|
20291
20291
|
return /* @__PURE__ */ Q("div", { className: "w-full", children: [
|
|
20292
|
-
/* @__PURE__ */
|
|
20292
|
+
/* @__PURE__ */ v("div", { className: "mb-4 flex items-center justify-between", children: a && /* @__PURE__ */ v("h2", { className: "text-xl font-bold", children: a }) }),
|
|
20293
20293
|
/* @__PURE__ */ Q("div", { className: "mb-4 flex", children: [
|
|
20294
|
-
r && /* @__PURE__ */
|
|
20294
|
+
r && /* @__PURE__ */ v("div", { className: "w-1/2", children: /* @__PURE__ */ v(
|
|
20295
20295
|
Lc,
|
|
20296
20296
|
{
|
|
20297
20297
|
rightIcon: SO,
|
|
@@ -20300,7 +20300,7 @@ const YN = ({
|
|
|
20300
20300
|
onChange: (b) => o(b.target.value)
|
|
20301
20301
|
}
|
|
20302
20302
|
) }),
|
|
20303
|
-
m > 1 && /* @__PURE__ */
|
|
20303
|
+
m > 1 && /* @__PURE__ */ v("div", { className: "flex w-full justify-end", children: /* @__PURE__ */ v(
|
|
20304
20304
|
W2,
|
|
20305
20305
|
{
|
|
20306
20306
|
currentPage: l,
|
|
@@ -20309,31 +20309,30 @@ const YN = ({
|
|
|
20309
20309
|
}
|
|
20310
20310
|
) })
|
|
20311
20311
|
] }),
|
|
20312
|
-
/* @__PURE__ */
|
|
20313
|
-
/* @__PURE__ */
|
|
20312
|
+
/* @__PURE__ */ v("div", { className: "overflow-x-auto", children: /* @__PURE__ */ Q(Hn, { striped: !0, children: [
|
|
20313
|
+
/* @__PURE__ */ v(Hn.Head, { children: t.map((b, k) => /* @__PURE__ */ v(
|
|
20314
20314
|
Hn.HeadCell,
|
|
20315
20315
|
{
|
|
20316
20316
|
className: "cursor-pointer",
|
|
20317
20317
|
onClick: () => b.sortable !== !1 && p(b.relation),
|
|
20318
20318
|
children: /* @__PURE__ */ Q("div", { className: "flex items-center gap-2", children: [
|
|
20319
20319
|
b.header,
|
|
20320
|
-
b.sortable !== !1 && /* @__PURE__ */
|
|
20320
|
+
b.sortable !== !1 && /* @__PURE__ */ v("span", { children: (d == null ? void 0 : d.key) === b.relation ? d.direction === "asc" ? /* @__PURE__ */ v(Yf, { className: "size-4" }) : /* @__PURE__ */ v(DO, { className: "size-4" }) : /* @__PURE__ */ v(Yf, { className: "size-4 opacity-50" }) })
|
|
20321
20321
|
] })
|
|
20322
20322
|
},
|
|
20323
20323
|
k
|
|
20324
20324
|
)) }),
|
|
20325
|
-
/* @__PURE__ */
|
|
20326
|
-
/* @__PURE__ */ y(Hn.Body, { className: "divide-y", children: g.map((b) => /* @__PURE__ */ y(
|
|
20325
|
+
/* @__PURE__ */ v(Hn.Body, { className: "divide-y", children: g.map((b) => /* @__PURE__ */ v(
|
|
20327
20326
|
Hn.Row,
|
|
20328
20327
|
{
|
|
20329
20328
|
className: "bg-white dark:border-gray-700 dark:bg-gray-800",
|
|
20330
|
-
children: t.map((k,
|
|
20329
|
+
children: t.map((k, y) => /* @__PURE__ */ v(
|
|
20331
20330
|
Hn.Cell,
|
|
20332
20331
|
{
|
|
20333
20332
|
className: "whitespace-nowrap font-medium text-gray-900 dark:text-white",
|
|
20334
20333
|
children: w(k, b)
|
|
20335
20334
|
},
|
|
20336
|
-
`${b.id}-${
|
|
20335
|
+
`${b.id}-${y}`
|
|
20337
20336
|
))
|
|
20338
20337
|
},
|
|
20339
20338
|
b.id
|
|
@@ -20344,7 +20343,7 @@ const YN = ({
|
|
|
20344
20343
|
"m-image-container": "layoutOutside-module__m-image-container__sCvFu",
|
|
20345
20344
|
"m-image": "layoutOutside-module__m-image__kZHyH"
|
|
20346
20345
|
}, VN = () => /* @__PURE__ */ Q("div", { className: "mt-32", children: [
|
|
20347
|
-
/* @__PURE__ */
|
|
20346
|
+
/* @__PURE__ */ v(
|
|
20348
20347
|
Cn,
|
|
20349
20348
|
{
|
|
20350
20349
|
classIm: "mx-auto",
|
|
@@ -20354,7 +20353,7 @@ const YN = ({
|
|
|
20354
20353
|
height: 250
|
|
20355
20354
|
}
|
|
20356
20355
|
),
|
|
20357
|
-
/* @__PURE__ */
|
|
20356
|
+
/* @__PURE__ */ v("div", { className: vh["m-image-container"], children: /* @__PURE__ */ v(
|
|
20358
20357
|
Cn,
|
|
20359
20358
|
{
|
|
20360
20359
|
classIm: vh["m-image"],
|
|
@@ -20374,8 +20373,8 @@ const YN = ({
|
|
|
20374
20373
|
const i = () => {
|
|
20375
20374
|
e || t(), r(!1);
|
|
20376
20375
|
};
|
|
20377
|
-
return /* @__PURE__ */
|
|
20378
|
-
/* @__PURE__ */
|
|
20376
|
+
return /* @__PURE__ */ v("div", { className: "mb-5", children: /* @__PURE__ */ Q("label", { className: ps["checkbox-container"], children: [
|
|
20377
|
+
/* @__PURE__ */ v(
|
|
20379
20378
|
"input",
|
|
20380
20379
|
{
|
|
20381
20380
|
type: "checkbox",
|
|
@@ -20385,13 +20384,13 @@ const YN = ({
|
|
|
20385
20384
|
required: !0
|
|
20386
20385
|
}
|
|
20387
20386
|
),
|
|
20388
|
-
/* @__PURE__ */
|
|
20389
|
-
n && /* @__PURE__ */
|
|
20387
|
+
/* @__PURE__ */ v("span", { className: ps.checkmark }),
|
|
20388
|
+
n && /* @__PURE__ */ v("span", { children: n })
|
|
20390
20389
|
] }) });
|
|
20391
20390
|
}, z2 = ({
|
|
20392
20391
|
validations: t
|
|
20393
20392
|
}) => {
|
|
20394
|
-
const e = ({ isValid: n }) => /* @__PURE__ */
|
|
20393
|
+
const e = ({ isValid: n }) => /* @__PURE__ */ v(
|
|
20395
20394
|
"svg",
|
|
20396
20395
|
{
|
|
20397
20396
|
className: `me-2 h-3.5 w-3.5 ${n ? "text-green-500 dark:text-green-400" : "text-gray-500 dark:text-gray-400"} shrink-0`,
|
|
@@ -20399,17 +20398,17 @@ const YN = ({
|
|
|
20399
20398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20400
20399
|
fill: "currentColor",
|
|
20401
20400
|
viewBox: "0 0 20 20",
|
|
20402
|
-
children: /* @__PURE__ */
|
|
20401
|
+
children: /* @__PURE__ */ v("path", { d: "M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z" })
|
|
20403
20402
|
}
|
|
20404
20403
|
);
|
|
20405
|
-
return /* @__PURE__ */
|
|
20404
|
+
return /* @__PURE__ */ v("ul", { className: "mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400", children: [
|
|
20406
20405
|
{ key: "hasMinLength", text: "Debe ser minimo de 8 caracteres" },
|
|
20407
20406
|
{ key: "hasNumber", text: "Debe tener minimo un numero" },
|
|
20408
20407
|
{ key: "hasUpperCase", text: "Debe tener minimo una letra mayuscula" },
|
|
20409
20408
|
{ key: "hasLowerCase", text: "Debe tener minimo una letra minuscula" },
|
|
20410
20409
|
{ key: "hasSpecialChar", text: "Debe tener minimo un caracter especial" }
|
|
20411
20410
|
].map(({ key: n, text: a }) => /* @__PURE__ */ Q("li", { className: "flex items-center", children: [
|
|
20412
|
-
/* @__PURE__ */
|
|
20411
|
+
/* @__PURE__ */ v(e, { isValid: t[n] }),
|
|
20413
20412
|
a
|
|
20414
20413
|
] }, n)) });
|
|
20415
20414
|
}, j2 = () => {
|
|
@@ -20448,7 +20447,7 @@ const YN = ({
|
|
|
20448
20447
|
} = j2();
|
|
20449
20448
|
return /* @__PURE__ */ Q(Zt, { children: [
|
|
20450
20449
|
/* @__PURE__ */ Q("div", { className: "block", children: [
|
|
20451
|
-
/* @__PURE__ */
|
|
20450
|
+
/* @__PURE__ */ v(
|
|
20452
20451
|
zd,
|
|
20453
20452
|
{
|
|
20454
20453
|
placeholder: "Contraseña",
|
|
@@ -20459,10 +20458,10 @@ const YN = ({
|
|
|
20459
20458
|
onBlur: t.handleBlur("password")
|
|
20460
20459
|
}
|
|
20461
20460
|
),
|
|
20462
|
-
t.errors.password && t.touched.password && /* @__PURE__ */
|
|
20461
|
+
t.errors.password && t.touched.password && /* @__PURE__ */ v("div", { className: "my-2 text-sm text-red-500", children: String(t.errors.password) })
|
|
20463
20462
|
] }),
|
|
20464
20463
|
/* @__PURE__ */ Q("div", { className: "block", children: [
|
|
20465
|
-
/* @__PURE__ */
|
|
20464
|
+
/* @__PURE__ */ v(
|
|
20466
20465
|
zd,
|
|
20467
20466
|
{
|
|
20468
20467
|
placeholder: "Confirmar contraseña",
|
|
@@ -20473,16 +20472,16 @@ const YN = ({
|
|
|
20473
20472
|
onBlur: t.handleBlur("confirmPassword")
|
|
20474
20473
|
}
|
|
20475
20474
|
),
|
|
20476
|
-
t.errors.confirmPassword && t.touched.confirmPassword && /* @__PURE__ */
|
|
20475
|
+
t.errors.confirmPassword && t.touched.confirmPassword && /* @__PURE__ */ v("div", { className: "my-2 text-sm text-red-500", children: String(t.errors.confirmPassword) })
|
|
20477
20476
|
] }),
|
|
20478
|
-
/* @__PURE__ */
|
|
20477
|
+
/* @__PURE__ */ v(z2, { validations: i })
|
|
20479
20478
|
] });
|
|
20480
20479
|
}, XN = ({ items: t }) => {
|
|
20481
20480
|
const [e, r] = ve([]), n = (i) => {
|
|
20482
20481
|
r(
|
|
20483
20482
|
(s) => s.includes(i) ? s.filter((o) => o !== i) : [...s, i]
|
|
20484
20483
|
);
|
|
20485
|
-
}, a = (i, s = 0) => /* @__PURE__ */
|
|
20484
|
+
}, a = (i, s = 0) => /* @__PURE__ */ v("ul", { className: "list-none space-y-2", children: i.map((o) => {
|
|
20486
20485
|
const l = o.subItems && o.subItems.length > 0, c = e.includes(o.id);
|
|
20487
20486
|
return /* @__PURE__ */ Q(
|
|
20488
20487
|
"li",
|
|
@@ -20493,24 +20492,24 @@ const YN = ({
|
|
|
20493
20492
|
children: [
|
|
20494
20493
|
/* @__PURE__ */ Q("div", { className: "flex items-center gap-2 py-1", children: [
|
|
20495
20494
|
/* @__PURE__ */ Q("div", { className: "flex min-w-[48px] items-center gap-1", children: [
|
|
20496
|
-
l && /* @__PURE__ */
|
|
20495
|
+
l && /* @__PURE__ */ v(
|
|
20497
20496
|
"button",
|
|
20498
20497
|
{
|
|
20499
20498
|
onClick: () => n(o.id),
|
|
20500
20499
|
className: "rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",
|
|
20501
|
-
children: c ? /* @__PURE__ */
|
|
20500
|
+
children: c ? /* @__PURE__ */ v(By, { className: "text-sm text-gray-500" }) : /* @__PURE__ */ v(Hy, { className: "text-sm text-gray-500" })
|
|
20502
20501
|
}
|
|
20503
20502
|
),
|
|
20504
|
-
!l && /* @__PURE__ */
|
|
20503
|
+
!l && /* @__PURE__ */ v("div", { className: "w-[28px]" }),
|
|
20505
20504
|
" ",
|
|
20506
|
-
o.icon && /* @__PURE__ */
|
|
20505
|
+
o.icon && /* @__PURE__ */ v(
|
|
20507
20506
|
o.icon,
|
|
20508
20507
|
{
|
|
20509
20508
|
className: `text-lg ${o.isActive ? "text-blue-700 dark:text-blue-500" : "text-gray-600"}`
|
|
20510
20509
|
}
|
|
20511
20510
|
)
|
|
20512
20511
|
] }),
|
|
20513
|
-
/* @__PURE__ */
|
|
20512
|
+
/* @__PURE__ */ v(
|
|
20514
20513
|
"a",
|
|
20515
20514
|
{
|
|
20516
20515
|
href: o.href,
|
|
@@ -20528,7 +20527,7 @@ const YN = ({
|
|
|
20528
20527
|
o.id
|
|
20529
20528
|
);
|
|
20530
20529
|
}) });
|
|
20531
|
-
return /* @__PURE__ */
|
|
20530
|
+
return /* @__PURE__ */ v("nav", { id: "TableOfContents", children: a(t) });
|
|
20532
20531
|
}, xh = {
|
|
20533
20532
|
"image/*": "Imágenes (JPG, PNG, GIF, etc.)",
|
|
20534
20533
|
"application/pdf": "Documentos PDF",
|
|
@@ -20586,7 +20585,7 @@ const YN = ({
|
|
|
20586
20585
|
},
|
|
20587
20586
|
[e, r, n, t]
|
|
20588
20587
|
);
|
|
20589
|
-
return /* @__PURE__ */
|
|
20588
|
+
return /* @__PURE__ */ v("div", { className: "flex w-full items-center justify-center", children: /* @__PURE__ */ Q(
|
|
20590
20589
|
Ym,
|
|
20591
20590
|
{
|
|
20592
20591
|
htmlFor: "dropzone-file",
|
|
@@ -20596,7 +20595,7 @@ const YN = ({
|
|
|
20596
20595
|
onDrop: u,
|
|
20597
20596
|
children: [
|
|
20598
20597
|
/* @__PURE__ */ Q("div", { className: "flex w-2/4 items-center justify-center pb-6 pt-5", children: [
|
|
20599
|
-
/* @__PURE__ */
|
|
20598
|
+
/* @__PURE__ */ v(
|
|
20600
20599
|
Cn,
|
|
20601
20600
|
{
|
|
20602
20601
|
classIm: "mr-3",
|
|
@@ -20608,27 +20607,27 @@ const YN = ({
|
|
|
20608
20607
|
),
|
|
20609
20608
|
/* @__PURE__ */ Q("div", { className: "flex flex-col", children: [
|
|
20610
20609
|
/* @__PURE__ */ Q("p", { className: "mb-2 text-sm font-light text-gray-400 dark:text-gray-400", children: [
|
|
20611
|
-
/* @__PURE__ */
|
|
20610
|
+
/* @__PURE__ */ v("span", { className: "font-bold text-gray-500", children: "Arrastra" }),
|
|
20612
20611
|
" el feed de datos de tu campaña o",
|
|
20613
20612
|
" ",
|
|
20614
|
-
/* @__PURE__ */
|
|
20613
|
+
/* @__PURE__ */ v("span", { className: "font-bold text-gray-500", children: "selecciona el archivo de tu computadora" }),
|
|
20615
20614
|
" ",
|
|
20616
20615
|
a
|
|
20617
20616
|
] }),
|
|
20618
20617
|
/* @__PURE__ */ Q("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: [
|
|
20619
|
-
/* @__PURE__ */
|
|
20618
|
+
/* @__PURE__ */ v("span", { className: "font-semibold", children: "Tipos permitidos:" }),
|
|
20620
20619
|
" ",
|
|
20621
20620
|
l(),
|
|
20622
20621
|
" |",
|
|
20623
20622
|
" ",
|
|
20624
|
-
/* @__PURE__ */
|
|
20623
|
+
/* @__PURE__ */ v("span", { className: "font-semibold", children: "Tamaño máximo:" }),
|
|
20625
20624
|
" ",
|
|
20626
20625
|
r,
|
|
20627
20626
|
" MB"
|
|
20628
20627
|
] })
|
|
20629
20628
|
] })
|
|
20630
20629
|
] }),
|
|
20631
|
-
/* @__PURE__ */
|
|
20630
|
+
/* @__PURE__ */ v(
|
|
20632
20631
|
Am,
|
|
20633
20632
|
{
|
|
20634
20633
|
id: "dropzone-file",
|
|
@@ -20648,13 +20647,13 @@ function H2(t) {
|
|
|
20648
20647
|
const B2 = (t) => {
|
|
20649
20648
|
const e = Math.floor(Math.log(t) / Math.log(1024)), r = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
20650
20649
|
return `${(t / Math.pow(1024, e)).toFixed(2)} ${r[e]}`;
|
|
20651
|
-
}, KN = ({ files: t, onDelete: e }) => /* @__PURE__ */
|
|
20650
|
+
}, KN = ({ files: t, onDelete: e }) => /* @__PURE__ */ v("div", { className: "mt-4", children: /* @__PURE__ */ v("ul", { className: "list-disc", children: t.map((r, n) => /* @__PURE__ */ Q(
|
|
20652
20651
|
"div",
|
|
20653
20652
|
{
|
|
20654
20653
|
className: "mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",
|
|
20655
20654
|
children: [
|
|
20656
20655
|
/* @__PURE__ */ Q("div", { className: "flex items-center", children: [
|
|
20657
|
-
/* @__PURE__ */
|
|
20656
|
+
/* @__PURE__ */ v(
|
|
20658
20657
|
Cn,
|
|
20659
20658
|
{
|
|
20660
20659
|
classIm: "mr-3",
|
|
@@ -20663,11 +20662,11 @@ const B2 = (t) => {
|
|
|
20663
20662
|
width: 50
|
|
20664
20663
|
}
|
|
20665
20664
|
),
|
|
20666
|
-
/* @__PURE__ */
|
|
20665
|
+
/* @__PURE__ */ v("li", { className: "text-base font-semibold text-gray-700", children: r.name })
|
|
20667
20666
|
] }),
|
|
20668
20667
|
/* @__PURE__ */ Q("div", { className: "mx-4 flex items-center", children: [
|
|
20669
|
-
/* @__PURE__ */
|
|
20670
|
-
/* @__PURE__ */
|
|
20668
|
+
/* @__PURE__ */ v("span", { className: "flex text-sm", children: B2(r.size) }),
|
|
20669
|
+
/* @__PURE__ */ v(
|
|
20671
20670
|
H2,
|
|
20672
20671
|
{
|
|
20673
20672
|
className: "ml-2 cursor-pointer text-4xl text-gray-400",
|
|
@@ -20679,14 +20678,14 @@ const B2 = (t) => {
|
|
|
20679
20678
|
},
|
|
20680
20679
|
n
|
|
20681
20680
|
)) }) }), QN = ({ description: t = "" }) => /* @__PURE__ */ Q("div", { className: "flex flex-col items-center justify-center", children: [
|
|
20682
|
-
/* @__PURE__ */
|
|
20681
|
+
/* @__PURE__ */ v(
|
|
20683
20682
|
"img",
|
|
20684
20683
|
{
|
|
20685
20684
|
src: "https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",
|
|
20686
20685
|
alt: t.replace(/<[^>]*>/g, "")
|
|
20687
20686
|
}
|
|
20688
20687
|
),
|
|
20689
|
-
t && /* @__PURE__ */
|
|
20688
|
+
t && /* @__PURE__ */ v(
|
|
20690
20689
|
"p",
|
|
20691
20690
|
{
|
|
20692
20691
|
className: "text-center",
|
|
@@ -20699,25 +20698,25 @@ function JN() {
|
|
|
20699
20698
|
/* @__PURE__ */ Q(Gn, { active: !0, title: "Profile", children: [
|
|
20700
20699
|
"This is",
|
|
20701
20700
|
" ",
|
|
20702
|
-
/* @__PURE__ */
|
|
20701
|
+
/* @__PURE__ */ v("span", { className: "font-medium text-gray-800 dark:text-white", children: "Profile tab's associated content" }),
|
|
20703
20702
|
". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
|
|
20704
20703
|
] }),
|
|
20705
20704
|
/* @__PURE__ */ Q(Gn, { title: "Dashboard", children: [
|
|
20706
20705
|
"This is",
|
|
20707
20706
|
" ",
|
|
20708
|
-
/* @__PURE__ */
|
|
20707
|
+
/* @__PURE__ */ v("span", { className: "font-medium text-gray-800 dark:text-white", children: "Dashboard tab's associated content" }),
|
|
20709
20708
|
". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
|
|
20710
20709
|
] }),
|
|
20711
20710
|
/* @__PURE__ */ Q(Gn, { title: "Settings", children: [
|
|
20712
20711
|
"This is",
|
|
20713
20712
|
" ",
|
|
20714
|
-
/* @__PURE__ */
|
|
20713
|
+
/* @__PURE__ */ v("span", { className: "font-medium text-gray-800 dark:text-white", children: "Settings tab's associated content" }),
|
|
20715
20714
|
". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
|
|
20716
20715
|
] }),
|
|
20717
20716
|
/* @__PURE__ */ Q(Gn, { title: "Contacts", children: [
|
|
20718
20717
|
"This is",
|
|
20719
20718
|
" ",
|
|
20720
|
-
/* @__PURE__ */
|
|
20719
|
+
/* @__PURE__ */ v("span", { className: "font-medium text-gray-800 dark:text-white", children: "Contacts tab's associated content" }),
|
|
20721
20720
|
". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
|
|
20722
20721
|
] })
|
|
20723
20722
|
] });
|
|
@@ -20766,12 +20765,12 @@ function Y2() {
|
|
|
20766
20765
|
}
|
|
20767
20766
|
}
|
|
20768
20767
|
}
|
|
20769
|
-
function
|
|
20768
|
+
function y(x) {
|
|
20770
20769
|
return k(x) === c;
|
|
20771
20770
|
}
|
|
20772
20771
|
return we.AsyncMode = l, we.ConcurrentMode = c, we.ContextConsumer = o, we.ContextProvider = s, we.Element = e, we.ForwardRef = d, we.Fragment = n, we.Lazy = g, we.Memo = h, we.Portal = r, we.Profiler = i, we.StrictMode = a, we.Suspense = u, we.isAsyncMode = function(x) {
|
|
20773
|
-
return
|
|
20774
|
-
}, we.isConcurrentMode =
|
|
20772
|
+
return y(x) || k(x) === l;
|
|
20773
|
+
}, we.isConcurrentMode = y, we.isContextConsumer = function(x) {
|
|
20775
20774
|
return k(x) === o;
|
|
20776
20775
|
}, we.isContextProvider = function(x) {
|
|
20777
20776
|
return k(x) === s;
|
|
@@ -20814,7 +20813,7 @@ function V2() {
|
|
|
20814
20813
|
return typeof H == "string" || typeof H == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
20815
20814
|
H === n || H === c || H === i || H === a || H === u || H === f || typeof H == "object" && H !== null && (H.$$typeof === g || H.$$typeof === h || H.$$typeof === s || H.$$typeof === o || H.$$typeof === d || H.$$typeof === p || H.$$typeof === w || H.$$typeof === b || H.$$typeof === m);
|
|
20816
20815
|
}
|
|
20817
|
-
function
|
|
20816
|
+
function y(H) {
|
|
20818
20817
|
if (typeof H == "object" && H !== null) {
|
|
20819
20818
|
var ae = H.$$typeof;
|
|
20820
20819
|
switch (ae) {
|
|
@@ -20848,45 +20847,45 @@ function V2() {
|
|
|
20848
20847
|
}
|
|
20849
20848
|
var x = l, _ = c, T = o, S = s, C = e, D = d, z = n, A = g, L = h, M = r, I = i, W = a, B = u, U = !1;
|
|
20850
20849
|
function J(H) {
|
|
20851
|
-
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(H) ||
|
|
20850
|
+
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(H) || y(H) === l;
|
|
20852
20851
|
}
|
|
20853
20852
|
function E(H) {
|
|
20854
|
-
return
|
|
20853
|
+
return y(H) === c;
|
|
20855
20854
|
}
|
|
20856
20855
|
function j(H) {
|
|
20857
|
-
return
|
|
20856
|
+
return y(H) === o;
|
|
20858
20857
|
}
|
|
20859
20858
|
function N(H) {
|
|
20860
|
-
return
|
|
20859
|
+
return y(H) === s;
|
|
20861
20860
|
}
|
|
20862
20861
|
function R(H) {
|
|
20863
20862
|
return typeof H == "object" && H !== null && H.$$typeof === e;
|
|
20864
20863
|
}
|
|
20865
20864
|
function P(H) {
|
|
20866
|
-
return
|
|
20865
|
+
return y(H) === d;
|
|
20867
20866
|
}
|
|
20868
20867
|
function O(H) {
|
|
20869
|
-
return
|
|
20868
|
+
return y(H) === n;
|
|
20870
20869
|
}
|
|
20871
20870
|
function F(H) {
|
|
20872
|
-
return
|
|
20871
|
+
return y(H) === g;
|
|
20873
20872
|
}
|
|
20874
20873
|
function X(H) {
|
|
20875
|
-
return
|
|
20874
|
+
return y(H) === h;
|
|
20876
20875
|
}
|
|
20877
20876
|
function q(H) {
|
|
20878
|
-
return
|
|
20877
|
+
return y(H) === r;
|
|
20879
20878
|
}
|
|
20880
20879
|
function G(H) {
|
|
20881
|
-
return
|
|
20880
|
+
return y(H) === i;
|
|
20882
20881
|
}
|
|
20883
20882
|
function Z(H) {
|
|
20884
|
-
return
|
|
20883
|
+
return y(H) === a;
|
|
20885
20884
|
}
|
|
20886
20885
|
function ne(H) {
|
|
20887
|
-
return
|
|
20886
|
+
return y(H) === u;
|
|
20888
20887
|
}
|
|
20889
|
-
ke.AsyncMode = x, ke.ConcurrentMode = _, ke.ContextConsumer = T, ke.ContextProvider = S, ke.Element = C, ke.ForwardRef = D, ke.Fragment = z, ke.Lazy = A, ke.Memo = L, ke.Portal = M, ke.Profiler = I, ke.StrictMode = W, ke.Suspense = B, ke.isAsyncMode = J, ke.isConcurrentMode = E, ke.isContextConsumer = j, ke.isContextProvider = N, ke.isElement = R, ke.isForwardRef = P, ke.isFragment = O, ke.isLazy = F, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = G, ke.isStrictMode = Z, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf =
|
|
20888
|
+
ke.AsyncMode = x, ke.ConcurrentMode = _, ke.ContextConsumer = T, ke.ContextProvider = S, ke.Element = C, ke.ForwardRef = D, ke.Fragment = z, ke.Lazy = A, ke.Memo = L, ke.Portal = M, ke.Profiler = I, ke.StrictMode = W, ke.Suspense = B, ke.isAsyncMode = J, ke.isConcurrentMode = E, ke.isContextConsumer = j, ke.isContextProvider = N, ke.isElement = R, ke.isForwardRef = P, ke.isFragment = O, ke.isLazy = F, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = G, ke.isStrictMode = Z, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf = y;
|
|
20890
20889
|
}()), ke;
|
|
20891
20890
|
}
|
|
20892
20891
|
var _h;
|
|
@@ -21039,7 +21038,7 @@ function X2() {
|
|
|
21039
21038
|
symbol: w("symbol"),
|
|
21040
21039
|
any: b(),
|
|
21041
21040
|
arrayOf: k,
|
|
21042
|
-
element:
|
|
21041
|
+
element: y(),
|
|
21043
21042
|
elementType: x(),
|
|
21044
21043
|
instanceOf: _,
|
|
21045
21044
|
node: D(),
|
|
@@ -21114,7 +21113,7 @@ function X2() {
|
|
|
21114
21113
|
}
|
|
21115
21114
|
return p(j);
|
|
21116
21115
|
}
|
|
21117
|
-
function
|
|
21116
|
+
function y() {
|
|
21118
21117
|
function E(j, N, R, P, O) {
|
|
21119
21118
|
var F = j[N];
|
|
21120
21119
|
if (!o(F)) {
|
|
@@ -23047,8 +23046,8 @@ function Zs(t, e, r) {
|
|
|
23047
23046
|
let l = e.match(hE).map((b) => {
|
|
23048
23047
|
const k = b[0];
|
|
23049
23048
|
if (k === "p" || k === "P") {
|
|
23050
|
-
const
|
|
23051
|
-
return
|
|
23049
|
+
const y = Js[k];
|
|
23050
|
+
return y(b, a.formatLong);
|
|
23052
23051
|
}
|
|
23053
23052
|
return b;
|
|
23054
23053
|
}).join("").match(fE).map((b) => {
|
|
@@ -23075,8 +23074,8 @@ function Zs(t, e, r) {
|
|
|
23075
23074
|
if (!b.isToken) return b.value;
|
|
23076
23075
|
const k = b.value;
|
|
23077
23076
|
(!(r != null && r.useAdditionalWeekYearTokens) && Ob(k) || !(r != null && r.useAdditionalDayOfYearTokens) && _b(k)) && Ql(k, e, String(t));
|
|
23078
|
-
const
|
|
23079
|
-
return
|
|
23077
|
+
const y = Kl[k[0]];
|
|
23078
|
+
return y(o, k, a.localize, c);
|
|
23080
23079
|
}).join("");
|
|
23081
23080
|
}
|
|
23082
23081
|
function bE(t) {
|
|
@@ -24919,8 +24918,8 @@ const jb = {
|
|
|
24919
24918
|
T: new HT()
|
|
24920
24919
|
}, BT = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, YT = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, VT = /^'([^]*?)'?$/, qT = /''/g, UT = /\S/, XT = /[a-zA-Z]/;
|
|
24921
24920
|
function Hb(t, e, r, n) {
|
|
24922
|
-
var p, w, b, k,
|
|
24923
|
-
const a = () => se((n == null ? void 0 : n.in) || r, NaN), i = Tb(), s = (n == null ? void 0 : n.locale) ?? i.locale ?? va, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((k = (b = i.locale) == null ? void 0 : b.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((x = (
|
|
24921
|
+
var p, w, b, k, y, x, _, T;
|
|
24922
|
+
const a = () => se((n == null ? void 0 : n.in) || r, NaN), i = Tb(), s = (n == null ? void 0 : n.locale) ?? i.locale ?? va, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((k = (b = i.locale) == null ? void 0 : b.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((x = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : x.weekStartsOn) ?? i.weekStartsOn ?? ((T = (_ = i.locale) == null ? void 0 : _.options) == null ? void 0 : T.weekStartsOn) ?? 0;
|
|
24924
24923
|
if (!e)
|
|
24925
24924
|
return t ? a() : V(r, n == null ? void 0 : n.in);
|
|
24926
24925
|
const c = {
|
|
@@ -26225,7 +26224,7 @@ class Sd extends vn.PureComponent {
|
|
|
26225
26224
|
start: d.start,
|
|
26226
26225
|
end: d.end
|
|
26227
26226
|
}).map((h, g) => {
|
|
26228
|
-
const m = (0, Xe.isSameDay)(h, d.startDateOfMonth), p = (0, Xe.isSameDay)(h, d.endDateOfMonth), w = l && (0, Xe.isBefore)(h, l) || c && (0, Xe.isAfter)(h, c), b = s.some((
|
|
26227
|
+
const m = (0, Xe.isSameDay)(h, d.startDateOfMonth), p = (0, Xe.isSameDay)(h, d.endDateOfMonth), w = l && (0, Xe.isBefore)(h, l) || c && (0, Xe.isAfter)(h, c), b = s.some((y) => (0, Xe.isSameDay)(y, h)), k = o(h);
|
|
26229
26228
|
return /* @__PURE__ */ vn.default.createElement(ty.default, rc({}, this.props, {
|
|
26230
26229
|
ranges: u,
|
|
26231
26230
|
day: h,
|
|
@@ -26535,7 +26534,7 @@ var sy = {};
|
|
|
26535
26534
|
}
|
|
26536
26535
|
return (R === "string" ? String : Number)(N);
|
|
26537
26536
|
}
|
|
26538
|
-
var
|
|
26537
|
+
var y = {
|
|
26539
26538
|
x: "clientWidth",
|
|
26540
26539
|
y: "clientHeight"
|
|
26541
26540
|
}, x = {
|
|
@@ -26591,7 +26590,7 @@ var sy = {};
|
|
|
26591
26590
|
return window;
|
|
26592
26591
|
}, J = function(R) {
|
|
26593
26592
|
var P = R.props.axis, O = R.scrollParent;
|
|
26594
|
-
return O === window ? window[_[P]] : O[
|
|
26593
|
+
return O === window ? window[_[P]] : O[y[P]];
|
|
26595
26594
|
}, E = function(R, P) {
|
|
26596
26595
|
var O = R.length, F = R.minSize, X = R.type, q = P.from, G = P.size, Z = P.itemsPerRow;
|
|
26597
26596
|
G = Math.max(G, F);
|
|
@@ -27873,9 +27872,9 @@ class fa extends Me.PureComponent {
|
|
|
27873
27872
|
} = this.props, {
|
|
27874
27873
|
scrollArea: g,
|
|
27875
27874
|
focusedDate: m
|
|
27876
|
-
} = this.state, p = a === "vertical", w = u || this.renderMonthAndYear, b = this.props.ranges.map((k,
|
|
27875
|
+
} = this.state, p = a === "vertical", w = u || this.renderMonthAndYear, b = this.props.ranges.map((k, y) => ({
|
|
27877
27876
|
...k,
|
|
27878
|
-
color: k.color || c[
|
|
27877
|
+
color: k.color || c[y] || d
|
|
27879
27878
|
}));
|
|
27880
27879
|
return /* @__PURE__ */ Me.default.createElement("div", {
|
|
27881
27880
|
className: (0, un.default)(this.styles.calendarWrapper, f),
|
|
@@ -27908,13 +27907,13 @@ class fa extends Me.PureComponent {
|
|
|
27908
27907
|
ref: (k) => this.list = k,
|
|
27909
27908
|
itemSizeEstimator: this.estimateMonthSize,
|
|
27910
27909
|
axis: p ? "y" : "x",
|
|
27911
|
-
itemRenderer: (k,
|
|
27910
|
+
itemRenderer: (k, y) => {
|
|
27912
27911
|
const x = (0, Ie.addMonths)(l, k);
|
|
27913
27912
|
return /* @__PURE__ */ Me.default.createElement(Fh.default, to({}, this.props, {
|
|
27914
27913
|
onPreviewChange: r || this.updatePreview,
|
|
27915
27914
|
preview: h || this.state.preview,
|
|
27916
27915
|
ranges: b,
|
|
27917
|
-
key:
|
|
27916
|
+
key: y,
|
|
27918
27917
|
drag: this.state.drag,
|
|
27919
27918
|
dateOptions: this.dateOptions,
|
|
27920
27919
|
disabledDates: i,
|
|
@@ -27937,13 +27936,13 @@ class fa extends Me.PureComponent {
|
|
|
27937
27936
|
}
|
|
27938
27937
|
}))) : /* @__PURE__ */ Me.default.createElement("div", {
|
|
27939
27938
|
className: (0, un.default)(this.styles.months, p ? this.styles.monthsVertical : this.styles.monthsHorizontal)
|
|
27940
|
-
}, new Array(this.props.months).fill(null).map((k,
|
|
27941
|
-
let x = (0, Ie.addMonths)(this.state.focusedDate,
|
|
27942
|
-
return this.props.calendarFocus === "backwards" && (x = (0, Ie.subMonths)(this.state.focusedDate, this.props.months - 1 -
|
|
27939
|
+
}, new Array(this.props.months).fill(null).map((k, y) => {
|
|
27940
|
+
let x = (0, Ie.addMonths)(this.state.focusedDate, y);
|
|
27941
|
+
return this.props.calendarFocus === "backwards" && (x = (0, Ie.subMonths)(this.state.focusedDate, this.props.months - 1 - y)), /* @__PURE__ */ Me.default.createElement(Fh.default, to({}, this.props, {
|
|
27943
27942
|
onPreviewChange: r || this.updatePreview,
|
|
27944
27943
|
preview: h || this.state.preview,
|
|
27945
27944
|
ranges: b,
|
|
27946
|
-
key:
|
|
27945
|
+
key: y,
|
|
27947
27946
|
drag: this.state.drag,
|
|
27948
27947
|
dateOptions: this.dateOptions,
|
|
27949
27948
|
disabledDates: i,
|
|
@@ -27954,8 +27953,8 @@ class fa extends Me.PureComponent {
|
|
|
27954
27953
|
onDragSelectionMove: this.onDragSelectionMove,
|
|
27955
27954
|
onMouseLeave: () => r && r(),
|
|
27956
27955
|
styles: this.styles,
|
|
27957
|
-
showWeekDays: !p ||
|
|
27958
|
-
showMonthName: !p ||
|
|
27956
|
+
showWeekDays: !p || y === 0,
|
|
27957
|
+
showMonthName: !p || y > 0
|
|
27959
27958
|
}));
|
|
27960
27959
|
})));
|
|
27961
27960
|
}
|
|
@@ -28134,12 +28133,12 @@ class Nd extends Wh.Component {
|
|
|
28134
28133
|
p = a;
|
|
28135
28134
|
let k = s[1] === 0;
|
|
28136
28135
|
(0, rr.isBefore)(p, m) && (k = !k, [m, p] = [p, m]);
|
|
28137
|
-
const
|
|
28136
|
+
const y = f.filter((x) => (0, rr.isWithinInterval)(x, {
|
|
28138
28137
|
start: m,
|
|
28139
28138
|
end: p
|
|
28140
28139
|
}));
|
|
28141
|
-
return
|
|
28142
|
-
wasValid: !(
|
|
28140
|
+
return y.length > 0 && (k ? m = (0, rr.addDays)((0, rr.max)(y), 1) : p = (0, rr.addDays)((0, rr.min)(y), -1)), b || (b = [(0, Ol.findNextRangeIndex)(n.props.ranges, s[0]), 0]), {
|
|
28141
|
+
wasValid: !(y.length > 0),
|
|
28143
28142
|
range: {
|
|
28144
28143
|
startDate: m,
|
|
28145
28144
|
endDate: p
|
|
@@ -28745,33 +28744,33 @@ const _r = {
|
|
|
28745
28744
|
}
|
|
28746
28745
|
]), [o, l] = ve(!1), [c, d] = ve(2), [u, f] = ve({}), h = Gt(null), g = Gt(null), m = a ?? PN, p = t ? [{ ...t, key: "selection" }] : i;
|
|
28747
28746
|
lt(() => {
|
|
28748
|
-
const
|
|
28747
|
+
const y = () => {
|
|
28749
28748
|
d(window.innerWidth < 900 ? 1 : 2);
|
|
28750
28749
|
};
|
|
28751
|
-
return
|
|
28750
|
+
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
28752
28751
|
}, []), lt(() => {
|
|
28753
28752
|
if (o && g.current && h.current) {
|
|
28754
|
-
const
|
|
28753
|
+
const y = g.current.getBoundingClientRect(), x = h.current.offsetWidth || 700, _ = window.innerWidth - y.left, T = y.right, S = {
|
|
28755
28754
|
right: "auto",
|
|
28756
28755
|
left: 0
|
|
28757
28756
|
};
|
|
28758
28757
|
_ < x && T > x && (S.right = 0, S.left = "auto"), window.innerWidth < x && (S.left = 0, S.right = 0, S.width = "100vw", S.maxWidth = "100vw"), f(S);
|
|
28759
28758
|
}
|
|
28760
28759
|
}, [o, c]);
|
|
28761
|
-
const w = (
|
|
28762
|
-
t || s([
|
|
28763
|
-
}, b = (
|
|
28764
|
-
const { startDate: x, endDate: _ } =
|
|
28760
|
+
const w = (y) => {
|
|
28761
|
+
t || s([y.selection]), e == null || e(y.selection.startDate, y.selection.endDate);
|
|
28762
|
+
}, b = (y) => {
|
|
28763
|
+
const { startDate: x, endDate: _ } = y();
|
|
28765
28764
|
t || s([{ startDate: x, endDate: _, key: "selection" }]), e == null || e(x, _), l(!1);
|
|
28766
|
-
}, k = (
|
|
28765
|
+
}, k = (y) => Zs(y, "dd, MMM yyyy");
|
|
28767
28766
|
return lt(() => {
|
|
28768
28767
|
if (!o) return;
|
|
28769
|
-
const
|
|
28768
|
+
const y = (x) => {
|
|
28770
28769
|
h.current && !h.current.contains(x.target) && g.current && !g.current.contains(x.target) && l(!1);
|
|
28771
28770
|
};
|
|
28772
|
-
return document.addEventListener("mousedown",
|
|
28771
|
+
return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
28773
28772
|
}, [o]), /* @__PURE__ */ Q("div", { className: _r["date-container"], children: [
|
|
28774
|
-
/* @__PURE__ */
|
|
28773
|
+
/* @__PURE__ */ v(
|
|
28775
28774
|
"input",
|
|
28776
28775
|
{
|
|
28777
28776
|
ref: g,
|
|
@@ -28790,16 +28789,16 @@ const _r = {
|
|
|
28790
28789
|
style: u,
|
|
28791
28790
|
children: [
|
|
28792
28791
|
/* @__PURE__ */ Q("div", { className: _r["date-menu"], children: [
|
|
28793
|
-
m.map((
|
|
28792
|
+
m.map((y, x) => /* @__PURE__ */ v(
|
|
28794
28793
|
"div",
|
|
28795
28794
|
{
|
|
28796
28795
|
className: _r["date-menuItem"] + (x === 2 ? " " + _r["date-menuItemActive"] : ""),
|
|
28797
|
-
onClick: () => b(
|
|
28798
|
-
children:
|
|
28796
|
+
onClick: () => b(y.range),
|
|
28797
|
+
children: y.label
|
|
28799
28798
|
},
|
|
28800
|
-
|
|
28799
|
+
y.label
|
|
28801
28800
|
)),
|
|
28802
|
-
/* @__PURE__ */
|
|
28801
|
+
/* @__PURE__ */ v(
|
|
28803
28802
|
"div",
|
|
28804
28803
|
{
|
|
28805
28804
|
className: _r["date-menuItem"] + " " + _r["date-menuItemCustom"],
|
|
@@ -28808,7 +28807,7 @@ const _r = {
|
|
|
28808
28807
|
}
|
|
28809
28808
|
)
|
|
28810
28809
|
] }),
|
|
28811
|
-
/* @__PURE__ */
|
|
28810
|
+
/* @__PURE__ */ v("div", { className: _r["date-calendar"], children: /* @__PURE__ */ v(
|
|
28812
28811
|
Yp.DateRange,
|
|
28813
28812
|
{
|
|
28814
28813
|
editableDateInputs: !0,
|
|
@@ -28828,7 +28827,7 @@ const _r = {
|
|
|
28828
28827
|
}, tI = ({
|
|
28829
28828
|
minDate: t,
|
|
28830
28829
|
maxDate: e
|
|
28831
|
-
}) => /* @__PURE__ */
|
|
28830
|
+
}) => /* @__PURE__ */ v(U0, { minDate: t, maxDate: e, className: "custom-datepicker" });
|
|
28832
28831
|
export {
|
|
28833
28832
|
FN as ButtonFormat,
|
|
28834
28833
|
u0 as Card,
|