test-stpr-ui-kit 0.5.46 → 0.5.48
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.js
CHANGED
|
@@ -468,70 +468,72 @@ const Gl = "_modalWrapper_190yy_43", Kl = "_modalWrapper__modal_190yy_76", Xl =
|
|
|
468
468
|
] }) });
|
|
469
469
|
}, rc = (n) => {
|
|
470
470
|
const {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
471
|
+
classNameApplyButtonsRoot: a,
|
|
472
|
+
zIndex: t,
|
|
473
|
+
header: e,
|
|
474
|
+
subHeader: r,
|
|
475
|
+
cancelBtnContent: o,
|
|
476
|
+
cancelBtnDisabled: i,
|
|
477
|
+
cancelBtnIconName: s,
|
|
478
|
+
submitBtnContent: l,
|
|
479
|
+
submitBtnIconName: p,
|
|
480
|
+
submit: u,
|
|
481
|
+
disabled: d,
|
|
482
|
+
formId: m,
|
|
483
|
+
onClose: v,
|
|
484
|
+
applyButtonsMobileDirection: w = "column",
|
|
485
|
+
applyButtonsAlign: b = "right",
|
|
486
|
+
modalVerticalAlign: y = "top",
|
|
487
|
+
textAlign: C = "left",
|
|
488
|
+
loading: T,
|
|
489
|
+
isVisibleCloseButton: S,
|
|
490
|
+
isHiddenModal: D,
|
|
491
|
+
size: x,
|
|
492
|
+
classNameRoot: A,
|
|
493
|
+
classNameLayerRoot: Y,
|
|
494
|
+
submitBtnVariant: P,
|
|
495
|
+
cancelBtnVariant: L,
|
|
496
|
+
submitBtnClassName: K,
|
|
497
|
+
cancelBtnClassName: ce,
|
|
498
|
+
classNameHeaderRoot: ne,
|
|
499
|
+
classNameFooterRoot: G
|
|
499
500
|
} = n;
|
|
500
501
|
return /* @__PURE__ */ M(
|
|
501
502
|
nc,
|
|
502
503
|
{
|
|
503
|
-
zIndex:
|
|
504
|
-
header:
|
|
505
|
-
onClose:
|
|
506
|
-
modalVerticalAlign:
|
|
507
|
-
textAlign:
|
|
508
|
-
subHeader:
|
|
509
|
-
isVisibleCloseButton:
|
|
510
|
-
isHiddenModal:
|
|
511
|
-
size:
|
|
512
|
-
classNameRoot:
|
|
513
|
-
classNameLayerRoot:
|
|
514
|
-
classNameHeaderRoot:
|
|
515
|
-
classNameFooterRoot:
|
|
516
|
-
footer:
|
|
504
|
+
zIndex: t,
|
|
505
|
+
header: e,
|
|
506
|
+
onClose: v,
|
|
507
|
+
modalVerticalAlign: y,
|
|
508
|
+
textAlign: C,
|
|
509
|
+
subHeader: r,
|
|
510
|
+
isVisibleCloseButton: S,
|
|
511
|
+
isHiddenModal: D,
|
|
512
|
+
size: x,
|
|
513
|
+
classNameRoot: A,
|
|
514
|
+
classNameLayerRoot: Y,
|
|
515
|
+
classNameHeaderRoot: ne,
|
|
516
|
+
classNameFooterRoot: G,
|
|
517
|
+
footer: o || s || l || p ? /* @__PURE__ */ M(
|
|
517
518
|
zl,
|
|
518
519
|
{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
520
|
+
classNameRoot: a,
|
|
521
|
+
submitBtnClassName: K,
|
|
522
|
+
cancelBtnClassName: ce,
|
|
523
|
+
applyButtonsMobileDirection: w,
|
|
524
|
+
applyButtonsAlign: b,
|
|
525
|
+
cancelBtnContent: o,
|
|
526
|
+
cancelBtnIconName: s,
|
|
527
|
+
cancelBtnDisabled: i,
|
|
528
|
+
submitBtnContent: l,
|
|
529
|
+
submitBtnIconName: p,
|
|
530
|
+
submitBtnVariant: P,
|
|
531
|
+
cancelBtnVariant: L,
|
|
532
|
+
formId: m,
|
|
533
|
+
disabled: d,
|
|
534
|
+
onClose: v,
|
|
535
|
+
submit: u,
|
|
536
|
+
loading: T
|
|
535
537
|
}
|
|
536
538
|
) : null
|
|
537
539
|
}
|
|
@@ -668,7 +670,7 @@ const wr = (n) => {
|
|
|
668
670
|
visibility: "hidden",
|
|
669
671
|
opacity: 0,
|
|
670
672
|
left: "-9999px"
|
|
671
|
-
}), [P, L] = Ce(!1),
|
|
673
|
+
}), [P, L] = Ce(!1), K = Ge(() => {
|
|
672
674
|
if (!C.current || !T.current) return;
|
|
673
675
|
const W = C.current.getBoundingClientRect(), z = T.current.getBoundingClientRect();
|
|
674
676
|
let $ = 0, X = 0;
|
|
@@ -721,19 +723,19 @@ const wr = (n) => {
|
|
|
721
723
|
}));
|
|
722
724
|
}, [p, b, P]);
|
|
723
725
|
Re(() => (D(!0), () => D(!1)), []), Re(() => {
|
|
724
|
-
S &&
|
|
725
|
-
}, [S,
|
|
726
|
+
S && K();
|
|
727
|
+
}, [S, K]), Re(() => {
|
|
726
728
|
if (!S) return;
|
|
727
|
-
const W = () =>
|
|
729
|
+
const W = () => K();
|
|
728
730
|
return window.addEventListener("resize", W), window.addEventListener("scroll", W, !0), () => {
|
|
729
731
|
window.removeEventListener("resize", W), window.removeEventListener("scroll", W, !0);
|
|
730
732
|
};
|
|
731
|
-
}, [S,
|
|
733
|
+
}, [S, K]);
|
|
732
734
|
const ce = E({
|
|
733
735
|
...m && { [m]: !0 }
|
|
734
736
|
}), ne = E({
|
|
735
737
|
...v && { [v]: !0 }
|
|
736
|
-
}),
|
|
738
|
+
}), G = E({
|
|
737
739
|
[xi.spTooltip]: !0,
|
|
738
740
|
...l && { [l]: !0 }
|
|
739
741
|
}), te = document.body;
|
|
@@ -741,7 +743,7 @@ const wr = (n) => {
|
|
|
741
743
|
"div",
|
|
742
744
|
{
|
|
743
745
|
ref: C,
|
|
744
|
-
className:
|
|
746
|
+
className: G,
|
|
745
747
|
onClick: x,
|
|
746
748
|
onMouseEnter: () => a && L(!0),
|
|
747
749
|
onMouseLeave: () => a && L(!1),
|
|
@@ -4302,29 +4304,29 @@ function pd(n, a, t, e) {
|
|
|
4302
4304
|
}, u = [new bu(e == null ? void 0 : e.in, t)], d = a.match(od).map((P) => {
|
|
4303
4305
|
const L = P[0];
|
|
4304
4306
|
if (L in ma) {
|
|
4305
|
-
const
|
|
4306
|
-
return
|
|
4307
|
+
const K = ma[L];
|
|
4308
|
+
return K(P, i.formatLong);
|
|
4307
4309
|
}
|
|
4308
4310
|
return P;
|
|
4309
4311
|
}).join("").match(ad), m = [];
|
|
4310
4312
|
for (let P of d) {
|
|
4311
|
-
const L = P[0],
|
|
4312
|
-
if (
|
|
4313
|
-
const { incompatibleTokens: ce } =
|
|
4313
|
+
const L = P[0], K = rd[L];
|
|
4314
|
+
if (K) {
|
|
4315
|
+
const { incompatibleTokens: ce } = K;
|
|
4314
4316
|
if (Array.isArray(ce)) {
|
|
4315
|
-
const
|
|
4317
|
+
const G = m.find(
|
|
4316
4318
|
(te) => ce.includes(te.token) || te.token === L
|
|
4317
4319
|
);
|
|
4318
|
-
if (
|
|
4320
|
+
if (G)
|
|
4319
4321
|
throw new RangeError(
|
|
4320
|
-
`The format string mustn't contain \`${
|
|
4322
|
+
`The format string mustn't contain \`${G.fullToken}\` and \`${P}\` at the same time`
|
|
4321
4323
|
);
|
|
4322
|
-
} else if (
|
|
4324
|
+
} else if (K.incompatibleTokens === "*" && m.length > 0)
|
|
4323
4325
|
throw new RangeError(
|
|
4324
4326
|
`The format string mustn't contain \`${P}\` and any other token at the same time`
|
|
4325
4327
|
);
|
|
4326
4328
|
m.push({ token: L, fullToken: P });
|
|
4327
|
-
const ne =
|
|
4329
|
+
const ne = K.run(
|
|
4328
4330
|
n,
|
|
4329
4331
|
P,
|
|
4330
4332
|
i.match,
|
|
@@ -4346,8 +4348,8 @@ function pd(n, a, t, e) {
|
|
|
4346
4348
|
}
|
|
4347
4349
|
if (n.length > 0 && ld.test(n))
|
|
4348
4350
|
return r();
|
|
4349
|
-
const v = u.map((P) => P.priority).sort((P, L) => L - P).filter((P, L,
|
|
4350
|
-
(P) => u.filter((L) => L.priority === P).sort((L,
|
|
4351
|
+
const v = u.map((P) => P.priority).sort((P, L) => L - P).filter((P, L, K) => K.indexOf(P) === L).map(
|
|
4352
|
+
(P) => u.filter((L) => L.priority === P).sort((L, K) => K.subPriority - L.subPriority)
|
|
4351
4353
|
).map((P) => P[0]);
|
|
4352
4354
|
let w = oe(t, e == null ? void 0 : e.in);
|
|
4353
4355
|
if (isNaN(+w)) return r();
|
|
@@ -4966,7 +4968,7 @@ const lf = (n) => ({
|
|
|
4966
4968
|
}, v = Ba(r), w = Wa(v), b = await i.getDimensions(p), y = v === "y", C = y ? "top" : "left", T = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", D = o.reference[w] + o.reference[v] - m[v] - o.floating[w], x = m[v] - o.reference[v], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(p));
|
|
4967
4969
|
let Y = A ? A[S] : 0;
|
|
4968
4970
|
(!Y || !await (i.isElement == null ? void 0 : i.isElement(A))) && (Y = s.floating[S] || o.floating[w]);
|
|
4969
|
-
const P = D / 2 - x / 2, L = Y / 2 - b[w] / 2 - 1,
|
|
4971
|
+
const P = D / 2 - x / 2, L = Y / 2 - b[w] / 2 - 1, K = fn(d[C], L), ce = fn(d[T], L), ne = K, G = Y - b[w] - ce, te = Y / 2 - b[w] / 2 + P, W = zd(ne, te, G), z = !l.arrow && On(r) != null && te !== W && o.reference[w] / 2 - (te < ne ? K : ce) - b[w] / 2 < 0, $ = z ? te < ne ? te - ne : te - G : 0;
|
|
4970
4972
|
return {
|
|
4971
4973
|
[v]: m[v] + $,
|
|
4972
4974
|
data: {
|
|
@@ -5006,12 +5008,12 @@ const lf = (n) => ({
|
|
|
5006
5008
|
const C = mn(r), T = qt(s), S = mn(s) === s, D = await (l.isRTL == null ? void 0 : l.isRTL(p.floating)), x = m || (S || !b ? [pr(s)] : $d(s)), A = w !== "none";
|
|
5007
5009
|
!m && A && x.push(...Xd(s, b, w, D));
|
|
5008
5010
|
const Y = [s, ...x], P = await sf(a, y), L = [];
|
|
5009
|
-
let
|
|
5011
|
+
let K = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5010
5012
|
if (u && L.push(P[C]), d) {
|
|
5011
5013
|
const te = Ud(r, i, D);
|
|
5012
5014
|
L.push(P[te[0]], P[te[1]]);
|
|
5013
5015
|
}
|
|
5014
|
-
if (
|
|
5016
|
+
if (K = [...K, {
|
|
5015
5017
|
placement: r,
|
|
5016
5018
|
overflows: L
|
|
5017
5019
|
}], !L.every((te) => te <= 0)) {
|
|
@@ -5019,22 +5021,22 @@ const lf = (n) => ({
|
|
|
5019
5021
|
const te = (((ce = o.flip) == null ? void 0 : ce.index) || 0) + 1, W = Y[te];
|
|
5020
5022
|
if (W && (!(d === "alignment" ? T !== qt(W) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5021
5023
|
// overflows the main axis.
|
|
5022
|
-
|
|
5024
|
+
K.every((X) => qt(X.placement) === T ? X.overflows[0] > 0 : !0)))
|
|
5023
5025
|
return {
|
|
5024
5026
|
data: {
|
|
5025
5027
|
index: te,
|
|
5026
|
-
overflows:
|
|
5028
|
+
overflows: K
|
|
5027
5029
|
},
|
|
5028
5030
|
reset: {
|
|
5029
5031
|
placement: W
|
|
5030
5032
|
}
|
|
5031
5033
|
};
|
|
5032
|
-
let z = (ne =
|
|
5034
|
+
let z = (ne = K.filter(($) => $.overflows[0] <= 0).sort(($, X) => $.overflows[1] - X.overflows[1])[0]) == null ? void 0 : ne.placement;
|
|
5033
5035
|
if (!z)
|
|
5034
5036
|
switch (v) {
|
|
5035
5037
|
case "bestFit": {
|
|
5036
|
-
var
|
|
5037
|
-
const $ = (
|
|
5038
|
+
var G;
|
|
5039
|
+
const $ = (G = K.filter((X) => {
|
|
5038
5040
|
if (A) {
|
|
5039
5041
|
const h = qt(X.placement);
|
|
5040
5042
|
return h === T || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5042,7 +5044,7 @@ const lf = (n) => ({
|
|
|
5042
5044
|
h === "y";
|
|
5043
5045
|
}
|
|
5044
5046
|
return !0;
|
|
5045
|
-
}).map((X) => [X.placement, X.overflows.filter((h) => h > 0).reduce((h, f) => h + f, 0)]).sort((X, h) => X[1] - h[1])[0]) == null ? void 0 :
|
|
5047
|
+
}).map((X) => [X.placement, X.overflows.filter((h) => h > 0).reduce((h, f) => h + f, 0)]).sort((X, h) => X[1] - h[1])[0]) == null ? void 0 : G[0];
|
|
5046
5048
|
$ && (z = $);
|
|
5047
5049
|
break;
|
|
5048
5050
|
}
|
|
@@ -5569,7 +5571,7 @@ function Lf(n) {
|
|
|
5569
5571
|
X !== A.current && (A.current = X, b(X));
|
|
5570
5572
|
}, []), S = I.useCallback((X) => {
|
|
5571
5573
|
X !== Y.current && (Y.current = X, C(X));
|
|
5572
|
-
}, []), D = o || w, x = i || y, A = I.useRef(null), Y = I.useRef(null), P = I.useRef(u), L = l != null,
|
|
5574
|
+
}, []), D = o || w, x = i || y, A = I.useRef(null), Y = I.useRef(null), P = I.useRef(u), L = l != null, K = zr(l), ce = zr(r), ne = zr(p), G = I.useCallback(() => {
|
|
5573
5575
|
if (!A.current || !Y.current)
|
|
5574
5576
|
return;
|
|
5575
5577
|
const X = {
|
|
@@ -5602,11 +5604,11 @@ function Lf(n) {
|
|
|
5602
5604
|
te.current = !1;
|
|
5603
5605
|
}), []), Zn(() => {
|
|
5604
5606
|
if (D && (A.current = D), x && (Y.current = x), D && x) {
|
|
5605
|
-
if (
|
|
5606
|
-
return
|
|
5607
|
-
|
|
5607
|
+
if (K.current)
|
|
5608
|
+
return K.current(D, x, G);
|
|
5609
|
+
G();
|
|
5608
5610
|
}
|
|
5609
|
-
}, [D, x,
|
|
5611
|
+
}, [D, x, G, K, L]);
|
|
5610
5612
|
const W = I.useMemo(() => ({
|
|
5611
5613
|
reference: A,
|
|
5612
5614
|
floating: Y,
|
|
@@ -5638,11 +5640,11 @@ function Lf(n) {
|
|
|
5638
5640
|
}, [t, s, z.floating, u.x, u.y]);
|
|
5639
5641
|
return I.useMemo(() => ({
|
|
5640
5642
|
...u,
|
|
5641
|
-
update:
|
|
5643
|
+
update: G,
|
|
5642
5644
|
refs: W,
|
|
5643
5645
|
elements: z,
|
|
5644
5646
|
floatingStyles: $
|
|
5645
|
-
}), [u,
|
|
5647
|
+
}), [u, G, W, z, $]);
|
|
5646
5648
|
}
|
|
5647
5649
|
const Ff = (n) => {
|
|
5648
5650
|
function a(t) {
|
|
@@ -5747,10 +5749,10 @@ const Uf = /* @__PURE__ */ I.forwardRef(function(a, t) {
|
|
|
5747
5749
|
const [D, x] = e.split("-"), A = D === "top" || D === "bottom";
|
|
5748
5750
|
let Y = d;
|
|
5749
5751
|
(A && i != null && i.x || !A && i != null && i.y) && (Y = null);
|
|
5750
|
-
const P = u * 2, L = P / 2,
|
|
5752
|
+
const P = u * 2, L = P / 2, K = s / 2 * (p / -8 + 1), ce = l / 2 * p / 4, ne = !!v, G = Y && x === "end" ? "bottom" : "top";
|
|
5751
5753
|
let te = Y && x === "end" ? "right" : "left";
|
|
5752
5754
|
Y && T && (te = x === "end" ? "left" : "right");
|
|
5753
|
-
const W = (o == null ? void 0 : o.x) != null ? Y || o.x : "", z = (o == null ? void 0 : o.y) != null ? Y || o.y : "", $ = v || "M0,0" + (" H" + s) + (" L" + (s -
|
|
5755
|
+
const W = (o == null ? void 0 : o.x) != null ? Y || o.x : "", z = (o == null ? void 0 : o.y) != null ? Y || o.y : "", $ = v || "M0,0" + (" H" + s) + (" L" + (s - K) + "," + (l - ce)) + (" Q" + s / 2 + "," + l + " " + K + "," + (l - ce)) + " Z", X = {
|
|
5754
5756
|
top: ne ? "rotate(180deg)" : "",
|
|
5755
5757
|
left: ne ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5756
5758
|
bottom: ne ? "" : "rotate(180deg)",
|
|
@@ -5767,7 +5769,7 @@ const Uf = /* @__PURE__ */ I.forwardRef(function(a, t) {
|
|
|
5767
5769
|
position: "absolute",
|
|
5768
5770
|
pointerEvents: "none",
|
|
5769
5771
|
[te]: W,
|
|
5770
|
-
[
|
|
5772
|
+
[G]: z,
|
|
5771
5773
|
[D]: A || ne ? "100%" : "calc(100% - " + P / 2 + "px)",
|
|
5772
5774
|
transform: [X, w].filter((h) => !!h).join(" "),
|
|
5773
5775
|
...b
|
|
@@ -6860,25 +6862,25 @@ var Mm = (
|
|
|
6860
6862
|
var i, s = t.props, l = s.selected, p = s.preSelection, u = s.setPreSelection, d = s.minDate, m = s.maxDate, v = s.showFourColumnMonthYearPicker, w = s.showTwoColumnMonthYearPicker;
|
|
6861
6863
|
if (p) {
|
|
6862
6864
|
var b = Lo(v, w), y = t.getVerticalOffset(b), C = (i = $r[b]) === null || i === void 0 ? void 0 : i.grid, T = function(Y, P, L) {
|
|
6863
|
-
var
|
|
6865
|
+
var K, ce, ne = P, G = L;
|
|
6864
6866
|
switch (Y) {
|
|
6865
6867
|
case ee.ArrowRight:
|
|
6866
|
-
ne = ft(P, Vn),
|
|
6868
|
+
ne = ft(P, Vn), G = L === 11 ? 0 : L + Vn;
|
|
6867
6869
|
break;
|
|
6868
6870
|
case ee.ArrowLeft:
|
|
6869
|
-
ne = Qt(P, Vn),
|
|
6871
|
+
ne = Qt(P, Vn), G = L === 0 ? 11 : L - Vn;
|
|
6870
6872
|
break;
|
|
6871
6873
|
case ee.ArrowUp:
|
|
6872
|
-
ne = Qt(P, y),
|
|
6874
|
+
ne = Qt(P, y), G = !((K = C == null ? void 0 : C[0]) === null || K === void 0) && K.includes(L) ? L + 12 - y : L - y;
|
|
6873
6875
|
break;
|
|
6874
6876
|
case ee.ArrowDown:
|
|
6875
|
-
ne = ft(P, y),
|
|
6877
|
+
ne = ft(P, y), G = !((ce = C == null ? void 0 : C[C.length - 1]) === null || ce === void 0) && ce.includes(L) ? L - 12 + y : L + y;
|
|
6876
6878
|
break;
|
|
6877
6879
|
}
|
|
6878
|
-
return { newCalculatedDate: ne, newCalculatedMonth:
|
|
6880
|
+
return { newCalculatedDate: ne, newCalculatedMonth: G };
|
|
6879
6881
|
}, S = function(Y, P, L) {
|
|
6880
|
-
for (var
|
|
6881
|
-
if (
|
|
6882
|
+
for (var K = 40, ce = Y, ne = !1, G = 0, te = T(ce, P, L), W = te.newCalculatedDate, z = te.newCalculatedMonth; !ne; ) {
|
|
6883
|
+
if (G >= K) {
|
|
6882
6884
|
W = P, z = L;
|
|
6883
6885
|
break;
|
|
6884
6886
|
}
|
|
@@ -6897,7 +6899,7 @@ var Mm = (
|
|
|
6897
6899
|
W = $.newCalculatedDate, z = $.newCalculatedMonth;
|
|
6898
6900
|
} else
|
|
6899
6901
|
ne = !0;
|
|
6900
|
-
|
|
6902
|
+
G++;
|
|
6901
6903
|
}
|
|
6902
6904
|
return { newCalculatedDate: W, newCalculatedMonth: z };
|
|
6903
6905
|
};
|
|
@@ -8270,10 +8272,10 @@ var Qr = "Date input not valid.", Qm = (
|
|
|
8270
8272
|
});
|
|
8271
8273
|
var m = e.props, v = m.selectsRange, w = m.startDate, b = m.endDate, y = (r = e.props.dateFormat) !== null && r !== void 0 ? r : a.defaultProps.dateFormat, C = (o = e.props.strictParsing) !== null && o !== void 0 ? o : a.defaultProps.strictParsing, T = (d == null ? void 0 : d.target) instanceof HTMLInputElement ? d.target.value : "";
|
|
8272
8274
|
if (v) {
|
|
8273
|
-
var S = e.props.rangeSeparator, D = S.trim(), x = T.split(y.includes(D) ? S : D, 2).map(function(
|
|
8274
|
-
return
|
|
8275
|
-
}), A = x[0], Y = x[1], P = Vr(A ?? "", y, e.props.locale, C), L = P ? Vr(Y ?? "", y, e.props.locale, C) : null,
|
|
8276
|
-
if (!
|
|
8275
|
+
var S = e.props.rangeSeparator, D = S.trim(), x = T.split(y.includes(D) ? S : D, 2).map(function(G) {
|
|
8276
|
+
return G.trim();
|
|
8277
|
+
}), A = x[0], Y = x[1], P = Vr(A ?? "", y, e.props.locale, C), L = P ? Vr(Y ?? "", y, e.props.locale, C) : null, K = (w == null ? void 0 : w.getTime()) !== (P == null ? void 0 : P.getTime()), ce = (b == null ? void 0 : b.getTime()) !== (L == null ? void 0 : L.getTime());
|
|
8278
|
+
if (!K && !ce || P && it(P, e.props) || L && it(L, e.props))
|
|
8277
8279
|
return;
|
|
8278
8280
|
(s = (i = e.props).onChange) === null || s === void 0 || s.call(i, [P, L], d);
|
|
8279
8281
|
} else {
|
|
@@ -8316,12 +8318,12 @@ var Qr = "Date input not valid.", Qm = (
|
|
|
8316
8318
|
if (!(C != null && C.length))
|
|
8317
8319
|
m == null || m([u], o);
|
|
8318
8320
|
else {
|
|
8319
|
-
var P = C.some(function(
|
|
8320
|
-
return he(
|
|
8321
|
+
var P = C.some(function(K) {
|
|
8322
|
+
return he(K, u);
|
|
8321
8323
|
});
|
|
8322
8324
|
if (P) {
|
|
8323
|
-
var L = C.filter(function(
|
|
8324
|
-
return !he(
|
|
8325
|
+
var L = C.filter(function(K) {
|
|
8326
|
+
return !he(K, u);
|
|
8325
8327
|
});
|
|
8326
8328
|
m == null || m(L, o);
|
|
8327
8329
|
} else
|
|
@@ -8441,7 +8443,7 @@ var Qr = "Date input not valid.", Qm = (
|
|
|
8441
8443
|
r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Qr });
|
|
8442
8444
|
return;
|
|
8443
8445
|
}
|
|
8444
|
-
var
|
|
8446
|
+
var K = null;
|
|
8445
8447
|
switch (x) {
|
|
8446
8448
|
case ee.ArrowLeft:
|
|
8447
8449
|
case ee.ArrowRight:
|
|
@@ -8451,16 +8453,16 @@ var Qr = "Date input not valid.", Qm = (
|
|
|
8451
8453
|
case ee.PageDown:
|
|
8452
8454
|
case ee.Home:
|
|
8453
8455
|
case ee.End:
|
|
8454
|
-
|
|
8456
|
+
K = L(x, Y);
|
|
8455
8457
|
break;
|
|
8456
8458
|
}
|
|
8457
|
-
if (!
|
|
8459
|
+
if (!K) {
|
|
8458
8460
|
(u = (p = e.props).onInputError) === null || u === void 0 || u.call(p, { code: 1, msg: Qr });
|
|
8459
8461
|
return;
|
|
8460
8462
|
}
|
|
8461
|
-
if (r.preventDefault(), e.setState({ lastPreSelectChange: Gr }), S && e.setSelected(
|
|
8462
|
-
var ce = Ue(Y), ne = Ue(
|
|
8463
|
-
ce !== ne ||
|
|
8463
|
+
if (r.preventDefault(), e.setState({ lastPreSelectChange: Gr }), S && e.setSelected(K), e.setPreSelection(K), D) {
|
|
8464
|
+
var ce = Ue(Y), ne = Ue(K), G = me(Y), te = me(K);
|
|
8465
|
+
ce !== ne || G !== te ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
8464
8466
|
}
|
|
8465
8467
|
}
|
|
8466
8468
|
}, e.onPopperKeyDown = function(r) {
|
|
@@ -8755,7 +8757,7 @@ function Km() {
|
|
|
8755
8757
|
for (var g = h.mask, _ = f; _ < g.length; ++_) if (!b(h, _)) return _;
|
|
8756
8758
|
return null;
|
|
8757
8759
|
}
|
|
8758
|
-
function
|
|
8760
|
+
function K(h) {
|
|
8759
8761
|
return h || h === 0 ? h + "" : "";
|
|
8760
8762
|
}
|
|
8761
8763
|
function ce(h, f, g, _, c) {
|
|
@@ -8766,7 +8768,7 @@ function Km() {
|
|
|
8766
8768
|
var h = new RegExp("windows", "i"), f = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
8767
8769
|
return h.test(g) && f.test(g);
|
|
8768
8770
|
}
|
|
8769
|
-
function
|
|
8771
|
+
function G(h) {
|
|
8770
8772
|
return typeof h == "function";
|
|
8771
8773
|
}
|
|
8772
8774
|
function te() {
|
|
@@ -8835,36 +8837,36 @@ function Km() {
|
|
|
8835
8837
|
var O = s(s(c)).beforePasteState, J = s(s(c)).previousSelection, le = c.props.beforeMaskedValueChange, ae = c.getInputValue(), de = c.value, fe = c.getSelection();
|
|
8836
8838
|
c.isInputAutofilled(ae, fe, de, J) && (de = D(c.maskOptions, ""), J = { start: 0, end: 0, length: 0 }), O && (J = O.selection, de = O.value, fe = { start: J.start + ae.length, end: J.start + ae.length, length: 0 }, ae = de.slice(0, J.start) + ae + de.slice(J.end), c.beforePasteState = null);
|
|
8837
8839
|
var _e = ce(c.maskOptions, ae, fe, de, J), Ae = _e.enteredString, Le = _e.selection, Ye = _e.value;
|
|
8838
|
-
if (
|
|
8840
|
+
if (G(le)) {
|
|
8839
8841
|
var Z = le({ value: Ye, selection: Le }, { value: de, selection: J }, Ae, c.getBeforeMaskedValueChangeConfig());
|
|
8840
8842
|
Ye = Z.value, Le = Z.selection;
|
|
8841
8843
|
}
|
|
8842
|
-
c.setInputValue(Ye),
|
|
8844
|
+
c.setInputValue(Ye), G(c.props.onChange) && c.props.onChange(Q), c.isWindowsPhoneBrowser ? c.setSelection(Le.start, Le.end, { deferred: !0 }) : c.setSelection(Le.start, Le.end);
|
|
8843
8845
|
}, c.onFocus = function(Q) {
|
|
8844
8846
|
var O = c.props.beforeMaskedValueChange, J = c.maskOptions, le = J.mask, ae = J.prefix;
|
|
8845
8847
|
if (c.focused = !0, c.mounted = !0, le) {
|
|
8846
8848
|
if (c.value) T(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
8847
8849
|
else {
|
|
8848
8850
|
var de = D(c.maskOptions, ae), fe = D(c.maskOptions, de), _e = T(c.maskOptions, fe), Ae = L(c.maskOptions, _e), Le = { start: Ae, end: Ae };
|
|
8849
|
-
if (
|
|
8851
|
+
if (G(O)) {
|
|
8850
8852
|
var Ye = O({ value: fe, selection: Le }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
|
|
8851
8853
|
fe = Ye.value, Le = Ye.selection;
|
|
8852
8854
|
}
|
|
8853
8855
|
var Z = fe !== c.getInputValue();
|
|
8854
|
-
Z && c.setInputValue(fe), Z &&
|
|
8856
|
+
Z && c.setInputValue(fe), Z && G(c.props.onChange) && c.props.onChange(Q), c.setSelection(Le.start, Le.end);
|
|
8855
8857
|
}
|
|
8856
8858
|
c.runSaveSelectionLoop();
|
|
8857
8859
|
}
|
|
8858
|
-
|
|
8860
|
+
G(c.props.onFocus) && c.props.onFocus(Q);
|
|
8859
8861
|
}, c.onBlur = function(Q) {
|
|
8860
8862
|
var O = c.props.beforeMaskedValueChange, J = c.maskOptions.mask;
|
|
8861
8863
|
if (c.stopSaveSelectionLoop(), c.focused = !1, J && !c.props.alwaysShowMask && C(c.maskOptions, c.value)) {
|
|
8862
8864
|
var le = "";
|
|
8863
|
-
|
|
8865
|
+
G(O) && (le = O({ value: le, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
|
|
8864
8866
|
var ae = le !== c.getInputValue();
|
|
8865
|
-
ae && c.setInputValue(le), ae &&
|
|
8867
|
+
ae && c.setInputValue(le), ae && G(c.props.onChange) && c.props.onChange(Q);
|
|
8866
8868
|
}
|
|
8867
|
-
|
|
8869
|
+
G(c.props.onBlur) && c.props.onBlur(Q);
|
|
8868
8870
|
}, c.onMouseDown = function(Q) {
|
|
8869
8871
|
if (!c.focused && document.addEventListener) {
|
|
8870
8872
|
c.mouseDownX = Q.clientX, c.mouseDownY = Q.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -8876,18 +8878,18 @@ function Km() {
|
|
|
8876
8878
|
};
|
|
8877
8879
|
document.addEventListener("mouseup", O);
|
|
8878
8880
|
}
|
|
8879
|
-
|
|
8881
|
+
G(c.props.onMouseDown) && c.props.onMouseDown(Q);
|
|
8880
8882
|
}, c.onPaste = function(Q) {
|
|
8881
|
-
|
|
8883
|
+
G(c.props.onPaste) && c.props.onPaste(Q), Q.defaultPrevented || (c.beforePasteState = { value: c.getInputValue(), selection: c.getSelection() }, c.setInputValue(""));
|
|
8882
8884
|
}, c.handleRef = function(Q) {
|
|
8883
|
-
c.props.children == null &&
|
|
8885
|
+
c.props.children == null && G(c.props.inputRef) && c.props.inputRef(Q);
|
|
8884
8886
|
};
|
|
8885
8887
|
var k = _.mask, B = _.maskChar, q = _.formatChars, R = _.alwaysShowMask, H = _.beforeMaskedValueChange, V = _.defaultValue, j = _.value;
|
|
8886
8888
|
c.maskOptions = w(k, B, q), V == null && (V = ""), j == null && (j = V);
|
|
8887
|
-
var U =
|
|
8888
|
-
if (c.maskOptions.mask && (R || U) && (U = D(c.maskOptions, U),
|
|
8889
|
+
var U = K(j);
|
|
8890
|
+
if (c.maskOptions.mask && (R || U) && (U = D(c.maskOptions, U), G(H))) {
|
|
8889
8891
|
var F = _.value;
|
|
8890
|
-
_.value == null && (F = V), U = H({ value: U, selection: null }, { value: F =
|
|
8892
|
+
_.value == null && (F = V), U = H({ value: U, selection: null }, { value: F = K(F), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
|
|
8891
8893
|
}
|
|
8892
8894
|
return c.value = U, c;
|
|
8893
8895
|
}
|
|
@@ -8896,7 +8898,7 @@ function Km() {
|
|
|
8896
8898
|
return g.componentDidMount = function() {
|
|
8897
8899
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8898
8900
|
}, g.componentDidUpdate = function() {
|
|
8899
|
-
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, B = c.alwaysShowMask, q = c.mask, R = c.maskChar, H = c.formatChars, V = this.maskOptions, j = B || this.isFocused(), U = this.props.value != null, F = U ?
|
|
8901
|
+
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, B = c.alwaysShowMask, q = c.mask, R = c.maskChar, H = c.formatChars, V = this.maskOptions, j = B || this.isFocused(), U = this.props.value != null, F = U ? K(this.props.value) : this.value, Q = _ ? _.start : null;
|
|
8900
8902
|
if (this.maskOptions = w(q, R, H), this.maskOptions.mask) {
|
|
8901
8903
|
!V.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8902
8904
|
var O = this.maskOptions.mask && this.maskOptions.mask !== V.mask;
|
|
@@ -8906,7 +8908,7 @@ function Km() {
|
|
|
8906
8908
|
}
|
|
8907
8909
|
!this.maskOptions.mask || !C(this.maskOptions, F) || j || U && this.props.value || (F = "");
|
|
8908
8910
|
var le = { start: Q, end: Q };
|
|
8909
|
-
if (
|
|
8911
|
+
if (G(k)) {
|
|
8910
8912
|
var ae = k({ value: F, selection: le }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
|
|
8911
8913
|
F = ae.value, le = ae.selection;
|
|
8912
8914
|
}
|
|
@@ -8921,7 +8923,7 @@ function Km() {
|
|
|
8921
8923
|
}, g.render = function() {
|
|
8922
8924
|
var _, c = this.props, k = (c.mask, c.alwaysShowMask, c.maskChar, c.formatChars, c.inputRef, c.beforeMaskedValueChange, c.children), B = i(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]);
|
|
8923
8925
|
if (k) {
|
|
8924
|
-
|
|
8926
|
+
G(k) || p(!1);
|
|
8925
8927
|
var q = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], R = r({}, B);
|
|
8926
8928
|
q.forEach(function(V) {
|
|
8927
8929
|
return delete R[V];
|
|
@@ -9189,7 +9191,7 @@ function Jm() {
|
|
|
9189
9191
|
return _;
|
|
9190
9192
|
return null;
|
|
9191
9193
|
}
|
|
9192
|
-
function
|
|
9194
|
+
function K(h) {
|
|
9193
9195
|
return !h && h !== 0 ? "" : h + "";
|
|
9194
9196
|
}
|
|
9195
9197
|
function ce(h, f, g, _, c) {
|
|
@@ -9214,7 +9216,7 @@ function Jm() {
|
|
|
9214
9216
|
var h = new RegExp("windows", "i"), f = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
9215
9217
|
return h.test(g) && f.test(g);
|
|
9216
9218
|
}
|
|
9217
|
-
function
|
|
9219
|
+
function G(h) {
|
|
9218
9220
|
return typeof h == "function";
|
|
9219
9221
|
}
|
|
9220
9222
|
function te() {
|
|
@@ -9312,7 +9314,7 @@ function Jm() {
|
|
|
9312
9314
|
length: 0
|
|
9313
9315
|
}, _e = Ae.slice(0, de.start) + _e + Ae.slice(de.end), c.beforePasteState = null);
|
|
9314
9316
|
var Ye = ce(c.maskOptions, _e, Le, Ae, de), Z = Ye.enteredString, ie = Ye.selection, Me = Ye.value;
|
|
9315
|
-
if (
|
|
9317
|
+
if (G(fe)) {
|
|
9316
9318
|
var Pe = fe({
|
|
9317
9319
|
value: Me,
|
|
9318
9320
|
selection: ie
|
|
@@ -9322,7 +9324,7 @@ function Jm() {
|
|
|
9322
9324
|
}, Z, c.getBeforeMaskedValueChangeConfig());
|
|
9323
9325
|
Me = Pe.value, ie = Pe.selection;
|
|
9324
9326
|
}
|
|
9325
|
-
c.setInputValue(Me),
|
|
9327
|
+
c.setInputValue(Me), G(c.props.onChange) && c.props.onChange(O), c.isWindowsPhoneBrowser ? c.setSelection(ie.start, ie.end, {
|
|
9326
9328
|
deferred: !0
|
|
9327
9329
|
}) : c.setSelection(ie.start, ie.end);
|
|
9328
9330
|
}, c.onFocus = function(O) {
|
|
@@ -9335,7 +9337,7 @@ function Jm() {
|
|
|
9335
9337
|
start: Le,
|
|
9336
9338
|
end: Le
|
|
9337
9339
|
};
|
|
9338
|
-
if (
|
|
9340
|
+
if (G(J)) {
|
|
9339
9341
|
var Z = J({
|
|
9340
9342
|
value: _e,
|
|
9341
9343
|
selection: Ye
|
|
@@ -9346,16 +9348,16 @@ function Jm() {
|
|
|
9346
9348
|
_e = Z.value, Ye = Z.selection;
|
|
9347
9349
|
}
|
|
9348
9350
|
var ie = _e !== c.getInputValue();
|
|
9349
|
-
ie && c.setInputValue(_e), ie &&
|
|
9351
|
+
ie && c.setInputValue(_e), ie && G(c.props.onChange) && c.props.onChange(O), c.setSelection(Ye.start, Ye.end);
|
|
9350
9352
|
}
|
|
9351
9353
|
c.runSaveSelectionLoop();
|
|
9352
9354
|
}
|
|
9353
|
-
|
|
9355
|
+
G(c.props.onFocus) && c.props.onFocus(O);
|
|
9354
9356
|
}, c.onBlur = function(O) {
|
|
9355
9357
|
var J = c.props.beforeMaskedValueChange, le = c.maskOptions.mask;
|
|
9356
9358
|
if (c.stopSaveSelectionLoop(), c.focused = !1, le && !c.props.alwaysShowMask && C(c.maskOptions, c.value)) {
|
|
9357
9359
|
var ae = "";
|
|
9358
|
-
if (
|
|
9360
|
+
if (G(J)) {
|
|
9359
9361
|
var de = J({
|
|
9360
9362
|
value: ae,
|
|
9361
9363
|
selection: null
|
|
@@ -9366,9 +9368,9 @@ function Jm() {
|
|
|
9366
9368
|
ae = de.value;
|
|
9367
9369
|
}
|
|
9368
9370
|
var fe = ae !== c.getInputValue();
|
|
9369
|
-
fe && c.setInputValue(ae), fe &&
|
|
9371
|
+
fe && c.setInputValue(ae), fe && G(c.props.onChange) && c.props.onChange(O);
|
|
9370
9372
|
}
|
|
9371
|
-
|
|
9373
|
+
G(c.props.onBlur) && c.props.onBlur(O);
|
|
9372
9374
|
}, c.onMouseDown = function(O) {
|
|
9373
9375
|
if (!c.focused && document.addEventListener) {
|
|
9374
9376
|
c.mouseDownX = O.clientX, c.mouseDownY = O.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -9380,21 +9382,21 @@ function Jm() {
|
|
|
9380
9382
|
};
|
|
9381
9383
|
document.addEventListener("mouseup", J);
|
|
9382
9384
|
}
|
|
9383
|
-
|
|
9385
|
+
G(c.props.onMouseDown) && c.props.onMouseDown(O);
|
|
9384
9386
|
}, c.onPaste = function(O) {
|
|
9385
|
-
|
|
9387
|
+
G(c.props.onPaste) && c.props.onPaste(O), O.defaultPrevented || (c.beforePasteState = {
|
|
9386
9388
|
value: c.getInputValue(),
|
|
9387
9389
|
selection: c.getSelection()
|
|
9388
9390
|
}, c.setInputValue(""));
|
|
9389
9391
|
}, c.handleRef = function(O) {
|
|
9390
|
-
c.props.children == null &&
|
|
9392
|
+
c.props.children == null && G(c.props.inputRef) && c.props.inputRef(O);
|
|
9391
9393
|
};
|
|
9392
9394
|
var k = _.mask, B = _.maskChar, q = _.formatChars, R = _.alwaysShowMask, H = _.beforeMaskedValueChange, V = _.defaultValue, j = _.value;
|
|
9393
9395
|
c.maskOptions = w(k, B, q), V == null && (V = ""), j == null && (j = V);
|
|
9394
|
-
var U =
|
|
9395
|
-
if (c.maskOptions.mask && (R || U) && (U = D(c.maskOptions, U),
|
|
9396
|
+
var U = K(j);
|
|
9397
|
+
if (c.maskOptions.mask && (R || U) && (U = D(c.maskOptions, U), G(H))) {
|
|
9396
9398
|
var F = _.value;
|
|
9397
|
-
_.value == null && (F = V), F =
|
|
9399
|
+
_.value == null && (F = V), F = K(F);
|
|
9398
9400
|
var Q = H({
|
|
9399
9401
|
value: U,
|
|
9400
9402
|
selection: null
|
|
@@ -9410,7 +9412,7 @@ function Jm() {
|
|
|
9410
9412
|
return g.componentDidMount = function() {
|
|
9411
9413
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9412
9414
|
}, g.componentDidUpdate = function() {
|
|
9413
|
-
var c = this.previousSelection, k = this.props, B = k.beforeMaskedValueChange, q = k.alwaysShowMask, R = k.mask, H = k.maskChar, V = k.formatChars, j = this.maskOptions, U = q || this.isFocused(), F = this.props.value != null, Q = F ?
|
|
9415
|
+
var c = this.previousSelection, k = this.props, B = k.beforeMaskedValueChange, q = k.alwaysShowMask, R = k.mask, H = k.maskChar, V = k.formatChars, j = this.maskOptions, U = q || this.isFocused(), F = this.props.value != null, Q = F ? K(this.props.value) : this.value, O = c ? c.start : null;
|
|
9414
9416
|
if (this.maskOptions = w(R, H, V), this.maskOptions.mask)
|
|
9415
9417
|
!j.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9416
9418
|
else {
|
|
@@ -9427,7 +9429,7 @@ function Jm() {
|
|
|
9427
9429
|
start: O,
|
|
9428
9430
|
end: O
|
|
9429
9431
|
};
|
|
9430
|
-
if (
|
|
9432
|
+
if (G(B)) {
|
|
9431
9433
|
var de = B({
|
|
9432
9434
|
value: Q,
|
|
9433
9435
|
selection: ae
|
|
@@ -9456,7 +9458,7 @@ function Jm() {
|
|
|
9456
9458
|
!V.maxLength || !w(k, B, q).mask,
|
|
9457
9459
|
"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."
|
|
9458
9460
|
), H) {
|
|
9459
|
-
|
|
9461
|
+
G(H) || (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: children must be a function") : e(!1));
|
|
9460
9462
|
var U = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], F = i({}, V);
|
|
9461
9463
|
U.forEach(function(J) {
|
|
9462
9464
|
return delete F[J];
|
|
@@ -9527,7 +9529,7 @@ const th = /* @__PURE__ */ Va(eh), nh = "_datepickerInput_e80nk_43", rh = "_date
|
|
|
9527
9529
|
}, Y = () => {
|
|
9528
9530
|
S(!1);
|
|
9529
9531
|
}, P = (ne) => {
|
|
9530
|
-
const { target:
|
|
9532
|
+
const { target: G } = ne, { value: te, name: W } = G;
|
|
9531
9533
|
r && r(ne, { value: te, name: W });
|
|
9532
9534
|
}, L = E({
|
|
9533
9535
|
[nt.datepickerInput]: !0,
|
|
@@ -9539,7 +9541,7 @@ const th = /* @__PURE__ */ Va(eh), nh = "_datepickerInput_e80nk_43", rh = "_date
|
|
|
9539
9541
|
[nt.datepickerInput_focused]: b || T,
|
|
9540
9542
|
[nt.datepickerInput_error]: !!u,
|
|
9541
9543
|
...C && { [C]: !0 }
|
|
9542
|
-
}),
|
|
9544
|
+
}), K = E({
|
|
9543
9545
|
[nt.datepickerInput__input]: !0,
|
|
9544
9546
|
[nt.datepickerInput__input_clearStyles]: !0
|
|
9545
9547
|
}), ce = E({
|
|
@@ -9577,7 +9579,7 @@ const th = /* @__PURE__ */ Va(eh), nh = "_datepickerInput_e80nk_43", rh = "_date
|
|
|
9577
9579
|
autoComplete: "off",
|
|
9578
9580
|
placeholder: i,
|
|
9579
9581
|
disabled: p,
|
|
9580
|
-
className:
|
|
9582
|
+
className: K
|
|
9581
9583
|
}
|
|
9582
9584
|
)
|
|
9583
9585
|
}
|
|
@@ -9664,10 +9666,10 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
9664
9666
|
name: Y,
|
|
9665
9667
|
changed: P,
|
|
9666
9668
|
onMouseEnter: L,
|
|
9667
|
-
infoTooltipText:
|
|
9669
|
+
infoTooltipText: K,
|
|
9668
9670
|
tooltipPosition: ce,
|
|
9669
9671
|
minDate: ne,
|
|
9670
|
-
maxDate:
|
|
9672
|
+
maxDate: G,
|
|
9671
9673
|
classNameRoot: te,
|
|
9672
9674
|
classNameDatePickerInputRoot: W,
|
|
9673
9675
|
classNameLabel: z,
|
|
@@ -9708,7 +9710,7 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
9708
9710
|
tooltipPosition: ce,
|
|
9709
9711
|
required: m,
|
|
9710
9712
|
label: w,
|
|
9711
|
-
infoTooltipText:
|
|
9713
|
+
infoTooltipText: K,
|
|
9712
9714
|
classNameBaseTooltipRoot: $
|
|
9713
9715
|
}
|
|
9714
9716
|
),
|
|
@@ -9721,7 +9723,7 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
9721
9723
|
closeOnScroll: u,
|
|
9722
9724
|
shouldCloseOnSelect: p,
|
|
9723
9725
|
minDate: ne,
|
|
9724
|
-
maxDate:
|
|
9726
|
+
maxDate: G,
|
|
9725
9727
|
dateFormat: o,
|
|
9726
9728
|
locale: fp,
|
|
9727
9729
|
onBlur: x,
|
|
@@ -10027,7 +10029,7 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
10027
10029
|
[pt.spInput__control_disabled]: i,
|
|
10028
10030
|
[pt[`spInput__control_${o}`]]: o,
|
|
10029
10031
|
[pt.spInput__control_clearable]: d
|
|
10030
|
-
}),
|
|
10032
|
+
}), K = E({
|
|
10031
10033
|
[pt.spInput__clear]: !0
|
|
10032
10034
|
}), ce = E({
|
|
10033
10035
|
[pt.spInput__error]: !0,
|
|
@@ -10035,7 +10037,7 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
10035
10037
|
...S && { [S]: !0 }
|
|
10036
10038
|
}), ne = E({
|
|
10037
10039
|
...D && { [D]: !0 }
|
|
10038
|
-
}),
|
|
10040
|
+
}), G = (z) => {
|
|
10039
10041
|
e(z, { name: u, value: "" });
|
|
10040
10042
|
}, te = (z) => {
|
|
10041
10043
|
const { value: $, name: X } = z.target;
|
|
@@ -10068,7 +10070,7 @@ const fh = "_spLabel_1mq16_43", mh = "_spLabel__text_1mq16_52", hh = "_spLabel__
|
|
|
10068
10070
|
ref: a
|
|
10069
10071
|
}
|
|
10070
10072
|
),
|
|
10071
|
-
d && t && !i && /* @__PURE__ */ M(Be, { onClick:
|
|
10073
|
+
d && t && !i && /* @__PURE__ */ M(Be, { onClick: G, className: K, name: pe.Trash })
|
|
10072
10074
|
] }),
|
|
10073
10075
|
l && /* @__PURE__ */ M("div", { className: ce, children: l })
|
|
10074
10076
|
] });
|
|
@@ -10353,7 +10355,7 @@ function wv() {
|
|
|
10353
10355
|
}
|
|
10354
10356
|
}
|
|
10355
10357
|
}
|
|
10356
|
-
var x = l, A = p, Y = s, P = i, L = a,
|
|
10358
|
+
var x = l, A = p, Y = s, P = i, L = a, K = u, ce = e, ne = w, G = v, te = t, W = o, z = r, $ = d, X = !1;
|
|
10357
10359
|
function h(F) {
|
|
10358
10360
|
return X || (X = !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.")), f(F) || D(F) === l;
|
|
10359
10361
|
}
|
|
@@ -10393,7 +10395,7 @@ function wv() {
|
|
|
10393
10395
|
function U(F) {
|
|
10394
10396
|
return D(F) === d;
|
|
10395
10397
|
}
|
|
10396
|
-
ye.AsyncMode = x, ye.ConcurrentMode = A, ye.ContextConsumer = Y, ye.ContextProvider = P, ye.Element = L, ye.ForwardRef =
|
|
10398
|
+
ye.AsyncMode = x, ye.ConcurrentMode = A, ye.ContextConsumer = Y, ye.ContextProvider = P, ye.Element = L, ye.ForwardRef = K, ye.Fragment = ce, ye.Lazy = ne, ye.Memo = G, ye.Portal = te, ye.Profiler = W, ye.StrictMode = z, ye.Suspense = $, ye.isAsyncMode = h, ye.isConcurrentMode = f, ye.isContextConsumer = g, ye.isContextProvider = _, ye.isElement = c, ye.isForwardRef = k, ye.isFragment = B, ye.isLazy = q, ye.isMemo = R, ye.isPortal = H, ye.isProfiler = V, ye.isStrictMode = j, ye.isSuspense = U, ye.isValidElementType = S, ye.typeOf = D;
|
|
10397
10399
|
}()), ye;
|
|
10398
10400
|
}
|
|
10399
10401
|
var Qo;
|
|
@@ -10549,12 +10551,12 @@ function xv() {
|
|
|
10549
10551
|
element: D(),
|
|
10550
10552
|
elementType: x(),
|
|
10551
10553
|
instanceOf: A,
|
|
10552
|
-
node:
|
|
10554
|
+
node: K(),
|
|
10553
10555
|
objectOf: P,
|
|
10554
10556
|
oneOf: Y,
|
|
10555
10557
|
oneOfType: L,
|
|
10556
10558
|
shape: ne,
|
|
10557
|
-
exact:
|
|
10559
|
+
exact: G
|
|
10558
10560
|
};
|
|
10559
10561
|
function w(f, g) {
|
|
10560
10562
|
return f === g ? f !== 0 || 1 / f === 1 / g : f !== f && g !== g;
|
|
@@ -10709,7 +10711,7 @@ function xv() {
|
|
|
10709
10711
|
}
|
|
10710
10712
|
return y(c);
|
|
10711
10713
|
}
|
|
10712
|
-
function
|
|
10714
|
+
function K() {
|
|
10713
10715
|
function f(g, _, c, k, B) {
|
|
10714
10716
|
return te(g[_]) ? null : new b("Invalid " + k + " `" + B + "` supplied to " + ("`" + c + "`, expected a ReactNode."));
|
|
10715
10717
|
}
|
|
@@ -10737,7 +10739,7 @@ function xv() {
|
|
|
10737
10739
|
}
|
|
10738
10740
|
return y(g);
|
|
10739
10741
|
}
|
|
10740
|
-
function
|
|
10742
|
+
function G(f) {
|
|
10741
10743
|
function g(_, c, k, B, q) {
|
|
10742
10744
|
var R = _[c], H = z(R);
|
|
10743
10745
|
if (H !== "object")
|
|
@@ -11143,7 +11145,7 @@ const Iv = (n) => `not ${n}`, Ov = (n, a) => {
|
|
|
11143
11145
|
},
|
|
11144
11146
|
A
|
|
11145
11147
|
);
|
|
11146
|
-
const L = a.find((_) => _.value === e),
|
|
11148
|
+
const L = a.find((_) => _.value === e), K = (_, c) => {
|
|
11147
11149
|
i(_, { value: c.value, name: r }), Y(!1);
|
|
11148
11150
|
}, ce = () => {
|
|
11149
11151
|
m || Y(!A);
|
|
@@ -11152,7 +11154,7 @@ const Iv = (n) => `not ${n}`, Ov = (n, a) => {
|
|
|
11152
11154
|
[qe.spSelect_error]: !!l,
|
|
11153
11155
|
[qe.spSelect_absolutePositionError]: C,
|
|
11154
11156
|
...T && { [T]: !0 }
|
|
11155
|
-
}),
|
|
11157
|
+
}), G = E({
|
|
11156
11158
|
[qe.spSelect__container]: !0
|
|
11157
11159
|
}), te = E({
|
|
11158
11160
|
[qe.spSelect__control]: !0,
|
|
@@ -11205,7 +11207,7 @@ const Iv = (n) => `not ${n}`, Ov = (n, a) => {
|
|
|
11205
11207
|
[qe.spSelect__option]: !0
|
|
11206
11208
|
}),
|
|
11207
11209
|
onClick: (k) => {
|
|
11208
|
-
|
|
11210
|
+
K(k, {
|
|
11209
11211
|
value: _.value
|
|
11210
11212
|
});
|
|
11211
11213
|
},
|
|
@@ -11239,7 +11241,7 @@ const Iv = (n) => `not ${n}`, Ov = (n, a) => {
|
|
|
11239
11241
|
classNameBaseTooltipRoot: x
|
|
11240
11242
|
}
|
|
11241
11243
|
),
|
|
11242
|
-
/* @__PURE__ */ ue("div", { className:
|
|
11244
|
+
/* @__PURE__ */ ue("div", { className: G, onMouseEnter: s, children: [
|
|
11243
11245
|
f(),
|
|
11244
11246
|
A && g()
|
|
11245
11247
|
] }),
|
|
@@ -11441,17 +11443,17 @@ const Iv = (n) => `not ${n}`, Ov = (n, a) => {
|
|
|
11441
11443
|
}
|
|
11442
11444
|
) : b();
|
|
11443
11445
|
return e ? r ? C() : T() : C();
|
|
11444
|
-
}, T_ = "
|
|
11446
|
+
}, T_ = "_spTabs_1rp5k_43", P_ = "_spTabs_separated_1rp5k_48", I_ = "_spTabs__tabElement_1rp5k_48", O_ = "_spTabs__tabElement_active_1rp5k_85", R_ = "_spTabs__tooltip_1rp5k_92", jt = {
|
|
11445
11447
|
spTabs: T_,
|
|
11446
11448
|
spTabs_separated: P_,
|
|
11447
|
-
"spTabs--size-md": "_spTabs--size-
|
|
11449
|
+
"spTabs--size-md": "_spTabs--size-md_1rp5k_48",
|
|
11448
11450
|
spTabs__tabElement: I_,
|
|
11449
|
-
"spTabs--size-lg": "_spTabs--size-
|
|
11450
|
-
"spTabs--variant-contained": "_spTabs--variant-
|
|
11451
|
+
"spTabs--size-lg": "_spTabs--size-lg_1rp5k_51",
|
|
11452
|
+
"spTabs--variant-contained": "_spTabs--variant-contained_1rp5k_54",
|
|
11451
11453
|
spTabs__tabElement_active: O_,
|
|
11452
11454
|
spTabs__tooltip: R_,
|
|
11453
|
-
"spTabs--variant-outlined": "_spTabs--variant-
|
|
11454
|
-
"spTabs--variant-filled": "_spTabs--variant-
|
|
11455
|
+
"spTabs--variant-outlined": "_spTabs--variant-outlined_1rp5k_95",
|
|
11456
|
+
"spTabs--variant-filled": "_spTabs--variant-filled_1rp5k_114"
|
|
11455
11457
|
}, Ow = (n) => {
|
|
11456
11458
|
const {
|
|
11457
11459
|
panes: a,
|
|
@@ -13429,13 +13431,13 @@ var Sa = {
|
|
|
13429
13431
|
fileRejections: []
|
|
13430
13432
|
};
|
|
13431
13433
|
function Ms() {
|
|
13432
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = Ee(Ee({}, Ss), n), t = a.accept, e = a.disabled, r = a.getFilesFromEvent, o = a.maxSize, i = a.minSize, s = a.multiple, l = a.maxFiles, p = a.onDragEnter, u = a.onDragLeave, d = a.onDragOver, m = a.onDrop, v = a.onDropAccepted, w = a.onDropRejected, b = a.onFileDialogCancel, y = a.onFileDialogOpen, C = a.useFsAccessApi, T = a.autoFocus, S = a.preventDropOnDocument, D = a.noClick, x = a.noKeyboard, A = a.noDrag, Y = a.noDragEventsBubbling, P = a.onError, L = a.validator,
|
|
13434
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = Ee(Ee({}, Ss), n), t = a.accept, e = a.disabled, r = a.getFilesFromEvent, o = a.maxSize, i = a.minSize, s = a.multiple, l = a.maxFiles, p = a.onDragEnter, u = a.onDragLeave, d = a.onDragOver, m = a.onDrop, v = a.onDropAccepted, w = a.onDropRejected, b = a.onFileDialogCancel, y = a.onFileDialogOpen, C = a.useFsAccessApi, T = a.autoFocus, S = a.preventDropOnDocument, D = a.noClick, x = a.noKeyboard, A = a.noDrag, Y = a.noDragEventsBubbling, P = a.onError, L = a.validator, K = tn(function() {
|
|
13433
13435
|
return ug(t);
|
|
13434
13436
|
}, [t]), ce = tn(function() {
|
|
13435
13437
|
return pg(t);
|
|
13436
13438
|
}, [t]), ne = tn(function() {
|
|
13437
13439
|
return typeof y == "function" ? y : fi;
|
|
13438
|
-
}, [y]),
|
|
13440
|
+
}, [y]), G = tn(function() {
|
|
13439
13441
|
return typeof b == "function" ? b : fi;
|
|
13440
13442
|
}, [b]), te = Fe(null), W = Fe(null), z = Os(Sg, Sa), $ = ua(z, 2), X = $[0], h = $[1], f = X.isFocused, g = X.isFileDialogActive, _ = Fe(typeof window < "u" && window.isSecureContext && C && cg()), c = function() {
|
|
13441
13443
|
!_.current && g && setTimeout(function() {
|
|
@@ -13443,7 +13445,7 @@ function Ms() {
|
|
|
13443
13445
|
var ie = W.current.files;
|
|
13444
13446
|
ie.length || (h({
|
|
13445
13447
|
type: "closeDialog"
|
|
13446
|
-
}),
|
|
13448
|
+
}), G());
|
|
13447
13449
|
}
|
|
13448
13450
|
}, 300);
|
|
13449
13451
|
};
|
|
@@ -13451,7 +13453,7 @@ function Ms() {
|
|
|
13451
13453
|
return window.addEventListener("focus", c, !1), function() {
|
|
13452
13454
|
window.removeEventListener("focus", c, !1);
|
|
13453
13455
|
};
|
|
13454
|
-
}, [W, g,
|
|
13456
|
+
}, [W, g, G, _]);
|
|
13455
13457
|
var k = Fe([]), B = function(ie) {
|
|
13456
13458
|
te.current && te.current.contains(ie.target) || (ie.preventDefault(), k.current = []);
|
|
13457
13459
|
};
|
|
@@ -13470,7 +13472,7 @@ function Ms() {
|
|
|
13470
13472
|
if (!(vr(Z) && !Y)) {
|
|
13471
13473
|
var Me = ie.length, Pe = Me > 0 && og({
|
|
13472
13474
|
files: ie,
|
|
13473
|
-
accept:
|
|
13475
|
+
accept: K,
|
|
13474
13476
|
minSize: i,
|
|
13475
13477
|
maxSize: o,
|
|
13476
13478
|
multiple: s,
|
|
@@ -13487,7 +13489,7 @@ function Ms() {
|
|
|
13487
13489
|
}).catch(function(ie) {
|
|
13488
13490
|
return q(ie);
|
|
13489
13491
|
});
|
|
13490
|
-
}, [r, p, q, Y,
|
|
13492
|
+
}, [r, p, q, Y, K, i, o, s, l, L]), H = Ge(function(Z) {
|
|
13491
13493
|
Z.preventDefault(), Z.persist(), _e(Z);
|
|
13492
13494
|
var ie = Qn(Z);
|
|
13493
13495
|
if (ie && Z.dataTransfer)
|
|
@@ -13510,7 +13512,7 @@ function Ms() {
|
|
|
13510
13512
|
}, [te, u, Y]), j = Ge(function(Z, ie) {
|
|
13511
13513
|
var Me = [], Pe = [];
|
|
13512
13514
|
Z.forEach(function(Je) {
|
|
13513
|
-
var gn = ys(Je,
|
|
13515
|
+
var gn = ys(Je, K), en = ua(gn, 2), Ir = en[0], Or = en[1], Rr = xs(Je, i, o), Fn = ua(Rr, 2), Lr = Fn[0], Fr = Fn[1], Ar = L ? L(Je) : null;
|
|
13514
13516
|
if (Ir && Lr && !Ar)
|
|
13515
13517
|
Me.push(Je);
|
|
13516
13518
|
else {
|
|
@@ -13533,7 +13535,7 @@ function Ms() {
|
|
|
13533
13535
|
isDragReject: Pe.length > 0,
|
|
13534
13536
|
type: "setFiles"
|
|
13535
13537
|
}), m && m(Me, Pe, ie), Pe.length > 0 && w && w(Pe, ie), Me.length > 0 && v && v(Me, ie);
|
|
13536
|
-
}, [h, s,
|
|
13538
|
+
}, [h, s, K, i, o, l, m, v, w, L]), U = Ge(function(Z) {
|
|
13537
13539
|
Z.preventDefault(), Z.persist(), _e(Z), k.current = [], Qn(Z) && Promise.resolve(r(Z)).then(function(ie) {
|
|
13538
13540
|
vr(Z) && !Y || j(ie, Z);
|
|
13539
13541
|
}).catch(function(ie) {
|
|
@@ -13557,7 +13559,7 @@ function Ms() {
|
|
|
13557
13559
|
type: "closeDialog"
|
|
13558
13560
|
});
|
|
13559
13561
|
}).catch(function(ie) {
|
|
13560
|
-
dg(ie) ? (
|
|
13562
|
+
dg(ie) ? (G(ie), h({
|
|
13561
13563
|
type: "closeDialog"
|
|
13562
13564
|
})) : fg(ie) ? (_.current = !1, W.current ? (W.current.value = null, W.current.click()) : q(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."))) : q(ie);
|
|
13563
13565
|
});
|
|
@@ -13566,7 +13568,7 @@ function Ms() {
|
|
|
13566
13568
|
W.current && (h({
|
|
13567
13569
|
type: "openDialog"
|
|
13568
13570
|
}), ne(), W.current.value = null, W.current.click());
|
|
13569
|
-
}, [h, ne,
|
|
13571
|
+
}, [h, ne, G, C, j, q, ce, s]), Q = Ge(function(Z) {
|
|
13570
13572
|
!te.current || !te.current.isEqualNode(Z.target) || (Z.key === " " || Z.key === "Enter" || Z.keyCode === 32 || Z.keyCode === 13) && (Z.preventDefault(), F());
|
|
13571
13573
|
}, [te, F]), O = Ge(function() {
|
|
13572
13574
|
h({
|
|
@@ -13608,7 +13610,7 @@ function Ms() {
|
|
|
13608
13610
|
}, []), Ye = tn(function() {
|
|
13609
13611
|
return function() {
|
|
13610
13612
|
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = Z.refKey, Me = ie === void 0 ? "ref" : ie, Pe = Z.onChange, Je = Z.onClick, gn = _r(Z, _g), en = Ca({
|
|
13611
|
-
accept:
|
|
13613
|
+
accept: K,
|
|
13612
13614
|
multiple: s,
|
|
13613
13615
|
type: "file",
|
|
13614
13616
|
style: {
|
|
@@ -13770,7 +13772,7 @@ const Mg = (n) => Ms(n), Eg = "_spUploadFiles_qdbwu_43", Ng = "_spUploadFiles_er
|
|
|
13770
13772
|
}), L = E({
|
|
13771
13773
|
[ge.spUploadFiles__control]: !0,
|
|
13772
13774
|
[ge.spUploadFiles__control_loading]: m
|
|
13773
|
-
}),
|
|
13775
|
+
}), K = E({
|
|
13774
13776
|
[ge.spUploadFiles__fileNamesList]: !0,
|
|
13775
13777
|
[ge.spUploadFiles__fileNamesList_loading]: m
|
|
13776
13778
|
}), ce = E({
|
|
@@ -13786,7 +13788,7 @@ const Mg = (n) => Ms(n), Eg = "_spUploadFiles_qdbwu_43", Ng = "_spUploadFiles_er
|
|
|
13786
13788
|
}
|
|
13787
13789
|
const _ = [...l], c = _.findIndex((k) => k.name === f);
|
|
13788
13790
|
_.splice(c, 1), r(_, e);
|
|
13789
|
-
},
|
|
13791
|
+
}, G = (f) => {
|
|
13790
13792
|
f.stopPropagation(), r([], e), b([]);
|
|
13791
13793
|
}, te = (f) => Object.values(f).flatMap((g) => g.map((_) => _.toUpperCase())).join(", "), W = () => {
|
|
13792
13794
|
if (S) {
|
|
@@ -13811,7 +13813,7 @@ const Mg = (n) => Ms(n), Eg = "_spUploadFiles_qdbwu_43", Ng = "_spUploadFiles_er
|
|
|
13811
13813
|
classNameRoot: E(ge.spUploadFiles__fileName)
|
|
13812
13814
|
}
|
|
13813
13815
|
);
|
|
13814
|
-
}, z = () => /* @__PURE__ */ M("ul", { className:
|
|
13816
|
+
}, z = () => /* @__PURE__ */ M("ul", { className: K, children: D.map(({ file: f, errors: g }, _) => {
|
|
13815
13817
|
const c = g ? (g == null ? void 0 : g.length) > 0 : void 0, k = () => g ? g == null ? void 0 : g.map(ow).join(", ") : "";
|
|
13816
13818
|
return /* @__PURE__ */ ue(
|
|
13817
13819
|
"li",
|
|
@@ -13884,7 +13886,7 @@ const Mg = (n) => Ms(n), Eg = "_spUploadFiles_qdbwu_43", Ng = "_spUploadFiles_er
|
|
|
13884
13886
|
}
|
|
13885
13887
|
), h = () => /* @__PURE__ */ ue(Mn, { children: [
|
|
13886
13888
|
x ? $() : X(),
|
|
13887
|
-
x && A ? /* @__PURE__ */ M("div", { className: ce, onClick:
|
|
13889
|
+
x && A ? /* @__PURE__ */ M("div", { className: ce, onClick: G, children: /* @__PURE__ */ M(Be, { name: pe.Close }) }) : A && p && /* @__PURE__ */ M(
|
|
13888
13890
|
br,
|
|
13889
13891
|
{
|
|
13890
13892
|
hover: !0,
|