@binamik/components 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DatePicker/DatePicker.types.d.ts +1 -0
- package/dist/binamik-components.es.js +273 -269
- package/dist/binamik-components.es.js.map +1 -1
- package/dist/binamik-components.umd.js +3 -3
- package/dist/binamik-components.umd.js.map +1 -1
- package/dist/components.css +1 -1
- package/package.json +1 -1
|
@@ -1620,14 +1620,14 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
1620
1620
|
}
|
|
1621
1621
|
g = !1;
|
|
1622
1622
|
}
|
|
1623
|
-
const
|
|
1624
|
-
if (i.indexOf(
|
|
1623
|
+
const x = f.length === 0 ? "" : f.length === 1 ? f[0] : a(f).join(":"), v = h ? x + Bn : x, k = v + y;
|
|
1624
|
+
if (i.indexOf(k) > -1)
|
|
1625
1625
|
continue;
|
|
1626
|
-
i.push(
|
|
1627
|
-
const
|
|
1628
|
-
for (let
|
|
1629
|
-
const O =
|
|
1630
|
-
i.push(
|
|
1626
|
+
i.push(k);
|
|
1627
|
+
const w = o(y, g);
|
|
1628
|
+
for (let C = 0; C < w.length; ++C) {
|
|
1629
|
+
const O = w[C];
|
|
1630
|
+
i.push(v + O);
|
|
1631
1631
|
}
|
|
1632
1632
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1633
1633
|
}
|
|
@@ -1672,7 +1672,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
1672
1672
|
const r = Bo.exec(e);
|
|
1673
1673
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1674
1674
|
}, Yo = (e) => e === "position" || e === "percentage", Lo = (e) => e === "image" || e === "url", jo = (e) => e === "length" || e === "size" || e === "bg-size", Ho = (e) => e === "length", Rl = (e) => e === "number", _l = (e) => e === "family-name", Vo = (e) => e === "shadow", Fl = () => {
|
|
1675
|
-
const e = oe("color"), t = oe("font"), n = oe("text"), r = oe("font-weight"), o = oe("tracking"), a = oe("leading"), i = oe("breakpoint"), s = oe("container"), l = oe("spacing"), c = oe("radius"), u = oe("shadow"), d = oe("inset-shadow"), f = oe("text-shadow"), h = oe("drop-shadow"), b = oe("blur"), p = oe("perspective"), g = oe("aspect"), y = oe("ease"),
|
|
1675
|
+
const e = oe("color"), t = oe("font"), n = oe("text"), r = oe("font-weight"), o = oe("tracking"), a = oe("leading"), i = oe("breakpoint"), s = oe("container"), l = oe("spacing"), c = oe("radius"), u = oe("shadow"), d = oe("inset-shadow"), f = oe("text-shadow"), h = oe("drop-shadow"), b = oe("blur"), p = oe("perspective"), g = oe("aspect"), y = oe("ease"), x = oe("animate"), v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [
|
|
1676
1676
|
"center",
|
|
1677
1677
|
"top",
|
|
1678
1678
|
"bottom",
|
|
@@ -1690,9 +1690,9 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
1690
1690
|
"bottom-left",
|
|
1691
1691
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1692
1692
|
"left-bottom"
|
|
1693
|
-
],
|
|
1693
|
+
], w = () => [...k(), N, E], C = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", "contain", "none"], S = () => [N, E, l], A = () => [ct, "full", "auto", ...S()], T = () => [je, "none", "subgrid", N, E], I = () => ["auto", {
|
|
1694
1694
|
span: ["full", je, N, E]
|
|
1695
|
-
}, je, N, E], L = () => [je, "auto", N, E], j = () => ["auto", "min", "max", "fr", N, E], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...S()], H = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], P = () => [e, N, E], V = () => [...
|
|
1695
|
+
}, je, N, E], L = () => [je, "auto", N, E], j = () => ["auto", "min", "max", "fr", N, E], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...S()], H = () => [ct, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], P = () => [e, N, E], V = () => [...k(), Wr, Nr, {
|
|
1696
1696
|
position: [N, E]
|
|
1697
1697
|
}], Q = () => ["no-repeat", {
|
|
1698
1698
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1766,14 +1766,14 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
1766
1766
|
* @see https://tailwindcss.com/docs/break-after
|
|
1767
1767
|
*/
|
|
1768
1768
|
"break-after": [{
|
|
1769
|
-
"break-after":
|
|
1769
|
+
"break-after": v()
|
|
1770
1770
|
}],
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Break Before
|
|
1773
1773
|
* @see https://tailwindcss.com/docs/break-before
|
|
1774
1774
|
*/
|
|
1775
1775
|
"break-before": [{
|
|
1776
|
-
"break-before":
|
|
1776
|
+
"break-before": v()
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Break Inside
|
|
@@ -1837,28 +1837,28 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
1837
1837
|
* @see https://tailwindcss.com/docs/object-position
|
|
1838
1838
|
*/
|
|
1839
1839
|
"object-position": [{
|
|
1840
|
-
object:
|
|
1840
|
+
object: w()
|
|
1841
1841
|
}],
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Overflow
|
|
1844
1844
|
* @see https://tailwindcss.com/docs/overflow
|
|
1845
1845
|
*/
|
|
1846
1846
|
overflow: [{
|
|
1847
|
-
overflow:
|
|
1847
|
+
overflow: C()
|
|
1848
1848
|
}],
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Overflow X
|
|
1851
1851
|
* @see https://tailwindcss.com/docs/overflow
|
|
1852
1852
|
*/
|
|
1853
1853
|
"overflow-x": [{
|
|
1854
|
-
"overflow-x":
|
|
1854
|
+
"overflow-x": C()
|
|
1855
1855
|
}],
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Overflow Y
|
|
1858
1858
|
* @see https://tailwindcss.com/docs/overflow
|
|
1859
1859
|
*/
|
|
1860
1860
|
"overflow-y": [{
|
|
1861
|
-
"overflow-y":
|
|
1861
|
+
"overflow-y": C()
|
|
1862
1862
|
}],
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Overscroll Behavior
|
|
@@ -3306,7 +3306,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
3306
3306
|
}]
|
|
3307
3307
|
}],
|
|
3308
3308
|
"mask-image-radial-pos": [{
|
|
3309
|
-
"mask-radial-at":
|
|
3309
|
+
"mask-radial-at": k()
|
|
3310
3310
|
}],
|
|
3311
3311
|
"mask-image-conic-pos": [{
|
|
3312
3312
|
"mask-conic": [F]
|
|
@@ -3629,7 +3629,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
3629
3629
|
* @see https://tailwindcss.com/docs/animation
|
|
3630
3630
|
*/
|
|
3631
3631
|
animate: [{
|
|
3632
|
-
animate: ["none",
|
|
3632
|
+
animate: ["none", x, N, E]
|
|
3633
3633
|
}],
|
|
3634
3634
|
// ------------------
|
|
3635
3635
|
// --- Transforms ---
|
|
@@ -3653,7 +3653,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
3653
3653
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3654
3654
|
*/
|
|
3655
3655
|
"perspective-origin": [{
|
|
3656
|
-
"perspective-origin":
|
|
3656
|
+
"perspective-origin": w()
|
|
3657
3657
|
}],
|
|
3658
3658
|
/**
|
|
3659
3659
|
* Rotate
|
|
@@ -3749,7 +3749,7 @@ const Or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Sr = To, X
|
|
|
3749
3749
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3750
3750
|
*/
|
|
3751
3751
|
"transform-origin": [{
|
|
3752
|
-
origin:
|
|
3752
|
+
origin: w()
|
|
3753
3753
|
}],
|
|
3754
3754
|
/**
|
|
3755
3755
|
* Transform Style
|
|
@@ -4271,8 +4271,8 @@ function qo(e) {
|
|
|
4271
4271
|
const f = it(e.timeZone, e), h = f > 0 ? Math.floor(f) : Math.ceil(f), p = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - h, g = h !== n, y = p - l;
|
|
4272
4272
|
if (g && y) {
|
|
4273
4273
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + y);
|
|
4274
|
-
const
|
|
4275
|
-
|
|
4274
|
+
const x = it(e.timeZone, e), v = x > 0 ? Math.floor(x) : Math.ceil(x), k = h - v;
|
|
4275
|
+
k && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + k), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + k));
|
|
4276
4276
|
}
|
|
4277
4277
|
}
|
|
4278
4278
|
class Te extends Me {
|
|
@@ -6887,37 +6887,37 @@ function _e(e, t, n = De) {
|
|
|
6887
6887
|
});
|
|
6888
6888
|
}
|
|
6889
6889
|
function qu(e, t, n, r, o) {
|
|
6890
|
-
const { disabled: a, hidden: i, modifiers: s, showOutsideDays: l, broadcastCalendar: c, today: u = o.today() } = t, { isSameDay: d, isSameMonth: f, startOfMonth: h, isBefore: b, endOfMonth: p, isAfter: g } = o, y = n && h(n),
|
|
6890
|
+
const { disabled: a, hidden: i, modifiers: s, showOutsideDays: l, broadcastCalendar: c, today: u = o.today() } = t, { isSameDay: d, isSameMonth: f, startOfMonth: h, isBefore: b, endOfMonth: p, isAfter: g } = o, y = n && h(n), x = r && p(r), v = {
|
|
6891
6891
|
[J.focused]: [],
|
|
6892
6892
|
[J.outside]: [],
|
|
6893
6893
|
[J.disabled]: [],
|
|
6894
6894
|
[J.hidden]: [],
|
|
6895
6895
|
[J.today]: []
|
|
6896
|
-
},
|
|
6897
|
-
for (const
|
|
6898
|
-
const { date:
|
|
6899
|
-
!c && !l && S || c && l === !1 && S, j = d(
|
|
6900
|
-
S &&
|
|
6896
|
+
}, k = {};
|
|
6897
|
+
for (const w of e) {
|
|
6898
|
+
const { date: C, displayMonth: O } = w, S = !!(O && !f(C, O)), A = !!(y && b(C, y)), T = !!(x && g(C, x)), I = !!(a && _e(C, a, o)), L = !!(i && _e(C, i, o)) || A || T || // Broadcast calendar will show outside days as default
|
|
6899
|
+
!c && !l && S || c && l === !1 && S, j = d(C, u);
|
|
6900
|
+
S && v.outside.push(w), I && v.disabled.push(w), L && v.hidden.push(w), j && v.today.push(w), s && Object.keys(s).forEach(($) => {
|
|
6901
6901
|
const K = s?.[$];
|
|
6902
|
-
K && _e(
|
|
6902
|
+
K && _e(C, K, o) && (k[$] ? k[$].push(w) : k[$] = [w]);
|
|
6903
6903
|
});
|
|
6904
6904
|
}
|
|
6905
|
-
return (
|
|
6906
|
-
const
|
|
6905
|
+
return (w) => {
|
|
6906
|
+
const C = {
|
|
6907
6907
|
[J.focused]: !1,
|
|
6908
6908
|
[J.disabled]: !1,
|
|
6909
6909
|
[J.hidden]: !1,
|
|
6910
6910
|
[J.outside]: !1,
|
|
6911
6911
|
[J.today]: !1
|
|
6912
6912
|
}, O = {};
|
|
6913
|
-
for (const S in
|
|
6914
|
-
const A =
|
|
6915
|
-
|
|
6913
|
+
for (const S in v) {
|
|
6914
|
+
const A = v[S];
|
|
6915
|
+
C[S] = A.some((T) => T === w);
|
|
6916
6916
|
}
|
|
6917
|
-
for (const S in
|
|
6918
|
-
O[S] =
|
|
6917
|
+
for (const S in k)
|
|
6918
|
+
O[S] = k[S].some((A) => A === w);
|
|
6919
6919
|
return {
|
|
6920
|
-
...
|
|
6920
|
+
...C,
|
|
6921
6921
|
// custom modifiers should override all the previous ones
|
|
6922
6922
|
...O
|
|
6923
6923
|
};
|
|
@@ -7123,49 +7123,49 @@ function yf(e, t, { classNames: n, months: r, focused: o, dateLib: a }) {
|
|
|
7123
7123
|
r.length === 0 || c.length === 0 || r.length !== c.length)
|
|
7124
7124
|
return;
|
|
7125
7125
|
const u = a.isSameMonth(r[0].date, c[0].date), d = a.isAfter(r[0].date, c[0].date), f = d ? n[fe.caption_after_enter] : n[fe.caption_before_enter], h = d ? n[fe.weeks_after_enter] : n[fe.weeks_before_enter], b = i.current, p = e.current.cloneNode(!0);
|
|
7126
|
-
if (p instanceof HTMLElement ? (Mn(p).forEach((
|
|
7127
|
-
if (!(
|
|
7126
|
+
if (p instanceof HTMLElement ? (Mn(p).forEach((v) => {
|
|
7127
|
+
if (!(v instanceof HTMLElement))
|
|
7128
7128
|
return;
|
|
7129
|
-
const
|
|
7130
|
-
|
|
7131
|
-
const
|
|
7132
|
-
|
|
7133
|
-
const
|
|
7134
|
-
|
|
7129
|
+
const k = pf(v);
|
|
7130
|
+
k && v.contains(k) && v.removeChild(k);
|
|
7131
|
+
const w = On(v);
|
|
7132
|
+
w && w.classList.remove(f);
|
|
7133
|
+
const C = Sn(v);
|
|
7134
|
+
C && C.classList.remove(h);
|
|
7135
7135
|
}), i.current = p) : i.current = null, l.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
7136
7136
|
o)
|
|
7137
7137
|
return;
|
|
7138
7138
|
const g = b instanceof HTMLElement ? Mn(b) : [], y = Mn(e.current);
|
|
7139
|
-
if (y?.every((
|
|
7139
|
+
if (y?.every((x) => x instanceof HTMLElement) && g && g.every((x) => x instanceof HTMLElement)) {
|
|
7140
7140
|
l.current = !0, e.current.style.isolation = "isolate";
|
|
7141
|
-
const
|
|
7142
|
-
|
|
7143
|
-
const
|
|
7144
|
-
if (!
|
|
7141
|
+
const x = gf(e.current);
|
|
7142
|
+
x && (x.style.zIndex = "1"), y.forEach((v, k) => {
|
|
7143
|
+
const w = g[k];
|
|
7144
|
+
if (!w)
|
|
7145
7145
|
return;
|
|
7146
|
-
|
|
7147
|
-
const
|
|
7148
|
-
|
|
7149
|
-
const O = Sn(
|
|
7146
|
+
v.style.position = "relative", v.style.overflow = "hidden";
|
|
7147
|
+
const C = On(v);
|
|
7148
|
+
C && C.classList.add(f);
|
|
7149
|
+
const O = Sn(v);
|
|
7150
7150
|
O && O.classList.add(h);
|
|
7151
7151
|
const S = () => {
|
|
7152
|
-
l.current = !1, e.current && (e.current.style.isolation = ""),
|
|
7152
|
+
l.current = !1, e.current && (e.current.style.isolation = ""), x && (x.style.zIndex = ""), C && C.classList.remove(f), O && O.classList.remove(h), v.style.position = "", v.style.overflow = "", v.contains(w) && v.removeChild(w);
|
|
7153
7153
|
};
|
|
7154
|
-
|
|
7155
|
-
const A = bf(
|
|
7154
|
+
w.style.pointerEvents = "none", w.style.position = "absolute", w.style.overflow = "hidden", w.setAttribute("aria-hidden", "true");
|
|
7155
|
+
const A = bf(w);
|
|
7156
7156
|
A && (A.style.opacity = "0");
|
|
7157
|
-
const T = On(
|
|
7157
|
+
const T = On(w);
|
|
7158
7158
|
T && (T.classList.add(d ? n[fe.caption_before_exit] : n[fe.caption_after_exit]), T.addEventListener("animationend", S));
|
|
7159
|
-
const I = Sn(
|
|
7160
|
-
I && I.classList.add(d ? n[fe.weeks_before_exit] : n[fe.weeks_after_exit]),
|
|
7159
|
+
const I = Sn(w);
|
|
7160
|
+
I && I.classList.add(d ? n[fe.weeks_before_exit] : n[fe.weeks_after_exit]), v.insertBefore(w, v.firstChild);
|
|
7161
7161
|
});
|
|
7162
7162
|
}
|
|
7163
7163
|
});
|
|
7164
7164
|
}
|
|
7165
7165
|
function vf(e, t, n, r) {
|
|
7166
|
-
const o = e[0], a = e[e.length - 1], { ISOWeek: i, fixedWeeks: s, broadcastCalendar: l } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: h, endOfMonth: b, endOfWeek: p, isAfter: g, startOfBroadcastWeek: y, startOfISOWeek:
|
|
7166
|
+
const o = e[0], a = e[e.length - 1], { ISOWeek: i, fixedWeeks: s, broadcastCalendar: l } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: h, endOfMonth: b, endOfWeek: p, isAfter: g, startOfBroadcastWeek: y, startOfISOWeek: x, startOfWeek: v } = r, k = l ? y(o, r) : i ? x(o) : v(o), w = l ? f(a) : i ? h(b(a)) : p(b(a)), C = t && (l ? f(t) : i ? h(t) : p(t)), O = C && g(w, C) ? C : w, S = u(O, k), A = d(a, o) + 1, T = [];
|
|
7167
7167
|
for (let j = 0; j <= S; j++) {
|
|
7168
|
-
const $ = c(
|
|
7168
|
+
const $ = c(k, j);
|
|
7169
7169
|
T.push($);
|
|
7170
7170
|
}
|
|
7171
7171
|
const L = (l ? 35 : 42) * A;
|
|
@@ -7207,19 +7207,19 @@ function Yr(e, t, n, r) {
|
|
|
7207
7207
|
}
|
|
7208
7208
|
function kf(e, t, n, r) {
|
|
7209
7209
|
const { addDays: o, endOfBroadcastWeek: a, endOfISOWeek: i, endOfMonth: s, endOfWeek: l, getISOWeek: c, getWeek: u, startOfBroadcastWeek: d, startOfISOWeek: f, startOfWeek: h } = r, b = e.reduce((p, g) => {
|
|
7210
|
-
const y = n.broadcastCalendar ? d(g, r) : n.ISOWeek ? f(g) : h(g),
|
|
7211
|
-
if (n.fixedWeeks &&
|
|
7210
|
+
const y = n.broadcastCalendar ? d(g, r) : n.ISOWeek ? f(g) : h(g), x = n.broadcastCalendar ? a(g) : n.ISOWeek ? i(s(g)) : l(s(g)), v = t.filter((O) => O >= y && O <= x), k = n.broadcastCalendar ? 35 : 42;
|
|
7211
|
+
if (n.fixedWeeks && v.length < k) {
|
|
7212
7212
|
const O = t.filter((S) => {
|
|
7213
|
-
const A =
|
|
7214
|
-
return S >
|
|
7213
|
+
const A = k - v.length;
|
|
7214
|
+
return S > x && S <= o(x, A);
|
|
7215
7215
|
});
|
|
7216
|
-
|
|
7216
|
+
v.push(...O);
|
|
7217
7217
|
}
|
|
7218
|
-
const
|
|
7218
|
+
const w = v.reduce((O, S) => {
|
|
7219
7219
|
const A = n.ISOWeek ? c(S) : u(S), T = O.find((L) => L.weekNumber === A), I = new sa(S, g, r);
|
|
7220
7220
|
return T ? T.days.push(I) : O.push(new yu(A, [I])), O;
|
|
7221
|
-
}, []),
|
|
7222
|
-
return p.push(
|
|
7221
|
+
}, []), C = new bu(g, w);
|
|
7222
|
+
return p.push(C), p;
|
|
7223
7223
|
}, []);
|
|
7224
7224
|
return n.reverseMonths ? b.reverse() : b;
|
|
7225
7225
|
}
|
|
@@ -7266,22 +7266,22 @@ function Pf(e, t) {
|
|
|
7266
7266
|
e.month ? i : void 0
|
|
7267
7267
|
);
|
|
7268
7268
|
sn(() => {
|
|
7269
|
-
const
|
|
7270
|
-
l(
|
|
7269
|
+
const k = Yr(e, n, r, t);
|
|
7270
|
+
l(k);
|
|
7271
7271
|
}, [e.timeZone]);
|
|
7272
7272
|
const { months: c, weeks: u, days: d, previousMonth: f, nextMonth: h } = he(() => {
|
|
7273
|
-
const
|
|
7273
|
+
const k = xf(s, r, { numberOfMonths: e.numberOfMonths }, t), w = vf(k, e.endMonth ? a(e.endMonth) : void 0, {
|
|
7274
7274
|
ISOWeek: e.ISOWeek,
|
|
7275
7275
|
fixedWeeks: e.fixedWeeks,
|
|
7276
7276
|
broadcastCalendar: e.broadcastCalendar
|
|
7277
|
-
}, t),
|
|
7277
|
+
}, t), C = kf(k, w, {
|
|
7278
7278
|
broadcastCalendar: e.broadcastCalendar,
|
|
7279
7279
|
fixedWeeks: e.fixedWeeks,
|
|
7280
7280
|
ISOWeek: e.ISOWeek,
|
|
7281
7281
|
reverseMonths: e.reverseMonths
|
|
7282
|
-
}, t), O = Sf(
|
|
7282
|
+
}, t), O = Sf(C), S = wf(C), A = Of(s, n, e, t), T = Mf(s, r, e, t);
|
|
7283
7283
|
return {
|
|
7284
|
-
months:
|
|
7284
|
+
months: C,
|
|
7285
7285
|
weeks: O,
|
|
7286
7286
|
days: S,
|
|
7287
7287
|
previousMonth: A,
|
|
@@ -7300,11 +7300,11 @@ function Pf(e, t) {
|
|
|
7300
7300
|
e.numberOfMonths,
|
|
7301
7301
|
e.pagedNavigation,
|
|
7302
7302
|
e.reverseMonths
|
|
7303
|
-
]), { disableNavigation: b, onMonthChange: p } = e, g = (
|
|
7303
|
+
]), { disableNavigation: b, onMonthChange: p } = e, g = (k) => u.some((w) => w.days.some((C) => C.isEqualTo(k))), y = (k) => {
|
|
7304
7304
|
if (b)
|
|
7305
7305
|
return;
|
|
7306
|
-
let
|
|
7307
|
-
n &&
|
|
7306
|
+
let w = o(k);
|
|
7307
|
+
n && w < o(n) && (w = o(n)), r && w > o(r) && (w = o(r)), l(w), p?.(w);
|
|
7308
7308
|
};
|
|
7309
7309
|
return {
|
|
7310
7310
|
months: c,
|
|
@@ -7315,8 +7315,8 @@ function Pf(e, t) {
|
|
|
7315
7315
|
previousMonth: f,
|
|
7316
7316
|
nextMonth: h,
|
|
7317
7317
|
goToMonth: y,
|
|
7318
|
-
goToDay: (
|
|
7319
|
-
g(
|
|
7318
|
+
goToDay: (k) => {
|
|
7319
|
+
g(k) || y(k.date);
|
|
7320
7320
|
}
|
|
7321
7321
|
};
|
|
7322
7322
|
}
|
|
@@ -7336,16 +7336,16 @@ function Df(e, t, n, r) {
|
|
|
7336
7336
|
return o || (o = e.find((i) => Lr(t(i)))), o;
|
|
7337
7337
|
}
|
|
7338
7338
|
function Ef(e, t, n, r, o, a, i) {
|
|
7339
|
-
const { ISOWeek: s, broadcastCalendar: l } = a, { addDays: c, addMonths: u, addWeeks: d, addYears: f, endOfBroadcastWeek: h, endOfISOWeek: b, endOfWeek: p, max: g, min: y, startOfBroadcastWeek:
|
|
7340
|
-
let
|
|
7339
|
+
const { ISOWeek: s, broadcastCalendar: l } = a, { addDays: c, addMonths: u, addWeeks: d, addYears: f, endOfBroadcastWeek: h, endOfISOWeek: b, endOfWeek: p, max: g, min: y, startOfBroadcastWeek: x, startOfISOWeek: v, startOfWeek: k } = i;
|
|
7340
|
+
let C = {
|
|
7341
7341
|
day: c,
|
|
7342
7342
|
week: d,
|
|
7343
7343
|
month: u,
|
|
7344
7344
|
year: f,
|
|
7345
|
-
startOfWeek: (O) => l ?
|
|
7345
|
+
startOfWeek: (O) => l ? x(O, i) : s ? v(O) : k(O),
|
|
7346
7346
|
endOfWeek: (O) => l ? h(O) : s ? b(O) : p(O)
|
|
7347
7347
|
}[e](n, t === "after" ? 1 : -1);
|
|
7348
|
-
return t === "before" && r ?
|
|
7348
|
+
return t === "before" && r ? C = g([r, C]) : t === "after" && o && (C = y([o, C])), C;
|
|
7349
7349
|
}
|
|
7350
7350
|
function ka(e, t, n, r, o, a, i, s = 0) {
|
|
7351
7351
|
if (s > 365)
|
|
@@ -7366,7 +7366,7 @@ function Nf(e, t, n, r, o) {
|
|
|
7366
7366
|
if (!c)
|
|
7367
7367
|
return;
|
|
7368
7368
|
const y = ka(p, g, c, t.navStart, t.navEnd, e, o);
|
|
7369
|
-
y && (e.disableNavigation && !t.days.some((
|
|
7369
|
+
y && (e.disableNavigation && !t.days.some((v) => v.isEqualTo(y)) || (t.goToDay(y), u(y)));
|
|
7370
7370
|
}
|
|
7371
7371
|
};
|
|
7372
7372
|
}
|
|
@@ -7552,11 +7552,11 @@ function If(e) {
|
|
|
7552
7552
|
t.classNames
|
|
7553
7553
|
]);
|
|
7554
7554
|
t.today || (t = { ...t, today: i.today() });
|
|
7555
|
-
const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: h, onDayClick: b, onDayFocus: p, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave:
|
|
7556
|
-
V && (le(V),
|
|
7557
|
-
}, [V, le,
|
|
7558
|
-
Q && (le(Q),
|
|
7559
|
-
}, [le, Q,
|
|
7555
|
+
const { captionLayout: c, mode: u, navLayout: d, numberOfMonths: f = 1, onDayBlur: h, onDayClick: b, onDayFocus: p, onDayKeyDown: g, onDayMouseEnter: y, onDayMouseLeave: x, onNextClick: v, onPrevClick: k, showWeekNumber: w, styles: C } = t, { formatCaption: O, formatDay: S, formatMonthDropdown: A, formatWeekNumber: T, formatWeekNumberHeader: I, formatWeekdayName: L, formatYearDropdown: j } = o, $ = Pf(t, i), { days: K, months: B, navStart: H, navEnd: P, previousMonth: V, nextMonth: Q, goToMonth: le } = $, Ne = qu(K, t, H, P, i), { isSelected: ee, select: re, selected: ge } = $f(t, i) ?? {}, { blur: tt, focused: Z, isFocusTarget: nt, moveFocus: We, setFocused: be } = Nf(t, $, Ne, ee ?? (() => !1), i), { labelDayButton: rt, labelGridcell: Le, labelGrid: lt, labelMonthDropdown: bi, labelNav: br, labelPrevious: yi, labelNext: vi, labelWeekday: wi, labelWeekNumber: xi, labelWeekNumberHeader: ki, labelYearDropdown: Ci } = a, Mi = he(() => mf(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), yr = u !== void 0 || b !== void 0, yn = ie(() => {
|
|
7556
|
+
V && (le(V), k?.(V));
|
|
7557
|
+
}, [V, le, k]), vn = ie(() => {
|
|
7558
|
+
Q && (le(Q), v?.(Q));
|
|
7559
|
+
}, [le, Q, v]), Oi = ie((_, q) => (R) => {
|
|
7560
7560
|
R.preventDefault(), R.stopPropagation(), be(_), !q.disabled && (re?.(_.date, q, R), b?.(_.date, q, R));
|
|
7561
7561
|
}, [re, b, be]), Si = ie((_, q) => (R) => {
|
|
7562
7562
|
be(_), p?.(_.date, q, R);
|
|
@@ -7588,8 +7588,8 @@ function If(e) {
|
|
|
7588
7588
|
}, [We, g, t.dir]), Ei = ie((_, q) => (R) => {
|
|
7589
7589
|
y?.(_.date, q, R);
|
|
7590
7590
|
}, [y]), Ni = ie((_, q) => (R) => {
|
|
7591
|
-
|
|
7592
|
-
}, [
|
|
7591
|
+
x?.(_.date, q, R);
|
|
7592
|
+
}, [x]), Wi = ie((_) => (q) => {
|
|
7593
7593
|
const R = Number(q.target.value), G = i.setMonth(i.startOfMonth(_), R);
|
|
7594
7594
|
le(G);
|
|
7595
7595
|
}, [i, le]), Ai = ie((_) => (q) => {
|
|
@@ -7597,8 +7597,8 @@ function If(e) {
|
|
|
7597
7597
|
le(G);
|
|
7598
7598
|
}, [i, le]), { className: Ti, style: Ri } = he(() => ({
|
|
7599
7599
|
className: [l[W.Root], t.className].filter(Boolean).join(" "),
|
|
7600
|
-
style: { ...
|
|
7601
|
-
}), [l, t.className, t.style,
|
|
7600
|
+
style: { ...C?.[W.Root], ...t.style }
|
|
7601
|
+
}), [l, t.className, t.style, C]), _i = Xu(t), vr = Xt(null);
|
|
7602
7602
|
yf(vr, !!t.animate, {
|
|
7603
7603
|
classNames: l,
|
|
7604
7604
|
months: B,
|
|
@@ -7617,7 +7617,7 @@ function If(e) {
|
|
|
7617
7617
|
getModifiers: Ne,
|
|
7618
7618
|
components: r,
|
|
7619
7619
|
classNames: l,
|
|
7620
|
-
styles:
|
|
7620
|
+
styles: C,
|
|
7621
7621
|
labels: a,
|
|
7622
7622
|
formatters: o
|
|
7623
7623
|
};
|
|
@@ -7629,14 +7629,14 @@ function If(e) {
|
|
|
7629
7629
|
{ rootRef: t.animate ? vr : void 0, className: Ti, style: Ri, dir: t.dir, id: t.id, lang: t.lang, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ..._i },
|
|
7630
7630
|
D.createElement(
|
|
7631
7631
|
r.Months,
|
|
7632
|
-
{ className: l[W.Months], style:
|
|
7633
|
-
!t.hideNavigation && !d && D.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[W.Nav], style:
|
|
7632
|
+
{ className: l[W.Months], style: C?.[W.Months] },
|
|
7633
|
+
!t.hideNavigation && !d && D.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[W.Nav], style: C?.[W.Nav], "aria-label": br(), onPreviousClick: yn, onNextClick: vn, previousMonth: V, nextMonth: Q }),
|
|
7634
7634
|
B.map((_, q) => D.createElement(
|
|
7635
7635
|
r.Month,
|
|
7636
7636
|
{
|
|
7637
7637
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
7638
7638
|
className: l[W.Month],
|
|
7639
|
-
style:
|
|
7639
|
+
style: C?.[W.Month],
|
|
7640
7640
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
7641
7641
|
key: q,
|
|
7642
7642
|
displayIndex: q,
|
|
@@ -7647,11 +7647,11 @@ function If(e) {
|
|
|
7647
7647
|
{ type: "button", className: l[W.PreviousMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": yi(V), onClick: yn, "data-animated-button": t.animate ? "true" : void 0 },
|
|
7648
7648
|
D.createElement(r.Chevron, { disabled: V ? void 0 : !0, className: l[W.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
7649
7649
|
),
|
|
7650
|
-
D.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: l[W.MonthCaption], style:
|
|
7650
|
+
D.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: l[W.MonthCaption], style: C?.[W.MonthCaption], calendarMonth: _, displayIndex: q }, c?.startsWith("dropdown") ? D.createElement(
|
|
7651
7651
|
r.DropdownNav,
|
|
7652
|
-
{ className: l[W.Dropdowns], style:
|
|
7652
|
+
{ className: l[W.Dropdowns], style: C?.[W.Dropdowns] },
|
|
7653
7653
|
(() => {
|
|
7654
|
-
const R = c === "dropdown" || c === "dropdown-months" ? D.createElement(r.MonthsDropdown, { key: "month", className: l[W.MonthsDropdown], "aria-label": bi(), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: Wi(_.date), options: uf(_.date, H, P, o, i), style:
|
|
7654
|
+
const R = c === "dropdown" || c === "dropdown-months" ? D.createElement(r.MonthsDropdown, { key: "month", className: l[W.MonthsDropdown], "aria-label": bi(), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: Wi(_.date), options: uf(_.date, H, P, o, i), style: C?.[W.Dropdown], value: i.getMonth(_.date) }) : D.createElement("span", { key: "month" }, A(_.date, i)), G = c === "dropdown" || c === "dropdown-years" ? D.createElement(r.YearsDropdown, { key: "year", className: l[W.YearsDropdown], "aria-label": Ci(i.options), classNames: l, components: r, disabled: !!t.disableNavigation, onChange: Ai(_.date), options: hf(H, P, o, i, !!t.reverseYears), style: C?.[W.Dropdown], value: i.getYear(_.date) }) : D.createElement("span", { key: "year" }, j(_.date, i));
|
|
7655
7655
|
return i.getMonthYearOrder() === "year-first" ? [G, R] : [R, G];
|
|
7656
7656
|
})(),
|
|
7657
7657
|
D.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -7672,20 +7672,20 @@ function If(e) {
|
|
|
7672
7672
|
{ type: "button", className: l[W.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": vi(Q), onClick: vn, "data-animated-button": t.animate ? "true" : void 0 },
|
|
7673
7673
|
D.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: l[W.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
7674
7674
|
),
|
|
7675
|
-
q === f - 1 && d === "after" && !t.hideNavigation && D.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[W.Nav], style:
|
|
7675
|
+
q === f - 1 && d === "after" && !t.hideNavigation && D.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: l[W.Nav], style: C?.[W.Nav], "aria-label": br(), onPreviousClick: yn, onNextClick: vn, previousMonth: V, nextMonth: Q }),
|
|
7676
7676
|
D.createElement(
|
|
7677
7677
|
r.MonthGrid,
|
|
7678
|
-
{ role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": lt(_.date, i.options, i) || void 0, className: l[W.MonthGrid], style:
|
|
7678
|
+
{ role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": lt(_.date, i.options, i) || void 0, className: l[W.MonthGrid], style: C?.[W.MonthGrid] },
|
|
7679
7679
|
!t.hideWeekdays && D.createElement(
|
|
7680
7680
|
r.Weekdays,
|
|
7681
|
-
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: l[W.Weekdays], style:
|
|
7682
|
-
|
|
7683
|
-
Mi.map((R) => D.createElement(r.Weekday, { "aria-label": wi(R, i.options, i), className: l[W.Weekday], key: String(R), style:
|
|
7681
|
+
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: l[W.Weekdays], style: C?.[W.Weekdays] },
|
|
7682
|
+
w && D.createElement(r.WeekNumberHeader, { "aria-label": ki(i.options), className: l[W.WeekNumberHeader], style: C?.[W.WeekNumberHeader], scope: "col" }, I()),
|
|
7683
|
+
Mi.map((R) => D.createElement(r.Weekday, { "aria-label": wi(R, i.options, i), className: l[W.Weekday], key: String(R), style: C?.[W.Weekday], scope: "col" }, L(R, i.options, i)))
|
|
7684
7684
|
),
|
|
7685
|
-
D.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: l[W.Weeks], style:
|
|
7685
|
+
D.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: l[W.Weeks], style: C?.[W.Weeks] }, _.weeks.map((R) => D.createElement(
|
|
7686
7686
|
r.Week,
|
|
7687
|
-
{ className: l[W.Week], key: R.weekNumber, style:
|
|
7688
|
-
|
|
7687
|
+
{ className: l[W.Week], key: R.weekNumber, style: C?.[W.Week], week: R },
|
|
7688
|
+
w && D.createElement(r.WeekNumber, { week: R, style: C?.[W.WeekNumber], "aria-label": xi(R.weekNumber, {
|
|
7689
7689
|
locale: s
|
|
7690
7690
|
}), className: l[W.WeekNumber], scope: "row", role: "rowheader" }, T(R.weekNumber, i)),
|
|
7691
7691
|
R.days.map((G) => {
|
|
@@ -7694,14 +7694,14 @@ function If(e) {
|
|
|
7694
7694
|
const { from: wn, to: xn } = ge;
|
|
7695
7695
|
z[ve.range_start] = !!(wn && xn && i.isSameDay(ke, wn)), z[ve.range_end] = !!(wn && xn && i.isSameDay(ke, xn)), z[ve.range_middle] = Re(ge, ke, !0, i);
|
|
7696
7696
|
}
|
|
7697
|
-
const $i = ff(z,
|
|
7698
|
-
return D.createElement(r.Day, { key: `${G.isoDate}_${G.displayMonthId}`, day: G, modifiers: z, className: Ii.join(" "), style: $i, role: "gridcell", "aria-selected": z.selected || void 0, "aria-label": Bi, "data-day": G.isoDate, "data-month": G.outside ? G.dateMonthId : void 0, "data-selected": z.selected || void 0, "data-disabled": z.disabled || void 0, "data-hidden": z.hidden || void 0, "data-outside": G.outside || void 0, "data-focused": z.focused || void 0, "data-today": z.today || void 0 }, !z.hidden && yr ? D.createElement(r.DayButton, { className: l[W.DayButton], style:
|
|
7697
|
+
const $i = ff(z, C, t.modifiersStyles), Ii = Gu(z, l, t.modifiersClassNames), Bi = !yr && !z.hidden ? Le(ke, z, i.options, i) : void 0;
|
|
7698
|
+
return D.createElement(r.Day, { key: `${G.isoDate}_${G.displayMonthId}`, day: G, modifiers: z, className: Ii.join(" "), style: $i, role: "gridcell", "aria-selected": z.selected || void 0, "aria-label": Bi, "data-day": G.isoDate, "data-month": G.outside ? G.dateMonthId : void 0, "data-selected": z.selected || void 0, "data-disabled": z.disabled || void 0, "data-hidden": z.hidden || void 0, "data-outside": G.outside || void 0, "data-focused": z.focused || void 0, "data-today": z.today || void 0 }, !z.hidden && yr ? D.createElement(r.DayButton, { className: l[W.DayButton], style: C?.[W.DayButton], type: "button", day: G, modifiers: z, disabled: !z.focused && z.disabled || void 0, "aria-disabled": z.focused && z.disabled || void 0, tabIndex: nt(G) ? 0 : -1, "aria-label": rt(ke, z, i.options, i), onClick: Oi(G, z), onBlur: Pi(G, z), onFocus: Si(G, z), onKeyDown: Di(G, z), onMouseEnter: Ei(G, z), onMouseLeave: Ni(G, z) }, S(ke, i.options, i)) : !z.hidden && S(G.date, i.options, i));
|
|
7699
7699
|
})
|
|
7700
7700
|
)))
|
|
7701
7701
|
)
|
|
7702
7702
|
))
|
|
7703
7703
|
),
|
|
7704
|
-
t.footer && D.createElement(r.Footer, { className: l[W.Footer], style:
|
|
7704
|
+
t.footer && D.createElement(r.Footer, { className: l[W.Footer], style: C?.[W.Footer], role: "status", "aria-live": "polite" }, t.footer)
|
|
7705
7705
|
)
|
|
7706
7706
|
);
|
|
7707
7707
|
}
|
|
@@ -7829,7 +7829,7 @@ function Vr({
|
|
|
7829
7829
|
range_middle: Y("rounded-none", l.range_middle),
|
|
7830
7830
|
range_end: Y("rounded-r-md bg-accent", l.range_end),
|
|
7831
7831
|
today: Y(
|
|
7832
|
-
"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
|
|
7832
|
+
"bg-accent/50 text-accent-foreground rounded-md data-[selected=true]:rounded-none ring-ring/20 ring-[1px]",
|
|
7833
7833
|
l.today
|
|
7834
7834
|
),
|
|
7835
7835
|
outside: Y(
|
|
@@ -8022,15 +8022,15 @@ var Kf = "DismissableLayer", Ln = "dismissableLayer.update", Zf = "dismissableLa
|
|
|
8022
8022
|
onInteractOutside: i,
|
|
8023
8023
|
onDismiss: s,
|
|
8024
8024
|
...l
|
|
8025
|
-
} = e, c = m.useContext(Ma), [u, d] = m.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, h] = m.useState({}), b = Je(t, (O) => d(O)), p = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g),
|
|
8025
|
+
} = e, c = m.useContext(Ma), [u, d] = m.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, h] = m.useState({}), b = Je(t, (O) => d(O)), p = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), x = u ? p.indexOf(u) : -1, v = c.layersWithOutsidePointerEventsDisabled.size > 0, k = x >= y, w = tm((O) => {
|
|
8026
8026
|
const S = O.target, A = [...c.branches].some((T) => T.contains(S));
|
|
8027
|
-
!
|
|
8028
|
-
}, f),
|
|
8027
|
+
!k || A || (o?.(O), i?.(O), O.defaultPrevented || s?.());
|
|
8028
|
+
}, f), C = nm((O) => {
|
|
8029
8029
|
const S = O.target;
|
|
8030
8030
|
[...c.branches].some((T) => T.contains(S)) || (a?.(O), i?.(O), O.defaultPrevented || s?.());
|
|
8031
8031
|
}, f);
|
|
8032
8032
|
return Xf((O) => {
|
|
8033
|
-
|
|
8033
|
+
x === c.layers.size - 1 && (r?.(O), !O.defaultPrevented && s && (O.preventDefault(), s()));
|
|
8034
8034
|
}, f), m.useEffect(() => {
|
|
8035
8035
|
if (u)
|
|
8036
8036
|
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (qr = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), Gr(), () => {
|
|
@@ -8047,14 +8047,14 @@ var Kf = "DismissableLayer", Ln = "dismissableLayer.update", Zf = "dismissableLa
|
|
|
8047
8047
|
...l,
|
|
8048
8048
|
ref: b,
|
|
8049
8049
|
style: {
|
|
8050
|
-
pointerEvents:
|
|
8050
|
+
pointerEvents: v ? k ? "auto" : "none" : void 0,
|
|
8051
8051
|
...e.style
|
|
8052
8052
|
},
|
|
8053
|
-
onFocusCapture: Ue(e.onFocusCapture,
|
|
8054
|
-
onBlurCapture: Ue(e.onBlurCapture,
|
|
8053
|
+
onFocusCapture: Ue(e.onFocusCapture, C.onFocusCapture),
|
|
8054
|
+
onBlurCapture: Ue(e.onBlurCapture, C.onBlurCapture),
|
|
8055
8055
|
onPointerDownCapture: Ue(
|
|
8056
8056
|
e.onPointerDownCapture,
|
|
8057
|
-
|
|
8057
|
+
w.onPointerDownCapture
|
|
8058
8058
|
)
|
|
8059
8059
|
}
|
|
8060
8060
|
);
|
|
@@ -8155,23 +8155,23 @@ var En = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", Xr
|
|
|
8155
8155
|
}).current;
|
|
8156
8156
|
m.useEffect(() => {
|
|
8157
8157
|
if (r) {
|
|
8158
|
-
let p = function(
|
|
8158
|
+
let p = function(v) {
|
|
8159
8159
|
if (h.paused || !s) return;
|
|
8160
|
-
const
|
|
8161
|
-
s.contains(
|
|
8162
|
-
}, g = function(
|
|
8160
|
+
const k = v.target;
|
|
8161
|
+
s.contains(k) ? d.current = k : Ve(d.current, { select: !0 });
|
|
8162
|
+
}, g = function(v) {
|
|
8163
8163
|
if (h.paused || !s) return;
|
|
8164
|
-
const
|
|
8165
|
-
|
|
8166
|
-
}, y = function(
|
|
8164
|
+
const k = v.relatedTarget;
|
|
8165
|
+
k !== null && (s.contains(k) || Ve(d.current, { select: !0 }));
|
|
8166
|
+
}, y = function(v) {
|
|
8167
8167
|
if (document.activeElement === document.body)
|
|
8168
|
-
for (const
|
|
8169
|
-
|
|
8168
|
+
for (const w of v)
|
|
8169
|
+
w.removedNodes.length > 0 && Ve(s);
|
|
8170
8170
|
};
|
|
8171
8171
|
document.addEventListener("focusin", p), document.addEventListener("focusout", g);
|
|
8172
|
-
const
|
|
8173
|
-
return s &&
|
|
8174
|
-
document.removeEventListener("focusin", p), document.removeEventListener("focusout", g),
|
|
8172
|
+
const x = new MutationObserver(y);
|
|
8173
|
+
return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
8174
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", g), x.disconnect();
|
|
8175
8175
|
};
|
|
8176
8176
|
}
|
|
8177
8177
|
}, [r, s, h.paused]), m.useEffect(() => {
|
|
@@ -8195,8 +8195,8 @@ var En = "focusScope.autoFocusOnMount", Nn = "focusScope.autoFocusOnUnmount", Xr
|
|
|
8195
8195
|
if (!n && !r || h.paused) return;
|
|
8196
8196
|
const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
8197
8197
|
if (g && y) {
|
|
8198
|
-
const
|
|
8199
|
-
|
|
8198
|
+
const x = p.currentTarget, [v, k] = im(x);
|
|
8199
|
+
v && k ? !p.shiftKey && y === k ? (p.preventDefault(), n && Ve(v, { select: !0 })) : p.shiftKey && y === v && (p.preventDefault(), n && Ve(k, { select: !0 })) : y === x && p.preventDefault();
|
|
8200
8200
|
}
|
|
8201
8201
|
},
|
|
8202
8202
|
[n, r, h.paused]
|
|
@@ -8448,10 +8448,10 @@ const Om = async (e, t, n) => {
|
|
|
8448
8448
|
name: g,
|
|
8449
8449
|
fn: y
|
|
8450
8450
|
} = s[p], {
|
|
8451
|
-
x
|
|
8452
|
-
y:
|
|
8453
|
-
data:
|
|
8454
|
-
reset:
|
|
8451
|
+
x,
|
|
8452
|
+
y: v,
|
|
8453
|
+
data: k,
|
|
8454
|
+
reset: w
|
|
8455
8455
|
} = await y({
|
|
8456
8456
|
x: u,
|
|
8457
8457
|
y: d,
|
|
@@ -8466,17 +8466,17 @@ const Om = async (e, t, n) => {
|
|
|
8466
8466
|
floating: t
|
|
8467
8467
|
}
|
|
8468
8468
|
});
|
|
8469
|
-
u =
|
|
8469
|
+
u = x ?? u, d = v ?? d, h = {
|
|
8470
8470
|
...h,
|
|
8471
8471
|
[g]: {
|
|
8472
8472
|
...h[g],
|
|
8473
|
-
...
|
|
8473
|
+
...k
|
|
8474
8474
|
}
|
|
8475
|
-
},
|
|
8475
|
+
}, w && b <= 50 && (b++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (c = w.rects === !0 ? await i.getElementRects({
|
|
8476
8476
|
reference: e,
|
|
8477
8477
|
floating: t,
|
|
8478
8478
|
strategy: o
|
|
8479
|
-
}) :
|
|
8479
|
+
}) : w.rects), {
|
|
8480
8480
|
x: u,
|
|
8481
8481
|
y: d
|
|
8482
8482
|
} = to(c, f, l)), p = -1);
|
|
@@ -8510,28 +8510,28 @@ async function At(e, t) {
|
|
|
8510
8510
|
boundary: c,
|
|
8511
8511
|
rootBoundary: u,
|
|
8512
8512
|
strategy: l
|
|
8513
|
-
})),
|
|
8513
|
+
})), x = d === "floating" ? {
|
|
8514
8514
|
x: r,
|
|
8515
8515
|
y: o,
|
|
8516
8516
|
width: i.floating.width,
|
|
8517
8517
|
height: i.floating.height
|
|
8518
|
-
} : i.reference,
|
|
8518
|
+
} : i.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), k = await (a.isElement == null ? void 0 : a.isElement(v)) ? await (a.getScale == null ? void 0 : a.getScale(v)) || {
|
|
8519
8519
|
x: 1,
|
|
8520
8520
|
y: 1
|
|
8521
8521
|
} : {
|
|
8522
8522
|
x: 1,
|
|
8523
8523
|
y: 1
|
|
8524
|
-
},
|
|
8524
|
+
}, w = rn(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
8525
8525
|
elements: s,
|
|
8526
|
-
rect:
|
|
8527
|
-
offsetParent:
|
|
8526
|
+
rect: x,
|
|
8527
|
+
offsetParent: v,
|
|
8528
8528
|
strategy: l
|
|
8529
|
-
}) :
|
|
8529
|
+
}) : x);
|
|
8530
8530
|
return {
|
|
8531
|
-
top: (y.top -
|
|
8532
|
-
bottom: (
|
|
8533
|
-
left: (y.left -
|
|
8534
|
-
right: (
|
|
8531
|
+
top: (y.top - w.top + b.top) / k.y,
|
|
8532
|
+
bottom: (w.bottom - y.bottom + b.bottom) / k.y,
|
|
8533
|
+
left: (y.left - w.left + b.left) / k.x,
|
|
8534
|
+
right: (w.right - y.right + b.right) / k.x
|
|
8535
8535
|
};
|
|
8536
8536
|
}
|
|
8537
8537
|
const Sm = (e) => ({
|
|
@@ -8555,10 +8555,10 @@ const Sm = (e) => ({
|
|
|
8555
8555
|
const d = Ea(u), f = {
|
|
8556
8556
|
x: n,
|
|
8557
8557
|
y: r
|
|
8558
|
-
}, h = cr(o), b = lr(h), p = await i.getDimensions(c), g = h === "y", y = g ? "top" : "left",
|
|
8559
|
-
let O =
|
|
8560
|
-
(!O || !await (i.isElement == null ? void 0 : i.isElement(
|
|
8561
|
-
const S =
|
|
8558
|
+
}, h = cr(o), b = lr(h), p = await i.getDimensions(c), g = h === "y", y = g ? "top" : "left", x = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", k = a.reference[b] + a.reference[h] - f[h] - a.floating[b], w = f[h] - a.reference[h], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
8559
|
+
let O = C ? C[v] : 0;
|
|
8560
|
+
(!O || !await (i.isElement == null ? void 0 : i.isElement(C))) && (O = s.floating[v] || a.floating[b]);
|
|
8561
|
+
const S = k / 2 - w / 2, A = O / 2 - p[b] / 2 - 1, T = Ze(d[y], A), I = Ze(d[x], A), L = T, j = O - p[b] - I, $ = O / 2 - p[b] / 2 + S, K = jn(L, $, j), B = !l.arrow && Mt(o) != null && $ !== K && a.reference[b] / 2 - ($ < L ? T : I) - p[b] / 2 < 0, H = B ? $ < L ? $ - L : $ - j : 0;
|
|
8562
8562
|
return {
|
|
8563
8563
|
[h]: f[h] + H,
|
|
8564
8564
|
data: {
|
|
@@ -8595,12 +8595,12 @@ const Sm = (e) => ({
|
|
|
8595
8595
|
} = $e(e, t);
|
|
8596
8596
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
8597
8597
|
return {};
|
|
8598
|
-
const y = Ie(o),
|
|
8599
|
-
!f &&
|
|
8600
|
-
const O = [s, ...
|
|
8598
|
+
const y = Ie(o), x = Oe(s), v = Ie(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = f || (v || !p ? [nn(s)] : vm(s)), C = b !== "none";
|
|
8599
|
+
!f && C && w.push(...Cm(s, p, b, k));
|
|
8600
|
+
const O = [s, ...w], S = await At(t, g), A = [];
|
|
8601
8601
|
let T = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
8602
8602
|
if (u && A.push(S[y]), d) {
|
|
8603
|
-
const $ = ym(o, i,
|
|
8603
|
+
const $ = ym(o, i, k);
|
|
8604
8604
|
A.push(S[$[0]], S[$[1]]);
|
|
8605
8605
|
}
|
|
8606
8606
|
if (T = [...T, {
|
|
@@ -8609,9 +8609,9 @@ const Sm = (e) => ({
|
|
|
8609
8609
|
}], !A.every(($) => $ <= 0)) {
|
|
8610
8610
|
var I, L;
|
|
8611
8611
|
const $ = (((I = a.flip) == null ? void 0 : I.index) || 0) + 1, K = O[$];
|
|
8612
|
-
if (K && (!(d === "alignment" ?
|
|
8612
|
+
if (K && (!(d === "alignment" ? x !== Oe(K) : !1) || // We leave the current main axis only if every placement on that axis
|
|
8613
8613
|
// overflows the main axis.
|
|
8614
|
-
T.every((P) => Oe(P.placement) ===
|
|
8614
|
+
T.every((P) => Oe(P.placement) === x ? P.overflows[0] > 0 : !0)))
|
|
8615
8615
|
return {
|
|
8616
8616
|
data: {
|
|
8617
8617
|
index: $,
|
|
@@ -8627,9 +8627,9 @@ const Sm = (e) => ({
|
|
|
8627
8627
|
case "bestFit": {
|
|
8628
8628
|
var j;
|
|
8629
8629
|
const H = (j = T.filter((P) => {
|
|
8630
|
-
if (
|
|
8630
|
+
if (C) {
|
|
8631
8631
|
const V = Oe(P.placement);
|
|
8632
|
-
return V ===
|
|
8632
|
+
return V === x || // Create a bias to the `y` side axis due to horizontal
|
|
8633
8633
|
// reading directions favoring greater width.
|
|
8634
8634
|
V === "y";
|
|
8635
8635
|
}
|
|
@@ -8771,11 +8771,11 @@ const Nm = function(e) {
|
|
|
8771
8771
|
fn: (g) => {
|
|
8772
8772
|
let {
|
|
8773
8773
|
x: y,
|
|
8774
|
-
y:
|
|
8774
|
+
y: x
|
|
8775
8775
|
} = g;
|
|
8776
8776
|
return {
|
|
8777
8777
|
x: y,
|
|
8778
|
-
y:
|
|
8778
|
+
y: x
|
|
8779
8779
|
};
|
|
8780
8780
|
}
|
|
8781
8781
|
},
|
|
@@ -8786,12 +8786,12 @@ const Nm = function(e) {
|
|
|
8786
8786
|
}, u = await At(t, l), d = Oe(Ie(o)), f = sr(d);
|
|
8787
8787
|
let h = c[f], b = c[d];
|
|
8788
8788
|
if (a) {
|
|
8789
|
-
const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right",
|
|
8790
|
-
h = jn(
|
|
8789
|
+
const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = h + u[g], v = h - u[y];
|
|
8790
|
+
h = jn(x, h, v);
|
|
8791
8791
|
}
|
|
8792
8792
|
if (i) {
|
|
8793
|
-
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right",
|
|
8794
|
-
b = jn(
|
|
8793
|
+
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", x = b + u[g], v = b - u[y];
|
|
8794
|
+
b = jn(x, b, v);
|
|
8795
8795
|
}
|
|
8796
8796
|
const p = s.fn({
|
|
8797
8797
|
...t,
|
|
@@ -8839,13 +8839,13 @@ const Nm = function(e) {
|
|
|
8839
8839
|
...p
|
|
8840
8840
|
};
|
|
8841
8841
|
if (l) {
|
|
8842
|
-
const
|
|
8843
|
-
h <
|
|
8842
|
+
const v = f === "y" ? "height" : "width", k = a.reference[f] - a.floating[v] + g.mainAxis, w = a.reference[f] + a.reference[v] - g.mainAxis;
|
|
8843
|
+
h < k ? h = k : h > w && (h = w);
|
|
8844
8844
|
}
|
|
8845
8845
|
if (c) {
|
|
8846
|
-
var y,
|
|
8847
|
-
const
|
|
8848
|
-
b <
|
|
8846
|
+
var y, x;
|
|
8847
|
+
const v = f === "y" ? "width" : "height", k = Na.has(Ie(o)), w = a.reference[d] - a.floating[v] + (k && ((y = i.offset) == null ? void 0 : y[d]) || 0) + (k ? 0 : g.crossAxis), C = a.reference[d] + a.reference[v] + (k ? 0 : ((x = i.offset) == null ? void 0 : x[d]) || 0) - (k ? g.crossAxis : 0);
|
|
8848
|
+
b < w ? b = w : b > C && (b = C);
|
|
8849
8849
|
}
|
|
8850
8850
|
return {
|
|
8851
8851
|
[f]: h,
|
|
@@ -8874,9 +8874,9 @@ const Nm = function(e) {
|
|
|
8874
8874
|
} = a.floating;
|
|
8875
8875
|
let g, y;
|
|
8876
8876
|
d === "top" || d === "bottom" ? (g = d, y = f === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = d, g = f === "end" ? "top" : "bottom");
|
|
8877
|
-
const
|
|
8878
|
-
let O =
|
|
8879
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S =
|
|
8877
|
+
const x = p - u.top - u.bottom, v = b - u.left - u.right, k = Ze(p - u[g], x), w = Ze(b - u[y], v), C = !t.middlewareData.shift;
|
|
8878
|
+
let O = k, S = w;
|
|
8879
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (S = v), (r = t.middlewareData.shift) != null && r.enabled.y && (O = x), C && !f) {
|
|
8880
8880
|
const T = me(u.left, 0), I = me(u.right, 0), L = me(u.top, 0), j = me(u.bottom, 0);
|
|
8881
8881
|
h ? S = b - 2 * (T !== 0 || I !== 0 ? T + I : me(u.left, u.right)) : O = p - 2 * (L !== 0 || j !== 0 ? L + j : me(u.top, u.bottom));
|
|
8882
8882
|
}
|
|
@@ -9058,8 +9058,8 @@ function st(e, t, n, r) {
|
|
|
9058
9058
|
const f = pe(a), h = r && we(r) ? pe(r) : r;
|
|
9059
9059
|
let b = f, p = Vn(b);
|
|
9060
9060
|
for (; p && r && h !== b; ) {
|
|
9061
|
-
const g = pt(p), y = p.getBoundingClientRect(),
|
|
9062
|
-
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l +=
|
|
9061
|
+
const g = pt(p), y = p.getBoundingClientRect(), x = xe(p), v = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * g.x, k = y.top + (p.clientTop + parseFloat(x.paddingTop)) * g.y;
|
|
9062
|
+
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += v, c += k, b = pe(p), p = Vn(b);
|
|
9063
9063
|
}
|
|
9064
9064
|
}
|
|
9065
9065
|
return rn({
|
|
@@ -9316,30 +9316,30 @@ function oh(e, t) {
|
|
|
9316
9316
|
} = c;
|
|
9317
9317
|
if (s || t(), !f || !h)
|
|
9318
9318
|
return;
|
|
9319
|
-
const b = Lt(d), p = Lt(o.clientWidth - (u + f)), g = Lt(o.clientHeight - (d + h)), y = Lt(u),
|
|
9319
|
+
const b = Lt(d), p = Lt(o.clientWidth - (u + f)), g = Lt(o.clientHeight - (d + h)), y = Lt(u), v = {
|
|
9320
9320
|
rootMargin: -b + "px " + -p + "px " + -g + "px " + -y + "px",
|
|
9321
9321
|
threshold: me(0, Ze(1, l)) || 1
|
|
9322
9322
|
};
|
|
9323
|
-
let
|
|
9324
|
-
function
|
|
9325
|
-
const O =
|
|
9323
|
+
let k = !0;
|
|
9324
|
+
function w(C) {
|
|
9325
|
+
const O = C[0].intersectionRatio;
|
|
9326
9326
|
if (O !== l) {
|
|
9327
|
-
if (!
|
|
9327
|
+
if (!k)
|
|
9328
9328
|
return i();
|
|
9329
9329
|
O ? i(!1, O) : r = setTimeout(() => {
|
|
9330
9330
|
i(!1, 1e-7);
|
|
9331
9331
|
}, 1e3);
|
|
9332
9332
|
}
|
|
9333
|
-
O === 1 && !Ia(c, e.getBoundingClientRect()) && i(),
|
|
9333
|
+
O === 1 && !Ia(c, e.getBoundingClientRect()) && i(), k = !1;
|
|
9334
9334
|
}
|
|
9335
9335
|
try {
|
|
9336
|
-
n = new IntersectionObserver(
|
|
9337
|
-
...
|
|
9336
|
+
n = new IntersectionObserver(w, {
|
|
9337
|
+
...v,
|
|
9338
9338
|
// Handle <iframe>s
|
|
9339
9339
|
root: o.ownerDocument
|
|
9340
9340
|
});
|
|
9341
9341
|
} catch {
|
|
9342
|
-
n = new IntersectionObserver(
|
|
9342
|
+
n = new IntersectionObserver(w, v);
|
|
9343
9343
|
}
|
|
9344
9344
|
n.observe(e);
|
|
9345
9345
|
}
|
|
@@ -9362,10 +9362,10 @@ function ah(e, t, n, r) {
|
|
|
9362
9362
|
const d = c && s ? oh(c, n) : null;
|
|
9363
9363
|
let f = -1, h = null;
|
|
9364
9364
|
i && (h = new ResizeObserver((y) => {
|
|
9365
|
-
let [
|
|
9366
|
-
|
|
9367
|
-
var
|
|
9368
|
-
(
|
|
9365
|
+
let [x] = y;
|
|
9366
|
+
x && x.target === c && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
9367
|
+
var v;
|
|
9368
|
+
(v = h) == null || v.observe(t);
|
|
9369
9369
|
})), n();
|
|
9370
9370
|
}), c && !l && h.observe(c), h.observe(t));
|
|
9371
9371
|
let b, p = l ? st(e) : null;
|
|
@@ -9376,8 +9376,8 @@ function ah(e, t, n, r) {
|
|
|
9376
9376
|
}
|
|
9377
9377
|
return n(), () => {
|
|
9378
9378
|
var y;
|
|
9379
|
-
u.forEach((
|
|
9380
|
-
o &&
|
|
9379
|
+
u.forEach((x) => {
|
|
9380
|
+
o && x.removeEventListener("scroll", n), a && x.removeEventListener("resize", n);
|
|
9381
9381
|
}), d?.(), (y = h) == null || y.disconnect(), h = null, l && cancelAnimationFrame(b);
|
|
9382
9382
|
};
|
|
9383
9383
|
}
|
|
@@ -9462,19 +9462,19 @@ function ph(e) {
|
|
|
9462
9462
|
isPositioned: !1
|
|
9463
9463
|
}), [f, h] = m.useState(r);
|
|
9464
9464
|
on(f, r) || h(r);
|
|
9465
|
-
const [b, p] = m.useState(null), [g, y] = m.useState(null),
|
|
9466
|
-
P !==
|
|
9467
|
-
}, []),
|
|
9465
|
+
const [b, p] = m.useState(null), [g, y] = m.useState(null), x = m.useCallback((P) => {
|
|
9466
|
+
P !== C.current && (C.current = P, p(P));
|
|
9467
|
+
}, []), v = m.useCallback((P) => {
|
|
9468
9468
|
P !== O.current && (O.current = P, y(P));
|
|
9469
|
-
}, []),
|
|
9470
|
-
if (!
|
|
9469
|
+
}, []), k = a || b, w = i || g, C = m.useRef(null), O = m.useRef(null), S = m.useRef(u), A = l != null, T = An(l), I = An(o), L = An(c), j = m.useCallback(() => {
|
|
9470
|
+
if (!C.current || !O.current)
|
|
9471
9471
|
return;
|
|
9472
9472
|
const P = {
|
|
9473
9473
|
placement: t,
|
|
9474
9474
|
strategy: n,
|
|
9475
9475
|
middleware: f
|
|
9476
9476
|
};
|
|
9477
|
-
I.current && (P.platform = I.current), fh(
|
|
9477
|
+
I.current && (P.platform = I.current), fh(C.current, O.current, P).then((V) => {
|
|
9478
9478
|
const Q = {
|
|
9479
9479
|
...V,
|
|
9480
9480
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -9498,21 +9498,21 @@ function ph(e) {
|
|
|
9498
9498
|
Kt(() => ($.current = !0, () => {
|
|
9499
9499
|
$.current = !1;
|
|
9500
9500
|
}), []), Kt(() => {
|
|
9501
|
-
if (
|
|
9501
|
+
if (k && (C.current = k), w && (O.current = w), k && w) {
|
|
9502
9502
|
if (T.current)
|
|
9503
|
-
return T.current(
|
|
9503
|
+
return T.current(k, w, j);
|
|
9504
9504
|
j();
|
|
9505
9505
|
}
|
|
9506
|
-
}, [
|
|
9506
|
+
}, [k, w, j, T, A]);
|
|
9507
9507
|
const K = m.useMemo(() => ({
|
|
9508
|
-
reference:
|
|
9508
|
+
reference: C,
|
|
9509
9509
|
floating: O,
|
|
9510
|
-
setReference:
|
|
9511
|
-
setFloating:
|
|
9512
|
-
}), [
|
|
9513
|
-
reference:
|
|
9514
|
-
floating:
|
|
9515
|
-
}), [
|
|
9510
|
+
setReference: x,
|
|
9511
|
+
setFloating: v
|
|
9512
|
+
}), [x, v]), B = m.useMemo(() => ({
|
|
9513
|
+
reference: k,
|
|
9514
|
+
floating: w
|
|
9515
|
+
}), [k, w]), H = m.useMemo(() => {
|
|
9516
9516
|
const P = {
|
|
9517
9517
|
position: n,
|
|
9518
9518
|
left: 0,
|
|
@@ -9655,7 +9655,7 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
|
|
|
9655
9655
|
updatePositionStrategy: h = "optimized",
|
|
9656
9656
|
onPlaced: b,
|
|
9657
9657
|
...p
|
|
9658
|
-
} = e, g = ja(hr, n), [y,
|
|
9658
|
+
} = e, g = ja(hr, n), [y, x] = m.useState(null), v = Je(t, (Z) => x(Z)), [k, w] = m.useState(null), C = Sh(k), O = C?.width ?? 0, S = C?.height ?? 0, A = r + (a !== "center" ? "-" + a : ""), T = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, I = Array.isArray(c) ? c : [c], L = I.length > 0, j = {
|
|
9659
9659
|
padding: T,
|
|
9660
9660
|
boundary: I.filter(Wh),
|
|
9661
9661
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -9686,7 +9686,7 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
|
|
|
9686
9686
|
lt.setProperty("--radix-popper-available-width", `${We}px`), lt.setProperty("--radix-popper-available-height", `${be}px`), lt.setProperty("--radix-popper-anchor-width", `${rt}px`), lt.setProperty("--radix-popper-anchor-height", `${Le}px`);
|
|
9687
9687
|
}
|
|
9688
9688
|
}),
|
|
9689
|
-
|
|
9689
|
+
k && Ch({ element: k, padding: s }),
|
|
9690
9690
|
Ah({ arrowWidth: O, arrowHeight: S }),
|
|
9691
9691
|
f && kh({ strategy: "referenceHidden", ...j })
|
|
9692
9692
|
]
|
|
@@ -9726,7 +9726,7 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
|
|
|
9726
9726
|
{
|
|
9727
9727
|
scope: n,
|
|
9728
9728
|
placedSide: V,
|
|
9729
|
-
onArrowChange:
|
|
9729
|
+
onArrowChange: w,
|
|
9730
9730
|
arrowX: Ne,
|
|
9731
9731
|
arrowY: ee,
|
|
9732
9732
|
shouldHideArrow: re,
|
|
@@ -9736,7 +9736,7 @@ var hr = "PopperContent", [Dh, Eh] = Ya(hr), Ga = m.forwardRef(
|
|
|
9736
9736
|
"data-side": V,
|
|
9737
9737
|
"data-align": Q,
|
|
9738
9738
|
...p,
|
|
9739
|
-
ref:
|
|
9739
|
+
ref: v,
|
|
9740
9740
|
style: {
|
|
9741
9741
|
...p.style,
|
|
9742
9742
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -10194,12 +10194,12 @@ var ti = dp(), _n = function() {
|
|
|
10194
10194
|
onScrollCapture: _n,
|
|
10195
10195
|
onWheelCapture: _n,
|
|
10196
10196
|
onTouchMoveCapture: _n
|
|
10197
|
-
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as,
|
|
10197
|
+
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, g = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, v = e.gapMode, k = ep(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = f, C = ip([n, t]), O = qe(qe({}, k), o);
|
|
10198
10198
|
return m.createElement(
|
|
10199
10199
|
m.Fragment,
|
|
10200
10200
|
null,
|
|
10201
|
-
u && m.createElement(
|
|
10202
|
-
i ? m.cloneElement(m.Children.only(s), qe(qe({}, O), { ref:
|
|
10201
|
+
u && m.createElement(w, { sideCar: ti, removeScrollBar: c, shards: d, noRelative: h, noIsolation: b, inert: p, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: v }),
|
|
10202
|
+
i ? m.cloneElement(m.Children.only(s), qe(qe({}, O), { ref: C })) : m.createElement(x, qe({}, O, { className: l, ref: C }), s)
|
|
10203
10203
|
);
|
|
10204
10204
|
});
|
|
10205
10205
|
gn.defaultProps = {
|
|
@@ -10403,8 +10403,8 @@ var ft = qn ? { passive: !1 } : !1, Op = function(e) {
|
|
|
10403
10403
|
break;
|
|
10404
10404
|
var h = ai(e, s), b = h[0], p = h[1], g = h[2], y = p - g - a * b;
|
|
10405
10405
|
(b || y) && oi(e, s) && (d += y, f += b);
|
|
10406
|
-
var
|
|
10407
|
-
s =
|
|
10406
|
+
var x = s.parentNode;
|
|
10407
|
+
s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
|
|
10408
10408
|
} while (
|
|
10409
10409
|
// portaled content
|
|
10410
10410
|
!l && s !== document.body || // self content
|
|
@@ -10445,43 +10445,43 @@ function _p(e) {
|
|
|
10445
10445
|
var s = m.useCallback(function(p, g) {
|
|
10446
10446
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
10447
10447
|
return !i.current.allowPinchZoom;
|
|
10448
|
-
var y = Gt(p),
|
|
10449
|
-
if ("touches" in p && O === "h" &&
|
|
10448
|
+
var y = Gt(p), x = n.current, v = "deltaX" in p ? p.deltaX : x[0] - y[0], k = "deltaY" in p ? p.deltaY : x[1] - y[1], w, C = p.target, O = Math.abs(v) > Math.abs(k) ? "h" : "v";
|
|
10449
|
+
if ("touches" in p && O === "h" && C.type === "range")
|
|
10450
10450
|
return !1;
|
|
10451
|
-
var S = window.getSelection(), A = S && S.anchorNode, T = A ? A ===
|
|
10451
|
+
var S = window.getSelection(), A = S && S.anchorNode, T = A ? A === C || A.contains(C) : !1;
|
|
10452
10452
|
if (T)
|
|
10453
10453
|
return !1;
|
|
10454
|
-
var I = mo(O,
|
|
10454
|
+
var I = mo(O, C);
|
|
10455
10455
|
if (!I)
|
|
10456
10456
|
return !0;
|
|
10457
|
-
if (I ?
|
|
10457
|
+
if (I ? w = O : (w = O === "v" ? "h" : "v", I = mo(O, C)), !I)
|
|
10458
10458
|
return !1;
|
|
10459
|
-
if (!r.current && "changedTouches" in p && (
|
|
10459
|
+
if (!r.current && "changedTouches" in p && (v || k) && (r.current = w), !w)
|
|
10460
10460
|
return !0;
|
|
10461
|
-
var L = r.current ||
|
|
10462
|
-
return Wp(L, g, p, L === "h" ?
|
|
10461
|
+
var L = r.current || w;
|
|
10462
|
+
return Wp(L, g, p, L === "h" ? v : k);
|
|
10463
10463
|
}, []), l = m.useCallback(function(p) {
|
|
10464
10464
|
var g = p;
|
|
10465
10465
|
if (!(!mt.length || mt[mt.length - 1] !== a)) {
|
|
10466
|
-
var y = "deltaY" in g ? ho(g) : Gt(g),
|
|
10467
|
-
return
|
|
10466
|
+
var y = "deltaY" in g ? ho(g) : Gt(g), x = t.current.filter(function(w) {
|
|
10467
|
+
return w.name === g.type && (w.target === g.target || g.target === w.shadowParent) && Ap(w.delta, y);
|
|
10468
10468
|
})[0];
|
|
10469
|
-
if (
|
|
10469
|
+
if (x && x.should) {
|
|
10470
10470
|
g.cancelable && g.preventDefault();
|
|
10471
10471
|
return;
|
|
10472
10472
|
}
|
|
10473
|
-
if (!
|
|
10474
|
-
var
|
|
10475
|
-
return
|
|
10476
|
-
}),
|
|
10477
|
-
|
|
10473
|
+
if (!x) {
|
|
10474
|
+
var v = (i.current.shards || []).map(po).filter(Boolean).filter(function(w) {
|
|
10475
|
+
return w.contains(g.target);
|
|
10476
|
+
}), k = v.length > 0 ? s(g, v[0]) : !i.current.noIsolation;
|
|
10477
|
+
k && g.cancelable && g.preventDefault();
|
|
10478
10478
|
}
|
|
10479
10479
|
}
|
|
10480
|
-
}, []), c = m.useCallback(function(p, g, y,
|
|
10481
|
-
var
|
|
10482
|
-
t.current.push(
|
|
10483
|
-
t.current = t.current.filter(function(
|
|
10484
|
-
return
|
|
10480
|
+
}, []), c = m.useCallback(function(p, g, y, x) {
|
|
10481
|
+
var v = { name: p, delta: g, target: y, should: x, shadowParent: Fp(y) };
|
|
10482
|
+
t.current.push(v), setTimeout(function() {
|
|
10483
|
+
t.current = t.current.filter(function(k) {
|
|
10484
|
+
return k !== v;
|
|
10485
10485
|
});
|
|
10486
10486
|
}, 1);
|
|
10487
10487
|
}, []), u = m.useCallback(function(p) {
|
|
@@ -10814,46 +10814,50 @@ function bg({
|
|
|
10814
10814
|
placeholder: a = "Selecione uma data",
|
|
10815
10815
|
maxDate: i,
|
|
10816
10816
|
minDate: s,
|
|
10817
|
-
|
|
10818
|
-
|
|
10817
|
+
startMonth: l,
|
|
10818
|
+
customBtnClassName: c = "",
|
|
10819
|
+
disabled: u = !1
|
|
10819
10820
|
}) {
|
|
10820
|
-
const [
|
|
10821
|
-
(
|
|
10822
|
-
typeof e == "function" && e(
|
|
10821
|
+
const [d, f] = Xe(!1), h = rg[o], b = ie(
|
|
10822
|
+
(x) => {
|
|
10823
|
+
typeof e == "function" && e(x), r === "single" && f(!1);
|
|
10823
10824
|
},
|
|
10824
10825
|
[r, e]
|
|
10825
|
-
),
|
|
10826
|
+
), p = he(() => {
|
|
10826
10827
|
if (!s && !i) return;
|
|
10827
|
-
const
|
|
10828
|
-
return s &&
|
|
10829
|
-
}, [s, i]),
|
|
10828
|
+
const x = [];
|
|
10829
|
+
return s && x.push({ before: s }), i && x.push({ after: i }), x;
|
|
10830
|
+
}, [s, i]), g = {
|
|
10830
10831
|
captionLayout: "dropdown",
|
|
10831
|
-
locale:
|
|
10832
|
-
toYear: (/* @__PURE__ */ new Date()).getFullYear() +
|
|
10833
|
-
|
|
10832
|
+
locale: h,
|
|
10833
|
+
toYear: (/* @__PURE__ */ new Date()).getFullYear() + 2,
|
|
10834
|
+
reverseYears: !0,
|
|
10835
|
+
reverseMonths: !0,
|
|
10836
|
+
startMonth: l
|
|
10837
|
+
}, y = he(() => {
|
|
10834
10838
|
if (!n) return a;
|
|
10835
10839
|
if (n instanceof Date)
|
|
10836
|
-
return Ut(n,
|
|
10840
|
+
return Ut(n, h.code);
|
|
10837
10841
|
if ("from" in n) {
|
|
10838
|
-
const { from:
|
|
10839
|
-
return
|
|
10842
|
+
const { from: x, to: v } = n;
|
|
10843
|
+
return x && v ? `${Ut(x, h.code)} - ${Ut(v, h.code)}` : Ut(x || v, h.code);
|
|
10840
10844
|
}
|
|
10841
10845
|
return a;
|
|
10842
|
-
}, [
|
|
10843
|
-
return /* @__PURE__ */ M("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ ue(Qp, { open:
|
|
10846
|
+
}, [h.code, a, n]);
|
|
10847
|
+
return /* @__PURE__ */ M("div", { className: "flex flex-col gap-3", children: /* @__PURE__ */ ue(Qp, { open: d, onOpenChange: f, children: [
|
|
10844
10848
|
/* @__PURE__ */ M(Jp, { asChild: !0, children: /* @__PURE__ */ ue(
|
|
10845
10849
|
Qn,
|
|
10846
10850
|
{
|
|
10847
|
-
disabled:
|
|
10851
|
+
disabled: u,
|
|
10848
10852
|
onBlur: t,
|
|
10849
10853
|
variant: "outline",
|
|
10850
10854
|
id: "date",
|
|
10851
10855
|
className: Y(
|
|
10852
10856
|
"w-48 justify-between font-normal !py-[10px] !px-[20px] !text-xs",
|
|
10853
|
-
|
|
10857
|
+
c
|
|
10854
10858
|
),
|
|
10855
10859
|
children: [
|
|
10856
|
-
|
|
10860
|
+
y,
|
|
10857
10861
|
/* @__PURE__ */ M(No, {})
|
|
10858
10862
|
]
|
|
10859
10863
|
}
|
|
@@ -10863,20 +10867,20 @@ function bg({
|
|
|
10863
10867
|
{
|
|
10864
10868
|
mode: "single",
|
|
10865
10869
|
selected: n,
|
|
10866
|
-
onSelect:
|
|
10867
|
-
disabled:
|
|
10870
|
+
onSelect: b,
|
|
10871
|
+
disabled: p,
|
|
10868
10872
|
defaultMonth: n,
|
|
10869
|
-
...
|
|
10873
|
+
...g
|
|
10870
10874
|
}
|
|
10871
10875
|
) : /* @__PURE__ */ M(
|
|
10872
10876
|
Vr,
|
|
10873
10877
|
{
|
|
10874
10878
|
mode: "range",
|
|
10875
10879
|
selected: n,
|
|
10876
|
-
onSelect:
|
|
10877
|
-
disabled:
|
|
10880
|
+
onSelect: b,
|
|
10881
|
+
disabled: p,
|
|
10878
10882
|
defaultMonth: n?.from,
|
|
10879
|
-
...
|
|
10883
|
+
...g
|
|
10880
10884
|
}
|
|
10881
10885
|
) })
|
|
10882
10886
|
] }) });
|