sy-ui-lib 1.0.37 → 1.0.39
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/components/Icon/Icon.component.d.ts +2 -1
- package/dist/components/Icon/Icon.types.d.ts +2 -0
- package/dist/index.cjs +7 -7
- package/dist/index.css +1 -1
- package/dist/index.js +159 -158
- package/package.json +61 -61
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as G4 from "react";
|
|
2
|
-
import O, { createContext as l6, useContext as a6, useCallback as p1, useRef as t1, useLayoutEffect as l4, useState as I, useEffect as J, useMemo as
|
|
2
|
+
import O, { createContext as l6, useContext as a6, useCallback as p1, useRef as t1, useLayoutEffect as l4, useState as I, useEffect as J, useMemo as S2, memo as s5, Children as C6, createElement as j3 } from "react";
|
|
3
3
|
import { createPortal as i5 } from "react-dom";
|
|
4
4
|
function l5(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -356,7 +356,7 @@ const Q2 = {
|
|
|
356
356
|
f,
|
|
357
357
|
m
|
|
358
358
|
].filter(Boolean).join(" "), y = s || h6[t], v = /* @__PURE__ */ r.jsx(y, { className: j, children: g() });
|
|
359
|
-
return p ? /* @__PURE__ */ r.jsx(
|
|
359
|
+
return p ? /* @__PURE__ */ r.jsx(v2, { title: h, children: v }) : v;
|
|
360
360
|
}, g6 = {
|
|
361
361
|
sm: "w-6 h-6",
|
|
362
362
|
md: "w-7 h-7",
|
|
@@ -483,7 +483,7 @@ const Q2 = {
|
|
|
483
483
|
] })
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
|
-
return s && h ? /* @__PURE__ */ r.jsx(
|
|
486
|
+
return s && h ? /* @__PURE__ */ r.jsx(v2, { title: h, children: M }) : M;
|
|
487
487
|
}, C5 = 6048e5, j6 = 864e5, k3 = Symbol.for("constructDateFrom");
|
|
488
488
|
function j1(e, t) {
|
|
489
489
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && k3 in e ? e[k3](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
@@ -513,13 +513,13 @@ let y6 = {};
|
|
|
513
513
|
function q2() {
|
|
514
514
|
return y6;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function H2(e, t) {
|
|
517
517
|
var a, C, c, d;
|
|
518
518
|
const n = q2(), o = (t == null ? void 0 : t.weekStartsOn) ?? ((C = (a = t == null ? void 0 : t.locale) == null ? void 0 : a.options) == null ? void 0 : C.weekStartsOn) ?? n.weekStartsOn ?? ((d = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, s = i1(e, t == null ? void 0 : t.in), i = s.getDay(), l = (i < o ? 7 : 0) + i - o;
|
|
519
519
|
return s.setDate(s.getDate() - l), s.setHours(0, 0, 0, 0), s;
|
|
520
520
|
}
|
|
521
521
|
function Y2(e, t) {
|
|
522
|
-
return
|
|
522
|
+
return H2(e, { ...t, weekStartsOn: 1 });
|
|
523
523
|
}
|
|
524
524
|
function u5(e, t) {
|
|
525
525
|
const n = i1(e, t == null ? void 0 : t.in), o = n.getFullYear(), s = j1(n, 0);
|
|
@@ -543,7 +543,7 @@ function S3(e) {
|
|
|
543
543
|
);
|
|
544
544
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function V2(e, ...t) {
|
|
547
547
|
const n = j1.bind(
|
|
548
548
|
null,
|
|
549
549
|
t.find((o) => typeof o == "object")
|
|
@@ -555,7 +555,7 @@ function z2(e, t) {
|
|
|
555
555
|
return n.setHours(0, 0, 0, 0), n;
|
|
556
556
|
}
|
|
557
557
|
function l3(e, t, n) {
|
|
558
|
-
const [o, s] =
|
|
558
|
+
const [o, s] = V2(
|
|
559
559
|
n == null ? void 0 : n.in,
|
|
560
560
|
e,
|
|
561
561
|
t
|
|
@@ -589,7 +589,7 @@ function S6(e, t) {
|
|
|
589
589
|
}), j1(o, n || NaN);
|
|
590
590
|
}
|
|
591
591
|
function N6(e, t, n) {
|
|
592
|
-
const [o, s] =
|
|
592
|
+
const [o, s] = V2(
|
|
593
593
|
n == null ? void 0 : n.in,
|
|
594
594
|
e,
|
|
595
595
|
t
|
|
@@ -603,7 +603,7 @@ function H6(e) {
|
|
|
603
603
|
return !(!f5(e) && typeof e != "number" || isNaN(+i1(e)));
|
|
604
604
|
}
|
|
605
605
|
function h5(e, t, n) {
|
|
606
|
-
const [o, s] =
|
|
606
|
+
const [o, s] = V2(
|
|
607
607
|
n == null ? void 0 : n.in,
|
|
608
608
|
e,
|
|
609
609
|
t
|
|
@@ -615,7 +615,7 @@ function V6(e, t) {
|
|
|
615
615
|
return n.setFullYear(n.getFullYear(), o + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
616
616
|
}
|
|
617
617
|
function g5(e, t) {
|
|
618
|
-
const [n, o] =
|
|
618
|
+
const [n, o] = V2(e, t.start, t.end);
|
|
619
619
|
return { start: n, end: o };
|
|
620
620
|
}
|
|
621
621
|
function Z6(e, t) {
|
|
@@ -1079,7 +1079,7 @@ const t9 = /^(\d+)(th|st|nd|rd)?/i, n9 = /\d+/i, r9 = {
|
|
|
1079
1079
|
parsePatterns: u9,
|
|
1080
1080
|
defaultParseWidth: "any"
|
|
1081
1081
|
})
|
|
1082
|
-
},
|
|
1082
|
+
}, L2 = {
|
|
1083
1083
|
code: "en-US",
|
|
1084
1084
|
formatDistance: P6,
|
|
1085
1085
|
formatLong: T6,
|
|
@@ -1103,18 +1103,18 @@ function x5(e, t) {
|
|
|
1103
1103
|
var d, u, f, h;
|
|
1104
1104
|
const n = i1(e, t == null ? void 0 : t.in), o = n.getFullYear(), s = q2(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((u = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((h = (f = s.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = j1((t == null ? void 0 : t.in) || e, 0);
|
|
1105
1105
|
l.setFullYear(o + 1, 0, i), l.setHours(0, 0, 0, 0);
|
|
1106
|
-
const a =
|
|
1106
|
+
const a = H2(l, t), C = j1((t == null ? void 0 : t.in) || e, 0);
|
|
1107
1107
|
C.setFullYear(o, 0, i), C.setHours(0, 0, 0, 0);
|
|
1108
|
-
const c =
|
|
1108
|
+
const c = H2(C, t);
|
|
1109
1109
|
return +n >= +a ? o + 1 : +n >= +c ? o : o - 1;
|
|
1110
1110
|
}
|
|
1111
1111
|
function g9(e, t) {
|
|
1112
1112
|
var a, C, c, d;
|
|
1113
1113
|
const n = q2(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((C = (a = t == null ? void 0 : t.locale) == null ? void 0 : a.options) == null ? void 0 : C.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((d = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, s = x5(e, t), i = j1((t == null ? void 0 : t.in) || e, 0);
|
|
1114
|
-
return i.setFullYear(s, 0, o), i.setHours(0, 0, 0, 0),
|
|
1114
|
+
return i.setFullYear(s, 0, o), i.setHours(0, 0, 0, 0), H2(i, t);
|
|
1115
1115
|
}
|
|
1116
1116
|
function C3(e, t) {
|
|
1117
|
-
const n = i1(e, t == null ? void 0 : t.in), o = +
|
|
1117
|
+
const n = i1(e, t == null ? void 0 : t.in), o = +H2(n, t) - +g9(n, t);
|
|
1118
1118
|
return Math.round(o / C5) + 1;
|
|
1119
1119
|
}
|
|
1120
1120
|
function s1(e, t) {
|
|
@@ -1175,7 +1175,7 @@ const r2 = {
|
|
|
1175
1175
|
);
|
|
1176
1176
|
return s1(s, t.length);
|
|
1177
1177
|
}
|
|
1178
|
-
},
|
|
1178
|
+
}, M2 = {
|
|
1179
1179
|
midnight: "midnight",
|
|
1180
1180
|
noon: "noon",
|
|
1181
1181
|
morning: "morning",
|
|
@@ -1565,7 +1565,7 @@ const r2 = {
|
|
|
1565
1565
|
b: function(e, t, n) {
|
|
1566
1566
|
const o = e.getHours();
|
|
1567
1567
|
let s;
|
|
1568
|
-
switch (o === 12 ? s =
|
|
1568
|
+
switch (o === 12 ? s = M2.noon : o === 0 ? s = M2.midnight : s = o / 12 >= 1 ? "pm" : "am", t) {
|
|
1569
1569
|
case "b":
|
|
1570
1570
|
case "bb":
|
|
1571
1571
|
return n.dayPeriod(s, {
|
|
@@ -1594,7 +1594,7 @@ const r2 = {
|
|
|
1594
1594
|
B: function(e, t, n) {
|
|
1595
1595
|
const o = e.getHours();
|
|
1596
1596
|
let s;
|
|
1597
|
-
switch (o >= 17 ? s =
|
|
1597
|
+
switch (o >= 17 ? s = M2.evening : o >= 12 ? s = M2.afternoon : o >= 4 ? s = M2.morning : s = M2.night, t) {
|
|
1598
1598
|
case "B":
|
|
1599
1599
|
case "BB":
|
|
1600
1600
|
case "BBB":
|
|
@@ -1812,9 +1812,9 @@ function b9(e, t, n) {
|
|
|
1812
1812
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1813
1813
|
}
|
|
1814
1814
|
const L9 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, k9 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, S9 = /^'([^]*?)'?$/, N9 = /''/g, H9 = /[a-zA-Z]/;
|
|
1815
|
-
function
|
|
1815
|
+
function k2(e, t, n) {
|
|
1816
1816
|
var d, u, f, h, g, p, m, j;
|
|
1817
|
-
const o = q2(), s = (n == null ? void 0 : n.locale) ?? o.locale ??
|
|
1817
|
+
const o = q2(), s = (n == null ? void 0 : n.locale) ?? o.locale ?? L2, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((h = (f = o.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (g = n == null ? void 0 : n.locale) == null ? void 0 : g.options) == null ? void 0 : p.weekStartsOn) ?? o.weekStartsOn ?? ((j = (m = o.locale) == null ? void 0 : m.options) == null ? void 0 : j.weekStartsOn) ?? 0, a = i1(e, n == null ? void 0 : n.in);
|
|
1818
1818
|
if (!H6(a))
|
|
1819
1819
|
throw new RangeError("Invalid time value");
|
|
1820
1820
|
let C = t.match(k9).map((y) => {
|
|
@@ -1873,7 +1873,7 @@ function D9(e, t) {
|
|
|
1873
1873
|
return +i1(e) < +i1(t);
|
|
1874
1874
|
}
|
|
1875
1875
|
function R9(e, t, n) {
|
|
1876
|
-
const [o, s] =
|
|
1876
|
+
const [o, s] = V2(
|
|
1877
1877
|
n == null ? void 0 : n.in,
|
|
1878
1878
|
e,
|
|
1879
1879
|
t
|
|
@@ -1881,7 +1881,7 @@ function R9(e, t, n) {
|
|
|
1881
1881
|
return o.getFullYear() === s.getFullYear() && o.getMonth() === s.getMonth();
|
|
1882
1882
|
}
|
|
1883
1883
|
function P9(e, t, n) {
|
|
1884
|
-
const [o, s] =
|
|
1884
|
+
const [o, s] = V2(
|
|
1885
1885
|
n == null ? void 0 : n.in,
|
|
1886
1886
|
e,
|
|
1887
1887
|
t
|
|
@@ -2060,11 +2060,11 @@ function Y9(e, t) {
|
|
|
2060
2060
|
return t.addDays(n, o * 7 - 1);
|
|
2061
2061
|
}
|
|
2062
2062
|
const y5 = {
|
|
2063
|
-
...
|
|
2063
|
+
...L2,
|
|
2064
2064
|
labels: {
|
|
2065
2065
|
labelDayButton: (e, t, n, o) => {
|
|
2066
2066
|
let s;
|
|
2067
|
-
o && typeof o.format == "function" ? s = o.format.bind(o) : s = (l, a) =>
|
|
2067
|
+
o && typeof o.format == "function" ? s = o.format.bind(o) : s = (l, a) => k2(l, a, { locale: L2, ...n });
|
|
2068
2068
|
let i = s(e, "PPPP");
|
|
2069
2069
|
return t.today && (i = `Today, ${i}`), t.selected && (i = `${i}, selected`), i;
|
|
2070
2070
|
},
|
|
@@ -2075,11 +2075,11 @@ const y5 = {
|
|
|
2075
2075
|
labelYearDropdown: "Choose the Year",
|
|
2076
2076
|
labelGrid: (e, t, n) => {
|
|
2077
2077
|
let o;
|
|
2078
|
-
return n && typeof n.format == "function" ? o = n.format.bind(n) : o = (s, i) =>
|
|
2078
|
+
return n && typeof n.format == "function" ? o = n.format.bind(n) : o = (s, i) => k2(s, i, { locale: L2, ...t }), o(e, "LLLL yyyy");
|
|
2079
2079
|
},
|
|
2080
2080
|
labelGridcell: (e, t, n, o) => {
|
|
2081
2081
|
let s;
|
|
2082
|
-
o && typeof o.format == "function" ? s = o.format.bind(o) : s = (l, a) =>
|
|
2082
|
+
o && typeof o.format == "function" ? s = o.format.bind(o) : s = (l, a) => k2(l, a, { locale: L2, ...n });
|
|
2083
2083
|
let i = s(e, "PPPP");
|
|
2084
2084
|
return t != null && t.today && (i = `Today, ${i}`), i;
|
|
2085
2085
|
},
|
|
@@ -2087,7 +2087,7 @@ const y5 = {
|
|
|
2087
2087
|
labelWeekNumberHeader: "Week Number",
|
|
2088
2088
|
labelWeekday: (e, t, n) => {
|
|
2089
2089
|
let o;
|
|
2090
|
-
return n && typeof n.format == "function" ? o = n.format.bind(n) : o = (s, i) =>
|
|
2090
|
+
return n && typeof n.format == "function" ? o = n.format.bind(n) : o = (s, i) => k2(s, i, { locale: L2, ...t }), o(e, "cccc");
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
@@ -2152,7 +2152,7 @@ class O1 {
|
|
|
2152
2152
|
return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(o) : O6(o);
|
|
2153
2153
|
}, this.format = (o, s, i) => {
|
|
2154
2154
|
var a;
|
|
2155
|
-
const l = (a = this.overrides) != null && a.format ? this.overrides.format(o, s, this.options) :
|
|
2155
|
+
const l = (a = this.overrides) != null && a.format ? this.overrides.format(o, s, this.options) : k2(o, s, this.options);
|
|
2156
2156
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(l) : l;
|
|
2157
2157
|
}, this.getISOWeek = (o) => {
|
|
2158
2158
|
var s;
|
|
@@ -2210,7 +2210,7 @@ class O1 {
|
|
|
2210
2210
|
return (s = this.overrides) != null && s.startOfMonth ? this.overrides.startOfMonth(o) : E6(o);
|
|
2211
2211
|
}, this.startOfWeek = (o, s) => {
|
|
2212
2212
|
var i;
|
|
2213
|
-
return (i = this.overrides) != null && i.startOfWeek ? this.overrides.startOfWeek(o, this.options) :
|
|
2213
|
+
return (i = this.overrides) != null && i.startOfWeek ? this.overrides.startOfWeek(o, this.options) : H2(o, this.options);
|
|
2214
2214
|
}, this.startOfYear = (o) => {
|
|
2215
2215
|
var s;
|
|
2216
2216
|
return (s = this.overrides) != null && s.startOfYear ? this.overrides.startOfYear(o) : m5(o);
|
|
@@ -3038,7 +3038,7 @@ function r8(e, t) {
|
|
|
3038
3038
|
const b = D3(e, n, o, t);
|
|
3039
3039
|
C(b);
|
|
3040
3040
|
}, [e.timeZone]);
|
|
3041
|
-
const { months: c, weeks: d, days: u, previousMonth: f, nextMonth: h } =
|
|
3041
|
+
const { months: c, weeks: d, days: u, previousMonth: f, nextMonth: h } = S2(() => {
|
|
3042
3042
|
const b = X7(a, o, { numberOfMonths: e.numberOfMonths }, t), x = U7(b, e.endMonth ? i(e.endMonth) : void 0, {
|
|
3043
3043
|
ISOWeek: e.ISOWeek,
|
|
3044
3044
|
fixedWeeks: e.fixedWeeks,
|
|
@@ -3255,21 +3255,21 @@ function f8(e, t) {
|
|
|
3255
3255
|
function R1(e, t) {
|
|
3256
3256
|
return e instanceof N1 && e.timeZone === t ? e : new N1(e, t);
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function b2(e, t, n) {
|
|
3259
3259
|
return R1(e, t);
|
|
3260
3260
|
}
|
|
3261
3261
|
function F3(e, t, n) {
|
|
3262
|
-
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ?
|
|
3262
|
+
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? b2(e, t) : Array.isArray(e) ? e.map((o) => o instanceof Date ? b2(o, t) : o) : c4(e) ? {
|
|
3263
3263
|
...e,
|
|
3264
3264
|
from: e.from ? R1(e.from, t) : e.from,
|
|
3265
3265
|
to: e.to ? R1(e.to, t) : e.to
|
|
3266
3266
|
} : c3(e) ? {
|
|
3267
|
-
before:
|
|
3268
|
-
after:
|
|
3267
|
+
before: b2(e.before, t),
|
|
3268
|
+
after: b2(e.after, t)
|
|
3269
3269
|
} : d3(e) ? {
|
|
3270
|
-
after:
|
|
3270
|
+
after: b2(e.after, t)
|
|
3271
3271
|
} : u3(e) ? {
|
|
3272
|
-
before:
|
|
3272
|
+
before: b2(e.before, t)
|
|
3273
3273
|
} : e;
|
|
3274
3274
|
}
|
|
3275
3275
|
function b4(e, t, n) {
|
|
@@ -3292,7 +3292,7 @@ function h8(e) {
|
|
|
3292
3292
|
G[Q] = b4((T = t.modifiers) == null ? void 0 : T[Q], n);
|
|
3293
3293
|
}), t.modifiers = G;
|
|
3294
3294
|
}
|
|
3295
|
-
const { components: o, formatters: s, labels: i, dateLib: l, locale: a, classNames: C } =
|
|
3295
|
+
const { components: o, formatters: s, labels: i, dateLib: l, locale: a, classNames: C } = S2(() => {
|
|
3296
3296
|
const G = { ...y5, ...t.locale }, Q = t.broadcastCalendar ? 1 : t.weekStartsOn, T = t.noonSafe && t.timeZone ? W7(t.timeZone, {
|
|
3297
3297
|
weekStartsOn: Q,
|
|
3298
3298
|
locale: G
|
|
@@ -3330,7 +3330,7 @@ function h8(e) {
|
|
|
3330
3330
|
t.classNames
|
|
3331
3331
|
]);
|
|
3332
3332
|
t.today || (t = { ...t, today: l.today() });
|
|
3333
|
-
const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: f = 1, onDayBlur: h, onDayClick: g, onDayFocus: p, onDayKeyDown: m, onDayMouseEnter: j, onDayMouseLeave: y, onNextClick: v, onPrevClick: M, showWeekNumber: b, styles: x } = t, { formatCaption: L, formatDay: S, formatMonthDropdown: Z, formatWeekNumber: V, formatWeekNumberHeader: N, formatWeekdayName: H, formatYearDropdown: D } = s, A = r8(t, l), { days: _, months: K, navStart: v1, navEnd: y1, previousMonth: n1, nextMonth: l1, goToMonth: k } = A, P = j7(_, t, v1, y1, l), { isSelected: q, select: $, selected: x1 } = f8(t, l) ?? {}, { blur: F, focused: R, isFocusTarget: d1, moveFocus: w1, setFocused: g1 } = i8(t, A, P, q ?? (() => !1), l), { labelDayButton: I1, labelGridcell: m1, labelGrid: a1, labelMonthDropdown: U1, labelNav: P1, labelPrevious: Z2, labelNext: C2, labelWeekday: E2, labelWeekNumber: c2, labelWeekNumberHeader: O2, labelYearDropdown:
|
|
3333
|
+
const { captionLayout: c, mode: d, navLayout: u, numberOfMonths: f = 1, onDayBlur: h, onDayClick: g, onDayFocus: p, onDayKeyDown: m, onDayMouseEnter: j, onDayMouseLeave: y, onNextClick: v, onPrevClick: M, showWeekNumber: b, styles: x } = t, { formatCaption: L, formatDay: S, formatMonthDropdown: Z, formatWeekNumber: V, formatWeekNumberHeader: N, formatWeekdayName: H, formatYearDropdown: D } = s, A = r8(t, l), { days: _, months: K, navStart: v1, navEnd: y1, previousMonth: n1, nextMonth: l1, goToMonth: k } = A, P = j7(_, t, v1, y1, l), { isSelected: q, select: $, selected: x1 } = f8(t, l) ?? {}, { blur: F, focused: R, isFocusTarget: d1, moveFocus: w1, setFocused: g1 } = i8(t, A, P, q ?? (() => !1), l), { labelDayButton: I1, labelGridcell: m1, labelGrid: a1, labelMonthDropdown: U1, labelNav: P1, labelPrevious: Z2, labelNext: C2, labelWeekday: E2, labelWeekNumber: c2, labelWeekNumberHeader: O2, labelYearDropdown: w2 } = i, d2 = S2(() => I7(l, t.ISOWeek, t.broadcastCalendar, t.today), [l, t.ISOWeek, t.broadcastCalendar, t.today]), K1 = d !== void 0 || g !== void 0, u2 = p1(() => {
|
|
3334
3334
|
n1 && (k(n1), M == null || M(n1));
|
|
3335
3335
|
}, [n1, k, M]), F1 = p1(() => {
|
|
3336
3336
|
l1 && (k(l1), v == null || v(l1));
|
|
@@ -3365,15 +3365,15 @@ function h8(e) {
|
|
|
3365
3365
|
m == null || m(G.date, Q, T);
|
|
3366
3366
|
}, [w1, m, t.dir]), A1 = p1((G, Q) => (T) => {
|
|
3367
3367
|
j == null || j(G.date, Q, T);
|
|
3368
|
-
}, [j]),
|
|
3368
|
+
}, [j]), j2 = p1((G, Q) => (T) => {
|
|
3369
3369
|
y == null || y(G.date, Q, T);
|
|
3370
3370
|
}, [y]), D2 = p1((G) => (Q) => {
|
|
3371
3371
|
const T = Number(Q.target.value), e1 = l.setMonth(l.startOfMonth(G), T);
|
|
3372
3372
|
k(e1);
|
|
3373
|
-
}, [l, k]),
|
|
3373
|
+
}, [l, k]), y2 = p1((G) => (Q) => {
|
|
3374
3374
|
const T = Number(Q.target.value), e1 = l.setYear(l.startOfMonth(G), T);
|
|
3375
3375
|
k(e1);
|
|
3376
|
-
}, [l, k]), { className: E, style: U } =
|
|
3376
|
+
}, [l, k]), { className: E, style: U } = S2(() => ({
|
|
3377
3377
|
className: [C[B.Root], t.className].filter(Boolean).join(" "),
|
|
3378
3378
|
style: { ...x == null ? void 0 : x[B.Root], ...t.style }
|
|
3379
3379
|
}), [C, t.className, t.style, x]), o1 = b7(t), C1 = t1(null);
|
|
@@ -3429,7 +3429,7 @@ function h8(e) {
|
|
|
3429
3429
|
o.DropdownNav,
|
|
3430
3430
|
{ className: C[B.Dropdowns], style: x == null ? void 0 : x[B.Dropdowns] },
|
|
3431
3431
|
(() => {
|
|
3432
|
-
const T = c === "dropdown" || c === "dropdown-months" ? O.createElement(o.MonthsDropdown, { key: "month", className: C[B.MonthsDropdown], "aria-label": U1(), classNames: C, components: o, disabled: !!t.disableNavigation, onChange: D2(G.date), options: $7(G.date, v1, y1, s, l), style: x == null ? void 0 : x[B.Dropdown], value: l.getMonth(G.date) }) : O.createElement("span", { key: "month" }, Z(G.date, l)), e1 = c === "dropdown" || c === "dropdown-years" ? O.createElement(o.YearsDropdown, { key: "year", className: C[B.YearsDropdown], "aria-label":
|
|
3432
|
+
const T = c === "dropdown" || c === "dropdown-months" ? O.createElement(o.MonthsDropdown, { key: "month", className: C[B.MonthsDropdown], "aria-label": U1(), classNames: C, components: o, disabled: !!t.disableNavigation, onChange: D2(G.date), options: $7(G.date, v1, y1, s, l), style: x == null ? void 0 : x[B.Dropdown], value: l.getMonth(G.date) }) : O.createElement("span", { key: "month" }, Z(G.date, l)), e1 = c === "dropdown" || c === "dropdown-years" ? O.createElement(o.YearsDropdown, { key: "year", className: C[B.YearsDropdown], "aria-label": w2(l.options), classNames: C, components: o, disabled: !!t.disableNavigation, onChange: y2(G.date), options: A7(v1, y1, s, l, !!t.reverseYears), style: x == null ? void 0 : x[B.Dropdown], value: l.getYear(G.date) }) : O.createElement("span", { key: "year" }, D(G.date, l));
|
|
3433
3433
|
return l.getMonthYearOrder() === "year-first" ? [e1, T] : [T, e1];
|
|
3434
3434
|
})(),
|
|
3435
3435
|
O.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -3473,7 +3473,7 @@ function h8(e) {
|
|
|
3473
3473
|
X[$1.range_start] = !!(p4 && x4 && l.isSameDay(L1, p4)), X[$1.range_end] = !!(p4 && x4 && l.isSameDay(L1, x4)), X[$1.range_middle] = Q1(x1, L1, !0, l);
|
|
3474
3474
|
}
|
|
3475
3475
|
const m4 = T7(X, x, t.modifiersStyles), M1 = y7(X, C, t.modifiersClassNames), i6 = !K1 && !X.hidden ? m1(L1, X, l.options, l) : void 0;
|
|
3476
|
-
return O.createElement(o.Day, { key: `${e1.isoDate}_${e1.displayMonthId}`, day: e1, modifiers: X, className: M1.join(" "), style: m4, role: "gridcell", "aria-selected": X.selected || void 0, "aria-label": i6, "data-day": e1.isoDate, "data-month": e1.outside ? e1.dateMonthId : void 0, "data-selected": X.selected || void 0, "data-disabled": X.disabled || void 0, "data-hidden": X.hidden || void 0, "data-outside": e1.outside || void 0, "data-focused": X.focused || void 0, "data-today": X.today || void 0 }, !X.hidden && K1 ? O.createElement(o.DayButton, { className: C[B.DayButton], style: x == null ? void 0 : x[B.DayButton], type: "button", day: e1, modifiers: X, disabled: !X.focused && X.disabled || void 0, "aria-disabled": X.focused && X.disabled || void 0, tabIndex: d1(e1) ? 0 : -1, "aria-label": I1(L1, X, l.options, l), onClick: _2(e1, X), onBlur: f1(e1, X), onFocus: r1(e1, X), onKeyDown: D1(e1, X), onMouseEnter: A1(e1, X), onMouseLeave:
|
|
3476
|
+
return O.createElement(o.Day, { key: `${e1.isoDate}_${e1.displayMonthId}`, day: e1, modifiers: X, className: M1.join(" "), style: m4, role: "gridcell", "aria-selected": X.selected || void 0, "aria-label": i6, "data-day": e1.isoDate, "data-month": e1.outside ? e1.dateMonthId : void 0, "data-selected": X.selected || void 0, "data-disabled": X.disabled || void 0, "data-hidden": X.hidden || void 0, "data-outside": e1.outside || void 0, "data-focused": X.focused || void 0, "data-today": X.today || void 0 }, !X.hidden && K1 ? O.createElement(o.DayButton, { className: C[B.DayButton], style: x == null ? void 0 : x[B.DayButton], type: "button", day: e1, modifiers: X, disabled: !X.focused && X.disabled || void 0, "aria-disabled": X.focused && X.disabled || void 0, tabIndex: d1(e1) ? 0 : -1, "aria-label": I1(L1, X, l.options, l), onClick: _2(e1, X), onBlur: f1(e1, X), onFocus: r1(e1, X), onKeyDown: D1(e1, X), onMouseEnter: A1(e1, X), onMouseLeave: j2(e1, X) }, S(L1, l.options, l)) : !X.hidden && S(e1.date, l.options, l));
|
|
3477
3477
|
})
|
|
3478
3478
|
)))
|
|
3479
3479
|
)
|
|
@@ -3599,7 +3599,7 @@ const Ct = ({
|
|
|
3599
3599
|
rounded-lg cursor-pointer ${x}
|
|
3600
3600
|
`, S = "fixed z-level-3 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-w-md bg-white border border-brightgray shadow-xl rounded-lg p-3 md:absolute md:top-full md:left-0 md:translate-x-0 md:translate-y-0 md:mt-1 md:w-auto", Z = (H) => {
|
|
3601
3601
|
p((D) => D === H ? null : H);
|
|
3602
|
-
}, V = (H, D) => H ?
|
|
3602
|
+
}, V = (H, D) => H ? k2(H, "dd MMM yyyy") : D || e, N = (H, D, A) => /* @__PURE__ */ r.jsxs("div", { className: `relative ${M[C]}`, children: [
|
|
3603
3603
|
/* @__PURE__ */ r.jsxs(
|
|
3604
3604
|
"button",
|
|
3605
3605
|
{
|
|
@@ -3788,7 +3788,85 @@ const Ct = ({
|
|
|
3788
3788
|
}
|
|
3789
3789
|
)
|
|
3790
3790
|
] });
|
|
3791
|
-
return C ? /* @__PURE__ */ r.jsx(
|
|
3791
|
+
return C ? /* @__PURE__ */ r.jsx(v2, { title: C, children: u }) : u;
|
|
3792
|
+
}, v2 = (e) => {
|
|
3793
|
+
const { title: t = "", children: n, position: o = "top" } = e, [s, i] = I(!1), [l, a] = I(o), [C, c] = I({ top: 0, left: 0 }), d = t1(null), u = t1(null), f = p1(() => {
|
|
3794
|
+
if (!d.current || !u.current) return;
|
|
3795
|
+
const m = d.current.getBoundingClientRect(), j = document.elementFromPoint(
|
|
3796
|
+
m.left + m.width / 2,
|
|
3797
|
+
m.top + m.height / 2
|
|
3798
|
+
);
|
|
3799
|
+
if (!d.current.contains(j)) {
|
|
3800
|
+
i(!1);
|
|
3801
|
+
return;
|
|
3802
|
+
}
|
|
3803
|
+
const y = d.current.parentElement;
|
|
3804
|
+
if (y) {
|
|
3805
|
+
const H = y.getBoundingClientRect();
|
|
3806
|
+
if (m.right < H.left || m.left > H.right || m.bottom < H.top || m.top > H.bottom) {
|
|
3807
|
+
i(!1);
|
|
3808
|
+
return;
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
if (m.right < 0 || m.left > window.innerWidth || m.bottom < 0 || m.top > window.innerHeight) {
|
|
3812
|
+
i(!1);
|
|
3813
|
+
return;
|
|
3814
|
+
}
|
|
3815
|
+
const v = u.current.getBoundingClientRect(), M = m.top, b = window.innerHeight - m.bottom, x = m.left, L = window.innerWidth - m.right;
|
|
3816
|
+
let S = o;
|
|
3817
|
+
o === "top" && M < v.height && (S = "bottom"), o === "bottom" && b < v.height && (S = "top"), o === "left" && x < v.width && (S = "right"), o === "right" && L < v.width && (S = "left"), a(S);
|
|
3818
|
+
let Z = 0, V = 0;
|
|
3819
|
+
S === "top" && (Z = m.top - v.height - 8, V = m.left + m.width / 2 - v.width / 2), S === "bottom" && (Z = m.bottom + 8, V = m.left + m.width / 2 - v.width / 2), S === "left" && (Z = m.top + m.height / 2 - v.height / 2, V = m.left - v.width - 8), S === "right" && (Z = m.top + m.height / 2 - v.height / 2, V = m.right + 8);
|
|
3820
|
+
const N = 8;
|
|
3821
|
+
V < N && (V = N), V + v.width > window.innerWidth - N && (V = window.innerWidth - v.width - N), Z < N && (Z = N), Z + v.height > window.innerHeight - N && (Z = window.innerHeight - v.height - N), c({ top: Z, left: V });
|
|
3822
|
+
}, [o]);
|
|
3823
|
+
l4(() => {
|
|
3824
|
+
s && f();
|
|
3825
|
+
}, [s, f]), l4(() => {
|
|
3826
|
+
if (!s) return;
|
|
3827
|
+
const m = () => {
|
|
3828
|
+
f();
|
|
3829
|
+
};
|
|
3830
|
+
return window.addEventListener("resize", m), window.addEventListener("scroll", m, !0), () => {
|
|
3831
|
+
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
|
|
3832
|
+
};
|
|
3833
|
+
}, [s, f]);
|
|
3834
|
+
const h = {
|
|
3835
|
+
top: {
|
|
3836
|
+
arrow: "left-1/2 -bottom-1 translate-x-[-50%]"
|
|
3837
|
+
},
|
|
3838
|
+
bottom: {
|
|
3839
|
+
arrow: "left-1/2 -top-1 translate-x-[-50%]"
|
|
3840
|
+
},
|
|
3841
|
+
left: {
|
|
3842
|
+
arrow: "top-1/2 -right-1 translate-y-[-50%]"
|
|
3843
|
+
},
|
|
3844
|
+
right: {
|
|
3845
|
+
arrow: "top-1/2 -left-1 translate-y-[-50%]"
|
|
3846
|
+
}
|
|
3847
|
+
}, g = "fixed z-level-2 p-3 max-w-2xs md:max-w-sm break-words rounded-lg bg-white shadow-md", p = `absolute h-3 w-3 bg-white shadow-lg rotate-45 ${h[l].arrow}`;
|
|
3848
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "relative inline-block", ref: d, children: [
|
|
3849
|
+
/* @__PURE__ */ r.jsx(
|
|
3850
|
+
"div",
|
|
3851
|
+
{
|
|
3852
|
+
onMouseEnter: () => i(!0),
|
|
3853
|
+
onMouseLeave: () => i(!1),
|
|
3854
|
+
children: n
|
|
3855
|
+
}
|
|
3856
|
+
),
|
|
3857
|
+
s && /* @__PURE__ */ r.jsxs(
|
|
3858
|
+
"div",
|
|
3859
|
+
{
|
|
3860
|
+
ref: u,
|
|
3861
|
+
className: g,
|
|
3862
|
+
style: { top: C.top, left: C.left },
|
|
3863
|
+
children: [
|
|
3864
|
+
/* @__PURE__ */ r.jsx("div", { className: p }),
|
|
3865
|
+
/* @__PURE__ */ r.jsx("div", { className: "wrap-break-word whitespace-normal", children: typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ r.jsx(w, { text: String(t), variant: "caption" }) : t })
|
|
3866
|
+
]
|
|
3867
|
+
}
|
|
3868
|
+
)
|
|
3869
|
+
] });
|
|
3792
3870
|
}, x8 = {
|
|
3793
3871
|
one: (e) => /* @__PURE__ */ r.jsxs(
|
|
3794
3872
|
"svg",
|
|
@@ -6415,10 +6493,11 @@ const Ct = ({
|
|
|
6415
6493
|
onClick: s,
|
|
6416
6494
|
cursorPointer: i = !0,
|
|
6417
6495
|
disabled: l = !1,
|
|
6418
|
-
className: a
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6496
|
+
className: a,
|
|
6497
|
+
tooltipText: C
|
|
6498
|
+
} = e, c = x8[t];
|
|
6499
|
+
if (!c) return null;
|
|
6500
|
+
const d = s ? "button" : "span", u = {
|
|
6422
6501
|
onClick: l ? void 0 : s,
|
|
6423
6502
|
className: a,
|
|
6424
6503
|
style: {
|
|
@@ -6429,9 +6508,9 @@ const Ct = ({
|
|
|
6429
6508
|
padding: 0,
|
|
6430
6509
|
cursor: l ? "not-allowed" : s || i ? "pointer" : "default"
|
|
6431
6510
|
},
|
|
6432
|
-
...s ? { type: "button" } : {}
|
|
6433
|
-
};
|
|
6434
|
-
return
|
|
6511
|
+
...s ? { type: "button", disabled: l } : {}
|
|
6512
|
+
}, f = O.createElement(d, u, c(n));
|
|
6513
|
+
return C ? /* @__PURE__ */ r.jsx(v2, { title: C, children: f }) : f;
|
|
6435
6514
|
}, v8 = {
|
|
6436
6515
|
true: "border-error focus-within:border-error",
|
|
6437
6516
|
false: "border-brightgray focus-within:border-smokyblack"
|
|
@@ -9283,7 +9362,7 @@ const dt = (e) => {
|
|
|
9283
9362
|
}
|
|
9284
9363
|
),
|
|
9285
9364
|
c && /* @__PURE__ */ r.jsx(
|
|
9286
|
-
|
|
9365
|
+
v2,
|
|
9287
9366
|
{
|
|
9288
9367
|
title: (c == null ? void 0 : c.title) || "",
|
|
9289
9368
|
position: (c == null ? void 0 : c.position) ?? "top",
|
|
@@ -11522,7 +11601,7 @@ const t2 = (e, t = {}) => {
|
|
|
11522
11601
|
onSelect: i,
|
|
11523
11602
|
displaySelected: l = !1
|
|
11524
11603
|
}) => {
|
|
11525
|
-
const [a, C] = I(!1), c = t1(null), d =
|
|
11604
|
+
const [a, C] = I(!1), c = t1(null), d = S2(
|
|
11526
11605
|
() => [{ label: "All", value: "all" }, ...o],
|
|
11527
11606
|
[o]
|
|
11528
11607
|
), u = p1((x) => {
|
|
@@ -12646,7 +12725,7 @@ const D4 = {
|
|
|
12646
12725
|
}
|
|
12647
12726
|
) }),
|
|
12648
12727
|
!s && ((l = i == null ? void 0 : i.info) == null ? void 0 : l.title) && /* @__PURE__ */ r.jsx(
|
|
12649
|
-
|
|
12728
|
+
v2,
|
|
12650
12729
|
{
|
|
12651
12730
|
title: (a = i == null ? void 0 : i.info) == null ? void 0 : a.title,
|
|
12652
12731
|
position: (C = i == null ? void 0 : i.info) == null ? void 0 : C.position,
|
|
@@ -13188,10 +13267,10 @@ const D4 = {
|
|
|
13188
13267
|
}, R4 = ({ level: e = 3 }) => /* @__PURE__ */ r.jsxs(
|
|
13189
13268
|
"div",
|
|
13190
13269
|
{
|
|
13191
|
-
className: `${e === 1 ? "flex gap-0.5 sm:gap-1" : e === 2 ? "flex gap-0.5 sm:gap-1 pr-13 lg:pr-17" : "flex gap-1 pr-
|
|
13270
|
+
className: `${e === 1 ? "flex gap-0.5 sm:gap-1" : e === 2 ? "flex gap-0.5 sm:gap-1 pr-13 lg:pr-17" : "flex gap-1 pr-26 sm:pr-27 md:pr-29 lg:pr-34"}
|
|
13192
13271
|
`,
|
|
13193
13272
|
children: [
|
|
13194
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex justify-center items-center min-w-11.5 min-[420px]:min-w-
|
|
13273
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex justify-center items-center min-w-11.5 min-[420px]:min-w-13 md:min-w-14 lg:min-w-18 h-7 bg-babyBlue rounded-t-lg", children: /* @__PURE__ */ r.jsx(
|
|
13195
13274
|
w,
|
|
13196
13275
|
{
|
|
13197
13276
|
text: e === 1 ? "Back" : "Back All",
|
|
@@ -13199,7 +13278,7 @@ const D4 = {
|
|
|
13199
13278
|
variant: "captionBold"
|
|
13200
13279
|
}
|
|
13201
13280
|
) }),
|
|
13202
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex justify-center items-center min-w-11.5 min-[420px]:min-w-
|
|
13281
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex justify-center items-center min-w-11.5 min-[420px]:min-w-13 md:min-w-14 lg:min-w-18 h-7 bg-watermelonRed rounded-t-lg", children: /* @__PURE__ */ r.jsx(
|
|
13203
13282
|
w,
|
|
13204
13283
|
{
|
|
13205
13284
|
text: e === 1 ? "Lay" : "Lay All",
|
|
@@ -13297,7 +13376,7 @@ const D4 = {
|
|
|
13297
13376
|
] }),
|
|
13298
13377
|
(t === "OtherMarket" || t === "MatchOdds") && /* @__PURE__ */ r.jsxs("div", { className: "flex justify-between border border-b border-brightgray py-1 px-2", children: [
|
|
13299
13378
|
m(),
|
|
13300
|
-
|
|
13379
|
+
/* @__PURE__ */ r.jsx("div", { className: "ml-1 max-[430px]:hidden", children: /* @__PURE__ */ r.jsx(R4, { level: o }) })
|
|
13301
13380
|
] }),
|
|
13302
13381
|
t === "Racing" && /* @__PURE__ */ r.jsxs("div", { className: "flex justify-between border border-b border-brightgray py-1 px-1 md:px-1.5 lg:px-2", children: [
|
|
13303
13382
|
m(),
|
|
@@ -13353,7 +13432,7 @@ const D4 = {
|
|
|
13353
13432
|
type: "button",
|
|
13354
13433
|
disabled: c || !(i != null && i.odds) || !(i != null && i.oddsSize),
|
|
13355
13434
|
onClick: () => (i == null ? void 0 : i.odds) && (i == null ? void 0 : i.oddsSize) && !c && h(m),
|
|
13356
|
-
className: `min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded-xs
|
|
13435
|
+
className: `min-[420px]:px-1 md:px-2 min-[420px]:py-1 rounded-xs w-11.5 min-[420px]:w-13 lg:w-16 min-h-8 text-center cursor-pointer disabled:cursor-not-allowed flex-1 ${a} transition-colors duration-300
|
|
13357
13436
|
${j ? "bg-yellow" : ""}`,
|
|
13358
13437
|
children: [
|
|
13359
13438
|
/* @__PURE__ */ r.jsx(
|
|
@@ -14116,7 +14195,7 @@ const D4 = {
|
|
|
14116
14195
|
)
|
|
14117
14196
|
}
|
|
14118
14197
|
);
|
|
14119
|
-
return o && C ? /* @__PURE__ */ r.jsx(
|
|
14198
|
+
return o && C ? /* @__PURE__ */ r.jsx(v2, { title: C, children: f }) : f;
|
|
14120
14199
|
}, At = (e) => {
|
|
14121
14200
|
const { competition: t, startStatus: n, title: o, time: s, id: i, isLive: l, onClick: a } = e;
|
|
14122
14201
|
return /* @__PURE__ */ r.jsxs("div", { className: "w-full overflow-hidden rounded-xl border border-brightgray bg-white", children: [
|
|
@@ -15036,7 +15115,7 @@ function e5(e, t) {
|
|
|
15036
15115
|
var n = Number(e);
|
|
15037
15116
|
return t === "am" && n === 12 ? n = 0 : t === "pm" && n < 12 && (n += 12), n;
|
|
15038
15117
|
}
|
|
15039
|
-
function
|
|
15118
|
+
function N2(e) {
|
|
15040
15119
|
var t = Number(e) % 12 || 12;
|
|
15041
15120
|
return [t, Number(e) < 12 ? "am" : "pm"];
|
|
15042
15121
|
}
|
|
@@ -15104,16 +15183,16 @@ var r3 = function() {
|
|
|
15104
15183
|
};
|
|
15105
15184
|
function I0(e) {
|
|
15106
15185
|
var t = e.amPm, n = e.maxTime, o = e.minTime, s = e.value, i = T0(e, ["amPm", "maxTime", "minTime", "value"]), l = h4(12, n && (function() {
|
|
15107
|
-
var c =
|
|
15186
|
+
var c = N2(H1(n)), d = c[0], u = c[1];
|
|
15108
15187
|
return u !== t ? null : d;
|
|
15109
15188
|
})()), a = g4(1, o && (function() {
|
|
15110
|
-
var c =
|
|
15189
|
+
var c = N2(H1(o)), d = c[0], u = c[1];
|
|
15111
15190
|
return (
|
|
15112
15191
|
// pm is always after am, so we should ignore validation
|
|
15113
15192
|
u !== t || // If minHour is 12 am/pm, user should be able to enter 12, 1, ..., 11.
|
|
15114
15193
|
d === 12 ? null : d
|
|
15115
15194
|
);
|
|
15116
|
-
})()), C = s ?
|
|
15195
|
+
})()), C = s ? N2(s)[0].toString() : "";
|
|
15117
15196
|
return r.jsx(f4, r3({ max: l, min: a, name: "hour12", nameForClass: "hour", value: C }, i));
|
|
15118
15197
|
}
|
|
15119
15198
|
var o3 = function() {
|
|
@@ -15220,7 +15299,7 @@ function U0(e) {
|
|
|
15220
15299
|
}, type: "time", value: C ? d(C) : "" });
|
|
15221
15300
|
}
|
|
15222
15301
|
function K0(e) {
|
|
15223
|
-
var t = e.ariaLabel, n = e.autoFocus, o = e.className, s = e.disabled, i = e.inputRef, l = e.locale, a = e.maxTime, C = e.minTime, c = e.onChange, d = e.onKeyDown, u = e.required, f = e.value, h = C ?
|
|
15302
|
+
var t = e.ariaLabel, n = e.autoFocus, o = e.className, s = e.disabled, i = e.inputRef, l = e.locale, a = e.maxTime, C = e.minTime, c = e.onChange, d = e.onKeyDown, u = e.required, f = e.value, h = C ? N2(H1(C))[1] === "pm" : !1, g = a ? N2(H1(a))[1] === "am" : !1, p = "amPm", m = r6(l), j = m[0], y = m[1];
|
|
15224
15303
|
return r.jsxs("select", {
|
|
15225
15304
|
"aria-label": t,
|
|
15226
15305
|
autoFocus: n,
|
|
@@ -15287,7 +15366,7 @@ function et(e) {
|
|
|
15287
15366
|
m1(c);
|
|
15288
15367
|
}, [c]), J(function() {
|
|
15289
15368
|
var E = Z;
|
|
15290
|
-
E ? (H(
|
|
15369
|
+
E ? (H(N2(H1(E))[1]), _(H1(E).toString()), y1(e2(E).toString()), k(p2(E).toString()), $(E)) : (H(null), _(null), y1(null), k(null), $(null));
|
|
15291
15370
|
}, [
|
|
15292
15371
|
Z,
|
|
15293
15372
|
g,
|
|
@@ -15342,7 +15421,7 @@ function et(e) {
|
|
|
15342
15421
|
}
|
|
15343
15422
|
}
|
|
15344
15423
|
}
|
|
15345
|
-
function
|
|
15424
|
+
function w2(E) {
|
|
15346
15425
|
var U = E.key, o1 = E.target, C1 = a1.current === U;
|
|
15347
15426
|
if (C1) {
|
|
15348
15427
|
var f2 = !isNaN(Number(U));
|
|
@@ -15430,7 +15509,7 @@ function et(e) {
|
|
|
15430
15509
|
minTime: g,
|
|
15431
15510
|
onChange: K1,
|
|
15432
15511
|
onKeyDown: O2,
|
|
15433
|
-
onKeyUp:
|
|
15512
|
+
onKeyUp: w2,
|
|
15434
15513
|
// This is only for showing validity when editing
|
|
15435
15514
|
required: !!(x || I1)
|
|
15436
15515
|
};
|
|
@@ -15497,7 +15576,7 @@ function et(e) {
|
|
|
15497
15576
|
value: l1
|
|
15498
15577
|
}), "second");
|
|
15499
15578
|
}
|
|
15500
|
-
function
|
|
15579
|
+
function j2(E, U) {
|
|
15501
15580
|
return r.jsx(K0, g2({}, F1, {
|
|
15502
15581
|
ariaLabel: t,
|
|
15503
15582
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
@@ -15514,16 +15593,16 @@ function et(e) {
|
|
|
15514
15593
|
H: f1,
|
|
15515
15594
|
m: D1,
|
|
15516
15595
|
s: A1,
|
|
15517
|
-
a:
|
|
15596
|
+
a: j2
|
|
15518
15597
|
}, U = typeof i < "u";
|
|
15519
15598
|
return J0(C2, E, U);
|
|
15520
15599
|
}
|
|
15521
|
-
function
|
|
15600
|
+
function y2() {
|
|
15522
15601
|
return r.jsx(U0, { ariaLabel: v, disabled: s, maxTime: h, minTime: g, name: y, onChange: u2, required: x, value: q, valueType: U1 }, "time");
|
|
15523
15602
|
}
|
|
15524
15603
|
return (
|
|
15525
15604
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
15526
|
-
r.jsxs("div", { className: o, onClick: c2, children: [
|
|
15605
|
+
r.jsxs("div", { className: o, onClick: c2, children: [y2(), D2()] })
|
|
15527
15606
|
);
|
|
15528
15607
|
}
|
|
15529
15608
|
var x2 = function() {
|
|
@@ -15578,7 +15657,7 @@ function st(e) {
|
|
|
15578
15657
|
function O2() {
|
|
15579
15658
|
C2(null);
|
|
15580
15659
|
}
|
|
15581
|
-
function
|
|
15660
|
+
function w2(r1) {
|
|
15582
15661
|
r1.stopPropagation();
|
|
15583
15662
|
}
|
|
15584
15663
|
var d2 = p1(function(r1) {
|
|
@@ -15622,17 +15701,17 @@ function st(e) {
|
|
|
15622
15701
|
onInvalidChange: n1,
|
|
15623
15702
|
required: P,
|
|
15624
15703
|
value: r1
|
|
15625
|
-
})), l !== null && r.jsx("button", { "aria-label": s, className: "".concat(V1, "__clear-button ").concat(V1, "__button"), disabled: m, onClick: O2, onFocus:
|
|
15704
|
+
})), l !== null && r.jsx("button", { "aria-label": s, className: "".concat(V1, "__clear-button ").concat(V1, "__button"), disabled: m, onClick: O2, onFocus: w2, type: "button", children: typeof l == "function" ? j3(l) : l }), c !== null && !p && r.jsx("button", { "aria-expanded": g1 || !1, "aria-label": a, className: "".concat(V1, "__clock-button ").concat(V1, "__button"), disabled: m, onClick: Z2, onFocus: w2, type: "button", children: typeof c == "function" ? j3(c) : c })] });
|
|
15626
15705
|
}
|
|
15627
15706
|
function F1() {
|
|
15628
15707
|
if (g1 === null || p)
|
|
15629
15708
|
return null;
|
|
15630
|
-
var r1 = e.clockProps, f1 = e.portalContainer, D1 = e.value, A1 = "".concat(V1, "__clock"),
|
|
15631
|
-
return f1 ? i5(r.jsx("div", { ref: a1, className:
|
|
15709
|
+
var r1 = e.clockProps, f1 = e.portalContainer, D1 = e.value, A1 = "".concat(V1, "__clock"), j2 = G2(A1, "".concat(A1, "--").concat(g1 ? "open" : "closed")), D2 = (Array.isArray(D1) ? D1 : [D1])[0], y2 = r.jsx(p0, x2({ locale: b, value: D2 }, r1));
|
|
15710
|
+
return f1 ? i5(r.jsx("div", { ref: a1, className: j2, children: y2 }), f1) : r.jsx(S0, { children: r.jsx("div", { ref: function(E) {
|
|
15632
15711
|
E && !g1 && E.removeAttribute("style");
|
|
15633
|
-
}, className:
|
|
15712
|
+
}, className: j2, children: y2 }) });
|
|
15634
15713
|
}
|
|
15635
|
-
var _2 =
|
|
15714
|
+
var _2 = S2(function() {
|
|
15636
15715
|
return t0(d1);
|
|
15637
15716
|
}, [d1]);
|
|
15638
15717
|
return r.jsxs("div", x2({ className: G2(V1, "".concat(V1, "--").concat(g1 ? "open" : "closed"), "".concat(V1, "--").concat(m ? "disabled" : "enabled"), o), "data-testid": f, id: y }, _2, { onFocus: E2, ref: m1, children: [u2(), F1()] }));
|
|
@@ -15765,84 +15844,6 @@ const Yt = (e) => {
|
|
|
15765
15844
|
]
|
|
15766
15845
|
}
|
|
15767
15846
|
);
|
|
15768
|
-
}, V2 = (e) => {
|
|
15769
|
-
const { title: t = "", children: n, position: o = "top" } = e, [s, i] = I(!1), [l, a] = I(o), [C, c] = I({ top: 0, left: 0 }), d = t1(null), u = t1(null), f = p1(() => {
|
|
15770
|
-
if (!d.current || !u.current) return;
|
|
15771
|
-
const m = d.current.getBoundingClientRect(), j = document.elementFromPoint(
|
|
15772
|
-
m.left + m.width / 2,
|
|
15773
|
-
m.top + m.height / 2
|
|
15774
|
-
);
|
|
15775
|
-
if (!d.current.contains(j)) {
|
|
15776
|
-
i(!1);
|
|
15777
|
-
return;
|
|
15778
|
-
}
|
|
15779
|
-
const y = d.current.parentElement;
|
|
15780
|
-
if (y) {
|
|
15781
|
-
const H = y.getBoundingClientRect();
|
|
15782
|
-
if (m.right < H.left || m.left > H.right || m.bottom < H.top || m.top > H.bottom) {
|
|
15783
|
-
i(!1);
|
|
15784
|
-
return;
|
|
15785
|
-
}
|
|
15786
|
-
}
|
|
15787
|
-
if (m.right < 0 || m.left > window.innerWidth || m.bottom < 0 || m.top > window.innerHeight) {
|
|
15788
|
-
i(!1);
|
|
15789
|
-
return;
|
|
15790
|
-
}
|
|
15791
|
-
const v = u.current.getBoundingClientRect(), M = m.top, b = window.innerHeight - m.bottom, x = m.left, L = window.innerWidth - m.right;
|
|
15792
|
-
let S = o;
|
|
15793
|
-
o === "top" && M < v.height && (S = "bottom"), o === "bottom" && b < v.height && (S = "top"), o === "left" && x < v.width && (S = "right"), o === "right" && L < v.width && (S = "left"), a(S);
|
|
15794
|
-
let Z = 0, V = 0;
|
|
15795
|
-
S === "top" && (Z = m.top - v.height - 8, V = m.left + m.width / 2 - v.width / 2), S === "bottom" && (Z = m.bottom + 8, V = m.left + m.width / 2 - v.width / 2), S === "left" && (Z = m.top + m.height / 2 - v.height / 2, V = m.left - v.width - 8), S === "right" && (Z = m.top + m.height / 2 - v.height / 2, V = m.right + 8);
|
|
15796
|
-
const N = 8;
|
|
15797
|
-
V < N && (V = N), V + v.width > window.innerWidth - N && (V = window.innerWidth - v.width - N), Z < N && (Z = N), Z + v.height > window.innerHeight - N && (Z = window.innerHeight - v.height - N), c({ top: Z, left: V });
|
|
15798
|
-
}, [o]);
|
|
15799
|
-
l4(() => {
|
|
15800
|
-
s && f();
|
|
15801
|
-
}, [s, f]), l4(() => {
|
|
15802
|
-
if (!s) return;
|
|
15803
|
-
const m = () => {
|
|
15804
|
-
f();
|
|
15805
|
-
};
|
|
15806
|
-
return window.addEventListener("resize", m), window.addEventListener("scroll", m, !0), () => {
|
|
15807
|
-
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0);
|
|
15808
|
-
};
|
|
15809
|
-
}, [s, f]);
|
|
15810
|
-
const h = {
|
|
15811
|
-
top: {
|
|
15812
|
-
arrow: "left-1/2 -bottom-1 translate-x-[-50%]"
|
|
15813
|
-
},
|
|
15814
|
-
bottom: {
|
|
15815
|
-
arrow: "left-1/2 -top-1 translate-x-[-50%]"
|
|
15816
|
-
},
|
|
15817
|
-
left: {
|
|
15818
|
-
arrow: "top-1/2 -right-1 translate-y-[-50%]"
|
|
15819
|
-
},
|
|
15820
|
-
right: {
|
|
15821
|
-
arrow: "top-1/2 -left-1 translate-y-[-50%]"
|
|
15822
|
-
}
|
|
15823
|
-
}, g = "fixed z-level-2 p-3 max-w-2xs md:max-w-sm break-words rounded-lg bg-white shadow-md", p = `absolute h-3 w-3 bg-white shadow-lg rotate-45 ${h[l].arrow}`;
|
|
15824
|
-
return /* @__PURE__ */ r.jsxs("div", { className: "relative inline-block", ref: d, children: [
|
|
15825
|
-
/* @__PURE__ */ r.jsx(
|
|
15826
|
-
"div",
|
|
15827
|
-
{
|
|
15828
|
-
onMouseEnter: () => i(!0),
|
|
15829
|
-
onMouseLeave: () => i(!1),
|
|
15830
|
-
children: n
|
|
15831
|
-
}
|
|
15832
|
-
),
|
|
15833
|
-
s && /* @__PURE__ */ r.jsxs(
|
|
15834
|
-
"div",
|
|
15835
|
-
{
|
|
15836
|
-
ref: u,
|
|
15837
|
-
className: g,
|
|
15838
|
-
style: { top: C.top, left: C.left },
|
|
15839
|
-
children: [
|
|
15840
|
-
/* @__PURE__ */ r.jsx("div", { className: p }),
|
|
15841
|
-
/* @__PURE__ */ r.jsx("div", { className: "wrap-break-word whitespace-normal", children: typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ r.jsx(w, { text: String(t), variant: "caption" }) : t })
|
|
15842
|
-
]
|
|
15843
|
-
}
|
|
15844
|
-
)
|
|
15845
|
-
] });
|
|
15846
15847
|
}, zt = (e) => {
|
|
15847
15848
|
const { title: t, image: n, buttonProps: o, iconProps: s } = e;
|
|
15848
15849
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -16026,7 +16027,7 @@ export {
|
|
|
16026
16027
|
Mt as TitleBar,
|
|
16027
16028
|
U5 as Toggle,
|
|
16028
16029
|
wt as Tooltip,
|
|
16029
|
-
|
|
16030
|
+
v2 as TooltipExt,
|
|
16030
16031
|
w as Typography,
|
|
16031
16032
|
Zt as UserBetSlip,
|
|
16032
16033
|
Pt as WalletInfo,
|