@commercelayer/app-elements 6.11.0 → 6.11.2
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-_nlMhiR9.js +742 -0
- package/dist/{InputDateComponent-BwZ2boN8.js → InputDateComponent-CDPacZ1K.js} +60 -60
- package/dist/{RuleEngineComponent-CV2kt0w6.js → RuleEngineComponent-C4fmGQsJ.js} +35 -34
- package/dist/fetchCoreResourcesSuggestions-CAoQMAh8.js +153 -0
- package/dist/{main-CIxAHy9U.js → main-Q1klqbeV.js} +8632 -9503
- package/dist/main.js +97 -97
- package/dist/{parseISO-C3M0cm1w.js → parseISO-BSNCna2j.js} +1 -1
- package/dist/providers/TokenProvider/TokenProvider.d.ts +1 -2
- package/dist/providers/TokenProvider/reducer.d.ts +1 -2
- package/dist/providers/TokenProvider/validateToken.d.ts +1 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.global.css +1 -1
- package/dist/ui/composite/Address.d.ts +2 -2
- package/dist/ui/resources/ResourceAddress/ResourceAddress.mocks.d.ts +2 -0
- package/dist/ui/resources/ResourceAddress/ResourceAddressForm.d.ts +1 -0
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +17 -1
- package/dist/ui/resources/ResourceTags.d.ts +1 -1
- package/dist/ui/resources/useResourceList/adaptMetricsOrderToCore.d.ts +6 -0
- package/dist/vendor.css +1 -1
- package/package.json +2 -2
- package/dist/i18n.d-DjhkQkb1.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as z, t as M, m as dr, a as pr, b as me, d as ve, n as ht, e as Be, g as fr, f as Kr, h as Ur, s as ot, i as hr, k as Vr, l as vr, o as mr, p as qr, q as jr, r as Yt, v as $r, w as Gr, x as zr, y as Lt, z as Ae, A as Xr, j as ae, B as G, C as pe, D as be, E as bt, F as xt, G as Dr, H as Et, J as gr, K as Zr, L as Ft, M as Te, N as Jr, O as en, P as tn, Q as st, R as rn, S as nn, I as an, T as on, U as sn, V as ln, W as cn } from "./main-Q1klqbeV.js";
|
|
3
3
|
import * as k from "react";
|
|
4
|
-
import v, { useLayoutEffect as yr, cloneElement as wr, createRef as Me, Component as
|
|
4
|
+
import v, { useLayoutEffect as yr, cloneElement as wr, createRef as Me, Component as X, useRef as _t, useEffect as At, useCallback as un, createElement as dn, forwardRef as pn, useMemo as fn } from "react";
|
|
5
5
|
import * as hn from "react-dom";
|
|
6
6
|
import vn from "react-dom";
|
|
7
|
-
import { p as mn } from "./parseISO-
|
|
7
|
+
import { p as mn } from "./parseISO-BSNCna2j.js";
|
|
8
8
|
function br(o, n, t) {
|
|
9
|
-
return
|
|
9
|
+
return z(o, +M(o) + n);
|
|
10
10
|
}
|
|
11
11
|
function Dn(o, n, t) {
|
|
12
12
|
return br(o, n * dr);
|
|
@@ -30,18 +30,18 @@ function ge(o, n, t) {
|
|
|
30
30
|
function Ht(o, n) {
|
|
31
31
|
let t, e = n?.in;
|
|
32
32
|
return o.forEach((r) => {
|
|
33
|
-
!e && typeof r == "object" && (e =
|
|
33
|
+
!e && typeof r == "object" && (e = z.bind(null, r));
|
|
34
34
|
const a = M(r, e);
|
|
35
35
|
(!t || t < a || isNaN(+a)) && (t = a);
|
|
36
|
-
}),
|
|
36
|
+
}), z(e, t || NaN);
|
|
37
37
|
}
|
|
38
38
|
function Wt(o, n) {
|
|
39
39
|
let t, e = n?.in;
|
|
40
40
|
return o.forEach((r) => {
|
|
41
|
-
!e && typeof r == "object" && (e =
|
|
41
|
+
!e && typeof r == "object" && (e = z.bind(null, r));
|
|
42
42
|
const a = M(r, e);
|
|
43
43
|
(!t || t > a || isNaN(+a)) && (t = a);
|
|
44
|
-
}),
|
|
44
|
+
}), z(e, t || NaN);
|
|
45
45
|
}
|
|
46
46
|
function we(o, n) {
|
|
47
47
|
const t = M(o, n?.in);
|
|
@@ -102,7 +102,7 @@ function bn(o, n) {
|
|
|
102
102
|
return M(o, n?.in).getDay();
|
|
103
103
|
}
|
|
104
104
|
function _n(o, n) {
|
|
105
|
-
const t = M(o, n?.in), e = t.getFullYear(), r = t.getMonth(), a =
|
|
105
|
+
const t = M(o, n?.in), e = t.getFullYear(), r = t.getMonth(), a = z(t, 0);
|
|
106
106
|
return a.setFullYear(e, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
107
107
|
}
|
|
108
108
|
function se(o, n) {
|
|
@@ -134,7 +134,7 @@ function Mn(o, n) {
|
|
|
134
134
|
return +M(o) == +M(n);
|
|
135
135
|
}
|
|
136
136
|
function Cn(o, n) {
|
|
137
|
-
const t = Sn(n) ? new n(0) :
|
|
137
|
+
const t = Sn(n) ? new n(0) : z(n, 0);
|
|
138
138
|
return t.setFullYear(o.getFullYear(), o.getMonth(), o.getDate()), t.setHours(
|
|
139
139
|
o.getHours(),
|
|
140
140
|
o.getMinutes(),
|
|
@@ -167,10 +167,10 @@ class Pn extends Mr {
|
|
|
167
167
|
priority = xn;
|
|
168
168
|
subPriority = -1;
|
|
169
169
|
constructor(n, t) {
|
|
170
|
-
super(), this.context = n || ((e) =>
|
|
170
|
+
super(), this.context = n || ((e) => z(t, e));
|
|
171
171
|
}
|
|
172
172
|
set(n, t) {
|
|
173
|
-
return t.timestampIsSet ? n :
|
|
173
|
+
return t.timestampIsSet ? n : z(n, Cn(n, this.context));
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
class N {
|
|
@@ -444,7 +444,7 @@ class Rn extends N {
|
|
|
444
444
|
return ut(t === "R" ? 4 : t.length, n);
|
|
445
445
|
}
|
|
446
446
|
set(n, t, e) {
|
|
447
|
-
const r =
|
|
447
|
+
const r = z(n, 0);
|
|
448
448
|
return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), hr(r);
|
|
449
449
|
}
|
|
450
450
|
incompatibleTokens = [
|
|
@@ -1062,11 +1062,11 @@ class Gn extends N {
|
|
|
1062
1062
|
"T"
|
|
1063
1063
|
];
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function zn(o, n, t) {
|
|
1066
1066
|
const e = M(o, t?.in), r = kn(e, t), a = n - r;
|
|
1067
1067
|
return ve(e, a, t);
|
|
1068
1068
|
}
|
|
1069
|
-
class
|
|
1069
|
+
class Xn extends N {
|
|
1070
1070
|
priority = 90;
|
|
1071
1071
|
parse(n, t, e) {
|
|
1072
1072
|
const r = (a) => a === 0 ? 7 : a;
|
|
@@ -1137,7 +1137,7 @@ class zn extends N {
|
|
|
1137
1137
|
return t >= 1 && t <= 7;
|
|
1138
1138
|
}
|
|
1139
1139
|
set(n, t, e) {
|
|
1140
|
-
return n =
|
|
1140
|
+
return n = zn(n, e), n.setHours(0, 0, 0, 0), n;
|
|
1141
1141
|
}
|
|
1142
1142
|
incompatibleTokens = [
|
|
1143
1143
|
"y",
|
|
@@ -1427,7 +1427,7 @@ class la extends N {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
set(n, t, e) {
|
|
1430
|
-
return t.timestampIsSet ? n :
|
|
1430
|
+
return t.timestampIsSet ? n : z(
|
|
1431
1431
|
n,
|
|
1432
1432
|
n.getTime() - mr(n) - e
|
|
1433
1433
|
);
|
|
@@ -1460,7 +1460,7 @@ class ca extends N {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
set(n, t, e) {
|
|
1463
|
-
return t.timestampIsSet ? n :
|
|
1463
|
+
return t.timestampIsSet ? n : z(
|
|
1464
1464
|
n,
|
|
1465
1465
|
n.getTime() - mr(n) - e
|
|
1466
1466
|
);
|
|
@@ -1473,7 +1473,7 @@ class ua extends N {
|
|
|
1473
1473
|
return Cr(n);
|
|
1474
1474
|
}
|
|
1475
1475
|
set(n, t, e) {
|
|
1476
|
-
return [
|
|
1476
|
+
return [z(n, e * 1e3), { timestampIsSet: !0 }];
|
|
1477
1477
|
}
|
|
1478
1478
|
incompatibleTokens = "*";
|
|
1479
1479
|
}
|
|
@@ -1483,7 +1483,7 @@ class da extends N {
|
|
|
1483
1483
|
return Cr(n);
|
|
1484
1484
|
}
|
|
1485
1485
|
set(n, t, e) {
|
|
1486
|
-
return [
|
|
1486
|
+
return [z(n, e), { timestampIsSet: !0 }];
|
|
1487
1487
|
}
|
|
1488
1488
|
incompatibleTokens = "*";
|
|
1489
1489
|
}
|
|
@@ -1504,7 +1504,7 @@ const pa = {
|
|
|
1504
1504
|
E: new jn(),
|
|
1505
1505
|
e: new $n(),
|
|
1506
1506
|
c: new Gn(),
|
|
1507
|
-
i: new
|
|
1507
|
+
i: new Xn(),
|
|
1508
1508
|
a: new Zn(),
|
|
1509
1509
|
b: new Jn(),
|
|
1510
1510
|
B: new ea(),
|
|
@@ -1521,7 +1521,7 @@ const pa = {
|
|
|
1521
1521
|
T: new da()
|
|
1522
1522
|
}, fa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ha = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, va = /^'([^]*?)'?$/, ma = /''/g, Da = /\S/, ga = /[a-zA-Z]/;
|
|
1523
1523
|
function ya(o, n, t, e) {
|
|
1524
|
-
const r = () =>
|
|
1524
|
+
const r = () => z(e?.in || t, NaN), a = qr(), s = e?.locale ?? a.locale ?? jr, i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, l = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0;
|
|
1525
1525
|
if (!n)
|
|
1526
1526
|
return o ? r() : M(t, e?.in);
|
|
1527
1527
|
const u = {
|
|
@@ -1608,7 +1608,7 @@ function Ue(o, n, t) {
|
|
|
1608
1608
|
return e >= r && e <= a;
|
|
1609
1609
|
}
|
|
1610
1610
|
function re(o, n, t) {
|
|
1611
|
-
const e = M(o, t?.in), r = e.getFullYear(), a = e.getDate(), s =
|
|
1611
|
+
const e = M(o, t?.in), r = e.getFullYear(), a = e.getDate(), s = z(o, 0);
|
|
1612
1612
|
s.setFullYear(r, n, 15), s.setHours(0, 0, 0, 0);
|
|
1613
1613
|
const i = _n(s);
|
|
1614
1614
|
return e.setMonth(n, Math.min(a, i)), e;
|
|
@@ -1631,7 +1631,7 @@ function rt(o, n, t) {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
function le(o, n, t) {
|
|
1633
1633
|
const e = M(o, t?.in);
|
|
1634
|
-
return isNaN(+e) ?
|
|
1634
|
+
return isNaN(+e) ? z(o, NaN) : (e.setFullYear(n), e);
|
|
1635
1635
|
}
|
|
1636
1636
|
function Er(o, n, t) {
|
|
1637
1637
|
return Pt(o, -1, t);
|
|
@@ -1824,7 +1824,7 @@ function Ra(o) {
|
|
|
1824
1824
|
strategy: t,
|
|
1825
1825
|
middleware: p
|
|
1826
1826
|
};
|
|
1827
|
-
H.current && ($.platform = H.current),
|
|
1827
|
+
H.current && ($.platform = H.current), zr(L.current, Y.current, $).then((Se) => {
|
|
1828
1828
|
const Oe = {
|
|
1829
1829
|
...Se,
|
|
1830
1830
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -1988,7 +1988,7 @@ const Ua = /* @__PURE__ */ k.forwardRef(function(n, t) {
|
|
|
1988
1988
|
const D = Or(), [w, b] = k.useState(!1);
|
|
1989
1989
|
if (dt(() => {
|
|
1990
1990
|
if (!r) return;
|
|
1991
|
-
|
|
1991
|
+
Xr(r).direction === "rtl" && b(!0);
|
|
1992
1992
|
}, [r]), !r)
|
|
1993
1993
|
return null;
|
|
1994
1994
|
const [_, I] = e.split("-"), L = _ === "top" || _ === "bottom";
|
|
@@ -2059,7 +2059,7 @@ const qa = /* @__PURE__ */ k.createContext(null), ja = /* @__PURE__ */ k.createC
|
|
|
2059
2059
|
var o;
|
|
2060
2060
|
return ((o = k.useContext(qa)) == null ? void 0 : o.id) || null;
|
|
2061
2061
|
}, Ga = () => k.useContext(ja);
|
|
2062
|
-
function
|
|
2062
|
+
function za(o) {
|
|
2063
2063
|
const {
|
|
2064
2064
|
open: n = !1,
|
|
2065
2065
|
onOpenChange: t,
|
|
@@ -2093,11 +2093,11 @@ function Xa(o) {
|
|
|
2093
2093
|
refs: d
|
|
2094
2094
|
}), [n, c, p, s, r, d]);
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function Xa(o) {
|
|
2097
2097
|
o === void 0 && (o = {});
|
|
2098
2098
|
const {
|
|
2099
2099
|
nodeId: n
|
|
2100
|
-
} = o, t =
|
|
2100
|
+
} = o, t = za({
|
|
2101
2101
|
...o,
|
|
2102
2102
|
elements: {
|
|
2103
2103
|
reference: null,
|
|
@@ -2304,10 +2304,10 @@ function Qe(o) {
|
|
|
2304
2304
|
function Gt(o) {
|
|
2305
2305
|
return kt(o);
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function zt() {
|
|
2308
2308
|
return xt(O());
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function Xt(o) {
|
|
2311
2311
|
return Dr(o);
|
|
2312
2312
|
}
|
|
2313
2313
|
function ao(o) {
|
|
@@ -2416,7 +2416,7 @@ function uo(o, n) {
|
|
|
2416
2416
|
return J(i, o);
|
|
2417
2417
|
}) || !1;
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2419
|
+
function ze(o, n) {
|
|
2420
2420
|
var t = n === void 0 ? {} : n, e = t.minDate, r = t.maxDate, a = t.excludeDates, s = t.includeDates, i = t.filterDate, l = t.disabled;
|
|
2421
2421
|
return l ? !0 : je(o, { minDate: e, maxDate: r }) || a?.some(function(u) {
|
|
2422
2422
|
return ft(o, u instanceof Date ? u : u.date);
|
|
@@ -2424,7 +2424,7 @@ function Xe(o, n) {
|
|
|
2424
2424
|
return ft(o, u);
|
|
2425
2425
|
}) || i && !i(O(o)) || !1;
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2427
|
+
function Xe(o, n, t) {
|
|
2428
2428
|
if (!n || !t || !bt(n) || !bt(t))
|
|
2429
2429
|
return !1;
|
|
2430
2430
|
var e = E(n), r = E(t);
|
|
@@ -2676,7 +2676,7 @@ var wo = (
|
|
|
2676
2676
|
)
|
|
2677
2677
|
);
|
|
2678
2678
|
}, n;
|
|
2679
|
-
})(
|
|
2679
|
+
})(X)
|
|
2680
2680
|
), bo = (
|
|
2681
2681
|
/** @class */
|
|
2682
2682
|
(function(o) {
|
|
@@ -2848,7 +2848,7 @@ var wo = (
|
|
|
2848
2848
|
this.props.monthShowsDuplicateDaysEnd && this.isAfterMonth() || this.props.monthShowsDuplicateDaysStart && this.isBeforeMonth()
|
|
2849
2849
|
);
|
|
2850
2850
|
}, n;
|
|
2851
|
-
})(
|
|
2851
|
+
})(X)
|
|
2852
2852
|
), _o = (
|
|
2853
2853
|
/** @class */
|
|
2854
2854
|
(function(o) {
|
|
@@ -2889,7 +2889,7 @@ var wo = (
|
|
|
2889
2889
|
};
|
|
2890
2890
|
return v.createElement("div", { ref: this.weekNumberEl, className: G(l), "aria-label": "".concat(s, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex(), role: "gridcell" }, e);
|
|
2891
2891
|
}, n;
|
|
2892
|
-
})(
|
|
2892
|
+
})(X)
|
|
2893
2893
|
), ko = (
|
|
2894
2894
|
/** @class */
|
|
2895
2895
|
(function(o) {
|
|
@@ -2962,7 +2962,7 @@ var wo = (
|
|
|
2962
2962
|
}, e = this.props.weekClassName ? this.props.weekClassName(this.startOfWeek()) : void 0;
|
|
2963
2963
|
return v.createElement("div", { className: G(t, e), role: "row" }, this.renderDays());
|
|
2964
2964
|
}, n;
|
|
2965
|
-
})(
|
|
2965
|
+
})(X)
|
|
2966
2966
|
), Fe, Mo = 6, Ie = {
|
|
2967
2967
|
TWO_COLUMNS: "two_columns",
|
|
2968
2968
|
THREE_COLUMNS: "three_columns",
|
|
@@ -3183,10 +3183,10 @@ var Co = (
|
|
|
3183
3183
|
l !== y.Tab && e.preventDefault(), s || t.handleKeyboardNavigation(e, l, r), i && i(e);
|
|
3184
3184
|
}, t.onQuarterClick = function(e, r) {
|
|
3185
3185
|
var a = Re(t.props.day, r);
|
|
3186
|
-
|
|
3186
|
+
ze(a, t.props) || t.handleDayClick(Gt(a), e);
|
|
3187
3187
|
}, t.onQuarterMouseEnter = function(e) {
|
|
3188
3188
|
var r = Re(t.props.day, e);
|
|
3189
|
-
|
|
3189
|
+
ze(r, t.props) || t.handleDayMouseEnter(Gt(r));
|
|
3190
3190
|
}, t.handleQuarterNavigation = function(e, r) {
|
|
3191
3191
|
var a, s, i, l;
|
|
3192
3192
|
t.isDisabled(r) || t.isExcluded(r) || ((s = (a = t.props).setPreSelection) === null || s === void 0 || s.call(a, r), (l = (i = t.QUARTER_REFS[e - 1]) === null || i === void 0 ? void 0 : i.current) === null || l === void 0 || l.focus());
|
|
@@ -3242,13 +3242,13 @@ var Co = (
|
|
|
3242
3242
|
}, t.getQuarterTabIndex = function(e) {
|
|
3243
3243
|
if (t.props.preSelection == null)
|
|
3244
3244
|
return "-1";
|
|
3245
|
-
var r = we(t.props.preSelection), a =
|
|
3245
|
+
var r = we(t.props.preSelection), a = ze(t.props.day, t.props), s = e === r && !(a || t.props.disabledKeyboardNavigation) ? "0" : "-1";
|
|
3246
3246
|
return s;
|
|
3247
3247
|
}, t.getAriaLabel = function(e) {
|
|
3248
3248
|
var r = t.props, a = r.chooseDayAriaLabelPrefix, s = a === void 0 ? "Choose" : a, i = r.disabledDayAriaLabelPrefix, l = i === void 0 ? "Not available" : i, u = r.day, c = r.locale, d = re(u, e), p = t.isDisabled(d) || t.isExcluded(d) ? l : s;
|
|
3249
3249
|
return "".concat(p, " ").concat(A(d, "MMMM yyyy", c));
|
|
3250
3250
|
}, t.getQuarterClassNames = function(e) {
|
|
3251
|
-
var r = t.props, a = r.day, s = r.startDate, i = r.endDate, l = r.minDate, u = r.maxDate, c = r.excludeDates, d = r.includeDates, p = r.filterDate, f = r.preSelection, m = r.disabledKeyboardNavigation, g = r.disabled, h = (l || u || c || d || p || g) &&
|
|
3251
|
+
var r = t.props, a = r.day, s = r.startDate, i = r.endDate, l = r.minDate, u = r.maxDate, c = r.excludeDates, d = r.includeDates, p = r.filterDate, f = r.preSelection, m = r.disabledKeyboardNavigation, g = r.disabled, h = (l || u || c || d || p || g) && ze(Re(a, e), t.props), D = t.getSelection();
|
|
3252
3252
|
return G("react-datepicker__quarter-text", "react-datepicker__quarter-".concat(e), {
|
|
3253
3253
|
"react-datepicker__quarter-text--disabled": h,
|
|
3254
3254
|
"react-datepicker__quarter-text--selected": D ? t.isSelectQuarterInList(a, e, D) : void 0,
|
|
@@ -3315,7 +3315,7 @@ var Co = (
|
|
|
3315
3315
|
v.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": u, role: "rowgroup" }, this.renderWeeks())
|
|
3316
3316
|
);
|
|
3317
3317
|
}, n;
|
|
3318
|
-
})(
|
|
3318
|
+
})(X)
|
|
3319
3319
|
), So = (
|
|
3320
3320
|
/** @class */
|
|
3321
3321
|
(function(o) {
|
|
@@ -3361,7 +3361,7 @@ var Co = (
|
|
|
3361
3361
|
return n.prototype.render = function() {
|
|
3362
3362
|
return v.createElement(vt, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3363
3363
|
}, n;
|
|
3364
|
-
})(
|
|
3364
|
+
})(X)
|
|
3365
3365
|
), xo = (
|
|
3366
3366
|
/** @class */
|
|
3367
3367
|
(function(o) {
|
|
@@ -3414,7 +3414,7 @@ var Co = (
|
|
|
3414
3414
|
}
|
|
3415
3415
|
return v.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, r);
|
|
3416
3416
|
}, n;
|
|
3417
|
-
})(
|
|
3417
|
+
})(X)
|
|
3418
3418
|
);
|
|
3419
3419
|
function Eo(o, n) {
|
|
3420
3420
|
for (var t = [], e = ye(o), r = ye(n); !Ce(e, r); )
|
|
@@ -3452,7 +3452,7 @@ var Po = (
|
|
|
3452
3452
|
});
|
|
3453
3453
|
return v.createElement(vt, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3454
3454
|
}, n;
|
|
3455
|
-
})(
|
|
3455
|
+
})(X)
|
|
3456
3456
|
), To = (
|
|
3457
3457
|
/** @class */
|
|
3458
3458
|
(function(o) {
|
|
@@ -3506,7 +3506,7 @@ var Po = (
|
|
|
3506
3506
|
}
|
|
3507
3507
|
return v.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
3508
3508
|
}, n;
|
|
3509
|
-
})(
|
|
3509
|
+
})(X)
|
|
3510
3510
|
), Oo = (
|
|
3511
3511
|
/** @class */
|
|
3512
3512
|
(function(o) {
|
|
@@ -3612,7 +3612,7 @@ var Po = (
|
|
|
3612
3612
|
}, n.calcCenterPosition = function(t, e) {
|
|
3613
3613
|
return e.offsetTop - (t / 2 - e.clientHeight / 2);
|
|
3614
3614
|
}, n;
|
|
3615
|
-
})(
|
|
3615
|
+
})(X)
|
|
3616
3616
|
), ur = 3, No = (
|
|
3617
3617
|
/** @class */
|
|
3618
3618
|
(function(o) {
|
|
@@ -3659,10 +3659,10 @@ var Po = (
|
|
|
3659
3659
|
}, e.isRangeEnd = function(r) {
|
|
3660
3660
|
return e.props.startDate && e.props.endDate && ce(le(O(), r), e.props.endDate);
|
|
3661
3661
|
}, e.isInRange = function(r) {
|
|
3662
|
-
return
|
|
3662
|
+
return Xe(r, e.props.startDate, e.props.endDate);
|
|
3663
3663
|
}, e.isInSelectingRange = function(r) {
|
|
3664
3664
|
var a = e.props, s = a.selectsStart, i = a.selectsEnd, l = a.selectsRange, u = a.startDate, c = a.endDate;
|
|
3665
|
-
return !(s || i || l) || !e.selectingDate() ? !1 : s && c ?
|
|
3665
|
+
return !(s || i || l) || !e.selectingDate() ? !1 : s && c ? Xe(r, e.selectingDate(), c) : i && u || l && u && !c ? Xe(r, u, e.selectingDate()) : !1;
|
|
3666
3666
|
}, e.isSelectingRangeStart = function(r) {
|
|
3667
3667
|
var a;
|
|
3668
3668
|
if (!e.isInSelectingRange(r))
|
|
@@ -3780,7 +3780,7 @@ var Po = (
|
|
|
3780
3780
|
v.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: this.props.usePointerEvent ? void 0 : this.props.clearSelectingDate, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, e)
|
|
3781
3781
|
);
|
|
3782
3782
|
}, n;
|
|
3783
|
-
})(
|
|
3783
|
+
})(X)
|
|
3784
3784
|
);
|
|
3785
3785
|
function Ro(o, n, t, e) {
|
|
3786
3786
|
for (var r = [], a = 0; a < 2 * n + 1; a++) {
|
|
@@ -3873,7 +3873,7 @@ var Io = (
|
|
|
3873
3873
|
});
|
|
3874
3874
|
return v.createElement(vt, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
3875
3875
|
}, n;
|
|
3876
|
-
})(
|
|
3876
|
+
})(X)
|
|
3877
3877
|
), Yo = (
|
|
3878
3878
|
/** @class */
|
|
3879
3879
|
(function(o) {
|
|
@@ -3933,7 +3933,7 @@ var Io = (
|
|
|
3933
3933
|
}
|
|
3934
3934
|
return v.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
3935
3935
|
}, n;
|
|
3936
|
-
})(
|
|
3936
|
+
})(X)
|
|
3937
3937
|
), Lo = [
|
|
3938
3938
|
"react-datepicker__year-select",
|
|
3939
3939
|
"react-datepicker__month-select",
|
|
@@ -4168,7 +4168,7 @@ var Io = (
|
|
|
4168
4168
|
if (r === void 0 && (r = !1), !(!e.props.showMonthYearDropdown || r))
|
|
4169
4169
|
return v.createElement(To, x({}, n.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
|
|
4170
4170
|
}, e.handleTodayButtonClick = function(r) {
|
|
4171
|
-
e.props.onSelect(
|
|
4171
|
+
e.props.onSelect(zt(), r), e.props.setPreSelection && e.props.setPreSelection(zt());
|
|
4172
4172
|
}, e.renderTodayButton = function() {
|
|
4173
4173
|
if (!(!e.props.todayButton || e.props.showTimeSelectOnly))
|
|
4174
4174
|
return v.createElement("div", { className: "react-datepicker__today-button", onClick: e.handleTodayButtonClick }, e.props.todayButton);
|
|
@@ -4321,7 +4321,7 @@ var Io = (
|
|
|
4321
4321
|
)
|
|
4322
4322
|
);
|
|
4323
4323
|
}, n;
|
|
4324
|
-
})(
|
|
4324
|
+
})(X)
|
|
4325
4325
|
), Ho = function(o) {
|
|
4326
4326
|
var n = o.icon, t = o.className, e = t === void 0 ? "" : t, r = o.onClick, a = "react-datepicker__calendar-icon";
|
|
4327
4327
|
if (typeof n == "string")
|
|
@@ -4355,7 +4355,7 @@ var Io = (
|
|
|
4355
4355
|
}, n.prototype.render = function() {
|
|
4356
4356
|
return vn.createPortal(this.props.children, this.el);
|
|
4357
4357
|
}, n;
|
|
4358
|
-
})(
|
|
4358
|
+
})(X)
|
|
4359
4359
|
), Wo = "[tabindex], a, button, input, select, textarea", Qo = function(o) {
|
|
4360
4360
|
return (o instanceof HTMLAnchorElement || !o.disabled) && o.tabIndex !== -1;
|
|
4361
4361
|
}, Br = (
|
|
@@ -4387,11 +4387,11 @@ var Io = (
|
|
|
4387
4387
|
}, n.defaultProps = {
|
|
4388
4388
|
enableTabLoop: !0
|
|
4389
4389
|
}, n;
|
|
4390
|
-
})(
|
|
4390
|
+
})(X)
|
|
4391
4391
|
);
|
|
4392
4392
|
function Bo(o) {
|
|
4393
4393
|
function n(t) {
|
|
4394
|
-
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = _t(null), s =
|
|
4394
|
+
var e, r = typeof t.hidePopper == "boolean" ? t.hidePopper : !0, a = _t(null), s = Xa(x({ open: !r, whileElementsMounted: rn, placement: t.popperPlacement, middleware: he([
|
|
4395
4395
|
La({ padding: 15 }),
|
|
4396
4396
|
Ya(10),
|
|
4397
4397
|
// eslint-disable-next-line react-hooks/refs -- Floating UI requires refs to be passed during render
|
|
@@ -4443,7 +4443,7 @@ var yt = "Date input not valid.", qo = (
|
|
|
4443
4443
|
return ne(i) ? he(he([], a, !0), [x(x({}, s), { date: i })], !1) : a;
|
|
4444
4444
|
}, []);
|
|
4445
4445
|
}, e.calcInitialState = function() {
|
|
4446
|
-
var r, a = e.getPreSelection(), s = Lr(e.props), i = Fr(e.props), l = s && pe(a, We(s)) ? s : i && Ce(a,
|
|
4446
|
+
var r, a = e.getPreSelection(), s = Lr(e.props), i = Fr(e.props), l = s && pe(a, We(s)) ? s : i && Ce(a, Xt(i)) ? i : a;
|
|
4447
4447
|
return {
|
|
4448
4448
|
open: e.props.startOpen || !1,
|
|
4449
4449
|
preventFocus: !1,
|
|
@@ -4623,7 +4623,7 @@ var yt = "Date input not valid.", qo = (
|
|
|
4623
4623
|
var u = We(e.props.minDate);
|
|
4624
4624
|
i = Ce(r, u) || Pe(l, u);
|
|
4625
4625
|
} else if (s) {
|
|
4626
|
-
var c =
|
|
4626
|
+
var c = Xt(e.props.maxDate);
|
|
4627
4627
|
i = pe(r, c) || Pe(l, c);
|
|
4628
4628
|
}
|
|
4629
4629
|
}
|
|
@@ -4947,7 +4947,7 @@ var yt = "Date input not valid.", qo = (
|
|
|
4947
4947
|
}
|
|
4948
4948
|
return v.createElement(Uo, x({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
|
|
4949
4949
|
}, n;
|
|
4950
|
-
})(
|
|
4950
|
+
})(X)
|
|
4951
4951
|
), jo = "input", wt = "navigate";
|
|
4952
4952
|
const $o = pn(
|
|
4953
4953
|
({
|