test-stpr-ui-kit 0.5.96 → 0.5.97
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/test-stpr-ui-kit.css +1 -1
- package/dist/test-stpr-ui-kit.js +288 -288
- package/dist/test-stpr-ui-kit.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as pe, jsx as M, Fragment as En } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import P, { useState as Ce, useEffect as Ee, useRef as Ae, useCallback as Ge, useLayoutEffect as Cr, cloneElement as Ci, createRef as Bt, Component as je, createElement as Ys, forwardRef as Di, createContext as Si, useContext as js, useMemo as rn, useReducer as Hs, useImperativeHandle as zs, Fragment as
|
|
4
|
-
import * as
|
|
3
|
+
import P, { useState as Ce, useEffect as Ee, useRef as Ae, useCallback as Ge, useLayoutEffect as Cr, cloneElement as Ci, createRef as Bt, Component as je, createElement as Ys, forwardRef as Di, createContext as Si, useContext as js, useMemo as rn, useReducer as Hs, useImperativeHandle as zs, Fragment as Vs } from "react";
|
|
4
|
+
import * as qs from "react-dom";
|
|
5
5
|
import Dr from "react-dom";
|
|
6
6
|
import './test-stpr-ui-kit.css';function Mi(n) {
|
|
7
7
|
var r, t, e = "";
|
|
@@ -149,7 +149,7 @@ const Ne = (n) => {
|
|
|
149
149
|
style: { color: t }
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
}, Al = "_spButton_19wwb_43", Wl = "_spButton_noPadding_19wwb_62", Bl = "_spButton_onlyIcon_19wwb_65", Yl = "_spButton_link_19wwb_73", jl = "_spButton__text_19wwb_77", Hl = "_spButton_white_19wwb_89", zl = "_spButton_primary_19wwb_92",
|
|
152
|
+
}, Al = "_spButton_19wwb_43", Wl = "_spButton_noPadding_19wwb_62", Bl = "_spButton_onlyIcon_19wwb_65", Yl = "_spButton_link_19wwb_73", jl = "_spButton__text_19wwb_77", Hl = "_spButton_white_19wwb_89", zl = "_spButton_primary_19wwb_92", Vl = "_spButton_blue_19wwb_92", ql = "_spButton_secondary_19wwb_112", Ul = "_spButton_fullWidth_19wwb_132", $l = "_spButton_disabled_19wwb_135", Ql = "_spButton__spinner_19wwb_144", Gl = "_spButton__iconContainer_19wwb_158", ct = {
|
|
153
153
|
spButton: Al,
|
|
154
154
|
spButton_noPadding: Wl,
|
|
155
155
|
spButton_onlyIcon: Bl,
|
|
@@ -157,8 +157,8 @@ const Ne = (n) => {
|
|
|
157
157
|
spButton__text: jl,
|
|
158
158
|
spButton_white: Hl,
|
|
159
159
|
spButton_primary: zl,
|
|
160
|
-
spButton_blue:
|
|
161
|
-
spButton_secondary:
|
|
160
|
+
spButton_blue: Vl,
|
|
161
|
+
spButton_secondary: ql,
|
|
162
162
|
spButton_fullWidth: Ul,
|
|
163
163
|
spButton_disabled: $l,
|
|
164
164
|
spButton__spinner: Ql,
|
|
@@ -190,10 +190,10 @@ const Ne = (n) => {
|
|
|
190
190
|
const Y = T({
|
|
191
191
|
[ct.spButton__text]: !0,
|
|
192
192
|
...E && { [E]: !0 }
|
|
193
|
-
}),
|
|
193
|
+
}), q = T({
|
|
194
194
|
[ct.spButton__iconContainer]: !0,
|
|
195
195
|
...D && { [D]: !0 }
|
|
196
|
-
}), H = () => v ? /* @__PURE__ */ M("div", { className:
|
|
196
|
+
}), H = () => v ? /* @__PURE__ */ M("div", { className: q, children: /* @__PURE__ */ M(La, { size: "md", classNameRoot: ct.spButton__spinner }) }) : o ? /* @__PURE__ */ M("div", { className: q, children: /* @__PURE__ */ M(Ne, { name: o, rotate: s }) }) : i ? /* @__PURE__ */ M("div", { className: q, children: i }) : null;
|
|
197
197
|
return /* @__PURE__ */ pe(En, { children: [
|
|
198
198
|
u === "start" && H(),
|
|
199
199
|
!b && f && /* @__PURE__ */ M("div", { className: Y, children: f }),
|
|
@@ -443,7 +443,7 @@ const oc = "_modalWrapper_6v2ua_43", ic = "_modalWrapper__modal_6v2ua_76", sc =
|
|
|
443
443
|
...s && { [s]: !0 }
|
|
444
444
|
}), Y = T({
|
|
445
445
|
[et.modalWrapper__subHeader]: !0
|
|
446
|
-
}),
|
|
446
|
+
}), q = T({
|
|
447
447
|
[et.modalWrapper__footer]: !0,
|
|
448
448
|
...l && { [l]: !0 }
|
|
449
449
|
});
|
|
@@ -453,7 +453,7 @@ const oc = "_modalWrapper_6v2ua_43", ic = "_modalWrapper__modal_6v2ua_76", sc =
|
|
|
453
453
|
x && /* @__PURE__ */ M("div", { className: Y, children: typeof x == "string" ? /* @__PURE__ */ M(st, { children: x }) : x })
|
|
454
454
|
] }),
|
|
455
455
|
a && /* @__PURE__ */ M("div", { className: k, children: a }),
|
|
456
|
-
b && /* @__PURE__ */ M("div", { className:
|
|
456
|
+
b && /* @__PURE__ */ M("div", { className: q, children: b }),
|
|
457
457
|
e && f && /* @__PURE__ */ M(
|
|
458
458
|
sr,
|
|
459
459
|
{
|
|
@@ -492,7 +492,7 @@ const oc = "_modalWrapper_6v2ua_43", ic = "_modalWrapper__modal_6v2ua_76", sc =
|
|
|
492
492
|
size: k,
|
|
493
493
|
classNameRoot: F,
|
|
494
494
|
classNameLayerRoot: Y,
|
|
495
|
-
submitBtnVariant:
|
|
495
|
+
submitBtnVariant: q,
|
|
496
496
|
cancelBtnVariant: H,
|
|
497
497
|
submitBtnClassName: J,
|
|
498
498
|
cancelBtnClassName: re,
|
|
@@ -528,7 +528,7 @@ const oc = "_modalWrapper_6v2ua_43", ic = "_modalWrapper__modal_6v2ua_76", sc =
|
|
|
528
528
|
cancelBtnDisabled: i,
|
|
529
529
|
submitBtnContent: l,
|
|
530
530
|
submitBtnIconName: p,
|
|
531
|
-
submitBtnVariant:
|
|
531
|
+
submitBtnVariant: q,
|
|
532
532
|
cancelBtnVariant: H,
|
|
533
533
|
formId: f,
|
|
534
534
|
disabled: d,
|
|
@@ -671,7 +671,7 @@ const Sr = (n) => {
|
|
|
671
671
|
visibility: "hidden",
|
|
672
672
|
opacity: 0,
|
|
673
673
|
left: "-9999px"
|
|
674
|
-
}), [
|
|
674
|
+
}), [q, H] = Ce(!1), J = Ge(() => {
|
|
675
675
|
if (!y.current || !E.current) return;
|
|
676
676
|
const W = y.current.getBoundingClientRect(), j = E.current.getBoundingClientRect();
|
|
677
677
|
let $ = 0, K = 0;
|
|
@@ -719,10 +719,10 @@ const Sr = (n) => {
|
|
|
719
719
|
...h,
|
|
720
720
|
top: `${$}px`,
|
|
721
721
|
left: `${K}px`,
|
|
722
|
-
visibility: b ||
|
|
723
|
-
opacity: b ||
|
|
722
|
+
visibility: b || q ? "visible" : "hidden",
|
|
723
|
+
opacity: b || q ? 1 : 0
|
|
724
724
|
}));
|
|
725
|
-
}, [p, b,
|
|
725
|
+
}, [p, b, q]);
|
|
726
726
|
Ee(() => (C(!0), () => C(!1)), []), Ee(() => {
|
|
727
727
|
D && J();
|
|
728
728
|
}, [D, J]), Ee(() => {
|
|
@@ -1086,9 +1086,9 @@ const Hc = {
|
|
|
1086
1086
|
long: "H:mm:ss z",
|
|
1087
1087
|
medium: "H:mm:ss",
|
|
1088
1088
|
short: "H:mm"
|
|
1089
|
-
}, qc = {
|
|
1090
|
-
any: "{{date}}, {{time}}"
|
|
1091
1089
|
}, Vc = {
|
|
1090
|
+
any: "{{date}}, {{time}}"
|
|
1091
|
+
}, qc = {
|
|
1092
1092
|
date: ln({
|
|
1093
1093
|
formats: Hc,
|
|
1094
1094
|
defaultWidth: "full"
|
|
@@ -1098,7 +1098,7 @@ const Hc = {
|
|
|
1098
1098
|
defaultWidth: "full"
|
|
1099
1099
|
}),
|
|
1100
1100
|
dateTime: ln({
|
|
1101
|
-
formats:
|
|
1101
|
+
formats: Vc,
|
|
1102
1102
|
defaultWidth: "any"
|
|
1103
1103
|
})
|
|
1104
1104
|
}, Oi = 6048e5, Uc = 864e5, Tr = 6e4, Er = 36e5, $c = 1e3, to = Symbol.for("constructDateFrom");
|
|
@@ -1529,7 +1529,7 @@ const pp = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, up
|
|
|
1529
1529
|
}, kp = {
|
|
1530
1530
|
code: "ru",
|
|
1531
1531
|
formatDistance: jc,
|
|
1532
|
-
formatLong:
|
|
1532
|
+
formatLong: qc,
|
|
1533
1533
|
formatRelative: Zc,
|
|
1534
1534
|
localize: sp,
|
|
1535
1535
|
match: yp,
|
|
@@ -1935,7 +1935,7 @@ const Np = {
|
|
|
1935
1935
|
evening: "in the evening",
|
|
1936
1936
|
night: "at night"
|
|
1937
1937
|
}
|
|
1938
|
-
},
|
|
1938
|
+
}, Vp = (n, r) => {
|
|
1939
1939
|
const t = Number(n), e = t % 100;
|
|
1940
1940
|
if (e > 20 || e < 10)
|
|
1941
1941
|
switch (e % 10) {
|
|
@@ -1947,8 +1947,8 @@ const Np = {
|
|
|
1947
1947
|
return t + "rd";
|
|
1948
1948
|
}
|
|
1949
1949
|
return t + "th";
|
|
1950
|
-
},
|
|
1951
|
-
ordinalNumber:
|
|
1950
|
+
}, qp = {
|
|
1951
|
+
ordinalNumber: Vp,
|
|
1952
1952
|
era: _t({
|
|
1953
1953
|
values: Wp,
|
|
1954
1954
|
defaultWidth: "wide"
|
|
@@ -2081,7 +2081,7 @@ const Np = {
|
|
|
2081
2081
|
formatDistance: Pp,
|
|
2082
2082
|
formatLong: Lp,
|
|
2083
2083
|
formatRelative: Ap,
|
|
2084
|
-
localize:
|
|
2084
|
+
localize: qp,
|
|
2085
2085
|
match: au,
|
|
2086
2086
|
options: {
|
|
2087
2087
|
weekStartsOn: 0,
|
|
@@ -2755,7 +2755,7 @@ const po = (n, r) => {
|
|
|
2755
2755
|
default:
|
|
2756
2756
|
return r.date({ width: "full" });
|
|
2757
2757
|
}
|
|
2758
|
-
},
|
|
2758
|
+
}, Vi = (n, r) => {
|
|
2759
2759
|
switch (n) {
|
|
2760
2760
|
case "p":
|
|
2761
2761
|
return r.time({ width: "short" });
|
|
@@ -2787,9 +2787,9 @@ const po = (n, r) => {
|
|
|
2787
2787
|
o = r.dateTime({ width: "full" });
|
|
2788
2788
|
break;
|
|
2789
2789
|
}
|
|
2790
|
-
return o.replace("{{date}}", po(e, r)).replace("{{time}}",
|
|
2790
|
+
return o.replace("{{date}}", po(e, r)).replace("{{time}}", Vi(a, r));
|
|
2791
2791
|
}, ka = {
|
|
2792
|
-
p:
|
|
2792
|
+
p: Vi,
|
|
2793
2793
|
P: su
|
|
2794
2794
|
}, lu = /^D+$/, cu = /^Y+$/, pu = ["D", "DD", "YY", "YYYY"];
|
|
2795
2795
|
function uu(n) {
|
|
@@ -2873,7 +2873,7 @@ function Cu(n, r) {
|
|
|
2873
2873
|
function Rt(n, r) {
|
|
2874
2874
|
return oe(n, r?.in).getMinutes();
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function Ve(n, r) {
|
|
2877
2877
|
return oe(n, r?.in).getMonth();
|
|
2878
2878
|
}
|
|
2879
2879
|
function At(n) {
|
|
@@ -2907,13 +2907,13 @@ function Mu(n) {
|
|
|
2907
2907
|
return typeof n == "function" && n.prototype?.constructor === n;
|
|
2908
2908
|
}
|
|
2909
2909
|
const Tu = 10;
|
|
2910
|
-
class
|
|
2910
|
+
class qi {
|
|
2911
2911
|
subPriority = 0;
|
|
2912
2912
|
validate(r, t) {
|
|
2913
2913
|
return !0;
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
|
-
class Eu extends
|
|
2916
|
+
class Eu extends qi {
|
|
2917
2917
|
constructor(r, t, e, a, o) {
|
|
2918
2918
|
super(), this.value = r, this.validateValue = t, this.setValue = e, this.priority = a, o && (this.subPriority = o);
|
|
2919
2919
|
}
|
|
@@ -2924,7 +2924,7 @@ class Eu extends Vi {
|
|
|
2924
2924
|
return this.setValue(r, t, this.value, e);
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
class Nu extends
|
|
2927
|
+
class Nu extends qi {
|
|
2928
2928
|
priority = Tu;
|
|
2929
2929
|
subPriority = -1;
|
|
2930
2930
|
constructor(r, t) {
|
|
@@ -3576,7 +3576,7 @@ class zu extends ge {
|
|
|
3576
3576
|
"T"
|
|
3577
3577
|
];
|
|
3578
3578
|
}
|
|
3579
|
-
const
|
|
3579
|
+
const Vu = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], qu = [
|
|
3580
3580
|
31,
|
|
3581
3581
|
29,
|
|
3582
3582
|
31,
|
|
@@ -3605,7 +3605,7 @@ class Uu extends ge {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
validate(r, t) {
|
|
3607
3607
|
const e = r.getFullYear(), a = Qi(e), o = r.getMonth();
|
|
3608
|
-
return a ? t >= 1 && t <=
|
|
3608
|
+
return a ? t >= 1 && t <= qu[o] : t >= 1 && t <= Vu[o];
|
|
3609
3609
|
}
|
|
3610
3610
|
set(r, t, e) {
|
|
3611
3611
|
return r.setDate(e), r.setHours(0, 0, 0, 0), r;
|
|
@@ -4583,7 +4583,7 @@ function St(n) {
|
|
|
4583
4583
|
function Xi(n) {
|
|
4584
4584
|
return Pr() ? n instanceof Node || n instanceof tt(n).Node : !1;
|
|
4585
4585
|
}
|
|
4586
|
-
function
|
|
4586
|
+
function qe(n) {
|
|
4587
4587
|
return Pr() ? n instanceof Element || n instanceof tt(n).Element : !1;
|
|
4588
4588
|
}
|
|
4589
4589
|
function Ct(n) {
|
|
@@ -4603,12 +4603,12 @@ function On(n) {
|
|
|
4603
4603
|
return /auto|scroll|overlay|hidden|clip/.test(r + e + t) && !Hd.has(a);
|
|
4604
4604
|
}
|
|
4605
4605
|
const zd = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
4606
|
-
function
|
|
4606
|
+
function Vd(n) {
|
|
4607
4607
|
return zd.has(bn(n));
|
|
4608
4608
|
}
|
|
4609
|
-
const
|
|
4609
|
+
const qd = [":popover-open", ":modal"];
|
|
4610
4610
|
function Ir(n) {
|
|
4611
|
-
return
|
|
4611
|
+
return qd.some((r) => {
|
|
4612
4612
|
try {
|
|
4613
4613
|
return n.matches(r);
|
|
4614
4614
|
} catch {
|
|
@@ -4618,7 +4618,7 @@ function Ir(n) {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
const Ud = ["transform", "translate", "scale", "rotate", "perspective"], $d = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Qd = ["paint", "layout", "strict", "content"];
|
|
4620
4620
|
function Ha(n) {
|
|
4621
|
-
const r = za(), t =
|
|
4621
|
+
const r = za(), t = qe(n) ? lt(n) : n;
|
|
4622
4622
|
return Ud.some((e) => t[e] ? t[e] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !r && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !r && (t.filter ? t.filter !== "none" : !1) || $d.some((e) => (t.willChange || "").includes(e)) || Qd.some((e) => (t.contain || "").includes(e));
|
|
4623
4623
|
}
|
|
4624
4624
|
function Gd(n) {
|
|
@@ -4643,7 +4643,7 @@ function lt(n) {
|
|
|
4643
4643
|
return tt(n).getComputedStyle(n);
|
|
4644
4644
|
}
|
|
4645
4645
|
function Rr(n) {
|
|
4646
|
-
return
|
|
4646
|
+
return qe(n) ? {
|
|
4647
4647
|
scrollLeft: n.scrollLeft,
|
|
4648
4648
|
scrollTop: n.scrollTop
|
|
4649
4649
|
} : {
|
|
@@ -4707,19 +4707,19 @@ function Ln(n) {
|
|
|
4707
4707
|
function ef(n) {
|
|
4708
4708
|
return n === "x" ? "y" : "x";
|
|
4709
4709
|
}
|
|
4710
|
-
function
|
|
4710
|
+
function Va(n) {
|
|
4711
4711
|
return n === "y" ? "height" : "width";
|
|
4712
4712
|
}
|
|
4713
4713
|
const tf = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4714
4714
|
function Ut(n) {
|
|
4715
4715
|
return tf.has(vn(n)) ? "y" : "x";
|
|
4716
4716
|
}
|
|
4717
|
-
function
|
|
4717
|
+
function qa(n) {
|
|
4718
4718
|
return ef(Ut(n));
|
|
4719
4719
|
}
|
|
4720
4720
|
function nf(n, r, t) {
|
|
4721
4721
|
t === void 0 && (t = !1);
|
|
4722
|
-
const e = Ln(n), a =
|
|
4722
|
+
const e = Ln(n), a = qa(n), o = Va(a);
|
|
4723
4723
|
let i = a === "x" ? e === (t ? "end" : "start") ? "right" : "left" : e === "start" ? "bottom" : "top";
|
|
4724
4724
|
return r.reference[o] > r.floating[o] && (i = vr(i)), [i, vr(i)];
|
|
4725
4725
|
}
|
|
@@ -4809,7 +4809,7 @@ function go(n, r, t) {
|
|
|
4809
4809
|
reference: e,
|
|
4810
4810
|
floating: a
|
|
4811
4811
|
} = n;
|
|
4812
|
-
const o = Ut(r), i =
|
|
4812
|
+
const o = Ut(r), i = qa(r), s = Va(i), l = vn(r), p = o === "y", u = e.x + e.width / 2 - a.width / 2, d = e.y + e.height / 2 - a.height / 2, f = e[s] / 2 - a[s] / 2;
|
|
4813
4813
|
let v;
|
|
4814
4814
|
switch (l) {
|
|
4815
4815
|
case "top":
|
|
@@ -4979,10 +4979,10 @@ const gf = (n) => ({
|
|
|
4979
4979
|
const d = Ji(u), f = {
|
|
4980
4980
|
x: t,
|
|
4981
4981
|
y: e
|
|
4982
|
-
}, v =
|
|
4982
|
+
}, v = qa(a), x = Va(v), b = await i.getDimensions(p), w = v === "y", y = w ? "top" : "left", E = w ? "bottom" : "right", D = w ? "clientHeight" : "clientWidth", C = o.reference[x] + o.reference[v] - f[v] - o.floating[x], k = f[v] - o.reference[v], F = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(p));
|
|
4983
4983
|
let Y = F ? F[D] : 0;
|
|
4984
4984
|
(!Y || !await (i.isElement == null ? void 0 : i.isElement(F))) && (Y = s.floating[D] || o.floating[x]);
|
|
4985
|
-
const
|
|
4985
|
+
const q = C / 2 - k / 2, H = Y / 2 - b[x] / 2 - 1, J = hn(d[y], H), re = hn(d[E], H), ne = J, X = Y - b[x] - re, te = Y / 2 - b[x] / 2 + q, W = Jd(ne, te, X), j = !l.arrow && Ln(a) != null && te !== W && o.reference[x] / 2 - (te < ne ? J : re) - b[x] / 2 < 0, $ = j ? te < ne ? te - ne : te - X : 0;
|
|
4986
4986
|
return {
|
|
4987
4987
|
[v]: f[v] + $,
|
|
4988
4988
|
data: {
|
|
@@ -5021,11 +5021,11 @@ const gf = (n) => ({
|
|
|
5021
5021
|
return {};
|
|
5022
5022
|
const y = vn(a), E = Ut(s), D = vn(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(p.floating)), k = f || (D || !b ? [vr(s)] : rf(s)), F = x !== "none";
|
|
5023
5023
|
!f && F && k.push(...lf(s, b, x, C));
|
|
5024
|
-
const Y = [s, ...k],
|
|
5024
|
+
const Y = [s, ...k], q = await _f(r, w), H = [];
|
|
5025
5025
|
let J = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5026
|
-
if (u && H.push(
|
|
5026
|
+
if (u && H.push(q[y]), d) {
|
|
5027
5027
|
const te = nf(a, i, C);
|
|
5028
|
-
H.push(
|
|
5028
|
+
H.push(q[te[0]], q[te[1]]);
|
|
5029
5029
|
}
|
|
5030
5030
|
if (J = [...J, {
|
|
5031
5031
|
placement: a,
|
|
@@ -5138,7 +5138,7 @@ function es(n) {
|
|
|
5138
5138
|
};
|
|
5139
5139
|
}
|
|
5140
5140
|
function Ua(n) {
|
|
5141
|
-
return
|
|
5141
|
+
return qe(n) ? n : n.contextElement;
|
|
5142
5142
|
}
|
|
5143
5143
|
function cn(n) {
|
|
5144
5144
|
const r = Ua(n);
|
|
@@ -5170,11 +5170,11 @@ function Zt(n, r, t, e) {
|
|
|
5170
5170
|
r === void 0 && (r = !1), t === void 0 && (t = !1);
|
|
5171
5171
|
const a = n.getBoundingClientRect(), o = Ua(n);
|
|
5172
5172
|
let i = kt(1);
|
|
5173
|
-
r && (e ?
|
|
5173
|
+
r && (e ? qe(e) && (i = cn(e)) : i = cn(n));
|
|
5174
5174
|
const s = Cf(o, t, e) ? ts(o) : kt(0);
|
|
5175
5175
|
let l = (a.left + s.x) / i.x, p = (a.top + s.y) / i.y, u = a.width / i.x, d = a.height / i.y;
|
|
5176
5176
|
if (o) {
|
|
5177
|
-
const f = tt(o), v = e &&
|
|
5177
|
+
const f = tt(o), v = e && qe(e) ? tt(e) : e;
|
|
5178
5178
|
let x = f, b = Da(x);
|
|
5179
5179
|
for (; b && e && v !== x; ) {
|
|
5180
5180
|
const w = cn(b), y = b.getBoundingClientRect(), E = lt(b), D = y.left + (b.clientLeft + parseFloat(E.paddingLeft)) * w.x, C = y.top + (b.clientTop + parseFloat(E.paddingTop)) * w.y;
|
|
@@ -5277,7 +5277,7 @@ function wo(n, r, t) {
|
|
|
5277
5277
|
e = Tf(n, t);
|
|
5278
5278
|
else if (r === "document")
|
|
5279
5279
|
e = Mf(St(n));
|
|
5280
|
-
else if (
|
|
5280
|
+
else if (qe(r))
|
|
5281
5281
|
e = Nf(r, t);
|
|
5282
5282
|
else {
|
|
5283
5283
|
const a = ts(n);
|
|
@@ -5292,16 +5292,16 @@ function wo(n, r, t) {
|
|
|
5292
5292
|
}
|
|
5293
5293
|
function rs(n, r) {
|
|
5294
5294
|
const t = jt(n);
|
|
5295
|
-
return t === r || !
|
|
5295
|
+
return t === r || !qe(t) || mn(t) ? !1 : lt(t).position === "fixed" || rs(t, r);
|
|
5296
5296
|
}
|
|
5297
5297
|
function Pf(n, r) {
|
|
5298
5298
|
const t = r.get(n);
|
|
5299
5299
|
if (t)
|
|
5300
5300
|
return t;
|
|
5301
|
-
let e = Pn(n, [], !1).filter((s) =>
|
|
5301
|
+
let e = Pn(n, [], !1).filter((s) => qe(s) && bn(s) !== "body"), a = null;
|
|
5302
5302
|
const o = lt(n).position === "fixed";
|
|
5303
5303
|
let i = o ? jt(n) : n;
|
|
5304
|
-
for (;
|
|
5304
|
+
for (; qe(i) && !mn(i); ) {
|
|
5305
5305
|
const s = lt(i), l = Ha(i);
|
|
5306
5306
|
!l && s.position === "fixed" && (a = null), (o ? !l && !a : !l && s.position === "static" && !!a && Ef.has(a.position) || On(i) && !l && rs(n, i)) ? e = e.filter((u) => u !== i) : a = s, i = jt(i);
|
|
5307
5307
|
}
|
|
@@ -5377,14 +5377,14 @@ function as(n, r) {
|
|
|
5377
5377
|
if (!Ct(n)) {
|
|
5378
5378
|
let a = jt(n);
|
|
5379
5379
|
for (; a && !mn(a); ) {
|
|
5380
|
-
if (
|
|
5380
|
+
if (qe(a) && !Gr(a))
|
|
5381
5381
|
return a;
|
|
5382
5382
|
a = jt(a);
|
|
5383
5383
|
}
|
|
5384
5384
|
return t;
|
|
5385
5385
|
}
|
|
5386
5386
|
let e = xo(n, r);
|
|
5387
|
-
for (; e &&
|
|
5387
|
+
for (; e && Vd(e) && Gr(e); )
|
|
5388
5388
|
e = xo(e, r);
|
|
5389
5389
|
return e && mn(e) && Gr(e) && !Ha(e) ? t : e || Gd(n) || t;
|
|
5390
5390
|
}
|
|
@@ -5412,7 +5412,7 @@ const Af = {
|
|
|
5412
5412
|
getClientRects: Sf,
|
|
5413
5413
|
getDimensions: Rf,
|
|
5414
5414
|
getScale: cn,
|
|
5415
|
-
isElement:
|
|
5415
|
+
isElement: qe,
|
|
5416
5416
|
isRTL: Ff
|
|
5417
5417
|
};
|
|
5418
5418
|
function os(n, r) {
|
|
@@ -5513,8 +5513,8 @@ const Yf = yf, jf = bf, yo = gf, Hf = (n, r, t) => {
|
|
|
5513
5513
|
platform: o
|
|
5514
5514
|
});
|
|
5515
5515
|
};
|
|
5516
|
-
var zf = typeof document < "u",
|
|
5517
|
-
}, ar = zf ? Cr :
|
|
5516
|
+
var zf = typeof document < "u", Vf = function() {
|
|
5517
|
+
}, ar = zf ? Cr : Vf;
|
|
5518
5518
|
function br(n, r) {
|
|
5519
5519
|
if (n === r)
|
|
5520
5520
|
return !0;
|
|
@@ -5558,7 +5558,7 @@ function Kr(n) {
|
|
|
5558
5558
|
r.current = n;
|
|
5559
5559
|
}), r;
|
|
5560
5560
|
}
|
|
5561
|
-
function
|
|
5561
|
+
function qf(n) {
|
|
5562
5562
|
n === void 0 && (n = {});
|
|
5563
5563
|
const {
|
|
5564
5564
|
placement: r = "bottom",
|
|
@@ -5585,7 +5585,7 @@ function Vf(n) {
|
|
|
5585
5585
|
K !== F.current && (F.current = K, b(K));
|
|
5586
5586
|
}, []), D = R.useCallback((K) => {
|
|
5587
5587
|
K !== Y.current && (Y.current = K, y(K));
|
|
5588
|
-
}, []), C = o || x, k = i || w, F = R.useRef(null), Y = R.useRef(null),
|
|
5588
|
+
}, []), C = o || x, k = i || w, F = R.useRef(null), Y = R.useRef(null), q = R.useRef(u), H = l != null, J = Kr(l), re = Kr(a), ne = Kr(p), X = R.useCallback(() => {
|
|
5589
5589
|
if (!F.current || !Y.current)
|
|
5590
5590
|
return;
|
|
5591
5591
|
const K = {
|
|
@@ -5602,13 +5602,13 @@ function Vf(n) {
|
|
|
5602
5602
|
// setting it to `true` when `open === false` (must be specified).
|
|
5603
5603
|
isPositioned: ne.current !== !1
|
|
5604
5604
|
};
|
|
5605
|
-
te.current && !br(
|
|
5605
|
+
te.current && !br(q.current, m) && (q.current = m, qs.flushSync(() => {
|
|
5606
5606
|
d(m);
|
|
5607
5607
|
}));
|
|
5608
5608
|
});
|
|
5609
5609
|
}, [f, r, t, re, ne]);
|
|
5610
5610
|
ar(() => {
|
|
5611
|
-
p === !1 &&
|
|
5611
|
+
p === !1 && q.current.isPositioned && (q.current.isPositioned = !1, d((K) => ({
|
|
5612
5612
|
...K,
|
|
5613
5613
|
isPositioned: !1
|
|
5614
5614
|
})));
|
|
@@ -5763,7 +5763,7 @@ const nm = /* @__PURE__ */ R.forwardRef(function(r, t) {
|
|
|
5763
5763
|
const [C, k] = e.split("-"), F = C === "top" || C === "bottom";
|
|
5764
5764
|
let Y = d;
|
|
5765
5765
|
(F && i != null && i.x || !F && i != null && i.y) && (Y = null);
|
|
5766
|
-
const
|
|
5766
|
+
const q = u * 2, H = q / 2, J = s / 2 * (p / -8 + 1), re = l / 2 * p / 4, ne = !!v, X = Y && k === "end" ? "bottom" : "top";
|
|
5767
5767
|
let te = Y && k === "end" ? "right" : "left";
|
|
5768
5768
|
Y && E && (te = k === "end" ? "left" : "right");
|
|
5769
5769
|
const W = o?.x != null ? Y || o.x : "", j = o?.y != null ? Y || o.y : "", $ = v || "M0,0" + (" H" + s) + (" L" + (s - J) + "," + (l - re)) + (" Q" + s / 2 + "," + l + " " + J + "," + (l - re)) + " Z", K = {
|
|
@@ -5776,7 +5776,7 @@ const nm = /* @__PURE__ */ R.forwardRef(function(r, t) {
|
|
|
5776
5776
|
...w,
|
|
5777
5777
|
"aria-hidden": !0,
|
|
5778
5778
|
ref: t,
|
|
5779
|
-
width: ne ? s : s +
|
|
5779
|
+
width: ne ? s : s + q,
|
|
5780
5780
|
height: s,
|
|
5781
5781
|
viewBox: "0 0 " + s + " " + (l > s ? l : s),
|
|
5782
5782
|
style: {
|
|
@@ -5784,25 +5784,25 @@ const nm = /* @__PURE__ */ R.forwardRef(function(r, t) {
|
|
|
5784
5784
|
pointerEvents: "none",
|
|
5785
5785
|
[te]: W,
|
|
5786
5786
|
[X]: j,
|
|
5787
|
-
[C]: F || ne ? "100%" : "calc(100% - " +
|
|
5787
|
+
[C]: F || ne ? "100%" : "calc(100% - " + q / 2 + "px)",
|
|
5788
5788
|
transform: [K, x].filter((h) => !!h).join(" "),
|
|
5789
5789
|
...b
|
|
5790
5790
|
},
|
|
5791
|
-
children: [
|
|
5791
|
+
children: [q > 0 && /* @__PURE__ */ M("path", {
|
|
5792
5792
|
clipPath: "url(#" + y + ")",
|
|
5793
5793
|
fill: "none",
|
|
5794
5794
|
stroke: f,
|
|
5795
|
-
strokeWidth:
|
|
5795
|
+
strokeWidth: q + (v ? 0 : 1),
|
|
5796
5796
|
d: $
|
|
5797
5797
|
}), /* @__PURE__ */ M("path", {
|
|
5798
|
-
stroke:
|
|
5798
|
+
stroke: q && !v ? w.fill : "none",
|
|
5799
5799
|
d: $
|
|
5800
5800
|
}), /* @__PURE__ */ M("clipPath", {
|
|
5801
5801
|
id: y,
|
|
5802
5802
|
children: /* @__PURE__ */ M("rect", {
|
|
5803
5803
|
x: -H,
|
|
5804
5804
|
y: H * (ne ? -1 : 1),
|
|
5805
|
-
width: s +
|
|
5805
|
+
width: s + q,
|
|
5806
5806
|
height: s
|
|
5807
5807
|
})
|
|
5808
5808
|
})]
|
|
@@ -5836,7 +5836,7 @@ function lm(n) {
|
|
|
5836
5836
|
} = n, a = ss(), o = R.useRef({}), [i] = R.useState(() => rm()), s = im() != null;
|
|
5837
5837
|
if (process.env.NODE_ENV !== "production") {
|
|
5838
5838
|
const v = e.reference;
|
|
5839
|
-
v && !
|
|
5839
|
+
v && !qe(v) && tm("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
5840
5840
|
}
|
|
5841
5841
|
const [l, p] = R.useState(e.reference), u = hf((v, x, b) => {
|
|
5842
5842
|
o.current.openEvent = v ? x : void 0, i.emit("openchange", {
|
|
@@ -5877,7 +5877,7 @@ function cm(n) {
|
|
|
5877
5877
|
gr(() => {
|
|
5878
5878
|
u && (d.current = u);
|
|
5879
5879
|
}, [u]);
|
|
5880
|
-
const v =
|
|
5880
|
+
const v = qf({
|
|
5881
5881
|
...n,
|
|
5882
5882
|
elements: {
|
|
5883
5883
|
...a,
|
|
@@ -5886,17 +5886,17 @@ function cm(n) {
|
|
|
5886
5886
|
}
|
|
5887
5887
|
}
|
|
5888
5888
|
}), x = R.useCallback((D) => {
|
|
5889
|
-
const C =
|
|
5889
|
+
const C = qe(D) ? {
|
|
5890
5890
|
getBoundingClientRect: () => D.getBoundingClientRect(),
|
|
5891
5891
|
getClientRects: () => D.getClientRects(),
|
|
5892
5892
|
contextElement: D
|
|
5893
5893
|
} : D;
|
|
5894
5894
|
l(C), v.refs.setReference(C);
|
|
5895
5895
|
}, [v.refs]), b = R.useCallback((D) => {
|
|
5896
|
-
(
|
|
5896
|
+
(qe(D) || D === null) && (d.current = D, i(D)), (qe(v.refs.reference.current) || v.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5897
5897
|
// `null` to support `positionReference` + an unstable `reference`
|
|
5898
5898
|
// callback ref.
|
|
5899
|
-
D !== null && !
|
|
5899
|
+
D !== null && !qe(D)) && v.refs.setReference(D);
|
|
5900
5900
|
}, [v.refs]), w = R.useMemo(() => ({
|
|
5901
5901
|
...v.refs,
|
|
5902
5902
|
setReference: b,
|
|
@@ -6098,7 +6098,7 @@ function me(n, r) {
|
|
|
6098
6098
|
function $t(n, r) {
|
|
6099
6099
|
return n && r ? Du(n, r) : !n && !r;
|
|
6100
6100
|
}
|
|
6101
|
-
function
|
|
6101
|
+
function Vt(n, r, t) {
|
|
6102
6102
|
var e, a = Xt(r), o = Wi(t);
|
|
6103
6103
|
try {
|
|
6104
6104
|
e = Nn(n, { start: a, end: o });
|
|
@@ -6172,7 +6172,7 @@ function us(n, r) {
|
|
|
6172
6172
|
}) || s && !s(xe(n)) || !1;
|
|
6173
6173
|
}
|
|
6174
6174
|
function Hn(n, r, t, e) {
|
|
6175
|
-
var a = fe(n), o =
|
|
6175
|
+
var a = fe(n), o = Ve(n), i = fe(r), s = Ve(r), l = fe(e);
|
|
6176
6176
|
return a === i && a === l ? o <= t && t <= s : a < i ? l === a && o <= t || l === i && s >= t || l < i && l > a : !1;
|
|
6177
6177
|
}
|
|
6178
6178
|
function ym(n, r) {
|
|
@@ -6191,7 +6191,7 @@ function zn(n, r) {
|
|
|
6191
6191
|
return wr(n, l);
|
|
6192
6192
|
}) || s && !s(xe(n)) || !1;
|
|
6193
6193
|
}
|
|
6194
|
-
function
|
|
6194
|
+
function Vn(n, r, t) {
|
|
6195
6195
|
if (!r || !t || !pr(r) || !pr(t))
|
|
6196
6196
|
return !1;
|
|
6197
6197
|
var e = fe(r), a = fe(t);
|
|
@@ -6208,7 +6208,7 @@ function ir(n, r) {
|
|
|
6208
6208
|
return vt(l, p);
|
|
6209
6209
|
}) || s && !s(xe(l)) || !1;
|
|
6210
6210
|
}
|
|
6211
|
-
function
|
|
6211
|
+
function qn(n, r, t, e) {
|
|
6212
6212
|
var a = fe(n), o = Qt(n), i = fe(r), s = Qt(r), l = fe(e);
|
|
6213
6213
|
return a === i && a === l ? o <= t && t <= s : a < i ? l === a && o <= t || l === i && s >= t || l < i && l > a : !1;
|
|
6214
6214
|
}
|
|
@@ -6499,20 +6499,20 @@ var Im = (
|
|
|
6499
6499
|
return i.has(s) ? [(e = i.get(s)) === null || e === void 0 ? void 0 : e.className] : [void 0];
|
|
6500
6500
|
}, t.isInRange = function() {
|
|
6501
6501
|
var e = t.props, a = e.day, o = e.startDate, i = e.endDate;
|
|
6502
|
-
return !o || !i ? !1 :
|
|
6502
|
+
return !o || !i ? !1 : Vt(a, o, i);
|
|
6503
6503
|
}, t.isInSelectingRange = function() {
|
|
6504
6504
|
var e, a = t.props, o = a.day, i = a.selectsStart, s = a.selectsEnd, l = a.selectsRange, p = a.selectsDisabledDaysInRange, u = a.startDate, d = a.swapRange, f = a.endDate, v = (e = t.props.selectingDate) !== null && e !== void 0 ? e : t.props.preSelection;
|
|
6505
6505
|
if (!(i || s || l) || !v || !p && t.isDisabled())
|
|
6506
6506
|
return !1;
|
|
6507
6507
|
if (i && f && (xt(v, f) || $t(v, f)))
|
|
6508
|
-
return
|
|
6508
|
+
return Vt(o, v, f);
|
|
6509
6509
|
if (s && u && (Yt(v, u) || $t(v, u)))
|
|
6510
|
-
return
|
|
6510
|
+
return Vt(o, u, v);
|
|
6511
6511
|
if (l && u && !f) {
|
|
6512
6512
|
if ($t(v, u) || Yt(v, u))
|
|
6513
|
-
return
|
|
6513
|
+
return Vt(o, u, v);
|
|
6514
6514
|
if (d && xt(v, u))
|
|
6515
|
-
return
|
|
6515
|
+
return Vt(o, v, u);
|
|
6516
6516
|
}
|
|
6517
6517
|
return !1;
|
|
6518
6518
|
}, t.isSelectingRangeStart = function() {
|
|
@@ -6537,9 +6537,9 @@ var Im = (
|
|
|
6537
6537
|
var e = xu(t.props.day);
|
|
6538
6538
|
return e === 0 || e === 6;
|
|
6539
6539
|
}, t.isAfterMonth = function() {
|
|
6540
|
-
return t.props.month !== void 0 && (t.props.month + 1) % 12 ===
|
|
6540
|
+
return t.props.month !== void 0 && (t.props.month + 1) % 12 === Ve(t.props.day);
|
|
6541
6541
|
}, t.isBeforeMonth = function() {
|
|
6542
|
-
return t.props.month !== void 0 && (
|
|
6542
|
+
return t.props.month !== void 0 && (Ve(t.props.day) + 1) % 12 === t.props.month;
|
|
6543
6543
|
}, t.isCurrentDay = function() {
|
|
6544
6544
|
return t.isSameDay(xe());
|
|
6545
6545
|
}, t.isSelected = function() {
|
|
@@ -6822,16 +6822,16 @@ var Am = (
|
|
|
6822
6822
|
return l || p ? Xe(u, d) : Xe(u, s);
|
|
6823
6823
|
}, t.isInSelectingRangeQuarter = function(e) {
|
|
6824
6824
|
var a, o = t.props, i = o.day, s = o.selectsStart, l = o.selectsEnd, p = o.selectsRange, u = o.startDate, d = o.endDate, f = (a = t.props.selectingDate) !== null && a !== void 0 ? a : t.props.preSelection;
|
|
6825
|
-
return !(s || l || p) || !f ? !1 : s && d ?
|
|
6825
|
+
return !(s || l || p) || !f ? !1 : s && d ? qn(f, d, e, i) : l && u || p && u && !d ? qn(u, f, e, i) : !1;
|
|
6826
6826
|
}, t.isWeekInMonth = function(e) {
|
|
6827
6827
|
var a = t.props.day, o = ut(e, 6);
|
|
6828
6828
|
return Xe(e, a) || Xe(o, a);
|
|
6829
6829
|
}, t.isCurrentMonth = function(e, a) {
|
|
6830
|
-
return fe(e) === fe(xe()) && a ===
|
|
6830
|
+
return fe(e) === fe(xe()) && a === Ve(xe());
|
|
6831
6831
|
}, t.isCurrentQuarter = function(e, a) {
|
|
6832
6832
|
return fe(e) === fe(xe()) && a === Qt(xe());
|
|
6833
6833
|
}, t.isSelectedMonth = function(e, a, o) {
|
|
6834
|
-
return
|
|
6834
|
+
return Ve(o) === a && fe(e) === fe(o);
|
|
6835
6835
|
}, t.isSelectMonthInList = function(e, a, o) {
|
|
6836
6836
|
return o.some(function(i) {
|
|
6837
6837
|
return t.isSelectedMonth(e, a, i);
|
|
@@ -6839,7 +6839,7 @@ var Am = (
|
|
|
6839
6839
|
}, t.isSelectedQuarter = function(e, a, o) {
|
|
6840
6840
|
return Qt(e) === a && fe(e) === fe(o);
|
|
6841
6841
|
}, t.isMonthSelected = function() {
|
|
6842
|
-
var e = t.props, a = e.day, o = e.selected, i = e.selectedDates, s = e.selectsMultiple, l =
|
|
6842
|
+
var e = t.props, a = e.day, o = e.selected, i = e.selectedDates, s = e.selectsMultiple, l = Ve(a);
|
|
6843
6843
|
return s ? i?.some(function(p) {
|
|
6844
6844
|
return t.isSelectedMonth(a, l, p);
|
|
6845
6845
|
}) : !!o && t.isSelectedMonth(a, l, o);
|
|
@@ -6848,7 +6848,7 @@ var Am = (
|
|
|
6848
6848
|
return t.props.showWeekPicker ? Wt(x, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
|
|
6849
6849
|
}, p = function(x) {
|
|
6850
6850
|
return t.props.showWeekPicker ? Wt(x, t.props.locale, t.props.calendarStartDay) : t.props.selected;
|
|
6851
|
-
}, u = t.props.selected ? p(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(P.createElement(Lm, he({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month:
|
|
6851
|
+
}, u = t.props.selected ? p(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(P.createElement(Lm, he({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month: Ve(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: u, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !i; ) {
|
|
6852
6852
|
o++, s = cr(s, 1);
|
|
6853
6853
|
var f = a && o >= Fm, v = !a && !t.isWeekInMonth(s);
|
|
6854
6854
|
if (f || v)
|
|
@@ -6870,27 +6870,27 @@ var Am = (
|
|
|
6870
6870
|
}, t.handleKeyboardNavigation = function(e, a, o) {
|
|
6871
6871
|
var i, s = t.props, l = s.selected, p = s.preSelection, u = s.setPreSelection, d = s.minDate, f = s.maxDate, v = s.showFourColumnMonthYearPicker, x = s.showTwoColumnMonthYearPicker;
|
|
6872
6872
|
if (p) {
|
|
6873
|
-
var b = Yo(v, x), w = t.getVerticalOffset(b), y = (i = ea[b]) === null || i === void 0 ? void 0 : i.grid, E = function(Y,
|
|
6874
|
-
var J, re, ne =
|
|
6873
|
+
var b = Yo(v, x), w = t.getVerticalOffset(b), y = (i = ea[b]) === null || i === void 0 ? void 0 : i.grid, E = function(Y, q, H) {
|
|
6874
|
+
var J, re, ne = q, X = H;
|
|
6875
6875
|
switch (Y) {
|
|
6876
6876
|
case ee.ArrowRight:
|
|
6877
|
-
ne = ft(
|
|
6877
|
+
ne = ft(q, Un), X = H === 11 ? 0 : H + Un;
|
|
6878
6878
|
break;
|
|
6879
6879
|
case ee.ArrowLeft:
|
|
6880
|
-
ne = Gt(
|
|
6880
|
+
ne = Gt(q, Un), X = H === 0 ? 11 : H - Un;
|
|
6881
6881
|
break;
|
|
6882
6882
|
case ee.ArrowUp:
|
|
6883
|
-
ne = Gt(
|
|
6883
|
+
ne = Gt(q, w), X = !((J = y?.[0]) === null || J === void 0) && J.includes(H) ? H + 12 - w : H - w;
|
|
6884
6884
|
break;
|
|
6885
6885
|
case ee.ArrowDown:
|
|
6886
|
-
ne = ft(
|
|
6886
|
+
ne = ft(q, w), X = !((re = y?.[y.length - 1]) === null || re === void 0) && re.includes(H) ? H - 12 + w : H + w;
|
|
6887
6887
|
break;
|
|
6888
6888
|
}
|
|
6889
6889
|
return { newCalculatedDate: ne, newCalculatedMonth: X };
|
|
6890
|
-
}, D = function(Y,
|
|
6891
|
-
for (var J = 40, re = Y, ne = !1, X = 0, te = E(re,
|
|
6890
|
+
}, D = function(Y, q, H) {
|
|
6891
|
+
for (var J = 40, re = Y, ne = !1, X = 0, te = E(re, q, H), W = te.newCalculatedDate, j = te.newCalculatedMonth; !ne; ) {
|
|
6892
6892
|
if (X >= J) {
|
|
6893
|
-
W =
|
|
6893
|
+
W = q, j = H;
|
|
6894
6894
|
break;
|
|
6895
6895
|
}
|
|
6896
6896
|
if (d && W < d) {
|
|
@@ -6985,7 +6985,7 @@ var Am = (
|
|
|
6985
6985
|
}, t.getTabIndex = function(e) {
|
|
6986
6986
|
if (t.props.preSelection == null)
|
|
6987
6987
|
return "-1";
|
|
6988
|
-
var a =
|
|
6988
|
+
var a = Ve(t.props.preSelection), o = t.isMonthDisabledForLabelDate(a).isDisabled, i = e === a && !(o || t.props.disabledKeyboardNavigation) ? "0" : "-1";
|
|
6989
6989
|
return i;
|
|
6990
6990
|
}, t.getQuarterTabIndex = function(e) {
|
|
6991
6991
|
if (t.props.preSelection == null)
|
|
@@ -7002,7 +7002,7 @@ var Am = (
|
|
|
7002
7002
|
"react-datepicker__quarter-text--selected": l ? t.isSelectedQuarter(o, e, l) : void 0,
|
|
7003
7003
|
"react-datepicker__quarter-text--keyboard-selected": !b && x && t.isSelectedQuarter(o, e, x) && !w,
|
|
7004
7004
|
"react-datepicker__quarter-text--in-selecting-range": t.isInSelectingRangeQuarter(e),
|
|
7005
|
-
"react-datepicker__quarter-text--in-range": i && s ?
|
|
7005
|
+
"react-datepicker__quarter-text--in-range": i && s ? qn(i, s, e, o) : void 0,
|
|
7006
7006
|
"react-datepicker__quarter-text--range-start": t.isRangeStartQuarter(e),
|
|
7007
7007
|
"react-datepicker__quarter-text--range-end": t.isRangeEndQuarter(e),
|
|
7008
7008
|
"react-datepicker__quarter-text--today": t.isCurrentQuarter(o, e)
|
|
@@ -7361,7 +7361,7 @@ var jm = (
|
|
|
7361
7361
|
return e.offsetTop - (t / 2 - e.clientHeight / 2);
|
|
7362
7362
|
}, r;
|
|
7363
7363
|
})(je)
|
|
7364
|
-
), jo = 3,
|
|
7364
|
+
), jo = 3, Vm = (
|
|
7365
7365
|
/** @class */
|
|
7366
7366
|
(function(n) {
|
|
7367
7367
|
He(r, n);
|
|
@@ -7407,10 +7407,10 @@ var jm = (
|
|
|
7407
7407
|
}, e.isRangeEnd = function(a) {
|
|
7408
7408
|
return e.props.startDate && e.props.endDate && vt(ht(xe(), a), e.props.endDate);
|
|
7409
7409
|
}, e.isInRange = function(a) {
|
|
7410
|
-
return
|
|
7410
|
+
return Vn(a, e.props.startDate, e.props.endDate);
|
|
7411
7411
|
}, e.isInSelectingRange = function(a) {
|
|
7412
7412
|
var o = e.props, i = o.selectsStart, s = o.selectsEnd, l = o.selectsRange, p = o.startDate, u = o.endDate;
|
|
7413
|
-
return !(i || s || l) || !e.selectingDate() ? !1 : i && u ?
|
|
7413
|
+
return !(i || s || l) || !e.selectingDate() ? !1 : i && u ? Vn(a, e.selectingDate(), u) : s && p || l && p && !u ? Vn(a, p, e.selectingDate()) : !1;
|
|
7414
7414
|
}, e.isSelectingRangeStart = function(a) {
|
|
7415
7415
|
var o;
|
|
7416
7416
|
if (!e.isInSelectingRange(a))
|
|
@@ -7530,7 +7530,7 @@ var jm = (
|
|
|
7530
7530
|
}, r;
|
|
7531
7531
|
})(je)
|
|
7532
7532
|
);
|
|
7533
|
-
function
|
|
7533
|
+
function qm(n, r, t, e) {
|
|
7534
7534
|
for (var a = [], o = 0; o < 2 * r + 1; o++) {
|
|
7535
7535
|
var i = n + r - o, s = !0;
|
|
7536
7536
|
t && (s = fe(t) <= i), e && s && (s = fe(e) >= i), s && a.push(i);
|
|
@@ -7603,7 +7603,7 @@ var Um = (
|
|
|
7603
7603
|
};
|
|
7604
7604
|
var a = t.yearDropdownItemNumber, o = t.scrollableYearDropdown, i = a || (o ? 10 : 5);
|
|
7605
7605
|
return e.state = {
|
|
7606
|
-
yearsList:
|
|
7606
|
+
yearsList: qm(e.props.year, i, e.props.minDate, e.props.maxDate)
|
|
7607
7607
|
}, e.dropdownRef = Bt(), e;
|
|
7608
7608
|
}
|
|
7609
7609
|
return r.prototype.componentDidMount = function() {
|
|
@@ -7779,7 +7779,7 @@ var Um = (
|
|
|
7779
7779
|
e.setState(function(o) {
|
|
7780
7780
|
var i = o.date;
|
|
7781
7781
|
return {
|
|
7782
|
-
date: ht(ot(i,
|
|
7782
|
+
date: ht(ot(i, Ve(a)), fe(a))
|
|
7783
7783
|
};
|
|
7784
7784
|
}, function() {
|
|
7785
7785
|
return e.handleMonthYearChange(e.state.date);
|
|
@@ -7841,7 +7841,7 @@ var Um = (
|
|
|
7841
7841
|
"react-datepicker__navigation--previous"
|
|
7842
7842
|
], x = e.decreaseMonth;
|
|
7843
7843
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (x = e.decreaseYear), d && e.props.showDisabledMonthNavigation && (v.push("react-datepicker__navigation--previous--disabled"), x = void 0);
|
|
7844
|
-
var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, w = e.props, y = w.previousMonthButtonLabel, E = y === void 0 ? r.defaultProps.previousMonthButtonLabel : y, D = w.previousYearButtonLabel, C = D === void 0 ? r.defaultProps.previousYearButtonLabel : D, k = e.props, F = k.previousMonthAriaLabel, Y = F === void 0 ? typeof E == "string" ? E : "Previous Month" : F,
|
|
7844
|
+
var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, w = e.props, y = w.previousMonthButtonLabel, E = y === void 0 ? r.defaultProps.previousMonthButtonLabel : y, D = w.previousYearButtonLabel, C = D === void 0 ? r.defaultProps.previousYearButtonLabel : D, k = e.props, F = k.previousMonthAriaLabel, Y = F === void 0 ? typeof E == "string" ? E : "Previous Month" : F, q = k.previousYearAriaLabel, H = q === void 0 ? typeof C == "string" ? C : "Previous Year" : q;
|
|
7845
7845
|
return P.createElement(
|
|
7846
7846
|
"button",
|
|
7847
7847
|
{ type: "button", className: v.join(" "), onClick: x, onKeyDown: e.props.handleOnKeyDown, "aria-label": b ? H : Y },
|
|
@@ -7904,7 +7904,7 @@ var Um = (
|
|
|
7904
7904
|
return P.createElement($m, he({}, r.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: fe(e.state.date) }));
|
|
7905
7905
|
}, e.renderMonthDropdown = function(a) {
|
|
7906
7906
|
if (a === void 0 && (a = !1), !(!e.props.showMonthDropdown || a))
|
|
7907
|
-
return P.createElement(Bm, he({}, r.defaultProps, e.props, { month:
|
|
7907
|
+
return P.createElement(Bm, he({}, r.defaultProps, e.props, { month: Ve(e.state.date), onChange: e.changeMonth }));
|
|
7908
7908
|
}, e.renderMonthYearDropdown = function(a) {
|
|
7909
7909
|
if (a === void 0 && (a = !1), !(!e.props.showMonthYearDropdown || a))
|
|
7910
7910
|
return P.createElement(Hm, he({}, r.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
|
|
@@ -7978,7 +7978,7 @@ var Um = (
|
|
|
7978
7978
|
"div",
|
|
7979
7979
|
{ className: "react-datepicker__year--container" },
|
|
7980
7980
|
e.renderHeader({ monthDate: e.state.date }),
|
|
7981
|
-
P.createElement(
|
|
7981
|
+
P.createElement(Vm, he({}, r.defaultProps, e.props, { selectingDate: e.state.selectingDate, date: e.state.date, onDayClick: e.handleDayClick, clearSelectingDate: e.clearSelectingDate, onYearMouseEnter: e.handleYearMouseEnter, onYearMouseLeave: e.handleYearMouseLeave }))
|
|
7982
7982
|
);
|
|
7983
7983
|
}, e.renderTimeSection = function() {
|
|
7984
7984
|
if (e.props.showTimeSelect && (e.state.monthContainer || e.props.showTimeSelectOnly))
|
|
@@ -7989,7 +7989,7 @@ var Um = (
|
|
|
7989
7989
|
return P.createElement(Im, he({}, r.defaultProps, e.props, { date: a, timeString: i, onChange: e.props.onTimeChange }));
|
|
7990
7990
|
}, e.renderAriaLiveRegion = function() {
|
|
7991
7991
|
var a, o = Et(e.state.date, (a = e.props.yearItemNumber) !== null && a !== void 0 ? a : r.defaultProps.yearItemNumber), i = o.startPeriod, s = o.endPeriod, l;
|
|
7992
|
-
return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = fe(e.state.date) : l = "".concat(Qa(
|
|
7992
|
+
return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = fe(e.state.date) : l = "".concat(Qa(Ve(e.state.date), e.props.locale), " ").concat(fe(e.state.date)), P.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
|
|
7993
7993
|
}, e.renderChildren = function() {
|
|
7994
7994
|
if (e.props.children)
|
|
7995
7995
|
return P.createElement("div", { className: "react-datepicker__children-container" }, e.props.children);
|
|
@@ -8163,7 +8163,7 @@ var th = function(n) {
|
|
|
8163
8163
|
);
|
|
8164
8164
|
}, nh = eh(th);
|
|
8165
8165
|
function rh(n, r) {
|
|
8166
|
-
return n && r ?
|
|
8166
|
+
return n && r ? Ve(n) !== Ve(r) || fe(n) !== fe(r) : n !== r;
|
|
8167
8167
|
}
|
|
8168
8168
|
var ta = "Date input not valid.", ah = (
|
|
8169
8169
|
/** @class */
|
|
@@ -8283,10 +8283,10 @@ var ta = "Date input not valid.", ah = (
|
|
|
8283
8283
|
if (v) {
|
|
8284
8284
|
var D = e.props.rangeSeparator, C = D.trim(), k = E.split(w.includes(C) ? D : C, 2).map(function(X) {
|
|
8285
8285
|
return X.trim();
|
|
8286
|
-
}), F = k[0], Y = k[1],
|
|
8287
|
-
if (!J && !re ||
|
|
8286
|
+
}), F = k[0], Y = k[1], q = Xr(F ?? "", w, e.props.locale, y), H = q ? Xr(Y ?? "", w, e.props.locale, y) : null, J = x?.getTime() !== q?.getTime(), re = b?.getTime() !== H?.getTime();
|
|
8287
|
+
if (!J && !re || q && it(q, e.props) || H && it(H, e.props))
|
|
8288
8288
|
return;
|
|
8289
|
-
(s = (i = e.props).onChange) === null || s === void 0 || s.call(i, [
|
|
8289
|
+
(s = (i = e.props).onChange) === null || s === void 0 || s.call(i, [q, H], d);
|
|
8290
8290
|
} else {
|
|
8291
8291
|
var ne = Xr(E, w, e.props.locale, y, (l = e.props.selected) !== null && l !== void 0 ? l : void 0);
|
|
8292
8292
|
(ne || !E) && e.setSelected(ne, d, !0);
|
|
@@ -8327,10 +8327,10 @@ var ta = "Date input not valid.", ah = (
|
|
|
8327
8327
|
if (!y?.length)
|
|
8328
8328
|
f?.([u], o);
|
|
8329
8329
|
else {
|
|
8330
|
-
var
|
|
8330
|
+
var q = y.some(function(J) {
|
|
8331
8331
|
return me(J, u);
|
|
8332
8332
|
});
|
|
8333
|
-
if (
|
|
8333
|
+
if (q) {
|
|
8334
8334
|
var H = y.filter(function(J) {
|
|
8335
8335
|
return !me(J, u);
|
|
8336
8336
|
});
|
|
@@ -8347,7 +8347,7 @@ var ta = "Date input not valid.", ah = (
|
|
|
8347
8347
|
if (a) {
|
|
8348
8348
|
var l = or(a);
|
|
8349
8349
|
if (o && i)
|
|
8350
|
-
s =
|
|
8350
|
+
s = Vt(a, e.props.minDate, e.props.maxDate);
|
|
8351
8351
|
else if (o) {
|
|
8352
8352
|
var p = or(e.props.minDate);
|
|
8353
8353
|
s = Yt(a, p) || $t(l, p);
|
|
@@ -8406,7 +8406,7 @@ var ta = "Date input not valid.", ah = (
|
|
|
8406
8406
|
}, e.onDayKeyDown = function(a) {
|
|
8407
8407
|
var o, i, s, l, p, u, d = e.props, f = d.minDate, v = d.maxDate, x = d.disabledKeyboardNavigation, b = d.showWeekPicker, w = d.shouldCloseOnSelect, y = d.locale, E = d.calendarStartDay, D = d.adjustDateOnChange, C = d.inline;
|
|
8408
8408
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, a), !x) {
|
|
8409
|
-
var k = a.key, F = a.shiftKey, Y = xe(e.state.preSelection),
|
|
8409
|
+
var k = a.key, F = a.shiftKey, Y = xe(e.state.preSelection), q = function(W, j) {
|
|
8410
8410
|
var $ = j;
|
|
8411
8411
|
switch (W) {
|
|
8412
8412
|
case ee.ArrowRight:
|
|
@@ -8436,12 +8436,12 @@ var ta = "Date input not valid.", ah = (
|
|
|
8436
8436
|
}
|
|
8437
8437
|
return $;
|
|
8438
8438
|
}, H = function(W, j) {
|
|
8439
|
-
for (var $ = 40, K = W, h = !1, m = 0, g =
|
|
8439
|
+
for (var $ = 40, K = W, h = !1, m = 0, g = q(W, j); !h; ) {
|
|
8440
8440
|
if (m >= $) {
|
|
8441
8441
|
g = j;
|
|
8442
8442
|
break;
|
|
8443
8443
|
}
|
|
8444
|
-
f && g < f && (K = ee.ArrowRight, g = it(f, e.props) ?
|
|
8444
|
+
f && g < f && (K = ee.ArrowRight, g = it(f, e.props) ? q(K, g) : f), v && g > v && (K = ee.ArrowLeft, g = it(v, e.props) ? q(K, g) : v), it(g, e.props) ? ((K === ee.PageUp || K === ee.Home) && (K = ee.ArrowRight), (K === ee.PageDown || K === ee.End) && (K = ee.ArrowLeft), g = q(K, g)) : h = !0, m++;
|
|
8445
8445
|
}
|
|
8446
8446
|
return g;
|
|
8447
8447
|
};
|
|
@@ -8470,7 +8470,7 @@ var ta = "Date input not valid.", ah = (
|
|
|
8470
8470
|
return;
|
|
8471
8471
|
}
|
|
8472
8472
|
if (a.preventDefault(), e.setState({ lastPreSelectChange: na }), D && e.setSelected(J), e.setPreSelection(J), C) {
|
|
8473
|
-
var re =
|
|
8473
|
+
var re = Ve(Y), ne = Ve(J), X = fe(Y), te = fe(J);
|
|
8474
8474
|
re !== ne || X !== te ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
@@ -8650,12 +8650,12 @@ function ih() {
|
|
|
8650
8650
|
if (h === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8651
8651
|
return h;
|
|
8652
8652
|
}
|
|
8653
|
-
var l = function(h, m, g, _, c, S, z,
|
|
8653
|
+
var l = function(h, m, g, _, c, S, z, V) {
|
|
8654
8654
|
if (!h) {
|
|
8655
8655
|
var I;
|
|
8656
8656
|
if (m === void 0) I = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
8657
8657
|
else {
|
|
8658
|
-
var L = [g, _, c, S, z,
|
|
8658
|
+
var L = [g, _, c, S, z, V], B = 0;
|
|
8659
8659
|
(I = new Error(m.replace(/%s/g, function() {
|
|
8660
8660
|
return L[B++];
|
|
8661
8661
|
}))).name = "Invariant Violation";
|
|
@@ -8683,9 +8683,9 @@ function ih() {
|
|
|
8683
8683
|
function x(h, m, g) {
|
|
8684
8684
|
var _ = "", c = "", S = null, z = [];
|
|
8685
8685
|
if (m === void 0 && (m = v), g == null && (g = f), !h || typeof h != "string") return { maskChar: m, formatChars: g, mask: null, prefix: null, lastEditablePosition: null, permanents: [] };
|
|
8686
|
-
var
|
|
8686
|
+
var V = !1;
|
|
8687
8687
|
return h.split("").forEach(function(I) {
|
|
8688
|
-
|
|
8688
|
+
V = !V && I === "\\" || (V || !g[I] ? (z.push(_.length), _.length === z.length - 1 && (c += I)) : S = _.length + 1, _ += I, !1);
|
|
8689
8689
|
}), { maskChar: m, formatChars: g, prefix: c, mask: _, lastEditablePosition: S, permanents: z };
|
|
8690
8690
|
}
|
|
8691
8691
|
function b(h, m) {
|
|
@@ -8732,16 +8732,16 @@ function ih() {
|
|
|
8732
8732
|
return m;
|
|
8733
8733
|
}
|
|
8734
8734
|
function k(h, m, g, _) {
|
|
8735
|
-
var c = g + _, S = h.maskChar, z = h.mask,
|
|
8735
|
+
var c = g + _, S = h.maskChar, z = h.mask, V = h.prefix, I = m.split("");
|
|
8736
8736
|
if (S) return I.map(function(B, A) {
|
|
8737
8737
|
return A < g || c <= A ? B : b(h, A) ? z[A] : S;
|
|
8738
8738
|
}).join("");
|
|
8739
8739
|
for (var L = c; L < I.length; L++) b(h, L) && (I[L] = "");
|
|
8740
|
-
return g = Math.max(
|
|
8740
|
+
return g = Math.max(V.length, g), I.splice(g, c - g), m = I.join(""), C(h, m);
|
|
8741
8741
|
}
|
|
8742
8742
|
function F(h, m, g, _) {
|
|
8743
|
-
var c = h.mask, S = h.maskChar, z = h.prefix,
|
|
8744
|
-
return !S && _ > m.length && (m += c.slice(m.length, _)),
|
|
8743
|
+
var c = h.mask, S = h.maskChar, z = h.prefix, V = g.split(""), I = D(h, m);
|
|
8744
|
+
return !S && _ > m.length && (m += c.slice(m.length, _)), V.every(function(L) {
|
|
8745
8745
|
for (; O = L, b(h, U = _) && O !== c[U]; ) {
|
|
8746
8746
|
if (_ >= m.length && (m += c[_]), B = L, A = _, S && b(h, A) && B === S) return !0;
|
|
8747
8747
|
if (++_ >= c.length) return !1;
|
|
@@ -8751,14 +8751,14 @@ function ih() {
|
|
|
8751
8751
|
}), m;
|
|
8752
8752
|
}
|
|
8753
8753
|
function Y(h, m, g, _) {
|
|
8754
|
-
var c = h.mask, S = h.maskChar, z = g.split(""),
|
|
8754
|
+
var c = h.mask, S = h.maskChar, z = g.split(""), V = _;
|
|
8755
8755
|
return z.every(function(I) {
|
|
8756
8756
|
for (; B = I, b(h, L = _) && B !== c[L]; ) if (++_ >= c.length) return !1;
|
|
8757
8757
|
var L, B;
|
|
8758
8758
|
return (w(h, _, I) || I === S) && _++, _ < c.length;
|
|
8759
|
-
}), _ -
|
|
8759
|
+
}), _ - V;
|
|
8760
8760
|
}
|
|
8761
|
-
function
|
|
8761
|
+
function q(h, m) {
|
|
8762
8762
|
for (var g = m; 0 <= g; --g) if (!b(h, g)) return g;
|
|
8763
8763
|
return null;
|
|
8764
8764
|
}
|
|
@@ -8770,8 +8770,8 @@ function ih() {
|
|
|
8770
8770
|
return h || h === 0 ? h + "" : "";
|
|
8771
8771
|
}
|
|
8772
8772
|
function re(h, m, g, _, c) {
|
|
8773
|
-
var S = h.mask, z = h.prefix,
|
|
8774
|
-
return g.end > c.start ? A = (B = Y(h, _, L = I.slice(c.start, g.end), U)) ? c.length : 0 : I.length < _.length && (A = _.length - I.length), I = _, A && (A === 1 && !c.length && (U = c.start === g.start ? H(h, g.start) :
|
|
8773
|
+
var S = h.mask, z = h.prefix, V = h.lastEditablePosition, I = m, L = "", B = 0, A = 0, U = Math.min(c.start, g.start);
|
|
8774
|
+
return g.end > c.start ? A = (B = Y(h, _, L = I.slice(c.start, g.end), U)) ? c.length : 0 : I.length < _.length && (A = _.length - I.length), I = _, A && (A === 1 && !c.length && (U = c.start === g.start ? H(h, g.start) : q(h, g.start)), I = k(h, I, U, A)), I = F(h, I, L, U), (U += B) >= S.length ? U = S.length : U < z.length && !B ? U = z.length : U >= z.length && U < V && B && (U = H(h, U)), L || (L = null), { value: I = C(h, I), enteredString: L, selection: { start: U, end: U } };
|
|
8775
8775
|
}
|
|
8776
8776
|
function ne() {
|
|
8777
8777
|
var h = new RegExp("windows", "i"), m = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
@@ -8893,8 +8893,8 @@ function ih() {
|
|
|
8893
8893
|
}, c.handleRef = function(G) {
|
|
8894
8894
|
c.props.children == null && X(c.props.inputRef) && c.props.inputRef(G);
|
|
8895
8895
|
};
|
|
8896
|
-
var S = _.mask, z = _.maskChar,
|
|
8897
|
-
c.maskOptions = x(S, z,
|
|
8896
|
+
var S = _.mask, z = _.maskChar, V = _.formatChars, I = _.alwaysShowMask, L = _.beforeMaskedValueChange, B = _.defaultValue, A = _.value;
|
|
8897
|
+
c.maskOptions = x(S, z, V), B == null && (B = ""), A == null && (A = B);
|
|
8898
8898
|
var U = J(A);
|
|
8899
8899
|
if (c.maskOptions.mask && (I || U) && (U = C(c.maskOptions, U), X(L))) {
|
|
8900
8900
|
var O = _.value;
|
|
@@ -8907,8 +8907,8 @@ function ih() {
|
|
|
8907
8907
|
return g.componentDidMount = function() {
|
|
8908
8908
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8909
8909
|
}, g.componentDidUpdate = function() {
|
|
8910
|
-
var _ = this.previousSelection, c = this.props, S = c.beforeMaskedValueChange, z = c.alwaysShowMask,
|
|
8911
|
-
if (this.maskOptions = x(
|
|
8910
|
+
var _ = this.previousSelection, c = this.props, S = c.beforeMaskedValueChange, z = c.alwaysShowMask, V = c.mask, I = c.maskChar, L = c.formatChars, B = this.maskOptions, A = z || this.isFocused(), U = this.props.value != null, O = U ? J(this.props.value) : this.value, G = _ ? _.start : null;
|
|
8911
|
+
if (this.maskOptions = x(V, I, L), this.maskOptions.mask) {
|
|
8912
8912
|
!B.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8913
8913
|
var N = this.maskOptions.mask && this.maskOptions.mask !== B.mask;
|
|
8914
8914
|
if (B.mask || U || (O = this.getInputValue()), (N || this.maskOptions.mask && (O || A)) && (O = C(this.maskOptions, O)), N) {
|
|
@@ -8933,10 +8933,10 @@ function ih() {
|
|
|
8933
8933
|
var _, c = this.props, S = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), z = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
|
|
8934
8934
|
if (S) {
|
|
8935
8935
|
X(S) || p(!1);
|
|
8936
|
-
var
|
|
8937
|
-
|
|
8936
|
+
var V = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], I = a({}, z);
|
|
8937
|
+
V.forEach(function(B) {
|
|
8938
8938
|
return delete I[B];
|
|
8939
|
-
}), _ = S(I),
|
|
8939
|
+
}), _ = S(I), V.filter(function(B) {
|
|
8940
8940
|
return _.props[B] != null && _.props[B] !== z[B];
|
|
8941
8941
|
}).length && p(!1);
|
|
8942
8942
|
} else _ = r.createElement("input", a({ ref: this.handleRef }, z));
|
|
@@ -8972,10 +8972,10 @@ function sh() {
|
|
|
8972
8972
|
};
|
|
8973
8973
|
return aa = n, aa;
|
|
8974
8974
|
}
|
|
8975
|
-
var oa,
|
|
8975
|
+
var oa, Vo;
|
|
8976
8976
|
function lh() {
|
|
8977
|
-
if (
|
|
8978
|
-
|
|
8977
|
+
if (Vo) return oa;
|
|
8978
|
+
Vo = 1;
|
|
8979
8979
|
var n = process.env.NODE_ENV !== "production", r = function() {
|
|
8980
8980
|
};
|
|
8981
8981
|
if (n) {
|
|
@@ -9007,10 +9007,10 @@ function lh() {
|
|
|
9007
9007
|
}
|
|
9008
9008
|
return oa = r, oa;
|
|
9009
9009
|
}
|
|
9010
|
-
var ia,
|
|
9010
|
+
var ia, qo;
|
|
9011
9011
|
function ch() {
|
|
9012
|
-
if (
|
|
9013
|
-
|
|
9012
|
+
if (qo) return ia;
|
|
9013
|
+
qo = 1;
|
|
9014
9014
|
function n(h) {
|
|
9015
9015
|
return h && typeof h == "object" && "default" in h ? h.default : h;
|
|
9016
9016
|
}
|
|
@@ -9085,9 +9085,9 @@ function ch() {
|
|
|
9085
9085
|
lastEditablePosition: null,
|
|
9086
9086
|
permanents: []
|
|
9087
9087
|
};
|
|
9088
|
-
var
|
|
9088
|
+
var V = !1;
|
|
9089
9089
|
return h.split("").forEach(function(I) {
|
|
9090
|
-
!
|
|
9090
|
+
!V && I === "\\" ? V = !0 : (V || !g[I] ? (z.push(_.length), _.length === z.length - 1 && (c += I)) : S = _.length + 1, _ += I, V = !1);
|
|
9091
9091
|
}), {
|
|
9092
9092
|
maskChar: m,
|
|
9093
9093
|
formatChars: g,
|
|
@@ -9122,8 +9122,8 @@ function ch() {
|
|
|
9122
9122
|
return m.length;
|
|
9123
9123
|
}
|
|
9124
9124
|
for (var c = _.length, S = m.length; S >= _.length; S--) {
|
|
9125
|
-
var z = m[S],
|
|
9126
|
-
if (
|
|
9125
|
+
var z = m[S], V = !b(h, S) && w(h, S, z);
|
|
9126
|
+
if (V) {
|
|
9127
9127
|
c = S + 1;
|
|
9128
9128
|
break;
|
|
9129
9129
|
}
|
|
@@ -9149,23 +9149,23 @@ function ch() {
|
|
|
9149
9149
|
return m;
|
|
9150
9150
|
}
|
|
9151
9151
|
function k(h, m, g, _) {
|
|
9152
|
-
var c = g + _, S = h.maskChar, z = h.mask,
|
|
9152
|
+
var c = g + _, S = h.maskChar, z = h.mask, V = h.prefix, I = m.split("");
|
|
9153
9153
|
if (!S) {
|
|
9154
9154
|
for (var L = c; L < I.length; L++)
|
|
9155
9155
|
b(h, L) && (I[L] = "");
|
|
9156
|
-
return g = Math.max(
|
|
9156
|
+
return g = Math.max(V.length, g), I.splice(g, c - g), m = I.join(""), C(h, m);
|
|
9157
9157
|
}
|
|
9158
9158
|
return I.map(function(B, A) {
|
|
9159
9159
|
return A < g || A >= c ? B : b(h, A) ? z[A] : S;
|
|
9160
9160
|
}).join("");
|
|
9161
9161
|
}
|
|
9162
9162
|
function F(h, m, g, _) {
|
|
9163
|
-
var c = h.mask, S = h.maskChar, z = h.prefix,
|
|
9163
|
+
var c = h.mask, S = h.maskChar, z = h.prefix, V = g.split(""), I = D(h, m), L = function(U, O) {
|
|
9164
9164
|
return !b(h, U) || O === c[U];
|
|
9165
9165
|
}, B = function(U, O) {
|
|
9166
9166
|
return !S || !b(h, O) || U !== S;
|
|
9167
9167
|
};
|
|
9168
|
-
return !S && _ > m.length && (m += c.slice(m.length, _)),
|
|
9168
|
+
return !S && _ > m.length && (m += c.slice(m.length, _)), V.every(function(A) {
|
|
9169
9169
|
for (; !L(_, A); ) {
|
|
9170
9170
|
if (_ >= m.length && (m += c[_]), !B(A, _))
|
|
9171
9171
|
return !0;
|
|
@@ -9177,7 +9177,7 @@ function ch() {
|
|
|
9177
9177
|
}), m;
|
|
9178
9178
|
}
|
|
9179
9179
|
function Y(h, m, g, _) {
|
|
9180
|
-
var c = h.mask, S = h.maskChar, z = g.split(""),
|
|
9180
|
+
var c = h.mask, S = h.maskChar, z = g.split(""), V = _, I = function(B, A) {
|
|
9181
9181
|
return !b(h, B) || A === c[B];
|
|
9182
9182
|
};
|
|
9183
9183
|
return z.every(function(L) {
|
|
@@ -9186,9 +9186,9 @@ function ch() {
|
|
|
9186
9186
|
return !1;
|
|
9187
9187
|
var B = w(h, _, L) || L === S;
|
|
9188
9188
|
return B && _++, _ < c.length;
|
|
9189
|
-
}), _ -
|
|
9189
|
+
}), _ - V;
|
|
9190
9190
|
}
|
|
9191
|
-
function
|
|
9191
|
+
function q(h, m) {
|
|
9192
9192
|
for (var g = m; g >= 0; --g)
|
|
9193
9193
|
if (!b(h, g))
|
|
9194
9194
|
return g;
|
|
@@ -9204,15 +9204,15 @@ function ch() {
|
|
|
9204
9204
|
return !h && h !== 0 ? "" : h + "";
|
|
9205
9205
|
}
|
|
9206
9206
|
function re(h, m, g, _, c) {
|
|
9207
|
-
var S = h.mask, z = h.prefix,
|
|
9207
|
+
var S = h.mask, z = h.prefix, V = h.lastEditablePosition, I = m, L = "", B = 0, A = 0, U = Math.min(c.start, g.start);
|
|
9208
9208
|
if (g.end > c.start ? (L = I.slice(c.start, g.end), B = Y(h, _, L, U), B ? A = c.length : A = 0) : I.length < _.length && (A = _.length - I.length), I = _, A) {
|
|
9209
9209
|
if (A === 1 && !c.length) {
|
|
9210
9210
|
var O = c.start === g.start;
|
|
9211
|
-
U = O ? H(h, g.start) :
|
|
9211
|
+
U = O ? H(h, g.start) : q(h, g.start);
|
|
9212
9212
|
}
|
|
9213
9213
|
I = k(h, I, U, A);
|
|
9214
9214
|
}
|
|
9215
|
-
return I = F(h, I, L, U), U = U + B, U >= S.length ? U = S.length : U < z.length && !B ? U = z.length : U >= z.length && U <
|
|
9215
|
+
return I = F(h, I, L, U), U = U + B, U >= S.length ? U = S.length : U < z.length && !B ? U = z.length : U >= z.length && U < V && B && (U = H(h, U)), I = C(h, I), L || (L = null), {
|
|
9216
9216
|
value: I,
|
|
9217
9217
|
enteredString: L,
|
|
9218
9218
|
selection: {
|
|
@@ -9400,8 +9400,8 @@ function ch() {
|
|
|
9400
9400
|
}, c.handleRef = function(N) {
|
|
9401
9401
|
c.props.children == null && X(c.props.inputRef) && c.props.inputRef(N);
|
|
9402
9402
|
};
|
|
9403
|
-
var S = _.mask, z = _.maskChar,
|
|
9404
|
-
c.maskOptions = x(S, z,
|
|
9403
|
+
var S = _.mask, z = _.maskChar, V = _.formatChars, I = _.alwaysShowMask, L = _.beforeMaskedValueChange, B = _.defaultValue, A = _.value;
|
|
9404
|
+
c.maskOptions = x(S, z, V), B == null && (B = ""), A == null && (A = B);
|
|
9405
9405
|
var U = J(A);
|
|
9406
9406
|
if (c.maskOptions.mask && (I || U) && (U = C(c.maskOptions, U), X(L))) {
|
|
9407
9407
|
var O = _.value;
|
|
@@ -9421,7 +9421,7 @@ function ch() {
|
|
|
9421
9421
|
return g.componentDidMount = function() {
|
|
9422
9422
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9423
9423
|
}, g.componentDidUpdate = function() {
|
|
9424
|
-
var c = this.previousSelection, S = this.props, z = S.beforeMaskedValueChange,
|
|
9424
|
+
var c = this.previousSelection, S = this.props, z = S.beforeMaskedValueChange, V = S.alwaysShowMask, I = S.mask, L = S.maskChar, B = S.formatChars, A = this.maskOptions, U = V || this.isFocused(), O = this.props.value != null, G = O ? J(this.props.value) : this.value, N = c ? c.start : null;
|
|
9425
9425
|
if (this.maskOptions = x(I, L, B), this.maskOptions.mask)
|
|
9426
9426
|
!A.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9427
9427
|
else {
|
|
@@ -9458,13 +9458,13 @@ function ch() {
|
|
|
9458
9458
|
}, g.render = function() {
|
|
9459
9459
|
var c = this.props, S = c.mask;
|
|
9460
9460
|
c.alwaysShowMask;
|
|
9461
|
-
var z = c.maskChar,
|
|
9461
|
+
var z = c.maskChar, V = c.formatChars, I = c.inputRef;
|
|
9462
9462
|
c.beforeMaskedValueChange;
|
|
9463
9463
|
var L = c.children, B = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), A;
|
|
9464
9464
|
if (process.env.NODE_ENV !== "production" && a(
|
|
9465
9465
|
// parse mask to test against actual mask prop as this.maskOptions
|
|
9466
9466
|
// will be updated later in componentDidUpdate
|
|
9467
|
-
!B.maxLength || !x(S, z,
|
|
9467
|
+
!B.maxLength || !x(S, z, V).mask,
|
|
9468
9468
|
"react-input-mask: maxLength property shouldn't be passed to the masked input. It breaks masking and unnecessary because length is limited by the mask length."
|
|
9469
9469
|
), L) {
|
|
9470
9470
|
X(L) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
|
|
@@ -9568,7 +9568,7 @@ const gs = /* @__PURE__ */ Wr(uh), dh = "_spLabel_1oytk_43", fh = "_spLabel__tex
|
|
|
9568
9568
|
infoTooltipText: k,
|
|
9569
9569
|
classNameBaseTooltipRoot: F,
|
|
9570
9570
|
onMouseEnter: Y
|
|
9571
|
-
} = n,
|
|
9571
|
+
} = n, q = T({
|
|
9572
9572
|
[Mt.datepickerInput]: !0,
|
|
9573
9573
|
[Mt.datepickerInput_error]: !!p,
|
|
9574
9574
|
...w && { [w]: !0 }
|
|
@@ -9587,7 +9587,7 @@ const gs = /* @__PURE__ */ Wr(uh), dh = "_spLabel_1oytk_43", fh = "_spLabel__tex
|
|
|
9587
9587
|
}), X = T({
|
|
9588
9588
|
...E && { [E]: !0 }
|
|
9589
9589
|
});
|
|
9590
|
-
return /* @__PURE__ */ pe("div", { className:
|
|
9590
|
+
return /* @__PURE__ */ pe("div", { className: q, children: [
|
|
9591
9591
|
C && /* @__PURE__ */ M(
|
|
9592
9592
|
en,
|
|
9593
9593
|
{
|
|
@@ -9682,7 +9682,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
9682
9682
|
name: k,
|
|
9683
9683
|
onMouseEnter: F,
|
|
9684
9684
|
infoTooltipText: Y,
|
|
9685
|
-
tooltipPosition:
|
|
9685
|
+
tooltipPosition: q,
|
|
9686
9686
|
minDate: H,
|
|
9687
9687
|
maxDate: J,
|
|
9688
9688
|
classNameRoot: re,
|
|
@@ -9714,7 +9714,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
9714
9714
|
[$e.datePicker]: !0,
|
|
9715
9715
|
[$e.datePicker_relative]: s,
|
|
9716
9716
|
...re && { [re]: !0 }
|
|
9717
|
-
}),
|
|
9717
|
+
}), V = Ae(null), I = T({
|
|
9718
9718
|
...ne && { [ne]: !0 }
|
|
9719
9719
|
}), L = T({
|
|
9720
9720
|
...X && { [X]: !0 }
|
|
@@ -9722,16 +9722,16 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
9722
9722
|
[$e.datePicker__error]: !0,
|
|
9723
9723
|
...te && { [te]: !0 }
|
|
9724
9724
|
}), A = (N) => {
|
|
9725
|
-
N.preventDefault(), N.stopPropagation(), c(null), K(null),
|
|
9725
|
+
N.preventDefault(), N.stopPropagation(), c(null), K(null), V.current && V.current.setOpen(!1), _();
|
|
9726
9726
|
}, U = (N) => {
|
|
9727
|
-
N.preventDefault(), N.stopPropagation(),
|
|
9727
|
+
N.preventDefault(), N.stopPropagation(), V.current && V.current.setOpen(!1), c($), _();
|
|
9728
9728
|
};
|
|
9729
9729
|
return /* @__PURE__ */ pe("div", { className: z, children: [
|
|
9730
9730
|
x && /* @__PURE__ */ M(
|
|
9731
9731
|
en,
|
|
9732
9732
|
{
|
|
9733
9733
|
classNameRoot: L,
|
|
9734
|
-
tooltipPosition:
|
|
9734
|
+
tooltipPosition: q,
|
|
9735
9735
|
required: f,
|
|
9736
9736
|
label: x,
|
|
9737
9737
|
infoTooltipText: Y,
|
|
@@ -9745,7 +9745,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
9745
9745
|
popperPlacement: "bottom-end",
|
|
9746
9746
|
disabledKeyboardNavigation: !$,
|
|
9747
9747
|
onSelect: S,
|
|
9748
|
-
ref:
|
|
9748
|
+
ref: V,
|
|
9749
9749
|
closeOnScroll: u,
|
|
9750
9750
|
shouldCloseOnSelect: l,
|
|
9751
9751
|
minDate: H,
|
|
@@ -9845,13 +9845,13 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
9845
9845
|
/* @__PURE__ */ M("input", { ...o({}), disabled: e, name: a }),
|
|
9846
9846
|
t
|
|
9847
9847
|
] });
|
|
9848
|
-
}, Yh = "_spDropdown_4j9lg_43", jh = "_spDropdown__labelText_4j9lg_55", Hh = "_spDropdown__tooltipContainer_4j9lg_63", zh = "_spDropdown__dropdownList_4j9lg_68",
|
|
9848
|
+
}, Yh = "_spDropdown_4j9lg_43", jh = "_spDropdown__labelText_4j9lg_55", Hh = "_spDropdown__tooltipContainer_4j9lg_63", zh = "_spDropdown__dropdownList_4j9lg_68", Vh = "_spDropdown__dropdownListHeader_4j9lg_74", qh = "_spDropdown__dopdownListItem_4j9lg_81", Uh = "_spDropdown__dopdownListItem_textCenter_4j9lg_93", $h = "_spDropdown__downloadListItemDescription_4j9lg_97", Ft = {
|
|
9849
9849
|
spDropdown: Yh,
|
|
9850
9850
|
spDropdown__labelText: jh,
|
|
9851
9851
|
spDropdown__tooltipContainer: Hh,
|
|
9852
9852
|
spDropdown__dropdownList: zh,
|
|
9853
|
-
spDropdown__dropdownListHeader:
|
|
9854
|
-
spDropdown__dopdownListItem:
|
|
9853
|
+
spDropdown__dropdownListHeader: Vh,
|
|
9854
|
+
spDropdown__dopdownListItem: qh,
|
|
9855
9855
|
spDropdown__dopdownListItem_textCenter: Uh,
|
|
9856
9856
|
spDropdown__downloadListItemDescription: $h
|
|
9857
9857
|
}, vw = (n) => {
|
|
@@ -10042,7 +10042,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
10042
10042
|
classNameLabel: k,
|
|
10043
10043
|
classNameBaseTooltipRoot: F,
|
|
10044
10044
|
alwaysShowMask: Y = !1,
|
|
10045
|
-
mask:
|
|
10045
|
+
mask: q,
|
|
10046
10046
|
maskChar: H = "_",
|
|
10047
10047
|
...J
|
|
10048
10048
|
} = n, re = T({
|
|
@@ -10087,7 +10087,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
10087
10087
|
}
|
|
10088
10088
|
),
|
|
10089
10089
|
/* @__PURE__ */ pe("div", { className: ne, onMouseEnter: x, children: [
|
|
10090
|
-
|
|
10090
|
+
q ? /* @__PURE__ */ M(
|
|
10091
10091
|
gs,
|
|
10092
10092
|
{
|
|
10093
10093
|
className: X,
|
|
@@ -10096,7 +10096,7 @@ const Sh = "_datePicker_10jdk_43", Mh = "_datePicker_relative_10jdk_49", Th = "_
|
|
|
10096
10096
|
onBlur: h,
|
|
10097
10097
|
disabled: s,
|
|
10098
10098
|
value: t,
|
|
10099
|
-
mask:
|
|
10099
|
+
mask: q,
|
|
10100
10100
|
name: d,
|
|
10101
10101
|
maskChar: H,
|
|
10102
10102
|
...J,
|
|
@@ -10395,7 +10395,7 @@ function Cv() {
|
|
|
10395
10395
|
}
|
|
10396
10396
|
}
|
|
10397
10397
|
}
|
|
10398
|
-
var k = l, F = p, Y = s,
|
|
10398
|
+
var k = l, F = p, Y = s, q = i, H = r, J = u, re = e, ne = x, X = v, te = t, W = o, j = a, $ = d, K = !1;
|
|
10399
10399
|
function h(O) {
|
|
10400
10400
|
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(O) || C(O) === l;
|
|
10401
10401
|
}
|
|
@@ -10417,7 +10417,7 @@ function Cv() {
|
|
|
10417
10417
|
function z(O) {
|
|
10418
10418
|
return C(O) === e;
|
|
10419
10419
|
}
|
|
10420
|
-
function
|
|
10420
|
+
function V(O) {
|
|
10421
10421
|
return C(O) === x;
|
|
10422
10422
|
}
|
|
10423
10423
|
function I(O) {
|
|
@@ -10435,7 +10435,7 @@ function Cv() {
|
|
|
10435
10435
|
function U(O) {
|
|
10436
10436
|
return C(O) === d;
|
|
10437
10437
|
}
|
|
10438
|
-
we.AsyncMode = k, we.ConcurrentMode = F, we.ContextConsumer = Y, we.ContextProvider =
|
|
10438
|
+
we.AsyncMode = k, we.ConcurrentMode = F, we.ContextConsumer = Y, we.ContextProvider = q, we.Element = H, we.ForwardRef = J, we.Fragment = re, we.Lazy = ne, we.Memo = X, we.Portal = te, we.Profiler = W, we.StrictMode = j, we.Suspense = $, we.isAsyncMode = h, we.isConcurrentMode = m, we.isContextConsumer = g, we.isContextProvider = _, we.isElement = c, we.isForwardRef = S, we.isFragment = z, we.isLazy = V, we.isMemo = I, we.isPortal = L, we.isProfiler = B, we.isStrictMode = A, we.isSuspense = U, we.isValidElementType = D, we.typeOf = C;
|
|
10439
10439
|
})()), we;
|
|
10440
10440
|
}
|
|
10441
10441
|
var Xo;
|
|
@@ -10587,7 +10587,7 @@ function Mv() {
|
|
|
10587
10587
|
elementType: k(),
|
|
10588
10588
|
instanceOf: F,
|
|
10589
10589
|
node: J(),
|
|
10590
|
-
objectOf:
|
|
10590
|
+
objectOf: q,
|
|
10591
10591
|
oneOf: Y,
|
|
10592
10592
|
oneOfType: H,
|
|
10593
10593
|
shape: ne,
|
|
@@ -10603,7 +10603,7 @@ function Mv() {
|
|
|
10603
10603
|
function w(m) {
|
|
10604
10604
|
if (process.env.NODE_ENV !== "production")
|
|
10605
10605
|
var g = {}, _ = 0;
|
|
10606
|
-
function c(z,
|
|
10606
|
+
function c(z, V, I, L, B, A, U) {
|
|
10607
10607
|
if (L = L || f, A = A || I, U !== t) {
|
|
10608
10608
|
if (l) {
|
|
10609
10609
|
var O = new Error(
|
|
@@ -10618,18 +10618,18 @@ function Mv() {
|
|
|
10618
10618
|
), g[G] = !0, _++);
|
|
10619
10619
|
}
|
|
10620
10620
|
}
|
|
10621
|
-
return
|
|
10621
|
+
return V[I] == null ? z ? V[I] === null ? new b("The " + B + " `" + A + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new b("The " + B + " `" + A + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : m(V, I, L, B, A);
|
|
10622
10622
|
}
|
|
10623
10623
|
var S = c.bind(null, !1);
|
|
10624
10624
|
return S.isRequired = c.bind(null, !0), S;
|
|
10625
10625
|
}
|
|
10626
10626
|
function y(m) {
|
|
10627
|
-
function g(_, c, S, z,
|
|
10627
|
+
function g(_, c, S, z, V, I) {
|
|
10628
10628
|
var L = _[c], B = j(L);
|
|
10629
10629
|
if (B !== m) {
|
|
10630
10630
|
var A = $(L);
|
|
10631
10631
|
return new b(
|
|
10632
|
-
"Invalid " + z + " `" +
|
|
10632
|
+
"Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + S + "`, expected ") + ("`" + m + "`."),
|
|
10633
10633
|
{ expectedType: m }
|
|
10634
10634
|
);
|
|
10635
10635
|
}
|
|
@@ -10641,16 +10641,16 @@ function Mv() {
|
|
|
10641
10641
|
return w(i);
|
|
10642
10642
|
}
|
|
10643
10643
|
function D(m) {
|
|
10644
|
-
function g(_, c, S, z,
|
|
10644
|
+
function g(_, c, S, z, V) {
|
|
10645
10645
|
if (typeof m != "function")
|
|
10646
|
-
return new b("Property `" +
|
|
10646
|
+
return new b("Property `" + V + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
10647
10647
|
var I = _[c];
|
|
10648
10648
|
if (!Array.isArray(I)) {
|
|
10649
10649
|
var L = j(I);
|
|
10650
|
-
return new b("Invalid " + z + " `" +
|
|
10650
|
+
return new b("Invalid " + z + " `" + V + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected an array."));
|
|
10651
10651
|
}
|
|
10652
10652
|
for (var B = 0; B < I.length; B++) {
|
|
10653
|
-
var A = m(I, B, S, z,
|
|
10653
|
+
var A = m(I, B, S, z, V + "[" + B + "]", t);
|
|
10654
10654
|
if (A instanceof Error)
|
|
10655
10655
|
return A;
|
|
10656
10656
|
}
|
|
@@ -10660,9 +10660,9 @@ function Mv() {
|
|
|
10660
10660
|
}
|
|
10661
10661
|
function C() {
|
|
10662
10662
|
function m(g, _, c, S, z) {
|
|
10663
|
-
var
|
|
10664
|
-
if (!s(
|
|
10665
|
-
var I = j(
|
|
10663
|
+
var V = g[_];
|
|
10664
|
+
if (!s(V)) {
|
|
10665
|
+
var I = j(V);
|
|
10666
10666
|
return new b("Invalid " + S + " `" + z + "` of type " + ("`" + I + "` supplied to `" + c + "`, expected a single ReactElement."));
|
|
10667
10667
|
}
|
|
10668
10668
|
return null;
|
|
@@ -10671,9 +10671,9 @@ function Mv() {
|
|
|
10671
10671
|
}
|
|
10672
10672
|
function k() {
|
|
10673
10673
|
function m(g, _, c, S, z) {
|
|
10674
|
-
var
|
|
10675
|
-
if (!n.isValidElementType(
|
|
10676
|
-
var I = j(
|
|
10674
|
+
var V = g[_];
|
|
10675
|
+
if (!n.isValidElementType(V)) {
|
|
10676
|
+
var I = j(V);
|
|
10677
10677
|
return new b("Invalid " + S + " `" + z + "` of type " + ("`" + I + "` supplied to `" + c + "`, expected a single ReactElement type."));
|
|
10678
10678
|
}
|
|
10679
10679
|
return null;
|
|
@@ -10681,10 +10681,10 @@ function Mv() {
|
|
|
10681
10681
|
return w(m);
|
|
10682
10682
|
}
|
|
10683
10683
|
function F(m) {
|
|
10684
|
-
function g(_, c, S, z,
|
|
10684
|
+
function g(_, c, S, z, V) {
|
|
10685
10685
|
if (!(_[c] instanceof m)) {
|
|
10686
10686
|
var I = m.name || f, L = h(_[c]);
|
|
10687
|
-
return new b("Invalid " + z + " `" +
|
|
10687
|
+
return new b("Invalid " + z + " `" + V + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected ") + ("instance of `" + I + "`."));
|
|
10688
10688
|
}
|
|
10689
10689
|
return null;
|
|
10690
10690
|
}
|
|
@@ -10695,7 +10695,7 @@ function Mv() {
|
|
|
10695
10695
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
10696
10696
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
10697
10697
|
) : o("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
10698
|
-
function g(_, c, S, z,
|
|
10698
|
+
function g(_, c, S, z, V) {
|
|
10699
10699
|
for (var I = _[c], L = 0; L < m.length; L++)
|
|
10700
10700
|
if (x(I, m[L]))
|
|
10701
10701
|
return null;
|
|
@@ -10703,20 +10703,20 @@ function Mv() {
|
|
|
10703
10703
|
var G = $(O);
|
|
10704
10704
|
return G === "symbol" ? String(O) : O;
|
|
10705
10705
|
});
|
|
10706
|
-
return new b("Invalid " + z + " `" +
|
|
10706
|
+
return new b("Invalid " + z + " `" + V + "` of value `" + String(I) + "` " + ("supplied to `" + S + "`, expected one of " + B + "."));
|
|
10707
10707
|
}
|
|
10708
10708
|
return w(g);
|
|
10709
10709
|
}
|
|
10710
|
-
function
|
|
10711
|
-
function g(_, c, S, z,
|
|
10710
|
+
function q(m) {
|
|
10711
|
+
function g(_, c, S, z, V) {
|
|
10712
10712
|
if (typeof m != "function")
|
|
10713
|
-
return new b("Property `" +
|
|
10713
|
+
return new b("Property `" + V + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
10714
10714
|
var I = _[c], L = j(I);
|
|
10715
10715
|
if (L !== "object")
|
|
10716
|
-
return new b("Invalid " + z + " `" +
|
|
10716
|
+
return new b("Invalid " + z + " `" + V + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected an object."));
|
|
10717
10717
|
for (var B in I)
|
|
10718
10718
|
if (e(I, B)) {
|
|
10719
|
-
var A = m(I, B, S, z,
|
|
10719
|
+
var A = m(I, B, S, z, V + "." + B, t);
|
|
10720
10720
|
if (A instanceof Error)
|
|
10721
10721
|
return A;
|
|
10722
10722
|
}
|
|
@@ -10734,15 +10734,15 @@ function Mv() {
|
|
|
10734
10734
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(_) + " at index " + g + "."
|
|
10735
10735
|
), i;
|
|
10736
10736
|
}
|
|
10737
|
-
function c(S, z,
|
|
10737
|
+
function c(S, z, V, I, L) {
|
|
10738
10738
|
for (var B = [], A = 0; A < m.length; A++) {
|
|
10739
|
-
var U = m[A], O = U(S, z,
|
|
10739
|
+
var U = m[A], O = U(S, z, V, I, L, t);
|
|
10740
10740
|
if (O == null)
|
|
10741
10741
|
return null;
|
|
10742
10742
|
O.data && e(O.data, "expectedType") && B.push(O.data.expectedType);
|
|
10743
10743
|
}
|
|
10744
10744
|
var G = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
|
|
10745
|
-
return new b("Invalid " + I + " `" + L + "` supplied to " + ("`" +
|
|
10745
|
+
return new b("Invalid " + I + " `" + L + "` supplied to " + ("`" + V + "`" + G + "."));
|
|
10746
10746
|
}
|
|
10747
10747
|
return w(c);
|
|
10748
10748
|
}
|
|
@@ -10758,15 +10758,15 @@ function Mv() {
|
|
|
10758
10758
|
);
|
|
10759
10759
|
}
|
|
10760
10760
|
function ne(m) {
|
|
10761
|
-
function g(_, c, S, z,
|
|
10761
|
+
function g(_, c, S, z, V) {
|
|
10762
10762
|
var I = _[c], L = j(I);
|
|
10763
10763
|
if (L !== "object")
|
|
10764
|
-
return new b("Invalid " + z + " `" +
|
|
10764
|
+
return new b("Invalid " + z + " `" + V + "` of type `" + L + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
10765
10765
|
for (var B in m) {
|
|
10766
10766
|
var A = m[B];
|
|
10767
10767
|
if (typeof A != "function")
|
|
10768
|
-
return re(S, z,
|
|
10769
|
-
var U = A(I, B, S, z,
|
|
10768
|
+
return re(S, z, V, B, $(A));
|
|
10769
|
+
var U = A(I, B, S, z, V + "." + B, t);
|
|
10770
10770
|
if (U)
|
|
10771
10771
|
return U;
|
|
10772
10772
|
}
|
|
@@ -10775,21 +10775,21 @@ function Mv() {
|
|
|
10775
10775
|
return w(g);
|
|
10776
10776
|
}
|
|
10777
10777
|
function X(m) {
|
|
10778
|
-
function g(_, c, S, z,
|
|
10778
|
+
function g(_, c, S, z, V) {
|
|
10779
10779
|
var I = _[c], L = j(I);
|
|
10780
10780
|
if (L !== "object")
|
|
10781
|
-
return new b("Invalid " + z + " `" +
|
|
10781
|
+
return new b("Invalid " + z + " `" + V + "` of type `" + L + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
10782
10782
|
var B = r({}, _[c], m);
|
|
10783
10783
|
for (var A in B) {
|
|
10784
10784
|
var U = m[A];
|
|
10785
10785
|
if (e(m, A) && typeof U != "function")
|
|
10786
|
-
return re(S, z,
|
|
10786
|
+
return re(S, z, V, A, $(U));
|
|
10787
10787
|
if (!U)
|
|
10788
10788
|
return new b(
|
|
10789
|
-
"Invalid " + z + " `" +
|
|
10789
|
+
"Invalid " + z + " `" + V + "` key `" + A + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(_[c], null, " ") + `
|
|
10790
10790
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
10791
10791
|
);
|
|
10792
|
-
var O = U(I, A, S, z,
|
|
10792
|
+
var O = U(I, A, S, z, V + "." + A, t);
|
|
10793
10793
|
if (O)
|
|
10794
10794
|
return O;
|
|
10795
10795
|
}
|
|
@@ -11006,7 +11006,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11006
11006
|
const a = r();
|
|
11007
11007
|
t !== a && e(a);
|
|
11008
11008
|
}, [n]), t;
|
|
11009
|
-
},
|
|
11009
|
+
}, Vv = (n, r) => {
|
|
11010
11010
|
const t = () => gv(n, r || {}, !!r), [e, a] = Ce(t), o = Cs();
|
|
11011
11011
|
return Ee(() => {
|
|
11012
11012
|
if (o) {
|
|
@@ -11016,7 +11016,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11016
11016
|
};
|
|
11017
11017
|
}
|
|
11018
11018
|
}, [n, r]), e;
|
|
11019
|
-
},
|
|
11019
|
+
}, qv = (n) => {
|
|
11020
11020
|
const [r, t] = Ce(n.matches);
|
|
11021
11021
|
return Ee(() => {
|
|
11022
11022
|
const e = (a) => {
|
|
@@ -11030,7 +11030,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11030
11030
|
const e = Hv(r), a = zv(n);
|
|
11031
11031
|
if (!a)
|
|
11032
11032
|
throw new Error("Invalid or missing MediaQuery!");
|
|
11033
|
-
const o =
|
|
11033
|
+
const o = Vv(a, e), i = qv(o);
|
|
11034
11034
|
return Cs(), Ee(() => {
|
|
11035
11035
|
}, [i]), Ee(() => () => {
|
|
11036
11036
|
o && o.dispose();
|
|
@@ -11185,7 +11185,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11185
11185
|
classNameRoot: k,
|
|
11186
11186
|
classNameError: F,
|
|
11187
11187
|
classNameLabel: Y,
|
|
11188
|
-
classNameBaseTooltipRoot:
|
|
11188
|
+
classNameBaseTooltipRoot: q
|
|
11189
11189
|
} = n, [H, J] = Ce(!1), [re, ne] = Ce(""), X = Ae(null), te = Ae(null);
|
|
11190
11190
|
Ii(
|
|
11191
11191
|
[X],
|
|
@@ -11224,7 +11224,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11224
11224
|
}), z = T({
|
|
11225
11225
|
[Re.spSelect__value]: !0,
|
|
11226
11226
|
[Re.spSelect__value_empty]: !W
|
|
11227
|
-
}),
|
|
11227
|
+
}), V = T({
|
|
11228
11228
|
[Re.spSelect__icon]: !0
|
|
11229
11229
|
}), I = T({
|
|
11230
11230
|
[Re.spSelect__list]: !0,
|
|
@@ -11251,7 +11251,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11251
11251
|
{
|
|
11252
11252
|
name: ce.SelectChevronDown,
|
|
11253
11253
|
rotate: H ? 180 : void 0,
|
|
11254
|
-
className:
|
|
11254
|
+
className: V
|
|
11255
11255
|
}
|
|
11256
11256
|
)
|
|
11257
11257
|
]
|
|
@@ -11299,7 +11299,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11299
11299
|
},
|
|
11300
11300
|
children: [
|
|
11301
11301
|
N.label,
|
|
11302
|
-
Q && /* @__PURE__ */ M(Ne, { name: ce.Check, className:
|
|
11302
|
+
Q && /* @__PURE__ */ M(Ne, { name: ce.Check, className: V })
|
|
11303
11303
|
]
|
|
11304
11304
|
},
|
|
11305
11305
|
N.value
|
|
@@ -11325,7 +11325,7 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11325
11325
|
required: x,
|
|
11326
11326
|
label: u,
|
|
11327
11327
|
infoTooltipText: d,
|
|
11328
|
-
classNameBaseTooltipRoot:
|
|
11328
|
+
classNameBaseTooltipRoot: q
|
|
11329
11329
|
}
|
|
11330
11330
|
),
|
|
11331
11331
|
/* @__PURE__ */ pe("div", { className: c, onMouseEnter: l, children: [
|
|
@@ -11406,8 +11406,8 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11406
11406
|
const { text: k, rowIndex: F, colIndex: Y } = C;
|
|
11407
11407
|
d?.rowIndex === F && d?.colIndex === Y || navigator.clipboard.writeText(k).then(() => {
|
|
11408
11408
|
f({ rowIndex: F, colIndex: Y });
|
|
11409
|
-
}).catch((
|
|
11410
|
-
console.error("Ошибка при копировании:",
|
|
11409
|
+
}).catch((q) => {
|
|
11410
|
+
console.error("Ошибка при копировании:", q);
|
|
11411
11411
|
});
|
|
11412
11412
|
}, x = () => {
|
|
11413
11413
|
f(null);
|
|
@@ -11417,10 +11417,10 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11417
11417
|
}) => {
|
|
11418
11418
|
const F = C[k.key];
|
|
11419
11419
|
if (!F) return null;
|
|
11420
|
-
const [Y,
|
|
11420
|
+
const [Y, q] = F.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
11421
11421
|
return /* @__PURE__ */ pe("span", { children: [
|
|
11422
11422
|
Y,
|
|
11423
|
-
|
|
11423
|
+
q && /* @__PURE__ */ M("span", { className: p, children: ` ${q}` })
|
|
11424
11424
|
] });
|
|
11425
11425
|
}, y = () => t && Array.isArray(t) && t.length > 0 ? /* @__PURE__ */ pe("table", { className: s, children: [
|
|
11426
11426
|
/* @__PURE__ */ M("colgroup", { children: i.map((C, k, F) => /* @__PURE__ */ M(
|
|
@@ -11434,11 +11434,11 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11434
11434
|
)) }),
|
|
11435
11435
|
/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ M("tr", { children: i.map((C, k) => /* @__PURE__ */ M("th", { children: C.title }, k)) }) }),
|
|
11436
11436
|
/* @__PURE__ */ M("tbody", { children: t.map((C, k) => C ? /* @__PURE__ */ M("tr", { children: i.map((F, Y) => {
|
|
11437
|
-
const
|
|
11437
|
+
const q = d?.rowIndex === k && d?.colIndex === Y;
|
|
11438
11438
|
return /* @__PURE__ */ M(
|
|
11439
11439
|
"td",
|
|
11440
11440
|
{
|
|
11441
|
-
onMouseLeave:
|
|
11441
|
+
onMouseLeave: q ? x : void 0,
|
|
11442
11442
|
children: /* @__PURE__ */ pe("div", { className: l, children: [
|
|
11443
11443
|
/* @__PURE__ */ M("span", { children: F.isColorContentsCurlyBrackets ? w({ row: C, col: F }) : C[F.key] }),
|
|
11444
11444
|
!Ta(C[F.key]) && F.isBeCopiedValue && /* @__PURE__ */ M(
|
|
@@ -11446,9 +11446,9 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11446
11446
|
{
|
|
11447
11447
|
className: T({
|
|
11448
11448
|
[nt.spTable__tdContentCopyIcon]: !0,
|
|
11449
|
-
[nt.spTable__tdContentCopyIcon_copied]:
|
|
11449
|
+
[nt.spTable__tdContentCopyIcon_copied]: q
|
|
11450
11450
|
}),
|
|
11451
|
-
name:
|
|
11451
|
+
name: q ? ce.Check : ce.Copy,
|
|
11452
11452
|
onClick: () => {
|
|
11453
11453
|
const H = C[F.key];
|
|
11454
11454
|
if (!H) return null;
|
|
@@ -11474,14 +11474,14 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11474
11474
|
children: t.map((C, k) => C ? /* @__PURE__ */ M("div", { children: i.map((F, Y) => {
|
|
11475
11475
|
if (Ta(C[F.key]))
|
|
11476
11476
|
return null;
|
|
11477
|
-
const
|
|
11477
|
+
const q = d?.rowIndex === k && d?.colIndex === Y;
|
|
11478
11478
|
return /* @__PURE__ */ pe(
|
|
11479
11479
|
"div",
|
|
11480
11480
|
{
|
|
11481
11481
|
className: T({
|
|
11482
11482
|
[nt.spStringsGroup__groupItem]: !0
|
|
11483
11483
|
}),
|
|
11484
|
-
onMouseLeave:
|
|
11484
|
+
onMouseLeave: q ? x : void 0,
|
|
11485
11485
|
children: [
|
|
11486
11486
|
/* @__PURE__ */ M(
|
|
11487
11487
|
"div",
|
|
@@ -11505,9 +11505,9 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11505
11505
|
{
|
|
11506
11506
|
className: T({
|
|
11507
11507
|
[nt.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
11508
|
-
[nt.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
11508
|
+
[nt.spStringsGroup__groupItemContentCopyIcon_copied]: q
|
|
11509
11509
|
}),
|
|
11510
|
-
name:
|
|
11510
|
+
name: q ? ce.Check : ce.Copy,
|
|
11511
11511
|
onClick: () => {
|
|
11512
11512
|
const H = C[F.key];
|
|
11513
11513
|
if (!H) return null;
|
|
@@ -11530,17 +11530,17 @@ const Fv = (n) => `not ${n}`, Av = (n, r) => {
|
|
|
11530
11530
|
}
|
|
11531
11531
|
) : b();
|
|
11532
11532
|
return e ? a ? y() : E() : y();
|
|
11533
|
-
}, Y_ = "
|
|
11533
|
+
}, Y_ = "_spTabs_1lhew_43", j_ = "_spTabs_separated_1lhew_48", H_ = "_spTabs__tabElement_1lhew_48", z_ = "_spTabs__tabElement_active_1lhew_85", V_ = "_spTabs__tooltip_1lhew_92", Ht = {
|
|
11534
11534
|
spTabs: Y_,
|
|
11535
11535
|
spTabs_separated: j_,
|
|
11536
|
-
"spTabs--size-md": "_spTabs--size-
|
|
11536
|
+
"spTabs--size-md": "_spTabs--size-md_1lhew_48",
|
|
11537
11537
|
spTabs__tabElement: H_,
|
|
11538
|
-
"spTabs--size-lg": "_spTabs--size-
|
|
11539
|
-
"spTabs--variant-contained": "_spTabs--variant-
|
|
11538
|
+
"spTabs--size-lg": "_spTabs--size-lg_1lhew_51",
|
|
11539
|
+
"spTabs--variant-contained": "_spTabs--variant-contained_1lhew_54",
|
|
11540
11540
|
spTabs__tabElement_active: z_,
|
|
11541
|
-
spTabs__tooltip:
|
|
11542
|
-
"spTabs--variant-outlined": "_spTabs--variant-
|
|
11543
|
-
"spTabs--variant-filled": "_spTabs--variant-
|
|
11541
|
+
spTabs__tooltip: V_,
|
|
11542
|
+
"spTabs--variant-outlined": "_spTabs--variant-outlined_1lhew_95",
|
|
11543
|
+
"spTabs--variant-filled": "_spTabs--variant-filled_1lhew_114"
|
|
11544
11544
|
}, Cw = (n) => {
|
|
11545
11545
|
const {
|
|
11546
11546
|
panes: r,
|
|
@@ -11596,7 +11596,7 @@ function Ea() {
|
|
|
11596
11596
|
return n;
|
|
11597
11597
|
}, Ea.apply(null, arguments);
|
|
11598
11598
|
}
|
|
11599
|
-
function
|
|
11599
|
+
function q_(n, r) {
|
|
11600
11600
|
if (n == null) return {};
|
|
11601
11601
|
var t = {};
|
|
11602
11602
|
for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
|
|
@@ -11721,7 +11721,7 @@ var ng = function(r, t) {
|
|
|
11721
11721
|
}, ag = function(r) {
|
|
11722
11722
|
Xa(document.fonts, "loadingdone", r);
|
|
11723
11723
|
}, og = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], ig = function(r, t) {
|
|
11724
|
-
var e = r.cacheMeasurements, a = r.maxRows, o = r.minRows, i = r.onChange, s = i === void 0 ? pi : i, l = r.onHeightChange, p = l === void 0 ? pi : l, u =
|
|
11724
|
+
var e = r.cacheMeasurements, a = r.maxRows, o = r.minRows, i = r.onChange, s = i === void 0 ? pi : i, l = r.onHeightChange, p = l === void 0 ? pi : l, u = q_(r, og), d = u.value !== void 0, f = R.useRef(null), v = Q_(f, t), x = R.useRef(0), b = R.useRef(), w = function() {
|
|
11725
11725
|
var D = f.current, C = e && b.current ? b.current : tg(D);
|
|
11726
11726
|
if (C) {
|
|
11727
11727
|
b.current = C;
|
|
@@ -11786,7 +11786,7 @@ const lg = "_spTextarea_18zsl_43", cg = "_spTextarea_fluidHeight_18zsl_47", pg =
|
|
|
11786
11786
|
maxLength: k,
|
|
11787
11787
|
minLength: F,
|
|
11788
11788
|
readOnly: Y = !1,
|
|
11789
|
-
autoFocus:
|
|
11789
|
+
autoFocus: q = !1,
|
|
11790
11790
|
autoComplete: H = "off",
|
|
11791
11791
|
spellCheck: J = !0,
|
|
11792
11792
|
wrap: re = "soft",
|
|
@@ -11817,9 +11817,9 @@ const lg = "_spTextarea_18zsl_43", cg = "_spTextarea_fluidHeight_18zsl_47", pg =
|
|
|
11817
11817
|
[rt.spTextarea__error]: !0,
|
|
11818
11818
|
[rt.spTextarea__error_absolutePosition]: l,
|
|
11819
11819
|
...j && { [j]: !0 }
|
|
11820
|
-
}), S = (
|
|
11821
|
-
const { value: I, name: L } =
|
|
11822
|
-
e(
|
|
11820
|
+
}), S = (V) => {
|
|
11821
|
+
const { value: I, name: L } = V.target;
|
|
11822
|
+
e(V, { value: I, name: L });
|
|
11823
11823
|
};
|
|
11824
11824
|
return /* @__PURE__ */ pe("div", { className: h, children: [
|
|
11825
11825
|
a && /* @__PURE__ */ M(
|
|
@@ -11839,7 +11839,7 @@ const lg = "_spTextarea_18zsl_43", cg = "_spTextarea_fluidHeight_18zsl_47", pg =
|
|
|
11839
11839
|
placeholder: w,
|
|
11840
11840
|
disabled: i,
|
|
11841
11841
|
readOnly: Y,
|
|
11842
|
-
autoFocus:
|
|
11842
|
+
autoFocus: q,
|
|
11843
11843
|
rows: E,
|
|
11844
11844
|
cols: C,
|
|
11845
11845
|
maxLength: k,
|
|
@@ -11863,7 +11863,7 @@ const lg = "_spTextarea_18zsl_43", cg = "_spTextarea_fluidHeight_18zsl_47", pg =
|
|
|
11863
11863
|
placeholder: w,
|
|
11864
11864
|
disabled: i,
|
|
11865
11865
|
readOnly: Y,
|
|
11866
|
-
autoFocus:
|
|
11866
|
+
autoFocus: q,
|
|
11867
11867
|
rows: E,
|
|
11868
11868
|
cols: C,
|
|
11869
11869
|
maxLength: k,
|
|
@@ -13354,7 +13354,7 @@ function Ms(n, r, t) {
|
|
|
13354
13354
|
return r in n ? Object.defineProperty(n, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[r] = t, n;
|
|
13355
13355
|
}
|
|
13356
13356
|
function Rn(n, r) {
|
|
13357
|
-
return
|
|
13357
|
+
return qg(n) || Vg(n, r) || Ts(n, r) || zg();
|
|
13358
13358
|
}
|
|
13359
13359
|
function zg() {
|
|
13360
13360
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -13374,7 +13374,7 @@ function Pa(n, r) {
|
|
|
13374
13374
|
e[t] = n[t];
|
|
13375
13375
|
return e;
|
|
13376
13376
|
}
|
|
13377
|
-
function
|
|
13377
|
+
function Vg(n, r) {
|
|
13378
13378
|
var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
13379
13379
|
if (t != null) {
|
|
13380
13380
|
var e = [], a = !0, o = !1, i, s;
|
|
@@ -13393,7 +13393,7 @@ function qg(n, r) {
|
|
|
13393
13393
|
return e;
|
|
13394
13394
|
}
|
|
13395
13395
|
}
|
|
13396
|
-
function
|
|
13396
|
+
function qg(n) {
|
|
13397
13397
|
if (Array.isArray(n)) return n;
|
|
13398
13398
|
}
|
|
13399
13399
|
var Ug = typeof ga == "function" ? ga : ga.default, Es = "file-invalid-type", Ns = "file-too-large", Ps = "file-too-small", $g = "too-many-files", ba = {
|
|
@@ -13425,17 +13425,17 @@ function Is(n, r) {
|
|
|
13425
13425
|
return [t, t ? null : Qg(r)];
|
|
13426
13426
|
}
|
|
13427
13427
|
function Rs(n, r, t) {
|
|
13428
|
-
if (
|
|
13429
|
-
if (
|
|
13428
|
+
if (qt(n.size))
|
|
13429
|
+
if (qt(r) && qt(t)) {
|
|
13430
13430
|
if (n.size > t) return [!1, bi(t)];
|
|
13431
13431
|
if (n.size < r) return [!1, wi(r)];
|
|
13432
13432
|
} else {
|
|
13433
|
-
if (
|
|
13434
|
-
if (
|
|
13433
|
+
if (qt(r) && n.size < r) return [!1, wi(r)];
|
|
13434
|
+
if (qt(t) && n.size > t) return [!1, bi(t)];
|
|
13435
13435
|
}
|
|
13436
13436
|
return [!0, null];
|
|
13437
13437
|
}
|
|
13438
|
-
function
|
|
13438
|
+
function qt(n) {
|
|
13439
13439
|
return n != null;
|
|
13440
13440
|
}
|
|
13441
13441
|
function Kg(n) {
|
|
@@ -13481,7 +13481,7 @@ function eb() {
|
|
|
13481
13481
|
return "showOpenFilePicker" in window;
|
|
13482
13482
|
}
|
|
13483
13483
|
function tb(n) {
|
|
13484
|
-
if (
|
|
13484
|
+
if (qt(n)) {
|
|
13485
13485
|
var r = Object.entries(n).filter(function(t) {
|
|
13486
13486
|
var e = Rn(t, 2), a = e[0], o = e[1], i = !0;
|
|
13487
13487
|
return Os(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), i = !1), (!Array.isArray(o) || !o.every(Ls)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), i = !1), i;
|
|
@@ -13498,7 +13498,7 @@ function tb(n) {
|
|
|
13498
13498
|
return n;
|
|
13499
13499
|
}
|
|
13500
13500
|
function nb(n) {
|
|
13501
|
-
if (
|
|
13501
|
+
if (qt(n))
|
|
13502
13502
|
return Object.entries(n).reduce(function(r, t) {
|
|
13503
13503
|
var e = Rn(t, 2), a = e[0], o = e[1];
|
|
13504
13504
|
return [].concat(vi(r), [a], vi(o));
|
|
@@ -13622,7 +13622,7 @@ var Za = /* @__PURE__ */ Di(function(n, r) {
|
|
|
13622
13622
|
return {
|
|
13623
13623
|
open: o
|
|
13624
13624
|
};
|
|
13625
|
-
}, [o]), /* @__PURE__ */ P.createElement(
|
|
13625
|
+
}, [o]), /* @__PURE__ */ P.createElement(Vs, null, t(Me(Me({}, i), {}, {
|
|
13626
13626
|
open: o
|
|
13627
13627
|
})));
|
|
13628
13628
|
});
|
|
@@ -13822,7 +13822,7 @@ var Oa = {
|
|
|
13822
13822
|
fileRejections: []
|
|
13823
13823
|
};
|
|
13824
13824
|
function Ws() {
|
|
13825
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = Me(Me({}, As), n), t = r.accept, e = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, i = r.minSize, s = r.multiple, l = r.maxFiles, p = r.onDragEnter, u = r.onDragLeave, d = r.onDragOver, f = r.onDrop, v = r.onDropAccepted, x = r.onDropRejected, b = r.onFileDialogCancel, w = r.onFileDialogOpen, y = r.useFsAccessApi, E = r.autoFocus, D = r.preventDropOnDocument, C = r.noClick, k = r.noKeyboard, F = r.noDrag, Y = r.noDragEventsBubbling,
|
|
13825
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = Me(Me({}, As), n), t = r.accept, e = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, i = r.minSize, s = r.multiple, l = r.maxFiles, p = r.onDragEnter, u = r.onDragLeave, d = r.onDragOver, f = r.onDrop, v = r.onDropAccepted, x = r.onDropRejected, b = r.onFileDialogCancel, w = r.onFileDialogOpen, y = r.useFsAccessApi, E = r.autoFocus, D = r.preventDropOnDocument, C = r.noClick, k = r.noKeyboard, F = r.noDrag, Y = r.noDragEventsBubbling, q = r.onError, H = r.validator, J = rn(function() {
|
|
13826
13826
|
return nb(t);
|
|
13827
13827
|
}, [t]), re = rn(function() {
|
|
13828
13828
|
return tb(t);
|
|
@@ -13856,9 +13856,9 @@ function Ws() {
|
|
|
13856
13856
|
return !e && E && te.current && te.current.focus(), function() {
|
|
13857
13857
|
};
|
|
13858
13858
|
}, [te, E, e]);
|
|
13859
|
-
var
|
|
13860
|
-
|
|
13861
|
-
}, [
|
|
13859
|
+
var V = Ge(function(Z) {
|
|
13860
|
+
q ? q(Z) : console.error(Z);
|
|
13861
|
+
}, [q]), I = Ge(function(Z) {
|
|
13862
13862
|
Z.preventDefault(), Z.persist(), ve(Z), S.current = [].concat(cb(S.current), [Z.target]), er(Z) && Promise.resolve(a(Z)).then(function(se) {
|
|
13863
13863
|
if (!(yr(Z) && !Y)) {
|
|
13864
13864
|
var Se = se.length, Ie = Se > 0 && Kg({
|
|
@@ -13878,9 +13878,9 @@ function Ws() {
|
|
|
13878
13878
|
}), p && p(Z);
|
|
13879
13879
|
}
|
|
13880
13880
|
}).catch(function(se) {
|
|
13881
|
-
return
|
|
13881
|
+
return V(se);
|
|
13882
13882
|
});
|
|
13883
|
-
}, [a, p,
|
|
13883
|
+
}, [a, p, V, Y, J, i, o, s, l, H]), L = Ge(function(Z) {
|
|
13884
13884
|
Z.preventDefault(), Z.persist(), ve(Z);
|
|
13885
13885
|
var se = er(Z);
|
|
13886
13886
|
if (se && Z.dataTransfer)
|
|
@@ -13903,14 +13903,14 @@ function Ws() {
|
|
|
13903
13903
|
}, [te, u, Y]), A = Ge(function(Z, se) {
|
|
13904
13904
|
var Se = [], Ie = [];
|
|
13905
13905
|
Z.forEach(function(Je) {
|
|
13906
|
-
var wn = Is(Je, J), nn = wa(wn, 2), Br = nn[0], Yr = nn[1], jr = Rs(Je, i, o), Wn = wa(jr, 2), Hr = Wn[0], zr = Wn[1],
|
|
13907
|
-
if (Br && Hr && !
|
|
13906
|
+
var wn = Is(Je, J), nn = wa(wn, 2), Br = nn[0], Yr = nn[1], jr = Rs(Je, i, o), Wn = wa(jr, 2), Hr = Wn[0], zr = Wn[1], Vr = H ? H(Je) : null;
|
|
13907
|
+
if (Br && Hr && !Vr)
|
|
13908
13908
|
Se.push(Je);
|
|
13909
13909
|
else {
|
|
13910
|
-
var
|
|
13911
|
-
|
|
13910
|
+
var qr = [Yr, zr];
|
|
13911
|
+
Vr && (qr = qr.concat(Vr)), Ie.push({
|
|
13912
13912
|
file: Je,
|
|
13913
|
-
errors:
|
|
13913
|
+
errors: qr.filter(function(Bs) {
|
|
13914
13914
|
return Bs;
|
|
13915
13915
|
})
|
|
13916
13916
|
});
|
|
@@ -13930,11 +13930,11 @@ function Ws() {
|
|
|
13930
13930
|
Z.preventDefault(), Z.persist(), ve(Z), S.current = [], er(Z) && Promise.resolve(a(Z)).then(function(se) {
|
|
13931
13931
|
yr(Z) && !Y || A(se, Z);
|
|
13932
13932
|
}).catch(function(se) {
|
|
13933
|
-
return
|
|
13933
|
+
return V(se);
|
|
13934
13934
|
}), h({
|
|
13935
13935
|
type: "reset"
|
|
13936
13936
|
});
|
|
13937
|
-
}, [a, A,
|
|
13937
|
+
}, [a, A, V, Y]), O = Ge(function() {
|
|
13938
13938
|
if (_.current) {
|
|
13939
13939
|
h({
|
|
13940
13940
|
type: "openDialog"
|
|
@@ -13952,14 +13952,14 @@ function Ws() {
|
|
|
13952
13952
|
}).catch(function(se) {
|
|
13953
13953
|
rb(se) ? (X(se), h({
|
|
13954
13954
|
type: "closeDialog"
|
|
13955
|
-
})) : ab(se) ? (_.current = !1, W.current ? (W.current.value = null, W.current.click()) :
|
|
13955
|
+
})) : ab(se) ? (_.current = !1, W.current ? (W.current.value = null, W.current.click()) : V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : V(se);
|
|
13956
13956
|
});
|
|
13957
13957
|
return;
|
|
13958
13958
|
}
|
|
13959
13959
|
W.current && (h({
|
|
13960
13960
|
type: "openDialog"
|
|
13961
13961
|
}), ne(), W.current.value = null, W.current.click());
|
|
13962
|
-
}, [h, ne, X, y, A,
|
|
13962
|
+
}, [h, ne, X, y, A, V, re, s]), G = Ge(function(Z) {
|
|
13963
13963
|
!te.current || !te.current.isEqualNode(Z.target) || (Z.key === " " || Z.key === "Enter" || Z.keyCode === 32 || Z.keyCode === 13) && (Z.preventDefault(), O());
|
|
13964
13964
|
}, [te, O]), N = Ge(function() {
|
|
13965
13965
|
h({
|
|
@@ -14070,7 +14070,7 @@ function _b(n, r) {
|
|
|
14070
14070
|
}
|
|
14071
14071
|
function ki() {
|
|
14072
14072
|
}
|
|
14073
|
-
const gb = (n) => Ws(n), bb = "_spUploadFiles_az1bh_43", wb = "_spUploadFiles_error_az1bh_51", xb = "_spUploadFiles__control_az1bh_51", yb = "_spUploadFiles__fileNameContainer_az1bh_55", kb = "_spUploadFiles__fileName_dragError_az1bh_59", Cb = "_spUploadFiles__startIcon_error_az1bh_62", Db = "_spUploadFiles__placeholderContainer_az1bh_65", Sb = "_spUploadFiles__placeholderContainer_withUloadTooltip_az1bh_75", Mb = "_spUploadFiles__placeholder_az1bh_65", Tb = "_spUploadFiles__control_loading_az1bh_107", Eb = "_shimmer_az1bh_1", Nb = "_spUploadFiles__fileName_az1bh_55", Pb = "_spUploadFiles_fileUploaded_az1bh_154", Ib = "_spUploadFiles_disabled_az1bh_154", Rb = "_spUploadFiles__fileNamesList_az1bh_165", Ob = "_spUploadFiles__fileNamesList_loading_az1bh_176", Lb = "_spUploadFiles__fileNamesListItem_az1bh_181", Fb = "_spUploadFiles__fileNamesListItem__iconContainer_az1bh_218", Ab = "_spUploadFiles__fileNamesListItem__iconContainer_error_az1bh_227", Wb = "_spUploadFiles__fileNamesListItem__mainContent_az1bh_232", Bb = "_spUploadFiles__fileNamesListItem__fileNameWrapper_az1bh_239", Yb = "_spUploadFiles__fileNamesListItem__fileName_az1bh_239", jb = "_spUploadFiles__fileNamesListItem__fileNameTooltip_az1bh_246", Hb = "_spUploadFiles__fileNamesListItem__description_az1bh_249", zb = "_spUploadFiles__fileNamesListItem__description__tooltipContent_az1bh_254",
|
|
14073
|
+
const gb = (n) => Ws(n), bb = "_spUploadFiles_az1bh_43", wb = "_spUploadFiles_error_az1bh_51", xb = "_spUploadFiles__control_az1bh_51", yb = "_spUploadFiles__fileNameContainer_az1bh_55", kb = "_spUploadFiles__fileName_dragError_az1bh_59", Cb = "_spUploadFiles__startIcon_error_az1bh_62", Db = "_spUploadFiles__placeholderContainer_az1bh_65", Sb = "_spUploadFiles__placeholderContainer_withUloadTooltip_az1bh_75", Mb = "_spUploadFiles__placeholder_az1bh_65", Tb = "_spUploadFiles__control_loading_az1bh_107", Eb = "_shimmer_az1bh_1", Nb = "_spUploadFiles__fileName_az1bh_55", Pb = "_spUploadFiles_fileUploaded_az1bh_154", Ib = "_spUploadFiles_disabled_az1bh_154", Rb = "_spUploadFiles__fileNamesList_az1bh_165", Ob = "_spUploadFiles__fileNamesList_loading_az1bh_176", Lb = "_spUploadFiles__fileNamesListItem_az1bh_181", Fb = "_spUploadFiles__fileNamesListItem__iconContainer_az1bh_218", Ab = "_spUploadFiles__fileNamesListItem__iconContainer_error_az1bh_227", Wb = "_spUploadFiles__fileNamesListItem__mainContent_az1bh_232", Bb = "_spUploadFiles__fileNamesListItem__fileNameWrapper_az1bh_239", Yb = "_spUploadFiles__fileNamesListItem__fileName_az1bh_239", jb = "_spUploadFiles__fileNamesListItem__fileNameTooltip_az1bh_246", Hb = "_spUploadFiles__fileNamesListItem__description_az1bh_249", zb = "_spUploadFiles__fileNamesListItem__description__tooltipContent_az1bh_254", Vb = "_spUploadFiles__fileNamesListItem__description_error_az1bh_257", qb = "_spUploadFiles__fileNamesListItemDelete_az1bh_260", Ub = "_spUploadFiles__fileNamesListItemDelete_error_az1bh_277", $b = "_spUploadFiles__tooltip_az1bh_287", Qb = "_spUploadFiles__delete_az1bh_290", Gb = "_spUploadFiles__delete_loading_az1bh_294", Kb = "_spUploadFiles__error_az1bh_303", _e = {
|
|
14074
14074
|
spUploadFiles: bb,
|
|
14075
14075
|
spUploadFiles_error: wb,
|
|
14076
14076
|
spUploadFiles__control: xb,
|
|
@@ -14098,8 +14098,8 @@ const gb = (n) => Ws(n), bb = "_spUploadFiles_az1bh_43", wb = "_spUploadFiles_er
|
|
|
14098
14098
|
spUploadFiles__fileNamesListItem__fileNameTooltip: jb,
|
|
14099
14099
|
spUploadFiles__fileNamesListItem__description: Hb,
|
|
14100
14100
|
spUploadFiles__fileNamesListItem__description__tooltipContent: zb,
|
|
14101
|
-
spUploadFiles__fileNamesListItem__description_error:
|
|
14102
|
-
spUploadFiles__fileNamesListItemDelete:
|
|
14101
|
+
spUploadFiles__fileNamesListItem__description_error: Vb,
|
|
14102
|
+
spUploadFiles__fileNamesListItemDelete: qb,
|
|
14103
14103
|
spUploadFiles__fileNamesListItemDelete_error: Ub,
|
|
14104
14104
|
spUploadFiles__tooltip: $b,
|
|
14105
14105
|
spUploadFiles__delete: Qb,
|
|
@@ -14158,7 +14158,7 @@ const gb = (n) => Ws(n), bb = "_spUploadFiles_az1bh_43", wb = "_spUploadFiles_er
|
|
|
14158
14158
|
onDrop: C,
|
|
14159
14159
|
multiple: p,
|
|
14160
14160
|
disabled: l
|
|
14161
|
-
}), Y = E ? E?.length > 0 : void 0,
|
|
14161
|
+
}), Y = E ? E?.length > 0 : void 0, q = [...u.map((I) => ({ file: I, errors: null })), ...E], H = q?.length > 0 || E?.length > 0, J = t === "input", re = t === "dropzone", ne = T({
|
|
14162
14162
|
[_e.spUploadFiles]: !0,
|
|
14163
14163
|
[_e[`spUploadFiles--variant-${t}`]]: t,
|
|
14164
14164
|
[_e.spUploadFiles_error]: !p && (Y || x && x.length > 0),
|
|
@@ -14208,12 +14208,12 @@ const gb = (n) => Ws(n), bb = "_spUploadFiles_az1bh_43", wb = "_spUploadFiles_er
|
|
|
14208
14208
|
return /* @__PURE__ */ M(
|
|
14209
14209
|
Dn,
|
|
14210
14210
|
{
|
|
14211
|
-
text:
|
|
14211
|
+
text: q[0].file.name,
|
|
14212
14212
|
classNameTooltipRoot: T(_e.spUploadFiles__fileNameContainer),
|
|
14213
14213
|
classNameRoot: T(_e.spUploadFiles__fileName)
|
|
14214
14214
|
}
|
|
14215
14215
|
);
|
|
14216
|
-
}, _ = () => /* @__PURE__ */ M("ul", { className: te, children:
|
|
14216
|
+
}, _ = () => /* @__PURE__ */ M("ul", { className: te, children: q.map(({ file: I, errors: L }, B) => {
|
|
14217
14217
|
const A = L ? L?.length > 0 : void 0, U = () => L ? L?.map(Xb).join(", ") : "";
|
|
14218
14218
|
return /* @__PURE__ */ pe(
|
|
14219
14219
|
"li",
|