@imj_media/ui 1.7.0 → 1.7.2
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 +13 -0
- package/README.md +1 -1
- package/dist/index.css +2 -2
- package/dist/index.esm.js +691 -691
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/modules/Tooltip/components/organisms/Tooltip.d.ts.map +1 -1
- package/dist/modules/Tooltip/stories/Tooltip.stories.d.ts +1 -0
- package/dist/modules/Tooltip/stories/Tooltip.stories.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as b, Fragment as et } from "react/jsx-runtime";
|
|
2
|
-
import Ne, { useState as F, useRef as
|
|
2
|
+
import Ne, { useState as F, useRef as U, useCallback as T, useEffect as oe, useMemo as W, memo as at, useLayoutEffect as Rt, useImperativeHandle as Xn, forwardRef as Zt, useId as fi, createContext as Qn, useContext as hi, Fragment as xr, Children as ro, isValidElement as Y0, useSyncExternalStore as K0, Component as oo, cloneElement as X0, createElement as Q0 } from "react";
|
|
3
3
|
import { clsx as J0 } from "clsx";
|
|
4
4
|
import { twMerge as W0 } from "tailwind-merge";
|
|
5
5
|
import Ni, { createPortal as tn } from "react-dom";
|
|
@@ -426,7 +426,7 @@ function Du(e) {
|
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
const Tu = (e = "top", n = "center", r = !1, t = 0, i = !1) => {
|
|
429
|
-
const [a, s] = F(!1), [l, u] = F({ top: 0, left: 0 }), [d, f] = F({ width: 0, height: 0 }), [c, p] = F(e), h =
|
|
429
|
+
const [a, s] = F(!1), [l, u] = F({ top: 0, left: 0 }), [d, f] = F({ width: 0, height: 0 }), [c, p] = F(e), h = U(null), m = U(null), g = U(null), C = U(null), v = U(null), x = U(null), w = U(null), S = U({ top: 0, left: 0 }), k = U({ count: 0, lastTime: 0 }), y = T(() => {
|
|
430
430
|
s(!1), u({ top: 0, left: 0 }), p(e), w.current = null, k.current.count = 0, k.current.lastTime = 0, S.current = { top: 0, left: 0 };
|
|
431
431
|
}, [e]), M = T(() => {
|
|
432
432
|
if (!h.current || !a) return;
|
|
@@ -649,20 +649,20 @@ const Tu = (e = "top", n = "center", r = !1, t = 0, i = !1) => {
|
|
|
649
649
|
I({});
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
|
-
const O = C, V = O === "top-left" || O === "top-right" || O === "bottom-left" || O === "bottom-right", E = O === "left-top" || O === "left-bottom" || O === "right-top" || O === "right-bottom";
|
|
653
|
-
if (!V && !E) {
|
|
652
|
+
const O = C, V = O === "top-left" || O === "top-right" || O === "bottom-left" || O === "bottom-right", E = O === "left-top" || O === "left-bottom" || O === "right-top" || O === "right-bottom", P = O === "top" || O === "bottom", z = O === "left" || O === "right";
|
|
653
|
+
if (!V && !E && !P && !z) {
|
|
654
654
|
I({});
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
657
|
requestAnimationFrame(() => {
|
|
658
658
|
if (!v.current || !x.current) return;
|
|
659
|
-
const
|
|
660
|
-
if (V) {
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
} else if (E) {
|
|
664
|
-
const
|
|
665
|
-
|
|
659
|
+
const A = v.current.firstElementChild, B = (A instanceof HTMLElement ? A : v.current).getBoundingClientRect(), Y = x.current.getBoundingClientRect(), J = 8, q = 8;
|
|
660
|
+
if (V || P) {
|
|
661
|
+
const ce = B.left + B.width / 2 - Y.left - J / 2, _ = { left: `${Math.max(q, Math.min(ce, Y.width - q))}px`, right: "auto" };
|
|
662
|
+
P && (_.transform = "rotate(45deg)"), I(_);
|
|
663
|
+
} else if (E || z) {
|
|
664
|
+
const ce = B.top + B.height / 2 - Y.top - J / 2, _ = { top: `${Math.max(q, Math.min(ce, Y.height - q))}px`, bottom: "auto" };
|
|
665
|
+
z && (_.transform = "rotate(45deg)"), I(_);
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
}, [m, C, g]);
|
|
@@ -944,7 +944,7 @@ const Yt = ({
|
|
|
944
944
|
showTooltipWhenTruncated: s = !0,
|
|
945
945
|
maxVisibleChars: l
|
|
946
946
|
}) => {
|
|
947
|
-
const u = typeof l == "number" && l > 0, d =
|
|
947
|
+
const u = typeof l == "number" && l > 0, d = U(null), [f, c] = F(!1), p = t && Jn.includes(t), h = p ? `ui-text-${t}` : "", m = t && !p ? { color: t } : void 0, g = T(() => {
|
|
948
948
|
if (u) {
|
|
949
949
|
c(!1);
|
|
950
950
|
return;
|
|
@@ -989,7 +989,7 @@ const Yt = ({
|
|
|
989
989
|
);
|
|
990
990
|
return !a || !C ? v : /* @__PURE__ */ o(Lt, { label: C, disabled: !f, position: i, preserveLayout: !0, children: /* @__PURE__ */ o("div", { className: "ui-block ui-w-full ui-min-w-0 ui-max-w-full ui-overflow-hidden", children: v }) });
|
|
991
991
|
}, ua = (e) => {
|
|
992
|
-
const [n, r] = F(!1), t =
|
|
992
|
+
const [n, r] = F(!1), t = U(e);
|
|
993
993
|
return oe(() => {
|
|
994
994
|
t.current === !0 && e === !1 && r(!0), t.current = e;
|
|
995
995
|
}, [e]), oe(() => {
|
|
@@ -1024,7 +1024,7 @@ const Yt = ({
|
|
|
1024
1024
|
textColor: i,
|
|
1025
1025
|
textAlign: a
|
|
1026
1026
|
}) => {
|
|
1027
|
-
const [s, l] = F(!1), [u, d] = F(0), f =
|
|
1027
|
+
const [s, l] = F(!1), [u, d] = F(0), f = U(null), c = U(null), p = W(() => e !== null && e !== !1 ? String(e).trim() : "", [e]), h = W(() => n ? n.trim() : "", [n]);
|
|
1028
1028
|
oe(() => {
|
|
1029
1029
|
if (!n || !r || !f.current)
|
|
1030
1030
|
return;
|
|
@@ -1774,7 +1774,7 @@ const wa = el, bo = "blue", vo = "solid", Ki = "md", Uu = {
|
|
|
1774
1774
|
className: l,
|
|
1775
1775
|
status: u
|
|
1776
1776
|
}) => {
|
|
1777
|
-
const [d, f] = F(!1), [c, p] = F(!1), h =
|
|
1777
|
+
const [d, f] = F(!1), [c, p] = F(!1), h = U(null), m = () => {
|
|
1778
1778
|
f(!0), p(!1), h.current && clearTimeout(h.current);
|
|
1779
1779
|
}, g = () => {
|
|
1780
1780
|
p(!0), f(!1), h.current && clearTimeout(h.current);
|
|
@@ -2288,16 +2288,16 @@ const qt = (e) => {
|
|
|
2288
2288
|
"ui-rounded-control-sm ui-h-16",
|
|
2289
2289
|
"ui-px-8 ui-py-2",
|
|
2290
2290
|
y ? "ui-gap-4 ui-pl-8 ui-pr-8" : ""
|
|
2291
|
-
].join(" ") : "",
|
|
2291
|
+
].join(" ") : "", ce = L ? "ui-rounded-control-pill" : "", K = {
|
|
2292
2292
|
sm: "xs",
|
|
2293
2293
|
md: "xs",
|
|
2294
2294
|
lg: "sm",
|
|
2295
2295
|
dot: "xs"
|
|
2296
|
-
},
|
|
2296
|
+
}, _ = y && (i === "lg" || i === "md" || i === "sm") ? "ui-gap-4" : "", le = () => y ? f != null ? /* @__PURE__ */ o("span", { className: "ui-inline-flex ui-shrink-0 ui-items-center ui-justify-center", "aria-hidden": !0, children: f }) : d == null ? null : /* @__PURE__ */ o(
|
|
2297
2297
|
Le,
|
|
2298
2298
|
{
|
|
2299
2299
|
name: d,
|
|
2300
|
-
size:
|
|
2300
|
+
size: K[i],
|
|
2301
2301
|
"aria-hidden": !0,
|
|
2302
2302
|
colorDuotonePrimary: c,
|
|
2303
2303
|
colorDuotoneSecondary: p,
|
|
@@ -2313,9 +2313,9 @@ const qt = (e) => {
|
|
|
2313
2313
|
// md necesita tamaño fijo y circular cuando está en loading
|
|
2314
2314
|
lg: "ui-h-20 ui-w-20 ui-rounded-control-pill ui-justify-center"
|
|
2315
2315
|
// lg necesita tamaño fijo y circular cuando está en loading
|
|
2316
|
-
},
|
|
2316
|
+
}, X = () => {
|
|
2317
2317
|
if (!C) return null;
|
|
2318
|
-
const
|
|
2318
|
+
const G = {
|
|
2319
2319
|
dot: "ui-w-8 ui-h-8 ui-border-default",
|
|
2320
2320
|
// Badge dot es 48px (ui-w-12), spinner 32px (~67% del tamaño)
|
|
2321
2321
|
sm: "ui-w-10 ui-h-10 ui-border-default",
|
|
@@ -2324,13 +2324,13 @@ const qt = (e) => {
|
|
|
2324
2324
|
// Badge md con min-h-16 min-w-16 = 64px, spinner 40px (~63% del tamaño)
|
|
2325
2325
|
lg: "ui-w-12 ui-h-12 ui-border-default"
|
|
2326
2326
|
// Badge lg con min-h-20 min-w-20 = 80px, spinner 48px (~60% del tamaño)
|
|
2327
|
-
},
|
|
2327
|
+
}, de = G[i || "sm"] || G.sm;
|
|
2328
2328
|
return /* @__PURE__ */ o(
|
|
2329
2329
|
"span",
|
|
2330
2330
|
{
|
|
2331
2331
|
className: N(
|
|
2332
2332
|
"ui-inline-flex ui-max-h-full ui-max-w-full ui-shrink-0 ui-animate-spin ui-items-center ui-justify-center ui-rounded-full ui-border-solid ui-border-current ui-border-t-transparent",
|
|
2333
|
-
|
|
2333
|
+
de
|
|
2334
2334
|
),
|
|
2335
2335
|
"aria-label": "Cargando",
|
|
2336
2336
|
role: "status"
|
|
@@ -2350,10 +2350,10 @@ const qt = (e) => {
|
|
|
2350
2350
|
H,
|
|
2351
2351
|
a ? "ui-border-1" : "",
|
|
2352
2352
|
J,
|
|
2353
|
-
|
|
2353
|
+
ce,
|
|
2354
2354
|
q,
|
|
2355
2355
|
se,
|
|
2356
|
-
|
|
2356
|
+
_,
|
|
2357
2357
|
C ? ie[i] || ie.sm : "",
|
|
2358
2358
|
// Aplicar tamaño mínimo cuando está en loading
|
|
2359
2359
|
s ? "" : "ui-pointer-events-none",
|
|
@@ -2361,7 +2361,7 @@ const qt = (e) => {
|
|
|
2361
2361
|
),
|
|
2362
2362
|
style: re,
|
|
2363
2363
|
...w,
|
|
2364
|
-
children: C ?
|
|
2364
|
+
children: C ? X() : /* @__PURE__ */ b(et, { children: [
|
|
2365
2365
|
!L && le(),
|
|
2366
2366
|
!L && (v ? /* @__PURE__ */ o(
|
|
2367
2367
|
Yt,
|
|
@@ -2545,16 +2545,16 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2545
2545
|
iconDuotoneOpacityPrimary: J,
|
|
2546
2546
|
iconDuotoneOpacitySecondary: q,
|
|
2547
2547
|
leftSlotDuotonePrimary: se,
|
|
2548
|
-
leftSlotDuotoneSecondary:
|
|
2549
|
-
leftSlotDuotoneOpacityPrimary:
|
|
2550
|
-
leftSlotDuotoneOpacitySecondary:
|
|
2548
|
+
leftSlotDuotoneSecondary: ce,
|
|
2549
|
+
leftSlotDuotoneOpacityPrimary: K,
|
|
2550
|
+
leftSlotDuotoneOpacitySecondary: _,
|
|
2551
2551
|
rightSlotDuotonePrimary: le,
|
|
2552
2552
|
rightSlotDuotoneSecondary: ie,
|
|
2553
|
-
rightSlotDuotoneOpacityPrimary:
|
|
2553
|
+
rightSlotDuotoneOpacityPrimary: X,
|
|
2554
2554
|
rightSlotDuotoneOpacitySecondary: re,
|
|
2555
|
-
showShadow:
|
|
2555
|
+
showShadow: G = !1,
|
|
2556
2556
|
borderable: ne,
|
|
2557
|
-
iconSizeExtended:
|
|
2557
|
+
iconSizeExtended: de = "none",
|
|
2558
2558
|
defaultSizeIcon: ve = !0,
|
|
2559
2559
|
as: Q = "button",
|
|
2560
2560
|
classNameId: Z = "imj-ui-inner-button",
|
|
@@ -2611,16 +2611,16 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2611
2611
|
}), mt = i && typeof i == "object" && !Ne.isValidElement(i) && "icon" in i && ("colorIcon" in i || "onClick" in i || "show" in i || "iconDuotonePrimary" in i), It = mt ? i : void 0, rt = a && typeof a == "object" && !Ne.isValidElement(a) && "icon" in a && ("colorIcon" in a || "onClick" in a || "show" in a || "iconDuotonePrimary" in a), rn = rt ? a : void 0, _t = mt ? void 0 : Cc({
|
|
2612
2612
|
leftSlot: i,
|
|
2613
2613
|
leftSlotDuotonePrimary: se,
|
|
2614
|
-
leftSlotDuotoneSecondary:
|
|
2615
|
-
leftSlotDuotoneOpacityPrimary:
|
|
2616
|
-
leftSlotDuotoneOpacitySecondary:
|
|
2614
|
+
leftSlotDuotoneSecondary: ce,
|
|
2615
|
+
leftSlotDuotoneOpacityPrimary: K,
|
|
2616
|
+
leftSlotDuotoneOpacitySecondary: _,
|
|
2617
2617
|
onClickLeftSlot: P,
|
|
2618
2618
|
colorIcon: H
|
|
2619
2619
|
}), Ot = rt ? void 0 : bc({
|
|
2620
2620
|
rightSlot: a,
|
|
2621
2621
|
rightSlotDuotonePrimary: le,
|
|
2622
2622
|
rightSlotDuotoneSecondary: ie,
|
|
2623
|
-
rightSlotDuotoneOpacityPrimary:
|
|
2623
|
+
rightSlotDuotoneOpacityPrimary: X,
|
|
2624
2624
|
rightSlotDuotoneOpacitySecondary: re,
|
|
2625
2625
|
onClickRightSlot: z,
|
|
2626
2626
|
colorIcon: H
|
|
@@ -2631,7 +2631,7 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2631
2631
|
tooltipDelay: $,
|
|
2632
2632
|
tooltipAbsolute: pe,
|
|
2633
2633
|
classNameTooltip: he
|
|
2634
|
-
}), ee = Ie || tt || Ct || (L && !lt && !Ne.isValidElement(L) ? { icon: L, show: !0 } : void 0), ge = Ae || bt, xe = st || It || _t, Te = ct || rn || Ot, We = _e || ke || ye, vt = (ee == null ? void 0 : ee.icon) || (lt ? void 0 : Ne.isValidElement(L) || typeof L == "string" || typeof L == "object" && L !== null && "icon" in L ? L : void 0), Dt = (ge == null ? void 0 : ge.color) || l, Tt = (ge == null ? void 0 : ge.label) || u, Jt = (ge == null ? void 0 : ge.theme) || d, Ut = (ge == null ? void 0 : ge.size) || f, wt = (ge == null ? void 0 : ge.stroke) ?? c, Ce = (ge == null ? void 0 : ge.icon) || p, He = (ge == null ? void 0 : ge.loading) ?? v, Xe = (xe == null ? void 0 : xe.icon) || (mt ? void 0 : i),
|
|
2634
|
+
}), ee = Ie || tt || Ct || (L && !lt && !Ne.isValidElement(L) ? { icon: L, show: !0 } : void 0), ge = Ae || bt, xe = st || It || _t, Te = ct || rn || Ot, We = _e || ke || ye, vt = (ee == null ? void 0 : ee.icon) || (lt ? void 0 : Ne.isValidElement(L) || typeof L == "string" || typeof L == "object" && L !== null && "icon" in L ? L : void 0), Dt = (ge == null ? void 0 : ge.color) || l, Tt = (ge == null ? void 0 : ge.label) || u, Jt = (ge == null ? void 0 : ge.theme) || d, Ut = (ge == null ? void 0 : ge.size) || f, wt = (ge == null ? void 0 : ge.stroke) ?? c, Ce = (ge == null ? void 0 : ge.icon) || p, He = (ge == null ? void 0 : ge.loading) ?? v, Xe = (xe == null ? void 0 : xe.icon) || (mt ? void 0 : i), fe = (Te == null ? void 0 : Te.icon) || (rt ? void 0 : a), be = (We == null ? void 0 : We.label) || ($t ? void 0 : R), te = (We == null ? void 0 : We.position) || ue, Fe = (We == null ? void 0 : We.alignment) || ae, Ye = (We == null ? void 0 : We.delay) ?? $, Ue = (We == null ? void 0 : We.absolute) ?? pe, Vt = (We == null ? void 0 : We.className) || he, ut = s === "icon", vn = (k == null || k === !1) && !!vt, dt = k != null && k !== !1, pn = ua(He), {
|
|
2635
2635
|
displayText: jn,
|
|
2636
2636
|
textStyle: On,
|
|
2637
2637
|
measureRef: on,
|
|
@@ -2671,14 +2671,14 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2671
2671
|
icon: !!vt,
|
|
2672
2672
|
children: dt,
|
|
2673
2673
|
shouldShowBadge: sn,
|
|
2674
|
-
showShadow:
|
|
2674
|
+
showShadow: G,
|
|
2675
2675
|
pointer: Me,
|
|
2676
2676
|
transition: Qe,
|
|
2677
2677
|
classNameId: Z,
|
|
2678
2678
|
className: n,
|
|
2679
2679
|
isIconVariant: ut,
|
|
2680
2680
|
defaultSizeIcon: ve
|
|
2681
|
-
}), mn = dt && (xe == null ? void 0 : xe.show) !== !1 && !!Xe, Tn = dt && (Te == null ? void 0 : Te.show) !== !1 && !!
|
|
2681
|
+
}), mn = dt && (xe == null ? void 0 : xe.show) !== !1 && !!Xe, Tn = dt && (Te == null ? void 0 : Te.show) !== !1 && !!fe, mi = si(Ve) && (mn || Tn) ? mn && Tn ? "both" : mn ? "left-only" : "right-only" : null, ei = N(Dn, mi && "!ui-justify-start ui-w-full"), gi = (ii) => {
|
|
2682
2682
|
me && ii.stopPropagation(), je && je(ii);
|
|
2683
2683
|
}, ti = () => /* @__PURE__ */ b(et, { children: [
|
|
2684
2684
|
(xe == null ? void 0 : xe.show) !== !1 && /* @__PURE__ */ o(
|
|
@@ -2693,9 +2693,9 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2693
2693
|
strokeWidth: Be,
|
|
2694
2694
|
onClickLeftSlot: (xe == null ? void 0 : xe.onClick) || P,
|
|
2695
2695
|
leftSlotDuotonePrimary: (xe == null ? void 0 : xe.iconDuotonePrimary) || se,
|
|
2696
|
-
leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) ||
|
|
2697
|
-
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) ||
|
|
2698
|
-
leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) ||
|
|
2696
|
+
leftSlotDuotoneSecondary: (xe == null ? void 0 : xe.iconDuotoneSecondary) || ce,
|
|
2697
|
+
leftSlotDuotoneOpacityPrimary: (xe == null ? void 0 : xe.iconDuotoneOpacityPrimary) || K,
|
|
2698
|
+
leftSlotDuotoneOpacitySecondary: (xe == null ? void 0 : xe.iconDuotoneOpacitySecondary) || _,
|
|
2699
2699
|
hasChildren: dt,
|
|
2700
2700
|
iconFontSize: xe == null ? void 0 : xe.iconFontSize
|
|
2701
2701
|
}
|
|
@@ -2704,7 +2704,7 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2704
2704
|
Co,
|
|
2705
2705
|
{
|
|
2706
2706
|
displayText: jn,
|
|
2707
|
-
hasSlots: !!(Xe ||
|
|
2707
|
+
hasSlots: !!(Xe || fe),
|
|
2708
2708
|
slotLayout: Ve,
|
|
2709
2709
|
spreadSides: mi,
|
|
2710
2710
|
textStyle: On,
|
|
@@ -2736,7 +2736,7 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2736
2736
|
(Te == null ? void 0 : Te.show) !== !1 && /* @__PURE__ */ o(
|
|
2737
2737
|
Sa,
|
|
2738
2738
|
{
|
|
2739
|
-
rightSlot:
|
|
2739
|
+
rightSlot: fe,
|
|
2740
2740
|
size: D,
|
|
2741
2741
|
color: w,
|
|
2742
2742
|
colorIcon: (Te == null ? void 0 : Te.colorIcon) || H,
|
|
@@ -2746,7 +2746,7 @@ const ht = (e, n, r = "[InnerButton]") => {
|
|
|
2746
2746
|
onClickRightSlot: (Te == null ? void 0 : Te.onClick) || z,
|
|
2747
2747
|
rightSlotDuotonePrimary: (Te == null ? void 0 : Te.iconDuotonePrimary) || le,
|
|
2748
2748
|
rightSlotDuotoneSecondary: (Te == null ? void 0 : Te.iconDuotoneSecondary) || ie,
|
|
2749
|
-
rightSlotDuotoneOpacityPrimary: (Te == null ? void 0 : Te.iconDuotoneOpacityPrimary) ||
|
|
2749
|
+
rightSlotDuotoneOpacityPrimary: (Te == null ? void 0 : Te.iconDuotoneOpacityPrimary) || X,
|
|
2750
2750
|
rightSlotDuotoneOpacitySecondary: (Te == null ? void 0 : Te.iconDuotoneOpacitySecondary) || re,
|
|
2751
2751
|
hasChildren: dt,
|
|
2752
2752
|
iconFontSize: Te == null ? void 0 : Te.iconFontSize
|
|
@@ -3250,7 +3250,7 @@ const yc = ({
|
|
|
3250
3250
|
`Alert: Invalid variant "${n}" for color "${e}", using "contained" as fallback`
|
|
3251
3251
|
)), `${i} ${s} ${u[n] || u.contained}`;
|
|
3252
3252
|
}, Lc = ({ open: e, externalIsLeaving: n }) => {
|
|
3253
|
-
const [r, t] = F(!1), [i, a] = F(!1), s =
|
|
3253
|
+
const [r, t] = F(!1), [i, a] = F(!1), s = U(null), l = U(0), u = n !== void 0 ? n : i;
|
|
3254
3254
|
return oe(() => {
|
|
3255
3255
|
const d = ++l.current;
|
|
3256
3256
|
return s.current && (clearTimeout(s.current), s.current = null), e ? (t(!0), a(!1)) : (a(!0), n === void 0 && (s.current = setTimeout(() => {
|
|
@@ -3469,7 +3469,7 @@ const Ee = Ne.forwardRef(function({
|
|
|
3469
3469
|
});
|
|
3470
3470
|
Ee.displayName = "Button";
|
|
3471
3471
|
const Ic = ["xxs", "xs", "sm", "md", "lg"], jc = (e, n, r) => {
|
|
3472
|
-
const [t, i] = F(e), a =
|
|
3472
|
+
const [t, i] = F(e), a = U(null), s = U(0), l = U(!1), u = U(r), d = 16;
|
|
3473
3473
|
oe(() => {
|
|
3474
3474
|
u.current = r;
|
|
3475
3475
|
}, [r]);
|
|
@@ -3953,13 +3953,13 @@ const Da = ({
|
|
|
3953
3953
|
infoTooltip: J = "",
|
|
3954
3954
|
pill: q = "sm",
|
|
3955
3955
|
clearable: se = !1,
|
|
3956
|
-
onClear:
|
|
3957
|
-
...
|
|
3958
|
-
},
|
|
3956
|
+
onClear: ce,
|
|
3957
|
+
...K
|
|
3958
|
+
}, _) => {
|
|
3959
3959
|
const {
|
|
3960
3960
|
value: le,
|
|
3961
3961
|
setValue: ie,
|
|
3962
|
-
isControlled:
|
|
3962
|
+
isControlled: X
|
|
3963
3963
|
} = Ta({
|
|
3964
3964
|
value: c,
|
|
3965
3965
|
defaultValue: h,
|
|
@@ -3967,13 +3967,13 @@ const Da = ({
|
|
|
3967
3967
|
}), re = (me) => {
|
|
3968
3968
|
const Me = me.target.value;
|
|
3969
3969
|
ie(Me), C == null || C(me);
|
|
3970
|
-
},
|
|
3970
|
+
}, G = !!(se && ce && !m && String(le ?? "").length > 0), { hasRightSlot: ne, hasExtraSlot: de, paddingClasses: ve, getLeftSlotPosition: Q } = Tc({
|
|
3971
3971
|
size: t,
|
|
3972
3972
|
leftSlot: a ?? void 0,
|
|
3973
3973
|
rightSlot: s ?? void 0,
|
|
3974
3974
|
extraSlot: l ?? void 0,
|
|
3975
|
-
hasClearSlot:
|
|
3976
|
-
}), Z = !!(s ||
|
|
3975
|
+
hasClearSlot: G
|
|
3976
|
+
}), Z = !!(s || G || l), R = t === "lg" ? "ui-right-3.5" : "ui-right-2.5", { baseClasses: ue, containerClasses: ae, labelClasses: $ } = Hc({
|
|
3977
3977
|
size: t,
|
|
3978
3978
|
error: n,
|
|
3979
3979
|
disabled: m,
|
|
@@ -3985,11 +3985,11 @@ const Da = ({
|
|
|
3985
3985
|
pill: q
|
|
3986
3986
|
});
|
|
3987
3987
|
Vc({
|
|
3988
|
-
ref:
|
|
3988
|
+
ref: _,
|
|
3989
3989
|
currentValue: le,
|
|
3990
3990
|
setValue: ie,
|
|
3991
|
-
isControlled:
|
|
3992
|
-
inputId:
|
|
3991
|
+
isControlled: X,
|
|
3992
|
+
inputId: K.id
|
|
3993
3993
|
});
|
|
3994
3994
|
const he = ((me) => !me || typeof me != "string" ? !1 : me.startsWith("data:") || me.startsWith("blob:") ? !0 : Wn(me))(a);
|
|
3995
3995
|
return /* @__PURE__ */ b(
|
|
@@ -4063,14 +4063,14 @@ const Da = ({
|
|
|
4063
4063
|
value: le,
|
|
4064
4064
|
onChange: re,
|
|
4065
4065
|
name: S,
|
|
4066
|
-
"data-input-id":
|
|
4066
|
+
"data-input-id": K.id || "default-input",
|
|
4067
4067
|
className: ue + " ui-min-w-12",
|
|
4068
4068
|
style: f ? {
|
|
4069
4069
|
caretColor: "#ef4444",
|
|
4070
4070
|
borderColor: "var(--ui-color-border-danger, #ef4444)",
|
|
4071
4071
|
outline: "none"
|
|
4072
4072
|
} : void 0,
|
|
4073
|
-
...
|
|
4073
|
+
...K
|
|
4074
4074
|
}
|
|
4075
4075
|
),
|
|
4076
4076
|
Z && /* @__PURE__ */ b(
|
|
@@ -4102,21 +4102,21 @@ const Da = ({
|
|
|
4102
4102
|
)
|
|
4103
4103
|
}
|
|
4104
4104
|
),
|
|
4105
|
-
ne && (
|
|
4105
|
+
ne && (G || de) && /* @__PURE__ */ o(
|
|
4106
4106
|
"div",
|
|
4107
4107
|
{
|
|
4108
4108
|
className: `ui-h-5 ui-w-[1px] ui-min-w-[1px] ui-shrink-0 ${n ? "ui-bg-danger" : "ui-bg-[var(--ui-color-border-default)]"}`,
|
|
4109
4109
|
"aria-hidden": !0
|
|
4110
4110
|
}
|
|
4111
4111
|
),
|
|
4112
|
-
|
|
4112
|
+
G && /* @__PURE__ */ o(
|
|
4113
4113
|
"button",
|
|
4114
4114
|
{
|
|
4115
4115
|
type: "button",
|
|
4116
4116
|
"aria-label": "Limpiar",
|
|
4117
4117
|
"data-dropdown-clear-trigger": !0,
|
|
4118
4118
|
onClick: (me) => {
|
|
4119
|
-
me.stopPropagation(),
|
|
4119
|
+
me.stopPropagation(), ce == null || ce(me);
|
|
4120
4120
|
},
|
|
4121
4121
|
onMouseDown: (me) => me.stopPropagation(),
|
|
4122
4122
|
onPointerDown: (me) => me.stopPropagation(),
|
|
@@ -4124,7 +4124,7 @@ const Da = ({
|
|
|
4124
4124
|
children: /* @__PURE__ */ o(Le, { name: gt, size: "sm", color: "current" })
|
|
4125
4125
|
}
|
|
4126
4126
|
),
|
|
4127
|
-
|
|
4127
|
+
G && de && /* @__PURE__ */ o(
|
|
4128
4128
|
"div",
|
|
4129
4129
|
{
|
|
4130
4130
|
className: `ui-h-5 ui-w-[1px] ui-min-w-[1px] ui-shrink-0 ${n ? "ui-bg-danger" : "ui-bg-[var(--ui-color-border-default)]"}`,
|
|
@@ -4286,7 +4286,7 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4286
4286
|
isDragging: !1,
|
|
4287
4287
|
draggedItemId: null,
|
|
4288
4288
|
dragOverItemId: null
|
|
4289
|
-
}), s =
|
|
4289
|
+
}), s = U(-1), l = U(-1), u = U(-1), d = U(0), f = U(null), c = T((v, x, w) => {
|
|
4290
4290
|
s.current = w, u.current = w, a((y) => ({
|
|
4291
4291
|
...y,
|
|
4292
4292
|
isDragging: !0,
|
|
@@ -4392,7 +4392,7 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4392
4392
|
return window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u);
|
|
4393
4393
|
}, [e, r, n]);
|
|
4394
4394
|
}, Rg = () => {
|
|
4395
|
-
const [e, n] = F({ x: 0, y: 0 }), [r, t] = F({ width: 0, height: 0 }), [i, a] = F(!1), s =
|
|
4395
|
+
const [e, n] = F({ x: 0, y: 0 }), [r, t] = F({ width: 0, height: 0 }), [i, a] = F(!1), s = U(null), l = U(null);
|
|
4396
4396
|
return { RenderElementOnClick: ({ children: f, className: c }) => (oe(() => {
|
|
4397
4397
|
if (!i) return;
|
|
4398
4398
|
s != null && s.current && (s.current.clientWidth !== r.width || s.current.clientHeight !== r.height) && t({
|
|
@@ -4470,7 +4470,7 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4470
4470
|
disableOutsideTab: t = !1,
|
|
4471
4471
|
disableOutsideClick: i = !1
|
|
4472
4472
|
}) => {
|
|
4473
|
-
const a = za(), { isVisible: s, isAnimating: l } = Va(e, { exitDelay: 200 }), u =
|
|
4473
|
+
const a = za(), { isVisible: s, isAnimating: l } = Va(e, { exitDelay: 200 }), u = U(null);
|
|
4474
4474
|
return Ha(e), xo(e, n, r), Pc(e, u), Ra(e, u, !t), Ec(e, u, n, i), {
|
|
4475
4475
|
isVisible: s,
|
|
4476
4476
|
animateIn: l,
|
|
@@ -4624,16 +4624,16 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4624
4624
|
headerButtonOnClick: J,
|
|
4625
4625
|
footerButtonIcon: q,
|
|
4626
4626
|
footerButtonIconDuotonePrimary: se,
|
|
4627
|
-
footerButtonIconDuotoneSecondary:
|
|
4628
|
-
footerButtonIconDuotoneOpacityPrimary:
|
|
4629
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4627
|
+
footerButtonIconDuotoneSecondary: ce,
|
|
4628
|
+
footerButtonIconDuotoneOpacityPrimary: K,
|
|
4629
|
+
footerButtonIconDuotoneOpacitySecondary: _,
|
|
4630
4630
|
footerButtonOnClick: le,
|
|
4631
4631
|
cancelButtonSlotLeft: ie,
|
|
4632
|
-
successButtonSlotRight:
|
|
4632
|
+
successButtonSlotRight: X,
|
|
4633
4633
|
disableCancelButton: re,
|
|
4634
|
-
disableSuccessButton:
|
|
4634
|
+
disableSuccessButton: G,
|
|
4635
4635
|
successButtonColor: ne = "primary",
|
|
4636
|
-
footerSlotLayout:
|
|
4636
|
+
footerSlotLayout: de = "inline",
|
|
4637
4637
|
badgeIcon: ve,
|
|
4638
4638
|
badgeIconDuotonePrimary: Q,
|
|
4639
4639
|
badgeIconDuotoneSecondary: Z,
|
|
@@ -4734,17 +4734,17 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4734
4734
|
]), Qe = W(() => u ? u.show !== !1 ? u : void 0 : Fc({
|
|
4735
4735
|
footerButtonIcon: q,
|
|
4736
4736
|
footerButtonIconDuotonePrimary: se,
|
|
4737
|
-
footerButtonIconDuotoneSecondary:
|
|
4738
|
-
footerButtonIconDuotoneOpacityPrimary:
|
|
4739
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4737
|
+
footerButtonIconDuotoneSecondary: ce,
|
|
4738
|
+
footerButtonIconDuotoneOpacityPrimary: K,
|
|
4739
|
+
footerButtonIconDuotoneOpacitySecondary: _,
|
|
4740
4740
|
footerButtonOnClick: le
|
|
4741
4741
|
}), [
|
|
4742
4742
|
u,
|
|
4743
4743
|
q,
|
|
4744
4744
|
se,
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4745
|
+
ce,
|
|
4746
|
+
K,
|
|
4747
|
+
_,
|
|
4748
4748
|
le
|
|
4749
4749
|
]), Se = W(() => {
|
|
4750
4750
|
if (c && c.length > 0)
|
|
@@ -4760,11 +4760,11 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4760
4760
|
closeAtCancel: L,
|
|
4761
4761
|
closeAtSuccess: w,
|
|
4762
4762
|
cancelButtonSlotLeft: ie,
|
|
4763
|
-
successButtonSlotRight:
|
|
4763
|
+
successButtonSlotRight: X,
|
|
4764
4764
|
disableCancelButton: re,
|
|
4765
|
-
disableSuccessButton:
|
|
4765
|
+
disableSuccessButton: G,
|
|
4766
4766
|
successButtonColor: ne,
|
|
4767
|
-
footerSlotLayout:
|
|
4767
|
+
footerSlotLayout: de
|
|
4768
4768
|
});
|
|
4769
4769
|
}, [
|
|
4770
4770
|
c,
|
|
@@ -4779,11 +4779,11 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4779
4779
|
L,
|
|
4780
4780
|
w,
|
|
4781
4781
|
ie,
|
|
4782
|
-
|
|
4782
|
+
X,
|
|
4783
4783
|
re,
|
|
4784
|
-
|
|
4784
|
+
G,
|
|
4785
4785
|
ne,
|
|
4786
|
-
|
|
4786
|
+
de
|
|
4787
4787
|
]), $e = {
|
|
4788
4788
|
// Nuevo sistema (modelo cerrado)
|
|
4789
4789
|
iconConfig: r,
|
|
@@ -4834,16 +4834,16 @@ const Ec = (e, n, r, t = !1) => {
|
|
|
4834
4834
|
headerButtonOnClick: J,
|
|
4835
4835
|
footerButtonIcon: q,
|
|
4836
4836
|
footerButtonIconDuotonePrimary: se,
|
|
4837
|
-
footerButtonIconDuotoneSecondary:
|
|
4838
|
-
footerButtonIconDuotoneOpacityPrimary:
|
|
4839
|
-
footerButtonIconDuotoneOpacitySecondary:
|
|
4837
|
+
footerButtonIconDuotoneSecondary: ce,
|
|
4838
|
+
footerButtonIconDuotoneOpacityPrimary: K,
|
|
4839
|
+
footerButtonIconDuotoneOpacitySecondary: _,
|
|
4840
4840
|
footerButtonOnClick: le,
|
|
4841
4841
|
cancelButtonSlotLeft: ie,
|
|
4842
|
-
successButtonSlotRight:
|
|
4842
|
+
successButtonSlotRight: X,
|
|
4843
4843
|
disableCancelButton: re,
|
|
4844
|
-
disableSuccessButton:
|
|
4844
|
+
disableSuccessButton: G,
|
|
4845
4845
|
successButtonColor: ne,
|
|
4846
|
-
footerSlotLayout:
|
|
4846
|
+
footerSlotLayout: de,
|
|
4847
4847
|
badgeIcon: ve,
|
|
4848
4848
|
badgeIconDuotonePrimary: Q,
|
|
4849
4849
|
badgeIconDuotoneSecondary: Z,
|
|
@@ -5033,16 +5033,16 @@ const Ir = ({
|
|
|
5033
5033
|
tabsSwitchProps: J,
|
|
5034
5034
|
currentTab: q = void 0,
|
|
5035
5035
|
headerButtonIcon: se,
|
|
5036
|
-
headerButtonIconDuotonePrimary:
|
|
5037
|
-
headerButtonIconDuotoneSecondary:
|
|
5038
|
-
headerButtonIconDuotoneOpacityPrimary:
|
|
5036
|
+
headerButtonIconDuotonePrimary: ce,
|
|
5037
|
+
headerButtonIconDuotoneSecondary: K,
|
|
5038
|
+
headerButtonIconDuotoneOpacityPrimary: _,
|
|
5039
5039
|
headerButtonIconDuotoneOpacitySecondary: le,
|
|
5040
5040
|
headerButtonOnClick: ie,
|
|
5041
|
-
badgeIcon:
|
|
5041
|
+
badgeIcon: X,
|
|
5042
5042
|
badgeIconDuotonePrimary: re,
|
|
5043
|
-
badgeIconDuotoneSecondary:
|
|
5043
|
+
badgeIconDuotoneSecondary: G,
|
|
5044
5044
|
badgeIconDuotoneOpacityPrimary: ne,
|
|
5045
|
-
badgeIconDuotoneOpacitySecondary:
|
|
5045
|
+
badgeIconDuotoneOpacitySecondary: de,
|
|
5046
5046
|
badgeLabel: ve,
|
|
5047
5047
|
sectionPadding: Q = "md"
|
|
5048
5048
|
} = Xi(), Z = n ?? L, R = r ?? I, ue = (R == null ? void 0 : R.tooltip) === !0, ae = (R == null ? void 0 : R.tooltipLabel) ?? "Cerrar", $ = (R == null ? void 0 : R.tooltipPosition) ?? "top", pe = (R == null ? void 0 : R.tooltipAlignment) ?? "center", he = u || (l ? [l] : null) || j || [], me = f || (d ? [d] : null) || O || [], Me = (D == null ? void 0 : D.icon) || V, je = D ? D.show !== !1 : !!V, we = (i == null ? void 0 : i.length) > 0 ? i : H, Pe = (we == null ? void 0 : we.length) ?? !1, Ve = s ?? Y, Ge = a ?? B, Be = (Se) => {
|
|
@@ -5243,7 +5243,7 @@ const Fa = ({ children: e, withPadding: n = !0 }) => {
|
|
|
5243
5243
|
padding: l = "md",
|
|
5244
5244
|
aspect: u = "none"
|
|
5245
5245
|
}) => {
|
|
5246
|
-
const { hideFooter: d, currentTab: f } = Xi(), [c, p] = F(!1), [h, m] = F(!1), g =
|
|
5246
|
+
const { hideFooter: d, currentTab: f } = Xi(), [c, p] = F(!1), [h, m] = F(!1), g = U(null), C = U(f), [v, x] = F(null), [w, S] = F(
|
|
5247
5247
|
null
|
|
5248
5248
|
), [k, y] = F(null), [M, L] = F(null), [I, D] = F(null), j = T((H, B) => {
|
|
5249
5249
|
const Y = H.getBoundingClientRect(), J = B.getBoundingClientRect(), q = J.top - Y.top, se = J.left - Y.left;
|
|
@@ -5315,10 +5315,10 @@ const Fa = ({ children: e, withPadding: n = !0 }) => {
|
|
|
5315
5315
|
if (!w || u === "none")
|
|
5316
5316
|
return { width: "100%", height: "100%" };
|
|
5317
5317
|
const { width: H, height: B } = w, Y = 64, J = H - Y, q = B - Y, se = E[u];
|
|
5318
|
-
let
|
|
5319
|
-
return
|
|
5320
|
-
width: `${
|
|
5321
|
-
height: `${
|
|
5318
|
+
let ce, K;
|
|
5319
|
+
return ce = J, K = ce / se, K > q && (K = q, ce = K * se), {
|
|
5320
|
+
width: `${ce}px`,
|
|
5321
|
+
height: `${K}px`
|
|
5322
5322
|
};
|
|
5323
5323
|
}, [w, u, E]), z = T(() => {
|
|
5324
5324
|
m(!1), p(!0);
|
|
@@ -5646,16 +5646,16 @@ const Jc = ({
|
|
|
5646
5646
|
footerButtonIconDuotoneOpacityPrimary: J,
|
|
5647
5647
|
footerButtonIconDuotoneOpacitySecondary: q,
|
|
5648
5648
|
footerButtonOnClick: se,
|
|
5649
|
-
cancelButtonSlotLeft:
|
|
5650
|
-
successButtonSlotRight:
|
|
5651
|
-
disableCancelButton:
|
|
5649
|
+
cancelButtonSlotLeft: ce,
|
|
5650
|
+
successButtonSlotRight: K,
|
|
5651
|
+
disableCancelButton: _,
|
|
5652
5652
|
disableSuccessButton: le,
|
|
5653
5653
|
successButtonColor: ie,
|
|
5654
|
-
footerSlotLayout:
|
|
5654
|
+
footerSlotLayout: X,
|
|
5655
5655
|
badgeIcon: re,
|
|
5656
|
-
badgeIconDuotonePrimary:
|
|
5656
|
+
badgeIconDuotonePrimary: G,
|
|
5657
5657
|
badgeIconDuotoneSecondary: ne,
|
|
5658
|
-
badgeIconDuotoneOpacityPrimary:
|
|
5658
|
+
badgeIconDuotoneOpacityPrimary: de,
|
|
5659
5659
|
badgeIconDuotoneOpacitySecondary: ve,
|
|
5660
5660
|
badgeLabel: Q,
|
|
5661
5661
|
hideFooter: Z = !1,
|
|
@@ -5677,7 +5677,7 @@ const Jc = ({
|
|
|
5677
5677
|
disableEscapeClose: s,
|
|
5678
5678
|
disableOutsideTab: l,
|
|
5679
5679
|
disableOutsideClick: u
|
|
5680
|
-
}), Qe =
|
|
5680
|
+
}), Qe = U(null), [Se, $e] = F(!1), Ie = T(() => {
|
|
5681
5681
|
const qe = Be.current;
|
|
5682
5682
|
if (!qe) return;
|
|
5683
5683
|
const Je = window.innerHeight;
|
|
@@ -5786,16 +5786,16 @@ const Jc = ({
|
|
|
5786
5786
|
tabsConfig: k,
|
|
5787
5787
|
defaultValueTab: y,
|
|
5788
5788
|
onChangeTab: M,
|
|
5789
|
-
cancelButtonSlotLeft:
|
|
5790
|
-
successButtonSlotRight:
|
|
5791
|
-
disableCancelButton:
|
|
5789
|
+
cancelButtonSlotLeft: ce,
|
|
5790
|
+
successButtonSlotRight: K,
|
|
5791
|
+
disableCancelButton: _,
|
|
5792
5792
|
disableSuccessButton: le,
|
|
5793
5793
|
successButtonColor: ie,
|
|
5794
|
-
footerSlotLayout:
|
|
5794
|
+
footerSlotLayout: X,
|
|
5795
5795
|
badgeIcon: re,
|
|
5796
|
-
badgeIconDuotonePrimary:
|
|
5796
|
+
badgeIconDuotonePrimary: G,
|
|
5797
5797
|
badgeIconDuotoneSecondary: ne,
|
|
5798
|
-
badgeIconDuotoneOpacityPrimary:
|
|
5798
|
+
badgeIconDuotoneOpacityPrimary: de,
|
|
5799
5799
|
badgeIconDuotoneOpacitySecondary: ve,
|
|
5800
5800
|
badgeLabel: Q,
|
|
5801
5801
|
hideFooter: Z,
|
|
@@ -6205,7 +6205,7 @@ const Jc = ({
|
|
|
6205
6205
|
onBlur: g,
|
|
6206
6206
|
className: C
|
|
6207
6207
|
}) => {
|
|
6208
|
-
const v =
|
|
6208
|
+
const v = U(null), x = U(null), {
|
|
6209
6209
|
badges: w,
|
|
6210
6210
|
inputValue: S,
|
|
6211
6211
|
isFocused: k,
|
|
@@ -24929,16 +24929,16 @@ const _3 = (e) => {
|
|
|
24929
24929
|
iconDuotoneOpacitySecondary: J,
|
|
24930
24930
|
leftSlotDuotonePrimary: q,
|
|
24931
24931
|
leftSlotDuotoneSecondary: se,
|
|
24932
|
-
leftSlotDuotoneOpacityPrimary:
|
|
24933
|
-
leftSlotDuotoneOpacitySecondary:
|
|
24934
|
-
rightSlotDuotonePrimary:
|
|
24932
|
+
leftSlotDuotoneOpacityPrimary: ce,
|
|
24933
|
+
leftSlotDuotoneOpacitySecondary: K,
|
|
24934
|
+
rightSlotDuotonePrimary: _,
|
|
24935
24935
|
rightSlotDuotoneSecondary: le,
|
|
24936
24936
|
rightSlotDuotoneOpacityPrimary: ie,
|
|
24937
|
-
rightSlotDuotoneOpacitySecondary:
|
|
24937
|
+
rightSlotDuotoneOpacitySecondary: X,
|
|
24938
24938
|
showShadow: re = !1,
|
|
24939
|
-
borderable:
|
|
24939
|
+
borderable: G,
|
|
24940
24940
|
iconSizeExtended: ne = "none",
|
|
24941
|
-
defaultSizeIcon:
|
|
24941
|
+
defaultSizeIcon: de = !0,
|
|
24942
24942
|
as: ve = "button",
|
|
24943
24943
|
classNameId: Q = "imj-ui-inner-button",
|
|
24944
24944
|
tooltip: Z = "",
|
|
@@ -24994,16 +24994,16 @@ const _3 = (e) => {
|
|
|
24994
24994
|
leftSlot: i,
|
|
24995
24995
|
leftSlotDuotonePrimary: q,
|
|
24996
24996
|
leftSlotDuotoneSecondary: se,
|
|
24997
|
-
leftSlotDuotoneOpacityPrimary:
|
|
24998
|
-
leftSlotDuotoneOpacitySecondary:
|
|
24997
|
+
leftSlotDuotoneOpacityPrimary: ce,
|
|
24998
|
+
leftSlotDuotoneOpacitySecondary: K,
|
|
24999
24999
|
onClickLeftSlot: E,
|
|
25000
25000
|
colorIcon: A
|
|
25001
25001
|
}), rn = mt ? void 0 : q3({
|
|
25002
25002
|
rightSlot: a,
|
|
25003
|
-
rightSlotDuotonePrimary:
|
|
25003
|
+
rightSlotDuotonePrimary: _,
|
|
25004
25004
|
rightSlotDuotoneSecondary: le,
|
|
25005
25005
|
rightSlotDuotoneOpacityPrimary: ie,
|
|
25006
|
-
rightSlotDuotoneOpacitySecondary:
|
|
25006
|
+
rightSlotDuotoneOpacitySecondary: X,
|
|
25007
25007
|
onClickRightSlot: P,
|
|
25008
25008
|
colorIcon: A
|
|
25009
25009
|
}), _t = Z && typeof Z == "object" && ("label" in Z || "position" in Z || "alignment" in Z || "delay" in Z || "absolute" in Z || "className" in Z), Ot = _t ? Z : void 0, $t = _t ? void 0 : Y3({
|
|
@@ -25013,7 +25013,7 @@ const _3 = (e) => {
|
|
|
25013
25013
|
tooltipDelay: ae,
|
|
25014
25014
|
tooltipAbsolute: $,
|
|
25015
25015
|
classNameTooltip: pe
|
|
25016
|
-
}), ke = Se || Je || lt || (L && !qe && !Ne.isValidElement(L) && typeof L == "string" && !Ji(L) ? { icon: L, show: !0 } : void 0), ye = $e || tt, ee = Ie || bt || rt, ge = Ae || It || rn, xe = st || Ot || $t, Te = (ke == null ? void 0 : ke.icon) || (qe ? void 0 : Ne.isValidElement(L) ? L : L ?? void 0), We = (ye == null ? void 0 : ye.color) || l, vt = (ye == null ? void 0 : ye.label) || u, Dt = (ye == null ? void 0 : ye.theme) || d, Tt = (ye == null ? void 0 : ye.size) || f, Jt = (ye == null ? void 0 : ye.stroke) ?? c, Ut = (ye == null ? void 0 : ye.icon) || p, wt = (ye == null ? void 0 : ye.loading) ?? v, Ce = (ee == null ? void 0 : ee.icon) || (Ct ? void 0 : i), He = (ge == null ? void 0 : ge.icon) || (mt ? void 0 : a), Xe = (xe == null ? void 0 : xe.label) || (_t ? void 0 : Z),
|
|
25016
|
+
}), ke = Se || Je || lt || (L && !qe && !Ne.isValidElement(L) && typeof L == "string" && !Ji(L) ? { icon: L, show: !0 } : void 0), ye = $e || tt, ee = Ie || bt || rt, ge = Ae || It || rn, xe = st || Ot || $t, Te = (ke == null ? void 0 : ke.icon) || (qe ? void 0 : Ne.isValidElement(L) ? L : L ?? void 0), We = (ye == null ? void 0 : ye.color) || l, vt = (ye == null ? void 0 : ye.label) || u, Dt = (ye == null ? void 0 : ye.theme) || d, Tt = (ye == null ? void 0 : ye.size) || f, Jt = (ye == null ? void 0 : ye.stroke) ?? c, Ut = (ye == null ? void 0 : ye.icon) || p, wt = (ye == null ? void 0 : ye.loading) ?? v, Ce = (ee == null ? void 0 : ee.icon) || (Ct ? void 0 : i), He = (ge == null ? void 0 : ge.icon) || (mt ? void 0 : a), Xe = (xe == null ? void 0 : xe.label) || (_t ? void 0 : Z), fe = (xe == null ? void 0 : xe.position) || R, be = (xe == null ? void 0 : xe.alignment) || ue, te = (xe == null ? void 0 : xe.delay) ?? ae, Fe = (xe == null ? void 0 : xe.absolute) ?? $, Ye = (xe == null ? void 0 : xe.className) || pe, Ue = s === "icon", Vt = (k == null || k === !1) && !!Te, ut = k != null && k !== !1, vn = ua(wt), {
|
|
25017
25017
|
displayText: dt,
|
|
25018
25018
|
textStyle: pn,
|
|
25019
25019
|
measureRef: jn,
|
|
@@ -25046,7 +25046,7 @@ const _3 = (e) => {
|
|
|
25046
25046
|
fullWidth: t,
|
|
25047
25047
|
pill: je,
|
|
25048
25048
|
clickable: M,
|
|
25049
|
-
borderable:
|
|
25049
|
+
borderable: G,
|
|
25050
25050
|
whiteBackground: Pe,
|
|
25051
25051
|
active: Qe,
|
|
25052
25052
|
square: j,
|
|
@@ -25059,7 +25059,7 @@ const _3 = (e) => {
|
|
|
25059
25059
|
classNameId: Q,
|
|
25060
25060
|
className: n,
|
|
25061
25061
|
isIconVariant: Ue,
|
|
25062
|
-
defaultSizeIcon:
|
|
25062
|
+
defaultSizeIcon: de
|
|
25063
25063
|
}), Gn = (Tn) => {
|
|
25064
25064
|
he && Tn.stopPropagation(), Me && Me(Tn);
|
|
25065
25065
|
}, Dn = () => /* @__PURE__ */ b(et, { children: [
|
|
@@ -25076,8 +25076,8 @@ const _3 = (e) => {
|
|
|
25076
25076
|
onClickLeftSlot: (ee == null ? void 0 : ee.onClick) || E,
|
|
25077
25077
|
leftSlotDuotonePrimary: (ee == null ? void 0 : ee.iconDuotonePrimary) || q,
|
|
25078
25078
|
leftSlotDuotoneSecondary: (ee == null ? void 0 : ee.iconDuotoneSecondary) || se,
|
|
25079
|
-
leftSlotDuotoneOpacityPrimary: (ee == null ? void 0 : ee.iconDuotoneOpacityPrimary) ||
|
|
25080
|
-
leftSlotDuotoneOpacitySecondary: (ee == null ? void 0 : ee.iconDuotoneOpacitySecondary) ||
|
|
25079
|
+
leftSlotDuotoneOpacityPrimary: (ee == null ? void 0 : ee.iconDuotoneOpacityPrimary) || ce,
|
|
25080
|
+
leftSlotDuotoneOpacitySecondary: (ee == null ? void 0 : ee.iconDuotoneOpacitySecondary) || K,
|
|
25081
25081
|
hasChildren: ut
|
|
25082
25082
|
}
|
|
25083
25083
|
),
|
|
@@ -25123,10 +25123,10 @@ const _3 = (e) => {
|
|
|
25123
25123
|
disabled: z,
|
|
25124
25124
|
strokeWidth: Ve,
|
|
25125
25125
|
onClickRightSlot: (ge == null ? void 0 : ge.onClick) || P,
|
|
25126
|
-
rightSlotDuotonePrimary: (ge == null ? void 0 : ge.iconDuotonePrimary) ||
|
|
25126
|
+
rightSlotDuotonePrimary: (ge == null ? void 0 : ge.iconDuotonePrimary) || _,
|
|
25127
25127
|
rightSlotDuotoneSecondary: (ge == null ? void 0 : ge.iconDuotoneSecondary) || le,
|
|
25128
25128
|
rightSlotDuotoneOpacityPrimary: (ge == null ? void 0 : ge.iconDuotoneOpacityPrimary) || ie,
|
|
25129
|
-
rightSlotDuotoneOpacitySecondary: (ge == null ? void 0 : ge.iconDuotoneOpacitySecondary) ||
|
|
25129
|
+
rightSlotDuotoneOpacitySecondary: (ge == null ? void 0 : ge.iconDuotoneOpacitySecondary) || X,
|
|
25130
25130
|
hasChildren: ut
|
|
25131
25131
|
}
|
|
25132
25132
|
),
|
|
@@ -25183,7 +25183,7 @@ const _3 = (e) => {
|
|
|
25183
25183
|
Lt,
|
|
25184
25184
|
{
|
|
25185
25185
|
label: Xe || "",
|
|
25186
|
-
position:
|
|
25186
|
+
position: fe,
|
|
25187
25187
|
alignment: be,
|
|
25188
25188
|
absolute: Fe,
|
|
25189
25189
|
delay: te,
|
|
@@ -25212,7 +25212,7 @@ const _3 = (e) => {
|
|
|
25212
25212
|
Lt,
|
|
25213
25213
|
{
|
|
25214
25214
|
label: Xe || "",
|
|
25215
|
-
position:
|
|
25215
|
+
position: fe,
|
|
25216
25216
|
alignment: be,
|
|
25217
25217
|
delay: te,
|
|
25218
25218
|
className: Ye,
|
|
@@ -25860,7 +25860,7 @@ const Qa = ({
|
|
|
25860
25860
|
openOnHoverAllowPanelPointer: p = !0,
|
|
25861
25861
|
externalTriggerRef: h
|
|
25862
25862
|
}) => {
|
|
25863
|
-
const m = fi(), g = i || `popup-${m}`, [C, v] = F(!1), [x, w] = F({}), [S, k] = F(!1), [y, M] = F(null), L =
|
|
25863
|
+
const m = fi(), g = i || `popup-${m}`, [C, v] = F(!1), [x, w] = F({}), [S, k] = F(!1), [y, M] = F(null), L = U(null), I = U(null), D = U(null), j = U(null), O = i6(f), V = O ? r6(f) : 0, E = O && c, P = U(null), z = U(null), A = U(null), H = U(null), B = U(!1), Y = U(!1), J = U(!1);
|
|
25864
25864
|
oe(() => {
|
|
25865
25865
|
J.current = C;
|
|
25866
25866
|
}, [C]);
|
|
@@ -25868,12 +25868,12 @@ const Qa = ({
|
|
|
25868
25868
|
A.current !== null && (clearTimeout(A.current), A.current = null);
|
|
25869
25869
|
}, []), se = T(() => {
|
|
25870
25870
|
H.current !== null && (clearTimeout(H.current), H.current = null);
|
|
25871
|
-
}, []),
|
|
25871
|
+
}, []), ce = T(() => {
|
|
25872
25872
|
z.current !== null && (cancelAnimationFrame(z.current), z.current = null);
|
|
25873
|
-
}, []),
|
|
25873
|
+
}, []), K = W(
|
|
25874
25874
|
() => h ? [h] : void 0,
|
|
25875
25875
|
[h]
|
|
25876
|
-
),
|
|
25876
|
+
), _ = T(() => {
|
|
25877
25877
|
const $ = (h == null ? void 0 : h.current) ?? L.current, pe = D.current;
|
|
25878
25878
|
if (!$ || !pe) return;
|
|
25879
25879
|
const he = pe.getBoundingClientRect();
|
|
@@ -25920,11 +25920,11 @@ const Qa = ({
|
|
|
25920
25920
|
E
|
|
25921
25921
|
]), le = T(() => {
|
|
25922
25922
|
z.current === null && (z.current = requestAnimationFrame(() => {
|
|
25923
|
-
z.current = null,
|
|
25923
|
+
z.current = null, _();
|
|
25924
25924
|
}));
|
|
25925
|
-
}, [
|
|
25926
|
-
q(), se(),
|
|
25927
|
-
}, [g, s, q, se,
|
|
25925
|
+
}, [_]), ie = T(() => {
|
|
25926
|
+
q(), se(), ce(), P.current = null, B.current = !1, Y.current = !1, v(!1), k(!1), M(null), l6(g), s == null || s();
|
|
25927
|
+
}, [g, s, q, se, ce]), X = T(() => {
|
|
25928
25928
|
l || C || (a6(g), w({}), k(!1), M(null), v(!0), s6(g), a == null || a());
|
|
25929
25929
|
}, [l, C, g, a]), re = W(
|
|
25930
25930
|
() => o6({
|
|
@@ -25936,7 +25936,7 @@ const Qa = ({
|
|
|
25936
25936
|
closePopup: ie
|
|
25937
25937
|
}),
|
|
25938
25938
|
[se, ie]
|
|
25939
|
-
),
|
|
25939
|
+
), G = T(
|
|
25940
25940
|
($) => {
|
|
25941
25941
|
if (!O || l)
|
|
25942
25942
|
return;
|
|
@@ -25950,7 +25950,7 @@ const Qa = ({
|
|
|
25950
25950
|
P.current = he;
|
|
25951
25951
|
}
|
|
25952
25952
|
B.current = !0, se(), q(), A.current = window.setTimeout(() => {
|
|
25953
|
-
A.current = null, B.current && !l &&
|
|
25953
|
+
A.current = null, B.current && !l && X();
|
|
25954
25954
|
}, V);
|
|
25955
25955
|
},
|
|
25956
25956
|
[
|
|
@@ -25959,13 +25959,13 @@ const Qa = ({
|
|
|
25959
25959
|
V,
|
|
25960
25960
|
se,
|
|
25961
25961
|
q,
|
|
25962
|
-
|
|
25962
|
+
X,
|
|
25963
25963
|
E,
|
|
25964
25964
|
h
|
|
25965
25965
|
]
|
|
25966
25966
|
), ne = T(() => {
|
|
25967
25967
|
O && (B.current = !1, q(), J.current && re());
|
|
25968
|
-
}, [O, q, re]),
|
|
25968
|
+
}, [O, q, re]), de = T(
|
|
25969
25969
|
($) => {
|
|
25970
25970
|
if (!E)
|
|
25971
25971
|
return;
|
|
@@ -25995,13 +25995,13 @@ const Qa = ({
|
|
|
25995
25995
|
O && (Y.current = !1, re());
|
|
25996
25996
|
}, [O, re]);
|
|
25997
25997
|
oe(() => () => {
|
|
25998
|
-
q(), se(),
|
|
25999
|
-
}, [q, se,
|
|
25998
|
+
q(), se(), ce();
|
|
25999
|
+
}, [q, se, ce]), u6({ popupUniqueId: g, closePopup: ie });
|
|
26000
26000
|
const R = T(
|
|
26001
26001
|
($) => {
|
|
26002
|
-
$ && $.stopPropagation(), !l && (C ? ie() :
|
|
26002
|
+
$ && $.stopPropagation(), !l && (C ? ie() : X());
|
|
26003
26003
|
},
|
|
26004
|
-
[l, C,
|
|
26004
|
+
[l, C, X, ie]
|
|
26005
26005
|
);
|
|
26006
26006
|
c6({
|
|
26007
26007
|
externalTriggerRef: h,
|
|
@@ -26009,7 +26009,7 @@ const Qa = ({
|
|
|
26009
26009
|
hoverOpenEnabled: O,
|
|
26010
26010
|
hoverAnchorFollowPointer: E,
|
|
26011
26011
|
togglePopup: R,
|
|
26012
|
-
onHoverTriggerEnter:
|
|
26012
|
+
onHoverTriggerEnter: G,
|
|
26013
26013
|
onHoverTriggerLeave: ne,
|
|
26014
26014
|
onHoverTriggerPointerMoveNative: ve
|
|
26015
26015
|
}), f6({
|
|
@@ -26019,22 +26019,22 @@ const Qa = ({
|
|
|
26019
26019
|
contentRef: D,
|
|
26020
26020
|
triggerRef: L,
|
|
26021
26021
|
externalTriggerRef: h,
|
|
26022
|
-
calculatePosition:
|
|
26022
|
+
calculatePosition: _
|
|
26023
26023
|
}), Pa({
|
|
26024
26024
|
isActive: C,
|
|
26025
26025
|
disabled: l,
|
|
26026
26026
|
elementRef: I,
|
|
26027
26027
|
containerRef: j,
|
|
26028
|
-
extraInsideRefs:
|
|
26028
|
+
extraInsideRefs: K,
|
|
26029
26029
|
elementId: g,
|
|
26030
26030
|
elementType: "popup",
|
|
26031
26031
|
closeOnClickOutside: r,
|
|
26032
26032
|
onOutsideClick: ie
|
|
26033
26033
|
}), xo(C, ie, !t);
|
|
26034
26034
|
const ue = O ? {
|
|
26035
|
-
onMouseEnter:
|
|
26035
|
+
onMouseEnter: G,
|
|
26036
26036
|
onMouseLeave: ne,
|
|
26037
|
-
...E ? { onMouseMove:
|
|
26037
|
+
...E ? { onMouseMove: de } : {}
|
|
26038
26038
|
} : void 0;
|
|
26039
26039
|
return {
|
|
26040
26040
|
isOpen: C,
|
|
@@ -26048,7 +26048,7 @@ const Qa = ({
|
|
|
26048
26048
|
popupUniqueId: g,
|
|
26049
26049
|
togglePopup: R,
|
|
26050
26050
|
closePopup: ie,
|
|
26051
|
-
openPopup:
|
|
26051
|
+
openPopup: X,
|
|
26052
26052
|
openOnHoverTriggerProps: ue,
|
|
26053
26053
|
openOnHoverPopupProps: O && p ? { onMouseEnter: Q, onMouseLeave: Z } : void 0
|
|
26054
26054
|
};
|
|
@@ -26229,16 +26229,16 @@ const nn = Zt(
|
|
|
26229
26229
|
onClick: J,
|
|
26230
26230
|
popoverArrow: q = "auto",
|
|
26231
26231
|
popoverStructured: se = !1,
|
|
26232
|
-
popoverTitle:
|
|
26233
|
-
popoverDescription:
|
|
26234
|
-
popoverShowHeader:
|
|
26232
|
+
popoverTitle: ce,
|
|
26233
|
+
popoverDescription: K,
|
|
26234
|
+
popoverShowHeader: _ = !0,
|
|
26235
26235
|
popoverShowCloseButton: le = !0,
|
|
26236
26236
|
popoverIconConfig: ie,
|
|
26237
|
-
popoverBadge:
|
|
26237
|
+
popoverBadge: X,
|
|
26238
26238
|
popoverBadges: re,
|
|
26239
|
-
popoverHeaderButton:
|
|
26239
|
+
popoverHeaderButton: G,
|
|
26240
26240
|
popoverHeaderButtons: ne,
|
|
26241
|
-
popoverShowFooter:
|
|
26241
|
+
popoverShowFooter: de = !1,
|
|
26242
26242
|
popoverFooterPrimaryButton: ve,
|
|
26243
26243
|
popoverFooterSecondaryButton: Q,
|
|
26244
26244
|
popoverFooterButtons: Z,
|
|
@@ -26295,7 +26295,7 @@ const nn = Zt(
|
|
|
26295
26295
|
badgeStroke: Ce,
|
|
26296
26296
|
badgeIcon: He,
|
|
26297
26297
|
badgeIconDuotonePrimary: Xe,
|
|
26298
|
-
badgeIconDuotoneSecondary:
|
|
26298
|
+
badgeIconDuotoneSecondary: fe,
|
|
26299
26299
|
badgeIconDuotoneOpacityPrimary: be,
|
|
26300
26300
|
badgeIconDuotoneOpacitySecondary: te,
|
|
26301
26301
|
badgeLoading: Fe,
|
|
@@ -26389,15 +26389,15 @@ const nn = Zt(
|
|
|
26389
26389
|
{
|
|
26390
26390
|
isOpen: ut,
|
|
26391
26391
|
onClose: an,
|
|
26392
|
-
showHeader:
|
|
26393
|
-
showFooter:
|
|
26392
|
+
showHeader: _,
|
|
26393
|
+
showFooter: de,
|
|
26394
26394
|
showCloseButton: le,
|
|
26395
|
-
title:
|
|
26396
|
-
description:
|
|
26395
|
+
title: ce,
|
|
26396
|
+
description: K,
|
|
26397
26397
|
iconConfig: ie,
|
|
26398
|
-
badge:
|
|
26398
|
+
badge: X,
|
|
26399
26399
|
badges: re,
|
|
26400
|
-
headerButton:
|
|
26400
|
+
headerButton: G,
|
|
26401
26401
|
headerButtons: ne,
|
|
26402
26402
|
footerPrimaryButton: ve,
|
|
26403
26403
|
footerSecondaryButton: Q,
|
|
@@ -26499,7 +26499,7 @@ const nn = Zt(
|
|
|
26499
26499
|
badgeStroke: Ce,
|
|
26500
26500
|
badgeIcon: He,
|
|
26501
26501
|
badgeIconDuotonePrimary: Xe,
|
|
26502
|
-
badgeIconDuotoneSecondary:
|
|
26502
|
+
badgeIconDuotoneSecondary: fe,
|
|
26503
26503
|
badgeIconDuotoneOpacityPrimary: be,
|
|
26504
26504
|
badgeIconDuotoneOpacitySecondary: te,
|
|
26505
26505
|
badgeLoading: Fe,
|
|
@@ -27304,7 +27304,7 @@ const Gg = {
|
|
|
27304
27304
|
onDrop: h,
|
|
27305
27305
|
dragHandleIcon: m
|
|
27306
27306
|
}) => {
|
|
27307
|
-
const g =
|
|
27307
|
+
const g = U(null), C = (v) => {
|
|
27308
27308
|
g.current && v.dataTransfer.setDragImage(g.current, 20, 20), d == null || d(v);
|
|
27309
27309
|
};
|
|
27310
27310
|
return /* @__PURE__ */ b(
|
|
@@ -28066,7 +28066,7 @@ const ns = (e) => {
|
|
|
28066
28066
|
onReorder: f,
|
|
28067
28067
|
liveReorder: !0,
|
|
28068
28068
|
throttleMs: 50
|
|
28069
|
-
}), { handlers: p, draggedItemId: h, dragOverItemId: m } = n === "toggle" ? c : { handlers: null, draggedItemId: null, dragOverItemId: null }, g =
|
|
28069
|
+
}), { handlers: p, draggedItemId: h, dragOverItemId: m } = n === "toggle" ? c : { handlers: null, draggedItemId: null, dragOverItemId: null }, g = U("");
|
|
28070
28070
|
if (j6(e, g), n === "default") {
|
|
28071
28071
|
const { items: C, currentValue: v, onItemClick: x } = D6(
|
|
28072
28072
|
e
|
|
@@ -28722,7 +28722,7 @@ function K6({
|
|
|
28722
28722
|
disabled: r = !1,
|
|
28723
28723
|
className: t
|
|
28724
28724
|
}) {
|
|
28725
|
-
const i =
|
|
28725
|
+
const i = U(null), a = U(null), s = U(null), [l, u] = F(() => e.length), d = e.length, f = (m) => ({
|
|
28726
28726
|
...w1,
|
|
28727
28727
|
stroke: !!n,
|
|
28728
28728
|
color: m
|
|
@@ -29051,28 +29051,28 @@ const as = Zt(
|
|
|
29051
29051
|
primaryMenuFooter: J,
|
|
29052
29052
|
primaryMenuMaxHeightClass: q,
|
|
29053
29053
|
optionsTooltip: se,
|
|
29054
|
-
ratingTooltip:
|
|
29055
|
-
},
|
|
29056
|
-
const
|
|
29054
|
+
ratingTooltip: ce
|
|
29055
|
+
}, K) {
|
|
29056
|
+
const _ = U(null), le = U(null), [ie, X] = F(() => [
|
|
29057
29057
|
...k
|
|
29058
|
-
]), re = x1(w).map((ee) => `${ee.label}\0${ee.color}`).join(""),
|
|
29058
|
+
]), re = x1(w).map((ee) => `${ee.label}\0${ee.color}`).join(""), G = W(() => x1(w), [re]), ne = G.map((ee) => ee.label), de = !!(y && ne.length > 0), ve = S ?? ie, Q = ve.length > 0, Z = W(
|
|
29059
29059
|
() => ({ family: "catalog", title: v, primaryVariant: E }),
|
|
29060
29060
|
[v, E]
|
|
29061
29061
|
);
|
|
29062
29062
|
oe(() => {
|
|
29063
|
-
S === void 0 &&
|
|
29063
|
+
S === void 0 && X((ee) => ee.filter((ge) => ne.includes(ge)));
|
|
29064
29064
|
}, [re, S]);
|
|
29065
29065
|
const R = (ee) => {
|
|
29066
|
-
S === void 0 &&
|
|
29067
|
-
}, ue = P ?? Hi[E], ae =
|
|
29068
|
-
} } : void 0), me = !!(B != null && B.length), Me = j ?? D, je = !!Me, we = !je && (!!(Y != null && Y.length) ||
|
|
29066
|
+
S === void 0 && X(ee), y == null || y(ee, Z);
|
|
29067
|
+
}, ue = P ?? Hi[E], ae = de && ne.length > 0 ? Q ? E === "add" ? fr : E === "added" ? Ii : E === "deleted" ? t1 : gt : fr : E === "add" ? fr : E === "added" ? Ii : E === "deleted" ? t1 : gt, $ = z ?? ae, pe = de && ne.length > 0 ? Q ? `${ue} ${ve.length}/${ne.length}` : P ?? Hi.add : ue, he = J ?? (de ? { label: "Cerrar", onClick: () => {
|
|
29068
|
+
} } : void 0), me = !!(B != null && B.length), Me = j ?? D, je = !!Me, we = !je && (!!(Y != null && Y.length) || de), Pe = de && ne.length > 0 && Q && E === "added", Ve = Pe ? /* @__PURE__ */ o(y1, { labelText: pe }) : pe, Ge = "ui-w-[250px] ui-min-w-[250px] ui-max-w-[250px]", Be = h && h.length > 0 ? h : m ? Q3 : [], Qe = (ee) => {
|
|
29069
29069
|
d && (ee.stopPropagation(), d(Z));
|
|
29070
29070
|
}, Se = (ee) => {
|
|
29071
29071
|
d && (ee.key === "Enter" || ee.key === " ") && (ee.preventDefault(), d(Z));
|
|
29072
|
-
}, $e = (s ?? l ?? "").trim(), Ie = $e.length > 0, Ae = !!(Ie && !a), st = !!(d && !Ae), ct = !!(g != null && g.trim()), _e = (C ?? "").trim(), Ke = os(_e), qe = _e.length > 0, Je = ct || qe, lt = !!(x != null && x.trim()), tt = se === void 0 ? W6 : se, Ct =
|
|
29072
|
+
}, $e = (s ?? l ?? "").trim(), Ie = $e.length > 0, Ae = !!(Ie && !a), st = !!(d && !Ae), ct = !!(g != null && g.trim()), _e = (C ?? "").trim(), Ke = os(_e), qe = _e.length > 0, Je = ct || qe, lt = !!(x != null && x.trim()), tt = se === void 0 ? W6 : se, Ct = ce === void 0 ? e5 : ce, bt = tt.trim().length > 0 ? tt : void 0, mt = Ct.trim().length > 0 ? Ct : void 0, It = me ? /* @__PURE__ */ o(
|
|
29073
29073
|
nn,
|
|
29074
29074
|
{
|
|
29075
|
-
ref:
|
|
29075
|
+
ref: _,
|
|
29076
29076
|
position: "top-left",
|
|
29077
29077
|
color: "secondary",
|
|
29078
29078
|
size: "xs",
|
|
@@ -29089,7 +29089,7 @@ const as = Zt(
|
|
|
29089
29089
|
items: B,
|
|
29090
29090
|
onDismiss: () => {
|
|
29091
29091
|
var ee;
|
|
29092
|
-
return (ee =
|
|
29092
|
+
return (ee = _.current) == null ? void 0 : ee.close();
|
|
29093
29093
|
}
|
|
29094
29094
|
}
|
|
29095
29095
|
)
|
|
@@ -29128,14 +29128,14 @@ const as = Zt(
|
|
|
29128
29128
|
nn,
|
|
29129
29129
|
{
|
|
29130
29130
|
ref: le,
|
|
29131
|
-
position:
|
|
29131
|
+
position: de ? "top-right" : "bottom-left",
|
|
29132
29132
|
popoverArrow: !1,
|
|
29133
|
-
color: E === "deleted" ? "destructive" :
|
|
29133
|
+
color: E === "deleted" ? "destructive" : de && Q ? "secondary" : "primary",
|
|
29134
29134
|
size: "sm",
|
|
29135
29135
|
pill: "sm",
|
|
29136
29136
|
absolute: !0,
|
|
29137
29137
|
theme: "solid",
|
|
29138
|
-
offset:
|
|
29138
|
+
offset: de ? 8 : 6,
|
|
29139
29139
|
fullWidth: !0,
|
|
29140
29140
|
containerClassName: "ui-w-full",
|
|
29141
29141
|
label: Ve,
|
|
@@ -29150,9 +29150,9 @@ const as = Zt(
|
|
|
29150
29150
|
G6,
|
|
29151
29151
|
{
|
|
29152
29152
|
items: Y ?? [],
|
|
29153
|
-
tags:
|
|
29153
|
+
tags: de ? ne : void 0,
|
|
29154
29154
|
selectedTags: ve,
|
|
29155
|
-
onTagsChange:
|
|
29155
|
+
onTagsChange: de ? R : void 0,
|
|
29156
29156
|
selectAllLabel: M,
|
|
29157
29157
|
tagsShowSelectAll: L,
|
|
29158
29158
|
footer: he,
|
|
@@ -29266,7 +29266,7 @@ const as = Zt(
|
|
|
29266
29266
|
tooltipProps: Ce,
|
|
29267
29267
|
className: He,
|
|
29268
29268
|
color: Xe = "gray",
|
|
29269
|
-
theme:
|
|
29269
|
+
theme: fe = "soft",
|
|
29270
29270
|
size: be = "lg",
|
|
29271
29271
|
stroke: te = !1,
|
|
29272
29272
|
disabled: Fe = !1
|
|
@@ -29275,7 +29275,7 @@ const as = Zt(
|
|
|
29275
29275
|
{
|
|
29276
29276
|
label: Ut,
|
|
29277
29277
|
color: Xe,
|
|
29278
|
-
theme:
|
|
29278
|
+
theme: fe,
|
|
29279
29279
|
size: be,
|
|
29280
29280
|
stroke: te,
|
|
29281
29281
|
disabled: Fe,
|
|
@@ -29377,10 +29377,10 @@ const as = Zt(
|
|
|
29377
29377
|
}
|
|
29378
29378
|
) })
|
|
29379
29379
|
] }) : null,
|
|
29380
|
-
|
|
29380
|
+
G.length > 0 ? /* @__PURE__ */ o(
|
|
29381
29381
|
K6,
|
|
29382
29382
|
{
|
|
29383
|
-
tags:
|
|
29383
|
+
tags: G,
|
|
29384
29384
|
emphasized: t,
|
|
29385
29385
|
disabled: a
|
|
29386
29386
|
}
|
|
@@ -29390,7 +29390,7 @@ const as = Zt(
|
|
|
29390
29390
|
return /* @__PURE__ */ b(
|
|
29391
29391
|
"div",
|
|
29392
29392
|
{
|
|
29393
|
-
ref:
|
|
29393
|
+
ref: K,
|
|
29394
29394
|
role: st ? "button" : void 0,
|
|
29395
29395
|
tabIndex: st ? 0 : void 0,
|
|
29396
29396
|
"aria-disabled": a && !d ? !0 : void 0,
|
|
@@ -29450,14 +29450,14 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29450
29450
|
optionsMenuItems: w,
|
|
29451
29451
|
disabled: S = !1
|
|
29452
29452
|
}, k) {
|
|
29453
|
-
const y =
|
|
29453
|
+
const y = U(null), M = m !== void 0 ? L1(m, "Teléfono") : null, L = g !== void 0 ? L1(g, "Email") : null, I = !!(w != null && w.length), D = (f == null ? void 0 : f.trim()) ?? "", j = D.length > 0, O = (d ?? "").trim(), V = os(O), E = O.length > 0, P = E || j, z = "ui-w-[270px] ui-min-w-[270px] ui-max-w-[270px]", A = W(
|
|
29454
29454
|
() => ({ family: "supplier", title: p }),
|
|
29455
29455
|
[p]
|
|
29456
|
-
), H = (
|
|
29457
|
-
u && (
|
|
29458
|
-
}, B = (
|
|
29459
|
-
u && (
|
|
29460
|
-
}, Y = (a ?? s ?? "").trim(), J = Y.length > 0, q = !!(J && !S), se = !!(u && !q),
|
|
29456
|
+
), H = (X) => {
|
|
29457
|
+
u && (X.stopPropagation(), u(A));
|
|
29458
|
+
}, B = (X) => {
|
|
29459
|
+
u && (X.key === "Enter" || X.key === " ") && (X.preventDefault(), u(A));
|
|
29460
|
+
}, Y = (a ?? s ?? "").trim(), J = Y.length > 0, q = !!(J && !S), se = !!(u && !q), ce = "ui-flex ui-min-w-0 ui-w-full ui-flex-col ui-gap-16 ui-text-inherit ui-no-underline focus-visible:ui-outline focus-visible:ui-outline-2 focus-visible:ui-outline-offset-2 focus-visible:ui-outline-brand", K = I ? /* @__PURE__ */ o(
|
|
29461
29461
|
nn,
|
|
29462
29462
|
{
|
|
29463
29463
|
ref: y,
|
|
@@ -29475,8 +29475,8 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29475
29475
|
{
|
|
29476
29476
|
items: w,
|
|
29477
29477
|
onDismiss: () => {
|
|
29478
|
-
var
|
|
29479
|
-
return (
|
|
29478
|
+
var X;
|
|
29479
|
+
return (X = y.current) == null ? void 0 : X.close();
|
|
29480
29480
|
}
|
|
29481
29481
|
}
|
|
29482
29482
|
)
|
|
@@ -29492,11 +29492,11 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29492
29492
|
icon: $n,
|
|
29493
29493
|
tooltip: M1,
|
|
29494
29494
|
"aria-label": "Opciones",
|
|
29495
|
-
onClick: (
|
|
29496
|
-
cn(
|
|
29495
|
+
onClick: (X) => {
|
|
29496
|
+
cn(X), x == null || x(A);
|
|
29497
29497
|
}
|
|
29498
29498
|
}
|
|
29499
|
-
),
|
|
29499
|
+
), _ = N(
|
|
29500
29500
|
"ui-imj",
|
|
29501
29501
|
!S && "ui-group",
|
|
29502
29502
|
"ui-relative ui-flex ui-flex-col ui-gap-16 ui-rounded-surface-card ui-border-1 ui-bg-fill ui-pb-16 ui-shadow-01",
|
|
@@ -29597,7 +29597,7 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29597
29597
|
"aria-disabled": S && !u ? !0 : void 0,
|
|
29598
29598
|
"data-selected": r ? !0 : void 0,
|
|
29599
29599
|
"data-disabled": S ? !0 : void 0,
|
|
29600
|
-
className:
|
|
29600
|
+
className: _,
|
|
29601
29601
|
onClick: se ? H : void 0,
|
|
29602
29602
|
onKeyDown: se ? B : void 0,
|
|
29603
29603
|
children: [
|
|
@@ -29607,7 +29607,7 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29607
29607
|
href: Y,
|
|
29608
29608
|
target: l,
|
|
29609
29609
|
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
29610
|
-
className:
|
|
29610
|
+
className: ce,
|
|
29611
29611
|
"aria-label": p,
|
|
29612
29612
|
onClick: () => {
|
|
29613
29613
|
u == null || u(A);
|
|
@@ -29616,7 +29616,7 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29616
29616
|
}
|
|
29617
29617
|
) : le,
|
|
29618
29618
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-10 ui-px-16", children: [
|
|
29619
|
-
|
|
29619
|
+
K,
|
|
29620
29620
|
/* @__PURE__ */ o(
|
|
29621
29621
|
Ee,
|
|
29622
29622
|
{
|
|
@@ -29624,8 +29624,8 @@ const M1 = { label: "Más opciones", position: "top" }, t5 = "Evaluación", n5 =
|
|
|
29624
29624
|
theme: "solid",
|
|
29625
29625
|
size: "sm",
|
|
29626
29626
|
fullWidth: !0,
|
|
29627
|
-
onClick: (
|
|
29628
|
-
cn(
|
|
29627
|
+
onClick: (X) => {
|
|
29628
|
+
cn(X), v == null || v(A);
|
|
29629
29629
|
},
|
|
29630
29630
|
children: C
|
|
29631
29631
|
}
|
|
@@ -30328,10 +30328,10 @@ const C5 = (e) => {
|
|
|
30328
30328
|
portalPosition: { top: 0, left: 0 },
|
|
30329
30329
|
pendingDate: null,
|
|
30330
30330
|
pendingRange: { start: null, end: null }
|
|
30331
|
-
}), [f, c] = F(!1), p =
|
|
30331
|
+
}), [f, c] = F(!1), p = U(null), h = U(null), m = U(null), g = n === "single" ? e.selectedDate !== void 0 : e.selectedRange !== void 0, C = n === "single" ? e.selectedDate === void 0 : e.selectedRange === void 0, v = n === "single" ? a === !1 && u.pendingDate !== null ? u.pendingDate : C ? u.internalDate : r : null, x = n === "single" ? C ? u.internalDate : r : null, w = n === "range" ? s === !1 && (u.pendingRange.start || u.pendingRange.end) ? u.pendingRange : C ? u.internalRange : t : { start: null, end: null }, S = n === "range" ? C ? u.internalRange : t : { start: null, end: null }, k = (G) => G != null && G instanceof Date && !isNaN(G.getTime()), y = T((G) => new Date(G.getUTCFullYear(), G.getUTCMonth(), G.getUTCDate(), 0, 0, 0, 0), []), M = k(v) ? v : null, L = k(w == null ? void 0 : w.start) ? w.start.getTime() : null, I = k(w == null ? void 0 : w.end) ? w.end.getTime() : null, D = W(
|
|
30332
30332
|
() => {
|
|
30333
|
-
const
|
|
30334
|
-
return { start:
|
|
30333
|
+
const G = k(w == null ? void 0 : w.start) ? y(w.start) : null, ne = k(w == null ? void 0 : w.end) ? y(w.end) : null;
|
|
30334
|
+
return { start: G, end: ne };
|
|
30335
30335
|
},
|
|
30336
30336
|
// Objetos `selectedRangeForCalendar` pueden recrearse cada render; deps = timestamps reales.
|
|
30337
30337
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- intencional: ver comentario anterior
|
|
@@ -30348,21 +30348,21 @@ const C5 = (e) => {
|
|
|
30348
30348
|
if (n === "range" && (h.current = {
|
|
30349
30349
|
start: E.start ? new Date(E.start) : null,
|
|
30350
30350
|
end: E.end ? new Date(E.end) : null
|
|
30351
|
-
}, d((
|
|
30352
|
-
...
|
|
30351
|
+
}, d((G) => ({
|
|
30352
|
+
...G,
|
|
30353
30353
|
pendingRange: {
|
|
30354
30354
|
start: E.start ? new Date(E.start) : null,
|
|
30355
30355
|
end: E.end ? new Date(E.end) : null
|
|
30356
30356
|
}
|
|
30357
|
-
}))), n === "single" && (m.current = j ? new Date(j) : null, d((
|
|
30358
|
-
...
|
|
30357
|
+
}))), n === "single" && (m.current = j ? new Date(j) : null, d((G) => ({
|
|
30358
|
+
...G,
|
|
30359
30359
|
pendingDate: j ? new Date(j) : null
|
|
30360
30360
|
}))), p.current) {
|
|
30361
|
-
const
|
|
30362
|
-
if (
|
|
30363
|
-
const ne =
|
|
30361
|
+
const G = p.current.getInputElement();
|
|
30362
|
+
if (G) {
|
|
30363
|
+
const ne = G.getBoundingClientRect(), de = window.innerHeight, ve = window.innerWidth, Q = 320, Z = 256, R = 8;
|
|
30364
30364
|
let ue, ae = ne.left;
|
|
30365
|
-
const $ =
|
|
30365
|
+
const $ = de - ne.bottom, pe = ne.top;
|
|
30366
30366
|
$ >= Q + R ? ue = ne.bottom + R : pe >= Q + R ? ue = ne.top - Q - R : $ > pe ? ue = ne.bottom + R : ue = ne.top - Q - R, ne.left + Z > ve && (ae = ne.right - Z), ae = Math.max(0, Math.min(ae, ve - Z)), d((he) => ({
|
|
30367
30367
|
...he,
|
|
30368
30368
|
isOpen: !0,
|
|
@@ -30371,119 +30371,119 @@ const C5 = (e) => {
|
|
|
30371
30371
|
return;
|
|
30372
30372
|
}
|
|
30373
30373
|
}
|
|
30374
|
-
d((
|
|
30374
|
+
d((G) => ({ ...G, isOpen: !0 })), c(!1);
|
|
30375
30375
|
}
|
|
30376
30376
|
}, [l, n, j, E]), z = T(() => {
|
|
30377
|
-
d((
|
|
30377
|
+
d((G) => ({ ...G, isOpen: !1 })), c(!1);
|
|
30378
30378
|
}, []);
|
|
30379
30379
|
oe(() => {
|
|
30380
30380
|
l && z();
|
|
30381
30381
|
}, [l, z]);
|
|
30382
30382
|
const A = T(() => {
|
|
30383
|
-
n === "range" && h.current && (g || d((
|
|
30384
|
-
...
|
|
30383
|
+
n === "range" && h.current && (g || d((G) => ({
|
|
30384
|
+
...G,
|
|
30385
30385
|
internalRange: {
|
|
30386
30386
|
start: h.current.start ? new Date(h.current.start) : null,
|
|
30387
30387
|
end: h.current.end ? new Date(h.current.end) : null
|
|
30388
30388
|
}
|
|
30389
30389
|
})));
|
|
30390
30390
|
}, [n, g]), H = T(() => {
|
|
30391
|
-
n === "single" && m.current !== null && (g || d((
|
|
30392
|
-
...
|
|
30391
|
+
n === "single" && m.current !== null && (g || d((G) => ({
|
|
30392
|
+
...G,
|
|
30393
30393
|
internalDate: m.current ? new Date(m.current) : null
|
|
30394
30394
|
})));
|
|
30395
|
-
}, [n, g]), B = T((
|
|
30396
|
-
d((ne) => ({ ...ne, pendingDate:
|
|
30397
|
-
}, []), Y = T((
|
|
30398
|
-
d((ne) => ({ ...ne, pendingRange:
|
|
30399
|
-
}, []), J = T((
|
|
30400
|
-
d((ne) => ({ ...ne, currentDate:
|
|
30401
|
-
}, []), q = T((
|
|
30402
|
-
d((ne) => ({ ...ne, viewMode:
|
|
30403
|
-
}, []), se = T((
|
|
30395
|
+
}, [n, g]), B = T((G) => {
|
|
30396
|
+
d((ne) => ({ ...ne, pendingDate: G }));
|
|
30397
|
+
}, []), Y = T((G) => {
|
|
30398
|
+
d((ne) => ({ ...ne, pendingRange: G }));
|
|
30399
|
+
}, []), J = T((G) => {
|
|
30400
|
+
d((ne) => ({ ...ne, currentDate: G }));
|
|
30401
|
+
}, []), q = T((G) => {
|
|
30402
|
+
d((ne) => ({ ...ne, viewMode: G }));
|
|
30403
|
+
}, []), se = T((G) => {
|
|
30404
30404
|
d((ne) => {
|
|
30405
|
-
const
|
|
30405
|
+
const de = new Date(ne.currentDate);
|
|
30406
30406
|
switch (ne.viewMode) {
|
|
30407
30407
|
case "days":
|
|
30408
|
-
|
|
30408
|
+
de.setMonth(de.getMonth() + (G === "next" ? 1 : -1));
|
|
30409
30409
|
break;
|
|
30410
30410
|
case "months":
|
|
30411
|
-
|
|
30411
|
+
de.setFullYear(de.getFullYear() + (G === "next" ? 1 : -1));
|
|
30412
30412
|
break;
|
|
30413
30413
|
case "years":
|
|
30414
|
-
|
|
30414
|
+
de.setFullYear(de.getFullYear() + (G === "next" ? 12 : -12));
|
|
30415
30415
|
break;
|
|
30416
30416
|
}
|
|
30417
|
-
return { ...ne, currentDate:
|
|
30417
|
+
return { ...ne, currentDate: de };
|
|
30418
30418
|
});
|
|
30419
|
-
}, []),
|
|
30420
|
-
(
|
|
30421
|
-
var
|
|
30422
|
-
n === "single" && (a === !0 || ne === !0 ? (C && d((ve) => ({ ...ve, internalDate:
|
|
30419
|
+
}, []), ce = T(
|
|
30420
|
+
(G, ne = !1) => {
|
|
30421
|
+
var de;
|
|
30422
|
+
n === "single" && (a === !0 || ne === !0 ? (C && d((ve) => ({ ...ve, internalDate: G, pendingDate: null })), (a === !0 || ne === !0) && ((de = e.onDateChange) == null || de.call(e, G)), a === !0 && z()) : d((ve) => ({ ...ve, pendingDate: G })));
|
|
30423
30423
|
},
|
|
30424
30424
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- props.onDateChange en deps; evitar recrear en cada cambio de props
|
|
30425
30425
|
[n, C, e.onDateChange, a, z]
|
|
30426
|
-
),
|
|
30427
|
-
(
|
|
30428
|
-
var
|
|
30426
|
+
), K = T(
|
|
30427
|
+
(G, ne = !1) => {
|
|
30428
|
+
var de;
|
|
30429
30429
|
n === "range" && (s === !0 || ne === !0 ? (g || d((ve) => ({
|
|
30430
30430
|
...ve,
|
|
30431
|
-
internalRange:
|
|
30431
|
+
internalRange: G,
|
|
30432
30432
|
pendingRange: { start: null, end: null }
|
|
30433
|
-
})), (s === !0 || ne === !0) && ((
|
|
30433
|
+
})), (s === !0 || ne === !0) && ((de = e.onRangeChange) == null || de.call(e, G)), s === !0 && G.start && G.end && z()) : d((ve) => ({ ...ve, pendingRange: G })));
|
|
30434
30434
|
},
|
|
30435
30435
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- props.onRangeChange en deps; evitar recrear en cada cambio de props
|
|
30436
30436
|
[n, g, e.onRangeChange, s, z]
|
|
30437
|
-
),
|
|
30438
|
-
d((ne) => ({ ...ne, hoverDate:
|
|
30439
|
-
}, []), le = T((
|
|
30437
|
+
), _ = T((G) => {
|
|
30438
|
+
d((ne) => ({ ...ne, hoverDate: G }));
|
|
30439
|
+
}, []), le = T((G) => {
|
|
30440
30440
|
d((ne) => {
|
|
30441
|
-
const
|
|
30442
|
-
return
|
|
30441
|
+
const de = new Date(ne.currentDate);
|
|
30442
|
+
return de.setMonth(G), {
|
|
30443
30443
|
...ne,
|
|
30444
|
-
currentDate:
|
|
30444
|
+
currentDate: de,
|
|
30445
30445
|
viewMode: "days"
|
|
30446
30446
|
};
|
|
30447
30447
|
});
|
|
30448
|
-
}, []), ie = T((
|
|
30448
|
+
}, []), ie = T((G) => {
|
|
30449
30449
|
d((ne) => {
|
|
30450
|
-
const
|
|
30451
|
-
return
|
|
30450
|
+
const de = new Date(ne.currentDate);
|
|
30451
|
+
return de.setFullYear(G), {
|
|
30452
30452
|
...ne,
|
|
30453
|
-
currentDate:
|
|
30453
|
+
currentDate: de,
|
|
30454
30454
|
viewMode: "months"
|
|
30455
30455
|
};
|
|
30456
30456
|
});
|
|
30457
|
-
}, []),
|
|
30458
|
-
const
|
|
30457
|
+
}, []), X = T(() => {
|
|
30458
|
+
const G = /* @__PURE__ */ new Date();
|
|
30459
30459
|
d((ne) => ({
|
|
30460
30460
|
...ne,
|
|
30461
|
-
currentDate:
|
|
30461
|
+
currentDate: G,
|
|
30462
30462
|
viewMode: "days"
|
|
30463
30463
|
}));
|
|
30464
30464
|
}, []), re = T(() => {
|
|
30465
30465
|
if (!p.current)
|
|
30466
30466
|
return;
|
|
30467
|
-
const
|
|
30468
|
-
if (!
|
|
30467
|
+
const G = p.current.getInputElement();
|
|
30468
|
+
if (!G)
|
|
30469
30469
|
return;
|
|
30470
|
-
const ne =
|
|
30470
|
+
const ne = G.getBoundingClientRect(), de = window.innerHeight, ve = window.innerWidth, Q = 320, Z = 256, R = 8;
|
|
30471
30471
|
let ue, ae = ne.left;
|
|
30472
|
-
const $ =
|
|
30472
|
+
const $ = de - ne.bottom, pe = ne.top;
|
|
30473
30473
|
$ >= Q + R ? ue = ne.bottom + R : pe >= Q + R ? ue = ne.top - Q - R : $ > pe ? ue = ne.bottom + R : ue = ne.top - Q - R, ne.left + Z > ve && (ae = ne.right - Z), ae = Math.max(0, Math.min(ae, ve - Z)), d((he) => ({ ...he, portalPosition: { top: ue, left: ae } })), c(!0);
|
|
30474
30474
|
}, []);
|
|
30475
30475
|
return oe(() => {
|
|
30476
30476
|
if (!u.isOpen) return;
|
|
30477
|
-
const
|
|
30478
|
-
return window.addEventListener("scroll",
|
|
30479
|
-
window.removeEventListener("scroll",
|
|
30477
|
+
const G = () => re(), ne = () => re();
|
|
30478
|
+
return window.addEventListener("scroll", G, !0), window.addEventListener("resize", ne), () => {
|
|
30479
|
+
window.removeEventListener("scroll", G, !0), window.removeEventListener("resize", ne);
|
|
30480
30480
|
};
|
|
30481
30481
|
}, [u.isOpen, re]), oe(() => {
|
|
30482
30482
|
if (u.isOpen) {
|
|
30483
|
-
const
|
|
30483
|
+
const G = setTimeout(() => {
|
|
30484
30484
|
re();
|
|
30485
30485
|
}, 0);
|
|
30486
|
-
return () => clearTimeout(
|
|
30486
|
+
return () => clearTimeout(G);
|
|
30487
30487
|
}
|
|
30488
30488
|
}, [u.isOpen, re]), {
|
|
30489
30489
|
state: u,
|
|
@@ -30498,14 +30498,14 @@ const C5 = (e) => {
|
|
|
30498
30498
|
closePicker: z,
|
|
30499
30499
|
setCurrentDate: J,
|
|
30500
30500
|
setViewMode: q,
|
|
30501
|
-
setSelectedDate:
|
|
30502
|
-
setSelectedRange:
|
|
30503
|
-
setHoverDate:
|
|
30501
|
+
setSelectedDate: ce,
|
|
30502
|
+
setSelectedRange: K,
|
|
30503
|
+
setHoverDate: _,
|
|
30504
30504
|
updatePortalPosition: re,
|
|
30505
30505
|
navigate: se,
|
|
30506
30506
|
handleMonthSelect: le,
|
|
30507
30507
|
handleYearSelect: ie,
|
|
30508
|
-
goToToday:
|
|
30508
|
+
goToToday: X,
|
|
30509
30509
|
restoreOriginalRange: A,
|
|
30510
30510
|
restoreOriginalDate: H,
|
|
30511
30511
|
setPendingDate: B,
|
|
@@ -30705,7 +30705,7 @@ const C5 = (e) => {
|
|
|
30705
30705
|
className: g = "",
|
|
30706
30706
|
renderDay: C
|
|
30707
30707
|
}) => {
|
|
30708
|
-
const v =
|
|
30708
|
+
const v = U(null);
|
|
30709
30709
|
if (e === null)
|
|
30710
30710
|
return /* @__PURE__ */ o("div", { className: "ui-h-control-xs ui-w-control-xs" });
|
|
30711
30711
|
const x = (y) => {
|
|
@@ -31353,7 +31353,7 @@ const C5 = (e) => {
|
|
|
31353
31353
|
}
|
|
31354
31354
|
);
|
|
31355
31355
|
}, N5 = (e, n, r, t = 1e3) => {
|
|
31356
|
-
const i =
|
|
31356
|
+
const i = U(null), a = T(
|
|
31357
31357
|
(u) => {
|
|
31358
31358
|
i.current && !i.current.contains(u.target) && n();
|
|
31359
31359
|
},
|
|
@@ -31429,27 +31429,27 @@ const C5 = (e) => {
|
|
|
31429
31429
|
renderDay: P
|
|
31430
31430
|
}) => {
|
|
31431
31431
|
const [z, A] = F(Array(I).fill(h)), [H, B] = F(() => {
|
|
31432
|
-
const
|
|
31433
|
-
for (let
|
|
31432
|
+
const K = [];
|
|
31433
|
+
for (let _ = 0; _ < I; _++) {
|
|
31434
31434
|
const le = new Date(t);
|
|
31435
|
-
le.setMonth(le.getMonth() +
|
|
31435
|
+
le.setMonth(le.getMonth() + _), K.push(le);
|
|
31436
31436
|
}
|
|
31437
|
-
return
|
|
31437
|
+
return K;
|
|
31438
31438
|
}), { renderPortal: Y } = N5(e, n, r, 1100);
|
|
31439
31439
|
oe(() => {
|
|
31440
31440
|
A(Array(I).fill(h));
|
|
31441
31441
|
}, [h, I]), oe(() => {
|
|
31442
|
-
const
|
|
31443
|
-
for (let
|
|
31442
|
+
const K = [];
|
|
31443
|
+
for (let _ = 0; _ < I; _++) {
|
|
31444
31444
|
const le = new Date(t);
|
|
31445
|
-
le.setMonth(le.getMonth() +
|
|
31445
|
+
le.setMonth(le.getMonth() + _), K.push(le);
|
|
31446
31446
|
}
|
|
31447
|
-
B(
|
|
31447
|
+
B(K);
|
|
31448
31448
|
}, [t, I]);
|
|
31449
|
-
const J = (
|
|
31450
|
-
const
|
|
31449
|
+
const J = (K) => {
|
|
31450
|
+
const _ = z[K];
|
|
31451
31451
|
let le;
|
|
31452
|
-
switch (
|
|
31452
|
+
switch (_) {
|
|
31453
31453
|
case "days":
|
|
31454
31454
|
le = "months";
|
|
31455
31455
|
break;
|
|
@@ -31463,38 +31463,38 @@ const C5 = (e) => {
|
|
|
31463
31463
|
le = "days";
|
|
31464
31464
|
}
|
|
31465
31465
|
const ie = [...z];
|
|
31466
|
-
ie[
|
|
31467
|
-
}, q = (
|
|
31466
|
+
ie[K] = le, A(ie);
|
|
31467
|
+
}, q = (K, _) => {
|
|
31468
31468
|
const le = [...H];
|
|
31469
|
-
le[
|
|
31470
|
-
H[
|
|
31471
|
-
|
|
31469
|
+
le[K] = new Date(
|
|
31470
|
+
H[K].getFullYear(),
|
|
31471
|
+
_,
|
|
31472
31472
|
1
|
|
31473
31473
|
), B(le);
|
|
31474
31474
|
const ie = [...z];
|
|
31475
|
-
ie[
|
|
31476
|
-
}, se = (
|
|
31475
|
+
ie[K] = "days", A(ie), f == null || f(_);
|
|
31476
|
+
}, se = (K, _) => {
|
|
31477
31477
|
const le = [...H];
|
|
31478
|
-
le[
|
|
31478
|
+
le[K] = new Date(_, H[K].getMonth(), 1), B(le);
|
|
31479
31479
|
const ie = [...z];
|
|
31480
|
-
ie[
|
|
31481
|
-
},
|
|
31482
|
-
const
|
|
31483
|
-
|
|
31484
|
-
const
|
|
31480
|
+
ie[K] = "months", A(ie), c == null || c(_);
|
|
31481
|
+
}, ce = (K) => {
|
|
31482
|
+
const _ = [...H];
|
|
31483
|
+
_.forEach((le, ie) => {
|
|
31484
|
+
const X = new Date(le);
|
|
31485
31485
|
switch (z[ie]) {
|
|
31486
31486
|
case "days":
|
|
31487
|
-
|
|
31487
|
+
X.setMonth(X.getMonth() + (K === "next" ? 1 : -1));
|
|
31488
31488
|
break;
|
|
31489
31489
|
case "months":
|
|
31490
|
-
|
|
31490
|
+
X.setFullYear(X.getFullYear() + (K === "next" ? 1 : -1));
|
|
31491
31491
|
break;
|
|
31492
31492
|
case "years":
|
|
31493
|
-
|
|
31493
|
+
X.setFullYear(X.getFullYear() + (K === "next" ? 12 : -12));
|
|
31494
31494
|
break;
|
|
31495
31495
|
}
|
|
31496
|
-
|
|
31497
|
-
}), B(
|
|
31496
|
+
_[ie] = X;
|
|
31497
|
+
}), B(_), d(K);
|
|
31498
31498
|
};
|
|
31499
31499
|
return Y(
|
|
31500
31500
|
/* @__PURE__ */ o("div", { className: "ui-relative", children: D === "range" && I > 1 ? /* @__PURE__ */ b("div", { className: "ui-overflow-hidden ui-rounded-lg ui-bg-fill ui-shadow-lg", children: [
|
|
@@ -31503,7 +31503,7 @@ const C5 = (e) => {
|
|
|
31503
31503
|
{
|
|
31504
31504
|
calendarDates: H,
|
|
31505
31505
|
viewModes: z,
|
|
31506
|
-
onNavigate:
|
|
31506
|
+
onNavigate: ce,
|
|
31507
31507
|
onToggleViewMode: J,
|
|
31508
31508
|
onGoToToday: p,
|
|
31509
31509
|
monthNames: x,
|
|
@@ -31511,28 +31511,28 @@ const C5 = (e) => {
|
|
|
31511
31511
|
renderHeader: E
|
|
31512
31512
|
}
|
|
31513
31513
|
),
|
|
31514
|
-
/* @__PURE__ */ o("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: H.map((
|
|
31514
|
+
/* @__PURE__ */ o("div", { className: "ui-flex ui-flex-col ui-flex-wrap ui-gap-4 ui-p-4 md:ui-flex-row", children: H.map((K, _) => /* @__PURE__ */ o("div", { className: "ui-flex-shrink-0", children: /* @__PURE__ */ o("div", { className: "ui-w-full ui-overflow-hidden ui-rounded-lg ui-bg-fill", children: /* @__PURE__ */ o(
|
|
31515
31515
|
S5,
|
|
31516
31516
|
{
|
|
31517
|
-
currentDate:
|
|
31517
|
+
currentDate: K,
|
|
31518
31518
|
selectedDate: i,
|
|
31519
31519
|
selectedRange: a,
|
|
31520
31520
|
onDateSelect: s,
|
|
31521
31521
|
onDateHover: l,
|
|
31522
31522
|
minDate: m,
|
|
31523
31523
|
maxDate: g,
|
|
31524
|
-
viewMode: z[
|
|
31524
|
+
viewMode: z[_],
|
|
31525
31525
|
weekDays: v,
|
|
31526
31526
|
monthNames: x,
|
|
31527
31527
|
startOfWeek: w,
|
|
31528
31528
|
showWeekNumbers: S,
|
|
31529
31529
|
yearRange: k,
|
|
31530
31530
|
hoverDate: y,
|
|
31531
|
-
onMonthSelect: (le) => q(
|
|
31532
|
-
onYearSelect: (le) => se(
|
|
31531
|
+
onMonthSelect: (le) => q(_, le),
|
|
31532
|
+
onYearSelect: (le) => se(_, le),
|
|
31533
31533
|
renderDay: P
|
|
31534
31534
|
}
|
|
31535
|
-
) }) },
|
|
31535
|
+
) }) }, _)) }),
|
|
31536
31536
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-justify-end ui-gap-2 ui-border-t ui-border-neutral-100 ui-p-3", children: [
|
|
31537
31537
|
/* @__PURE__ */ o(De, { theme: "solid", size: "md", color: "secondary", onClick: V, children: "Cancelar" }),
|
|
31538
31538
|
/* @__PURE__ */ o(De, { size: "md", onClick: O, children: "Aceptar" })
|
|
@@ -31623,38 +31623,38 @@ const C5 = (e) => {
|
|
|
31623
31623
|
A.setSelectedRange,
|
|
31624
31624
|
s,
|
|
31625
31625
|
l
|
|
31626
|
-
), B = (
|
|
31627
|
-
if (!
|
|
31626
|
+
), B = (_) => {
|
|
31627
|
+
if (!_ || !(_ instanceof Date) || isNaN(_.getTime()))
|
|
31628
31628
|
return "";
|
|
31629
|
-
const le =
|
|
31630
|
-
return S.replace("dd", le).replace("MM", ie).replace("yyyy",
|
|
31631
|
-
}, Y = (
|
|
31632
|
-
if (!
|
|
31633
|
-
const le =
|
|
31634
|
-
return le && ie ? `${B(
|
|
31635
|
-
}, J = (
|
|
31636
|
-
if (!
|
|
31637
|
-
process.env.NODE_ENV !== "production" && console.warn("DatePicker: Se recibió una fecha inválida:",
|
|
31629
|
+
const le = _.getDate().toString().padStart(2, "0"), ie = (_.getMonth() + 1).toString().padStart(2, "0"), X = _.getFullYear();
|
|
31630
|
+
return S.replace("dd", le).replace("MM", ie).replace("yyyy", X.toString());
|
|
31631
|
+
}, Y = (_) => {
|
|
31632
|
+
if (!_ || !_.start && !_.end) return "";
|
|
31633
|
+
const le = _.start && _.start instanceof Date && !isNaN(_.start.getTime()), ie = _.end && _.end instanceof Date && !isNaN(_.end.getTime());
|
|
31634
|
+
return le && ie ? `${B(_.start)} - ${B(_.end)}` : le ? B(_.start) : ie ? B(_.end) : "";
|
|
31635
|
+
}, J = (_) => {
|
|
31636
|
+
if (!_ || !(_ instanceof Date) || isNaN(_.getTime())) {
|
|
31637
|
+
process.env.NODE_ENV !== "production" && console.warn("DatePicker: Se recibió una fecha inválida:", _);
|
|
31638
31638
|
return;
|
|
31639
31639
|
}
|
|
31640
|
-
n === "single" ? A.setSelectedDate(
|
|
31641
|
-
}, q = (
|
|
31642
|
-
if (
|
|
31643
|
-
process.env.NODE_ENV !== "production" && console.warn("DatePicker: Se recibió una fecha inválida en hover:",
|
|
31640
|
+
n === "single" ? A.setSelectedDate(_) : H(_, D.hoverDate);
|
|
31641
|
+
}, q = (_) => {
|
|
31642
|
+
if (_ !== null && (!(_ instanceof Date) || isNaN(_.getTime()))) {
|
|
31643
|
+
process.env.NODE_ENV !== "production" && console.warn("DatePicker: Se recibió una fecha inválida en hover:", _);
|
|
31644
31644
|
return;
|
|
31645
31645
|
}
|
|
31646
|
-
A.setHoverDate(
|
|
31646
|
+
A.setHoverDate(_);
|
|
31647
31647
|
}, se = () => {
|
|
31648
31648
|
n === "single" ? !v && D.pendingDate !== null && (A.setSelectedDate(D.pendingDate, !0), i == null || i(D.pendingDate)) : n === "range" && !x && (D.pendingRange.start || D.pendingRange.end) && (A.setSelectedRange(D.pendingRange, !0), a == null || a(D.pendingRange)), A.closePicker();
|
|
31649
|
-
},
|
|
31649
|
+
}, ce = () => {
|
|
31650
31650
|
n === "single" && !v ? (A.setPendingDate(null), A.restoreOriginalDate()) : n === "range" && !x && (A.setPendingRange({ start: null, end: null }), A.restoreOriginalRange()), A.closePicker();
|
|
31651
|
-
},
|
|
31651
|
+
}, K = () => n === "single" ? B(V) : Y(E);
|
|
31652
31652
|
return /* @__PURE__ */ b("div", { className: N("ui-imj", "relative", h), children: [
|
|
31653
31653
|
/* @__PURE__ */ o(
|
|
31654
31654
|
L5,
|
|
31655
31655
|
{
|
|
31656
31656
|
ref: P,
|
|
31657
|
-
value:
|
|
31657
|
+
value: K(),
|
|
31658
31658
|
placeholder: w,
|
|
31659
31659
|
label: c,
|
|
31660
31660
|
size: I,
|
|
@@ -31696,7 +31696,7 @@ const C5 = (e) => {
|
|
|
31696
31696
|
calendarsCount: k,
|
|
31697
31697
|
mode: n,
|
|
31698
31698
|
onAccept: se,
|
|
31699
|
-
onCancel:
|
|
31699
|
+
onCancel: ce,
|
|
31700
31700
|
renderHeader: M,
|
|
31701
31701
|
renderDay: L
|
|
31702
31702
|
}
|
|
@@ -31803,21 +31803,21 @@ const j5 = (e) => {
|
|
|
31803
31803
|
currentTab: H,
|
|
31804
31804
|
tabsOverHeader: B = !1
|
|
31805
31805
|
}) => {
|
|
31806
|
-
const { content: Y, footer: J } = j5(i), q = za(), { isVisible: se, isAnimating:
|
|
31806
|
+
const { content: Y, footer: J } = j5(i), q = za(), { isVisible: se, isAnimating: ce } = Va(e), K = U(null), [_, le] = F(z);
|
|
31807
31807
|
oe(() => {
|
|
31808
31808
|
z !== void 0 && le(z);
|
|
31809
31809
|
}, [z]);
|
|
31810
|
-
const ie = H ??
|
|
31810
|
+
const ie = H ?? _, X = (R) => {
|
|
31811
31811
|
H === void 0 && le(R), A && A(R);
|
|
31812
31812
|
}, re = P && P.length > 0;
|
|
31813
|
-
Ha(e), xo(e, n, p), Ra(e,
|
|
31814
|
-
const
|
|
31813
|
+
Ha(e), xo(e, n, p), Ra(e, K, !h);
|
|
31814
|
+
const G = () => {
|
|
31815
31815
|
S && S(), I && n();
|
|
31816
31816
|
}, ne = () => {
|
|
31817
31817
|
k && k(), L && n();
|
|
31818
31818
|
};
|
|
31819
31819
|
if (!q || !se) return null;
|
|
31820
|
-
const
|
|
31820
|
+
const de = g === "brand", ve = de ? "ui-bg-fill-brand-default" : "ui-bg-surface-secondary-default", Q = !de, Z = /* @__PURE__ */ b(
|
|
31821
31821
|
"div",
|
|
31822
31822
|
{
|
|
31823
31823
|
"aria-modal": "true",
|
|
@@ -31837,7 +31837,7 @@ const j5 = (e) => {
|
|
|
31837
31837
|
/* @__PURE__ */ o(
|
|
31838
31838
|
"div",
|
|
31839
31839
|
{
|
|
31840
|
-
ref:
|
|
31840
|
+
ref: K,
|
|
31841
31841
|
tabIndex: -1,
|
|
31842
31842
|
onClick: (R) => R.stopPropagation(),
|
|
31843
31843
|
className: N(
|
|
@@ -31847,7 +31847,7 @@ const j5 = (e) => {
|
|
|
31847
31847
|
m === "right" ? "ui-ml-auto" : "ui-mr-auto"
|
|
31848
31848
|
),
|
|
31849
31849
|
style: {
|
|
31850
|
-
transform: m === "right" ?
|
|
31850
|
+
transform: m === "right" ? ce ? "translateX(0)" : "translateX(100%)" : ce ? "translateX(0)" : "translateX(-100%)",
|
|
31851
31851
|
maxWidth: E || V ? "none" : O || D5[t]
|
|
31852
31852
|
},
|
|
31853
31853
|
children: /* @__PURE__ */ b(
|
|
@@ -31856,7 +31856,7 @@ const j5 = (e) => {
|
|
|
31856
31856
|
rounded: !1,
|
|
31857
31857
|
padding: !1,
|
|
31858
31858
|
gap: !1,
|
|
31859
|
-
bordered: !
|
|
31859
|
+
bordered: !de,
|
|
31860
31860
|
className: N(ve, C),
|
|
31861
31861
|
children: [
|
|
31862
31862
|
/* @__PURE__ */ o(un.Header, { children: /* @__PURE__ */ b(
|
|
@@ -31876,7 +31876,7 @@ const j5 = (e) => {
|
|
|
31876
31876
|
iconDuotoneSecondary: l,
|
|
31877
31877
|
iconDuotoneOpacityPrimary: u,
|
|
31878
31878
|
iconDuotoneOpacitySecondary: d,
|
|
31879
|
-
className:
|
|
31879
|
+
className: de ? "ui-text-on-color" : void 0
|
|
31880
31880
|
}
|
|
31881
31881
|
) }),
|
|
31882
31882
|
f && /* @__PURE__ */ o("div", { className: "ui-z-10", children: (c == null ? void 0 : c.tooltip) === !0 ? /* @__PURE__ */ o(
|
|
@@ -31913,7 +31913,7 @@ const j5 = (e) => {
|
|
|
31913
31913
|
options: P,
|
|
31914
31914
|
defaultValue: ie,
|
|
31915
31915
|
size: "sm",
|
|
31916
|
-
onChange:
|
|
31916
|
+
onChange: X
|
|
31917
31917
|
}
|
|
31918
31918
|
) }) }),
|
|
31919
31919
|
re && !B && /* @__PURE__ */ o("div", { className: "ui-flex ui-w-full ui-justify-center ui-overflow-x-auto", children: /* @__PURE__ */ o(
|
|
@@ -31922,7 +31922,7 @@ const j5 = (e) => {
|
|
|
31922
31922
|
options: P,
|
|
31923
31923
|
defaultValue: ie,
|
|
31924
31924
|
size: "sm",
|
|
31925
|
-
onChange:
|
|
31925
|
+
onChange: X
|
|
31926
31926
|
}
|
|
31927
31927
|
) })
|
|
31928
31928
|
]
|
|
@@ -31951,7 +31951,7 @@ const j5 = (e) => {
|
|
|
31951
31951
|
theme: "solid",
|
|
31952
31952
|
color: "secondary",
|
|
31953
31953
|
pill: "sm",
|
|
31954
|
-
onClick:
|
|
31954
|
+
onClick: G,
|
|
31955
31955
|
disabled: j,
|
|
31956
31956
|
children: x
|
|
31957
31957
|
}
|
|
@@ -32083,7 +32083,7 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32083
32083
|
withCheckbox: C = !1,
|
|
32084
32084
|
preventDeselectFromOptionsList: v = !1
|
|
32085
32085
|
}) => {
|
|
32086
|
-
const x = fi(), w = d || `dropdown-${x}`, [S, k] = F(!1), [y, M] = F(!1), [L, I] = F(""), [D, j] = F("bottom"), [O, V] = F({}), E =
|
|
32086
|
+
const x = fi(), w = d || `dropdown-${x}`, [S, k] = F(!1), [y, M] = F(!1), [L, I] = F(""), [D, j] = F("bottom"), [O, V] = F({}), E = U(null), P = U(null), z = U(null), A = T(
|
|
32087
32087
|
(Z) => Z == null ? [] : Array.isArray(Z) ? Z : [Z],
|
|
32088
32088
|
[]
|
|
32089
32089
|
), H = T(
|
|
@@ -32093,7 +32093,7 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32093
32093
|
if (Z === R || String(Z) === String(R)) return !0;
|
|
32094
32094
|
const ue = Number(Z), ae = Number(R);
|
|
32095
32095
|
return !isNaN(ue) && !isNaN(ae) && ue === ae;
|
|
32096
|
-
}, []), [Y, J] = F(() => c ? A(n) : H(n)), q = e !== void 0, se = q ? e : Y,
|
|
32096
|
+
}, []), [Y, J] = F(() => c ? A(n) : H(n)), q = e !== void 0, se = q ? e : Y, ce = T(
|
|
32097
32097
|
(Z) => {
|
|
32098
32098
|
q || J(Z), a == null || a(Z);
|
|
32099
32099
|
},
|
|
@@ -32109,7 +32109,7 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32109
32109
|
J((R) => R !== Z ? Z : R);
|
|
32110
32110
|
}
|
|
32111
32111
|
}, [e, q, c, A, H]);
|
|
32112
|
-
const
|
|
32112
|
+
const K = c ? r.filter((Z) => {
|
|
32113
32113
|
const R = Z[i];
|
|
32114
32114
|
return A(se).some((ue) => B(ue, R));
|
|
32115
32115
|
}) : (() => {
|
|
@@ -32118,7 +32118,7 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32118
32118
|
return ue === "" || ue === null || ue === void 0 ? !1 : R[i] === -1 ? ue === -1 || ue === "-1" : B(R[i], ue);
|
|
32119
32119
|
});
|
|
32120
32120
|
return Z ? [Z] : [];
|
|
32121
|
-
})(),
|
|
32121
|
+
})(), _ = (() => {
|
|
32122
32122
|
if (!l || !L)
|
|
32123
32123
|
return r.filter(($) => {
|
|
32124
32124
|
if (c) {
|
|
@@ -32157,7 +32157,7 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32157
32157
|
var Qe;
|
|
32158
32158
|
const R = Z.getBoundingClientRect(), ue = window.innerHeight;
|
|
32159
32159
|
let ae = 0;
|
|
32160
|
-
P.current && (ae = P.current.offsetHeight), ae === 0 && (ae = Math.min(200,
|
|
32160
|
+
P.current && (ae = P.current.offsetHeight), ae === 0 && (ae = Math.min(200, _.length * 40));
|
|
32161
32161
|
const $ = ue - R.bottom, pe = R.top, he = $ < ae && pe > $ ? "top" : "bottom";
|
|
32162
32162
|
j(he);
|
|
32163
32163
|
let me, Me;
|
|
@@ -32179,13 +32179,13 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32179
32179
|
};
|
|
32180
32180
|
V(Be);
|
|
32181
32181
|
});
|
|
32182
|
-
}, [le,
|
|
32183
|
-
if (!P.current || !
|
|
32182
|
+
}, [le, _.length, w, h, m]), X = T(() => {
|
|
32183
|
+
if (!P.current || !K.length)
|
|
32184
32184
|
return;
|
|
32185
32185
|
const R = P.current.querySelector(".ui-overflow-y-auto");
|
|
32186
32186
|
if (!R)
|
|
32187
32187
|
return;
|
|
32188
|
-
const ue =
|
|
32188
|
+
const ue = K[0];
|
|
32189
32189
|
if (!ue) return;
|
|
32190
32190
|
const ae = R.querySelector(
|
|
32191
32191
|
`[data-option-value="${ue[i]}"]`
|
|
@@ -32197,15 +32197,15 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32197
32197
|
top: Math.max(0, me),
|
|
32198
32198
|
behavior: "smooth"
|
|
32199
32199
|
});
|
|
32200
|
-
}, [
|
|
32201
|
-
Z && Z.stopPropagation(), !f && (S ?
|
|
32200
|
+
}, [K, i]), re = (Z) => {
|
|
32201
|
+
Z && Z.stopPropagation(), !f && (S ? G() : (A5(w), I(""), M(!1), ie(), setTimeout(() => {
|
|
32202
32202
|
k(!0), Hr.add(w), setTimeout(() => {
|
|
32203
32203
|
ie(), setTimeout(() => {
|
|
32204
|
-
|
|
32204
|
+
X();
|
|
32205
32205
|
}, 50);
|
|
32206
32206
|
}, 50);
|
|
32207
32207
|
}, 50)));
|
|
32208
|
-
},
|
|
32208
|
+
}, G = T(() => {
|
|
32209
32209
|
M(!0), setTimeout(() => {
|
|
32210
32210
|
k(!1), M(!1), Hr.delete(w);
|
|
32211
32211
|
}, 150);
|
|
@@ -32219,23 +32219,23 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32219
32219
|
if (ae.includes($)) {
|
|
32220
32220
|
if (v)
|
|
32221
32221
|
return;
|
|
32222
|
-
|
|
32222
|
+
ce(ae.filter((pe) => pe !== $));
|
|
32223
32223
|
} else {
|
|
32224
32224
|
const pe = [...ae, $];
|
|
32225
|
-
|
|
32225
|
+
ce(pe);
|
|
32226
32226
|
}
|
|
32227
32227
|
} else {
|
|
32228
32228
|
const ae = Z[i] === -1 ? -1 : Z[i];
|
|
32229
|
-
|
|
32229
|
+
ce(ae), I(""), G();
|
|
32230
32230
|
}
|
|
32231
32231
|
s == null || s(Z);
|
|
32232
32232
|
}
|
|
32233
|
-
},
|
|
32233
|
+
}, de = (Z) => {
|
|
32234
32234
|
I(Z.target.value);
|
|
32235
32235
|
}, ve = T(() => {
|
|
32236
32236
|
I("");
|
|
32237
32237
|
}, []), Q = (Z) => {
|
|
32238
|
-
Z.stopPropagation(),
|
|
32238
|
+
Z.stopPropagation(), ce(c ? [] : ""), I("");
|
|
32239
32239
|
};
|
|
32240
32240
|
return oe(() => {
|
|
32241
32241
|
g == null || g(S);
|
|
@@ -32250,17 +32250,17 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32250
32250
|
disableSameTypeCheck: h,
|
|
32251
32251
|
onOutsideClick: () => {
|
|
32252
32252
|
setTimeout(() => {
|
|
32253
|
-
|
|
32253
|
+
G();
|
|
32254
32254
|
}, 0);
|
|
32255
32255
|
}
|
|
32256
32256
|
}), oe(() => {
|
|
32257
32257
|
const Z = () => {
|
|
32258
|
-
S &&
|
|
32258
|
+
S && G();
|
|
32259
32259
|
};
|
|
32260
32260
|
return document.addEventListener("close-all-dropdowns", Z), () => {
|
|
32261
32261
|
document.removeEventListener("close-all-dropdowns", Z);
|
|
32262
32262
|
};
|
|
32263
|
-
}, [S,
|
|
32263
|
+
}, [S, G]), oe(() => {
|
|
32264
32264
|
if (S) {
|
|
32265
32265
|
const Z = () => {
|
|
32266
32266
|
ie();
|
|
@@ -32277,8 +32277,8 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32277
32277
|
isClosing: y,
|
|
32278
32278
|
searchValue: L,
|
|
32279
32279
|
selectedValue: se,
|
|
32280
|
-
selectedOptions:
|
|
32281
|
-
filteredOptions:
|
|
32280
|
+
selectedOptions: K,
|
|
32281
|
+
filteredOptions: _,
|
|
32282
32282
|
position: D,
|
|
32283
32283
|
dropdownStyle: O,
|
|
32284
32284
|
isControlled: q,
|
|
@@ -32290,14 +32290,14 @@ const Hr = /* @__PURE__ */ new Set(), A5 = (e) => {
|
|
|
32290
32290
|
dropdownUniqueId: w,
|
|
32291
32291
|
// Funciones
|
|
32292
32292
|
toggleDropdown: re,
|
|
32293
|
-
closeDropdown:
|
|
32293
|
+
closeDropdown: G,
|
|
32294
32294
|
handleOptionSelect: ne,
|
|
32295
|
-
handleSearchChange:
|
|
32295
|
+
handleSearchChange: de,
|
|
32296
32296
|
handleClear: Q,
|
|
32297
32297
|
clearSearch: ve,
|
|
32298
32298
|
calculatePosition: ie,
|
|
32299
|
-
setValue:
|
|
32300
|
-
scrollToSelectedOption:
|
|
32299
|
+
setValue: ce,
|
|
32300
|
+
scrollToSelectedOption: X,
|
|
32301
32301
|
normalizeToArray: A
|
|
32302
32302
|
};
|
|
32303
32303
|
}, z5 = /* @__PURE__ */ new Set([
|
|
@@ -32518,7 +32518,7 @@ const U5 = ({
|
|
|
32518
32518
|
leftSlotClassName: M,
|
|
32519
32519
|
colorLeftIcon: L
|
|
32520
32520
|
}) => {
|
|
32521
|
-
const I = C === "single-line", D =
|
|
32521
|
+
const I = C === "single-line", D = U(null), j = U(null), O = U(null), V = U(!1), E = r.map((R) => R ? String(R[m]) : "").join("|"), [P, z] = F(!1), [A, H] = F(null), [B, Y] = F(null), J = U(null);
|
|
32522
32522
|
Rt(() => {
|
|
32523
32523
|
if (!I || !(u != null && u.current)) {
|
|
32524
32524
|
Y(null);
|
|
@@ -32557,7 +32557,7 @@ const U5 = ({
|
|
|
32557
32557
|
}, 100);
|
|
32558
32558
|
return () => clearTimeout(ue);
|
|
32559
32559
|
}, [r.length, A, I]);
|
|
32560
|
-
const
|
|
32560
|
+
const K = I ? {
|
|
32561
32561
|
xs: "ui-h-control-xs ui-min-h-control-xs ui-px-8 ui-py-4",
|
|
32562
32562
|
sm: "ui-h-control-sm ui-min-h-control-sm ui-px-8 ui-py-4",
|
|
32563
32563
|
md: "ui-h-control-md ui-min-h-control-md ui-p-8",
|
|
@@ -32567,7 +32567,7 @@ const U5 = ({
|
|
|
32567
32567
|
sm: `ui-px-8 ui-py-4 ${P ? "ui-min-h-control-sm" : "ui-h-control-sm"}`,
|
|
32568
32568
|
md: `ui-p-8 ${P ? "ui-min-h-control-md" : "ui-h-control-md"}`,
|
|
32569
32569
|
lg: `ui-p-8 ${P ? "ui-min-h-control-lg" : "ui-h-control-lg"}`
|
|
32570
|
-
},
|
|
32570
|
+
}, _ = (R, ue) => {
|
|
32571
32571
|
if (!R) return null;
|
|
32572
32572
|
const ae = R[m], $ = R[h];
|
|
32573
32573
|
return /* @__PURE__ */ o(
|
|
@@ -32583,13 +32583,13 @@ const U5 = ({
|
|
|
32583
32583
|
},
|
|
32584
32584
|
`${String(ae)}${ue ?? ""}`
|
|
32585
32585
|
);
|
|
32586
|
-
}, le = I ? r.slice(q) : [], ie = le.length,
|
|
32586
|
+
}, le = I ? r.slice(q) : [], ie = le.length, X = I ? r.slice(0, q) : r, re = W(() => !I || le.length === 0 ? [] : [...le].sort(
|
|
32587
32587
|
(R, ue) => String(R[h] ?? "").localeCompare(
|
|
32588
32588
|
String(ue[h] ?? ""),
|
|
32589
32589
|
"es",
|
|
32590
32590
|
{ sensitivity: "base" }
|
|
32591
32591
|
)
|
|
32592
|
-
), [I, le, h]),
|
|
32592
|
+
), [I, le, h]), G = W(() => re.length === 0 ? "" : re.map((R) => String(R[h] ?? "")).join(", "), [re, h]), ne = !!(p && typeof p == "object" && "icon" in p), de = S && r.length > 0 && !d && !!k, Q = ((R) => !R || typeof R != "string" ? !1 : R.startsWith("data:") || R.startsWith("blob:") ? !0 : Wn(R))(y), Z = !!(y && (Q || typeof y == "object" && "icon" in y));
|
|
32593
32593
|
return /* @__PURE__ */ b("div", { className: "ui-relative ui-flex ui-w-full ui-min-w-0 ui-flex-col ui-gap-1", children: [
|
|
32594
32594
|
e && /* @__PURE__ */ o("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: /* @__PURE__ */ o("label", { className: "ui-text-label-md-regular ui-font-label-md-semibold ui-text-primary", children: e }) }),
|
|
32595
32595
|
/* @__PURE__ */ b(
|
|
@@ -32598,7 +32598,7 @@ const U5 = ({
|
|
|
32598
32598
|
ref: u,
|
|
32599
32599
|
"data-dropdown-input": "true",
|
|
32600
32600
|
className: N(
|
|
32601
|
-
`ui-group ui-flex ${
|
|
32601
|
+
`ui-group ui-flex ${K[g]} ui-cursor-pointer ui-items-center ui-gap-1 ui-rounded-control-sm ui-border ui-border-default ui-bg-fill ui-py-4 ui-transition-[padding] ui-duration-150 ui-ease-out focus-within:ui-border-brand hover:ui-border-brand`,
|
|
32602
32602
|
I ? "ui-relative ui-min-w-0 ui-overflow-hidden" : ""
|
|
32603
32603
|
),
|
|
32604
32604
|
onPointerDownCapture: (R) => {
|
|
@@ -32662,7 +32662,7 @@ const U5 = ({
|
|
|
32662
32662
|
ref: D,
|
|
32663
32663
|
className: "ui-flex ui-min-w-0 ui-flex-1 ui-items-center ui-gap-1 ui-overflow-hidden",
|
|
32664
32664
|
children: [
|
|
32665
|
-
|
|
32665
|
+
X.map((R) => _(R, "-v")),
|
|
32666
32666
|
ie > 0 && /* @__PURE__ */ o(
|
|
32667
32667
|
"div",
|
|
32668
32668
|
{
|
|
@@ -32695,7 +32695,7 @@ const U5 = ({
|
|
|
32695
32695
|
ref: j,
|
|
32696
32696
|
className: "ui-pointer-events-none ui-absolute ui-left-0 ui-top-0 ui-z-[-1] ui-flex ui-max-w-none ui-flex-nowrap ui-gap-1 ui-opacity-0",
|
|
32697
32697
|
"aria-hidden": !0,
|
|
32698
|
-
children: r.map((R) =>
|
|
32698
|
+
children: r.map((R) => _(R, "-m"))
|
|
32699
32699
|
}
|
|
32700
32700
|
)
|
|
32701
32701
|
] }) : /* @__PURE__ */ o(
|
|
@@ -32703,13 +32703,13 @@ const U5 = ({
|
|
|
32703
32703
|
{
|
|
32704
32704
|
ref: J,
|
|
32705
32705
|
className: `ui-flex ui-flex-wrap ui-gap-1 ${P ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
|
|
32706
|
-
children: r.map((R) =>
|
|
32706
|
+
children: r.map((R) => _(R))
|
|
32707
32707
|
}
|
|
32708
32708
|
) : /* @__PURE__ */ o("span", { className: "ui-min-w-0 ui-flex-1 ui-text-body-md-regular ui-text-tertiary", children: n }),
|
|
32709
32709
|
/* @__PURE__ */ b("div", { className: "ui-ml-auto ui-flex ui-shrink-0 ui-items-center ui-gap-8", children: [
|
|
32710
32710
|
ne && /* @__PURE__ */ o(Le, { name: p, size: "sm", color: "secondary" }),
|
|
32711
32711
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-items-center ui-gap-8", children: [
|
|
32712
|
-
|
|
32712
|
+
de && /* @__PURE__ */ b(et, { children: [
|
|
32713
32713
|
ne && /* @__PURE__ */ o(
|
|
32714
32714
|
"div",
|
|
32715
32715
|
{
|
|
@@ -32770,12 +32770,12 @@ const U5 = ({
|
|
|
32770
32770
|
popoverStructured: !0,
|
|
32771
32771
|
popoverTitle: w,
|
|
32772
32772
|
popoverShowCloseButton: !0,
|
|
32773
|
-
children: /* @__PURE__ */ o("div", { className: "ui-w-full ui-min-w-0", children: /* @__PURE__ */ o("p", { className: "ui-m-0 ui-whitespace-normal ui-break-words ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children:
|
|
32773
|
+
children: /* @__PURE__ */ o("div", { className: "ui-w-full ui-min-w-0", children: /* @__PURE__ */ o("p", { className: "ui-m-0 ui-whitespace-normal ui-break-words ui-text-heading-h6 ui-font-heading-h6 ui-leading-heading-h6 ui-tracking-heading-h6 ui-text-primary", children: G }) })
|
|
32774
32774
|
}
|
|
32775
32775
|
)
|
|
32776
32776
|
] });
|
|
32777
32777
|
}, Qt = Zt((e, n) => {
|
|
32778
|
-
const r =
|
|
32778
|
+
const r = U("");
|
|
32779
32779
|
P5(e, r);
|
|
32780
32780
|
const t = B5(e), i = $5(e), a = e.name, {
|
|
32781
32781
|
label: s,
|
|
@@ -32812,16 +32812,16 @@ const U5 = ({
|
|
|
32812
32812
|
footer: J,
|
|
32813
32813
|
defaultOptionSelected: q,
|
|
32814
32814
|
withCheckbox: se,
|
|
32815
|
-
checkboxSelectionTone:
|
|
32816
|
-
checkboxPosition:
|
|
32817
|
-
checkboxListDensity:
|
|
32815
|
+
checkboxSelectionTone: ce,
|
|
32816
|
+
checkboxPosition: K,
|
|
32817
|
+
checkboxListDensity: _,
|
|
32818
32818
|
pill: le,
|
|
32819
32819
|
listVariant: ie,
|
|
32820
|
-
searchMultiCheckbox:
|
|
32820
|
+
searchMultiCheckbox: X,
|
|
32821
32821
|
searchMultiCheckboxHeader: re,
|
|
32822
|
-
searchMultiCheckboxShowSearch:
|
|
32822
|
+
searchMultiCheckboxShowSearch: G,
|
|
32823
32823
|
searchMultiCheckboxShowClearSelection: ne,
|
|
32824
|
-
onToggleChange:
|
|
32824
|
+
onToggleChange: de,
|
|
32825
32825
|
filtersTitle: ve,
|
|
32826
32826
|
tooltipProps: Q,
|
|
32827
32827
|
loading: Z,
|
|
@@ -32832,7 +32832,7 @@ const U5 = ({
|
|
|
32832
32832
|
preventDeselectFromOptionsList: pe,
|
|
32833
32833
|
showTriggerClearButton: he,
|
|
32834
32834
|
userHideAvatars: me
|
|
32835
|
-
} = t, Me =
|
|
32835
|
+
} = t, Me = U(null), [je, we] = F(p), [Pe, Ve] = F(null), [Ge, Be] = F(!1), Qe = !P && q, Se = W(() => P ? y : Qe ? [
|
|
32836
32836
|
{
|
|
32837
32837
|
...{
|
|
32838
32838
|
label: k || "Selecciona una opción",
|
|
@@ -32895,21 +32895,21 @@ const U5 = ({
|
|
|
32895
32895
|
preventDeselectFromOptionsList: pe
|
|
32896
32896
|
}), xe = (Ce, He) => {
|
|
32897
32897
|
if (P) {
|
|
32898
|
-
const Xe = ge(_e),
|
|
32898
|
+
const Xe = ge(_e), fe = Ce[L];
|
|
32899
32899
|
if (He) {
|
|
32900
|
-
if (!Xe.includes(
|
|
32901
|
-
const be = [...Xe,
|
|
32900
|
+
if (!Xe.includes(fe)) {
|
|
32901
|
+
const be = [...Xe, fe];
|
|
32902
32902
|
ee(be);
|
|
32903
32903
|
}
|
|
32904
32904
|
} else {
|
|
32905
|
-
const be = Xe.filter((te) => te !==
|
|
32905
|
+
const be = Xe.filter((te) => te !== fe);
|
|
32906
32906
|
ee(be);
|
|
32907
32907
|
}
|
|
32908
32908
|
}
|
|
32909
32909
|
}, Te = T((Ce, He) => {
|
|
32910
32910
|
if (Ce === He || String(Ce) === String(He)) return !0;
|
|
32911
|
-
const Xe = Number(Ce),
|
|
32912
|
-
return !isNaN(Xe) && !isNaN(
|
|
32911
|
+
const Xe = Number(Ce), fe = Number(He);
|
|
32912
|
+
return !isNaN(Xe) && !isNaN(fe) && Xe === fe;
|
|
32913
32913
|
}, []);
|
|
32914
32914
|
oe(() => {
|
|
32915
32915
|
if (lt && x !== void 0)
|
|
@@ -32918,8 +32918,8 @@ const U5 = ({
|
|
|
32918
32918
|
else {
|
|
32919
32919
|
const Ce = Array.isArray(x) ? x[0] : x, He = Se.find((Xe) => Ce == null ? !1 : Te(Xe[M], Ce) || Te(Xe[L], Ce));
|
|
32920
32920
|
if (He) {
|
|
32921
|
-
const Xe = He.icon || p,
|
|
32922
|
-
we((be) => be !== Xe ? Xe : be), Ve((be) => be !==
|
|
32921
|
+
const Xe = He.icon || p, fe = He.iconColor || null;
|
|
32922
|
+
we((be) => be !== Xe ? Xe : be), Ve((be) => be !== fe ? fe : be), ie === "user" && we(
|
|
32923
32923
|
He.avatarUrl ? He.avatarUrl : p
|
|
32924
32924
|
);
|
|
32925
32925
|
}
|
|
@@ -33003,10 +33003,10 @@ const U5 = ({
|
|
|
33003
33003
|
}, [Ke, Ae, P, A, ke]);
|
|
33004
33004
|
const We = (Ce) => {
|
|
33005
33005
|
if (P) {
|
|
33006
|
-
const Xe = ge(_e).filter((
|
|
33006
|
+
const Xe = ge(_e).filter((fe) => fe !== Ce);
|
|
33007
33007
|
if (ee(Xe), $e && xe) {
|
|
33008
|
-
const
|
|
33009
|
-
|
|
33008
|
+
const fe = y.find((be) => be[L] === Ce);
|
|
33009
|
+
fe && xe(fe, !1);
|
|
33010
33010
|
}
|
|
33011
33011
|
}
|
|
33012
33012
|
}, vt = T(() => {
|
|
@@ -33043,11 +33043,11 @@ const U5 = ({
|
|
|
33043
33043
|
return Ce ? Ce[L] === -1 || Ce[M] === -1 || Ce[M] === "-1" ? k : String(Ce[M] || "") : "";
|
|
33044
33044
|
}
|
|
33045
33045
|
}, Ut = () => {
|
|
33046
|
-
var
|
|
33046
|
+
var fe, be;
|
|
33047
33047
|
if (!Ae || !Je.top) return null;
|
|
33048
33048
|
const Ce = st ? "animate-dropdown-exit" : "animate-dropdown-enter";
|
|
33049
33049
|
if (ie === "search-multi-checkbox" && P) {
|
|
33050
|
-
const te =
|
|
33050
|
+
const te = X, Fe = ((fe = te == null ? void 0 : te.search) == null ? void 0 : fe.show) ?? G ?? !0, Ye = ((be = te == null ? void 0 : te.search) == null ? void 0 : be.placeholder) ?? m, Ue = (te == null ? void 0 : te.header) ?? re, Vt = (te == null ? void 0 : te.showClearSelection) ?? ne ?? !0, ut = Se.filter(
|
|
33051
33051
|
(it) => !it.isGroupTitle && it[L] !== -1 && it[L] !== "-1" && String(it[L]) !== "-1"
|
|
33052
33052
|
), vn = ge(_e), dt = ut.map((it) => ({
|
|
33053
33053
|
id: String(it[L]),
|
|
@@ -33179,7 +33179,7 @@ const U5 = ({
|
|
|
33179
33179
|
className: N(
|
|
33180
33180
|
"custom-scrollbar ui-flex ui-max-h-[176px] ui-w-full ui-flex-col ui-overflow-y-auto ui-px-8 ui-pb-8 ui-will-change-transform",
|
|
33181
33181
|
O ? "ui-pt-0" : "ui-pt-8",
|
|
33182
|
-
se &&
|
|
33182
|
+
se && _ === "compact" ? "ui-gap-4" : "ui-gap-8"
|
|
33183
33183
|
),
|
|
33184
33184
|
children: [
|
|
33185
33185
|
ie === "filters" && ve && /* @__PURE__ */ o("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: ve }),
|
|
@@ -33200,9 +33200,9 @@ const U5 = ({
|
|
|
33200
33200
|
icon: te.icon,
|
|
33201
33201
|
iconColor: te.iconColor,
|
|
33202
33202
|
avatarUrl: te.avatarUrl,
|
|
33203
|
-
checkboxSelectionTone:
|
|
33204
|
-
checkboxPosition:
|
|
33205
|
-
compact:
|
|
33203
|
+
checkboxSelectionTone: ce,
|
|
33204
|
+
checkboxPosition: K,
|
|
33205
|
+
compact: _ === "compact",
|
|
33206
33206
|
checkboxProps: {
|
|
33207
33207
|
checked: Fe,
|
|
33208
33208
|
onChange: (Ue) => xe == null ? void 0 : xe(te, Ue),
|
|
@@ -33255,7 +33255,7 @@ const U5 = ({
|
|
|
33255
33255
|
description: te.description,
|
|
33256
33256
|
checked: te.checked ?? !1,
|
|
33257
33257
|
disabled: te.disabled,
|
|
33258
|
-
onChange: (Ue) =>
|
|
33258
|
+
onChange: (Ue) => de == null ? void 0 : de(te, Ue)
|
|
33259
33259
|
},
|
|
33260
33260
|
Ye
|
|
33261
33261
|
);
|
|
@@ -33288,7 +33288,7 @@ const U5 = ({
|
|
|
33288
33288
|
description: te.description,
|
|
33289
33289
|
checked: te.checked ?? Fe,
|
|
33290
33290
|
disabled: te.disabled,
|
|
33291
|
-
onChange: (Ue) =>
|
|
33291
|
+
onChange: (Ue) => de == null ? void 0 : de(te, Ue)
|
|
33292
33292
|
},
|
|
33293
33293
|
Ye
|
|
33294
33294
|
);
|
|
@@ -35335,7 +35335,7 @@ const k1 = "emoji-picker-recent", K5 = ({
|
|
|
35335
35335
|
buttonClassName: C,
|
|
35336
35336
|
tooltip: v
|
|
35337
35337
|
}) => {
|
|
35338
|
-
const [x, w] = F("recent"), [S, k] = F(""), [y, M] = F([]), [L, I] = F(d || ""), D =
|
|
35338
|
+
const [x, w] = F("recent"), [S, k] = F(""), [y, M] = F([]), [L, I] = F(d || ""), D = U(null), j = U({}), O = U(!1), V = U(null);
|
|
35339
35339
|
oe(() => {
|
|
35340
35340
|
if (!O.current)
|
|
35341
35341
|
if (O.current = !0, a && a.length > 0)
|
|
@@ -35385,8 +35385,8 @@ const k1 = "emoji-picker-recent", K5 = ({
|
|
|
35385
35385
|
let J = "recent";
|
|
35386
35386
|
Object.entries(j.current).forEach(([q, se]) => {
|
|
35387
35387
|
if (se) {
|
|
35388
|
-
const
|
|
35389
|
-
Y >=
|
|
35388
|
+
const ce = se.offsetTop - B.offsetTop;
|
|
35389
|
+
Y >= ce - 50 && (J = q);
|
|
35390
35390
|
}
|
|
35391
35391
|
}), w(J);
|
|
35392
35392
|
};
|
|
@@ -35712,7 +35712,7 @@ const k1 = "emoji-picker-recent", K5 = ({
|
|
|
35712
35712
|
color: d = "secondary",
|
|
35713
35713
|
closeOnApply: f = !0
|
|
35714
35714
|
}) => {
|
|
35715
|
-
const c =
|
|
35715
|
+
const c = U(null), {
|
|
35716
35716
|
filterStates: p,
|
|
35717
35717
|
handleFilterChange: h,
|
|
35718
35718
|
handleClear: m,
|
|
@@ -36088,55 +36088,55 @@ const c7 = {
|
|
|
36088
36088
|
list: a,
|
|
36089
36089
|
events: s
|
|
36090
36090
|
}, l) {
|
|
36091
|
-
var J, q, se,
|
|
36092
|
-
const u = { ...c7, ...t }, d = { ...d7, ...u.icon }, f = { ...h7, ...i }, c = { ...p7, ...a }, { accept: p, maxFileSizeBytes: h, maxFiles: m, maxFilesPerBatch: g, multiple: C } = f, { items: v, rowSize: x, onRemoveItem: w, onRetryItem: S, onDeleteItem: k } = c, { onFilesAccepted: y, onValidationError: M } = s ?? {}, L = u.error ?? null, I =
|
|
36091
|
+
var J, q, se, ce;
|
|
36092
|
+
const u = { ...c7, ...t }, d = { ...d7, ...u.icon }, f = { ...h7, ...i }, c = { ...p7, ...a }, { accept: p, maxFileSizeBytes: h, maxFiles: m, maxFilesPerBatch: g, multiple: C } = f, { items: v, rowSize: x, onRemoveItem: w, onRetryItem: S, onDeleteItem: k } = c, { onFilesAccepted: y, onValidationError: M } = s ?? {}, L = u.error ?? null, I = U(null), [D, j] = F(!1), O = D && !L && !r, V = T((K) => {
|
|
36093
36093
|
var le;
|
|
36094
|
-
const
|
|
36095
|
-
return
|
|
36094
|
+
const _ = (le = K.dataTransfer) == null ? void 0 : le.types;
|
|
36095
|
+
return _ ? Array.from(_).some((ie) => ie === "Files" || ie === "application/x-moz-file") : !1;
|
|
36096
36096
|
}, []);
|
|
36097
36097
|
oe(() => {
|
|
36098
36098
|
r && j(!1);
|
|
36099
36099
|
}, [r]);
|
|
36100
36100
|
const E = T(() => {
|
|
36101
|
-
var
|
|
36102
|
-
r || (
|
|
36101
|
+
var K;
|
|
36102
|
+
r || (K = I.current) == null || K.click();
|
|
36103
36103
|
}, [r]), P = T(
|
|
36104
|
-
(
|
|
36105
|
-
if (r ||
|
|
36106
|
-
const
|
|
36107
|
-
if (m != null &&
|
|
36104
|
+
(K) => {
|
|
36105
|
+
if (r || K.length === 0) return;
|
|
36106
|
+
const _ = (v == null ? void 0 : v.length) ?? 0;
|
|
36107
|
+
if (m != null && _ >= m) {
|
|
36108
36108
|
M == null || M(
|
|
36109
36109
|
`Solo puedes tener hasta ${m} archivo(s); ya alcanzaste el límite.`,
|
|
36110
|
-
|
|
36110
|
+
K
|
|
36111
36111
|
);
|
|
36112
36112
|
return;
|
|
36113
36113
|
}
|
|
36114
|
-
if (g != null &&
|
|
36114
|
+
if (g != null && K.length > g) {
|
|
36115
36115
|
M == null || M(
|
|
36116
36116
|
`Solo puedes agregar hasta ${g} archivo(s) a la vez.`,
|
|
36117
|
-
|
|
36117
|
+
K
|
|
36118
36118
|
);
|
|
36119
36119
|
return;
|
|
36120
36120
|
}
|
|
36121
36121
|
const le = [];
|
|
36122
|
-
for (const
|
|
36123
|
-
if (p && !u7(
|
|
36124
|
-
M == null || M(`El archivo «${
|
|
36122
|
+
for (const X of K) {
|
|
36123
|
+
if (p && !u7(X, p)) {
|
|
36124
|
+
M == null || M(`El archivo «${X.name}» no tiene un tipo permitido.`, [X]);
|
|
36125
36125
|
continue;
|
|
36126
36126
|
}
|
|
36127
|
-
if (h != null &&
|
|
36128
|
-
M == null || M(`El archivo «${
|
|
36127
|
+
if (h != null && X.size > h) {
|
|
36128
|
+
M == null || M(`El archivo «${X.name}» supera el peso máximo permitido.`, [X]);
|
|
36129
36129
|
continue;
|
|
36130
36130
|
}
|
|
36131
|
-
le.push(
|
|
36131
|
+
le.push(X);
|
|
36132
36132
|
}
|
|
36133
36133
|
let ie = le;
|
|
36134
36134
|
if (m != null && le.length > 0) {
|
|
36135
|
-
const
|
|
36136
|
-
if (le.length >
|
|
36137
|
-
const re = le.slice(
|
|
36138
|
-
ie = le.slice(0,
|
|
36139
|
-
`Solo ${
|
|
36135
|
+
const X = m - _;
|
|
36136
|
+
if (le.length > X) {
|
|
36137
|
+
const re = le.slice(X);
|
|
36138
|
+
ie = le.slice(0, X), M == null || M(
|
|
36139
|
+
`Solo ${X === 1 ? "cabía" : "cabían"} ${X} archivo(s) más (máximo ${m} en total).`,
|
|
36140
36140
|
re
|
|
36141
36141
|
);
|
|
36142
36142
|
}
|
|
@@ -36154,23 +36154,23 @@ const c7 = {
|
|
|
36154
36154
|
M
|
|
36155
36155
|
]
|
|
36156
36156
|
), z = T(
|
|
36157
|
-
(
|
|
36158
|
-
const
|
|
36159
|
-
|
|
36157
|
+
(K) => {
|
|
36158
|
+
const _ = K.target.files;
|
|
36159
|
+
_ != null && _.length && P(Array.from(_)), K.target.value = "";
|
|
36160
36160
|
},
|
|
36161
36161
|
[P]
|
|
36162
36162
|
), A = T(
|
|
36163
|
-
(
|
|
36164
|
-
if (
|
|
36165
|
-
const
|
|
36166
|
-
|
|
36163
|
+
(K) => {
|
|
36164
|
+
if (K.preventDefault(), K.stopPropagation(), j(!1), r) return;
|
|
36165
|
+
const _ = K.dataTransfer.files;
|
|
36166
|
+
_ != null && _.length && P(Array.from(_));
|
|
36167
36167
|
},
|
|
36168
36168
|
[r, P]
|
|
36169
36169
|
), H = T(
|
|
36170
|
-
(
|
|
36171
|
-
if (
|
|
36170
|
+
(K) => {
|
|
36171
|
+
if (K.preventDefault(), K.stopPropagation(), !r && V(K)) {
|
|
36172
36172
|
try {
|
|
36173
|
-
|
|
36173
|
+
K.dataTransfer.dropEffect = "copy";
|
|
36174
36174
|
} catch {
|
|
36175
36175
|
}
|
|
36176
36176
|
j(!0);
|
|
@@ -36178,14 +36178,14 @@ const c7 = {
|
|
|
36178
36178
|
},
|
|
36179
36179
|
[r, V]
|
|
36180
36180
|
), B = T(
|
|
36181
|
-
(
|
|
36182
|
-
|
|
36181
|
+
(K) => {
|
|
36182
|
+
K.preventDefault(), K.stopPropagation(), !r && V(K) && j(!0);
|
|
36183
36183
|
},
|
|
36184
36184
|
[r, V]
|
|
36185
|
-
), Y = T((
|
|
36186
|
-
|
|
36187
|
-
const
|
|
36188
|
-
|
|
36185
|
+
), Y = T((K) => {
|
|
36186
|
+
K.preventDefault(), K.stopPropagation();
|
|
36187
|
+
const _ = K.relatedTarget;
|
|
36188
|
+
_ && K.currentTarget.contains(_) || j(!1);
|
|
36189
36189
|
}, []);
|
|
36190
36190
|
return /* @__PURE__ */ b("div", { ref: l, className: N("ui-flex ui-w-full ui-flex-col ui-gap-16", n), children: [
|
|
36191
36191
|
/* @__PURE__ */ b(
|
|
@@ -36233,7 +36233,7 @@ const c7 = {
|
|
|
36233
36233
|
colorDuotonePrimary: (J = d.duotone) == null ? void 0 : J.primary,
|
|
36234
36234
|
colorDuotoneSecondary: (q = d.duotone) == null ? void 0 : q.secondary,
|
|
36235
36235
|
opacityDuotonePrimary: (se = d.duotone) == null ? void 0 : se.opacityPrimary,
|
|
36236
|
-
opacityDuotoneSecondary: (
|
|
36236
|
+
opacityDuotoneSecondary: (ce = d.duotone) == null ? void 0 : ce.opacitySecondary
|
|
36237
36237
|
}
|
|
36238
36238
|
) }),
|
|
36239
36239
|
/* @__PURE__ */ b("div", { className: "ui-flex ui-w-full ui-flex-col ui-items-center ui-text-center", children: [
|
|
@@ -36248,8 +36248,8 @@ const c7 = {
|
|
|
36248
36248
|
size: "sm",
|
|
36249
36249
|
disabled: r,
|
|
36250
36250
|
className: "ui-w-[151px]",
|
|
36251
|
-
onClick: (
|
|
36252
|
-
|
|
36251
|
+
onClick: (K) => {
|
|
36252
|
+
K.stopPropagation(), E();
|
|
36253
36253
|
},
|
|
36254
36254
|
children: u.selectLabel
|
|
36255
36255
|
}
|
|
@@ -36271,16 +36271,16 @@ const c7 = {
|
|
|
36271
36271
|
{
|
|
36272
36272
|
className: "ui-m-0 ui-flex ui-list-none ui-flex-col ui-gap-16 ui-p-0",
|
|
36273
36273
|
"aria-label": "Archivos en cola de carga",
|
|
36274
|
-
children: v.map((
|
|
36274
|
+
children: v.map((K) => /* @__PURE__ */ o("li", { className: "ui-block", children: /* @__PURE__ */ o(
|
|
36275
36275
|
ms,
|
|
36276
36276
|
{
|
|
36277
|
-
item:
|
|
36277
|
+
item: K,
|
|
36278
36278
|
rowSize: x,
|
|
36279
36279
|
onRemove: w,
|
|
36280
36280
|
onRetry: S,
|
|
36281
36281
|
onDelete: k
|
|
36282
36282
|
}
|
|
36283
|
-
) },
|
|
36283
|
+
) }, K.id))
|
|
36284
36284
|
}
|
|
36285
36285
|
) : null
|
|
36286
36286
|
] });
|
|
@@ -36337,7 +36337,7 @@ function x7(e, n, r) {
|
|
|
36337
36337
|
return !1;
|
|
36338
36338
|
}
|
|
36339
36339
|
const y7 = () => {
|
|
36340
|
-
const e =
|
|
36340
|
+
const e = U(null), [n, r] = F(!1), [t, i] = F(/* @__PURE__ */ new Set()), a = T(() => {
|
|
36341
36341
|
const y = window.getSelection();
|
|
36342
36342
|
if (!y || y.rangeCount === 0) return;
|
|
36343
36343
|
const M = y.getRangeAt(0), L = w7(M, e.current);
|
|
@@ -37071,7 +37071,7 @@ const D7 = (e, n, r) => {
|
|
|
37071
37071
|
return n ? D7(n.r, n.g, n.b) > 0.5 ? "#000000" : "#FFFFFF" : "#000000";
|
|
37072
37072
|
}, bs = Zt(
|
|
37073
37073
|
({ color: e = "", label: n, error: r, helperText: t, disabled: i = !1, onColorChange: a, onClick: s, className: l }, u) => {
|
|
37074
|
-
const d =
|
|
37074
|
+
const d = U(null), f = e ? kt(e) : "", c = f ? Pt(f) : !1, p = c ? f : "#000000", h = W(() => {
|
|
37075
37075
|
if (!(!c || i))
|
|
37076
37076
|
return T7(p);
|
|
37077
37077
|
}, [p, c, i]), m = (v) => {
|
|
@@ -37137,7 +37137,7 @@ const D7 = (e, n, r) => {
|
|
|
37137
37137
|
);
|
|
37138
37138
|
bs.displayName = "ColorInput";
|
|
37139
37139
|
const V7 = ({ color: e, onColorChange: n, className: r }) => {
|
|
37140
|
-
const t =
|
|
37140
|
+
const t = U(null), i = U(null), [a, s] = F(!1), [l, u] = F(!1), d = N1(e) || { h: 0, s: 100, l: 50 }, [f, c] = F(d.h), [p, h] = F(d.s), [m, g] = F(d.l);
|
|
37141
37141
|
oe(() => {
|
|
37142
37142
|
const I = N1(e);
|
|
37143
37143
|
I && (c(I.h), h(I.s), g(I.l));
|
|
@@ -37274,7 +37274,7 @@ const V7 = ({ color: e, onColorChange: n, className: r }) => {
|
|
|
37274
37274
|
initialRecentColors: n = [],
|
|
37275
37275
|
debounceMs: r = 500
|
|
37276
37276
|
} = {}) => {
|
|
37277
|
-
const [t, i] = F([]), a =
|
|
37277
|
+
const [t, i] = F([]), a = U(null);
|
|
37278
37278
|
oe(() => {
|
|
37279
37279
|
if (n.length > 0) {
|
|
37280
37280
|
const p = n.map((h) => kt(h)).filter((h) => Pt(h));
|
|
@@ -37308,7 +37308,7 @@ const V7 = ({ color: e, onColorChange: n, className: r }) => {
|
|
|
37308
37308
|
}), a.current = null);
|
|
37309
37309
|
},
|
|
37310
37310
|
[e, s]
|
|
37311
|
-
), u =
|
|
37311
|
+
), u = U(null);
|
|
37312
37312
|
oe(() => (u.current = O7((...p) => {
|
|
37313
37313
|
const h = p[0];
|
|
37314
37314
|
h && l(h);
|
|
@@ -38266,95 +38266,95 @@ const Pr = Zt(function({
|
|
|
38266
38266
|
const { min: d, max: f, value: c, step: p = 1 } = n, { onChange: h } = r, { color: m = "brand" } = t ?? {}, {
|
|
38267
38267
|
"aria-label": g = "Selector de rango",
|
|
38268
38268
|
getThumbAriaLabel: C = mf
|
|
38269
|
-
} = i ?? {}, v =
|
|
38269
|
+
} = i ?? {}, v = U(null), x = U(null), w = U(!1), S = U(null), k = U(null), y = U(null), M = U(I1(c, d, f, p)), L = fi(), [I, D] = F(null), j = I1(c, d, f, p);
|
|
38270
38270
|
M.current = j;
|
|
38271
|
-
const O = j.start === j.end, V = T((
|
|
38272
|
-
const re =
|
|
38271
|
+
const O = j.start === j.end, V = T((X) => {
|
|
38272
|
+
const re = X === "start" ? k.current : y.current;
|
|
38273
38273
|
re == null || re.focus({ preventScroll: !0 });
|
|
38274
38274
|
}, []), E = T(
|
|
38275
|
-
(
|
|
38276
|
-
pf(u,
|
|
38275
|
+
(X) => {
|
|
38276
|
+
pf(u, X);
|
|
38277
38277
|
},
|
|
38278
38278
|
[u]
|
|
38279
38279
|
), P = T(
|
|
38280
|
-
(
|
|
38280
|
+
(X) => {
|
|
38281
38281
|
const re = v.current;
|
|
38282
38282
|
if (!re) return d;
|
|
38283
|
-
const
|
|
38284
|
-
return bn(
|
|
38283
|
+
const G = re.getBoundingClientRect(), ne = G.width <= 0 ? 0 : (X - G.left) / G.width, de = d + ui(ne, 0, 1) * (f - d);
|
|
38284
|
+
return bn(de, d, f, p);
|
|
38285
38285
|
},
|
|
38286
38286
|
[f, d, p]
|
|
38287
38287
|
), z = T(
|
|
38288
|
-
(
|
|
38289
|
-
const
|
|
38290
|
-
(
|
|
38288
|
+
(X, re) => {
|
|
38289
|
+
const G = X === "start" ? lf(re, j.end, d, f, p) : uf(j.start, re, d, f, p);
|
|
38290
|
+
(G.start !== j.start || G.end !== j.end) && h(G);
|
|
38291
38291
|
},
|
|
38292
38292
|
[f, d, h, j.end, j.start, p]
|
|
38293
|
-
), A = (
|
|
38294
|
-
if (a ||
|
|
38295
|
-
const re = P(
|
|
38293
|
+
), A = (X) => {
|
|
38294
|
+
if (a || X.button !== 0) return;
|
|
38295
|
+
const re = P(X.clientX);
|
|
38296
38296
|
if (O)
|
|
38297
|
-
w.current = !0, S.current =
|
|
38297
|
+
w.current = !0, S.current = X.clientX, x.current = null, D(null);
|
|
38298
38298
|
else {
|
|
38299
|
-
const
|
|
38300
|
-
z(
|
|
38299
|
+
const G = Math.abs(re - j.start), ne = Math.abs(re - j.end), de = G <= ne ? "start" : "end";
|
|
38300
|
+
z(de, re), x.current = de, D(de);
|
|
38301
38301
|
}
|
|
38302
|
-
|
|
38303
|
-
}, H = (
|
|
38304
|
-
a || re.button !== 0 || (re.stopPropagation(), O ? (w.current = !0, S.current = re.clientX, x.current = null, D(null)) : (x.current =
|
|
38302
|
+
X.currentTarget.setPointerCapture(X.pointerId);
|
|
38303
|
+
}, H = (X) => (re) => {
|
|
38304
|
+
a || re.button !== 0 || (re.stopPropagation(), O ? (w.current = !0, S.current = re.clientX, x.current = null, D(null)) : (x.current = X, D(X)), re.currentTarget.setPointerCapture(re.pointerId));
|
|
38305
38305
|
}, B = T(
|
|
38306
|
-
(
|
|
38306
|
+
(X) => {
|
|
38307
38307
|
if (a) return;
|
|
38308
38308
|
if (w.current && S.current !== null) {
|
|
38309
|
-
const
|
|
38310
|
-
if (Math.abs(
|
|
38311
|
-
const ne =
|
|
38309
|
+
const G = X.clientX - S.current;
|
|
38310
|
+
if (Math.abs(G) >= df) {
|
|
38311
|
+
const ne = G < 0 ? "start" : "end";
|
|
38312
38312
|
x.current = ne, w.current = !1, S.current = null, D(ne), V(ne);
|
|
38313
38313
|
} else
|
|
38314
38314
|
return;
|
|
38315
38315
|
}
|
|
38316
38316
|
const re = x.current;
|
|
38317
|
-
re && z(re, P(
|
|
38317
|
+
re && z(re, P(X.clientX));
|
|
38318
38318
|
},
|
|
38319
38319
|
[z, a, V, P]
|
|
38320
|
-
), Y =
|
|
38320
|
+
), Y = U(z);
|
|
38321
38321
|
Y.current = z;
|
|
38322
|
-
const J =
|
|
38322
|
+
const J = U(P);
|
|
38323
38323
|
J.current = P, oe(() => {
|
|
38324
|
-
const
|
|
38324
|
+
const X = (G) => B(G), re = () => {
|
|
38325
38325
|
if (w.current && x.current === null) {
|
|
38326
|
-
const
|
|
38327
|
-
if (
|
|
38328
|
-
const ne = M.current,
|
|
38329
|
-
|
|
38326
|
+
const G = S.current;
|
|
38327
|
+
if (G !== null) {
|
|
38328
|
+
const ne = M.current, de = J.current(G);
|
|
38329
|
+
de < ne.start ? Y.current("start", de) : de > ne.end && Y.current("end", de);
|
|
38330
38330
|
}
|
|
38331
38331
|
}
|
|
38332
38332
|
w.current = !1, S.current = null, x.current = null, D(null);
|
|
38333
38333
|
};
|
|
38334
|
-
return window.addEventListener("pointermove",
|
|
38335
|
-
window.removeEventListener("pointermove",
|
|
38334
|
+
return window.addEventListener("pointermove", X), window.addEventListener("pointerup", re), window.addEventListener("pointercancel", re), () => {
|
|
38335
|
+
window.removeEventListener("pointermove", X), window.removeEventListener("pointerup", re), window.removeEventListener("pointercancel", re);
|
|
38336
38336
|
};
|
|
38337
38337
|
}, [B]);
|
|
38338
|
-
const q = (
|
|
38339
|
-
const
|
|
38340
|
-
z(
|
|
38341
|
-
}, ie = (
|
|
38338
|
+
const q = (X) => (X - d) / (f - d || 1) * 100, se = q(j.start), ce = q(j.end), K = se, _ = Math.max(0, ce - se), le = (X, re) => {
|
|
38339
|
+
const G = X === "start" ? j.start : j.end;
|
|
38340
|
+
z(X, G + re);
|
|
38341
|
+
}, ie = (X) => (re) => {
|
|
38342
38342
|
if (a) return;
|
|
38343
|
-
const
|
|
38343
|
+
const G = p > 0 ? p : (f - d) / 100;
|
|
38344
38344
|
switch (re.key) {
|
|
38345
38345
|
case "ArrowLeft":
|
|
38346
38346
|
case "ArrowDown":
|
|
38347
|
-
re.preventDefault(), le(
|
|
38347
|
+
re.preventDefault(), le(X, -G);
|
|
38348
38348
|
break;
|
|
38349
38349
|
case "ArrowRight":
|
|
38350
38350
|
case "ArrowUp":
|
|
38351
|
-
re.preventDefault(), le(
|
|
38351
|
+
re.preventDefault(), le(X, G);
|
|
38352
38352
|
break;
|
|
38353
38353
|
case "Home":
|
|
38354
|
-
re.preventDefault(), z(
|
|
38354
|
+
re.preventDefault(), z(X, d);
|
|
38355
38355
|
break;
|
|
38356
38356
|
case "End":
|
|
38357
|
-
re.preventDefault(), z(
|
|
38357
|
+
re.preventDefault(), z(X, f);
|
|
38358
38358
|
break;
|
|
38359
38359
|
}
|
|
38360
38360
|
};
|
|
@@ -38388,25 +38388,25 @@ const Pr = Zt(function({
|
|
|
38388
38388
|
ff[m]
|
|
38389
38389
|
),
|
|
38390
38390
|
style: {
|
|
38391
|
-
left: `${
|
|
38392
|
-
width: `${
|
|
38391
|
+
left: `${K}%`,
|
|
38392
|
+
width: `${_}%`
|
|
38393
38393
|
}
|
|
38394
38394
|
}
|
|
38395
38395
|
),
|
|
38396
|
-
["start", "end"].map((
|
|
38397
|
-
const re =
|
|
38396
|
+
["start", "end"].map((X) => {
|
|
38397
|
+
const re = X === "start" ? se : ce, G = X === "start" ? j.start : j.end, ne = `${L}-${X}`;
|
|
38398
38398
|
return /* @__PURE__ */ o(
|
|
38399
38399
|
"button",
|
|
38400
38400
|
{
|
|
38401
|
-
ref:
|
|
38401
|
+
ref: X === "start" ? k : y,
|
|
38402
38402
|
type: "button",
|
|
38403
38403
|
id: ne,
|
|
38404
38404
|
tabIndex: a ? -1 : 0,
|
|
38405
|
-
"aria-label": C(
|
|
38405
|
+
"aria-label": C(X, G),
|
|
38406
38406
|
"aria-valuemin": d,
|
|
38407
38407
|
"aria-valuemax": f,
|
|
38408
|
-
"aria-valuenow":
|
|
38409
|
-
"aria-valuetext": String(
|
|
38408
|
+
"aria-valuenow": G,
|
|
38409
|
+
"aria-valuetext": String(G),
|
|
38410
38410
|
role: "slider",
|
|
38411
38411
|
disabled: a,
|
|
38412
38412
|
className: N(
|
|
@@ -38414,11 +38414,11 @@ const Pr = Zt(function({
|
|
|
38414
38414
|
"ui-rounded-control-pill ui-border-1 ui-border-default ui-bg-fill-secondary",
|
|
38415
38415
|
"focus-visible:ui-ring-brand ui-p-0 ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-offset-2",
|
|
38416
38416
|
!a && "ui-cursor-grab active:ui-cursor-grabbing",
|
|
38417
|
-
I ===
|
|
38417
|
+
I === X && "ui-z-20"
|
|
38418
38418
|
),
|
|
38419
38419
|
style: { left: `${re}%` },
|
|
38420
|
-
onPointerDown: H(
|
|
38421
|
-
onKeyDown: ie(
|
|
38420
|
+
onPointerDown: H(X),
|
|
38421
|
+
onKeyDown: ie(X),
|
|
38422
38422
|
children: /* @__PURE__ */ o(
|
|
38423
38423
|
"span",
|
|
38424
38424
|
{
|
|
@@ -38430,7 +38430,7 @@ const Pr = Zt(function({
|
|
|
38430
38430
|
}
|
|
38431
38431
|
)
|
|
38432
38432
|
},
|
|
38433
|
-
|
|
38433
|
+
X
|
|
38434
38434
|
);
|
|
38435
38435
|
})
|
|
38436
38436
|
]
|
|
@@ -39189,7 +39189,7 @@ const kn = [
|
|
|
39189
39189
|
}) => {
|
|
39190
39190
|
const [a, s] = F(
|
|
39191
39191
|
e.operator || ""
|
|
39192
|
-
), [l, u] = F(e.value || ""), [d, f] = F(e.value2 || ""), [c, p] = F(!1), h =
|
|
39192
|
+
), [l, u] = F(e.value || ""), [d, f] = F(e.value2 || ""), [c, p] = F(!1), h = U(null);
|
|
39193
39193
|
oe(() => {
|
|
39194
39194
|
const y = h.current;
|
|
39195
39195
|
if (!y) return;
|
|
@@ -39420,7 +39420,7 @@ const kn = [
|
|
|
39420
39420
|
}
|
|
39421
39421
|
) }) }), vs = Zt(
|
|
39422
39422
|
({ columns: e, rows: n, filters: r, onFiltersApply: t, className: i }, a) => {
|
|
39423
|
-
const s =
|
|
39423
|
+
const s = U(null), [l, u] = F(!1), [d, f] = F([]), [c, p] = F(""), h = T(
|
|
39424
39424
|
(L) => {
|
|
39425
39425
|
const I = /* @__PURE__ */ new Set();
|
|
39426
39426
|
return n.forEach((j) => {
|
|
@@ -39718,7 +39718,7 @@ const Ef = ({
|
|
|
39718
39718
|
onFiltersApply: j,
|
|
39719
39719
|
className: O
|
|
39720
39720
|
}) => {
|
|
39721
|
-
const [V, E] = F(""), P = r !== void 0 ? r : V, [z, A] = F([]), [H, B] = F([]), [Y, J] = F(!1), q =
|
|
39721
|
+
const [V, E] = F(""), P = r !== void 0 ? r : V, [z, A] = F([]), [H, B] = F([]), [Y, J] = F(!1), q = U(null), se = U(null), ce = W(
|
|
39722
39722
|
() => ({
|
|
39723
39723
|
selectedIds: w,
|
|
39724
39724
|
selectedRows: k.filter(($) => w.includes($.id))
|
|
@@ -39741,9 +39741,9 @@ const Ef = ({
|
|
|
39741
39741
|
];
|
|
39742
39742
|
A(pe), B(pe);
|
|
39743
39743
|
}, [S]);
|
|
39744
|
-
const
|
|
39744
|
+
const K = ($) => {
|
|
39745
39745
|
r === void 0 && E($), c == null || c($);
|
|
39746
|
-
},
|
|
39746
|
+
}, _ = ($, pe) => {
|
|
39747
39747
|
B(
|
|
39748
39748
|
(he) => he.map((me) => me.id === $ ? { ...me, checked: pe } : me)
|
|
39749
39749
|
);
|
|
@@ -39770,12 +39770,12 @@ const Ef = ({
|
|
|
39770
39770
|
D == null || D(Me);
|
|
39771
39771
|
}
|
|
39772
39772
|
A(H), J(!1), (he = q.current) == null || he.close();
|
|
39773
|
-
},
|
|
39773
|
+
}, X = () => {
|
|
39774
39774
|
var $;
|
|
39775
39775
|
B(z), J(!1), ($ = q.current) == null || $.close();
|
|
39776
39776
|
}, re = () => {
|
|
39777
39777
|
J(!0), B([...z]);
|
|
39778
|
-
},
|
|
39778
|
+
}, G = N("ui-flex ui-flex-col ui-bg-fill", O), ne = {
|
|
39779
39779
|
equals: "=",
|
|
39780
39780
|
notEquals: "≠",
|
|
39781
39781
|
contains: "contiene",
|
|
@@ -39796,7 +39796,7 @@ const Ef = ({
|
|
|
39796
39796
|
lastMonth: "es mes pasado",
|
|
39797
39797
|
thisYear: "es este año",
|
|
39798
39798
|
lastYear: "es año pasado"
|
|
39799
|
-
},
|
|
39799
|
+
}, de = ($) => {
|
|
39800
39800
|
const pe = S.find((Me) => Me.id === $.columnId), he = pe ? typeof pe.header == "string" ? pe.header : pe.id : $.columnId;
|
|
39801
39801
|
if ($.columnId === "_search")
|
|
39802
39802
|
return `"${$.value}"`;
|
|
@@ -39820,7 +39820,7 @@ const Ef = ({
|
|
|
39820
39820
|
}, R = () => {
|
|
39821
39821
|
r === void 0 && E(""), c == null || c("");
|
|
39822
39822
|
}, ue = y.length > 0 || P.trim().length > 0, ae = y.length + (P.trim().length > 0 ? 1 : 0);
|
|
39823
|
-
return /* @__PURE__ */ b("div", { className:
|
|
39823
|
+
return /* @__PURE__ */ b("div", { className: G, children: [
|
|
39824
39824
|
/* @__PURE__ */ b(
|
|
39825
39825
|
"div",
|
|
39826
39826
|
{
|
|
@@ -39854,7 +39854,7 @@ const Ef = ({
|
|
|
39854
39854
|
{
|
|
39855
39855
|
variant: "toggle",
|
|
39856
39856
|
items: H,
|
|
39857
|
-
onToggleChange:
|
|
39857
|
+
onToggleChange: _,
|
|
39858
39858
|
onItemsReorder: le,
|
|
39859
39859
|
enableReordering: !0
|
|
39860
39860
|
}
|
|
@@ -39869,7 +39869,7 @@ const Ef = ({
|
|
|
39869
39869
|
color: "secondary",
|
|
39870
39870
|
size: "xxs",
|
|
39871
39871
|
pill: "md",
|
|
39872
|
-
onClick:
|
|
39872
|
+
onClick: X,
|
|
39873
39873
|
children: "Cancelar"
|
|
39874
39874
|
}
|
|
39875
39875
|
),
|
|
@@ -39897,7 +39897,7 @@ const Ef = ({
|
|
|
39897
39897
|
{
|
|
39898
39898
|
placeholder: n,
|
|
39899
39899
|
value: P,
|
|
39900
|
-
onValueChange:
|
|
39900
|
+
onValueChange: K,
|
|
39901
39901
|
leftSlot: Nn,
|
|
39902
39902
|
size: "xs",
|
|
39903
39903
|
fullWidth: !0
|
|
@@ -39928,7 +39928,7 @@ const Ef = ({
|
|
|
39928
39928
|
size: $.size ?? "xs",
|
|
39929
39929
|
pill: "sm",
|
|
39930
39930
|
leftSlot: $.leftSlot,
|
|
39931
|
-
onClick: () => $.onClick(
|
|
39931
|
+
onClick: () => $.onClick(ce),
|
|
39932
39932
|
disabled: $.disabled,
|
|
39933
39933
|
children: $.label
|
|
39934
39934
|
},
|
|
@@ -39942,7 +39942,7 @@ const Ef = ({
|
|
|
39942
39942
|
size: C.size ?? "xs",
|
|
39943
39943
|
pill: "sm",
|
|
39944
39944
|
leftSlot: C.leftSlot,
|
|
39945
|
-
onClick: () => C.onClick(
|
|
39945
|
+
onClick: () => C.onClick(ce),
|
|
39946
39946
|
disabled: C.requiresSelection !== !1 && x === 0,
|
|
39947
39947
|
children: C.label
|
|
39948
39948
|
}
|
|
@@ -39954,7 +39954,7 @@ const Ef = ({
|
|
|
39954
39954
|
size: "xs",
|
|
39955
39955
|
pill: "sm",
|
|
39956
39956
|
leftSlot: d,
|
|
39957
|
-
onClick: () => m == null ? void 0 : m(
|
|
39957
|
+
onClick: () => m == null ? void 0 : m(ce),
|
|
39958
39958
|
disabled: x === 0,
|
|
39959
39959
|
children: u
|
|
39960
39960
|
}
|
|
@@ -39967,7 +39967,7 @@ const Ef = ({
|
|
|
39967
39967
|
size: g.size ?? "xs",
|
|
39968
39968
|
pill: "sm",
|
|
39969
39969
|
leftSlot: g.leftSlot,
|
|
39970
|
-
onClick: () => g.onClick(
|
|
39970
|
+
onClick: () => g.onClick(ce),
|
|
39971
39971
|
disabled: g.requiresSelection !== !1 && x === 0,
|
|
39972
39972
|
children: g.label
|
|
39973
39973
|
}
|
|
@@ -39979,7 +39979,7 @@ const Ef = ({
|
|
|
39979
39979
|
size: "xs",
|
|
39980
39980
|
pill: "sm",
|
|
39981
39981
|
leftSlot: s,
|
|
39982
|
-
onClick: () => h == null ? void 0 : h(
|
|
39982
|
+
onClick: () => h == null ? void 0 : h(ce),
|
|
39983
39983
|
disabled: x === 0,
|
|
39984
39984
|
children: a
|
|
39985
39985
|
}
|
|
@@ -40007,7 +40007,7 @@ const Ef = ({
|
|
|
40007
40007
|
y.map(($, pe) => /* @__PURE__ */ o(
|
|
40008
40008
|
Un,
|
|
40009
40009
|
{
|
|
40010
|
-
label:
|
|
40010
|
+
label: de($),
|
|
40011
40011
|
color: ve($),
|
|
40012
40012
|
onClose: () => Q($)
|
|
40013
40013
|
},
|
|
@@ -40830,7 +40830,7 @@ const zf = ({
|
|
|
40830
40830
|
isRowEditing: u,
|
|
40831
40831
|
hasColumnMaxWidthAuto: d = !1
|
|
40832
40832
|
}) => {
|
|
40833
|
-
const [f, c] = F(e), [p, h] = F(""), m =
|
|
40833
|
+
const [f, c] = F(e), [p, h] = F(""), m = U(e), g = U(!1), C = r === "selected" && n.editable && n.editable !== "none", v = Nt(
|
|
40834
40834
|
r,
|
|
40835
40835
|
i,
|
|
40836
40836
|
n.locked,
|
|
@@ -41355,7 +41355,7 @@ function Ds({
|
|
|
41355
41355
|
isRowEditing: u,
|
|
41356
41356
|
hasColumnMaxWidthAuto: d = !1
|
|
41357
41357
|
}) {
|
|
41358
|
-
const f =
|
|
41358
|
+
const f = U(null), c = W(() => Qf(e), [e]), p = Nt(
|
|
41359
41359
|
t,
|
|
41360
41360
|
i,
|
|
41361
41361
|
r.locked,
|
|
@@ -42449,7 +42449,7 @@ function Dh({
|
|
|
42449
42449
|
return Fs(q) ? q : { bars: [] };
|
|
42450
42450
|
}, [n, e]), v = (c == null ? void 0 : c.timeline.scale) ?? "day", x = v === "day", w = (c == null ? void 0 : c.appearance.trackMinHeightPx) ?? 44, S = c == null ? void 0 : c.appearance.trackClassName, k = c == null ? void 0 : c.timeline.viewStart, y = c == null ? void 0 : c.timeline.viewEnd, M = (c == null ? void 0 : c.timeline.includeLeadingFullMonth) !== !1, L = c == null ? void 0 : c.timelineSlots, I = W(() => L && L.length > 0 ? L : k == null || y == null ? [] : ai(k, y, v, {
|
|
42451
42451
|
includeLeadingFullMonth: x ? M : void 0
|
|
42452
|
-
}), [L, k, y, v, x, M]), D = !!c && (x ? !!c.dayAxis && c.dayAxis.endExclusiveMs > c.dayAxis.startMs : Number.isFinite(Ze(c.timeline.viewStart)) && Number.isFinite(Ze(c.timeline.viewEnd)) && Ze(c.timeline.viewEnd) > Ze(c.timeline.viewStart) && I.length > 0), j = W(() => c ? x && c.dayAxis && c.dayAxis.endExclusiveMs > c.dayAxis.startMs ? { startMs: c.dayAxis.startMs, endExclusiveMs: c.dayAxis.endExclusiveMs } : or(I, v) : null, [c, x, I, v]), O = (j == null ? void 0 : j.startMs) ?? NaN, V = (j == null ? void 0 : j.endExclusiveMs) ?? NaN, E = (c == null ? void 0 : c.timeline.columnWidthPx) ?? en(v), P = E != null && E > 0 ? Sn(E) : void 0, z = P != null && I.length > 0 ? I.length * P : void 0, A = c == null ? void 0 : c.horizontalScroll, H = (J = c == null ? void 0 : c.horizontalScroll) == null ? void 0 : J.registerBodyTimeline, B =
|
|
42452
|
+
}), [L, k, y, v, x, M]), D = !!c && (x ? !!c.dayAxis && c.dayAxis.endExclusiveMs > c.dayAxis.startMs : Number.isFinite(Ze(c.timeline.viewStart)) && Number.isFinite(Ze(c.timeline.viewEnd)) && Ze(c.timeline.viewEnd) > Ze(c.timeline.viewStart) && I.length > 0), j = W(() => c ? x && c.dayAxis && c.dayAxis.endExclusiveMs > c.dayAxis.startMs ? { startMs: c.dayAxis.startMs, endExclusiveMs: c.dayAxis.endExclusiveMs } : or(I, v) : null, [c, x, I, v]), O = (j == null ? void 0 : j.startMs) ?? NaN, V = (j == null ? void 0 : j.endExclusiveMs) ?? NaN, E = (c == null ? void 0 : c.timeline.columnWidthPx) ?? en(v), P = E != null && E > 0 ? Sn(E) : void 0, z = P != null && I.length > 0 ? I.length * P : void 0, A = c == null ? void 0 : c.horizontalScroll, H = (J = c == null ? void 0 : c.horizontalScroll) == null ? void 0 : J.registerBodyTimeline, B = U(null);
|
|
42453
42453
|
if (Rt(() => {
|
|
42454
42454
|
const q = B.current;
|
|
42455
42455
|
if (!(!q || !H))
|
|
@@ -42457,11 +42457,11 @@ function Dh({
|
|
|
42457
42457
|
}, [H]), Rt(() => {
|
|
42458
42458
|
const q = B.current;
|
|
42459
42459
|
if (!q || !(A != null && A.onBodyWheel)) return;
|
|
42460
|
-
const se = A.onBodyWheel,
|
|
42461
|
-
se(
|
|
42460
|
+
const se = A.onBodyWheel, ce = (K) => {
|
|
42461
|
+
se(K);
|
|
42462
42462
|
};
|
|
42463
|
-
return q.addEventListener("wheel",
|
|
42464
|
-
q.removeEventListener("wheel",
|
|
42463
|
+
return q.addEventListener("wheel", ce, { passive: !1 }), () => {
|
|
42464
|
+
q.removeEventListener("wheel", ce);
|
|
42465
42465
|
};
|
|
42466
42466
|
}, [A == null ? void 0 : A.onBodyWheel]), !c || !D)
|
|
42467
42467
|
return /* @__PURE__ */ o("td", { className: p, ...h, onClick: (q) => pt(q, s), children: /* @__PURE__ */ o(
|
|
@@ -42516,32 +42516,32 @@ function Dh({
|
|
|
42516
42516
|
}
|
|
42517
42517
|
),
|
|
42518
42518
|
/* @__PURE__ */ o("div", { className: "ui-pointer-events-none ui-absolute ui-inset-0 ui-z-[1] ui-flex ui-items-stretch ui-px-0 ui-py-1", children: C.bars.map((q) => {
|
|
42519
|
-
const se = typeof q.start == "number" ? q.start : Ze(q.start),
|
|
42520
|
-
if (!Number.isFinite(se) || !Number.isFinite(
|
|
42521
|
-
const
|
|
42522
|
-
if (!
|
|
42523
|
-
const
|
|
42519
|
+
const se = typeof q.start == "number" ? q.start : Ze(q.start), ce = typeof q.end == "number" ? q.end : Ze(q.end);
|
|
42520
|
+
if (!Number.isFinite(se) || !Number.isFinite(ce) || ce <= se) return null;
|
|
42521
|
+
const K = uh(O, V, se, ce);
|
|
42522
|
+
if (!K) return null;
|
|
42523
|
+
const _ = Ih[q.colorToken ?? "brand"], le = typeof q.progress == "number" ? Math.min(100, Math.max(0, q.progress)) : void 0;
|
|
42524
42524
|
return /* @__PURE__ */ o(
|
|
42525
42525
|
"button",
|
|
42526
42526
|
{
|
|
42527
42527
|
type: "button",
|
|
42528
42528
|
className: N(
|
|
42529
42529
|
"focus-visible:ui-ring-border-brand ui-pointer-events-auto ui-absolute ui-top-1/2 ui-box-border ui-max-h-[70%] ui-min-h-6 -ui-translate-y-1/2 ui-overflow-hidden ui-rounded-md ui-text-left ui-outline-none focus-visible:ui-ring-2",
|
|
42530
|
-
|
|
42530
|
+
_,
|
|
42531
42531
|
i === "selected" && !d && "ui-ring-border-brand ui-ring-1"
|
|
42532
42532
|
),
|
|
42533
42533
|
style: {
|
|
42534
|
-
left: `${
|
|
42535
|
-
width: `${
|
|
42534
|
+
left: `${K.leftPct}%`,
|
|
42535
|
+
width: `${K.widthPct}%`
|
|
42536
42536
|
},
|
|
42537
42537
|
"aria-label": q.label ?? q.id,
|
|
42538
42538
|
onClick: (ie) => {
|
|
42539
|
-
var
|
|
42540
|
-
ie.stopPropagation(), (re = (
|
|
42539
|
+
var X, re;
|
|
42540
|
+
ie.stopPropagation(), (re = (X = c.events).onBarClick) == null || re.call(X, { row: Y, bar: q });
|
|
42541
42541
|
},
|
|
42542
42542
|
onKeyDown: (ie) => {
|
|
42543
|
-
var
|
|
42544
|
-
(ie.key === "Enter" || ie.key === " ") && (ie.preventDefault(), ie.stopPropagation(), (re = (
|
|
42543
|
+
var X, re;
|
|
42544
|
+
(ie.key === "Enter" || ie.key === " ") && (ie.preventDefault(), ie.stopPropagation(), (re = (X = c.events).onBarClick) == null || re.call(X, { row: Y, bar: q }));
|
|
42545
42545
|
},
|
|
42546
42546
|
children: le !== void 0 ? /* @__PURE__ */ b("span", { className: "ui-relative ui-block ui-h-full ui-w-full", children: [
|
|
42547
42547
|
/* @__PURE__ */ o(
|
|
@@ -42668,17 +42668,17 @@ const Th = ({
|
|
|
42668
42668
|
hasColumnMaxWidthAuto: k = !1
|
|
42669
42669
|
}) => {
|
|
42670
42670
|
var Me, je;
|
|
42671
|
-
const y =
|
|
42671
|
+
const y = U(null), [M, L] = F(!1), [I, D] = F(!1), [j, O] = F(!1), V = U(0), E = U(0), P = U(0), z = U(80), A = U(null), H = U(C), B = U(e.id), Y = U(!1), J = U(), q = U(), se = U(null);
|
|
42672
42672
|
oe(() => {
|
|
42673
42673
|
H.current = C, B.current = e.id, Y.current = I;
|
|
42674
42674
|
}, [C, e.id, I]);
|
|
42675
|
-
const
|
|
42676
|
-
let ie,
|
|
42677
|
-
|
|
42678
|
-
const re = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN,
|
|
42675
|
+
const ce = e.width !== void 0, K = p && !ce, _ = e.minWidth ?? Kn, le = K ? e.minWidth ?? Pi : 0;
|
|
42676
|
+
let ie, X;
|
|
42677
|
+
K ? (ie = le, X = le) : k ? e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (ie = void 0, X = e.minWidth ?? Oo) : (ie = typeof e.width == "number" || typeof e.width == "string" ? e.width : _, X = e.minWidth ?? (e.width !== void 0 ? 0 : Kn)) : e.maxWidth === "auto" && (e.width === void 0 || typeof e.width != "number") ? (ie = "100%", X = e.minWidth ?? 0) : ce ? (ie = e.width, X = e.minWidth ?? 0) : (ie = _, X = _);
|
|
42678
|
+
const re = typeof e.width == "number" ? e.width : typeof e.width == "string" ? parseFloat(e.width) : NaN, G = K ? le : e.maxWidth === "auto" ? void 0 : e.maxWidth ?? (Number.isFinite(re) ? re : void 0), ne = ce || ot(e, k), de = e.type === "gantt", ve = N(
|
|
42679
42679
|
"ui-group 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",
|
|
42680
42680
|
"ui-transition-colors ui-duration-150",
|
|
42681
|
-
|
|
42681
|
+
de ? "ui-box-border ui-h-auto ui-px-0 ui-py-0 ui-align-top" : "ui-h-12 ui-px-4 ui-py-3",
|
|
42682
42682
|
"ui-border-b ui-border-default",
|
|
42683
42683
|
// Fondo para todas las celdas
|
|
42684
42684
|
"ui-bg-surface",
|
|
@@ -42781,21 +42781,21 @@ const Th = ({
|
|
|
42781
42781
|
className: N(
|
|
42782
42782
|
ve,
|
|
42783
42783
|
"ui-relative",
|
|
42784
|
-
ne && !
|
|
42784
|
+
ne && !de && "ui-overflow-hidden",
|
|
42785
42785
|
// Sticky sin z-index: el tbody pinta encima del thead (orden DOM). z-30 alinea con checkbox en TableHeader.
|
|
42786
42786
|
// Columnas locked/actions llevan z-[51] en baseClasses.
|
|
42787
42787
|
c && !l && !p && "ui-sticky ui-top-0 ui-isolate ui-z-[30]"
|
|
42788
42788
|
),
|
|
42789
42789
|
style: {
|
|
42790
|
-
minWidth:
|
|
42791
|
-
maxWidth:
|
|
42790
|
+
minWidth: X,
|
|
42791
|
+
maxWidth: G,
|
|
42792
42792
|
width: ie,
|
|
42793
42793
|
...l && { left: d },
|
|
42794
42794
|
...p && f !== void 0 && { right: f },
|
|
42795
|
-
...
|
|
42795
|
+
...de && { minHeight: Rr }
|
|
42796
42796
|
},
|
|
42797
42797
|
children: [
|
|
42798
|
-
|
|
42798
|
+
de ? /* @__PURE__ */ o("div", { className: "ui-box-border ui-flex ui-h-full ui-min-h-0 ui-w-full ui-min-w-0 ui-flex-col", children: e.header }) : /* @__PURE__ */ b(
|
|
42799
42799
|
"div",
|
|
42800
42800
|
{
|
|
42801
42801
|
className: N(
|
|
@@ -43496,12 +43496,12 @@ const Eh = Us, Ph = ({
|
|
|
43496
43496
|
rowsDataKey: H,
|
|
43497
43497
|
isRowSelectionDisabled: B
|
|
43498
43498
|
}) => {
|
|
43499
|
-
const Y = n ?? [], J = e.filter((re) => re.visible !== !1), q = J.some((re) => re.maxWidth === "auto"), se =
|
|
43499
|
+
const Y = n ?? [], J = e.filter((re) => re.visible !== !1), q = J.some((re) => re.maxWidth === "auto"), se = U(/* @__PURE__ */ new Map()), ce = U(null), K = U(null), _ = Y.length === 0 && !r;
|
|
43500
43500
|
Rt(() => {
|
|
43501
|
-
if (
|
|
43501
|
+
if (_ || !ce.current || !K.current) return;
|
|
43502
43502
|
const re = () => {
|
|
43503
|
-
const ne =
|
|
43504
|
-
if (!ne || !
|
|
43503
|
+
const ne = ce.current, de = K.current;
|
|
43504
|
+
if (!ne || !de) return;
|
|
43505
43505
|
const ve = se.current;
|
|
43506
43506
|
ve.clear(), ne.querySelectorAll("th[data-column-id]").forEach((ae) => {
|
|
43507
43507
|
const $ = ae.dataset.columnId;
|
|
@@ -43512,23 +43512,23 @@ const Eh = Us, Ph = ({
|
|
|
43512
43512
|
...Q.filter((ae) => !ae.locked)
|
|
43513
43513
|
];
|
|
43514
43514
|
let R = 0;
|
|
43515
|
-
|
|
43515
|
+
de.style.setProperty("--table-sticky-left-selection", "0px"), i != null && i.enabled && (R += 48), de.style.setProperty("--table-sticky-left-expand", `${R}px`), l && (R += 48);
|
|
43516
43516
|
for (const ae of Z)
|
|
43517
|
-
ae.locked ? (
|
|
43517
|
+
ae.locked ? (de.style.setProperty(`--table-sticky-left-${ae.id}`, `${R}px`), R += ve.get(String(ae.id)) ?? 150) : de.style.removeProperty(`--table-sticky-left-${ae.id}`);
|
|
43518
43518
|
let ue = 0;
|
|
43519
43519
|
for (let ae = Z.length - 1; ae >= 0; ae--) {
|
|
43520
43520
|
const $ = Z[ae];
|
|
43521
|
-
$.type === "actions" ? (
|
|
43521
|
+
$.type === "actions" ? (de.style.setProperty(`--table-sticky-right-${$.id}`, `${ue}px`), ue += ve.get(String($.id)) ?? 120) : de.style.removeProperty(`--table-sticky-right-${$.id}`);
|
|
43522
43522
|
}
|
|
43523
43523
|
};
|
|
43524
43524
|
re();
|
|
43525
|
-
const
|
|
43526
|
-
return
|
|
43527
|
-
}, [e, i == null ? void 0 : i.enabled, l,
|
|
43525
|
+
const G = new ResizeObserver(re);
|
|
43526
|
+
return G.observe(ce.current), () => G.disconnect();
|
|
43527
|
+
}, [e, i == null ? void 0 : i.enabled, l, _, r, H]);
|
|
43528
43528
|
const le = (i != null && i.enabled ? 48 : 0) + (l ? 48 : 0) + J.reduce(
|
|
43529
|
-
(re,
|
|
43530
|
-
|
|
43531
|
-
|
|
43529
|
+
(re, G) => re + Pf(
|
|
43530
|
+
G,
|
|
43531
|
+
G.type === "actions",
|
|
43532
43532
|
q
|
|
43533
43533
|
),
|
|
43534
43534
|
0
|
|
@@ -43539,14 +43539,14 @@ const Eh = Us, Ph = ({
|
|
|
43539
43539
|
p && "ui-table-hover",
|
|
43540
43540
|
h && "ui-table-dense",
|
|
43541
43541
|
v
|
|
43542
|
-
),
|
|
43542
|
+
), X = N(
|
|
43543
43543
|
"ui-w-full ui-min-w-0 ui-h-full ui-overflow-x-auto ui-overflow-y-auto custom-scrollbar",
|
|
43544
43544
|
/** Evita desfase entre `<thead>` y `<tbody>` cuando aparece scrollbar vertical (misma anchura útil). */
|
|
43545
43545
|
"[scrollbar-gutter:stable]",
|
|
43546
43546
|
"ui-pb-16"
|
|
43547
43547
|
// padding-bottom para crear espacio arriba del scrollbar horizontal
|
|
43548
43548
|
);
|
|
43549
|
-
return /* @__PURE__ */ b("div", { className:
|
|
43549
|
+
return /* @__PURE__ */ b("div", { className: X, children: [
|
|
43550
43550
|
/* @__PURE__ */ b("style", { children: [
|
|
43551
43551
|
f && `
|
|
43552
43552
|
td[data-column-id="${f}"],
|
|
@@ -43560,10 +43560,10 @@ const Eh = Us, Ph = ({
|
|
|
43560
43560
|
}
|
|
43561
43561
|
`
|
|
43562
43562
|
] }),
|
|
43563
|
-
!
|
|
43563
|
+
!_ && /* @__PURE__ */ b(
|
|
43564
43564
|
"table",
|
|
43565
43565
|
{
|
|
43566
|
-
ref:
|
|
43566
|
+
ref: K,
|
|
43567
43567
|
className: ie,
|
|
43568
43568
|
style: u ? q ? { minWidth: le } : { minWidth: "max-content" } : void 0,
|
|
43569
43569
|
children: [
|
|
@@ -43571,20 +43571,20 @@ const Eh = Us, Ph = ({
|
|
|
43571
43571
|
(i == null ? void 0 : i.enabled) && /* @__PURE__ */ o("col", { style: { width: 48, minWidth: 48 } }),
|
|
43572
43572
|
l && /* @__PURE__ */ o("col", { style: { width: 48, minWidth: 48 } }),
|
|
43573
43573
|
J.map((re) => {
|
|
43574
|
-
const
|
|
43574
|
+
const G = Mt(
|
|
43575
43575
|
re,
|
|
43576
43576
|
0,
|
|
43577
43577
|
void 0,
|
|
43578
43578
|
re.type === "actions",
|
|
43579
43579
|
q
|
|
43580
|
-
), { width: ne, minWidth:
|
|
43581
|
-
return /* @__PURE__ */ o("col", { style: { width: ne, minWidth:
|
|
43580
|
+
), { width: ne, minWidth: de } = G.style || {};
|
|
43581
|
+
return /* @__PURE__ */ o("col", { style: { width: ne, minWidth: de } }, re.id);
|
|
43582
43582
|
})
|
|
43583
43583
|
] }),
|
|
43584
43584
|
(Y.length > 0 || r) && /* @__PURE__ */ o(
|
|
43585
43585
|
Eh,
|
|
43586
43586
|
{
|
|
43587
|
-
ref:
|
|
43587
|
+
ref: ce,
|
|
43588
43588
|
columnWidthsRef: se,
|
|
43589
43589
|
columns: e,
|
|
43590
43590
|
sortConfig: a,
|
|
@@ -43636,7 +43636,7 @@ const Eh = Us, Ph = ({
|
|
|
43636
43636
|
]
|
|
43637
43637
|
}
|
|
43638
43638
|
),
|
|
43639
|
-
|
|
43639
|
+
_ && t && /* @__PURE__ */ o(Gs, { ...t })
|
|
43640
43640
|
] });
|
|
43641
43641
|
}, A1 = ({
|
|
43642
43642
|
selectedCount: e,
|
|
@@ -44527,7 +44527,7 @@ const mp = ({
|
|
|
44527
44527
|
onEditModeChange: J,
|
|
44528
44528
|
onSuccessComplete: q
|
|
44529
44529
|
}) => {
|
|
44530
|
-
const se =
|
|
44530
|
+
const se = U(null), [ce, K] = F(null), _ = U(/* @__PURE__ */ new Set()), le = U(/* @__PURE__ */ new Set()), ie = rp({
|
|
44531
44531
|
configKey: y,
|
|
44532
44532
|
persistConfig: M,
|
|
44533
44533
|
queryPersist: L,
|
|
@@ -44535,18 +44535,18 @@ const mp = ({
|
|
|
44535
44535
|
initialSort: u,
|
|
44536
44536
|
initialFilters: d,
|
|
44537
44537
|
onConfigChange: I
|
|
44538
|
-
}),
|
|
44538
|
+
}), X = M && y && L ? ie.filters ?? d : d, re = M && y ? ie.columns : e, G = W(() => re.some((fe) => fe.editable && fe.editable !== "none"), [re]), ne = W(
|
|
44539
44539
|
() => op({
|
|
44540
44540
|
effectiveColumns: re,
|
|
44541
|
-
hasEditableColumns:
|
|
44541
|
+
hasEditableColumns: G,
|
|
44542
44542
|
showEditActions: k
|
|
44543
44543
|
}),
|
|
44544
|
-
[re,
|
|
44545
|
-
),
|
|
44544
|
+
[re, G, k]
|
|
44545
|
+
), de = W(
|
|
44546
44546
|
() => ap(ne),
|
|
44547
44547
|
[ne]
|
|
44548
|
-
), { columns: ve, handleSetVisibility: Q, handleToggleLock: Z, handleResize: R, setColumnsOrder: ue } = Jh(
|
|
44549
|
-
() => (
|
|
44548
|
+
), { columns: ve, handleSetVisibility: Q, handleToggleLock: Z, handleResize: R, setColumnsOrder: ue } = Jh(de), { sortConfig: ae, handleSort: $ } = Fh(u), pe = W(
|
|
44549
|
+
() => (fe) => fe.disabled !== !0 && !$1(fe, a),
|
|
44550
44550
|
[a]
|
|
44551
44551
|
), {
|
|
44552
44552
|
selectedIds: he,
|
|
@@ -44559,9 +44559,9 @@ const mp = ({
|
|
|
44559
44559
|
} = Uh(n, i == null ? void 0 : i.multiple, {
|
|
44560
44560
|
isRowSelectable: pe
|
|
44561
44561
|
}), { handleRowExpand: Ge, applyExpandedState: Be } = Wh(), { handleCellFocus: Qe, handleCellBlur: Se, isCellFocused: $e } = ep(), { filters: Ie, setAllFilters: Ae } = tp({
|
|
44562
|
-
initialFilters:
|
|
44563
|
-
onFiltersChange: (
|
|
44564
|
-
O == null || O(
|
|
44562
|
+
initialFilters: X,
|
|
44563
|
+
onFiltersChange: (fe) => {
|
|
44564
|
+
O == null || O(fe), M && y && L && ie.updateFilters(fe);
|
|
44565
44565
|
}
|
|
44566
44566
|
}), { toggleRowEdit: st, applyEditState: ct } = np({
|
|
44567
44567
|
externalEditingRowIds: B,
|
|
@@ -44571,18 +44571,18 @@ const mp = ({
|
|
|
44571
44571
|
() => (M && y && L ? ie.searchQuery : "") ?? ""
|
|
44572
44572
|
);
|
|
44573
44573
|
oe(() => {
|
|
44574
|
-
const
|
|
44574
|
+
const fe = (be) => {
|
|
44575
44575
|
se.current && !se.current.contains(be.target) && Se();
|
|
44576
44576
|
};
|
|
44577
|
-
return document.addEventListener("mousedown",
|
|
44578
|
-
document.removeEventListener("mousedown",
|
|
44577
|
+
return document.addEventListener("mousedown", fe), () => {
|
|
44578
|
+
document.removeEventListener("mousedown", fe);
|
|
44579
44579
|
};
|
|
44580
44580
|
}, [Se]);
|
|
44581
|
-
const qe =
|
|
44581
|
+
const qe = U(Ie.length), Je = U(_e);
|
|
44582
44582
|
oe(() => {
|
|
44583
44583
|
var te;
|
|
44584
|
-
const
|
|
44585
|
-
s != null && s.enabled && (
|
|
44584
|
+
const fe = qe.current !== Ie.length, be = Je.current !== _e;
|
|
44585
|
+
s != null && s.enabled && (fe || be) && s.currentPage !== 1 && ((te = s == null ? void 0 : s.onPageChange) == null || te.call(s, 1)), qe.current = Ie.length, Je.current = _e;
|
|
44586
44586
|
}, [Ie.length, _e, s]);
|
|
44587
44587
|
const lt = W(
|
|
44588
44588
|
() => up({
|
|
@@ -44630,8 +44630,8 @@ const mp = ({
|
|
|
44630
44630
|
const Ue = ((te = rt[0]) == null ? void 0 : te.id) ?? "";
|
|
44631
44631
|
return `${s.currentPage ?? 1}-${rt.length}-${Ue}`;
|
|
44632
44632
|
}
|
|
44633
|
-
const
|
|
44634
|
-
return `${rt.length}-${
|
|
44633
|
+
const fe = ((Fe = rt[0]) == null ? void 0 : Fe.id) ?? "", be = ((Ye = rt[rt.length - 1]) == null ? void 0 : Ye.id) ?? "";
|
|
44634
|
+
return `${rt.length}-${fe}-${be}`;
|
|
44635
44635
|
}, [s == null ? void 0 : s.enabled, s == null ? void 0 : s.currentPage, rt]), _t = W(
|
|
44636
44636
|
() => hp({
|
|
44637
44637
|
empty: t,
|
|
@@ -44651,21 +44651,21 @@ const mp = ({
|
|
|
44651
44651
|
lt.length,
|
|
44652
44652
|
tt.length
|
|
44653
44653
|
]
|
|
44654
|
-
), Ot = (
|
|
44655
|
-
const be = $h(ae,
|
|
44656
|
-
$(
|
|
44657
|
-
}, $t = (
|
|
44658
|
-
}, ke = (
|
|
44659
|
-
const be = ve.find((Fe) => Fe.id ===
|
|
44654
|
+
), Ot = (fe) => {
|
|
44655
|
+
const be = $h(ae, fe);
|
|
44656
|
+
$(fe), j == null || j(be), M && y && be && ie.updateSort(be);
|
|
44657
|
+
}, $t = (fe) => {
|
|
44658
|
+
}, ke = (fe) => {
|
|
44659
|
+
const be = ve.find((Fe) => Fe.id === fe);
|
|
44660
44660
|
if (!be || !ws(be, p))
|
|
44661
44661
|
return;
|
|
44662
44662
|
const te = !be.locked;
|
|
44663
|
-
Z(
|
|
44664
|
-
}, ye = (
|
|
44665
|
-
R(
|
|
44666
|
-
}, ee = (
|
|
44667
|
-
if (ve.find((te) => te.id ===
|
|
44668
|
-
const te = se.current.querySelector(`th[data-column-id="${
|
|
44663
|
+
Z(fe), M && y && ie.updateColumnLock(fe, te);
|
|
44664
|
+
}, ye = (fe, be, te) => {
|
|
44665
|
+
R(fe, be), V == null || V(fe, be), M && y && ie.updateColumnWidth(fe, be, te);
|
|
44666
|
+
}, ee = (fe) => {
|
|
44667
|
+
if (ve.find((te) => te.id === fe) && se.current) {
|
|
44668
|
+
const te = se.current.querySelector(`th[data-column-id="${fe}"]`), Fe = se.current.querySelectorAll(`td[data-column-id="${fe}"]`);
|
|
44669
44669
|
if (te || Fe.length > 0) {
|
|
44670
44670
|
let Ye = 0;
|
|
44671
44671
|
if (te) {
|
|
@@ -44676,55 +44676,55 @@ const mp = ({
|
|
|
44676
44676
|
Ye = Math.max(Ye, Vt.scrollWidth + 32);
|
|
44677
44677
|
});
|
|
44678
44678
|
const Ue = Math.min(Math.max(Ye, 100), 500);
|
|
44679
|
-
R(
|
|
44679
|
+
R(fe, Ue), V == null || V(fe, Ue);
|
|
44680
44680
|
}
|
|
44681
44681
|
}
|
|
44682
|
-
}, ge = (
|
|
44683
|
-
|
|
44684
|
-
}, xe = (
|
|
44682
|
+
}, ge = (fe, be) => {
|
|
44683
|
+
K(be ? fe : null);
|
|
44684
|
+
}, xe = (fe) => {
|
|
44685
44685
|
var be;
|
|
44686
|
-
Ke(
|
|
44687
|
-
}, Te = (
|
|
44688
|
-
Q(
|
|
44689
|
-
}, We = (
|
|
44690
|
-
|
|
44686
|
+
Ke(fe), (be = l == null ? void 0 : l.onSearch) == null || be.call(l, fe), M && y && L && ie.setSearchQuery(fe);
|
|
44687
|
+
}, Te = (fe, be) => {
|
|
44688
|
+
Q(fe, be), P == null || P(fe, be), M && y && ie.updateColumnVisibility(fe, be);
|
|
44689
|
+
}, We = (fe) => {
|
|
44690
|
+
fe.forEach(({ columnId: be, visible: te }) => {
|
|
44691
44691
|
Q(be, te), P == null || P(be, te);
|
|
44692
|
-
}), M && y && ie.updateMultipleColumnVisibility(
|
|
44693
|
-
}, vt = (
|
|
44694
|
-
const be =
|
|
44695
|
-
ue(be), E == null || E(
|
|
44696
|
-
}, Dt = (
|
|
44697
|
-
Ge(
|
|
44698
|
-
}, Tt = (
|
|
44699
|
-
|
|
44700
|
-
const Fe = n.find((Ye) => Ye.id ===
|
|
44701
|
-
H && H(
|
|
44692
|
+
}), M && y && ie.updateMultipleColumnVisibility(fe);
|
|
44693
|
+
}, vt = (fe) => {
|
|
44694
|
+
const be = fe.map((te) => te.id);
|
|
44695
|
+
ue(be), E == null || E(fe), M && y && ie.updateColumnOrder(fe);
|
|
44696
|
+
}, Dt = (fe) => {
|
|
44697
|
+
Ge(fe), A == null || A(fe);
|
|
44698
|
+
}, Tt = (fe, be, te) => {
|
|
44699
|
+
_.current.add(fe);
|
|
44700
|
+
const Fe = n.find((Ye) => Ye.id === fe);
|
|
44701
|
+
H && H(fe, be, te, Fe);
|
|
44702
44702
|
};
|
|
44703
44703
|
oe(() => {
|
|
44704
44704
|
if (!q) return;
|
|
44705
|
-
const
|
|
44705
|
+
const fe = new Set(B || []), be = le.current, te = [];
|
|
44706
44706
|
if (be.forEach((Fe) => {
|
|
44707
|
-
|
|
44707
|
+
fe.has(Fe) || te.push(Fe);
|
|
44708
44708
|
}), te.length > 0) {
|
|
44709
|
-
const Fe = te.filter((Ye) =>
|
|
44709
|
+
const Fe = te.filter((Ye) => _.current.has(Ye));
|
|
44710
44710
|
Fe.length > 0 && (q(Fe), Fe.forEach((Ye) => {
|
|
44711
|
-
|
|
44711
|
+
_.current.delete(Ye);
|
|
44712
44712
|
}));
|
|
44713
44713
|
}
|
|
44714
|
-
le.current = new Set(
|
|
44714
|
+
le.current = new Set(fe);
|
|
44715
44715
|
}, [B, q]);
|
|
44716
|
-
const Jt = (
|
|
44716
|
+
const Jt = (fe) => {
|
|
44717
44717
|
var be;
|
|
44718
|
-
(be = s == null ? void 0 : s.onPageChange) == null || be.call(s,
|
|
44719
|
-
}, Ut = (
|
|
44718
|
+
(be = s == null ? void 0 : s.onPageChange) == null || be.call(s, fe);
|
|
44719
|
+
}, Ut = (fe) => {
|
|
44720
44720
|
var be;
|
|
44721
|
-
(be = s == null ? void 0 : s.onPageSizeChange) == null || be.call(s,
|
|
44721
|
+
(be = s == null ? void 0 : s.onPageSizeChange) == null || be.call(s, fe);
|
|
44722
44722
|
}, wt = N(
|
|
44723
44723
|
"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",
|
|
44724
44724
|
g && "ui-border ui-border-default",
|
|
44725
44725
|
D
|
|
44726
|
-
), Ce = (
|
|
44727
|
-
Ae(
|
|
44726
|
+
), Ce = (fe) => {
|
|
44727
|
+
Ae(fe), !((l == null ? void 0 : l.internalFilters) ?? !1) && O && O(fe);
|
|
44728
44728
|
}, He = (i == null ? void 0 : i.selectionBarPlacement) ?? "inline", Xe = !!(i != null && i.showSelectionBar && me > 0);
|
|
44729
44729
|
return /* @__PURE__ */ b("div", { ref: se, className: wt, children: [
|
|
44730
44730
|
l && /* @__PURE__ */ o(
|
|
@@ -44753,13 +44753,13 @@ const mp = ({
|
|
|
44753
44753
|
loading: r,
|
|
44754
44754
|
empty: _t,
|
|
44755
44755
|
selection: i,
|
|
44756
|
-
isRowSelectionDisabled: a ? (
|
|
44756
|
+
isRowSelectionDisabled: a ? (fe) => $1(fe, a) : void 0,
|
|
44757
44757
|
sort: ae,
|
|
44758
44758
|
filters: Ie,
|
|
44759
44759
|
expandable: f,
|
|
44760
44760
|
resizable: c,
|
|
44761
44761
|
columnsLockable: p,
|
|
44762
|
-
resizeHoverColumnId:
|
|
44762
|
+
resizeHoverColumnId: ce,
|
|
44763
44763
|
striped: h,
|
|
44764
44764
|
bordered: m,
|
|
44765
44765
|
hoverable: C,
|
|
@@ -45630,8 +45630,8 @@ function zp({
|
|
|
45630
45630
|
gantt: n,
|
|
45631
45631
|
...r
|
|
45632
45632
|
}) {
|
|
45633
|
-
var
|
|
45634
|
-
const t = n.timeline.modifierWheelZoom === !0, i = t ? hh(n.timeline) : n.timeline, [a, s] = F(i), l = t ? a : n.timeline, u =
|
|
45633
|
+
var X, re, G, ne, de, ve;
|
|
45634
|
+
const t = n.timeline.modifierWheelZoom === !0, i = t ? hh(n.timeline) : n.timeline, [a, s] = F(i), l = t ? a : n.timeline, u = U(l);
|
|
45635
45635
|
u.current = l;
|
|
45636
45636
|
const d = W(() => Z1(l), [l]), f = W(
|
|
45637
45637
|
() => `${l.viewStart}|${l.viewEnd}|${l.scale ?? "day"}|${l.includeLeadingFullMonth !== !1}|${l.columnWidthPx ?? ""}|${l.columnMaxWidthPx ?? ""}`,
|
|
@@ -45645,11 +45645,11 @@ function zp({
|
|
|
45645
45645
|
]
|
|
45646
45646
|
), c = W(() => Ep(e, n), [e, n]), p = W(() => oh(), []), h = W(
|
|
45647
45647
|
() => ({ ...Ap, ...n.appearance }),
|
|
45648
|
-
[(
|
|
45648
|
+
[(X = n.appearance) == null ? void 0 : X.trackMinHeightPx, (re = n.appearance) == null ? void 0 : re.trackClassName]
|
|
45649
45649
|
), m = W(
|
|
45650
45650
|
() => ({ ...Rp, ...n.events }),
|
|
45651
|
-
[(
|
|
45652
|
-
), g =
|
|
45651
|
+
[(G = n.events) == null ? void 0 : G.onBarClick, (ne = n.events) == null ? void 0 : ne.onTimelineChange]
|
|
45652
|
+
), g = U((de = n.events) == null ? void 0 : de.onTimelineChange);
|
|
45653
45653
|
g.current = (ve = n.events) == null ? void 0 : ve.onTimelineChange, oe(() => {
|
|
45654
45654
|
var Q;
|
|
45655
45655
|
t && ((Q = g.current) == null || Q.call(g, Z1(a)));
|
|
@@ -45666,7 +45666,7 @@ function zp({
|
|
|
45666
45666
|
l.viewEnd,
|
|
45667
45667
|
l.scale,
|
|
45668
45668
|
l.includeLeadingFullMonth
|
|
45669
|
-
]), x =
|
|
45669
|
+
]), x = U(0), w = U(2), S = U(null), k = U(0);
|
|
45670
45670
|
x.current = v.length;
|
|
45671
45671
|
const y = Sn(
|
|
45672
45672
|
l.columnWidthPx ?? en(C)
|
|
@@ -45695,7 +45695,7 @@ function zp({
|
|
|
45695
45695
|
l.viewStart,
|
|
45696
45696
|
l.viewEnd,
|
|
45697
45697
|
l.includeLeadingFullMonth
|
|
45698
|
-
]), D =
|
|
45698
|
+
]), D = U(null), j = U(0), O = U(/* @__PURE__ */ new Set()), V = U(null), E = U(0), P = U(null), z = U({ anchorFraction: 0.5, xInViewport: 0 }), A = U({ ctrlKey: !1, metaKey: !1, altKey: !1 }), H = U(null), B = T(() => {
|
|
45699
45699
|
P.current = null;
|
|
45700
45700
|
const Q = E.current;
|
|
45701
45701
|
if (E.current = 0, Q === 0) return;
|
|
@@ -45778,19 +45778,19 @@ function zp({
|
|
|
45778
45778
|
return H.current = Z, Q.style.transform = `translate3d(-${Z}px,0,0)`, Q.style.willChange = "transform", () => {
|
|
45779
45779
|
O.current.delete(Q);
|
|
45780
45780
|
};
|
|
45781
|
-
}, []),
|
|
45781
|
+
}, []), ce = T(
|
|
45782
45782
|
(Q, Z) => {
|
|
45783
45783
|
const R = D.current, ue = Z ?? (R ? Math.max(0, R.scrollWidth - R.clientWidth) : 0), ae = Number.isFinite(Q) ? Q : 0, $ = Math.max(0, Math.min(ue, ae)), pe = !R || Math.abs(R.scrollLeft - $) < 0.5;
|
|
45784
45784
|
Math.abs(j.current - $) < 0.5 && pe && H.current === $ || (j.current = $, Y($), R && R.scrollLeft !== $ && (R.scrollLeft = $), q());
|
|
45785
45785
|
},
|
|
45786
45786
|
[Y, q]
|
|
45787
|
-
),
|
|
45787
|
+
), K = T(
|
|
45788
45788
|
(Q) => {
|
|
45789
45789
|
const Z = Q.currentTarget.scrollLeft;
|
|
45790
45790
|
j.current = Z, Y(Z), q();
|
|
45791
45791
|
},
|
|
45792
45792
|
[Y, q]
|
|
45793
|
-
),
|
|
45793
|
+
), _ = T(
|
|
45794
45794
|
(Q) => {
|
|
45795
45795
|
if (t && (Q.ctrlKey || Q.metaKey)) {
|
|
45796
45796
|
Q.preventDefault(), Q.stopPropagation(), u.current;
|
|
@@ -45811,9 +45811,9 @@ function zp({
|
|
|
45811
45811
|
return;
|
|
45812
45812
|
}
|
|
45813
45813
|
const Z = Q.deltaX !== 0 ? Q.deltaX : Q.shiftKey && Q.deltaY !== 0 ? Q.deltaY : 0;
|
|
45814
|
-
Z !== 0 && (Q.preventDefault(),
|
|
45814
|
+
Z !== 0 && (Q.preventDefault(), ce(j.current + Z));
|
|
45815
45815
|
},
|
|
45816
|
-
[t,
|
|
45816
|
+
[t, ce, B]
|
|
45817
45817
|
);
|
|
45818
45818
|
Rt(() => {
|
|
45819
45819
|
const Q = D.current, Z = V.current;
|
|
@@ -45831,18 +45831,18 @@ function zp({
|
|
|
45831
45831
|
);
|
|
45832
45832
|
if (me != null && Number.isFinite(me)) {
|
|
45833
45833
|
const Me = me - Z.xInViewport;
|
|
45834
|
-
|
|
45834
|
+
ce(Me, Math.max(0, ae - Q.clientWidth));
|
|
45835
45835
|
return;
|
|
45836
45836
|
}
|
|
45837
45837
|
}
|
|
45838
45838
|
const $ = Ze(l.viewStart), he = Ze(l.viewEnd) - $;
|
|
45839
45839
|
if (he > 0 && Q.scrollWidth > 0) {
|
|
45840
45840
|
const Me = (Z.anchorMs - $) / he * Q.scrollWidth - Z.xInViewport;
|
|
45841
|
-
|
|
45841
|
+
ce(Me, Math.max(0, Q.scrollWidth - Q.clientWidth));
|
|
45842
45842
|
return;
|
|
45843
45843
|
}
|
|
45844
45844
|
}
|
|
45845
|
-
|
|
45845
|
+
ce(j.current);
|
|
45846
45846
|
}, [
|
|
45847
45847
|
f,
|
|
45848
45848
|
t,
|
|
@@ -45851,17 +45851,17 @@ function zp({
|
|
|
45851
45851
|
l.scale,
|
|
45852
45852
|
l.columnWidthPx,
|
|
45853
45853
|
v,
|
|
45854
|
-
|
|
45854
|
+
ce
|
|
45855
45855
|
]);
|
|
45856
45856
|
const le = W(
|
|
45857
45857
|
() => ({
|
|
45858
45858
|
headerViewportRef: D,
|
|
45859
|
-
setScrollLeft:
|
|
45860
|
-
onHeaderViewportScroll:
|
|
45861
|
-
onBodyWheel:
|
|
45859
|
+
setScrollLeft: ce,
|
|
45860
|
+
onHeaderViewportScroll: K,
|
|
45861
|
+
onBodyWheel: _,
|
|
45862
45862
|
registerBodyTimeline: se
|
|
45863
45863
|
}),
|
|
45864
|
-
[
|
|
45864
|
+
[ce, K, _, se]
|
|
45865
45865
|
), ie = W(
|
|
45866
45866
|
() => ({
|
|
45867
45867
|
timeline: d,
|
|
@@ -46157,7 +46157,7 @@ class $p {
|
|
|
46157
46157
|
}
|
|
46158
46158
|
}
|
|
46159
46159
|
const xt = new $p(), qC = () => xt, r0 = () => {
|
|
46160
|
-
const [e, n] = F([]), r =
|
|
46160
|
+
const [e, n] = F([]), r = U(/* @__PURE__ */ new Map()), t = U(null);
|
|
46161
46161
|
return oe(() => {
|
|
46162
46162
|
const a = xt.getListeners();
|
|
46163
46163
|
if (t.current) {
|
|
@@ -46439,7 +46439,7 @@ const Ft = new Zp(), YC = () => Ft, a0 = () => {
|
|
|
46439
46439
|
dismissGroup: (i) => Ft.dismissGroup(i)
|
|
46440
46440
|
};
|
|
46441
46441
|
}, s0 = Ne.memo(({ message: e }) => {
|
|
46442
|
-
const [n, r] = F(!0), t =
|
|
46442
|
+
const [n, r] = F(!0), t = U(null);
|
|
46443
46443
|
oe(() => (e.isLeaving && (t.current = setTimeout(() => {
|
|
46444
46444
|
r(!1);
|
|
46445
46445
|
}, 300)), () => {
|
|
@@ -46506,7 +46506,7 @@ const KC = () => {
|
|
|
46506
46506
|
const { messagesByPosition: e } = r0();
|
|
46507
46507
|
return tn(/* @__PURE__ */ o(Ro, { messages: e }), document.body);
|
|
46508
46508
|
}, l0 = Ne.memo(({ group: e }) => {
|
|
46509
|
-
const { notification: n, count: r, isLeaving: t, color: i } = e, [a, s] = F(!0), l =
|
|
46509
|
+
const { notification: n, count: r, isLeaving: t, color: i } = e, [a, s] = F(!0), l = U(null);
|
|
46510
46510
|
oe(() => (t && (l.current = setTimeout(() => {
|
|
46511
46511
|
s(!1);
|
|
46512
46512
|
}, 300)), () => {
|
|
@@ -46673,7 +46673,7 @@ const XC = () => {
|
|
|
46673
46673
|
k,
|
|
46674
46674
|
y && /* @__PURE__ */ o(At, { vertical: !0, className: "ui-h-8 ui-border-on-color ui-opacity-30" }),
|
|
46675
46675
|
/* @__PURE__ */ o("div", { className: "ui-flex ui-min-w-max ui-items-center ui-gap-16", children: w.map((H, B) => {
|
|
46676
|
-
var Y, J, q, se,
|
|
46676
|
+
var Y, J, q, se, ce;
|
|
46677
46677
|
if (H.type === "input")
|
|
46678
46678
|
return /* @__PURE__ */ o("div", { className: "ui-w-[160px]", children: /* @__PURE__ */ o(
|
|
46679
46679
|
Bt,
|
|
@@ -46687,7 +46687,7 @@ const XC = () => {
|
|
|
46687
46687
|
placeholder: H.placeholder,
|
|
46688
46688
|
type: H.type,
|
|
46689
46689
|
name: H.name,
|
|
46690
|
-
onValueChange: (
|
|
46690
|
+
onValueChange: (K) => O(H, K)
|
|
46691
46691
|
}
|
|
46692
46692
|
) }, `addon-${B}`);
|
|
46693
46693
|
if (H.type === "date")
|
|
@@ -46702,25 +46702,25 @@ const XC = () => {
|
|
|
46702
46702
|
maxDate: (q = H.datePickerProps) == null ? void 0 : q.maxDate,
|
|
46703
46703
|
autoCloseRange: !1,
|
|
46704
46704
|
format: ((se = H.datePickerProps) == null ? void 0 : se.format) || "dd/MM/yyyy",
|
|
46705
|
-
placeholder: ((
|
|
46706
|
-
onDateChange: (
|
|
46707
|
-
var
|
|
46708
|
-
((
|
|
46705
|
+
placeholder: ((ce = H.datePickerProps) == null ? void 0 : ce.placeholder) || H.placeholder || "Seleccionar fecha",
|
|
46706
|
+
onDateChange: (K) => {
|
|
46707
|
+
var _;
|
|
46708
|
+
((_ = H.datePickerProps) == null ? void 0 : _.mode) === "range" ? O(H, { start: null, end: null }) : O(H, K);
|
|
46709
46709
|
},
|
|
46710
|
-
onRangeChange: (
|
|
46711
|
-
O(H,
|
|
46710
|
+
onRangeChange: (K) => {
|
|
46711
|
+
O(H, K);
|
|
46712
46712
|
}
|
|
46713
46713
|
}
|
|
46714
46714
|
) }, `addon-${B}`);
|
|
46715
46715
|
if (H.type === "button") {
|
|
46716
|
-
const
|
|
46716
|
+
const K = H.label ? void 0 : H.icon, _ = H.label && H.icon ? H.icon : void 0;
|
|
46717
46717
|
return /* @__PURE__ */ o(
|
|
46718
46718
|
Ee,
|
|
46719
46719
|
{
|
|
46720
46720
|
color: H.color || "secondary",
|
|
46721
46721
|
size: "xs",
|
|
46722
|
-
icon:
|
|
46723
|
-
leftSlot:
|
|
46722
|
+
icon: K,
|
|
46723
|
+
leftSlot: _,
|
|
46724
46724
|
disabled: H.disabled,
|
|
46725
46725
|
pill: H.pill,
|
|
46726
46726
|
tooltip: H.tooltip,
|
|
@@ -48372,7 +48372,7 @@ function M0(e) {
|
|
|
48372
48372
|
}
|
|
48373
48373
|
M0.displayName = "ColumnsWrapper";
|
|
48374
48374
|
function S0({ children: e, onClick: n, clickTolerance: r }) {
|
|
48375
|
-
const t =
|
|
48375
|
+
const t = U(null), i = U(!1), a = T((d) => {
|
|
48376
48376
|
t.current = d.clientX;
|
|
48377
48377
|
}, []), s = T(
|
|
48378
48378
|
(d) => {
|
|
@@ -48458,9 +48458,9 @@ function I0({
|
|
|
48458
48458
|
onScroll: a,
|
|
48459
48459
|
children: s
|
|
48460
48460
|
}) {
|
|
48461
|
-
const l =
|
|
48461
|
+
const l = U(null), [u, d] = F(!1), f = U(null), c = U(null), p = U(null), h = U(null), m = U(!1), g = T(() => {
|
|
48462
48462
|
l.current && a(l.current.scrollLeft);
|
|
48463
|
-
}, [a]), C =
|
|
48463
|
+
}, [a]), C = U(i), v = U(a);
|
|
48464
48464
|
C.current = i, v.current = a;
|
|
48465
48465
|
const x = T((V) => {
|
|
48466
48466
|
const E = V.currentTarget;
|
|
@@ -48729,7 +48729,7 @@ const Vm = () => /* @__PURE__ */ o(ur, { children: ({ getLeftOffsetFromDate: e,
|
|
|
48729
48729
|
bottom: 0
|
|
48730
48730
|
};
|
|
48731
48731
|
function Em({ getDateFromLeftOffsetPosition: e, children: n }) {
|
|
48732
|
-
const r =
|
|
48732
|
+
const r = U(null), t = U(null), i = T(
|
|
48733
48733
|
(u) => {
|
|
48734
48734
|
if (t.current !== null && r.current) {
|
|
48735
48735
|
const { pageX: d } = u, { left: f = 0 } = r.current.getBoundingClientRect(), c = d - f, p = e(c);
|
|
@@ -49898,7 +49898,7 @@ function ng({
|
|
|
49898
49898
|
subscribeMarker: r,
|
|
49899
49899
|
children: t
|
|
49900
49900
|
}) {
|
|
49901
|
-
const i =
|
|
49901
|
+
const i = U(null), a = U(null);
|
|
49902
49902
|
return oe(() => {
|
|
49903
49903
|
const { unsubscribe: s, getMarker: l } = r({
|
|
49904
49904
|
type: Bn.Today,
|
|
@@ -49927,7 +49927,7 @@ function ig(e) {
|
|
|
49927
49927
|
}
|
|
49928
49928
|
ig.displayName = "TodayMarker";
|
|
49929
49929
|
function rg({ date: e, children: n, updateMarker: r, subscribeMarker: t }) {
|
|
49930
|
-
const i =
|
|
49930
|
+
const i = U(null);
|
|
49931
49931
|
return oe(() => {
|
|
49932
49932
|
const { unsubscribe: a, getMarker: s } = t({
|
|
49933
49933
|
type: Bn.Custom,
|