@imj_media/ui 1.2.88 → 1.2.89
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/index.esm.js +817 -791
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/modules/Modal/Modal.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as r, jsxs as b, Fragment as
|
|
2
|
-
import ye, { useState as A, useRef as q, useCallback as V, useEffect as Y, useMemo as oe, memo as rt, useLayoutEffect as
|
|
1
|
+
import { jsx as r, jsxs as b, Fragment as Ze } from "react/jsx-runtime";
|
|
2
|
+
import ye, { useState as A, useRef as q, useCallback as V, useEffect as Y, useMemo as oe, memo as rt, useLayoutEffect as On, useImperativeHandle as yn, forwardRef as At, useId as oi, createContext as si, useContext as dr, Fragment as is, Children as pr, isValidElement as rs, Component as fr, cloneElement as os, createElement as ss } from "react";
|
|
3
3
|
import { clsx as as } from "clsx";
|
|
4
4
|
import { twMerge as us } from "tailwind-merge";
|
|
5
|
-
import
|
|
5
|
+
import _n, { createPortal as Rt } from "react-dom";
|
|
6
6
|
import { cva as Qe } from "class-variance-authority";
|
|
7
7
|
import { FontAwesomeIcon as Yr } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import { faUser as ls, faChevronUp as hr, faChevronDown as ai, faCircleInfo as Kr, faShapes as I1, faExclamationTriangle as cs, faLightEmergencyOn as ds, faCircleCheck as
|
|
9
|
-
import { faBell as Js, faClock as Ws, faCalendar as ea, faGripDotsVertical as ta, faStar as z1, faLocationDot as na, faPhone as ia, faEnvelope as ra, faTrash as oa, faCheck as sa, faEyeDropper as aa, faEye as ua, faLock as la, faFilter as ca, faArrowUp as da, faArrowDown as pa, faUser as fa, faArrowUpRight as
|
|
8
|
+
import { faUser as ls, faChevronUp as hr, faChevronDown as ai, faCircleInfo as Kr, faShapes as I1, faExclamationTriangle as cs, faLightEmergencyOn as ds, faCircleCheck as Un, faXmark as Mt, faInfoCircle as ps, faArrowUpRightAndArrowDownLeftFromCenter as Di, faSearch as mn, faGripDotsVertical as fs, faArrowLeft as hs, faBookmarkPlus as Vi, faEllipsis as gn, faEye as ms, faAngleLeft as mr, faAngleRight as gr, faAngleDown as O1, faCalendar as Cr, faCircleNotch as gs, faClock as Cs, faFaceSmile as H1, faDog as bs, faLemon as ws, faFutbol as vs, faCarSide as Ls, faLightbulb as ys, faHeart as xs, faFlag as Ms, faFile as Ss, faFilter as Cn, faBold as ks, faItalic as js, faUnderline as Ns, faStrikethrough as Is, faListUl as br, faListOl as Os, faLink as Hs, faAt as Ds, faPaperPlane as D1, faGraduationCap as Vs, faPalette as Ts, faAngleDoubleLeft as Es, faAngleDoubleRight as Ps, faStar as Ai, faCheck as Hn, faHashtag as V1, faText as T1, faFilterList as zs, faPlus as As, faBroomWide as Rs, faGears as Bs, faTrash as E1, faPen as Ri, faUnlock as $s, faArrowsFromLine as Zs, faArrowUp as Fs, faArrowDown as _s, faArrowDownArrowUp as Us, faChevronRight as P1, faEmptySet as Gs, faArrowTurnLeft as qs, faArrowRightToBracket as Ys, faTableLayout as Ks, faFolderOpen as Xs, faChevronLeft as Qs } from "@fortawesome/pro-regular-svg-icons";
|
|
9
|
+
import { faBell as Js, faClock as Ws, faCalendar as ea, faGripDotsVertical as ta, faStar as z1, faLocationDot as na, faPhone as ia, faEnvelope as ra, faTrash as oa, faCheck as sa, faEyeDropper as aa, faEye as ua, faLock as la, faFilter as ca, faArrowUp as da, faArrowDown as pa, faUser as fa, faArrowUpRight as zn } from "@fortawesome/pro-solid-svg-icons";
|
|
10
10
|
import { faBadgeCheck as ha } from "@fortawesome/pro-duotone-svg-icons";
|
|
11
11
|
import ma from "lottie-react";
|
|
12
12
|
import { Prism as ga } from "react-syntax-highlighter";
|
|
@@ -43,7 +43,7 @@ function Mp(e, i) {
|
|
|
43
43
|
}, i));
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const yt = 8, ft = 8;
|
|
47
47
|
function Oa(e, i, o, t) {
|
|
48
48
|
let n = 0, s = 0;
|
|
49
49
|
switch (e) {
|
|
@@ -149,43 +149,43 @@ function Da(e) {
|
|
|
149
149
|
p,
|
|
150
150
|
n,
|
|
151
151
|
s,
|
|
152
|
-
|
|
152
|
+
yt
|
|
153
153
|
);
|
|
154
154
|
if (f = m.top, d = m.left, f < 0 && (f = 0), d < 0 && (d = 0), !(() => {
|
|
155
155
|
switch (i) {
|
|
156
156
|
case "top":
|
|
157
|
-
return h >= s.height +
|
|
157
|
+
return h >= s.height + yt;
|
|
158
158
|
case "bottom":
|
|
159
|
-
return h + n.height +
|
|
159
|
+
return h + n.height + yt + s.height <= a.height;
|
|
160
160
|
case "left":
|
|
161
|
-
return p >= s.width +
|
|
161
|
+
return p >= s.width + yt;
|
|
162
162
|
case "right":
|
|
163
|
-
return p + n.width +
|
|
163
|
+
return p + n.width + yt + s.width <= a.width;
|
|
164
164
|
default:
|
|
165
165
|
return !0;
|
|
166
166
|
}
|
|
167
167
|
})()) {
|
|
168
168
|
let C = i, v = !1;
|
|
169
|
-
if (i === "top" ? h + n.height +
|
|
169
|
+
if (i === "top" ? h + n.height + yt + s.height <= a.height && (C = "bottom", v = !0) : i === "bottom" ? h >= s.height + yt && (C = "top", v = !0) : i === "left" ? p + n.width + yt + s.width <= a.width && (C = "right", v = !0) : i === "right" && p >= s.width + yt && (C = "left", v = !0), v) {
|
|
170
170
|
switch (C) {
|
|
171
171
|
case "top":
|
|
172
|
-
f = h - s.height -
|
|
172
|
+
f = h - s.height - yt, d = p + n.width / 2 - s.width / 2;
|
|
173
173
|
break;
|
|
174
174
|
case "bottom":
|
|
175
|
-
f = h + n.height +
|
|
175
|
+
f = h + n.height + yt, d = p + n.width / 2 - s.width / 2;
|
|
176
176
|
break;
|
|
177
177
|
case "left":
|
|
178
|
-
f = h + n.height / 2 - s.height / 2, d = p - s.width -
|
|
178
|
+
f = h + n.height / 2 - s.height / 2, d = p - s.width - yt;
|
|
179
179
|
break;
|
|
180
180
|
case "right":
|
|
181
|
-
f = h + n.height / 2 - s.height / 2, d = p + n.width +
|
|
181
|
+
f = h + n.height / 2 - s.height / 2, d = p + n.width + yt;
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
c = C;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
} else {
|
|
188
|
-
const h = Oa(i, n, s,
|
|
188
|
+
const h = Oa(i, n, s, yt);
|
|
189
189
|
f = h.top, d = h.left;
|
|
190
190
|
}
|
|
191
191
|
if (i.includes("top") || i.includes("bottom"))
|
|
@@ -719,7 +719,7 @@ function za(e) {
|
|
|
719
719
|
function Aa(e, i) {
|
|
720
720
|
return typeof e == "string" ? e : typeof i == "string" ? i : "";
|
|
721
721
|
}
|
|
722
|
-
const
|
|
722
|
+
const xt = ({
|
|
723
723
|
children: e,
|
|
724
724
|
title: i,
|
|
725
725
|
className: o = "",
|
|
@@ -741,7 +741,7 @@ const yt = ({
|
|
|
741
741
|
}
|
|
742
742
|
c(za(L));
|
|
743
743
|
}, [s, l]);
|
|
744
|
-
if (
|
|
744
|
+
if (On(() => {
|
|
745
745
|
if (l) return;
|
|
746
746
|
g();
|
|
747
747
|
const L = f.current;
|
|
@@ -1035,7 +1035,7 @@ const yt = ({
|
|
|
1035
1035
|
measureSpanClassName: u
|
|
1036
1036
|
}) => {
|
|
1037
1037
|
const l = n ?? "center";
|
|
1038
|
-
return /* @__PURE__ */ b(
|
|
1038
|
+
return /* @__PURE__ */ b(Ze, { children: [
|
|
1039
1039
|
/* @__PURE__ */ r(
|
|
1040
1040
|
"span",
|
|
1041
1041
|
{
|
|
@@ -1057,7 +1057,7 @@ const yt = ({
|
|
|
1057
1057
|
$a({ color: t, textAlign: l })
|
|
1058
1058
|
),
|
|
1059
1059
|
style: o,
|
|
1060
|
-
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ b(
|
|
1060
|
+
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ b(Ze, { children: [
|
|
1061
1061
|
e,
|
|
1062
1062
|
" "
|
|
1063
1063
|
] }) : e
|
|
@@ -1338,7 +1338,7 @@ const _a = (e) => {
|
|
|
1338
1338
|
backgroundSize: C,
|
|
1339
1339
|
padding: v
|
|
1340
1340
|
}
|
|
1341
|
-
) : ye.isValidElement(e) ? /* @__PURE__ */ r(
|
|
1341
|
+
) : ye.isValidElement(e) ? /* @__PURE__ */ r(Ze, { children: e }) : null;
|
|
1342
1342
|
};
|
|
1343
1343
|
Q1.displayName = "ButtonIcon";
|
|
1344
1344
|
const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
@@ -1393,7 +1393,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1393
1393
|
md: "lg",
|
|
1394
1394
|
lg: "xl",
|
|
1395
1395
|
xl: "2xl"
|
|
1396
|
-
},
|
|
1396
|
+
}, An = "ui-border-1", t1 = "ui-border", n1 = {
|
|
1397
1397
|
blue: "ui-border-all-colors-blue",
|
|
1398
1398
|
red: "ui-border-all-colors-red",
|
|
1399
1399
|
orange: "ui-border-all-colors-orange",
|
|
@@ -1423,15 +1423,15 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1423
1423
|
}, Qa = 3, Ja = "ui-opacity-50 ui-cursor-not-allowed", Wa = "ui-grayscale", r1 = "ui-bg-fill-disabled", eu = "ui-mix-blend-luminosity", eo = (e, i, o, t = !1) => t ? o === "letter" ? e1[e] : Bi[e] : i === "solid" ? Ga[e] : o === "letter" ? e1[e] : Bi[e], tu = (e) => qa[e], nu = (e, i, o, t, n = !1) => {
|
|
1424
1424
|
if (!e) return "";
|
|
1425
1425
|
if (i === "people")
|
|
1426
|
-
return j(
|
|
1426
|
+
return j(An, t1, "ui-border-default");
|
|
1427
1427
|
if ((i === "icon" || i === "letter") && o) {
|
|
1428
1428
|
if (n)
|
|
1429
|
-
return j(
|
|
1429
|
+
return j(An, n1[o]);
|
|
1430
1430
|
const s = t === "soft" ? n1[o] : Ya[o];
|
|
1431
|
-
return j(
|
|
1431
|
+
return j(An, s, "ui-border-default");
|
|
1432
1432
|
}
|
|
1433
|
-
return j(
|
|
1434
|
-
}, to = (e, i) => e ? Ka : i ? Xa[i] ?? i1 : i1,
|
|
1433
|
+
return j(An, t1, "ui-border-default");
|
|
1434
|
+
}, to = (e, i) => e ? Ka : i ? Xa[i] ?? i1 : i1, Gn = (e, i, o, t, n, s, a, u, l) => j(
|
|
1435
1435
|
// Layout base
|
|
1436
1436
|
"ui-flex ui-items-center ui-justify-center",
|
|
1437
1437
|
// Tipografía
|
|
@@ -1449,7 +1449,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1449
1449
|
t && n && Wa,
|
|
1450
1450
|
// Clases personalizadas
|
|
1451
1451
|
s
|
|
1452
|
-
), iu = (e, i = Qa) => e.slice(0, i).toUpperCase(),
|
|
1452
|
+
), iu = (e, i = Qa) => e.slice(0, i).toUpperCase(), Vn = (e) => {
|
|
1453
1453
|
try {
|
|
1454
1454
|
return new URL(e), !0;
|
|
1455
1455
|
} catch {
|
|
@@ -1473,7 +1473,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1473
1473
|
sm: "xs",
|
|
1474
1474
|
md: "xs",
|
|
1475
1475
|
lg: "xs"
|
|
1476
|
-
},
|
|
1476
|
+
}, qn = ({
|
|
1477
1477
|
type: e = "color",
|
|
1478
1478
|
color: i = "brand",
|
|
1479
1479
|
size: o = "md",
|
|
@@ -1550,7 +1550,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1550
1550
|
h(!0), d(!1), p.current && clearTimeout(p.current);
|
|
1551
1551
|
};
|
|
1552
1552
|
Y(() => {
|
|
1553
|
-
if (p.current && clearTimeout(p.current), !e || !
|
|
1553
|
+
if (p.current && clearTimeout(p.current), !e || !Vn(e)) {
|
|
1554
1554
|
d(!0), h(!1);
|
|
1555
1555
|
return;
|
|
1556
1556
|
}
|
|
@@ -1576,17 +1576,17 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1576
1576
|
}, L = (l == null ? void 0 : l.size) || v[o] || "md";
|
|
1577
1577
|
if (!C) {
|
|
1578
1578
|
const y = j(
|
|
1579
|
-
|
|
1579
|
+
Gn(o, t, n, s, a, u, "people"),
|
|
1580
1580
|
s ? r1 : "ui-bg-surface-disabled",
|
|
1581
1581
|
"ui-text-disabled"
|
|
1582
1582
|
), M = W1[o];
|
|
1583
1583
|
return /* @__PURE__ */ b("div", { className: "ui-imj ui-relative ui-inline-flex", children: [
|
|
1584
1584
|
/* @__PURE__ */ r("div", { className: y, children: /* @__PURE__ */ r(Le, { name: J1, size: M, color: "current" }) }),
|
|
1585
|
-
l && /* @__PURE__ */ r(
|
|
1585
|
+
l && /* @__PURE__ */ r(qn, { ...l, size: L })
|
|
1586
1586
|
] });
|
|
1587
1587
|
}
|
|
1588
1588
|
const w = j(
|
|
1589
|
-
|
|
1589
|
+
Gn(o, t, n, s, a, u, "people"),
|
|
1590
1590
|
s && r1
|
|
1591
1591
|
);
|
|
1592
1592
|
return /* @__PURE__ */ b("div", { className: "ui-imj ui-relative ui-inline-flex", children: [
|
|
@@ -1607,7 +1607,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1607
1607
|
loading: "lazy"
|
|
1608
1608
|
}
|
|
1609
1609
|
) }),
|
|
1610
|
-
l && /* @__PURE__ */ r(
|
|
1610
|
+
l && /* @__PURE__ */ r(qn, { ...l, size: L })
|
|
1611
1611
|
] });
|
|
1612
1612
|
}, lu = ({
|
|
1613
1613
|
theme: e = Mr,
|
|
@@ -1634,7 +1634,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1634
1634
|
"div",
|
|
1635
1635
|
{
|
|
1636
1636
|
className: j(
|
|
1637
|
-
|
|
1637
|
+
Gn(
|
|
1638
1638
|
o,
|
|
1639
1639
|
t,
|
|
1640
1640
|
n,
|
|
@@ -1657,7 +1657,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1657
1657
|
)
|
|
1658
1658
|
}
|
|
1659
1659
|
),
|
|
1660
|
-
f && /* @__PURE__ */ r(
|
|
1660
|
+
f && /* @__PURE__ */ r(qn, { ...f, size: p })
|
|
1661
1661
|
] });
|
|
1662
1662
|
}, cu = ({
|
|
1663
1663
|
text: e,
|
|
@@ -1684,7 +1684,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1684
1684
|
"div",
|
|
1685
1685
|
{
|
|
1686
1686
|
className: j(
|
|
1687
|
-
|
|
1687
|
+
Gn(
|
|
1688
1688
|
t,
|
|
1689
1689
|
n,
|
|
1690
1690
|
s,
|
|
@@ -1700,7 +1700,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1700
1700
|
children: c
|
|
1701
1701
|
}
|
|
1702
1702
|
),
|
|
1703
|
-
f && /* @__PURE__ */ r(
|
|
1703
|
+
f && /* @__PURE__ */ r(qn, { ...f, size: p })
|
|
1704
1704
|
] });
|
|
1705
1705
|
}, du = ({
|
|
1706
1706
|
stack: e,
|
|
@@ -1750,13 +1750,13 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1750
1750
|
{
|
|
1751
1751
|
className: "ui-shrink-0",
|
|
1752
1752
|
style: h < u.length - 1 || l > 0 ? { marginRight: `${f[i]}px` } : void 0,
|
|
1753
|
-
children: /* @__PURE__ */ r(
|
|
1753
|
+
children: /* @__PURE__ */ r(St, { ...m, size: p })
|
|
1754
1754
|
},
|
|
1755
1755
|
h
|
|
1756
1756
|
);
|
|
1757
1757
|
}),
|
|
1758
1758
|
l > 0 && /* @__PURE__ */ r("div", { className: "ui-shrink-0", children: /* @__PURE__ */ r(
|
|
1759
|
-
|
|
1759
|
+
St,
|
|
1760
1760
|
{
|
|
1761
1761
|
type: "letter",
|
|
1762
1762
|
text: `+${l}`,
|
|
@@ -1769,7 +1769,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1769
1769
|
]
|
|
1770
1770
|
}
|
|
1771
1771
|
);
|
|
1772
|
-
},
|
|
1772
|
+
}, St = (e) => {
|
|
1773
1773
|
if ("stack" in e && e.stack)
|
|
1774
1774
|
return /* @__PURE__ */ r(du, { ...e });
|
|
1775
1775
|
const i = e;
|
|
@@ -1783,7 +1783,7 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1783
1783
|
default:
|
|
1784
1784
|
return null;
|
|
1785
1785
|
}
|
|
1786
|
-
}, pu = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 :
|
|
1786
|
+
}, pu = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1, en = ({
|
|
1787
1787
|
slot: e,
|
|
1788
1788
|
className: i,
|
|
1789
1789
|
colorIcon: o,
|
|
@@ -1819,9 +1819,9 @@ const J1 = ls, xr = "blue", Mr = "solid", li = "md", Ga = {
|
|
|
1819
1819
|
);
|
|
1820
1820
|
if (typeof e == "string") {
|
|
1821
1821
|
if (pu(e))
|
|
1822
|
-
return /* @__PURE__ */ r(
|
|
1822
|
+
return /* @__PURE__ */ r(St, { type: "people", src: e, className: i, size: C });
|
|
1823
1823
|
const L = (a || e || "?").toString();
|
|
1824
|
-
return /* @__PURE__ */ r(
|
|
1824
|
+
return /* @__PURE__ */ r(St, { type: "letter", text: L, className: i, size: C });
|
|
1825
1825
|
}
|
|
1826
1826
|
return null;
|
|
1827
1827
|
};
|
|
@@ -2000,7 +2000,7 @@ const jt = ({
|
|
|
2000
2000
|
md: "xs",
|
|
2001
2001
|
lg: "sm",
|
|
2002
2002
|
dot: "xs"
|
|
2003
|
-
},
|
|
2003
|
+
}, pe = y && (t === "lg" || t === "md" || t === "sm") ? "ui-gap-4" : "", F = () => y ? l != null ? /* @__PURE__ */ r("span", { className: "ui-inline-flex ui-shrink-0 ui-items-center ui-justify-center", "aria-hidden": !0, children: l }) : u == null ? null : /* @__PURE__ */ r(
|
|
2004
2004
|
Le,
|
|
2005
2005
|
{
|
|
2006
2006
|
name: u,
|
|
@@ -2060,17 +2060,17 @@ const jt = ({
|
|
|
2060
2060
|
K,
|
|
2061
2061
|
Z,
|
|
2062
2062
|
$,
|
|
2063
|
-
|
|
2063
|
+
pe,
|
|
2064
2064
|
m ? ne[t] || ne.sm : "",
|
|
2065
2065
|
// Aplicar tamaño mínimo cuando está en loading
|
|
2066
2066
|
a
|
|
2067
2067
|
),
|
|
2068
2068
|
style: me,
|
|
2069
2069
|
...v,
|
|
2070
|
-
children: m ? ie() : /* @__PURE__ */ b(
|
|
2070
|
+
children: m ? ie() : /* @__PURE__ */ b(Ze, { children: [
|
|
2071
2071
|
!x && F(),
|
|
2072
2072
|
!x && (g ? /* @__PURE__ */ r(
|
|
2073
|
-
|
|
2073
|
+
xt,
|
|
2074
2074
|
{
|
|
2075
2075
|
truncate: !0,
|
|
2076
2076
|
title: L,
|
|
@@ -2248,7 +2248,7 @@ const _t = (e, i) => {
|
|
|
2248
2248
|
iconDuotoneOpacitySecondary: $,
|
|
2249
2249
|
leftSlotDuotonePrimary: K,
|
|
2250
2250
|
leftSlotDuotoneSecondary: ee,
|
|
2251
|
-
leftSlotDuotoneOpacityPrimary:
|
|
2251
|
+
leftSlotDuotoneOpacityPrimary: pe,
|
|
2252
2252
|
leftSlotDuotoneOpacitySecondary: F,
|
|
2253
2253
|
rightSlotDuotonePrimary: ne,
|
|
2254
2254
|
rightSlotDuotoneSecondary: ie,
|
|
@@ -2268,24 +2268,24 @@ const _t = (e, i) => {
|
|
|
2268
2268
|
classNameTooltip: Ce,
|
|
2269
2269
|
stopPropagation: se = !0,
|
|
2270
2270
|
pointer: be = !0,
|
|
2271
|
-
onClick:
|
|
2271
|
+
onClick: Ne,
|
|
2272
2272
|
pill: he = "sm",
|
|
2273
|
-
textAlign:
|
|
2274
|
-
whiteBackground:
|
|
2275
|
-
strokeWidth:
|
|
2276
|
-
transition:
|
|
2277
|
-
classNameIcon:
|
|
2273
|
+
textAlign: Te = "center",
|
|
2274
|
+
whiteBackground: de = !0,
|
|
2275
|
+
strokeWidth: Ie = 2,
|
|
2276
|
+
transition: Fe = !0,
|
|
2277
|
+
classNameIcon: Ae = "",
|
|
2278
2278
|
active: Re = !1,
|
|
2279
2279
|
// Nuevo sistema de configuraciones
|
|
2280
|
-
iconProps:
|
|
2281
|
-
badge:
|
|
2282
|
-
leftSlotProps:
|
|
2283
|
-
rightSlotProps:
|
|
2284
|
-
tooltipProps:
|
|
2285
|
-
...
|
|
2286
|
-
},
|
|
2280
|
+
iconProps: _e,
|
|
2281
|
+
badge: Be,
|
|
2282
|
+
leftSlotProps: ot,
|
|
2283
|
+
rightSlotProps: vt,
|
|
2284
|
+
tooltipProps: Je,
|
|
2285
|
+
...Ve
|
|
2286
|
+
}, Ue) {
|
|
2287
2287
|
gu({ theme: a, size: D, color: w, pill: he, as: U, link: N });
|
|
2288
|
-
const
|
|
2288
|
+
const bt = {
|
|
2289
2289
|
disabled: P
|
|
2290
2290
|
}, Ke = S && typeof S == "object" && !ye.isValidElement(S) && "icon" in S && ("color" in S || "size" in S || "show" in S || "onClick" in S || "className" in S || "strokeWidth" in S || "background" in S || "backgroundColor" in S || "backgroundSize" in S || "padding" in S), tt = Ke ? S : void 0, qe = Ke ? void 0 : ro({
|
|
2291
2291
|
icon: S,
|
|
@@ -2294,10 +2294,10 @@ const _t = (e, i) => {
|
|
|
2294
2294
|
iconDuotoneOpacityPrimary: Z,
|
|
2295
2295
|
iconDuotoneOpacitySecondary: $,
|
|
2296
2296
|
colorIcon: R,
|
|
2297
|
-
classNameIcon:
|
|
2298
|
-
strokeWidth:
|
|
2297
|
+
classNameIcon: Ae,
|
|
2298
|
+
strokeWidth: Ie,
|
|
2299
2299
|
onClickIcon: H
|
|
2300
|
-
}),
|
|
2300
|
+
}), Lt = fu({
|
|
2301
2301
|
badgeColor: u,
|
|
2302
2302
|
badgeLabel: l,
|
|
2303
2303
|
badgeTheme: f,
|
|
@@ -2309,11 +2309,11 @@ const _t = (e, i) => {
|
|
|
2309
2309
|
badgeIconDuotoneOpacityPrimary: g,
|
|
2310
2310
|
badgeIconDuotoneOpacitySecondary: C,
|
|
2311
2311
|
badgeLoading: v
|
|
2312
|
-
}), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0,
|
|
2312
|
+
}), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, Ge = st ? void 0 : hu({
|
|
2313
2313
|
leftSlot: n,
|
|
2314
2314
|
leftSlotDuotonePrimary: K,
|
|
2315
2315
|
leftSlotDuotoneSecondary: ee,
|
|
2316
|
-
leftSlotDuotoneOpacityPrimary:
|
|
2316
|
+
leftSlotDuotoneOpacityPrimary: pe,
|
|
2317
2317
|
leftSlotDuotoneOpacitySecondary: F,
|
|
2318
2318
|
onClickLeftSlot: T,
|
|
2319
2319
|
colorIcon: R
|
|
@@ -2325,14 +2325,14 @@ const _t = (e, i) => {
|
|
|
2325
2325
|
rightSlotDuotoneOpacitySecondary: fe,
|
|
2326
2326
|
onClickRightSlot: z,
|
|
2327
2327
|
colorIcon: R
|
|
2328
|
-
}),
|
|
2328
|
+
}), ze = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = ze ? J : void 0, Xe = ze ? void 0 : oo({
|
|
2329
2329
|
tooltip: J,
|
|
2330
2330
|
tooltipPosition: ae,
|
|
2331
2331
|
tooltipAlignment: ge,
|
|
2332
2332
|
tooltipDelay: ve,
|
|
2333
2333
|
tooltipAbsolute: _,
|
|
2334
2334
|
classNameTooltip: Ce
|
|
2335
|
-
}), W =
|
|
2335
|
+
}), W = _e || tt || qe || (S && !Ke && !ye.isValidElement(S) ? { icon: S, show: !0 } : void 0), Q = Be || Lt, xe = ot || Bt || Ge, Me = vt || je || re, De = Je || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) || typeof S == "string" || typeof S == "object" && S !== null && "icon" in S ? S : void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, kt = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Pe = (De == null ? void 0 : De.label) || (ze ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(kt), {
|
|
2336
2336
|
displayText: ji,
|
|
2337
2337
|
textStyle: Ni,
|
|
2338
2338
|
measureRef: Ii,
|
|
@@ -2346,14 +2346,14 @@ const _t = (e, i) => {
|
|
|
2346
2346
|
badgeFinishedLoading: ki,
|
|
2347
2347
|
size: D,
|
|
2348
2348
|
textColor: x,
|
|
2349
|
-
textAlign:
|
|
2349
|
+
textAlign: Te
|
|
2350
2350
|
}), Vt = G1(
|
|
2351
2351
|
Dt,
|
|
2352
2352
|
Ut,
|
|
2353
2353
|
Gt,
|
|
2354
2354
|
nn,
|
|
2355
|
-
|
|
2356
|
-
), kn = Y1(
|
|
2355
|
+
kt
|
|
2356
|
+
), kn = Y1(kt, nn), jn = q1(
|
|
2357
2357
|
Mn,
|
|
2358
2358
|
Dt,
|
|
2359
2359
|
w
|
|
@@ -2366,7 +2366,7 @@ const _t = (e, i) => {
|
|
|
2366
2366
|
pill: he,
|
|
2367
2367
|
clickable: I,
|
|
2368
2368
|
borderable: G,
|
|
2369
|
-
whiteBackground:
|
|
2369
|
+
whiteBackground: de,
|
|
2370
2370
|
active: Re,
|
|
2371
2371
|
square: k,
|
|
2372
2372
|
icon: !!Ht,
|
|
@@ -2374,14 +2374,14 @@ const _t = (e, i) => {
|
|
|
2374
2374
|
shouldShowBadge: Vt,
|
|
2375
2375
|
showShadow: X,
|
|
2376
2376
|
pointer: be,
|
|
2377
|
-
transition:
|
|
2377
|
+
transition: Fe,
|
|
2378
2378
|
classNameId: te,
|
|
2379
2379
|
className: i,
|
|
2380
2380
|
isIconVariant: Mi,
|
|
2381
2381
|
defaultSizeIcon: we
|
|
2382
|
-
}),
|
|
2383
|
-
se && Nn.stopPropagation(),
|
|
2384
|
-
}, an = () => /* @__PURE__ */ b(
|
|
2382
|
+
}), Pn = (Nn) => {
|
|
2383
|
+
se && Nn.stopPropagation(), Ne && Ne(Nn);
|
|
2384
|
+
}, an = () => /* @__PURE__ */ b(Ze, { children: [
|
|
2385
2385
|
(xe == null ? void 0 : xe.show) !== !1 && /* @__PURE__ */ r(
|
|
2386
2386
|
no,
|
|
2387
2387
|
{
|
|
@@ -2391,11 +2391,11 @@ const _t = (e, i) => {
|
|
|
2391
2391
|
colorIcon: (xe == null ? void 0 : xe.colorIcon) || R,
|
|
2392
2392
|
className: i,
|
|
2393
2393
|
disabled: P,
|
|
2394
|
-
strokeWidth:
|
|
2394
|
+
strokeWidth: Ie,
|
|
2395
2395
|
onClickLeftSlot: (xe == null ? void 0 : xe.onClick) || T,
|
|
2396
2396
|
leftSlotDuotonePrimary: (xe == null ? void 0 : xe.iconDuotonePrimary) || K,
|
|
2397
2397
|
leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) || ee,
|
|
2398
|
-
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) ||
|
|
2398
|
+
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || pe,
|
|
2399
2399
|
leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) || F,
|
|
2400
2400
|
hasChildren: lt
|
|
2401
2401
|
}
|
|
@@ -2407,7 +2407,7 @@ const _t = (e, i) => {
|
|
|
2407
2407
|
hasSlots: !!(ue || Se),
|
|
2408
2408
|
textStyle: Ni,
|
|
2409
2409
|
textColor: x,
|
|
2410
|
-
textAlign:
|
|
2410
|
+
textAlign: Te,
|
|
2411
2411
|
measureRef: Ii,
|
|
2412
2412
|
textRef: Oi,
|
|
2413
2413
|
measureSpanClassName: Hi
|
|
@@ -2427,7 +2427,7 @@ const _t = (e, i) => {
|
|
|
2427
2427
|
badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
|
|
2428
2428
|
badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
|
|
2429
2429
|
badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
|
|
2430
|
-
badgeLoading:
|
|
2430
|
+
badgeLoading: kt,
|
|
2431
2431
|
isAbsolute: !1
|
|
2432
2432
|
}
|
|
2433
2433
|
),
|
|
@@ -2440,7 +2440,7 @@ const _t = (e, i) => {
|
|
|
2440
2440
|
colorIcon: (Me == null ? void 0 : Me.colorIcon) || R,
|
|
2441
2441
|
className: i,
|
|
2442
2442
|
disabled: P,
|
|
2443
|
-
strokeWidth:
|
|
2443
|
+
strokeWidth: Ie,
|
|
2444
2444
|
onClickRightSlot: (Me == null ? void 0 : Me.onClick) || z,
|
|
2445
2445
|
rightSlotDuotonePrimary: (Me == null ? void 0 : Me.iconDuotonePrimary) || ne,
|
|
2446
2446
|
rightSlotDuotoneSecondary: (Me == null ? void 0 : Me.iconDuotoneSecondary) || ie,
|
|
@@ -2456,9 +2456,9 @@ const _t = (e, i) => {
|
|
|
2456
2456
|
size: D,
|
|
2457
2457
|
color: w,
|
|
2458
2458
|
colorIcon: (W == null ? void 0 : W.color) || R,
|
|
2459
|
-
classNameIcon: (W == null ? void 0 : W.className) ||
|
|
2459
|
+
classNameIcon: (W == null ? void 0 : W.className) || Ae,
|
|
2460
2460
|
theme: a,
|
|
2461
|
-
onClick:
|
|
2461
|
+
onClick: Ne,
|
|
2462
2462
|
onClickIcon: (W == null ? void 0 : W.onClick) || H,
|
|
2463
2463
|
iconFontSize: W == null ? void 0 : W.size,
|
|
2464
2464
|
background: W == null ? void 0 : W.background,
|
|
@@ -2485,19 +2485,19 @@ const _t = (e, i) => {
|
|
|
2485
2485
|
badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
|
|
2486
2486
|
badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
|
|
2487
2487
|
badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
|
|
2488
|
-
badgeLoading:
|
|
2488
|
+
badgeLoading: kt,
|
|
2489
2489
|
isAbsolute: !0
|
|
2490
2490
|
}
|
|
2491
2491
|
);
|
|
2492
2492
|
return N ? /* @__PURE__ */ b(
|
|
2493
2493
|
"a",
|
|
2494
2494
|
{
|
|
2495
|
-
ref:
|
|
2495
|
+
ref: Ue,
|
|
2496
2496
|
href: N,
|
|
2497
2497
|
target: O,
|
|
2498
2498
|
rel: O === "_blank" ? "noopener noreferrer" : void 0,
|
|
2499
2499
|
className: j(sn, i),
|
|
2500
|
-
onClick:
|
|
2500
|
+
onClick: Pn,
|
|
2501
2501
|
onMouseEnter: rn,
|
|
2502
2502
|
onMouseLeave: on,
|
|
2503
2503
|
children: [
|
|
@@ -2508,7 +2508,7 @@ const _t = (e, i) => {
|
|
|
2508
2508
|
) : U === "div" ? /* @__PURE__ */ r(
|
|
2509
2509
|
It,
|
|
2510
2510
|
{
|
|
2511
|
-
label:
|
|
2511
|
+
label: Pe || "",
|
|
2512
2512
|
position: We,
|
|
2513
2513
|
alignment: et,
|
|
2514
2514
|
absolute: Yt,
|
|
@@ -2518,15 +2518,15 @@ const _t = (e, i) => {
|
|
|
2518
2518
|
children: /* @__PURE__ */ b(
|
|
2519
2519
|
"div",
|
|
2520
2520
|
{
|
|
2521
|
-
ref:
|
|
2521
|
+
ref: Ue,
|
|
2522
2522
|
className: j(sn, i),
|
|
2523
2523
|
role: I && !P ? "button" : void 0,
|
|
2524
2524
|
tabIndex: I && !P ? 0 : void 0,
|
|
2525
2525
|
"aria-disabled": P,
|
|
2526
|
-
"aria-label": !lt && S ?
|
|
2526
|
+
"aria-label": !lt && S ? Pe || "Button" : void 0,
|
|
2527
2527
|
onMouseEnter: rn,
|
|
2528
2528
|
onMouseLeave: on,
|
|
2529
|
-
...
|
|
2529
|
+
...Ve,
|
|
2530
2530
|
children: [
|
|
2531
2531
|
an(),
|
|
2532
2532
|
un()
|
|
@@ -2537,7 +2537,7 @@ const _t = (e, i) => {
|
|
|
2537
2537
|
) : /* @__PURE__ */ r(
|
|
2538
2538
|
It,
|
|
2539
2539
|
{
|
|
2540
|
-
label:
|
|
2540
|
+
label: Pe || "",
|
|
2541
2541
|
position: We,
|
|
2542
2542
|
alignment: et,
|
|
2543
2543
|
delay: $t,
|
|
@@ -2546,13 +2546,13 @@ const _t = (e, i) => {
|
|
|
2546
2546
|
children: /* @__PURE__ */ b(
|
|
2547
2547
|
"button",
|
|
2548
2548
|
{
|
|
2549
|
-
ref:
|
|
2549
|
+
ref: Ue,
|
|
2550
2550
|
className: j(sn, i),
|
|
2551
|
-
"aria-label": !lt && S ?
|
|
2551
|
+
"aria-label": !lt && S ? Pe || "Button" : void 0,
|
|
2552
2552
|
"aria-disabled": P,
|
|
2553
|
-
...
|
|
2554
|
-
...
|
|
2555
|
-
onClick:
|
|
2553
|
+
...bt,
|
|
2554
|
+
...Ve,
|
|
2555
|
+
onClick: Pn,
|
|
2556
2556
|
onMouseEnter: rn,
|
|
2557
2557
|
onMouseLeave: on,
|
|
2558
2558
|
children: [
|
|
@@ -2725,7 +2725,7 @@ const Cu = ({
|
|
|
2725
2725
|
"bottom-right": "ui-fixed ui-bottom-5 ui-right-5"
|
|
2726
2726
|
})[n],
|
|
2727
2727
|
getIconForType: (n) => ({
|
|
2728
|
-
success:
|
|
2728
|
+
success: Un,
|
|
2729
2729
|
danger: ds,
|
|
2730
2730
|
warning: cs,
|
|
2731
2731
|
info: Kr,
|
|
@@ -2758,7 +2758,7 @@ const Cu = ({
|
|
|
2758
2758
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-1 ui-items-start ui-justify-between ui-gap-8", children: [
|
|
2759
2759
|
e.avatar ? (
|
|
2760
2760
|
// Avatar con imagen de persona
|
|
2761
|
-
/* @__PURE__ */ r(
|
|
2761
|
+
/* @__PURE__ */ r(St, { type: "people", src: e.avatar, size: "xs", className: "ui-flex-shrink-0" })
|
|
2762
2762
|
) : o ? (
|
|
2763
2763
|
// Icono con fondo circular para variante outlined (comportamiento anterior)
|
|
2764
2764
|
/* @__PURE__ */ r(
|
|
@@ -2814,7 +2814,7 @@ const Cu = ({
|
|
|
2814
2814
|
e.showCloseButton && /* @__PURE__ */ r(
|
|
2815
2815
|
ke,
|
|
2816
2816
|
{
|
|
2817
|
-
icon:
|
|
2817
|
+
icon: Mt,
|
|
2818
2818
|
size: "xxs",
|
|
2819
2819
|
pill: "pill",
|
|
2820
2820
|
color: "tertiary",
|
|
@@ -3006,7 +3006,7 @@ const wu = ({
|
|
|
3006
3006
|
warning: "ui-bg-fill-warning-selected",
|
|
3007
3007
|
info: "ui-bg-fill-info-selected",
|
|
3008
3008
|
neutral: "ui-bg-fill-tertiary-selected"
|
|
3009
|
-
},
|
|
3009
|
+
}, Yn = rt(
|
|
3010
3010
|
({
|
|
3011
3011
|
progress: e = 0,
|
|
3012
3012
|
size: i = "xxs",
|
|
@@ -3044,7 +3044,7 @@ const wu = ({
|
|
|
3044
3044
|
) });
|
|
3045
3045
|
}
|
|
3046
3046
|
);
|
|
3047
|
-
|
|
3047
|
+
Yn.displayName = "BarProgress";
|
|
3048
3048
|
const Zi = rt(
|
|
3049
3049
|
({ label: e, value: i, suffix: o = "", className: t }) => typeof i == "number" ? /* @__PURE__ */ b(
|
|
3050
3050
|
"span",
|
|
@@ -3082,7 +3082,7 @@ const lo = rt(({ children: e, type: i = "custom", className: o }) => {
|
|
|
3082
3082
|
return /* @__PURE__ */ r("p", { className: t, children: e });
|
|
3083
3083
|
});
|
|
3084
3084
|
lo.displayName = "HelperText";
|
|
3085
|
-
const
|
|
3085
|
+
const Ee = ye.forwardRef(function({
|
|
3086
3086
|
className: i,
|
|
3087
3087
|
fullWidth: o = !1,
|
|
3088
3088
|
leftSlot: t,
|
|
@@ -3153,7 +3153,7 @@ const Te = ye.forwardRef(function({
|
|
|
3153
3153
|
}
|
|
3154
3154
|
);
|
|
3155
3155
|
});
|
|
3156
|
-
|
|
3156
|
+
Ee.displayName = "Button";
|
|
3157
3157
|
const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
|
|
3158
3158
|
const [t, n] = A(e), s = q(null), a = q(0), u = q(!1), l = q(o), f = 16;
|
|
3159
3159
|
Y(() => {
|
|
@@ -3264,13 +3264,13 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
),
|
|
3266
3266
|
a && /* @__PURE__ */ r(
|
|
3267
|
-
|
|
3267
|
+
Ee,
|
|
3268
3268
|
{
|
|
3269
3269
|
theme: "solid",
|
|
3270
3270
|
color: "tertiary",
|
|
3271
3271
|
size: "xxs",
|
|
3272
3272
|
pill: "pill",
|
|
3273
|
-
icon:
|
|
3273
|
+
icon: Mt,
|
|
3274
3274
|
onClick: k,
|
|
3275
3275
|
className: "ui-rounded-control-pill ui-p-2",
|
|
3276
3276
|
"aria-label": "Cerrar"
|
|
@@ -3281,7 +3281,7 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
|
|
|
3281
3281
|
d ? /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-gap-8", children: [
|
|
3282
3282
|
t && o && /* @__PURE__ */ r(Zi, { label: o, className: "ui-shrink-0" }),
|
|
3283
3283
|
/* @__PURE__ */ r(
|
|
3284
|
-
|
|
3284
|
+
Yn,
|
|
3285
3285
|
{
|
|
3286
3286
|
progress: y,
|
|
3287
3287
|
size: I,
|
|
@@ -3294,14 +3294,14 @@ const Su = ["xxs", "xs", "sm", "md", "lg"], ku = (e, i, o) => {
|
|
|
3294
3294
|
H()
|
|
3295
3295
|
] }) : (
|
|
3296
3296
|
/* ===== MODO NORMAL: Header arriba, barra abajo ===== */
|
|
3297
|
-
/* @__PURE__ */ b(
|
|
3297
|
+
/* @__PURE__ */ b(Ze, { children: [
|
|
3298
3298
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-justify-between", children: [
|
|
3299
3299
|
t && o && /* @__PURE__ */ r(Zi, { label: o }),
|
|
3300
3300
|
/* @__PURE__ */ r("div", { className: "ui-min-h-px ui-flex-1" }),
|
|
3301
3301
|
H()
|
|
3302
3302
|
] }),
|
|
3303
3303
|
/* @__PURE__ */ r(
|
|
3304
|
-
|
|
3304
|
+
Yn,
|
|
3305
3305
|
{
|
|
3306
3306
|
progress: y,
|
|
3307
3307
|
size: I,
|
|
@@ -3660,7 +3660,7 @@ const po = ({
|
|
|
3660
3660
|
infoTooltip: $ = "",
|
|
3661
3661
|
pill: K = "sm",
|
|
3662
3662
|
...ee
|
|
3663
|
-
},
|
|
3663
|
+
}, pe) => {
|
|
3664
3664
|
const {
|
|
3665
3665
|
value: F,
|
|
3666
3666
|
setValue: ne,
|
|
@@ -3690,13 +3690,13 @@ const po = ({
|
|
|
3690
3690
|
pill: K
|
|
3691
3691
|
});
|
|
3692
3692
|
Ou({
|
|
3693
|
-
ref:
|
|
3693
|
+
ref: pe,
|
|
3694
3694
|
currentValue: F,
|
|
3695
3695
|
setValue: ne,
|
|
3696
3696
|
isControlled: ie,
|
|
3697
3697
|
inputId: ee.id
|
|
3698
3698
|
});
|
|
3699
|
-
const te = ((J) => !J || typeof J != "string" ? !1 : J.startsWith("data:") || J.startsWith("blob:") ? !0 :
|
|
3699
|
+
const te = ((J) => !J || typeof J != "string" ? !1 : J.startsWith("data:") || J.startsWith("blob:") ? !0 : Vn(J))(s);
|
|
3700
3700
|
return /* @__PURE__ */ b(
|
|
3701
3701
|
"div",
|
|
3702
3702
|
{
|
|
@@ -3710,7 +3710,7 @@ const po = ({
|
|
|
3710
3710
|
(e || $) && /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
|
|
3711
3711
|
e && /* @__PURE__ */ r("label", { className: we, children: e }),
|
|
3712
3712
|
$ && /* @__PURE__ */ r(
|
|
3713
|
-
|
|
3713
|
+
Ee,
|
|
3714
3714
|
{
|
|
3715
3715
|
theme: "solid",
|
|
3716
3716
|
size: "xs",
|
|
@@ -3850,14 +3850,14 @@ const ho = (e, i = {}) => {
|
|
|
3850
3850
|
return () => clearTimeout(l);
|
|
3851
3851
|
}
|
|
3852
3852
|
}, [e, o, t]), { isVisible: n, isAnimating: a };
|
|
3853
|
-
},
|
|
3854
|
-
typeof document > "u" || (document.body.style.overflow =
|
|
3853
|
+
}, $n = /* @__PURE__ */ new Set(), o1 = () => {
|
|
3854
|
+
typeof document > "u" || (document.body.style.overflow = $n.size > 0 ? "hidden" : "");
|
|
3855
3855
|
}, mo = (e) => {
|
|
3856
3856
|
const i = typeof window < "u", o = oi();
|
|
3857
3857
|
Y(() => {
|
|
3858
3858
|
if (i)
|
|
3859
|
-
return e ?
|
|
3860
|
-
|
|
3859
|
+
return e ? $n.add(o) : $n.delete(o), o1(), () => {
|
|
3860
|
+
$n.delete(o), o1();
|
|
3861
3861
|
};
|
|
3862
3862
|
}, [e, i, o]);
|
|
3863
3863
|
};
|
|
@@ -4148,13 +4148,13 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4148
4148
|
}, Lo = si(null), Eu = (e, i) => {
|
|
4149
4149
|
const o = [];
|
|
4150
4150
|
return i && i.show !== !1 && o.push({ ...i, id: i.id || "footer-secondary" }), e && e.show !== !1 && o.push({ ...e, id: e.id || "footer-primary" }), o;
|
|
4151
|
-
},
|
|
4151
|
+
}, Tn = (e, i) => {
|
|
4152
4152
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
4153
4153
|
`[Modal] La prop "${e}" está deprecada y será removida en una versión futura. Por favor, usa "${i}" en su lugar. `
|
|
4154
4154
|
);
|
|
4155
4155
|
}, Pu = (e) => {
|
|
4156
4156
|
if (e.icon)
|
|
4157
|
-
return
|
|
4157
|
+
return Tn("icon / iconDuotonePrimary / iconDuotoneSecondary", "iconConfig"), {
|
|
4158
4158
|
icon: e.icon,
|
|
4159
4159
|
show: !0,
|
|
4160
4160
|
iconDuotonePrimary: e.iconDuotonePrimary,
|
|
@@ -4164,7 +4164,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4164
4164
|
};
|
|
4165
4165
|
}, zu = (e) => {
|
|
4166
4166
|
if (!(!e.headerButtonOnClick && !e.headerButtonIcon))
|
|
4167
|
-
return
|
|
4167
|
+
return Tn("headerButtonIcon / headerButtonOnClick", "headerButton"), {
|
|
4168
4168
|
id: "header-button",
|
|
4169
4169
|
icon: e.headerButtonIcon,
|
|
4170
4170
|
onClick: e.headerButtonOnClick,
|
|
@@ -4180,7 +4180,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4180
4180
|
};
|
|
4181
4181
|
}, Au = (e) => {
|
|
4182
4182
|
if (e.badgeLabel)
|
|
4183
|
-
return
|
|
4183
|
+
return Tn("badgeIcon / badgeLabel", "badge"), {
|
|
4184
4184
|
id: "badge",
|
|
4185
4185
|
label: e.badgeLabel,
|
|
4186
4186
|
icon: e.badgeIcon,
|
|
@@ -4194,7 +4194,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4194
4194
|
};
|
|
4195
4195
|
}, Ru = (e) => {
|
|
4196
4196
|
if (!(!e.footerButtonOnClick && !e.footerButtonIcon))
|
|
4197
|
-
return
|
|
4197
|
+
return Tn("footerButtonIcon / footerButtonOnClick", "footerAuxButton"), {
|
|
4198
4198
|
id: "footer-aux-button",
|
|
4199
4199
|
icon: e.footerButtonIcon,
|
|
4200
4200
|
onClick: e.footerButtonOnClick,
|
|
@@ -4209,7 +4209,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4209
4209
|
iconDuotoneOpacitySecondary: e.footerButtonIconDuotoneOpacitySecondary
|
|
4210
4210
|
};
|
|
4211
4211
|
}, Bu = (e) => {
|
|
4212
|
-
(e.showCancelButton || e.showSuccessButton) &&
|
|
4212
|
+
(e.showCancelButton || e.showSuccessButton) && Tn(
|
|
4213
4213
|
"cancelButtonText / successButtonText / onCancel / onSuccess",
|
|
4214
4214
|
"footerPrimaryButton (success) / footerSecondaryButton (cancel)"
|
|
4215
4215
|
);
|
|
@@ -4282,7 +4282,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4282
4282
|
footerButtonIconDuotonePrimary: $,
|
|
4283
4283
|
footerButtonIconDuotoneSecondary: K,
|
|
4284
4284
|
footerButtonIconDuotoneOpacityPrimary: ee,
|
|
4285
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4285
|
+
footerButtonIconDuotoneOpacitySecondary: pe,
|
|
4286
4286
|
footerButtonOnClick: F,
|
|
4287
4287
|
cancelButtonSlotLeft: ne,
|
|
4288
4288
|
successButtonSlotRight: ie,
|
|
@@ -4301,8 +4301,8 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4301
4301
|
Y(() => {
|
|
4302
4302
|
O !== void 0 && ve(O);
|
|
4303
4303
|
}, [O]);
|
|
4304
|
-
const _ = (
|
|
4305
|
-
ve(
|
|
4304
|
+
const _ = (de) => {
|
|
4305
|
+
ve(de), H && H(de);
|
|
4306
4306
|
}, Ce = oe(() => o ? o.show !== !1 ? o : void 0 : Pu({
|
|
4307
4307
|
icon: h,
|
|
4308
4308
|
iconDuotonePrimary: p,
|
|
@@ -4318,10 +4318,10 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4318
4318
|
C
|
|
4319
4319
|
]), se = oe(() => {
|
|
4320
4320
|
if (n && n.length > 0)
|
|
4321
|
-
return n.filter((
|
|
4321
|
+
return n.filter((Ie) => Ie.show !== !1);
|
|
4322
4322
|
if (t && t.show !== !1)
|
|
4323
4323
|
return [{ ...t, id: t.id || "header-button" }];
|
|
4324
|
-
const
|
|
4324
|
+
const de = zu({
|
|
4325
4325
|
headerButtonIcon: T,
|
|
4326
4326
|
headerButtonIconDuotonePrimary: z,
|
|
4327
4327
|
headerButtonIconDuotoneSecondary: P,
|
|
@@ -4329,7 +4329,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4329
4329
|
headerButtonIconDuotoneOpacitySecondary: E,
|
|
4330
4330
|
headerButtonOnClick: B
|
|
4331
4331
|
});
|
|
4332
|
-
return
|
|
4332
|
+
return de ? [de] : [];
|
|
4333
4333
|
}, [
|
|
4334
4334
|
n,
|
|
4335
4335
|
t,
|
|
@@ -4341,10 +4341,10 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4341
4341
|
B
|
|
4342
4342
|
]), be = oe(() => {
|
|
4343
4343
|
if (a && a.length > 0)
|
|
4344
|
-
return a.filter((
|
|
4344
|
+
return a.filter((Ie) => Ie.show !== !1);
|
|
4345
4345
|
if (s && s.show !== !1)
|
|
4346
4346
|
return [{ ...s, id: s.id || "badge" }];
|
|
4347
|
-
const
|
|
4347
|
+
const de = Au({
|
|
4348
4348
|
badgeIcon: G,
|
|
4349
4349
|
badgeIconDuotonePrimary: le,
|
|
4350
4350
|
badgeIconDuotoneSecondary: we,
|
|
@@ -4352,7 +4352,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4352
4352
|
badgeIconDuotoneOpacitySecondary: te,
|
|
4353
4353
|
badgeLabel: J
|
|
4354
4354
|
});
|
|
4355
|
-
return
|
|
4355
|
+
return de ? [de] : [];
|
|
4356
4356
|
}, [
|
|
4357
4357
|
a,
|
|
4358
4358
|
s,
|
|
@@ -4362,12 +4362,12 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4362
4362
|
U,
|
|
4363
4363
|
te,
|
|
4364
4364
|
J
|
|
4365
|
-
]),
|
|
4365
|
+
]), Ne = oe(() => u ? u.show !== !1 ? u : void 0 : Ru({
|
|
4366
4366
|
footerButtonIcon: Z,
|
|
4367
4367
|
footerButtonIconDuotonePrimary: $,
|
|
4368
4368
|
footerButtonIconDuotoneSecondary: K,
|
|
4369
4369
|
footerButtonIconDuotoneOpacityPrimary: ee,
|
|
4370
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4370
|
+
footerButtonIconDuotoneOpacitySecondary: pe,
|
|
4371
4371
|
footerButtonOnClick: F
|
|
4372
4372
|
}), [
|
|
4373
4373
|
u,
|
|
@@ -4375,13 +4375,13 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4375
4375
|
$,
|
|
4376
4376
|
K,
|
|
4377
4377
|
ee,
|
|
4378
|
-
|
|
4378
|
+
pe,
|
|
4379
4379
|
F
|
|
4380
4380
|
]), he = oe(() => {
|
|
4381
4381
|
if (d && d.length > 0)
|
|
4382
|
-
return d.filter((
|
|
4383
|
-
const
|
|
4384
|
-
return
|
|
4382
|
+
return d.filter((Ie) => Ie.show !== !1);
|
|
4383
|
+
const de = Eu(l, f);
|
|
4384
|
+
return de.length > 0 ? de : Bu({
|
|
4385
4385
|
cancelButtonText: M,
|
|
4386
4386
|
successButtonText: L,
|
|
4387
4387
|
onCancel: y,
|
|
@@ -4413,7 +4413,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4413
4413
|
me,
|
|
4414
4414
|
fe,
|
|
4415
4415
|
X
|
|
4416
|
-
]),
|
|
4416
|
+
]), Te = {
|
|
4417
4417
|
// Nuevo sistema (modelo cerrado)
|
|
4418
4418
|
iconConfig: o,
|
|
4419
4419
|
headerButton: t,
|
|
@@ -4428,7 +4428,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4428
4428
|
processedIcon: Ce,
|
|
4429
4429
|
processedHeaderButtons: se,
|
|
4430
4430
|
processedBadges: be,
|
|
4431
|
-
processedFooterAuxButton:
|
|
4431
|
+
processedFooterAuxButton: Ne,
|
|
4432
4432
|
processedFooterButtons: he,
|
|
4433
4433
|
// Props legacy (mantener para retrocompatibilidad)
|
|
4434
4434
|
onClose: i,
|
|
@@ -4462,7 +4462,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4462
4462
|
footerButtonIconDuotonePrimary: $,
|
|
4463
4463
|
footerButtonIconDuotoneSecondary: K,
|
|
4464
4464
|
footerButtonIconDuotoneOpacityPrimary: ee,
|
|
4465
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4465
|
+
footerButtonIconDuotoneOpacitySecondary: pe,
|
|
4466
4466
|
footerButtonOnClick: F,
|
|
4467
4467
|
cancelButtonSlotLeft: ne,
|
|
4468
4468
|
successButtonSlotRight: ie,
|
|
@@ -4477,7 +4477,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4477
4477
|
badgeLabel: J,
|
|
4478
4478
|
hideFooter: ae
|
|
4479
4479
|
};
|
|
4480
|
-
return /* @__PURE__ */ r(Lo.Provider, { value:
|
|
4480
|
+
return /* @__PURE__ */ r(Lo.Provider, { value: Te, children: e });
|
|
4481
4481
|
}, ci = () => {
|
|
4482
4482
|
const e = dr(Lo);
|
|
4483
4483
|
if (!e)
|
|
@@ -4524,7 +4524,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4524
4524
|
c
|
|
4525
4525
|
),
|
|
4526
4526
|
children: e.map((p) => /* @__PURE__ */ r(
|
|
4527
|
-
|
|
4527
|
+
Ee,
|
|
4528
4528
|
{
|
|
4529
4529
|
size: u,
|
|
4530
4530
|
onClick: () => d(p.value),
|
|
@@ -4581,7 +4581,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4581
4581
|
...n,
|
|
4582
4582
|
...i
|
|
4583
4583
|
};
|
|
4584
|
-
},
|
|
4584
|
+
}, En = ({
|
|
4585
4585
|
children: e,
|
|
4586
4586
|
showCloseButton: i,
|
|
4587
4587
|
title: o,
|
|
@@ -4627,7 +4627,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4627
4627
|
headerButtonIconDuotonePrimary: $,
|
|
4628
4628
|
headerButtonIconDuotoneSecondary: K,
|
|
4629
4629
|
headerButtonIconDuotoneOpacityPrimary: ee,
|
|
4630
|
-
headerButtonIconDuotoneOpacitySecondary:
|
|
4630
|
+
headerButtonIconDuotoneOpacitySecondary: pe,
|
|
4631
4631
|
headerButtonOnClick: F,
|
|
4632
4632
|
badgeIcon: ne,
|
|
4633
4633
|
badgeIconDuotonePrimary: ie,
|
|
@@ -4671,9 +4671,9 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4671
4671
|
{
|
|
4672
4672
|
"aria-label": se.label || `Header button ${be + 1}`,
|
|
4673
4673
|
...$u(se, {
|
|
4674
|
-
onClick: se.onClick ? (
|
|
4674
|
+
onClick: se.onClick ? (Ne) => {
|
|
4675
4675
|
var he;
|
|
4676
|
-
return (he = se.onClick) == null ? void 0 : he.call(se,
|
|
4676
|
+
return (he = se.onClick) == null ? void 0 : he.call(se, Ne);
|
|
4677
4677
|
} : void 0,
|
|
4678
4678
|
theme: se.theme || "solid",
|
|
4679
4679
|
color: se.color || "secondary",
|
|
@@ -4693,7 +4693,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4693
4693
|
theme: "solid",
|
|
4694
4694
|
color: "secondary",
|
|
4695
4695
|
pill: "pill",
|
|
4696
|
-
icon:
|
|
4696
|
+
icon: Mt,
|
|
4697
4697
|
size: "xs"
|
|
4698
4698
|
}
|
|
4699
4699
|
)
|
|
@@ -4711,7 +4711,7 @@ const Du = (e, i, o, t = !1) => {
|
|
|
4711
4711
|
) }) : null
|
|
4712
4712
|
] });
|
|
4713
4713
|
};
|
|
4714
|
-
|
|
4714
|
+
En.displayName = "Modal.Header";
|
|
4715
4715
|
const xo = ({ children: e, withPadding: i = !0 }) => {
|
|
4716
4716
|
const { hideFooter: o } = ci();
|
|
4717
4717
|
return /* @__PURE__ */ r(
|
|
@@ -4877,9 +4877,9 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
|
|
|
4877
4877
|
if (!w || l === "none")
|
|
4878
4878
|
return { width: "100%", height: "100%" };
|
|
4879
4879
|
const { width: E, height: B } = w, Z = 64, $ = E - Z, K = B - Z, ee = T[l];
|
|
4880
|
-
let
|
|
4881
|
-
return
|
|
4882
|
-
width: `${
|
|
4880
|
+
let pe, F;
|
|
4881
|
+
return pe = $, F = pe / ee, F > K && (F = K, pe = F * ee), {
|
|
4882
|
+
width: `${pe}px`,
|
|
4883
4883
|
height: `${F}px`
|
|
4884
4884
|
};
|
|
4885
4885
|
}, [w, l, T]), P = V(() => {
|
|
@@ -4956,7 +4956,7 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
|
|
|
4956
4956
|
)
|
|
4957
4957
|
}
|
|
4958
4958
|
),
|
|
4959
|
-
(c || p) && v ?
|
|
4959
|
+
(c || p) && v ? _n.createPortal(
|
|
4960
4960
|
/* @__PURE__ */ r(
|
|
4961
4961
|
"div",
|
|
4962
4962
|
{
|
|
@@ -4978,7 +4978,7 @@ const xo = ({ children: e, withPadding: i = !0 }) => {
|
|
|
4978
4978
|
),
|
|
4979
4979
|
v
|
|
4980
4980
|
) : null,
|
|
4981
|
-
(c || p) && v && w && M ?
|
|
4981
|
+
(c || p) && v && w && M ? _n.createPortal(
|
|
4982
4982
|
/* @__PURE__ */ r(
|
|
4983
4983
|
"div",
|
|
4984
4984
|
{
|
|
@@ -5149,7 +5149,7 @@ const _u = {
|
|
|
5149
5149
|
lg: "ui-max-w-[896px]",
|
|
5150
5150
|
xl: "ui-max-w-[1100px]",
|
|
5151
5151
|
"2xl": "ui-max-w-[1350px]"
|
|
5152
|
-
}, Uu = (e) => kr({ children: e, component:
|
|
5152
|
+
}, Uu = (e) => kr({ children: e, component: En, componentName: "Modal.Header" }), Gu = (e) => kr({ children: e, component: di, componentName: "Modal.Footer" }), kr = ({
|
|
5153
5153
|
children: e,
|
|
5154
5154
|
component: i,
|
|
5155
5155
|
componentName: o
|
|
@@ -5161,7 +5161,7 @@ const _u = {
|
|
|
5161
5161
|
});
|
|
5162
5162
|
function qu(e) {
|
|
5163
5163
|
return Object.assign(e, {
|
|
5164
|
-
Header:
|
|
5164
|
+
Header: En,
|
|
5165
5165
|
Body: xo,
|
|
5166
5166
|
Footer: di,
|
|
5167
5167
|
Image: Mo
|
|
@@ -5208,7 +5208,7 @@ const Yu = ({
|
|
|
5208
5208
|
footerButtonIconDuotoneOpacitySecondary: $,
|
|
5209
5209
|
footerButtonOnClick: K,
|
|
5210
5210
|
cancelButtonSlotLeft: ee,
|
|
5211
|
-
successButtonSlotRight:
|
|
5211
|
+
successButtonSlotRight: pe,
|
|
5212
5212
|
disableCancelButton: F,
|
|
5213
5213
|
disableSuccessButton: ne,
|
|
5214
5214
|
successButtonColor: ie,
|
|
@@ -5230,32 +5230,49 @@ const Yu = ({
|
|
|
5230
5230
|
footerSecondaryButton: se,
|
|
5231
5231
|
footerButtons: be
|
|
5232
5232
|
}) => {
|
|
5233
|
-
const { isVisible:
|
|
5233
|
+
const { isVisible: Ne, animateIn: he, container: Te, modalRef: de } = Tu({
|
|
5234
5234
|
isOpen: e,
|
|
5235
5235
|
onClose: i,
|
|
5236
5236
|
disableEscapeClose: a,
|
|
5237
5237
|
disableOutsideTab: u,
|
|
5238
5238
|
disableOutsideClick: l
|
|
5239
|
-
}),
|
|
5240
|
-
|
|
5241
|
-
if (!
|
|
5242
|
-
const
|
|
5243
|
-
|
|
5244
|
-
}, [
|
|
5245
|
-
|
|
5239
|
+
}), Ie = q(null), [Fe, Ae] = A(!1), Re = V(() => {
|
|
5240
|
+
const Ve = de.current;
|
|
5241
|
+
if (!Ve) return;
|
|
5242
|
+
const Ue = window.innerHeight;
|
|
5243
|
+
Ae(Ve.offsetHeight + 64 > Ue);
|
|
5244
|
+
}, []);
|
|
5245
|
+
if (On(() => {
|
|
5246
|
+
if (!Ne) {
|
|
5247
|
+
Ae(!1);
|
|
5248
|
+
return;
|
|
5249
|
+
}
|
|
5250
|
+
Re();
|
|
5251
|
+
const Ve = de.current;
|
|
5252
|
+
if (!Ve) return;
|
|
5253
|
+
const Ue = new ResizeObserver(Re);
|
|
5254
|
+
return Ue.observe(Ve), window.addEventListener("resize", Re), () => {
|
|
5255
|
+
Ue.disconnect(), window.removeEventListener("resize", Re);
|
|
5256
|
+
};
|
|
5257
|
+
}, [Ne, Re]), On(() => {
|
|
5258
|
+
if (!Ne) return;
|
|
5259
|
+
const Ve = Ie.current;
|
|
5260
|
+
Ve && (Ve.scrollTop = 0);
|
|
5261
|
+
}, [e, Ne, Fe]), !Te || !e && !Ne) return null;
|
|
5262
|
+
const _e = Uu(n), Be = Gu(n), ot = g === 60 ? "ui-z-[60]" : g === 50 ? "ui-z-50" : "", vt = g === 50 || g === 60 ? void 0 : { zIndex: g }, Je = /* @__PURE__ */ b(
|
|
5246
5263
|
"div",
|
|
5247
5264
|
{
|
|
5248
5265
|
"aria-modal": "true",
|
|
5249
5266
|
role: "dialog",
|
|
5250
5267
|
"aria-describedby": "modal-description",
|
|
5251
|
-
ref:
|
|
5268
|
+
ref: Ie,
|
|
5252
5269
|
className: j(
|
|
5253
5270
|
"ui-imj",
|
|
5254
5271
|
"modal-portal",
|
|
5255
5272
|
"ui-fixed ui-inset-0 ui-overflow-y-auto",
|
|
5256
|
-
|
|
5273
|
+
ot
|
|
5257
5274
|
),
|
|
5258
|
-
style:
|
|
5275
|
+
style: vt,
|
|
5259
5276
|
children: [
|
|
5260
5277
|
/* @__PURE__ */ r(
|
|
5261
5278
|
"div",
|
|
@@ -5264,98 +5281,107 @@ const Yu = ({
|
|
|
5264
5281
|
"ui-fixed ui-inset-0 ui-bg-black ui-backdrop-blur-sm ui-transition-opacity ui-duration-200",
|
|
5265
5282
|
he ? "ui-opacity-40" : "ui-opacity-0"
|
|
5266
5283
|
),
|
|
5267
|
-
onClick: l ? (
|
|
5284
|
+
onClick: l ? (Ve) => Ve.stopPropagation() : i
|
|
5268
5285
|
}
|
|
5269
5286
|
),
|
|
5270
|
-
/* @__PURE__ */ r(
|
|
5287
|
+
/* @__PURE__ */ r(
|
|
5271
5288
|
"div",
|
|
5272
5289
|
{
|
|
5273
|
-
ref: pe,
|
|
5274
|
-
tabIndex: -1,
|
|
5275
5290
|
className: j(
|
|
5276
|
-
"ui-
|
|
5277
|
-
|
|
5291
|
+
"ui-flex ui-min-h-full ui-justify-center ui-px-4 ui-py-8",
|
|
5292
|
+
Fe ? "ui-items-start" : "ui-items-center"
|
|
5278
5293
|
),
|
|
5279
|
-
onClick: (Ge) => Ge.stopPropagation(),
|
|
5280
5294
|
children: /* @__PURE__ */ r(
|
|
5281
5295
|
"div",
|
|
5282
5296
|
{
|
|
5297
|
+
ref: de,
|
|
5298
|
+
tabIndex: -1,
|
|
5283
5299
|
className: j(
|
|
5284
|
-
"ui-
|
|
5285
|
-
|
|
5300
|
+
"ui-relative ui-z-10 ui-flex ui-w-full ui-flex-col ui-rounded-surface-modal ui-border-1 ui-border-default ui-bg-fill ui-shadow-md ui-outline-none",
|
|
5301
|
+
_u[t]
|
|
5286
5302
|
),
|
|
5287
|
-
|
|
5288
|
-
|
|
5303
|
+
onClick: (Ve) => Ve.stopPropagation(),
|
|
5304
|
+
children: /* @__PURE__ */ r(
|
|
5305
|
+
"div",
|
|
5289
5306
|
{
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5307
|
+
className: j(
|
|
5308
|
+
"ui-flex ui-min-h-0 ui-w-full ui-flex-col ui-transform ui-transition-all ui-duration-200",
|
|
5309
|
+
he ? "ui-translate-y-0 ui-scale-100 ui-opacity-100" : "ui-translate-y-4 ui-scale-95 ui-opacity-0"
|
|
5310
|
+
),
|
|
5311
|
+
children: /* @__PURE__ */ b(
|
|
5312
|
+
yo,
|
|
5313
|
+
{
|
|
5314
|
+
isOpen: e,
|
|
5315
|
+
onClose: i,
|
|
5316
|
+
showCloseButton: s,
|
|
5317
|
+
closeAtCorner: f,
|
|
5318
|
+
cancelButtonText: d,
|
|
5319
|
+
successButtonText: c,
|
|
5320
|
+
onCancel: h,
|
|
5321
|
+
onSuccess: p,
|
|
5322
|
+
showCancelButton: C,
|
|
5323
|
+
showSuccessButton: v,
|
|
5324
|
+
closeAtSuccess: L,
|
|
5325
|
+
closeAtCancel: w,
|
|
5326
|
+
title: m,
|
|
5327
|
+
icon: o,
|
|
5328
|
+
iconDuotonePrimary: S,
|
|
5329
|
+
iconDuotoneSecondary: N,
|
|
5330
|
+
iconDuotoneOpacityPrimary: D,
|
|
5331
|
+
iconDuotoneOpacitySecondary: k,
|
|
5332
|
+
headerButtonIcon: I,
|
|
5333
|
+
headerButtonIconDuotonePrimary: O,
|
|
5334
|
+
headerButtonIconDuotoneSecondary: H,
|
|
5335
|
+
headerButtonIconDuotoneOpacityPrimary: T,
|
|
5336
|
+
headerButtonIconDuotoneOpacitySecondary: z,
|
|
5337
|
+
headerButtonOnClick: P,
|
|
5338
|
+
footerButtonIcon: R,
|
|
5339
|
+
footerButtonIconDuotonePrimary: E,
|
|
5340
|
+
footerButtonIconDuotoneSecondary: B,
|
|
5341
|
+
footerButtonIconDuotoneOpacityPrimary: Z,
|
|
5342
|
+
footerButtonIconDuotoneOpacitySecondary: $,
|
|
5343
|
+
footerButtonOnClick: K,
|
|
5344
|
+
tabs: y,
|
|
5345
|
+
defaultValueTab: M,
|
|
5346
|
+
onChangeTab: x,
|
|
5347
|
+
cancelButtonSlotLeft: ee,
|
|
5348
|
+
successButtonSlotRight: pe,
|
|
5349
|
+
disableCancelButton: F,
|
|
5350
|
+
disableSuccessButton: ne,
|
|
5351
|
+
successButtonColor: ie,
|
|
5352
|
+
badgeIcon: me,
|
|
5353
|
+
badgeIconDuotonePrimary: fe,
|
|
5354
|
+
badgeIconDuotoneSecondary: X,
|
|
5355
|
+
badgeIconDuotoneOpacityPrimary: G,
|
|
5356
|
+
badgeIconDuotoneOpacitySecondary: le,
|
|
5357
|
+
badgeLabel: we,
|
|
5358
|
+
hideFooter: U,
|
|
5359
|
+
iconConfig: te,
|
|
5360
|
+
headerButton: J,
|
|
5361
|
+
headerButtons: ae,
|
|
5362
|
+
badge: ge,
|
|
5363
|
+
badges: ve,
|
|
5364
|
+
footerAuxButton: _,
|
|
5365
|
+
footerPrimaryButton: Ce,
|
|
5366
|
+
footerSecondaryButton: se,
|
|
5367
|
+
footerButtons: be,
|
|
5368
|
+
children: [
|
|
5369
|
+
!_e && (s || m ? /* @__PURE__ */ r(En, { title: m }) : null),
|
|
5370
|
+
n && n,
|
|
5371
|
+
!Be && !U && /* @__PURE__ */ r(di, {})
|
|
5372
|
+
]
|
|
5373
|
+
}
|
|
5374
|
+
)
|
|
5349
5375
|
}
|
|
5350
5376
|
)
|
|
5351
5377
|
}
|
|
5352
5378
|
)
|
|
5353
5379
|
}
|
|
5354
|
-
)
|
|
5380
|
+
)
|
|
5355
5381
|
]
|
|
5356
5382
|
}
|
|
5357
5383
|
);
|
|
5358
|
-
return
|
|
5384
|
+
return _n.createPortal(Je, Te);
|
|
5359
5385
|
}, a1 = qu(Yu), Np = ({
|
|
5360
5386
|
isOpen: e,
|
|
5361
5387
|
onClose: i,
|
|
@@ -5592,7 +5618,7 @@ const Yu = ({
|
|
|
5592
5618
|
onMouseLeave: O,
|
|
5593
5619
|
...h,
|
|
5594
5620
|
children: [
|
|
5595
|
-
i ? /* @__PURE__ */ r(
|
|
5621
|
+
i ? /* @__PURE__ */ r(St, { type: "people", src: i, size: "xxs", className: "ui-shrink-0" }) : f && /* @__PURE__ */ r("div", { className: w({ color: I }), children: /* @__PURE__ */ r(
|
|
5596
5622
|
Le,
|
|
5597
5623
|
{
|
|
5598
5624
|
name: f,
|
|
@@ -5602,7 +5628,7 @@ const Yu = ({
|
|
|
5602
5628
|
}
|
|
5603
5629
|
) }),
|
|
5604
5630
|
e && /* @__PURE__ */ r(
|
|
5605
|
-
|
|
5631
|
+
xt,
|
|
5606
5632
|
{
|
|
5607
5633
|
truncate: d,
|
|
5608
5634
|
title: e,
|
|
@@ -5625,7 +5651,7 @@ const Yu = ({
|
|
|
5625
5651
|
children: /* @__PURE__ */ r(
|
|
5626
5652
|
Le,
|
|
5627
5653
|
{
|
|
5628
|
-
name:
|
|
5654
|
+
name: Mt,
|
|
5629
5655
|
size: "xs",
|
|
5630
5656
|
color: "current",
|
|
5631
5657
|
className: L({ color: I })
|
|
@@ -5803,7 +5829,7 @@ const Yu = ({
|
|
|
5803
5829
|
};
|
|
5804
5830
|
Ju.displayName = "Badges";
|
|
5805
5831
|
function pi(e) {
|
|
5806
|
-
return e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 :
|
|
5832
|
+
return e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1;
|
|
5807
5833
|
}
|
|
5808
5834
|
function Wu({
|
|
5809
5835
|
width: e = 24,
|
|
@@ -24180,7 +24206,7 @@ const ko = ({
|
|
|
24180
24206
|
iconDuotoneSecondary: f,
|
|
24181
24207
|
iconDuotoneOpacityPrimary: d,
|
|
24182
24208
|
iconDuotoneOpacitySecondary: c
|
|
24183
|
-
}) => ye.isValidElement(e) ? /* @__PURE__ */ r(
|
|
24209
|
+
}) => ye.isValidElement(e) ? /* @__PURE__ */ r(Ze, { children: e }) : typeof e == "string" && pi(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: "xxs" }) : /* @__PURE__ */ r(
|
|
24184
24210
|
fi,
|
|
24185
24211
|
{
|
|
24186
24212
|
className: n,
|
|
@@ -24215,7 +24241,7 @@ const No = ({
|
|
|
24215
24241
|
if (!c || !e)
|
|
24216
24242
|
return null;
|
|
24217
24243
|
const h = bn(o, t), p = i === "xxs" ? "xs" : "sm", m = "xxs";
|
|
24218
|
-
return jo(e) ? /* @__PURE__ */ r(
|
|
24244
|
+
return jo(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
|
|
24219
24245
|
fi,
|
|
24220
24246
|
{
|
|
24221
24247
|
name: e,
|
|
@@ -24248,7 +24274,7 @@ const Io = ({
|
|
|
24248
24274
|
if (!c || !e)
|
|
24249
24275
|
return null;
|
|
24250
24276
|
const h = bn(o, t), p = i === "xxs" ? "xs" : "sm", m = "xxs";
|
|
24251
|
-
return jo(e) ? /* @__PURE__ */ r(
|
|
24277
|
+
return jo(e) ? /* @__PURE__ */ r(St, { type: "people", src: e, className: n, size: m }) : /* @__PURE__ */ r(
|
|
24252
24278
|
fi,
|
|
24253
24279
|
{
|
|
24254
24280
|
name: e,
|
|
@@ -24444,7 +24470,7 @@ const $4 = (e) => {
|
|
|
24444
24470
|
iconDuotoneOpacitySecondary: $,
|
|
24445
24471
|
leftSlotDuotonePrimary: K,
|
|
24446
24472
|
leftSlotDuotoneSecondary: ee,
|
|
24447
|
-
leftSlotDuotoneOpacityPrimary:
|
|
24473
|
+
leftSlotDuotoneOpacityPrimary: pe,
|
|
24448
24474
|
leftSlotDuotoneOpacitySecondary: F,
|
|
24449
24475
|
rightSlotDuotonePrimary: ne,
|
|
24450
24476
|
rightSlotDuotoneSecondary: ie,
|
|
@@ -24464,24 +24490,24 @@ const $4 = (e) => {
|
|
|
24464
24490
|
classNameTooltip: Ce,
|
|
24465
24491
|
stopPropagation: se = !0,
|
|
24466
24492
|
pointer: be = !0,
|
|
24467
|
-
onClick:
|
|
24493
|
+
onClick: Ne,
|
|
24468
24494
|
pill: he = "sm",
|
|
24469
|
-
textAlign:
|
|
24470
|
-
whiteBackground:
|
|
24471
|
-
strokeWidth:
|
|
24472
|
-
transition:
|
|
24473
|
-
classNameIcon:
|
|
24495
|
+
textAlign: Te = "center",
|
|
24496
|
+
whiteBackground: de = !0,
|
|
24497
|
+
strokeWidth: Ie = 2,
|
|
24498
|
+
transition: Fe = !0,
|
|
24499
|
+
classNameIcon: Ae = "",
|
|
24474
24500
|
active: Re = !1,
|
|
24475
24501
|
// Nuevo sistema de configuraciones
|
|
24476
|
-
iconProps:
|
|
24477
|
-
badge:
|
|
24478
|
-
leftSlotProps:
|
|
24479
|
-
rightSlotProps:
|
|
24480
|
-
tooltipProps:
|
|
24481
|
-
...
|
|
24482
|
-
},
|
|
24502
|
+
iconProps: _e,
|
|
24503
|
+
badge: Be,
|
|
24504
|
+
leftSlotProps: ot,
|
|
24505
|
+
rightSlotProps: vt,
|
|
24506
|
+
tooltipProps: Je,
|
|
24507
|
+
...Ve
|
|
24508
|
+
}, Ue) {
|
|
24483
24509
|
G4({ theme: a, size: D, color: w, pill: he, as: U, link: N });
|
|
24484
|
-
const
|
|
24510
|
+
const bt = {
|
|
24485
24511
|
disabled: P
|
|
24486
24512
|
}, Ke = S && typeof S == "object" && !ye.isValidElement(S) && "icon" in S && ("color" in S || "size" in S || "show" in S || "onClick" in S || "className" in S || "strokeWidth" in S), tt = Ke ? S : void 0, qe = Ke ? void 0 : $4({
|
|
24487
24513
|
icon: S,
|
|
@@ -24490,10 +24516,10 @@ const $4 = (e) => {
|
|
|
24490
24516
|
iconDuotoneOpacityPrimary: Z,
|
|
24491
24517
|
iconDuotoneOpacitySecondary: $,
|
|
24492
24518
|
colorIcon: R,
|
|
24493
|
-
classNameIcon:
|
|
24494
|
-
strokeWidth:
|
|
24519
|
+
classNameIcon: Ae,
|
|
24520
|
+
strokeWidth: Ie,
|
|
24495
24521
|
onClickIcon: H
|
|
24496
|
-
}),
|
|
24522
|
+
}), Lt = Z4({
|
|
24497
24523
|
badgeColor: u,
|
|
24498
24524
|
badgeLabel: l,
|
|
24499
24525
|
badgeTheme: f,
|
|
@@ -24505,11 +24531,11 @@ const $4 = (e) => {
|
|
|
24505
24531
|
badgeIconDuotoneOpacityPrimary: g,
|
|
24506
24532
|
badgeIconDuotoneOpacitySecondary: C,
|
|
24507
24533
|
badgeLoading: v
|
|
24508
|
-
}), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0,
|
|
24534
|
+
}), st = n && typeof n == "object" && !ye.isValidElement(n) && "icon" in n && ("colorIcon" in n || "onClick" in n || "show" in n || "iconDuotonePrimary" in n), Bt = st ? n : void 0, ce = s && typeof s == "object" && !ye.isValidElement(s) && "icon" in s && ("colorIcon" in s || "onClick" in s || "show" in s || "iconDuotonePrimary" in s), je = ce ? s : void 0, Ge = st ? void 0 : F4({
|
|
24509
24535
|
leftSlot: n,
|
|
24510
24536
|
leftSlotDuotonePrimary: K,
|
|
24511
24537
|
leftSlotDuotoneSecondary: ee,
|
|
24512
|
-
leftSlotDuotoneOpacityPrimary:
|
|
24538
|
+
leftSlotDuotoneOpacityPrimary: pe,
|
|
24513
24539
|
leftSlotDuotoneOpacitySecondary: F,
|
|
24514
24540
|
onClickLeftSlot: T,
|
|
24515
24541
|
colorIcon: R
|
|
@@ -24521,14 +24547,14 @@ const $4 = (e) => {
|
|
|
24521
24547
|
rightSlotDuotoneOpacitySecondary: fe,
|
|
24522
24548
|
onClickRightSlot: z,
|
|
24523
24549
|
colorIcon: R
|
|
24524
|
-
}),
|
|
24550
|
+
}), ze = J && typeof J == "object" && ("label" in J || "position" in J || "alignment" in J || "delay" in J || "absolute" in J || "className" in J), pt = ze ? J : void 0, Xe = ze ? void 0 : U4({
|
|
24525
24551
|
tooltip: J,
|
|
24526
24552
|
tooltipPosition: ae,
|
|
24527
24553
|
tooltipAlignment: ge,
|
|
24528
24554
|
tooltipDelay: ve,
|
|
24529
24555
|
tooltipAbsolute: _,
|
|
24530
24556
|
classNameTooltip: Ce
|
|
24531
|
-
}), W =
|
|
24557
|
+
}), W = _e || tt || qe || (S && !Ke && !ye.isValidElement(S) && typeof S == "string" && !pi(S) ? { icon: S, show: !0 } : void 0), Q = Be || Lt, xe = ot || Bt || Ge, Me = vt || je || re, De = Je || pt || Xe, Ht = (W == null ? void 0 : W.icon) || (Ke ? void 0 : ye.isValidElement(S) ? S : S ?? void 0), Dt = (Q == null ? void 0 : Q.color) || u, Ut = (Q == null ? void 0 : Q.label) || l, tn = (Q == null ? void 0 : Q.theme) || f, nn = (Q == null ? void 0 : Q.size) || d, Mn = (Q == null ? void 0 : Q.stroke) ?? c, Gt = (Q == null ? void 0 : Q.icon) || h, kt = (Q == null ? void 0 : Q.loading) ?? v, ue = (xe == null ? void 0 : xe.icon) || (st ? void 0 : n), Se = (Me == null ? void 0 : Me.icon) || (ce ? void 0 : s), Pe = (De == null ? void 0 : De.label) || (ze ? void 0 : J), We = (De == null ? void 0 : De.position) || ae, et = (De == null ? void 0 : De.alignment) || ge, $t = (De == null ? void 0 : De.delay) ?? ve, Yt = (De == null ? void 0 : De.absolute) ?? _, Sn = (De == null ? void 0 : De.className) || Ce, Mi = a === "icon", Si = (M == null || M === !1) && !!Ht, lt = M != null && M !== !1, ki = $1(kt), {
|
|
24532
24558
|
displayText: ji,
|
|
24533
24559
|
textStyle: Ni,
|
|
24534
24560
|
measureRef: Ii,
|
|
@@ -24542,14 +24568,14 @@ const $4 = (e) => {
|
|
|
24542
24568
|
badgeFinishedLoading: ki,
|
|
24543
24569
|
size: D,
|
|
24544
24570
|
textColor: x,
|
|
24545
|
-
textAlign:
|
|
24571
|
+
textAlign: Te
|
|
24546
24572
|
}), Vt = G1(
|
|
24547
24573
|
Dt,
|
|
24548
24574
|
Ut,
|
|
24549
24575
|
Gt,
|
|
24550
24576
|
nn,
|
|
24551
|
-
|
|
24552
|
-
), kn = Y1(
|
|
24577
|
+
kt
|
|
24578
|
+
), kn = Y1(kt, nn), jn = q1(
|
|
24553
24579
|
Mn,
|
|
24554
24580
|
Dt,
|
|
24555
24581
|
w
|
|
@@ -24562,7 +24588,7 @@ const $4 = (e) => {
|
|
|
24562
24588
|
pill: he,
|
|
24563
24589
|
clickable: I,
|
|
24564
24590
|
borderable: G,
|
|
24565
|
-
whiteBackground:
|
|
24591
|
+
whiteBackground: de,
|
|
24566
24592
|
active: Re,
|
|
24567
24593
|
square: k,
|
|
24568
24594
|
icon: !!Ht,
|
|
@@ -24570,14 +24596,14 @@ const $4 = (e) => {
|
|
|
24570
24596
|
shouldShowBadge: Vt,
|
|
24571
24597
|
showShadow: X,
|
|
24572
24598
|
pointer: be,
|
|
24573
|
-
transition:
|
|
24599
|
+
transition: Fe,
|
|
24574
24600
|
classNameId: te,
|
|
24575
24601
|
className: i,
|
|
24576
24602
|
isIconVariant: Mi,
|
|
24577
24603
|
defaultSizeIcon: we
|
|
24578
|
-
}),
|
|
24579
|
-
se && Nn.stopPropagation(),
|
|
24580
|
-
}, an = () => /* @__PURE__ */ b(
|
|
24604
|
+
}), Pn = (Nn) => {
|
|
24605
|
+
se && Nn.stopPropagation(), Ne && Ne(Nn);
|
|
24606
|
+
}, an = () => /* @__PURE__ */ b(Ze, { children: [
|
|
24581
24607
|
(xe == null ? void 0 : xe.show) !== !1 && /* @__PURE__ */ r(
|
|
24582
24608
|
No,
|
|
24583
24609
|
{
|
|
@@ -24587,11 +24613,11 @@ const $4 = (e) => {
|
|
|
24587
24613
|
colorIcon: (xe == null ? void 0 : xe.colorIcon) || R,
|
|
24588
24614
|
className: i,
|
|
24589
24615
|
disabled: P,
|
|
24590
|
-
strokeWidth:
|
|
24616
|
+
strokeWidth: Ie,
|
|
24591
24617
|
onClickLeftSlot: (xe == null ? void 0 : xe.onClick) || T,
|
|
24592
24618
|
leftSlotDuotonePrimary: (xe == null ? void 0 : xe.iconDuotonePrimary) || K,
|
|
24593
24619
|
leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) || ee,
|
|
24594
|
-
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) ||
|
|
24620
|
+
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || pe,
|
|
24595
24621
|
leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) || F,
|
|
24596
24622
|
hasChildren: lt
|
|
24597
24623
|
}
|
|
@@ -24603,7 +24629,7 @@ const $4 = (e) => {
|
|
|
24603
24629
|
hasSlots: !!(ue || Se),
|
|
24604
24630
|
textStyle: Ni,
|
|
24605
24631
|
textColor: x,
|
|
24606
|
-
textAlign:
|
|
24632
|
+
textAlign: Te,
|
|
24607
24633
|
measureRef: Ii,
|
|
24608
24634
|
textRef: Oi,
|
|
24609
24635
|
measureSpanClassName: Hi
|
|
@@ -24623,7 +24649,7 @@ const $4 = (e) => {
|
|
|
24623
24649
|
badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
|
|
24624
24650
|
badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
|
|
24625
24651
|
badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
|
|
24626
|
-
badgeLoading:
|
|
24652
|
+
badgeLoading: kt,
|
|
24627
24653
|
isAbsolute: !1
|
|
24628
24654
|
}
|
|
24629
24655
|
),
|
|
@@ -24636,7 +24662,7 @@ const $4 = (e) => {
|
|
|
24636
24662
|
colorIcon: (Me == null ? void 0 : Me.colorIcon) || R,
|
|
24637
24663
|
className: i,
|
|
24638
24664
|
disabled: P,
|
|
24639
|
-
strokeWidth:
|
|
24665
|
+
strokeWidth: Ie,
|
|
24640
24666
|
onClickRightSlot: (Me == null ? void 0 : Me.onClick) || z,
|
|
24641
24667
|
rightSlotDuotonePrimary: (Me == null ? void 0 : Me.iconDuotonePrimary) || ne,
|
|
24642
24668
|
rightSlotDuotoneSecondary: (Me == null ? void 0 : Me.iconDuotoneSecondary) || ie,
|
|
@@ -24652,9 +24678,9 @@ const $4 = (e) => {
|
|
|
24652
24678
|
size: D,
|
|
24653
24679
|
color: w,
|
|
24654
24680
|
colorIcon: (W == null ? void 0 : W.color) || R,
|
|
24655
|
-
classNameIcon: (W == null ? void 0 : W.className) ||
|
|
24681
|
+
classNameIcon: (W == null ? void 0 : W.className) || Ae,
|
|
24656
24682
|
theme: a,
|
|
24657
|
-
onClick:
|
|
24683
|
+
onClick: Ne,
|
|
24658
24684
|
onClickIcon: (W == null ? void 0 : W.onClick) || H,
|
|
24659
24685
|
iconDuotonePrimary: (W == null ? void 0 : W.colorDuotonePrimary) || (W == null ? void 0 : W.iconDuotonePrimary) || E,
|
|
24660
24686
|
iconDuotoneSecondary: (W == null ? void 0 : W.colorDuotoneSecondary) || (W == null ? void 0 : W.iconDuotoneSecondary) || B,
|
|
@@ -24676,14 +24702,14 @@ const $4 = (e) => {
|
|
|
24676
24702
|
badgeIconDuotoneSecondary: (Q == null ? void 0 : Q.iconDuotoneSecondary) || m,
|
|
24677
24703
|
badgeIconDuotoneOpacityPrimary: (Q == null ? void 0 : Q.iconDuotoneOpacityPrimary) || g,
|
|
24678
24704
|
badgeIconDuotoneOpacitySecondary: (Q == null ? void 0 : Q.iconDuotoneOpacitySecondary) || C,
|
|
24679
|
-
badgeLoading:
|
|
24705
|
+
badgeLoading: kt,
|
|
24680
24706
|
isAbsolute: !0
|
|
24681
24707
|
}
|
|
24682
24708
|
);
|
|
24683
24709
|
return N ? /* @__PURE__ */ b(
|
|
24684
24710
|
"a",
|
|
24685
24711
|
{
|
|
24686
|
-
ref:
|
|
24712
|
+
ref: Ue,
|
|
24687
24713
|
href: N,
|
|
24688
24714
|
target: O,
|
|
24689
24715
|
className: j(sn, i),
|
|
@@ -24697,7 +24723,7 @@ const $4 = (e) => {
|
|
|
24697
24723
|
) : U === "div" ? /* @__PURE__ */ r(
|
|
24698
24724
|
It,
|
|
24699
24725
|
{
|
|
24700
|
-
label:
|
|
24726
|
+
label: Pe || "",
|
|
24701
24727
|
position: We,
|
|
24702
24728
|
alignment: et,
|
|
24703
24729
|
absolute: Yt,
|
|
@@ -24707,15 +24733,15 @@ const $4 = (e) => {
|
|
|
24707
24733
|
children: /* @__PURE__ */ b(
|
|
24708
24734
|
"div",
|
|
24709
24735
|
{
|
|
24710
|
-
ref:
|
|
24736
|
+
ref: Ue,
|
|
24711
24737
|
className: j(sn, i),
|
|
24712
24738
|
role: I && !P ? "button" : void 0,
|
|
24713
24739
|
tabIndex: I && !P ? 0 : void 0,
|
|
24714
24740
|
"aria-disabled": P,
|
|
24715
|
-
"aria-label": !lt && S ?
|
|
24741
|
+
"aria-label": !lt && S ? Pe || "Button" : void 0,
|
|
24716
24742
|
onMouseEnter: rn,
|
|
24717
24743
|
onMouseLeave: on,
|
|
24718
|
-
...
|
|
24744
|
+
...Ve,
|
|
24719
24745
|
children: [
|
|
24720
24746
|
an(),
|
|
24721
24747
|
un()
|
|
@@ -24726,7 +24752,7 @@ const $4 = (e) => {
|
|
|
24726
24752
|
) : /* @__PURE__ */ r(
|
|
24727
24753
|
It,
|
|
24728
24754
|
{
|
|
24729
|
-
label:
|
|
24755
|
+
label: Pe || "",
|
|
24730
24756
|
position: We,
|
|
24731
24757
|
alignment: et,
|
|
24732
24758
|
delay: $t,
|
|
@@ -24735,13 +24761,13 @@ const $4 = (e) => {
|
|
|
24735
24761
|
children: /* @__PURE__ */ b(
|
|
24736
24762
|
"button",
|
|
24737
24763
|
{
|
|
24738
|
-
ref:
|
|
24764
|
+
ref: Ue,
|
|
24739
24765
|
className: j(sn, i),
|
|
24740
|
-
"aria-label": !lt && S ?
|
|
24766
|
+
"aria-label": !lt && S ? Pe || "Button" : void 0,
|
|
24741
24767
|
"aria-disabled": P,
|
|
24742
|
-
...
|
|
24743
|
-
...
|
|
24744
|
-
onClick:
|
|
24768
|
+
...bt,
|
|
24769
|
+
...Ve,
|
|
24770
|
+
onClick: Pn,
|
|
24745
24771
|
onMouseEnter: rn,
|
|
24746
24772
|
onMouseLeave: on,
|
|
24747
24773
|
children: [
|
|
@@ -25176,25 +25202,25 @@ function W4(e) {
|
|
|
25176
25202
|
return "top";
|
|
25177
25203
|
}
|
|
25178
25204
|
}
|
|
25179
|
-
function
|
|
25205
|
+
function Kn(e, i) {
|
|
25180
25206
|
return Math.min(Math.max(e, fn), Math.max(fn, i - fn));
|
|
25181
25207
|
}
|
|
25182
25208
|
function e8(e, i, o) {
|
|
25183
25209
|
const { edge: t, align: n, offsetPx: s = 0 } = e;
|
|
25184
25210
|
if (t === "top" || t === "bottom") {
|
|
25185
25211
|
let u = fn + s;
|
|
25186
|
-
return n === "center" ? u = i / 2 + s : n === "end" && (u = i - fn + s), { edge: t, offsetPx:
|
|
25212
|
+
return n === "center" ? u = i / 2 + s : n === "end" && (u = i - fn + s), { edge: t, offsetPx: Kn(u, i) };
|
|
25187
25213
|
}
|
|
25188
25214
|
let a = fn + s;
|
|
25189
|
-
return n === "center" ? a = o / 2 + s : n === "end" && (a = o - fn + s), { edge: t, offsetPx:
|
|
25215
|
+
return n === "center" ? a = o / 2 + s : n === "end" && (a = o - fn + s), { edge: t, offsetPx: Kn(a, o) };
|
|
25190
25216
|
}
|
|
25191
25217
|
function t8(e, i, o, t, n, s) {
|
|
25192
25218
|
const a = W4(e), u = i.left + i.width / 2, l = i.top + i.height / 2;
|
|
25193
25219
|
if (a === "top" || a === "bottom") {
|
|
25194
|
-
const d =
|
|
25220
|
+
const d = Kn(u - o, n);
|
|
25195
25221
|
return { edge: a, offsetPx: d };
|
|
25196
25222
|
}
|
|
25197
|
-
const f =
|
|
25223
|
+
const f = Kn(l - t, s);
|
|
25198
25224
|
return { edge: a, offsetPx: f };
|
|
25199
25225
|
}
|
|
25200
25226
|
function n8(e, i, o, t, n, s, a, u) {
|
|
@@ -25436,7 +25462,7 @@ const Ho = ({
|
|
|
25436
25462
|
});
|
|
25437
25463
|
}
|
|
25438
25464
|
}, u8);
|
|
25439
|
-
}, [E, $]),
|
|
25465
|
+
}, [E, $]), pe = V(() => {
|
|
25440
25466
|
!D || u || (T.current = !0, E(), R(), O.current = window.setTimeout(() => {
|
|
25441
25467
|
O.current = null, T.current && !u && K();
|
|
25442
25468
|
}, k));
|
|
@@ -25482,8 +25508,8 @@ const Ho = ({
|
|
|
25482
25508
|
};
|
|
25483
25509
|
te.addEventListener("click", J);
|
|
25484
25510
|
const ae = [() => te.removeEventListener("click", J)];
|
|
25485
|
-
D && (te.addEventListener("mouseenter",
|
|
25486
|
-
() => te.removeEventListener("mouseenter",
|
|
25511
|
+
D && (te.addEventListener("mouseenter", pe), te.addEventListener("mouseleave", F), ae.push(
|
|
25512
|
+
() => te.removeEventListener("mouseenter", pe),
|
|
25487
25513
|
() => te.removeEventListener("mouseleave", F)
|
|
25488
25514
|
)), le = () => ae.forEach((ge) => ge());
|
|
25489
25515
|
}, U = window.requestAnimationFrame(() => {
|
|
@@ -25497,9 +25523,9 @@ const Ho = ({
|
|
|
25497
25523
|
u,
|
|
25498
25524
|
D,
|
|
25499
25525
|
me,
|
|
25500
|
-
|
|
25526
|
+
pe,
|
|
25501
25527
|
F
|
|
25502
|
-
]),
|
|
25528
|
+
]), On(() => {
|
|
25503
25529
|
if (!m)
|
|
25504
25530
|
return;
|
|
25505
25531
|
let G = !1, le = 0;
|
|
@@ -25558,7 +25584,7 @@ const Ho = ({
|
|
|
25558
25584
|
togglePopup: me,
|
|
25559
25585
|
closePopup: $,
|
|
25560
25586
|
openPopup: K,
|
|
25561
|
-
openOnHoverTriggerProps: D ? { onMouseEnter:
|
|
25587
|
+
openOnHoverTriggerProps: D ? { onMouseEnter: pe, onMouseLeave: F } : void 0,
|
|
25562
25588
|
openOnHoverPopupProps: D ? { onMouseEnter: ne, onMouseLeave: ie } : void 0
|
|
25563
25589
|
};
|
|
25564
25590
|
}, d8 = 0.7, p8 = 3, f8 = 3, h8 = `translate(14, 0) scale(${d8}, 1) translate(-14, 0)`, m8 = "M5.2 11.65 C4.35 11.65 3.85 10.95 4.25 10.15 C6.15 6.2 9.85 3.35 12.85 2.15 Q14 1.25 15.15 2.15 C18.15 3.35 21.85 6.2 23.75 10.15 C24.15 10.95 23.65 11.65 22.8 11.65 Q14 10.55 5.2 11.65 Z", g8 = "M4.25 10.15 C6.15 6.2 9.85 3.35 12.85 2.15 Q14 1.25 15.15 2.15 C18.15 3.35 21.85 6.2 23.75 10.15", C8 = 2.3, b8 = 7;
|
|
@@ -25671,7 +25697,7 @@ function v8({
|
|
|
25671
25697
|
footerSecondaryButton: p,
|
|
25672
25698
|
footerButtons: m,
|
|
25673
25699
|
children: [
|
|
25674
|
-
o ? /* @__PURE__ */ r(
|
|
25700
|
+
o ? /* @__PURE__ */ r(En, { showCloseButton: n, children: s || a ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-flex-1 ui-flex-col ui-gap-2", children: [
|
|
25675
25701
|
s ? /* @__PURE__ */ r("span", { className: "ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children: s }) : null,
|
|
25676
25702
|
a ? /* @__PURE__ */ r("p", { className: "ui-line-clamp-2 ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-text-tertiary", children: a }) : null
|
|
25677
25703
|
] }) : null }) : null,
|
|
@@ -25723,7 +25749,7 @@ const Ft = At(
|
|
|
25723
25749
|
popoverStructured: $ = !1,
|
|
25724
25750
|
popoverTitle: K,
|
|
25725
25751
|
popoverDescription: ee,
|
|
25726
|
-
popoverShowHeader:
|
|
25752
|
+
popoverShowHeader: pe = !0,
|
|
25727
25753
|
popoverShowCloseButton: F = !0,
|
|
25728
25754
|
popoverIconConfig: ne,
|
|
25729
25755
|
popoverBadge: ie,
|
|
@@ -25743,19 +25769,19 @@ const Ft = At(
|
|
|
25743
25769
|
}, Ce) => {
|
|
25744
25770
|
const se = !!ge, {
|
|
25745
25771
|
isOpen: be,
|
|
25746
|
-
popupStyle:
|
|
25772
|
+
popupStyle: Ne,
|
|
25747
25773
|
isPositioned: he,
|
|
25748
|
-
triggerRef:
|
|
25749
|
-
popupRef:
|
|
25750
|
-
contentRef:
|
|
25751
|
-
arrowPlacement:
|
|
25752
|
-
containerRef:
|
|
25774
|
+
triggerRef: Te,
|
|
25775
|
+
popupRef: de,
|
|
25776
|
+
contentRef: Ie,
|
|
25777
|
+
arrowPlacement: Fe,
|
|
25778
|
+
containerRef: Ae,
|
|
25753
25779
|
popupUniqueId: Re,
|
|
25754
|
-
togglePopup:
|
|
25755
|
-
closePopup:
|
|
25756
|
-
openPopup:
|
|
25757
|
-
openOnHoverTriggerProps:
|
|
25758
|
-
openOnHoverPopupProps:
|
|
25780
|
+
togglePopup: _e,
|
|
25781
|
+
closePopup: Be,
|
|
25782
|
+
openPopup: ot,
|
|
25783
|
+
openOnHoverTriggerProps: vt,
|
|
25784
|
+
openOnHoverPopupProps: Je
|
|
25759
25785
|
} = Ho({
|
|
25760
25786
|
position: o,
|
|
25761
25787
|
offset: t,
|
|
@@ -25774,18 +25800,18 @@ const Ft = At(
|
|
|
25774
25800
|
Ce,
|
|
25775
25801
|
() => ({
|
|
25776
25802
|
open: () => {
|
|
25777
|
-
d ||
|
|
25803
|
+
d || ot();
|
|
25778
25804
|
},
|
|
25779
25805
|
close: () => {
|
|
25780
|
-
|
|
25806
|
+
Be();
|
|
25781
25807
|
},
|
|
25782
25808
|
isOpen: () => be
|
|
25783
25809
|
}),
|
|
25784
|
-
[d,
|
|
25810
|
+
[d, ot, Be, be]
|
|
25785
25811
|
);
|
|
25786
|
-
const
|
|
25787
|
-
B && B(je), !je.defaultPrevented && !d &&
|
|
25788
|
-
},
|
|
25812
|
+
const Ve = (je) => {
|
|
25813
|
+
B && B(je), !je.defaultPrevented && !d && _e();
|
|
25814
|
+
}, Ue = () => {
|
|
25789
25815
|
if (!be)
|
|
25790
25816
|
return null;
|
|
25791
25817
|
const je = {
|
|
@@ -25795,36 +25821,36 @@ const Ft = At(
|
|
|
25795
25821
|
visibility: he ? "visible" : "hidden",
|
|
25796
25822
|
opacity: he ? 1 : 0,
|
|
25797
25823
|
transition: "opacity 0.1s ease-out",
|
|
25798
|
-
...
|
|
25799
|
-
},
|
|
25824
|
+
...Ne
|
|
25825
|
+
}, Ge = j(
|
|
25800
25826
|
"ui-overflow-hidden ui-rounded-surface-card ui-border ui-border-default ui-bg-fill ui-shadow-lg",
|
|
25801
25827
|
u
|
|
25802
|
-
),
|
|
25828
|
+
), ze = /* @__PURE__ */ b(
|
|
25803
25829
|
"div",
|
|
25804
25830
|
{
|
|
25805
|
-
ref:
|
|
25831
|
+
ref: de,
|
|
25806
25832
|
id: Re,
|
|
25807
25833
|
"data-popup-id": Re,
|
|
25808
25834
|
style: je,
|
|
25809
25835
|
className: "ui-relative",
|
|
25810
|
-
...
|
|
25836
|
+
...Je,
|
|
25811
25837
|
children: [
|
|
25812
|
-
|
|
25838
|
+
Fe ? /* @__PURE__ */ r(Do, { placement: Fe }) : null,
|
|
25813
25839
|
/* @__PURE__ */ r(
|
|
25814
25840
|
"div",
|
|
25815
25841
|
{
|
|
25816
|
-
ref:
|
|
25817
|
-
className:
|
|
25842
|
+
ref: Ie,
|
|
25843
|
+
className: Ge,
|
|
25818
25844
|
onClick: (Xe) => {
|
|
25819
|
-
E && Xe.stopPropagation(), H &&
|
|
25845
|
+
E && Xe.stopPropagation(), H && Be();
|
|
25820
25846
|
},
|
|
25821
25847
|
..._,
|
|
25822
25848
|
children: $ ? /* @__PURE__ */ r(
|
|
25823
25849
|
v8,
|
|
25824
25850
|
{
|
|
25825
25851
|
isOpen: be,
|
|
25826
|
-
onClose:
|
|
25827
|
-
showHeader:
|
|
25852
|
+
onClose: Be,
|
|
25853
|
+
showHeader: pe,
|
|
25828
25854
|
showFooter: G,
|
|
25829
25855
|
showCloseButton: F,
|
|
25830
25856
|
title: K,
|
|
@@ -25847,8 +25873,8 @@ const Ft = At(
|
|
|
25847
25873
|
]
|
|
25848
25874
|
}
|
|
25849
25875
|
);
|
|
25850
|
-
return O ?
|
|
25851
|
-
},
|
|
25876
|
+
return O ? ze : Rt(ze, document.body);
|
|
25877
|
+
}, bt = y && typeof y == "object" && !ye.isValidElement(y) && "icon" in y && ("color" in y || "size" in y || "show" in y || "onClick" in y || "className" in y || "strokeWidth" in y), Ke = bt ? y : void 0, tt = bt ? void 0 : ro({
|
|
25852
25878
|
icon: y,
|
|
25853
25879
|
iconDuotonePrimary: void 0,
|
|
25854
25880
|
iconDuotoneSecondary: void 0,
|
|
@@ -25858,7 +25884,7 @@ const Ft = At(
|
|
|
25858
25884
|
classNameIcon: void 0,
|
|
25859
25885
|
strokeWidth: void 0,
|
|
25860
25886
|
onClickIcon: void 0
|
|
25861
|
-
}), qe = Ke || tt || (y ? { icon: y } : void 0),
|
|
25887
|
+
}), qe = Ke || tt || (y ? { icon: y } : void 0), Lt = I && typeof I == "object" && ("label" in I || "position" in I || "alignment" in I || "delay" in I || "absolute" in I || "className" in I), st = Lt ? I : void 0, Bt = Lt ? void 0 : oo({
|
|
25862
25888
|
tooltip: I,
|
|
25863
25889
|
tooltipPosition: S,
|
|
25864
25890
|
tooltipAlignment: N,
|
|
@@ -25869,22 +25895,22 @@ const Ft = At(
|
|
|
25869
25895
|
return /* @__PURE__ */ b(
|
|
25870
25896
|
"div",
|
|
25871
25897
|
{
|
|
25872
|
-
ref:
|
|
25898
|
+
ref: Ae,
|
|
25873
25899
|
className: j("ui-imj ui-relative ui-h-max", ve && "ui-w-full"),
|
|
25874
25900
|
"data-popup-container-id": Re,
|
|
25875
25901
|
children: [
|
|
25876
25902
|
se ? null : /* @__PURE__ */ r(
|
|
25877
25903
|
"div",
|
|
25878
25904
|
{
|
|
25879
|
-
ref:
|
|
25905
|
+
ref: Te,
|
|
25880
25906
|
className: j(ve ? "ui-w-full" : "ui-w-fit", z),
|
|
25881
|
-
...
|
|
25907
|
+
...vt,
|
|
25882
25908
|
children: /* @__PURE__ */ r(
|
|
25883
25909
|
ke,
|
|
25884
25910
|
{
|
|
25885
25911
|
color: h,
|
|
25886
25912
|
className: T,
|
|
25887
|
-
onClick:
|
|
25913
|
+
onClick: Ve,
|
|
25888
25914
|
disabled: d,
|
|
25889
25915
|
theme: c,
|
|
25890
25916
|
size: p,
|
|
@@ -25914,7 +25940,7 @@ const Ft = At(
|
|
|
25914
25940
|
)
|
|
25915
25941
|
}
|
|
25916
25942
|
),
|
|
25917
|
-
|
|
25943
|
+
Ue()
|
|
25918
25944
|
]
|
|
25919
25945
|
}
|
|
25920
25946
|
);
|
|
@@ -27693,7 +27719,7 @@ function j8({
|
|
|
27693
27719
|
onClick: zt,
|
|
27694
27720
|
children: [
|
|
27695
27721
|
a ? /* @__PURE__ */ r("div", { className: "ui-shrink-0", children: /* @__PURE__ */ r(
|
|
27696
|
-
|
|
27722
|
+
Ee,
|
|
27697
27723
|
{
|
|
27698
27724
|
color: "secondary",
|
|
27699
27725
|
theme: "solid",
|
|
@@ -27740,7 +27766,7 @@ function I8({
|
|
|
27740
27766
|
className: o
|
|
27741
27767
|
}) {
|
|
27742
27768
|
const t = q(null), n = q(null), s = q(null), [a, u] = A(() => e.length), l = e.length;
|
|
27743
|
-
if (
|
|
27769
|
+
if (On(() => {
|
|
27744
27770
|
if (l === 0) {
|
|
27745
27771
|
u(0);
|
|
27746
27772
|
return;
|
|
@@ -27835,7 +27861,7 @@ function I8({
|
|
|
27835
27861
|
},
|
|
27836
27862
|
`${p}-${m}`
|
|
27837
27863
|
)),
|
|
27838
|
-
f > 0 ? /* @__PURE__ */ b(
|
|
27864
|
+
f > 0 ? /* @__PURE__ */ b(Ze, { children: [
|
|
27839
27865
|
/* @__PURE__ */ r(
|
|
27840
27866
|
"button",
|
|
27841
27867
|
{
|
|
@@ -27898,7 +27924,7 @@ function O8(e) {
|
|
|
27898
27924
|
const i = window.getComputedStyle(e).columnGap || window.getComputedStyle(e).gap, o = parseFloat(i);
|
|
27899
27925
|
return Number.isFinite(o) ? o : 8;
|
|
27900
27926
|
}
|
|
27901
|
-
const
|
|
27927
|
+
const Xn = {
|
|
27902
27928
|
add: "Agregar",
|
|
27903
27929
|
added: "Agregado",
|
|
27904
27930
|
remove: "Quitar"
|
|
@@ -27913,7 +27939,7 @@ function c1({
|
|
|
27913
27939
|
/* @__PURE__ */ r(
|
|
27914
27940
|
Le,
|
|
27915
27941
|
{
|
|
27916
|
-
name:
|
|
27942
|
+
name: Un,
|
|
27917
27943
|
size: "sm",
|
|
27918
27944
|
color: "current",
|
|
27919
27945
|
className: "ui-transition-opacity group-hover:ui-opacity-0",
|
|
@@ -27925,17 +27951,17 @@ function c1({
|
|
|
27925
27951
|
{
|
|
27926
27952
|
className: "ui-pointer-events-none ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100",
|
|
27927
27953
|
"aria-hidden": !0,
|
|
27928
|
-
children: /* @__PURE__ */ r(Le, { name:
|
|
27954
|
+
children: /* @__PURE__ */ r(Le, { name: Mt, size: "sm", color: "current" })
|
|
27929
27955
|
}
|
|
27930
27956
|
)
|
|
27931
27957
|
] }) : null,
|
|
27932
27958
|
/* @__PURE__ */ b("span", { className: "ui-relative ui-inline-grid ui-shrink-0", children: [
|
|
27933
27959
|
/* @__PURE__ */ b("span", { className: "ui-invisible ui-col-start-1 ui-row-start-1 ui-inline-grid ui-grid-cols-1", children: [
|
|
27934
27960
|
/* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: e }),
|
|
27935
|
-
/* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children:
|
|
27961
|
+
/* @__PURE__ */ r("span", { className: "ui-col-start-1 ui-row-start-1 ui-whitespace-nowrap ui-text-body-sm-bold ui-font-body-sm-bold ui-leading-none", children: Xn.remove })
|
|
27936
27962
|
] }),
|
|
27937
27963
|
/* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-100 ui-transition-opacity group-hover:ui-opacity-0", children: /* @__PURE__ */ r("span", { className: o, children: e }) }),
|
|
27938
|
-
/* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100", children: /* @__PURE__ */ r("span", { className: o, children:
|
|
27964
|
+
/* @__PURE__ */ r("span", { className: "ui-absolute ui-inset-0 ui-grid ui-place-items-center ui-opacity-0 ui-transition-opacity group-hover:ui-opacity-100", children: /* @__PURE__ */ r("span", { className: o, children: Xn.remove }) })
|
|
27939
27965
|
] })
|
|
27940
27966
|
] });
|
|
27941
27967
|
}
|
|
@@ -27977,21 +28003,21 @@ const Ro = At(
|
|
|
27977
28003
|
}, E) {
|
|
27978
28004
|
const B = q(null), Z = q(null), [$, K] = A(() => [
|
|
27979
28005
|
...v
|
|
27980
|
-
]), ee = !!(L && g.length > 0),
|
|
28006
|
+
]), ee = !!(L && g.length > 0), pe = C ?? $, F = pe.length > 0, ne = oe(
|
|
27981
28007
|
() => ({ family: "catalog", title: p, primaryVariant: D }),
|
|
27982
28008
|
[p, D]
|
|
27983
28009
|
), ie = g.join("\0");
|
|
27984
28010
|
Y(() => {
|
|
27985
|
-
C === void 0 && K((
|
|
28011
|
+
C === void 0 && K((de) => de.filter((Ie) => g.includes(Ie)));
|
|
27986
28012
|
}, [ie, C]);
|
|
27987
|
-
const me = (
|
|
27988
|
-
C === void 0 && K(
|
|
27989
|
-
}, fe = k ??
|
|
27990
|
-
} } : void 0), we = !!(T != null && T.length), U = I ?? x, te = !!U, J = !te && (!!(z != null && z.length) || ee), ae = ee && g.length > 0 && F && D === "added", ge = ae ? /* @__PURE__ */ r(c1, { labelText: G }) : G, ve = "ui-w-[250px] ui-min-w-[250px] ui-max-w-[250px]", _ = f && f.length > 0 ? f : d ? Y4 : [], Ce = (
|
|
27991
|
-
s && (
|
|
27992
|
-
}, se = (
|
|
27993
|
-
s && (
|
|
27994
|
-
}, be = !!(c != null && c.trim()) || !!(h != null && h.trim()),
|
|
28013
|
+
const me = (de) => {
|
|
28014
|
+
C === void 0 && K(de), L == null || L(de, ne);
|
|
28015
|
+
}, fe = k ?? Xn[D], X = ee && g.length > 0 ? F ? D === "add" ? Vi : D === "added" ? Un : Mt : Vi : D === "add" ? Vi : D === "added" ? Un : Mt, G = ee && g.length > 0 ? F ? `${fe} ${pe.length}/${g.length}` : k ?? Xn.add : fe, le = P ?? (ee ? { label: "Cerrar", onClick: () => {
|
|
28016
|
+
} } : void 0), we = !!(T != null && T.length), U = I ?? x, te = !!U, J = !te && (!!(z != null && z.length) || ee), ae = ee && g.length > 0 && F && D === "added", ge = ae ? /* @__PURE__ */ r(c1, { labelText: G }) : G, ve = "ui-w-[250px] ui-min-w-[250px] ui-max-w-[250px]", _ = f && f.length > 0 ? f : d ? Y4 : [], Ce = (de) => {
|
|
28017
|
+
s && (de.stopPropagation(), s(ne));
|
|
28018
|
+
}, se = (de) => {
|
|
28019
|
+
s && (de.key === "Enter" || de.key === " ") && (de.preventDefault(), s(ne));
|
|
28020
|
+
}, be = !!(c != null && c.trim()) || !!(h != null && h.trim()), Ne = !!(m != null && m.trim()), he = we ? /* @__PURE__ */ r(
|
|
27995
28021
|
Ft,
|
|
27996
28022
|
{
|
|
27997
28023
|
ref: B,
|
|
@@ -28009,14 +28035,14 @@ const Ro = At(
|
|
|
28009
28035
|
{
|
|
28010
28036
|
items: T,
|
|
28011
28037
|
onDismiss: () => {
|
|
28012
|
-
var
|
|
28013
|
-
return (
|
|
28038
|
+
var de;
|
|
28039
|
+
return (de = B.current) == null ? void 0 : de.close();
|
|
28014
28040
|
}
|
|
28015
28041
|
}
|
|
28016
28042
|
)
|
|
28017
28043
|
}
|
|
28018
28044
|
) : /* @__PURE__ */ r(
|
|
28019
|
-
|
|
28045
|
+
Ee,
|
|
28020
28046
|
{
|
|
28021
28047
|
color: "secondary",
|
|
28022
28048
|
size: "xs",
|
|
@@ -28025,12 +28051,12 @@ const Ro = At(
|
|
|
28025
28051
|
icon: gn,
|
|
28026
28052
|
className: j(M ? "ui-bg-fill-secondary-hover" : void 0),
|
|
28027
28053
|
"aria-label": "Opciones",
|
|
28028
|
-
onClick: (
|
|
28029
|
-
zt(
|
|
28054
|
+
onClick: (de) => {
|
|
28055
|
+
zt(de), H == null || H(ne);
|
|
28030
28056
|
}
|
|
28031
28057
|
}
|
|
28032
|
-
),
|
|
28033
|
-
|
|
28058
|
+
), Te = te ? /* @__PURE__ */ r(
|
|
28059
|
+
Ee,
|
|
28034
28060
|
{
|
|
28035
28061
|
link: U,
|
|
28036
28062
|
target: N,
|
|
@@ -28070,21 +28096,21 @@ const Ro = At(
|
|
|
28070
28096
|
{
|
|
28071
28097
|
items: z ?? [],
|
|
28072
28098
|
tags: ee ? g : void 0,
|
|
28073
|
-
selectedTags:
|
|
28099
|
+
selectedTags: pe,
|
|
28074
28100
|
onTagsChange: ee ? me : void 0,
|
|
28075
28101
|
selectAllLabel: w,
|
|
28076
28102
|
tagsShowSelectAll: y,
|
|
28077
28103
|
footer: le,
|
|
28078
28104
|
maxHeightClass: R,
|
|
28079
28105
|
onDismiss: () => {
|
|
28080
|
-
var
|
|
28081
|
-
return (
|
|
28106
|
+
var de;
|
|
28107
|
+
return (de = Z.current) == null ? void 0 : de.close();
|
|
28082
28108
|
}
|
|
28083
28109
|
}
|
|
28084
28110
|
)
|
|
28085
28111
|
}
|
|
28086
28112
|
) : D === "added" ? /* @__PURE__ */ r(
|
|
28087
|
-
|
|
28113
|
+
Ee,
|
|
28088
28114
|
{
|
|
28089
28115
|
color: "secondary",
|
|
28090
28116
|
theme: "solid",
|
|
@@ -28093,13 +28119,13 @@ const Ro = At(
|
|
|
28093
28119
|
fullWidth: !0,
|
|
28094
28120
|
textAlign: "center",
|
|
28095
28121
|
className: "ui-group ui-justify-center",
|
|
28096
|
-
onClick: (
|
|
28097
|
-
zt(
|
|
28122
|
+
onClick: (de) => {
|
|
28123
|
+
zt(de), O == null || O(ne);
|
|
28098
28124
|
},
|
|
28099
28125
|
children: /* @__PURE__ */ r(c1, { labelText: fe })
|
|
28100
28126
|
}
|
|
28101
28127
|
) : /* @__PURE__ */ r(
|
|
28102
|
-
|
|
28128
|
+
Ee,
|
|
28103
28129
|
{
|
|
28104
28130
|
color: D === "add" ? "primary" : "secondary",
|
|
28105
28131
|
theme: "solid",
|
|
@@ -28109,8 +28135,8 @@ const Ro = At(
|
|
|
28109
28135
|
fullWidth: !0,
|
|
28110
28136
|
textAlign: "center",
|
|
28111
28137
|
className: "ui-justify-center",
|
|
28112
|
-
onClick: (
|
|
28113
|
-
zt(
|
|
28138
|
+
onClick: (de) => {
|
|
28139
|
+
zt(de), O == null || O(ne);
|
|
28114
28140
|
},
|
|
28115
28141
|
children: fe
|
|
28116
28142
|
}
|
|
@@ -28164,19 +28190,19 @@ const Ro = At(
|
|
|
28164
28190
|
backgroundColor: "white"
|
|
28165
28191
|
}
|
|
28166
28192
|
) }) : null,
|
|
28167
|
-
_.length > 0 ? /* @__PURE__ */ r("div", { className: "ui-pointer-events-none ui-absolute ui-right-8 ui-top-8 ui-z-10 ui-flex ui-items-start ui-gap-4", children: _.map((
|
|
28168
|
-
const { id:
|
|
28169
|
-
return
|
|
28193
|
+
_.length > 0 ? /* @__PURE__ */ r("div", { className: "ui-pointer-events-none ui-absolute ui-right-8 ui-top-8 ui-z-10 ui-flex ui-items-start ui-gap-4", children: _.map((de, Ie) => {
|
|
28194
|
+
const { id: Fe, tooltip: Ae, tooltipProps: Re, ..._e } = de, Be = Fe ?? `media-indicator-${Ie}`, ot = /* @__PURE__ */ r("span", { className: "ui-pointer-events-auto ui-inline-flex ui-shrink-0", children: /* @__PURE__ */ r(Le, { ..._e, size: "xs", padding: "xs" }) });
|
|
28195
|
+
return Ae != null && String(Ae).length > 0 ? /* @__PURE__ */ r(
|
|
28170
28196
|
It,
|
|
28171
28197
|
{
|
|
28172
|
-
label:
|
|
28198
|
+
label: Ae,
|
|
28173
28199
|
position: "top",
|
|
28174
28200
|
preserveLayout: !0,
|
|
28175
28201
|
...Re,
|
|
28176
|
-
children:
|
|
28202
|
+
children: ot
|
|
28177
28203
|
},
|
|
28178
|
-
|
|
28179
|
-
) : /* @__PURE__ */ r(is, { children:
|
|
28204
|
+
Be
|
|
28205
|
+
) : /* @__PURE__ */ r(is, { children: ot }, Be);
|
|
28180
28206
|
}) }) : null
|
|
28181
28207
|
] }) : null,
|
|
28182
28208
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-4 ui-px-16", children: [
|
|
@@ -28189,7 +28215,7 @@ const Ro = At(
|
|
|
28189
28215
|
),
|
|
28190
28216
|
children: [
|
|
28191
28217
|
c != null && c.trim() ? /* @__PURE__ */ r("div", { className: "ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
|
|
28192
|
-
|
|
28218
|
+
xt,
|
|
28193
28219
|
{
|
|
28194
28220
|
title: c,
|
|
28195
28221
|
position: "top",
|
|
@@ -28203,7 +28229,7 @@ const Ro = At(
|
|
|
28203
28229
|
h != null && h.trim() ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-shrink-0 ui-items-center ui-gap-4", children: [
|
|
28204
28230
|
/* @__PURE__ */ r(Le, { name: z1, size: "xs", color: "yellow" }),
|
|
28205
28231
|
/* @__PURE__ */ r(
|
|
28206
|
-
|
|
28232
|
+
xt,
|
|
28207
28233
|
{
|
|
28208
28234
|
title: h.trim(),
|
|
28209
28235
|
position: "top",
|
|
@@ -28220,7 +28246,7 @@ const Ro = At(
|
|
|
28220
28246
|
}
|
|
28221
28247
|
) : null,
|
|
28222
28248
|
/* @__PURE__ */ r("div", { className: "ui-w-full ui-min-w-0", children: /* @__PURE__ */ r(
|
|
28223
|
-
|
|
28249
|
+
xt,
|
|
28224
28250
|
{
|
|
28225
28251
|
title: p,
|
|
28226
28252
|
position: "top",
|
|
@@ -28231,7 +28257,7 @@ const Ro = At(
|
|
|
28231
28257
|
children: p
|
|
28232
28258
|
}
|
|
28233
28259
|
) }),
|
|
28234
|
-
|
|
28260
|
+
Ne ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-items-center ui-gap-4", children: [
|
|
28235
28261
|
/* @__PURE__ */ r(
|
|
28236
28262
|
"span",
|
|
28237
28263
|
{
|
|
@@ -28243,7 +28269,7 @@ const Ro = At(
|
|
|
28243
28269
|
}
|
|
28244
28270
|
),
|
|
28245
28271
|
/* @__PURE__ */ r("div", { className: "ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
|
|
28246
|
-
|
|
28272
|
+
xt,
|
|
28247
28273
|
{
|
|
28248
28274
|
title: m,
|
|
28249
28275
|
position: "top",
|
|
@@ -28259,7 +28285,7 @@ const Ro = At(
|
|
|
28259
28285
|
] }),
|
|
28260
28286
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-items-center ui-gap-12 ui-px-16", children: [
|
|
28261
28287
|
he,
|
|
28262
|
-
/* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-flex-1", children:
|
|
28288
|
+
/* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-0 ui-w-full ui-flex-1", children: Te })
|
|
28263
28289
|
] })
|
|
28264
28290
|
]
|
|
28265
28291
|
}
|
|
@@ -28320,7 +28346,7 @@ const Bo = At(
|
|
|
28320
28346
|
)
|
|
28321
28347
|
}
|
|
28322
28348
|
) : /* @__PURE__ */ r(
|
|
28323
|
-
|
|
28349
|
+
Ee,
|
|
28324
28350
|
{
|
|
28325
28351
|
color: "secondary",
|
|
28326
28352
|
size: "xs",
|
|
@@ -28366,7 +28392,7 @@ const Bo = At(
|
|
|
28366
28392
|
S ? /* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-0 ui-items-center ui-gap-4", children: [
|
|
28367
28393
|
/* @__PURE__ */ r(Le, { name: z1, size: "xs", color: "yellow" }),
|
|
28368
28394
|
/* @__PURE__ */ r(
|
|
28369
|
-
|
|
28395
|
+
xt,
|
|
28370
28396
|
{
|
|
28371
28397
|
title: (a ?? "").trim(),
|
|
28372
28398
|
position: "top",
|
|
@@ -28381,7 +28407,7 @@ const Bo = At(
|
|
|
28381
28407
|
}
|
|
28382
28408
|
) : null,
|
|
28383
28409
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-col ui-items-center ui-gap-12", children: [
|
|
28384
|
-
/* @__PURE__ */ r(
|
|
28410
|
+
/* @__PURE__ */ r(St, { type: "letter", text: l, theme: "solid", color: "blue", size: "md" }),
|
|
28385
28411
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-col ui-items-center ui-text-center", children: [
|
|
28386
28412
|
/* @__PURE__ */ r("p", { className: "ui-w-full ui-truncate ui-text-body-sm-regular ui-font-body-sm-regular ui-leading-body-sm-regular ui-tracking-body-sm ui-text-primary", children: f }),
|
|
28387
28413
|
/* @__PURE__ */ r("p", { className: "ui-w-full ui-truncate ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-secondary", children: d })
|
|
@@ -28407,7 +28433,7 @@ const Bo = At(
|
|
|
28407
28433
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-10 ui-px-16", children: [
|
|
28408
28434
|
T,
|
|
28409
28435
|
/* @__PURE__ */ r(
|
|
28410
|
-
|
|
28436
|
+
Ee,
|
|
28411
28437
|
{
|
|
28412
28438
|
color: "primary",
|
|
28413
28439
|
theme: "solid",
|
|
@@ -28531,7 +28557,7 @@ const V8 = ({
|
|
|
28531
28557
|
className: "ui-relative ui-z-10 ui-h-full ui-w-11 ui-min-w-11 ui-bg-fill",
|
|
28532
28558
|
style: { zIndex: 10 },
|
|
28533
28559
|
children: /* @__PURE__ */ b("div", { className: "no-scrollbar ui-mb-auto ui-flex ui-h-[calc(100%)] ui-flex-col ui-items-center ui-justify-between ui-gap-8 ui-overflow-y-auto ui-py-8", children: [
|
|
28534
|
-
n && /* @__PURE__ */ r(
|
|
28560
|
+
n && /* @__PURE__ */ r(Ze, { children: a ? /* @__PURE__ */ r(
|
|
28535
28561
|
Ft,
|
|
28536
28562
|
{
|
|
28537
28563
|
position: "left",
|
|
@@ -28552,7 +28578,7 @@ const V8 = ({
|
|
|
28552
28578
|
position: d,
|
|
28553
28579
|
disabled: !f,
|
|
28554
28580
|
children: /* @__PURE__ */ r(
|
|
28555
|
-
|
|
28581
|
+
Ee,
|
|
28556
28582
|
{
|
|
28557
28583
|
color: "secondary",
|
|
28558
28584
|
size: "xs",
|
|
@@ -28575,7 +28601,7 @@ const V8 = ({
|
|
|
28575
28601
|
position: x,
|
|
28576
28602
|
disabled: !f || !w.tooltip,
|
|
28577
28603
|
children: /* @__PURE__ */ r(
|
|
28578
|
-
|
|
28604
|
+
Ee,
|
|
28579
28605
|
{
|
|
28580
28606
|
color: y ? "primary" : "secondary",
|
|
28581
28607
|
size: "xs",
|
|
@@ -28728,7 +28754,7 @@ const E8 = (e) => {
|
|
|
28728
28754
|
},
|
|
28729
28755
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- props.onDateChange en deps; evitar recrear en cada cambio de props
|
|
28730
28756
|
[i, g, e.onDateChange, s, z]
|
|
28731
|
-
),
|
|
28757
|
+
), pe = V(
|
|
28732
28758
|
(X, G = !1) => {
|
|
28733
28759
|
var le;
|
|
28734
28760
|
i === "range" && (a === !0 || G === !0 ? (m || l((we) => ({
|
|
@@ -28804,7 +28830,7 @@ const E8 = (e) => {
|
|
|
28804
28830
|
setCurrentDate: Z,
|
|
28805
28831
|
setViewMode: $,
|
|
28806
28832
|
setSelectedDate: ee,
|
|
28807
|
-
setSelectedRange:
|
|
28833
|
+
setSelectedRange: pe,
|
|
28808
28834
|
setHoverDate: F,
|
|
28809
28835
|
updatePortalPosition: fe,
|
|
28810
28836
|
navigate: K,
|
|
@@ -29113,11 +29139,11 @@ const E8 = (e) => {
|
|
|
29113
29139
|
"aria-label": `Día ${e}`,
|
|
29114
29140
|
children: e
|
|
29115
29141
|
}
|
|
29116
|
-
),
|
|
29142
|
+
), Qn = ({
|
|
29117
29143
|
direction: e,
|
|
29118
29144
|
onClick: i,
|
|
29119
29145
|
disabled: o = !1
|
|
29120
|
-
}) => /* @__PURE__ */ r(
|
|
29146
|
+
}) => /* @__PURE__ */ r(Ze, { children: /* @__PURE__ */ r(
|
|
29121
29147
|
ke,
|
|
29122
29148
|
{
|
|
29123
29149
|
theme: "solid",
|
|
@@ -29198,8 +29224,8 @@ const E8 = (e) => {
|
|
|
29198
29224
|
}
|
|
29199
29225
|
),
|
|
29200
29226
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-1", children: [
|
|
29201
|
-
/* @__PURE__ */ r(
|
|
29202
|
-
/* @__PURE__ */ r(
|
|
29227
|
+
/* @__PURE__ */ r(Qn, { direction: "prev", onClick: () => o("prev") }),
|
|
29228
|
+
/* @__PURE__ */ r(Qn, { direction: "next", onClick: () => o("next") })
|
|
29203
29229
|
] })
|
|
29204
29230
|
] }) });
|
|
29205
29231
|
}, Zo = ({
|
|
@@ -29419,7 +29445,7 @@ const E8 = (e) => {
|
|
|
29419
29445
|
toggleViewMode: () => t(0),
|
|
29420
29446
|
navigate: f
|
|
29421
29447
|
}) }) : /* @__PURE__ */ r("div", { className: "ui-border-b ui-border-neutral-100 ui-p-3", children: /* @__PURE__ */ b("div", { className: "ui-relative ui-flex ui-w-full ui-items-center ui-justify-between", children: [
|
|
29422
|
-
/* @__PURE__ */ r(
|
|
29448
|
+
/* @__PURE__ */ r(Qn, { direction: "prev", onClick: () => o("prev") }),
|
|
29423
29449
|
/* @__PURE__ */ r("div", { className: "ui-absolute ui-flex ui-w-full ui-flex-1 ui-items-center ui-justify-center ui-gap-2 ui-px-2 md:ui-px-0", children: e.map((c, h) => /* @__PURE__ */ r(
|
|
29424
29450
|
"div",
|
|
29425
29451
|
{
|
|
@@ -29443,7 +29469,7 @@ const E8 = (e) => {
|
|
|
29443
29469
|
},
|
|
29444
29470
|
h
|
|
29445
29471
|
)) }),
|
|
29446
|
-
/* @__PURE__ */ r(
|
|
29472
|
+
/* @__PURE__ */ r(Qn, { direction: "next", onClick: () => o("next") })
|
|
29447
29473
|
] }) });
|
|
29448
29474
|
}, F8 = ({
|
|
29449
29475
|
currentDate: e,
|
|
@@ -29783,7 +29809,7 @@ const E8 = (e) => {
|
|
|
29783
29809
|
ie[F] = new Date(ne, E[F].getMonth(), 1), B(ie);
|
|
29784
29810
|
const me = [...P];
|
|
29785
29811
|
me[F] = "months", R(me), c == null || c(ne);
|
|
29786
|
-
},
|
|
29812
|
+
}, pe = (F) => {
|
|
29787
29813
|
const ne = [...E];
|
|
29788
29814
|
ne.forEach((ie, me) => {
|
|
29789
29815
|
const fe = new Date(ie);
|
|
@@ -29808,7 +29834,7 @@ const E8 = (e) => {
|
|
|
29808
29834
|
{
|
|
29809
29835
|
calendarDates: E,
|
|
29810
29836
|
viewModes: P,
|
|
29811
|
-
onNavigate:
|
|
29837
|
+
onNavigate: pe,
|
|
29812
29838
|
onToggleViewMode: $,
|
|
29813
29839
|
onGoToToday: h,
|
|
29814
29840
|
monthNames: L,
|
|
@@ -29874,7 +29900,7 @@ const E8 = (e) => {
|
|
|
29874
29900
|
}
|
|
29875
29901
|
) })
|
|
29876
29902
|
);
|
|
29877
|
-
},
|
|
29903
|
+
}, Dn = (e) => {
|
|
29878
29904
|
const {
|
|
29879
29905
|
mode: i = "single",
|
|
29880
29906
|
selectedDate: o = null,
|
|
@@ -29952,13 +29978,13 @@ const E8 = (e) => {
|
|
|
29952
29978
|
i === "single" ? !v && N.pendingDate !== null && (P.setSelectedDate(N.pendingDate, !0), n == null || n(N.pendingDate)) : i === "range" && !L && (N.pendingRange.start || N.pendingRange.end) && (P.setSelectedRange(N.pendingRange, !0), s == null || s(N.pendingRange)), P.closePicker();
|
|
29953
29979
|
}, ee = () => {
|
|
29954
29980
|
i === "single" && !v ? (P.setPendingDate(null), P.restoreOriginalDate()) : i === "range" && !L && (P.setPendingRange({ start: null, end: null }), P.restoreOriginalRange()), P.closePicker();
|
|
29955
|
-
},
|
|
29981
|
+
}, pe = () => i === "single" ? E(O) : B(H);
|
|
29956
29982
|
return /* @__PURE__ */ b("div", { className: j("ui-imj", "relative", p), children: [
|
|
29957
29983
|
/* @__PURE__ */ r(
|
|
29958
29984
|
$8,
|
|
29959
29985
|
{
|
|
29960
29986
|
ref: T,
|
|
29961
|
-
value:
|
|
29987
|
+
value: pe(),
|
|
29962
29988
|
placeholder: w,
|
|
29963
29989
|
label: c,
|
|
29964
29990
|
size: S,
|
|
@@ -30102,11 +30128,11 @@ const q8 = (e) => {
|
|
|
30102
30128
|
currentTab: P,
|
|
30103
30129
|
tabsOverHeader: R = !1
|
|
30104
30130
|
}) => {
|
|
30105
|
-
const { content: E, footer: B } = q8(n), Z = vo(), { isVisible: $, isAnimating: K } = ho(e), ee = q(null), [
|
|
30131
|
+
const { content: E, footer: B } = q8(n), Z = vo(), { isVisible: $, isAnimating: K } = ho(e), ee = q(null), [pe, F] = A(T);
|
|
30106
30132
|
Y(() => {
|
|
30107
30133
|
T !== void 0 && F(T);
|
|
30108
30134
|
}, [T]);
|
|
30109
|
-
const ne = P ??
|
|
30135
|
+
const ne = P ?? pe, ie = (le) => {
|
|
30110
30136
|
P === void 0 && F(le), z && z(le);
|
|
30111
30137
|
}, me = H && H.length > 0;
|
|
30112
30138
|
mo(e), Sr(e, i, c), wo(e, ee, !h);
|
|
@@ -30169,7 +30195,7 @@ const q8 = (e) => {
|
|
|
30169
30195
|
theme: "solid",
|
|
30170
30196
|
color: "secondary",
|
|
30171
30197
|
pill: "pill",
|
|
30172
|
-
icon:
|
|
30198
|
+
icon: Mt,
|
|
30173
30199
|
size: "xs"
|
|
30174
30200
|
}
|
|
30175
30201
|
) }),
|
|
@@ -30201,14 +30227,14 @@ const q8 = (e) => {
|
|
|
30201
30227
|
children: E
|
|
30202
30228
|
}
|
|
30203
30229
|
),
|
|
30204
|
-
B ? /* @__PURE__ */ b(
|
|
30230
|
+
B ? /* @__PURE__ */ b(Ze, { children: [
|
|
30205
30231
|
/* @__PURE__ */ r(Et.Separator, { padding: !1 }),
|
|
30206
30232
|
B
|
|
30207
|
-
] }) : (y || M) && /* @__PURE__ */ b(
|
|
30233
|
+
] }) : (y || M) && /* @__PURE__ */ b(Ze, { children: [
|
|
30208
30234
|
/* @__PURE__ */ r(Et.Separator, { padding: !1 }),
|
|
30209
30235
|
/* @__PURE__ */ b(Et.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-16 ui-p-16", children: [
|
|
30210
30236
|
y && /* @__PURE__ */ r(
|
|
30211
|
-
|
|
30237
|
+
Ee,
|
|
30212
30238
|
{
|
|
30213
30239
|
size: "xs",
|
|
30214
30240
|
fullWidth: !0,
|
|
@@ -30221,7 +30247,7 @@ const q8 = (e) => {
|
|
|
30221
30247
|
}
|
|
30222
30248
|
),
|
|
30223
30249
|
M && /* @__PURE__ */ r(
|
|
30224
|
-
|
|
30250
|
+
Ee,
|
|
30225
30251
|
{
|
|
30226
30252
|
size: "xs",
|
|
30227
30253
|
fullWidth: !0,
|
|
@@ -30241,7 +30267,7 @@ const q8 = (e) => {
|
|
|
30241
30267
|
]
|
|
30242
30268
|
}
|
|
30243
30269
|
);
|
|
30244
|
-
return
|
|
30270
|
+
return _n.createPortal(G, Z);
|
|
30245
30271
|
};
|
|
30246
30272
|
X8.Footer = Uo;
|
|
30247
30273
|
const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
@@ -30296,7 +30322,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30296
30322
|
Z((te) => te !== U ? U : te);
|
|
30297
30323
|
}
|
|
30298
30324
|
}, [e, $, c, P, R]);
|
|
30299
|
-
const
|
|
30325
|
+
const pe = c ? o.filter((U) => {
|
|
30300
30326
|
const te = U[n];
|
|
30301
30327
|
return P(K).some((J) => E(J, te));
|
|
30302
30328
|
}) : (() => {
|
|
@@ -30341,7 +30367,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30341
30367
|
}, []), ie = V(() => {
|
|
30342
30368
|
const U = ne();
|
|
30343
30369
|
U && requestAnimationFrame(() => {
|
|
30344
|
-
var
|
|
30370
|
+
var Fe;
|
|
30345
30371
|
const te = U.getBoundingClientRect(), J = window.innerHeight;
|
|
30346
30372
|
let ae = 0;
|
|
30347
30373
|
T.current && (ae = T.current.offsetHeight), ae === 0 && (ae = Math.min(200, F.length * 40));
|
|
@@ -30352,27 +30378,27 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30352
30378
|
if (!p)
|
|
30353
30379
|
_ === "bottom" ? Ce = te.bottom + 4 : Ce = te.top - ae - 4, se = te.left;
|
|
30354
30380
|
else {
|
|
30355
|
-
const
|
|
30356
|
-
if (!
|
|
30357
|
-
const Re = te.top -
|
|
30358
|
-
_ === "bottom" ? Ce = Re + te.height + 4 : Ce = Re - ae - 4, se =
|
|
30381
|
+
const Ae = (Fe = z.current) == null ? void 0 : Fe.getBoundingClientRect();
|
|
30382
|
+
if (!Ae) return;
|
|
30383
|
+
const Re = te.top - Ae.top, _e = te.left - Ae.left;
|
|
30384
|
+
_ === "bottom" ? Ce = Re + te.height + 4 : Ce = Re - ae - 4, se = _e;
|
|
30359
30385
|
}
|
|
30360
|
-
const
|
|
30386
|
+
const Ne = m !== void 0 ? m : p ? 9999 : 1100, he = m !== void 0 ? 0 : parseInt(L.replace(/\D/g, "")) || 0, Te = Ne + he % 100, Ie = {
|
|
30361
30387
|
position: p ? "absolute" : "fixed",
|
|
30362
30388
|
top: `${Ce}px`,
|
|
30363
30389
|
left: `${se}px`,
|
|
30364
30390
|
width: `${be}px`,
|
|
30365
|
-
zIndex:
|
|
30391
|
+
zIndex: Te
|
|
30366
30392
|
};
|
|
30367
|
-
O(
|
|
30393
|
+
O(Ie);
|
|
30368
30394
|
});
|
|
30369
30395
|
}, [ne, F.length, L, p, m]), me = V(() => {
|
|
30370
|
-
if (!T.current || !
|
|
30396
|
+
if (!T.current || !pe.length)
|
|
30371
30397
|
return;
|
|
30372
30398
|
const te = T.current.querySelector(".ui-overflow-y-auto");
|
|
30373
30399
|
if (!te)
|
|
30374
30400
|
return;
|
|
30375
|
-
const J =
|
|
30401
|
+
const J = pe[0];
|
|
30376
30402
|
if (!J) return;
|
|
30377
30403
|
const ae = te.querySelector(
|
|
30378
30404
|
`[data-option-value="${J[n]}"]`
|
|
@@ -30384,7 +30410,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30384
30410
|
top: Math.max(0, Ce),
|
|
30385
30411
|
behavior: "smooth"
|
|
30386
30412
|
});
|
|
30387
|
-
}, [
|
|
30413
|
+
}, [pe, n]), fe = (U) => {
|
|
30388
30414
|
U && U.stopPropagation(), !d && (w ? X() : (Q8(L), S(""), x(!1), ie(), setTimeout(() => {
|
|
30389
30415
|
y(!0), Gi.add(L), setTimeout(() => {
|
|
30390
30416
|
ie(), setTimeout(() => {
|
|
@@ -30456,7 +30482,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30456
30482
|
isClosing: M,
|
|
30457
30483
|
searchValue: I,
|
|
30458
30484
|
selectedValue: K,
|
|
30459
|
-
selectedOptions:
|
|
30485
|
+
selectedOptions: pe,
|
|
30460
30486
|
filteredOptions: F,
|
|
30461
30487
|
position: N,
|
|
30462
30488
|
dropdownStyle: k,
|
|
@@ -30619,7 +30645,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30619
30645
|
pill: $ = "sm",
|
|
30620
30646
|
listVariant: K = "default",
|
|
30621
30647
|
onToggleChange: ee,
|
|
30622
|
-
filtersTitle:
|
|
30648
|
+
filtersTitle: pe,
|
|
30623
30649
|
tooltipProps: F,
|
|
30624
30650
|
loading: ne = !1,
|
|
30625
30651
|
...ie
|
|
@@ -30643,24 +30669,24 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30643
30669
|
searchValue: Ce,
|
|
30644
30670
|
selectedValue: se,
|
|
30645
30671
|
selectedOptions: be,
|
|
30646
|
-
filteredOptions:
|
|
30672
|
+
filteredOptions: Ne,
|
|
30647
30673
|
dropdownStyle: he,
|
|
30648
|
-
isControlled:
|
|
30674
|
+
isControlled: Te,
|
|
30649
30675
|
// Referencias
|
|
30650
|
-
inputRef:
|
|
30651
|
-
dropdownRef:
|
|
30652
|
-
containerRef:
|
|
30653
|
-
dropdownUniqueId:
|
|
30676
|
+
inputRef: de,
|
|
30677
|
+
dropdownRef: Ie,
|
|
30678
|
+
containerRef: Fe,
|
|
30679
|
+
dropdownUniqueId: Ae,
|
|
30654
30680
|
// Funciones
|
|
30655
30681
|
toggleDropdown: Re,
|
|
30656
|
-
closeDropdown:
|
|
30657
|
-
handleOptionSelect:
|
|
30658
|
-
handleSearchChange:
|
|
30659
|
-
handleClear:
|
|
30660
|
-
calculatePosition:
|
|
30661
|
-
scrollToSelectedOption:
|
|
30662
|
-
setValue:
|
|
30663
|
-
normalizeToArray:
|
|
30682
|
+
closeDropdown: _e,
|
|
30683
|
+
handleOptionSelect: Be,
|
|
30684
|
+
handleSearchChange: ot,
|
|
30685
|
+
handleClear: vt,
|
|
30686
|
+
calculatePosition: Je,
|
|
30687
|
+
scrollToSelectedOption: Ve,
|
|
30688
|
+
setValue: Ue,
|
|
30689
|
+
normalizeToArray: bt
|
|
30664
30690
|
} = J8({
|
|
30665
30691
|
value: p,
|
|
30666
30692
|
defaultValue: ge,
|
|
@@ -30685,38 +30711,38 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30685
30711
|
}
|
|
30686
30712
|
}), Ke = (ce, je) => {
|
|
30687
30713
|
if (k) {
|
|
30688
|
-
const
|
|
30714
|
+
const Ge = bt(se), re = ce[w];
|
|
30689
30715
|
if (je) {
|
|
30690
|
-
if (!
|
|
30691
|
-
const
|
|
30692
|
-
|
|
30716
|
+
if (!Ge.includes(re)) {
|
|
30717
|
+
const ze = [...Ge, re];
|
|
30718
|
+
Ue(ze);
|
|
30693
30719
|
}
|
|
30694
30720
|
} else {
|
|
30695
|
-
const
|
|
30696
|
-
|
|
30721
|
+
const ze = Ge.filter((pt) => pt !== re);
|
|
30722
|
+
Ue(ze);
|
|
30697
30723
|
}
|
|
30698
30724
|
}
|
|
30699
30725
|
}, tt = V((ce, je) => {
|
|
30700
30726
|
if (ce === je || String(ce) === String(je)) return !0;
|
|
30701
|
-
const
|
|
30702
|
-
return !isNaN(
|
|
30727
|
+
const Ge = Number(ce), re = Number(je);
|
|
30728
|
+
return !isNaN(Ge) && !isNaN(re) && Ge === re;
|
|
30703
30729
|
}, []);
|
|
30704
30730
|
Y(() => {
|
|
30705
|
-
if (
|
|
30731
|
+
if (Te && p !== void 0)
|
|
30706
30732
|
if (p === "" || p === -1 || p === "-1")
|
|
30707
30733
|
G((ce) => ce !== u ? u : ce), we((ce) => ce !== null ? null : ce);
|
|
30708
30734
|
else {
|
|
30709
|
-
const ce = Array.isArray(p) ? p[0] : p, je = ae.find((
|
|
30735
|
+
const ce = Array.isArray(p) ? p[0] : p, je = ae.find((Ge) => ce == null ? !1 : tt(Ge[L], ce) || tt(Ge[w], ce));
|
|
30710
30736
|
if (je) {
|
|
30711
|
-
const
|
|
30712
|
-
G((
|
|
30737
|
+
const Ge = je.icon || u, re = je.iconColor || null;
|
|
30738
|
+
G((ze) => ze !== Ge ? Ge : ze), we((ze) => ze !== re ? re : ze), K === "user" && G(
|
|
30713
30739
|
je.avatarUrl ? je.avatarUrl : u
|
|
30714
30740
|
);
|
|
30715
30741
|
}
|
|
30716
30742
|
}
|
|
30717
30743
|
}, [
|
|
30718
30744
|
p,
|
|
30719
|
-
|
|
30745
|
+
Te,
|
|
30720
30746
|
ae,
|
|
30721
30747
|
L,
|
|
30722
30748
|
w,
|
|
@@ -30728,78 +30754,78 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30728
30754
|
() => ({
|
|
30729
30755
|
getValue: () => se,
|
|
30730
30756
|
setValue: (ce) => {
|
|
30731
|
-
|
|
30757
|
+
Te || Ue(ce), y == null || y(ce);
|
|
30732
30758
|
},
|
|
30733
30759
|
focus: () => {
|
|
30734
30760
|
var ce, je;
|
|
30735
|
-
k && H === "tags" ? (ce = fe.current) == null || ce.focus() : (je =
|
|
30761
|
+
k && H === "tags" ? (ce = fe.current) == null || ce.focus() : (je = de.current) == null || je.focus();
|
|
30736
30762
|
},
|
|
30737
30763
|
blur: () => {
|
|
30738
30764
|
var ce, je;
|
|
30739
|
-
k && H === "tags" ? (ce = fe.current) == null || ce.blur() : (je =
|
|
30765
|
+
k && H === "tags" ? (ce = fe.current) == null || ce.blur() : (je = de.current) == null || je.blur();
|
|
30740
30766
|
},
|
|
30741
30767
|
clear: () => {
|
|
30742
|
-
|
|
30768
|
+
Te || Ue(k ? [] : ""), y == null || y(k ? [] : "");
|
|
30743
30769
|
},
|
|
30744
30770
|
open: () => {
|
|
30745
|
-
g || (
|
|
30771
|
+
g || (Je(), setTimeout(() => {
|
|
30746
30772
|
Re();
|
|
30747
30773
|
}, 50));
|
|
30748
30774
|
},
|
|
30749
30775
|
close: () => {
|
|
30750
|
-
|
|
30776
|
+
_e();
|
|
30751
30777
|
}
|
|
30752
30778
|
}),
|
|
30753
30779
|
[
|
|
30754
30780
|
se,
|
|
30755
|
-
|
|
30781
|
+
Te,
|
|
30756
30782
|
g,
|
|
30757
|
-
|
|
30783
|
+
Je,
|
|
30758
30784
|
y,
|
|
30759
|
-
|
|
30785
|
+
_e,
|
|
30760
30786
|
k,
|
|
30761
|
-
|
|
30787
|
+
Ue,
|
|
30762
30788
|
Re,
|
|
30763
|
-
|
|
30789
|
+
de,
|
|
30764
30790
|
H
|
|
30765
30791
|
]
|
|
30766
30792
|
), Y(() => {
|
|
30767
30793
|
if (ve && be.length > 0) {
|
|
30768
30794
|
const ce = setTimeout(() => {
|
|
30769
|
-
|
|
30795
|
+
Ve();
|
|
30770
30796
|
}, 150);
|
|
30771
30797
|
return () => clearTimeout(ce);
|
|
30772
30798
|
}
|
|
30773
|
-
}, [ve, be,
|
|
30799
|
+
}, [ve, be, Ve]), Y(() => {
|
|
30774
30800
|
if (ve && k && H === "tags") {
|
|
30775
30801
|
const ce = fe.current;
|
|
30776
30802
|
if (!ce) return;
|
|
30777
30803
|
const je = new ResizeObserver(() => {
|
|
30778
30804
|
setTimeout(() => {
|
|
30779
|
-
|
|
30805
|
+
Je();
|
|
30780
30806
|
}, 50);
|
|
30781
30807
|
});
|
|
30782
30808
|
return je.observe(ce), () => {
|
|
30783
30809
|
je.disconnect();
|
|
30784
30810
|
};
|
|
30785
30811
|
}
|
|
30786
|
-
}, [ve, k, H,
|
|
30812
|
+
}, [ve, k, H, Je]), Y(() => {
|
|
30787
30813
|
if (ve && k && H === "tags") {
|
|
30788
30814
|
const ce = setTimeout(() => {
|
|
30789
|
-
|
|
30815
|
+
Je();
|
|
30790
30816
|
}, 100);
|
|
30791
30817
|
return () => clearTimeout(ce);
|
|
30792
30818
|
}
|
|
30793
|
-
}, [be, ve, k, H,
|
|
30819
|
+
}, [be, ve, k, H, Je]);
|
|
30794
30820
|
const qe = (ce) => {
|
|
30795
30821
|
if (k) {
|
|
30796
|
-
const
|
|
30797
|
-
if (
|
|
30798
|
-
const re = v.find((
|
|
30822
|
+
const Ge = bt(se).filter((re) => re !== ce);
|
|
30823
|
+
if (Ue(Ge), B && Ke) {
|
|
30824
|
+
const re = v.find((ze) => ze[w] === ce);
|
|
30799
30825
|
re && Ke(re, !1);
|
|
30800
30826
|
}
|
|
30801
30827
|
}
|
|
30802
|
-
},
|
|
30828
|
+
}, Lt = () => {
|
|
30803
30829
|
if (k) {
|
|
30804
30830
|
if (be.length === 0) return "";
|
|
30805
30831
|
switch (H) {
|
|
@@ -30817,14 +30843,14 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30817
30843
|
}
|
|
30818
30844
|
}, st = () => {
|
|
30819
30845
|
if (!ve || !he.top) return null;
|
|
30820
|
-
const ce = _ ? "animate-dropdown-exit" : "animate-dropdown-enter", je = (re,
|
|
30821
|
-
|
|
30822
|
-
},
|
|
30846
|
+
const ce = _ ? "animate-dropdown-exit" : "animate-dropdown-enter", je = (re, ze) => {
|
|
30847
|
+
Be(re, ze), re.icon && G(re.icon), re.iconColor && we(re.iconColor), K === "user" && G(re.avatarUrl ? re.avatarUrl : u);
|
|
30848
|
+
}, Ge = /* @__PURE__ */ b(
|
|
30823
30849
|
"div",
|
|
30824
30850
|
{
|
|
30825
|
-
ref:
|
|
30826
|
-
id:
|
|
30827
|
-
"data-dropdown-id":
|
|
30851
|
+
ref: Ie,
|
|
30852
|
+
id: Ae,
|
|
30853
|
+
"data-dropdown-id": Ae,
|
|
30828
30854
|
"data-dropdown-portal": "true",
|
|
30829
30855
|
style: {
|
|
30830
30856
|
position: he.position,
|
|
@@ -30841,7 +30867,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30841
30867
|
gt,
|
|
30842
30868
|
{
|
|
30843
30869
|
value: Ce,
|
|
30844
|
-
onChange:
|
|
30870
|
+
onChange: ot,
|
|
30845
30871
|
placeholder: f,
|
|
30846
30872
|
leftSlot: mn,
|
|
30847
30873
|
autoFocus: !0,
|
|
@@ -30851,12 +30877,12 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30851
30877
|
) }) }),
|
|
30852
30878
|
I && /* @__PURE__ */ r(ct, {}),
|
|
30853
30879
|
/* @__PURE__ */ b("div", { className: "custom-scrollbar ui-flex ui-max-h-[200px] ui-w-full ui-flex-col ui-gap-8 ui-overflow-y-auto ui-p-8 ui-will-change-transform", children: [
|
|
30854
|
-
K === "filters" &&
|
|
30855
|
-
/* @__PURE__ */ r("div", { className: "ui-text-body-sm-regular ui-font-body-sm-bold ui-leading-body-sm-bold ui-tracking-body-sm ui-text-primary", children:
|
|
30880
|
+
K === "filters" && pe && /* @__PURE__ */ b(Ze, { children: [
|
|
30881
|
+
/* @__PURE__ */ r("div", { className: "ui-text-body-sm-regular ui-font-body-sm-bold ui-leading-body-sm-bold ui-tracking-body-sm ui-text-primary", children: pe }),
|
|
30856
30882
|
/* @__PURE__ */ r("div", { className: "ui-w-full ui-border-t-1 ui-border-default" })
|
|
30857
30883
|
] }),
|
|
30858
|
-
|
|
30859
|
-
const
|
|
30884
|
+
Ne.length > 0 ? Ne.map((re) => {
|
|
30885
|
+
const ze = k ? be.some(
|
|
30860
30886
|
(Xe) => Xe && tt(
|
|
30861
30887
|
Xe[w],
|
|
30862
30888
|
re[w]
|
|
@@ -30867,12 +30893,12 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30867
30893
|
Vo,
|
|
30868
30894
|
{
|
|
30869
30895
|
disabled: re.disabled,
|
|
30870
|
-
current:
|
|
30896
|
+
current: ze ? "blue" : !1,
|
|
30871
30897
|
"data-option-value": String(re[w]),
|
|
30872
30898
|
icon: re.icon,
|
|
30873
30899
|
iconColor: re.iconColor,
|
|
30874
30900
|
checkboxProps: {
|
|
30875
|
-
checked:
|
|
30901
|
+
checked: ze,
|
|
30876
30902
|
onChange: (Xe) => Ke == null ? void 0 : Ke(re, Xe),
|
|
30877
30903
|
disabled: re.disabled
|
|
30878
30904
|
},
|
|
@@ -30895,7 +30921,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30895
30921
|
{
|
|
30896
30922
|
onClick: (Xe) => je(re, Xe),
|
|
30897
30923
|
disabled: re.disabled,
|
|
30898
|
-
current:
|
|
30924
|
+
current: ze,
|
|
30899
30925
|
color: re.color || "blue",
|
|
30900
30926
|
icon: re.icon,
|
|
30901
30927
|
iconColor: re.iconColor,
|
|
@@ -30909,7 +30935,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30909
30935
|
{
|
|
30910
30936
|
onClick: () => je(re, {}),
|
|
30911
30937
|
disabled: re.disabled,
|
|
30912
|
-
selected:
|
|
30938
|
+
selected: ze,
|
|
30913
30939
|
rightContent: re.rightContent,
|
|
30914
30940
|
children: String(re[L] || "")
|
|
30915
30941
|
},
|
|
@@ -30943,7 +30969,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30943
30969
|
) : re.avatar,
|
|
30944
30970
|
badge: re.badge,
|
|
30945
30971
|
badgeVariant: re.badgeVariant,
|
|
30946
|
-
selected:
|
|
30972
|
+
selected: ze,
|
|
30947
30973
|
onClick: () => je(re, {})
|
|
30948
30974
|
},
|
|
30949
30975
|
pt
|
|
@@ -30954,7 +30980,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30954
30980
|
{
|
|
30955
30981
|
title: String(re[L] || ""),
|
|
30956
30982
|
description: re.description,
|
|
30957
|
-
checked: re.checked ??
|
|
30983
|
+
checked: re.checked ?? ze,
|
|
30958
30984
|
disabled: re.disabled,
|
|
30959
30985
|
onChange: (Xe) => ee == null ? void 0 : ee(re, Xe)
|
|
30960
30986
|
},
|
|
@@ -30966,7 +30992,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30966
30992
|
{
|
|
30967
30993
|
onClick: (Xe) => je(re, Xe),
|
|
30968
30994
|
disabled: re.disabled,
|
|
30969
|
-
current:
|
|
30995
|
+
current: ze,
|
|
30970
30996
|
color: re.color || "blue",
|
|
30971
30997
|
icon: re.icon,
|
|
30972
30998
|
iconColor: re.iconColor,
|
|
@@ -30981,7 +31007,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
30981
31007
|
{
|
|
30982
31008
|
onClick: (Xe) => je(re, Xe),
|
|
30983
31009
|
disabled: re.disabled,
|
|
30984
|
-
current:
|
|
31010
|
+
current: ze ? "blue" : !1,
|
|
30985
31011
|
"data-option-value": String(re[w]),
|
|
30986
31012
|
icon: re.icon,
|
|
30987
31013
|
iconColor: re.iconColor,
|
|
@@ -31001,28 +31027,28 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
31001
31027
|
/* @__PURE__ */ r("p", { className: "ui-mt-2 ui-text-body-xs-regular ui-text-tertiary", children: c })
|
|
31002
31028
|
] }) : /* @__PURE__ */ r("div", { className: "ui-px-3 ui-text-center ui-text-sm ui-text-tertiary", children: "Sin opciones" })
|
|
31003
31029
|
] }),
|
|
31004
|
-
R && /* @__PURE__ */ b(
|
|
31030
|
+
R && /* @__PURE__ */ b(Ze, { children: [
|
|
31005
31031
|
/* @__PURE__ */ r(ct, {}),
|
|
31006
31032
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-min-w-[200px] ui-gap-x-2 ui-px-4 ui-py-2", children: [
|
|
31007
31033
|
/* @__PURE__ */ r(
|
|
31008
|
-
|
|
31034
|
+
Ee,
|
|
31009
31035
|
{
|
|
31010
31036
|
color: "secondary",
|
|
31011
31037
|
leftSlot: oa,
|
|
31012
31038
|
variant: "outlined",
|
|
31013
31039
|
size: "xs",
|
|
31014
31040
|
fullWidth: !0,
|
|
31015
|
-
onClick:
|
|
31041
|
+
onClick: vt,
|
|
31016
31042
|
children: "Limpiar"
|
|
31017
31043
|
}
|
|
31018
31044
|
),
|
|
31019
|
-
/* @__PURE__ */ r(
|
|
31045
|
+
/* @__PURE__ */ r(Ee, { color: "primary", size: "xs", fullWidth: !0, onClick: () => _e(), children: "OK" })
|
|
31020
31046
|
] })
|
|
31021
31047
|
] })
|
|
31022
31048
|
]
|
|
31023
31049
|
}
|
|
31024
31050
|
);
|
|
31025
|
-
return T ?
|
|
31051
|
+
return T ? Ge : Rt(Ge, document.body);
|
|
31026
31052
|
};
|
|
31027
31053
|
Y(() => {
|
|
31028
31054
|
u && G(u);
|
|
@@ -31030,9 +31056,9 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
31030
31056
|
const Bt = /* @__PURE__ */ b(
|
|
31031
31057
|
"div",
|
|
31032
31058
|
{
|
|
31033
|
-
ref:
|
|
31059
|
+
ref: Fe,
|
|
31034
31060
|
className: "ui-imj ui-relative ui-w-full",
|
|
31035
|
-
"data-dropdown-container-id":
|
|
31061
|
+
"data-dropdown-container-id": Ae,
|
|
31036
31062
|
children: [
|
|
31037
31063
|
k && H === "tags" ? /* @__PURE__ */ r(
|
|
31038
31064
|
W8,
|
|
@@ -31059,7 +31085,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
31059
31085
|
/* @__PURE__ */ r(
|
|
31060
31086
|
gt,
|
|
31061
31087
|
{
|
|
31062
|
-
ref:
|
|
31088
|
+
ref: de,
|
|
31063
31089
|
label: i,
|
|
31064
31090
|
error: o,
|
|
31065
31091
|
helperText: t,
|
|
@@ -31074,7 +31100,7 @@ const Gi = /* @__PURE__ */ new Set(), Q8 = (e) => {
|
|
|
31074
31100
|
caret: h,
|
|
31075
31101
|
disabled: g,
|
|
31076
31102
|
placeholder: C,
|
|
31077
|
-
value:
|
|
31103
|
+
value: Lt(),
|
|
31078
31104
|
readOnly: !0,
|
|
31079
31105
|
onClick: (ce) => Re(ce),
|
|
31080
31106
|
onClickExtraSlot: () => Re(),
|
|
@@ -31405,7 +31431,7 @@ const e3 = {
|
|
|
31405
31431
|
}
|
|
31406
31432
|
});
|
|
31407
31433
|
return /* @__PURE__ */ r("span", { className: j("ui-imj", n({ size: i })), role: "img", "aria-label": e, children: t });
|
|
31408
|
-
},
|
|
31434
|
+
}, Rn = [
|
|
31409
31435
|
{
|
|
31410
31436
|
id: "recent",
|
|
31411
31437
|
name: "Recientes",
|
|
@@ -33013,11 +33039,11 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33013
33039
|
I(Z), T(Z), e == null || e(B), l && H.current && H.current.close();
|
|
33014
33040
|
}, P = oe(() => !y || y.trim() === "" ? [
|
|
33015
33041
|
{
|
|
33016
|
-
...
|
|
33042
|
+
...Rn[0],
|
|
33017
33043
|
emojis: x
|
|
33018
33044
|
},
|
|
33019
|
-
...
|
|
33020
|
-
] :
|
|
33045
|
+
...Rn.slice(1)
|
|
33046
|
+
] : Rn.slice(1).map(($) => ({
|
|
33021
33047
|
...$,
|
|
33022
33048
|
emojis: n3(y, $.emojis)
|
|
33023
33049
|
})).filter(($) => $.emojis.length > 0), [y, x]), R = (B) => {
|
|
@@ -33036,8 +33062,8 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33036
33062
|
let $ = "recent";
|
|
33037
33063
|
Object.entries(k.current).forEach(([K, ee]) => {
|
|
33038
33064
|
if (ee) {
|
|
33039
|
-
const
|
|
33040
|
-
Z >=
|
|
33065
|
+
const pe = ee.offsetTop - B.offsetTop;
|
|
33066
|
+
Z >= pe - 50 && ($ = K);
|
|
33041
33067
|
}
|
|
33042
33068
|
}), w($);
|
|
33043
33069
|
};
|
|
@@ -33058,8 +33084,8 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33058
33084
|
tooltip: v,
|
|
33059
33085
|
closeOnClick: !1,
|
|
33060
33086
|
children: /* @__PURE__ */ b("div", { className: j("ui-flex ui-flex-col ui-bg-fill", o), children: [
|
|
33061
|
-
/* @__PURE__ */ r("div", { className: "ui-border-b ui-border-default ui-bg-surface ui-p-16", children: /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-wrap ui-justify-between ui-gap-8", children:
|
|
33062
|
-
|
|
33087
|
+
/* @__PURE__ */ r("div", { className: "ui-border-b ui-border-default ui-bg-surface ui-p-16", children: /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-wrap ui-justify-between ui-gap-8", children: Rn.map((B) => /* @__PURE__ */ r(
|
|
33088
|
+
Ee,
|
|
33063
33089
|
{
|
|
33064
33090
|
borderable: L === B.id,
|
|
33065
33091
|
size: "xs",
|
|
@@ -33398,7 +33424,7 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33398
33424
|
children: [
|
|
33399
33425
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-justify-between ui-p-16 ui-pb-12", children: [
|
|
33400
33426
|
/* @__PURE__ */ r(Ci, { title: o, icon: t }),
|
|
33401
|
-
/* @__PURE__ */ r(
|
|
33427
|
+
/* @__PURE__ */ r(Ee, { theme: "solid", color: "secondary", pill: "sm", size: "xxs", onClick: m, children: i })
|
|
33402
33428
|
] }),
|
|
33403
33429
|
/* @__PURE__ */ r(ct, {}),
|
|
33404
33430
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-y-8 ui-p-16 ui-pt-12", children: [
|
|
@@ -33458,7 +33484,7 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33458
33484
|
},
|
|
33459
33485
|
x
|
|
33460
33486
|
) : w.type === "date" ? /* @__PURE__ */ r(
|
|
33461
|
-
|
|
33487
|
+
Dn,
|
|
33462
33488
|
{
|
|
33463
33489
|
closeOnSelect: !0,
|
|
33464
33490
|
size: "xs",
|
|
@@ -33469,7 +33495,7 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33469
33495
|
},
|
|
33470
33496
|
x
|
|
33471
33497
|
) : w.type === "dateRange" ? /* @__PURE__ */ r(
|
|
33472
|
-
|
|
33498
|
+
Dn,
|
|
33473
33499
|
{
|
|
33474
33500
|
size: "xs",
|
|
33475
33501
|
label: w.label,
|
|
@@ -33488,7 +33514,7 @@ const p1 = "emoji-picker-recent", i3 = ({
|
|
|
33488
33514
|
x
|
|
33489
33515
|
) : null;
|
|
33490
33516
|
}),
|
|
33491
|
-
/* @__PURE__ */ r(
|
|
33517
|
+
/* @__PURE__ */ r(Ee, { color: "primary", onClick: C, children: "Aplicar" })
|
|
33492
33518
|
] })
|
|
33493
33519
|
]
|
|
33494
33520
|
}
|
|
@@ -33734,7 +33760,7 @@ const f3 = () => {
|
|
|
33734
33760
|
isEmpty: M
|
|
33735
33761
|
};
|
|
33736
33762
|
}, dn = ({ isActive: e, onClick: i, disabled: o, icon: t, tooltip: n }) => /* @__PURE__ */ r(
|
|
33737
|
-
|
|
33763
|
+
Ee,
|
|
33738
33764
|
{
|
|
33739
33765
|
color: e ? "primary" : "secondary",
|
|
33740
33766
|
size: "xxs",
|
|
@@ -33929,9 +33955,9 @@ const f3 = () => {
|
|
|
33929
33955
|
onMouseDown: (E) => E.preventDefault(),
|
|
33930
33956
|
children: [
|
|
33931
33957
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
|
|
33932
|
-
a && /* @__PURE__ */ b(
|
|
33958
|
+
a && /* @__PURE__ */ b(Ze, { children: [
|
|
33933
33959
|
/* @__PURE__ */ r(
|
|
33934
|
-
|
|
33960
|
+
Ee,
|
|
33935
33961
|
{
|
|
33936
33962
|
color: "tertiary",
|
|
33937
33963
|
size: "xs",
|
|
@@ -33956,7 +33982,7 @@ const f3 = () => {
|
|
|
33956
33982
|
}
|
|
33957
33983
|
),
|
|
33958
33984
|
l && /* @__PURE__ */ r(
|
|
33959
|
-
|
|
33985
|
+
Ee,
|
|
33960
33986
|
{
|
|
33961
33987
|
color: "tertiary",
|
|
33962
33988
|
size: "xs",
|
|
@@ -33971,7 +33997,7 @@ const f3 = () => {
|
|
|
33971
33997
|
)
|
|
33972
33998
|
] }),
|
|
33973
33999
|
d && /* @__PURE__ */ r(
|
|
33974
|
-
|
|
34000
|
+
Ee,
|
|
33975
34001
|
{
|
|
33976
34002
|
color: O || n ? "secondary" : "primary",
|
|
33977
34003
|
size: "sm",
|
|
@@ -34109,7 +34135,7 @@ const f3 = () => {
|
|
|
34109
34135
|
color: "secondary",
|
|
34110
34136
|
size: "sm",
|
|
34111
34137
|
pill: "pill",
|
|
34112
|
-
iconProps: { icon:
|
|
34138
|
+
iconProps: { icon: Mt },
|
|
34113
34139
|
onClick: t,
|
|
34114
34140
|
tooltipProps: { label: "Cerrar", position: "bottom" },
|
|
34115
34141
|
className: "ui-bg-fill/90 ui-shadow-lg hover:ui-bg-fill"
|
|
@@ -34643,7 +34669,7 @@ const I3 = ({
|
|
|
34643
34669
|
}
|
|
34644
34670
|
) }),
|
|
34645
34671
|
f && /* @__PURE__ */ r(
|
|
34646
|
-
|
|
34672
|
+
Ee,
|
|
34647
34673
|
{
|
|
34648
34674
|
icon: aa,
|
|
34649
34675
|
size: "sm",
|
|
@@ -34954,7 +34980,7 @@ const H3 = [
|
|
|
34954
34980
|
]
|
|
34955
34981
|
}
|
|
34956
34982
|
) : /* @__PURE__ */ r("div", {}),
|
|
34957
|
-
/* @__PURE__ */ r("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: h && t && t > L && /* @__PURE__ */ b(
|
|
34983
|
+
/* @__PURE__ */ r("div", { className: "ui-flex ui-w-fit ui-items-center ui-justify-center md:ui-justify-end", children: h && t && t > L && /* @__PURE__ */ b(Ze, { children: [
|
|
34958
34984
|
/* @__PURE__ */ r(
|
|
34959
34985
|
"label",
|
|
34960
34986
|
{
|
|
@@ -35511,7 +35537,7 @@ const H3 = [
|
|
|
35511
35537
|
classNameNumber: n = ""
|
|
35512
35538
|
}) => {
|
|
35513
35539
|
const s = "ui-min-w-[38px] ui-min-h-[38px] ui-max-w-[38px] ui-max-h-[38px] ui-rounded-control-pill ui-flex ui-items-center ui-justify-center ui-border-3";
|
|
35514
|
-
return i === "completed" ? /* @__PURE__ */ r("div", { className: `${s} ${o.primary} ${t}`, children: /* @__PURE__ */ r(Le, { name:
|
|
35540
|
+
return i === "completed" ? /* @__PURE__ */ r("div", { className: `${s} ${o.primary} ${t}`, children: /* @__PURE__ */ r(Le, { name: Hn, color: "white" }) }) : i === "active" ? /* @__PURE__ */ r(
|
|
35515
35541
|
"div",
|
|
35516
35542
|
{
|
|
35517
35543
|
className: `${s} ${o.primary.split(" ")[0]} ${t} ${o.secondary}`,
|
|
@@ -35675,7 +35701,7 @@ const H3 = [
|
|
|
35675
35701
|
materialLight: wa,
|
|
35676
35702
|
prism: ba,
|
|
35677
35703
|
dark: Ca
|
|
35678
|
-
},
|
|
35704
|
+
}, Zn = (e) => {
|
|
35679
35705
|
if (typeof e == "string") return e;
|
|
35680
35706
|
if (ye.isValidElement(e)) {
|
|
35681
35707
|
const i = e, { type: o, props: t } = i, n = typeof o == "string" ? o : o.name || "Component", s = Object.entries(t).filter(([f]) => f !== "children").map(([f, d]) => {
|
|
@@ -35702,8 +35728,8 @@ const H3 = [
|
|
|
35702
35728
|
}
|
|
35703
35729
|
}).join(" ");
|
|
35704
35730
|
let a = "";
|
|
35705
|
-
t.children && (Array.isArray(t.children) ? a = t.children.filter((f) => f !== null).map((f) =>
|
|
35706
|
-
`) : a =
|
|
35731
|
+
t.children && (Array.isArray(t.children) ? a = t.children.filter((f) => f !== null).map((f) => Zn(f)).join(`
|
|
35732
|
+
`) : a = Zn(t.children));
|
|
35707
35733
|
const u = s ? ` ${s}` : "";
|
|
35708
35734
|
if (!a)
|
|
35709
35735
|
return `<${n}${u} />`;
|
|
@@ -35714,7 +35740,7 @@ const H3 = [
|
|
|
35714
35740
|
${l}
|
|
35715
35741
|
</${n}>`;
|
|
35716
35742
|
}
|
|
35717
|
-
return Array.isArray(e) ? e.map((i) =>
|
|
35743
|
+
return Array.isArray(e) ? e.map((i) => Zn(i)).join(`
|
|
35718
35744
|
`) : String(e);
|
|
35719
35745
|
}, r5 = ({ children: e }) => /* @__PURE__ */ r("h2", { className: "ui-text-lg ui-font-semibold ui-text-gray-900", children: e }), o5 = ({ children: e }) => /* @__PURE__ */ r("div", { className: "ui-text-gray-tertiary ui-text-body-xs-regular", children: e }), s5 = ({ children: e, className: i = "" }) => /* @__PURE__ */ r("div", { className: `ui-flex ui-w-full ui-items-center ui-gap-2 ${i}`, children: e }), a5 = ({
|
|
35720
35746
|
children: e,
|
|
@@ -35723,7 +35749,7 @@ ${l}
|
|
|
35723
35749
|
customStyle: t = {},
|
|
35724
35750
|
theme: n = "prism"
|
|
35725
35751
|
}) => {
|
|
35726
|
-
const s = typeof e == "string" ? e :
|
|
35752
|
+
const s = typeof e == "string" ? e : Zn(e), a = () => {
|
|
35727
35753
|
const l = [
|
|
35728
35754
|
"dracula",
|
|
35729
35755
|
"tomorrow",
|
|
@@ -36031,7 +36057,7 @@ const Jt = [
|
|
|
36031
36057
|
color: "secondary",
|
|
36032
36058
|
size: "xxs",
|
|
36033
36059
|
tooltip: { label: "Quitar", position: "top-left" },
|
|
36034
|
-
iconProps: { icon:
|
|
36060
|
+
iconProps: { icon: Mt },
|
|
36035
36061
|
onClick: () => t(e.id),
|
|
36036
36062
|
pill: "pill"
|
|
36037
36063
|
}
|
|
@@ -36069,9 +36095,9 @@ const Jt = [
|
|
|
36069
36095
|
defaultOptionSelected: !1,
|
|
36070
36096
|
selectedItemsDisplay: "tags"
|
|
36071
36097
|
}
|
|
36072
|
-
) : /* @__PURE__ */ r(
|
|
36098
|
+
) : /* @__PURE__ */ r(Ze, { children: i.dataType === "date" ? /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-8", children: [
|
|
36073
36099
|
/* @__PURE__ */ r("div", { className: "ui-flex ui-flex-col ui-gap-4", children: /* @__PURE__ */ r(
|
|
36074
|
-
|
|
36100
|
+
Dn,
|
|
36075
36101
|
{
|
|
36076
36102
|
selectedDate: u && typeof u == "string" ? (() => {
|
|
36077
36103
|
const [y, M, x] = u.split("-").map(Number);
|
|
@@ -36088,7 +36114,7 @@ const Jt = [
|
|
|
36088
36114
|
}
|
|
36089
36115
|
) }),
|
|
36090
36116
|
v.requiresSecondValue && /* @__PURE__ */ r("div", { className: "ui-flex ui-flex-col ui-gap-4", children: /* @__PURE__ */ r(
|
|
36091
|
-
|
|
36117
|
+
Dn,
|
|
36092
36118
|
{
|
|
36093
36119
|
selectedDate: f && typeof f == "string" ? (() => {
|
|
36094
36120
|
const [y, M, x] = f.split("-").map(Number);
|
|
@@ -36104,7 +36130,7 @@ const Jt = [
|
|
|
36104
36130
|
closeOnSelect: !0
|
|
36105
36131
|
}
|
|
36106
36132
|
) })
|
|
36107
|
-
] }) : /* @__PURE__ */ b(
|
|
36133
|
+
] }) : /* @__PURE__ */ b(Ze, { children: [
|
|
36108
36134
|
/* @__PURE__ */ r(
|
|
36109
36135
|
gt,
|
|
36110
36136
|
{
|
|
@@ -36401,7 +36427,7 @@ const Jt = [
|
|
|
36401
36427
|
color: "primary",
|
|
36402
36428
|
size: "xs",
|
|
36403
36429
|
pill: "md",
|
|
36404
|
-
iconProps: { icon:
|
|
36430
|
+
iconProps: { icon: Hn },
|
|
36405
36431
|
onClick: v,
|
|
36406
36432
|
disabled: !I,
|
|
36407
36433
|
children: "Aplicar Filtros"
|
|
@@ -36446,7 +36472,7 @@ const h5 = ({
|
|
|
36446
36472
|
onFiltersApply: k,
|
|
36447
36473
|
className: O
|
|
36448
36474
|
}) => {
|
|
36449
|
-
const [H, T] = A(""), z = o !== void 0 ? o : H, [P, R] = A([]), [E, B] = A([]), [Z, $] = A(!1), K = q(null), ee = q(null),
|
|
36475
|
+
const [H, T] = A(""), z = o !== void 0 ? o : H, [P, R] = A([]), [E, B] = A([]), [Z, $] = A(!1), K = q(null), ee = q(null), pe = oe(
|
|
36450
36476
|
() => ({
|
|
36451
36477
|
selectedIds: w,
|
|
36452
36478
|
selectedRows: M.filter((_) => w.includes(_.id))
|
|
@@ -36481,21 +36507,21 @@ const h5 = ({
|
|
|
36481
36507
|
var se;
|
|
36482
36508
|
const _ = [];
|
|
36483
36509
|
if (E.forEach((be) => {
|
|
36484
|
-
const
|
|
36485
|
-
|
|
36510
|
+
const Ne = P.find((he) => he.id === be.id);
|
|
36511
|
+
Ne && Ne.checked !== be.checked && _.push({ columnId: be.id, visible: be.checked ?? !1 });
|
|
36486
36512
|
}), _.length > 0 && (_.length > 1 && N ? N(_) : _.forEach((be) => {
|
|
36487
36513
|
S == null || S(be.columnId, be.visible);
|
|
36488
36514
|
})), E.some(
|
|
36489
|
-
(be,
|
|
36515
|
+
(be, Ne) => {
|
|
36490
36516
|
var he;
|
|
36491
|
-
return ((he = P[
|
|
36517
|
+
return ((he = P[Ne]) == null ? void 0 : he.id) !== be.id;
|
|
36492
36518
|
}
|
|
36493
36519
|
)) {
|
|
36494
|
-
const be = new Map(E.map((he,
|
|
36495
|
-
const
|
|
36496
|
-
return
|
|
36520
|
+
const be = new Map(E.map((he, Te) => [he.id, Te])), Ne = [...y].sort((he, Te) => {
|
|
36521
|
+
const de = be.get(he.id) ?? 999, Ie = be.get(Te.id) ?? 999;
|
|
36522
|
+
return de - Ie;
|
|
36497
36523
|
});
|
|
36498
|
-
D == null || D(
|
|
36524
|
+
D == null || D(Ne);
|
|
36499
36525
|
}
|
|
36500
36526
|
R(E), $(!1), (se = K.current) == null || se.close();
|
|
36501
36527
|
}, fe = () => {
|
|
@@ -36525,7 +36551,7 @@ const h5 = ({
|
|
|
36525
36551
|
thisYear: "es este año",
|
|
36526
36552
|
lastYear: "es año pasado"
|
|
36527
36553
|
}, we = (_) => {
|
|
36528
|
-
const Ce = y.find((
|
|
36554
|
+
const Ce = y.find((Ne) => Ne.id === _.columnId), se = Ce ? typeof Ce.header == "string" ? Ce.header : Ce.id : _.columnId;
|
|
36529
36555
|
if (_.columnId === "_search")
|
|
36530
36556
|
return `"${_.value}"`;
|
|
36531
36557
|
const be = le[_.operator] || _.operator;
|
|
@@ -36534,8 +36560,8 @@ const h5 = ({
|
|
|
36534
36560
|
))
|
|
36535
36561
|
return `"${se}" ${be}`;
|
|
36536
36562
|
if (_.operator === "in" && Array.isArray(_.value)) {
|
|
36537
|
-
const
|
|
36538
|
-
return `"${se}" ${be} [${
|
|
36563
|
+
const Ne = (Array.isArray(_.value) ? _.value : [_.value]).map((he) => `"${String(he)}"`).join(", ");
|
|
36564
|
+
return `"${se}" ${be} [${Ne}]`;
|
|
36539
36565
|
}
|
|
36540
36566
|
return _.operator === "between" && _.value && _.value2 ? `"${se}" ${be} "${_.value}" y "${_.value2}"` : _.value ? `"${se}" ${be} "${_.value}"` : se;
|
|
36541
36567
|
}, U = (_) => _.columnId === "_search" ? "success" : "accent", te = (_) => {
|
|
@@ -36558,7 +36584,7 @@ const h5 = ({
|
|
|
36558
36584
|
),
|
|
36559
36585
|
children: [
|
|
36560
36586
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
|
|
36561
|
-
t && /* @__PURE__ */ b(
|
|
36587
|
+
t && /* @__PURE__ */ b(Ze, { children: [
|
|
36562
36588
|
/* @__PURE__ */ b(
|
|
36563
36589
|
Ft,
|
|
36564
36590
|
{
|
|
@@ -36609,7 +36635,7 @@ const h5 = ({
|
|
|
36609
36635
|
color: "primary",
|
|
36610
36636
|
size: "xxs",
|
|
36611
36637
|
pill: "md",
|
|
36612
|
-
iconProps: { icon:
|
|
36638
|
+
iconProps: { icon: Hn },
|
|
36613
36639
|
onClick: me,
|
|
36614
36640
|
children: "Guardar"
|
|
36615
36641
|
}
|
|
@@ -36656,7 +36682,7 @@ const h5 = ({
|
|
|
36656
36682
|
size: _.size ?? "xs",
|
|
36657
36683
|
pill: "sm",
|
|
36658
36684
|
leftSlot: _.leftSlot,
|
|
36659
|
-
onClick: () => _.onClick(
|
|
36685
|
+
onClick: () => _.onClick(pe),
|
|
36660
36686
|
disabled: _.disabled,
|
|
36661
36687
|
children: _.label
|
|
36662
36688
|
},
|
|
@@ -36670,7 +36696,7 @@ const h5 = ({
|
|
|
36670
36696
|
size: C.size ?? "xs",
|
|
36671
36697
|
pill: "sm",
|
|
36672
36698
|
leftSlot: C.leftSlot,
|
|
36673
|
-
onClick: () => C.onClick(
|
|
36699
|
+
onClick: () => C.onClick(pe),
|
|
36674
36700
|
disabled: C.requiresSelection !== !1 && L === 0,
|
|
36675
36701
|
children: C.label
|
|
36676
36702
|
}
|
|
@@ -36682,7 +36708,7 @@ const h5 = ({
|
|
|
36682
36708
|
size: "xs",
|
|
36683
36709
|
pill: "sm",
|
|
36684
36710
|
leftSlot: f,
|
|
36685
|
-
onClick: () => m == null ? void 0 : m(
|
|
36711
|
+
onClick: () => m == null ? void 0 : m(pe),
|
|
36686
36712
|
disabled: L === 0,
|
|
36687
36713
|
children: l
|
|
36688
36714
|
}
|
|
@@ -36695,7 +36721,7 @@ const h5 = ({
|
|
|
36695
36721
|
size: g.size ?? "xs",
|
|
36696
36722
|
pill: "sm",
|
|
36697
36723
|
leftSlot: g.leftSlot,
|
|
36698
|
-
onClick: () => g.onClick(
|
|
36724
|
+
onClick: () => g.onClick(pe),
|
|
36699
36725
|
disabled: g.requiresSelection !== !1 && L === 0,
|
|
36700
36726
|
children: g.label
|
|
36701
36727
|
}
|
|
@@ -36707,7 +36733,7 @@ const h5 = ({
|
|
|
36707
36733
|
size: "xs",
|
|
36708
36734
|
pill: "sm",
|
|
36709
36735
|
leftSlot: a,
|
|
36710
|
-
onClick: () => p == null ? void 0 : p(
|
|
36736
|
+
onClick: () => p == null ? void 0 : p(pe),
|
|
36711
36737
|
disabled: L === 0,
|
|
36712
36738
|
children: s
|
|
36713
36739
|
}
|
|
@@ -36719,7 +36745,7 @@ const h5 = ({
|
|
|
36719
36745
|
ge && /* @__PURE__ */ b("div", { className: "ui-flex ui-flex-col ui-gap-8 ui-bg-fill ui-px-16 ui-py-8", children: [
|
|
36720
36746
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
|
|
36721
36747
|
/* @__PURE__ */ r("span", { className: "ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-tertiary", children: "Filtros activos:" }),
|
|
36722
|
-
/* @__PURE__ */ r(
|
|
36748
|
+
/* @__PURE__ */ r(Ee, { color: "link", size: "xxs", onClick: J, children: "Limpiar todos" })
|
|
36723
36749
|
] }),
|
|
36724
36750
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-flex-wrap ui-items-center ui-gap-8", children: [
|
|
36725
36751
|
z.trim().length > 0 && /* @__PURE__ */ r(
|
|
@@ -36771,11 +36797,11 @@ const h5 = ({
|
|
|
36771
36797
|
u && "ui-overflow-hidden ui-min-w-0",
|
|
36772
36798
|
// Clases adicionales
|
|
36773
36799
|
i
|
|
36774
|
-
),
|
|
36775
|
-
const s = e.width !== void 0, a = t && !s, u = e.minWidth ?? Ln, l = e.minWidth ??
|
|
36800
|
+
), Jn = 120, Ln = 80, Dr = 300, dt = (e, i = 0, o, t, n) => {
|
|
36801
|
+
const s = e.width !== void 0, a = t && !s, u = e.minWidth ?? Ln, l = e.minWidth ?? Jn;
|
|
36776
36802
|
let f, d;
|
|
36777
36803
|
a ? (f = l, d = l) : n ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (f = void 0, d = e.minWidth ?? Dr) : (f = typeof e.width == "number" || typeof e.width == "string" ? e.width : u, d = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (f = "100%", d = e.minWidth ?? 0) : s ? (f = e.width, d = e.minWidth ?? 0) : (f = u, d = u);
|
|
36778
|
-
const c = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, h = e.minWidth ??
|
|
36804
|
+
const c = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, h = e.minWidth ?? Jn, p = a ? h : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(c) ? c : void 0);
|
|
36779
36805
|
return {
|
|
36780
36806
|
"data-column-id": e.id,
|
|
36781
36807
|
style: {
|
|
@@ -36787,7 +36813,7 @@ const h5 = ({
|
|
|
36787
36813
|
}
|
|
36788
36814
|
};
|
|
36789
36815
|
}, Ye = (e, i) => !!(i && e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number")), m5 = (e, i, o) => {
|
|
36790
|
-
const t = e.width !== void 0, n = i && !t, s = e.minWidth ?? Ln, a = e.minWidth ??
|
|
36816
|
+
const t = e.width !== void 0, n = i && !t, s = e.minWidth ?? Ln, a = e.minWidth ?? Jn;
|
|
36791
36817
|
return n ? a : o ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? e.minWidth ?? Dr : e.width !== void 0 ? e.minWidth ?? 0 : Ln : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") || t ? e.minWidth ?? 0 : s;
|
|
36792
36818
|
}, Ot = (e = "left") => {
|
|
36793
36819
|
switch (e) {
|
|
@@ -36926,7 +36952,7 @@ const Wo = ({
|
|
|
36926
36952
|
);
|
|
36927
36953
|
};
|
|
36928
36954
|
Wo.displayName = "CustomText";
|
|
36929
|
-
const
|
|
36955
|
+
const Wn = ({
|
|
36930
36956
|
type: e = "body",
|
|
36931
36957
|
size: i,
|
|
36932
36958
|
weight: o = "regular",
|
|
@@ -37034,7 +37060,7 @@ const Jn = ({
|
|
|
37034
37060
|
);
|
|
37035
37061
|
}
|
|
37036
37062
|
return l ? /* @__PURE__ */ r(
|
|
37037
|
-
|
|
37063
|
+
xt,
|
|
37038
37064
|
{
|
|
37039
37065
|
truncate: l,
|
|
37040
37066
|
title: d ?? (typeof t == "string" ? t : void 0),
|
|
@@ -37044,7 +37070,7 @@ const Jn = ({
|
|
|
37044
37070
|
}
|
|
37045
37071
|
) : g;
|
|
37046
37072
|
};
|
|
37047
|
-
|
|
37073
|
+
Wn.displayName = "Text";
|
|
37048
37074
|
function g5(e, i, o) {
|
|
37049
37075
|
return e.textColor ? e.textColor : (i === "selected" || i === "focused") && !o ? "brand-selected" : "primary";
|
|
37050
37076
|
}
|
|
@@ -37086,7 +37112,7 @@ const e0 = rt(
|
|
|
37086
37112
|
if (t.render) {
|
|
37087
37113
|
const w = i !== void 0 ? i : e, y = typeof w == "string" || typeof w == "number" ? String(w) : void 0;
|
|
37088
37114
|
return /* @__PURE__ */ r("td", { className: h, ...p, onClick: (M) => ut(M, u), children: /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(
|
|
37089
|
-
|
|
37115
|
+
Wn,
|
|
37090
37116
|
{
|
|
37091
37117
|
type: "body",
|
|
37092
37118
|
size: "sm",
|
|
@@ -37102,7 +37128,7 @@ const e0 = rt(
|
|
|
37102
37128
|
}
|
|
37103
37129
|
const L = e ? String(e) : "-";
|
|
37104
37130
|
return /* @__PURE__ */ r("td", { className: h, ...p, onClick: (w) => ut(w, u), children: /* @__PURE__ */ r("div", { className: v, children: /* @__PURE__ */ r(
|
|
37105
|
-
|
|
37131
|
+
Wn,
|
|
37106
37132
|
{
|
|
37107
37133
|
type: "body",
|
|
37108
37134
|
size: "sm",
|
|
@@ -37151,7 +37177,7 @@ const t0 = rt(
|
|
|
37151
37177
|
p
|
|
37152
37178
|
), g = (t === "selected" || t === "focused") && !l, C = g ? "ui-text-brand-selected" : "ui-text-primary", v = g ? "ui-text-brand-selected" : "ui-text-primary", L = typeof e == "object" && e !== null && !Array.isArray(e), w = L ? e : null, y = i && typeof i == "object" && "avatar" in i ? i : null, M = (w == null ? void 0 : w.avatar) ?? (y == null ? void 0 : y.avatar), x = L ? e.name : typeof e == "string" || typeof e == "number" ? e : void 0, I = (w == null ? void 0 : w.subtitle) ?? (y == null ? void 0 : y.subtitle);
|
|
37153
37179
|
return /* @__PURE__ */ r("td", { className: d, ...c, onClick: (S) => ut(S, s), children: /* @__PURE__ */ b("div", { className: m, children: [
|
|
37154
|
-
M && /* @__PURE__ */ r(
|
|
37180
|
+
M && /* @__PURE__ */ r(St, { type: "people", size: "sm", src: M }),
|
|
37155
37181
|
/* @__PURE__ */ b(
|
|
37156
37182
|
"div",
|
|
37157
37183
|
{
|
|
@@ -37161,7 +37187,7 @@ const t0 = rt(
|
|
|
37161
37187
|
),
|
|
37162
37188
|
children: [
|
|
37163
37189
|
/* @__PURE__ */ r(
|
|
37164
|
-
|
|
37190
|
+
xt,
|
|
37165
37191
|
{
|
|
37166
37192
|
truncate: h,
|
|
37167
37193
|
title: typeof x == "string" ? x : void 0,
|
|
@@ -37175,7 +37201,7 @@ const t0 = rt(
|
|
|
37175
37201
|
}
|
|
37176
37202
|
),
|
|
37177
37203
|
I && /* @__PURE__ */ r(
|
|
37178
|
-
|
|
37204
|
+
xt,
|
|
37179
37205
|
{
|
|
37180
37206
|
truncate: h,
|
|
37181
37207
|
title: typeof I == "string" ? I : void 0,
|
|
@@ -37309,7 +37335,7 @@ const n0 = rt(
|
|
|
37309
37335
|
v.bg
|
|
37310
37336
|
),
|
|
37311
37337
|
children: /* @__PURE__ */ r(
|
|
37312
|
-
|
|
37338
|
+
xt,
|
|
37313
37339
|
{
|
|
37314
37340
|
truncate: w,
|
|
37315
37341
|
title: h,
|
|
@@ -37465,7 +37491,7 @@ const b5 = ({
|
|
|
37465
37491
|
p && "ui-min-w-0 ui-overflow-hidden"
|
|
37466
37492
|
),
|
|
37467
37493
|
children: /* @__PURE__ */ r("a", { href: v, className: m, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ r(
|
|
37468
|
-
|
|
37494
|
+
xt,
|
|
37469
37495
|
{
|
|
37470
37496
|
truncate: p,
|
|
37471
37497
|
title: typeof L == "string" ? L : String(L),
|
|
@@ -37474,7 +37500,7 @@ const b5 = ({
|
|
|
37474
37500
|
) })
|
|
37475
37501
|
}
|
|
37476
37502
|
) });
|
|
37477
|
-
}, m1 = "sm", w5 = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 :
|
|
37503
|
+
}, m1 = "sm", w5 = (e) => e ? e.startsWith("data:") || e.startsWith("blob:") ? !0 : Vn(e) : !1, v5 = (e) => typeof e == "string" && e.trim().length > 0 ? e.trim() : "?", L5 = ({
|
|
37478
37504
|
value: e,
|
|
37479
37505
|
column: i,
|
|
37480
37506
|
state: o = "default",
|
|
@@ -37507,7 +37533,7 @@ const b5 = ({
|
|
|
37507
37533
|
const v = typeof g == "object" && g !== null ? g : null, L = v ? v.src : g, w = v ? v.name : g;
|
|
37508
37534
|
if (typeof L == "string" && w5(L))
|
|
37509
37535
|
return /* @__PURE__ */ r(
|
|
37510
|
-
|
|
37536
|
+
St,
|
|
37511
37537
|
{
|
|
37512
37538
|
type: "people",
|
|
37513
37539
|
src: L,
|
|
@@ -37518,7 +37544,7 @@ const b5 = ({
|
|
|
37518
37544
|
);
|
|
37519
37545
|
const y = v5(w).slice(0, 3);
|
|
37520
37546
|
return /* @__PURE__ */ r(
|
|
37521
|
-
|
|
37547
|
+
St,
|
|
37522
37548
|
{
|
|
37523
37549
|
type: "letter",
|
|
37524
37550
|
text: y,
|
|
@@ -37710,7 +37736,7 @@ const b5 = ({
|
|
|
37710
37736
|
m && "ui-min-w-0 ui-overflow-hidden"
|
|
37711
37737
|
),
|
|
37712
37738
|
children: p && /* @__PURE__ */ r(
|
|
37713
|
-
|
|
37739
|
+
Ee,
|
|
37714
37740
|
{
|
|
37715
37741
|
theme: p.theme || "solid",
|
|
37716
37742
|
color: p.color || "primary",
|
|
@@ -37756,7 +37782,7 @@ const b5 = ({
|
|
|
37756
37782
|
),
|
|
37757
37783
|
children: /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-min-w-0 ui-items-center ui-gap-2", children: [
|
|
37758
37784
|
/* @__PURE__ */ r(
|
|
37759
|
-
|
|
37785
|
+
Yn,
|
|
37760
37786
|
{
|
|
37761
37787
|
progress: v,
|
|
37762
37788
|
size: "xxs",
|
|
@@ -37912,7 +37938,7 @@ const b5 = ({
|
|
|
37912
37938
|
}
|
|
37913
37939
|
);
|
|
37914
37940
|
o0.displayName = "TagsCell";
|
|
37915
|
-
const
|
|
37941
|
+
const ei = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
|
|
37916
37942
|
value: e,
|
|
37917
37943
|
column: i,
|
|
37918
37944
|
state: o = "default",
|
|
@@ -37942,7 +37968,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
|
|
|
37942
37968
|
h && "ui-min-w-0 ui-overflow-hidden"
|
|
37943
37969
|
),
|
|
37944
37970
|
children: /* @__PURE__ */ r(
|
|
37945
|
-
|
|
37971
|
+
ei,
|
|
37946
37972
|
{
|
|
37947
37973
|
checked: !!e,
|
|
37948
37974
|
onChange: t || (() => {
|
|
@@ -38081,7 +38107,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
|
|
|
38081
38107
|
}
|
|
38082
38108
|
),
|
|
38083
38109
|
/* @__PURE__ */ r(
|
|
38084
|
-
|
|
38110
|
+
xt,
|
|
38085
38111
|
{
|
|
38086
38112
|
truncate: p,
|
|
38087
38113
|
title: c.toFixed(1),
|
|
@@ -38271,7 +38297,7 @@ const Wn = (e) => /* @__PURE__ */ r(Wt, { ...e }), N5 = ({
|
|
|
38271
38297
|
L && "ui-min-w-0 ui-overflow-hidden"
|
|
38272
38298
|
),
|
|
38273
38299
|
children: /* @__PURE__ */ r(
|
|
38274
|
-
|
|
38300
|
+
xt,
|
|
38275
38301
|
{
|
|
38276
38302
|
truncate: L,
|
|
38277
38303
|
title: v,
|
|
@@ -38380,15 +38406,15 @@ const T5 = ({
|
|
|
38380
38406
|
className: y,
|
|
38381
38407
|
hasColumnMaxWidthAuto: M = !1
|
|
38382
38408
|
}) => {
|
|
38383
|
-
var be,
|
|
38409
|
+
var be, Ne;
|
|
38384
38410
|
const x = q(null), [I, S] = A(!1), [N, D] = A(!1), [k, O] = A(!1), H = q(0), T = q(0), z = q(0), P = q(80), R = q(null), E = q(C), B = q(e.id), Z = q(!1), $ = q(), K = q(), ee = q(null);
|
|
38385
38411
|
Y(() => {
|
|
38386
38412
|
E.current = C, B.current = e.id, Z.current = N;
|
|
38387
38413
|
}, [C, e.id, N]);
|
|
38388
|
-
const
|
|
38414
|
+
const pe = e.width !== void 0, F = h && !pe, ne = e.minWidth ?? Ln, ie = F ? e.minWidth ?? Jn : 0;
|
|
38389
38415
|
let me, fe;
|
|
38390
|
-
F ? (me = ie, fe = ie) : M ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = void 0, fe = e.minWidth ?? Dr) : (me = typeof e.width == "number" || typeof e.width == "string" ? e.width : ne, fe = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = "100%", fe = e.minWidth ?? 0) :
|
|
38391
|
-
const X = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, G = F ? ie : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(X) ? X : void 0), le =
|
|
38416
|
+
F ? (me = ie, fe = ie) : M ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = void 0, fe = e.minWidth ?? Dr) : (me = typeof e.width == "number" || typeof e.width == "string" ? e.width : ne, fe = e.minWidth ?? (e.width !== void 0 ? 0 : Ln)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (me = "100%", fe = e.minWidth ?? 0) : pe ? (me = e.width, fe = e.minWidth ?? 0) : (me = ne, fe = ne);
|
|
38417
|
+
const X = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, G = F ? ie : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(X) ? X : void 0), le = pe || Ye(e, M), we = j(
|
|
38392
38418
|
"ui-group ui-px-4 ui-py-3 ui-text-left ui-text-body-xs-regular ui-font-body-xs-regular ui-leading-body-xs-regular ui-tracking-body-xs ui-text-tertiary",
|
|
38393
38419
|
"ui-transition-colors ui-duration-150",
|
|
38394
38420
|
"ui-h-12",
|
|
@@ -38411,31 +38437,31 @@ const T5 = ({
|
|
|
38411
38437
|
var tt;
|
|
38412
38438
|
if (he.preventDefault(), he.stopPropagation(), !x.current || !C) return;
|
|
38413
38439
|
S(!0), D(!1), Z.current = !1, H.current = he.clientX, T.current = he.clientX;
|
|
38414
|
-
const
|
|
38415
|
-
isNaN(
|
|
38416
|
-
let
|
|
38417
|
-
const
|
|
38418
|
-
let Ue = 0;
|
|
38419
|
-
if ((tt = Ne == null ? void 0 : Ne.textContent) != null && tt.trim()) {
|
|
38420
|
-
const qe = document.createElement("span");
|
|
38421
|
-
qe.style.position = "absolute", qe.style.visibility = "hidden", qe.style.whiteSpace = "nowrap", qe.style.font = window.getComputedStyle(Ne).font, qe.textContent = Ne.textContent, document.body.appendChild(qe), Ue = qe.offsetWidth, document.body.removeChild(qe);
|
|
38422
|
-
}
|
|
38423
|
-
const ze = x.current.querySelector(".ui-justify-between"), Re = ze == null ? void 0 : ze.firstElementChild, Ze = e.headerIcon ? Re == null ? void 0 : Re.querySelector(".ui-flex-shrink-0") : null;
|
|
38424
|
-
Ze && Ze.offsetWidth > 0 && (Ue += Ze.offsetWidth + 8);
|
|
38425
|
-
const Ae = ze == null ? void 0 : ze.lastElementChild, Ge = Ae ? Ae.offsetWidth : 0, kt = Ue + Ge + 48;
|
|
38426
|
-
(Ue > 0 || Ge > 0) && (pe = Math.max(pe, kt));
|
|
38427
|
-
const ot = x.current.closest("table");
|
|
38440
|
+
const Te = typeof e.width == "number" ? e.width : x.current.offsetWidth;
|
|
38441
|
+
isNaN(Te) || Te <= 0 ? z.current = 150 : z.current = Te;
|
|
38442
|
+
let de = 0;
|
|
38443
|
+
const Ie = x.current.querySelector(".ui-truncate");
|
|
38428
38444
|
let Fe = 0;
|
|
38429
|
-
|
|
38430
|
-
const
|
|
38431
|
-
|
|
38445
|
+
if ((tt = Ie == null ? void 0 : Ie.textContent) != null && tt.trim()) {
|
|
38446
|
+
const qe = document.createElement("span");
|
|
38447
|
+
qe.style.position = "absolute", qe.style.visibility = "hidden", qe.style.whiteSpace = "nowrap", qe.style.font = window.getComputedStyle(Ie).font, qe.textContent = Ie.textContent, document.body.appendChild(qe), Fe = qe.offsetWidth, document.body.removeChild(qe);
|
|
38448
|
+
}
|
|
38449
|
+
const Ae = x.current.querySelector(".ui-justify-between"), Re = Ae == null ? void 0 : Ae.firstElementChild, _e = e.headerIcon ? Re == null ? void 0 : Re.querySelector(".ui-flex-shrink-0") : null;
|
|
38450
|
+
_e && _e.offsetWidth > 0 && (Fe += _e.offsetWidth + 8);
|
|
38451
|
+
const Be = Ae == null ? void 0 : Ae.lastElementChild, ot = Be ? Be.offsetWidth : 0, vt = Fe + ot + 48;
|
|
38452
|
+
(Fe > 0 || ot > 0) && (de = Math.max(de, vt));
|
|
38453
|
+
const Je = x.current.closest("table");
|
|
38454
|
+
let Ve = 0;
|
|
38455
|
+
Je && Je.querySelectorAll(`td[data-column-id="${e.id}"]`).forEach((Lt) => {
|
|
38456
|
+
const st = Lt.scrollWidth;
|
|
38457
|
+
Ve = Math.max(Ve, st);
|
|
38432
38458
|
});
|
|
38433
|
-
const
|
|
38434
|
-
|
|
38435
|
-
const
|
|
38459
|
+
const Ue = Ve > 0 ? Ve + 32 : 0;
|
|
38460
|
+
de = Math.max(de, Ue);
|
|
38461
|
+
const bt = Math.max(80, de || 80), Ke = typeof e.originalWidth == "number" ? e.originalWidth : void 0;
|
|
38436
38462
|
P.current = Math.min(
|
|
38437
38463
|
z.current,
|
|
38438
|
-
|
|
38464
|
+
bt,
|
|
38439
38465
|
Ke ?? 1 / 0
|
|
38440
38466
|
);
|
|
38441
38467
|
}, ae = V(() => {
|
|
@@ -38444,14 +38470,14 @@ const T5 = ({
|
|
|
38444
38470
|
ee.current.style.top = `${he.bottom - 16}px`, ee.current.style.left = `${he.right - 16}px`;
|
|
38445
38471
|
}, []), ge = V((he) => {
|
|
38446
38472
|
if (!E.current) return;
|
|
38447
|
-
const
|
|
38448
|
-
if (!
|
|
38473
|
+
const Te = he.clientX - H.current, de = Math.abs(Te), Ie = Z.current;
|
|
38474
|
+
if (!Ie && de < 3)
|
|
38449
38475
|
return;
|
|
38450
|
-
|
|
38451
|
-
const
|
|
38452
|
-
isNaN(
|
|
38453
|
-
var
|
|
38454
|
-
(
|
|
38476
|
+
Ie || (Z.current = !0, D(!0));
|
|
38477
|
+
const Fe = he.clientX - T.current, Ae = isNaN(z.current) || z.current <= 0 ? 150 : z.current, Re = isNaN(P.current) || P.current <= 0 ? 80 : P.current, _e = Math.max(Re, Ae + Fe);
|
|
38478
|
+
isNaN(_e) || _e <= 0 || (R.current && cancelAnimationFrame(R.current), R.current = requestAnimationFrame(() => {
|
|
38479
|
+
var Be;
|
|
38480
|
+
(Be = E.current) == null || Be.call(E, _e, z.current), ae();
|
|
38455
38481
|
}));
|
|
38456
38482
|
}, [ae]);
|
|
38457
38483
|
Y(() => {
|
|
@@ -38472,15 +38498,15 @@ const T5 = ({
|
|
|
38472
38498
|
};
|
|
38473
38499
|
return Y(() => {
|
|
38474
38500
|
if (I) {
|
|
38475
|
-
const he = (
|
|
38476
|
-
var
|
|
38477
|
-
return (
|
|
38478
|
-
},
|
|
38479
|
-
var
|
|
38480
|
-
return (
|
|
38501
|
+
const he = (de) => {
|
|
38502
|
+
var Ie;
|
|
38503
|
+
return (Ie = $.current) == null ? void 0 : Ie.call($, de);
|
|
38504
|
+
}, Te = () => {
|
|
38505
|
+
var de;
|
|
38506
|
+
return (de = K.current) == null ? void 0 : de.call(K);
|
|
38481
38507
|
};
|
|
38482
|
-
return document.addEventListener("mousemove", he), document.addEventListener("mouseup",
|
|
38483
|
-
document.removeEventListener("mousemove", he), document.removeEventListener("mouseup",
|
|
38508
|
+
return document.addEventListener("mousemove", he), document.addEventListener("mouseup", Te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
|
|
38509
|
+
document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", Te), document.body.style.cursor = "", document.body.style.userSelect = "", R.current && (cancelAnimationFrame(R.current), R.current = null);
|
|
38484
38510
|
};
|
|
38485
38511
|
}
|
|
38486
38512
|
}, [I]), /* @__PURE__ */ b(
|
|
@@ -38614,7 +38640,7 @@ const T5 = ({
|
|
|
38614
38640
|
),
|
|
38615
38641
|
style: {
|
|
38616
38642
|
top: (((be = x.current) == null ? void 0 : be.getBoundingClientRect().bottom) ?? 0) - 16,
|
|
38617
|
-
left: (((
|
|
38643
|
+
left: (((Ne = x.current) == null ? void 0 : Ne.getBoundingClientRect().right) ?? 0) - 16
|
|
38618
38644
|
},
|
|
38619
38645
|
onMouseDown: J,
|
|
38620
38646
|
onMouseEnter: Ce,
|
|
@@ -38658,7 +38684,7 @@ const T5 = ({
|
|
|
38658
38684
|
), x = (S) => {
|
|
38659
38685
|
e.disabled || S.target.closest("button") || u == null || u(e);
|
|
38660
38686
|
}, I = !e.isParent && "_isChild" in e && e._isChild;
|
|
38661
|
-
return /* @__PURE__ */ b(
|
|
38687
|
+
return /* @__PURE__ */ b(Ze, { children: [
|
|
38662
38688
|
/* @__PURE__ */ b(
|
|
38663
38689
|
"tr",
|
|
38664
38690
|
{
|
|
@@ -38682,7 +38708,7 @@ const T5 = ({
|
|
|
38682
38708
|
...(d || v) && { left: 0 }
|
|
38683
38709
|
},
|
|
38684
38710
|
children: !I && /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
|
|
38685
|
-
|
|
38711
|
+
ei,
|
|
38686
38712
|
{
|
|
38687
38713
|
checked: L,
|
|
38688
38714
|
onChange: () => s == null ? void 0 : s(e),
|
|
@@ -38718,7 +38744,7 @@ const T5 = ({
|
|
|
38718
38744
|
}
|
|
38719
38745
|
),
|
|
38720
38746
|
I && l && /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
|
|
38721
|
-
|
|
38747
|
+
ei,
|
|
38722
38748
|
{
|
|
38723
38749
|
checked: L,
|
|
38724
38750
|
onChange: () => s == null ? void 0 : s(e),
|
|
@@ -38765,8 +38791,8 @@ const T5 = ({
|
|
|
38765
38791
|
else if (typeof $.width == "number")
|
|
38766
38792
|
K = $.width;
|
|
38767
38793
|
else if (typeof $.width == "string") {
|
|
38768
|
-
const
|
|
38769
|
-
isNaN(
|
|
38794
|
+
const pe = parseInt($.width, 10);
|
|
38795
|
+
isNaN(pe) || (K = pe);
|
|
38770
38796
|
}
|
|
38771
38797
|
B += K;
|
|
38772
38798
|
}
|
|
@@ -38797,7 +38823,7 @@ const T5 = ({
|
|
|
38797
38823
|
]
|
|
38798
38824
|
}
|
|
38799
38825
|
),
|
|
38800
|
-
e.expanded && e.children && e.children.length > 0 && /* @__PURE__ */ r(
|
|
38826
|
+
e.expanded && e.children && e.children.length > 0 && /* @__PURE__ */ r(Ze, { children: e.children.map((S) => /* @__PURE__ */ r(
|
|
38801
38827
|
a0,
|
|
38802
38828
|
{
|
|
38803
38829
|
row: { ...S, _isChild: !0 },
|
|
@@ -39023,7 +39049,7 @@ const T5 = ({
|
|
|
39023
39049
|
...(f || N) && { left: 0 }
|
|
39024
39050
|
},
|
|
39025
39051
|
children: /* @__PURE__ */ r("div", { className: "ui-flex ui-justify-center", children: /* @__PURE__ */ r(
|
|
39026
|
-
|
|
39052
|
+
ei,
|
|
39027
39053
|
{
|
|
39028
39054
|
checked: s,
|
|
39029
39055
|
indeterminate: a && !s,
|
|
@@ -39164,7 +39190,7 @@ const T5 = ({
|
|
|
39164
39190
|
/* @__PURE__ */ r("h3", { className: "ui-text-heading-h2 ui-font-heading-h2 ui-leading-heading-h2 ui-tracking-heading-h2", children: u }),
|
|
39165
39191
|
l && /* @__PURE__ */ r("p", { className: "ui-leading-body-md ui-w-full ui-text-body-md-regular ui-font-body-md-regular ui-tracking-body-md ui-text-tertiary", children: l })
|
|
39166
39192
|
] }),
|
|
39167
|
-
n && /* @__PURE__ */ r(
|
|
39193
|
+
n && /* @__PURE__ */ r(Ee, { variant: "button", color: "primary", size: "md", onClick: n.onClick, children: n.label })
|
|
39168
39194
|
] });
|
|
39169
39195
|
}, A5 = ({
|
|
39170
39196
|
rows: e,
|
|
@@ -39269,12 +39295,12 @@ const T5 = ({
|
|
|
39269
39295
|
c && "ui-table-hover",
|
|
39270
39296
|
h && "ui-table-dense",
|
|
39271
39297
|
C
|
|
39272
|
-
),
|
|
39298
|
+
), pe = j(
|
|
39273
39299
|
"ui-w-full ui-min-w-0 ui-h-full ui-overflow-x-auto ui-overflow-y-auto custom-scrollbar",
|
|
39274
39300
|
"ui-pb-16"
|
|
39275
39301
|
// padding-bottom para crear espacio arriba del scrollbar horizontal
|
|
39276
39302
|
), F = B.length === 0 && !o;
|
|
39277
|
-
return /* @__PURE__ */ b("div", { className:
|
|
39303
|
+
return /* @__PURE__ */ b("div", { className: pe, children: [
|
|
39278
39304
|
/* @__PURE__ */ b("style", { children: [
|
|
39279
39305
|
f && `
|
|
39280
39306
|
td[data-column-id="${f}"],
|
|
@@ -39387,7 +39413,7 @@ const T5 = ({
|
|
|
39387
39413
|
] }),
|
|
39388
39414
|
o.length > 0 && /* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
|
|
39389
39415
|
/* @__PURE__ */ r("div", { className: "ui-flex ui-items-center ui-gap-16", children: o.map((u, l) => /* @__PURE__ */ r(
|
|
39390
|
-
|
|
39416
|
+
Ee,
|
|
39391
39417
|
{
|
|
39392
39418
|
theme: u.label ? "solid" : "icon",
|
|
39393
39419
|
color: u.color || "secondary",
|
|
@@ -39400,7 +39426,7 @@ const T5 = ({
|
|
|
39400
39426
|
},
|
|
39401
39427
|
`action-${l}-${u.label || u.icon}`
|
|
39402
39428
|
)) }),
|
|
39403
|
-
t && /* @__PURE__ */ b(
|
|
39429
|
+
t && /* @__PURE__ */ b(Ze, { children: [
|
|
39404
39430
|
/* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
|
|
39405
39431
|
/* @__PURE__ */ r(
|
|
39406
39432
|
ke,
|
|
@@ -39409,7 +39435,7 @@ const T5 = ({
|
|
|
39409
39435
|
color: "secondary",
|
|
39410
39436
|
size: "xs",
|
|
39411
39437
|
pill: "pill",
|
|
39412
|
-
iconProps: { icon:
|
|
39438
|
+
iconProps: { icon: Mt },
|
|
39413
39439
|
onClick: t
|
|
39414
39440
|
}
|
|
39415
39441
|
)
|
|
@@ -39642,7 +39668,7 @@ const T5 = ({
|
|
|
39642
39668
|
handleCellBlur: t,
|
|
39643
39669
|
isCellFocused: n
|
|
39644
39670
|
};
|
|
39645
|
-
},
|
|
39671
|
+
}, Bn = (e) => ({
|
|
39646
39672
|
columnId: e.columnId,
|
|
39647
39673
|
operator: e.operator,
|
|
39648
39674
|
value: e.value,
|
|
@@ -39668,7 +39694,7 @@ const T5 = ({
|
|
|
39668
39694
|
};
|
|
39669
39695
|
t((c) => {
|
|
39670
39696
|
const h = [...c, d];
|
|
39671
|
-
return i == null || i(h.map(
|
|
39697
|
+
return i == null || i(h.map(Bn)), h;
|
|
39672
39698
|
});
|
|
39673
39699
|
},
|
|
39674
39700
|
[i]
|
|
@@ -39678,7 +39704,7 @@ const T5 = ({
|
|
|
39678
39704
|
const h = c.map(
|
|
39679
39705
|
(p) => p.id === f ? { ...p, ...d } : p
|
|
39680
39706
|
);
|
|
39681
|
-
return i == null || i(h.map(
|
|
39707
|
+
return i == null || i(h.map(Bn)), h;
|
|
39682
39708
|
});
|
|
39683
39709
|
},
|
|
39684
39710
|
[i]
|
|
@@ -39686,7 +39712,7 @@ const T5 = ({
|
|
|
39686
39712
|
(f) => {
|
|
39687
39713
|
t((d) => {
|
|
39688
39714
|
const c = d.filter((h) => h.id !== f);
|
|
39689
|
-
return i == null || i(c.map(
|
|
39715
|
+
return i == null || i(c.map(Bn)), c;
|
|
39690
39716
|
});
|
|
39691
39717
|
},
|
|
39692
39718
|
[i]
|
|
@@ -39694,7 +39720,7 @@ const T5 = ({
|
|
|
39694
39720
|
t([]), i == null || i([]);
|
|
39695
39721
|
}, [i]), l = V(
|
|
39696
39722
|
(f) => {
|
|
39697
|
-
t(f), i == null || i(f.map(
|
|
39723
|
+
t(f), i == null || i(f.map(Bn));
|
|
39698
39724
|
},
|
|
39699
39725
|
[i]
|
|
39700
39726
|
);
|
|
@@ -39948,7 +39974,7 @@ function o6(e) {
|
|
|
39948
39974
|
render: (d, c, h) => {
|
|
39949
39975
|
const p = u ? u(d, c, h) : [], m = Array.isArray(p) ? p : [];
|
|
39950
39976
|
return [{
|
|
39951
|
-
icon: c._isEditing ?
|
|
39977
|
+
icon: c._isEditing ? Hn : Ri,
|
|
39952
39978
|
tooltip: c._isEditing ? "Guardar" : "Editar",
|
|
39953
39979
|
color: c._isEditing ? "secondary" : "tertiary",
|
|
39954
39980
|
onClick: () => {
|
|
@@ -39969,7 +39995,7 @@ function o6(e) {
|
|
|
39969
39995
|
editable: "none",
|
|
39970
39996
|
render: (a, u) => [
|
|
39971
39997
|
{
|
|
39972
|
-
icon: u._isEditing ?
|
|
39998
|
+
icon: u._isEditing ? Hn : Ri,
|
|
39973
39999
|
tooltip: u._isEditing ? "Guardar " : "Editar",
|
|
39974
40000
|
onClick: () => {
|
|
39975
40001
|
u._toggleEdit && u._toggleEdit();
|
|
@@ -39982,7 +40008,7 @@ function o6(e) {
|
|
|
39982
40008
|
function s6(e) {
|
|
39983
40009
|
return e.map((i) => i.width === void 0 && i.resizable !== !1 ? { ...i, resizable: !0 } : i);
|
|
39984
40010
|
}
|
|
39985
|
-
const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e),
|
|
40011
|
+
const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e), $e = (e) => {
|
|
39986
40012
|
const [i, o, t] = e.split("T")[0].split("-").map(Number);
|
|
39987
40013
|
return new Date(i, o - 1, t);
|
|
39988
40014
|
}, d0 = (e) => {
|
|
@@ -40008,7 +40034,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
|
|
|
40008
40034
|
return { start: o, end: o };
|
|
40009
40035
|
}
|
|
40010
40036
|
}, Xt = (e, i, o) => {
|
|
40011
|
-
const t =
|
|
40037
|
+
const t = $e(String(e)), n = $e(String(i)), s = t.getTime(), a = n.getTime();
|
|
40012
40038
|
switch (o) {
|
|
40013
40039
|
case "equals":
|
|
40014
40040
|
return s === a;
|
|
@@ -40029,7 +40055,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
|
|
|
40029
40055
|
}
|
|
40030
40056
|
}, a6 = (e, i) => {
|
|
40031
40057
|
if (!Oe(e)) return !1;
|
|
40032
|
-
const o =
|
|
40058
|
+
const o = $e(String(e)), { start: t, end: n } = d0(i), s = o.getTime(), a = t.getTime(), u = n.getTime();
|
|
40033
40059
|
return s >= a && s <= u;
|
|
40034
40060
|
}, b1 = (e, i, o, t) => {
|
|
40035
40061
|
const n = e == null || e === "";
|
|
@@ -40077,7 +40103,7 @@ const Oe = (e) => !e || typeof e != "string" ? !1 : /^\d{4}-\d{2}-\d{2}/.test(e)
|
|
|
40077
40103
|
case "between":
|
|
40078
40104
|
if (n) return !1;
|
|
40079
40105
|
if (Oe(e) && Oe(o) && Oe(t)) {
|
|
40080
|
-
const l =
|
|
40106
|
+
const l = $e(String(e)), f = $e(String(o)), d = $e(String(t)), c = l.getTime(), h = Math.min(f.getTime(), d.getTime()), p = Math.max(f.getTime(), d.getTime());
|
|
40081
40107
|
return c >= h && c <= p;
|
|
40082
40108
|
}
|
|
40083
40109
|
const s = Number(e), a = Math.min(Number(o), Number(t)), u = Math.max(Number(o), Number(t));
|
|
@@ -40245,7 +40271,7 @@ const af = ({
|
|
|
40245
40271
|
onEditModeChange: Z,
|
|
40246
40272
|
onSuccessComplete: $
|
|
40247
40273
|
}) => {
|
|
40248
|
-
const K = q(null), [ee,
|
|
40274
|
+
const K = q(null), [ee, pe] = A(null), F = q(/* @__PURE__ */ new Set()), ne = q(/* @__PURE__ */ new Set()), ie = r6({
|
|
40249
40275
|
configKey: M,
|
|
40250
40276
|
persistConfig: x,
|
|
40251
40277
|
queryPersist: I,
|
|
@@ -40270,22 +40296,22 @@ const af = ({
|
|
|
40270
40296
|
selectedIds: Ce,
|
|
40271
40297
|
selectedCount: se,
|
|
40272
40298
|
allSelected: be,
|
|
40273
|
-
someSelected:
|
|
40299
|
+
someSelected: Ne,
|
|
40274
40300
|
handleRowSelect: he,
|
|
40275
|
-
handleSelectAll:
|
|
40276
|
-
clearSelection:
|
|
40301
|
+
handleSelectAll: Te,
|
|
40302
|
+
clearSelection: de
|
|
40277
40303
|
} = G5(i, n == null ? void 0 : n.multiple, {
|
|
40278
40304
|
isRowSelectable: _
|
|
40279
|
-
}), { handleRowExpand:
|
|
40305
|
+
}), { handleRowExpand: Ie, applyExpandedState: Fe } = W5(), { handleCellFocus: Ae, handleCellBlur: Re, isCellFocused: _e } = e6(), { filters: Be, setAllFilters: ot } = t6({
|
|
40280
40306
|
initialFilters: me,
|
|
40281
40307
|
onFiltersChange: (ue) => {
|
|
40282
40308
|
k == null || k(ue), x && M && I && ie.updateFilters(ue);
|
|
40283
40309
|
}
|
|
40284
|
-
}), { toggleRowEdit:
|
|
40310
|
+
}), { toggleRowEdit: vt, applyEditState: Je } = n6({
|
|
40285
40311
|
externalEditingRowIds: E,
|
|
40286
40312
|
onEditingRowIdsChange: B,
|
|
40287
40313
|
onEditModeChange: Z
|
|
40288
|
-
}), [
|
|
40314
|
+
}), [Ve, Ue] = A(
|
|
40289
40315
|
() => (x && M && I ? ie.searchQuery : "") ?? ""
|
|
40290
40316
|
);
|
|
40291
40317
|
Y(() => {
|
|
@@ -40296,56 +40322,56 @@ const af = ({
|
|
|
40296
40322
|
document.removeEventListener("mousedown", ue);
|
|
40297
40323
|
};
|
|
40298
40324
|
}, [Re]);
|
|
40299
|
-
const
|
|
40325
|
+
const bt = q(Be.length), Ke = q(Ve);
|
|
40300
40326
|
Y(() => {
|
|
40301
|
-
var
|
|
40302
|
-
const ue =
|
|
40303
|
-
a != null && a.enabled && (ue || Se) && a.currentPage !== 1 && ((
|
|
40304
|
-
}, [
|
|
40327
|
+
var Pe;
|
|
40328
|
+
const ue = bt.current !== Be.length, Se = Ke.current !== Ve;
|
|
40329
|
+
a != null && a.enabled && (ue || Se) && a.currentPage !== 1 && ((Pe = a == null ? void 0 : a.onPageChange) == null || Pe.call(a, 1)), bt.current = Be.length, Ke.current = Ve;
|
|
40330
|
+
}, [Be.length, Ve, a]);
|
|
40305
40331
|
const tt = oe(
|
|
40306
40332
|
() => l6({
|
|
40307
40333
|
initialRows: i,
|
|
40308
40334
|
columns: we,
|
|
40309
|
-
internalSearchQuery:
|
|
40335
|
+
internalSearchQuery: Ve,
|
|
40310
40336
|
internalSearchEnabled: u == null ? void 0 : u.internalSearch
|
|
40311
40337
|
}),
|
|
40312
|
-
[i,
|
|
40338
|
+
[i, Ve, we, u == null ? void 0 : u.internalSearch]
|
|
40313
40339
|
), qe = oe(
|
|
40314
40340
|
() => c6({
|
|
40315
40341
|
searchedRows: tt,
|
|
40316
|
-
filters:
|
|
40342
|
+
filters: Be,
|
|
40317
40343
|
columns: we,
|
|
40318
40344
|
internalFiltersEnabled: u == null ? void 0 : u.internalFilters
|
|
40319
40345
|
}),
|
|
40320
|
-
[tt,
|
|
40321
|
-
),
|
|
40346
|
+
[tt, Be, we, u == null ? void 0 : u.internalFilters]
|
|
40347
|
+
), Lt = oe(
|
|
40322
40348
|
() => d6({
|
|
40323
40349
|
filteredRows: qe,
|
|
40324
40350
|
sortConfig: ge,
|
|
40325
40351
|
columns: we
|
|
40326
40352
|
}),
|
|
40327
40353
|
[qe, ge, we]
|
|
40328
|
-
), st =
|
|
40354
|
+
), st = Lt.length, Bt = oe(
|
|
40329
40355
|
() => p6({
|
|
40330
|
-
sortedRows:
|
|
40356
|
+
sortedRows: Lt,
|
|
40331
40357
|
paginationConfig: a,
|
|
40332
40358
|
toolbarConfig: u,
|
|
40333
40359
|
totalAfterFilters: st
|
|
40334
40360
|
}),
|
|
40335
40361
|
[
|
|
40336
|
-
|
|
40362
|
+
Lt,
|
|
40337
40363
|
a,
|
|
40338
40364
|
st,
|
|
40339
40365
|
u == null ? void 0 : u.internalSearch,
|
|
40340
40366
|
u == null ? void 0 : u.internalFilters
|
|
40341
40367
|
]
|
|
40342
|
-
), ce =
|
|
40368
|
+
), ce = Fe(Bt), je = oe(() => Je(ce).map((Se) => ({
|
|
40343
40369
|
...Se,
|
|
40344
|
-
_toggleEdit: () =>
|
|
40345
|
-
})), [ce,
|
|
40346
|
-
var
|
|
40370
|
+
_toggleEdit: () => vt(Se.id)
|
|
40371
|
+
})), [ce, Je, vt]), Ge = oe(() => {
|
|
40372
|
+
var Pe, We, et;
|
|
40347
40373
|
if (a != null && a.enabled) {
|
|
40348
|
-
const $t = ((
|
|
40374
|
+
const $t = ((Pe = je[0]) == null ? void 0 : Pe.id) ?? "";
|
|
40349
40375
|
return `${a.currentPage ?? 1}-${je.length}-${$t}`;
|
|
40350
40376
|
}
|
|
40351
40377
|
const ue = ((We = je[0]) == null ? void 0 : We.id) ?? "", Se = ((et = je[je.length - 1]) == null ? void 0 : et.id) ?? "";
|
|
@@ -40354,8 +40380,8 @@ const af = ({
|
|
|
40354
40380
|
() => f6({
|
|
40355
40381
|
empty: t,
|
|
40356
40382
|
rowsWithEditStateLength: je.length,
|
|
40357
|
-
internalSearchQuery:
|
|
40358
|
-
filtersLength:
|
|
40383
|
+
internalSearchQuery: Ve,
|
|
40384
|
+
filtersLength: Be.length,
|
|
40359
40385
|
initialRowsLength: i.length,
|
|
40360
40386
|
searchedRowsLength: tt.length,
|
|
40361
40387
|
filteredRowsLength: qe.length
|
|
@@ -40363,29 +40389,29 @@ const af = ({
|
|
|
40363
40389
|
[
|
|
40364
40390
|
t,
|
|
40365
40391
|
je.length,
|
|
40366
|
-
|
|
40367
|
-
|
|
40392
|
+
Ve,
|
|
40393
|
+
Be.length,
|
|
40368
40394
|
i.length,
|
|
40369
40395
|
tt.length,
|
|
40370
40396
|
qe.length
|
|
40371
40397
|
]
|
|
40372
|
-
),
|
|
40398
|
+
), ze = (ue) => {
|
|
40373
40399
|
const Se = Z5(ge, ue);
|
|
40374
40400
|
ve(ue), D == null || D(Se), x && M && Se && ie.updateSort(Se);
|
|
40375
40401
|
}, pt = (ue) => {
|
|
40376
40402
|
}, Xe = (ue) => {
|
|
40377
40403
|
te(ue);
|
|
40378
|
-
const Se = we.find((
|
|
40404
|
+
const Se = we.find((Pe) => Pe.id === ue);
|
|
40379
40405
|
x && M && Se && ie.updateColumnLock(ue, !Se.locked);
|
|
40380
|
-
}, W = (ue, Se,
|
|
40381
|
-
J(ue, Se), O == null || O(ue, Se), x && M && ie.updateColumnWidth(ue, Se,
|
|
40406
|
+
}, W = (ue, Se, Pe) => {
|
|
40407
|
+
J(ue, Se), O == null || O(ue, Se), x && M && ie.updateColumnWidth(ue, Se, Pe);
|
|
40382
40408
|
}, Q = (ue) => {
|
|
40383
|
-
if (we.find((
|
|
40384
|
-
const
|
|
40385
|
-
if (
|
|
40409
|
+
if (we.find((Pe) => Pe.id === ue) && K.current) {
|
|
40410
|
+
const Pe = K.current.querySelector(`th[data-column-id="${ue}"]`), We = K.current.querySelectorAll(`td[data-column-id="${ue}"]`);
|
|
40411
|
+
if (Pe || We.length > 0) {
|
|
40386
40412
|
let et = 0;
|
|
40387
|
-
if (
|
|
40388
|
-
const Yt =
|
|
40413
|
+
if (Pe) {
|
|
40414
|
+
const Yt = Pe.querySelector(".ui-truncate");
|
|
40389
40415
|
Yt && (et = Math.max(et, Yt.scrollWidth + 80));
|
|
40390
40416
|
}
|
|
40391
40417
|
We.forEach((Yt) => {
|
|
@@ -40396,33 +40422,33 @@ const af = ({
|
|
|
40396
40422
|
}
|
|
40397
40423
|
}
|
|
40398
40424
|
}, xe = (ue, Se) => {
|
|
40399
|
-
|
|
40425
|
+
pe(Se ? ue : null);
|
|
40400
40426
|
}, Me = (ue) => {
|
|
40401
40427
|
var Se;
|
|
40402
|
-
|
|
40428
|
+
Ue(ue), (Se = u == null ? void 0 : u.onSearch) == null || Se.call(u, ue), x && M && I && ie.setSearchQuery(ue);
|
|
40403
40429
|
}, De = (ue, Se) => {
|
|
40404
40430
|
U(ue, Se), T == null || T(ue, Se), x && M && ie.updateColumnVisibility(ue, Se);
|
|
40405
40431
|
}, Ht = (ue) => {
|
|
40406
|
-
ue.forEach(({ columnId: Se, visible:
|
|
40407
|
-
U(Se,
|
|
40432
|
+
ue.forEach(({ columnId: Se, visible: Pe }) => {
|
|
40433
|
+
U(Se, Pe), T == null || T(Se, Pe);
|
|
40408
40434
|
}), x && M && ie.updateMultipleColumnVisibility(ue);
|
|
40409
40435
|
}, Dt = (ue) => {
|
|
40410
|
-
const Se = ue.map((
|
|
40436
|
+
const Se = ue.map((Pe) => Pe.id);
|
|
40411
40437
|
ae(Se), H == null || H(ue), x && M && ie.updateColumnOrder(ue);
|
|
40412
40438
|
}, Ut = (ue) => {
|
|
40413
|
-
|
|
40414
|
-
}, tn = (ue, Se,
|
|
40439
|
+
Ie(ue), P == null || P(ue);
|
|
40440
|
+
}, tn = (ue, Se, Pe) => {
|
|
40415
40441
|
F.current.add(ue);
|
|
40416
40442
|
const We = i.find((et) => et.id === ue);
|
|
40417
|
-
R && R(ue, Se,
|
|
40443
|
+
R && R(ue, Se, Pe, We);
|
|
40418
40444
|
};
|
|
40419
40445
|
Y(() => {
|
|
40420
40446
|
if (!$) return;
|
|
40421
|
-
const ue = new Set(E || []), Se = ne.current,
|
|
40447
|
+
const ue = new Set(E || []), Se = ne.current, Pe = [];
|
|
40422
40448
|
if (Se.forEach((We) => {
|
|
40423
|
-
ue.has(We) ||
|
|
40424
|
-
}),
|
|
40425
|
-
const We =
|
|
40449
|
+
ue.has(We) || Pe.push(We);
|
|
40450
|
+
}), Pe.length > 0) {
|
|
40451
|
+
const We = Pe.filter((et) => F.current.has(et));
|
|
40426
40452
|
We.length > 0 && ($(We), We.forEach((et) => {
|
|
40427
40453
|
F.current.delete(et);
|
|
40428
40454
|
}));
|
|
@@ -40439,26 +40465,26 @@ const af = ({
|
|
|
40439
40465
|
"ui-imj ui-relative ui-flex ui-h-full ui-w-full ui-max-w-full ui-flex-col ui-overflow-hidden ui-bg-fill ui-rounded-surface-sheet ui-p-16",
|
|
40440
40466
|
m && "ui-border ui-border-default",
|
|
40441
40467
|
N
|
|
40442
|
-
),
|
|
40443
|
-
|
|
40468
|
+
), kt = (ue) => {
|
|
40469
|
+
ot(ue), !((u == null ? void 0 : u.internalFilters) ?? !1) && k && k(ue);
|
|
40444
40470
|
};
|
|
40445
40471
|
return /* @__PURE__ */ b("div", { ref: K, className: Gt, children: [
|
|
40446
40472
|
u && /* @__PURE__ */ r(
|
|
40447
40473
|
h5,
|
|
40448
40474
|
{
|
|
40449
40475
|
...u,
|
|
40450
|
-
searchValue:
|
|
40476
|
+
searchValue: Ve,
|
|
40451
40477
|
showFilters: u.showFilters ?? !0,
|
|
40452
40478
|
selectedCount: se,
|
|
40453
40479
|
selectedIds: Ce,
|
|
40454
40480
|
columns: we,
|
|
40455
40481
|
rows: i,
|
|
40456
|
-
filters:
|
|
40482
|
+
filters: Be,
|
|
40457
40483
|
onSearch: Me,
|
|
40458
40484
|
onColumnVisibilityChange: De,
|
|
40459
40485
|
onMultipleColumnVisibilityChange: Ht,
|
|
40460
40486
|
onColumnReorder: Dt,
|
|
40461
|
-
onFiltersApply:
|
|
40487
|
+
onFiltersApply: kt
|
|
40462
40488
|
}
|
|
40463
40489
|
),
|
|
40464
40490
|
/* @__PURE__ */ r("div", { className: "ui-min-h-0 ui-min-w-0 ui-flex-1 ui-overflow-hidden", children: /* @__PURE__ */ r(
|
|
@@ -40471,7 +40497,7 @@ const af = ({
|
|
|
40471
40497
|
selection: n,
|
|
40472
40498
|
isRowSelectionDisabled: s ? (ue) => v1(ue, s) : void 0,
|
|
40473
40499
|
sort: ge,
|
|
40474
|
-
filters:
|
|
40500
|
+
filters: Be,
|
|
40475
40501
|
expandable: d,
|
|
40476
40502
|
resizable: c,
|
|
40477
40503
|
resizeHoverColumnId: ee,
|
|
@@ -40484,10 +40510,10 @@ const af = ({
|
|
|
40484
40510
|
stickyActions: w,
|
|
40485
40511
|
selectedIds: Ce,
|
|
40486
40512
|
allSelected: be,
|
|
40487
|
-
someSelected:
|
|
40488
|
-
onSelectAll:
|
|
40513
|
+
someSelected: Ne,
|
|
40514
|
+
onSelectAll: Te,
|
|
40489
40515
|
onRowSelect: he,
|
|
40490
|
-
onSort:
|
|
40516
|
+
onSort: ze,
|
|
40491
40517
|
onFilter: pt,
|
|
40492
40518
|
onLock: Xe,
|
|
40493
40519
|
onResize: W,
|
|
@@ -40495,10 +40521,10 @@ const af = ({
|
|
|
40495
40521
|
onResizeHover: xe,
|
|
40496
40522
|
onRowClick: z,
|
|
40497
40523
|
onRowExpand: Ut,
|
|
40498
|
-
onCellFocus:
|
|
40499
|
-
isCellFocused:
|
|
40524
|
+
onCellFocus: Ae,
|
|
40525
|
+
isCellFocused: _e,
|
|
40500
40526
|
onCellChange: tn,
|
|
40501
|
-
rowsDataKey:
|
|
40527
|
+
rowsDataKey: Ge
|
|
40502
40528
|
}
|
|
40503
40529
|
) }),
|
|
40504
40530
|
(n == null ? void 0 : n.showSelectionBar) && se > 0 && /* @__PURE__ */ r(
|
|
@@ -40515,7 +40541,7 @@ const af = ({
|
|
|
40515
40541
|
selectedIds: Ce,
|
|
40516
40542
|
actions: n.actions,
|
|
40517
40543
|
selectionText: n.selectionText,
|
|
40518
|
-
onClearSelection: n.showClearSelection ?
|
|
40544
|
+
onClearSelection: n.showClearSelection ? de : void 0,
|
|
40519
40545
|
className: "ui-pointer-events-auto"
|
|
40520
40546
|
}
|
|
40521
40547
|
)
|
|
@@ -40613,9 +40639,9 @@ const af = ({
|
|
|
40613
40639
|
const n = String(e).toLowerCase(), s = String(o).toLowerCase();
|
|
40614
40640
|
switch (i.operator) {
|
|
40615
40641
|
case "equals":
|
|
40616
|
-
return Oe(e) && Oe(o) ?
|
|
40642
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() === $e(o).getTime() : n === s;
|
|
40617
40643
|
case "notEquals":
|
|
40618
|
-
return Oe(e) && Oe(o) ?
|
|
40644
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() !== $e(o).getTime() : n !== s;
|
|
40619
40645
|
case "contains":
|
|
40620
40646
|
return n.includes(s);
|
|
40621
40647
|
case "notContains":
|
|
@@ -40625,22 +40651,22 @@ const af = ({
|
|
|
40625
40651
|
case "endsWith":
|
|
40626
40652
|
return n.endsWith(s);
|
|
40627
40653
|
case "gt":
|
|
40628
|
-
return Oe(e) && Oe(o) ?
|
|
40654
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() > $e(o).getTime() : Number(e) > Number(o);
|
|
40629
40655
|
case "gte":
|
|
40630
|
-
return Oe(e) && Oe(o) ?
|
|
40656
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() >= $e(o).getTime() : Number(e) >= Number(o);
|
|
40631
40657
|
case "lt":
|
|
40632
|
-
return Oe(e) && Oe(o) ?
|
|
40658
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() < $e(o).getTime() : Number(e) < Number(o);
|
|
40633
40659
|
case "lte":
|
|
40634
|
-
return Oe(e) && Oe(o) ?
|
|
40660
|
+
return Oe(e) && Oe(o) ? $e(e).getTime() <= $e(o).getTime() : Number(e) <= Number(o);
|
|
40635
40661
|
case "between":
|
|
40636
40662
|
if (!i.value2) return !1;
|
|
40637
40663
|
if (Oe(e) && Oe(o) && Oe(i.value2)) {
|
|
40638
|
-
const f =
|
|
40639
|
-
|
|
40640
|
-
|
|
40664
|
+
const f = $e(e).getTime(), d = Math.min(
|
|
40665
|
+
$e(o).getTime(),
|
|
40666
|
+
$e(i.value2).getTime()
|
|
40641
40667
|
), c = Math.max(
|
|
40642
|
-
|
|
40643
|
-
|
|
40668
|
+
$e(o).getTime(),
|
|
40669
|
+
$e(i.value2).getTime()
|
|
40644
40670
|
);
|
|
40645
40671
|
return f >= d && f <= c;
|
|
40646
40672
|
}
|
|
@@ -40652,16 +40678,16 @@ const af = ({
|
|
|
40652
40678
|
) : o.some((f) => String(f).toLowerCase() === n) : !1;
|
|
40653
40679
|
// Operadores específicos de fecha
|
|
40654
40680
|
case "afterDate":
|
|
40655
|
-
return !Oe(e) || !Oe(o) ? !1 :
|
|
40681
|
+
return !Oe(e) || !Oe(o) ? !1 : $e(e).getTime() > $e(o).getTime();
|
|
40656
40682
|
case "beforeDate":
|
|
40657
|
-
return !Oe(e) || !Oe(o) ? !1 :
|
|
40683
|
+
return !Oe(e) || !Oe(o) ? !1 : $e(e).getTime() < $e(o).getTime();
|
|
40658
40684
|
// Operadores de fechas relativas
|
|
40659
40685
|
case "thisMonth":
|
|
40660
40686
|
case "lastMonth":
|
|
40661
40687
|
case "thisYear":
|
|
40662
40688
|
case "lastYear": {
|
|
40663
40689
|
if (!Oe(e)) return !1;
|
|
40664
|
-
const f =
|
|
40690
|
+
const f = $e(e), { start: d, end: c } = d0(i.operator), h = f.getTime();
|
|
40665
40691
|
return h >= d.getTime() && h <= c.getTime();
|
|
40666
40692
|
}
|
|
40667
40693
|
default:
|
|
@@ -40889,22 +40915,22 @@ function C0(e, i, o) {
|
|
|
40889
40915
|
}) : typeof n == "object" ? C0(e, n, s) : e.append(s, String(n)));
|
|
40890
40916
|
});
|
|
40891
40917
|
}
|
|
40892
|
-
let
|
|
40918
|
+
let ti = null;
|
|
40893
40919
|
class k6 extends Error {
|
|
40894
40920
|
constructor(i, o, t, n) {
|
|
40895
40921
|
super(i), this.status = o, this.statusText = t, this.data = n, this.name = "StrapiApiError";
|
|
40896
40922
|
}
|
|
40897
40923
|
}
|
|
40898
40924
|
function pf(e) {
|
|
40899
|
-
|
|
40925
|
+
ti = e;
|
|
40900
40926
|
}
|
|
40901
40927
|
function j6() {
|
|
40902
|
-
if (!
|
|
40928
|
+
if (!ti)
|
|
40903
40929
|
throw new Error("Strapi client not configured. Call configureStrapiClient() first.");
|
|
40904
|
-
return
|
|
40930
|
+
return ti;
|
|
40905
40931
|
}
|
|
40906
40932
|
function ff() {
|
|
40907
|
-
return
|
|
40933
|
+
return ti !== null;
|
|
40908
40934
|
}
|
|
40909
40935
|
async function wi(e, i = {}) {
|
|
40910
40936
|
const o = j6(), t = e.startsWith("http") ? e : `${o.baseUrl}${e.startsWith("/") ? e : `/${e}`}`, n = {
|
|
@@ -41684,14 +41710,14 @@ class E6 {
|
|
|
41684
41710
|
return { ...Tt };
|
|
41685
41711
|
}
|
|
41686
41712
|
}
|
|
41687
|
-
const
|
|
41713
|
+
const wt = new E6(), Of = () => wt, y0 = () => {
|
|
41688
41714
|
const [e, i] = A({
|
|
41689
41715
|
brand: null,
|
|
41690
41716
|
neutral: null
|
|
41691
41717
|
});
|
|
41692
41718
|
Y(() => {
|
|
41693
|
-
i(
|
|
41694
|
-
const n =
|
|
41719
|
+
i(wt.getGroups());
|
|
41720
|
+
const n = wt.subscribe((s) => {
|
|
41695
41721
|
i({ ...s });
|
|
41696
41722
|
});
|
|
41697
41723
|
return () => {
|
|
@@ -41707,7 +41733,7 @@ const bt = new E6(), Of = () => bt, y0 = () => {
|
|
|
41707
41733
|
groups: e,
|
|
41708
41734
|
activeGroups: o,
|
|
41709
41735
|
leavingGroups: t,
|
|
41710
|
-
dismissGroup: (n) =>
|
|
41736
|
+
dismissGroup: (n) => wt.dismissGroup(n)
|
|
41711
41737
|
};
|
|
41712
41738
|
}, x0 = ye.memo(({ message: e }) => {
|
|
41713
41739
|
const [i, o] = A(!0), t = q(null);
|
|
@@ -41750,7 +41776,7 @@ const bt = new E6(), Of = () => bt, y0 = () => {
|
|
|
41750
41776
|
x0.displayName = "MessageItem";
|
|
41751
41777
|
const Tr = ye.memo(({ messages: e }) => {
|
|
41752
41778
|
const { getPositionClasses: i } = L0();
|
|
41753
|
-
return Object.keys(e).length === 0 ? null : /* @__PURE__ */ r(
|
|
41779
|
+
return Object.keys(e).length === 0 ? null : /* @__PURE__ */ r(Ze, { children: Object.entries(e).map(([o, t]) => {
|
|
41754
41780
|
const n = o;
|
|
41755
41781
|
return process.env.NODE_ENV !== "production" && ![
|
|
41756
41782
|
"top-left",
|
|
@@ -41785,7 +41811,7 @@ const Hf = () => {
|
|
|
41785
41811
|
}), [t]);
|
|
41786
41812
|
const l = (c) => {
|
|
41787
41813
|
var h;
|
|
41788
|
-
c.stopPropagation(),
|
|
41814
|
+
c.stopPropagation(), wt.dismissGroup(n), (h = i.onClose) == null || h.call(i);
|
|
41789
41815
|
};
|
|
41790
41816
|
if (!s)
|
|
41791
41817
|
return null;
|
|
@@ -41827,7 +41853,7 @@ const Hf = () => {
|
|
|
41827
41853
|
});
|
|
41828
41854
|
M0.displayName = "NotificationItem";
|
|
41829
41855
|
const Er = ye.memo(({ groups: e }) => {
|
|
41830
|
-
const { getPositionClasses: i } = L0(), o =
|
|
41856
|
+
const { getPositionClasses: i } = L0(), o = wt.getConfig(), t = Object.values(e).filter(
|
|
41831
41857
|
(s) => s !== null
|
|
41832
41858
|
);
|
|
41833
41859
|
if (t.length === 0)
|
|
@@ -41854,13 +41880,13 @@ const Df = () => {
|
|
|
41854
41880
|
}, Vf = () => {
|
|
41855
41881
|
const { messagesByPosition: e } = v0(), { groups: i } = y0();
|
|
41856
41882
|
return Rt(
|
|
41857
|
-
/* @__PURE__ */ b(
|
|
41883
|
+
/* @__PURE__ */ b(Ze, { children: [
|
|
41858
41884
|
/* @__PURE__ */ r(Tr, { messages: e }),
|
|
41859
41885
|
/* @__PURE__ */ r(Er, { groups: i })
|
|
41860
41886
|
] }),
|
|
41861
41887
|
document.body
|
|
41862
41888
|
);
|
|
41863
|
-
}, Tf = nt, Ef =
|
|
41889
|
+
}, Tf = nt, Ef = wt, Pf = {
|
|
41864
41890
|
// Métodos de toast (se apilan)
|
|
41865
41891
|
success: nt.success.bind(nt),
|
|
41866
41892
|
error: nt.error.bind(nt),
|
|
@@ -41870,10 +41896,10 @@ const Df = () => {
|
|
|
41870
41896
|
dismiss: nt.dismiss.bind(nt),
|
|
41871
41897
|
configure: nt.configure.bind(nt),
|
|
41872
41898
|
// Métodos de notification (se agrupan)
|
|
41873
|
-
brand:
|
|
41874
|
-
neutral:
|
|
41875
|
-
dismissNotification:
|
|
41876
|
-
configureNotification:
|
|
41899
|
+
brand: wt.brand.bind(wt),
|
|
41900
|
+
neutral: wt.neutral.bind(wt),
|
|
41901
|
+
dismissNotification: wt.dismissGroup.bind(wt),
|
|
41902
|
+
configureNotification: wt.configure.bind(wt)
|
|
41877
41903
|
}, zf = ({
|
|
41878
41904
|
text: e,
|
|
41879
41905
|
count: i,
|
|
@@ -41926,7 +41952,7 @@ const Df = () => {
|
|
|
41926
41952
|
k.onChange && k.onChange(O);
|
|
41927
41953
|
}, x = () => /* @__PURE__ */ b("div", { className: v, children: [
|
|
41928
41954
|
/* @__PURE__ */ r(
|
|
41929
|
-
|
|
41955
|
+
Ee,
|
|
41930
41956
|
{
|
|
41931
41957
|
color: "secondary",
|
|
41932
41958
|
size: "xs",
|
|
@@ -41960,7 +41986,7 @@ const Df = () => {
|
|
|
41960
41986
|
) }, `addon-${O}`);
|
|
41961
41987
|
if (k.type === "date")
|
|
41962
41988
|
return /* @__PURE__ */ r("div", { className: "ui-w-[160px]", children: /* @__PURE__ */ r(
|
|
41963
|
-
|
|
41989
|
+
Dn,
|
|
41964
41990
|
{
|
|
41965
41991
|
size: "xs",
|
|
41966
41992
|
mode: ((H = k.datePickerProps) == null ? void 0 : H.mode) || "single",
|
|
@@ -41983,7 +42009,7 @@ const Df = () => {
|
|
|
41983
42009
|
if (k.type === "button") {
|
|
41984
42010
|
const E = k.label ? void 0 : k.icon, B = k.label && k.icon ? k.icon : void 0;
|
|
41985
42011
|
return /* @__PURE__ */ r(
|
|
41986
|
-
|
|
42012
|
+
Ee,
|
|
41987
42013
|
{
|
|
41988
42014
|
color: k.color || "secondary",
|
|
41989
42015
|
size: "xs",
|
|
@@ -42005,15 +42031,15 @@ const Df = () => {
|
|
|
42005
42031
|
}
|
|
42006
42032
|
return null;
|
|
42007
42033
|
}) }),
|
|
42008
|
-
t && /* @__PURE__ */ b(
|
|
42034
|
+
t && /* @__PURE__ */ b(Ze, { children: [
|
|
42009
42035
|
/* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
|
|
42010
|
-
/* @__PURE__ */ r(
|
|
42036
|
+
/* @__PURE__ */ r(Ee, { color: "secondary", size: "xs", pill: "pill", icon: Mt, onClick: t })
|
|
42011
42037
|
] })
|
|
42012
42038
|
] }), I = () => /* @__PURE__ */ b("div", { className: v, children: [
|
|
42013
42039
|
/* @__PURE__ */ r("div", { className: "ui-flex ui-min-w-max ui-items-center ui-gap-16", children: m.map((k, O) => {
|
|
42014
42040
|
const H = k.label ? void 0 : k.icon, T = k.label && k.icon ? k.icon : void 0;
|
|
42015
42041
|
return /* @__PURE__ */ r(
|
|
42016
|
-
|
|
42042
|
+
Ee,
|
|
42017
42043
|
{
|
|
42018
42044
|
color: k.color || "secondary",
|
|
42019
42045
|
size: "xs",
|
|
@@ -42031,9 +42057,9 @@ const Df = () => {
|
|
|
42031
42057
|
`button-${O}-${k.label || k.icon}`
|
|
42032
42058
|
);
|
|
42033
42059
|
}) }),
|
|
42034
|
-
t && /* @__PURE__ */ b(
|
|
42060
|
+
t && /* @__PURE__ */ b(Ze, { children: [
|
|
42035
42061
|
/* @__PURE__ */ r(ct, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
|
|
42036
|
-
/* @__PURE__ */ r(
|
|
42062
|
+
/* @__PURE__ */ r(Ee, { color: "secondary", size: "xs", pill: "pill", icon: Mt, onClick: t })
|
|
42037
42063
|
] })
|
|
42038
42064
|
] }), N = (f ? a !== null && g !== null && C.length > 0 : d >= 0 && g !== null && C.length > 0) ? x() : I();
|
|
42039
42065
|
return h ? Rt(
|
|
@@ -42103,7 +42129,7 @@ const Df = () => {
|
|
|
42103
42129
|
}) => {
|
|
42104
42130
|
const s = () => {
|
|
42105
42131
|
const a = (o == null ? void 0 : o.type) || "people", { type: u, ...l } = o || {};
|
|
42106
|
-
return /* @__PURE__ */ r(
|
|
42132
|
+
return /* @__PURE__ */ r(St, { type: a, size: "md", ...l });
|
|
42107
42133
|
};
|
|
42108
42134
|
return /* @__PURE__ */ b("div", { className: j("ui-flex ui-w-full ui-flex-col ui-gap-8", n), children: [
|
|
42109
42135
|
/* @__PURE__ */ r(
|
|
@@ -42117,7 +42143,7 @@ const Df = () => {
|
|
|
42117
42143
|
),
|
|
42118
42144
|
/* @__PURE__ */ r(vi, {}),
|
|
42119
42145
|
/* @__PURE__ */ r(
|
|
42120
|
-
|
|
42146
|
+
Ee,
|
|
42121
42147
|
{
|
|
42122
42148
|
theme: "solid",
|
|
42123
42149
|
color: "tertiary",
|
|
@@ -42147,10 +42173,10 @@ const Df = () => {
|
|
|
42147
42173
|
danger: "ui-bg-surface-danger ui-text-danger",
|
|
42148
42174
|
info: "ui-bg-surface-info-hover ui-text-info"
|
|
42149
42175
|
}, m = {
|
|
42150
|
-
success:
|
|
42151
|
-
warning:
|
|
42152
|
-
danger:
|
|
42153
|
-
info:
|
|
42176
|
+
success: zn,
|
|
42177
|
+
warning: zn,
|
|
42178
|
+
danger: zn,
|
|
42179
|
+
info: zn
|
|
42154
42180
|
};
|
|
42155
42181
|
return /* @__PURE__ */ b(
|
|
42156
42182
|
"div",
|
|
@@ -42201,7 +42227,7 @@ const Df = () => {
|
|
|
42201
42227
|
) }),
|
|
42202
42228
|
h && /* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-items-center ui-gap-8", children: [
|
|
42203
42229
|
/* @__PURE__ */ r(
|
|
42204
|
-
|
|
42230
|
+
Ee,
|
|
42205
42231
|
{
|
|
42206
42232
|
theme: "solid",
|
|
42207
42233
|
color: "tertiary",
|
|
@@ -42213,13 +42239,13 @@ const Df = () => {
|
|
|
42213
42239
|
}
|
|
42214
42240
|
),
|
|
42215
42241
|
/* @__PURE__ */ r(
|
|
42216
|
-
|
|
42242
|
+
Ee,
|
|
42217
42243
|
{
|
|
42218
42244
|
theme: "solid",
|
|
42219
42245
|
color: "tertiary",
|
|
42220
42246
|
size: "xxs",
|
|
42221
42247
|
fullWidth: !0,
|
|
42222
|
-
leftSlot:
|
|
42248
|
+
leftSlot: Mt,
|
|
42223
42249
|
onClick: l,
|
|
42224
42250
|
children: "Concluir"
|
|
42225
42251
|
}
|
|
@@ -42630,7 +42656,7 @@ const y1 = {
|
|
|
42630
42656
|
return /* @__PURE__ */ b("div", { className: j("ui-imj", c), role: "listitem", children: [
|
|
42631
42657
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-4", children: [
|
|
42632
42658
|
a && /* @__PURE__ */ r(N0, { color: f, size: d }),
|
|
42633
|
-
u && /* @__PURE__ */ r(
|
|
42659
|
+
u && /* @__PURE__ */ r(Wn, { type: "body", size: "sm", color: "primary", children: u })
|
|
42634
42660
|
] }),
|
|
42635
42661
|
l && /* @__PURE__ */ r(Ci, { className: "ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children: l })
|
|
42636
42662
|
] });
|
|
@@ -42675,7 +42701,7 @@ function X6({
|
|
|
42675
42701
|
function Ji(e, i, o) {
|
|
42676
42702
|
return (i - e) / o;
|
|
42677
42703
|
}
|
|
42678
|
-
function
|
|
42704
|
+
function ni(e, i, o, t) {
|
|
42679
42705
|
const n = o / (i - e);
|
|
42680
42706
|
return (t - e) * n;
|
|
42681
42707
|
}
|
|
@@ -42694,7 +42720,7 @@ function zr(e, i, o, t, n) {
|
|
|
42694
42720
|
}
|
|
42695
42721
|
}
|
|
42696
42722
|
const Wi = 17;
|
|
42697
|
-
function
|
|
42723
|
+
function Fn(e, i, o) {
|
|
42698
42724
|
const t = {
|
|
42699
42725
|
second: 1e3,
|
|
42700
42726
|
minute: 60,
|
|
@@ -42747,12 +42773,12 @@ function O0({
|
|
|
42747
42773
|
canvasTimeEnd: t,
|
|
42748
42774
|
canvasWidth: n
|
|
42749
42775
|
}) {
|
|
42750
|
-
const s = i - e, a = Math.max(e, o), u = Math.min(i, t), l =
|
|
42776
|
+
const s = i - e, a = Math.max(e, o), u = Math.min(i, t), l = ni(
|
|
42751
42777
|
o,
|
|
42752
42778
|
t,
|
|
42753
42779
|
n,
|
|
42754
42780
|
a
|
|
42755
|
-
), d =
|
|
42781
|
+
), d = ni(
|
|
42756
42782
|
o,
|
|
42757
42783
|
t,
|
|
42758
42784
|
n,
|
|
@@ -43009,7 +43035,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43009
43035
|
calculateInteractionNewTimes: I0,
|
|
43010
43036
|
calculateScrollCanvas: tr,
|
|
43011
43037
|
calculateTimeForXPosition: Pr,
|
|
43012
|
-
calculateXPositionForTime:
|
|
43038
|
+
calculateXPositionForTime: ni,
|
|
43013
43039
|
collision: D0,
|
|
43014
43040
|
coordinateToTimeRatio: Ji,
|
|
43015
43041
|
getCanvasBoundariesFromVisibleTime: $r,
|
|
@@ -43018,7 +43044,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
43018
43044
|
getGroupedItems: H0,
|
|
43019
43045
|
getItemDimensions: z0,
|
|
43020
43046
|
getItemWithInteractions: A0,
|
|
43021
|
-
getMinUnit:
|
|
43047
|
+
getMinUnit: Fn,
|
|
43022
43048
|
getNextUnit: Ar,
|
|
43023
43049
|
getVisibleItems: Br,
|
|
43024
43050
|
groupNoStack: T0,
|
|
@@ -43130,7 +43156,7 @@ function R0(e) {
|
|
|
43130
43156
|
timelineUnit: u,
|
|
43131
43157
|
timelineWidth: l
|
|
43132
43158
|
}),
|
|
43133
|
-
getLeftOffsetFromDate: (d) =>
|
|
43159
|
+
getLeftOffsetFromDate: (d) => ni(t, n, s, d),
|
|
43134
43160
|
getDateFromLeftOffsetPosition: (d) => Pr(t, n, s, d),
|
|
43135
43161
|
showPeriod: a
|
|
43136
43162
|
}),
|
|
@@ -43150,7 +43176,7 @@ function R0(e) {
|
|
|
43150
43176
|
R0.displayName = "TimelineStateProvider";
|
|
43151
43177
|
const yi = Li.Consumer, u7 = () => dr(Li);
|
|
43152
43178
|
qt.extend(Na);
|
|
43153
|
-
const
|
|
43179
|
+
const ii = class ii extends fr {
|
|
43154
43180
|
constructor(i) {
|
|
43155
43181
|
super(i), this.state = {
|
|
43156
43182
|
interactMounted: !1,
|
|
@@ -43481,11 +43507,11 @@ const ni = class ni extends fr {
|
|
|
43481
43507
|
});
|
|
43482
43508
|
}
|
|
43483
43509
|
};
|
|
43484
|
-
|
|
43510
|
+
ii.defaultProps = {
|
|
43485
43511
|
selected: !1,
|
|
43486
43512
|
itemRenderer: X6
|
|
43487
|
-
},
|
|
43488
|
-
let rr =
|
|
43513
|
+
}, ii.contextType = Li;
|
|
43514
|
+
let rr = ii;
|
|
43489
43515
|
function l7(e, i) {
|
|
43490
43516
|
const o = He(e, "canResize") !== void 0 ? He(e, "canResize") : i;
|
|
43491
43517
|
return o === "left" || o === "both";
|
|
@@ -44509,10 +44535,10 @@ function G7([e], i, o, t = D7) {
|
|
|
44509
44535
|
}
|
|
44510
44536
|
cr.displayName = "DateHeader";
|
|
44511
44537
|
qt.extend(Ia);
|
|
44512
|
-
const
|
|
44538
|
+
const ri = class ri extends fr {
|
|
44513
44539
|
constructor(i) {
|
|
44514
44540
|
super(i), this.getTimelineContext = () => {
|
|
44515
|
-
const { width: p, visibleTimeStart: m, visibleTimeEnd: g, canvasTimeStart: C, canvasTimeEnd: v } = this.state, L = g - m, w = Qt(p, this.props.buffer), y =
|
|
44541
|
+
const { width: p, visibleTimeStart: m, visibleTimeEnd: g, canvasTimeStart: C, canvasTimeEnd: v } = this.state, L = g - m, w = Qt(p, this.props.buffer), y = Fn(L, p, this.props.timeSteps);
|
|
44516
44542
|
return {
|
|
44517
44543
|
canvasWidth: w,
|
|
44518
44544
|
timelineUnit: y,
|
|
@@ -44524,7 +44550,7 @@ const ii = class ii extends fr {
|
|
|
44524
44550
|
};
|
|
44525
44551
|
}, this.getTimelineUnit = () => {
|
|
44526
44552
|
const { width: p, visibleTimeStart: m, visibleTimeEnd: g } = this.state, { timeSteps: C } = this.props, v = g - m;
|
|
44527
|
-
return
|
|
44553
|
+
return Fn(v, p, C);
|
|
44528
44554
|
}, this.handleContainerWheel = (p) => {
|
|
44529
44555
|
if (!(p.ctrlKey || p.metaKey || p.altKey)) return;
|
|
44530
44556
|
p.preventDefault(), p.stopPropagation();
|
|
@@ -44979,7 +45005,7 @@ const ii = class ii extends fr {
|
|
|
44979
45005
|
canvasTimeEnd: m
|
|
44980
45006
|
} = this.state;
|
|
44981
45007
|
let { dimensionItems: g, height: C, groupHeights: v, groupTops: L } = this.state;
|
|
44982
|
-
const w = h - c, y = Qt(d, u), M =
|
|
45008
|
+
const w = h - c, y = Qt(d, u), M = Fn(w, d, s);
|
|
44983
45009
|
if (!!l || !!f) {
|
|
44984
45010
|
const S = vn(
|
|
44985
45011
|
i,
|
|
@@ -45090,7 +45116,7 @@ const ii = class ii extends fr {
|
|
|
45090
45116
|
);
|
|
45091
45117
|
}
|
|
45092
45118
|
};
|
|
45093
|
-
|
|
45119
|
+
ri.setDayjsLocale = qt.locale, ri.defaultProps = {
|
|
45094
45120
|
sidebarWidth: 150,
|
|
45095
45121
|
rightSidebarWidth: 0,
|
|
45096
45122
|
dragSnap: 1e3 * 60 * 15,
|
|
@@ -45154,7 +45180,7 @@ ii.setDayjsLocale = qt.locale, ii.defaultProps = {
|
|
|
45154
45180
|
children: null,
|
|
45155
45181
|
selected: null
|
|
45156
45182
|
};
|
|
45157
|
-
let N1 =
|
|
45183
|
+
let N1 = ri;
|
|
45158
45184
|
const $f = (e) => e.children || null, q7 = 1e3 * 10;
|
|
45159
45185
|
function Y7({
|
|
45160
45186
|
interval: e = q7,
|
|
@@ -45406,13 +45432,13 @@ export {
|
|
|
45406
45432
|
i0 as ActionsCell,
|
|
45407
45433
|
po as Alert,
|
|
45408
45434
|
Np as AlertDialog,
|
|
45409
|
-
|
|
45435
|
+
St as Avatar,
|
|
45410
45436
|
L5 as AvatarsCell,
|
|
45411
45437
|
jt as Badge,
|
|
45412
45438
|
Ju as Badges,
|
|
45413
|
-
|
|
45439
|
+
Yn as BarProgress,
|
|
45414
45440
|
qi as Body,
|
|
45415
|
-
|
|
45441
|
+
Ee as Button,
|
|
45416
45442
|
M5 as ButtonCell,
|
|
45417
45443
|
Ip as ButtonGroup,
|
|
45418
45444
|
Zf as COLORS,
|
|
@@ -45440,7 +45466,7 @@ export {
|
|
|
45440
45466
|
s0 as DateCell,
|
|
45441
45467
|
cr as DateHeader,
|
|
45442
45468
|
$8 as DateInput,
|
|
45443
|
-
|
|
45469
|
+
Dn as DatePicker,
|
|
45444
45470
|
G8 as DatePickerPortal,
|
|
45445
45471
|
P8 as Day,
|
|
45446
45472
|
X8 as Drawer,
|
|
@@ -45503,7 +45529,7 @@ export {
|
|
|
45503
45529
|
z8 as Month,
|
|
45504
45530
|
Fo as MonthGrid,
|
|
45505
45531
|
Z8 as MultipleCalendarsHeader,
|
|
45506
|
-
|
|
45532
|
+
Qn as NavigationButton,
|
|
45507
45533
|
M0 as NotificationItem,
|
|
45508
45534
|
Er as NotificationPositions,
|
|
45509
45535
|
Df as Notifier,
|
|
@@ -45527,7 +45553,7 @@ export {
|
|
|
45527
45553
|
N1 as ReactCalendarTimeline,
|
|
45528
45554
|
Uf as ReviewProvider,
|
|
45529
45555
|
d7 as RowItems,
|
|
45530
|
-
|
|
45556
|
+
ei as SelectionCheckbox,
|
|
45531
45557
|
ct as Separator,
|
|
45532
45558
|
Rf as Sidebar,
|
|
45533
45559
|
vi as SidebarDivider,
|
|
@@ -45564,7 +45590,7 @@ export {
|
|
|
45564
45590
|
h5 as TableToolbar,
|
|
45565
45591
|
wn as Tag,
|
|
45566
45592
|
o0 as TagsCell,
|
|
45567
|
-
|
|
45593
|
+
Wn as Text,
|
|
45568
45594
|
y5 as TextFieldCell,
|
|
45569
45595
|
N0 as TextListIndicator,
|
|
45570
45596
|
Y6 as TextListWithData,
|
|
@@ -45579,7 +45605,7 @@ export {
|
|
|
45579
45605
|
Ir as Toggle,
|
|
45580
45606
|
zf as Toolbar,
|
|
45581
45607
|
It as Tooltip,
|
|
45582
|
-
|
|
45608
|
+
xt as TruncatedWithTooltip,
|
|
45583
45609
|
en as Visual,
|
|
45584
45610
|
R8 as WeekDay,
|
|
45585
45611
|
Gp as Wysiwyg,
|
|
@@ -45622,7 +45648,7 @@ export {
|
|
|
45622
45648
|
b6 as normalizeStrаpiItem,
|
|
45623
45649
|
h0 as normalizeTeamsResponse,
|
|
45624
45650
|
Ef as notification,
|
|
45625
|
-
|
|
45651
|
+
wt as notificationService,
|
|
45626
45652
|
Pf as notify,
|
|
45627
45653
|
p6 as paginateRowsForDisplay,
|
|
45628
45654
|
H5 as parseDate,
|