@mateosuarezdev/react-ui 1.0.48 → 1.0.50
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 +3 -3
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1082 -1018
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
* See LICENSE file for full terms.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { jsx as d, jsxs as
|
|
12
|
-
import
|
|
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 $r, useCallback as A, useId as Er, 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
15
|
import { twMerge as $n } from "tailwind-merge";
|
|
16
16
|
import { atom as En } from "@mateosuarezdev/atoms";
|
|
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
|
|
18
|
-
import { AnimatePresence as
|
|
19
|
-
import {
|
|
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
|
+
import { AnimatePresence as Ke, motion as ie, useTransform as tr, cancelFrame as te, frame as it, animate as Ot } from "framer-motion";
|
|
19
|
+
import { useSearchParams as Fn, navigate as ke, useInitialChangeEvent as Wn } from "@mateosuarezdev/react-router";
|
|
20
|
+
import { appendErrors as Lr, FormProvider as An, useForm as _n, useFormContext as Ue, Controller as Qe } from "react-hook-form";
|
|
20
21
|
import { validateFieldsNatively as rr, toNestErrors as nr } from "@hookform/resolvers";
|
|
21
22
|
import { createGesture as Fr } from "@mateosuarezdev/gestures";
|
|
22
|
-
import { useInitialChangeEvent as An, navigate as et } from "@mateosuarezdev/react-router";
|
|
23
23
|
const N = (...e) => $n(kn(e));
|
|
24
|
-
function
|
|
24
|
+
function Ge(e, t = 100) {
|
|
25
25
|
let r = null, n = null;
|
|
26
26
|
return function(...o) {
|
|
27
27
|
const a = Date.now();
|
|
@@ -30,7 +30,7 @@ function Ue(e, t = 100) {
|
|
|
30
30
|
}, t - (a - r)));
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ki(e, t = 500) {
|
|
34
34
|
let r = null;
|
|
35
35
|
return function(...n) {
|
|
36
36
|
r && clearTimeout(r), r = setTimeout(() => {
|
|
@@ -38,20 +38,20 @@ function Ni(e, t = 500) {
|
|
|
38
38
|
}, t);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Yn(e) {
|
|
42
42
|
if (!e) return "";
|
|
43
43
|
const r = e.trim().replace(/\s+/g, " ").split(" ");
|
|
44
44
|
return r.length === 0 || r[0] === "" ? "" : r.length === 1 ? r[0].charAt(0).toUpperCase() : (r[0].charAt(0) + r[1].charAt(0)).toUpperCase();
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Rn(e) {
|
|
47
47
|
e.focus();
|
|
48
48
|
const t = e.value.length;
|
|
49
49
|
e.setSelectionRange(t, t);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function In(e) {
|
|
52
52
|
return e.replace(/\s/g, "");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function $i(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);
|
|
@@ -61,10 +61,10 @@ function ki(e) {
|
|
|
61
61
|
function Wr(e) {
|
|
62
62
|
return e === null ? "" : e;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
64
|
+
function Lt(e) {
|
|
65
|
+
return In(e) === "" ? null : e;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Ei(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 $i(e, t, r = {}) {
|
|
|
73
73
|
}
|
|
74
74
|
}), n;
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class Ti {
|
|
77
77
|
constructor() {
|
|
78
78
|
this.container = null, this.previouslyFocusedElement = null;
|
|
79
79
|
}
|
|
@@ -98,7 +98,7 @@ class Ei {
|
|
|
98
98
|
this.container && !this.container.contains(t.target) && (t.preventDefault(), this.previouslyFocusedElement && this.previouslyFocusedElement.focus && this.previouslyFocusedElement.focus());
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const lt = (e) => {
|
|
102
102
|
const t = e.scrollWidth > e.clientWidth, r = e.scrollHeight > e.clientHeight, n = Math.max(0, e.scrollWidth - e.clientWidth), o = Math.max(0, e.scrollHeight - e.clientHeight);
|
|
103
103
|
return {
|
|
104
104
|
horizontal: t,
|
|
@@ -118,7 +118,7 @@ const st = (e) => {
|
|
|
118
118
|
scrollPercentageX: t && n > 0 ? e.scrollLeft / n * 100 : 0,
|
|
119
119
|
scrollPercentageY: r && o > 0 ? e.scrollTop / o * 100 : 0
|
|
120
120
|
};
|
|
121
|
-
},
|
|
121
|
+
}, jn = ({
|
|
122
122
|
onOverflow: e,
|
|
123
123
|
trackScroll: t = !1,
|
|
124
124
|
// New option to enable scroll tracking
|
|
@@ -130,12 +130,12 @@ const st = (e) => {
|
|
|
130
130
|
return B(() => {
|
|
131
131
|
if (!a.current || !n) return;
|
|
132
132
|
let s = !1;
|
|
133
|
-
const c =
|
|
133
|
+
const c = Ge(() => {
|
|
134
134
|
if (a.current) {
|
|
135
|
-
const m =
|
|
135
|
+
const m = lt(a.current);
|
|
136
136
|
e?.(m);
|
|
137
137
|
}
|
|
138
|
-
}), l =
|
|
138
|
+
}), l = lt(a.current);
|
|
139
139
|
s = l.horizontal || l.vertical, e?.(l), window.addEventListener("resize", c);
|
|
140
140
|
let u = null;
|
|
141
141
|
r && (u = new ResizeObserver(c), a.current && u.observe(a.current));
|
|
@@ -144,7 +144,7 @@ const st = (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
|
+
}, Si = ({
|
|
148
148
|
trackScroll: e = !1,
|
|
149
149
|
withObserver: t = !1,
|
|
150
150
|
enabled: r = !0,
|
|
@@ -154,12 +154,12 @@ const st = (e) => {
|
|
|
154
154
|
return B(() => {
|
|
155
155
|
if (!o.current || !r) return;
|
|
156
156
|
let i = !1;
|
|
157
|
-
const l =
|
|
157
|
+
const l = Ge(() => {
|
|
158
158
|
if (o.current) {
|
|
159
|
-
const b =
|
|
159
|
+
const b = lt(o.current);
|
|
160
160
|
s(b);
|
|
161
161
|
}
|
|
162
|
-
}), u =
|
|
162
|
+
}), u = lt(o.current);
|
|
163
163
|
i = u.horizontal || u.vertical, s(u), window.addEventListener("resize", l);
|
|
164
164
|
let f = null;
|
|
165
165
|
t && (f = new ResizeObserver(l), o.current && f.observe(o.current));
|
|
@@ -168,13 +168,13 @@ const st = (e) => {
|
|
|
168
168
|
window.removeEventListener("resize", l), f && f.disconnect(), m && i && m.removeEventListener("scroll", l);
|
|
169
169
|
};
|
|
170
170
|
}, [r, ...n]), { ref: o, overflowInfo: a };
|
|
171
|
-
},
|
|
171
|
+
}, St = {
|
|
172
172
|
xs: "w-8 h-8",
|
|
173
173
|
sm: "w-10 h-10 text-lg",
|
|
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
|
+
}, Ci = ({
|
|
178
178
|
src: e,
|
|
179
179
|
name: t,
|
|
180
180
|
size: r = "md",
|
|
@@ -184,17 +184,17 @@ const st = (e) => {
|
|
|
184
184
|
{
|
|
185
185
|
alt: "avatar",
|
|
186
186
|
src: e,
|
|
187
|
-
className: N("rounded-full bg-base-3",
|
|
187
|
+
className: N("rounded-full bg-base-3", St[r])
|
|
188
188
|
}
|
|
189
189
|
) : t ? /* @__PURE__ */ d(
|
|
190
190
|
"p",
|
|
191
191
|
{
|
|
192
192
|
className: N(
|
|
193
193
|
"rounded-full font-medium dark-theme:bg-base-3 border border-base-6 dark-theme:border-base-4 flex items-center justify-center",
|
|
194
|
-
|
|
194
|
+
St[r],
|
|
195
195
|
n
|
|
196
196
|
),
|
|
197
|
-
children:
|
|
197
|
+
children: Yn(t)
|
|
198
198
|
}
|
|
199
199
|
) : /* @__PURE__ */ d(
|
|
200
200
|
"div",
|
|
@@ -203,11 +203,11 @@ const st = (e) => {
|
|
|
203
203
|
"rounded-full text-2xl font-medium flex items-center justify-center",
|
|
204
204
|
"bg-base-2 dark-theme:bg-base-3 border border-base-4",
|
|
205
205
|
"lg:hover:bg-base-3 max-lg:active:bg-base-4 transition-colors",
|
|
206
|
-
|
|
206
|
+
St[r],
|
|
207
207
|
n
|
|
208
208
|
),
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
|
|
209
|
+
children: /* @__PURE__ */ g(
|
|
210
|
+
Ds,
|
|
211
211
|
{
|
|
212
212
|
size: r === "xs" ? 16 : r === "sm" ? 20 : 24,
|
|
213
213
|
fill: "none",
|
|
@@ -223,7 +223,7 @@ const st = (e) => {
|
|
|
223
223
|
)
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
|
-
function
|
|
226
|
+
function Mi({
|
|
227
227
|
className: e,
|
|
228
228
|
children: t,
|
|
229
229
|
animate: r = !1,
|
|
@@ -238,24 +238,24 @@ function Ci({
|
|
|
238
238
|
}
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function zn(e) {
|
|
242
242
|
return xn(
|
|
243
243
|
(t) => e.subscribe(t),
|
|
244
244
|
() => e.get(),
|
|
245
245
|
() => e.get()
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const Ft = En(
|
|
249
249
|
typeof window < "u" ? window.innerWidth > 1024 : !0
|
|
250
250
|
);
|
|
251
|
-
let
|
|
252
|
-
const or =
|
|
253
|
-
|
|
251
|
+
let Ct = !1;
|
|
252
|
+
const or = Ge(() => {
|
|
253
|
+
Ft.set(window.innerWidth > 1024);
|
|
254
254
|
});
|
|
255
|
-
typeof window < "u" && (
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
}, []),
|
|
255
|
+
typeof window < "u" && (Ct && (window.removeEventListener("resize", or), Ct = !1), window.addEventListener("resize", or), Ct = !0);
|
|
256
|
+
const yt = () => ($r(() => {
|
|
257
|
+
Ft.set(window.innerWidth > 1024);
|
|
258
|
+
}, []), zn(Ft));
|
|
259
259
|
function Ar(...e) {
|
|
260
260
|
return (t) => {
|
|
261
261
|
e.forEach((r) => {
|
|
@@ -263,8 +263,8 @@ function Ar(...e) {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
const r =
|
|
266
|
+
const Hn = (e = !0, t) => {
|
|
267
|
+
const r = yt(), n = T(null), o = A(
|
|
268
268
|
(a) => {
|
|
269
269
|
if (!e || r) return;
|
|
270
270
|
const s = n.current;
|
|
@@ -307,7 +307,7 @@ const zn = (e = !0, t) => {
|
|
|
307
307
|
const [l, u] = z(!1), [f, m] = z({
|
|
308
308
|
width: 192,
|
|
309
309
|
height: 300
|
|
310
|
-
}), b = T(null), h = T(null),
|
|
310
|
+
}), b = T(null), h = T(null), v = T({
|
|
311
311
|
left: 0,
|
|
312
312
|
right: 0,
|
|
313
313
|
top: 0,
|
|
@@ -316,12 +316,12 @@ const zn = (e = !0, t) => {
|
|
|
316
316
|
y: 0,
|
|
317
317
|
width: 0,
|
|
318
318
|
height: 0
|
|
319
|
-
}),
|
|
319
|
+
}), w = T(null), E = Er(), S = A(
|
|
320
320
|
(x) => {
|
|
321
|
-
const k = x ??
|
|
321
|
+
const k = x ?? v.current;
|
|
322
322
|
if (!k) return { x: 0, top: 0, bottom: void 0 };
|
|
323
323
|
const L = f.width, Y = f.height;
|
|
324
|
-
return
|
|
324
|
+
return Bn({
|
|
325
325
|
triggerRect: k,
|
|
326
326
|
popoverWidth: L,
|
|
327
327
|
popoverHeight: Y,
|
|
@@ -332,18 +332,18 @@ const zn = (e = !0, t) => {
|
|
|
332
332
|
avoidCollisions: a
|
|
333
333
|
});
|
|
334
334
|
},
|
|
335
|
-
[
|
|
335
|
+
[v.current, f, t, r]
|
|
336
336
|
);
|
|
337
337
|
B(() => {
|
|
338
|
-
if (!l || !e || (
|
|
338
|
+
if (!l || !e || (w.current = document.getElementById(e), !w.current)) return;
|
|
339
339
|
l && _();
|
|
340
340
|
const x = () => {
|
|
341
|
-
|
|
341
|
+
w.current && (u(!1), i?.(), w.current.removeEventListener("scroll", x));
|
|
342
342
|
};
|
|
343
|
-
return s &&
|
|
343
|
+
return s && w.current.addEventListener("scroll", x, {
|
|
344
344
|
passive: !0
|
|
345
345
|
}), () => {
|
|
346
|
-
|
|
346
|
+
w.current && w.current.removeEventListener("scroll", x);
|
|
347
347
|
};
|
|
348
348
|
}, [l, e]);
|
|
349
349
|
const _ = () => {
|
|
@@ -354,7 +354,7 @@ const zn = (e = !0, t) => {
|
|
|
354
354
|
}, D = A(() => {
|
|
355
355
|
if (!b.current) return;
|
|
356
356
|
const x = b.current.getBoundingClientRect();
|
|
357
|
-
|
|
357
|
+
v.current = {
|
|
358
358
|
left: x.left,
|
|
359
359
|
right: x.right,
|
|
360
360
|
top: x.top,
|
|
@@ -384,7 +384,7 @@ const zn = (e = !0, t) => {
|
|
|
384
384
|
toggle: D,
|
|
385
385
|
close: P
|
|
386
386
|
};
|
|
387
|
-
},
|
|
387
|
+
}, Bn = ({
|
|
388
388
|
triggerRect: e,
|
|
389
389
|
popoverWidth: t,
|
|
390
390
|
popoverHeight: r,
|
|
@@ -401,25 +401,25 @@ const zn = (e = !0, t) => {
|
|
|
401
401
|
let l = 0, u = 0;
|
|
402
402
|
if (i) {
|
|
403
403
|
if (o === "right") {
|
|
404
|
-
const b = e.right + a, h = e.left - t - a,
|
|
404
|
+
const b = e.right + a, h = e.left - t - a, v = Math.max(
|
|
405
405
|
0,
|
|
406
406
|
b + t - (c.width - s)
|
|
407
|
-
),
|
|
408
|
-
|
|
407
|
+
), w = Math.max(0, s - h);
|
|
408
|
+
v <= w ? (l = b, v > 0 && (l = c.width - t - s)) : (l = h, w > 0 && (l = s)), u = e.top, u + r > c.height - s && (u = c.height - r - s), u < s && (u = s);
|
|
409
409
|
} else if (o === "left") {
|
|
410
|
-
const b = e.left - t - a, h = e.right + a,
|
|
410
|
+
const b = e.left - t - a, h = e.right + a, v = Math.max(0, s - b), w = Math.max(
|
|
411
411
|
0,
|
|
412
412
|
h + t - (c.width - s)
|
|
413
413
|
);
|
|
414
|
-
|
|
414
|
+
v <= w ? (l = b, v > 0 && (l = s)) : (l = h, w > 0 && (l = c.width - t - s)), u = e.top, u + r > c.height - s && (u = c.height - r - s), u < s && (u = s);
|
|
415
415
|
} else if (o === "bottom") {
|
|
416
416
|
const b = c.height - e.bottom, h = e.top;
|
|
417
417
|
b >= r + a ? u = e.bottom + a : h >= r + a ? u = e.top - r - a : (u = e.bottom + a, u = Math.min(u, c.height - r - s));
|
|
418
|
-
const
|
|
418
|
+
const v = c.width - e.left, w = e.right;
|
|
419
419
|
if (n === "start")
|
|
420
|
-
l = e.left, l + t > c.width - s && (
|
|
420
|
+
l = e.left, l + t > c.width - s && (w >= t ? l = e.right - t : l = c.width - t - s);
|
|
421
421
|
else if (n === "end")
|
|
422
|
-
l = e.right - t, l < s && (
|
|
422
|
+
l = e.right - t, l < s && (v >= t ? l = e.left : l = s);
|
|
423
423
|
else {
|
|
424
424
|
const E = e.left + e.width / 2 - t / 2;
|
|
425
425
|
E >= s && E + t <= c.width - s ? l = E : E < s ? l = s : l = c.width - t - s;
|
|
@@ -427,11 +427,11 @@ const zn = (e = !0, t) => {
|
|
|
427
427
|
} else {
|
|
428
428
|
const b = e.top, h = c.height - e.bottom;
|
|
429
429
|
b >= r + a ? u = e.top - r - a : h >= r + a ? u = e.bottom + a : (u = e.top - r - a, u = Math.max(s, u));
|
|
430
|
-
const
|
|
430
|
+
const v = c.width - e.left, w = e.right;
|
|
431
431
|
if (n === "start")
|
|
432
|
-
l = e.left, l + t > c.width - s && (
|
|
432
|
+
l = e.left, l + t > c.width - s && (w >= t ? l = e.right - t : l = c.width - t - s);
|
|
433
433
|
else if (n === "end")
|
|
434
|
-
l = e.right - t, l < s && (
|
|
434
|
+
l = e.right - t, l < s && (v >= t ? l = e.left : l = s);
|
|
435
435
|
else {
|
|
436
436
|
const E = e.left + e.width / 2 - t / 2;
|
|
437
437
|
E >= s && E + t <= c.width - s ? l = E : E < s ? l = s : l = c.width - t - s;
|
|
@@ -449,7 +449,7 @@ const zn = (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 Di(e) {
|
|
453
453
|
const t = T(null);
|
|
454
454
|
return B(() => {
|
|
455
455
|
const r = (n) => {
|
|
@@ -460,7 +460,7 @@ function Mi(e) {
|
|
|
460
460
|
};
|
|
461
461
|
}, [e]), t;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Pi(e, t = {}) {
|
|
464
464
|
const {
|
|
465
465
|
enabled: r = !0,
|
|
466
466
|
events: n = ["mousedown", "touchstart"],
|
|
@@ -494,7 +494,7 @@ function Bt(e, t, r = !0) {
|
|
|
494
494
|
};
|
|
495
495
|
}, [e, t, r]);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Vn(e, { target: t = window, event: r = "keydown", enabled: n } = {}) {
|
|
498
498
|
const o = T(e);
|
|
499
499
|
B(() => {
|
|
500
500
|
o.current = e;
|
|
@@ -509,7 +509,7 @@ function Bn(e, { target: t = window, event: r = "keydown", enabled: n } = {}) {
|
|
|
509
509
|
};
|
|
510
510
|
}, [t, r, n]);
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const qn = "relative shrink-0 select-none transition outline-none duration-200 ease-out focus-visible:ring-border-brand-light flex items-center justify-center cursor-pointer", Xn = {
|
|
513
513
|
xs: "text-xs px-1 gap-x-1 py-1",
|
|
514
514
|
sm: "text-sm px-2.5 gap-x-1 py-1.5",
|
|
515
515
|
mdsm: "text-sm px-3 gap-x-1.5 py-2.5",
|
|
@@ -520,18 +520,18 @@ const Vn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
520
520
|
iconSm: "text-sm p-2",
|
|
521
521
|
iconMd: "text-base p-3",
|
|
522
522
|
iconLg: "text-base p-4"
|
|
523
|
-
},
|
|
523
|
+
}, Kn = {
|
|
524
524
|
all: "focus-visible:ring-1",
|
|
525
525
|
desktop: "lg:focus-visible:ring-1",
|
|
526
526
|
mobile: "focus-visible:ring-1 lg:focus-ring-0",
|
|
527
527
|
none: ""
|
|
528
|
-
},
|
|
528
|
+
}, Un = {
|
|
529
529
|
light: "font-light",
|
|
530
530
|
normal: "font-normal",
|
|
531
531
|
medium: "font-medium",
|
|
532
532
|
semibold: "font-semibold",
|
|
533
533
|
bold: "font-bold"
|
|
534
|
-
},
|
|
534
|
+
}, Qn = {
|
|
535
535
|
none: "rounded-none",
|
|
536
536
|
1: "rounded-1",
|
|
537
537
|
2: "rounded-2",
|
|
@@ -546,7 +546,7 @@ const Vn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
546
546
|
11: "rounded-11",
|
|
547
547
|
12: "rounded-12",
|
|
548
548
|
full: "rounded-full"
|
|
549
|
-
},
|
|
549
|
+
}, Gn = {
|
|
550
550
|
transparent: "text-base-12 lg:hover:bg-base-4 focus-visible:ring-base-6",
|
|
551
551
|
transparentinactive: "text-base-11 lg:hover:bg-base-4",
|
|
552
552
|
brand: "bg-brand text-brand-text lg:hover:bg-brand-hover focus-visible:ring-base-6 border border-transparent",
|
|
@@ -561,11 +561,11 @@ const Vn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
561
561
|
danger: "bg-red-4 text-red-9 lg:hover:bg-red-5 focus-visible:ring-red-9 border border-transparent",
|
|
562
562
|
dangersolid: "bg-red-9 text-base-1 dark-theme:text-base-12 lg:hover:bg-red-8 focus-visible:ring-base-6 border border-transparent",
|
|
563
563
|
disabled: "bg-base-3 text-base-11 border border-transparent"
|
|
564
|
-
},
|
|
564
|
+
}, Jn = {
|
|
565
565
|
enabled: "",
|
|
566
566
|
disabled: "opacity-75",
|
|
567
567
|
loading: ""
|
|
568
|
-
},
|
|
568
|
+
}, U = Xe(
|
|
569
569
|
({
|
|
570
570
|
color: e = "transparent",
|
|
571
571
|
size: t = "mdsm",
|
|
@@ -582,9 +582,9 @@ const Vn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
582
582
|
type: m = "button",
|
|
583
583
|
...b
|
|
584
584
|
}, h) => {
|
|
585
|
-
const [
|
|
586
|
-
o === "enabled" && (f ? (
|
|
587
|
-
}, { ref: S, ripple: _ } =
|
|
585
|
+
const [v, w] = z(!1), E = (P) => {
|
|
586
|
+
o === "enabled" && (f ? (w(!0), a && a(P), setTimeout(() => w(!1), 1e3)) : a && a(P));
|
|
587
|
+
}, { ref: S, ripple: _ } = Hn(
|
|
588
588
|
c,
|
|
589
589
|
e === "contrast" || l
|
|
590
590
|
), D = Ar(S, h);
|
|
@@ -595,15 +595,15 @@ const Vn = "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) =>
|
|
598
|
+
onClick: (P) => v ? null : E(P),
|
|
599
599
|
className: N(
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
600
|
+
qn,
|
|
601
|
+
Xn[t],
|
|
602
|
+
Un[r],
|
|
603
|
+
Qn[n],
|
|
604
|
+
Kn[u],
|
|
605
|
+
Gn[e],
|
|
606
|
+
Jn[o],
|
|
607
607
|
b.disabled && "opacity-50",
|
|
608
608
|
s
|
|
609
609
|
),
|
|
@@ -613,20 +613,20 @@ const Vn = "relative shrink-0 select-none transition outline-none duration-200 e
|
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
615
|
);
|
|
616
|
-
|
|
617
|
-
const _r = 6048e5,
|
|
618
|
-
function
|
|
616
|
+
U.displayName = "Button";
|
|
617
|
+
const _r = 6048e5, Zn = 864e5, ar = Symbol.for("constructDateFrom");
|
|
618
|
+
function le(e, t) {
|
|
619
619
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && ar in e ? e[ar](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
620
620
|
}
|
|
621
621
|
function ee(e, t) {
|
|
622
|
-
return
|
|
622
|
+
return le(t || e, e);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function st(e, t, r) {
|
|
625
625
|
const n = ee(e, r?.in);
|
|
626
|
-
if (isNaN(t)) return
|
|
626
|
+
if (isNaN(t)) return le(e, NaN);
|
|
627
627
|
if (!t)
|
|
628
628
|
return n;
|
|
629
|
-
const o = n.getDate(), a =
|
|
629
|
+
const o = n.getDate(), a = le(e, n.getTime());
|
|
630
630
|
a.setMonth(n.getMonth() + t + 1, 0);
|
|
631
631
|
const s = a.getDate();
|
|
632
632
|
return o >= s ? a : (n.setFullYear(
|
|
@@ -635,23 +635,23 @@ function ot(e, t, r) {
|
|
|
635
635
|
o
|
|
636
636
|
), n);
|
|
637
637
|
}
|
|
638
|
-
let
|
|
639
|
-
function
|
|
640
|
-
return
|
|
638
|
+
let eo = {};
|
|
639
|
+
function xt() {
|
|
640
|
+
return eo;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
const r =
|
|
642
|
+
function He(e, t) {
|
|
643
|
+
const r = xt(), n = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, o = ee(e, t?.in), a = o.getDay(), s = (a < n ? 7 : 0) + a - n;
|
|
644
644
|
return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
646
|
+
function ct(e, t) {
|
|
647
|
+
return He(e, { ...t, weekStartsOn: 1 });
|
|
648
648
|
}
|
|
649
649
|
function Yr(e, t) {
|
|
650
|
-
const r = ee(e, t?.in), n = r.getFullYear(), o =
|
|
650
|
+
const r = ee(e, t?.in), n = r.getFullYear(), o = le(r, 0);
|
|
651
651
|
o.setFullYear(n + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
652
|
-
const a =
|
|
652
|
+
const a = ct(o), s = le(r, 0);
|
|
653
653
|
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
654
|
-
const i =
|
|
654
|
+
const i = ct(s);
|
|
655
655
|
return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= i.getTime() ? n : n - 1;
|
|
656
656
|
}
|
|
657
657
|
function sr(e) {
|
|
@@ -668,71 +668,71 @@ function sr(e) {
|
|
|
668
668
|
);
|
|
669
669
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const r =
|
|
671
|
+
function Nt(e, ...t) {
|
|
672
|
+
const r = le.bind(
|
|
673
673
|
null,
|
|
674
674
|
t.find((n) => typeof n == "object")
|
|
675
675
|
);
|
|
676
676
|
return t.map(r);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function ut(e, t) {
|
|
679
679
|
const r = ee(e, t?.in);
|
|
680
680
|
return r.setHours(0, 0, 0, 0), r;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
const [n, o] =
|
|
682
|
+
function to(e, t, r) {
|
|
683
|
+
const [n, o] = Nt(
|
|
684
684
|
r?.in,
|
|
685
685
|
e,
|
|
686
686
|
t
|
|
687
|
-
), a =
|
|
688
|
-
return Math.round((i - c) /
|
|
687
|
+
), a = ut(n), s = ut(o), i = +a - sr(a), c = +s - sr(s);
|
|
688
|
+
return Math.round((i - c) / Zn);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
const r = Yr(e, t), n =
|
|
692
|
-
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0),
|
|
690
|
+
function ro(e, t) {
|
|
691
|
+
const r = Yr(e, t), n = le(e, 0);
|
|
692
|
+
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), ct(n);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
const [n, o] =
|
|
694
|
+
function Mt(e, t, r) {
|
|
695
|
+
const [n, o] = Nt(
|
|
696
696
|
r?.in,
|
|
697
697
|
e,
|
|
698
698
|
t
|
|
699
699
|
);
|
|
700
|
-
return +
|
|
700
|
+
return +ut(n) == +ut(o);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function no(e) {
|
|
703
703
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return !(!
|
|
705
|
+
function oo(e) {
|
|
706
|
+
return !(!no(e) && typeof e != "number" || isNaN(+ee(e)));
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function ao(e, t) {
|
|
709
709
|
const r = ee(e, t?.in), n = r.getMonth();
|
|
710
710
|
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
const [r, n] =
|
|
712
|
+
function so(e, t) {
|
|
713
|
+
const [r, n] = Nt(e, t.start, t.end);
|
|
714
714
|
return { start: r, end: n };
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
const { start: r, end: n } =
|
|
716
|
+
function io(e, t) {
|
|
717
|
+
const { start: r, end: n } = so(t?.in, e);
|
|
718
718
|
let o = +r > +n;
|
|
719
719
|
const a = o ? +r : +n, s = o ? n : r;
|
|
720
720
|
s.setHours(0, 0, 0, 0);
|
|
721
721
|
let i = 1;
|
|
722
722
|
const c = [];
|
|
723
723
|
for (; +s <= a; )
|
|
724
|
-
c.push(
|
|
724
|
+
c.push(le(r, s)), s.setDate(s.getDate() + i), s.setHours(0, 0, 0, 0);
|
|
725
725
|
return o ? c.reverse() : c;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function lo(e, t) {
|
|
728
728
|
const r = ee(e, t?.in);
|
|
729
729
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function co(e, t) {
|
|
732
732
|
const r = ee(e, t?.in);
|
|
733
733
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
734
734
|
}
|
|
735
|
-
const
|
|
735
|
+
const uo = {
|
|
736
736
|
lessThanXSeconds: {
|
|
737
737
|
one: "less than a second",
|
|
738
738
|
other: "less than {{count}} seconds"
|
|
@@ -794,54 +794,54 @@ const co = {
|
|
|
794
794
|
one: "almost 1 year",
|
|
795
795
|
other: "almost {{count}} years"
|
|
796
796
|
}
|
|
797
|
-
},
|
|
797
|
+
}, fo = (e, t, r) => {
|
|
798
798
|
let n;
|
|
799
|
-
const o =
|
|
799
|
+
const o = uo[e];
|
|
800
800
|
return typeof o == "string" ? n = o : t === 1 ? n = o.one : n = o.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
801
801
|
};
|
|
802
|
-
function
|
|
802
|
+
function Fe(e) {
|
|
803
803
|
return (t = {}) => {
|
|
804
804
|
const r = t.width ? String(t.width) : e.defaultWidth;
|
|
805
805
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const mo = {
|
|
809
809
|
full: "EEEE, MMMM do, y",
|
|
810
810
|
long: "MMMM do, y",
|
|
811
811
|
medium: "MMM d, y",
|
|
812
812
|
short: "MM/dd/yyyy"
|
|
813
|
-
},
|
|
813
|
+
}, ho = {
|
|
814
814
|
full: "h:mm:ss a zzzz",
|
|
815
815
|
long: "h:mm:ss a z",
|
|
816
816
|
medium: "h:mm:ss a",
|
|
817
817
|
short: "h:mm a"
|
|
818
|
-
},
|
|
818
|
+
}, bo = {
|
|
819
819
|
full: "{{date}} 'at' {{time}}",
|
|
820
820
|
long: "{{date}} 'at' {{time}}",
|
|
821
821
|
medium: "{{date}}, {{time}}",
|
|
822
822
|
short: "{{date}}, {{time}}"
|
|
823
|
-
},
|
|
824
|
-
date:
|
|
825
|
-
formats: fo,
|
|
826
|
-
defaultWidth: "full"
|
|
827
|
-
}),
|
|
828
|
-
time: Le({
|
|
823
|
+
}, po = {
|
|
824
|
+
date: Fe({
|
|
829
825
|
formats: mo,
|
|
830
826
|
defaultWidth: "full"
|
|
831
827
|
}),
|
|
832
|
-
|
|
828
|
+
time: Fe({
|
|
833
829
|
formats: ho,
|
|
834
830
|
defaultWidth: "full"
|
|
831
|
+
}),
|
|
832
|
+
dateTime: Fe({
|
|
833
|
+
formats: bo,
|
|
834
|
+
defaultWidth: "full"
|
|
835
835
|
})
|
|
836
|
-
},
|
|
836
|
+
}, go = {
|
|
837
837
|
lastWeek: "'last' eeee 'at' p",
|
|
838
838
|
yesterday: "'yesterday at' p",
|
|
839
839
|
today: "'today at' p",
|
|
840
840
|
tomorrow: "'tomorrow at' p",
|
|
841
841
|
nextWeek: "eeee 'at' p",
|
|
842
842
|
other: "P"
|
|
843
|
-
},
|
|
844
|
-
function
|
|
843
|
+
}, vo = (e, t, r, n) => go[e];
|
|
844
|
+
function de(e) {
|
|
845
845
|
return (t, r) => {
|
|
846
846
|
const n = r?.context ? String(r.context) : "standalone";
|
|
847
847
|
let o;
|
|
@@ -856,15 +856,15 @@ function ce(e) {
|
|
|
856
856
|
return o[a];
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
const
|
|
859
|
+
const wo = {
|
|
860
860
|
narrow: ["B", "A"],
|
|
861
861
|
abbreviated: ["BC", "AD"],
|
|
862
862
|
wide: ["Before Christ", "Anno Domini"]
|
|
863
|
-
},
|
|
863
|
+
}, yo = {
|
|
864
864
|
narrow: ["1", "2", "3", "4"],
|
|
865
865
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
866
866
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
867
|
-
},
|
|
867
|
+
}, xo = {
|
|
868
868
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
869
869
|
abbreviated: [
|
|
870
870
|
"Jan",
|
|
@@ -894,7 +894,7 @@ const vo = {
|
|
|
894
894
|
"November",
|
|
895
895
|
"December"
|
|
896
896
|
]
|
|
897
|
-
},
|
|
897
|
+
}, No = {
|
|
898
898
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
899
899
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
900
900
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -907,7 +907,7 @@ const vo = {
|
|
|
907
907
|
"Friday",
|
|
908
908
|
"Saturday"
|
|
909
909
|
]
|
|
910
|
-
},
|
|
910
|
+
}, ko = {
|
|
911
911
|
narrow: {
|
|
912
912
|
am: "a",
|
|
913
913
|
pm: "p",
|
|
@@ -938,7 +938,7 @@ const vo = {
|
|
|
938
938
|
evening: "evening",
|
|
939
939
|
night: "night"
|
|
940
940
|
}
|
|
941
|
-
},
|
|
941
|
+
}, $o = {
|
|
942
942
|
narrow: {
|
|
943
943
|
am: "a",
|
|
944
944
|
pm: "p",
|
|
@@ -969,7 +969,7 @@ const vo = {
|
|
|
969
969
|
evening: "in the evening",
|
|
970
970
|
night: "at night"
|
|
971
971
|
}
|
|
972
|
-
},
|
|
972
|
+
}, Eo = (e, t) => {
|
|
973
973
|
const r = Number(e), n = r % 100;
|
|
974
974
|
if (n > 20 || n < 10)
|
|
975
975
|
switch (n % 10) {
|
|
@@ -981,40 +981,40 @@ const vo = {
|
|
|
981
981
|
return r + "rd";
|
|
982
982
|
}
|
|
983
983
|
return r + "th";
|
|
984
|
-
},
|
|
985
|
-
ordinalNumber:
|
|
986
|
-
era:
|
|
987
|
-
values:
|
|
984
|
+
}, To = {
|
|
985
|
+
ordinalNumber: Eo,
|
|
986
|
+
era: de({
|
|
987
|
+
values: wo,
|
|
988
988
|
defaultWidth: "wide"
|
|
989
989
|
}),
|
|
990
|
-
quarter:
|
|
991
|
-
values:
|
|
990
|
+
quarter: de({
|
|
991
|
+
values: yo,
|
|
992
992
|
defaultWidth: "wide",
|
|
993
993
|
argumentCallback: (e) => e - 1
|
|
994
994
|
}),
|
|
995
|
-
month:
|
|
996
|
-
values: yo,
|
|
997
|
-
defaultWidth: "wide"
|
|
998
|
-
}),
|
|
999
|
-
day: ce({
|
|
995
|
+
month: de({
|
|
1000
996
|
values: xo,
|
|
1001
997
|
defaultWidth: "wide"
|
|
1002
998
|
}),
|
|
1003
|
-
|
|
999
|
+
day: de({
|
|
1004
1000
|
values: No,
|
|
1001
|
+
defaultWidth: "wide"
|
|
1002
|
+
}),
|
|
1003
|
+
dayPeriod: de({
|
|
1004
|
+
values: ko,
|
|
1005
1005
|
defaultWidth: "wide",
|
|
1006
|
-
formattingValues:
|
|
1006
|
+
formattingValues: $o,
|
|
1007
1007
|
defaultFormattingWidth: "wide"
|
|
1008
1008
|
})
|
|
1009
1009
|
};
|
|
1010
|
-
function
|
|
1010
|
+
function fe(e) {
|
|
1011
1011
|
return (t, r = {}) => {
|
|
1012
1012
|
const n = r.width, o = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(o);
|
|
1013
1013
|
if (!a)
|
|
1014
1014
|
return null;
|
|
1015
|
-
const s = a[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ?
|
|
1015
|
+
const s = a[0], i = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(i) ? Co(i, (f) => f.test(s)) : (
|
|
1016
1016
|
// [TODO] -- I challenge you to fix the type
|
|
1017
|
-
|
|
1017
|
+
So(i, (f) => f.test(s))
|
|
1018
1018
|
);
|
|
1019
1019
|
let l;
|
|
1020
1020
|
l = e.valueCallback ? e.valueCallback(c) : c, l = r.valueCallback ? (
|
|
@@ -1025,12 +1025,12 @@ function ue(e) {
|
|
|
1025
1025
|
return { value: l, rest: u };
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function So(e, t) {
|
|
1029
1029
|
for (const r in e)
|
|
1030
1030
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
1031
1031
|
return r;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Co(e, t) {
|
|
1034
1034
|
for (let r = 0; r < e.length; r++)
|
|
1035
1035
|
if (t(e[r]))
|
|
1036
1036
|
return r;
|
|
@@ -1047,23 +1047,23 @@ function Rr(e) {
|
|
|
1047
1047
|
return { value: s, rest: i };
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1050
|
+
const Mo = /^(\d+)(th|st|nd|rd)?/i, Do = /\d+/i, Po = {
|
|
1051
1051
|
narrow: /^(b|a)/i,
|
|
1052
1052
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1053
1053
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1054
|
-
}, Po = {
|
|
1055
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1056
1054
|
}, Oo = {
|
|
1055
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1056
|
+
}, Lo = {
|
|
1057
1057
|
narrow: /^[1234]/i,
|
|
1058
1058
|
abbreviated: /^q[1234]/i,
|
|
1059
1059
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1060
|
-
}, Lo = {
|
|
1061
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1062
1060
|
}, Fo = {
|
|
1061
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1062
|
+
}, Wo = {
|
|
1063
1063
|
narrow: /^[jfmasond]/i,
|
|
1064
1064
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1065
1065
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1066
|
-
},
|
|
1066
|
+
}, Ao = {
|
|
1067
1067
|
narrow: [
|
|
1068
1068
|
/^j/i,
|
|
1069
1069
|
/^f/i,
|
|
@@ -1092,18 +1092,18 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, Mo = /\d+/i, Do = {
|
|
|
1092
1092
|
/^n/i,
|
|
1093
1093
|
/^d/i
|
|
1094
1094
|
]
|
|
1095
|
-
},
|
|
1095
|
+
}, _o = {
|
|
1096
1096
|
narrow: /^[smtwf]/i,
|
|
1097
1097
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1098
1098
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1099
1099
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1100
|
-
},
|
|
1100
|
+
}, Yo = {
|
|
1101
1101
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1102
1102
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1103
|
-
},
|
|
1103
|
+
}, Ro = {
|
|
1104
1104
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1105
1105
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1106
|
-
},
|
|
1106
|
+
}, Io = {
|
|
1107
1107
|
any: {
|
|
1108
1108
|
am: /^a/i,
|
|
1109
1109
|
pm: /^p/i,
|
|
@@ -1114,77 +1114,77 @@ const Co = /^(\d+)(th|st|nd|rd)?/i, Mo = /\d+/i, Do = {
|
|
|
1114
1114
|
evening: /evening/i,
|
|
1115
1115
|
night: /night/i
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, jo = {
|
|
1118
1118
|
ordinalNumber: Rr({
|
|
1119
|
-
matchPattern:
|
|
1120
|
-
parsePattern:
|
|
1119
|
+
matchPattern: Mo,
|
|
1120
|
+
parsePattern: Do,
|
|
1121
1121
|
valueCallback: (e) => parseInt(e, 10)
|
|
1122
1122
|
}),
|
|
1123
|
-
era:
|
|
1124
|
-
matchPatterns:
|
|
1123
|
+
era: fe({
|
|
1124
|
+
matchPatterns: Po,
|
|
1125
1125
|
defaultMatchWidth: "wide",
|
|
1126
|
-
parsePatterns:
|
|
1126
|
+
parsePatterns: Oo,
|
|
1127
1127
|
defaultParseWidth: "any"
|
|
1128
1128
|
}),
|
|
1129
|
-
quarter:
|
|
1130
|
-
matchPatterns:
|
|
1129
|
+
quarter: fe({
|
|
1130
|
+
matchPatterns: Lo,
|
|
1131
1131
|
defaultMatchWidth: "wide",
|
|
1132
|
-
parsePatterns:
|
|
1132
|
+
parsePatterns: Fo,
|
|
1133
1133
|
defaultParseWidth: "any",
|
|
1134
1134
|
valueCallback: (e) => e + 1
|
|
1135
1135
|
}),
|
|
1136
|
-
month:
|
|
1137
|
-
matchPatterns:
|
|
1136
|
+
month: fe({
|
|
1137
|
+
matchPatterns: Wo,
|
|
1138
1138
|
defaultMatchWidth: "wide",
|
|
1139
|
-
parsePatterns:
|
|
1139
|
+
parsePatterns: Ao,
|
|
1140
1140
|
defaultParseWidth: "any"
|
|
1141
1141
|
}),
|
|
1142
|
-
day:
|
|
1143
|
-
matchPatterns:
|
|
1142
|
+
day: fe({
|
|
1143
|
+
matchPatterns: _o,
|
|
1144
1144
|
defaultMatchWidth: "wide",
|
|
1145
|
-
parsePatterns:
|
|
1145
|
+
parsePatterns: Yo,
|
|
1146
1146
|
defaultParseWidth: "any"
|
|
1147
1147
|
}),
|
|
1148
|
-
dayPeriod:
|
|
1149
|
-
matchPatterns:
|
|
1148
|
+
dayPeriod: fe({
|
|
1149
|
+
matchPatterns: Ro,
|
|
1150
1150
|
defaultMatchWidth: "any",
|
|
1151
|
-
parsePatterns:
|
|
1151
|
+
parsePatterns: Io,
|
|
1152
1152
|
defaultParseWidth: "any"
|
|
1153
1153
|
})
|
|
1154
1154
|
}, Ir = {
|
|
1155
1155
|
code: "en-US",
|
|
1156
|
-
formatDistance:
|
|
1157
|
-
formatLong:
|
|
1158
|
-
formatRelative:
|
|
1159
|
-
localize:
|
|
1160
|
-
match:
|
|
1156
|
+
formatDistance: fo,
|
|
1157
|
+
formatLong: po,
|
|
1158
|
+
formatRelative: vo,
|
|
1159
|
+
localize: To,
|
|
1160
|
+
match: jo,
|
|
1161
1161
|
options: {
|
|
1162
1162
|
weekStartsOn: 0,
|
|
1163
1163
|
firstWeekContainsDate: 1
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
|
-
function
|
|
1166
|
+
function zo(e, t) {
|
|
1167
1167
|
const r = ee(e, t?.in);
|
|
1168
|
-
return
|
|
1168
|
+
return to(r, co(r)) + 1;
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
const r = ee(e, t?.in), n = +
|
|
1170
|
+
function Ho(e, t) {
|
|
1171
|
+
const r = ee(e, t?.in), n = +ct(r) - +ro(r);
|
|
1172
1172
|
return Math.round(n / _r) + 1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function jr(e, t) {
|
|
1175
|
-
const r = ee(e, t?.in), n = r.getFullYear(), o =
|
|
1175
|
+
const r = ee(e, t?.in), n = r.getFullYear(), o = xt(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, s = le(t?.in || e, 0);
|
|
1176
1176
|
s.setFullYear(n + 1, 0, a), s.setHours(0, 0, 0, 0);
|
|
1177
|
-
const i =
|
|
1177
|
+
const i = He(s, t), c = le(t?.in || e, 0);
|
|
1178
1178
|
c.setFullYear(n, 0, a), c.setHours(0, 0, 0, 0);
|
|
1179
|
-
const l =
|
|
1179
|
+
const l = He(c, t);
|
|
1180
1180
|
return +r >= +i ? n + 1 : +r >= +l ? n : n - 1;
|
|
1181
1181
|
}
|
|
1182
|
-
function Ho(e, t) {
|
|
1183
|
-
const r = wt(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = jr(e, t), a = se(t?.in || e, 0);
|
|
1184
|
-
return a.setFullYear(o, 0, n), a.setHours(0, 0, 0, 0), ze(a, t);
|
|
1185
|
-
}
|
|
1186
1182
|
function Bo(e, t) {
|
|
1187
|
-
const r =
|
|
1183
|
+
const r = xt(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = jr(e, t), a = le(t?.in || e, 0);
|
|
1184
|
+
return a.setFullYear(o, 0, n), a.setHours(0, 0, 0, 0), He(a, t);
|
|
1185
|
+
}
|
|
1186
|
+
function Vo(e, t) {
|
|
1187
|
+
const r = ee(e, t?.in), n = +He(r, t) - +Bo(r, t);
|
|
1188
1188
|
return Math.round(n / _r) + 1;
|
|
1189
1189
|
}
|
|
1190
1190
|
function j(e, t) {
|
|
@@ -1245,7 +1245,7 @@ const ge = {
|
|
|
1245
1245
|
);
|
|
1246
1246
|
return j(o, t.length);
|
|
1247
1247
|
}
|
|
1248
|
-
},
|
|
1248
|
+
}, Pe = {
|
|
1249
1249
|
midnight: "midnight",
|
|
1250
1250
|
noon: "noon",
|
|
1251
1251
|
morning: "morning",
|
|
@@ -1435,12 +1435,12 @@ const ge = {
|
|
|
1435
1435
|
},
|
|
1436
1436
|
// Local week of year
|
|
1437
1437
|
w: function(e, t, r, n) {
|
|
1438
|
-
const o =
|
|
1438
|
+
const o = Vo(e, n);
|
|
1439
1439
|
return t === "wo" ? r.ordinalNumber(o, { unit: "week" }) : j(o, t.length);
|
|
1440
1440
|
},
|
|
1441
1441
|
// ISO week of year
|
|
1442
1442
|
I: function(e, t, r) {
|
|
1443
|
-
const n =
|
|
1443
|
+
const n = Ho(e);
|
|
1444
1444
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : j(n, t.length);
|
|
1445
1445
|
},
|
|
1446
1446
|
// Day of the month
|
|
@@ -1449,7 +1449,7 @@ const ge = {
|
|
|
1449
1449
|
},
|
|
1450
1450
|
// Day of year
|
|
1451
1451
|
D: function(e, t, r) {
|
|
1452
|
-
const n =
|
|
1452
|
+
const n = zo(e);
|
|
1453
1453
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : j(n, t.length);
|
|
1454
1454
|
},
|
|
1455
1455
|
// Day of week
|
|
@@ -1635,7 +1635,7 @@ const ge = {
|
|
|
1635
1635
|
b: function(e, t, r) {
|
|
1636
1636
|
const n = e.getHours();
|
|
1637
1637
|
let o;
|
|
1638
|
-
switch (n === 12 ? o =
|
|
1638
|
+
switch (n === 12 ? o = Pe.noon : n === 0 ? o = Pe.midnight : o = n / 12 >= 1 ? "pm" : "am", t) {
|
|
1639
1639
|
case "b":
|
|
1640
1640
|
case "bb":
|
|
1641
1641
|
return r.dayPeriod(o, {
|
|
@@ -1664,7 +1664,7 @@ const ge = {
|
|
|
1664
1664
|
B: function(e, t, r) {
|
|
1665
1665
|
const n = e.getHours();
|
|
1666
1666
|
let o;
|
|
1667
|
-
switch (n >= 17 ? o =
|
|
1667
|
+
switch (n >= 17 ? o = Pe.evening : n >= 12 ? o = Pe.afternoon : n >= 4 ? o = Pe.morning : o = Pe.night, t) {
|
|
1668
1668
|
case "B":
|
|
1669
1669
|
case "BB":
|
|
1670
1670
|
case "BBB":
|
|
@@ -1842,7 +1842,7 @@ const ur = (e, t) => {
|
|
|
1842
1842
|
default:
|
|
1843
1843
|
return t.time({ width: "full" });
|
|
1844
1844
|
}
|
|
1845
|
-
},
|
|
1845
|
+
}, qo = (e, t) => {
|
|
1846
1846
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], o = r[2];
|
|
1847
1847
|
if (!o)
|
|
1848
1848
|
return ur(e, t);
|
|
@@ -1863,45 +1863,45 @@ const ur = (e, t) => {
|
|
|
1863
1863
|
break;
|
|
1864
1864
|
}
|
|
1865
1865
|
return a.replace("{{date}}", ur(n, t)).replace("{{time}}", zr(o, t));
|
|
1866
|
-
},
|
|
1866
|
+
}, Xo = {
|
|
1867
1867
|
p: zr,
|
|
1868
|
-
P:
|
|
1869
|
-
},
|
|
1870
|
-
function Qo(e) {
|
|
1871
|
-
return Xo.test(e);
|
|
1872
|
-
}
|
|
1868
|
+
P: qo
|
|
1869
|
+
}, Ko = /^D+$/, Uo = /^Y+$/, Qo = ["D", "DD", "YY", "YYYY"];
|
|
1873
1870
|
function Go(e) {
|
|
1874
1871
|
return Ko.test(e);
|
|
1875
1872
|
}
|
|
1876
|
-
function Jo(e
|
|
1877
|
-
|
|
1878
|
-
if (console.warn(n), Uo.includes(e)) throw new RangeError(n);
|
|
1873
|
+
function Jo(e) {
|
|
1874
|
+
return Uo.test(e);
|
|
1879
1875
|
}
|
|
1880
1876
|
function Zo(e, t, r) {
|
|
1877
|
+
const n = ea(e, t, r);
|
|
1878
|
+
if (console.warn(n), Qo.includes(e)) throw new RangeError(n);
|
|
1879
|
+
}
|
|
1880
|
+
function ea(e, t, r) {
|
|
1881
1881
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
1882
1882
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1883
1883
|
}
|
|
1884
|
-
const
|
|
1885
|
-
function
|
|
1886
|
-
const n =
|
|
1887
|
-
if (!
|
|
1884
|
+
const ta = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ra = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, na = /^'([^]*?)'?$/, oa = /''/g, aa = /[a-zA-Z]/;
|
|
1885
|
+
function Te(e, t, r) {
|
|
1886
|
+
const n = xt(), o = r?.locale ?? n.locale ?? Ir, a = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = ee(e, r?.in);
|
|
1887
|
+
if (!oo(i))
|
|
1888
1888
|
throw new RangeError("Invalid time value");
|
|
1889
|
-
let c = t.match(
|
|
1889
|
+
let c = t.match(ra).map((u) => {
|
|
1890
1890
|
const f = u[0];
|
|
1891
1891
|
if (f === "p" || f === "P") {
|
|
1892
|
-
const m =
|
|
1892
|
+
const m = Xo[f];
|
|
1893
1893
|
return m(u, o.formatLong);
|
|
1894
1894
|
}
|
|
1895
1895
|
return u;
|
|
1896
|
-
}).join("").match(
|
|
1896
|
+
}).join("").match(ta).map((u) => {
|
|
1897
1897
|
if (u === "''")
|
|
1898
1898
|
return { isToken: !1, value: "'" };
|
|
1899
1899
|
const f = u[0];
|
|
1900
1900
|
if (f === "'")
|
|
1901
|
-
return { isToken: !1, value:
|
|
1901
|
+
return { isToken: !1, value: sa(u) };
|
|
1902
1902
|
if (ir[f])
|
|
1903
1903
|
return { isToken: !0, value: u };
|
|
1904
|
-
if (f.match(
|
|
1904
|
+
if (f.match(aa))
|
|
1905
1905
|
throw new RangeError(
|
|
1906
1906
|
"Format string contains an unescaped latin alphabet character `" + f + "`"
|
|
1907
1907
|
);
|
|
@@ -1916,27 +1916,27 @@ function Ee(e, t, r) {
|
|
|
1916
1916
|
return c.map((u) => {
|
|
1917
1917
|
if (!u.isToken) return u.value;
|
|
1918
1918
|
const f = u.value;
|
|
1919
|
-
(!r?.useAdditionalWeekYearTokens &&
|
|
1919
|
+
(!r?.useAdditionalWeekYearTokens && Jo(f) || !r?.useAdditionalDayOfYearTokens && Go(f)) && Zo(f, t, String(e));
|
|
1920
1920
|
const m = ir[f[0]];
|
|
1921
1921
|
return m(i, f, o.localize, l);
|
|
1922
1922
|
}).join("");
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1925
|
-
const t = e.match(
|
|
1926
|
-
return t ? t[1].replace(
|
|
1924
|
+
function sa(e) {
|
|
1925
|
+
const t = e.match(na);
|
|
1926
|
+
return t ? t[1].replace(oa, "'") : e;
|
|
1927
1927
|
}
|
|
1928
1928
|
function dr(e, t, r) {
|
|
1929
|
-
const [n, o] =
|
|
1929
|
+
const [n, o] = Nt(
|
|
1930
1930
|
r?.in,
|
|
1931
1931
|
e,
|
|
1932
1932
|
t
|
|
1933
1933
|
);
|
|
1934
1934
|
return n.getFullYear() === o.getFullYear() && n.getMonth() === o.getMonth();
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1936
|
+
function Dt(e, t, r) {
|
|
1937
|
+
return st(e, -t, r);
|
|
1938
1938
|
}
|
|
1939
|
-
const
|
|
1939
|
+
const ia = {
|
|
1940
1940
|
lessThanXSeconds: {
|
|
1941
1941
|
one: "menos de un segundo",
|
|
1942
1942
|
other: "menos de {{count}} segundos"
|
|
@@ -1998,61 +1998,61 @@ const sa = {
|
|
|
1998
1998
|
one: "casi 1 año",
|
|
1999
1999
|
other: "casi {{count}} años"
|
|
2000
2000
|
}
|
|
2001
|
-
},
|
|
2001
|
+
}, la = (e, t, r) => {
|
|
2002
2002
|
let n;
|
|
2003
|
-
const o =
|
|
2003
|
+
const o = ia[e];
|
|
2004
2004
|
return typeof o == "string" ? n = o : t === 1 ? n = o.one : n = o.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "en " + n : "hace " + n : n;
|
|
2005
|
-
},
|
|
2005
|
+
}, ca = {
|
|
2006
2006
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
2007
2007
|
long: "d 'de' MMMM 'de' y",
|
|
2008
2008
|
medium: "d MMM y",
|
|
2009
2009
|
short: "dd/MM/y"
|
|
2010
|
-
},
|
|
2010
|
+
}, ua = {
|
|
2011
2011
|
full: "HH:mm:ss zzzz",
|
|
2012
2012
|
long: "HH:mm:ss z",
|
|
2013
2013
|
medium: "HH:mm:ss",
|
|
2014
2014
|
short: "HH:mm"
|
|
2015
|
-
},
|
|
2015
|
+
}, da = {
|
|
2016
2016
|
full: "{{date}} 'a las' {{time}}",
|
|
2017
2017
|
long: "{{date}} 'a las' {{time}}",
|
|
2018
2018
|
medium: "{{date}}, {{time}}",
|
|
2019
2019
|
short: "{{date}}, {{time}}"
|
|
2020
|
-
},
|
|
2021
|
-
date:
|
|
2022
|
-
formats: la,
|
|
2023
|
-
defaultWidth: "full"
|
|
2024
|
-
}),
|
|
2025
|
-
time: Le({
|
|
2020
|
+
}, fa = {
|
|
2021
|
+
date: Fe({
|
|
2026
2022
|
formats: ca,
|
|
2027
2023
|
defaultWidth: "full"
|
|
2028
2024
|
}),
|
|
2029
|
-
|
|
2025
|
+
time: Fe({
|
|
2030
2026
|
formats: ua,
|
|
2031
2027
|
defaultWidth: "full"
|
|
2028
|
+
}),
|
|
2029
|
+
dateTime: Fe({
|
|
2030
|
+
formats: da,
|
|
2031
|
+
defaultWidth: "full"
|
|
2032
2032
|
})
|
|
2033
|
-
},
|
|
2033
|
+
}, ma = {
|
|
2034
2034
|
lastWeek: "'el' eeee 'pasado a la' p",
|
|
2035
2035
|
yesterday: "'ayer a la' p",
|
|
2036
2036
|
today: "'hoy a la' p",
|
|
2037
2037
|
tomorrow: "'mañana a la' p",
|
|
2038
2038
|
nextWeek: "eeee 'a la' p",
|
|
2039
2039
|
other: "P"
|
|
2040
|
-
},
|
|
2040
|
+
}, ha = {
|
|
2041
2041
|
lastWeek: "'el' eeee 'pasado a las' p",
|
|
2042
2042
|
yesterday: "'ayer a las' p",
|
|
2043
2043
|
today: "'hoy a las' p",
|
|
2044
2044
|
tomorrow: "'mañana a las' p",
|
|
2045
2045
|
nextWeek: "eeee 'a las' p",
|
|
2046
2046
|
other: "P"
|
|
2047
|
-
},
|
|
2047
|
+
}, ba = (e, t, r, n) => t.getHours() !== 1 ? ha[e] : ma[e], pa = {
|
|
2048
2048
|
narrow: ["AC", "DC"],
|
|
2049
2049
|
abbreviated: ["AC", "DC"],
|
|
2050
2050
|
wide: ["antes de cristo", "después de cristo"]
|
|
2051
|
-
},
|
|
2051
|
+
}, ga = {
|
|
2052
2052
|
narrow: ["1", "2", "3", "4"],
|
|
2053
2053
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
2054
2054
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
2055
|
-
},
|
|
2055
|
+
}, va = {
|
|
2056
2056
|
narrow: ["e", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
2057
2057
|
abbreviated: [
|
|
2058
2058
|
"ene",
|
|
@@ -2082,7 +2082,7 @@ const sa = {
|
|
|
2082
2082
|
"noviembre",
|
|
2083
2083
|
"diciembre"
|
|
2084
2084
|
]
|
|
2085
|
-
},
|
|
2085
|
+
}, wa = {
|
|
2086
2086
|
narrow: ["d", "l", "m", "m", "j", "v", "s"],
|
|
2087
2087
|
short: ["do", "lu", "ma", "mi", "ju", "vi", "sá"],
|
|
2088
2088
|
abbreviated: ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
|
@@ -2095,7 +2095,7 @@ const sa = {
|
|
|
2095
2095
|
"viernes",
|
|
2096
2096
|
"sábado"
|
|
2097
2097
|
]
|
|
2098
|
-
},
|
|
2098
|
+
}, ya = {
|
|
2099
2099
|
narrow: {
|
|
2100
2100
|
am: "a",
|
|
2101
2101
|
pm: "p",
|
|
@@ -2126,7 +2126,7 @@ const sa = {
|
|
|
2126
2126
|
evening: "tarde",
|
|
2127
2127
|
night: "noche"
|
|
2128
2128
|
}
|
|
2129
|
-
},
|
|
2129
|
+
}, xa = {
|
|
2130
2130
|
narrow: {
|
|
2131
2131
|
am: "a",
|
|
2132
2132
|
pm: "p",
|
|
@@ -2157,52 +2157,52 @@ const sa = {
|
|
|
2157
2157
|
evening: "de la tarde",
|
|
2158
2158
|
night: "de la noche"
|
|
2159
2159
|
}
|
|
2160
|
-
},
|
|
2161
|
-
ordinalNumber:
|
|
2162
|
-
era:
|
|
2163
|
-
values:
|
|
2160
|
+
}, Na = (e, t) => Number(e) + "º", ka = {
|
|
2161
|
+
ordinalNumber: Na,
|
|
2162
|
+
era: de({
|
|
2163
|
+
values: pa,
|
|
2164
2164
|
defaultWidth: "wide"
|
|
2165
2165
|
}),
|
|
2166
|
-
quarter:
|
|
2167
|
-
values:
|
|
2166
|
+
quarter: de({
|
|
2167
|
+
values: ga,
|
|
2168
2168
|
defaultWidth: "wide",
|
|
2169
2169
|
argumentCallback: (e) => Number(e) - 1
|
|
2170
2170
|
}),
|
|
2171
|
-
month:
|
|
2172
|
-
values: ga,
|
|
2173
|
-
defaultWidth: "wide"
|
|
2174
|
-
}),
|
|
2175
|
-
day: ce({
|
|
2171
|
+
month: de({
|
|
2176
2172
|
values: va,
|
|
2177
2173
|
defaultWidth: "wide"
|
|
2178
2174
|
}),
|
|
2179
|
-
|
|
2175
|
+
day: de({
|
|
2180
2176
|
values: wa,
|
|
2177
|
+
defaultWidth: "wide"
|
|
2178
|
+
}),
|
|
2179
|
+
dayPeriod: de({
|
|
2180
|
+
values: ya,
|
|
2181
2181
|
defaultWidth: "wide",
|
|
2182
|
-
formattingValues:
|
|
2182
|
+
formattingValues: xa,
|
|
2183
2183
|
defaultFormattingWidth: "wide"
|
|
2184
2184
|
})
|
|
2185
|
-
},
|
|
2185
|
+
}, $a = /^(\d+)(º)?/i, Ea = /\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
|
|
2189
|
-
},
|
|
2189
|
+
}, Sa = {
|
|
2190
2190
|
any: [/^ac/i, /^dc/i],
|
|
2191
2191
|
wide: [
|
|
2192
2192
|
/^(antes de cristo|antes de la era com[uú]n)/i,
|
|
2193
2193
|
/^(despu[eé]s de cristo|era com[uú]n)/i
|
|
2194
2194
|
]
|
|
2195
|
-
},
|
|
2195
|
+
}, Ca = {
|
|
2196
2196
|
narrow: /^[1234]/i,
|
|
2197
2197
|
abbreviated: /^T[1234]/i,
|
|
2198
2198
|
wide: /^[1234](º)? trimestre/i
|
|
2199
|
-
}, Ca = {
|
|
2200
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2201
2199
|
}, Ma = {
|
|
2200
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2201
|
+
}, Da = {
|
|
2202
2202
|
narrow: /^[efmajsond]/i,
|
|
2203
2203
|
abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
|
|
2204
2204
|
wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
|
|
2205
|
-
},
|
|
2205
|
+
}, Pa = {
|
|
2206
2206
|
narrow: [
|
|
2207
2207
|
/^e/i,
|
|
2208
2208
|
/^f/i,
|
|
@@ -2231,18 +2231,18 @@ const sa = {
|
|
|
2231
2231
|
/^nov/i,
|
|
2232
2232
|
/^dic/i
|
|
2233
2233
|
]
|
|
2234
|
-
},
|
|
2234
|
+
}, Oa = {
|
|
2235
2235
|
narrow: /^[dlmjvs]/i,
|
|
2236
2236
|
short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,
|
|
2237
2237
|
abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,
|
|
2238
2238
|
wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
|
|
2239
|
-
},
|
|
2239
|
+
}, La = {
|
|
2240
2240
|
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
2241
2241
|
any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
|
|
2242
|
-
},
|
|
2242
|
+
}, Fa = {
|
|
2243
2243
|
narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
|
|
2244
2244
|
any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
|
|
2245
|
-
},
|
|
2245
|
+
}, Wa = {
|
|
2246
2246
|
any: {
|
|
2247
2247
|
am: /^a/i,
|
|
2248
2248
|
pm: /^p/i,
|
|
@@ -2253,92 +2253,92 @@ const sa = {
|
|
|
2253
2253
|
evening: /tarde/i,
|
|
2254
2254
|
night: /noche/i
|
|
2255
2255
|
}
|
|
2256
|
-
},
|
|
2256
|
+
}, Aa = {
|
|
2257
2257
|
ordinalNumber: Rr({
|
|
2258
|
-
matchPattern:
|
|
2259
|
-
parsePattern:
|
|
2258
|
+
matchPattern: $a,
|
|
2259
|
+
parsePattern: Ea,
|
|
2260
2260
|
valueCallback: function(e) {
|
|
2261
2261
|
return parseInt(e, 10);
|
|
2262
2262
|
}
|
|
2263
2263
|
}),
|
|
2264
|
-
era:
|
|
2265
|
-
matchPatterns:
|
|
2264
|
+
era: fe({
|
|
2265
|
+
matchPatterns: Ta,
|
|
2266
2266
|
defaultMatchWidth: "wide",
|
|
2267
|
-
parsePatterns:
|
|
2267
|
+
parsePatterns: Sa,
|
|
2268
2268
|
defaultParseWidth: "any"
|
|
2269
2269
|
}),
|
|
2270
|
-
quarter:
|
|
2271
|
-
matchPatterns:
|
|
2270
|
+
quarter: fe({
|
|
2271
|
+
matchPatterns: Ca,
|
|
2272
2272
|
defaultMatchWidth: "wide",
|
|
2273
|
-
parsePatterns:
|
|
2273
|
+
parsePatterns: Ma,
|
|
2274
2274
|
defaultParseWidth: "any",
|
|
2275
2275
|
valueCallback: (e) => e + 1
|
|
2276
2276
|
}),
|
|
2277
|
-
month:
|
|
2278
|
-
matchPatterns:
|
|
2277
|
+
month: fe({
|
|
2278
|
+
matchPatterns: Da,
|
|
2279
2279
|
defaultMatchWidth: "wide",
|
|
2280
|
-
parsePatterns:
|
|
2280
|
+
parsePatterns: Pa,
|
|
2281
2281
|
defaultParseWidth: "any"
|
|
2282
2282
|
}),
|
|
2283
|
-
day:
|
|
2284
|
-
matchPatterns:
|
|
2283
|
+
day: fe({
|
|
2284
|
+
matchPatterns: Oa,
|
|
2285
2285
|
defaultMatchWidth: "wide",
|
|
2286
|
-
parsePatterns:
|
|
2286
|
+
parsePatterns: La,
|
|
2287
2287
|
defaultParseWidth: "any"
|
|
2288
2288
|
}),
|
|
2289
|
-
dayPeriod:
|
|
2290
|
-
matchPatterns:
|
|
2289
|
+
dayPeriod: fe({
|
|
2290
|
+
matchPatterns: Fa,
|
|
2291
2291
|
defaultMatchWidth: "any",
|
|
2292
|
-
parsePatterns:
|
|
2292
|
+
parsePatterns: Wa,
|
|
2293
2293
|
defaultParseWidth: "any"
|
|
2294
2294
|
})
|
|
2295
|
-
},
|
|
2295
|
+
}, Be = {
|
|
2296
2296
|
code: "es",
|
|
2297
|
-
formatDistance:
|
|
2298
|
-
formatLong:
|
|
2299
|
-
formatRelative:
|
|
2300
|
-
localize:
|
|
2301
|
-
match:
|
|
2297
|
+
formatDistance: la,
|
|
2298
|
+
formatLong: fa,
|
|
2299
|
+
formatRelative: ba,
|
|
2300
|
+
localize: ka,
|
|
2301
|
+
match: Aa,
|
|
2302
2302
|
options: {
|
|
2303
2303
|
weekStartsOn: 1,
|
|
2304
2304
|
firstWeekContainsDate: 1
|
|
2305
2305
|
}
|
|
2306
|
-
},
|
|
2307
|
-
},
|
|
2306
|
+
}, me = typeof document < "u" ? Le.useLayoutEffect : () => {
|
|
2307
|
+
}, Q = (e) => {
|
|
2308
2308
|
var t;
|
|
2309
2309
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
2310
|
-
},
|
|
2311
|
-
function
|
|
2310
|
+
}, dt = (e) => e && "window" in e && e.window === e ? e : Q(e).defaultView || window;
|
|
2311
|
+
function _a(e) {
|
|
2312
2312
|
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return
|
|
2314
|
+
function Ya(e) {
|
|
2315
|
+
return _a(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
2316
2316
|
}
|
|
2317
|
-
let
|
|
2318
|
-
function
|
|
2319
|
-
return
|
|
2317
|
+
let Ra = !1;
|
|
2318
|
+
function kt() {
|
|
2319
|
+
return Ra;
|
|
2320
2320
|
}
|
|
2321
2321
|
function fr(e, t) {
|
|
2322
|
-
if (!
|
|
2322
|
+
if (!kt()) return t && e ? e.contains(t) : !1;
|
|
2323
2323
|
if (!e || !t) return !1;
|
|
2324
2324
|
let r = t;
|
|
2325
2325
|
for (; r !== null; ) {
|
|
2326
2326
|
if (r === e) return !0;
|
|
2327
|
-
r.tagName === "SLOT" && r.assignedSlot ? r = r.assignedSlot.parentNode :
|
|
2327
|
+
r.tagName === "SLOT" && r.assignedSlot ? r = r.assignedSlot.parentNode : Ya(r) ? r = r.host : r = r.parentNode;
|
|
2328
2328
|
}
|
|
2329
2329
|
return !1;
|
|
2330
2330
|
}
|
|
2331
|
-
const
|
|
2331
|
+
const se = (e = document) => {
|
|
2332
2332
|
var t;
|
|
2333
|
-
if (!
|
|
2333
|
+
if (!kt()) return e.activeElement;
|
|
2334
2334
|
let r = e.activeElement;
|
|
2335
2335
|
for (; r && "shadowRoot" in r && (!((t = r.shadowRoot) === null || t === void 0) && t.activeElement); ) r = r.shadowRoot.activeElement;
|
|
2336
2336
|
return r;
|
|
2337
2337
|
};
|
|
2338
|
-
function
|
|
2339
|
-
return
|
|
2338
|
+
function Oe(e) {
|
|
2339
|
+
return kt() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
|
|
2340
2340
|
}
|
|
2341
|
-
class
|
|
2341
|
+
class Ia {
|
|
2342
2342
|
get currentNode() {
|
|
2343
2343
|
return this._currentNode;
|
|
2344
2344
|
}
|
|
@@ -2459,34 +2459,34 @@ class Ra {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2462
|
+
function ja(e, t, r, n) {
|
|
2463
|
+
return kt() ? new Ia(e, t, r, n) : e.createTreeWalker(t, r, n);
|
|
2464
2464
|
}
|
|
2465
2465
|
function mr(e) {
|
|
2466
|
-
if (
|
|
2466
|
+
if (za()) e.focus({
|
|
2467
2467
|
preventScroll: !0
|
|
2468
2468
|
});
|
|
2469
2469
|
else {
|
|
2470
|
-
let t =
|
|
2471
|
-
e.focus(),
|
|
2470
|
+
let t = Ha(e);
|
|
2471
|
+
e.focus(), Ba(t);
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
let
|
|
2475
|
-
function
|
|
2476
|
-
if (
|
|
2477
|
-
|
|
2474
|
+
let nt = null;
|
|
2475
|
+
function za() {
|
|
2476
|
+
if (nt == null) {
|
|
2477
|
+
nt = !1;
|
|
2478
2478
|
try {
|
|
2479
2479
|
document.createElement("div").focus({
|
|
2480
2480
|
get preventScroll() {
|
|
2481
|
-
return
|
|
2481
|
+
return nt = !0, !0;
|
|
2482
2482
|
}
|
|
2483
2483
|
});
|
|
2484
2484
|
} catch {
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
|
-
return
|
|
2487
|
+
return nt;
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function Ha(e) {
|
|
2490
2490
|
let t = e.parentNode, r = [], n = document.scrollingElement || document.documentElement;
|
|
2491
2491
|
for (; t instanceof HTMLElement && t !== n; )
|
|
2492
2492
|
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && r.push({
|
|
@@ -2500,11 +2500,11 @@ function za(e) {
|
|
|
2500
2500
|
scrollLeft: n.scrollLeft
|
|
2501
2501
|
}), r;
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
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 $t(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;
|
|
@@ -2521,29 +2521,29 @@ function pe(e) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
const qt = pe(function() {
|
|
2523
2523
|
return Vt(/^Mac/i);
|
|
2524
|
-
}), Ba = pe(function() {
|
|
2525
|
-
return Vt(/^iPhone/i);
|
|
2526
2524
|
}), Va = pe(function() {
|
|
2525
|
+
return Vt(/^iPhone/i);
|
|
2526
|
+
}), qa = pe(function() {
|
|
2527
2527
|
return Vt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
2528
2528
|
qt() && navigator.maxTouchPoints > 1;
|
|
2529
|
-
}),
|
|
2530
|
-
return
|
|
2529
|
+
}), Xa = pe(function() {
|
|
2530
|
+
return Va() || qa();
|
|
2531
2531
|
});
|
|
2532
2532
|
pe(function() {
|
|
2533
|
-
return qt() ||
|
|
2533
|
+
return qt() || Xa();
|
|
2534
2534
|
});
|
|
2535
2535
|
pe(function() {
|
|
2536
|
-
return
|
|
2536
|
+
return $t(/AppleWebKit/i) && !Hr();
|
|
2537
2537
|
});
|
|
2538
2538
|
const Hr = pe(function() {
|
|
2539
|
-
return
|
|
2539
|
+
return $t(/Chrome/i);
|
|
2540
2540
|
}), Br = pe(function() {
|
|
2541
|
-
return
|
|
2541
|
+
return $t(/Android/i);
|
|
2542
2542
|
});
|
|
2543
2543
|
pe(function() {
|
|
2544
|
-
return
|
|
2544
|
+
return $t(/Firefox/i);
|
|
2545
2545
|
});
|
|
2546
|
-
let we = /* @__PURE__ */ new Map(),
|
|
2546
|
+
let we = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new Set();
|
|
2547
2547
|
function hr() {
|
|
2548
2548
|
if (typeof window > "u") return;
|
|
2549
2549
|
function e(n) {
|
|
@@ -2559,28 +2559,28 @@ function hr() {
|
|
|
2559
2559
|
if (!e(n) || !n.target) return;
|
|
2560
2560
|
let o = we.get(n.target);
|
|
2561
2561
|
if (o && (o.delete(n.propertyName), o.size === 0 && (n.target.removeEventListener("transitioncancel", r), we.delete(n.target)), we.size === 0)) {
|
|
2562
|
-
for (let a of
|
|
2563
|
-
|
|
2562
|
+
for (let a of Wt) a();
|
|
2563
|
+
Wt.clear();
|
|
2564
2564
|
}
|
|
2565
2565
|
};
|
|
2566
2566
|
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", r);
|
|
2567
2567
|
}
|
|
2568
2568
|
typeof document < "u" && (document.readyState !== "loading" ? hr() : document.addEventListener("DOMContentLoaded", hr));
|
|
2569
|
-
function
|
|
2569
|
+
function Ka() {
|
|
2570
2570
|
for (const [e] of we)
|
|
2571
2571
|
"isConnected" in e && !e.isConnected && we.delete(e);
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function Ua(e) {
|
|
2574
2574
|
requestAnimationFrame(() => {
|
|
2575
|
-
|
|
2575
|
+
Ka(), we.size === 0 ? e() : Wt.add(e);
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function Qa(e) {
|
|
2579
2579
|
return e.pointerType === "" && e.isTrusted ? !0 : Br() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
2580
2580
|
}
|
|
2581
|
-
const
|
|
2582
|
-
function
|
|
2583
|
-
const t =
|
|
2581
|
+
const Ga = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
2582
|
+
function Ja(e) {
|
|
2583
|
+
const t = dt(e);
|
|
2584
2584
|
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
2585
2585
|
let { display: r, visibility: n } = e.style, o = r !== "none" && n !== "hidden" && n !== "collapse";
|
|
2586
2586
|
if (o) {
|
|
@@ -2590,14 +2590,14 @@ function Ga(e) {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
return o;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function Za(e, t) {
|
|
2594
2594
|
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
2595
2595
|
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
2596
2596
|
}
|
|
2597
2597
|
function Xt(e, t) {
|
|
2598
|
-
return
|
|
2598
|
+
return Ga ? e.checkVisibility({
|
|
2599
2599
|
visibilityProperty: !0
|
|
2600
|
-
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" &&
|
|
2600
|
+
}) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Ja(e) && Za(e, t) && (!e.parentElement || Xt(e.parentElement, e));
|
|
2601
2601
|
}
|
|
2602
2602
|
const Kt = [
|
|
2603
2603
|
"input:not([disabled]):not([type=hidden])",
|
|
@@ -2614,15 +2614,15 @@ const Kt = [
|
|
|
2614
2614
|
"video[controls]",
|
|
2615
2615
|
'[contenteditable]:not([contenteditable^="false"])',
|
|
2616
2616
|
"permission"
|
|
2617
|
-
],
|
|
2617
|
+
], es = Kt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
2618
2618
|
Kt.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
2619
|
-
const
|
|
2620
|
-
function ts(e) {
|
|
2621
|
-
return e.matches(Za) && Xt(e) && !Vr(e);
|
|
2622
|
-
}
|
|
2619
|
+
const ts = Kt.join(':not([hidden]):not([tabindex="-1"]),');
|
|
2623
2620
|
function rs(e) {
|
|
2624
2621
|
return e.matches(es) && Xt(e) && !Vr(e);
|
|
2625
2622
|
}
|
|
2623
|
+
function ns(e) {
|
|
2624
|
+
return e.matches(ts) && Xt(e) && !Vr(e);
|
|
2625
|
+
}
|
|
2626
2626
|
function Vr(e) {
|
|
2627
2627
|
let t = e;
|
|
2628
2628
|
for (; t != null; ) {
|
|
@@ -2631,77 +2631,77 @@ function Vr(e) {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
return !1;
|
|
2633
2633
|
}
|
|
2634
|
-
let
|
|
2634
|
+
let os = !1, Je = null, as = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(), Se = !1, At = !1;
|
|
2635
2635
|
function Ut(e, t) {
|
|
2636
|
-
for (let r of
|
|
2636
|
+
for (let r of as) r(e, t);
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function ss(e) {
|
|
2639
2639
|
return !(e.metaKey || !qt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2642
|
-
|
|
2641
|
+
function ft(e) {
|
|
2642
|
+
Se = !0, ss(e) && (Je = "keyboard", Ut("keyboard", e));
|
|
2643
2643
|
}
|
|
2644
2644
|
function re(e) {
|
|
2645
|
-
|
|
2645
|
+
Je = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Se = !0, Ut("pointer", e));
|
|
2646
2646
|
}
|
|
2647
2647
|
function qr(e) {
|
|
2648
|
-
|
|
2648
|
+
Qa(e) && (Se = !0, Je = "virtual");
|
|
2649
2649
|
}
|
|
2650
2650
|
function Xr(e) {
|
|
2651
|
-
e.target === window || e.target === document ||
|
|
2651
|
+
e.target === window || e.target === document || os || !e.isTrusted || (!Se && !At && (Je = "virtual", Ut("virtual", e)), Se = !1, At = !1);
|
|
2652
2652
|
}
|
|
2653
2653
|
function Kr() {
|
|
2654
|
-
|
|
2654
|
+
Se = !1, At = !0;
|
|
2655
2655
|
}
|
|
2656
2656
|
function br(e) {
|
|
2657
|
-
if (typeof window > "u" || typeof document > "u" ||
|
|
2658
|
-
const t =
|
|
2657
|
+
if (typeof window > "u" || typeof document > "u" || je.get(dt(e))) return;
|
|
2658
|
+
const t = dt(e), r = Q(e);
|
|
2659
2659
|
let n = t.HTMLElement.prototype.focus;
|
|
2660
2660
|
t.HTMLElement.prototype.focus = function() {
|
|
2661
|
-
|
|
2662
|
-
}, r.addEventListener("keydown",
|
|
2661
|
+
Se = !0, n.apply(this, arguments);
|
|
2662
|
+
}, r.addEventListener("keydown", ft, !0), r.addEventListener("keyup", ft, !0), r.addEventListener("click", qr, !0), t.addEventListener("focus", Xr, !0), t.addEventListener("blur", Kr, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", re, !0), r.addEventListener("pointermove", re, !0), r.addEventListener("pointerup", re, !0)) : process.env.NODE_ENV === "test" && (r.addEventListener("mousedown", re, !0), r.addEventListener("mousemove", re, !0), r.addEventListener("mouseup", re, !0)), t.addEventListener("beforeunload", () => {
|
|
2663
2663
|
Ur(e);
|
|
2664
2664
|
}, {
|
|
2665
2665
|
once: !0
|
|
2666
|
-
}),
|
|
2666
|
+
}), je.set(t, {
|
|
2667
2667
|
focus: n
|
|
2668
2668
|
});
|
|
2669
2669
|
}
|
|
2670
2670
|
const Ur = (e, t) => {
|
|
2671
|
-
const r =
|
|
2672
|
-
t && n.removeEventListener("DOMContentLoaded", t),
|
|
2671
|
+
const r = dt(e), n = Q(e);
|
|
2672
|
+
t && n.removeEventListener("DOMContentLoaded", t), je.has(r) && (r.HTMLElement.prototype.focus = je.get(r).focus, n.removeEventListener("keydown", ft, !0), n.removeEventListener("keyup", ft, !0), n.removeEventListener("click", qr, !0), r.removeEventListener("focus", Xr, !0), r.removeEventListener("blur", Kr, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", re, !0), n.removeEventListener("pointermove", re, !0), n.removeEventListener("pointerup", re, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", re, !0), n.removeEventListener("mousemove", re, !0), n.removeEventListener("mouseup", re, !0)), je.delete(r));
|
|
2673
2673
|
};
|
|
2674
|
-
function
|
|
2675
|
-
const t =
|
|
2674
|
+
function is(e) {
|
|
2675
|
+
const t = Q(e);
|
|
2676
2676
|
let r;
|
|
2677
2677
|
return t.readyState !== "loading" ? br(e) : (r = () => {
|
|
2678
2678
|
br(e);
|
|
2679
2679
|
}, t.addEventListener("DOMContentLoaded", r)), () => Ur(e, r);
|
|
2680
2680
|
}
|
|
2681
|
-
typeof document < "u" &&
|
|
2681
|
+
typeof document < "u" && is();
|
|
2682
2682
|
function Qr() {
|
|
2683
|
-
return
|
|
2683
|
+
return Je;
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2686
|
-
const t =
|
|
2685
|
+
function ls(e) {
|
|
2686
|
+
const t = Q(e), r = se(t);
|
|
2687
2687
|
if (Qr() === "virtual") {
|
|
2688
2688
|
let n = r;
|
|
2689
|
-
|
|
2690
|
-
|
|
2689
|
+
Ua(() => {
|
|
2690
|
+
se(t) === n && e.isConnected && mr(e);
|
|
2691
2691
|
});
|
|
2692
2692
|
} else mr(e);
|
|
2693
2693
|
}
|
|
2694
|
-
const pr = /* @__PURE__ */
|
|
2694
|
+
const pr = /* @__PURE__ */ Le.createContext(null), _t = "react-aria-focus-scope-restore";
|
|
2695
2695
|
let H = null;
|
|
2696
|
-
function
|
|
2697
|
-
let { children: t, contain: r, restoreFocus: n, autoFocus: o } = e, a = T(null), s = T(null), i = T([]), { parentNode: c } =
|
|
2696
|
+
function cs(e) {
|
|
2697
|
+
let { children: t, contain: r, restoreFocus: n, autoFocus: o } = e, a = T(null), s = T(null), i = T([]), { parentNode: c } = vt(pr) || {}, l = ae(() => new Rt({
|
|
2698
2698
|
scopeRef: i
|
|
2699
2699
|
}), [
|
|
2700
2700
|
i
|
|
2701
2701
|
]);
|
|
2702
|
-
|
|
2702
|
+
me(() => {
|
|
2703
2703
|
let m = c || q.root;
|
|
2704
|
-
if (q.getTreeNode(m.scopeRef) && H && !
|
|
2704
|
+
if (q.getTreeNode(m.scopeRef) && H && !mt(H, m.scopeRef)) {
|
|
2705
2705
|
let b = q.getTreeNode(H);
|
|
2706
2706
|
b && (m = b);
|
|
2707
2707
|
}
|
|
@@ -2709,23 +2709,23 @@ function ls(e) {
|
|
|
2709
2709
|
}, [
|
|
2710
2710
|
l,
|
|
2711
2711
|
c
|
|
2712
|
-
]),
|
|
2712
|
+
]), me(() => {
|
|
2713
2713
|
let m = q.getTreeNode(i);
|
|
2714
2714
|
m && (m.contain = !!r);
|
|
2715
2715
|
}, [
|
|
2716
2716
|
r
|
|
2717
|
-
]),
|
|
2717
|
+
]), me(() => {
|
|
2718
2718
|
var m;
|
|
2719
|
-
let b = (m = a.current) === null || m === void 0 ? void 0 : m.nextSibling, h = [],
|
|
2719
|
+
let b = (m = a.current) === null || m === void 0 ? void 0 : m.nextSibling, h = [], v = (w) => w.stopPropagation();
|
|
2720
2720
|
for (; b && b !== s.current; )
|
|
2721
|
-
h.push(b), b.addEventListener(
|
|
2721
|
+
h.push(b), b.addEventListener(_t, v), b = b.nextSibling;
|
|
2722
2722
|
return i.current = h, () => {
|
|
2723
|
-
for (let
|
|
2723
|
+
for (let w of h) w.removeEventListener(_t, v);
|
|
2724
2724
|
};
|
|
2725
2725
|
}, [
|
|
2726
2726
|
t
|
|
2727
|
-
]),
|
|
2728
|
-
const m =
|
|
2727
|
+
]), hs(i, n, r), fs(i, r), bs(i, n, r), ms(i, o), B(() => {
|
|
2728
|
+
const m = se(Q(i.current ? i.current[0] : void 0));
|
|
2729
2729
|
let b = null;
|
|
2730
2730
|
if (ne(m, i.current)) {
|
|
2731
2731
|
for (let h of q.traverse()) h.scopeRef && ne(m, h.scopeRef.current) && (b = h);
|
|
@@ -2733,80 +2733,80 @@ function ls(e) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
}, [
|
|
2735
2735
|
i
|
|
2736
|
-
]),
|
|
2736
|
+
]), me(() => () => {
|
|
2737
2737
|
var m, b, h;
|
|
2738
|
-
let
|
|
2739
|
-
(i === H ||
|
|
2738
|
+
let v = (h = (b = q.getTreeNode(i)) === null || b === void 0 || (m = b.parent) === null || m === void 0 ? void 0 : m.scopeRef) !== null && h !== void 0 ? h : null;
|
|
2739
|
+
(i === H || mt(i, H)) && (!v || q.getTreeNode(v)) && (H = v), q.removeTreeNode(i);
|
|
2740
2740
|
}, [
|
|
2741
2741
|
i
|
|
2742
2742
|
]);
|
|
2743
|
-
let u =
|
|
2743
|
+
let u = ae(() => us(i), []), f = ae(() => ({
|
|
2744
2744
|
focusManager: u,
|
|
2745
2745
|
parentNode: l
|
|
2746
2746
|
}), [
|
|
2747
2747
|
l,
|
|
2748
2748
|
u
|
|
2749
2749
|
]);
|
|
2750
|
-
return /* @__PURE__ */
|
|
2750
|
+
return /* @__PURE__ */ Le.createElement(pr.Provider, {
|
|
2751
2751
|
value: f
|
|
2752
|
-
}, /* @__PURE__ */
|
|
2752
|
+
}, /* @__PURE__ */ Le.createElement("span", {
|
|
2753
2753
|
"data-focus-scope-start": !0,
|
|
2754
2754
|
hidden: !0,
|
|
2755
2755
|
ref: a
|
|
2756
|
-
}), t, /* @__PURE__ */
|
|
2756
|
+
}), t, /* @__PURE__ */ Le.createElement("span", {
|
|
2757
2757
|
"data-focus-scope-end": !0,
|
|
2758
2758
|
hidden: !0,
|
|
2759
2759
|
ref: s
|
|
2760
2760
|
}));
|
|
2761
2761
|
}
|
|
2762
|
-
function
|
|
2762
|
+
function us(e) {
|
|
2763
2763
|
return {
|
|
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 ||
|
|
2767
|
+
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[0].previousElementSibling, u = $e(r), f = ye(u, {
|
|
2768
2768
|
tabbable: o,
|
|
2769
2769
|
accept: s
|
|
2770
2770
|
}, r);
|
|
2771
2771
|
f.currentNode = ne(c, r) ? c : l;
|
|
2772
2772
|
let m = f.nextNode();
|
|
2773
|
-
return !m && a && (f.currentNode = l, m = f.nextNode()), m &&
|
|
2773
|
+
return !m && a && (f.currentNode = l, m = f.nextNode()), m && he(m, !0), m;
|
|
2774
2774
|
},
|
|
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 ||
|
|
2778
|
+
let c = n || se(Q((i = r[0]) !== null && i !== void 0 ? i : void 0)), l = r[r.length - 1].nextElementSibling, u = $e(r), f = ye(u, {
|
|
2779
2779
|
tabbable: o,
|
|
2780
2780
|
accept: s
|
|
2781
2781
|
}, r);
|
|
2782
2782
|
f.currentNode = ne(c, r) ? c : l;
|
|
2783
2783
|
let m = f.previousNode();
|
|
2784
|
-
return !m && a && (f.currentNode = l, m = f.previousNode()), m &&
|
|
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 = $e(r), s = ye(a, {
|
|
2788
2788
|
tabbable: n,
|
|
2789
2789
|
accept: o
|
|
2790
2790
|
}, r);
|
|
2791
2791
|
s.currentNode = r[0].previousElementSibling;
|
|
2792
2792
|
let i = s.nextNode();
|
|
2793
|
-
return i &&
|
|
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 = $e(r), s = ye(a, {
|
|
2797
2797
|
tabbable: n,
|
|
2798
2798
|
accept: o
|
|
2799
2799
|
}, r);
|
|
2800
2800
|
s.currentNode = r[r.length - 1].nextElementSibling;
|
|
2801
2801
|
let i = s.previousNode();
|
|
2802
|
-
return i &&
|
|
2802
|
+
return i && he(i, !0), i;
|
|
2803
2803
|
}
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function $e(e) {
|
|
2807
2807
|
return e[0].parentElement;
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function Re(e) {
|
|
2810
2810
|
let t = q.getTreeNode(H);
|
|
2811
2811
|
for (; t && t.scopeRef !== e; ) {
|
|
2812
2812
|
if (t.contain) return !1;
|
|
@@ -2814,11 +2814,11 @@ function Ye(e) {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
return !0;
|
|
2816
2816
|
}
|
|
2817
|
-
function
|
|
2817
|
+
function ds(e) {
|
|
2818
2818
|
if (e.checked) return !0;
|
|
2819
2819
|
let t = [];
|
|
2820
2820
|
if (!e.form) t = [
|
|
2821
|
-
...
|
|
2821
|
+
...Q(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)
|
|
2822
2822
|
].filter((a) => !a.form);
|
|
2823
2823
|
else {
|
|
2824
2824
|
var r, n;
|
|
@@ -2829,38 +2829,38 @@ function us(e) {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
return t ? !t.some((a) => a.checked) : !1;
|
|
2831
2831
|
}
|
|
2832
|
-
function
|
|
2832
|
+
function fs(e, t) {
|
|
2833
2833
|
let r = T(void 0), n = T(void 0);
|
|
2834
|
-
|
|
2834
|
+
me(() => {
|
|
2835
2835
|
let o = e.current;
|
|
2836
2836
|
if (!t) {
|
|
2837
2837
|
n.current && (cancelAnimationFrame(n.current), n.current = void 0);
|
|
2838
2838
|
return;
|
|
2839
2839
|
}
|
|
2840
|
-
const a =
|
|
2840
|
+
const a = Q(o ? o[0] : void 0);
|
|
2841
2841
|
let s = (l) => {
|
|
2842
|
-
if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !
|
|
2843
|
-
let u =
|
|
2842
|
+
if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !Re(e) || l.isComposing) return;
|
|
2843
|
+
let u = se(a), f = e.current;
|
|
2844
2844
|
if (!f || !ne(u, f)) return;
|
|
2845
|
-
let m =
|
|
2845
|
+
let m = $e(f), b = ye(m, {
|
|
2846
2846
|
tabbable: !0
|
|
2847
2847
|
}, f);
|
|
2848
2848
|
if (!u) return;
|
|
2849
2849
|
b.currentNode = u;
|
|
2850
2850
|
let h = l.shiftKey ? b.previousNode() : b.nextNode();
|
|
2851
|
-
h || (b.currentNode = l.shiftKey ? f[f.length - 1].nextElementSibling : f[0].previousElementSibling, h = l.shiftKey ? b.previousNode() : b.nextNode()), l.preventDefault(), h &&
|
|
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 ||
|
|
2853
|
+
(!H || mt(H, e)) && ne(Oe(l), e.current) ? (H = e, r.current = Oe(l)) : Re(e) && !Ee(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
|
-
let u = Qr(), f = (u === "virtual" || u === null) && Br() && Hr(), m =
|
|
2857
|
-
if (!f && m &&
|
|
2856
|
+
let u = Qr(), f = (u === "virtual" || u === null) && Br() && Hr(), m = se(a);
|
|
2857
|
+
if (!f && m && Re(e) && !Ee(m, e)) {
|
|
2858
2858
|
H = e;
|
|
2859
|
-
let h =
|
|
2859
|
+
let h = Oe(l);
|
|
2860
2860
|
if (h && h.isConnected) {
|
|
2861
2861
|
var b;
|
|
2862
2862
|
r.current = h, (b = r.current) === null || b === void 0 || b.focus();
|
|
2863
|
-
} else H.current &&
|
|
2863
|
+
} else H.current && Yt(H.current);
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
2866
|
};
|
|
@@ -2870,25 +2870,25 @@ function ds(e, t) {
|
|
|
2870
2870
|
}, [
|
|
2871
2871
|
e,
|
|
2872
2872
|
t
|
|
2873
|
-
]),
|
|
2873
|
+
]), me(() => () => {
|
|
2874
2874
|
n.current && cancelAnimationFrame(n.current);
|
|
2875
2875
|
}, [
|
|
2876
2876
|
n
|
|
2877
2877
|
]);
|
|
2878
2878
|
}
|
|
2879
2879
|
function Gr(e) {
|
|
2880
|
-
return
|
|
2880
|
+
return Ee(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 Ee(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;
|
|
2889
2889
|
return !1;
|
|
2890
2890
|
}
|
|
2891
|
-
function
|
|
2891
|
+
function mt(e, t) {
|
|
2892
2892
|
var r;
|
|
2893
2893
|
let n = (r = q.getTreeNode(t)) === null || r === void 0 ? void 0 : r.parent;
|
|
2894
2894
|
for (; n; ) {
|
|
@@ -2897,9 +2897,9 @@ function dt(e, t) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
return !1;
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function he(e, t = !1) {
|
|
2901
2901
|
if (e != null && !t) try {
|
|
2902
|
-
|
|
2902
|
+
ls(e);
|
|
2903
2903
|
} catch {
|
|
2904
2904
|
}
|
|
2905
2905
|
else if (e != null) try {
|
|
@@ -2908,38 +2908,38 @@ function me(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 = $e(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 = $e(e), o = ye(n, {
|
|
2917
2917
|
tabbable: !1
|
|
2918
2918
|
}, e), o.currentNode = r, a = o.nextNode()), a;
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2921
|
-
|
|
2920
|
+
function Yt(e, t = !0) {
|
|
2921
|
+
he(Jr(e, t));
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2924
|
-
const r =
|
|
2923
|
+
function ms(e, t) {
|
|
2924
|
+
const r = Le.useRef(t);
|
|
2925
2925
|
B(() => {
|
|
2926
2926
|
if (r.current) {
|
|
2927
2927
|
H = e;
|
|
2928
|
-
const n =
|
|
2929
|
-
!ne(
|
|
2928
|
+
const n = Q(e.current ? e.current[0] : void 0);
|
|
2929
|
+
!ne(se(n), H.current) && e.current && Yt(e.current);
|
|
2930
2930
|
}
|
|
2931
2931
|
r.current = !1;
|
|
2932
2932
|
}, [
|
|
2933
2933
|
e
|
|
2934
2934
|
]);
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2937
|
-
|
|
2936
|
+
function hs(e, t, r) {
|
|
2937
|
+
me(() => {
|
|
2938
2938
|
if (t || r) return;
|
|
2939
2939
|
let n = e.current;
|
|
2940
|
-
const o =
|
|
2940
|
+
const o = Q(n ? n[0] : void 0);
|
|
2941
2941
|
let a = (s) => {
|
|
2942
|
-
let i =
|
|
2942
|
+
let i = Oe(s);
|
|
2943
2943
|
ne(i, e.current) ? H = e : Gr(i) || (H = null);
|
|
2944
2944
|
};
|
|
2945
2945
|
return o.addEventListener("focusin", a, !1), n?.forEach((s) => s.addEventListener("focusin", a, !1)), () => {
|
|
@@ -2959,14 +2959,14 @@ function gr(e) {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
return t?.scopeRef === e;
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2963
|
-
const n = T(typeof document < "u" ?
|
|
2964
|
-
|
|
2962
|
+
function bs(e, t, r) {
|
|
2963
|
+
const n = T(typeof document < "u" ? se(Q(e.current ? e.current[0] : void 0)) : null);
|
|
2964
|
+
me(() => {
|
|
2965
2965
|
let o = e.current;
|
|
2966
|
-
const a =
|
|
2966
|
+
const a = Q(o ? o[0] : void 0);
|
|
2967
2967
|
if (!t || r) return;
|
|
2968
2968
|
let s = () => {
|
|
2969
|
-
(!H ||
|
|
2969
|
+
(!H || mt(H, e)) && ne(se(a), e.current) && (H = e);
|
|
2970
2970
|
};
|
|
2971
2971
|
return a.addEventListener("focusin", s, !1), o?.forEach((i) => i.addEventListener("focusin", s, !1)), () => {
|
|
2972
2972
|
a.removeEventListener("focusin", s, !1), o?.forEach((i) => i.removeEventListener("focusin", s, !1));
|
|
@@ -2974,13 +2974,13 @@ function hs(e, t, r) {
|
|
|
2974
2974
|
}, [
|
|
2975
2975
|
e,
|
|
2976
2976
|
r
|
|
2977
|
-
]),
|
|
2978
|
-
const o =
|
|
2977
|
+
]), me(() => {
|
|
2978
|
+
const o = Q(e.current ? e.current[0] : void 0);
|
|
2979
2979
|
if (!t) return;
|
|
2980
2980
|
let a = (s) => {
|
|
2981
|
-
if (s.key !== "Tab" || s.altKey || s.ctrlKey || s.metaKey || !
|
|
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 (!Ee(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,12 +2988,12 @@ function hs(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 || !Ee(f, e)) && l) {
|
|
2992
2992
|
u.currentNode = l;
|
|
2993
2993
|
do
|
|
2994
2994
|
f = s.shiftKey ? u.previousNode() : u.nextNode();
|
|
2995
|
-
while (
|
|
2996
|
-
s.preventDefault(), s.stopPropagation(), f ?
|
|
2995
|
+
while (Ee(f, e));
|
|
2996
|
+
s.preventDefault(), s.stopPropagation(), f ? he(f, !0) : Gr(l) ? he(l, !0) : i.blur();
|
|
2997
2997
|
}
|
|
2998
2998
|
};
|
|
2999
2999
|
return r || o.addEventListener("keydown", a, !0), () => {
|
|
@@ -3003,8 +3003,8 @@ function hs(e, t, r) {
|
|
|
3003
3003
|
e,
|
|
3004
3004
|
t,
|
|
3005
3005
|
r
|
|
3006
|
-
]),
|
|
3007
|
-
const o =
|
|
3006
|
+
]), me(() => {
|
|
3007
|
+
const o = Q(e.current ? e.current[0] : void 0);
|
|
3008
3008
|
if (!t) return;
|
|
3009
3009
|
let a = q.getTreeNode(e);
|
|
3010
3010
|
if (a) {
|
|
@@ -3012,8 +3012,8 @@ function hs(e, t, r) {
|
|
|
3012
3012
|
return a.nodeToRestore = (s = n.current) !== null && s !== void 0 ? s : void 0, () => {
|
|
3013
3013
|
let i = q.getTreeNode(e);
|
|
3014
3014
|
if (!i) return;
|
|
3015
|
-
let c = i.nodeToRestore, l =
|
|
3016
|
-
if (t && c && (l &&
|
|
3015
|
+
let c = i.nodeToRestore, l = se(o);
|
|
3016
|
+
if (t && c && (l && Ee(l, e) || l === o.body && gr(e))) {
|
|
3017
3017
|
let u = q.clone();
|
|
3018
3018
|
requestAnimationFrame(() => {
|
|
3019
3019
|
if (o.activeElement === o.body) {
|
|
@@ -3044,16 +3044,16 @@ function hs(e, t, r) {
|
|
|
3044
3044
|
]);
|
|
3045
3045
|
}
|
|
3046
3046
|
function vr(e) {
|
|
3047
|
-
e.dispatchEvent(new CustomEvent(
|
|
3047
|
+
e.dispatchEvent(new CustomEvent(_t, {
|
|
3048
3048
|
bubbles: !0,
|
|
3049
3049
|
cancelable: !0
|
|
3050
|
-
})) &&
|
|
3050
|
+
})) && he(e);
|
|
3051
3051
|
}
|
|
3052
3052
|
function ye(e, t, r) {
|
|
3053
|
-
let n = t?.tabbable ?
|
|
3053
|
+
let n = t?.tabbable ? ns : rs, o = e?.nodeType === Node.ELEMENT_NODE ? e : null, a = Q(o), s = ja(a, e || a, NodeFilter.SHOW_ELEMENT, {
|
|
3054
3054
|
acceptNode(i) {
|
|
3055
3055
|
var c;
|
|
3056
|
-
return !(t == null || (c = t.from) === null || c === void 0) && c.contains(i) || t?.tabbable && i.tagName === "INPUT" && i.getAttribute("type") === "radio" && (!
|
|
3056
|
+
return !(t == null || (c = t.from) === null || c === void 0) && c.contains(i) || t?.tabbable && i.tagName === "INPUT" && i.getAttribute("type") === "radio" && (!ds(i) || s.currentNode.tagName === "INPUT" && s.currentNode.type === "radio" && s.currentNode.name === i.name) ? NodeFilter.FILTER_REJECT : n(i) && (!r || ne(i, r)) && (!t?.accept || t.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
3057
3057
|
}
|
|
3058
3058
|
});
|
|
3059
3059
|
return t?.from && (s.currentNode = t.from), s;
|
|
@@ -3068,7 +3068,7 @@ class Qt {
|
|
|
3068
3068
|
addTreeNode(t, r, n) {
|
|
3069
3069
|
let o = this.fastMap.get(r ?? null);
|
|
3070
3070
|
if (!o) return;
|
|
3071
|
-
let a = new
|
|
3071
|
+
let a = new Rt({
|
|
3072
3072
|
scopeRef: t
|
|
3073
3073
|
});
|
|
3074
3074
|
o.addChild(a), a.parent = o, this.fastMap.set(t, a), n && (a.nodeToRestore = n);
|
|
@@ -3097,12 +3097,12 @@ class Qt {
|
|
|
3097
3097
|
return r;
|
|
3098
3098
|
}
|
|
3099
3099
|
constructor() {
|
|
3100
|
-
this.fastMap = /* @__PURE__ */ new Map(), this.root = new
|
|
3100
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new Rt({
|
|
3101
3101
|
scopeRef: null
|
|
3102
3102
|
}), this.fastMap.set(null, this.root);
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
|
-
class
|
|
3105
|
+
class Rt {
|
|
3106
3106
|
addChild(t) {
|
|
3107
3107
|
this.children.add(t), t.parent = this;
|
|
3108
3108
|
}
|
|
@@ -3114,7 +3114,7 @@ class Yt {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
3116
3116
|
let q = new Qt();
|
|
3117
|
-
const
|
|
3117
|
+
const Ze = ({ children: e, node: t }) => Tr(e, t ?? document.body), ps = ({
|
|
3118
3118
|
children: e,
|
|
3119
3119
|
customTrigger: t,
|
|
3120
3120
|
triggerContent: r,
|
|
@@ -3130,10 +3130,10 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3130
3130
|
onClose: m,
|
|
3131
3131
|
maxHeight: b = "400px",
|
|
3132
3132
|
minWidth: h = "200px",
|
|
3133
|
-
maxWidth:
|
|
3133
|
+
maxWidth: v = "500px"
|
|
3134
3134
|
}) => {
|
|
3135
3135
|
const {
|
|
3136
|
-
triggerRef:
|
|
3136
|
+
triggerRef: w,
|
|
3137
3137
|
triggerProps: E,
|
|
3138
3138
|
popoverRef: S,
|
|
3139
3139
|
getPopoverPosition: _,
|
|
@@ -3152,20 +3152,20 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3152
3152
|
m?.();
|
|
3153
3153
|
}
|
|
3154
3154
|
});
|
|
3155
|
-
|
|
3155
|
+
Vn(
|
|
3156
3156
|
{
|
|
3157
3157
|
Escape: (L) => {
|
|
3158
|
-
c && (L.preventDefault(), x(),
|
|
3158
|
+
c && (L.preventDefault(), x(), w.current?.focus());
|
|
3159
3159
|
}
|
|
3160
3160
|
},
|
|
3161
3161
|
{ enabled: D }
|
|
3162
3162
|
), Bt(S, (L) => {
|
|
3163
|
-
!l || !
|
|
3163
|
+
!l || !w.current || !D || !L.target || w.current.contains(L.target) || x();
|
|
3164
3164
|
});
|
|
3165
3165
|
const k = _();
|
|
3166
|
-
return /* @__PURE__ */
|
|
3166
|
+
return /* @__PURE__ */ g(gt, { children: [
|
|
3167
3167
|
t ? t({
|
|
3168
|
-
triggerRef:
|
|
3168
|
+
triggerRef: w,
|
|
3169
3169
|
triggerProps: E,
|
|
3170
3170
|
toggle: P,
|
|
3171
3171
|
open: D,
|
|
@@ -3173,7 +3173,7 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3173
3173
|
}) : /* @__PURE__ */ d(
|
|
3174
3174
|
"button",
|
|
3175
3175
|
{
|
|
3176
|
-
ref:
|
|
3176
|
+
ref: w,
|
|
3177
3177
|
...E,
|
|
3178
3178
|
onClick: P,
|
|
3179
3179
|
className: N(
|
|
@@ -3184,8 +3184,8 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3184
3184
|
children: r
|
|
3185
3185
|
}
|
|
3186
3186
|
),
|
|
3187
|
-
/* @__PURE__ */ d(
|
|
3188
|
-
|
|
3187
|
+
/* @__PURE__ */ d(Ke, { children: D && /* @__PURE__ */ d(Ze, { children: /* @__PURE__ */ d(cs, { contain: !0, restoreFocus: !0, autoFocus: !0, children: /* @__PURE__ */ d(
|
|
3188
|
+
ie.div,
|
|
3189
3189
|
{
|
|
3190
3190
|
initial: {
|
|
3191
3191
|
opacity: 0,
|
|
@@ -3211,7 +3211,7 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3211
3211
|
bottom: k.bottom,
|
|
3212
3212
|
maxHeight: typeof b == "number" ? `${b}px` : b,
|
|
3213
3213
|
minWidth: typeof h == "number" ? `${h}px` : h,
|
|
3214
|
-
maxWidth: typeof
|
|
3214
|
+
maxWidth: typeof v == "number" ? `${v}px` : v,
|
|
3215
3215
|
zIndex: 1e3
|
|
3216
3216
|
},
|
|
3217
3217
|
className: N(
|
|
@@ -3224,13 +3224,13 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3224
3224
|
}
|
|
3225
3225
|
) }) }) })
|
|
3226
3226
|
] });
|
|
3227
|
-
},
|
|
3227
|
+
}, Oi = ({
|
|
3228
3228
|
title: e,
|
|
3229
3229
|
subtitle: t,
|
|
3230
3230
|
onClose: r,
|
|
3231
3231
|
className: n
|
|
3232
|
-
}) => /* @__PURE__ */ d("div", { className: N("p-4 border-b border-base-4", n), children: /* @__PURE__ */
|
|
3233
|
-
/* @__PURE__ */
|
|
3232
|
+
}) => /* @__PURE__ */ d("div", { className: N("p-4 border-b border-base-4", n), children: /* @__PURE__ */ g("div", { className: "flex items-start justify-between", children: [
|
|
3233
|
+
/* @__PURE__ */ g("div", { children: [
|
|
3234
3234
|
/* @__PURE__ */ d("h3", { className: "font-semibold text-base-12", children: e }),
|
|
3235
3235
|
t && /* @__PURE__ */ d("p", { className: "text-sm text-base-11 mt-1", children: t })
|
|
3236
3236
|
] }),
|
|
@@ -3242,18 +3242,18 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3242
3242
|
children: "×"
|
|
3243
3243
|
}
|
|
3244
3244
|
)
|
|
3245
|
-
] }) }),
|
|
3245
|
+
] }) }), Li = ({
|
|
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 }), Fi = ({
|
|
3249
3249
|
children: e,
|
|
3250
3250
|
className: t
|
|
3251
|
-
}) => /* @__PURE__ */ d("div", { className: N("p-4 border-t border-base-4", t), children: e }),
|
|
3251
|
+
}) => /* @__PURE__ */ d("div", { className: N("p-4 border-t border-base-4", t), children: e }), gs = (e, t) => {
|
|
3252
3252
|
const r = new Date(2023, 0, 1), n = [];
|
|
3253
3253
|
for (let o = 0; o < 7; o++) {
|
|
3254
3254
|
const a = new Date(r);
|
|
3255
3255
|
a.setDate(r.getDate() + o), n.push(
|
|
3256
|
-
|
|
3256
|
+
Te(a, "EEE", {
|
|
3257
3257
|
locale: e ?? Ir
|
|
3258
3258
|
})
|
|
3259
3259
|
);
|
|
@@ -3272,10 +3272,10 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3272
3272
|
}) => {
|
|
3273
3273
|
const [l, u] = z(e || /* @__PURE__ */ new Date()), [f, m] = z(
|
|
3274
3274
|
e || /* @__PURE__ */ new Date()
|
|
3275
|
-
), b = T(null), h =
|
|
3275
|
+
), b = T(null), h = ae(() => r ? new Set(
|
|
3276
3276
|
r.map((x) => new Date(x).toDateString())
|
|
3277
|
-
) : /* @__PURE__ */ new Set(), [r]),
|
|
3278
|
-
const x =
|
|
3277
|
+
) : /* @__PURE__ */ new Set(), [r]), v = ae(() => new Set(n || []), [n]), w = ae(() => {
|
|
3278
|
+
const x = lo(l), k = ao(l), L = new Date(x), Y = new Date(k);
|
|
3279
3279
|
if (i) {
|
|
3280
3280
|
const $ = x.getDay(), p = $ === 0 ? 6 : $ - 1;
|
|
3281
3281
|
L.setDate(x.getDate() - p);
|
|
@@ -3283,13 +3283,13 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
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
|
-
return
|
|
3287
|
-
}, [l, i]), E =
|
|
3288
|
-
() =>
|
|
3286
|
+
return io({ start: L, end: Y });
|
|
3287
|
+
}, [l, i]), E = ae(
|
|
3288
|
+
() => gs(s ?? Be, i),
|
|
3289
3289
|
[s, i]
|
|
3290
3290
|
), S = (x) => {
|
|
3291
3291
|
const k = x.toDateString(), L = x.getDay();
|
|
3292
|
-
return !(h.has(k) ||
|
|
3292
|
+
return !(h.has(k) || v.has(L) || o && x < o || a && x > a);
|
|
3293
3293
|
}, _ = (x) => {
|
|
3294
3294
|
S(x) && t && t(x), m(x);
|
|
3295
3295
|
}, D = (x) => {
|
|
@@ -3315,10 +3315,10 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3315
3315
|
$ = k.getDay(), k.setDate(k.getDate() + (6 - $));
|
|
3316
3316
|
break;
|
|
3317
3317
|
case "PageUp":
|
|
3318
|
-
k = x.shiftKey ?
|
|
3318
|
+
k = x.shiftKey ? Dt(k, 12) : Dt(k, 1);
|
|
3319
3319
|
break;
|
|
3320
3320
|
case "PageDown":
|
|
3321
|
-
k = x.shiftKey ?
|
|
3321
|
+
k = x.shiftKey ? st(k, 12) : st(k, 1);
|
|
3322
3322
|
break;
|
|
3323
3323
|
case "Enter":
|
|
3324
3324
|
case " ":
|
|
@@ -3330,10 +3330,10 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3330
3330
|
L && (x.preventDefault(), k.getTime() !== f.getTime() && (m(k), dr(k, l) || u(k)));
|
|
3331
3331
|
}, P = (x) => {
|
|
3332
3332
|
u(
|
|
3333
|
-
(k) => x === "prev" ?
|
|
3333
|
+
(k) => x === "prev" ? Dt(k, 1) : st(k, 1)
|
|
3334
3334
|
);
|
|
3335
3335
|
};
|
|
3336
|
-
return /* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ g(
|
|
3337
3337
|
"div",
|
|
3338
3338
|
{
|
|
3339
3339
|
ref: b,
|
|
@@ -3346,9 +3346,9 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3346
3346
|
role: "grid",
|
|
3347
3347
|
"aria-label": "Calendar",
|
|
3348
3348
|
children: [
|
|
3349
|
-
/* @__PURE__ */
|
|
3349
|
+
/* @__PURE__ */ g("div", { className: "flex items-center justify-between", children: [
|
|
3350
3350
|
/* @__PURE__ */ d(
|
|
3351
|
-
|
|
3351
|
+
U,
|
|
3352
3352
|
{
|
|
3353
3353
|
onClick: () => P("prev"),
|
|
3354
3354
|
size: "iconSm",
|
|
@@ -3356,9 +3356,9 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3356
3356
|
children: /* @__PURE__ */ d(Sr, { size: 16 })
|
|
3357
3357
|
}
|
|
3358
3358
|
),
|
|
3359
|
-
/* @__PURE__ */ d("h2", { className: "text-sm font-medium", children:
|
|
3359
|
+
/* @__PURE__ */ d("h2", { className: "text-sm font-medium", children: Te(l, "MMMM yyyy") }),
|
|
3360
3360
|
/* @__PURE__ */ d(
|
|
3361
|
-
|
|
3361
|
+
U,
|
|
3362
3362
|
{
|
|
3363
3363
|
onClick: () => P("next"),
|
|
3364
3364
|
size: "iconSm",
|
|
@@ -3376,8 +3376,8 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3376
3376
|
},
|
|
3377
3377
|
x
|
|
3378
3378
|
)) }),
|
|
3379
|
-
/* @__PURE__ */ d("div", { className: "grid grid-cols-7 gap-1 mt-4", role: "grid", children:
|
|
3380
|
-
const L = dr(x, l), Y = e ?
|
|
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, $ = f && Mt(x, f), p = S(x), M = Mt(x, /* @__PURE__ */ new Date());
|
|
3381
3381
|
return /* @__PURE__ */ d(
|
|
3382
3382
|
"button",
|
|
3383
3383
|
{
|
|
@@ -3399,7 +3399,7 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3399
3399
|
$ && "ring-1 ring-base-6",
|
|
3400
3400
|
(!p || !L) && "pointer-events-none text-base-9"
|
|
3401
3401
|
),
|
|
3402
|
-
children:
|
|
3402
|
+
children: Te(x, "d")
|
|
3403
3403
|
},
|
|
3404
3404
|
k
|
|
3405
3405
|
);
|
|
@@ -3407,11 +3407,11 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3407
3407
|
]
|
|
3408
3408
|
}
|
|
3409
3409
|
);
|
|
3410
|
-
},
|
|
3410
|
+
}, Wi = () => {
|
|
3411
3411
|
const [e, t] = z(
|
|
3412
3412
|
new Date(2025, 8, 21)
|
|
3413
3413
|
);
|
|
3414
|
-
return /* @__PURE__ */ d("div", { className: "p-8 bg-gray-100 min-h-screen", children: /* @__PURE__ */
|
|
3414
|
+
return /* @__PURE__ */ d("div", { className: "p-8 bg-gray-100 min-h-screen", children: /* @__PURE__ */ g("div", { className: "max-w-md mx-auto", children: [
|
|
3415
3415
|
/* @__PURE__ */ d("h1", { className: "text-2xl font-bold mb-6 text-gray-800", children: "Calendar Date Picker Demo" }),
|
|
3416
3416
|
/* @__PURE__ */ d("div", { className: "mb-6", children: /* @__PURE__ */ d(
|
|
3417
3417
|
Zr,
|
|
@@ -3429,7 +3429,7 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3429
3429
|
maxDate: new Date(2025, 11, 31)
|
|
3430
3430
|
}
|
|
3431
3431
|
) }),
|
|
3432
|
-
e && /* @__PURE__ */
|
|
3432
|
+
e && /* @__PURE__ */ g("div", { className: "bg-white p-4 rounded-lg shadow", children: [
|
|
3433
3433
|
/* @__PURE__ */ d("h3", { className: "font-semibold text-gray-800 mb-2", children: "Selected Date:" }),
|
|
3434
3434
|
/* @__PURE__ */ d("p", { className: "text-gray-600", children: e.toLocaleDateString("en-US", {
|
|
3435
3435
|
weekday: "long",
|
|
@@ -3437,39 +3437,39 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3437
3437
|
month: "long",
|
|
3438
3438
|
day: "numeric"
|
|
3439
3439
|
}) }),
|
|
3440
|
-
/* @__PURE__ */
|
|
3440
|
+
/* @__PURE__ */ g("p", { className: "text-sm text-gray-500 mt-1", children: [
|
|
3441
3441
|
"ISO: ",
|
|
3442
3442
|
e.toISOString()
|
|
3443
3443
|
] })
|
|
3444
3444
|
] }),
|
|
3445
|
-
/* @__PURE__ */
|
|
3445
|
+
/* @__PURE__ */ g("div", { className: "mt-6 bg-white p-4 rounded-lg shadow", children: [
|
|
3446
3446
|
/* @__PURE__ */ d("h3", { className: "font-semibold text-gray-800 mb-2", children: "Keyboard Navigation:" }),
|
|
3447
|
-
/* @__PURE__ */
|
|
3448
|
-
/* @__PURE__ */
|
|
3447
|
+
/* @__PURE__ */ g("div", { className: "text-sm text-gray-600 space-y-1", children: [
|
|
3448
|
+
/* @__PURE__ */ g("p", { children: [
|
|
3449
3449
|
/* @__PURE__ */ d("strong", { children: "Arrow Keys:" }),
|
|
3450
3450
|
" Navigate between dates"
|
|
3451
3451
|
] }),
|
|
3452
|
-
/* @__PURE__ */
|
|
3452
|
+
/* @__PURE__ */ g("p", { children: [
|
|
3453
3453
|
/* @__PURE__ */ d("strong", { children: "Enter/Space:" }),
|
|
3454
3454
|
" Select focused date"
|
|
3455
3455
|
] }),
|
|
3456
|
-
/* @__PURE__ */
|
|
3456
|
+
/* @__PURE__ */ g("p", { children: [
|
|
3457
3457
|
/* @__PURE__ */ d("strong", { children: "Home/End:" }),
|
|
3458
3458
|
" Go to start/end of week"
|
|
3459
3459
|
] }),
|
|
3460
|
-
/* @__PURE__ */
|
|
3460
|
+
/* @__PURE__ */ g("p", { children: [
|
|
3461
3461
|
/* @__PURE__ */ d("strong", { children: "Page Up/Down:" }),
|
|
3462
3462
|
" Previous/next month"
|
|
3463
3463
|
] }),
|
|
3464
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ g("p", { children: [
|
|
3465
3465
|
/* @__PURE__ */ d("strong", { children: "Shift + Page Up/Down:" }),
|
|
3466
3466
|
" Previous/next year"
|
|
3467
3467
|
] })
|
|
3468
3468
|
] })
|
|
3469
3469
|
] }),
|
|
3470
|
-
/* @__PURE__ */
|
|
3470
|
+
/* @__PURE__ */ g("div", { className: "mt-4 bg-white p-4 rounded-lg shadow", children: [
|
|
3471
3471
|
/* @__PURE__ */ d("h3", { className: "font-semibold text-gray-800 mb-2", children: "Features:" }),
|
|
3472
|
-
/* @__PURE__ */
|
|
3472
|
+
/* @__PURE__ */ g("ul", { className: "text-sm text-gray-600 space-y-1", children: [
|
|
3473
3473
|
/* @__PURE__ */ d("li", { children: "✅ All dates enabled by default" }),
|
|
3474
3474
|
/* @__PURE__ */ d("li", { children: "✅ Disable specific dates (PostgreSQL ISO strings)" }),
|
|
3475
3475
|
/* @__PURE__ */ d("li", { children: "✅ Disable entire days of week (e.g., weekends)" }),
|
|
@@ -3480,25 +3480,25 @@ const kt = ({ children: e, node: t }) => Tr(e, t ?? document.body), bs = ({
|
|
|
3480
3480
|
] })
|
|
3481
3481
|
] }) });
|
|
3482
3482
|
};
|
|
3483
|
-
function
|
|
3483
|
+
function Ai({
|
|
3484
3484
|
customTrigger: e,
|
|
3485
3485
|
scrollerId: t
|
|
3486
3486
|
}) {
|
|
3487
3487
|
const [r, n] = z(/* @__PURE__ */ new Date());
|
|
3488
3488
|
return /* @__PURE__ */ d(
|
|
3489
|
-
|
|
3489
|
+
ps,
|
|
3490
3490
|
{
|
|
3491
3491
|
className: "p-0",
|
|
3492
3492
|
scrollerId: t,
|
|
3493
|
-
customTrigger: ({ toggle: o, triggerRef: a }) => e ? e(o, a) : /* @__PURE__ */
|
|
3494
|
-
|
|
3493
|
+
customTrigger: ({ toggle: o, triggerRef: a }) => e ? e(o, a) : /* @__PURE__ */ g(
|
|
3494
|
+
U,
|
|
3495
3495
|
{
|
|
3496
3496
|
ref: a,
|
|
3497
3497
|
onClick: o,
|
|
3498
3498
|
color: "solid",
|
|
3499
3499
|
className: "px-3 mt-1 w-full justify-start",
|
|
3500
3500
|
children: [
|
|
3501
|
-
|
|
3501
|
+
Te(/* @__PURE__ */ new Date(), "PP", { locale: Be }),
|
|
3502
3502
|
/* @__PURE__ */ d("span", { className: "grow" }),
|
|
3503
3503
|
/* @__PURE__ */ d(Mr, { size: 18, className: "text-base-11" })
|
|
3504
3504
|
]
|
|
@@ -3518,36 +3518,36 @@ function Wi({
|
|
|
3518
3518
|
}
|
|
3519
3519
|
);
|
|
3520
3520
|
}
|
|
3521
|
-
const
|
|
3521
|
+
const _i = () => /* @__PURE__ */ g("div", { children: [
|
|
3522
3522
|
/* @__PURE__ */ d("p", { className: "text-xs font-medium ml-0.5", children: "Start Time" }),
|
|
3523
|
-
/* @__PURE__ */
|
|
3524
|
-
|
|
3523
|
+
/* @__PURE__ */ g(U, { color: "solid", className: "px-3 mt-1", children: [
|
|
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
|
-
] }),
|
|
3529
|
-
/* @__PURE__ */
|
|
3528
|
+
] }), Yi = () => /* @__PURE__ */ g("div", { className: "flex items-center gap-x-4", children: [
|
|
3529
|
+
/* @__PURE__ */ g("div", { className: "grow", children: [
|
|
3530
3530
|
/* @__PURE__ */ d("p", { className: "text-xs font-medium ml-0.5", children: "Start Date" }),
|
|
3531
|
-
/* @__PURE__ */
|
|
3532
|
-
|
|
3531
|
+
/* @__PURE__ */ g(U, { color: "solid", className: "px-3 mt-1 w-full justify-start", children: [
|
|
3532
|
+
Te(/* @__PURE__ */ new Date(), "PP", { locale: Be }),
|
|
3533
3533
|
/* @__PURE__ */ d("span", { className: "grow" }),
|
|
3534
3534
|
/* @__PURE__ */ d(Mr, { size: 18, className: "text-base-11" })
|
|
3535
3535
|
] })
|
|
3536
3536
|
] }),
|
|
3537
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ g("div", { children: [
|
|
3538
3538
|
/* @__PURE__ */ d("p", { className: "text-xs font-medium ml-0.5", children: "Start Time" }),
|
|
3539
|
-
/* @__PURE__ */
|
|
3540
|
-
|
|
3539
|
+
/* @__PURE__ */ g(U, { color: "solid", className: "px-3 mt-1", children: [
|
|
3540
|
+
Te(/* @__PURE__ */ new Date(), "p", { locale: Be }),
|
|
3541
3541
|
/* @__PURE__ */ d("span", { className: "grow" }),
|
|
3542
3542
|
/* @__PURE__ */ d(Dr, { size: 18, className: "text-base-11" })
|
|
3543
3543
|
] })
|
|
3544
3544
|
] })
|
|
3545
|
-
] }),
|
|
3545
|
+
] }), ot = {
|
|
3546
3546
|
unchecked: "bg-base-3 lg:hover:bg-base-4",
|
|
3547
3547
|
checked: "bg-brand lg:hover:bg-brand-hover text-brand-text",
|
|
3548
3548
|
uncheckedDisabled: "bg-base-3 border-base-4",
|
|
3549
3549
|
checkedDisabled: "bg-base-3 border-base-4 text-base-10"
|
|
3550
|
-
},
|
|
3550
|
+
}, vs = Xe(
|
|
3551
3551
|
({
|
|
3552
3552
|
checked: e = !1,
|
|
3553
3553
|
onCheckedChange: t,
|
|
@@ -3562,8 +3562,8 @@ const Ai = () => /* @__PURE__ */ y("div", { children: [
|
|
|
3562
3562
|
}, u) => {
|
|
3563
3563
|
const f = () => {
|
|
3564
3564
|
r || t?.(e === "indeterminate" ? !0 : !e);
|
|
3565
|
-
}, m = (
|
|
3566
|
-
(
|
|
3565
|
+
}, m = (v) => {
|
|
3566
|
+
(v.key === " " || v.key === "Enter") && (v.preventDefault(), f());
|
|
3567
3567
|
}, b = {
|
|
3568
3568
|
xs: "h-3.5 w-3.5",
|
|
3569
3569
|
sm: "h-4 w-4",
|
|
@@ -3575,8 +3575,8 @@ const Ai = () => /* @__PURE__ */ y("div", { children: [
|
|
|
3575
3575
|
md: 14,
|
|
3576
3576
|
lg: 16
|
|
3577
3577
|
};
|
|
3578
|
-
return /* @__PURE__ */
|
|
3579
|
-
/* @__PURE__ */
|
|
3578
|
+
return /* @__PURE__ */ g(gt, { children: [
|
|
3579
|
+
/* @__PURE__ */ g(
|
|
3580
3580
|
"button",
|
|
3581
3581
|
{
|
|
3582
3582
|
ref: u,
|
|
@@ -3597,7 +3597,7 @@ const Ai = () => /* @__PURE__ */ y("div", { children: [
|
|
|
3597
3597
|
r && "cursor-not-allowed opacity-75",
|
|
3598
3598
|
!r && "cursor-pointer",
|
|
3599
3599
|
// Checked states
|
|
3600
|
-
e ? r ?
|
|
3600
|
+
e ? r ? ot.checkedDisabled : ot.checked : r ? ot.uncheckedDisabled : ot.unchecked,
|
|
3601
3601
|
// Custom classes
|
|
3602
3602
|
typeof i == "function" ? i(e) : i
|
|
3603
3603
|
),
|
|
@@ -3639,15 +3639,78 @@ const Ai = () => /* @__PURE__ */ y("div", { children: [
|
|
|
3639
3639
|
] });
|
|
3640
3640
|
}
|
|
3641
3641
|
);
|
|
3642
|
-
|
|
3643
|
-
const
|
|
3642
|
+
vs.displayName = "Checkbox";
|
|
3643
|
+
const Ri = ({
|
|
3644
|
+
title: e,
|
|
3645
|
+
message: t,
|
|
3646
|
+
searchParam: r,
|
|
3647
|
+
condition: n = !0,
|
|
3648
|
+
cancelLabel: o,
|
|
3649
|
+
confirmLabel: a,
|
|
3650
|
+
confirmColor: s = "contrast",
|
|
3651
|
+
confirmAction: i,
|
|
3652
|
+
trigger: c
|
|
3653
|
+
}) => {
|
|
3654
|
+
const { searchParams: l } = Fn(), u = ae(() => !!l[r], [l]), f = A(() => {
|
|
3655
|
+
ke.to(`${window.location.pathname}?${r}=open`);
|
|
3656
|
+
}, [r]);
|
|
3657
|
+
return /* @__PURE__ */ g(gt, { children: [
|
|
3658
|
+
/* @__PURE__ */ d(Ke, { initial: !1, children: u && n ? /* @__PURE__ */ g(Ze, { node: document && document.getElementById("modals"), children: [
|
|
3659
|
+
/* @__PURE__ */ d(
|
|
3660
|
+
ie.div,
|
|
3661
|
+
{
|
|
3662
|
+
initial: { opacity: 0 },
|
|
3663
|
+
animate: { opacity: 1 },
|
|
3664
|
+
exit: { opacity: 0 },
|
|
3665
|
+
className: "fixed top-0 left-0 z-[999] h-full w-full bg-black/50"
|
|
3666
|
+
}
|
|
3667
|
+
),
|
|
3668
|
+
/* @__PURE__ */ g(
|
|
3669
|
+
ie.div,
|
|
3670
|
+
{
|
|
3671
|
+
initial: { opacity: 0 },
|
|
3672
|
+
animate: { opacity: 1 },
|
|
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-base-2 p-4 lg:w-[35%] xl:w-[30%]",
|
|
3675
|
+
children: [
|
|
3676
|
+
e ? /* @__PURE__ */ d("p", { className: "font-medium", children: e }) : null,
|
|
3677
|
+
t ? /* @__PURE__ */ d("p", { className: N("text-sm text-base-11", { "mt-2": e }), children: t }) : null,
|
|
3678
|
+
/* @__PURE__ */ g("div", { className: "flex justify-end gap-x-4 pt-4", children: [
|
|
3679
|
+
/* @__PURE__ */ d(
|
|
3680
|
+
U,
|
|
3681
|
+
{
|
|
3682
|
+
onClick: () => ke.back(),
|
|
3683
|
+
color: "transparentinactive",
|
|
3684
|
+
size: "sm",
|
|
3685
|
+
children: o ?? "Cancelar"
|
|
3686
|
+
}
|
|
3687
|
+
),
|
|
3688
|
+
/* @__PURE__ */ d(
|
|
3689
|
+
U,
|
|
3690
|
+
{
|
|
3691
|
+
size: "sm",
|
|
3692
|
+
onClick: () => {
|
|
3693
|
+
i && i(), ke.back();
|
|
3694
|
+
},
|
|
3695
|
+
color: s,
|
|
3696
|
+
children: a ?? "Continuar"
|
|
3697
|
+
}
|
|
3698
|
+
)
|
|
3699
|
+
] })
|
|
3700
|
+
]
|
|
3701
|
+
}
|
|
3702
|
+
)
|
|
3703
|
+
] }) : null }),
|
|
3704
|
+
c ? c(f) : null
|
|
3705
|
+
] });
|
|
3706
|
+
}, Ii = ({
|
|
3644
3707
|
scrollY: e,
|
|
3645
3708
|
height: t = 300,
|
|
3646
3709
|
className: r,
|
|
3647
3710
|
children: n
|
|
3648
3711
|
}) => {
|
|
3649
3712
|
const o = tr(e, (s) => s < 0 ? 1 + Math.abs(s) / t : 1), a = tr(e, (s) => s < 0 ? -Math.abs(s) / 2 : 0);
|
|
3650
|
-
return /* @__PURE__ */ d(
|
|
3713
|
+
return /* @__PURE__ */ d(ie.div, { style: { scale: o, y: a, height: t }, className: r, children: n });
|
|
3651
3714
|
};
|
|
3652
3715
|
function en(e, t, r) {
|
|
3653
3716
|
function n(i, c) {
|
|
@@ -3676,27 +3739,27 @@ function en(e, t, r) {
|
|
|
3676
3739
|
value: (i) => r?.Parent && i instanceof r.Parent ? !0 : i?._zod?.traits?.has(e)
|
|
3677
3740
|
}), Object.defineProperty(s, "name", { value: e }), s;
|
|
3678
3741
|
}
|
|
3679
|
-
class
|
|
3742
|
+
class ws extends Error {
|
|
3680
3743
|
constructor() {
|
|
3681
3744
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
3682
3745
|
}
|
|
3683
3746
|
}
|
|
3684
|
-
const
|
|
3747
|
+
const ys = {};
|
|
3685
3748
|
function tn(e) {
|
|
3686
|
-
return
|
|
3749
|
+
return ys;
|
|
3687
3750
|
}
|
|
3688
|
-
function
|
|
3751
|
+
function xs(e, t) {
|
|
3689
3752
|
return typeof t == "bigint" ? t.toString() : t;
|
|
3690
3753
|
}
|
|
3691
3754
|
const rn = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
|
|
3692
3755
|
};
|
|
3693
|
-
function
|
|
3756
|
+
function at(e) {
|
|
3694
3757
|
return typeof e == "string" ? e : e?.message;
|
|
3695
3758
|
}
|
|
3696
3759
|
function nn(e, t, r) {
|
|
3697
3760
|
const n = { ...e, path: e.path ?? [] };
|
|
3698
3761
|
if (!e.message) {
|
|
3699
|
-
const o =
|
|
3762
|
+
const o = at(e.inst?._zod.def?.error?.(e)) ?? at(t?.error?.(e)) ?? at(r.customError?.(e)) ?? at(r.localeError?.(e)) ?? "Invalid input";
|
|
3700
3763
|
n.message = o;
|
|
3701
3764
|
}
|
|
3702
3765
|
return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
|
|
@@ -3710,7 +3773,7 @@ const on = (e, t) => {
|
|
|
3710
3773
|
enumerable: !1
|
|
3711
3774
|
}), Object.defineProperty(e, "message", {
|
|
3712
3775
|
get() {
|
|
3713
|
-
return JSON.stringify(t,
|
|
3776
|
+
return JSON.stringify(t, xs, 2);
|
|
3714
3777
|
},
|
|
3715
3778
|
enumerable: !0
|
|
3716
3779
|
// configurable: false,
|
|
@@ -3718,16 +3781,16 @@ const on = (e, t) => {
|
|
|
3718
3781
|
value: () => e.message,
|
|
3719
3782
|
enumerable: !1
|
|
3720
3783
|
});
|
|
3721
|
-
},
|
|
3784
|
+
}, Ns = en("$ZodError", on), an = en("$ZodError", on, { Parent: Error }), ks = (e) => (t, r, n, o) => {
|
|
3722
3785
|
const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, a);
|
|
3723
3786
|
if (s instanceof Promise)
|
|
3724
|
-
throw new
|
|
3787
|
+
throw new ws();
|
|
3725
3788
|
if (s.issues.length) {
|
|
3726
3789
|
const i = new (o?.Err ?? e)(s.issues.map((c) => nn(c, a, tn())));
|
|
3727
3790
|
throw rn(i, o?.callee), i;
|
|
3728
3791
|
}
|
|
3729
3792
|
return s.value;
|
|
3730
|
-
},
|
|
3793
|
+
}, $s = /* @__PURE__ */ ks(an), Es = (e) => async (t, r, n, o) => {
|
|
3731
3794
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
3732
3795
|
let s = t._zod.run({ value: r, issues: [] }, a);
|
|
3733
3796
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
@@ -3735,7 +3798,7 @@ const on = (e, t) => {
|
|
|
3735
3798
|
throw rn(i, o?.callee), i;
|
|
3736
3799
|
}
|
|
3737
3800
|
return s.value;
|
|
3738
|
-
},
|
|
3801
|
+
}, Ts = /* @__PURE__ */ Es(an);
|
|
3739
3802
|
function wr(e, t) {
|
|
3740
3803
|
try {
|
|
3741
3804
|
var r = e();
|
|
@@ -3744,7 +3807,7 @@ function wr(e, t) {
|
|
|
3744
3807
|
}
|
|
3745
3808
|
return r && r.then ? r.then(void 0, t) : r;
|
|
3746
3809
|
}
|
|
3747
|
-
function
|
|
3810
|
+
function Ss(e, t) {
|
|
3748
3811
|
for (var r = {}; e.length; ) {
|
|
3749
3812
|
var n = e[0], o = n.code, a = n.message, s = n.path.join(".");
|
|
3750
3813
|
if (!r[s]) if ("unionErrors" in n) {
|
|
@@ -3763,7 +3826,7 @@ function Ts(e, t) {
|
|
|
3763
3826
|
}
|
|
3764
3827
|
return r;
|
|
3765
3828
|
}
|
|
3766
|
-
function
|
|
3829
|
+
function Cs(e, t) {
|
|
3767
3830
|
for (var r = {}; e.length; ) {
|
|
3768
3831
|
var n = e[0], o = n.code, a = n.message, s = n.path.join(".");
|
|
3769
3832
|
if (!r[s]) if (n.code === "invalid_union" && n.errors.length > 0) {
|
|
@@ -3782,7 +3845,7 @@ function Ss(e, t) {
|
|
|
3782
3845
|
}
|
|
3783
3846
|
return r;
|
|
3784
3847
|
}
|
|
3785
|
-
function
|
|
3848
|
+
function Ms(e, t, r) {
|
|
3786
3849
|
if (r === void 0 && (r = {}), (function(n) {
|
|
3787
3850
|
return "_def" in n && typeof n._def == "object" && "typeName" in n._def;
|
|
3788
3851
|
})(e)) return function(n, o, a) {
|
|
@@ -3794,7 +3857,7 @@ function Cs(e, t, r) {
|
|
|
3794
3857
|
}, function(s) {
|
|
3795
3858
|
if ((function(i) {
|
|
3796
3859
|
return Array.isArray(i?.issues);
|
|
3797
|
-
})(s)) return { values: {}, errors: nr(
|
|
3860
|
+
})(s)) return { values: {}, errors: nr(Ss(s.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
|
|
3798
3861
|
throw s;
|
|
3799
3862
|
}));
|
|
3800
3863
|
} catch (s) {
|
|
@@ -3806,13 +3869,13 @@ function Cs(e, t, r) {
|
|
|
3806
3869
|
})(e)) return function(n, o, a) {
|
|
3807
3870
|
try {
|
|
3808
3871
|
return Promise.resolve(wr(function() {
|
|
3809
|
-
return Promise.resolve((r.mode === "sync" ?
|
|
3872
|
+
return Promise.resolve((r.mode === "sync" ? $s : Ts)(e, n, t)).then(function(s) {
|
|
3810
3873
|
return a.shouldUseNativeValidation && rr({}, a), { errors: {}, values: r.raw ? Object.assign({}, n) : s };
|
|
3811
3874
|
});
|
|
3812
3875
|
}, function(s) {
|
|
3813
3876
|
if ((function(i) {
|
|
3814
|
-
return i instanceof
|
|
3815
|
-
})(s)) return { values: {}, errors: nr(
|
|
3877
|
+
return i instanceof Ns;
|
|
3878
|
+
})(s)) return { values: {}, errors: nr(Cs(s.issues, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
|
|
3816
3879
|
throw s;
|
|
3817
3880
|
}));
|
|
3818
3881
|
} catch (s) {
|
|
@@ -3821,7 +3884,7 @@ function Cs(e, t, r) {
|
|
|
3821
3884
|
};
|
|
3822
3885
|
throw new Error("Invalid input: not a Zod schema");
|
|
3823
3886
|
}
|
|
3824
|
-
function
|
|
3887
|
+
function ji({
|
|
3825
3888
|
methods: e,
|
|
3826
3889
|
onSubmit: t,
|
|
3827
3890
|
onError: r,
|
|
@@ -3829,7 +3892,7 @@ function Ri({
|
|
|
3829
3892
|
logErrors: o,
|
|
3830
3893
|
className: a
|
|
3831
3894
|
}) {
|
|
3832
|
-
return /* @__PURE__ */ d(
|
|
3895
|
+
return /* @__PURE__ */ d(An, { ...e, children: /* @__PURE__ */ d(
|
|
3833
3896
|
"form",
|
|
3834
3897
|
{
|
|
3835
3898
|
className: N(
|
|
@@ -3846,13 +3909,13 @@ function Ri({
|
|
|
3846
3909
|
}
|
|
3847
3910
|
) });
|
|
3848
3911
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return
|
|
3851
|
-
resolver:
|
|
3912
|
+
function zi(e, t) {
|
|
3913
|
+
return _n({
|
|
3914
|
+
resolver: Ms(e),
|
|
3852
3915
|
defaultValues: t
|
|
3853
3916
|
});
|
|
3854
3917
|
}
|
|
3855
|
-
const
|
|
3918
|
+
const Ds = ({
|
|
3856
3919
|
children: e,
|
|
3857
3920
|
size: t = 24,
|
|
3858
3921
|
strokeWidth: r = 2,
|
|
@@ -3870,13 +3933,13 @@ const Ms = ({
|
|
|
3870
3933
|
...a,
|
|
3871
3934
|
children: e
|
|
3872
3935
|
}
|
|
3873
|
-
),
|
|
3936
|
+
), Ps = {
|
|
3874
3937
|
solid: "bg-base-3 border border-base-4 drop-shadow-sm dark-theme:drop-shadow-none",
|
|
3875
3938
|
outline: "border border-base-6"
|
|
3876
|
-
},
|
|
3939
|
+
}, Os = {
|
|
3877
3940
|
brand: "ring-1 ring-brand",
|
|
3878
3941
|
solid: "ring-1 ring-base-6"
|
|
3879
|
-
}, sn =
|
|
3942
|
+
}, sn = Xe(
|
|
3880
3943
|
({
|
|
3881
3944
|
label: e,
|
|
3882
3945
|
description: t,
|
|
@@ -3893,17 +3956,17 @@ const Ms = ({
|
|
|
3893
3956
|
containerClassName: m,
|
|
3894
3957
|
className: b,
|
|
3895
3958
|
type: h = "text",
|
|
3896
|
-
value:
|
|
3897
|
-
...
|
|
3959
|
+
value: v,
|
|
3960
|
+
...w
|
|
3898
3961
|
}, E) => {
|
|
3899
|
-
const S = T(null), _ = T(!1), [D, P] = z(!1), [x, k] = z(!1), L = h === "password", Y = L && D ? "text" : l ? "number" : h, $ =
|
|
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, $ = v !== "" && v !== null && v !== void 0;
|
|
3900
3963
|
return B(() => {
|
|
3901
3964
|
if (!_.current) {
|
|
3902
3965
|
_.current = !0;
|
|
3903
3966
|
return;
|
|
3904
3967
|
}
|
|
3905
|
-
S.current &&
|
|
3906
|
-
}, [D, S]), /* @__PURE__ */
|
|
3968
|
+
S.current && Rn(S.current);
|
|
3969
|
+
}, [D, S]), /* @__PURE__ */ g("div", { className: N("relative", f), children: [
|
|
3907
3970
|
e && r === "default" && /* @__PURE__ */ d(
|
|
3908
3971
|
"label",
|
|
3909
3972
|
{
|
|
@@ -3911,15 +3974,15 @@ const Ms = ({
|
|
|
3911
3974
|
children: e
|
|
3912
3975
|
}
|
|
3913
3976
|
),
|
|
3914
|
-
/* @__PURE__ */
|
|
3977
|
+
/* @__PURE__ */ g(
|
|
3915
3978
|
"div",
|
|
3916
3979
|
{
|
|
3917
3980
|
className: N(
|
|
3918
3981
|
"rounded-6 transition cursor-text relative",
|
|
3919
|
-
|
|
3982
|
+
Ps[n],
|
|
3920
3983
|
{
|
|
3921
3984
|
"pt-[22px] pb-1.5": r === "floating",
|
|
3922
|
-
[
|
|
3985
|
+
[Os[o]]: !i && x,
|
|
3923
3986
|
"bg-red-4 text-red-9": !!i,
|
|
3924
3987
|
"ring-1 ring-red-9": !!i && x
|
|
3925
3988
|
},
|
|
@@ -3970,18 +4033,18 @@ const Ms = ({
|
|
|
3970
4033
|
},
|
|
3971
4034
|
b
|
|
3972
4035
|
),
|
|
3973
|
-
value:
|
|
4036
|
+
value: v,
|
|
3974
4037
|
placeholder: a,
|
|
3975
4038
|
onFocus: () => k(!0),
|
|
3976
4039
|
onBlur: () => k(!1),
|
|
3977
|
-
...
|
|
4040
|
+
...w
|
|
3978
4041
|
}
|
|
3979
4042
|
)
|
|
3980
4043
|
]
|
|
3981
4044
|
}
|
|
3982
4045
|
),
|
|
3983
4046
|
s ? /* @__PURE__ */ d(
|
|
3984
|
-
|
|
4047
|
+
ze,
|
|
3985
4048
|
{
|
|
3986
4049
|
size: 20,
|
|
3987
4050
|
className: `absolute top-1/2 -translate-y-1/2 text-green-500 ${L ? "right-10" : "right-3"}`
|
|
@@ -4017,22 +4080,22 @@ const Ms = ({
|
|
|
4017
4080
|
}
|
|
4018
4081
|
);
|
|
4019
4082
|
sn.displayName = "Input";
|
|
4020
|
-
const
|
|
4083
|
+
const Hi = ({
|
|
4021
4084
|
name: e,
|
|
4022
4085
|
customRead: t,
|
|
4023
4086
|
customSet: r,
|
|
4024
4087
|
withNullSet: n = !0,
|
|
4025
4088
|
...o
|
|
4026
4089
|
}) => {
|
|
4027
|
-
const { control: a } =
|
|
4090
|
+
const { control: a } = Ue(), s = A(
|
|
4028
4091
|
(c) => t ? t(c) : c === null ? Wr(c) : c,
|
|
4029
4092
|
[t]
|
|
4030
4093
|
), i = A(
|
|
4031
|
-
(c) => r ? n && c === null ?
|
|
4094
|
+
(c) => r ? n && c === null ? Lt(c) : r(c) : c === null ? Lt(c) : c,
|
|
4032
4095
|
[r]
|
|
4033
4096
|
);
|
|
4034
4097
|
return a ? /* @__PURE__ */ d(
|
|
4035
|
-
|
|
4098
|
+
Qe,
|
|
4036
4099
|
{
|
|
4037
4100
|
name: e,
|
|
4038
4101
|
control: a,
|
|
@@ -4048,26 +4111,26 @@ const ji = ({
|
|
|
4048
4111
|
}
|
|
4049
4112
|
)
|
|
4050
4113
|
}
|
|
4051
|
-
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */
|
|
4114
|
+
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */ g("p", { children: [
|
|
4052
4115
|
"Form control missing for field: ",
|
|
4053
4116
|
e
|
|
4054
4117
|
] }));
|
|
4055
|
-
}, ln = zt(null),
|
|
4118
|
+
}, ln = zt(null), Ls = ({
|
|
4056
4119
|
children: e,
|
|
4057
4120
|
value: t
|
|
4058
|
-
}) => /* @__PURE__ */ d(ln.Provider, { value: t, children: e }),
|
|
4059
|
-
const e =
|
|
4121
|
+
}) => /* @__PURE__ */ d(ln.Provider, { value: t, children: e }), Fs = () => {
|
|
4122
|
+
const e = vt(ln);
|
|
4060
4123
|
if (!e)
|
|
4061
4124
|
throw new Error("useAliveScope must be wrapped within AliveScopeProvider");
|
|
4062
4125
|
return e;
|
|
4063
|
-
},
|
|
4126
|
+
}, Bi = ({ children: e }) => {
|
|
4064
4127
|
const [t, r] = z({}), n = T(
|
|
4065
4128
|
{}
|
|
4066
4129
|
), o = T(
|
|
4067
4130
|
{}
|
|
4068
4131
|
);
|
|
4069
|
-
return /* @__PURE__ */
|
|
4070
|
-
|
|
4132
|
+
return /* @__PURE__ */ g(
|
|
4133
|
+
Ls,
|
|
4071
4134
|
{
|
|
4072
4135
|
value: {
|
|
4073
4136
|
getPortalElement: (i, c, l) => {
|
|
@@ -4090,7 +4153,7 @@ const ji = ({
|
|
|
4090
4153
|
children: [
|
|
4091
4154
|
e,
|
|
4092
4155
|
Object.entries(t).map(([i, { children: c, element: l }]) => /* @__PURE__ */ d(
|
|
4093
|
-
|
|
4156
|
+
As,
|
|
4094
4157
|
{
|
|
4095
4158
|
id: i,
|
|
4096
4159
|
onMountCallbacks: n,
|
|
@@ -4105,11 +4168,11 @@ const ji = ({
|
|
|
4105
4168
|
);
|
|
4106
4169
|
}, cn = zt(
|
|
4107
4170
|
null
|
|
4108
|
-
),
|
|
4171
|
+
), Ws = ({
|
|
4109
4172
|
children: e,
|
|
4110
4173
|
value: t
|
|
4111
|
-
}) => /* @__PURE__ */ d(cn.Provider, { value: t, children: e }),
|
|
4112
|
-
|
|
4174
|
+
}) => /* @__PURE__ */ d(cn.Provider, { value: t, children: e }), As = Nn(({ id: e, onMountCallbacks: t, onDropCallbacks: r, children: n, element: o }) => /* @__PURE__ */ d(
|
|
4175
|
+
Ws,
|
|
4113
4176
|
{
|
|
4114
4177
|
value: { keepAliveId: e, onKeepAliveMount: (i, c = { runOnFirstMount: !1 }) => {
|
|
4115
4178
|
B(() => {
|
|
@@ -4141,24 +4204,24 @@ const ji = ({
|
|
|
4141
4204
|
} },
|
|
4142
4205
|
children: Tr(n, o, e)
|
|
4143
4206
|
}
|
|
4144
|
-
)),
|
|
4145
|
-
const e =
|
|
4207
|
+
)), Vi = () => {
|
|
4208
|
+
const e = vt(cn);
|
|
4146
4209
|
if (!e)
|
|
4147
4210
|
throw new Error("useKeepAlive must be used within KeepAliveProvider");
|
|
4148
4211
|
return e;
|
|
4149
|
-
},
|
|
4212
|
+
}, qi = ({
|
|
4150
4213
|
aliveKey: e,
|
|
4151
4214
|
children: t,
|
|
4152
4215
|
enabled: r = !0,
|
|
4153
4216
|
...n
|
|
4154
4217
|
}) => {
|
|
4155
|
-
const o = T(null), { getPortalElement: a } =
|
|
4218
|
+
const o = T(null), { getPortalElement: a } = Fs();
|
|
4156
4219
|
return B(() => {
|
|
4157
4220
|
const s = a(e, t, n.className);
|
|
4158
4221
|
return r && o.current && o.current.replaceWith(s), () => {
|
|
4159
4222
|
};
|
|
4160
4223
|
}, [e, t, r, n]), /* @__PURE__ */ d("div", { ...n, ref: o, children: t });
|
|
4161
|
-
},
|
|
4224
|
+
}, Xi = ({
|
|
4162
4225
|
lightSolid: e = !0,
|
|
4163
4226
|
className: t,
|
|
4164
4227
|
children: r,
|
|
@@ -4174,7 +4237,7 @@ const ji = ({
|
|
|
4174
4237
|
...n,
|
|
4175
4238
|
children: r
|
|
4176
4239
|
}
|
|
4177
|
-
),
|
|
4240
|
+
), Ki = ({
|
|
4178
4241
|
onClick: e,
|
|
4179
4242
|
lightSolid: t = !0,
|
|
4180
4243
|
className: r,
|
|
@@ -4192,7 +4255,7 @@ const ji = ({
|
|
|
4192
4255
|
),
|
|
4193
4256
|
children: n
|
|
4194
4257
|
}
|
|
4195
|
-
),
|
|
4258
|
+
), _s = ({
|
|
4196
4259
|
label: e,
|
|
4197
4260
|
labelPosition: t = "default",
|
|
4198
4261
|
options: r,
|
|
@@ -4209,7 +4272,7 @@ const ji = ({
|
|
|
4209
4272
|
disabled: b = !1,
|
|
4210
4273
|
className: h
|
|
4211
4274
|
}) => {
|
|
4212
|
-
const [
|
|
4275
|
+
const [v, w] = z(""), [E, S] = z(!1), [_, D] = z(-1), P = T(null), x = T(null), k = T([]), {
|
|
4213
4276
|
triggerRef: L,
|
|
4214
4277
|
triggerProps: Y,
|
|
4215
4278
|
popoverRef: $,
|
|
@@ -4225,7 +4288,7 @@ const ji = ({
|
|
|
4225
4288
|
S(!0), m && P.current && setTimeout(() => P.current?.focus(), 10);
|
|
4226
4289
|
},
|
|
4227
4290
|
onClose: () => {
|
|
4228
|
-
S(!1),
|
|
4291
|
+
S(!1), w(""), D(-1);
|
|
4229
4292
|
}
|
|
4230
4293
|
}), I = T(
|
|
4231
4294
|
`multiselect-${Math.random().toString(36).substr(2, 9)}`
|
|
@@ -4233,60 +4296,60 @@ const ji = ({
|
|
|
4233
4296
|
`label-${Math.random().toString(36).substr(2, 9)}`
|
|
4234
4297
|
).current, W = T(
|
|
4235
4298
|
`error-${Math.random().toString(36).substr(2, 9)}`
|
|
4236
|
-
).current,
|
|
4299
|
+
).current, y = T(
|
|
4237
4300
|
`listbox-${Math.random().toString(36).substr(2, 9)}`
|
|
4238
4301
|
).current, K = i ? n.map((O) => r.find(
|
|
4239
|
-
(
|
|
4240
|
-
)).filter(Boolean) : n,
|
|
4241
|
-
(O) => s(O).toLowerCase().includes(
|
|
4302
|
+
(J) => a(J) === O || a(J) === a(O)
|
|
4303
|
+
)).filter(Boolean) : n, ce = K.length > 0, G = m ? r.filter(
|
|
4304
|
+
(O) => s(O).toLowerCase().includes(v.toLowerCase())
|
|
4242
4305
|
) : r;
|
|
4243
4306
|
B(() => {
|
|
4244
|
-
k.current = k.current.slice(0,
|
|
4245
|
-
}, [
|
|
4307
|
+
k.current = k.current.slice(0, G.length);
|
|
4308
|
+
}, [G.length]);
|
|
4246
4309
|
const oe = (O) => i ? n.some(
|
|
4247
4310
|
(R) => R === a(O) || a(R) === a(O)
|
|
4248
4311
|
) : n.some(
|
|
4249
4312
|
(R) => a(R) === a(O)
|
|
4250
|
-
),
|
|
4313
|
+
), Ye = (O) => {
|
|
4251
4314
|
if (!b)
|
|
4252
4315
|
if (oe(O)) {
|
|
4253
4316
|
let R;
|
|
4254
4317
|
if (i) {
|
|
4255
|
-
const
|
|
4318
|
+
const J = a(O);
|
|
4256
4319
|
R = n.filter(
|
|
4257
|
-
(
|
|
4320
|
+
(De) => De !== J && a(De) !== J
|
|
4258
4321
|
);
|
|
4259
4322
|
} else
|
|
4260
4323
|
R = n.filter(
|
|
4261
|
-
(
|
|
4324
|
+
(J) => a(J) !== a(O)
|
|
4262
4325
|
);
|
|
4263
|
-
o(R),
|
|
4326
|
+
o(R), rt(`Removed ${s(O)}`);
|
|
4264
4327
|
} else {
|
|
4265
4328
|
if (f && K.length >= f) {
|
|
4266
|
-
|
|
4329
|
+
rt(`Maximum of ${f} selections allowed`);
|
|
4267
4330
|
return;
|
|
4268
4331
|
}
|
|
4269
4332
|
let R;
|
|
4270
|
-
i ? R = [...n, i(O)] : R = [...n, O], o(R),
|
|
4333
|
+
i ? R = [...n, i(O)] : R = [...n, O], o(R), rt(`Added ${s(O)}`);
|
|
4271
4334
|
}
|
|
4272
|
-
},
|
|
4335
|
+
}, et = (O) => {
|
|
4273
4336
|
if (b) return;
|
|
4274
4337
|
let R;
|
|
4275
4338
|
if (i) {
|
|
4276
|
-
const
|
|
4339
|
+
const J = a(O);
|
|
4277
4340
|
R = n.filter(
|
|
4278
|
-
(
|
|
4341
|
+
(De) => De !== J && a(De) !== J
|
|
4279
4342
|
);
|
|
4280
4343
|
} else
|
|
4281
4344
|
R = n.filter(
|
|
4282
|
-
(
|
|
4345
|
+
(J) => a(J) !== a(O)
|
|
4283
4346
|
);
|
|
4284
|
-
o(R),
|
|
4285
|
-
},
|
|
4347
|
+
o(R), rt(`Removed ${s(O)}`);
|
|
4348
|
+
}, tt = (O) => {
|
|
4286
4349
|
if (!b)
|
|
4287
4350
|
switch (O.key) {
|
|
4288
4351
|
case "Enter":
|
|
4289
|
-
O.preventDefault(), M ? _ >= 0 &&
|
|
4352
|
+
O.preventDefault(), M ? _ >= 0 && Ye(G[_]) : C();
|
|
4290
4353
|
break;
|
|
4291
4354
|
case "Escape":
|
|
4292
4355
|
O.preventDefault(), F();
|
|
@@ -4295,36 +4358,36 @@ const ji = ({
|
|
|
4295
4358
|
if (O.preventDefault(), !M)
|
|
4296
4359
|
C();
|
|
4297
4360
|
else {
|
|
4298
|
-
const R = _ >=
|
|
4361
|
+
const R = _ >= G.length - 1 ? 0 : _ + 1;
|
|
4299
4362
|
D(R), k.current[R]?.scrollIntoView({ block: "nearest" });
|
|
4300
4363
|
}
|
|
4301
4364
|
break;
|
|
4302
4365
|
case "ArrowUp":
|
|
4303
4366
|
if (O.preventDefault(), M) {
|
|
4304
|
-
const R = _ <= 0 ?
|
|
4367
|
+
const R = _ <= 0 ? G.length - 1 : _ - 1;
|
|
4305
4368
|
D(R), k.current[R]?.scrollIntoView({ block: "nearest" });
|
|
4306
4369
|
}
|
|
4307
4370
|
break;
|
|
4308
4371
|
case "Backspace":
|
|
4309
|
-
if (m &&
|
|
4372
|
+
if (m && v === "" && K.length > 0) {
|
|
4310
4373
|
const R = K[K.length - 1];
|
|
4311
|
-
|
|
4374
|
+
et(R);
|
|
4312
4375
|
}
|
|
4313
4376
|
break;
|
|
4314
4377
|
}
|
|
4315
4378
|
}, vn = (O) => {
|
|
4316
|
-
|
|
4379
|
+
w(O.target.value), D(-1);
|
|
4317
4380
|
}, wn = () => {
|
|
4318
4381
|
b || (m && P.current && P.current.focus(), C());
|
|
4319
|
-
},
|
|
4382
|
+
}, rt = (O) => {
|
|
4320
4383
|
console.log(`Accessibility announcement: ${O}`);
|
|
4321
4384
|
};
|
|
4322
4385
|
Bt($, (O) => {
|
|
4323
4386
|
!L.current || !M || !O.target || L.current.contains(O.target) || F();
|
|
4324
4387
|
});
|
|
4325
|
-
const
|
|
4326
|
-
return /* @__PURE__ */
|
|
4327
|
-
/* @__PURE__ */
|
|
4388
|
+
const Tt = p();
|
|
4389
|
+
return /* @__PURE__ */ g("div", { className: N("relative", h), children: [
|
|
4390
|
+
/* @__PURE__ */ g("div", { className: "relative", ref: x, children: [
|
|
4328
4391
|
t === "default" && /* @__PURE__ */ d(
|
|
4329
4392
|
"label",
|
|
4330
4393
|
{
|
|
@@ -4335,7 +4398,7 @@ const ji = ({
|
|
|
4335
4398
|
children: e
|
|
4336
4399
|
}
|
|
4337
4400
|
),
|
|
4338
|
-
/* @__PURE__ */
|
|
4401
|
+
/* @__PURE__ */ g(
|
|
4339
4402
|
"div",
|
|
4340
4403
|
{
|
|
4341
4404
|
ref: L,
|
|
@@ -4356,13 +4419,13 @@ const ji = ({
|
|
|
4356
4419
|
role: "combobox",
|
|
4357
4420
|
"aria-expanded": M,
|
|
4358
4421
|
"aria-haspopup": "listbox",
|
|
4359
|
-
"aria-owns":
|
|
4422
|
+
"aria-owns": y,
|
|
4360
4423
|
"aria-labelledby": X,
|
|
4361
4424
|
"aria-describedby": l ? W : void 0,
|
|
4362
|
-
onKeyDown:
|
|
4425
|
+
onKeyDown: tt,
|
|
4363
4426
|
tabIndex: b ? -1 : 0,
|
|
4364
4427
|
children: [
|
|
4365
|
-
t === "floating" && /* @__PURE__ */
|
|
4428
|
+
t === "floating" && /* @__PURE__ */ g(
|
|
4366
4429
|
"label",
|
|
4367
4430
|
{
|
|
4368
4431
|
id: X,
|
|
@@ -4371,7 +4434,7 @@ const ji = ({
|
|
|
4371
4434
|
"absolute transition-all duration-200 pointer-events-none",
|
|
4372
4435
|
"text-base top-4 font-semibold left-3",
|
|
4373
4436
|
{
|
|
4374
|
-
"text-sm top-2 left-2": E ||
|
|
4437
|
+
"text-sm top-2 left-2": E || ce,
|
|
4375
4438
|
"text-red-9": !!l
|
|
4376
4439
|
}
|
|
4377
4440
|
),
|
|
@@ -4382,14 +4445,14 @@ const ji = ({
|
|
|
4382
4445
|
]
|
|
4383
4446
|
}
|
|
4384
4447
|
),
|
|
4385
|
-
/* @__PURE__ */
|
|
4448
|
+
/* @__PURE__ */ g(
|
|
4386
4449
|
"div",
|
|
4387
4450
|
{
|
|
4388
4451
|
className: N("flex flex-wrap gap-2 items-center", {
|
|
4389
4452
|
"mt-2.5": t === "floating"
|
|
4390
4453
|
}),
|
|
4391
4454
|
children: [
|
|
4392
|
-
K.map((O) => /* @__PURE__ */
|
|
4455
|
+
K.map((O) => /* @__PURE__ */ g(
|
|
4393
4456
|
"div",
|
|
4394
4457
|
{
|
|
4395
4458
|
className: N(
|
|
@@ -4406,7 +4469,7 @@ const ji = ({
|
|
|
4406
4469
|
type: "button",
|
|
4407
4470
|
className: "hover:bg-brand/20 rounded-full p-0.5 transition-colors",
|
|
4408
4471
|
onClick: (R) => {
|
|
4409
|
-
R.stopPropagation(),
|
|
4472
|
+
R.stopPropagation(), et(O);
|
|
4410
4473
|
},
|
|
4411
4474
|
"aria-label": `Remove ${s(O)}`,
|
|
4412
4475
|
children: /* @__PURE__ */ d(Dn, { size: 12 })
|
|
@@ -4423,22 +4486,22 @@ const ji = ({
|
|
|
4423
4486
|
id: I,
|
|
4424
4487
|
type: "text",
|
|
4425
4488
|
className: "flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm",
|
|
4426
|
-
value:
|
|
4489
|
+
value: v,
|
|
4427
4490
|
onChange: vn,
|
|
4428
|
-
onKeyDown:
|
|
4429
|
-
placeholder:
|
|
4491
|
+
onKeyDown: tt,
|
|
4492
|
+
placeholder: ce ? "" : u,
|
|
4430
4493
|
disabled: b,
|
|
4431
4494
|
"aria-autocomplete": "list",
|
|
4432
|
-
"aria-controls":
|
|
4495
|
+
"aria-controls": y,
|
|
4433
4496
|
autoComplete: "off"
|
|
4434
4497
|
}
|
|
4435
4498
|
),
|
|
4436
|
-
!m && !
|
|
4499
|
+
!m && !ce && /* @__PURE__ */ d("span", { className: "text-secondarytext text-sm flex-grow", children: u })
|
|
4437
4500
|
]
|
|
4438
4501
|
}
|
|
4439
4502
|
),
|
|
4440
|
-
/* @__PURE__ */
|
|
4441
|
-
c && /* @__PURE__ */ d(
|
|
4503
|
+
/* @__PURE__ */ g("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-2", children: [
|
|
4504
|
+
c && /* @__PURE__ */ d(ze, { size: 16, className: "text-green-600" }),
|
|
4442
4505
|
/* @__PURE__ */ d(
|
|
4443
4506
|
Pn,
|
|
4444
4507
|
{
|
|
@@ -4453,8 +4516,8 @@ const ji = ({
|
|
|
4453
4516
|
}
|
|
4454
4517
|
)
|
|
4455
4518
|
] }),
|
|
4456
|
-
/* @__PURE__ */ d(
|
|
4457
|
-
|
|
4519
|
+
/* @__PURE__ */ d(Ke, { children: M && /* @__PURE__ */ d(Ze, { children: /* @__PURE__ */ d(
|
|
4520
|
+
ie.div,
|
|
4458
4521
|
{
|
|
4459
4522
|
initial: { opacity: 0, y: -10 },
|
|
4460
4523
|
animate: { opacity: 1, y: 0 },
|
|
@@ -4463,9 +4526,9 @@ const ji = ({
|
|
|
4463
4526
|
ref: $,
|
|
4464
4527
|
style: {
|
|
4465
4528
|
position: "fixed",
|
|
4466
|
-
left:
|
|
4467
|
-
top:
|
|
4468
|
-
bottom:
|
|
4529
|
+
left: Tt.x,
|
|
4530
|
+
top: Tt.top,
|
|
4531
|
+
bottom: Tt.bottom,
|
|
4469
4532
|
width: x.current?.offsetWidth ?? 200
|
|
4470
4533
|
},
|
|
4471
4534
|
className: N(
|
|
@@ -4474,11 +4537,11 @@ const ji = ({
|
|
|
4474
4537
|
"customscrollbarnohide"
|
|
4475
4538
|
),
|
|
4476
4539
|
role: "listbox",
|
|
4477
|
-
id:
|
|
4540
|
+
id: y,
|
|
4478
4541
|
"aria-labelledby": X,
|
|
4479
|
-
children:
|
|
4480
|
-
const
|
|
4481
|
-
return /* @__PURE__ */
|
|
4542
|
+
children: G.length === 0 ? /* @__PURE__ */ d("div", { className: "px-3 py-2 text-sm text-secondarytext", children: v ? "No results found" : "No options available" }) : G.map((O, R) => {
|
|
4543
|
+
const J = oe(O);
|
|
4544
|
+
return /* @__PURE__ */ g(
|
|
4482
4545
|
"div",
|
|
4483
4546
|
{
|
|
4484
4547
|
ref: (yn) => {
|
|
@@ -4491,16 +4554,16 @@ const ji = ({
|
|
|
4491
4554
|
// !selected && "pl-9",
|
|
4492
4555
|
{
|
|
4493
4556
|
"bg-base-3 dark-theme:bg-base-4": R === _,
|
|
4494
|
-
"bg-brandfadedbg text-brand":
|
|
4557
|
+
"bg-brandfadedbg text-brand": J
|
|
4495
4558
|
}
|
|
4496
4559
|
),
|
|
4497
|
-
onClick: () =>
|
|
4560
|
+
onClick: () => Ye(O),
|
|
4498
4561
|
role: "option",
|
|
4499
|
-
"aria-selected":
|
|
4562
|
+
"aria-selected": J,
|
|
4500
4563
|
onMouseEnter: () => D(R),
|
|
4501
4564
|
children: [
|
|
4502
4565
|
/* @__PURE__ */ d("span", { children: s(O) }),
|
|
4503
|
-
|
|
4566
|
+
J && /* @__PURE__ */ d(ze, { size: 16 })
|
|
4504
4567
|
]
|
|
4505
4568
|
},
|
|
4506
4569
|
a(O)
|
|
@@ -4519,18 +4582,18 @@ const ji = ({
|
|
|
4519
4582
|
),
|
|
4520
4583
|
/* @__PURE__ */ d("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: K.length > 0 ? `Selected: ${K.map(s).join(", ")}` : "No selections" })
|
|
4521
4584
|
] });
|
|
4522
|
-
},
|
|
4585
|
+
}, Ui = ({
|
|
4523
4586
|
name: e,
|
|
4524
4587
|
...t
|
|
4525
4588
|
}) => {
|
|
4526
|
-
const { control: r } =
|
|
4589
|
+
const { control: r } = Ue();
|
|
4527
4590
|
return r ? /* @__PURE__ */ d(
|
|
4528
|
-
|
|
4591
|
+
Qe,
|
|
4529
4592
|
{
|
|
4530
4593
|
name: e,
|
|
4531
4594
|
control: r,
|
|
4532
4595
|
render: ({ field: n, fieldState: o }) => /* @__PURE__ */ d(
|
|
4533
|
-
|
|
4596
|
+
_s,
|
|
4534
4597
|
{
|
|
4535
4598
|
selectedValues: n.value || [],
|
|
4536
4599
|
onChange: (a) => n.onChange(a),
|
|
@@ -4539,11 +4602,11 @@ const ji = ({
|
|
|
4539
4602
|
}
|
|
4540
4603
|
)
|
|
4541
4604
|
}
|
|
4542
|
-
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */
|
|
4605
|
+
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */ g("p", { children: [
|
|
4543
4606
|
"Form control missing for field: ",
|
|
4544
4607
|
e
|
|
4545
4608
|
] }));
|
|
4546
|
-
},
|
|
4609
|
+
}, Qi = ({
|
|
4547
4610
|
id: e,
|
|
4548
4611
|
tabPage: t,
|
|
4549
4612
|
absolute: r = !0,
|
|
@@ -4557,7 +4620,7 @@ const ji = ({
|
|
|
4557
4620
|
showScrollbar: u = !0,
|
|
4558
4621
|
onScroll: f
|
|
4559
4622
|
}) => {
|
|
4560
|
-
const m = T(null), b = T(null), h = T(null),
|
|
4623
|
+
const m = T(null), b = T(null), h = T(null), v = T(null), w = T(null), [E, S] = z(!1), _ = T(null), D = T({
|
|
4561
4624
|
startY: 0,
|
|
4562
4625
|
// Track where the scroll position was when gesture started
|
|
4563
4626
|
currentY: 0,
|
|
@@ -4568,8 +4631,8 @@ const ji = ({
|
|
|
4568
4631
|
pullDistance: 0,
|
|
4569
4632
|
refreshThreshold: 50,
|
|
4570
4633
|
isPullingToRefresh: !1
|
|
4571
|
-
}), P =
|
|
4572
|
-
|
|
4634
|
+
}), P = yt(), x = A(
|
|
4635
|
+
Ge(() => {
|
|
4573
4636
|
m.current && b.current && (D.current.maxScroll = Math.max(
|
|
4574
4637
|
0,
|
|
4575
4638
|
b.current.offsetHeight - m.current.offsetHeight
|
|
@@ -4577,65 +4640,65 @@ const ji = ({
|
|
|
4577
4640
|
}),
|
|
4578
4641
|
[]
|
|
4579
4642
|
), k = A((W) => {
|
|
4580
|
-
const { maxScroll:
|
|
4581
|
-
return W > 0 ? Math.pow(W, 0.8) : W < -
|
|
4643
|
+
const { maxScroll: y } = D.current;
|
|
4644
|
+
return W > 0 ? Math.pow(W, 0.8) : W < -y ? -y - Math.pow(-(W + y), 0.8) : W;
|
|
4582
4645
|
}, []), L = A(() => {
|
|
4583
|
-
if (!u || !m.current || !
|
|
4646
|
+
if (!u || !m.current || !v.current)
|
|
4584
4647
|
return;
|
|
4585
|
-
const { currentY: W, maxScroll:
|
|
4648
|
+
const { currentY: W, maxScroll: y } = D.current, V = m.current.offsetHeight, K = Math.max(
|
|
4586
4649
|
30,
|
|
4587
|
-
V / (V +
|
|
4588
|
-
),
|
|
4589
|
-
let
|
|
4590
|
-
W > 0 ? (
|
|
4650
|
+
V / (V + y) * V
|
|
4651
|
+
), ce = V - K;
|
|
4652
|
+
let G = -W / y * ce, oe = 1;
|
|
4653
|
+
W > 0 ? (G = 0, oe = 1 - W / V, v.current.style.transformOrigin = "top") : W < -y ? (G = ce, oe = 1 - Math.abs(W + y) / V, v.current.style.transformOrigin = "bottom") : v.current.style.transformOrigin = "top", v.current.style.transform = `translate3d(0, ${G}px, 0) scaleY(${oe})`, v.current.style.height = `${K}px`;
|
|
4591
4654
|
}, [u]), Y = A(
|
|
4592
4655
|
(W) => {
|
|
4593
4656
|
if (D.current.currentY = W, b.current && (b.current.style.transform = `translate3d(0, ${W}px, 0)`), h.current) {
|
|
4594
|
-
const
|
|
4657
|
+
const y = Math.max(
|
|
4595
4658
|
W - D.current.refreshThreshold,
|
|
4596
4659
|
-D.current.refreshThreshold
|
|
4597
4660
|
);
|
|
4598
|
-
h.current.style.transform = `translate3d(0, ${
|
|
4661
|
+
h.current.style.transform = `translate3d(0, ${y}px, 0)`;
|
|
4599
4662
|
}
|
|
4600
4663
|
f && f(W), L();
|
|
4601
4664
|
},
|
|
4602
4665
|
[L]
|
|
4603
4666
|
), $ = A(
|
|
4604
4667
|
(W) => {
|
|
4605
|
-
const
|
|
4606
|
-
|
|
4607
|
-
const V = performance.now(), K =
|
|
4608
|
-
const oe = performance.now() - V,
|
|
4609
|
-
Y(
|
|
4668
|
+
const y = D.current;
|
|
4669
|
+
y.frameCallback && (te(y.frameCallback), y.frameCallback = null);
|
|
4670
|
+
const V = performance.now(), K = y.currentY, ce = W - K, G = () => {
|
|
4671
|
+
const oe = performance.now() - V, Ye = Math.min(oe / l, 1), et = 1 - Math.pow(1 - Ye, 3), tt = K + ce * et;
|
|
4672
|
+
Y(tt), Ye >= 1 && (y.frameCallback && (te(y.frameCallback), y.frameCallback = null), Y(W), W === 0 && h.current && (h.current.textContent = "Pull to refresh"));
|
|
4610
4673
|
};
|
|
4611
|
-
|
|
4674
|
+
y.frameCallback = it.render(G, !0);
|
|
4612
4675
|
},
|
|
4613
4676
|
[Y, l]
|
|
4614
4677
|
), p = A(
|
|
4615
4678
|
(W) => {
|
|
4616
|
-
const
|
|
4617
|
-
|
|
4679
|
+
const y = D.current;
|
|
4680
|
+
y.frameCallback && (te(y.frameCallback), y.frameCallback = null);
|
|
4618
4681
|
let V = W, K = Date.now();
|
|
4619
|
-
const
|
|
4620
|
-
const
|
|
4621
|
-
if (K =
|
|
4622
|
-
|
|
4682
|
+
const ce = () => {
|
|
4683
|
+
const G = Date.now(), oe = G - K;
|
|
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), $(y.currentY > 0 ? 0 : -y.maxScroll);
|
|
4623
4686
|
return;
|
|
4624
4687
|
}
|
|
4625
|
-
Y(
|
|
4688
|
+
Y(y.currentY), Math.abs(V) < 0.01 && y.frameCallback && (te(y.frameCallback), y.frameCallback = null);
|
|
4626
4689
|
};
|
|
4627
|
-
|
|
4690
|
+
y.frameCallback = it.render(ce, !0);
|
|
4628
4691
|
},
|
|
4629
4692
|
[Y, $]
|
|
4630
4693
|
), M = A(() => {
|
|
4631
|
-
if (!u || !
|
|
4632
|
-
|
|
4633
|
-
|
|
4694
|
+
if (!u || !v.current) return;
|
|
4695
|
+
w.current !== null && clearTimeout(w.current), requestAnimationFrame(() => {
|
|
4696
|
+
v.current && (v.current.style.opacity = "1");
|
|
4634
4697
|
});
|
|
4635
|
-
const W = window.requestIdleCallback || ((
|
|
4636
|
-
|
|
4698
|
+
const W = window.requestIdleCallback || ((y) => setTimeout(y, 1e3));
|
|
4699
|
+
w.current = window.setTimeout(() => {
|
|
4637
4700
|
W(() => {
|
|
4638
|
-
|
|
4701
|
+
v.current && (v.current.style.opacity = "0"), w.current = null;
|
|
4639
4702
|
});
|
|
4640
4703
|
}, 1e3);
|
|
4641
4704
|
}, [u]), C = A(
|
|
@@ -4643,16 +4706,16 @@ const ji = ({
|
|
|
4643
4706
|
if (_.current !== null && Date.now() - _.current < 50)
|
|
4644
4707
|
return;
|
|
4645
4708
|
_.current = Date.now();
|
|
4646
|
-
const
|
|
4647
|
-
|
|
4709
|
+
const y = D.current;
|
|
4710
|
+
y.isScrolling = !0, y.startY = y.currentY, y.lastTimestamp = Date.now(), y.isPullingToRefresh = y.currentY === 0, y.pullDistance = 0, y.frameCallback && (te(y.frameCallback), y.frameCallback = null), M();
|
|
4648
4711
|
},
|
|
4649
4712
|
[M]
|
|
4650
4713
|
), F = A(
|
|
4651
4714
|
(W) => {
|
|
4652
|
-
const
|
|
4653
|
-
if (!
|
|
4654
|
-
const V = k(
|
|
4655
|
-
|
|
4715
|
+
const y = D.current;
|
|
4716
|
+
if (!y.isScrolling) return;
|
|
4717
|
+
const V = k(y.startY + W.deltaY);
|
|
4718
|
+
y.isPullingToRefresh && V < y.startY && (y.isPullingToRefresh = !1), Y(V), a && y.isPullingToRefresh && !E && V > 0 && (y.pullDistance = V, h.current && (h.current.textContent = y.pullDistance > y.refreshThreshold ? "Release to refresh" : "Pull to refresh")), M();
|
|
4656
4719
|
},
|
|
4657
4720
|
[
|
|
4658
4721
|
a,
|
|
@@ -4663,8 +4726,8 @@ const ji = ({
|
|
|
4663
4726
|
]
|
|
4664
4727
|
), I = A(
|
|
4665
4728
|
(W) => {
|
|
4666
|
-
const
|
|
4667
|
-
|
|
4729
|
+
const y = D.current;
|
|
4730
|
+
y.isScrolling && (y.isScrolling = !1, a && y.isPullingToRefresh && !E && y.pullDistance > y.refreshThreshold ? X() : y.currentY > 0 || y.currentY < -y.maxScroll ? $(y.currentY > 0 ? 0 : -y.maxScroll) : p(W.velocityY), y.isPullingToRefresh = !1);
|
|
4668
4731
|
},
|
|
4669
4732
|
[a, p, $, E]
|
|
4670
4733
|
), X = A(() => {
|
|
@@ -4691,10 +4754,10 @@ const ji = ({
|
|
|
4691
4754
|
}, [C, F, I]), B(() => {
|
|
4692
4755
|
if (m.current)
|
|
4693
4756
|
return x(), L(), window.addEventListener("resize", x), () => {
|
|
4694
|
-
window.removeEventListener("resize", x),
|
|
4757
|
+
window.removeEventListener("resize", x), w.current !== null && clearTimeout(w.current);
|
|
4695
4758
|
};
|
|
4696
|
-
}, [x, L]), /* @__PURE__ */
|
|
4697
|
-
|
|
4759
|
+
}, [x, L]), /* @__PURE__ */ g(
|
|
4760
|
+
ie.div,
|
|
4698
4761
|
{
|
|
4699
4762
|
id: e,
|
|
4700
4763
|
ref: m,
|
|
@@ -4768,7 +4831,7 @@ const ji = ({
|
|
|
4768
4831
|
u && /* @__PURE__ */ d(
|
|
4769
4832
|
"div",
|
|
4770
4833
|
{
|
|
4771
|
-
ref:
|
|
4834
|
+
ref: v,
|
|
4772
4835
|
style: {
|
|
4773
4836
|
position: "absolute",
|
|
4774
4837
|
top: 2,
|
|
@@ -4788,7 +4851,7 @@ const ji = ({
|
|
|
4788
4851
|
`scroller${e}`
|
|
4789
4852
|
);
|
|
4790
4853
|
};
|
|
4791
|
-
function
|
|
4854
|
+
function Gi({
|
|
4792
4855
|
id: e,
|
|
4793
4856
|
showScrollbar: t = !0,
|
|
4794
4857
|
onRefresh: r,
|
|
@@ -4806,15 +4869,15 @@ function Ui({
|
|
|
4806
4869
|
pullDistance: 0,
|
|
4807
4870
|
refreshThreshold: 50,
|
|
4808
4871
|
isPullingToRefresh: !1
|
|
4809
|
-
}),
|
|
4810
|
-
|
|
4872
|
+
}), v = A(
|
|
4873
|
+
Ge(() => {
|
|
4811
4874
|
s.current && i.current && (h.current.maxScroll = Math.max(
|
|
4812
4875
|
0,
|
|
4813
4876
|
i.current.offsetHeight - s.current.offsetHeight
|
|
4814
4877
|
));
|
|
4815
4878
|
}),
|
|
4816
4879
|
[]
|
|
4817
|
-
),
|
|
4880
|
+
), w = A(($) => {
|
|
4818
4881
|
const { maxScroll: p } = h.current;
|
|
4819
4882
|
return $ > 0 ? Math.pow($, 0.8) : $ < -p ? -p - Math.pow(-($ + p), 0.8) : $;
|
|
4820
4883
|
}, []), E = A(() => {
|
|
@@ -4843,10 +4906,10 @@ function Ui({
|
|
|
4843
4906
|
const p = h.current;
|
|
4844
4907
|
p.frameCallback && (te(p.frameCallback), p.frameCallback = null);
|
|
4845
4908
|
const M = performance.now(), C = p.currentY, F = $ - C, I = () => {
|
|
4846
|
-
const X = performance.now() - M, W = Math.min(X / n, 1),
|
|
4909
|
+
const X = performance.now() - M, W = Math.min(X / n, 1), y = 1 - Math.pow(1 - W, 3), V = C + F * y;
|
|
4847
4910
|
S(V), W >= 1 && (p.frameCallback && (te(p.frameCallback), p.frameCallback = null), S($));
|
|
4848
4911
|
};
|
|
4849
|
-
p.frameCallback =
|
|
4912
|
+
p.frameCallback = it.render(I, !0);
|
|
4850
4913
|
},
|
|
4851
4914
|
[S, n]
|
|
4852
4915
|
), D = A(
|
|
@@ -4862,7 +4925,7 @@ function Ui({
|
|
|
4862
4925
|
}
|
|
4863
4926
|
S(p.currentY), Math.abs(M) < 0.01 && p.frameCallback && (te(p.frameCallback), p.frameCallback = null);
|
|
4864
4927
|
};
|
|
4865
|
-
p.frameCallback =
|
|
4928
|
+
p.frameCallback = it.render(F, !0);
|
|
4866
4929
|
},
|
|
4867
4930
|
[S, _]
|
|
4868
4931
|
), P = A(() => {
|
|
@@ -4889,7 +4952,7 @@ function Ui({
|
|
|
4889
4952
|
($) => {
|
|
4890
4953
|
const p = h.current;
|
|
4891
4954
|
if (!p.isScrolling) return;
|
|
4892
|
-
const M =
|
|
4955
|
+
const M = w(p.startY + $.deltaY);
|
|
4893
4956
|
p.isPullingToRefresh && M < p.startY && (p.isPullingToRefresh = !1), S(M), r && p.isPullingToRefresh && !f && M > 0 && (p.pullDistance = M), P();
|
|
4894
4957
|
},
|
|
4895
4958
|
[
|
|
@@ -4897,7 +4960,7 @@ function Ui({
|
|
|
4897
4960
|
S,
|
|
4898
4961
|
f,
|
|
4899
4962
|
P,
|
|
4900
|
-
|
|
4963
|
+
w
|
|
4901
4964
|
]
|
|
4902
4965
|
), L = A(() => {
|
|
4903
4966
|
m(!0), _(h.current.refreshThreshold), r && r().then(() => {
|
|
@@ -4924,10 +4987,10 @@ function Ui({
|
|
|
4924
4987
|
return $.init(), () => $.destroy();
|
|
4925
4988
|
}, [x, k, Y]), B(() => {
|
|
4926
4989
|
if (s.current)
|
|
4927
|
-
return
|
|
4928
|
-
window.removeEventListener("resize",
|
|
4990
|
+
return v(), E(), window.addEventListener("resize", v), () => {
|
|
4991
|
+
window.removeEventListener("resize", v), u.current !== null && clearTimeout(u.current);
|
|
4929
4992
|
};
|
|
4930
|
-
}, [
|
|
4993
|
+
}, [v, E]), {
|
|
4931
4994
|
container: {
|
|
4932
4995
|
props: {
|
|
4933
4996
|
id: e,
|
|
@@ -4969,27 +5032,27 @@ function Ui({
|
|
|
4969
5032
|
}
|
|
4970
5033
|
},
|
|
4971
5034
|
refreshing: f,
|
|
4972
|
-
updateMaxScroll:
|
|
4973
|
-
rubberBandEffect:
|
|
5035
|
+
updateMaxScroll: v,
|
|
5036
|
+
rubberBandEffect: w,
|
|
4974
5037
|
updateScrollbarPosition: E,
|
|
4975
5038
|
setPosition: S
|
|
4976
5039
|
};
|
|
4977
5040
|
}
|
|
4978
|
-
const
|
|
5041
|
+
const Ys = {
|
|
4979
5042
|
2: "text-2xl",
|
|
4980
5043
|
4: "text-4xl",
|
|
4981
5044
|
5: "text-5xl",
|
|
4982
5045
|
6: "text-6xl"
|
|
4983
|
-
},
|
|
5046
|
+
}, Ji = ({
|
|
4984
5047
|
title: e,
|
|
4985
5048
|
description: t,
|
|
4986
5049
|
size: r = "6",
|
|
4987
5050
|
descriptionClassName: n,
|
|
4988
5051
|
className: o
|
|
4989
|
-
}) => /* @__PURE__ */
|
|
4990
|
-
/* @__PURE__ */ d("p", { className: `${
|
|
5052
|
+
}) => /* @__PURE__ */ g("div", { className: N("text-center", o), children: [
|
|
5053
|
+
/* @__PURE__ */ d("p", { className: `${Ys[r]} font-medium`, children: e }),
|
|
4991
5054
|
t ? /* @__PURE__ */ d("p", { className: N("mt-6 text-base-11", n), children: t }) : null
|
|
4992
|
-
] }),
|
|
5055
|
+
] }), Zi = Xe(
|
|
4993
5056
|
({
|
|
4994
5057
|
placeholder: e = "Buscar",
|
|
4995
5058
|
value: t,
|
|
@@ -5001,13 +5064,13 @@ const _s = {
|
|
|
5001
5064
|
onMount: i,
|
|
5002
5065
|
error: c
|
|
5003
5066
|
}, l) => {
|
|
5004
|
-
const u = T(null), f =
|
|
5067
|
+
const u = T(null), f = yt(), m = Ar(u, l), b = A(() => r && r(u), []);
|
|
5005
5068
|
return B(() => {
|
|
5006
5069
|
const h = async () => {
|
|
5007
5070
|
i && await i(u, f);
|
|
5008
5071
|
};
|
|
5009
5072
|
b(), h();
|
|
5010
|
-
}, []), /* @__PURE__ */
|
|
5073
|
+
}, []), /* @__PURE__ */ g(
|
|
5011
5074
|
"div",
|
|
5012
5075
|
{
|
|
5013
5076
|
className: N(
|
|
@@ -5055,7 +5118,7 @@ const _s = {
|
|
|
5055
5118
|
"absolute right-2.5 rounded-full",
|
|
5056
5119
|
c ? "text-red-9" : "text-base-11"
|
|
5057
5120
|
),
|
|
5058
|
-
children: /* @__PURE__ */ d(
|
|
5121
|
+
children: /* @__PURE__ */ d(wt, { size: 20 })
|
|
5059
5122
|
}
|
|
5060
5123
|
) : null
|
|
5061
5124
|
]
|
|
@@ -5075,7 +5138,7 @@ const _s = {
|
|
|
5075
5138
|
r === "max" ? c = i : c = r ?? (a ? e.clientHeight : e.clientWidth) * n;
|
|
5076
5139
|
let l;
|
|
5077
5140
|
if (t === "right" || t === "down" ? l = Math.min(s + c, i) : l = Math.max(s - c, 0), l === s) return;
|
|
5078
|
-
|
|
5141
|
+
Ot(0, 1, {
|
|
5079
5142
|
duration: {
|
|
5080
5143
|
fast: 0.15,
|
|
5081
5144
|
normal: 0.4,
|
|
@@ -5088,14 +5151,14 @@ const _s = {
|
|
|
5088
5151
|
a ? e.scrollTop = m : e.scrollLeft = m;
|
|
5089
5152
|
}
|
|
5090
5153
|
});
|
|
5091
|
-
},
|
|
5154
|
+
}, Rs = {
|
|
5092
5155
|
default: [0.32, 0.72, 0, 1]
|
|
5093
5156
|
}, xr = {
|
|
5094
5157
|
initial: { opacity: 0 },
|
|
5095
5158
|
animate: {
|
|
5096
5159
|
opacity: 1,
|
|
5097
5160
|
transition: {
|
|
5098
|
-
ease:
|
|
5161
|
+
ease: Rs.default,
|
|
5099
5162
|
duration: 0.3
|
|
5100
5163
|
}
|
|
5101
5164
|
},
|
|
@@ -5106,21 +5169,21 @@ const _s = {
|
|
|
5106
5169
|
duration: 0.3
|
|
5107
5170
|
}
|
|
5108
5171
|
}
|
|
5109
|
-
}, un = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new WeakMap(),
|
|
5172
|
+
}, un = /* @__PURE__ */ new Set(), Z = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakSet();
|
|
5110
5173
|
let xe, Gt = 0, Jt = 0;
|
|
5111
|
-
const
|
|
5112
|
-
const t =
|
|
5113
|
-
t && t.forEach((r) =>
|
|
5114
|
-
},
|
|
5174
|
+
const be = "__aa_tgt", Ve = "__aa_del", bt = "__aa_new", js = (e) => {
|
|
5175
|
+
const t = Xs(e);
|
|
5176
|
+
t && t.forEach((r) => Ks(r));
|
|
5177
|
+
}, zs = (e) => {
|
|
5115
5178
|
e.forEach((t) => {
|
|
5116
|
-
t.target === xe &&
|
|
5179
|
+
t.target === xe && Bs(), Z.has(t.target) && Me(t.target);
|
|
5117
5180
|
});
|
|
5118
5181
|
};
|
|
5119
|
-
function
|
|
5120
|
-
|
|
5182
|
+
function Hs(e) {
|
|
5183
|
+
It.get(e)?.disconnect();
|
|
5121
5184
|
let r = Z.get(e), n = 0;
|
|
5122
5185
|
const o = 5;
|
|
5123
|
-
r || (r =
|
|
5186
|
+
r || (r = _e(e), Z.set(e, r));
|
|
5124
5187
|
const { offsetWidth: a, offsetHeight: s } = xe, c = [
|
|
5125
5188
|
r.top - o,
|
|
5126
5189
|
a - (r.left + o + r.width),
|
|
@@ -5128,7 +5191,7 @@ function zs(e) {
|
|
|
5128
5191
|
r.left - o
|
|
5129
5192
|
].map((u) => `${-1 * Math.floor(u)}px`).join(" "), l = new IntersectionObserver(
|
|
5130
5193
|
() => {
|
|
5131
|
-
++n > 1 &&
|
|
5194
|
+
++n > 1 && Me(e);
|
|
5132
5195
|
},
|
|
5133
5196
|
{
|
|
5134
5197
|
root: xe,
|
|
@@ -5136,49 +5199,49 @@ function zs(e) {
|
|
|
5136
5199
|
rootMargin: c
|
|
5137
5200
|
}
|
|
5138
5201
|
);
|
|
5139
|
-
l.observe(e),
|
|
5202
|
+
l.observe(e), It.set(e, l);
|
|
5140
5203
|
}
|
|
5141
|
-
function
|
|
5142
|
-
clearTimeout(
|
|
5143
|
-
const t =
|
|
5144
|
-
|
|
5204
|
+
function Me(e) {
|
|
5205
|
+
clearTimeout(ht.get(e));
|
|
5206
|
+
const t = Et(e), r = qe(t) ? 500 : t.duration;
|
|
5207
|
+
ht.set(
|
|
5145
5208
|
e,
|
|
5146
5209
|
setTimeout(async () => {
|
|
5147
|
-
const n =
|
|
5210
|
+
const n = Ce.get(e);
|
|
5148
5211
|
try {
|
|
5149
|
-
await n?.finished, Z.set(e,
|
|
5212
|
+
await n?.finished, Z.set(e, _e(e)), Hs(e);
|
|
5150
5213
|
} catch {
|
|
5151
5214
|
}
|
|
5152
5215
|
}, r)
|
|
5153
5216
|
);
|
|
5154
5217
|
}
|
|
5155
|
-
function
|
|
5156
|
-
clearTimeout(
|
|
5218
|
+
function Bs() {
|
|
5219
|
+
clearTimeout(ht.get(xe)), ht.set(
|
|
5157
5220
|
xe,
|
|
5158
5221
|
setTimeout(() => {
|
|
5159
5222
|
un.forEach(
|
|
5160
|
-
(e) => hn(e, (t) => dn(() =>
|
|
5223
|
+
(e) => hn(e, (t) => dn(() => Me(t)))
|
|
5161
5224
|
);
|
|
5162
5225
|
}, 100)
|
|
5163
5226
|
);
|
|
5164
5227
|
}
|
|
5165
|
-
function
|
|
5228
|
+
function Vs(e) {
|
|
5166
5229
|
setTimeout(() => {
|
|
5167
|
-
|
|
5230
|
+
Is.set(
|
|
5168
5231
|
e,
|
|
5169
|
-
setInterval(() => dn(
|
|
5232
|
+
setInterval(() => dn(Me.bind(null, e)), 2e3)
|
|
5170
5233
|
);
|
|
5171
5234
|
}, Math.round(2e3 * Math.random()));
|
|
5172
5235
|
}
|
|
5173
5236
|
function dn(e) {
|
|
5174
5237
|
typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
|
|
5175
5238
|
}
|
|
5176
|
-
let
|
|
5177
|
-
const
|
|
5178
|
-
|
|
5239
|
+
let jt, pt;
|
|
5240
|
+
const qs = typeof window < "u" && "ResizeObserver" in window;
|
|
5241
|
+
qs && (xe = document.documentElement, jt = new MutationObserver(js), pt = new ResizeObserver(zs), window.addEventListener("scroll", () => {
|
|
5179
5242
|
Jt = window.scrollY, Gt = window.scrollX;
|
|
5180
|
-
}),
|
|
5181
|
-
function
|
|
5243
|
+
}), pt.observe(xe));
|
|
5244
|
+
function Xs(e) {
|
|
5182
5245
|
return e.reduce((n, o) => [
|
|
5183
5246
|
...n,
|
|
5184
5247
|
...Array.from(o.addedNodes),
|
|
@@ -5188,23 +5251,23 @@ function qs(e) {
|
|
|
5188
5251
|
) ? !1 : e.reduce((n, o) => {
|
|
5189
5252
|
if (n === !1) return !1;
|
|
5190
5253
|
if (o.target instanceof Element) {
|
|
5191
|
-
if (
|
|
5254
|
+
if (Pt(o.target), !n.has(o.target)) {
|
|
5192
5255
|
n.add(o.target);
|
|
5193
5256
|
for (let a = 0; a < o.target.children.length; a++) {
|
|
5194
5257
|
const s = o.target.children.item(a);
|
|
5195
5258
|
if (s) {
|
|
5196
|
-
if (
|
|
5259
|
+
if (Ve in s)
|
|
5197
5260
|
return !1;
|
|
5198
|
-
|
|
5261
|
+
Pt(o.target, s), n.add(s);
|
|
5199
5262
|
}
|
|
5200
5263
|
}
|
|
5201
5264
|
}
|
|
5202
5265
|
if (o.removedNodes.length)
|
|
5203
5266
|
for (let a = 0; a < o.removedNodes.length; a++) {
|
|
5204
5267
|
const s = o.removedNodes[a];
|
|
5205
|
-
if (
|
|
5268
|
+
if (Ve in s)
|
|
5206
5269
|
return !1;
|
|
5207
|
-
s instanceof Element && (n.add(s),
|
|
5270
|
+
s instanceof Element && (n.add(s), Pt(o.target, s), We.set(s, [
|
|
5208
5271
|
o.previousSibling,
|
|
5209
5272
|
o.nextSibling
|
|
5210
5273
|
]));
|
|
@@ -5213,17 +5276,17 @@ function qs(e) {
|
|
|
5213
5276
|
return n;
|
|
5214
5277
|
}, /* @__PURE__ */ new Set());
|
|
5215
5278
|
}
|
|
5216
|
-
function
|
|
5217
|
-
!t && !(
|
|
5279
|
+
function Pt(e, t) {
|
|
5280
|
+
!t && !(be in e) ? Object.defineProperty(e, be, { value: e }) : t && !(be in t) && Object.defineProperty(t, be, { value: e });
|
|
5218
5281
|
}
|
|
5219
|
-
function
|
|
5282
|
+
function Ks(e) {
|
|
5220
5283
|
const t = e.isConnected, r = Z.has(e);
|
|
5221
|
-
t &&
|
|
5284
|
+
t && We.has(e) && We.delete(e), Ce.has(e) && Ce.get(e)?.cancel(), bt in e ? Nr(e) : r && t ? Qs(e) : r && !t ? Gs(e) : Nr(e);
|
|
5222
5285
|
}
|
|
5223
|
-
function
|
|
5286
|
+
function ue(e) {
|
|
5224
5287
|
return Number(e.replace(/[^0-9.\-]/g, ""));
|
|
5225
5288
|
}
|
|
5226
|
-
function
|
|
5289
|
+
function Us(e) {
|
|
5227
5290
|
let t = e.parentElement;
|
|
5228
5291
|
for (; t; ) {
|
|
5229
5292
|
if (t.scrollLeft || t.scrollTop)
|
|
@@ -5232,8 +5295,8 @@ function Ks(e) {
|
|
|
5232
5295
|
}
|
|
5233
5296
|
return { x: 0, y: 0 };
|
|
5234
5297
|
}
|
|
5235
|
-
function
|
|
5236
|
-
const t = e.getBoundingClientRect(), { x: r, y: n } =
|
|
5298
|
+
function _e(e) {
|
|
5299
|
+
const t = e.getBoundingClientRect(), { x: r, y: n } = Us(e);
|
|
5237
5300
|
return {
|
|
5238
5301
|
top: t.top + n,
|
|
5239
5302
|
left: t.left + r,
|
|
@@ -5245,40 +5308,40 @@ function fn(e, t, r) {
|
|
|
5245
5308
|
let n = t.width, o = t.height, a = r.width, s = r.height;
|
|
5246
5309
|
const i = getComputedStyle(e);
|
|
5247
5310
|
if (i.getPropertyValue("box-sizing") === "content-box") {
|
|
5248
|
-
const l =
|
|
5311
|
+
const l = ue(i.paddingTop) + ue(i.paddingBottom) + ue(i.borderTopWidth) + ue(i.borderBottomWidth), u = ue(i.paddingLeft) + ue(i.paddingRight) + ue(i.borderRightWidth) + ue(i.borderLeftWidth);
|
|
5249
5312
|
n -= u, a -= u, o -= l, s -= l;
|
|
5250
5313
|
}
|
|
5251
5314
|
return [n, a, o, s].map(Math.round);
|
|
5252
5315
|
}
|
|
5253
|
-
function
|
|
5254
|
-
return
|
|
5316
|
+
function Et(e) {
|
|
5317
|
+
return be in e && Ae.has(e[be]) ? Ae.get(e[be]) : { duration: 250, easing: "ease-in-out" };
|
|
5255
5318
|
}
|
|
5256
5319
|
function mn(e) {
|
|
5257
|
-
if (
|
|
5320
|
+
if (be in e) return e[be];
|
|
5258
5321
|
}
|
|
5259
5322
|
function Zt(e) {
|
|
5260
5323
|
const t = mn(e);
|
|
5261
|
-
return t ?
|
|
5324
|
+
return t ? Ie.has(t) : !1;
|
|
5262
5325
|
}
|
|
5263
5326
|
function hn(e, ...t) {
|
|
5264
|
-
t.forEach((r) => r(e,
|
|
5327
|
+
t.forEach((r) => r(e, Ae.has(e)));
|
|
5265
5328
|
for (let r = 0; r < e.children.length; r++) {
|
|
5266
5329
|
const n = e.children.item(r);
|
|
5267
|
-
n && t.forEach((o) => o(n,
|
|
5330
|
+
n && t.forEach((o) => o(n, Ae.has(n)));
|
|
5268
5331
|
}
|
|
5269
5332
|
}
|
|
5270
5333
|
function er(e) {
|
|
5271
5334
|
return Array.isArray(e) ? e : [e];
|
|
5272
5335
|
}
|
|
5273
|
-
function
|
|
5336
|
+
function qe(e) {
|
|
5274
5337
|
return typeof e == "function";
|
|
5275
5338
|
}
|
|
5276
|
-
function
|
|
5277
|
-
const t = Z.get(e), r =
|
|
5339
|
+
function Qs(e) {
|
|
5340
|
+
const t = Z.get(e), r = _e(e);
|
|
5278
5341
|
if (!Zt(e)) return Z.set(e, r);
|
|
5279
5342
|
let n;
|
|
5280
5343
|
if (!t) return;
|
|
5281
|
-
const o =
|
|
5344
|
+
const o = Et(e);
|
|
5282
5345
|
if (typeof o != "function") {
|
|
5283
5346
|
const a = t.left - r.left, s = t.top - r.top, [i, c, l, u] = fn(
|
|
5284
5347
|
e,
|
|
@@ -5299,13 +5362,13 @@ function Us(e) {
|
|
|
5299
5362
|
);
|
|
5300
5363
|
n = new Animation(a), n.play();
|
|
5301
5364
|
}
|
|
5302
|
-
|
|
5365
|
+
Ce.set(e, n), Z.set(e, r), n.addEventListener("finish", Me.bind(null, e));
|
|
5303
5366
|
}
|
|
5304
5367
|
function Nr(e) {
|
|
5305
|
-
|
|
5306
|
-
const t =
|
|
5368
|
+
bt in e && delete e[bt];
|
|
5369
|
+
const t = _e(e);
|
|
5307
5370
|
Z.set(e, t);
|
|
5308
|
-
const r =
|
|
5371
|
+
const r = Et(e);
|
|
5309
5372
|
if (!Zt(e)) return;
|
|
5310
5373
|
let n;
|
|
5311
5374
|
if (typeof r != "function")
|
|
@@ -5324,23 +5387,23 @@ function Nr(e) {
|
|
|
5324
5387
|
const [o] = er(r(e, "add", t));
|
|
5325
5388
|
n = new Animation(o), n.play();
|
|
5326
5389
|
}
|
|
5327
|
-
|
|
5390
|
+
Ce.set(e, n), n.addEventListener("finish", Me.bind(null, e));
|
|
5328
5391
|
}
|
|
5329
5392
|
function kr(e, t) {
|
|
5330
|
-
e.remove(), Z.delete(e),
|
|
5331
|
-
if (
|
|
5393
|
+
e.remove(), Z.delete(e), We.delete(e), Ce.delete(e), It.get(e)?.disconnect(), setTimeout(() => {
|
|
5394
|
+
if (Ve in e && delete e[Ve], Object.defineProperty(e, bt, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
|
|
5332
5395
|
for (const r in t)
|
|
5333
5396
|
e.style[r] = "";
|
|
5334
5397
|
}, 0);
|
|
5335
5398
|
}
|
|
5336
|
-
function
|
|
5337
|
-
if (!
|
|
5338
|
-
const [t, r] =
|
|
5339
|
-
Object.defineProperty(e,
|
|
5399
|
+
function Gs(e) {
|
|
5400
|
+
if (!We.has(e) || !Z.has(e)) return;
|
|
5401
|
+
const [t, r] = We.get(e);
|
|
5402
|
+
Object.defineProperty(e, Ve, { value: !0, configurable: !0 });
|
|
5340
5403
|
const n = window.scrollX, o = window.scrollY;
|
|
5341
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);
|
|
5342
|
-
const [a, s, i, c] =
|
|
5343
|
-
(n !== Gt || o !== Jt) &&
|
|
5405
|
+
const [a, s, i, c] = Zs(e), l = Et(e), u = Z.get(e);
|
|
5406
|
+
(n !== Gt || o !== Jt) && Js(e, n, o, l);
|
|
5344
5407
|
let f, m = {
|
|
5345
5408
|
position: "absolute",
|
|
5346
5409
|
top: `${a}px`,
|
|
@@ -5352,7 +5415,7 @@ function Qs(e) {
|
|
|
5352
5415
|
transformOrigin: "center",
|
|
5353
5416
|
zIndex: "100"
|
|
5354
5417
|
};
|
|
5355
|
-
if (!
|
|
5418
|
+
if (!qe(l))
|
|
5356
5419
|
Object.assign(e.style, m), f = e.animate(
|
|
5357
5420
|
[
|
|
5358
5421
|
{
|
|
@@ -5372,9 +5435,9 @@ function Qs(e) {
|
|
|
5372
5435
|
);
|
|
5373
5436
|
h?.styleReset !== !1 && (m = h?.styleReset || m, Object.assign(e.style, m)), f = new Animation(b), f.play();
|
|
5374
5437
|
}
|
|
5375
|
-
|
|
5438
|
+
Ce.set(e, f), f.addEventListener("finish", kr.bind(null, e, m));
|
|
5376
5439
|
}
|
|
5377
|
-
function
|
|
5440
|
+
function Js(e, t, r, n) {
|
|
5378
5441
|
const o = Gt - t, a = Jt - r, s = document.documentElement.style.scrollBehavior;
|
|
5379
5442
|
if (getComputedStyle(xe).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement) return;
|
|
5380
5443
|
const c = e.parentElement;
|
|
@@ -5382,7 +5445,7 @@ function Gs(e, t, r, n) {
|
|
|
5382
5445
|
const f = performance.now();
|
|
5383
5446
|
function m() {
|
|
5384
5447
|
requestAnimationFrame(() => {
|
|
5385
|
-
if (!
|
|
5448
|
+
if (!qe(n)) {
|
|
5386
5449
|
const b = l - c.clientHeight, h = u - c.clientWidth;
|
|
5387
5450
|
f + n.duration > performance.now() ? (window.scrollTo({
|
|
5388
5451
|
left: window.scrollX - h,
|
|
@@ -5393,25 +5456,25 @@ function Gs(e, t, r, n) {
|
|
|
5393
5456
|
}
|
|
5394
5457
|
m();
|
|
5395
5458
|
}
|
|
5396
|
-
function
|
|
5397
|
-
const t = Z.get(e), [r, , n] = fn(e, t,
|
|
5459
|
+
function Zs(e) {
|
|
5460
|
+
const t = Z.get(e), [r, , n] = fn(e, t, _e(e));
|
|
5398
5461
|
let o = e.parentElement;
|
|
5399
5462
|
for (; o && (getComputedStyle(o).position === "static" || o instanceof HTMLBodyElement); )
|
|
5400
5463
|
o = o.parentElement;
|
|
5401
5464
|
o || (o = document.body);
|
|
5402
|
-
const a = getComputedStyle(o), s = Z.get(o) ||
|
|
5465
|
+
const a = getComputedStyle(o), s = Z.get(o) || _e(o), i = Math.round(t.top - s.top) - ue(a.borderTopWidth), c = Math.round(t.left - s.left) - ue(a.borderLeftWidth);
|
|
5403
5466
|
return [i, c, r, n];
|
|
5404
5467
|
}
|
|
5405
5468
|
function bn(e, t = {}) {
|
|
5406
|
-
return
|
|
5469
|
+
return jt && pt && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !qe(t) && !t.disrespectUserMotionPreference || (Ie.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), hn(e, Me, Vs, (o) => pt?.observe(o)), qe(t) ? Ae.set(e, t) : Ae.set(e, { duration: 250, easing: "ease-in-out", ...t }), jt.observe(e, { childList: !0 }), un.add(e))), Object.freeze({
|
|
5407
5470
|
parent: e,
|
|
5408
5471
|
enable: () => {
|
|
5409
|
-
|
|
5472
|
+
Ie.add(e);
|
|
5410
5473
|
},
|
|
5411
5474
|
disable: () => {
|
|
5412
|
-
|
|
5475
|
+
Ie.delete(e);
|
|
5413
5476
|
},
|
|
5414
|
-
isEnabled: () =>
|
|
5477
|
+
isEnabled: () => Ie.has(e)
|
|
5415
5478
|
});
|
|
5416
5479
|
}
|
|
5417
5480
|
const ve = {
|
|
@@ -5444,7 +5507,7 @@ const ve = {
|
|
|
5444
5507
|
item: "grow"
|
|
5445
5508
|
}
|
|
5446
5509
|
}
|
|
5447
|
-
},
|
|
5510
|
+
}, el = ({
|
|
5448
5511
|
options: e,
|
|
5449
5512
|
selected: t,
|
|
5450
5513
|
onChange: r,
|
|
@@ -5461,14 +5524,14 @@ const ve = {
|
|
|
5461
5524
|
// from,
|
|
5462
5525
|
className: b
|
|
5463
5526
|
}) => {
|
|
5464
|
-
const [h,
|
|
5527
|
+
const [h, v] = z({ left: !1, right: !1 }), { ref: w } = jn({
|
|
5465
5528
|
onOverflow: (E) => {
|
|
5466
|
-
|
|
5529
|
+
v({ left: E.canScrollLeft, right: E.canScrollRight });
|
|
5467
5530
|
},
|
|
5468
5531
|
// enabled: inView,
|
|
5469
5532
|
trackScroll: m
|
|
5470
5533
|
});
|
|
5471
|
-
return /* @__PURE__ */
|
|
5534
|
+
return /* @__PURE__ */ g(
|
|
5472
5535
|
"div",
|
|
5473
5536
|
{
|
|
5474
5537
|
className: N(
|
|
@@ -5481,7 +5544,7 @@ const ve = {
|
|
|
5481
5544
|
/* @__PURE__ */ d(
|
|
5482
5545
|
"div",
|
|
5483
5546
|
{
|
|
5484
|
-
ref:
|
|
5547
|
+
ref: w,
|
|
5485
5548
|
className: N(
|
|
5486
5549
|
"flex items-center border overflow-x-scroll scrollbar-hide",
|
|
5487
5550
|
ve.rounded[f],
|
|
@@ -5508,16 +5571,16 @@ const ve = {
|
|
|
5508
5571
|
})
|
|
5509
5572
|
}
|
|
5510
5573
|
),
|
|
5511
|
-
/* @__PURE__ */
|
|
5574
|
+
/* @__PURE__ */ g(Ke, { children: [
|
|
5512
5575
|
h.left ? /* @__PURE__ */ d(
|
|
5513
|
-
|
|
5576
|
+
ie.button,
|
|
5514
5577
|
{
|
|
5515
5578
|
variants: xr,
|
|
5516
5579
|
initial: "initial",
|
|
5517
5580
|
animate: "animate",
|
|
5518
5581
|
exit: "exit",
|
|
5519
5582
|
onClick: () => {
|
|
5520
|
-
|
|
5583
|
+
w.current && yr({ el: w.current, direction: "left" });
|
|
5521
5584
|
},
|
|
5522
5585
|
className: "absolute shrink-0 left-0 px-1 h-full bg-gradient-to-r from-base-2 top-0",
|
|
5523
5586
|
children: /* @__PURE__ */ d(Sr, { className: "text-base-13" })
|
|
@@ -5525,14 +5588,14 @@ const ve = {
|
|
|
5525
5588
|
"leftarrow"
|
|
5526
5589
|
) : null,
|
|
5527
5590
|
h.right ? /* @__PURE__ */ d(
|
|
5528
|
-
|
|
5591
|
+
ie.button,
|
|
5529
5592
|
{
|
|
5530
5593
|
variants: xr,
|
|
5531
5594
|
initial: "initial",
|
|
5532
5595
|
animate: "animate",
|
|
5533
5596
|
exit: "exit",
|
|
5534
5597
|
onClick: () => {
|
|
5535
|
-
|
|
5598
|
+
w.current && yr({ el: w.current, direction: "right" });
|
|
5536
5599
|
},
|
|
5537
5600
|
className: "absolute shrink-0 right-0 px-1 h-full bg-gradient-to-l from-base-2 top-0",
|
|
5538
5601
|
children: /* @__PURE__ */ d(Cr, { className: "text-base-13" })
|
|
@@ -5544,7 +5607,7 @@ const ve = {
|
|
|
5544
5607
|
}
|
|
5545
5608
|
);
|
|
5546
5609
|
};
|
|
5547
|
-
function
|
|
5610
|
+
function ei({
|
|
5548
5611
|
label: e,
|
|
5549
5612
|
labelPosition: t = "default",
|
|
5550
5613
|
options: r,
|
|
@@ -5561,7 +5624,7 @@ function Zs({
|
|
|
5561
5624
|
searchable: b,
|
|
5562
5625
|
className: h
|
|
5563
5626
|
}) {
|
|
5564
|
-
const [
|
|
5627
|
+
const [v, w] = z(-1), E = T(null), {
|
|
5565
5628
|
triggerRef: S,
|
|
5566
5629
|
triggerProps: _,
|
|
5567
5630
|
popoverRef: D,
|
|
@@ -5577,14 +5640,14 @@ function Zs({
|
|
|
5577
5640
|
b && E.current && setTimeout(() => E.current?.focus(), 10);
|
|
5578
5641
|
},
|
|
5579
5642
|
onClose: () => {
|
|
5580
|
-
|
|
5643
|
+
w(-1);
|
|
5581
5644
|
}
|
|
5582
5645
|
});
|
|
5583
5646
|
Bt(D, (p) => {
|
|
5584
5647
|
!S.current || !x || !p.target || S.current.contains(p.target) || L();
|
|
5585
5648
|
});
|
|
5586
5649
|
const Y = P(), $ = l && n ? l(n, r) : n;
|
|
5587
|
-
return /* @__PURE__ */
|
|
5650
|
+
return /* @__PURE__ */ g("div", { className: N("relative", h), children: [
|
|
5588
5651
|
t === "default" && /* @__PURE__ */ d(
|
|
5589
5652
|
"label",
|
|
5590
5653
|
{
|
|
@@ -5595,8 +5658,8 @@ function Zs({
|
|
|
5595
5658
|
children: e
|
|
5596
5659
|
}
|
|
5597
5660
|
),
|
|
5598
|
-
/* @__PURE__ */
|
|
5599
|
-
|
|
5661
|
+
/* @__PURE__ */ g(
|
|
5662
|
+
U,
|
|
5600
5663
|
{
|
|
5601
5664
|
ref: S,
|
|
5602
5665
|
color: "solidhybrid",
|
|
@@ -5615,8 +5678,8 @@ function Zs({
|
|
|
5615
5678
|
]
|
|
5616
5679
|
}
|
|
5617
5680
|
),
|
|
5618
|
-
/* @__PURE__ */ d(
|
|
5619
|
-
|
|
5681
|
+
/* @__PURE__ */ d(Ke, { children: x && /* @__PURE__ */ d(Ze, { children: /* @__PURE__ */ d(
|
|
5682
|
+
ie.div,
|
|
5620
5683
|
{
|
|
5621
5684
|
initial: { opacity: 0, y: -10 },
|
|
5622
5685
|
animate: { opacity: 1, y: 0 },
|
|
@@ -5637,8 +5700,8 @@ function Zs({
|
|
|
5637
5700
|
),
|
|
5638
5701
|
role: "listbox",
|
|
5639
5702
|
children: r.map((p, M) => {
|
|
5640
|
-
const C = !!($ && a(p) === a($)), F = M ===
|
|
5641
|
-
return /* @__PURE__ */
|
|
5703
|
+
const C = !!($ && a(p) === a($)), F = M === v, I = i?.(p);
|
|
5704
|
+
return /* @__PURE__ */ g(
|
|
5642
5705
|
"div",
|
|
5643
5706
|
{
|
|
5644
5707
|
className: N(
|
|
@@ -5654,16 +5717,16 @@ function Zs({
|
|
|
5654
5717
|
o(u ? u(p) : p), L();
|
|
5655
5718
|
},
|
|
5656
5719
|
role: "option",
|
|
5657
|
-
onMouseEnter: () =>
|
|
5720
|
+
onMouseEnter: () => w(M),
|
|
5658
5721
|
children: [
|
|
5659
|
-
/* @__PURE__ */
|
|
5660
|
-
/* @__PURE__ */
|
|
5722
|
+
/* @__PURE__ */ g("div", { children: [
|
|
5723
|
+
/* @__PURE__ */ g("p", { children: [
|
|
5661
5724
|
s(p),
|
|
5662
5725
|
" "
|
|
5663
5726
|
] }),
|
|
5664
5727
|
I && /* @__PURE__ */ d("p", { className: "text-xs text-base-11 mt-0.5 line-clamp-2", children: I })
|
|
5665
5728
|
] }),
|
|
5666
|
-
C && /* @__PURE__ */ d(
|
|
5729
|
+
C && /* @__PURE__ */ d(ze, { size: 16, className: "shrink-0" })
|
|
5667
5730
|
]
|
|
5668
5731
|
},
|
|
5669
5732
|
a(p)
|
|
@@ -5673,15 +5736,15 @@ function Zs({
|
|
|
5673
5736
|
) }) })
|
|
5674
5737
|
] });
|
|
5675
5738
|
}
|
|
5676
|
-
const
|
|
5677
|
-
const { control: r } =
|
|
5739
|
+
const tl = ({ name: e, ...t }) => {
|
|
5740
|
+
const { control: r } = Ue();
|
|
5678
5741
|
return r ? /* @__PURE__ */ d(
|
|
5679
|
-
|
|
5742
|
+
Qe,
|
|
5680
5743
|
{
|
|
5681
5744
|
name: e,
|
|
5682
5745
|
control: r,
|
|
5683
5746
|
render: ({ field: n, fieldState: o }) => /* @__PURE__ */ d(
|
|
5684
|
-
|
|
5747
|
+
ei,
|
|
5685
5748
|
{
|
|
5686
5749
|
selected: n.value ?? null,
|
|
5687
5750
|
onChange: (a) => n.onChange(a),
|
|
@@ -5690,19 +5753,19 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5690
5753
|
}
|
|
5691
5754
|
)
|
|
5692
5755
|
}
|
|
5693
|
-
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */
|
|
5756
|
+
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */ g("p", { children: [
|
|
5694
5757
|
"Form control missing for field: ",
|
|
5695
5758
|
e
|
|
5696
5759
|
] }));
|
|
5697
|
-
},
|
|
5760
|
+
}, rl = ({ className: e }) => /* @__PURE__ */ d("div", { className: N("w-full h-px bg-base-4", e) }), nl = ({
|
|
5698
5761
|
text: e,
|
|
5699
5762
|
length: t = 120,
|
|
5700
5763
|
size: r = "sm",
|
|
5701
5764
|
className: n,
|
|
5702
5765
|
buttonClassName: o
|
|
5703
5766
|
}) => {
|
|
5704
|
-
const [a, s] = z(!1), i =
|
|
5705
|
-
return /* @__PURE__ */
|
|
5767
|
+
const [a, s] = z(!1), i = ae(() => e.length > t, [e]), c = ae(() => i ? a ? e : e.slice(0, t).trim() + "..." : e, [e, a, i]);
|
|
5768
|
+
return /* @__PURE__ */ g("div", { children: [
|
|
5706
5769
|
/* @__PURE__ */ d("p", { className: N("text-base-12", r === "sm" && "text-sm", n), children: c }),
|
|
5707
5770
|
i ? /* @__PURE__ */ d(
|
|
5708
5771
|
"button",
|
|
@@ -5713,7 +5776,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5713
5776
|
}
|
|
5714
5777
|
) : null
|
|
5715
5778
|
] });
|
|
5716
|
-
},
|
|
5779
|
+
}, ti = ({
|
|
5717
5780
|
loading: e = !0,
|
|
5718
5781
|
wrapperClassName: t,
|
|
5719
5782
|
spinnerClassName: r
|
|
@@ -5733,7 +5796,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5733
5796
|
}
|
|
5734
5797
|
)
|
|
5735
5798
|
}
|
|
5736
|
-
) }),
|
|
5799
|
+
) }), ol = ({
|
|
5737
5800
|
isEditable: e,
|
|
5738
5801
|
isDeletable: t = !0,
|
|
5739
5802
|
createUpdateLoading: r,
|
|
@@ -5746,9 +5809,9 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5746
5809
|
className: l
|
|
5747
5810
|
}) => {
|
|
5748
5811
|
const [u, f] = z(!1);
|
|
5749
|
-
return /* @__PURE__ */
|
|
5750
|
-
e && t ? /* @__PURE__ */
|
|
5751
|
-
|
|
5812
|
+
return /* @__PURE__ */ g("div", { className: `w-full grid grid-cols-2 gap-4 col-span-full ${l}`, children: [
|
|
5813
|
+
e && t ? /* @__PURE__ */ g(
|
|
5814
|
+
U,
|
|
5752
5815
|
{
|
|
5753
5816
|
color: "dangersolid",
|
|
5754
5817
|
state: n ? "loading" : r ? "disabled" : "enabled",
|
|
@@ -5756,26 +5819,26 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5756
5819
|
a ? u ? o?.() : f(!0) : o?.();
|
|
5757
5820
|
},
|
|
5758
5821
|
children: [
|
|
5759
|
-
/* @__PURE__ */ d(
|
|
5822
|
+
/* @__PURE__ */ d(wt, { size: 18 }),
|
|
5760
5823
|
a && u ? "Confirmar" : c
|
|
5761
5824
|
]
|
|
5762
5825
|
}
|
|
5763
5826
|
) : null,
|
|
5764
|
-
/* @__PURE__ */
|
|
5765
|
-
|
|
5827
|
+
/* @__PURE__ */ g(
|
|
5828
|
+
U,
|
|
5766
5829
|
{
|
|
5767
5830
|
color: "brand",
|
|
5768
5831
|
className: N(e && t ? "" : "col-span-2"),
|
|
5769
5832
|
state: r ? "loading" : n ? "disabled" : "enabled",
|
|
5770
5833
|
type: "submit",
|
|
5771
5834
|
children: [
|
|
5772
|
-
r ? /* @__PURE__ */ d(
|
|
5835
|
+
r ? /* @__PURE__ */ d(ti, {}) : e ? /* @__PURE__ */ d(Pr, { size: 18 }) : /* @__PURE__ */ d(Or, { size: 18 }),
|
|
5773
5836
|
e ? i : s
|
|
5774
5837
|
]
|
|
5775
5838
|
}
|
|
5776
5839
|
)
|
|
5777
5840
|
] });
|
|
5778
|
-
}, pn = zt(void 0),
|
|
5841
|
+
}, pn = zt(void 0), al = ({
|
|
5779
5842
|
children: e,
|
|
5780
5843
|
debug: t = !1
|
|
5781
5844
|
}) => {
|
|
@@ -5794,7 +5857,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5794
5857
|
return t && console.log("prev modal id", u), u;
|
|
5795
5858
|
}, [t]), s = A(
|
|
5796
5859
|
(u, f = "modal", m) => {
|
|
5797
|
-
|
|
5860
|
+
Ot(
|
|
5798
5861
|
u,
|
|
5799
5862
|
{
|
|
5800
5863
|
y: f === "modal" ? -30 : -50,
|
|
@@ -5809,7 +5872,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5809
5872
|
},
|
|
5810
5873
|
[]
|
|
5811
5874
|
), i = A((u) => {
|
|
5812
|
-
|
|
5875
|
+
Ot(
|
|
5813
5876
|
u,
|
|
5814
5877
|
{
|
|
5815
5878
|
y: 0,
|
|
@@ -5829,15 +5892,15 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5829
5892
|
getModals: c
|
|
5830
5893
|
};
|
|
5831
5894
|
return /* @__PURE__ */ d(pn.Provider, { value: l, children: e });
|
|
5832
|
-
},
|
|
5833
|
-
const e =
|
|
5895
|
+
}, ri = () => {
|
|
5896
|
+
const e = vt(pn);
|
|
5834
5897
|
if (e === void 0)
|
|
5835
5898
|
throw new Error("useModals must be used within a ModalsProvider");
|
|
5836
5899
|
return e;
|
|
5837
|
-
},
|
|
5900
|
+
}, ni = ({
|
|
5838
5901
|
withPortal: e,
|
|
5839
5902
|
children: t
|
|
5840
|
-
}) => e ? /* @__PURE__ */ d(
|
|
5903
|
+
}) => e ? /* @__PURE__ */ d(Ze, { children: t }) : /* @__PURE__ */ d(gt, { children: t }), sl = ({
|
|
5841
5904
|
id: e,
|
|
5842
5905
|
prevPath: t,
|
|
5843
5906
|
withDelay: r,
|
|
@@ -5852,14 +5915,14 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5852
5915
|
children: f
|
|
5853
5916
|
// ...others
|
|
5854
5917
|
}) => {
|
|
5855
|
-
const m =
|
|
5918
|
+
const m = Wn(), b = yt(), h = T(null), v = ri(), w = ae(() => i === "modal" || b, [i, b]);
|
|
5856
5919
|
return B(() => {
|
|
5857
|
-
|
|
5858
|
-
const E =
|
|
5920
|
+
v.add(e);
|
|
5921
|
+
const E = v.getPrevId();
|
|
5859
5922
|
if (!E || (h.current = document.getElementById(E), !h.current)) return;
|
|
5860
|
-
E &&
|
|
5923
|
+
E && v.animateParentModal(
|
|
5861
5924
|
h.current,
|
|
5862
|
-
|
|
5925
|
+
w ? "modal" : "sheet"
|
|
5863
5926
|
);
|
|
5864
5927
|
//! cleanups not running on new router system
|
|
5865
5928
|
//! IDK WHY
|
|
@@ -5867,9 +5930,9 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5867
5930
|
console.log("IS THIS CLEANUP RUNNING?");
|
|
5868
5931
|
};
|
|
5869
5932
|
//! NOT RUNNING...
|
|
5870
|
-
}, [b]), $r(() => () =>
|
|
5933
|
+
}, [b]), $r(() => () => v.remove(e), []), /* @__PURE__ */ g(ni, { withPortal: n, children: [
|
|
5871
5934
|
/* @__PURE__ */ d(
|
|
5872
|
-
|
|
5935
|
+
ie.div,
|
|
5873
5936
|
{
|
|
5874
5937
|
initial: { opacity: 0 },
|
|
5875
5938
|
animate: {
|
|
@@ -5888,7 +5951,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5888
5951
|
}
|
|
5889
5952
|
},
|
|
5890
5953
|
onClick: () => {
|
|
5891
|
-
m ?
|
|
5954
|
+
m ? ke.back() : ke.replace(c ?? t);
|
|
5892
5955
|
},
|
|
5893
5956
|
className: N(
|
|
5894
5957
|
"bg-black/40 absolute w-full h-full left-0 top-0",
|
|
@@ -5896,19 +5959,19 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5896
5959
|
)
|
|
5897
5960
|
}
|
|
5898
5961
|
),
|
|
5899
|
-
/* @__PURE__ */
|
|
5900
|
-
|
|
5962
|
+
/* @__PURE__ */ g(
|
|
5963
|
+
ie.div,
|
|
5901
5964
|
{
|
|
5902
5965
|
id: e,
|
|
5903
5966
|
initial: {
|
|
5904
|
-
opacity:
|
|
5905
|
-
scale:
|
|
5906
|
-
y:
|
|
5967
|
+
opacity: w ? 0 : 1,
|
|
5968
|
+
scale: w ? 0.8 : void 0,
|
|
5969
|
+
y: w ? void 0 : window.innerHeight
|
|
5907
5970
|
},
|
|
5908
5971
|
animate: {
|
|
5909
5972
|
opacity: 1,
|
|
5910
5973
|
scale: 1,
|
|
5911
|
-
y:
|
|
5974
|
+
y: w ? void 0 : 0,
|
|
5912
5975
|
transition: {
|
|
5913
5976
|
ease: [0.32, 0.72, 0, 1],
|
|
5914
5977
|
duration: 0.3,
|
|
@@ -5916,9 +5979,9 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5916
5979
|
}
|
|
5917
5980
|
},
|
|
5918
5981
|
exit: {
|
|
5919
|
-
scale:
|
|
5920
|
-
opacity:
|
|
5921
|
-
y:
|
|
5982
|
+
scale: w ? 0.8 : void 0,
|
|
5983
|
+
opacity: w ? 0 : void 0,
|
|
5984
|
+
y: w ? void 0 : window.innerHeight,
|
|
5922
5985
|
transition: {
|
|
5923
5986
|
ease: [0.32, 0.72, 0, 1],
|
|
5924
5987
|
duration: 0.3
|
|
@@ -5927,33 +5990,33 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5927
5990
|
style: {
|
|
5928
5991
|
left: "50%",
|
|
5929
5992
|
translateX: "-50%",
|
|
5930
|
-
bottom:
|
|
5931
|
-
translateY:
|
|
5932
|
-
height:
|
|
5993
|
+
bottom: w ? "50%" : 0,
|
|
5994
|
+
translateY: w ? "50%" : 0,
|
|
5995
|
+
height: w ? "65%" : "95%"
|
|
5933
5996
|
},
|
|
5934
5997
|
onAnimationStart: (E) => {
|
|
5935
|
-
(E?.scale === 0.8 || E?.y > 50) && h.current &&
|
|
5998
|
+
(E?.scale === 0.8 || E?.y > 50) && h.current && v.restoreParentModal(h.current);
|
|
5936
5999
|
},
|
|
5937
6000
|
className: N(
|
|
5938
6001
|
"bg-base-1 absolute w-full lg:max-w-[600px] h-full rounded-6 overflow-hidden flex flex-col",
|
|
5939
|
-
!
|
|
6002
|
+
!w && "rounded-b-none",
|
|
5940
6003
|
n && "z-500",
|
|
5941
6004
|
l
|
|
5942
6005
|
),
|
|
5943
6006
|
children: [
|
|
5944
|
-
s && /* @__PURE__ */
|
|
5945
|
-
/* @__PURE__ */
|
|
6007
|
+
s && /* @__PURE__ */ g("div", { className: "flex items-start justify-between p-4 border-b border-base-3", children: [
|
|
6008
|
+
/* @__PURE__ */ g("div", { children: [
|
|
5946
6009
|
o && /* @__PURE__ */ d("p", { className: "font-medium text-lg", children: o }),
|
|
5947
6010
|
a && /* @__PURE__ */ d("p", { className: "text-base-11 text-xs", children: a })
|
|
5948
6011
|
] }),
|
|
5949
6012
|
/* @__PURE__ */ d(
|
|
5950
|
-
|
|
6013
|
+
U,
|
|
5951
6014
|
{
|
|
5952
6015
|
size: "xs",
|
|
5953
6016
|
onClick: () => {
|
|
5954
|
-
m ?
|
|
6017
|
+
m ? ke.back() : ke.replace(c ?? t);
|
|
5955
6018
|
},
|
|
5956
|
-
children: /* @__PURE__ */ d(
|
|
6019
|
+
children: /* @__PURE__ */ d(wt, { size: 20 })
|
|
5957
6020
|
}
|
|
5958
6021
|
)
|
|
5959
6022
|
] }),
|
|
@@ -5970,7 +6033,7 @@ const Zi = ({ name: e, ...t }) => {
|
|
|
5970
6033
|
)
|
|
5971
6034
|
] });
|
|
5972
6035
|
};
|
|
5973
|
-
function
|
|
6036
|
+
function oi({
|
|
5974
6037
|
checked: e,
|
|
5975
6038
|
onCheckedChange: t,
|
|
5976
6039
|
disabled: r = !1,
|
|
@@ -5979,7 +6042,7 @@ function ni({
|
|
|
5979
6042
|
className: a = ""
|
|
5980
6043
|
}) {
|
|
5981
6044
|
const s = Er();
|
|
5982
|
-
return /* @__PURE__ */
|
|
6045
|
+
return /* @__PURE__ */ g(
|
|
5983
6046
|
"button",
|
|
5984
6047
|
{
|
|
5985
6048
|
id: s,
|
|
@@ -6032,7 +6095,7 @@ function ni({
|
|
|
6032
6095
|
}
|
|
6033
6096
|
);
|
|
6034
6097
|
}
|
|
6035
|
-
const
|
|
6098
|
+
const ai = ({
|
|
6036
6099
|
label: e,
|
|
6037
6100
|
variant: t = "default",
|
|
6038
6101
|
color: r = "solid",
|
|
@@ -6044,7 +6107,7 @@ const oi = ({
|
|
|
6044
6107
|
maxTags: c,
|
|
6045
6108
|
validateTag: l
|
|
6046
6109
|
}) => {
|
|
6047
|
-
const [u, f] = z(""), [m, b] = z(!1), [h,
|
|
6110
|
+
const [u, f] = z(""), [m, b] = z(!1), [h, v] = z(null), w = T(null), E = T(null), S = T([]), _ = n.length > 0, D = T(
|
|
6048
6111
|
`taginput-${Math.random().toString(36).substr(2, 9)}`
|
|
6049
6112
|
).current, P = T(
|
|
6050
6113
|
`label-${Math.random().toString(36).substr(2, 9)}`
|
|
@@ -6059,24 +6122,24 @@ const oi = ({
|
|
|
6059
6122
|
C.preventDefault();
|
|
6060
6123
|
const F = u.trim();
|
|
6061
6124
|
if (c && n.length >= c) {
|
|
6062
|
-
|
|
6125
|
+
v(`Maximum of ${c} tags allowed`);
|
|
6063
6126
|
return;
|
|
6064
6127
|
}
|
|
6065
6128
|
if (n.includes(F)) {
|
|
6066
|
-
|
|
6129
|
+
v("Tag already exists");
|
|
6067
6130
|
return;
|
|
6068
6131
|
}
|
|
6069
6132
|
if (l) {
|
|
6070
6133
|
const I = l(F);
|
|
6071
6134
|
if (typeof I == "string") {
|
|
6072
|
-
|
|
6135
|
+
v(I);
|
|
6073
6136
|
return;
|
|
6074
6137
|
} else if (I === !1) {
|
|
6075
|
-
|
|
6138
|
+
v("Invalid tag");
|
|
6076
6139
|
return;
|
|
6077
6140
|
}
|
|
6078
6141
|
}
|
|
6079
|
-
o([...n, F]), f(""),
|
|
6142
|
+
o([...n, F]), f(""), v(null), M(`Added tag ${F}`);
|
|
6080
6143
|
} else if (C.key === "Backspace" && !u && n.length > 0) {
|
|
6081
6144
|
const F = n[n.length - 1];
|
|
6082
6145
|
o(n.slice(0, -1)), M(`Removed tag ${F}`);
|
|
@@ -6086,23 +6149,23 @@ const oi = ({
|
|
|
6086
6149
|
C.preventDefault();
|
|
6087
6150
|
const I = n[F], X = [...n];
|
|
6088
6151
|
X.splice(F, 1), o(X), setTimeout(() => {
|
|
6089
|
-
|
|
6152
|
+
w.current && w.current.focus();
|
|
6090
6153
|
}, 0), M(`Removed tag ${I}`);
|
|
6091
|
-
} else C.key === "ArrowRight" ? (C.preventDefault(), F < n.length - 1 ? S.current[F + 1]?.focus() :
|
|
6154
|
+
} else C.key === "ArrowRight" ? (C.preventDefault(), F < n.length - 1 ? S.current[F + 1]?.focus() : w.current?.focus()) : C.key === "ArrowLeft" && (C.preventDefault(), F > 0 && S.current[F - 1]?.focus());
|
|
6092
6155
|
}, Y = (C, F) => {
|
|
6093
6156
|
o(n.filter((I) => I !== C)), setTimeout(() => {
|
|
6094
|
-
F < n.length - 1 ? S.current[F]?.focus() : F > 0 ? S.current[F - 1]?.focus() :
|
|
6157
|
+
F < n.length - 1 ? S.current[F]?.focus() : F > 0 ? S.current[F - 1]?.focus() : w.current?.focus();
|
|
6095
6158
|
}, 0), M(`Removed tag ${C}`);
|
|
6096
6159
|
}, $ = (C) => {
|
|
6097
|
-
f(C.target.value),
|
|
6160
|
+
f(C.target.value), v(null);
|
|
6098
6161
|
}, p = () => {
|
|
6099
|
-
|
|
6162
|
+
w.current && w.current.focus();
|
|
6100
6163
|
}, M = (C) => {
|
|
6101
6164
|
console.log(`Accessibility announcement: ${C}`);
|
|
6102
6165
|
};
|
|
6103
|
-
return /* @__PURE__ */
|
|
6104
|
-
/* @__PURE__ */
|
|
6105
|
-
t === "default" ? /* @__PURE__ */
|
|
6166
|
+
return /* @__PURE__ */ g("div", { children: [
|
|
6167
|
+
/* @__PURE__ */ g("div", { className: "relative", ref: E, children: [
|
|
6168
|
+
t === "default" ? /* @__PURE__ */ g(
|
|
6106
6169
|
"label",
|
|
6107
6170
|
{
|
|
6108
6171
|
id: P,
|
|
@@ -6118,7 +6181,7 @@ const oi = ({
|
|
|
6118
6181
|
]
|
|
6119
6182
|
}
|
|
6120
6183
|
) : null,
|
|
6121
|
-
/* @__PURE__ */
|
|
6184
|
+
/* @__PURE__ */ g(
|
|
6122
6185
|
"div",
|
|
6123
6186
|
{
|
|
6124
6187
|
className: N("rounded-6 px-2 transition cursor-text pr-10", {
|
|
@@ -6135,7 +6198,7 @@ const oi = ({
|
|
|
6135
6198
|
"aria-labelledby": P,
|
|
6136
6199
|
"aria-describedby": s || h ? x : void 0,
|
|
6137
6200
|
children: [
|
|
6138
|
-
t === "floating" ? /* @__PURE__ */
|
|
6201
|
+
t === "floating" ? /* @__PURE__ */ g(
|
|
6139
6202
|
"label",
|
|
6140
6203
|
{
|
|
6141
6204
|
id: P,
|
|
@@ -6155,14 +6218,14 @@ const oi = ({
|
|
|
6155
6218
|
]
|
|
6156
6219
|
}
|
|
6157
6220
|
) : null,
|
|
6158
|
-
/* @__PURE__ */
|
|
6221
|
+
/* @__PURE__ */ g(
|
|
6159
6222
|
"div",
|
|
6160
6223
|
{
|
|
6161
6224
|
className: N("flex flex-wrap gap-1 items-center", {
|
|
6162
6225
|
"mt-2.5": t === "floating"
|
|
6163
6226
|
}),
|
|
6164
6227
|
children: [
|
|
6165
|
-
n.map((C, F) => /* @__PURE__ */
|
|
6228
|
+
n.map((C, F) => /* @__PURE__ */ g(
|
|
6166
6229
|
"div",
|
|
6167
6230
|
{
|
|
6168
6231
|
ref: (I) => {
|
|
@@ -6199,7 +6262,7 @@ const oi = ({
|
|
|
6199
6262
|
"input",
|
|
6200
6263
|
{
|
|
6201
6264
|
id: D,
|
|
6202
|
-
ref:
|
|
6265
|
+
ref: w,
|
|
6203
6266
|
type: "text",
|
|
6204
6267
|
className: "flex-grow min-w-[60px] bg-transparent outline-none placeholder:text-sm placeholder:text-secondarytext",
|
|
6205
6268
|
value: u,
|
|
@@ -6221,7 +6284,7 @@ const oi = ({
|
|
|
6221
6284
|
]
|
|
6222
6285
|
}
|
|
6223
6286
|
),
|
|
6224
|
-
a && /* @__PURE__ */ d("span", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ d(
|
|
6287
|
+
a && /* @__PURE__ */ d("span", { className: "absolute right-3 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ d(ze, {}) })
|
|
6225
6288
|
] }),
|
|
6226
6289
|
(s || h) && /* @__PURE__ */ d(
|
|
6227
6290
|
"p",
|
|
@@ -6234,15 +6297,15 @@ const oi = ({
|
|
|
6234
6297
|
),
|
|
6235
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" })
|
|
6236
6299
|
] });
|
|
6237
|
-
},
|
|
6238
|
-
const { control: r } =
|
|
6300
|
+
}, il = ({ name: e, ...t }) => {
|
|
6301
|
+
const { control: r } = Ue();
|
|
6239
6302
|
return r ? /* @__PURE__ */ d(
|
|
6240
|
-
|
|
6303
|
+
Qe,
|
|
6241
6304
|
{
|
|
6242
6305
|
name: e,
|
|
6243
6306
|
control: r,
|
|
6244
6307
|
render: ({ field: n, fieldState: o }) => /* @__PURE__ */ d(
|
|
6245
|
-
|
|
6308
|
+
ai,
|
|
6246
6309
|
{
|
|
6247
6310
|
tags: n.value,
|
|
6248
6311
|
onChange: (a) => n.onChange(a),
|
|
@@ -6251,14 +6314,14 @@ const oi = ({
|
|
|
6251
6314
|
}
|
|
6252
6315
|
)
|
|
6253
6316
|
}
|
|
6254
|
-
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */
|
|
6317
|
+
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */ g("p", { children: [
|
|
6255
6318
|
"Form control missing for field: ",
|
|
6256
6319
|
e
|
|
6257
6320
|
] }));
|
|
6258
|
-
},
|
|
6321
|
+
}, si = {
|
|
6259
6322
|
brand: "ring-1 ring-brand",
|
|
6260
6323
|
solid: "ring-1 ring-base-6"
|
|
6261
|
-
}, gn =
|
|
6324
|
+
}, gn = Xe(
|
|
6262
6325
|
({
|
|
6263
6326
|
label: e,
|
|
6264
6327
|
labelPosition: t = "default",
|
|
@@ -6271,7 +6334,7 @@ const oi = ({
|
|
|
6271
6334
|
...c
|
|
6272
6335
|
}, l) => {
|
|
6273
6336
|
const [u, f] = z(!1), m = s !== "" && s !== null && s !== void 0;
|
|
6274
|
-
return /* @__PURE__ */
|
|
6337
|
+
return /* @__PURE__ */ g("div", { className: "relative", children: [
|
|
6275
6338
|
t === "default" ? /* @__PURE__ */ d(
|
|
6276
6339
|
"label",
|
|
6277
6340
|
{
|
|
@@ -6282,7 +6345,7 @@ const oi = ({
|
|
|
6282
6345
|
children: e
|
|
6283
6346
|
}
|
|
6284
6347
|
) : null,
|
|
6285
|
-
/* @__PURE__ */
|
|
6348
|
+
/* @__PURE__ */ g(
|
|
6286
6349
|
"div",
|
|
6287
6350
|
{
|
|
6288
6351
|
className: N(t === "default" ? "p-0" : "pt-5 pb-2", {
|
|
@@ -6308,7 +6371,7 @@ const oi = ({
|
|
|
6308
6371
|
{
|
|
6309
6372
|
ref: l,
|
|
6310
6373
|
className: N(
|
|
6311
|
-
!n && u &&
|
|
6374
|
+
!n && u && si[o],
|
|
6312
6375
|
"bg-base-3 border border-base-4 light-theme:drop-shadow-sm rounded-6 w-full focus-visible:outline-none customscrollbarnohide",
|
|
6313
6376
|
"placeholder:text-base-11 text-sm",
|
|
6314
6377
|
"resize-none",
|
|
@@ -6335,25 +6398,25 @@ const oi = ({
|
|
|
6335
6398
|
}
|
|
6336
6399
|
);
|
|
6337
6400
|
gn.displayName = "TextArea";
|
|
6338
|
-
const
|
|
6401
|
+
const ll = ({
|
|
6339
6402
|
name: e,
|
|
6340
6403
|
customRead: t,
|
|
6341
6404
|
customSet: r,
|
|
6342
6405
|
...n
|
|
6343
6406
|
}) => {
|
|
6344
|
-
const { control: o } =
|
|
6407
|
+
const { control: o } = Ue(), a = A(
|
|
6345
6408
|
(i) => t ? t(i) : i === null ? Wr(i) : i,
|
|
6346
6409
|
[t]
|
|
6347
6410
|
), s = A(
|
|
6348
|
-
(i) => r ? r(i) : i === null ?
|
|
6411
|
+
(i) => r ? r(i) : i === null ? Lt(i) : i,
|
|
6349
6412
|
[r]
|
|
6350
6413
|
);
|
|
6351
6414
|
return o ? /* @__PURE__ */ d(
|
|
6352
|
-
|
|
6415
|
+
Qe,
|
|
6353
6416
|
{
|
|
6354
6417
|
name: e,
|
|
6355
6418
|
control: o,
|
|
6356
|
-
render: ({ field: i, fieldState: c }) => /* @__PURE__ */
|
|
6419
|
+
render: ({ field: i, fieldState: c }) => /* @__PURE__ */ g("div", { children: [
|
|
6357
6420
|
/* @__PURE__ */ d(
|
|
6358
6421
|
gn,
|
|
6359
6422
|
{
|
|
@@ -6367,11 +6430,11 @@ const sl = ({
|
|
|
6367
6430
|
c.error ? /* @__PURE__ */ d("span", { role: "alert", className: "text-red-9 text-sm mt-1 ml-0.5", children: c.error.message }) : null
|
|
6368
6431
|
] })
|
|
6369
6432
|
}
|
|
6370
|
-
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */
|
|
6433
|
+
) : (console.error(`Form control is missing for field: ${e}`), /* @__PURE__ */ g("p", { children: [
|
|
6371
6434
|
"Form control missing for field: ",
|
|
6372
6435
|
e
|
|
6373
6436
|
] }));
|
|
6374
|
-
},
|
|
6437
|
+
}, ii = [
|
|
6375
6438
|
"Lunes",
|
|
6376
6439
|
"Martes",
|
|
6377
6440
|
"Miercoles",
|
|
@@ -6379,11 +6442,11 @@ const sl = ({
|
|
|
6379
6442
|
"Viernes",
|
|
6380
6443
|
"Sábado",
|
|
6381
6444
|
"Domingo"
|
|
6382
|
-
],
|
|
6445
|
+
], cl = () => /* @__PURE__ */ d(li, {}), li = () => /* @__PURE__ */ d("div", { children: ii.map((e) => /* @__PURE__ */ d(ci, { day: e }, e)) }), ci = ({ day: e }) => {
|
|
6383
6446
|
const [t, r] = z(!1), n = T(null);
|
|
6384
6447
|
return B(() => {
|
|
6385
6448
|
n.current && bn(n.current);
|
|
6386
|
-
}, []), /* @__PURE__ */
|
|
6449
|
+
}, []), /* @__PURE__ */ g(
|
|
6387
6450
|
"div",
|
|
6388
6451
|
{
|
|
6389
6452
|
ref: n,
|
|
@@ -6392,10 +6455,10 @@ const sl = ({
|
|
|
6392
6455
|
"bg-uielbg border border-transparent": !t
|
|
6393
6456
|
}),
|
|
6394
6457
|
children: [
|
|
6395
|
-
/* @__PURE__ */
|
|
6458
|
+
/* @__PURE__ */ g("div", { className: "flex items-center justify-between", children: [
|
|
6396
6459
|
/* @__PURE__ */ d("p", { children: e }),
|
|
6397
6460
|
/* @__PURE__ */ d(
|
|
6398
|
-
|
|
6461
|
+
oi,
|
|
6399
6462
|
{
|
|
6400
6463
|
className: "mt-0",
|
|
6401
6464
|
checked: t,
|
|
@@ -6403,35 +6466,35 @@ const sl = ({
|
|
|
6403
6466
|
}
|
|
6404
6467
|
)
|
|
6405
6468
|
] }),
|
|
6406
|
-
t ? /* @__PURE__ */ d(
|
|
6469
|
+
t ? /* @__PURE__ */ d(ui, {}) : null
|
|
6407
6470
|
]
|
|
6408
6471
|
},
|
|
6409
6472
|
e
|
|
6410
6473
|
);
|
|
6411
|
-
},
|
|
6474
|
+
}, ui = () => {
|
|
6412
6475
|
const [e, t] = z([
|
|
6413
6476
|
{ from: "08:00", to: "12:00" },
|
|
6414
6477
|
{ from: "14:00", to: "18:00" }
|
|
6415
6478
|
]), r = T(null);
|
|
6416
6479
|
return B(() => {
|
|
6417
6480
|
r.current && bn(r.current);
|
|
6418
|
-
}, []), /* @__PURE__ */
|
|
6419
|
-
e.map((n, o) => /* @__PURE__ */
|
|
6481
|
+
}, []), /* @__PURE__ */ g("div", { ref: r, children: [
|
|
6482
|
+
e.map((n, o) => /* @__PURE__ */ g(
|
|
6420
6483
|
"div",
|
|
6421
6484
|
{
|
|
6422
6485
|
className: "flex items-center justify-between mt-2",
|
|
6423
6486
|
children: [
|
|
6424
6487
|
/* @__PURE__ */ d("p", { className: "text-sm text-secondarytext", children: "De" }),
|
|
6425
|
-
/* @__PURE__ */ d(
|
|
6488
|
+
/* @__PURE__ */ d(U, { color: "solid", className: "w-24", children: n.from }),
|
|
6426
6489
|
/* @__PURE__ */ d("p", { className: "text-sm text-secondarytext mx-1", children: "a" }),
|
|
6427
|
-
/* @__PURE__ */ d(
|
|
6428
|
-
/* @__PURE__ */ d(
|
|
6490
|
+
/* @__PURE__ */ d(U, { color: "solid", className: "w-24", children: n.to }),
|
|
6491
|
+
/* @__PURE__ */ d(U, { className: "rounded-full", children: /* @__PURE__ */ d(wt, { className: "text-secondarytext", size: 20 }) })
|
|
6429
6492
|
]
|
|
6430
6493
|
},
|
|
6431
6494
|
`${n.from}${o}`
|
|
6432
6495
|
)),
|
|
6433
|
-
/* @__PURE__ */
|
|
6434
|
-
|
|
6496
|
+
/* @__PURE__ */ g(
|
|
6497
|
+
U,
|
|
6435
6498
|
{
|
|
6436
6499
|
onClick: () => t((n) => [...n, { from: "19:00", to: "21:00" }]),
|
|
6437
6500
|
className: "w-full mt-4",
|
|
@@ -6445,74 +6508,75 @@ const sl = ({
|
|
|
6445
6508
|
] });
|
|
6446
6509
|
};
|
|
6447
6510
|
export {
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6511
|
+
Bi as AliveScope,
|
|
6512
|
+
Ci as Avatar,
|
|
6513
|
+
Mi as AvatarsGroup,
|
|
6514
|
+
U as Button,
|
|
6452
6515
|
Zr as Calendar,
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
Wi as
|
|
6456
|
-
|
|
6457
|
-
Yi as
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
ji as
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6516
|
+
vs as Checkbox,
|
|
6517
|
+
Ri as ConfirmationDialog,
|
|
6518
|
+
Wi as DatePickerDemo,
|
|
6519
|
+
Ai as DatePickerPopover,
|
|
6520
|
+
Yi as DateTimePicker,
|
|
6521
|
+
Ii as ElasticHeader,
|
|
6522
|
+
Ti as FocusTrap,
|
|
6523
|
+
ji as Form,
|
|
6524
|
+
Hi as FormInput,
|
|
6525
|
+
Ui as FormMultiSelect,
|
|
6526
|
+
tl as FormSelect,
|
|
6527
|
+
ol as FormSubmit,
|
|
6528
|
+
il as FormTags,
|
|
6529
|
+
ll as FormTextArea,
|
|
6530
|
+
cl as FormWorkingHours,
|
|
6531
|
+
Ds as Icon,
|
|
6468
6532
|
sn as Input,
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6533
|
+
qi as KeepAlive,
|
|
6534
|
+
Xi as List,
|
|
6535
|
+
Ki as ListItem,
|
|
6536
|
+
al as ModalsProvider,
|
|
6537
|
+
_s as MultiSelect,
|
|
6538
|
+
Qi as PageScroller,
|
|
6539
|
+
Ji as PageTitle,
|
|
6540
|
+
ps as PopoverCard,
|
|
6541
|
+
Li as PopoverCardContent,
|
|
6542
|
+
Fi as PopoverCardFooter,
|
|
6543
|
+
Oi as PopoverCardHeader,
|
|
6544
|
+
Ze as Portal,
|
|
6545
|
+
Zi as SearchInput,
|
|
6546
|
+
el as SegmentedControl,
|
|
6547
|
+
ei as Select,
|
|
6548
|
+
rl as Separator,
|
|
6549
|
+
nl as ShowMoreText,
|
|
6550
|
+
ti as Spinner,
|
|
6551
|
+
sl as SuperModal,
|
|
6552
|
+
oi as Switch,
|
|
6553
|
+
ai as Tags,
|
|
6490
6554
|
gn as TextArea,
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6555
|
+
_i as TimePicker,
|
|
6556
|
+
Bn as calculatePopoverPosition,
|
|
6557
|
+
lt as checkOverflow,
|
|
6494
6558
|
N as cn,
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6559
|
+
ki as debounce,
|
|
6560
|
+
Ei as extractDirtyData,
|
|
6561
|
+
Yn as generateInitials,
|
|
6498
6562
|
Wr as nullRead,
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6563
|
+
Lt as nullSet,
|
|
6564
|
+
In as removeWhitespaces,
|
|
6565
|
+
Rn as setFocusEnd,
|
|
6566
|
+
Ge as throttle,
|
|
6567
|
+
$i as toTitleCase,
|
|
6568
|
+
Di as useClickAway,
|
|
6569
|
+
Pi as useClickAwayAdvanced,
|
|
6506
6570
|
Bt as useClickAwayWithRef,
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6571
|
+
Vi as useKeepAlive,
|
|
6572
|
+
Vn as useKeyListener,
|
|
6573
|
+
yt as useLargeScreen,
|
|
6510
6574
|
Ar as useMergedRef,
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6575
|
+
zi as useMethods,
|
|
6576
|
+
ri as useModals,
|
|
6577
|
+
jn as useOverflow,
|
|
6578
|
+
Si as useOverflowState,
|
|
6515
6579
|
Ht as usePopover,
|
|
6516
|
-
|
|
6517
|
-
|
|
6580
|
+
Hn as useRipple,
|
|
6581
|
+
Gi as useScroller
|
|
6518
6582
|
};
|