ui-mathilde-web 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-mathilde-web.d.ts +6 -0
- package/dist/ui-mathilde-web.js +360 -347
- package/dist/ui-mathilde-web.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/ui-mathilde-web.js
CHANGED
|
@@ -3,7 +3,7 @@ var op = (t, e, n) => e in t ? rp(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var te = (t, e, n) => op(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { jsx as b, jsxs as z, Fragment as Ct } from "react/jsx-runtime";
|
|
5
5
|
import * as k from "react";
|
|
6
|
-
import
|
|
6
|
+
import H, { forwardRef as ue, useState as xe, useRef as Yt, useEffect as Je, createContext as Ye, useContext as De, createElement as Mt, Fragment as Hd, useMemo as xi, Children as Un, cloneElement as Wo, isValidElement as ip, PureComponent as sp, useImperativeHandle as Wd, useLayoutEffect as Ws, useCallback as tl, useId as Dn } from "react";
|
|
7
7
|
import * as ap from "react-dom";
|
|
8
8
|
import { createPortal as lp } from "react-dom";
|
|
9
9
|
const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn-border__-pdSm", up = "button-module__mth-btn__LkrNk", fp = "button-module__mth-btn-full__7QycJ", uo = {
|
|
@@ -15,7 +15,7 @@ const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn
|
|
|
15
15
|
mthBtn: up,
|
|
16
16
|
"mth-btn-full": "button-module__mth-btn-full__7QycJ",
|
|
17
17
|
mthBtnFull: fp
|
|
18
|
-
},
|
|
18
|
+
}, sC = ({
|
|
19
19
|
txtBtn: t,
|
|
20
20
|
typeButton: e,
|
|
21
21
|
full: n,
|
|
@@ -41,7 +41,7 @@ const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn
|
|
|
41
41
|
) }), hp = "checkbox-module__checkmark__pC-qY", Vo = {
|
|
42
42
|
"checkbox-container": "checkbox-module__checkbox-container__jLidj",
|
|
43
43
|
checkmark: hp
|
|
44
|
-
},
|
|
44
|
+
}, aC = ({
|
|
45
45
|
label: t,
|
|
46
46
|
value: e,
|
|
47
47
|
checked: n,
|
|
@@ -107,7 +107,7 @@ var Vd = {
|
|
|
107
107
|
className: void 0,
|
|
108
108
|
style: void 0,
|
|
109
109
|
attr: void 0
|
|
110
|
-
}, nl =
|
|
110
|
+
}, nl = H.createContext && /* @__PURE__ */ H.createContext(Vd), pp = ["attr", "size", "title"];
|
|
111
111
|
function mp(t, e) {
|
|
112
112
|
if (t == null) return {};
|
|
113
113
|
var n = bp(t, e), r, o;
|
|
@@ -174,12 +174,12 @@ function xp(t, e) {
|
|
|
174
174
|
return (e === "string" ? String : Number)(t);
|
|
175
175
|
}
|
|
176
176
|
function Yd(t) {
|
|
177
|
-
return t && t.map((e, n) => /* @__PURE__ */
|
|
177
|
+
return t && t.map((e, n) => /* @__PURE__ */ H.createElement(e.tag, Uo({
|
|
178
178
|
key: n
|
|
179
179
|
}, e.attr), Yd(e.child)));
|
|
180
180
|
}
|
|
181
181
|
function me(t) {
|
|
182
|
-
return (e) => /* @__PURE__ */
|
|
182
|
+
return (e) => /* @__PURE__ */ H.createElement(wp, Yo({
|
|
183
183
|
attr: Uo({}, t.attr)
|
|
184
184
|
}, e), Yd(t.child));
|
|
185
185
|
}
|
|
@@ -190,7 +190,7 @@ function wp(t) {
|
|
|
190
190
|
size: o,
|
|
191
191
|
title: i
|
|
192
192
|
} = t, s = mp(t, pp), a = o || n.size || "1em", l;
|
|
193
|
-
return n.className && (l = n.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */
|
|
193
|
+
return n.className && (l = n.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */ H.createElement("svg", Yo({
|
|
194
194
|
stroke: "currentColor",
|
|
195
195
|
fill: "currentColor",
|
|
196
196
|
strokeWidth: "0"
|
|
@@ -202,9 +202,9 @@ function wp(t) {
|
|
|
202
202
|
height: a,
|
|
203
203
|
width: a,
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg"
|
|
205
|
-
}), i && /* @__PURE__ */
|
|
205
|
+
}), i && /* @__PURE__ */ H.createElement("title", null, i), t.children);
|
|
206
206
|
};
|
|
207
|
-
return nl !== void 0 ? /* @__PURE__ */
|
|
207
|
+
return nl !== void 0 ? /* @__PURE__ */ H.createElement(nl.Consumer, null, (n) => e(n)) : e(Vd);
|
|
208
208
|
}
|
|
209
209
|
function kp(t) {
|
|
210
210
|
return me({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z" }, child: [] }] })(t);
|
|
@@ -309,7 +309,7 @@ const Pp = {
|
|
|
309
309
|
impresiones: "https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",
|
|
310
310
|
porcentaje: "https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",
|
|
311
311
|
vistas: "https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"
|
|
312
|
-
},
|
|
312
|
+
}, lC = ({
|
|
313
313
|
logo: t,
|
|
314
314
|
number: e,
|
|
315
315
|
title: n,
|
|
@@ -352,7 +352,7 @@ function kr(t) {
|
|
|
352
352
|
function an(t) {
|
|
353
353
|
return on(Jr(t * 255), 0, 255);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Wt(t) {
|
|
356
356
|
return on(Jr(t / 2.55) / 100, 0, 1);
|
|
357
357
|
}
|
|
358
358
|
function sl(t) {
|
|
@@ -394,13 +394,13 @@ function jp(t, e, n) {
|
|
|
394
394
|
r[o] *= 1 - e - n, r[o] += e;
|
|
395
395
|
return r;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Hp(t, e, n, r, o) {
|
|
398
398
|
return t === o ? (e - n) / r + (e < n ? 6 : 0) : e === o ? (n - t) / r + 2 : (t - e) / r + 4;
|
|
399
399
|
}
|
|
400
400
|
function Vs(t) {
|
|
401
401
|
const n = t.r / 255, r = t.g / 255, o = t.b / 255, i = Math.max(n, r, o), s = Math.min(n, r, o), a = (i + s) / 2;
|
|
402
402
|
let l, c, d;
|
|
403
|
-
return i !== s && (d = i - s, c = a > 0.5 ? d / (2 - i - s) : d / (i + s), l =
|
|
403
|
+
return i !== s && (d = i - s, c = a > 0.5 ? d / (2 - i - s) : d / (i + s), l = Hp(n, r, o, d, i), l = l * 60 + 0.5), [l | 0, c || 0, a];
|
|
404
404
|
}
|
|
405
405
|
function Ys(t, e, n, r) {
|
|
406
406
|
return (Array.isArray(e) ? t(e[0], e[1], e[2]) : t(e, n, r)).map(an);
|
|
@@ -408,7 +408,7 @@ function Ys(t, e, n, r) {
|
|
|
408
408
|
function Us(t, e, n) {
|
|
409
409
|
return Ys(Ud, t, e, n);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Wp(t, e, n) {
|
|
412
412
|
return Ys(jp, t, e, n);
|
|
413
413
|
}
|
|
414
414
|
function Vp(t, e, n) {
|
|
@@ -424,7 +424,7 @@ function Yp(t) {
|
|
|
424
424
|
return;
|
|
425
425
|
e[5] !== r && (n = e[6] ? kr(+e[5]) : an(+e[5]));
|
|
426
426
|
const o = Kd(+e[2]), i = +e[3] / 100, s = +e[4] / 100;
|
|
427
|
-
return e[1] === "hwb" ? r =
|
|
427
|
+
return e[1] === "hwb" ? r = Wp(o, i, s) : e[1] === "hsv" ? r = Vp(o, i, s) : r = Us(o, i, s), {
|
|
428
428
|
r: r[0],
|
|
429
429
|
g: r[1],
|
|
430
430
|
b: r[2],
|
|
@@ -439,7 +439,7 @@ function Kp(t) {
|
|
|
439
439
|
if (!t)
|
|
440
440
|
return;
|
|
441
441
|
const e = Vs(t), n = e[0], r = sl(e[1]), o = sl(e[2]);
|
|
442
|
-
return t.a < 255 ? `hsla(${n}, ${r}%, ${o}%, ${
|
|
442
|
+
return t.a < 255 ? `hsla(${n}, ${r}%, ${o}%, ${Wt(t.a)})` : `hsl(${n}, ${r}%, ${o}%)`;
|
|
443
443
|
}
|
|
444
444
|
const al = {
|
|
445
445
|
x: "dark",
|
|
@@ -658,15 +658,15 @@ function Zp(t) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
function Jp(t) {
|
|
661
|
-
return t && (t.a < 255 ? `rgba(${t.r}, ${t.g}, ${t.b}, ${
|
|
661
|
+
return t && (t.a < 255 ? `rgba(${t.r}, ${t.g}, ${t.b}, ${Wt(t.a)})` : `rgb(${t.r}, ${t.g}, ${t.b})`);
|
|
662
662
|
}
|
|
663
663
|
const Ki = (t) => t <= 31308e-7 ? t * 12.92 : Math.pow(t, 1 / 2.4) * 1.055 - 0.055, Fn = (t) => t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
|
|
664
664
|
function Qp(t, e, n) {
|
|
665
|
-
const r = Fn(
|
|
665
|
+
const r = Fn(Wt(t.r)), o = Fn(Wt(t.g)), i = Fn(Wt(t.b));
|
|
666
666
|
return {
|
|
667
|
-
r: an(Ki(r + n * (Fn(
|
|
668
|
-
g: an(Ki(o + n * (Fn(
|
|
669
|
-
b: an(Ki(i + n * (Fn(
|
|
667
|
+
r: an(Ki(r + n * (Fn(Wt(e.r)) - r))),
|
|
668
|
+
g: an(Ki(o + n * (Fn(Wt(e.g)) - o))),
|
|
669
|
+
b: an(Ki(i + n * (Fn(Wt(e.b)) - i))),
|
|
670
670
|
a: t.a + n * (e.a - t.a)
|
|
671
671
|
};
|
|
672
672
|
}
|
|
@@ -699,7 +699,7 @@ class zr {
|
|
|
699
699
|
}
|
|
700
700
|
get rgb() {
|
|
701
701
|
var e = qd(this._rgb);
|
|
702
|
-
return e && (e.a =
|
|
702
|
+
return e && (e.a = Wt(e.a)), e;
|
|
703
703
|
}
|
|
704
704
|
set rgb(e) {
|
|
705
705
|
this._rgb = cl(e);
|
|
@@ -778,7 +778,7 @@ const t0 = /* @__PURE__ */ (() => {
|
|
|
778
778
|
function qe(t) {
|
|
779
779
|
return t == null;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function He(t) {
|
|
782
782
|
if (Array.isArray && Array.isArray(t))
|
|
783
783
|
return !0;
|
|
784
784
|
const e = Object.prototype.toString.call(t);
|
|
@@ -803,7 +803,7 @@ function ve(t, e, n) {
|
|
|
803
803
|
}
|
|
804
804
|
function he(t, e, n, r) {
|
|
805
805
|
let o, i, s;
|
|
806
|
-
if (
|
|
806
|
+
if (He(t))
|
|
807
807
|
for (i = t.length, o = 0; o < i; o++)
|
|
808
808
|
e.call(n, t[o], o);
|
|
809
809
|
else if (ie(t))
|
|
@@ -820,7 +820,7 @@ function Ko(t, e) {
|
|
|
820
820
|
return !0;
|
|
821
821
|
}
|
|
822
822
|
function qo(t) {
|
|
823
|
-
if (
|
|
823
|
+
if (He(t))
|
|
824
824
|
return t.map(qo);
|
|
825
825
|
if (ie(t)) {
|
|
826
826
|
const e = /* @__PURE__ */ Object.create(null), n = Object.keys(t), r = n.length;
|
|
@@ -845,7 +845,7 @@ function r0(t, e, n, r) {
|
|
|
845
845
|
ie(o) && ie(i) ? Br(o, i, r) : e[t] = qo(i);
|
|
846
846
|
}
|
|
847
847
|
function Br(t, e, n) {
|
|
848
|
-
const r =
|
|
848
|
+
const r = He(e) ? e : [
|
|
849
849
|
e
|
|
850
850
|
], o = r.length;
|
|
851
851
|
if (!ie(t))
|
|
@@ -1202,7 +1202,7 @@ function S0(t, e, n) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
const E0 = {
|
|
1204
1204
|
values(t) {
|
|
1205
|
-
return
|
|
1205
|
+
return He(t) ? t : "" + t;
|
|
1206
1206
|
}
|
|
1207
1207
|
};
|
|
1208
1208
|
var O0 = {
|
|
@@ -1445,7 +1445,7 @@ function A0(t, e) {
|
|
|
1445
1445
|
t.fillStyle = e.color, t.fillRect(e.left, e.top, e.width, e.height), t.fillStyle = n;
|
|
1446
1446
|
}
|
|
1447
1447
|
function Qo(t, e, n, r, o, i = {}) {
|
|
1448
|
-
const s =
|
|
1448
|
+
const s = He(e) ? e : [
|
|
1449
1449
|
e
|
|
1450
1450
|
], a = i.strokeWidth > 0 && i.strokeColor !== "";
|
|
1451
1451
|
let l, c;
|
|
@@ -1677,9 +1677,9 @@ function su(t, e, n) {
|
|
|
1677
1677
|
function j0(t, e, n) {
|
|
1678
1678
|
const { _proxy: r, _context: o, _subProxy: i, _descriptors: s } = t;
|
|
1679
1679
|
let a = r[e];
|
|
1680
|
-
return cn(a) && s.isScriptable(e) && (a =
|
|
1680
|
+
return cn(a) && s.isScriptable(e) && (a = H0(e, a, t, n)), He(a) && a.length && (a = W0(e, a, t, s.isIndexable)), Qs(e, a) && (a = Gn(a, o, i && i[e], s)), a;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function H0(t, e, n, r) {
|
|
1683
1683
|
const { _proxy: o, _context: i, _subProxy: s, _stack: a } = n;
|
|
1684
1684
|
if (a.has(t))
|
|
1685
1685
|
throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + t);
|
|
@@ -1687,7 +1687,7 @@ function W0(t, e, n, r) {
|
|
|
1687
1687
|
let l = e(i, s || r);
|
|
1688
1688
|
return a.delete(t), Qs(t, l) && (l = ea(o._scopes, o, t, l)), l;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function W0(t, e, n, r) {
|
|
1691
1691
|
const { _proxy: o, _context: i, _subProxy: s, _descriptors: a } = n;
|
|
1692
1692
|
if (typeof i.index < "u" && r(t))
|
|
1693
1693
|
return e[i.index % e.length];
|
|
@@ -1738,7 +1738,7 @@ function U0(t, e, n) {
|
|
|
1738
1738
|
const r = t._getTarget();
|
|
1739
1739
|
e in r || (r[e] = {});
|
|
1740
1740
|
const o = r[e];
|
|
1741
|
-
return
|
|
1741
|
+
return He(o) && ie(n) ? n : o || {};
|
|
1742
1742
|
}
|
|
1743
1743
|
function K0(t, e, n, r) {
|
|
1744
1744
|
let o;
|
|
@@ -2101,7 +2101,7 @@ class uu {
|
|
|
2101
2101
|
const s = {};
|
|
2102
2102
|
for (const a of n)
|
|
2103
2103
|
s[a] = i[a];
|
|
2104
|
-
(
|
|
2104
|
+
(He(i.properties) && i.properties || [
|
|
2105
2105
|
o
|
|
2106
2106
|
]).forEach((a) => {
|
|
2107
2107
|
(a === o || !r.has(a)) && r.set(a, s);
|
|
@@ -2386,7 +2386,7 @@ class Pr {
|
|
|
2386
2386
|
if (this._parsing === !1)
|
|
2387
2387
|
r._parsed = o, r._sorted = !0, f = o;
|
|
2388
2388
|
else {
|
|
2389
|
-
|
|
2389
|
+
He(o[e]) ? f = this.parseArrayData(r, o, e, n) : ie(o[e]) ? f = this.parseObjectData(r, o, e, n) : f = this.parsePrimitiveData(r, o, e, n);
|
|
2390
2390
|
const h = () => u[a] === null || c && u[a] < c[a];
|
|
2391
2391
|
for (d = 0; d < n; ++d)
|
|
2392
2392
|
r._parsed[d + e] = u = f[d], l && (h() && (l = !1), c = u);
|
|
@@ -3434,7 +3434,7 @@ function $m(t, e) {
|
|
|
3434
3434
|
function jm(t) {
|
|
3435
3435
|
jr.delete(t), jr.size || window.removeEventListener("resize", bu);
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3437
|
+
function Hm(t, e, n) {
|
|
3438
3438
|
const r = t.canvas, o = r && na(r);
|
|
3439
3439
|
if (!o)
|
|
3440
3440
|
return;
|
|
@@ -3450,7 +3450,7 @@ function Wm(t, e, n) {
|
|
|
3450
3450
|
function ts(t, e, n) {
|
|
3451
3451
|
n && n.disconnect(), e === "resize" && jm(t);
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function Wm(t, e, n) {
|
|
3454
3454
|
const r = t.canvas, o = eu((i) => {
|
|
3455
3455
|
t.ctx !== null && n(Fm(i, t));
|
|
3456
3456
|
}, t);
|
|
@@ -3483,8 +3483,8 @@ class Vm extends pu {
|
|
|
3483
3483
|
const o = e.$proxies || (e.$proxies = {}), s = {
|
|
3484
3484
|
attach: zm,
|
|
3485
3485
|
detach: Bm,
|
|
3486
|
-
resize:
|
|
3487
|
-
}[n] ||
|
|
3486
|
+
resize: Hm
|
|
3487
|
+
}[n] || Wm;
|
|
3488
3488
|
o[n] = s(e, n, r);
|
|
3489
3489
|
}
|
|
3490
3490
|
removeEventListener(e, n) {
|
|
@@ -3635,7 +3635,7 @@ function jl(t, e) {
|
|
|
3635
3635
|
if (!t.display)
|
|
3636
3636
|
return 0;
|
|
3637
3637
|
const n = et(t.font, e), r = kt(t.padding);
|
|
3638
|
-
return (
|
|
3638
|
+
return (He(t.text) ? t.text.length : 1) * n.lineHeight + r.height;
|
|
3639
3639
|
}
|
|
3640
3640
|
function tb(t, e) {
|
|
3641
3641
|
return or(t, {
|
|
@@ -3915,11 +3915,11 @@ class _i extends Qr {
|
|
|
3915
3915
|
if (g = e[u].label, p = this._resolveTickFontOptions(u), o.font = m = p.string, v = i[m] = i[m] || {
|
|
3916
3916
|
data: {},
|
|
3917
3917
|
gc: []
|
|
3918
|
-
}, y = p.lineHeight, _ = x = 0, !qe(g) && !
|
|
3918
|
+
}, y = p.lineHeight, _ = x = 0, !qe(g) && !He(g))
|
|
3919
3919
|
_ = vl(o, v.data, v.gc, _, g), x = y;
|
|
3920
|
-
else if (
|
|
3920
|
+
else if (He(g))
|
|
3921
3921
|
for (f = 0, h = g.length; f < h; ++f)
|
|
3922
|
-
w = g[f], !qe(w) && !
|
|
3922
|
+
w = g[f], !qe(w) && !He(w) && (_ = vl(o, v.data, v.gc, _, w), x += y);
|
|
3923
3923
|
s.push(_), a.push(x), c = Math.max(_, c), d = Math.max(x, d);
|
|
3924
3924
|
}
|
|
3925
3925
|
eb(i, n);
|
|
@@ -4012,7 +4012,7 @@ class _i extends Qr {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
const E = ge(o.ticks.maxTicksLimit, u), R = Math.max(1, Math.ceil(u / E));
|
|
4014
4014
|
for (_ = 0; _ < u; _ += R) {
|
|
4015
|
-
const D = this.getContext(_), L = i.setContext(D), F = a.setContext(D), $ = L.lineWidth, B = L.color,
|
|
4015
|
+
const D = this.getContext(_), L = i.setContext(D), F = a.setContext(D), $ = L.lineWidth, B = L.color, W = F.dash || [], V = F.dashOffset, U = L.tickWidth, K = L.tickColor, q = L.tickBorderDash || [], X = L.tickBorderDashOffset;
|
|
4016
4016
|
x = Qm(this, _, l), x !== void 0 && (w = pn(r, x, $), c ? C = N = S = M = w : O = T = A = P = w, h.push({
|
|
4017
4017
|
tx1: C,
|
|
4018
4018
|
ty1: O,
|
|
@@ -4024,7 +4024,7 @@ class _i extends Qr {
|
|
|
4024
4024
|
y2: P,
|
|
4025
4025
|
width: $,
|
|
4026
4026
|
color: B,
|
|
4027
|
-
borderDash:
|
|
4027
|
+
borderDash: W,
|
|
4028
4028
|
borderDashOffset: V,
|
|
4029
4029
|
tickWidth: U,
|
|
4030
4030
|
tickColor: K,
|
|
@@ -4069,11 +4069,11 @@ class _i extends Qr {
|
|
|
4069
4069
|
for (v = 0, y = a.length; v < y; ++v) {
|
|
4070
4070
|
_ = a[v], x = _.label;
|
|
4071
4071
|
const R = i.setContext(this.getContext(v));
|
|
4072
|
-
N = this.getPixelForTick(v) + i.labelOffset, T = this._resolveTickFontOptions(v), S = T.lineHeight, A =
|
|
4072
|
+
N = this.getPixelForTick(v) + i.labelOffset, T = this._resolveTickFontOptions(v), S = T.lineHeight, A = He(x) ? x.length : 1;
|
|
4073
4073
|
const D = A / 2, L = R.color, F = R.textStrokeColor, $ = R.textStrokeWidth;
|
|
4074
4074
|
let B = O;
|
|
4075
4075
|
s ? (w = N, O === "inner" && (v === y - 1 ? B = this.options.reverse ? "left" : "right" : v === 0 ? B = this.options.reverse ? "right" : "left" : B = "center"), o === "top" ? c === "near" || p !== 0 ? M = -A * S + S / 2 : c === "center" ? M = -E.highest.height / 2 - D * S + S : M = -E.highest.height + S / 2 : c === "near" || p !== 0 ? M = S / 2 : c === "center" ? M = E.highest.height / 2 - D * S : M = E.highest.height - A * S, u && (M *= -1), p !== 0 && !R.showLabelBackdrop && (w += S / 2 * Math.sin(p))) : (C = N, M = (1 - A) * S / 2);
|
|
4076
|
-
let
|
|
4076
|
+
let W;
|
|
4077
4077
|
if (R.showLabelBackdrop) {
|
|
4078
4078
|
const V = kt(R.backdropPadding), U = E.heights[v], K = E.widths[v];
|
|
4079
4079
|
let q = M - V.top, X = 0 - V.left;
|
|
@@ -4096,7 +4096,7 @@ class _i extends Qr {
|
|
|
4096
4096
|
v === y - 1 ? X -= K : v > 0 && (X -= K / 2);
|
|
4097
4097
|
break;
|
|
4098
4098
|
}
|
|
4099
|
-
|
|
4099
|
+
W = {
|
|
4100
4100
|
left: X,
|
|
4101
4101
|
top: q,
|
|
4102
4102
|
width: K + V.width,
|
|
@@ -4119,7 +4119,7 @@ class _i extends Qr {
|
|
|
4119
4119
|
w,
|
|
4120
4120
|
C
|
|
4121
4121
|
],
|
|
4122
|
-
backdrop:
|
|
4122
|
+
backdrop: W
|
|
4123
4123
|
}
|
|
4124
4124
|
});
|
|
4125
4125
|
}
|
|
@@ -4225,7 +4225,7 @@ class _i extends Qr {
|
|
|
4225
4225
|
return;
|
|
4226
4226
|
const i = et(r.font), s = kt(r.padding), a = r.align;
|
|
4227
4227
|
let l = i.lineHeight / 2;
|
|
4228
|
-
n === "bottom" || n === "center" || ie(n) ? (l += s.bottom,
|
|
4228
|
+
n === "bottom" || n === "center" || ie(n) ? (l += s.bottom, He(r.text) && (l += i.lineHeight * (r.text.length - 1))) : l += s.top;
|
|
4229
4229
|
const { titleX: c, titleY: d, maxWidth: u, rotation: f } = ob(this, l, n, a);
|
|
4230
4230
|
Qo(e, r.text, 0, 0, i, {
|
|
4231
4231
|
color: r.color,
|
|
@@ -4506,7 +4506,7 @@ function gb(t, e) {
|
|
|
4506
4506
|
function pb(t, e) {
|
|
4507
4507
|
return t === e ? "_index_" : "_value_";
|
|
4508
4508
|
}
|
|
4509
|
-
function
|
|
4509
|
+
function Hl(t) {
|
|
4510
4510
|
if (t === "x" || t === "y" || t === "r")
|
|
4511
4511
|
return t;
|
|
4512
4512
|
}
|
|
@@ -4517,16 +4517,16 @@ function mb(t) {
|
|
|
4517
4517
|
return "y";
|
|
4518
4518
|
}
|
|
4519
4519
|
function Cs(t, ...e) {
|
|
4520
|
-
if (
|
|
4520
|
+
if (Hl(t))
|
|
4521
4521
|
return t;
|
|
4522
4522
|
for (const n of e) {
|
|
4523
|
-
const r = n.axis || mb(n.position) || t.length > 1 &&
|
|
4523
|
+
const r = n.axis || mb(n.position) || t.length > 1 && Hl(t[0].toLowerCase());
|
|
4524
4524
|
if (r)
|
|
4525
4525
|
return r;
|
|
4526
4526
|
}
|
|
4527
4527
|
throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`);
|
|
4528
4528
|
}
|
|
4529
|
-
function
|
|
4529
|
+
function Wl(t, e, n) {
|
|
4530
4530
|
if (n[e + "AxisID"] === t)
|
|
4531
4531
|
return {
|
|
4532
4532
|
axis: e
|
|
@@ -4536,7 +4536,7 @@ function bb(t, e) {
|
|
|
4536
4536
|
if (e.data && e.data.datasets) {
|
|
4537
4537
|
const n = e.data.datasets.filter((r) => r.xAxisID === t || r.yAxisID === t);
|
|
4538
4538
|
if (n.length)
|
|
4539
|
-
return
|
|
4539
|
+
return Wl(t, "x", n[0]) || Wl(t, "y", n[0]);
|
|
4540
4540
|
}
|
|
4541
4541
|
return {};
|
|
4542
4542
|
}
|
|
@@ -4739,7 +4739,7 @@ function kb(t, e) {
|
|
|
4739
4739
|
const { isScriptable: n, isIndexable: r } = iu(t);
|
|
4740
4740
|
for (const o of e) {
|
|
4741
4741
|
const i = n(o), s = r(o), a = (s || i) && t[o];
|
|
4742
|
-
if (i && (cn(a) || wb(a)) || s &&
|
|
4742
|
+
if (i && (cn(a) || wb(a)) || s && He(a))
|
|
4743
4743
|
return !0;
|
|
4744
4744
|
}
|
|
4745
4745
|
return !1;
|
|
@@ -5810,7 +5810,7 @@ const Or = {
|
|
|
5810
5810
|
}
|
|
5811
5811
|
};
|
|
5812
5812
|
function Et(t, e) {
|
|
5813
|
-
return e && (
|
|
5813
|
+
return e && (He(e) ? Array.prototype.push.apply(t, e) : t.push(e)), t;
|
|
5814
5814
|
}
|
|
5815
5815
|
function jt(t) {
|
|
5816
5816
|
return (typeof t == "string" || t instanceof String) && t.indexOf(`
|
|
@@ -5854,20 +5854,20 @@ function jb(t, e) {
|
|
|
5854
5854
|
const { y: n, height: r } = e;
|
|
5855
5855
|
return n < r / 2 ? "top" : n > t.height - r / 2 ? "bottom" : "center";
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5857
|
+
function Hb(t, e, n, r) {
|
|
5858
5858
|
const { x: o, width: i } = r, s = n.caretSize + n.caretPadding;
|
|
5859
5859
|
if (t === "left" && o + i + s > e.width || t === "right" && o - i - s < 0)
|
|
5860
5860
|
return !0;
|
|
5861
5861
|
}
|
|
5862
|
-
function
|
|
5862
|
+
function Wb(t, e, n, r) {
|
|
5863
5863
|
const { x: o, width: i } = n, { width: s, chartArea: { left: a, right: l } } = t;
|
|
5864
5864
|
let c = "center";
|
|
5865
|
-
return r === "center" ? c = o <= (a + l) / 2 ? "left" : "right" : o <= i / 2 ? c = "left" : o >= s - i / 2 && (c = "right"),
|
|
5865
|
+
return r === "center" ? c = o <= (a + l) / 2 ? "left" : "right" : o <= i / 2 ? c = "left" : o >= s - i / 2 && (c = "right"), Hb(c, t, e, n) && (c = "center"), c;
|
|
5866
5866
|
}
|
|
5867
5867
|
function ec(t, e, n) {
|
|
5868
5868
|
const r = n.yAlign || e.yAlign || jb(t, n);
|
|
5869
5869
|
return {
|
|
5870
|
-
xAlign: n.xAlign || e.xAlign ||
|
|
5870
|
+
xAlign: n.xAlign || e.xAlign || Wb(t, e, n, r),
|
|
5871
5871
|
yAlign: r
|
|
5872
5872
|
};
|
|
5873
5873
|
}
|
|
@@ -6704,7 +6704,7 @@ function Qb(t, e) {
|
|
|
6704
6704
|
g.current && (m(), setTimeout(p));
|
|
6705
6705
|
}, [
|
|
6706
6706
|
s
|
|
6707
|
-
]), Je(() => (p(), () => m()), []), /* @__PURE__ */
|
|
6707
|
+
]), Je(() => (p(), () => m()), []), /* @__PURE__ */ H.createElement("canvas", {
|
|
6708
6708
|
ref: h,
|
|
6709
6709
|
role: "img",
|
|
6710
6710
|
height: n,
|
|
@@ -6714,7 +6714,7 @@ function Qb(t, e) {
|
|
|
6714
6714
|
}
|
|
6715
6715
|
const ey = /* @__PURE__ */ ue(Qb);
|
|
6716
6716
|
function ty(t, e) {
|
|
6717
|
-
return Ci.register(e), /* @__PURE__ */ ue((n, r) => /* @__PURE__ */
|
|
6717
|
+
return Ci.register(e), /* @__PURE__ */ ue((n, r) => /* @__PURE__ */ H.createElement(ey, {
|
|
6718
6718
|
...n,
|
|
6719
6719
|
ref: r,
|
|
6720
6720
|
type: t
|
|
@@ -6722,7 +6722,7 @@ function ty(t, e) {
|
|
|
6722
6722
|
}
|
|
6723
6723
|
const ny = /* @__PURE__ */ ty("doughnut", Cr);
|
|
6724
6724
|
Ci.register(Er, Kb, Bb);
|
|
6725
|
-
const
|
|
6725
|
+
const fC = () => {
|
|
6726
6726
|
const t = {
|
|
6727
6727
|
labels: ["Planeado", "Ejecutado"],
|
|
6728
6728
|
datasets: [
|
|
@@ -6916,7 +6916,7 @@ function Es(t, e) {
|
|
|
6916
6916
|
function je(t, e) {
|
|
6917
6917
|
return t.charCodeAt(e) | 0;
|
|
6918
6918
|
}
|
|
6919
|
-
function
|
|
6919
|
+
function Hr(t, e, n) {
|
|
6920
6920
|
return t.slice(e, n);
|
|
6921
6921
|
}
|
|
6922
6922
|
function Tt(t) {
|
|
@@ -6954,9 +6954,9 @@ function Io() {
|
|
|
6954
6954
|
return ot;
|
|
6955
6955
|
}
|
|
6956
6956
|
function eo(t, e) {
|
|
6957
|
-
return
|
|
6957
|
+
return Hr(ir, t, e);
|
|
6958
6958
|
}
|
|
6959
|
-
function
|
|
6959
|
+
function Wr(t) {
|
|
6960
6960
|
switch (t) {
|
|
6961
6961
|
case 0:
|
|
6962
6962
|
case 9:
|
|
@@ -7000,7 +7000,7 @@ function Lo(t) {
|
|
|
7000
7000
|
function wy(t) {
|
|
7001
7001
|
for (; (Te = Pt()) && Te < 33; )
|
|
7002
7002
|
ct();
|
|
7003
|
-
return
|
|
7003
|
+
return Wr(t) > 2 || Wr(Te) > 3 ? "" : " ";
|
|
7004
7004
|
}
|
|
7005
7005
|
function ky(t, e) {
|
|
7006
7006
|
for (; --e && ct() && !(Te < 48 || Te > 102 || Te > 57 && Te < 65 || Te > 70 && Te < 97); )
|
|
@@ -7032,7 +7032,7 @@ function _y(t, e) {
|
|
|
7032
7032
|
return "/*" + eo(e, ot - 1) + "*" + Oi(t === 47 ? t : ct());
|
|
7033
7033
|
}
|
|
7034
7034
|
function Cy(t) {
|
|
7035
|
-
for (; !
|
|
7035
|
+
for (; !Wr(Pt()); )
|
|
7036
7036
|
ct();
|
|
7037
7037
|
return eo(t, ot);
|
|
7038
7038
|
}
|
|
@@ -7129,15 +7129,15 @@ function Fo(t, e, n, r, o, i, s, a, l) {
|
|
|
7129
7129
|
}
|
|
7130
7130
|
function hc(t, e, n, r, o, i, s, a, l, c, d) {
|
|
7131
7131
|
for (var u = o - 1, f = o === 0 ? i : [""], h = aa(f), g = 0, p = 0, m = 0; g < r; ++g)
|
|
7132
|
-
for (var v = 0, y =
|
|
7132
|
+
for (var v = 0, y = Hr(t, u + 1, u = gy(p = s[g])), _ = t; v < h; ++v)
|
|
7133
7133
|
(_ = Tu(p > 0 ? f[v] + " " + y : de(y, /&\f/g, f[v]))) && (l[m++] = _);
|
|
7134
7134
|
return Ni(t, e, n, o === 0 ? ia : a, l, c, d);
|
|
7135
7135
|
}
|
|
7136
7136
|
function Sy(t, e, n) {
|
|
7137
|
-
return Ni(t, e, n, oa, Oi(vy()),
|
|
7137
|
+
return Ni(t, e, n, oa, Oi(vy()), Hr(t, 2, -2), 0);
|
|
7138
7138
|
}
|
|
7139
7139
|
function gc(t, e, n, r) {
|
|
7140
|
-
return Ni(t, e, n, sa,
|
|
7140
|
+
return Ni(t, e, n, sa, Hr(t, 0, r), Hr(t, r + 1, -1), r);
|
|
7141
7141
|
}
|
|
7142
7142
|
function Cn(t, e) {
|
|
7143
7143
|
for (var n = "", r = aa(t), o = 0; o < r; o++)
|
|
@@ -7180,13 +7180,13 @@ var Oy = function(e) {
|
|
|
7180
7180
|
return n.set(r, o), o;
|
|
7181
7181
|
};
|
|
7182
7182
|
}, Ty = function(e, n, r) {
|
|
7183
|
-
for (var o = 0, i = 0; o = i, i = Pt(), o === 38 && i === 12 && (n[r] = 1), !
|
|
7183
|
+
for (var o = 0, i = 0; o = i, i = Pt(), o === 38 && i === 12 && (n[r] = 1), !Wr(i); )
|
|
7184
7184
|
ct();
|
|
7185
7185
|
return eo(e, ot);
|
|
7186
7186
|
}, Ny = function(e, n) {
|
|
7187
7187
|
var r = -1, o = 44;
|
|
7188
7188
|
do
|
|
7189
|
-
switch (
|
|
7189
|
+
switch (Wr(o)) {
|
|
7190
7190
|
case 0:
|
|
7191
7191
|
o === 38 && Pt() === 12 && (n[r] = 1), e[r] += Ty(ot - 1, n, r);
|
|
7192
7192
|
break;
|
|
@@ -7510,7 +7510,7 @@ var Iu = function(e, n, r) {
|
|
|
7510
7510
|
// the registered cache to know whether a style is global or not
|
|
7511
7511
|
// also, note that this check will be dead code eliminated in the browser
|
|
7512
7512
|
Ts === !1 && e.compat !== void 0) && e.registered[o] === void 0 && (e.registered[o] = n.styles);
|
|
7513
|
-
},
|
|
7513
|
+
}, Hy = function(e, n, r) {
|
|
7514
7514
|
Iu(e, n, r);
|
|
7515
7515
|
var o = e.key + "-" + n.name;
|
|
7516
7516
|
if (e.inserted[n.name] === void 0) {
|
|
@@ -7523,7 +7523,7 @@ var Iu = function(e, n, r) {
|
|
|
7523
7523
|
return i;
|
|
7524
7524
|
}
|
|
7525
7525
|
};
|
|
7526
|
-
function
|
|
7526
|
+
function Wy(t) {
|
|
7527
7527
|
for (var e = 0, n, r = 0, o = t.length; o >= 4; ++r, o -= 4)
|
|
7528
7528
|
n = t.charCodeAt(r) & 255 | (t.charCodeAt(++r) & 255) << 8 | (t.charCodeAt(++r) & 255) << 16 | (t.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
7529
7529
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -7731,7 +7731,7 @@ var vt, _c = function(e, n, r) {
|
|
|
7731
7731
|
for (var c = "", d; (d = kc.exec(i)) !== null; )
|
|
7732
7732
|
c += "-" + // $FlowFixMe we know it's not null
|
|
7733
7733
|
d[1];
|
|
7734
|
-
var u =
|
|
7734
|
+
var u = Wy(i) + c;
|
|
7735
7735
|
return process.env.NODE_ENV !== "production" ? {
|
|
7736
7736
|
name: u,
|
|
7737
7737
|
styles: i,
|
|
@@ -7782,7 +7782,7 @@ var Sc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ec = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
7782
7782
|
var n = e.cache, r = e.serialized, o = e.isStringTag;
|
|
7783
7783
|
Iu(n, r, o);
|
|
7784
7784
|
var i = Bu(function() {
|
|
7785
|
-
return
|
|
7785
|
+
return Hy(n, r, o);
|
|
7786
7786
|
});
|
|
7787
7787
|
if (!$u && i !== void 0) {
|
|
7788
7788
|
for (var s, a = r.name, l = r.next; l !== void 0; )
|
|
@@ -7806,7 +7806,7 @@ var Sc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ec = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
7806
7806
|
var c = {};
|
|
7807
7807
|
for (var d in t)
|
|
7808
7808
|
tv.call(t, d) && d !== "css" && d !== Sc && (process.env.NODE_ENV === "production" || d !== Ec) && (c[d] = t[d]);
|
|
7809
|
-
return c.ref = n, c.className = s, /* @__PURE__ */ Mt(
|
|
7809
|
+
return c.ref = n, c.className = s, /* @__PURE__ */ Mt(Hd, null, /* @__PURE__ */ Mt(nv, {
|
|
7810
7810
|
cache: e,
|
|
7811
7811
|
serialized: a,
|
|
7812
7812
|
isStringTag: typeof o == "string"
|
|
@@ -7914,7 +7914,7 @@ var av = {
|
|
|
7914
7914
|
}, Oc = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
7915
7915
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
7916
7916
|
You can read more about this here:
|
|
7917
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, lv = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", cv = /[A-Z]|^ms/g,
|
|
7917
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, lv = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", cv = /[A-Z]|^ms/g, Hu = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ua = function(e) {
|
|
7918
7918
|
return e.charCodeAt(1) === 45;
|
|
7919
7919
|
}, Tc = function(e) {
|
|
7920
7920
|
return e != null && typeof e != "boolean";
|
|
@@ -7925,7 +7925,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
7925
7925
|
case "animation":
|
|
7926
7926
|
case "animationName":
|
|
7927
7927
|
if (typeof n == "string")
|
|
7928
|
-
return n.replace(
|
|
7928
|
+
return n.replace(Hu, function(r, o, i) {
|
|
7929
7929
|
return xt = {
|
|
7930
7930
|
name: o,
|
|
7931
7931
|
styles: i,
|
|
@@ -7946,13 +7946,13 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
7946
7946
|
}) + "?")), r;
|
|
7947
7947
|
};
|
|
7948
7948
|
}
|
|
7949
|
-
var
|
|
7949
|
+
var Wu = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
7950
7950
|
function Ur(t, e, n) {
|
|
7951
7951
|
if (n == null)
|
|
7952
7952
|
return "";
|
|
7953
7953
|
if (n.__emotion_styles !== void 0) {
|
|
7954
7954
|
if (process.env.NODE_ENV !== "production" && n.toString() === "NO_COMPONENT_SELECTOR")
|
|
7955
|
-
throw new Error(
|
|
7955
|
+
throw new Error(Wu);
|
|
7956
7956
|
return n;
|
|
7957
7957
|
}
|
|
7958
7958
|
switch (typeof n) {
|
|
@@ -7988,7 +7988,7 @@ function Ur(t, e, n) {
|
|
|
7988
7988
|
}
|
|
7989
7989
|
case "string":
|
|
7990
7990
|
if (process.env.NODE_ENV !== "production") {
|
|
7991
|
-
var a = [], l = n.replace(
|
|
7991
|
+
var a = [], l = n.replace(Hu, function(d, u, f) {
|
|
7992
7992
|
var h = "animation" + a.length;
|
|
7993
7993
|
return a.push("const " + h + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + h + "}";
|
|
7994
7994
|
});
|
|
@@ -8018,7 +8018,7 @@ function pv(t, e, n) {
|
|
|
8018
8018
|
e != null && e[s] !== void 0 ? r += i + "{" + e[s] + "}" : Tc(s) && (r += os(i) + ":" + si(i, s) + ";");
|
|
8019
8019
|
else {
|
|
8020
8020
|
if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
8021
|
-
throw new Error(
|
|
8021
|
+
throw new Error(Wu);
|
|
8022
8022
|
if (Array.isArray(s) && typeof s[0] == "string" && (e == null || e[s[0]] === void 0))
|
|
8023
8023
|
for (var a = 0; a < s.length; a++)
|
|
8024
8024
|
Tc(s[a]) && (r += os(i) + ":" + si(i, s[a]) + ";");
|
|
@@ -8134,7 +8134,7 @@ You may have forgotten to import it.`);
|
|
|
8134
8134
|
for (var S in p)
|
|
8135
8135
|
c && S === "as" || // $FlowFixMe
|
|
8136
8136
|
N(S) && (T[S] = p[S]);
|
|
8137
|
-
return T.className = _, T.ref = v, /* @__PURE__ */ Mt(
|
|
8137
|
+
return T.className = _, T.ref = v, /* @__PURE__ */ Mt(Hd, null, /* @__PURE__ */ Mt(xv, {
|
|
8138
8138
|
cache: m,
|
|
8139
8139
|
serialized: O,
|
|
8140
8140
|
isStringTag: typeof y == "string"
|
|
@@ -8326,12 +8326,12 @@ var Yu = { exports: {} };
|
|
|
8326
8326
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
8327
8327
|
})();
|
|
8328
8328
|
})(Yu);
|
|
8329
|
-
var Pe = Yu.exports, _v =
|
|
8330
|
-
var t =
|
|
8329
|
+
var Pe = Yu.exports, _v = H.createContext(void 0), Cv = function() {
|
|
8330
|
+
var t = H.useContext(_v);
|
|
8331
8331
|
return t;
|
|
8332
8332
|
}, Sv = function(t) {
|
|
8333
|
-
var e =
|
|
8334
|
-
return
|
|
8333
|
+
var e = H.useState(!!t && typeof window < "u" && window.matchMedia(t).matches), n = e[0], r = e[1];
|
|
8334
|
+
return H.useEffect(function() {
|
|
8335
8335
|
if (t) {
|
|
8336
8336
|
var o = window.matchMedia(t), i = function() {
|
|
8337
8337
|
o.matches !== n && r(o.matches);
|
|
@@ -8571,42 +8571,42 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8571
8571
|
top: 0;
|
|
8572
8572
|
z-index: 2;
|
|
8573
8573
|
}
|
|
8574
|
-
`])), ke.image), Ri =
|
|
8574
|
+
`])), ke.image), Ri = H.createContext({
|
|
8575
8575
|
collapsed: !1,
|
|
8576
8576
|
toggled: !1,
|
|
8577
8577
|
rtl: !1,
|
|
8578
8578
|
transitionDuration: 300
|
|
8579
|
-
}), Mv =
|
|
8579
|
+
}), Mv = H.forwardRef(function(t, e) {
|
|
8580
8580
|
var n, r = t.collapsed, o = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, a = t.width, l = a === void 0 ? "250px" : a, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, p = t.customBreakPoint, m = t.backgroundColor, v = m === void 0 ? "rgb(249, 249, 249, 0.7)" : m, y = t.transitionDuration, _ = y === void 0 ? 300 : y, x = t.image, w = t.rtl, C = t.rootStyles, O = Rn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), N = function() {
|
|
8581
8581
|
if (p)
|
|
8582
8582
|
return "(max-width: ".concat(p, ")");
|
|
8583
8583
|
if (g)
|
|
8584
8584
|
return ["xs", "sm", "md", "lg", "xl", "xxl"].includes(g) ? "(max-width: ".concat(Ov[g], ")") : g === "always" || g === "all" ? (g === "always" && console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'), "screen") : "(max-width: ".concat(g, ")");
|
|
8585
|
-
}, T =
|
|
8585
|
+
}, T = H.useRef();
|
|
8586
8586
|
T.current = function(F) {
|
|
8587
8587
|
s == null || s(F);
|
|
8588
8588
|
};
|
|
8589
|
-
var S = Sv(N()), A =
|
|
8589
|
+
var S = Sv(N()), A = H.useState(!1), M = A[0], P = A[1], E = Cv(), R = r ?? (!M && u ? !0 : E == null ? void 0 : E.collapsed), D = o ?? (E == null ? void 0 : E.toggled), L = function() {
|
|
8590
8590
|
i == null || i(), E == null || E.updateSidebarState({ toggled: !1 });
|
|
8591
8591
|
};
|
|
8592
|
-
return
|
|
8592
|
+
return H.useEffect(function() {
|
|
8593
8593
|
var F;
|
|
8594
8594
|
(F = T.current) === null || F === void 0 || F.call(T, S);
|
|
8595
|
-
}, [S]),
|
|
8595
|
+
}, [S]), H.useEffect(function() {
|
|
8596
8596
|
E == null || E.updateSidebarState({ broken: S, rtl: w, transitionDuration: _ });
|
|
8597
|
-
}, [S, E == null ? void 0 : E.updateSidebarState, w, _]),
|
|
8597
|
+
}, [S, E == null ? void 0 : E.updateSidebarState, w, _]), H.useEffect(function() {
|
|
8598
8598
|
M || (E == null || E.updateSidebarState({
|
|
8599
8599
|
collapsed: u
|
|
8600
8600
|
}), P(!0));
|
|
8601
|
-
}, [u, M, E == null ? void 0 : E.updateSidebarState]),
|
|
8601
|
+
}, [u, M, E == null ? void 0 : E.updateSidebarState]), H.createElement(
|
|
8602
8602
|
Ri.Provider,
|
|
8603
8603
|
{ value: { collapsed: R, toggled: D, rtl: w, transitionDuration: _ } },
|
|
8604
|
-
|
|
8604
|
+
H.createElement(
|
|
8605
8605
|
Tv,
|
|
8606
8606
|
lt({ ref: e, "data-testid": "".concat(ke.root, "-test-id"), rtl: w, rootStyles: C, width: l, collapsedWidth: d, transitionDuration: _, className: Pe(ke.root, (n = {}, n[ke.collapsed] = R, n[ke.toggled] = D, n[ke.broken] = S, n[ke.rtl] = w, n), f) }, O),
|
|
8607
|
-
|
|
8608
|
-
x &&
|
|
8609
|
-
S && D &&
|
|
8607
|
+
H.createElement(Nv, { "data-testid": "".concat(ke.container, "-test-id"), className: ke.container, backgroundColor: v }, h),
|
|
8608
|
+
x && H.createElement(Rv, { "data-testid": "".concat(ke.image, "-test-id"), src: x, alt: "sidebar background", className: ke.image }),
|
|
8609
|
+
S && D && H.createElement(Ev, { "data-testid": "".concat(ke.backdrop, "-test-id"), role: "button", tabIndex: 0, "aria-label": "backdrop", onClick: L, onKeyPress: L, className: ke.backdrop })
|
|
8610
8610
|
)
|
|
8611
8611
|
);
|
|
8612
8612
|
}), Ic, Lc, Fc, Uu = ze.ul(zc || (zc = Ge([`
|
|
@@ -8628,25 +8628,25 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8628
8628
|
`])), le.root, function(t) {
|
|
8629
8629
|
var e = t.rootStyles;
|
|
8630
8630
|
return e;
|
|
8631
|
-
}), Ku =
|
|
8632
|
-
var n = t.children, r = t.className, o = t.transitionDuration, i = o === void 0 ? 300 : o, s = t.closeOnClick, a = s === void 0 ? !1 : s, l = t.rootStyles, c = t.menuItemStyles, d = t.renderExpandIcon, u = Rn(t, ["children", "className", "transitionDuration", "closeOnClick", "rootStyles", "menuItemStyles", "renderExpandIcon"]), f =
|
|
8631
|
+
}), Ku = H.createContext(void 0), ai = H.createContext(0), Av = function(t, e) {
|
|
8632
|
+
var n = t.children, r = t.className, o = t.transitionDuration, i = o === void 0 ? 300 : o, s = t.closeOnClick, a = s === void 0 ? !1 : s, l = t.rootStyles, c = t.menuItemStyles, d = t.renderExpandIcon, u = Rn(t, ["children", "className", "transitionDuration", "closeOnClick", "rootStyles", "menuItemStyles", "renderExpandIcon"]), f = H.useMemo(function() {
|
|
8633
8633
|
return { transitionDuration: i, closeOnClick: a, menuItemStyles: c, renderExpandIcon: d };
|
|
8634
8634
|
}, [i, a, c, d]);
|
|
8635
|
-
return
|
|
8635
|
+
return H.createElement(
|
|
8636
8636
|
Ku.Provider,
|
|
8637
8637
|
{ value: f },
|
|
8638
|
-
|
|
8638
|
+
H.createElement(
|
|
8639
8639
|
ai.Provider,
|
|
8640
8640
|
{ value: 0 },
|
|
8641
|
-
|
|
8641
|
+
H.createElement(
|
|
8642
8642
|
Pv,
|
|
8643
8643
|
lt({ ref: e, className: Pe(le.root, r), rootStyles: l }, u),
|
|
8644
|
-
|
|
8644
|
+
H.createElement(Uu, null, n)
|
|
8645
8645
|
)
|
|
8646
8646
|
)
|
|
8647
8647
|
);
|
|
8648
|
-
}, Dv =
|
|
8649
|
-
var t =
|
|
8648
|
+
}, Dv = H.forwardRef(Av), Bc, fa = function() {
|
|
8649
|
+
var t = H.useContext(Ku);
|
|
8650
8650
|
if (t === void 0)
|
|
8651
8651
|
throw new Error("Menu Component is required!");
|
|
8652
8652
|
return t;
|
|
@@ -8711,13 +8711,13 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8711
8711
|
var e = t.rootStyles;
|
|
8712
8712
|
return e;
|
|
8713
8713
|
}), Lv = function(t, e) {
|
|
8714
|
-
var n = t.children, r = t.open, o = t.openWhenCollapsed, i = t.firstLevel, s = t.collapsed, a = t.defaultOpen, l = Rn(t, ["children", "open", "openWhenCollapsed", "firstLevel", "collapsed", "defaultOpen"]), c = fa().transitionDuration, d =
|
|
8715
|
-
return
|
|
8714
|
+
var n = t.children, r = t.open, o = t.openWhenCollapsed, i = t.firstLevel, s = t.collapsed, a = t.defaultOpen, l = Rn(t, ["children", "open", "openWhenCollapsed", "firstLevel", "collapsed", "defaultOpen"]), c = fa().transitionDuration, d = H.useState(a)[0];
|
|
8715
|
+
return H.createElement(
|
|
8716
8716
|
Iv,
|
|
8717
8717
|
lt({ "data-testid": "".concat(le.subMenuContent, "-test-id"), ref: e, firstLevel: i, collapsed: s, open: r, openWhenCollapsed: o, transitionDuration: c, defaultOpen: d }, l),
|
|
8718
|
-
|
|
8718
|
+
H.createElement(Uu, null, n)
|
|
8719
8719
|
);
|
|
8720
|
-
}, Fv =
|
|
8720
|
+
}, Fv = H.forwardRef(Lv), $c, qu = ze.span(jc || (jc = Ge([`
|
|
8721
8721
|
flex-grow: 1;
|
|
8722
8722
|
overflow: hidden;
|
|
8723
8723
|
text-overflow: ellipsis;
|
|
@@ -8734,7 +8734,7 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8734
8734
|
`])), function(t) {
|
|
8735
8735
|
var e = t.rootStyles;
|
|
8736
8736
|
return e;
|
|
8737
|
-
}), jc, Gu = ze.span(
|
|
8737
|
+
}), jc, Gu = ze.span(Hc || (Hc = Ge([`
|
|
8738
8738
|
width: 35px;
|
|
8739
8739
|
min-width: 35px;
|
|
8740
8740
|
height: 35px;
|
|
@@ -8770,7 +8770,7 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8770
8770
|
}, function(t) {
|
|
8771
8771
|
var e = t.rootStyles;
|
|
8772
8772
|
return e;
|
|
8773
|
-
}),
|
|
8773
|
+
}), Hc, Xu = ze.span(Wc || (Wc = Ge([`
|
|
8774
8774
|
`, `
|
|
8775
8775
|
opacity: `, `;
|
|
8776
8776
|
transition: opacity `, `ms;
|
|
@@ -8794,7 +8794,7 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8794
8794
|
}, function(t) {
|
|
8795
8795
|
var e = t.rootStyles;
|
|
8796
8796
|
return e;
|
|
8797
|
-
}),
|
|
8797
|
+
}), Wc, Zu = ze.span(Vc || (Vc = Ge([`
|
|
8798
8798
|
margin-right: 5px;
|
|
8799
8799
|
margin-left: 5px;
|
|
8800
8800
|
opacity: `, `;
|
|
@@ -8876,11 +8876,11 @@ var Pe = Yu.exports, _v = W.createContext(void 0), Cv = function() {
|
|
|
8876
8876
|
background-color: currentcolor;
|
|
8877
8877
|
border-radius: 50%;
|
|
8878
8878
|
display: inline-block;
|
|
8879
|
-
`]))), Yc, Uc, Kc, tt = "top", gt = "bottom", pt = "right", nt = "left", Mi = "auto", to = [tt, gt, pt, nt], Zn = "start", Kr = "end", jv = "clippingParents", Ju = "viewport", yr = "popper",
|
|
8879
|
+
`]))), Yc, Uc, Kc, tt = "top", gt = "bottom", pt = "right", nt = "left", Mi = "auto", to = [tt, gt, pt, nt], Zn = "start", Kr = "end", jv = "clippingParents", Ju = "viewport", yr = "popper", Hv = "reference", qc = /* @__PURE__ */ to.reduce(function(t, e) {
|
|
8880
8880
|
return t.concat([e + "-" + Zn, e + "-" + Kr]);
|
|
8881
8881
|
}, []), Qu = /* @__PURE__ */ [].concat(to, [Mi]).reduce(function(t, e) {
|
|
8882
8882
|
return t.concat([e, e + "-" + Zn, e + "-" + Kr]);
|
|
8883
|
-
}, []),
|
|
8883
|
+
}, []), Wv = "beforeRead", Vv = "read", Yv = "afterRead", Uv = "beforeMain", Kv = "main", qv = "afterMain", Gv = "beforeWrite", Xv = "write", Zv = "afterWrite", Rs = [Wv, Vv, Yv, Uv, Kv, qv, Gv, Xv, Zv];
|
|
8884
8884
|
function Lt(t) {
|
|
8885
8885
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
8886
8886
|
}
|
|
@@ -9374,7 +9374,7 @@ function af(t) {
|
|
|
9374
9374
|
}
|
|
9375
9375
|
function qr(t, e) {
|
|
9376
9376
|
e === void 0 && (e = {});
|
|
9377
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? jv : a, c = n.rootBoundary, d = c === void 0 ? Ju : c, u = n.elementContext, f = u === void 0 ? yr : u, h = n.altBoundary, g = h === void 0 ? !1 : h, p = n.padding, m = p === void 0 ? 0 : p, v = rf(typeof m != "number" ? m : of(m, to)), y = f === yr ?
|
|
9377
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? jv : a, c = n.rootBoundary, d = c === void 0 ? Ju : c, u = n.elementContext, f = u === void 0 ? yr : u, h = n.altBoundary, g = h === void 0 ? !1 : h, p = n.padding, m = p === void 0 ? 0 : p, v = rf(typeof m != "number" ? m : of(m, to)), y = f === yr ? Hv : yr, _ = t.rects.popper, x = t.elements[g ? y : f], w = xx(Mn(x) ? x : x.contextElement || fn(t.elements.popper), l, d, s), C = Qn(t.elements.reference), O = af({
|
|
9378
9378
|
reference: C,
|
|
9379
9379
|
element: _,
|
|
9380
9380
|
placement: o
|
|
@@ -9450,7 +9450,7 @@ function _x(t) {
|
|
|
9450
9450
|
O.set(A, $);
|
|
9451
9451
|
}
|
|
9452
9452
|
if (N)
|
|
9453
|
-
for (var B = g ? 3 : 1,
|
|
9453
|
+
for (var B = g ? 3 : 1, W = function(q) {
|
|
9454
9454
|
var X = x.find(function(ce) {
|
|
9455
9455
|
var Z = O.get(ce);
|
|
9456
9456
|
if (Z)
|
|
@@ -9461,7 +9461,7 @@ function _x(t) {
|
|
|
9461
9461
|
if (X)
|
|
9462
9462
|
return T = X, "break";
|
|
9463
9463
|
}, V = B; V > 0; V--) {
|
|
9464
|
-
var U =
|
|
9464
|
+
var U = W(V);
|
|
9465
9465
|
if (U === "break") break;
|
|
9466
9466
|
}
|
|
9467
9467
|
e.placement !== T && (e.modifiersData[r]._skip = !0, e.placement = T, e.reset = !0);
|
|
@@ -9579,10 +9579,10 @@ function Ax(t) {
|
|
|
9579
9579
|
};
|
|
9580
9580
|
if (C) {
|
|
9581
9581
|
if (i) {
|
|
9582
|
-
var P, E = x === "y" ? tt : nt, R = x === "y" ? gt : pt, D = x === "y" ? "height" : "width", L = C[x], F = L + m[E], $ = L - m[R], B = h ? -N[D] / 2 : 0,
|
|
9582
|
+
var P, E = x === "y" ? tt : nt, R = x === "y" ? gt : pt, D = x === "y" ? "height" : "width", L = C[x], F = L + m[E], $ = L - m[R], B = h ? -N[D] / 2 : 0, W = y === Zn ? O[D] : N[D], V = y === Zn ? -N[D] : -O[D], U = e.elements.arrow, K = h && U ? ga(U) : {
|
|
9583
9583
|
width: 0,
|
|
9584
9584
|
height: 0
|
|
9585
|
-
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : nf(), X = q[E], ce = q[R], Z = Ar(0, O[D], K[D]), re = _ ? O[D] / 2 - B - Z - X - S.mainAxis :
|
|
9585
|
+
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : nf(), X = q[E], ce = q[R], Z = Ar(0, O[D], K[D]), re = _ ? O[D] / 2 - B - Z - X - S.mainAxis : W - Z - X - S.mainAxis, Ie = _ ? -O[D] / 2 + B + Z + ce + S.mainAxis : V + Z + ce + S.mainAxis, Be = e.elements.arrow && no(e.elements.arrow), Q = Be ? x === "y" ? Be.clientTop || 0 : Be.clientLeft || 0 : 0, Se = (P = A == null ? void 0 : A[x]) != null ? P : 0, se = L + re - Se - Q, ne = L + Ie - Se, fe = Ar(h ? li(F, se) : F, L, h ? Sn($, ne) : $);
|
|
9586
9586
|
C[x] = fe, M[x] = fe - L;
|
|
9587
9587
|
}
|
|
9588
9588
|
if (a) {
|
|
@@ -9673,8 +9673,8 @@ function Qt(t) {
|
|
|
9673
9673
|
return o.replace(/%s/, i);
|
|
9674
9674
|
}, t);
|
|
9675
9675
|
}
|
|
9676
|
-
var bn = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
9677
|
-
function
|
|
9676
|
+
var bn = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Hx = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', td = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
9677
|
+
function Wx(t) {
|
|
9678
9678
|
t.forEach(function(e) {
|
|
9679
9679
|
[].concat(Object.keys(e), td).filter(function(n, r, o) {
|
|
9680
9680
|
return o.indexOf(n) === r;
|
|
@@ -9712,7 +9712,7 @@ function Hx(t) {
|
|
|
9712
9712
|
e.requires && e.requires.forEach(function(r) {
|
|
9713
9713
|
t.find(function(o) {
|
|
9714
9714
|
return o.name === r;
|
|
9715
|
-
}) == null && console.error(Qt(
|
|
9715
|
+
}) == null && console.error(Qt(Hx, String(e.name), r, r));
|
|
9716
9716
|
});
|
|
9717
9717
|
});
|
|
9718
9718
|
});
|
|
@@ -9781,7 +9781,7 @@ function Kx(t) {
|
|
|
9781
9781
|
var M = A.name;
|
|
9782
9782
|
return M;
|
|
9783
9783
|
});
|
|
9784
|
-
if (
|
|
9784
|
+
if (Wx(x), wt(d.options.placement) === Mi) {
|
|
9785
9785
|
var w = d.orderedModifiers.find(function(A) {
|
|
9786
9786
|
var M = A.name;
|
|
9787
9787
|
return M === "flip";
|
|
@@ -9874,8 +9874,8 @@ function Kx(t) {
|
|
|
9874
9874
|
var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
9875
9875
|
defaultModifiers: qx
|
|
9876
9876
|
}), Xx = function(t) {
|
|
9877
|
-
var e = t.level, n = t.buttonRef, r = t.contentRef, o =
|
|
9878
|
-
return
|
|
9877
|
+
var e = t.level, n = t.buttonRef, r = t.contentRef, o = H.useContext(Ri), i = o.collapsed, s = o.toggled, a = o.transitionDuration, l = H.useRef();
|
|
9878
|
+
return H.useEffect(function() {
|
|
9879
9879
|
return e === 0 && i && r.current && n.current && (l.current = Gx(n.current, r.current, {
|
|
9880
9880
|
placement: "right",
|
|
9881
9881
|
strategy: "fixed",
|
|
@@ -9891,7 +9891,7 @@ var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
|
9891
9891
|
var c;
|
|
9892
9892
|
return (c = l.current) === null || c === void 0 ? void 0 : c.destroy();
|
|
9893
9893
|
};
|
|
9894
|
-
}, [e, i, r, n]),
|
|
9894
|
+
}, [e, i, r, n]), H.useEffect(function() {
|
|
9895
9895
|
if (r.current && n.current) {
|
|
9896
9896
|
var c = new ResizeObserver(function() {
|
|
9897
9897
|
var d;
|
|
@@ -9938,12 +9938,12 @@ var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
|
9938
9938
|
var n = t.className, r = t.component, o = t.children, i = Rn(t, ["className", "component", "children"]);
|
|
9939
9939
|
if (r) {
|
|
9940
9940
|
if (typeof r == "string")
|
|
9941
|
-
return
|
|
9941
|
+
return H.createElement(r, lt(lt({ className: Pe(n) }, i), { ref: e }), o);
|
|
9942
9942
|
var s = r.props, a = s.className, l = Rn(s, ["className"]);
|
|
9943
|
-
return
|
|
9943
|
+
return H.cloneElement(r, lt(lt(lt({ className: Pe(n, a) }, i), l), { ref: e }), o);
|
|
9944
9944
|
} else
|
|
9945
|
-
return
|
|
9946
|
-
}, cf =
|
|
9945
|
+
return H.createElement("a", lt({ ref: e, className: Pe(n) }, i), o);
|
|
9946
|
+
}, cf = H.forwardRef(Zx), Jx = ze.li(id || (id = Ge([`
|
|
9947
9947
|
position: relative;
|
|
9948
9948
|
width: 100%;
|
|
9949
9949
|
|
|
@@ -9988,11 +9988,11 @@ var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
|
9988
9988
|
var e = t.buttonStyles;
|
|
9989
9989
|
return e;
|
|
9990
9990
|
}), Qx = function(t, e) {
|
|
9991
|
-
var n, r = t.children, o = t.className, i = t.label, s = t.icon, a = 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, p = g === void 0 ? !1 : g, m = t.rootStyles, v = t.component, y = t.onOpenChange, _ = t.onClick, x = t.onKeyUp, w = Rn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), C =
|
|
9991
|
+
var n, r = t.children, o = t.className, i = t.label, s = t.icon, a = 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, p = g === void 0 ? !1 : g, m = t.rootStyles, v = t.component, y = t.onOpenChange, _ = t.onClick, x = t.onKeyUp, w = Rn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), C = H.useContext(ai), O = H.useContext(Ri), N = O.collapsed, T = O.rtl, S = O.transitionDuration, A = fa(), M = A.renderExpandIcon, P = A.closeOnClick, E = A.menuItemStyles, R = A.transitionDuration, D = H.useState(!!u), L = D[0], F = D[1], $ = H.useState(!1), B = $[0], W = $[1], V = H.useState(!1), U = V[0], K = V[1], q = H.useRef(null), X = H.useRef(null), ce = H.useRef(), Z = Xx({
|
|
9992
9992
|
level: C,
|
|
9993
9993
|
buttonRef: q,
|
|
9994
9994
|
contentRef: X
|
|
9995
|
-
}).popperInstance, re =
|
|
9995
|
+
}).popperInstance, re = H.useCallback(function() {
|
|
9996
9996
|
var fe, ee = X.current;
|
|
9997
9997
|
if (ee) {
|
|
9998
9998
|
var Y = (fe = ee == null ? void 0 : ee.querySelector(".".concat(le.subMenuContent, " > ul"))) === null || fe === void 0 ? void 0 : fe.clientHeight;
|
|
@@ -10009,7 +10009,7 @@ var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
|
10009
10009
|
}, Be = function() {
|
|
10010
10010
|
C === 0 && N || (typeof d > "u" ? (clearTimeout(Number(ce.current)), L ? Ie() : re(), y == null || y(!L), F(!L)) : y == null || y(!d));
|
|
10011
10011
|
};
|
|
10012
|
-
|
|
10012
|
+
H.useEffect(function() {
|
|
10013
10013
|
!(C === 0 && N) && typeof d < "u" && U && (clearTimeout(Number(ce.current)), d ? re() : Ie());
|
|
10014
10014
|
}, [N, re, i, C, y, d]);
|
|
10015
10015
|
var Q = function(fe) {
|
|
@@ -10041,53 +10041,53 @@ var qx = [hx, Mx, ux, ex, Nx, Cx, Dx, ax, Ex], Gx = /* @__PURE__ */ Kx({
|
|
|
10041
10041
|
}
|
|
10042
10042
|
}
|
|
10043
10043
|
};
|
|
10044
|
-
|
|
10044
|
+
H.useEffect(function() {
|
|
10045
10045
|
setTimeout(function() {
|
|
10046
10046
|
return Z == null ? void 0 : Z.update();
|
|
10047
|
-
}, S), N && C === 0 &&
|
|
10048
|
-
}, [N, C, T, S, Z]),
|
|
10047
|
+
}, S), N && C === 0 && W(!1);
|
|
10048
|
+
}, [N, C, T, S, Z]), H.useEffect(function() {
|
|
10049
10049
|
var fe = function(oe) {
|
|
10050
10050
|
var _e, Le, Re;
|
|
10051
|
-
!B && (!((_e = q.current) === null || _e === void 0) && _e.contains(oe)) ?
|
|
10051
|
+
!B && (!((_e = q.current) === null || _e === void 0) && _e.contains(oe)) ? W(!0) : (P && !(!((Le = oe.closest(".".concat(le.menuItemRoot))) === null || Le === void 0) && Le.classList.contains(le.subMenuRoot)) || !(!((Re = X.current) === null || Re === void 0) && Re.contains(oe)) && B) && W(!1);
|
|
10052
10052
|
}, ee = function(oe) {
|
|
10053
10053
|
fe(oe.target);
|
|
10054
10054
|
}, Y = function(oe) {
|
|
10055
|
-
oe.key === "Enter" ? fe(oe.target) : oe.key === "Escape" &&
|
|
10055
|
+
oe.key === "Enter" ? fe(oe.target) : oe.key === "Escape" && W(!1);
|
|
10056
10056
|
}, Ee = function() {
|
|
10057
10057
|
document.removeEventListener("click", ee), document.removeEventListener("keyup", Y);
|
|
10058
10058
|
};
|
|
10059
10059
|
return Ee(), N && C === 0 && (document.addEventListener("click", ee, !1), document.addEventListener("keyup", Y, !1)), function() {
|
|
10060
10060
|
Ee();
|
|
10061
10061
|
};
|
|
10062
|
-
}, [N, C, P, B]),
|
|
10062
|
+
}, [N, C, P, B]), H.useEffect(function() {
|
|
10063
10063
|
K(!0);
|
|
10064
10064
|
}, []);
|
|
10065
10065
|
var ne = (n = {}, n[le.active] = h, n[le.disabled] = p, n[le.open] = d ?? L, n);
|
|
10066
|
-
return
|
|
10066
|
+
return H.createElement(
|
|
10067
10067
|
Jx,
|
|
10068
10068
|
{ ref: e, className: Pe(le.menuItemRoot, le.subMenuRoot, ne, o), menuItemStyles: se("root"), level: C, collapsed: N, rtl: T, disabled: p, active: h, buttonStyles: se("button"), rootStyles: m },
|
|
10069
|
-
|
|
10069
|
+
H.createElement(
|
|
10070
10070
|
cf,
|
|
10071
10071
|
lt({ "data-testid": "".concat(le.button, "-test-id"), ref: q, title: a, className: Pe(le.button, ne), onClick: Q, onKeyUp: Se, component: v, tabIndex: 0 }, w),
|
|
10072
|
-
s &&
|
|
10073
|
-
l &&
|
|
10074
|
-
|
|
10075
|
-
c &&
|
|
10076
|
-
|
|
10072
|
+
s && H.createElement(Gu, { rtl: T, className: Pe(le.icon, ne), rootStyles: se("icon") }, s),
|
|
10073
|
+
l && H.createElement(Xu, { collapsed: N, transitionDuration: S, firstLevel: C === 0, className: Pe(le.prefix, ne), rtl: T, rootStyles: se("prefix") }, l),
|
|
10074
|
+
H.createElement(qu, { className: Pe(le.label, ne), rootStyles: se("label") }, i),
|
|
10075
|
+
c && H.createElement(Zu, { collapsed: N, transitionDuration: S, firstLevel: C === 0, className: Pe(le.suffix, ne), rootStyles: se("suffix") }, c),
|
|
10076
|
+
H.createElement(zv, { rtl: T, className: Pe(le.SubMenuExpandIcon, ne), collapsed: N, level: C, rootStyles: se("SubMenuExpandIcon") }, M ? M({
|
|
10077
10077
|
level: C,
|
|
10078
10078
|
disabled: p,
|
|
10079
10079
|
active: h,
|
|
10080
10080
|
open: d ?? L
|
|
10081
|
-
}) : N && C === 0 ?
|
|
10081
|
+
}) : N && C === 0 ? H.createElement($v, null) : H.createElement(Bv, { rtl: T, open: d ?? L }))
|
|
10082
10082
|
),
|
|
10083
|
-
|
|
10083
|
+
H.createElement(
|
|
10084
10084
|
Fv,
|
|
10085
10085
|
{ ref: X, openWhenCollapsed: B, open: d ?? L, firstLevel: C === 0, collapsed: N, defaultOpen: d && !U || u, className: Pe(le.subMenuContent, ne), rootStyles: se("subMenuContent") },
|
|
10086
|
-
|
|
10086
|
+
H.createElement(ai.Provider, { value: C + 1 }, r)
|
|
10087
10087
|
)
|
|
10088
10088
|
);
|
|
10089
10089
|
};
|
|
10090
|
-
|
|
10090
|
+
H.forwardRef(Qx);
|
|
10091
10091
|
var id, ew = ze.li(sd || (sd = Ge([`
|
|
10092
10092
|
width: 100%;
|
|
10093
10093
|
position: relative;
|
|
@@ -10133,7 +10133,7 @@ var id, ew = ze.li(sd || (sd = Ge([`
|
|
|
10133
10133
|
var e = t.buttonStyles;
|
|
10134
10134
|
return e;
|
|
10135
10135
|
}), tw = function(t, e) {
|
|
10136
|
-
var n, r = t.children, o = t.icon, i = t.className, s = t.prefix, a = 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 = Rn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), p =
|
|
10136
|
+
var n, r = t.children, o = t.icon, i = t.className, s = t.prefix, a = 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 = Rn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), p = H.useContext(ai), m = H.useContext(Ri), v = m.collapsed, y = m.rtl, _ = m.transitionDuration, x = fa().menuItemStyles, w = function(O) {
|
|
10137
10137
|
if (x) {
|
|
10138
10138
|
var N = { level: p, disabled: u, active: c, isSubmenu: !1 }, T = x.root, S = x.button, A = x.label, M = x.icon, P = x.prefix, E = x.suffix;
|
|
10139
10139
|
switch (O) {
|
|
@@ -10154,19 +10154,19 @@ var id, ew = ze.li(sd || (sd = Ge([`
|
|
|
10154
10154
|
}
|
|
10155
10155
|
}
|
|
10156
10156
|
}, C = (n = {}, n[le.active] = c, n[le.disabled] = u, n);
|
|
10157
|
-
return
|
|
10157
|
+
return H.createElement(
|
|
10158
10158
|
ew,
|
|
10159
10159
|
{ ref: e, className: Pe(le.menuItemRoot, C, i), menuItemStyles: w("root"), level: p, collapsed: v, rtl: y, disabled: u, active: c, buttonStyles: w("button"), rootStyles: h },
|
|
10160
|
-
|
|
10160
|
+
H.createElement(
|
|
10161
10161
|
cf,
|
|
10162
10162
|
lt({ className: Pe(le.button, C), "data-testid": "".concat(le.button, "-test-id"), component: f, tabIndex: 0 }, g),
|
|
10163
|
-
o &&
|
|
10164
|
-
s &&
|
|
10165
|
-
|
|
10166
|
-
a &&
|
|
10163
|
+
o && H.createElement(Gu, { rtl: y, className: Pe(le.icon, C), rootStyles: w("icon") }, o),
|
|
10164
|
+
s && H.createElement(Xu, { collapsed: v, transitionDuration: _, firstLevel: p === 0, className: Pe(le.prefix, C), rtl: y, rootStyles: w("prefix") }, s),
|
|
10165
|
+
H.createElement(qu, { className: Pe(le.label, C), rootStyles: w("label") }, r),
|
|
10166
|
+
a && H.createElement(Zu, { collapsed: v, transitionDuration: _, firstLevel: p === 0, className: Pe(le.suffix, C), rootStyles: w("suffix") }, a)
|
|
10167
10167
|
)
|
|
10168
10168
|
);
|
|
10169
|
-
}, Bn =
|
|
10169
|
+
}, Bn = H.forwardRef(tw), sd;
|
|
10170
10170
|
const nw = "card-module__cardFormat__LNrgl", rw = {
|
|
10171
10171
|
cardFormat: nw
|
|
10172
10172
|
}, As = ue(
|
|
@@ -10337,7 +10337,7 @@ function bw(t) {
|
|
|
10337
10337
|
*
|
|
10338
10338
|
* @license MIT
|
|
10339
10339
|
*/
|
|
10340
|
-
function
|
|
10340
|
+
function We(t, e) {
|
|
10341
10341
|
if (t === !1 || t === null || typeof t > "u")
|
|
10342
10342
|
throw new Error(e);
|
|
10343
10343
|
}
|
|
@@ -10395,12 +10395,12 @@ function ff(t, e = [], n = [], r = "") {
|
|
|
10395
10395
|
childrenIndex: s,
|
|
10396
10396
|
route: i
|
|
10397
10397
|
};
|
|
10398
|
-
l.relativePath.startsWith("/") && (
|
|
10398
|
+
l.relativePath.startsWith("/") && (We(
|
|
10399
10399
|
l.relativePath.startsWith(r),
|
|
10400
10400
|
`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
10401
10401
|
), l.relativePath = l.relativePath.slice(r.length));
|
|
10402
10402
|
let c = Vt([r, l.relativePath]), d = n.concat(l);
|
|
10403
|
-
i.children && i.children.length > 0 && (
|
|
10403
|
+
i.children && i.children.length > 0 && (We(
|
|
10404
10404
|
// Our types know better, but runtime JS may not!
|
|
10405
10405
|
// @ts-expect-error
|
|
10406
10406
|
i.index !== !0,
|
|
@@ -10582,13 +10582,13 @@ function gf(t) {
|
|
|
10582
10582
|
}
|
|
10583
10583
|
function pf(t, e, n, r = !1) {
|
|
10584
10584
|
let o;
|
|
10585
|
-
typeof t == "string" ? o = xa(t) : (o = { ...t },
|
|
10585
|
+
typeof t == "string" ? o = xa(t) : (o = { ...t }, We(
|
|
10586
10586
|
!o.pathname || !o.pathname.includes("?"),
|
|
10587
10587
|
is("?", "pathname", "search", o)
|
|
10588
|
-
),
|
|
10588
|
+
), We(
|
|
10589
10589
|
!o.pathname || !o.pathname.includes("#"),
|
|
10590
10590
|
is("#", "pathname", "hash", o)
|
|
10591
|
-
),
|
|
10591
|
+
), We(
|
|
10592
10592
|
!o.search || !o.search.includes("#"),
|
|
10593
10593
|
is("#", "search", "hash", o)
|
|
10594
10594
|
));
|
|
@@ -10657,7 +10657,7 @@ Zt.displayName = "Route";
|
|
|
10657
10657
|
var ka = k.createContext(null);
|
|
10658
10658
|
ka.displayName = "RouteError";
|
|
10659
10659
|
function jw(t, { relative: e } = {}) {
|
|
10660
|
-
|
|
10660
|
+
We(
|
|
10661
10661
|
Di(),
|
|
10662
10662
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
10663
10663
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -10670,7 +10670,7 @@ function Di() {
|
|
|
10670
10670
|
return k.useContext(wa) != null;
|
|
10671
10671
|
}
|
|
10672
10672
|
function In() {
|
|
10673
|
-
return
|
|
10673
|
+
return We(
|
|
10674
10674
|
Di(),
|
|
10675
10675
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
10676
10676
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -10681,12 +10681,12 @@ var yf = "You should call navigate() in a React.useEffect(), not when your compo
|
|
|
10681
10681
|
function vf(t) {
|
|
10682
10682
|
k.useContext(Xt).static || k.useLayoutEffect(t);
|
|
10683
10683
|
}
|
|
10684
|
-
function
|
|
10684
|
+
function Hw() {
|
|
10685
10685
|
let { isDataRoute: t } = k.useContext(Zt);
|
|
10686
|
-
return t ? t1() :
|
|
10686
|
+
return t ? t1() : Ww();
|
|
10687
10687
|
}
|
|
10688
|
-
function
|
|
10689
|
-
|
|
10688
|
+
function Ww() {
|
|
10689
|
+
We(
|
|
10690
10690
|
Di(),
|
|
10691
10691
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
10692
10692
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -10737,7 +10737,7 @@ function ro(t, { relative: e } = {}) {
|
|
|
10737
10737
|
);
|
|
10738
10738
|
}
|
|
10739
10739
|
function Vw(t, e, n, r) {
|
|
10740
|
-
|
|
10740
|
+
We(
|
|
10741
10741
|
Di(),
|
|
10742
10742
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
10743
10743
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -10855,7 +10855,7 @@ function Gw(t, e = [], n = null, r = null) {
|
|
|
10855
10855
|
let l = o.findIndex(
|
|
10856
10856
|
(c) => c.route.id && (i == null ? void 0 : i[c.route.id]) !== void 0
|
|
10857
10857
|
);
|
|
10858
|
-
|
|
10858
|
+
We(
|
|
10859
10859
|
l >= 0,
|
|
10860
10860
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
10861
10861
|
i
|
|
@@ -10917,19 +10917,19 @@ function _a(t) {
|
|
|
10917
10917
|
}
|
|
10918
10918
|
function Xw(t) {
|
|
10919
10919
|
let e = k.useContext(sr);
|
|
10920
|
-
return
|
|
10920
|
+
return We(e, _a(t)), e;
|
|
10921
10921
|
}
|
|
10922
10922
|
function Zw(t) {
|
|
10923
10923
|
let e = k.useContext(Ai);
|
|
10924
|
-
return
|
|
10924
|
+
return We(e, _a(t)), e;
|
|
10925
10925
|
}
|
|
10926
10926
|
function Jw(t) {
|
|
10927
10927
|
let e = k.useContext(Zt);
|
|
10928
|
-
return
|
|
10928
|
+
return We(e, _a(t)), e;
|
|
10929
10929
|
}
|
|
10930
10930
|
function Ca(t) {
|
|
10931
10931
|
let e = Jw(t), n = e.matches[e.matches.length - 1];
|
|
10932
|
-
return
|
|
10932
|
+
return We(
|
|
10933
10933
|
n.route.id,
|
|
10934
10934
|
`${t} can only be used on routes that contain a unique "id"`
|
|
10935
10935
|
), n.route.id;
|
|
@@ -11328,7 +11328,7 @@ try {
|
|
|
11328
11328
|
_f && (window.__reactRouterVersion = "7.4.0");
|
|
11329
11329
|
} catch {
|
|
11330
11330
|
}
|
|
11331
|
-
var Cf = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
|
|
11331
|
+
var Cf = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Hn = k.forwardRef(
|
|
11332
11332
|
function({
|
|
11333
11333
|
onClick: e,
|
|
11334
11334
|
discover: n = "render",
|
|
@@ -11386,7 +11386,7 @@ var Cf = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Wn = k.forwardRef(
|
|
|
11386
11386
|
return _ && !p ? /* @__PURE__ */ k.createElement(k.Fragment, null, N, /* @__PURE__ */ k.createElement(w1, { page: y })) : N;
|
|
11387
11387
|
}
|
|
11388
11388
|
);
|
|
11389
|
-
|
|
11389
|
+
Hn.displayName = "Link";
|
|
11390
11390
|
var S1 = k.forwardRef(
|
|
11391
11391
|
function({
|
|
11392
11392
|
"aria-current": e = "page",
|
|
@@ -11417,7 +11417,7 @@ var S1 = k.forwardRef(
|
|
|
11417
11417
|
].filter(Boolean).join(" ");
|
|
11418
11418
|
let S = typeof i == "function" ? i(O) : i;
|
|
11419
11419
|
return /* @__PURE__ */ k.createElement(
|
|
11420
|
-
|
|
11420
|
+
Hn,
|
|
11421
11421
|
{
|
|
11422
11422
|
...c,
|
|
11423
11423
|
"aria-current": N,
|
|
@@ -11482,7 +11482,7 @@ function O1(t) {
|
|
|
11482
11482
|
}
|
|
11483
11483
|
function Sf(t) {
|
|
11484
11484
|
let e = k.useContext(sr);
|
|
11485
|
-
return
|
|
11485
|
+
return We(e, O1(t)), e;
|
|
11486
11486
|
}
|
|
11487
11487
|
function T1(t, {
|
|
11488
11488
|
target: e,
|
|
@@ -11492,7 +11492,7 @@ function T1(t, {
|
|
|
11492
11492
|
relative: i,
|
|
11493
11493
|
viewTransition: s
|
|
11494
11494
|
} = {}) {
|
|
11495
|
-
let a =
|
|
11495
|
+
let a = Hw(), l = In(), c = ro(t, { relative: i });
|
|
11496
11496
|
return k.useCallback(
|
|
11497
11497
|
(d) => {
|
|
11498
11498
|
if (a1(d, e)) {
|
|
@@ -11562,7 +11562,7 @@ function M1() {
|
|
|
11562
11562
|
}
|
|
11563
11563
|
function P1(t, { relative: e } = {}) {
|
|
11564
11564
|
let { basename: n } = k.useContext(Xt), r = k.useContext(Zt);
|
|
11565
|
-
|
|
11565
|
+
We(r, "useFormAction must be used inside a RouteContext");
|
|
11566
11566
|
let [o] = r.matches.slice(-1), i = { ...ro(t || ".", { relative: e }) }, s = In();
|
|
11567
11567
|
if (t == null) {
|
|
11568
11568
|
i.search = s.search;
|
|
@@ -11577,7 +11577,7 @@ function P1(t, { relative: e } = {}) {
|
|
|
11577
11577
|
}
|
|
11578
11578
|
function A1(t, e = {}) {
|
|
11579
11579
|
let n = k.useContext(bf);
|
|
11580
|
-
|
|
11580
|
+
We(
|
|
11581
11581
|
n != null,
|
|
11582
11582
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
11583
11583
|
);
|
|
@@ -11591,7 +11591,7 @@ function A1(t, e = {}) {
|
|
|
11591
11591
|
return ci(o.pathname, s) != null || ci(o.pathname, i) != null;
|
|
11592
11592
|
}
|
|
11593
11593
|
new TextEncoder();
|
|
11594
|
-
const
|
|
11594
|
+
const hC = () => {
|
|
11595
11595
|
const [t, e] = xe(!0), [n, r] = xe(null), o = () => {
|
|
11596
11596
|
n || e(!1);
|
|
11597
11597
|
}, i = () => {
|
|
@@ -11620,7 +11620,7 @@ const uC = () => {
|
|
|
11620
11620
|
}
|
|
11621
11621
|
},
|
|
11622
11622
|
children: [
|
|
11623
|
-
/* @__PURE__ */ b(
|
|
11623
|
+
/* @__PURE__ */ b(Hn, { to: "/dashboard", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
|
|
11624
11624
|
Tn,
|
|
11625
11625
|
{
|
|
11626
11626
|
classIm: "mx-auto",
|
|
@@ -11654,7 +11654,7 @@ const uC = () => {
|
|
|
11654
11654
|
]
|
|
11655
11655
|
}
|
|
11656
11656
|
),
|
|
11657
|
-
/* @__PURE__ */ b(
|
|
11657
|
+
/* @__PURE__ */ b(Hn, { to: "https://dsp.mathilde-ads.com/login", children: /* @__PURE__ */ z(
|
|
11658
11658
|
Bn,
|
|
11659
11659
|
{
|
|
11660
11660
|
icon: /* @__PURE__ */ b(ow, { className: "text-xl" }),
|
|
@@ -11745,7 +11745,7 @@ const uC = () => {
|
|
|
11745
11745
|
]
|
|
11746
11746
|
}
|
|
11747
11747
|
),
|
|
11748
|
-
/* @__PURE__ */ b(
|
|
11748
|
+
/* @__PURE__ */ b(Hn, { to: "/settings", children: /* @__PURE__ */ z(
|
|
11749
11749
|
Bn,
|
|
11750
11750
|
{
|
|
11751
11751
|
icon: /* @__PURE__ */ b(aw, { className: "text-xl" }),
|
|
@@ -11796,7 +11796,7 @@ const uC = () => {
|
|
|
11796
11796
|
description: "Crea y administra campañas a los usuarios que ingresan a tus canales."
|
|
11797
11797
|
}
|
|
11798
11798
|
) }),
|
|
11799
|
-
/* @__PURE__ */ b("div", { className: "w-3/6 p-2", children: /* @__PURE__ */ b(
|
|
11799
|
+
/* @__PURE__ */ b("div", { className: "w-3/6 p-2", children: /* @__PURE__ */ b(Hn, { to: "/thirdPartyCampaign", children: /* @__PURE__ */ b(
|
|
11800
11800
|
As,
|
|
11801
11801
|
{
|
|
11802
11802
|
image: { type: "image", name: "medios-pagos" },
|
|
@@ -11883,11 +11883,11 @@ function Rf(t) {
|
|
|
11883
11883
|
function j1(t) {
|
|
11884
11884
|
return me({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 15l7-7 7 7" }, child: [] }] })(t);
|
|
11885
11885
|
}
|
|
11886
|
-
function
|
|
11886
|
+
function H1(t) {
|
|
11887
11887
|
return me({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" }, child: [] }] })(t);
|
|
11888
11888
|
}
|
|
11889
11889
|
const Oa = "-";
|
|
11890
|
-
function
|
|
11890
|
+
function W1(t) {
|
|
11891
11891
|
const e = Y1(t), {
|
|
11892
11892
|
conflictingClassGroups: n,
|
|
11893
11893
|
conflictingClassGroupModifiers: r
|
|
@@ -12047,7 +12047,7 @@ function Z1(t) {
|
|
|
12047
12047
|
return {
|
|
12048
12048
|
cache: q1(t.cacheSize),
|
|
12049
12049
|
splitModifiers: G1(t),
|
|
12050
|
-
...
|
|
12050
|
+
...W1(t)
|
|
12051
12051
|
};
|
|
12052
12052
|
}
|
|
12053
12053
|
const J1 = /\s+/;
|
|
@@ -12191,7 +12191,7 @@ function yk(t) {
|
|
|
12191
12191
|
return lk.test(t);
|
|
12192
12192
|
}
|
|
12193
12193
|
function vk() {
|
|
12194
|
-
const t = ye("colors"), e = ye("spacing"), n = ye("blur"), r = ye("brightness"), o = ye("borderColor"), i = ye("borderRadius"), s = ye("borderSpacing"), a = ye("borderWidth"), l = ye("contrast"), c = ye("grayscale"), d = ye("hueRotate"), u = ye("invert"), f = ye("gap"), h = ye("gradientColorStops"), g = ye("gradientColorStopPositions"), p = ye("inset"), m = ye("margin"), v = ye("opacity"), y = ye("padding"), _ = ye("saturate"), x = ye("scale"), w = ye("sepia"), C = ye("skew"), O = ye("space"), N = ye("translate"), T = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", J, e], M = () => [J, e], P = () => ["", Bt, en], E = () => ["auto", kn, J], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", J], B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"],
|
|
12194
|
+
const t = ye("colors"), e = ye("spacing"), n = ye("blur"), r = ye("brightness"), o = ye("borderColor"), i = ye("borderRadius"), s = ye("borderSpacing"), a = ye("borderWidth"), l = ye("contrast"), c = ye("grayscale"), d = ye("hueRotate"), u = ye("invert"), f = ye("gap"), h = ye("gradientColorStops"), g = ye("gradientColorStopPositions"), p = ye("inset"), m = ye("margin"), v = ye("opacity"), y = ye("padding"), _ = ye("saturate"), x = ye("scale"), w = ye("sepia"), C = ye("skew"), O = ye("space"), N = ye("translate"), T = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", J, e], M = () => [J, e], P = () => ["", Bt, en], E = () => ["auto", kn, J], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", J], B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [kn, To], V = () => [kn, J];
|
|
12195
12195
|
return {
|
|
12196
12196
|
cacheSize: 500,
|
|
12197
12197
|
separator: ":",
|
|
@@ -12199,12 +12199,12 @@ function vk() {
|
|
|
12199
12199
|
colors: [wr],
|
|
12200
12200
|
spacing: [Bt, en],
|
|
12201
12201
|
blur: ["none", "", tn, J],
|
|
12202
|
-
brightness:
|
|
12202
|
+
brightness: W(),
|
|
12203
12203
|
borderColor: [t],
|
|
12204
12204
|
borderRadius: ["none", "", "full", tn, J],
|
|
12205
12205
|
borderSpacing: M(),
|
|
12206
12206
|
borderWidth: P(),
|
|
12207
|
-
contrast:
|
|
12207
|
+
contrast: W(),
|
|
12208
12208
|
grayscale: $(),
|
|
12209
12209
|
hueRotate: V(),
|
|
12210
12210
|
invert: $(),
|
|
@@ -12213,10 +12213,10 @@ function vk() {
|
|
|
12213
12213
|
gradientColorStopPositions: [ck, en],
|
|
12214
12214
|
inset: A(),
|
|
12215
12215
|
margin: A(),
|
|
12216
|
-
opacity:
|
|
12216
|
+
opacity: W(),
|
|
12217
12217
|
padding: M(),
|
|
12218
|
-
saturate:
|
|
12219
|
-
scale:
|
|
12218
|
+
saturate: W(),
|
|
12219
|
+
scale: W(),
|
|
12220
12220
|
sepia: $(),
|
|
12221
12221
|
skew: V(),
|
|
12222
12222
|
space: M(),
|
|
@@ -14926,7 +14926,7 @@ const xk = {
|
|
|
14926
14926
|
icon: "mr-2 h-4 w-4 fill-current"
|
|
14927
14927
|
}
|
|
14928
14928
|
}
|
|
14929
|
-
},
|
|
14929
|
+
}, Hk = {
|
|
14930
14930
|
root: {
|
|
14931
14931
|
base: "fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",
|
|
14932
14932
|
show: {
|
|
@@ -14978,7 +14978,7 @@ const xk = {
|
|
|
14978
14978
|
base: "flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",
|
|
14979
14979
|
popup: "border-t"
|
|
14980
14980
|
}
|
|
14981
|
-
},
|
|
14981
|
+
}, Wk = {
|
|
14982
14982
|
root: {
|
|
14983
14983
|
base: "bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",
|
|
14984
14984
|
rounded: {
|
|
@@ -15547,8 +15547,8 @@ const xk = {
|
|
|
15547
15547
|
label: Bk,
|
|
15548
15548
|
listGroup: jk,
|
|
15549
15549
|
list: $k,
|
|
15550
|
-
modal:
|
|
15551
|
-
navbar:
|
|
15550
|
+
modal: Hk,
|
|
15551
|
+
navbar: Wk,
|
|
15552
15552
|
pagination: Vk,
|
|
15553
15553
|
popover: Yk,
|
|
15554
15554
|
progress: Uk,
|
|
@@ -15645,7 +15645,7 @@ const zf = ({
|
|
|
15645
15645
|
const [l, c] = xe(o ? -1 : 0), d = xi(
|
|
15646
15646
|
() => Un.map(
|
|
15647
15647
|
n,
|
|
15648
|
-
(f, h) =>
|
|
15648
|
+
(f, h) => Wo(f, {
|
|
15649
15649
|
alwaysOpen: t,
|
|
15650
15650
|
arrowIcon: e,
|
|
15651
15651
|
flush: r,
|
|
@@ -15674,12 +15674,12 @@ Object.assign(jf, {
|
|
|
15674
15674
|
Title: $f,
|
|
15675
15675
|
Content: zf
|
|
15676
15676
|
});
|
|
15677
|
-
const
|
|
15677
|
+
const Hf = ({ children: t, className: e, theme: n = {}, ...r }) => {
|
|
15678
15678
|
const o = j(G().avatar.group, n);
|
|
15679
15679
|
return /* @__PURE__ */ b("div", { "data-testid": "avatar-group-element", className: I(o.base, e), ...r, children: t });
|
|
15680
15680
|
};
|
|
15681
|
-
|
|
15682
|
-
const
|
|
15681
|
+
Hf.displayName = "Avatar.Group";
|
|
15682
|
+
const Wf = ({
|
|
15683
15683
|
className: t,
|
|
15684
15684
|
href: e,
|
|
15685
15685
|
theme: n = {},
|
|
@@ -15692,7 +15692,7 @@ const Hf = ({
|
|
|
15692
15692
|
r
|
|
15693
15693
|
] });
|
|
15694
15694
|
};
|
|
15695
|
-
|
|
15695
|
+
Wf.displayName = "Avatar.GroupCounter";
|
|
15696
15696
|
const Vf = ({
|
|
15697
15697
|
alt: t = "",
|
|
15698
15698
|
bordered: e = !1,
|
|
@@ -15765,8 +15765,8 @@ const Vf = ({
|
|
|
15765
15765
|
};
|
|
15766
15766
|
Vf.displayName = "Avatar";
|
|
15767
15767
|
Object.assign(Vf, {
|
|
15768
|
-
Group:
|
|
15769
|
-
Counter:
|
|
15768
|
+
Group: Hf,
|
|
15769
|
+
Counter: Wf
|
|
15770
15770
|
});
|
|
15771
15771
|
const Yf = ({
|
|
15772
15772
|
children: t,
|
|
@@ -15845,11 +15845,11 @@ const Ta = ue(
|
|
|
15845
15845
|
({ children: t, as: e, href: n, type: r = "button", ...o }, i) => Mt(e || (n ? "a" : "button"), { ref: i, href: n, type: r, ...o }, t)
|
|
15846
15846
|
);
|
|
15847
15847
|
Ta.displayName = "ButtonBaseComponent";
|
|
15848
|
-
const Kf = (t, e, n) => Un.map(t, (r, o) => ip(r) ? r.props.children ?
|
|
15848
|
+
const Kf = (t, e, n) => Un.map(t, (r, o) => ip(r) ? r.props.children ? Wo(r, {
|
|
15849
15849
|
...r.props,
|
|
15850
15850
|
children: Kf(r.props.children, e, n),
|
|
15851
15851
|
positionInGroup: gd(o, Un.count(t))
|
|
15852
|
-
}) :
|
|
15852
|
+
}) : Wo(r, {
|
|
15853
15853
|
outline: e,
|
|
15854
15854
|
pill: n,
|
|
15855
15855
|
positionInGroup: gd(o, Un.count(t))
|
|
@@ -16088,7 +16088,7 @@ class y2 extends sp {
|
|
|
16088
16088
|
this.pressed && (this.processMove(n.clientX, n.clientY), n.preventDefault(), this.props.stopPropagation && n.stopPropagation());
|
|
16089
16089
|
}), Me(this, "onMouseUp", (n) => {
|
|
16090
16090
|
this.pressed && (this.started ? this.processEnd() : (this.internal = !1, this.pressed = !1, this.forceUpdate(), this.props.onClick && this.props.onClick(n)), n.preventDefault(), this.props.stopPropagation && n.stopPropagation());
|
|
16091
|
-
}), this.container =
|
|
16091
|
+
}), this.container = H.createRef(), this.onEndScroll = h2(this.onEndScroll, m2), this.scrolling = !1, this.started = !1, this.pressed = !1, this.internal = !1, this.getRef = this.getRef.bind(this);
|
|
16092
16092
|
}
|
|
16093
16093
|
componentDidMount() {
|
|
16094
16094
|
const { nativeMobileScroll: e } = this.props, n = this.container.current;
|
|
@@ -16296,7 +16296,7 @@ const io = (t, e, n) => {
|
|
|
16296
16296
|
}, _2 = (t, e) => {
|
|
16297
16297
|
const n = new Date(t);
|
|
16298
16298
|
return n.setMonth(n.getMonth() + e), n;
|
|
16299
|
-
},
|
|
16299
|
+
}, Wn = (t, e) => {
|
|
16300
16300
|
const n = new Date(t);
|
|
16301
16301
|
return n.setFullYear(n.getFullYear() + e), n;
|
|
16302
16302
|
}, Ir = (t, e, n) => {
|
|
@@ -16349,7 +16349,7 @@ const io = (t, e, n) => {
|
|
|
16349
16349
|
}, E2 = ({ theme: t = {} }) => {
|
|
16350
16350
|
const { theme: e, selectedDate: n, viewDate: r, setViewDate: o, setView: i } = Li(), s = j(e.views.decades, t);
|
|
16351
16351
|
return /* @__PURE__ */ b("div", { className: s.items.base, children: [...Array(12)].map((a, l) => {
|
|
16352
|
-
const d = Vn(r, 100) - 10 + l * 10, u = new Date(d, 0, 1), f =
|
|
16352
|
+
const d = Vn(r, 100) - 10 + l * 10, u = new Date(d, 0, 1), f = Wn(u, 9), h = C2(r, d), g = !io(r, u, f);
|
|
16353
16353
|
return /* @__PURE__ */ b(
|
|
16354
16354
|
"button",
|
|
16355
16355
|
{
|
|
@@ -16361,7 +16361,7 @@ const io = (t, e, n) => {
|
|
|
16361
16361
|
g && s.items.item.disabled
|
|
16362
16362
|
),
|
|
16363
16363
|
onClick: () => {
|
|
16364
|
-
g || (o(
|
|
16364
|
+
g || (o(Wn(r, d - n.getFullYear())), i(we.Years));
|
|
16365
16365
|
},
|
|
16366
16366
|
children: d
|
|
16367
16367
|
},
|
|
@@ -16452,7 +16452,7 @@ const io = (t, e, n) => {
|
|
|
16452
16452
|
}, E = () => {
|
|
16453
16453
|
P(l, !0), l && S(l);
|
|
16454
16454
|
};
|
|
16455
|
-
|
|
16455
|
+
Wd(v, () => ({
|
|
16456
16456
|
focus() {
|
|
16457
16457
|
var $;
|
|
16458
16458
|
($ = A.current) == null || $.focus();
|
|
@@ -16495,25 +16495,25 @@ const io = (t, e, n) => {
|
|
|
16495
16495
|
default:
|
|
16496
16496
|
return Ir(u, T, { month: "long", year: "numeric" });
|
|
16497
16497
|
}
|
|
16498
|
-
}, F = ($, B,
|
|
16498
|
+
}, F = ($, B, W) => {
|
|
16499
16499
|
switch ($) {
|
|
16500
16500
|
case we.Days:
|
|
16501
|
-
return new Date(_2(B,
|
|
16501
|
+
return new Date(_2(B, W));
|
|
16502
16502
|
case we.Months:
|
|
16503
|
-
return new Date(
|
|
16503
|
+
return new Date(Wn(B, W));
|
|
16504
16504
|
case we.Years:
|
|
16505
|
-
return new Date(
|
|
16505
|
+
return new Date(Wn(B, W * 10));
|
|
16506
16506
|
case we.Decades:
|
|
16507
|
-
return new Date(
|
|
16507
|
+
return new Date(Wn(B, W * 100));
|
|
16508
16508
|
default:
|
|
16509
|
-
return new Date(
|
|
16509
|
+
return new Date(Wn(B, W * 10));
|
|
16510
16510
|
}
|
|
16511
16511
|
};
|
|
16512
16512
|
return Je(() => {
|
|
16513
16513
|
const $ = (B) => {
|
|
16514
16514
|
var U, K;
|
|
16515
|
-
const
|
|
16516
|
-
!
|
|
16515
|
+
const W = (U = M == null ? void 0 : M.current) == null ? void 0 : U.contains(B.target), V = (K = A == null ? void 0 : A.current) == null ? void 0 : K.contains(B.target);
|
|
16516
|
+
!W && !V && x(!1);
|
|
16517
16517
|
};
|
|
16518
16518
|
return document.addEventListener("mousedown", $), () => {
|
|
16519
16519
|
document.removeEventListener("mousedown", $);
|
|
@@ -16889,7 +16889,7 @@ function j2(t, e, n) {
|
|
|
16889
16889
|
return [];
|
|
16890
16890
|
}
|
|
16891
16891
|
}
|
|
16892
|
-
function
|
|
16892
|
+
function H2(t, e, n, r) {
|
|
16893
16893
|
const o = Dt(t);
|
|
16894
16894
|
let i = j2(Gt(t), n === "start", r);
|
|
16895
16895
|
return o && (i = i.map((s) => s + "-" + o), e && (i = i.concat(i.map(fi)))), i;
|
|
@@ -16897,7 +16897,7 @@ function W2(t, e, n, r) {
|
|
|
16897
16897
|
function hi(t) {
|
|
16898
16898
|
return t.replace(/left|right|bottom|top/g, (e) => z2[e]);
|
|
16899
16899
|
}
|
|
16900
|
-
function
|
|
16900
|
+
function W2(t) {
|
|
16901
16901
|
return {
|
|
16902
16902
|
top: 0,
|
|
16903
16903
|
right: 0,
|
|
@@ -16907,7 +16907,7 @@ function H2(t) {
|
|
|
16907
16907
|
};
|
|
16908
16908
|
}
|
|
16909
16909
|
function hh(t) {
|
|
16910
|
-
return typeof t != "number" ?
|
|
16910
|
+
return typeof t != "number" ? W2(t) : {
|
|
16911
16911
|
top: t,
|
|
16912
16912
|
right: t,
|
|
16913
16913
|
bottom: t,
|
|
@@ -17219,7 +17219,7 @@ const K2 = function(t) {
|
|
|
17219
17219
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
17220
17220
|
return {};
|
|
17221
17221
|
const v = Gt(o), y = Gt(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = f || (y || !p ? [hi(a)] : $2(a));
|
|
17222
|
-
!f && g !== "none" && x.push(...
|
|
17222
|
+
!f && g !== "none" && x.push(...H2(a, p, g, _));
|
|
17223
17223
|
const w = [a, ...x], C = await $a(e, m), O = [];
|
|
17224
17224
|
let N = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
17225
17225
|
if (d && O.push(C[v]), u) {
|
|
@@ -17430,7 +17430,7 @@ function Pn(t, e, n, r) {
|
|
|
17430
17430
|
y: c
|
|
17431
17431
|
});
|
|
17432
17432
|
}
|
|
17433
|
-
function
|
|
17433
|
+
function Ha(t, e) {
|
|
17434
17434
|
const n = $i(t).scrollLeft;
|
|
17435
17435
|
return e ? e.left + n : Pn(Ft(t)).left + n;
|
|
17436
17436
|
}
|
|
@@ -17438,7 +17438,7 @@ function mh(t, e, n) {
|
|
|
17438
17438
|
n === void 0 && (n = !1);
|
|
17439
17439
|
const r = t.getBoundingClientRect(), o = r.left + e.scrollLeft - (n ? 0 : (
|
|
17440
17440
|
// RTL <body> scrollbar.
|
|
17441
|
-
|
|
17441
|
+
Ha(t, r)
|
|
17442
17442
|
)), i = r.top + e.scrollTop;
|
|
17443
17443
|
return {
|
|
17444
17444
|
x: o,
|
|
@@ -17477,7 +17477,7 @@ function t5(t) {
|
|
|
17477
17477
|
}
|
|
17478
17478
|
function n5(t) {
|
|
17479
17479
|
const e = Ft(t), n = $i(t), r = t.ownerDocument.body, o = En(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = En(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
17480
|
-
let s = -n.scrollLeft +
|
|
17480
|
+
let s = -n.scrollLeft + Ha(t);
|
|
17481
17481
|
const a = -n.scrollTop;
|
|
17482
17482
|
return mt(r).direction === "rtl" && (s += En(e.clientWidth, r.clientWidth) - o), {
|
|
17483
17483
|
width: o,
|
|
@@ -17585,7 +17585,7 @@ function l5(t, e, n) {
|
|
|
17585
17585
|
if ((Ln(e) !== "body" || so(o)) && (a = $i(e)), r) {
|
|
17586
17586
|
const f = Pn(e, !0, i, e);
|
|
17587
17587
|
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
|
17588
|
-
} else o && (l.x =
|
|
17588
|
+
} else o && (l.x = Ha(o));
|
|
17589
17589
|
const c = o && !r && !i ? mh(o, a) : At(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
|
|
17590
17590
|
return {
|
|
17591
17591
|
x: d,
|
|
@@ -17748,7 +17748,7 @@ const h5 = X2, g5 = K2, p5 = Z2, m5 = q2, xd = Y2, b5 = (t, e, n) => {
|
|
|
17748
17748
|
platform: i
|
|
17749
17749
|
});
|
|
17750
17750
|
};
|
|
17751
|
-
var
|
|
17751
|
+
var Ho = typeof document < "u" ? Ws : Je;
|
|
17752
17752
|
function pi(t, e) {
|
|
17753
17753
|
if (t === e)
|
|
17754
17754
|
return !0;
|
|
@@ -17788,7 +17788,7 @@ function wd(t, e) {
|
|
|
17788
17788
|
}
|
|
17789
17789
|
function cs(t) {
|
|
17790
17790
|
const e = k.useRef(t);
|
|
17791
|
-
return
|
|
17791
|
+
return Ho(() => {
|
|
17792
17792
|
e.current = t;
|
|
17793
17793
|
}), e;
|
|
17794
17794
|
}
|
|
@@ -17841,16 +17841,16 @@ function y5(t) {
|
|
|
17841
17841
|
}));
|
|
17842
17842
|
});
|
|
17843
17843
|
}, [f, e, n, A, M]);
|
|
17844
|
-
|
|
17844
|
+
Ho(() => {
|
|
17845
17845
|
c === !1 && N.current.isPositioned && (N.current.isPositioned = !1, u((F) => ({
|
|
17846
17846
|
...F,
|
|
17847
17847
|
isPositioned: !1
|
|
17848
17848
|
})));
|
|
17849
17849
|
}, [c]);
|
|
17850
17850
|
const E = k.useRef(!1);
|
|
17851
|
-
|
|
17851
|
+
Ho(() => (E.current = !0, () => {
|
|
17852
17852
|
E.current = !1;
|
|
17853
|
-
}), []),
|
|
17853
|
+
}), []), Ho(() => {
|
|
17854
17854
|
if (x && (C.current = x), w && (O.current = w), x && w) {
|
|
17855
17855
|
if (S.current)
|
|
17856
17856
|
return S.current(x, w, P);
|
|
@@ -18086,7 +18086,7 @@ var S5 = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
18086
18086
|
}, j5 = function(e) {
|
|
18087
18087
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
18088
18088
|
return !!(isNaN(n) || n >= 0);
|
|
18089
|
-
},
|
|
18089
|
+
}, H5 = function t(e) {
|
|
18090
18090
|
var n = [], r = [];
|
|
18091
18091
|
return e.forEach(function(o, i) {
|
|
18092
18092
|
var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = N5(a, s), c = s ? t(o.candidates) : a;
|
|
@@ -18100,7 +18100,7 @@ var S5 = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
18100
18100
|
}), r.sort(R5).reduce(function(o, i) {
|
|
18101
18101
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
18102
18102
|
}, []).concat(n);
|
|
18103
|
-
},
|
|
18103
|
+
}, Hi = function(e, n) {
|
|
18104
18104
|
n = n || {};
|
|
18105
18105
|
var r;
|
|
18106
18106
|
return n.getShadowRoot ? r = T5([e], n.includeContainer, {
|
|
@@ -18108,8 +18108,8 @@ var S5 = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
18108
18108
|
flatten: !1,
|
|
18109
18109
|
getShadowRoot: n.getShadowRoot,
|
|
18110
18110
|
shadowRootFilter: j5
|
|
18111
|
-
}) : r = O5(e, n.includeContainer, $s.bind(null, n)),
|
|
18112
|
-
},
|
|
18111
|
+
}) : r = O5(e, n.includeContainer, $s.bind(null, n)), H5(r);
|
|
18112
|
+
}, W5 = function(e, n) {
|
|
18113
18113
|
if (n = n || {}, !e)
|
|
18114
18114
|
throw new Error("No node provided");
|
|
18115
18115
|
return nr.call(e, mi) === !1 ? !1 : $s(n, e);
|
|
@@ -18135,7 +18135,7 @@ function Rt(t) {
|
|
|
18135
18135
|
return e.current == null ? void 0 : e.current(...r);
|
|
18136
18136
|
}, []);
|
|
18137
18137
|
}
|
|
18138
|
-
const
|
|
18138
|
+
const Wa = "ArrowUp", ao = "ArrowDown", rr = "ArrowLeft", cr = "ArrowRight";
|
|
18139
18139
|
function No(t, e, n) {
|
|
18140
18140
|
return Math.floor(t / e) !== n;
|
|
18141
18141
|
}
|
|
@@ -18183,7 +18183,7 @@ function U5(t, e) {
|
|
|
18183
18183
|
prevIndex: c,
|
|
18184
18184
|
stopEvent: d = !1
|
|
18185
18185
|
} = e, u = c;
|
|
18186
|
-
if (n.key ===
|
|
18186
|
+
if (n.key === Wa) {
|
|
18187
18187
|
if (d && $e(n), c === -1)
|
|
18188
18188
|
u = l;
|
|
18189
18189
|
else if (u = Ke(t, {
|
|
@@ -18277,7 +18277,7 @@ function G5(t, e) {
|
|
|
18277
18277
|
return e.flatMap((n, r) => t.includes(n) ? [r] : []);
|
|
18278
18278
|
}
|
|
18279
18279
|
let Cd = 0;
|
|
18280
|
-
function
|
|
18280
|
+
function Ht(t, e) {
|
|
18281
18281
|
e === void 0 && (e = {});
|
|
18282
18282
|
const {
|
|
18283
18283
|
preventScroll: n = !1,
|
|
@@ -18290,7 +18290,7 @@ function Wt(t, e) {
|
|
|
18290
18290
|
});
|
|
18291
18291
|
o ? i() : Cd = requestAnimationFrame(i);
|
|
18292
18292
|
}
|
|
18293
|
-
var be = typeof document < "u" ?
|
|
18293
|
+
var be = typeof document < "u" ? Ws : Je;
|
|
18294
18294
|
function X5(t, e) {
|
|
18295
18295
|
const n = t.compareDocumentPosition(e);
|
|
18296
18296
|
return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0;
|
|
@@ -18393,7 +18393,7 @@ function t_() {
|
|
|
18393
18393
|
us || (us = !0);
|
|
18394
18394
|
}, []), t;
|
|
18395
18395
|
}
|
|
18396
|
-
const n_ = k.useId,
|
|
18396
|
+
const n_ = k.useId, Wi = n_ || t_;
|
|
18397
18397
|
function r_() {
|
|
18398
18398
|
const t = /* @__PURE__ */ new Map();
|
|
18399
18399
|
return {
|
|
@@ -18516,9 +18516,9 @@ function s_(t, e) {
|
|
|
18516
18516
|
P(), M(), A(F, !0, "safe-polygon");
|
|
18517
18517
|
}
|
|
18518
18518
|
});
|
|
18519
|
-
const
|
|
18520
|
-
$.addEventListener("mousemove",
|
|
18521
|
-
$.removeEventListener("mousemove",
|
|
18519
|
+
const W = w.current;
|
|
18520
|
+
$.addEventListener("mousemove", W), T.current = () => {
|
|
18521
|
+
$.removeEventListener("mousemove", W);
|
|
18522
18522
|
};
|
|
18523
18523
|
return;
|
|
18524
18524
|
}
|
|
@@ -18666,7 +18666,7 @@ const Zr = () => ({
|
|
|
18666
18666
|
)
|
|
18667
18667
|
});
|
|
18668
18668
|
function Nh(t, e) {
|
|
18669
|
-
const n =
|
|
18669
|
+
const n = Hi(t, Zr());
|
|
18670
18670
|
e === "prev" && n.reverse();
|
|
18671
18671
|
const r = n.indexOf(Nt(Xe(t)));
|
|
18672
18672
|
return n.slice(r + 1)[0];
|
|
@@ -18682,7 +18682,7 @@ function Fr(t, e) {
|
|
|
18682
18682
|
return !r || !Oe(n, r);
|
|
18683
18683
|
}
|
|
18684
18684
|
function f_(t) {
|
|
18685
|
-
|
|
18685
|
+
Hi(t, Zr()).forEach((n) => {
|
|
18686
18686
|
n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
|
|
18687
18687
|
});
|
|
18688
18688
|
}
|
|
@@ -18730,7 +18730,7 @@ function p_(t) {
|
|
|
18730
18730
|
id: e,
|
|
18731
18731
|
root: n
|
|
18732
18732
|
} = t === void 0 ? {} : t;
|
|
18733
|
-
const [r, o] = k.useState(null), i =
|
|
18733
|
+
const [r, o] = k.useState(null), i = Wi(), s = Ah(), a = k.useRef(null);
|
|
18734
18734
|
return be(() => () => {
|
|
18735
18735
|
r == null || r.remove(), queueMicrotask(() => {
|
|
18736
18736
|
a.current = null;
|
|
@@ -18822,8 +18822,8 @@ function gs(t) {
|
|
|
18822
18822
|
xn = xn.filter((n) => n.isConnected);
|
|
18823
18823
|
let e = t;
|
|
18824
18824
|
if (!(!e || Ln(e) === "body")) {
|
|
18825
|
-
if (!
|
|
18826
|
-
const n =
|
|
18825
|
+
if (!W5(e, Zr())) {
|
|
18826
|
+
const n = Hi(e, Zr())[0];
|
|
18827
18827
|
if (!n) return;
|
|
18828
18828
|
e = n;
|
|
18829
18829
|
}
|
|
@@ -18865,10 +18865,10 @@ function Dh(t) {
|
|
|
18865
18865
|
floating: y
|
|
18866
18866
|
}
|
|
18867
18867
|
} = e, _ = typeof s == "number" && s < 0, x = dh(v) && _, w = c_() ? i : !0, C = It(o), O = It(s), N = It(a), T = lo(), S = Ah(), A = k.useRef(null), M = k.useRef(null), P = k.useRef(!1), E = k.useRef(!1), R = S != null, D = k.useCallback(function(B) {
|
|
18868
|
-
return B === void 0 && (B = y), B ?
|
|
18868
|
+
return B === void 0 && (B = y), B ? Hi(B, Zr()) : [];
|
|
18869
18869
|
}, [y]), L = k.useCallback((B) => {
|
|
18870
|
-
const
|
|
18871
|
-
return C.current.map((V) => v && V === "reference" ? v : y && V === "floating" ? y :
|
|
18870
|
+
const W = D(B);
|
|
18871
|
+
return C.current.map((V) => v && V === "reference" ? v : y && V === "floating" ? y : W).filter(Boolean).flat();
|
|
18872
18872
|
}, [v, y, C, D]);
|
|
18873
18873
|
k.useEffect(() => {
|
|
18874
18874
|
if (r || !l) return;
|
|
@@ -18876,12 +18876,12 @@ function Dh(t) {
|
|
|
18876
18876
|
if (V.key === "Tab") {
|
|
18877
18877
|
Oe(y, Nt(Xe(y))) && D().length === 0 && !x && $e(V);
|
|
18878
18878
|
const U = L(), K = rn(V);
|
|
18879
|
-
C.current[0] === "reference" && K === v && ($e(V), V.shiftKey ?
|
|
18879
|
+
C.current[0] === "reference" && K === v && ($e(V), V.shiftKey ? Ht(U[U.length - 1]) : Ht(U[1])), C.current[1] === "floating" && K === y && V.shiftKey && ($e(V), Ht(U[0]));
|
|
18880
18880
|
}
|
|
18881
18881
|
}
|
|
18882
|
-
const
|
|
18883
|
-
return
|
|
18884
|
-
|
|
18882
|
+
const W = Xe(y);
|
|
18883
|
+
return W.addEventListener("keydown", B), () => {
|
|
18884
|
+
W.removeEventListener("keydown", B);
|
|
18885
18885
|
};
|
|
18886
18886
|
}, [r, v, y, l, C, x, D, L]), k.useEffect(() => {
|
|
18887
18887
|
if (r || !d) return;
|
|
@@ -18890,7 +18890,7 @@ function Dh(t) {
|
|
|
18890
18890
|
E.current = !1;
|
|
18891
18891
|
});
|
|
18892
18892
|
}
|
|
18893
|
-
function
|
|
18893
|
+
function W(V) {
|
|
18894
18894
|
const U = V.relatedTarget;
|
|
18895
18895
|
queueMicrotask(() => {
|
|
18896
18896
|
const K = !(Oe(v, U) || Oe(y, U) || Oe(U, y) || Oe(S == null ? void 0 : S.portalNode, U) || U != null && U.hasAttribute(An("focus-guard")) || T && (On(T.nodesRef.current, h).find((q) => {
|
|
@@ -18905,32 +18905,32 @@ function Dh(t) {
|
|
|
18905
18905
|
});
|
|
18906
18906
|
}
|
|
18907
18907
|
if (y && Ve(v))
|
|
18908
|
-
return v.addEventListener("focusout",
|
|
18909
|
-
v.removeEventListener("focusout",
|
|
18908
|
+
return v.addEventListener("focusout", W), v.addEventListener("pointerdown", B), !l && y.addEventListener("focusout", W), () => {
|
|
18909
|
+
v.removeEventListener("focusout", W), v.removeEventListener("pointerdown", B), !l && y.removeEventListener("focusout", W);
|
|
18910
18910
|
};
|
|
18911
18911
|
}, [r, v, y, l, h, T, S, g, d]), k.useEffect(() => {
|
|
18912
18912
|
var B;
|
|
18913
18913
|
if (r) return;
|
|
18914
|
-
const
|
|
18914
|
+
const W = Array.from((S == null || (B = S.portalNode) == null ? void 0 : B.querySelectorAll("[" + An("portal") + "]")) || []);
|
|
18915
18915
|
if (y) {
|
|
18916
|
-
const V = [y, ...
|
|
18916
|
+
const V = [y, ...W, A.current, M.current, C.current.includes("reference") || x ? v : null].filter((K) => K != null), U = l || x ? Od(V, w, !w) : Od(V);
|
|
18917
18917
|
return () => {
|
|
18918
18918
|
U();
|
|
18919
18919
|
};
|
|
18920
18920
|
}
|
|
18921
18921
|
}, [r, v, y, l, C, S, x, w]), be(() => {
|
|
18922
18922
|
if (r || !y) return;
|
|
18923
|
-
const B = Xe(y),
|
|
18923
|
+
const B = Xe(y), W = Nt(B);
|
|
18924
18924
|
queueMicrotask(() => {
|
|
18925
|
-
const V = L(y), U = O.current, K = (typeof U == "number" ? V[U] : U.current) || y, q = Oe(y,
|
|
18926
|
-
!_ && !q && u &&
|
|
18925
|
+
const V = L(y), U = O.current, K = (typeof U == "number" ? V[U] : U.current) || y, q = Oe(y, W);
|
|
18926
|
+
!_ && !q && u && Ht(K, {
|
|
18927
18927
|
preventScroll: K === y
|
|
18928
18928
|
});
|
|
18929
18929
|
});
|
|
18930
18930
|
}, [r, u, y, _, L, O]), be(() => {
|
|
18931
18931
|
if (r || !y) return;
|
|
18932
18932
|
let B = !1;
|
|
18933
|
-
const
|
|
18933
|
+
const W = Xe(y), V = Nt(W), U = m.current;
|
|
18934
18934
|
gs(V);
|
|
18935
18935
|
function K(q) {
|
|
18936
18936
|
let {
|
|
@@ -18942,7 +18942,7 @@ function Dh(t) {
|
|
|
18942
18942
|
}
|
|
18943
18943
|
return p.on("openchange", K), () => {
|
|
18944
18944
|
p.off("openchange", K);
|
|
18945
|
-
const q = Nt(
|
|
18945
|
+
const q = Nt(W), X = Oe(y, q) || T && On(T.nodesRef.current, h).some((re) => {
|
|
18946
18946
|
var Ie;
|
|
18947
18947
|
return Oe((Ie = re.context) == null ? void 0 : Ie.elements.floating, q);
|
|
18948
18948
|
});
|
|
@@ -18951,7 +18951,7 @@ function Dh(t) {
|
|
|
18951
18951
|
N.current && !P.current && Ve(Z) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
18952
18952
|
// since it likely entered a different element which should be
|
|
18953
18953
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
18954
|
-
(!(Z !== q && q !==
|
|
18954
|
+
(!(Z !== q && q !== W.body) || X) && Ht(Z, {
|
|
18955
18955
|
// When dismissing nested floating elements, by the time the rAF has
|
|
18956
18956
|
// executed, the menus will all have been unmounted. When they try
|
|
18957
18957
|
// to get focused, the calls get ignored — leaving the root
|
|
@@ -18979,19 +18979,19 @@ function Dh(t) {
|
|
|
18979
18979
|
C.current.includes("floating") || Nt(Xe(y)) !== f.domReference.current && D().length === 0 ? V !== "0" && y.setAttribute("tabindex", "0") : V !== "-1" && y.setAttribute("tabindex", "-1");
|
|
18980
18980
|
};
|
|
18981
18981
|
B();
|
|
18982
|
-
const
|
|
18983
|
-
return
|
|
18982
|
+
const W = new MutationObserver(B);
|
|
18983
|
+
return W.observe(y, {
|
|
18984
18984
|
childList: !0,
|
|
18985
18985
|
subtree: !0,
|
|
18986
18986
|
attributes: !0
|
|
18987
18987
|
}), () => {
|
|
18988
|
-
|
|
18988
|
+
W.disconnect();
|
|
18989
18989
|
};
|
|
18990
18990
|
}, [r, y, f, C, D, _]);
|
|
18991
18991
|
function F(B) {
|
|
18992
18992
|
return r || !c || !l ? null : /* @__PURE__ */ k.createElement(y_, {
|
|
18993
18993
|
ref: B === "start" ? A : M,
|
|
18994
|
-
onClick: (
|
|
18994
|
+
onClick: (W) => g(!1, W.nativeEvent)
|
|
18995
18995
|
}, typeof c == "string" ? c : "Dismiss");
|
|
18996
18996
|
}
|
|
18997
18997
|
const $ = !r && w && (R || l);
|
|
@@ -19001,14 +19001,14 @@ function Dh(t) {
|
|
|
19001
19001
|
onFocus: (B) => {
|
|
19002
19002
|
if (l) {
|
|
19003
19003
|
const V = L();
|
|
19004
|
-
|
|
19004
|
+
Ht(o[0] === "reference" ? V[0] : V[V.length - 1]);
|
|
19005
19005
|
} else if (S != null && S.preserveTabOrder && S.portalNode)
|
|
19006
19006
|
if (P.current = !1, Fr(B, S.portalNode)) {
|
|
19007
19007
|
const V = Rh() || v;
|
|
19008
19008
|
V == null || V.focus();
|
|
19009
19009
|
} else {
|
|
19010
|
-
var
|
|
19011
|
-
(
|
|
19010
|
+
var W;
|
|
19011
|
+
(W = S.beforeOutsideRef.current) == null || W.focus();
|
|
19012
19012
|
}
|
|
19013
19013
|
}
|
|
19014
19014
|
}), !x && F("start"), n, F("end"), $ && /* @__PURE__ */ k.createElement(vi, {
|
|
@@ -19016,14 +19016,14 @@ function Dh(t) {
|
|
|
19016
19016
|
ref: S == null ? void 0 : S.afterInsideRef,
|
|
19017
19017
|
onFocus: (B) => {
|
|
19018
19018
|
if (l)
|
|
19019
|
-
|
|
19019
|
+
Ht(L()[0]);
|
|
19020
19020
|
else if (S != null && S.preserveTabOrder && S.portalNode)
|
|
19021
19021
|
if (d && (P.current = !0), Fr(B, S.portalNode)) {
|
|
19022
19022
|
const V = Mh() || v;
|
|
19023
19023
|
V == null || V.focus();
|
|
19024
19024
|
} else {
|
|
19025
|
-
var
|
|
19026
|
-
(
|
|
19025
|
+
var W;
|
|
19026
|
+
(W = S.afterOutsideRef.current) == null || W.focus();
|
|
19027
19027
|
}
|
|
19028
19028
|
}
|
|
19029
19029
|
}));
|
|
@@ -19033,7 +19033,7 @@ const ps = /* @__PURE__ */ new Set(), v_ = /* @__PURE__ */ k.forwardRef(function
|
|
|
19033
19033
|
lockScroll: r = !1,
|
|
19034
19034
|
...o
|
|
19035
19035
|
} = e;
|
|
19036
|
-
const i =
|
|
19036
|
+
const i = Wi();
|
|
19037
19037
|
return be(() => {
|
|
19038
19038
|
if (!r) return;
|
|
19039
19039
|
ps.add(i);
|
|
@@ -19192,17 +19192,17 @@ function Lh(t, e) {
|
|
|
19192
19192
|
if (C.current = !1, f === "click" && L || D || typeof x == "function" && !x(R))
|
|
19193
19193
|
return;
|
|
19194
19194
|
const F = rn(R), $ = "[" + An("inert") + "]", B = Xe(a).querySelectorAll($);
|
|
19195
|
-
let
|
|
19196
|
-
for (;
|
|
19197
|
-
const K = qt(
|
|
19195
|
+
let W = pe(F) ? F : null;
|
|
19196
|
+
for (; W && !un(W); ) {
|
|
19197
|
+
const K = qt(W);
|
|
19198
19198
|
if (un(K) || !pe(K))
|
|
19199
19199
|
break;
|
|
19200
|
-
|
|
19200
|
+
W = K;
|
|
19201
19201
|
}
|
|
19202
19202
|
if (B.length && pe(F) && !I2(F) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
19203
19203
|
!Oe(F, a) && // If the target root element contains none of the markers, then the
|
|
19204
19204
|
// element was injected after the floating element rendered.
|
|
19205
|
-
Array.from(B).every((K) => !Oe(
|
|
19205
|
+
Array.from(B).every((K) => !Oe(W, K)))
|
|
19206
19206
|
return;
|
|
19207
19207
|
if (Ve(F) && a) {
|
|
19208
19208
|
const K = F.clientWidth > 0 && F.scrollWidth > F.clientWidth, q = F.clientHeight > 0 && F.scrollHeight > F.clientHeight;
|
|
@@ -19310,7 +19310,7 @@ function Fh(t) {
|
|
|
19310
19310
|
reason: S,
|
|
19311
19311
|
nested: h
|
|
19312
19312
|
}), r == null || r(N, T, S);
|
|
19313
|
-
}), p = k.useRef(null), m = k.useRef({}), v = k.useState(() => r_())[0], y =
|
|
19313
|
+
}), p = k.useRef(null), m = k.useRef({}), v = k.useState(() => r_())[0], y = Wi(), _ = k.useCallback((N) => {
|
|
19314
19314
|
const T = pe(N) ? {
|
|
19315
19315
|
getBoundingClientRect: () => N.getBoundingClientRect(),
|
|
19316
19316
|
contextElement: N
|
|
@@ -19488,7 +19488,7 @@ function Yi(t, e, n) {
|
|
|
19488
19488
|
}
|
|
19489
19489
|
}
|
|
19490
19490
|
function Fd(t, e) {
|
|
19491
|
-
return Yi(e, t ===
|
|
19491
|
+
return Yi(e, t === Wa || t === ao, t === rr || t === cr);
|
|
19492
19492
|
}
|
|
19493
19493
|
function bs(t, e, n) {
|
|
19494
19494
|
return Yi(e, t === ao, n ? t === rr : t === cr) || t === "Enter" || t === " " || t === "";
|
|
@@ -19497,7 +19497,7 @@ function __(t, e, n) {
|
|
|
19497
19497
|
return Yi(e, n ? t === rr : t === cr, t === ao);
|
|
19498
19498
|
}
|
|
19499
19499
|
function zd(t, e, n) {
|
|
19500
|
-
return Yi(e, n ? t === cr : t === rr, t ===
|
|
19500
|
+
return Yi(e, n ? t === cr : t === rr, t === Wa);
|
|
19501
19501
|
}
|
|
19502
19502
|
function C_(t, e) {
|
|
19503
19503
|
const {
|
|
@@ -19532,10 +19532,10 @@ function C_(t, e) {
|
|
|
19532
19532
|
dense: S = !1
|
|
19533
19533
|
} = e;
|
|
19534
19534
|
process.env.NODE_ENV !== "production" && (f && (h || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), m || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), w === "vertical" && C > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
|
|
19535
|
-
const A = Vi(), M = lo(), P = Rt(c), E = k.useRef(v), R = k.useRef(u ?? -1), D = k.useRef(null), L = k.useRef(!0), F = k.useRef(P), $ = k.useRef(!!s), B = k.useRef(!1),
|
|
19535
|
+
const A = Vi(), M = lo(), P = Rt(c), E = k.useRef(v), R = k.useRef(u ?? -1), D = k.useRef(null), L = k.useRef(!0), F = k.useRef(P), $ = k.useRef(!!s), B = k.useRef(!1), W = k.useRef(!1), V = It(x), U = It(n), K = It(O), [q, X] = k.useState(), [ce, Z] = k.useState(), re = Rt(function(Q, Se, se) {
|
|
19536
19536
|
se === void 0 && (se = !1);
|
|
19537
19537
|
const ne = Q.current[Se.current];
|
|
19538
|
-
ne && (m ? (X(ne.id), M == null || M.events.emit("virtualfocus", ne), N && (N.current = ne)) :
|
|
19538
|
+
ne && (m ? (X(ne.id), M == null || M.events.emit("virtualfocus", ne), N && (N.current = ne)) : Ht(ne, {
|
|
19539
19539
|
preventScroll: !0,
|
|
19540
19540
|
// Mac Safari does not move the virtual cursor unless the focus call
|
|
19541
19541
|
// is sync. However, for the very first focus call, we need to wait
|
|
@@ -19561,7 +19561,7 @@ function C_(t, e) {
|
|
|
19561
19561
|
}
|
|
19562
19562
|
});
|
|
19563
19563
|
}, []), be(() => {
|
|
19564
|
-
d && (n && s ? E.current && u != null && (
|
|
19564
|
+
d && (n && s ? E.current && u != null && (W.current = !0, R.current = u, P(u)) : $.current && (R.current = -1, F.current(null)));
|
|
19565
19565
|
}, [d, n, s, u, P]), be(() => {
|
|
19566
19566
|
if (d && n && s)
|
|
19567
19567
|
if (l == null) {
|
|
@@ -19574,7 +19574,7 @@ function C_(t, e) {
|
|
|
19574
19574
|
};
|
|
19575
19575
|
Se();
|
|
19576
19576
|
}
|
|
19577
|
-
} else Lr(a, l) || (R.current = l, re(a, R,
|
|
19577
|
+
} else Lr(a, l) || (R.current = l, re(a, R, W.current), W.current = !1);
|
|
19578
19578
|
}, [d, n, s, l, u, g, a, w, p, P, re, V]), be(() => {
|
|
19579
19579
|
var Q;
|
|
19580
19580
|
if (!d || s || !M || m || !$.current)
|
|
@@ -19629,7 +19629,7 @@ function C_(t, e) {
|
|
|
19629
19629
|
let {
|
|
19630
19630
|
pointerType: ne
|
|
19631
19631
|
} = se;
|
|
19632
|
-
!L.current || ne === "touch" || (R.current = -1, re(a, R), P(null), m ||
|
|
19632
|
+
!L.current || ne === "touch" || (R.current = -1, re(a, R), P(null), m || Ht(o.floating.current, {
|
|
19633
19633
|
preventScroll: !0
|
|
19634
19634
|
}));
|
|
19635
19635
|
}
|
|
@@ -19775,7 +19775,7 @@ function Bh(t, e) {
|
|
|
19775
19775
|
} = t, {
|
|
19776
19776
|
enabled: i = !0,
|
|
19777
19777
|
role: s = "dialog"
|
|
19778
|
-
} = e, a = (n = S_.get(s)) != null ? n : s, l =
|
|
19778
|
+
} = e, a = (n = S_.get(s)) != null ? n : s, l = Wi(), d = Vi() != null;
|
|
19779
19779
|
return k.useMemo(() => {
|
|
19780
19780
|
if (!i) return {};
|
|
19781
19781
|
const u = {
|
|
@@ -19954,7 +19954,7 @@ function T_(t) {
|
|
|
19954
19954
|
const {
|
|
19955
19955
|
clientX: C,
|
|
19956
19956
|
clientY: O
|
|
19957
|
-
} = x, N = [C, O], T = rn(x), S = x.type === "mouseleave", A = Oe(p.floating, T), M = Oe(p.domReference, T), P = p.domReference.getBoundingClientRect(), E = p.floating.getBoundingClientRect(), R = g.split("-")[0], D = f > E.right - E.width / 2, L = h > E.bottom - E.height / 2, F = O_(N, P), $ = E.width > P.width, B = E.height > P.height,
|
|
19957
|
+
} = x, N = [C, O], T = rn(x), S = x.type === "mouseleave", A = Oe(p.floating, T), M = Oe(p.domReference, T), P = p.domReference.getBoundingClientRect(), E = p.floating.getBoundingClientRect(), R = g.split("-")[0], D = f > E.right - E.width / 2, L = h > E.bottom - E.height / 2, F = O_(N, P), $ = E.width > P.width, B = E.height > P.height, W = ($ ? P : E).left, V = ($ ? P : E).right, U = (B ? P : E).top, K = (B ? P : E).bottom;
|
|
19958
19958
|
if (A && (i = !0, !S))
|
|
19959
19959
|
return;
|
|
19960
19960
|
if (M && (i = !1), M && !S) {
|
|
@@ -19973,10 +19973,10 @@ function T_(t) {
|
|
|
19973
19973
|
let q = [];
|
|
19974
19974
|
switch (R) {
|
|
19975
19975
|
case "top":
|
|
19976
|
-
q = [[
|
|
19976
|
+
q = [[W, P.top + 1], [W, E.bottom - 1], [V, E.bottom - 1], [V, P.top + 1]];
|
|
19977
19977
|
break;
|
|
19978
19978
|
case "bottom":
|
|
19979
|
-
q = [[
|
|
19979
|
+
q = [[W, E.top + 1], [W, P.bottom - 1], [V, P.bottom - 1], [V, E.top + 1]];
|
|
19980
19980
|
break;
|
|
19981
19981
|
case "left":
|
|
19982
19982
|
q = [[E.right - 1, K], [E.right - 1, U], [P.left + 1, U], [P.left + 1, K]];
|
|
@@ -20058,9 +20058,9 @@ const N_ = ({
|
|
|
20058
20058
|
Lh(t),
|
|
20059
20059
|
Bh(t, { role: n }),
|
|
20060
20060
|
...r
|
|
20061
|
-
]),
|
|
20061
|
+
]), Hh = Ye(void 0);
|
|
20062
20062
|
function Ya() {
|
|
20063
|
-
const t = De(
|
|
20063
|
+
const t = De(Hh);
|
|
20064
20064
|
if (!t)
|
|
20065
20065
|
throw new Error("useDropdownContext should be used within the DropdownContext provider!");
|
|
20066
20066
|
return t;
|
|
@@ -20068,7 +20068,7 @@ function Ya() {
|
|
|
20068
20068
|
const Ua = ({ className: t, theme: e = {}, ...n }) => {
|
|
20069
20069
|
const { theme: r } = Ya(), o = e.divider ?? r.floating.divider;
|
|
20070
20070
|
return /* @__PURE__ */ b("div", { className: I(o, t), ...n });
|
|
20071
|
-
},
|
|
20071
|
+
}, Wh = ({ children: t, className: e, theme: n = {}, ...r }) => {
|
|
20072
20072
|
const { theme: o } = Ya(), i = n.header ?? o.floating.header;
|
|
20073
20073
|
return /* @__PURE__ */ z(Ct, { children: [
|
|
20074
20074
|
/* @__PURE__ */ b("div", { className: I(i, e), ...r, children: t }),
|
|
@@ -20119,7 +20119,7 @@ const P_ = {
|
|
|
20119
20119
|
c.current && (i == null || i(c.current.clientWidth));
|
|
20120
20120
|
}, [c, i]), a) {
|
|
20121
20121
|
const u = a(r);
|
|
20122
|
-
return
|
|
20122
|
+
return Wo(u, { ref: t.setReference, disabled: o, ...d, ...u.props });
|
|
20123
20123
|
}
|
|
20124
20124
|
return n ? /* @__PURE__ */ b("button", { type: "button", ref: t.setReference, className: r == null ? void 0 : r.inlineWrapper, disabled: o, ...d, children: e }) : /* @__PURE__ */ b(Xf, { ...l, disabled: o, type: "button", ref: t.setReference, ...d, children: e });
|
|
20125
20125
|
}, Yh = ({
|
|
@@ -20167,7 +20167,7 @@ const P_ = {
|
|
|
20167
20167
|
const [B] = _.split("-");
|
|
20168
20168
|
return P_[B] ?? Nf;
|
|
20169
20169
|
}, [_]);
|
|
20170
|
-
return /* @__PURE__ */ z(
|
|
20170
|
+
return /* @__PURE__ */ z(Hh.Provider, { value: { theme: m, activeIndex: l, dismissOnClick: n, getItemProps: F, handleSelect: T }, children: [
|
|
20171
20171
|
/* @__PURE__ */ z(
|
|
20172
20172
|
A_,
|
|
20173
20173
|
{
|
|
@@ -20209,11 +20209,11 @@ const P_ = {
|
|
|
20209
20209
|
] });
|
|
20210
20210
|
};
|
|
20211
20211
|
Yh.displayName = "Dropdown";
|
|
20212
|
-
|
|
20212
|
+
Wh.displayName = "Dropdown.Header";
|
|
20213
20213
|
Ua.displayName = "Dropdown.Divider";
|
|
20214
20214
|
Object.assign(Yh, {
|
|
20215
20215
|
Item: Vh,
|
|
20216
|
-
Header:
|
|
20216
|
+
Header: Wh,
|
|
20217
20217
|
Divider: Ua
|
|
20218
20218
|
});
|
|
20219
20219
|
const Uh = ue(
|
|
@@ -20527,9 +20527,9 @@ const ag = ({ children: t, className: e, theme: n = {}, ...r }) => {
|
|
|
20527
20527
|
...i
|
|
20528
20528
|
}) => {
|
|
20529
20529
|
const s = Dn(), a = o || s, { theme: l, popup: c, onClose: d, setHeaderId: u } = Ka(), f = j(l.header, r);
|
|
20530
|
-
return
|
|
20530
|
+
return Ws(() => (u(a), () => u(void 0)), [a, u]), /* @__PURE__ */ z("div", { className: I(f.base, c && f.popup, n), ...i, children: [
|
|
20531
20531
|
/* @__PURE__ */ b(t, { id: a, className: f.title, children: e }),
|
|
20532
|
-
/* @__PURE__ */ b("button", { "aria-label": "Close", className: f.close.base, type: "button", onClick: d, children: /* @__PURE__ */ b(
|
|
20532
|
+
/* @__PURE__ */ b("button", { "aria-label": "Close", className: f.close.base, type: "button", onClick: d, children: /* @__PURE__ */ b(H1, { "aria-hidden": !0, className: f.close.icon }) })
|
|
20533
20533
|
] });
|
|
20534
20534
|
}, dg = ue(
|
|
20535
20535
|
({
|
|
@@ -20719,7 +20719,7 @@ const I_ = (t, e) => t >= e ? [] : [...Array(e - t + 1).keys()].map((n) => n + t
|
|
|
20719
20719
|
);
|
|
20720
20720
|
};
|
|
20721
20721
|
qa.displayName = "Pagination.Button";
|
|
20722
|
-
const
|
|
20722
|
+
const Hs = ({
|
|
20723
20723
|
children: t,
|
|
20724
20724
|
className: e,
|
|
20725
20725
|
onClick: n,
|
|
@@ -20740,7 +20740,7 @@ const Ws = ({
|
|
|
20740
20740
|
}
|
|
20741
20741
|
);
|
|
20742
20742
|
};
|
|
20743
|
-
|
|
20743
|
+
Hs.displayName = "Pagination.Navigation";
|
|
20744
20744
|
const bg = ({
|
|
20745
20745
|
className: t,
|
|
20746
20746
|
currentPage: e,
|
|
@@ -20771,7 +20771,7 @@ const bg = ({
|
|
|
20771
20771
|
] }),
|
|
20772
20772
|
/* @__PURE__ */ z("ul", { className: u.pages.base, children: [
|
|
20773
20773
|
/* @__PURE__ */ b("li", { children: /* @__PURE__ */ z(
|
|
20774
|
-
|
|
20774
|
+
Hs,
|
|
20775
20775
|
{
|
|
20776
20776
|
className: I(u.pages.previous.base, a && u.pages.showIcon),
|
|
20777
20777
|
onClick: p,
|
|
@@ -20789,7 +20789,7 @@ const bg = ({
|
|
|
20789
20789
|
children: m
|
|
20790
20790
|
}) }, m)),
|
|
20791
20791
|
/* @__PURE__ */ b("li", { children: /* @__PURE__ */ z(
|
|
20792
|
-
|
|
20792
|
+
Hs,
|
|
20793
20793
|
{
|
|
20794
20794
|
className: I(u.pages.next.base, a && u.pages.showIcon),
|
|
20795
20795
|
onClick: g,
|
|
@@ -21129,7 +21129,7 @@ const Cg = ({
|
|
|
21129
21129
|
);
|
|
21130
21130
|
};
|
|
21131
21131
|
Cg.displayName = "Sidebar.CTA";
|
|
21132
|
-
const
|
|
21132
|
+
const H_ = ({ id: t, theme: e, isCollapsed: n, tooltipChildren: r, children: o, ...i }) => /* @__PURE__ */ b("li", { ...i, children: n ? /* @__PURE__ */ b(
|
|
21133
21133
|
Ga,
|
|
21134
21134
|
{
|
|
21135
21135
|
content: /* @__PURE__ */ b(Sg, { id: t, theme: e, children: r }),
|
|
@@ -21158,7 +21158,7 @@ const W_ = ({ id: t, theme: e, isCollapsed: n, tooltipChildren: r, children: o,
|
|
|
21158
21158
|
}, c) => {
|
|
21159
21159
|
var p, m, v, y;
|
|
21160
21160
|
const d = Dn(), { theme: u, isCollapsed: f } = dr(), { isInsideCollapse: h } = j_(), g = j(u.item, a);
|
|
21161
|
-
return /* @__PURE__ */ b(
|
|
21161
|
+
return /* @__PURE__ */ b(H_, { theme: g, className: g.listItem, id: d, isCollapsed: f, tooltipChildren: n, children: /* @__PURE__ */ z(
|
|
21162
21162
|
e,
|
|
21163
21163
|
{
|
|
21164
21164
|
"aria-labelledby": `flowbite-sidebar-item-${d}`,
|
|
@@ -21259,7 +21259,7 @@ Object.assign(Rg, {
|
|
|
21259
21259
|
Logo: Ng
|
|
21260
21260
|
});
|
|
21261
21261
|
const Mg = Ye(void 0);
|
|
21262
|
-
function
|
|
21262
|
+
function W_() {
|
|
21263
21263
|
const t = De(Mg);
|
|
21264
21264
|
if (!t)
|
|
21265
21265
|
throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");
|
|
@@ -21281,7 +21281,7 @@ const Ag = ue(
|
|
|
21281
21281
|
Ag.displayName = "Table.Body";
|
|
21282
21282
|
const Dg = ue(
|
|
21283
21283
|
({ children: t, className: e, theme: n = {}, ...r }, o) => {
|
|
21284
|
-
const { theme: i } =
|
|
21284
|
+
const { theme: i } = W_(), s = j(i.cell, n);
|
|
21285
21285
|
return /* @__PURE__ */ b("td", { className: I(s.base, e), ref: o, ...r, children: t });
|
|
21286
21286
|
}
|
|
21287
21287
|
);
|
|
@@ -21364,7 +21364,7 @@ const jg = ue(
|
|
|
21364
21364
|
return Je(() => {
|
|
21365
21365
|
var x;
|
|
21366
21366
|
(x = d.current[h]) == null || x.focus();
|
|
21367
|
-
}, [h]),
|
|
21367
|
+
}, [h]), Wd(s, () => ({
|
|
21368
21368
|
setActiveTab: p
|
|
21369
21369
|
})), /* @__PURE__ */ z("div", { className: I(a.base, e), children: [
|
|
21370
21370
|
/* @__PURE__ */ b(
|
|
@@ -21440,14 +21440,14 @@ const Y_ = ue(
|
|
|
21440
21440
|
}
|
|
21441
21441
|
);
|
|
21442
21442
|
Y_.displayName = "Textarea";
|
|
21443
|
-
const
|
|
21443
|
+
const Hg = Ye(void 0);
|
|
21444
21444
|
function Ja() {
|
|
21445
|
-
const t = De(
|
|
21445
|
+
const t = De(Hg);
|
|
21446
21446
|
if (!t)
|
|
21447
21447
|
throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");
|
|
21448
21448
|
return t;
|
|
21449
21449
|
}
|
|
21450
|
-
const
|
|
21450
|
+
const Wg = ({ children: t, className: e, theme: n = {}, ...r }) => {
|
|
21451
21451
|
const { theme: o } = Ja(), i = j(o.body, n);
|
|
21452
21452
|
return /* @__PURE__ */ b("div", { className: I(i.base, e), ...r, children: t });
|
|
21453
21453
|
}, Vg = Ye(void 0);
|
|
@@ -21471,7 +21471,7 @@ const Kg = ({
|
|
|
21471
21471
|
...r
|
|
21472
21472
|
}) => {
|
|
21473
21473
|
const { horizontal: o } = Qa(), { theme: i } = Ug(), s = j(i.content, n);
|
|
21474
|
-
return /* @__PURE__ */ b(
|
|
21474
|
+
return /* @__PURE__ */ b(Hg.Provider, { value: { theme: s }, children: /* @__PURE__ */ b("div", { "data-testid": "timeline-content", className: I(o && s.root.base, e), ...r, children: t }) });
|
|
21475
21475
|
}, qg = ({ children: t, className: e, theme: n = {}, ...r }) => {
|
|
21476
21476
|
const { theme: o, horizontal: i } = Qa(), s = j(o.item, n);
|
|
21477
21477
|
return /* @__PURE__ */ b(Yg.Provider, { value: { theme: s }, children: /* @__PURE__ */ b(
|
|
@@ -21549,14 +21549,14 @@ Gg.displayName = "Timeline.Point";
|
|
|
21549
21549
|
Kg.displayName = "Timeline.Content";
|
|
21550
21550
|
Xg.displayName = "Timeline.Time";
|
|
21551
21551
|
Zg.displayName = "Timeline.Title";
|
|
21552
|
-
|
|
21552
|
+
Wg.displayName = "Timeline.Body";
|
|
21553
21553
|
Object.assign(Jg, {
|
|
21554
21554
|
Item: qg,
|
|
21555
21555
|
Point: Gg,
|
|
21556
21556
|
Content: Kg,
|
|
21557
21557
|
Time: Xg,
|
|
21558
21558
|
Title: Zg,
|
|
21559
|
-
Body:
|
|
21559
|
+
Body: Wg
|
|
21560
21560
|
});
|
|
21561
21561
|
const Qg = Ye(void 0);
|
|
21562
21562
|
function U_() {
|
|
@@ -21709,7 +21709,7 @@ const G_ = ({
|
|
|
21709
21709
|
children: /* @__PURE__ */ b(Tf, { className: "h-5 w-5" })
|
|
21710
21710
|
}
|
|
21711
21711
|
)
|
|
21712
|
-
] }),
|
|
21712
|
+
] }), gC = ({
|
|
21713
21713
|
columns: t,
|
|
21714
21714
|
data: e,
|
|
21715
21715
|
showSearch: n = !1,
|
|
@@ -21772,7 +21772,7 @@ const G_ = ({
|
|
|
21772
21772
|
}, $d = {
|
|
21773
21773
|
"m-image-container": "layoutOutside-module__m-image-container__sCvFu",
|
|
21774
21774
|
"m-image": "layoutOutside-module__m-image__kZHyH"
|
|
21775
|
-
},
|
|
21775
|
+
}, pC = () => /* @__PURE__ */ z("div", { className: "mt-32", children: [
|
|
21776
21776
|
/* @__PURE__ */ b(
|
|
21777
21777
|
Tn,
|
|
21778
21778
|
{
|
|
@@ -21793,7 +21793,7 @@ const G_ = ({
|
|
|
21793
21793
|
height: 300
|
|
21794
21794
|
}
|
|
21795
21795
|
) })
|
|
21796
|
-
] }),
|
|
21796
|
+
] }), mC = ({
|
|
21797
21797
|
onOpenModal: t,
|
|
21798
21798
|
checked: e,
|
|
21799
21799
|
onChange: n,
|
|
@@ -21867,7 +21867,7 @@ const G_ = ({
|
|
|
21867
21867
|
showError: () => !s() && t.trim() && n.trim(),
|
|
21868
21868
|
validations: o
|
|
21869
21869
|
};
|
|
21870
|
-
},
|
|
21870
|
+
}, bC = ({ formik: t }) => {
|
|
21871
21871
|
const {
|
|
21872
21872
|
password: e,
|
|
21873
21873
|
setPassword: n,
|
|
@@ -21906,7 +21906,7 @@ const G_ = ({
|
|
|
21906
21906
|
] }),
|
|
21907
21907
|
/* @__PURE__ */ b(X_, { validations: i })
|
|
21908
21908
|
] });
|
|
21909
|
-
},
|
|
21909
|
+
}, yC = ({ items: t }) => {
|
|
21910
21910
|
const [e, n] = xe([]), r = (i) => {
|
|
21911
21911
|
n(
|
|
21912
21912
|
(s) => s.includes(i) ? s.filter((a) => a !== i) : [...s, i]
|
|
@@ -21970,7 +21970,7 @@ const G_ = ({
|
|
|
21970
21970
|
"text/csv": "Archivos CSV",
|
|
21971
21971
|
"application/json": "Archivos JSON",
|
|
21972
21972
|
"application/xml": "Archivos XML"
|
|
21973
|
-
},
|
|
21973
|
+
}, vC = ({
|
|
21974
21974
|
onChange: t,
|
|
21975
21975
|
accept: e = "application/pdf",
|
|
21976
21976
|
maxSize: n = 10,
|
|
@@ -22038,7 +22038,7 @@ function J_(t) {
|
|
|
22038
22038
|
const Q_ = (t) => {
|
|
22039
22039
|
const e = Math.floor(Math.log(t) / Math.log(1024)), n = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
22040
22040
|
return `${(t / Math.pow(1024, e)).toFixed(2)} ${n[e]}`;
|
|
22041
|
-
},
|
|
22041
|
+
}, xC = ({ files: t, onDelete: e }) => /* @__PURE__ */ b("div", { className: "mt-4", children: /* @__PURE__ */ b("ul", { className: "list-disc", children: t.map((n, r) => /* @__PURE__ */ z(
|
|
22042
22042
|
"div",
|
|
22043
22043
|
{
|
|
22044
22044
|
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",
|
|
@@ -22068,26 +22068,39 @@ const Q_ = (t) => {
|
|
|
22068
22068
|
]
|
|
22069
22069
|
},
|
|
22070
22070
|
r
|
|
22071
|
-
)) }) })
|
|
22071
|
+
)) }) }), eC = () => {
|
|
22072
|
+
const { protocol: t, host: e } = window.location;
|
|
22073
|
+
return `${t}//${e}/`;
|
|
22074
|
+
}, tC = eC(), wC = ({ description: t = "" }) => /* @__PURE__ */ z("div", { children: [
|
|
22075
|
+
/* @__PURE__ */ b(
|
|
22076
|
+
"img",
|
|
22077
|
+
{
|
|
22078
|
+
src: `${tC}/public/assets/images/spinner.svg`,
|
|
22079
|
+
alt: t.replace(/<[^>]*>/g, "")
|
|
22080
|
+
}
|
|
22081
|
+
),
|
|
22082
|
+
t && /* @__PURE__ */ b("p", { className: "text-center", dangerouslySetInnerHTML: { __html: t } })
|
|
22083
|
+
] });
|
|
22072
22084
|
export {
|
|
22073
|
-
|
|
22085
|
+
sC as ButtonFormat,
|
|
22074
22086
|
As as CardFormat,
|
|
22075
|
-
|
|
22076
|
-
|
|
22077
|
-
|
|
22087
|
+
lC as CardIndicator,
|
|
22088
|
+
aC as Checkbox,
|
|
22089
|
+
vC as Dropzone,
|
|
22078
22090
|
Tn as ImageFormat,
|
|
22079
22091
|
gp as InputForm,
|
|
22080
|
-
|
|
22081
|
-
|
|
22092
|
+
pC as LayoutOutside,
|
|
22093
|
+
xC as ListFile,
|
|
22082
22094
|
mr as ModalFormat,
|
|
22083
|
-
|
|
22095
|
+
fC as MyDoughnutChart,
|
|
22084
22096
|
ol as PasswordInput,
|
|
22085
22097
|
X_ as PasswordValidationList,
|
|
22086
22098
|
Rp as ProgressBar,
|
|
22087
22099
|
Mp as SelectForm,
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
|
|
22092
|
-
|
|
22100
|
+
hC as SidebarMth,
|
|
22101
|
+
wC as Spinner,
|
|
22102
|
+
gC as TableComponent,
|
|
22103
|
+
yC as TableOfContents,
|
|
22104
|
+
mC as TermsCheckbox,
|
|
22105
|
+
bC as ValidationPassword
|
|
22093
22106
|
};
|