@mateosuarezdev/react-ui 1.0.49 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -4
- package/dist/index.d.ts +13 -0
- package/dist/index.js +261 -216
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { jsx as d, jsxs as g, Fragment as gt } from "react/jsx-runtime";
|
|
12
|
-
import Le, { useRef as T, useEffect as B, useState as z, useSyncExternalStore as xn, useLayoutEffect as
|
|
12
|
+
import Le, { useRef as T, useEffect as B, useState as z, useSyncExternalStore as xn, useLayoutEffect as Er, useCallback as A, useId as $r, forwardRef as Xe, useContext as vt, useMemo as ae, memo as Nn, createContext as zt } from "react";
|
|
13
13
|
import { createPortal as Tr } from "react-dom";
|
|
14
14
|
import { clsx as kn } from "clsx";
|
|
15
|
-
import { twMerge as
|
|
16
|
-
import { atom as
|
|
15
|
+
import { twMerge as En } from "tailwind-merge";
|
|
16
|
+
import { atom as $n } from "@mateosuarezdev/atoms";
|
|
17
17
|
import { ChevronLeft as Sr, ChevronRight as Cr, CalendarDays as Mr, Clock as Dr, Check as Pr, Minus as Tn, DollarSign as Sn, CheckIcon as ze, EyeOffIcon as Cn, Eye as Mn, XIcon as Dn, ChevronDownIcon as Pn, Search as On, X as wt, ChevronDown as Ln, Plus as Or } from "lucide-react";
|
|
18
18
|
import { AnimatePresence as Ke, motion as ie, useTransform as tr, cancelFrame as te, frame as it, animate as Ot } from "framer-motion";
|
|
19
19
|
import { useSearchParams as Fn, navigate as ke, useInitialChangeEvent as Wn } from "@mateosuarezdev/react-router";
|
|
20
20
|
import { appendErrors as Lr, FormProvider as An, useForm as _n, useFormContext as Ue, Controller as Qe } from "react-hook-form";
|
|
21
21
|
import { validateFieldsNatively as rr, toNestErrors as nr } from "@hookform/resolvers";
|
|
22
22
|
import { createGesture as Fr } from "@mateosuarezdev/gestures";
|
|
23
|
-
const N = (...e) =>
|
|
23
|
+
const N = (...e) => En(kn(e));
|
|
24
24
|
function Ge(e, t = 100) {
|
|
25
25
|
let r = null, n = null;
|
|
26
26
|
return function(...o) {
|
|
@@ -30,7 +30,7 @@ function Ge(e, t = 100) {
|
|
|
30
30
|
}, t - (a - r)));
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function $i(e, t = 500) {
|
|
34
34
|
let r = null;
|
|
35
35
|
return function(...n) {
|
|
36
36
|
r && clearTimeout(r), r = setTimeout(() => {
|
|
@@ -51,7 +51,7 @@ function Rn(e) {
|
|
|
51
51
|
function In(e) {
|
|
52
52
|
return e.replace(/\s/g, "");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ti(e) {
|
|
55
55
|
return e.toLowerCase().split(" ").map((o) => {
|
|
56
56
|
if (o.length === 0) return o;
|
|
57
57
|
const a = [...o][0], s = o.slice(a.length);
|
|
@@ -64,7 +64,7 @@ function Wr(e) {
|
|
|
64
64
|
function Lt(e) {
|
|
65
65
|
return In(e) === "" ? null : e;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Si(e, t, r = {}) {
|
|
68
68
|
const n = { ...r };
|
|
69
69
|
return Object.keys(t).forEach((o) => {
|
|
70
70
|
if (t[o] === !0 && o in e) {
|
|
@@ -73,7 +73,7 @@ function Ei(e, t, r = {}) {
|
|
|
73
73
|
}
|
|
74
74
|
}), n;
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class Ci {
|
|
77
77
|
constructor() {
|
|
78
78
|
this.container = null, this.previouslyFocusedElement = null;
|
|
79
79
|
}
|
|
@@ -144,7 +144,7 @@ const lt = (e) => {
|
|
|
144
144
|
window.removeEventListener("resize", c), u && u.disconnect(), f && s && f.removeEventListener("scroll", c);
|
|
145
145
|
};
|
|
146
146
|
}, [n, ...o]), { ref: a };
|
|
147
|
-
},
|
|
147
|
+
}, Mi = ({
|
|
148
148
|
trackScroll: e = !1,
|
|
149
149
|
withObserver: t = !1,
|
|
150
150
|
enabled: r = !0,
|
|
@@ -174,7 +174,7 @@ const lt = (e) => {
|
|
|
174
174
|
md: "w-14 h-14 text-xl",
|
|
175
175
|
lg: "h-20 w-20 text-2xl",
|
|
176
176
|
xl: "h-24 w-24 text-2xl"
|
|
177
|
-
},
|
|
177
|
+
}, Di = ({
|
|
178
178
|
src: e,
|
|
179
179
|
name: t,
|
|
180
180
|
size: r = "md",
|
|
@@ -223,7 +223,7 @@ const lt = (e) => {
|
|
|
223
223
|
)
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
|
-
function
|
|
226
|
+
function Pi({
|
|
227
227
|
className: e,
|
|
228
228
|
children: t,
|
|
229
229
|
animate: r = !1,
|
|
@@ -245,7 +245,7 @@ function zn(e) {
|
|
|
245
245
|
() => e.get()
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
|
-
const Ft =
|
|
248
|
+
const Ft = $n(
|
|
249
249
|
typeof window < "u" ? window.innerWidth > 1024 : !0
|
|
250
250
|
);
|
|
251
251
|
let Ct = !1;
|
|
@@ -253,7 +253,7 @@ const or = Ge(() => {
|
|
|
253
253
|
Ft.set(window.innerWidth > 1024);
|
|
254
254
|
});
|
|
255
255
|
typeof window < "u" && (Ct && (window.removeEventListener("resize", or), Ct = !1), window.addEventListener("resize", or), Ct = !0);
|
|
256
|
-
const yt = () => (
|
|
256
|
+
const yt = () => (Er(() => {
|
|
257
257
|
Ft.set(window.innerWidth > 1024);
|
|
258
258
|
}, []), zn(Ft));
|
|
259
259
|
function Ar(...e) {
|
|
@@ -316,7 +316,7 @@ const Hn = (e = !0, t) => {
|
|
|
316
316
|
y: 0,
|
|
317
317
|
width: 0,
|
|
318
318
|
height: 0
|
|
319
|
-
}), w = T(null),
|
|
319
|
+
}), w = T(null), $ = $r(), S = A(
|
|
320
320
|
(x) => {
|
|
321
321
|
const k = x ?? v.current;
|
|
322
322
|
if (!k) return { x: 0, top: 0, bottom: void 0 };
|
|
@@ -370,7 +370,7 @@ const Hn = (e = !0, t) => {
|
|
|
370
370
|
return {
|
|
371
371
|
triggerRef: b,
|
|
372
372
|
triggerProps: {
|
|
373
|
-
id:
|
|
373
|
+
id: $,
|
|
374
374
|
"aria-expanded": l,
|
|
375
375
|
"aria-haspopup": !0
|
|
376
376
|
},
|
|
@@ -421,8 +421,8 @@ const Hn = (e = !0, t) => {
|
|
|
421
421
|
else if (n === "end")
|
|
422
422
|
l = e.right - t, l < s && (v >= t ? l = e.left : l = s);
|
|
423
423
|
else {
|
|
424
|
-
const
|
|
425
|
-
|
|
424
|
+
const $ = e.left + e.width / 2 - t / 2;
|
|
425
|
+
$ >= s && $ + t <= c.width - s ? l = $ : $ < s ? l = s : l = c.width - t - s;
|
|
426
426
|
}
|
|
427
427
|
} else {
|
|
428
428
|
const b = e.top, h = c.height - e.bottom;
|
|
@@ -433,8 +433,8 @@ const Hn = (e = !0, t) => {
|
|
|
433
433
|
else if (n === "end")
|
|
434
434
|
l = e.right - t, l < s && (v >= t ? l = e.left : l = s);
|
|
435
435
|
else {
|
|
436
|
-
const
|
|
437
|
-
|
|
436
|
+
const $ = e.left + e.width / 2 - t / 2;
|
|
437
|
+
$ >= s && $ + t <= c.width - s ? l = $ : $ < s ? l = s : l = c.width - t - s;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
l = Math.max(
|
|
@@ -449,7 +449,7 @@ const Hn = (e = !0, t) => {
|
|
|
449
449
|
let f, m;
|
|
450
450
|
return u + r <= e.top ? m = window.innerHeight - (u + r) : f = u, { x: l, top: f, bottom: m };
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function Oi(e) {
|
|
453
453
|
const t = T(null);
|
|
454
454
|
return B(() => {
|
|
455
455
|
const r = (n) => {
|
|
@@ -460,7 +460,7 @@ function Di(e) {
|
|
|
460
460
|
};
|
|
461
461
|
}, [e]), t;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Li(e, t = {}) {
|
|
464
464
|
const {
|
|
465
465
|
enabled: r = !0,
|
|
466
466
|
events: n = ["mousedown", "touchstart"],
|
|
@@ -582,7 +582,7 @@ const qn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
582
582
|
type: m = "button",
|
|
583
583
|
...b
|
|
584
584
|
}, h) => {
|
|
585
|
-
const [v, w] = z(!1),
|
|
585
|
+
const [v, w] = z(!1), $ = (P) => {
|
|
586
586
|
o === "enabled" && (f ? (w(!0), a && a(P), setTimeout(() => w(!1), 1e3)) : a && a(P));
|
|
587
587
|
}, { ref: S, ripple: _ } = Hn(
|
|
588
588
|
c,
|
|
@@ -595,7 +595,7 @@ const qn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
595
595
|
type: m,
|
|
596
596
|
disabled: b.disabled ? b.disabled : o === "disabled" || o === "loading",
|
|
597
597
|
onMouseDown: _,
|
|
598
|
-
onClick: (P) => v ? null :
|
|
598
|
+
onClick: (P) => v ? null : $(P),
|
|
599
599
|
className: N(
|
|
600
600
|
qn,
|
|
601
601
|
Xn[t],
|
|
@@ -938,7 +938,7 @@ const wo = {
|
|
|
938
938
|
evening: "evening",
|
|
939
939
|
night: "night"
|
|
940
940
|
}
|
|
941
|
-
},
|
|
941
|
+
}, Eo = {
|
|
942
942
|
narrow: {
|
|
943
943
|
am: "a",
|
|
944
944
|
pm: "p",
|
|
@@ -969,7 +969,7 @@ const wo = {
|
|
|
969
969
|
evening: "in the evening",
|
|
970
970
|
night: "at night"
|
|
971
971
|
}
|
|
972
|
-
},
|
|
972
|
+
}, $o = (e, t) => {
|
|
973
973
|
const r = Number(e), n = r % 100;
|
|
974
974
|
if (n > 20 || n < 10)
|
|
975
975
|
switch (n % 10) {
|
|
@@ -982,7 +982,7 @@ const wo = {
|
|
|
982
982
|
}
|
|
983
983
|
return r + "th";
|
|
984
984
|
}, To = {
|
|
985
|
-
ordinalNumber:
|
|
985
|
+
ordinalNumber: $o,
|
|
986
986
|
era: de({
|
|
987
987
|
values: wo,
|
|
988
988
|
defaultWidth: "wide"
|
|
@@ -1003,7 +1003,7 @@ const wo = {
|
|
|
1003
1003
|
dayPeriod: de({
|
|
1004
1004
|
values: ko,
|
|
1005
1005
|
defaultWidth: "wide",
|
|
1006
|
-
formattingValues:
|
|
1006
|
+
formattingValues: Eo,
|
|
1007
1007
|
defaultFormattingWidth: "wide"
|
|
1008
1008
|
})
|
|
1009
1009
|
};
|
|
@@ -2182,7 +2182,7 @@ const ia = {
|
|
|
2182
2182
|
formattingValues: xa,
|
|
2183
2183
|
defaultFormattingWidth: "wide"
|
|
2184
2184
|
})
|
|
2185
|
-
},
|
|
2185
|
+
}, Ea = /^(\d+)(º)?/i, $a = /\d+/i, Ta = {
|
|
2186
2186
|
narrow: /^(ac|dc|a|d)/i,
|
|
2187
2187
|
abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
|
|
2188
2188
|
wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
|
|
@@ -2255,8 +2255,8 @@ const ia = {
|
|
|
2255
2255
|
}
|
|
2256
2256
|
}, Aa = {
|
|
2257
2257
|
ordinalNumber: Rr({
|
|
2258
|
-
matchPattern:
|
|
2259
|
-
parsePattern:
|
|
2258
|
+
matchPattern: Ea,
|
|
2259
|
+
parsePattern: $a,
|
|
2260
2260
|
valueCallback: function(e) {
|
|
2261
2261
|
return parseInt(e, 10);
|
|
2262
2262
|
}
|
|
@@ -2504,7 +2504,7 @@ function Ba(e) {
|
|
|
2504
2504
|
for (let { element: t, scrollTop: r, scrollLeft: n } of e)
|
|
2505
2505
|
t.scrollTop = r, t.scrollLeft = n;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function Et(e) {
|
|
2508
2508
|
var t;
|
|
2509
2509
|
if (typeof window > "u" || window.navigator == null) return !1;
|
|
2510
2510
|
let r = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
@@ -2533,15 +2533,15 @@ pe(function() {
|
|
|
2533
2533
|
return qt() || Xa();
|
|
2534
2534
|
});
|
|
2535
2535
|
pe(function() {
|
|
2536
|
-
return
|
|
2536
|
+
return Et(/AppleWebKit/i) && !Hr();
|
|
2537
2537
|
});
|
|
2538
2538
|
const Hr = pe(function() {
|
|
2539
|
-
return
|
|
2539
|
+
return Et(/Chrome/i);
|
|
2540
2540
|
}), Br = pe(function() {
|
|
2541
|
-
return
|
|
2541
|
+
return Et(/Android/i);
|
|
2542
2542
|
});
|
|
2543
2543
|
pe(function() {
|
|
2544
|
-
return
|
|
2544
|
+
return Et(/Firefox/i);
|
|
2545
2545
|
});
|
|
2546
2546
|
let we = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new Set();
|
|
2547
2547
|
function hr() {
|
|
@@ -2764,7 +2764,7 @@ function us(e) {
|
|
|
2764
2764
|
focusNext(t = {}) {
|
|
2765
2765
|
let r = e.current, { from: n, tabbable: o, wrap: a, accept: s } = t;
|
|
2766
2766
|
var i;
|
|
2767
|
-
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[0].previousElementSibling, u =
|
|
2767
|
+
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[0].previousElementSibling, u = Ee(r), f = ye(u, {
|
|
2768
2768
|
tabbable: o,
|
|
2769
2769
|
accept: s
|
|
2770
2770
|
}, r);
|
|
@@ -2775,7 +2775,7 @@ function us(e) {
|
|
|
2775
2775
|
focusPrevious(t = {}) {
|
|
2776
2776
|
let r = e.current, { from: n, tabbable: o, wrap: a, accept: s } = t;
|
|
2777
2777
|
var i;
|
|
2778
|
-
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[r.length - 1].nextElementSibling, u =
|
|
2778
|
+
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[r.length - 1].nextElementSibling, u = Ee(r), f = ye(u, {
|
|
2779
2779
|
tabbable: o,
|
|
2780
2780
|
accept: s
|
|
2781
2781
|
}, r);
|
|
@@ -2784,7 +2784,7 @@ function us(e) {
|
|
|
2784
2784
|
return !m && a && (f.currentNode = l, m = f.previousNode()), m && he(m, !0), m;
|
|
2785
2785
|
},
|
|
2786
2786
|
focusFirst(t = {}) {
|
|
2787
|
-
let r = e.current, { tabbable: n, accept: o } = t, a =
|
|
2787
|
+
let r = e.current, { tabbable: n, accept: o } = t, a = Ee(r), s = ye(a, {
|
|
2788
2788
|
tabbable: n,
|
|
2789
2789
|
accept: o
|
|
2790
2790
|
}, r);
|
|
@@ -2793,7 +2793,7 @@ function us(e) {
|
|
|
2793
2793
|
return i && he(i, !0), i;
|
|
2794
2794
|
},
|
|
2795
2795
|
focusLast(t = {}) {
|
|
2796
|
-
let r = e.current, { tabbable: n, accept: o } = t, a =
|
|
2796
|
+
let r = e.current, { tabbable: n, accept: o } = t, a = Ee(r), s = ye(a, {
|
|
2797
2797
|
tabbable: n,
|
|
2798
2798
|
accept: o
|
|
2799
2799
|
}, r);
|
|
@@ -2803,7 +2803,7 @@ function us(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function Ee(e) {
|
|
2807
2807
|
return e[0].parentElement;
|
|
2808
2808
|
}
|
|
2809
2809
|
function Re(e) {
|
|
@@ -2842,7 +2842,7 @@ function fs(e, t) {
|
|
|
2842
2842
|
if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !Re(e) || l.isComposing) return;
|
|
2843
2843
|
let u = se(a), f = e.current;
|
|
2844
2844
|
if (!f || !ne(u, f)) return;
|
|
2845
|
-
let m =
|
|
2845
|
+
let m = Ee(f), b = ye(m, {
|
|
2846
2846
|
tabbable: !0
|
|
2847
2847
|
}, f);
|
|
2848
2848
|
if (!u) return;
|
|
@@ -2850,11 +2850,11 @@ function fs(e, t) {
|
|
|
2850
2850
|
let h = l.shiftKey ? b.previousNode() : b.nextNode();
|
|
2851
2851
|
h || (b.currentNode = l.shiftKey ? f[f.length - 1].nextElementSibling : f[0].previousElementSibling, h = l.shiftKey ? b.previousNode() : b.nextNode()), l.preventDefault(), h && he(h, !0);
|
|
2852
2852
|
}, i = (l) => {
|
|
2853
|
-
(!H || mt(H, e)) && ne(Oe(l), e.current) ? (H = e, r.current = Oe(l)) : Re(e) &&
|
|
2853
|
+
(!H || mt(H, e)) && ne(Oe(l), e.current) ? (H = e, r.current = Oe(l)) : Re(e) && !$e(Oe(l), e) ? r.current ? r.current.focus() : H && H.current && Yt(H.current) : Re(e) && (r.current = Oe(l));
|
|
2854
2854
|
}, c = (l) => {
|
|
2855
2855
|
n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
|
|
2856
2856
|
let u = Qr(), f = (u === "virtual" || u === null) && Br() && Hr(), m = se(a);
|
|
2857
|
-
if (!f && m && Re(e) &&
|
|
2857
|
+
if (!f && m && Re(e) && !$e(m, e)) {
|
|
2858
2858
|
H = e;
|
|
2859
2859
|
let h = Oe(l);
|
|
2860
2860
|
if (h && h.isConnected) {
|
|
@@ -2877,12 +2877,12 @@ function fs(e, t) {
|
|
|
2877
2877
|
]);
|
|
2878
2878
|
}
|
|
2879
2879
|
function Gr(e) {
|
|
2880
|
-
return
|
|
2880
|
+
return $e(e);
|
|
2881
2881
|
}
|
|
2882
2882
|
function ne(e, t) {
|
|
2883
2883
|
return !e || !t ? !1 : t.some((r) => r.contains(e));
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2885
|
+
function $e(e, t = null) {
|
|
2886
2886
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
|
|
2887
2887
|
for (let { scopeRef: r } of q.traverse(q.getTreeNode(t)))
|
|
2888
2888
|
if (r && ne(e, r.current)) return !0;
|
|
@@ -2908,12 +2908,12 @@ function he(e, t = !1) {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
function Jr(e, t = !0) {
|
|
2911
|
-
let r = e[0].previousElementSibling, n =
|
|
2911
|
+
let r = e[0].previousElementSibling, n = Ee(e), o = ye(n, {
|
|
2912
2912
|
tabbable: t
|
|
2913
2913
|
}, e);
|
|
2914
2914
|
o.currentNode = r;
|
|
2915
2915
|
let a = o.nextNode();
|
|
2916
|
-
return t && !a && (n =
|
|
2916
|
+
return t && !a && (n = Ee(e), o = ye(n, {
|
|
2917
2917
|
tabbable: !1
|
|
2918
2918
|
}, e), o.currentNode = r, a = o.nextNode()), a;
|
|
2919
2919
|
}
|
|
@@ -2980,7 +2980,7 @@ function bs(e, t, r) {
|
|
|
2980
2980
|
let a = (s) => {
|
|
2981
2981
|
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !Re(e) || s.isComposing) return;
|
|
2982
2982
|
let i = o.activeElement;
|
|
2983
|
-
if (
|
|
2983
|
+
if (!$e(i, e) || !gr(e)) return;
|
|
2984
2984
|
let c = q.getTreeNode(e);
|
|
2985
2985
|
if (!c) return;
|
|
2986
2986
|
let l = c.nodeToRestore, u = ye(o.body, {
|
|
@@ -2988,11 +2988,11 @@ function bs(e, t, r) {
|
|
|
2988
2988
|
});
|
|
2989
2989
|
u.currentNode = i;
|
|
2990
2990
|
let f = s.shiftKey ? u.previousNode() : u.nextNode();
|
|
2991
|
-
if ((!l || !l.isConnected || l === o.body) && (l = void 0, c.nodeToRestore = void 0), (!f ||
|
|
2991
|
+
if ((!l || !l.isConnected || l === o.body) && (l = void 0, c.nodeToRestore = void 0), (!f || !$e(f, e)) && l) {
|
|
2992
2992
|
u.currentNode = l;
|
|
2993
2993
|
do
|
|
2994
2994
|
f = s.shiftKey ? u.previousNode() : u.nextNode();
|
|
2995
|
-
while (
|
|
2995
|
+
while ($e(f, e));
|
|
2996
2996
|
s.preventDefault(), s.stopPropagation(), f ? he(f, !0) : Gr(l) ? he(l, !0) : i.blur();
|
|
2997
2997
|
}
|
|
2998
2998
|
};
|
|
@@ -3013,7 +3013,7 @@ function bs(e, t, r) {
|
|
|
3013
3013
|
let i = q.getTreeNode(e);
|
|
3014
3014
|
if (!i) return;
|
|
3015
3015
|
let c = i.nodeToRestore, l = se(o);
|
|
3016
|
-
if (t && c && (l &&
|
|
3016
|
+
if (t && c && (l && $e(l, e) || l === o.body && gr(e))) {
|
|
3017
3017
|
let u = q.clone();
|
|
3018
3018
|
requestAnimationFrame(() => {
|
|
3019
3019
|
if (o.activeElement === o.body) {
|
|
@@ -3134,7 +3134,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3134
3134
|
}) => {
|
|
3135
3135
|
const {
|
|
3136
3136
|
triggerRef: w,
|
|
3137
|
-
triggerProps:
|
|
3137
|
+
triggerProps: $,
|
|
3138
3138
|
popoverRef: S,
|
|
3139
3139
|
getPopoverPosition: _,
|
|
3140
3140
|
open: D,
|
|
@@ -3166,7 +3166,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3166
3166
|
return /* @__PURE__ */ g(gt, { children: [
|
|
3167
3167
|
t ? t({
|
|
3168
3168
|
triggerRef: w,
|
|
3169
|
-
triggerProps:
|
|
3169
|
+
triggerProps: $,
|
|
3170
3170
|
toggle: P,
|
|
3171
3171
|
open: D,
|
|
3172
3172
|
close: x
|
|
@@ -3174,7 +3174,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3174
3174
|
"button",
|
|
3175
3175
|
{
|
|
3176
3176
|
ref: w,
|
|
3177
|
-
|
|
3177
|
+
...$,
|
|
3178
3178
|
onClick: P,
|
|
3179
3179
|
className: N(
|
|
3180
3180
|
"outline-none p-2 rounded-md transition-colors",
|
|
@@ -3224,7 +3224,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3224
3224
|
}
|
|
3225
3225
|
) }) }) })
|
|
3226
3226
|
] });
|
|
3227
|
-
},
|
|
3227
|
+
}, Fi = ({
|
|
3228
3228
|
title: e,
|
|
3229
3229
|
subtitle: t,
|
|
3230
3230
|
onClose: r,
|
|
@@ -3242,10 +3242,10 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3242
3242
|
children: "×"
|
|
3243
3243
|
}
|
|
3244
3244
|
)
|
|
3245
|
-
] }) }),
|
|
3245
|
+
] }) }), Wi = ({
|
|
3246
3246
|
children: e,
|
|
3247
3247
|
className: t
|
|
3248
|
-
}) => /* @__PURE__ */ d("div", { className: N("p-4", t), children: e }),
|
|
3248
|
+
}) => /* @__PURE__ */ d("div", { className: N("p-4", t), children: e }), Ai = ({
|
|
3249
3249
|
children: e,
|
|
3250
3250
|
className: t
|
|
3251
3251
|
}) => /* @__PURE__ */ d("div", { className: N("p-4 border-t border-base-4", t), children: e }), gs = (e, t) => {
|
|
@@ -3277,14 +3277,14 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3277
3277
|
) : /* @__PURE__ */ new Set(), [r]), v = ae(() => new Set(n || []), [n]), w = ae(() => {
|
|
3278
3278
|
const x = lo(l), k = ao(l), L = new Date(x), Y = new Date(k);
|
|
3279
3279
|
if (i) {
|
|
3280
|
-
const
|
|
3280
|
+
const E = x.getDay(), p = E === 0 ? 6 : E - 1;
|
|
3281
3281
|
L.setDate(x.getDate() - p);
|
|
3282
3282
|
const M = k.getDay(), C = M === 0 ? 0 : 7 - M;
|
|
3283
3283
|
Y.setDate(k.getDate() + C);
|
|
3284
3284
|
} else
|
|
3285
3285
|
L.setDate(x.getDate() - x.getDay()), Y.setDate(k.getDate() + (6 - k.getDay()));
|
|
3286
3286
|
return io({ start: L, end: Y });
|
|
3287
|
-
}, [l, i]),
|
|
3287
|
+
}, [l, i]), $ = ae(
|
|
3288
3288
|
() => gs(s ?? Be, i),
|
|
3289
3289
|
[s, i]
|
|
3290
3290
|
), S = (x) => {
|
|
@@ -3294,7 +3294,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3294
3294
|
S(x) && t && t(x), m(x);
|
|
3295
3295
|
}, D = (x) => {
|
|
3296
3296
|
if (!f) return;
|
|
3297
|
-
let k = new Date(f), L = !0, Y,
|
|
3297
|
+
let k = new Date(f), L = !0, Y, E;
|
|
3298
3298
|
switch (x.key) {
|
|
3299
3299
|
case "ArrowUp":
|
|
3300
3300
|
k.setDate(k.getDate() - 7);
|
|
@@ -3312,7 +3312,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3312
3312
|
Y = k.getDay(), k.setDate(k.getDate() - Y);
|
|
3313
3313
|
break;
|
|
3314
3314
|
case "End":
|
|
3315
|
-
|
|
3315
|
+
E = k.getDay(), k.setDate(k.getDate() + (6 - E));
|
|
3316
3316
|
break;
|
|
3317
3317
|
case "PageUp":
|
|
3318
3318
|
k = x.shiftKey ? Dt(k, 12) : Dt(k, 1);
|
|
@@ -3367,7 +3367,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3367
3367
|
}
|
|
3368
3368
|
)
|
|
3369
3369
|
] }),
|
|
3370
|
-
/* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "row", children:
|
|
3370
|
+
/* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "row", children: $.map((x) => /* @__PURE__ */ d(
|
|
3371
3371
|
"div",
|
|
3372
3372
|
{
|
|
3373
3373
|
className: "text-xs flex items-center w-8 justify-center text-base-11",
|
|
@@ -3377,13 +3377,13 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3377
3377
|
x
|
|
3378
3378
|
)) }),
|
|
3379
3379
|
/* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "grid", children: w.map((x, k) => {
|
|
3380
|
-
const L = dr(x, l), Y = e ? Mt(x, e) : !1,
|
|
3380
|
+
const L = dr(x, l), Y = e ? Mt(x, e) : !1, E = f && Mt(x, f), p = S(x), M = Mt(x, /* @__PURE__ */ new Date());
|
|
3381
3381
|
return /* @__PURE__ */ d(
|
|
3382
3382
|
"button",
|
|
3383
3383
|
{
|
|
3384
3384
|
onClick: () => _(x),
|
|
3385
3385
|
disabled: !p,
|
|
3386
|
-
tabIndex:
|
|
3386
|
+
tabIndex: E ? 0 : -1,
|
|
3387
3387
|
role: "gridcell",
|
|
3388
3388
|
"aria-label": `${x.toLocaleDateString("en-US", {
|
|
3389
3389
|
weekday: "long",
|
|
@@ -3396,7 +3396,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3396
3396
|
className: N(
|
|
3397
3397
|
"h-8 w-8 flex items-center outline-none justify-center rounded-6 hover:bg-base-4 text-sm relative",
|
|
3398
3398
|
L ? Y ? "bg-brand text-brand-text hover:bg-brand" : M ? "text-base-12 ring-1 ring-base-8" : "text-base-12" : "text-base-9",
|
|
3399
|
-
|
|
3399
|
+
E && "ring-1 ring-base-6",
|
|
3400
3400
|
(!p || !L) && "pointer-events-none text-base-9"
|
|
3401
3401
|
),
|
|
3402
3402
|
children: Te(x, "d")
|
|
@@ -3407,7 +3407,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3407
3407
|
]
|
|
3408
3408
|
}
|
|
3409
3409
|
);
|
|
3410
|
-
},
|
|
3410
|
+
}, _i = () => {
|
|
3411
3411
|
const [e, t] = z(
|
|
3412
3412
|
new Date(2025, 8, 21)
|
|
3413
3413
|
);
|
|
@@ -3480,7 +3480,7 @@ const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
|
3480
3480
|
] })
|
|
3481
3481
|
] }) });
|
|
3482
3482
|
};
|
|
3483
|
-
function
|
|
3483
|
+
function Yi({
|
|
3484
3484
|
customTrigger: e,
|
|
3485
3485
|
scrollerId: t
|
|
3486
3486
|
}) {
|
|
@@ -3518,14 +3518,14 @@ function Ai({
|
|
|
3518
3518
|
}
|
|
3519
3519
|
);
|
|
3520
3520
|
}
|
|
3521
|
-
const
|
|
3521
|
+
const Ri = () => /* @__PURE__ */ g("div", { children: [
|
|
3522
3522
|
/* @__PURE__ */ d("p", { className: "text-xs font-medium ml-0.5", children: "Start Time" }),
|
|
3523
3523
|
/* @__PURE__ */ g(U, { color: "solid", className: "px-3 mt-1", children: [
|
|
3524
3524
|
Te(/* @__PURE__ */ new Date(), "p", { locale: Be }),
|
|
3525
3525
|
/* @__PURE__ */ d("span", { className: "grow" }),
|
|
3526
3526
|
/* @__PURE__ */ d(Dr, { size: 18, className: "text-base-11" })
|
|
3527
3527
|
] })
|
|
3528
|
-
] }),
|
|
3528
|
+
] }), Ii = () => /* @__PURE__ */ g("div", { className: "flex items-center gap-x-4", children: [
|
|
3529
3529
|
/* @__PURE__ */ g("div", { className: "grow", children: [
|
|
3530
3530
|
/* @__PURE__ */ d("p", { className: "text-xs font-medium ml-0.5", children: "Start Date" }),
|
|
3531
3531
|
/* @__PURE__ */ g(U, { color: "solid", className: "px-3 mt-1 w-full justify-start", children: [
|
|
@@ -3640,7 +3640,7 @@ const _i = () => /* @__PURE__ */ g("div", { children: [
|
|
|
3640
3640
|
}
|
|
3641
3641
|
);
|
|
3642
3642
|
vs.displayName = "Checkbox";
|
|
3643
|
-
const
|
|
3643
|
+
const ji = ({
|
|
3644
3644
|
title: e,
|
|
3645
3645
|
message: t,
|
|
3646
3646
|
searchParam: r,
|
|
@@ -3671,7 +3671,7 @@ const Ri = ({
|
|
|
3671
3671
|
initial: { opacity: 0 },
|
|
3672
3672
|
animate: { opacity: 1 },
|
|
3673
3673
|
exit: { opacity: 0 },
|
|
3674
|
-
className: "fixed top-1/2 left-1/2 z-[999] w-[75%] -translate-y-1/2 -translate-x-1/2 rounded-lg bg-
|
|
3674
|
+
className: "fixed top-1/2 left-1/2 z-[999] w-[75%] -translate-y-1/2 -translate-x-1/2 rounded-lg bg-base-2 p-4 lg:w-[35%] xl:w-[30%]",
|
|
3675
3675
|
children: [
|
|
3676
3676
|
e ? /* @__PURE__ */ d("p", { className: "font-medium", children: e }) : null,
|
|
3677
3677
|
t ? /* @__PURE__ */ d("p", { className: N("text-sm text-base-11", { "mt-2": e }), children: t }) : null,
|
|
@@ -3703,7 +3703,7 @@ const Ri = ({
|
|
|
3703
3703
|
] }) : null }),
|
|
3704
3704
|
c ? c(f) : null
|
|
3705
3705
|
] });
|
|
3706
|
-
},
|
|
3706
|
+
}, zi = ({
|
|
3707
3707
|
scrollY: e,
|
|
3708
3708
|
height: t = 300,
|
|
3709
3709
|
className: r,
|
|
@@ -3790,7 +3790,7 @@ const on = (e, t) => {
|
|
|
3790
3790
|
throw rn(i, o?.callee), i;
|
|
3791
3791
|
}
|
|
3792
3792
|
return s.value;
|
|
3793
|
-
},
|
|
3793
|
+
}, Es = /* @__PURE__ */ ks(an), $s = (e) => async (t, r, n, o) => {
|
|
3794
3794
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
3795
3795
|
let s = t._zod.run({ value: r, issues: [] }, a);
|
|
3796
3796
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
@@ -3798,7 +3798,7 @@ const on = (e, t) => {
|
|
|
3798
3798
|
throw rn(i, o?.callee), i;
|
|
3799
3799
|
}
|
|
3800
3800
|
return s.value;
|
|
3801
|
-
}, Ts = /* @__PURE__ */
|
|
3801
|
+
}, Ts = /* @__PURE__ */ $s(an);
|
|
3802
3802
|
function wr(e, t) {
|
|
3803
3803
|
try {
|
|
3804
3804
|
var r = e();
|
|
@@ -3869,7 +3869,7 @@ function Ms(e, t, r) {
|
|
|
3869
3869
|
})(e)) return function(n, o, a) {
|
|
3870
3870
|
try {
|
|
3871
3871
|
return Promise.resolve(wr(function() {
|
|
3872
|
-
return Promise.resolve((r.mode === "sync" ?
|
|
3872
|
+
return Promise.resolve((r.mode === "sync" ? Es : Ts)(e, n, t)).then(function(s) {
|
|
3873
3873
|
return a.shouldUseNativeValidation && rr({}, a), { errors: {}, values: r.raw ? Object.assign({}, n) : s };
|
|
3874
3874
|
});
|
|
3875
3875
|
}, function(s) {
|
|
@@ -3884,7 +3884,7 @@ function Ms(e, t, r) {
|
|
|
3884
3884
|
};
|
|
3885
3885
|
throw new Error("Invalid input: not a Zod schema");
|
|
3886
3886
|
}
|
|
3887
|
-
function
|
|
3887
|
+
function Hi({
|
|
3888
3888
|
methods: e,
|
|
3889
3889
|
onSubmit: t,
|
|
3890
3890
|
onError: r,
|
|
@@ -3909,7 +3909,7 @@ function ji({
|
|
|
3909
3909
|
}
|
|
3910
3910
|
) });
|
|
3911
3911
|
}
|
|
3912
|
-
function
|
|
3912
|
+
function Bi(e, t) {
|
|
3913
3913
|
return _n({
|
|
3914
3914
|
resolver: Ms(e),
|
|
3915
3915
|
defaultValues: t
|
|
@@ -3958,8 +3958,8 @@ const Ds = ({
|
|
|
3958
3958
|
type: h = "text",
|
|
3959
3959
|
value: v,
|
|
3960
3960
|
...w
|
|
3961
|
-
},
|
|
3962
|
-
const S = T(null), _ = T(!1), [D, P] = z(!1), [x, k] = z(!1), L = h === "password", Y = L && D ? "text" : l ? "number" : h,
|
|
3961
|
+
}, $) => {
|
|
3962
|
+
const S = T(null), _ = T(!1), [D, P] = z(!1), [x, k] = z(!1), L = h === "password", Y = L && D ? "text" : l ? "number" : h, E = v !== "" && v !== null && v !== void 0;
|
|
3963
3963
|
return B(() => {
|
|
3964
3964
|
if (!_.current) {
|
|
3965
3965
|
_.current = !0;
|
|
@@ -3996,7 +3996,7 @@ const Ds = ({
|
|
|
3996
3996
|
"absolute transition-all duration-200 pointer-events-none",
|
|
3997
3997
|
"text-sm top-[18px] font-semibold left-3",
|
|
3998
3998
|
{
|
|
3999
|
-
"text-xs top-2.5": x ||
|
|
3999
|
+
"text-xs top-2.5": x || E || a,
|
|
4000
4000
|
"text-red-9": !!i
|
|
4001
4001
|
}
|
|
4002
4002
|
),
|
|
@@ -4018,7 +4018,7 @@ const Ds = ({
|
|
|
4018
4018
|
"input",
|
|
4019
4019
|
{
|
|
4020
4020
|
ref: (p) => {
|
|
4021
|
-
|
|
4021
|
+
$ && (typeof $ == "function" ? $(p) : $.current = p), S.current = p;
|
|
4022
4022
|
},
|
|
4023
4023
|
type: Y,
|
|
4024
4024
|
className: N(
|
|
@@ -4080,7 +4080,7 @@ const Ds = ({
|
|
|
4080
4080
|
}
|
|
4081
4081
|
);
|
|
4082
4082
|
sn.displayName = "Input";
|
|
4083
|
-
const
|
|
4083
|
+
const Vi = ({
|
|
4084
4084
|
name: e,
|
|
4085
4085
|
customRead: t,
|
|
4086
4086
|
customSet: r,
|
|
@@ -4123,7 +4123,7 @@ const Hi = ({
|
|
|
4123
4123
|
if (!e)
|
|
4124
4124
|
throw new Error("useAliveScope must be wrapped within AliveScopeProvider");
|
|
4125
4125
|
return e;
|
|
4126
|
-
},
|
|
4126
|
+
}, qi = ({ children: e }) => {
|
|
4127
4127
|
const [t, r] = z({}), n = T(
|
|
4128
4128
|
{}
|
|
4129
4129
|
), o = T(
|
|
@@ -4204,12 +4204,12 @@ const Hi = ({
|
|
|
4204
4204
|
} },
|
|
4205
4205
|
children: Tr(n, o, e)
|
|
4206
4206
|
}
|
|
4207
|
-
)),
|
|
4207
|
+
)), Xi = () => {
|
|
4208
4208
|
const e = vt(cn);
|
|
4209
4209
|
if (!e)
|
|
4210
4210
|
throw new Error("useKeepAlive must be used within KeepAliveProvider");
|
|
4211
4211
|
return e;
|
|
4212
|
-
},
|
|
4212
|
+
}, Ki = ({
|
|
4213
4213
|
aliveKey: e,
|
|
4214
4214
|
children: t,
|
|
4215
4215
|
enabled: r = !0,
|
|
@@ -4221,7 +4221,7 @@ const Hi = ({
|
|
|
4221
4221
|
return r && o.current && o.current.replaceWith(s), () => {
|
|
4222
4222
|
};
|
|
4223
4223
|
}, [e, t, r, n]), /* @__PURE__ */ d("div", { ...n, ref: o, children: t });
|
|
4224
|
-
},
|
|
4224
|
+
}, Ui = ({
|
|
4225
4225
|
lightSolid: e = !0,
|
|
4226
4226
|
className: t,
|
|
4227
4227
|
children: r,
|
|
@@ -4237,7 +4237,7 @@ const Hi = ({
|
|
|
4237
4237
|
...n,
|
|
4238
4238
|
children: r
|
|
4239
4239
|
}
|
|
4240
|
-
),
|
|
4240
|
+
), Qi = ({
|
|
4241
4241
|
onClick: e,
|
|
4242
4242
|
lightSolid: t = !0,
|
|
4243
4243
|
className: r,
|
|
@@ -4272,10 +4272,10 @@ const Hi = ({
|
|
|
4272
4272
|
disabled: b = !1,
|
|
4273
4273
|
className: h
|
|
4274
4274
|
}) => {
|
|
4275
|
-
const [v, w] = z(""), [
|
|
4275
|
+
const [v, w] = z(""), [$, S] = z(!1), [_, D] = z(-1), P = T(null), x = T(null), k = T([]), {
|
|
4276
4276
|
triggerRef: L,
|
|
4277
4277
|
triggerProps: Y,
|
|
4278
|
-
popoverRef:
|
|
4278
|
+
popoverRef: E,
|
|
4279
4279
|
getPopoverPosition: p,
|
|
4280
4280
|
open: M,
|
|
4281
4281
|
toggle: C,
|
|
@@ -4382,7 +4382,7 @@ const Hi = ({
|
|
|
4382
4382
|
}, rt = (O) => {
|
|
4383
4383
|
console.log(`Accessibility announcement: ${O}`);
|
|
4384
4384
|
};
|
|
4385
|
-
Bt(
|
|
4385
|
+
Bt(E, (O) => {
|
|
4386
4386
|
!L.current || !M || !O.target || L.current.contains(O.target) || F();
|
|
4387
4387
|
});
|
|
4388
4388
|
const Tt = p();
|
|
@@ -4409,9 +4409,9 @@ const Hi = ({
|
|
|
4409
4409
|
{
|
|
4410
4410
|
"py-3": t === "default",
|
|
4411
4411
|
"pt-5 pb-2": t === "floating",
|
|
4412
|
-
"ring-1 ring-brand": M ||
|
|
4412
|
+
"ring-1 ring-brand": M || $,
|
|
4413
4413
|
"text-red-9": l,
|
|
4414
|
-
"ring-2 ring-red-6": l && (M ||
|
|
4414
|
+
"ring-2 ring-red-6": l && (M || $),
|
|
4415
4415
|
"opacity-60 cursor-not-allowed": b
|
|
4416
4416
|
}
|
|
4417
4417
|
),
|
|
@@ -4434,7 +4434,7 @@ const Hi = ({
|
|
|
4434
4434
|
"absolute transition-all duration-200 pointer-events-none",
|
|
4435
4435
|
"text-base top-4 font-semibold left-3",
|
|
4436
4436
|
{
|
|
4437
|
-
"text-sm top-2 left-2":
|
|
4437
|
+
"text-sm top-2 left-2": $ || ce,
|
|
4438
4438
|
"text-red-9": !!l
|
|
4439
4439
|
}
|
|
4440
4440
|
),
|
|
@@ -4523,7 +4523,7 @@ const Hi = ({
|
|
|
4523
4523
|
animate: { opacity: 1, y: 0 },
|
|
4524
4524
|
exit: { opacity: 0, y: -10 },
|
|
4525
4525
|
transition: { duration: 0.15 },
|
|
4526
|
-
ref:
|
|
4526
|
+
ref: E,
|
|
4527
4527
|
style: {
|
|
4528
4528
|
position: "fixed",
|
|
4529
4529
|
left: Tt.x,
|
|
@@ -4582,7 +4582,7 @@ const Hi = ({
|
|
|
4582
4582
|
),
|
|
4583
4583
|
/* @__PURE__ */ d("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: K.length > 0 ? `Selected: ${K.map(s).join(", ")}` : "No selections" })
|
|
4584
4584
|
] });
|
|
4585
|
-
},
|
|
4585
|
+
}, Gi = ({
|
|
4586
4586
|
name: e,
|
|
4587
4587
|
...t
|
|
4588
4588
|
}) => {
|
|
@@ -4606,7 +4606,7 @@ const Hi = ({
|
|
|
4606
4606
|
"Form control missing for field: ",
|
|
4607
4607
|
e
|
|
4608
4608
|
] }));
|
|
4609
|
-
},
|
|
4609
|
+
}, Ji = ({
|
|
4610
4610
|
id: e,
|
|
4611
4611
|
tabPage: t,
|
|
4612
4612
|
absolute: r = !0,
|
|
@@ -4620,7 +4620,7 @@ const Hi = ({
|
|
|
4620
4620
|
showScrollbar: u = !0,
|
|
4621
4621
|
onScroll: f
|
|
4622
4622
|
}) => {
|
|
4623
|
-
const m = T(null), b = T(null), h = T(null), v = T(null), w = T(null), [
|
|
4623
|
+
const m = T(null), b = T(null), h = T(null), v = T(null), w = T(null), [$, S] = z(!1), _ = T(null), D = T({
|
|
4624
4624
|
startY: 0,
|
|
4625
4625
|
// Track where the scroll position was when gesture started
|
|
4626
4626
|
currentY: 0,
|
|
@@ -4663,7 +4663,7 @@ const Hi = ({
|
|
|
4663
4663
|
f && f(W), L();
|
|
4664
4664
|
},
|
|
4665
4665
|
[L]
|
|
4666
|
-
),
|
|
4666
|
+
), E = A(
|
|
4667
4667
|
(W) => {
|
|
4668
4668
|
const y = D.current;
|
|
4669
4669
|
y.frameCallback && (te(y.frameCallback), y.frameCallback = null);
|
|
@@ -4682,14 +4682,14 @@ const Hi = ({
|
|
|
4682
4682
|
const ce = () => {
|
|
4683
4683
|
const G = Date.now(), oe = G - K;
|
|
4684
4684
|
if (K = G, V *= Math.pow(0.95, oe / 16), y.currentY += V * oe, y.currentY > 0 || y.currentY < -y.maxScroll) {
|
|
4685
|
-
y.frameCallback && (te(y.frameCallback), y.frameCallback = null),
|
|
4685
|
+
y.frameCallback && (te(y.frameCallback), y.frameCallback = null), E(y.currentY > 0 ? 0 : -y.maxScroll);
|
|
4686
4686
|
return;
|
|
4687
4687
|
}
|
|
4688
4688
|
Y(y.currentY), Math.abs(V) < 0.01 && y.frameCallback && (te(y.frameCallback), y.frameCallback = null);
|
|
4689
4689
|
};
|
|
4690
4690
|
y.frameCallback = it.render(ce, !0);
|
|
4691
4691
|
},
|
|
4692
|
-
[Y,
|
|
4692
|
+
[Y, E]
|
|
4693
4693
|
), M = A(() => {
|
|
4694
4694
|
if (!u || !v.current) return;
|
|
4695
4695
|
w.current !== null && clearTimeout(w.current), requestAnimationFrame(() => {
|
|
@@ -4715,26 +4715,26 @@ const Hi = ({
|
|
|
4715
4715
|
const y = D.current;
|
|
4716
4716
|
if (!y.isScrolling) return;
|
|
4717
4717
|
const V = k(y.startY + W.deltaY);
|
|
4718
|
-
y.isPullingToRefresh && V < y.startY && (y.isPullingToRefresh = !1), Y(V), a && y.isPullingToRefresh &&
|
|
4718
|
+
y.isPullingToRefresh && V < y.startY && (y.isPullingToRefresh = !1), Y(V), a && y.isPullingToRefresh && !$ && V > 0 && (y.pullDistance = V, h.current && (h.current.textContent = y.pullDistance > y.refreshThreshold ? "Release to refresh" : "Pull to refresh")), M();
|
|
4719
4719
|
},
|
|
4720
4720
|
[
|
|
4721
4721
|
a,
|
|
4722
4722
|
Y,
|
|
4723
|
-
|
|
4723
|
+
$,
|
|
4724
4724
|
M,
|
|
4725
4725
|
k
|
|
4726
4726
|
]
|
|
4727
4727
|
), I = A(
|
|
4728
4728
|
(W) => {
|
|
4729
4729
|
const y = D.current;
|
|
4730
|
-
y.isScrolling && (y.isScrolling = !1, a && y.isPullingToRefresh &&
|
|
4730
|
+
y.isScrolling && (y.isScrolling = !1, a && y.isPullingToRefresh && !$ && y.pullDistance > y.refreshThreshold ? X() : y.currentY > 0 || y.currentY < -y.maxScroll ? E(y.currentY > 0 ? 0 : -y.maxScroll) : p(W.velocityY), y.isPullingToRefresh = !1);
|
|
4731
4731
|
},
|
|
4732
|
-
[a, p,
|
|
4732
|
+
[a, p, E, $]
|
|
4733
4733
|
), X = A(() => {
|
|
4734
|
-
S(!0),
|
|
4735
|
-
S(!1),
|
|
4734
|
+
S(!0), E(D.current.refreshThreshold), h.current && (h.current.textContent = "Refreshing..."), a && a().then(() => {
|
|
4735
|
+
S(!1), E(0);
|
|
4736
4736
|
});
|
|
4737
|
-
}, [a,
|
|
4737
|
+
}, [a, E]);
|
|
4738
4738
|
return B(() => {
|
|
4739
4739
|
if (!m.current) return;
|
|
4740
4740
|
const W = Fr(m.current, {
|
|
@@ -4851,7 +4851,7 @@ const Hi = ({
|
|
|
4851
4851
|
`scroller${e}`
|
|
4852
4852
|
);
|
|
4853
4853
|
};
|
|
4854
|
-
function
|
|
4854
|
+
function Zi({
|
|
4855
4855
|
id: e,
|
|
4856
4856
|
showScrollbar: t = !0,
|
|
4857
4857
|
onRefresh: r,
|
|
@@ -4877,46 +4877,46 @@ function Gi({
|
|
|
4877
4877
|
));
|
|
4878
4878
|
}),
|
|
4879
4879
|
[]
|
|
4880
|
-
), w = A((
|
|
4880
|
+
), w = A((E) => {
|
|
4881
4881
|
const { maxScroll: p } = h.current;
|
|
4882
|
-
return
|
|
4883
|
-
}, []),
|
|
4882
|
+
return E > 0 ? Math.pow(E, 0.8) : E < -p ? -p - Math.pow(-(E + p), 0.8) : E;
|
|
4883
|
+
}, []), $ = A(() => {
|
|
4884
4884
|
if (!t || !s.current || !l.current)
|
|
4885
4885
|
return;
|
|
4886
|
-
const { currentY:
|
|
4886
|
+
const { currentY: E, maxScroll: p } = h.current, M = s.current.offsetHeight, C = Math.max(
|
|
4887
4887
|
30,
|
|
4888
4888
|
M / (M + p) * M
|
|
4889
4889
|
), F = M - C;
|
|
4890
|
-
let I =
|
|
4891
|
-
|
|
4890
|
+
let I = -E / p * F, X = 1;
|
|
4891
|
+
E > 0 ? (I = 0, X = 1 - E / M, l.current.style.transformOrigin = "top") : E < -p ? (I = F, X = 1 - Math.abs(E + p) / M, l.current.style.transformOrigin = "bottom") : l.current.style.transformOrigin = "top", l.current.style.transform = `translate3d(0, ${I}px, 0) scaleY(${X})`, l.current.style.height = `${C}px`;
|
|
4892
4892
|
}, [t]), S = A(
|
|
4893
|
-
(
|
|
4894
|
-
if (h.current.currentY =
|
|
4893
|
+
(E) => {
|
|
4894
|
+
if (h.current.currentY = E, i.current && (i.current.style.transform = `translate3d(0, ${E}px, 0)`), c.current) {
|
|
4895
4895
|
const p = Math.max(
|
|
4896
|
-
|
|
4896
|
+
E - h.current.refreshThreshold,
|
|
4897
4897
|
-h.current.refreshThreshold
|
|
4898
4898
|
);
|
|
4899
4899
|
c.current.style.transform = `translate3d(0, ${p}px, 0)`;
|
|
4900
4900
|
}
|
|
4901
|
-
a && a(
|
|
4901
|
+
a && a(E), $();
|
|
4902
4902
|
},
|
|
4903
|
-
[
|
|
4903
|
+
[$]
|
|
4904
4904
|
), _ = A(
|
|
4905
|
-
(
|
|
4905
|
+
(E) => {
|
|
4906
4906
|
const p = h.current;
|
|
4907
4907
|
p.frameCallback && (te(p.frameCallback), p.frameCallback = null);
|
|
4908
|
-
const M = performance.now(), C = p.currentY, F =
|
|
4908
|
+
const M = performance.now(), C = p.currentY, F = E - C, I = () => {
|
|
4909
4909
|
const X = performance.now() - M, W = Math.min(X / n, 1), y = 1 - Math.pow(1 - W, 3), V = C + F * y;
|
|
4910
|
-
S(V), W >= 1 && (p.frameCallback && (te(p.frameCallback), p.frameCallback = null), S(
|
|
4910
|
+
S(V), W >= 1 && (p.frameCallback && (te(p.frameCallback), p.frameCallback = null), S(E));
|
|
4911
4911
|
};
|
|
4912
4912
|
p.frameCallback = it.render(I, !0);
|
|
4913
4913
|
},
|
|
4914
4914
|
[S, n]
|
|
4915
4915
|
), D = A(
|
|
4916
|
-
(
|
|
4916
|
+
(E) => {
|
|
4917
4917
|
const p = h.current;
|
|
4918
4918
|
p.frameCallback && (te(p.frameCallback), p.frameCallback = null);
|
|
4919
|
-
let M =
|
|
4919
|
+
let M = E, C = Date.now();
|
|
4920
4920
|
const F = () => {
|
|
4921
4921
|
const I = Date.now(), X = I - C;
|
|
4922
4922
|
if (C = I, M *= Math.pow(0.95, X / 16), p.currentY += M * X, p.currentY > 0 || p.currentY < -p.maxScroll) {
|
|
@@ -4933,14 +4933,14 @@ function Gi({
|
|
|
4933
4933
|
u.current !== null && clearTimeout(u.current), requestAnimationFrame(() => {
|
|
4934
4934
|
l.current && (l.current.style.opacity = "1");
|
|
4935
4935
|
});
|
|
4936
|
-
const
|
|
4936
|
+
const E = window.requestIdleCallback || ((p) => setTimeout(p, 1e3));
|
|
4937
4937
|
u.current = window.setTimeout(() => {
|
|
4938
|
-
|
|
4938
|
+
E(() => {
|
|
4939
4939
|
l.current && (l.current.style.opacity = "0"), u.current = null;
|
|
4940
4940
|
});
|
|
4941
4941
|
}, 1e3);
|
|
4942
4942
|
}, [t]), x = A(
|
|
4943
|
-
(
|
|
4943
|
+
(E) => {
|
|
4944
4944
|
if (b.current !== null && Date.now() - b.current < 50)
|
|
4945
4945
|
return;
|
|
4946
4946
|
b.current = Date.now();
|
|
@@ -4949,10 +4949,10 @@ function Gi({
|
|
|
4949
4949
|
},
|
|
4950
4950
|
[P]
|
|
4951
4951
|
), k = A(
|
|
4952
|
-
(
|
|
4952
|
+
(E) => {
|
|
4953
4953
|
const p = h.current;
|
|
4954
4954
|
if (!p.isScrolling) return;
|
|
4955
|
-
const M = w(p.startY +
|
|
4955
|
+
const M = w(p.startY + E.deltaY);
|
|
4956
4956
|
p.isPullingToRefresh && M < p.startY && (p.isPullingToRefresh = !1), S(M), r && p.isPullingToRefresh && !f && M > 0 && (p.pullDistance = M), P();
|
|
4957
4957
|
},
|
|
4958
4958
|
[
|
|
@@ -4967,15 +4967,15 @@ function Gi({
|
|
|
4967
4967
|
m(!1), _(0);
|
|
4968
4968
|
});
|
|
4969
4969
|
}, [r, _]), Y = A(
|
|
4970
|
-
(
|
|
4970
|
+
(E) => {
|
|
4971
4971
|
const p = h.current;
|
|
4972
|
-
p.isScrolling && (p.isScrolling = !1, r && p.isPullingToRefresh && !f && p.pullDistance > p.refreshThreshold ? L() : p.currentY > 0 || p.currentY < -p.maxScroll ? _(p.currentY > 0 ? 0 : -p.maxScroll) : D(
|
|
4972
|
+
p.isScrolling && (p.isScrolling = !1, r && p.isPullingToRefresh && !f && p.pullDistance > p.refreshThreshold ? L() : p.currentY > 0 || p.currentY < -p.maxScroll ? _(p.currentY > 0 ? 0 : -p.maxScroll) : D(E.velocityY), p.isPullingToRefresh = !1);
|
|
4973
4973
|
},
|
|
4974
4974
|
[r, D, _, f, L]
|
|
4975
4975
|
);
|
|
4976
4976
|
return B(() => {
|
|
4977
4977
|
if (!s.current) return;
|
|
4978
|
-
const
|
|
4978
|
+
const E = Fr(s.current, {
|
|
4979
4979
|
name: "page-scroller-gesture",
|
|
4980
4980
|
priority: 10,
|
|
4981
4981
|
passive: !0,
|
|
@@ -4984,13 +4984,13 @@ function Gi({
|
|
|
4984
4984
|
onMove: k,
|
|
4985
4985
|
onEnd: Y
|
|
4986
4986
|
});
|
|
4987
|
-
return
|
|
4987
|
+
return E.init(), () => E.destroy();
|
|
4988
4988
|
}, [x, k, Y]), B(() => {
|
|
4989
4989
|
if (s.current)
|
|
4990
|
-
return v(),
|
|
4990
|
+
return v(), $(), window.addEventListener("resize", v), () => {
|
|
4991
4991
|
window.removeEventListener("resize", v), u.current !== null && clearTimeout(u.current);
|
|
4992
4992
|
};
|
|
4993
|
-
}, [v,
|
|
4993
|
+
}, [v, $]), {
|
|
4994
4994
|
container: {
|
|
4995
4995
|
props: {
|
|
4996
4996
|
id: e,
|
|
@@ -5034,7 +5034,7 @@ function Gi({
|
|
|
5034
5034
|
refreshing: f,
|
|
5035
5035
|
updateMaxScroll: v,
|
|
5036
5036
|
rubberBandEffect: w,
|
|
5037
|
-
updateScrollbarPosition:
|
|
5037
|
+
updateScrollbarPosition: $,
|
|
5038
5038
|
setPosition: S
|
|
5039
5039
|
};
|
|
5040
5040
|
}
|
|
@@ -5043,7 +5043,7 @@ const Ys = {
|
|
|
5043
5043
|
4: "text-4xl",
|
|
5044
5044
|
5: "text-5xl",
|
|
5045
5045
|
6: "text-6xl"
|
|
5046
|
-
},
|
|
5046
|
+
}, el = ({
|
|
5047
5047
|
title: e,
|
|
5048
5048
|
description: t,
|
|
5049
5049
|
size: r = "6",
|
|
@@ -5052,7 +5052,7 @@ const Ys = {
|
|
|
5052
5052
|
}) => /* @__PURE__ */ g("div", { className: N("text-center", o), children: [
|
|
5053
5053
|
/* @__PURE__ */ d("p", { className: `${Ys[r]} font-medium`, children: e }),
|
|
5054
5054
|
t ? /* @__PURE__ */ d("p", { className: N("mt-6 text-base-11", n), children: t }) : null
|
|
5055
|
-
] }),
|
|
5055
|
+
] }), tl = Xe(
|
|
5056
5056
|
({
|
|
5057
5057
|
placeholder: e = "Buscar",
|
|
5058
5058
|
value: t,
|
|
@@ -5203,7 +5203,7 @@ function Hs(e) {
|
|
|
5203
5203
|
}
|
|
5204
5204
|
function Me(e) {
|
|
5205
5205
|
clearTimeout(ht.get(e));
|
|
5206
|
-
const t =
|
|
5206
|
+
const t = $t(e), r = qe(t) ? 500 : t.duration;
|
|
5207
5207
|
ht.set(
|
|
5208
5208
|
e,
|
|
5209
5209
|
setTimeout(async () => {
|
|
@@ -5313,7 +5313,7 @@ function fn(e, t, r) {
|
|
|
5313
5313
|
}
|
|
5314
5314
|
return [n, a, o, s].map(Math.round);
|
|
5315
5315
|
}
|
|
5316
|
-
function
|
|
5316
|
+
function $t(e) {
|
|
5317
5317
|
return be in e && Ae.has(e[be]) ? Ae.get(e[be]) : { duration: 250, easing: "ease-in-out" };
|
|
5318
5318
|
}
|
|
5319
5319
|
function mn(e) {
|
|
@@ -5341,7 +5341,7 @@ function Qs(e) {
|
|
|
5341
5341
|
if (!Zt(e)) return Z.set(e, r);
|
|
5342
5342
|
let n;
|
|
5343
5343
|
if (!t) return;
|
|
5344
|
-
const o =
|
|
5344
|
+
const o = $t(e);
|
|
5345
5345
|
if (typeof o != "function") {
|
|
5346
5346
|
const a = t.left - r.left, s = t.top - r.top, [i, c, l, u] = fn(
|
|
5347
5347
|
e,
|
|
@@ -5368,7 +5368,7 @@ function Nr(e) {
|
|
|
5368
5368
|
bt in e && delete e[bt];
|
|
5369
5369
|
const t = _e(e);
|
|
5370
5370
|
Z.set(e, t);
|
|
5371
|
-
const r =
|
|
5371
|
+
const r = $t(e);
|
|
5372
5372
|
if (!Zt(e)) return;
|
|
5373
5373
|
let n;
|
|
5374
5374
|
if (typeof r != "function")
|
|
@@ -5402,7 +5402,7 @@ function Gs(e) {
|
|
|
5402
5402
|
Object.defineProperty(e, Ve, { value: !0, configurable: !0 });
|
|
5403
5403
|
const n = window.scrollX, o = window.scrollY;
|
|
5404
5404
|
if (r && r.parentNode && r.parentNode instanceof Element ? r.parentNode.insertBefore(e, r) : t && t.parentNode ? t.parentNode.appendChild(e) : mn(e)?.appendChild(e), !Zt(e)) return kr(e);
|
|
5405
|
-
const [a, s, i, c] = Zs(e), l =
|
|
5405
|
+
const [a, s, i, c] = Zs(e), l = $t(e), u = Z.get(e);
|
|
5406
5406
|
(n !== Gt || o !== Jt) && Js(e, n, o, l);
|
|
5407
5407
|
let f, m = {
|
|
5408
5408
|
position: "absolute",
|
|
@@ -5507,7 +5507,7 @@ const ve = {
|
|
|
5507
5507
|
item: "grow"
|
|
5508
5508
|
}
|
|
5509
5509
|
}
|
|
5510
|
-
},
|
|
5510
|
+
}, rl = ({
|
|
5511
5511
|
options: e,
|
|
5512
5512
|
selected: t,
|
|
5513
5513
|
onChange: r,
|
|
@@ -5525,8 +5525,8 @@ const ve = {
|
|
|
5525
5525
|
className: b
|
|
5526
5526
|
}) => {
|
|
5527
5527
|
const [h, v] = z({ left: !1, right: !1 }), { ref: w } = jn({
|
|
5528
|
-
onOverflow: (
|
|
5529
|
-
v({ left:
|
|
5528
|
+
onOverflow: ($) => {
|
|
5529
|
+
v({ left: $.canScrollLeft, right: $.canScrollRight });
|
|
5530
5530
|
},
|
|
5531
5531
|
// enabled: inView,
|
|
5532
5532
|
trackScroll: m
|
|
@@ -5550,12 +5550,12 @@ const ve = {
|
|
|
5550
5550
|
ve.rounded[f],
|
|
5551
5551
|
ve.border[u]
|
|
5552
5552
|
),
|
|
5553
|
-
children: e.map((
|
|
5554
|
-
const S = n(t) === n(
|
|
5553
|
+
children: e.map(($) => {
|
|
5554
|
+
const S = n(t) === n($);
|
|
5555
5555
|
return /* @__PURE__ */ d(
|
|
5556
5556
|
"button",
|
|
5557
5557
|
{
|
|
5558
|
-
onClick: () => r?.(
|
|
5558
|
+
onClick: () => r?.($),
|
|
5559
5559
|
className: N(
|
|
5560
5560
|
"border-r px-3 py-1 last:border-none text-nowrap shrink-0",
|
|
5561
5561
|
ve.widths[l].item,
|
|
@@ -5564,9 +5564,9 @@ const ve = {
|
|
|
5564
5564
|
ve.border[u],
|
|
5565
5565
|
s
|
|
5566
5566
|
),
|
|
5567
|
-
children: o(
|
|
5567
|
+
children: o($)
|
|
5568
5568
|
},
|
|
5569
|
-
n(
|
|
5569
|
+
n($)
|
|
5570
5570
|
);
|
|
5571
5571
|
})
|
|
5572
5572
|
}
|
|
@@ -5624,7 +5624,7 @@ function ei({
|
|
|
5624
5624
|
searchable: b,
|
|
5625
5625
|
className: h
|
|
5626
5626
|
}) {
|
|
5627
|
-
const [v, w] = z(-1),
|
|
5627
|
+
const [v, w] = z(-1), $ = T(null), {
|
|
5628
5628
|
triggerRef: S,
|
|
5629
5629
|
triggerProps: _,
|
|
5630
5630
|
popoverRef: D,
|
|
@@ -5637,7 +5637,7 @@ function ei({
|
|
|
5637
5637
|
side: "bottom",
|
|
5638
5638
|
avoidCollisions: !0,
|
|
5639
5639
|
onOpen: () => {
|
|
5640
|
-
b &&
|
|
5640
|
+
b && $.current && setTimeout(() => $.current?.focus(), 10);
|
|
5641
5641
|
},
|
|
5642
5642
|
onClose: () => {
|
|
5643
5643
|
w(-1);
|
|
@@ -5646,7 +5646,7 @@ function ei({
|
|
|
5646
5646
|
Bt(D, (p) => {
|
|
5647
5647
|
!S.current || !x || !p.target || S.current.contains(p.target) || L();
|
|
5648
5648
|
});
|
|
5649
|
-
const Y = P(),
|
|
5649
|
+
const Y = P(), E = l && n ? l(n, r) : n;
|
|
5650
5650
|
return /* @__PURE__ */ g("div", { className: N("relative", h), children: [
|
|
5651
5651
|
t === "default" && /* @__PURE__ */ d(
|
|
5652
5652
|
"label",
|
|
@@ -5667,7 +5667,7 @@ function ei({
|
|
|
5667
5667
|
onClick: k,
|
|
5668
5668
|
..._,
|
|
5669
5669
|
children: [
|
|
5670
|
-
|
|
5670
|
+
E ? s(E) : m,
|
|
5671
5671
|
/* @__PURE__ */ d(
|
|
5672
5672
|
Ln,
|
|
5673
5673
|
{
|
|
@@ -5700,7 +5700,7 @@ function ei({
|
|
|
5700
5700
|
),
|
|
5701
5701
|
role: "listbox",
|
|
5702
5702
|
children: r.map((p, M) => {
|
|
5703
|
-
const C = !!(
|
|
5703
|
+
const C = !!(E && a(p) === a(E)), F = M === v, I = i?.(p);
|
|
5704
5704
|
return /* @__PURE__ */ g(
|
|
5705
5705
|
"div",
|
|
5706
5706
|
{
|
|
@@ -5736,7 +5736,7 @@ function ei({
|
|
|
5736
5736
|
) }) })
|
|
5737
5737
|
] });
|
|
5738
5738
|
}
|
|
5739
|
-
const
|
|
5739
|
+
const nl = ({ name: e, ...t }) => {
|
|
5740
5740
|
const { control: r } = Ue();
|
|
5741
5741
|
return r ? /* @__PURE__ */ d(
|
|
5742
5742
|
Qe,
|
|
@@ -5757,7 +5757,7 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5757
5757
|
"Form control missing for field: ",
|
|
5758
5758
|
e
|
|
5759
5759
|
] }));
|
|
5760
|
-
},
|
|
5760
|
+
}, ol = ({ className: e }) => /* @__PURE__ */ d("div", { className: N("w-full h-px bg-base-4", e) }), al = ({
|
|
5761
5761
|
text: e,
|
|
5762
5762
|
length: t = 120,
|
|
5763
5763
|
size: r = "sm",
|
|
@@ -5796,7 +5796,7 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5796
5796
|
}
|
|
5797
5797
|
)
|
|
5798
5798
|
}
|
|
5799
|
-
) }),
|
|
5799
|
+
) }), sl = ({
|
|
5800
5800
|
isEditable: e,
|
|
5801
5801
|
isDeletable: t = !0,
|
|
5802
5802
|
createUpdateLoading: r,
|
|
@@ -5838,7 +5838,7 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5838
5838
|
}
|
|
5839
5839
|
)
|
|
5840
5840
|
] });
|
|
5841
|
-
}, pn = zt(void 0),
|
|
5841
|
+
}, pn = zt(void 0), il = ({
|
|
5842
5842
|
children: e,
|
|
5843
5843
|
debug: t = !1
|
|
5844
5844
|
}) => {
|
|
@@ -5900,7 +5900,7 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5900
5900
|
}, ni = ({
|
|
5901
5901
|
withPortal: e,
|
|
5902
5902
|
children: t
|
|
5903
|
-
}) => e ? /* @__PURE__ */ d(Ze, { children: t }) : /* @__PURE__ */ d(gt, { children: t }),
|
|
5903
|
+
}) => e ? /* @__PURE__ */ d(Ze, { children: t }) : /* @__PURE__ */ d(gt, { children: t }), ll = ({
|
|
5904
5904
|
id: e,
|
|
5905
5905
|
prevPath: t,
|
|
5906
5906
|
withDelay: r,
|
|
@@ -5918,9 +5918,9 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5918
5918
|
const m = Wn(), b = yt(), h = T(null), v = ri(), w = ae(() => i === "modal" || b, [i, b]);
|
|
5919
5919
|
return B(() => {
|
|
5920
5920
|
v.add(e);
|
|
5921
|
-
const
|
|
5922
|
-
if (
|
|
5923
|
-
|
|
5921
|
+
const $ = v.getPrevId();
|
|
5922
|
+
if (!$ || (h.current = document.getElementById($), !h.current)) return;
|
|
5923
|
+
$ && v.animateParentModal(
|
|
5924
5924
|
h.current,
|
|
5925
5925
|
w ? "modal" : "sheet"
|
|
5926
5926
|
);
|
|
@@ -5930,7 +5930,7 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5930
5930
|
console.log("IS THIS CLEANUP RUNNING?");
|
|
5931
5931
|
};
|
|
5932
5932
|
//! NOT RUNNING...
|
|
5933
|
-
}, [b]),
|
|
5933
|
+
}, [b]), Er(() => () => v.remove(e), []), /* @__PURE__ */ g(ni, { withPortal: n, children: [
|
|
5934
5934
|
/* @__PURE__ */ d(
|
|
5935
5935
|
ie.div,
|
|
5936
5936
|
{
|
|
@@ -5994,8 +5994,8 @@ const tl = ({ name: e, ...t }) => {
|
|
|
5994
5994
|
translateY: w ? "50%" : 0,
|
|
5995
5995
|
height: w ? "65%" : "95%"
|
|
5996
5996
|
},
|
|
5997
|
-
onAnimationStart: (
|
|
5998
|
-
(
|
|
5997
|
+
onAnimationStart: ($) => {
|
|
5998
|
+
($?.scale === 0.8 || $?.y > 50) && h.current && v.restoreParentModal(h.current);
|
|
5999
5999
|
},
|
|
6000
6000
|
className: N(
|
|
6001
6001
|
"bg-base-1 absolute w-full lg:max-w-[600px] h-full rounded-6 overflow-hidden flex flex-col",
|
|
@@ -6041,7 +6041,7 @@ function oi({
|
|
|
6041
6041
|
required: o,
|
|
6042
6042
|
className: a = ""
|
|
6043
6043
|
}) {
|
|
6044
|
-
const s =
|
|
6044
|
+
const s = $r();
|
|
6045
6045
|
return /* @__PURE__ */ g(
|
|
6046
6046
|
"button",
|
|
6047
6047
|
{
|
|
@@ -6107,7 +6107,7 @@ const ai = ({
|
|
|
6107
6107
|
maxTags: c,
|
|
6108
6108
|
validateTag: l
|
|
6109
6109
|
}) => {
|
|
6110
|
-
const [u, f] = z(""), [m, b] = z(!1), [h, v] = z(null), w = T(null),
|
|
6110
|
+
const [u, f] = z(""), [m, b] = z(!1), [h, v] = z(null), w = T(null), $ = T(null), S = T([]), _ = n.length > 0, D = T(
|
|
6111
6111
|
`taginput-${Math.random().toString(36).substr(2, 9)}`
|
|
6112
6112
|
).current, P = T(
|
|
6113
6113
|
`label-${Math.random().toString(36).substr(2, 9)}`
|
|
@@ -6156,7 +6156,7 @@ const ai = ({
|
|
|
6156
6156
|
o(n.filter((I) => I !== C)), setTimeout(() => {
|
|
6157
6157
|
F < n.length - 1 ? S.current[F]?.focus() : F > 0 ? S.current[F - 1]?.focus() : w.current?.focus();
|
|
6158
6158
|
}, 0), M(`Removed tag ${C}`);
|
|
6159
|
-
},
|
|
6159
|
+
}, E = (C) => {
|
|
6160
6160
|
f(C.target.value), v(null);
|
|
6161
6161
|
}, p = () => {
|
|
6162
6162
|
w.current && w.current.focus();
|
|
@@ -6164,7 +6164,7 @@ const ai = ({
|
|
|
6164
6164
|
console.log(`Accessibility announcement: ${C}`);
|
|
6165
6165
|
};
|
|
6166
6166
|
return /* @__PURE__ */ g("div", { children: [
|
|
6167
|
-
/* @__PURE__ */ g("div", { className: "relative", ref:
|
|
6167
|
+
/* @__PURE__ */ g("div", { className: "relative", ref: $, children: [
|
|
6168
6168
|
t === "default" ? /* @__PURE__ */ g(
|
|
6169
6169
|
"label",
|
|
6170
6170
|
{
|
|
@@ -6266,7 +6266,7 @@ const ai = ({
|
|
|
6266
6266
|
type: "text",
|
|
6267
6267
|
className: "flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm placeholder:text-secondarytext",
|
|
6268
6268
|
value: u,
|
|
6269
|
-
onChange:
|
|
6269
|
+
onChange: E,
|
|
6270
6270
|
onKeyDown: k,
|
|
6271
6271
|
onFocus: () => b(!0),
|
|
6272
6272
|
onBlur: () => b(!1),
|
|
@@ -6297,7 +6297,7 @@ const ai = ({
|
|
|
6297
6297
|
),
|
|
6298
6298
|
/* @__PURE__ */ d("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: n.length > 0 ? `Current tags: ${n.join(", ")}` : "No tags added yet" })
|
|
6299
6299
|
] });
|
|
6300
|
-
},
|
|
6300
|
+
}, cl = ({ name: e, ...t }) => {
|
|
6301
6301
|
const { control: r } = Ue();
|
|
6302
6302
|
return r ? /* @__PURE__ */ d(
|
|
6303
6303
|
Qe,
|
|
@@ -6398,7 +6398,7 @@ const ai = ({
|
|
|
6398
6398
|
}
|
|
6399
6399
|
);
|
|
6400
6400
|
gn.displayName = "TextArea";
|
|
6401
|
-
const
|
|
6401
|
+
const ul = ({
|
|
6402
6402
|
name: e,
|
|
6403
6403
|
customRead: t,
|
|
6404
6404
|
customSet: r,
|
|
@@ -6442,7 +6442,7 @@ const ll = ({
|
|
|
6442
6442
|
"Viernes",
|
|
6443
6443
|
"Sábado",
|
|
6444
6444
|
"Domingo"
|
|
6445
|
-
],
|
|
6445
|
+
], dl = () => /* @__PURE__ */ d(li, {}), li = () => /* @__PURE__ */ d("div", { children: ii.map((e) => /* @__PURE__ */ d(ci, { day: e }, e)) }), ci = ({ day: e }) => {
|
|
6446
6446
|
const [t, r] = z(!1), n = T(null);
|
|
6447
6447
|
return B(() => {
|
|
6448
6448
|
n.current && bn(n.current);
|
|
@@ -6507,76 +6507,121 @@ const ll = ({
|
|
|
6507
6507
|
)
|
|
6508
6508
|
] });
|
|
6509
6509
|
};
|
|
6510
|
+
/**
|
|
6511
|
+
* @license
|
|
6512
|
+
* Attempt
|
|
6513
|
+
* Copyright (c) 2025 Mateo Suarez. All rights reserved.
|
|
6514
|
+
*
|
|
6515
|
+
* Free to use in your own personal or commercial applications and projects.
|
|
6516
|
+
* Unauthorized copying, modification, or distribution is strictly prohibited.
|
|
6517
|
+
* See LICENSE file for full terms.
|
|
6518
|
+
*/
|
|
6519
|
+
class di {
|
|
6520
|
+
listeners = /* @__PURE__ */ new Map();
|
|
6521
|
+
emit(t, r) {
|
|
6522
|
+
let n = this.listeners.get(t);
|
|
6523
|
+
n && n.forEach((o) => o(r));
|
|
6524
|
+
}
|
|
6525
|
+
listen(t, r) {
|
|
6526
|
+
return this.listeners.has(t) || this.listeners.set(t, /* @__PURE__ */ new Set()), this.listeners.get(t).add(r), () => {
|
|
6527
|
+
let n = this.listeners.get(t);
|
|
6528
|
+
n && (n.delete(r), n.size === 0 && this.listeners.delete(t));
|
|
6529
|
+
};
|
|
6530
|
+
}
|
|
6531
|
+
}
|
|
6532
|
+
class fl {
|
|
6533
|
+
constructor() {
|
|
6534
|
+
this.listeners = /* @__PURE__ */ new Map();
|
|
6535
|
+
}
|
|
6536
|
+
emit(t, r) {
|
|
6537
|
+
const n = this.listeners.get(t);
|
|
6538
|
+
n && n.forEach((o) => o(r));
|
|
6539
|
+
}
|
|
6540
|
+
listen(t, r) {
|
|
6541
|
+
return this.listeners.has(t) || this.listeners.set(t, /* @__PURE__ */ new Set()), this.listeners.get(t).add(r), () => {
|
|
6542
|
+
const n = this.listeners.get(t);
|
|
6543
|
+
n && (n.delete(r), n.size === 0 && this.listeners.delete(t));
|
|
6544
|
+
};
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
function ml(e, t, r = !0) {
|
|
6548
|
+
const n = T(void 0);
|
|
6549
|
+
B(() => (r || n.current && n.current(), n.current = fi.listen(e, t), () => n.current && n.current()), [e, t, r]);
|
|
6550
|
+
}
|
|
6551
|
+
const fi = new di();
|
|
6510
6552
|
export {
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6553
|
+
qi as AliveScope,
|
|
6554
|
+
Di as Avatar,
|
|
6555
|
+
Pi as AvatarsGroup,
|
|
6514
6556
|
U as Button,
|
|
6515
6557
|
Zr as Calendar,
|
|
6516
6558
|
vs as Checkbox,
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
Hi as
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6559
|
+
ji as ConfirmationDialog,
|
|
6560
|
+
_i as DatePickerDemo,
|
|
6561
|
+
Yi as DatePickerPopover,
|
|
6562
|
+
Ii as DateTimePicker,
|
|
6563
|
+
zi as ElasticHeader,
|
|
6564
|
+
fl as EventEmitter,
|
|
6565
|
+
Ci as FocusTrap,
|
|
6566
|
+
Hi as Form,
|
|
6567
|
+
Vi as FormInput,
|
|
6568
|
+
Gi as FormMultiSelect,
|
|
6569
|
+
nl as FormSelect,
|
|
6570
|
+
sl as FormSubmit,
|
|
6571
|
+
cl as FormTags,
|
|
6572
|
+
ul as FormTextArea,
|
|
6573
|
+
dl as FormWorkingHours,
|
|
6531
6574
|
Ds as Icon,
|
|
6532
6575
|
sn as Input,
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6576
|
+
Ki as KeepAlive,
|
|
6577
|
+
Ui as List,
|
|
6578
|
+
Qi as ListItem,
|
|
6579
|
+
il as ModalsProvider,
|
|
6537
6580
|
_s as MultiSelect,
|
|
6538
|
-
|
|
6539
|
-
|
|
6581
|
+
Ji as PageScroller,
|
|
6582
|
+
el as PageTitle,
|
|
6540
6583
|
ps as PopoverCard,
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6584
|
+
Wi as PopoverCardContent,
|
|
6585
|
+
Ai as PopoverCardFooter,
|
|
6586
|
+
Fi as PopoverCardHeader,
|
|
6544
6587
|
Ze as Portal,
|
|
6545
|
-
|
|
6546
|
-
|
|
6588
|
+
tl as SearchInput,
|
|
6589
|
+
rl as SegmentedControl,
|
|
6547
6590
|
ei as Select,
|
|
6548
|
-
|
|
6549
|
-
|
|
6591
|
+
ol as Separator,
|
|
6592
|
+
al as ShowMoreText,
|
|
6550
6593
|
ti as Spinner,
|
|
6551
|
-
|
|
6594
|
+
ll as SuperModal,
|
|
6552
6595
|
oi as Switch,
|
|
6553
6596
|
ai as Tags,
|
|
6554
6597
|
gn as TextArea,
|
|
6555
|
-
|
|
6598
|
+
Ri as TimePicker,
|
|
6556
6599
|
Bn as calculatePopoverPosition,
|
|
6557
6600
|
lt as checkOverflow,
|
|
6558
6601
|
N as cn,
|
|
6559
|
-
|
|
6560
|
-
|
|
6602
|
+
$i as debounce,
|
|
6603
|
+
fi as eventEmitter,
|
|
6604
|
+
Si as extractDirtyData,
|
|
6561
6605
|
Yn as generateInitials,
|
|
6562
6606
|
Wr as nullRead,
|
|
6563
6607
|
Lt as nullSet,
|
|
6564
6608
|
In as removeWhitespaces,
|
|
6565
6609
|
Rn as setFocusEnd,
|
|
6566
6610
|
Ge as throttle,
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6611
|
+
Ti as toTitleCase,
|
|
6612
|
+
Oi as useClickAway,
|
|
6613
|
+
Li as useClickAwayAdvanced,
|
|
6570
6614
|
Bt as useClickAwayWithRef,
|
|
6571
|
-
|
|
6615
|
+
ml as useEventListener,
|
|
6616
|
+
Xi as useKeepAlive,
|
|
6572
6617
|
Vn as useKeyListener,
|
|
6573
6618
|
yt as useLargeScreen,
|
|
6574
6619
|
Ar as useMergedRef,
|
|
6575
|
-
|
|
6620
|
+
Bi as useMethods,
|
|
6576
6621
|
ri as useModals,
|
|
6577
6622
|
jn as useOverflow,
|
|
6578
|
-
|
|
6623
|
+
Mi as useOverflowState,
|
|
6579
6624
|
Ht as usePopover,
|
|
6580
6625
|
Hn as useRipple,
|
|
6581
|
-
|
|
6626
|
+
Zi as useScroller
|
|
6582
6627
|
};
|