@commercelayer/app-elements 5.1.4 → 5.1.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/{CodeEditorComponent-BXcxTW78.js → CodeEditorComponent-CgmV7mxi.js} +1 -1
- package/dist/{InputDateComponent-B2bYYXQY.js → InputDateComponent-DEwjT9sG.js} +262 -274
- package/dist/{en-CMwZXuxY.js → en-DWJ3uXEY.js} +1 -1
- package/dist/{it-rC7h-ZsW.js → it-DgQb6BE7.js} +1 -1
- package/dist/{main-4iJylJnB.js → main-DZbCeaQM.js} +6121 -6244
- package/dist/main.js +28 -28
- package/dist/style.css +1 -1
- package/dist/vendor.css +1 -1
- package/package.json +12 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var w = (o, a, t) =>
|
|
5
|
-
import { c as G, t as k, m as dt, a as pt, b as he, d as fe, n as ft, e as He, g as fr, f as Ur, h as
|
|
2
|
+
var Br = Object.defineProperty;
|
|
3
|
+
var Kr = (o, a, t) => a in o ? Br(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t;
|
|
4
|
+
var w = (o, a, t) => Kr(o, typeof a != "symbol" ? a + "" : a, t);
|
|
5
|
+
import { c as G, t as k, m as dt, a as pt, b as he, d as fe, n as ft, e as He, g as fr, f as Ur, h as Vr, s as rt, i as hr, k as qr, l as mr, o as vr, p as jr, q as $r, r as At, v as Gr, w as Xr, x as Ht, y as zr, z as Le, A as Zr, j as ne, B as Pe, C as be, D as kt, E as Pt, F as Dr, G as Tt, H as gr, J as Jr, K as Se, L as Wt, M as en, N as tn, O as rn, P as nn, Q as nt, I as an, R as on, S as sn, T as ln, U as cn } from "./main-DZbCeaQM.js";
|
|
6
6
|
import * as M from "react";
|
|
7
7
|
import f, { useLayoutEffect as wr, useEffect as Nt, cloneElement as yr, createRef as Me, Component as X, useRef as Mt, useCallback as un, createElement as dn, forwardRef as pn } from "react";
|
|
8
8
|
import * as fn from "react-dom";
|
|
@@ -98,7 +98,7 @@ function gn(o, a) {
|
|
|
98
98
|
const t = fr(), e = t.weekStartsOn ?? ((l = (i = t.locale) == null ? void 0 : i.options) == null ? void 0 : l.weekStartsOn) ?? 0, r = k(o, a == null ? void 0 : a.in), n = r.getDay(), s = (n < e ? -7 : 0) + 6 - (n - e);
|
|
99
99
|
return r.setDate(r.getDate() + s), r.setHours(23, 59, 59, 999), r;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Ut(o, a) {
|
|
102
102
|
return k(o, a == null ? void 0 : a.in).getDate();
|
|
103
103
|
}
|
|
104
104
|
function wn(o, a) {
|
|
@@ -300,7 +300,7 @@ function de(o, a) {
|
|
|
300
300
|
function Cr(o) {
|
|
301
301
|
return K(j.anyDigitsSigned, o);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function U(o, a) {
|
|
304
304
|
switch (o) {
|
|
305
305
|
case 1:
|
|
306
306
|
return K(j.singleDigit, a);
|
|
@@ -372,7 +372,7 @@ class Pn extends I {
|
|
|
372
372
|
});
|
|
373
373
|
switch (e) {
|
|
374
374
|
case "y":
|
|
375
|
-
return $(
|
|
375
|
+
return $(U(4, t), n);
|
|
376
376
|
case "yo":
|
|
377
377
|
return $(
|
|
378
378
|
r.ordinalNumber(t, {
|
|
@@ -381,7 +381,7 @@ class Pn extends I {
|
|
|
381
381
|
n
|
|
382
382
|
);
|
|
383
383
|
default:
|
|
384
|
-
return $(
|
|
384
|
+
return $(U(e.length, t), n);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
validate(t, e) {
|
|
@@ -427,7 +427,7 @@ class Tn extends I {
|
|
|
427
427
|
});
|
|
428
428
|
switch (e) {
|
|
429
429
|
case "Y":
|
|
430
|
-
return $(
|
|
430
|
+
return $(U(4, t), n);
|
|
431
431
|
case "Yo":
|
|
432
432
|
return $(
|
|
433
433
|
r.ordinalNumber(t, {
|
|
@@ -436,14 +436,14 @@ class Tn extends I {
|
|
|
436
436
|
n
|
|
437
437
|
);
|
|
438
438
|
default:
|
|
439
|
-
return $(
|
|
439
|
+
return $(U(e.length, t), n);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
validate(t, e) {
|
|
443
443
|
return e.isTwoDigitYear || e.year > 0;
|
|
444
444
|
}
|
|
445
445
|
set(t, e, r, n) {
|
|
446
|
-
const s =
|
|
446
|
+
const s = Vr(t, n);
|
|
447
447
|
if (r.isTwoDigitYear) {
|
|
448
448
|
const l = xr(
|
|
449
449
|
r.year,
|
|
@@ -528,7 +528,7 @@ class Yn extends I {
|
|
|
528
528
|
// 1, 2, 3, 4
|
|
529
529
|
case "Q":
|
|
530
530
|
case "QQ":
|
|
531
|
-
return
|
|
531
|
+
return U(e.length, t);
|
|
532
532
|
// 1st, 2nd, 3rd, 4th
|
|
533
533
|
case "Qo":
|
|
534
534
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -595,7 +595,7 @@ class In extends I {
|
|
|
595
595
|
// 1, 2, 3, 4
|
|
596
596
|
case "q":
|
|
597
597
|
case "qq":
|
|
598
|
-
return
|
|
598
|
+
return U(e.length, t);
|
|
599
599
|
// 1st, 2nd, 3rd, 4th
|
|
600
600
|
case "qo":
|
|
601
601
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
@@ -667,7 +667,7 @@ class Rn extends I {
|
|
|
667
667
|
);
|
|
668
668
|
// 01, 02, ..., 12
|
|
669
669
|
case "MM":
|
|
670
|
-
return $(
|
|
670
|
+
return $(U(2, t), n);
|
|
671
671
|
// 1st, 2nd, ..., 12th
|
|
672
672
|
case "Mo":
|
|
673
673
|
return $(
|
|
@@ -735,7 +735,7 @@ class Ln extends I {
|
|
|
735
735
|
);
|
|
736
736
|
// 01, 02, ..., 12
|
|
737
737
|
case "LL":
|
|
738
|
-
return $(
|
|
738
|
+
return $(U(2, t), n);
|
|
739
739
|
// 1st, 2nd, ..., 12th
|
|
740
740
|
case "Lo":
|
|
741
741
|
return $(
|
|
@@ -773,7 +773,7 @@ class Ln extends I {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
function Fn(o, a, t) {
|
|
776
|
-
const e = k(o, t == null ? void 0 : t.in), r =
|
|
776
|
+
const e = k(o, t == null ? void 0 : t.in), r = qr(e, t) - a;
|
|
777
777
|
return e.setDate(e.getDate() - r * 7), k(e, t == null ? void 0 : t.in);
|
|
778
778
|
}
|
|
779
779
|
class An extends I {
|
|
@@ -803,7 +803,7 @@ class An extends I {
|
|
|
803
803
|
case "wo":
|
|
804
804
|
return r.ordinalNumber(t, { unit: "week" });
|
|
805
805
|
default:
|
|
806
|
-
return
|
|
806
|
+
return U(e.length, t);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
validate(t, e) {
|
|
@@ -845,7 +845,7 @@ class Wn extends I {
|
|
|
845
845
|
case "Io":
|
|
846
846
|
return r.ordinalNumber(t, { unit: "week" });
|
|
847
847
|
default:
|
|
848
|
-
return
|
|
848
|
+
return U(e.length, t);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
validate(t, e) {
|
|
@@ -896,7 +896,7 @@ class Kn extends I {
|
|
|
896
896
|
case "do":
|
|
897
897
|
return r.ordinalNumber(t, { unit: "date" });
|
|
898
898
|
default:
|
|
899
|
-
return
|
|
899
|
+
return U(e.length, t);
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
validate(t, e) {
|
|
@@ -907,7 +907,7 @@ class Kn extends I {
|
|
|
907
907
|
return t.setDate(r), t.setHours(0, 0, 0, 0), t;
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
|
-
class
|
|
910
|
+
class Un extends I {
|
|
911
911
|
constructor() {
|
|
912
912
|
super(...arguments);
|
|
913
913
|
w(this, "priority", 90);
|
|
@@ -938,7 +938,7 @@ class Vn extends I {
|
|
|
938
938
|
case "Do":
|
|
939
939
|
return r.ordinalNumber(t, { unit: "date" });
|
|
940
940
|
default:
|
|
941
|
-
return
|
|
941
|
+
return U(e.length, t);
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
validate(t, e) {
|
|
@@ -954,7 +954,7 @@ function It(o, a, t) {
|
|
|
954
954
|
const e = fr(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((p = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : p.weekStartsOn) ?? e.weekStartsOn ?? ((m = (h = e.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? 0, n = k(o, t == null ? void 0 : t.in), s = n.getDay(), l = (a % 7 + 7) % 7, u = 7 - r, c = a < 0 || a > 6 ? a - (s + u) % 7 : (l + u) % 7 - (s + u) % 7;
|
|
955
955
|
return fe(n, c, t);
|
|
956
956
|
}
|
|
957
|
-
class
|
|
957
|
+
class Vn extends I {
|
|
958
958
|
constructor() {
|
|
959
959
|
super(...arguments);
|
|
960
960
|
w(this, "priority", 90);
|
|
@@ -1026,7 +1026,7 @@ class qn extends I {
|
|
|
1026
1026
|
// 3
|
|
1027
1027
|
case "e":
|
|
1028
1028
|
case "ee":
|
|
1029
|
-
return $(
|
|
1029
|
+
return $(U(e.length, t), s);
|
|
1030
1030
|
// 3rd
|
|
1031
1031
|
case "eo":
|
|
1032
1032
|
return $(
|
|
@@ -1097,7 +1097,7 @@ class jn extends I {
|
|
|
1097
1097
|
// 3
|
|
1098
1098
|
case "c":
|
|
1099
1099
|
case "cc":
|
|
1100
|
-
return $(
|
|
1100
|
+
return $(U(e.length, t), s);
|
|
1101
1101
|
// 3rd
|
|
1102
1102
|
case "co":
|
|
1103
1103
|
return $(
|
|
@@ -1169,7 +1169,7 @@ class Gn extends I {
|
|
|
1169
1169
|
// 2
|
|
1170
1170
|
case "i":
|
|
1171
1171
|
case "ii":
|
|
1172
|
-
return
|
|
1172
|
+
return U(e.length, t);
|
|
1173
1173
|
// 2nd
|
|
1174
1174
|
case "io":
|
|
1175
1175
|
return r.ordinalNumber(t, { unit: "day" });
|
|
@@ -1373,7 +1373,7 @@ class Jn extends I {
|
|
|
1373
1373
|
case "ho":
|
|
1374
1374
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
1375
1375
|
default:
|
|
1376
|
-
return
|
|
1376
|
+
return U(e.length, t);
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
validate(t, e) {
|
|
@@ -1397,7 +1397,7 @@ class ea extends I {
|
|
|
1397
1397
|
case "Ho":
|
|
1398
1398
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
1399
1399
|
default:
|
|
1400
|
-
return
|
|
1400
|
+
return U(e.length, t);
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
validate(t, e) {
|
|
@@ -1420,7 +1420,7 @@ class ta extends I {
|
|
|
1420
1420
|
case "Ko":
|
|
1421
1421
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
1422
1422
|
default:
|
|
1423
|
-
return
|
|
1423
|
+
return U(e.length, t);
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
validate(t, e) {
|
|
@@ -1443,7 +1443,7 @@ class ra extends I {
|
|
|
1443
1443
|
case "ko":
|
|
1444
1444
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
1445
1445
|
default:
|
|
1446
|
-
return
|
|
1446
|
+
return U(e.length, t);
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
validate(t, e) {
|
|
@@ -1467,7 +1467,7 @@ class na extends I {
|
|
|
1467
1467
|
case "mo":
|
|
1468
1468
|
return r.ordinalNumber(t, { unit: "minute" });
|
|
1469
1469
|
default:
|
|
1470
|
-
return
|
|
1470
|
+
return U(e.length, t);
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
validate(t, e) {
|
|
@@ -1490,7 +1490,7 @@ class aa extends I {
|
|
|
1490
1490
|
case "so":
|
|
1491
1491
|
return r.ordinalNumber(t, { unit: "second" });
|
|
1492
1492
|
default:
|
|
1493
|
-
return
|
|
1493
|
+
return U(e.length, t);
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
validate(t, e) {
|
|
@@ -1508,7 +1508,7 @@ class oa extends I {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
parse(t, e) {
|
|
1510
1510
|
const r = (n) => Math.trunc(n * Math.pow(10, -e.length + 3));
|
|
1511
|
-
return $(
|
|
1511
|
+
return $(U(e.length, t), r);
|
|
1512
1512
|
}
|
|
1513
1513
|
set(t, e, r) {
|
|
1514
1514
|
return t.setMilliseconds(r), t;
|
|
@@ -1627,8 +1627,8 @@ const ua = {
|
|
|
1627
1627
|
w: new An(),
|
|
1628
1628
|
I: new Wn(),
|
|
1629
1629
|
d: new Kn(),
|
|
1630
|
-
D: new
|
|
1631
|
-
E: new
|
|
1630
|
+
D: new Un(),
|
|
1631
|
+
E: new Vn(),
|
|
1632
1632
|
e: new qn(),
|
|
1633
1633
|
c: new jn(),
|
|
1634
1634
|
i: new Gn(),
|
|
@@ -1649,7 +1649,7 @@ const ua = {
|
|
|
1649
1649
|
}, da = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, pa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fa = /^'([^]*?)'?$/, ha = /''/g, ma = /\S/, va = /[a-zA-Z]/;
|
|
1650
1650
|
function Da(o, a, t, e) {
|
|
1651
1651
|
var v, b, E, x, P, R, L, S;
|
|
1652
|
-
const r = () => G((e == null ? void 0 : e.in) || t, NaN), n =
|
|
1652
|
+
const r = () => G((e == null ? void 0 : e.in) || t, NaN), n = jr(), s = (e == null ? void 0 : e.locale) ?? n.locale ?? $r, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((b = (v = e == null ? void 0 : e.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((x = (E = n.locale) == null ? void 0 : E.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, l = (e == null ? void 0 : e.weekStartsOn) ?? ((R = (P = e == null ? void 0 : e.locale) == null ? void 0 : P.options) == null ? void 0 : R.weekStartsOn) ?? n.weekStartsOn ?? ((S = (L = n.locale) == null ? void 0 : L.options) == null ? void 0 : S.weekStartsOn) ?? 0;
|
|
1653
1653
|
if (!a)
|
|
1654
1654
|
return o ? r() : k(t, e == null ? void 0 : e.in);
|
|
1655
1655
|
const u = {
|
|
@@ -1669,12 +1669,12 @@ function Da(o, a, t, e) {
|
|
|
1669
1669
|
if (N) {
|
|
1670
1670
|
const { incompatibleTokens: Q } = N;
|
|
1671
1671
|
if (Array.isArray(Q)) {
|
|
1672
|
-
const
|
|
1672
|
+
const V = p.find(
|
|
1673
1673
|
(te) => Q.includes(te.token) || te.token === _
|
|
1674
1674
|
);
|
|
1675
|
-
if (
|
|
1675
|
+
if (V)
|
|
1676
1676
|
throw new RangeError(
|
|
1677
|
-
`The format string mustn't contain \`${
|
|
1677
|
+
`The format string mustn't contain \`${V.fullToken}\` and \`${y}\` at the same time`
|
|
1678
1678
|
);
|
|
1679
1679
|
} else if (N.incompatibleTokens === "*" && p.length > 0)
|
|
1680
1680
|
throw new RangeError(
|
|
@@ -1764,21 +1764,21 @@ function ya(o, a) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return k(s + i + l, a == null ? void 0 : a.in);
|
|
1766
1766
|
}
|
|
1767
|
-
const
|
|
1767
|
+
const Ue = {
|
|
1768
1768
|
dateTimeDelimiter: /[T ]/,
|
|
1769
1769
|
timeZoneDelimiter: /[Z ]/i,
|
|
1770
1770
|
timezone: /([Z+-].*)$/
|
|
1771
1771
|
}, ba = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, _a = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, ka = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1772
1772
|
function Ma(o) {
|
|
1773
|
-
const a = {}, t = o.split(
|
|
1773
|
+
const a = {}, t = o.split(Ue.dateTimeDelimiter);
|
|
1774
1774
|
let e;
|
|
1775
1775
|
if (t.length > 2)
|
|
1776
1776
|
return a;
|
|
1777
|
-
if (/:/.test(t[0]) ? e = t[0] : (a.date = t[0], e = t[1],
|
|
1777
|
+
if (/:/.test(t[0]) ? e = t[0] : (a.date = t[0], e = t[1], Ue.timeZoneDelimiter.test(a.date) && (a.date = o.split(Ue.timeZoneDelimiter)[0], e = o.substr(
|
|
1778
1778
|
a.date.length,
|
|
1779
1779
|
o.length
|
|
1780
1780
|
))), e) {
|
|
1781
|
-
const r =
|
|
1781
|
+
const r = Ue.timezone.exec(e);
|
|
1782
1782
|
r ? (a.time = e.replace(r[1], ""), a.timezone = r[1]) : a.time = e;
|
|
1783
1783
|
}
|
|
1784
1784
|
return a;
|
|
@@ -1879,7 +1879,7 @@ function le(o, a, t) {
|
|
|
1879
1879
|
function Pr(o, a, t) {
|
|
1880
1880
|
return Ot(o, -1, t);
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1882
|
+
function Vt(o, a, t) {
|
|
1883
1883
|
return at(o, -1, t);
|
|
1884
1884
|
}
|
|
1885
1885
|
function Oe(o, a, t) {
|
|
@@ -1898,19 +1898,6 @@ function Z() {
|
|
|
1898
1898
|
for (var o, a, t = 0, e = "", r = arguments.length; t < r; t++) (o = arguments[t]) && (a = Tr(o)) && (e && (e += " "), e += a);
|
|
1899
1899
|
return e;
|
|
1900
1900
|
}
|
|
1901
|
-
function La() {
|
|
1902
|
-
return typeof window < "u";
|
|
1903
|
-
}
|
|
1904
|
-
function Nr(o) {
|
|
1905
|
-
var a;
|
|
1906
|
-
return (o == null || (a = o.ownerDocument) == null ? void 0 : a.defaultView) || window;
|
|
1907
|
-
}
|
|
1908
|
-
function Le(o) {
|
|
1909
|
-
return La() ? o instanceof Element || o instanceof Nr(o).Element : !1;
|
|
1910
|
-
}
|
|
1911
|
-
function Fa(o) {
|
|
1912
|
-
return Nr(o).getComputedStyle(o);
|
|
1913
|
-
}
|
|
1914
1901
|
var Je = typeof document < "u" ? wr : Nt;
|
|
1915
1902
|
function lt(o, a) {
|
|
1916
1903
|
if (o === a)
|
|
@@ -1942,11 +1929,11 @@ function lt(o, a) {
|
|
|
1942
1929
|
}
|
|
1943
1930
|
return o !== o && a !== a;
|
|
1944
1931
|
}
|
|
1945
|
-
function
|
|
1932
|
+
function Nr(o) {
|
|
1946
1933
|
return typeof window > "u" ? 1 : (o.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1947
1934
|
}
|
|
1948
1935
|
function qt(o, a) {
|
|
1949
|
-
const t =
|
|
1936
|
+
const t = Nr(o);
|
|
1950
1937
|
return Math.round(a * t) / t;
|
|
1951
1938
|
}
|
|
1952
1939
|
function Dt(o) {
|
|
@@ -1955,7 +1942,7 @@ function Dt(o) {
|
|
|
1955
1942
|
a.current = o;
|
|
1956
1943
|
}), a;
|
|
1957
1944
|
}
|
|
1958
|
-
function
|
|
1945
|
+
function La(o) {
|
|
1959
1946
|
o === void 0 && (o = {});
|
|
1960
1947
|
const {
|
|
1961
1948
|
placement: a = "bottom",
|
|
@@ -1982,7 +1969,7 @@ function Aa(o) {
|
|
|
1982
1969
|
A !== L.current && (L.current = A, D(A));
|
|
1983
1970
|
}, []), x = M.useCallback((A) => {
|
|
1984
1971
|
A !== S.current && (S.current = A, b(A));
|
|
1985
|
-
}, []), P = n || m, R = s || v, L = M.useRef(null), S = M.useRef(null), y = M.useRef(c), _ = l != null, N = Dt(l), Q = Dt(r), W = Dt(u),
|
|
1972
|
+
}, []), P = n || m, R = s || v, L = M.useRef(null), S = M.useRef(null), y = M.useRef(c), _ = l != null, N = Dt(l), Q = Dt(r), W = Dt(u), V = M.useCallback(() => {
|
|
1986
1973
|
if (!L.current || !S.current)
|
|
1987
1974
|
return;
|
|
1988
1975
|
const A = {
|
|
@@ -1990,7 +1977,7 @@ function Aa(o) {
|
|
|
1990
1977
|
strategy: t,
|
|
1991
1978
|
middleware: p
|
|
1992
1979
|
};
|
|
1993
|
-
Q.current && (A.platform = Q.current),
|
|
1980
|
+
Q.current && (A.platform = Q.current), zr(L.current, S.current, A).then((ie) => {
|
|
1994
1981
|
const me = {
|
|
1995
1982
|
...ie,
|
|
1996
1983
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2016,10 +2003,10 @@ function Aa(o) {
|
|
|
2016
2003
|
}), []), Je(() => {
|
|
2017
2004
|
if (P && (L.current = P), R && (S.current = R), P && R) {
|
|
2018
2005
|
if (N.current)
|
|
2019
|
-
return N.current(P, R,
|
|
2020
|
-
|
|
2006
|
+
return N.current(P, R, V);
|
|
2007
|
+
V();
|
|
2021
2008
|
}
|
|
2022
|
-
}, [P, R,
|
|
2009
|
+
}, [P, R, V, N, _]);
|
|
2023
2010
|
const q = M.useMemo(() => ({
|
|
2024
2011
|
reference: L,
|
|
2025
2012
|
floating: S,
|
|
@@ -2040,7 +2027,7 @@ function Aa(o) {
|
|
|
2040
2027
|
return i ? {
|
|
2041
2028
|
...A,
|
|
2042
2029
|
transform: "translate(" + ie + "px, " + me + "px)",
|
|
2043
|
-
...
|
|
2030
|
+
...Nr(T.floating) >= 1.5 && {
|
|
2044
2031
|
willChange: "transform"
|
|
2045
2032
|
}
|
|
2046
2033
|
} : {
|
|
@@ -2051,13 +2038,13 @@ function Aa(o) {
|
|
|
2051
2038
|
}, [t, i, T.floating, c.x, c.y]);
|
|
2052
2039
|
return M.useMemo(() => ({
|
|
2053
2040
|
...c,
|
|
2054
|
-
update:
|
|
2041
|
+
update: V,
|
|
2055
2042
|
refs: q,
|
|
2056
2043
|
elements: T,
|
|
2057
2044
|
floatingStyles: H
|
|
2058
|
-
}), [c,
|
|
2045
|
+
}), [c, V, q, T, H]);
|
|
2059
2046
|
}
|
|
2060
|
-
const
|
|
2047
|
+
const Fa = (o) => {
|
|
2061
2048
|
function a(t) {
|
|
2062
2049
|
return {}.hasOwnProperty.call(t, "current");
|
|
2063
2050
|
}
|
|
@@ -2078,24 +2065,24 @@ const Ha = (o) => {
|
|
|
2078
2065
|
}).fn(t) : {};
|
|
2079
2066
|
}
|
|
2080
2067
|
};
|
|
2081
|
-
},
|
|
2082
|
-
...zr(o),
|
|
2083
|
-
options: [o, a]
|
|
2084
|
-
}), Qa = (o, a) => ({
|
|
2068
|
+
}, Aa = (o, a) => ({
|
|
2085
2069
|
...Xr(o),
|
|
2086
2070
|
options: [o, a]
|
|
2087
|
-
}),
|
|
2088
|
-
...
|
|
2071
|
+
}), Ha = (o, a) => ({
|
|
2072
|
+
...Gr(o),
|
|
2089
2073
|
options: [o, a]
|
|
2090
|
-
}),
|
|
2074
|
+
}), Wa = (o, a) => ({
|
|
2075
|
+
...Fa(o),
|
|
2076
|
+
options: [o, a]
|
|
2077
|
+
}), Or = {
|
|
2091
2078
|
...M
|
|
2092
|
-
},
|
|
2093
|
-
function
|
|
2079
|
+
}, Qa = Or.useInsertionEffect, Ba = Qa || ((o) => o());
|
|
2080
|
+
function Ka(o) {
|
|
2094
2081
|
const a = M.useRef(() => {
|
|
2095
2082
|
if (process.env.NODE_ENV !== "production")
|
|
2096
2083
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2097
2084
|
});
|
|
2098
|
-
return
|
|
2085
|
+
return Ba(() => {
|
|
2099
2086
|
a.current = o;
|
|
2100
2087
|
}), M.useCallback(function() {
|
|
2101
2088
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
@@ -2104,13 +2091,13 @@ function Ua(o) {
|
|
|
2104
2091
|
}, []);
|
|
2105
2092
|
}
|
|
2106
2093
|
var ct = typeof document < "u" ? wr : Nt;
|
|
2107
|
-
let jt = !1,
|
|
2094
|
+
let jt = !1, Ua = 0;
|
|
2108
2095
|
const $t = () => (
|
|
2109
2096
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
2110
2097
|
// on <React 18
|
|
2111
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
2098
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Ua++
|
|
2112
2099
|
);
|
|
2113
|
-
function
|
|
2100
|
+
function Va() {
|
|
2114
2101
|
const [o, a] = M.useState(() => jt ? $t() : void 0);
|
|
2115
2102
|
return ct(() => {
|
|
2116
2103
|
o == null && a($t());
|
|
@@ -2118,10 +2105,10 @@ function ja() {
|
|
|
2118
2105
|
jt = !0;
|
|
2119
2106
|
}, []), o;
|
|
2120
2107
|
}
|
|
2121
|
-
const
|
|
2108
|
+
const qa = Or.useId, Yr = qa || Va;
|
|
2122
2109
|
let Qe;
|
|
2123
2110
|
process.env.NODE_ENV !== "production" && (Qe = /* @__PURE__ */ new Set());
|
|
2124
|
-
function
|
|
2111
|
+
function ja() {
|
|
2125
2112
|
for (var o, a = arguments.length, t = new Array(a), e = 0; e < a; e++)
|
|
2126
2113
|
t[e] = arguments[e];
|
|
2127
2114
|
const r = "Floating UI: " + t.join(" ");
|
|
@@ -2130,7 +2117,7 @@ function Ga() {
|
|
|
2130
2117
|
(n = Qe) == null || n.add(r), console.warn(r);
|
|
2131
2118
|
}
|
|
2132
2119
|
}
|
|
2133
|
-
function
|
|
2120
|
+
function $a() {
|
|
2134
2121
|
for (var o, a = arguments.length, t = new Array(a), e = 0; e < a; e++)
|
|
2135
2122
|
t[e] = arguments[e];
|
|
2136
2123
|
const r = "Floating UI: " + t.join(" ");
|
|
@@ -2139,7 +2126,7 @@ function Xa() {
|
|
|
2139
2126
|
(n = Qe) == null || n.add(r), console.error(r);
|
|
2140
2127
|
}
|
|
2141
2128
|
}
|
|
2142
|
-
const
|
|
2129
|
+
const Ga = /* @__PURE__ */ M.forwardRef(function(a, t) {
|
|
2143
2130
|
const {
|
|
2144
2131
|
context: {
|
|
2145
2132
|
placement: e,
|
|
@@ -2164,17 +2151,17 @@ const za = /* @__PURE__ */ M.forwardRef(function(a, t) {
|
|
|
2164
2151
|
} = {},
|
|
2165
2152
|
...v
|
|
2166
2153
|
} = a;
|
|
2167
|
-
process.env.NODE_ENV !== "production" && (t ||
|
|
2168
|
-
const b =
|
|
2154
|
+
process.env.NODE_ENV !== "production" && (t || ja("The `ref` prop is required for `FloatingArrow`."));
|
|
2155
|
+
const b = Yr(), [E, x] = M.useState(!1);
|
|
2169
2156
|
if (ct(() => {
|
|
2170
2157
|
if (!r) return;
|
|
2171
|
-
|
|
2158
|
+
Zr(r).direction === "rtl" && x(!0);
|
|
2172
2159
|
}, [r]), !r)
|
|
2173
2160
|
return null;
|
|
2174
2161
|
const [P, R] = e.split("-"), L = P === "top" || P === "bottom";
|
|
2175
2162
|
let S = d;
|
|
2176
2163
|
(L && s != null && s.x || !L && s != null && s.y) && (S = null);
|
|
2177
|
-
const y = c * 2, _ = y / 2, N = i / 2 * (u / -8 + 1), Q = l / 2 * u / 4, W = !!h,
|
|
2164
|
+
const y = c * 2, _ = y / 2, N = i / 2 * (u / -8 + 1), Q = l / 2 * u / 4, W = !!h, V = S && R === "end" ? "bottom" : "top";
|
|
2178
2165
|
let te = S && R === "end" ? "right" : "left";
|
|
2179
2166
|
S && E && (te = R === "end" ? "left" : "right");
|
|
2180
2167
|
const q = (n == null ? void 0 : n.x) != null ? S || n.x : "", T = (n == null ? void 0 : n.y) != null ? S || n.y : "", H = h || "M0,0" + (" H" + i) + (" L" + (i - N) + "," + (l - Q)) + (" Q" + i / 2 + "," + l + " " + N + "," + (l - Q)) + " Z", A = {
|
|
@@ -2194,7 +2181,7 @@ const za = /* @__PURE__ */ M.forwardRef(function(a, t) {
|
|
|
2194
2181
|
position: "absolute",
|
|
2195
2182
|
pointerEvents: "none",
|
|
2196
2183
|
[te]: q,
|
|
2197
|
-
[
|
|
2184
|
+
[V]: T,
|
|
2198
2185
|
[P]: L || W ? "100%" : "calc(100% - " + y / 2 + "px)",
|
|
2199
2186
|
transform: [A, m].filter((ie) => !!ie).join(" "),
|
|
2200
2187
|
...D
|
|
@@ -2219,7 +2206,7 @@ const za = /* @__PURE__ */ M.forwardRef(function(a, t) {
|
|
|
2219
2206
|
})]
|
|
2220
2207
|
});
|
|
2221
2208
|
});
|
|
2222
|
-
function
|
|
2209
|
+
function Xa() {
|
|
2223
2210
|
const o = /* @__PURE__ */ new Map();
|
|
2224
2211
|
return {
|
|
2225
2212
|
emit(a, t) {
|
|
@@ -2235,21 +2222,21 @@ function Za() {
|
|
|
2235
2222
|
}
|
|
2236
2223
|
};
|
|
2237
2224
|
}
|
|
2238
|
-
const
|
|
2225
|
+
const za = /* @__PURE__ */ M.createContext(null), Za = /* @__PURE__ */ M.createContext(null), Ja = () => {
|
|
2239
2226
|
var o;
|
|
2240
|
-
return ((o = M.useContext(
|
|
2241
|
-
},
|
|
2242
|
-
function
|
|
2227
|
+
return ((o = M.useContext(za)) == null ? void 0 : o.id) || null;
|
|
2228
|
+
}, eo = () => M.useContext(Za);
|
|
2229
|
+
function to(o) {
|
|
2243
2230
|
const {
|
|
2244
2231
|
open: a = !1,
|
|
2245
2232
|
onOpenChange: t,
|
|
2246
2233
|
elements: e
|
|
2247
|
-
} = o, r =
|
|
2234
|
+
} = o, r = Yr(), n = M.useRef({}), [s] = M.useState(() => Xa()), i = Ja() != null;
|
|
2248
2235
|
if (process.env.NODE_ENV !== "production") {
|
|
2249
2236
|
const h = e.reference;
|
|
2250
|
-
h && !Le(h) &&
|
|
2237
|
+
h && !Le(h) && $a("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
2251
2238
|
}
|
|
2252
|
-
const [l, u] = M.useState(e.reference), c =
|
|
2239
|
+
const [l, u] = M.useState(e.reference), c = Ka((h, m, D) => {
|
|
2253
2240
|
n.current.openEvent = h ? m : void 0, s.emit("openchange", {
|
|
2254
2241
|
open: h,
|
|
2255
2242
|
event: m,
|
|
@@ -2273,22 +2260,22 @@ function no(o) {
|
|
|
2273
2260
|
refs: d
|
|
2274
2261
|
}), [a, c, p, s, r, d]);
|
|
2275
2262
|
}
|
|
2276
|
-
function
|
|
2263
|
+
function ro(o) {
|
|
2277
2264
|
o === void 0 && (o = {});
|
|
2278
2265
|
const {
|
|
2279
2266
|
nodeId: a
|
|
2280
|
-
} = o, t =
|
|
2267
|
+
} = o, t = to({
|
|
2281
2268
|
...o,
|
|
2282
2269
|
elements: {
|
|
2283
2270
|
reference: null,
|
|
2284
2271
|
floating: null,
|
|
2285
2272
|
...o.elements
|
|
2286
2273
|
}
|
|
2287
|
-
}), e = o.rootContext || t, r = e.elements, [n, s] = M.useState(null), [i, l] = M.useState(null), c = (r == null ? void 0 : r.domReference) || n, d = M.useRef(null), p =
|
|
2274
|
+
}), e = o.rootContext || t, r = e.elements, [n, s] = M.useState(null), [i, l] = M.useState(null), c = (r == null ? void 0 : r.domReference) || n, d = M.useRef(null), p = eo();
|
|
2288
2275
|
ct(() => {
|
|
2289
2276
|
c && (d.current = c);
|
|
2290
2277
|
}, [c]);
|
|
2291
|
-
const h =
|
|
2278
|
+
const h = La({
|
|
2292
2279
|
...o,
|
|
2293
2280
|
elements: {
|
|
2294
2281
|
...r,
|
|
@@ -2334,7 +2321,7 @@ function ao(o) {
|
|
|
2334
2321
|
}), [h, v, b, E]);
|
|
2335
2322
|
}
|
|
2336
2323
|
/*!
|
|
2337
|
-
react-datepicker v8.
|
|
2324
|
+
react-datepicker v8.2.0
|
|
2338
2325
|
https://github.com/Hacker0x01/react-datepicker
|
|
2339
2326
|
Released under the MIT License.
|
|
2340
2327
|
*/
|
|
@@ -2369,10 +2356,10 @@ function pe(o, a, t) {
|
|
|
2369
2356
|
(n || !(e in a)) && (n || (n = Array.prototype.slice.call(a, 0, e)), n[e] = a[e]);
|
|
2370
2357
|
return o.concat(n || Array.prototype.slice.call(a));
|
|
2371
2358
|
}
|
|
2372
|
-
var
|
|
2359
|
+
var no = function(o) {
|
|
2373
2360
|
var a = o.showTimeSelectOnly, t = a === void 0 ? !1 : a, e = o.showTime, r = e === void 0 ? !1 : e, n = o.className, s = o.children, i = t ? "Choose Time" : "Choose Date".concat(r ? " and Time" : "");
|
|
2374
2361
|
return f.createElement("div", { className: n, role: "dialog", "aria-label": i, "aria-modal": "true" }, s);
|
|
2375
|
-
},
|
|
2362
|
+
}, ao = function(o, a) {
|
|
2376
2363
|
var t = Mt(null), e = Mt(o);
|
|
2377
2364
|
e.current = o;
|
|
2378
2365
|
var r = un(function(n) {
|
|
@@ -2387,7 +2374,7 @@ var oo = function(o) {
|
|
|
2387
2374
|
};
|
|
2388
2375
|
}, [r]), t;
|
|
2389
2376
|
}, ht = function(o) {
|
|
2390
|
-
var a = o.children, t = o.onClickOutside, e = o.className, r = o.containerRef, n = o.style, s = o.ignoreClass, i =
|
|
2377
|
+
var a = o.children, t = o.onClickOutside, e = o.className, r = o.containerRef, n = o.style, s = o.ignoreClass, i = ao(t, s);
|
|
2391
2378
|
return f.createElement("div", { className: e, style: n, ref: function(l) {
|
|
2392
2379
|
i.current = l, r && (r.current = l);
|
|
2393
2380
|
} }, a);
|
|
@@ -2395,7 +2382,7 @@ var oo = function(o) {
|
|
|
2395
2382
|
(function(o) {
|
|
2396
2383
|
o.ArrowUp = "ArrowUp", o.ArrowDown = "ArrowDown", o.ArrowLeft = "ArrowLeft", o.ArrowRight = "ArrowRight", o.PageUp = "PageUp", o.PageDown = "PageDown", o.Home = "Home", o.End = "End", o.Enter = "Enter", o.Space = " ", o.Tab = "Tab", o.Escape = "Escape", o.Backspace = "Backspace", o.X = "x";
|
|
2397
2384
|
})(g || (g = {}));
|
|
2398
|
-
function
|
|
2385
|
+
function Ir() {
|
|
2399
2386
|
var o = typeof window < "u" ? window : globalThis;
|
|
2400
2387
|
return o;
|
|
2401
2388
|
}
|
|
@@ -2437,13 +2424,13 @@ function re(o, a) {
|
|
|
2437
2424
|
var t = a.dateFormat, e = a.locale, r = Array.isArray(t) && t.length > 0 ? t[0] : t;
|
|
2438
2425
|
return o && B(o, r, e) || "";
|
|
2439
2426
|
}
|
|
2440
|
-
function
|
|
2427
|
+
function oo(o, a, t) {
|
|
2441
2428
|
if (!o)
|
|
2442
2429
|
return "";
|
|
2443
2430
|
var e = re(o, t), r = a ? re(a, t) : "";
|
|
2444
2431
|
return "".concat(e, " - ").concat(r);
|
|
2445
2432
|
}
|
|
2446
|
-
function
|
|
2433
|
+
function so(o, a) {
|
|
2447
2434
|
if (!(o != null && o.length))
|
|
2448
2435
|
return "";
|
|
2449
2436
|
var t = o[0] ? re(o[0], a) : "";
|
|
@@ -2460,10 +2447,10 @@ function wt(o, a) {
|
|
|
2460
2447
|
var t = a.hour, e = t === void 0 ? 0 : t, r = a.minute, n = r === void 0 ? 0 : r, s = a.second, i = s === void 0 ? 0 : s;
|
|
2461
2448
|
return Xe(ze(Ze(o, i), n), e);
|
|
2462
2449
|
}
|
|
2463
|
-
function
|
|
2450
|
+
function io(o) {
|
|
2464
2451
|
return mr(o);
|
|
2465
2452
|
}
|
|
2466
|
-
function
|
|
2453
|
+
function lo(o, a) {
|
|
2467
2454
|
return B(o, "ddd", a);
|
|
2468
2455
|
}
|
|
2469
2456
|
function et(o) {
|
|
@@ -2491,10 +2478,10 @@ function Xt() {
|
|
|
2491
2478
|
function zt(o) {
|
|
2492
2479
|
return Dr(o);
|
|
2493
2480
|
}
|
|
2494
|
-
function
|
|
2481
|
+
function co(o) {
|
|
2495
2482
|
return gn(o);
|
|
2496
2483
|
}
|
|
2497
|
-
function
|
|
2484
|
+
function uo(o) {
|
|
2498
2485
|
return gr(o);
|
|
2499
2486
|
}
|
|
2500
2487
|
function ce(o, a) {
|
|
@@ -2522,32 +2509,32 @@ function Ae(o, a, t) {
|
|
|
2522
2509
|
return e;
|
|
2523
2510
|
}
|
|
2524
2511
|
function Rt() {
|
|
2525
|
-
var o =
|
|
2512
|
+
var o = Ir();
|
|
2526
2513
|
return o.__localeId__;
|
|
2527
2514
|
}
|
|
2528
2515
|
function Ye(o) {
|
|
2529
2516
|
if (typeof o == "string") {
|
|
2530
|
-
var a =
|
|
2517
|
+
var a = Ir();
|
|
2531
2518
|
return a.__localeData__ ? a.__localeData__[o] : void 0;
|
|
2532
2519
|
} else
|
|
2533
2520
|
return o;
|
|
2534
2521
|
}
|
|
2535
|
-
function
|
|
2522
|
+
function po(o, a, t) {
|
|
2536
2523
|
return a(B(o, "EEEE", t));
|
|
2537
2524
|
}
|
|
2538
|
-
function
|
|
2525
|
+
function fo(o, a) {
|
|
2539
2526
|
return B(o, "EEEEEE", a);
|
|
2540
2527
|
}
|
|
2541
|
-
function
|
|
2528
|
+
function ho(o, a) {
|
|
2542
2529
|
return B(o, "EEE", a);
|
|
2543
2530
|
}
|
|
2544
2531
|
function Lt(o, a) {
|
|
2545
2532
|
return B(ae(F(), o), "LLLL", a);
|
|
2546
2533
|
}
|
|
2547
|
-
function
|
|
2534
|
+
function Rr(o, a) {
|
|
2548
2535
|
return B(ae(F(), o), "LLL", a);
|
|
2549
2536
|
}
|
|
2550
|
-
function
|
|
2537
|
+
function mo(o, a) {
|
|
2551
2538
|
return B(Te(F(), o), "QQQ", a);
|
|
2552
2539
|
}
|
|
2553
2540
|
function oe(o, a) {
|
|
@@ -2574,7 +2561,7 @@ function Ft(o, a) {
|
|
|
2574
2561
|
return n instanceof Date ? O(o, n) : O(o, (s = n.date) !== null && s !== void 0 ? s : /* @__PURE__ */ new Date());
|
|
2575
2562
|
}) || !1;
|
|
2576
2563
|
}
|
|
2577
|
-
function
|
|
2564
|
+
function Lr(o, a) {
|
|
2578
2565
|
var t = a === void 0 ? {} : a, e = t.minDate, r = t.maxDate, n = t.excludeDates, s = t.includeDates, i = t.filterDate;
|
|
2579
2566
|
return Ke(o, {
|
|
2580
2567
|
minDate: e ? _r(e) : void 0,
|
|
@@ -2585,11 +2572,11 @@ function Fr(o, a) {
|
|
|
2585
2572
|
return J(o, l);
|
|
2586
2573
|
}) || i && !i(F(o)) || !1;
|
|
2587
2574
|
}
|
|
2588
|
-
function
|
|
2575
|
+
function Ve(o, a, t, e) {
|
|
2589
2576
|
var r = C(o), n = ee(o), s = C(a), i = ee(a), l = C(e);
|
|
2590
2577
|
return r === s && r === l ? n <= t && t <= i : r < s ? l === r && n <= t || l === s && i >= t || l < s && l > r : !1;
|
|
2591
2578
|
}
|
|
2592
|
-
function
|
|
2579
|
+
function vo(o, a) {
|
|
2593
2580
|
var t = a === void 0 ? {} : a, e = t.minDate, r = t.maxDate, n = t.excludeDates, s = t.includeDates;
|
|
2594
2581
|
return Ke(o, { minDate: e, maxDate: r }) || n && n.some(function(i) {
|
|
2595
2582
|
return J(i instanceof Date ? i : i.date, o);
|
|
@@ -2669,13 +2656,13 @@ function rr(o, a) {
|
|
|
2669
2656
|
return nt(n, s) > 0;
|
|
2670
2657
|
}) || !1;
|
|
2671
2658
|
}
|
|
2672
|
-
function
|
|
2659
|
+
function Do(o, a) {
|
|
2673
2660
|
var t = a === void 0 ? {} : a, e = t.minDate, r = t.includeDates, n = Tt(o), s = Pr(n);
|
|
2674
2661
|
return e && ot(e, s) > 0 || r && r.every(function(i) {
|
|
2675
2662
|
return ot(i, s) > 0;
|
|
2676
2663
|
}) || !1;
|
|
2677
2664
|
}
|
|
2678
|
-
function
|
|
2665
|
+
function go(o, a) {
|
|
2679
2666
|
var t = a === void 0 ? {} : a, e = t.maxDate, r = t.includeDates, n = kr(o), s = Ot(n, 1);
|
|
2680
2667
|
return e && ot(s, e) > 0 || r && r.every(function(i) {
|
|
2681
2668
|
return ot(s, i) > 0;
|
|
@@ -2687,7 +2674,7 @@ function nr(o, a) {
|
|
|
2687
2674
|
return st(s, n) > 0;
|
|
2688
2675
|
}) || !1;
|
|
2689
2676
|
}
|
|
2690
|
-
function
|
|
2677
|
+
function wo(o, a) {
|
|
2691
2678
|
var t = a === void 0 ? {} : a, e = t.minDate, r = t.yearItemNumber, n = r === void 0 ? Be : r, s = Fe(Oe(o, n)), i = ye(s, n).endPeriod, l = e && C(e);
|
|
2692
2679
|
return l && l > i || !1;
|
|
2693
2680
|
}
|
|
@@ -2697,11 +2684,11 @@ function ar(o, a) {
|
|
|
2697
2684
|
return st(n, s) > 0;
|
|
2698
2685
|
}) || !1;
|
|
2699
2686
|
}
|
|
2700
|
-
function
|
|
2687
|
+
function yo(o, a) {
|
|
2701
2688
|
var t = a === void 0 ? {} : a, e = t.maxDate, r = t.yearItemNumber, n = r === void 0 ? Be : r, s = ve(o, n), i = ye(s, n).startPeriod, l = e && C(e);
|
|
2702
2689
|
return l && l < i || !1;
|
|
2703
2690
|
}
|
|
2704
|
-
function
|
|
2691
|
+
function Fr(o) {
|
|
2705
2692
|
var a = o.minDate, t = o.includeDates;
|
|
2706
2693
|
if (t && a) {
|
|
2707
2694
|
var e = t.filter(function(r) {
|
|
@@ -2710,7 +2697,7 @@ function Ar(o) {
|
|
|
2710
2697
|
return Bt(e);
|
|
2711
2698
|
} else return t ? Bt(t) : a;
|
|
2712
2699
|
}
|
|
2713
|
-
function
|
|
2700
|
+
function Ar(o) {
|
|
2714
2701
|
var a = o.maxDate, t = o.includeDates;
|
|
2715
2702
|
if (t && a) {
|
|
2716
2703
|
var e = t.filter(function(r) {
|
|
@@ -2741,12 +2728,12 @@ function or(o, a) {
|
|
|
2741
2728
|
}
|
|
2742
2729
|
return e;
|
|
2743
2730
|
}
|
|
2744
|
-
function
|
|
2731
|
+
function bo(o, a) {
|
|
2745
2732
|
return o.length !== a.length ? !1 : o.every(function(t, e) {
|
|
2746
2733
|
return t === a[e];
|
|
2747
2734
|
});
|
|
2748
2735
|
}
|
|
2749
|
-
function
|
|
2736
|
+
function _o(o, a) {
|
|
2750
2737
|
o === void 0 && (o = []), a === void 0 && (a = "react-datepicker__day--holidays");
|
|
2751
2738
|
var t = /* @__PURE__ */ new Map();
|
|
2752
2739
|
return o.forEach(function(e) {
|
|
@@ -2756,7 +2743,7 @@ function Mo(o, a) {
|
|
|
2756
2743
|
className: "",
|
|
2757
2744
|
holidayNames: []
|
|
2758
2745
|
};
|
|
2759
|
-
if (!("className" in i && i.className === a &&
|
|
2746
|
+
if (!("className" in i && i.className === a && bo(i.holidayNames, [n]))) {
|
|
2760
2747
|
i.className = a;
|
|
2761
2748
|
var l = i.holidayNames;
|
|
2762
2749
|
i.holidayNames = l ? pe(pe([], l, !0), [n], !1) : [n], t.set(s, i);
|
|
@@ -2764,7 +2751,7 @@ function Mo(o, a) {
|
|
|
2764
2751
|
}
|
|
2765
2752
|
}), t;
|
|
2766
2753
|
}
|
|
2767
|
-
function
|
|
2754
|
+
function ko(o, a, t, e, r) {
|
|
2768
2755
|
for (var n = r.length, s = [], i = 0; i < n; i++) {
|
|
2769
2756
|
var l = o, u = r[i];
|
|
2770
2757
|
u && (l = mn(l, De(u)), l = Ct(l, ge(u)), l = vn(l, _e(u)));
|
|
@@ -2781,7 +2768,7 @@ function ye(o, a) {
|
|
|
2781
2768
|
var t = Math.ceil(C(o) / a) * a, e = t - (a - 1);
|
|
2782
2769
|
return { startPeriod: e, endPeriod: t };
|
|
2783
2770
|
}
|
|
2784
|
-
function
|
|
2771
|
+
function Mo(o) {
|
|
2785
2772
|
var a = new Date(o.getFullYear(), o.getMonth(), o.getDate()), t = new Date(o.getFullYear(), o.getMonth(), o.getDate(), 24);
|
|
2786
2773
|
return Math.round((+t - +a) / 36e5);
|
|
2787
2774
|
}
|
|
@@ -2789,7 +2776,7 @@ function ir(o) {
|
|
|
2789
2776
|
var a = o.getSeconds(), t = o.getMilliseconds();
|
|
2790
2777
|
return k(o.getTime() - a * 1e3 - t);
|
|
2791
2778
|
}
|
|
2792
|
-
function
|
|
2779
|
+
function Co(o, a) {
|
|
2793
2780
|
return ir(o).getTime() === ir(a).getTime();
|
|
2794
2781
|
}
|
|
2795
2782
|
function lr(o) {
|
|
@@ -2804,10 +2791,10 @@ function cr(o, a) {
|
|
|
2804
2791
|
var t = lr(o), e = lr(a);
|
|
2805
2792
|
return Pe(t, e);
|
|
2806
2793
|
}
|
|
2807
|
-
function
|
|
2794
|
+
function Hr(o) {
|
|
2808
2795
|
return o.key === g.Space;
|
|
2809
2796
|
}
|
|
2810
|
-
var
|
|
2797
|
+
var xo = (
|
|
2811
2798
|
/** @class */
|
|
2812
2799
|
function(o) {
|
|
2813
2800
|
z(a, o);
|
|
@@ -2855,7 +2842,7 @@ var Eo = (
|
|
|
2855
2842
|
);
|
|
2856
2843
|
}, a;
|
|
2857
2844
|
}(X)
|
|
2858
|
-
),
|
|
2845
|
+
), So = (
|
|
2859
2846
|
/** @class */
|
|
2860
2847
|
function(o) {
|
|
2861
2848
|
z(a, o);
|
|
@@ -2951,7 +2938,7 @@ var Eo = (
|
|
|
2951
2938
|
}) : t.isSameDayOrWeek(t.props.selected);
|
|
2952
2939
|
}, t.getClassNames = function(e) {
|
|
2953
2940
|
var r = t.props.dayClassName ? t.props.dayClassName(e) : void 0;
|
|
2954
|
-
return Z("react-datepicker__day", r, "react-datepicker__day--" +
|
|
2941
|
+
return Z("react-datepicker__day", r, "react-datepicker__day--" + lo(t.props.day), {
|
|
2955
2942
|
"react-datepicker__day--disabled": t.isDisabled(),
|
|
2956
2943
|
"react-datepicker__day--excluded": t.isExcluded(),
|
|
2957
2944
|
"react-datepicker__day--selected": t.isSelected(),
|
|
@@ -2984,7 +2971,7 @@ var Eo = (
|
|
|
2984
2971
|
var e;
|
|
2985
2972
|
t.shouldFocusDay() && ((e = t.dayEl.current) === null || e === void 0 || e.focus({ preventScroll: !0 }));
|
|
2986
2973
|
}, t.renderDayContents = function() {
|
|
2987
|
-
return t.props.monthShowsDuplicateDaysEnd && t.isAfterMonth() || t.props.monthShowsDuplicateDaysStart && t.isBeforeMonth() ? null : t.props.renderDayContents ? t.props.renderDayContents(
|
|
2974
|
+
return t.props.monthShowsDuplicateDaysEnd && t.isAfterMonth() || t.props.monthShowsDuplicateDaysStart && t.isBeforeMonth() ? null : t.props.renderDayContents ? t.props.renderDayContents(Ut(t.props.day), t.props.day) : Ut(t.props.day);
|
|
2988
2975
|
}, t.render = function() {
|
|
2989
2976
|
return (
|
|
2990
2977
|
// TODO: Use <option> instead of the "option" role to ensure accessibility across all devices.
|
|
@@ -3014,7 +3001,7 @@ var Eo = (
|
|
|
3014
3001
|
);
|
|
3015
3002
|
}, a;
|
|
3016
3003
|
}(X)
|
|
3017
|
-
),
|
|
3004
|
+
), Eo = (
|
|
3018
3005
|
/** @class */
|
|
3019
3006
|
function(o) {
|
|
3020
3007
|
z(a, o);
|
|
@@ -3055,7 +3042,7 @@ var Eo = (
|
|
|
3055
3042
|
return f.createElement("div", { ref: this.weekNumberEl, className: Z(l), "aria-label": "".concat(s, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex() }, e);
|
|
3056
3043
|
}, a;
|
|
3057
3044
|
}(X)
|
|
3058
|
-
),
|
|
3045
|
+
), Po = (
|
|
3059
3046
|
/** @class */
|
|
3060
3047
|
function(o) {
|
|
3061
3048
|
z(a, o);
|
|
@@ -3087,7 +3074,7 @@ var Eo = (
|
|
|
3087
3074
|
}
|
|
3088
3075
|
typeof t.props.onWeekSelect == "function" && t.props.onWeekSelect(u, r, n), t.props.showWeekPicker && t.handleDayClick(u, n), ((s = t.props.shouldCloseOnSelect) !== null && s !== void 0 ? s : a.defaultProps.shouldCloseOnSelect) && ((l = (i = t.props).setOpen) === null || l === void 0 || l.call(i, !1));
|
|
3089
3076
|
}, t.formatWeekNumber = function(e) {
|
|
3090
|
-
return t.props.formatWeekNumber ? t.props.formatWeekNumber(e) :
|
|
3077
|
+
return t.props.formatWeekNumber ? t.props.formatWeekNumber(e) : io(e);
|
|
3091
3078
|
}, t.isWeekDisabled = function() {
|
|
3092
3079
|
for (var e = t.startOfWeek(), r = fe(e, 6), n = new Date(e); n <= r; ) {
|
|
3093
3080
|
if (!t.isDisabled(n))
|
|
@@ -3099,11 +3086,11 @@ var Eo = (
|
|
|
3099
3086
|
var e = t.startOfWeek(), r = [], n = t.formatWeekNumber(e);
|
|
3100
3087
|
if (t.props.showWeekNumber) {
|
|
3101
3088
|
var s = t.props.onWeekSelect || t.props.showWeekPicker ? t.handleWeekClick.bind(t, e, n) : void 0;
|
|
3102
|
-
r.push(f.createElement(
|
|
3089
|
+
r.push(f.createElement(Eo, Y({ key: "W" }, a.defaultProps, t.props, { weekNumber: n, isWeekDisabled: t.isWeekDisabled(), date: e, onClick: s })));
|
|
3103
3090
|
}
|
|
3104
3091
|
return r.concat([0, 1, 2, 3, 4, 5, 6].map(function(i) {
|
|
3105
3092
|
var l = fe(e, i);
|
|
3106
|
-
return f.createElement(
|
|
3093
|
+
return f.createElement(So, Y({}, a.defaultProps, t.props, { ariaLabelPrefixWhenEnabled: t.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: t.props.disabledDayAriaLabelPrefix, key: l.valueOf(), day: l, onClick: t.handleDayClick.bind(t, l), onMouseEnter: t.handleDayMouseEnter.bind(t, l) }));
|
|
3107
3094
|
}));
|
|
3108
3095
|
}, t.startOfWeek = function() {
|
|
3109
3096
|
return ke(t.props.day, t.props.locale, t.props.calendarStartDay);
|
|
@@ -3128,7 +3115,7 @@ var Eo = (
|
|
|
3128
3115
|
return f.createElement("div", { className: Z(t) }, this.renderDays());
|
|
3129
3116
|
}, a;
|
|
3130
3117
|
}(X)
|
|
3131
|
-
), Re,
|
|
3118
|
+
), Re, To = 6, Ne = {
|
|
3132
3119
|
TWO_COLUMNS: "two_columns",
|
|
3133
3120
|
THREE_COLUMNS: "three_columns",
|
|
3134
3121
|
FOUR_COLUMNS: "four_columns"
|
|
@@ -3161,7 +3148,7 @@ var Eo = (
|
|
|
3161
3148
|
function ur(o, a) {
|
|
3162
3149
|
return o ? Ne.FOUR_COLUMNS : a ? Ne.TWO_COLUMNS : Ne.THREE_COLUMNS;
|
|
3163
3150
|
}
|
|
3164
|
-
var
|
|
3151
|
+
var No = (
|
|
3165
3152
|
/** @class */
|
|
3166
3153
|
function(o) {
|
|
3167
3154
|
z(a, o);
|
|
@@ -3209,7 +3196,7 @@ var Yo = (
|
|
|
3209
3196
|
return !s || !i ? !1 : ut(Te(n, e), i);
|
|
3210
3197
|
}, t.isInSelectingRangeMonth = function(e) {
|
|
3211
3198
|
var r, n = t.props, s = n.day, i = n.selectsStart, l = n.selectsEnd, u = n.selectsRange, c = n.startDate, d = n.endDate, p = (r = t.props.selectingDate) !== null && r !== void 0 ? r : t.props.preSelection;
|
|
3212
|
-
return !(i || l || u) || !p ? !1 : i && d ?
|
|
3199
|
+
return !(i || l || u) || !p ? !1 : i && d ? Ve(p, d, e, s) : l && c || u && c && !d ? Ve(c, p, e, s) : !1;
|
|
3213
3200
|
}, t.isSelectingMonthRangeStart = function(e) {
|
|
3214
3201
|
var r;
|
|
3215
3202
|
if (!t.isInSelectingRangeMonth(e))
|
|
@@ -3245,9 +3232,9 @@ var Yo = (
|
|
|
3245
3232
|
return t.props.showWeekPicker ? ke(m, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
|
|
3246
3233
|
}, u = function(m) {
|
|
3247
3234
|
return t.props.showWeekPicker ? ke(m, t.props.locale, t.props.calendarStartDay) : t.props.selected;
|
|
3248
|
-
}, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(f.createElement(
|
|
3235
|
+
}, c = t.props.selected ? u(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(f.createElement(Po, Y({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: n, day: i, month: ee(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: c, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !s; ) {
|
|
3249
3236
|
n++, i = at(i, 1);
|
|
3250
|
-
var p = r && n >=
|
|
3237
|
+
var p = r && n >= To, h = !r && !t.isWeekInMonth(i);
|
|
3251
3238
|
if (p || h)
|
|
3252
3239
|
if (t.props.peekNextMonth)
|
|
3253
3240
|
s = !0;
|
|
@@ -3268,25 +3255,25 @@ var Yo = (
|
|
|
3268
3255
|
var s, i = t.props, l = i.selected, u = i.preSelection, c = i.setPreSelection, d = i.minDate, p = i.maxDate, h = i.showFourColumnMonthYearPicker, m = i.showTwoColumnMonthYearPicker;
|
|
3269
3256
|
if (u) {
|
|
3270
3257
|
var D = ur(h, m), v = t.getVerticalOffset(D), b = (s = yt[D]) === null || s === void 0 ? void 0 : s.grid, E = function(S, y, _) {
|
|
3271
|
-
var N, Q, W = y,
|
|
3258
|
+
var N, Q, W = y, V = _;
|
|
3272
3259
|
switch (S) {
|
|
3273
3260
|
case g.ArrowRight:
|
|
3274
|
-
W = he(y, Ge),
|
|
3261
|
+
W = he(y, Ge), V = _ === 11 ? 0 : _ + Ge;
|
|
3275
3262
|
break;
|
|
3276
3263
|
case g.ArrowLeft:
|
|
3277
|
-
W = Se(y, Ge),
|
|
3264
|
+
W = Se(y, Ge), V = _ === 0 ? 11 : _ - Ge;
|
|
3278
3265
|
break;
|
|
3279
3266
|
case g.ArrowUp:
|
|
3280
|
-
W = Se(y, v),
|
|
3267
|
+
W = Se(y, v), V = !((N = b == null ? void 0 : b[0]) === null || N === void 0) && N.includes(_) ? _ + 12 - v : _ - v;
|
|
3281
3268
|
break;
|
|
3282
3269
|
case g.ArrowDown:
|
|
3283
|
-
W = he(y, v),
|
|
3270
|
+
W = he(y, v), V = !((Q = b == null ? void 0 : b[b.length - 1]) === null || Q === void 0) && Q.includes(_) ? _ - 12 + v : _ + v;
|
|
3284
3271
|
break;
|
|
3285
3272
|
}
|
|
3286
|
-
return { newCalculatedDate: W, newCalculatedMonth:
|
|
3273
|
+
return { newCalculatedDate: W, newCalculatedMonth: V };
|
|
3287
3274
|
}, x = function(S, y, _) {
|
|
3288
|
-
for (var N = 40, Q = S, W = !1,
|
|
3289
|
-
if (
|
|
3275
|
+
for (var N = 40, Q = S, W = !1, V = 0, te = E(Q, y, _), q = te.newCalculatedDate, T = te.newCalculatedMonth; !W; ) {
|
|
3276
|
+
if (V >= N) {
|
|
3290
3277
|
q = y, T = _;
|
|
3291
3278
|
break;
|
|
3292
3279
|
}
|
|
@@ -3300,12 +3287,12 @@ var Yo = (
|
|
|
3300
3287
|
var H = E(Q, q, T);
|
|
3301
3288
|
q = H.newCalculatedDate, T = H.newCalculatedMonth;
|
|
3302
3289
|
}
|
|
3303
|
-
if (
|
|
3290
|
+
if (vo(q, t.props)) {
|
|
3304
3291
|
var H = E(Q, q, T);
|
|
3305
3292
|
q = H.newCalculatedDate, T = H.newCalculatedMonth;
|
|
3306
3293
|
} else
|
|
3307
3294
|
W = !0;
|
|
3308
|
-
|
|
3295
|
+
V++;
|
|
3309
3296
|
}
|
|
3310
3297
|
return { newCalculatedDate: q, newCalculatedMonth: T };
|
|
3311
3298
|
};
|
|
@@ -3359,7 +3346,7 @@ var Yo = (
|
|
|
3359
3346
|
}, t.isMonthDisabledForLabelDate = function(e) {
|
|
3360
3347
|
var r, n = t.props, s = n.day, i = n.minDate, l = n.maxDate, u = n.excludeDates, c = n.includeDates, d = ae(s, e);
|
|
3361
3348
|
return {
|
|
3362
|
-
isDisabled: (r = (i || l || u || c) &&
|
|
3349
|
+
isDisabled: (r = (i || l || u || c) && Lr(d, t.props)) !== null && r !== void 0 ? r : !1,
|
|
3363
3350
|
labelDate: d
|
|
3364
3351
|
};
|
|
3365
3352
|
}, t.isMonthDisabled = function(e) {
|
|
@@ -3372,7 +3359,7 @@ var Yo = (
|
|
|
3372
3359
|
"react-datepicker__month-text--selected": d ? t.isSelectMonthInList(n, e, d) : void 0,
|
|
3373
3360
|
"react-datepicker__month-text--keyboard-selected": !t.props.disabledKeyboardNavigation && l && t.isSelectedMonth(n, e, l) && !t.isMonthDisabled(e),
|
|
3374
3361
|
"react-datepicker__month-text--in-selecting-range": t.isInSelectingRangeMonth(e),
|
|
3375
|
-
"react-datepicker__month-text--in-range": s && i ?
|
|
3362
|
+
"react-datepicker__month-text--in-range": s && i ? Ve(s, i, e, n) : void 0,
|
|
3376
3363
|
"react-datepicker__month-text--range-start": t.isRangeStartMonth(e),
|
|
3377
3364
|
"react-datepicker__month-text--range-end": t.isRangeEndMonth(e),
|
|
3378
3365
|
"react-datepicker__month-text--selecting-range-start": t.isSelectingMonthRangeStart(e),
|
|
@@ -3401,13 +3388,14 @@ var Yo = (
|
|
|
3401
3388
|
"react-datepicker__quarter-text--in-selecting-range": t.isInSelectingRangeQuarter(e),
|
|
3402
3389
|
"react-datepicker__quarter-text--in-range": s && i ? $e(s, i, e, n) : void 0,
|
|
3403
3390
|
"react-datepicker__quarter-text--range-start": t.isRangeStartQuarter(e),
|
|
3404
|
-
"react-datepicker__quarter-text--range-end": t.isRangeEndQuarter(e)
|
|
3391
|
+
"react-datepicker__quarter-text--range-end": t.isRangeEndQuarter(e),
|
|
3392
|
+
"react-datepicker__quarter-text--today": t.isCurrentQuarter(n, e)
|
|
3405
3393
|
});
|
|
3406
3394
|
}, t.getMonthContent = function(e) {
|
|
3407
|
-
var r = t.props, n = r.showFullMonthYearPicker, s = r.renderMonthContent, i = r.locale, l = r.day, u =
|
|
3395
|
+
var r = t.props, n = r.showFullMonthYearPicker, s = r.renderMonthContent, i = r.locale, l = r.day, u = Rr(e, i), c = Lt(e, i);
|
|
3408
3396
|
return s ? s(e, u, c, l) : n ? c : u;
|
|
3409
3397
|
}, t.getQuarterContent = function(e) {
|
|
3410
|
-
var r, n = t.props, s = n.renderQuarterContent, i = n.locale, l =
|
|
3398
|
+
var r, n = t.props, s = n.renderQuarterContent, i = n.locale, l = mo(e, i);
|
|
3411
3399
|
return (r = s == null ? void 0 : s(e, l)) !== null && r !== void 0 ? r : l;
|
|
3412
3400
|
}, t.renderMonths = function() {
|
|
3413
3401
|
var e, r = t.props, n = r.showTwoColumnMonthYearPicker, s = r.showFourColumnMonthYearPicker, i = r.day, l = r.selected, u = (e = yt[ur(s, n)]) === null || e === void 0 ? void 0 : e.grid;
|
|
@@ -3416,7 +3404,7 @@ var Yo = (
|
|
|
3416
3404
|
return f.createElement("div", { ref: t.MONTH_REFS[p], key: h, onClick: function(m) {
|
|
3417
3405
|
t.onMonthClick(m, p);
|
|
3418
3406
|
}, onKeyDown: function(m) {
|
|
3419
|
-
|
|
3407
|
+
Hr(m) && (m.preventDefault(), m.key = g.Enter), t.onMonthKeyDown(m, p);
|
|
3420
3408
|
}, onMouseEnter: t.props.usePointerEvent ? void 0 : function() {
|
|
3421
3409
|
return t.onMonthMouseEnter(p);
|
|
3422
3410
|
}, onPointerEnter: t.props.usePointerEvent ? function() {
|
|
@@ -3455,7 +3443,7 @@ var Yo = (
|
|
|
3455
3443
|
return f.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(B(n, "MMMM, yyyy", this.props.locale)), role: "listbox" }, e ? this.renderMonths() : r ? this.renderQuarters() : this.renderWeeks());
|
|
3456
3444
|
}, a;
|
|
3457
3445
|
}(X)
|
|
3458
|
-
),
|
|
3446
|
+
), Oo = (
|
|
3459
3447
|
/** @class */
|
|
3460
3448
|
function(o) {
|
|
3461
3449
|
z(a, o);
|
|
@@ -3482,7 +3470,7 @@ var Yo = (
|
|
|
3482
3470
|
return f.createElement(ht, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3483
3471
|
}, a;
|
|
3484
3472
|
}(X)
|
|
3485
|
-
),
|
|
3473
|
+
), Yo = (
|
|
3486
3474
|
/** @class */
|
|
3487
3475
|
function(o) {
|
|
3488
3476
|
z(a, o);
|
|
@@ -3506,7 +3494,7 @@ var Yo = (
|
|
|
3506
3494
|
f.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, r[t.props.month])
|
|
3507
3495
|
);
|
|
3508
3496
|
}, t.renderDropdown = function(e) {
|
|
3509
|
-
return f.createElement(
|
|
3497
|
+
return f.createElement(Oo, Y({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
3510
3498
|
}, t.renderScrollMode = function(e) {
|
|
3511
3499
|
var r = t.state.dropdownVisible, n = [t.renderReadView(!r, e)];
|
|
3512
3500
|
return r && n.unshift(t.renderDropdown(e)), n;
|
|
@@ -3520,7 +3508,7 @@ var Yo = (
|
|
|
3520
3508
|
}
|
|
3521
3509
|
return a.prototype.render = function() {
|
|
3522
3510
|
var t = this, e = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(this.props.useShortMonthInDropdown ? function(n) {
|
|
3523
|
-
return
|
|
3511
|
+
return Rr(n, t.props.locale);
|
|
3524
3512
|
} : function(n) {
|
|
3525
3513
|
return Lt(n, t.props.locale);
|
|
3526
3514
|
}), r;
|
|
@@ -3536,12 +3524,12 @@ var Yo = (
|
|
|
3536
3524
|
}, a;
|
|
3537
3525
|
}(X)
|
|
3538
3526
|
);
|
|
3539
|
-
function
|
|
3527
|
+
function Io(o, a) {
|
|
3540
3528
|
for (var t = [], e = we(o), r = we(a); !Ce(e, r); )
|
|
3541
3529
|
t.push(F(e)), e = he(e, 1);
|
|
3542
3530
|
return t;
|
|
3543
3531
|
}
|
|
3544
|
-
var
|
|
3532
|
+
var Ro = (
|
|
3545
3533
|
/** @class */
|
|
3546
3534
|
function(o) {
|
|
3547
3535
|
z(a, o);
|
|
@@ -3562,7 +3550,7 @@ var Fo = (
|
|
|
3562
3550
|
}, e.handleClickOutside = function() {
|
|
3563
3551
|
e.props.onCancel();
|
|
3564
3552
|
}, e.state = {
|
|
3565
|
-
monthYearsList:
|
|
3553
|
+
monthYearsList: Io(e.props.minDate, e.props.maxDate)
|
|
3566
3554
|
}, e;
|
|
3567
3555
|
}
|
|
3568
3556
|
return a.prototype.render = function() {
|
|
@@ -3573,7 +3561,7 @@ var Fo = (
|
|
|
3573
3561
|
return f.createElement(ht, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3574
3562
|
}, a;
|
|
3575
3563
|
}(X)
|
|
3576
|
-
),
|
|
3564
|
+
), Lo = (
|
|
3577
3565
|
/** @class */
|
|
3578
3566
|
function(o) {
|
|
3579
3567
|
z(a, o);
|
|
@@ -3600,7 +3588,7 @@ var Fo = (
|
|
|
3600
3588
|
f.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, r)
|
|
3601
3589
|
);
|
|
3602
3590
|
}, t.renderDropdown = function() {
|
|
3603
|
-
return f.createElement(
|
|
3591
|
+
return f.createElement(Ro, Y({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
3604
3592
|
}, t.renderScrollMode = function() {
|
|
3605
3593
|
var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
|
|
3606
3594
|
return e && r.unshift(t.renderDropdown()), r;
|
|
@@ -3627,7 +3615,7 @@ var Fo = (
|
|
|
3627
3615
|
return f.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
3628
3616
|
}, a;
|
|
3629
3617
|
}(X)
|
|
3630
|
-
),
|
|
3618
|
+
), Fo = (
|
|
3631
3619
|
/** @class */
|
|
3632
3620
|
function(o) {
|
|
3633
3621
|
z(a, o);
|
|
@@ -3644,7 +3632,7 @@ var Fo = (
|
|
|
3644
3632
|
var r, n;
|
|
3645
3633
|
(t.props.minTime || t.props.maxTime) && er(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && Jt(e, t.props) || (n = (r = t.props).onChange) === null || n === void 0 || n.call(r, e);
|
|
3646
3634
|
}, t.isSelectedTime = function(e) {
|
|
3647
|
-
return t.props.selected &&
|
|
3635
|
+
return t.props.selected && Co(t.props.selected, e);
|
|
3648
3636
|
}, t.isDisabledTime = function(e) {
|
|
3649
3637
|
return (t.props.minTime || t.props.maxTime) && er(e, t.props) || (t.props.excludeTimes || t.props.includeTimes || t.props.filterTime) && Jt(e, t.props);
|
|
3650
3638
|
}, t.liClasses = function(e) {
|
|
@@ -3659,10 +3647,10 @@ var Fo = (
|
|
|
3659
3647
|
}, t.renderTimes = function() {
|
|
3660
3648
|
for (var e, r = [], n = typeof t.props.format == "string" ? t.props.format : "p", s = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, i = t.props.selected || t.props.openToDate || F(), l = et(i), u = t.props.injectTimes && t.props.injectTimes.sort(function(v, b) {
|
|
3661
3649
|
return v.getTime() - b.getTime();
|
|
3662
|
-
}), c = 60 *
|
|
3650
|
+
}), c = 60 * Mo(i), d = c / s, p = 0; p < d; p++) {
|
|
3663
3651
|
var h = Ct(l, p * s);
|
|
3664
3652
|
if (r.push(h), u) {
|
|
3665
|
-
var m =
|
|
3653
|
+
var m = ko(l, h, p, s, u);
|
|
3666
3654
|
r = r.concat(m);
|
|
3667
3655
|
}
|
|
3668
3656
|
}
|
|
@@ -3723,7 +3711,7 @@ var Fo = (
|
|
|
3723
3711
|
return e.offsetTop - (t / 2 - e.clientHeight / 2);
|
|
3724
3712
|
}, a;
|
|
3725
3713
|
}(X)
|
|
3726
|
-
), dr = 3,
|
|
3714
|
+
), dr = 3, Ao = (
|
|
3727
3715
|
/** @class */
|
|
3728
3716
|
function(o) {
|
|
3729
3717
|
z(a, o);
|
|
@@ -3867,7 +3855,7 @@ var Fo = (
|
|
|
3867
3855
|
e.push(f.createElement("div", { ref: h.YEAR_REFS[D - c], onClick: function(v) {
|
|
3868
3856
|
t.onYearClick(v, D);
|
|
3869
3857
|
}, onKeyDown: function(v) {
|
|
3870
|
-
|
|
3858
|
+
Hr(v) && (v.preventDefault(), v.key = g.Enter), t.onYearKeyDown(v, D);
|
|
3871
3859
|
}, tabIndex: Number(h.getYearTabIndex(D)), className: h.getYearClassNames(D), onMouseEnter: h.props.usePointerEvent ? void 0 : function(v) {
|
|
3872
3860
|
return i(v, D);
|
|
3873
3861
|
}, onPointerEnter: h.props.usePointerEvent ? function(v) {
|
|
@@ -3887,14 +3875,14 @@ var Fo = (
|
|
|
3887
3875
|
}, a;
|
|
3888
3876
|
}(X)
|
|
3889
3877
|
);
|
|
3890
|
-
function
|
|
3878
|
+
function Ho(o, a, t, e) {
|
|
3891
3879
|
for (var r = [], n = 0; n < 2 * a + 1; n++) {
|
|
3892
3880
|
var s = o + a - n, i = !0;
|
|
3893
3881
|
t && (i = C(t) <= s), e && i && (i = C(e) >= s), i && r.push(s);
|
|
3894
3882
|
}
|
|
3895
3883
|
return r;
|
|
3896
3884
|
}
|
|
3897
|
-
var
|
|
3885
|
+
var Wo = (
|
|
3898
3886
|
/** @class */
|
|
3899
3887
|
function(o) {
|
|
3900
3888
|
z(a, o);
|
|
@@ -3940,7 +3928,7 @@ var Bo = (
|
|
|
3940
3928
|
};
|
|
3941
3929
|
var r = t.yearDropdownItemNumber, n = t.scrollableYearDropdown, s = r || (n ? 10 : 5);
|
|
3942
3930
|
return e.state = {
|
|
3943
|
-
yearsList:
|
|
3931
|
+
yearsList: Ho(e.props.year, s, e.props.minDate, e.props.maxDate)
|
|
3944
3932
|
}, e.dropdownRef = Me(), e;
|
|
3945
3933
|
}
|
|
3946
3934
|
return a.prototype.componentDidMount = function() {
|
|
@@ -3959,7 +3947,7 @@ var Bo = (
|
|
|
3959
3947
|
return f.createElement(ht, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3960
3948
|
}, a;
|
|
3961
3949
|
}(X)
|
|
3962
|
-
),
|
|
3950
|
+
), Qo = (
|
|
3963
3951
|
/** @class */
|
|
3964
3952
|
function(o) {
|
|
3965
3953
|
z(a, o);
|
|
@@ -3985,7 +3973,7 @@ var Bo = (
|
|
|
3985
3973
|
f.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, t.props.year)
|
|
3986
3974
|
);
|
|
3987
3975
|
}, t.renderDropdown = function() {
|
|
3988
|
-
return f.createElement(
|
|
3976
|
+
return f.createElement(Wo, Y({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
3989
3977
|
}, t.renderScrollMode = function() {
|
|
3990
3978
|
var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
|
|
3991
3979
|
return e && r.unshift(t.renderDropdown()), r;
|
|
@@ -4021,16 +4009,16 @@ var Bo = (
|
|
|
4021
4009
|
return f.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
4022
4010
|
}, a;
|
|
4023
4011
|
}(X)
|
|
4024
|
-
),
|
|
4012
|
+
), Bo = [
|
|
4025
4013
|
"react-datepicker__year-select",
|
|
4026
4014
|
"react-datepicker__month-select",
|
|
4027
4015
|
"react-datepicker__month-year-select"
|
|
4028
|
-
],
|
|
4016
|
+
], Ko = function(o) {
|
|
4029
4017
|
var a = (o.className || "").split(/\s+/);
|
|
4030
|
-
return
|
|
4018
|
+
return Bo.some(function(t) {
|
|
4031
4019
|
return a.indexOf(t) >= 0;
|
|
4032
4020
|
});
|
|
4033
|
-
},
|
|
4021
|
+
}, Uo = (
|
|
4034
4022
|
/** @class */
|
|
4035
4023
|
function(o) {
|
|
4036
4024
|
z(a, o);
|
|
@@ -4042,9 +4030,9 @@ var Bo = (
|
|
|
4042
4030
|
return e.containerRef.current;
|
|
4043
4031
|
}, e.handleDropdownFocus = function(r) {
|
|
4044
4032
|
var n, s;
|
|
4045
|
-
|
|
4033
|
+
Ko(r.target) && ((s = (n = e.props).onDropdownFocus) === null || s === void 0 || s.call(n, r));
|
|
4046
4034
|
}, e.getDateInView = function() {
|
|
4047
|
-
var r = e.props, n = r.preSelection, s = r.selected, i = r.openToDate, l =
|
|
4035
|
+
var r = e.props, n = r.preSelection, s = r.selected, i = r.openToDate, l = Fr(e.props), u = Ar(e.props), c = F(), d = i || s || n;
|
|
4048
4036
|
return d || (l && Pe(c, l) ? l : u && Ce(c, u) ? u : c);
|
|
4049
4037
|
}, e.increaseMonth = function() {
|
|
4050
4038
|
e.setState(function(r) {
|
|
@@ -4080,7 +4068,7 @@ var Bo = (
|
|
|
4080
4068
|
}, e.getEnabledPreSelectionDateForMonth = function(r) {
|
|
4081
4069
|
if (!oe(r, e.props))
|
|
4082
4070
|
return r;
|
|
4083
|
-
for (var n = we(r), s =
|
|
4071
|
+
for (var n = we(r), s = uo(r), i = Dn(s, n), l = null, u = 0; u <= i; u++) {
|
|
4084
4072
|
var c = fe(n, u);
|
|
4085
4073
|
if (!oe(c, e.props)) {
|
|
4086
4074
|
l = c;
|
|
@@ -4131,7 +4119,7 @@ var Bo = (
|
|
|
4131
4119
|
return f.createElement("div", { key: i, "aria-label": B(l, "EEEE", e.props.locale), className: Z("react-datepicker__day-name", c) }, u);
|
|
4132
4120
|
}));
|
|
4133
4121
|
}, e.formatWeekday = function(r, n) {
|
|
4134
|
-
return e.props.formatWeekDay ?
|
|
4122
|
+
return e.props.formatWeekDay ? po(r, e.props.formatWeekDay, n) : e.props.useWeekdaysShort ? ho(r, n) : fo(r, n);
|
|
4135
4123
|
}, e.decreaseYear = function() {
|
|
4136
4124
|
e.setState(function(r) {
|
|
4137
4125
|
var n, s = r.date;
|
|
@@ -4152,10 +4140,10 @@ var Bo = (
|
|
|
4152
4140
|
d = nr(e.state.date, e.props);
|
|
4153
4141
|
break;
|
|
4154
4142
|
case e.props.showYearPicker:
|
|
4155
|
-
d =
|
|
4143
|
+
d = wo(e.state.date, e.props);
|
|
4156
4144
|
break;
|
|
4157
4145
|
case e.props.showQuarterYearPicker:
|
|
4158
|
-
d =
|
|
4146
|
+
d = Do(e.state.date, e.props);
|
|
4159
4147
|
break;
|
|
4160
4148
|
default:
|
|
4161
4149
|
d = tr(c, e.props);
|
|
@@ -4196,10 +4184,10 @@ var Bo = (
|
|
|
4196
4184
|
n = ar(e.state.date, e.props);
|
|
4197
4185
|
break;
|
|
4198
4186
|
case e.props.showYearPicker:
|
|
4199
|
-
n =
|
|
4187
|
+
n = yo(e.state.date, e.props);
|
|
4200
4188
|
break;
|
|
4201
4189
|
case e.props.showQuarterYearPicker:
|
|
4202
|
-
n =
|
|
4190
|
+
n = go(e.state.date, e.props);
|
|
4203
4191
|
break;
|
|
4204
4192
|
default:
|
|
4205
4193
|
n = rr(e.state.date, e.props);
|
|
@@ -4230,13 +4218,13 @@ var Bo = (
|
|
|
4230
4218
|
return e.props.showYearDropdown && n.push("react-datepicker__current-month--hasYearDropdown"), e.props.showMonthDropdown && n.push("react-datepicker__current-month--hasMonthDropdown"), e.props.showMonthYearDropdown && n.push("react-datepicker__current-month--hasMonthYearDropdown"), f.createElement("h2", { className: n.join(" ") }, B(r, e.props.dateFormat, e.props.locale));
|
|
4231
4219
|
}, e.renderYearDropdown = function(r) {
|
|
4232
4220
|
if (r === void 0 && (r = !1), !(!e.props.showYearDropdown || r))
|
|
4233
|
-
return f.createElement(
|
|
4221
|
+
return f.createElement(Qo, Y({}, a.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: C(e.state.date) }));
|
|
4234
4222
|
}, e.renderMonthDropdown = function(r) {
|
|
4235
4223
|
if (r === void 0 && (r = !1), !(!e.props.showMonthDropdown || r))
|
|
4236
|
-
return f.createElement(
|
|
4224
|
+
return f.createElement(Yo, Y({}, a.defaultProps, e.props, { month: ee(e.state.date), onChange: e.changeMonth }));
|
|
4237
4225
|
}, e.renderMonthYearDropdown = function(r) {
|
|
4238
4226
|
if (r === void 0 && (r = !1), !(!e.props.showMonthYearDropdown || r))
|
|
4239
|
-
return f.createElement(
|
|
4227
|
+
return f.createElement(Lo, Y({}, a.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
|
|
4240
4228
|
}, e.handleTodayButtonClick = function(r) {
|
|
4241
4229
|
e.props.onSelect(Xt(), r), e.props.setPreSelection && e.props.setPreSelection(Xt());
|
|
4242
4230
|
}, e.renderTodayButton = function() {
|
|
@@ -4292,7 +4280,7 @@ var Bo = (
|
|
|
4292
4280
|
e.monthContainer = b ?? void 0;
|
|
4293
4281
|
}, className: "react-datepicker__month-container" },
|
|
4294
4282
|
e.renderHeader({ monthDate: h, i: d }),
|
|
4295
|
-
f.createElement(
|
|
4283
|
+
f.createElement(No, Y({}, a.defaultProps, e.props, { containerRef: e.containerRef, ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: h, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: d, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: D, monthShowsDuplicateDaysStart: v }))
|
|
4296
4284
|
));
|
|
4297
4285
|
}
|
|
4298
4286
|
return s;
|
|
@@ -4303,15 +4291,15 @@ var Bo = (
|
|
|
4303
4291
|
"div",
|
|
4304
4292
|
{ className: "react-datepicker__year--container" },
|
|
4305
4293
|
e.renderHeader({ monthDate: e.state.date }),
|
|
4306
|
-
f.createElement(
|
|
4294
|
+
f.createElement(Ao, Y({}, a.defaultProps, e.props, { selectingDate: e.state.selectingDate, date: e.state.date, onDayClick: e.handleDayClick, clearSelectingDate: e.clearSelectingDate, onYearMouseEnter: e.handleYearMouseEnter, onYearMouseLeave: e.handleYearMouseLeave }))
|
|
4307
4295
|
);
|
|
4308
4296
|
}, e.renderTimeSection = function() {
|
|
4309
4297
|
if (e.props.showTimeSelect && (e.state.monthContainer || e.props.showTimeSelectOnly))
|
|
4310
|
-
return f.createElement(
|
|
4298
|
+
return f.createElement(Fo, Y({}, a.defaultProps, e.props, { onChange: e.props.onTimeChange, format: e.props.timeFormat, intervals: e.props.timeIntervals, monthRef: e.state.monthContainer }));
|
|
4311
4299
|
}, e.renderInputTimeSection = function() {
|
|
4312
4300
|
var r = e.props.selected ? new Date(e.props.selected) : void 0, n = r && mt(r) && !!e.props.selected, s = n ? "".concat(sr(r.getHours()), ":").concat(sr(r.getMinutes())) : "";
|
|
4313
4301
|
if (e.props.showTimeInput)
|
|
4314
|
-
return f.createElement(
|
|
4302
|
+
return f.createElement(xo, Y({}, a.defaultProps, e.props, { date: r, timeString: s, onChange: e.props.onTimeChange }));
|
|
4315
4303
|
}, e.renderAriaLiveRegion = function() {
|
|
4316
4304
|
var r, n = ye(e.state.date, (r = e.props.yearItemNumber) !== null && r !== void 0 ? r : a.defaultProps.yearItemNumber), s = n.startPeriod, i = n.endPeriod, l;
|
|
4317
4305
|
return e.props.showYearPicker ? l = "".concat(s, " - ").concat(i) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = C(e.state.date) : l = "".concat(Lt(ee(e.state.date), e.props.locale), " ").concat(C(e.state.date)), f.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
|
|
@@ -4358,29 +4346,33 @@ var Bo = (
|
|
|
4358
4346
|
date: this.props.openToDate
|
|
4359
4347
|
});
|
|
4360
4348
|
}, a.prototype.render = function() {
|
|
4361
|
-
var t = this.props.container ||
|
|
4349
|
+
var t = this.props.container || no;
|
|
4362
4350
|
return f.createElement(
|
|
4363
4351
|
ht,
|
|
4364
|
-
{ onClickOutside: this.handleClickOutside, style: { display: "contents" },
|
|
4352
|
+
{ onClickOutside: this.handleClickOutside, style: { display: "contents" }, ignoreClass: this.props.outsideClickIgnoreClass },
|
|
4365
4353
|
f.createElement(
|
|
4366
|
-
|
|
4367
|
-
{
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4354
|
+
"div",
|
|
4355
|
+
{ style: { display: "contents" }, ref: this.containerRef },
|
|
4356
|
+
f.createElement(
|
|
4357
|
+
t,
|
|
4358
|
+
{ className: Z("react-datepicker", this.props.className, {
|
|
4359
|
+
"react-datepicker--time-only": this.props.showTimeSelectOnly
|
|
4360
|
+
}), showTime: this.props.showTimeSelect || this.props.showTimeInput, showTimeSelectOnly: this.props.showTimeSelectOnly },
|
|
4361
|
+
this.renderAriaLiveRegion(),
|
|
4362
|
+
this.renderPreviousButton(),
|
|
4363
|
+
this.renderNextButton(),
|
|
4364
|
+
this.renderMonths(),
|
|
4365
|
+
this.renderYears(),
|
|
4366
|
+
this.renderTodayButton(),
|
|
4367
|
+
this.renderTimeSection(),
|
|
4368
|
+
this.renderInputTimeSection(),
|
|
4369
|
+
this.renderChildren()
|
|
4370
|
+
)
|
|
4379
4371
|
)
|
|
4380
4372
|
);
|
|
4381
4373
|
}, a;
|
|
4382
4374
|
}(X)
|
|
4383
|
-
),
|
|
4375
|
+
), Vo = function(o) {
|
|
4384
4376
|
var a = o.icon, t = o.className, e = t === void 0 ? "" : t, r = o.onClick, n = "react-datepicker__calendar-icon";
|
|
4385
4377
|
if (typeof a == "string")
|
|
4386
4378
|
return f.createElement("i", { className: "".concat(n, " ").concat(a, " ").concat(e), "aria-hidden": "true", onClick: r });
|
|
@@ -4398,7 +4390,7 @@ var Bo = (
|
|
|
4398
4390
|
{ className: "".concat(n, " ").concat(e), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", onClick: r },
|
|
4399
4391
|
f.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })
|
|
4400
4392
|
);
|
|
4401
|
-
},
|
|
4393
|
+
}, Wr = (
|
|
4402
4394
|
/** @class */
|
|
4403
4395
|
function(o) {
|
|
4404
4396
|
z(a, o);
|
|
@@ -4414,9 +4406,9 @@ var Bo = (
|
|
|
4414
4406
|
return hn.createPortal(this.props.children, this.el);
|
|
4415
4407
|
}, a;
|
|
4416
4408
|
}(X)
|
|
4417
|
-
),
|
|
4409
|
+
), qo = "[tabindex], a, button, input, select, textarea", jo = function(o) {
|
|
4418
4410
|
return (o instanceof HTMLAnchorElement || !o.disabled) && o.tabIndex !== -1;
|
|
4419
|
-
},
|
|
4411
|
+
}, Qr = (
|
|
4420
4412
|
/** @class */
|
|
4421
4413
|
function(o) {
|
|
4422
4414
|
z(a, o);
|
|
@@ -4424,7 +4416,7 @@ var Bo = (
|
|
|
4424
4416
|
var e = o.call(this, t) || this;
|
|
4425
4417
|
return e.getTabChildren = function() {
|
|
4426
4418
|
var r;
|
|
4427
|
-
return Array.prototype.slice.call((r = e.tabLoopRef.current) === null || r === void 0 ? void 0 : r.querySelectorAll(
|
|
4419
|
+
return Array.prototype.slice.call((r = e.tabLoopRef.current) === null || r === void 0 ? void 0 : r.querySelectorAll(qo), 1, -1).filter(jo);
|
|
4428
4420
|
}, e.handleFocusStart = function() {
|
|
4429
4421
|
var r = e.getTabChildren();
|
|
4430
4422
|
r && r.length > 1 && r[r.length - 1].focus();
|
|
@@ -4447,18 +4439,18 @@ var Bo = (
|
|
|
4447
4439
|
}, a;
|
|
4448
4440
|
}(X)
|
|
4449
4441
|
);
|
|
4450
|
-
function
|
|
4442
|
+
function $o(o) {
|
|
4451
4443
|
var a = function(t) {
|
|
4452
|
-
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, n = Mt(null), s =
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4444
|
+
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, n = Mt(null), s = ro(Y({ open: !r, whileElementsMounted: en, placement: t.popperPlacement, middleware: pe([
|
|
4445
|
+
Ha({ padding: 15 }),
|
|
4446
|
+
Aa(10),
|
|
4447
|
+
Wa({ element: n })
|
|
4456
4448
|
], (e = t.popperModifiers) !== null && e !== void 0 ? e : [], !0) }, t.popperProps)), i = Y(Y({}, t), { hidePopper: r, popperProps: Y(Y({}, s), { arrowRef: n }) });
|
|
4457
4449
|
return f.createElement(o, Y({}, i));
|
|
4458
4450
|
};
|
|
4459
4451
|
return a;
|
|
4460
4452
|
}
|
|
4461
|
-
var
|
|
4453
|
+
var Go = (
|
|
4462
4454
|
/** @class */
|
|
4463
4455
|
function(o) {
|
|
4464
4456
|
z(a, o);
|
|
@@ -4478,17 +4470,17 @@ var zo = (
|
|
|
4478
4470
|
if (!s) {
|
|
4479
4471
|
var v = Z("react-datepicker-popper", e);
|
|
4480
4472
|
D = f.createElement(
|
|
4481
|
-
|
|
4473
|
+
Qr,
|
|
4482
4474
|
{ enableTabLoop: u },
|
|
4483
4475
|
f.createElement(
|
|
4484
4476
|
"div",
|
|
4485
4477
|
{ ref: h.refs.setFloating, style: h.floatingStyles, className: v, "data-placement": h.placement, onKeyDown: c },
|
|
4486
4478
|
i,
|
|
4487
|
-
m && f.createElement(
|
|
4479
|
+
m && f.createElement(Ga, { ref: h.arrowRef, context: h.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
|
|
4488
4480
|
)
|
|
4489
4481
|
);
|
|
4490
4482
|
}
|
|
4491
|
-
this.props.popperContainer && (D = dn(this.props.popperContainer, {}, D)), d && !s && (D = f.createElement(
|
|
4483
|
+
this.props.popperContainer && (D = dn(this.props.popperContainer, {}, D)), d && !s && (D = f.createElement(Wr, { portalId: d, portalHost: p }, D));
|
|
4492
4484
|
var b = Z("react-datepicker-wrapper", r);
|
|
4493
4485
|
return f.createElement(
|
|
4494
4486
|
f.Fragment,
|
|
@@ -4498,11 +4490,11 @@ var zo = (
|
|
|
4498
4490
|
);
|
|
4499
4491
|
}, a;
|
|
4500
4492
|
}(X)
|
|
4501
|
-
),
|
|
4502
|
-
function
|
|
4493
|
+
), Xo = $o(Go), pr = "react-datepicker-ignore-onclickoutside";
|
|
4494
|
+
function zo(o, a) {
|
|
4503
4495
|
return o && a ? ee(o) !== ee(a) || C(o) !== C(a) : o !== a;
|
|
4504
4496
|
}
|
|
4505
|
-
var bt = "Date input not valid.",
|
|
4497
|
+
var bt = "Date input not valid.", Zo = (
|
|
4506
4498
|
/** @class */
|
|
4507
4499
|
function(o) {
|
|
4508
4500
|
z(a, o);
|
|
@@ -4517,7 +4509,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4517
4509
|
return mt(i) ? pe(pe([], n, !0), [Y(Y({}, s), { date: i })], !1) : n;
|
|
4518
4510
|
}, []);
|
|
4519
4511
|
}, e.calcInitialState = function() {
|
|
4520
|
-
var r, n = e.getPreSelection(), s =
|
|
4512
|
+
var r, n = e.getPreSelection(), s = Fr(e.props), i = Ar(e.props), l = s && Pe(n, et(s)) ? s : i && Ce(n, zt(i)) ? i : n;
|
|
4521
4513
|
return {
|
|
4522
4514
|
open: e.props.startOpen || !1,
|
|
4523
4515
|
preventFocus: !1,
|
|
@@ -4541,20 +4533,16 @@ var bt = "Date input not valid.", es = (
|
|
|
4541
4533
|
document.visibilityState === "hidden" && e.setHiddenStatus();
|
|
4542
4534
|
}, e.clearPreventFocusTimeout = function() {
|
|
4543
4535
|
e.preventFocusTimeout && clearTimeout(e.preventFocusTimeout);
|
|
4544
|
-
}, e.safeFocus = function() {
|
|
4545
|
-
setTimeout(function() {
|
|
4546
|
-
var r, n;
|
|
4547
|
-
(n = (r = e.input) === null || r === void 0 ? void 0 : r.focus) === null || n === void 0 || n.call(r, { preventScroll: !0 });
|
|
4548
|
-
}, 0);
|
|
4549
|
-
}, e.safeBlur = function() {
|
|
4550
|
-
setTimeout(function() {
|
|
4551
|
-
var r, n;
|
|
4552
|
-
(n = (r = e.input) === null || r === void 0 ? void 0 : r.blur) === null || n === void 0 || n.call(r);
|
|
4553
|
-
}, 0);
|
|
4554
4536
|
}, e.setFocus = function() {
|
|
4555
|
-
|
|
4537
|
+
var r, n;
|
|
4538
|
+
(n = (r = e.input) === null || r === void 0 ? void 0 : r.focus) === null || n === void 0 || n.call(r, { preventScroll: !0 });
|
|
4556
4539
|
}, e.setBlur = function() {
|
|
4557
|
-
|
|
4540
|
+
var r, n;
|
|
4541
|
+
(n = (r = e.input) === null || r === void 0 ? void 0 : r.blur) === null || n === void 0 || n.call(r), e.cancelFocusInput();
|
|
4542
|
+
}, e.deferBlur = function() {
|
|
4543
|
+
requestAnimationFrame(function() {
|
|
4544
|
+
console.log("reached"), e.setBlur();
|
|
4545
|
+
});
|
|
4558
4546
|
}, e.setOpen = function(r, n) {
|
|
4559
4547
|
n === void 0 && (n = !1), e.setState({
|
|
4560
4548
|
open: r,
|
|
@@ -4566,7 +4554,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4566
4554
|
focused: n ? s.focused : !1
|
|
4567
4555
|
};
|
|
4568
4556
|
}, function() {
|
|
4569
|
-
!n && e.
|
|
4557
|
+
!n && e.deferBlur(), e.setState({ inputValue: null });
|
|
4570
4558
|
});
|
|
4571
4559
|
});
|
|
4572
4560
|
}, e.inputOk = function() {
|
|
@@ -4603,7 +4591,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4603
4591
|
if (!(e.props.onChangeRaw && (e.props.onChangeRaw.apply(e, u), !d || typeof d.isDefaultPrevented != "function" || d.isDefaultPrevented()))) {
|
|
4604
4592
|
e.setState({
|
|
4605
4593
|
inputValue: (d == null ? void 0 : d.target) instanceof HTMLInputElement ? d.target.value : null,
|
|
4606
|
-
lastPreSelectChange:
|
|
4594
|
+
lastPreSelectChange: Jo
|
|
4607
4595
|
});
|
|
4608
4596
|
var p = e.props, h = p.selectsRange, m = p.startDate, D = p.endDate, v = (r = e.props.dateFormat) !== null && r !== void 0 ? r : a.defaultProps.dateFormat, b = (n = e.props.strictParsing) !== null && n !== void 0 ? n : a.defaultProps.strictParsing, E = (d == null ? void 0 : d.target) instanceof HTMLInputElement ? d.target.value : "";
|
|
4609
4597
|
if (h) {
|
|
@@ -4632,7 +4620,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4632
4620
|
if (c !== null && tt(C(c), e.props))
|
|
4633
4621
|
return;
|
|
4634
4622
|
} else if (e.props.showMonthYearPicker) {
|
|
4635
|
-
if (c !== null &&
|
|
4623
|
+
if (c !== null && Lr(c, e.props))
|
|
4636
4624
|
return;
|
|
4637
4625
|
} else if (c !== null && oe(c, e.props))
|
|
4638
4626
|
return;
|
|
@@ -4740,10 +4728,10 @@ var bt = "Date input not valid.", es = (
|
|
|
4740
4728
|
H = D ? at(T, 1) : fe(T, 1);
|
|
4741
4729
|
break;
|
|
4742
4730
|
case g.ArrowLeft:
|
|
4743
|
-
H = D ?
|
|
4731
|
+
H = D ? Vt(T) : nn(T, 1);
|
|
4744
4732
|
break;
|
|
4745
4733
|
case g.ArrowUp:
|
|
4746
|
-
H =
|
|
4734
|
+
H = Vt(T);
|
|
4747
4735
|
break;
|
|
4748
4736
|
case g.ArrowDown:
|
|
4749
4737
|
H = at(T, 1);
|
|
@@ -4758,7 +4746,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4758
4746
|
H = ke(T, b, E);
|
|
4759
4747
|
break;
|
|
4760
4748
|
case g.End:
|
|
4761
|
-
H =
|
|
4749
|
+
H = co(T);
|
|
4762
4750
|
break;
|
|
4763
4751
|
}
|
|
4764
4752
|
return H;
|
|
@@ -4797,8 +4785,8 @@ var bt = "Date input not valid.", es = (
|
|
|
4797
4785
|
return;
|
|
4798
4786
|
}
|
|
4799
4787
|
if (r.preventDefault(), e.setState({ lastPreSelectChange: _t }), x && e.setSelected(N), e.setPreSelection(N), P) {
|
|
4800
|
-
var Q = ee(S), W = ee(N),
|
|
4801
|
-
Q !== W ||
|
|
4788
|
+
var Q = ee(S), W = ee(N), V = C(S), te = C(N);
|
|
4789
|
+
Q !== W || V !== te ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
4802
4790
|
}
|
|
4803
4791
|
}
|
|
4804
4792
|
}, e.onPopperKeyDown = function(r) {
|
|
@@ -4814,9 +4802,9 @@ var bt = "Date input not valid.", es = (
|
|
|
4814
4802
|
typeof e.props.closeOnScroll == "boolean" && e.props.closeOnScroll ? (r.target === document || r.target === document.documentElement || r.target === document.body) && e.setOpen(!1) : typeof e.props.closeOnScroll == "function" && e.props.closeOnScroll(r) && e.setOpen(!1);
|
|
4815
4803
|
}, e.renderCalendar = function() {
|
|
4816
4804
|
var r, n;
|
|
4817
|
-
return !e.props.inline && !e.isCalendarOpen() ? null : f.createElement(
|
|
4805
|
+
return !e.props.inline && !e.isCalendarOpen() ? null : f.createElement(Uo, Y({ showMonthYearDropdown: void 0, ref: function(s) {
|
|
4818
4806
|
e.calendar = s;
|
|
4819
|
-
} }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (r = e.props.dateFormatCalendar) !== null && r !== void 0 ? r : a.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays:
|
|
4807
|
+
} }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (r = e.props.dateFormatCalendar) !== null && r !== void 0 ? r : a.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays: _o(e.modifyHolidays()), outsideClickIgnoreClass: pr, onDropdownFocus: e.handleDropdownFocus, onTimeChange: e.handleTimeChange, className: e.props.calendarClassName, container: e.props.calendarContainer, handleOnKeyDown: e.props.onKeyDown, handleOnDayKeyDown: e.onDayKeyDown, setPreSelection: e.setPreSelection, dropdownMode: (n = e.props.dropdownMode) !== null && n !== void 0 ? n : a.defaultProps.dropdownMode }), e.props.children);
|
|
4820
4808
|
}, e.renderAriaLiveRegion = function() {
|
|
4821
4809
|
var r = e.props, n = r.dateFormat, s = n === void 0 ? a.defaultProps.dateFormat : n, i = r.locale, l = e.props.showTimeInput || e.props.showTimeSelect, u = l ? "PPPPp" : "PPPP", c;
|
|
4822
4810
|
return e.props.selectsRange ? c = "Selected start date: ".concat(re(e.props.startDate, {
|
|
@@ -4833,10 +4821,10 @@ var bt = "Date input not valid.", es = (
|
|
|
4833
4821
|
locale: i
|
|
4834
4822
|
})), f.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, c);
|
|
4835
4823
|
}, e.renderDateInput = function() {
|
|
4836
|
-
var r, n, s, i = Z(e.props.className, (r = {}, r[pr] = e.state.open, r)), l = e.props.customInput || f.createElement("input", { type: "text" }), u = e.props.customInputRef || "ref", c = e.props, d = c.dateFormat, p = d === void 0 ? a.defaultProps.dateFormat : d, h = c.locale, m = typeof e.props.value == "string" ? e.props.value : typeof e.state.inputValue == "string" ? e.state.inputValue : e.props.selectsRange ?
|
|
4824
|
+
var r, n, s, i = Z(e.props.className, (r = {}, r[pr] = e.state.open, r)), l = e.props.customInput || f.createElement("input", { type: "text" }), u = e.props.customInputRef || "ref", c = e.props, d = c.dateFormat, p = d === void 0 ? a.defaultProps.dateFormat : d, h = c.locale, m = typeof e.props.value == "string" ? e.props.value : typeof e.state.inputValue == "string" ? e.state.inputValue : e.props.selectsRange ? oo(e.props.startDate, e.props.endDate, {
|
|
4837
4825
|
dateFormat: p,
|
|
4838
4826
|
locale: h
|
|
4839
|
-
}) : e.props.selectsMultiple ?
|
|
4827
|
+
}) : e.props.selectsMultiple ? so((s = e.props.selectedDates) !== null && s !== void 0 ? s : [], {
|
|
4840
4828
|
dateFormat: p,
|
|
4841
4829
|
locale: h
|
|
4842
4830
|
}) : re(e.props.selected, {
|
|
@@ -4906,7 +4894,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4906
4894
|
window.addEventListener("scroll", this.onScroll, !0), document.addEventListener("visibilitychange", this.setHiddenStateOnVisibilityHidden);
|
|
4907
4895
|
}, a.prototype.componentDidUpdate = function(t, e) {
|
|
4908
4896
|
var r, n, s, i;
|
|
4909
|
-
t.inline &&
|
|
4897
|
+
t.inline && zo(t.selected, this.props.selected) && this.setPreSelection(this.props.selected), this.state.monthSelectedIn !== void 0 && t.monthsShown !== this.props.monthsShown && this.setState({ monthSelectedIn: 0 }), t.highlightDates !== this.props.highlightDates && this.setState({
|
|
4910
4898
|
highlightDates: or(this.props.highlightDates)
|
|
4911
4899
|
}), !e.focused && !xe(t.selected, this.props.selected) && this.setState({ inputValue: null }), e.open !== this.state.open && (e.open === !1 && this.state.open === !0 && ((n = (r = this.props).onCalendarOpen) === null || n === void 0 || n.call(r)), e.open === !0 && this.state.open === !1 && ((i = (s = this.props).onCalendarClose) === null || i === void 0 || i.call(s)));
|
|
4912
4900
|
}, a.prototype.componentWillUnmount = function() {
|
|
@@ -4916,7 +4904,7 @@ var bt = "Date input not valid.", es = (
|
|
|
4916
4904
|
return n && console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."), f.createElement(
|
|
4917
4905
|
"div",
|
|
4918
4906
|
{ className: "react-datepicker__input-container".concat(e ? " react-datepicker__view-calendar-icon" : "") },
|
|
4919
|
-
e && f.createElement(
|
|
4907
|
+
e && f.createElement(Vo, Y({ icon: r, className: Z(s, !s && n, l && "react-datepicker-ignore-onclickoutside") }, i ? {
|
|
4920
4908
|
onClick: this.toggleCalendar
|
|
4921
4909
|
} : null)),
|
|
4922
4910
|
this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
|
|
@@ -4929,22 +4917,22 @@ var bt = "Date input not valid.", es = (
|
|
|
4929
4917
|
return t;
|
|
4930
4918
|
if (this.props.withPortal) {
|
|
4931
4919
|
var e = this.state.open ? f.createElement(
|
|
4932
|
-
|
|
4920
|
+
Qr,
|
|
4933
4921
|
{ enableTabLoop: this.props.enableTabLoop },
|
|
4934
4922
|
f.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, t)
|
|
4935
4923
|
) : null;
|
|
4936
|
-
return this.state.open && this.props.portalId && (e = f.createElement(
|
|
4924
|
+
return this.state.open && this.props.portalId && (e = f.createElement(Wr, Y({ portalId: this.props.portalId }, this.props), e)), f.createElement(
|
|
4937
4925
|
"div",
|
|
4938
4926
|
null,
|
|
4939
4927
|
this.renderInputContainer(),
|
|
4940
4928
|
e
|
|
4941
4929
|
);
|
|
4942
4930
|
}
|
|
4943
|
-
return f.createElement(
|
|
4931
|
+
return f.createElement(Xo, Y({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
|
|
4944
4932
|
}, a;
|
|
4945
4933
|
}(X)
|
|
4946
|
-
),
|
|
4947
|
-
const
|
|
4934
|
+
), Jo = "input", _t = "navigate";
|
|
4935
|
+
const es = pn(
|
|
4948
4936
|
({
|
|
4949
4937
|
onChange: o,
|
|
4950
4938
|
value: a,
|
|
@@ -4962,7 +4950,7 @@ const rs = pn(
|
|
|
4962
4950
|
preventOpenOnFocus: h,
|
|
4963
4951
|
...m
|
|
4964
4952
|
}, D) => {
|
|
4965
|
-
const v = n ??
|
|
4953
|
+
const v = n ?? ts(r);
|
|
4966
4954
|
return /* @__PURE__ */ ne.jsx(
|
|
4967
4955
|
an,
|
|
4968
4956
|
{
|
|
@@ -4973,7 +4961,7 @@ const rs = pn(
|
|
|
4973
4961
|
label: l,
|
|
4974
4962
|
children: /* @__PURE__ */ ne.jsxs("div", { className: "relative w-full", children: [
|
|
4975
4963
|
/* @__PURE__ */ ne.jsx(
|
|
4976
|
-
|
|
4964
|
+
Zo,
|
|
4977
4965
|
{
|
|
4978
4966
|
ref: D,
|
|
4979
4967
|
selected: a,
|
|
@@ -5009,10 +4997,10 @@ const rs = pn(
|
|
|
5009
4997
|
);
|
|
5010
4998
|
}
|
|
5011
4999
|
);
|
|
5012
|
-
|
|
5013
|
-
function
|
|
5000
|
+
es.displayName = "InputDateComponent";
|
|
5001
|
+
function ts(o) {
|
|
5014
5002
|
return `${new Date(2023, 11, 15).toLocaleDateString().replace("15", "dd").replace("12", "MM").replace("2023", "yyyy")}${o ? ", h:mm aa" : ""}`;
|
|
5015
5003
|
}
|
|
5016
5004
|
export {
|
|
5017
|
-
|
|
5005
|
+
es as InputDateComponent
|
|
5018
5006
|
};
|