test-stpr-ui-kit 0.5.37 → 0.5.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/test-stpr-ui-kit.css +1 -1
- package/dist/test-stpr-ui-kit.es.d.ts +9 -2
- package/dist/test-stpr-ui-kit.js +778 -786
- package/dist/test-stpr-ui-kit.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -3,7 +3,7 @@ var Ts = (n, a, t) => a in n ? Ns(n, a, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var re = (n, a, t) => Ts(n, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
import { jsxs as ue, jsx as M, Fragment as Mn } from "react/jsx-runtime";
|
|
5
5
|
import * as R from "react";
|
|
6
|
-
import
|
|
6
|
+
import N, { useState as Ce, useEffect as Re, useRef as Fe, useCallback as Ge, useLayoutEffect as Ma, cloneElement as mi, createRef as Wt, Component as He, createElement as Ps, forwardRef as hi, createContext as vi, useContext as Is, useMemo as tn, useReducer as Os, useImperativeHandle as Rs, Fragment as Ls } from "react";
|
|
7
7
|
import * as Fs from "react-dom";
|
|
8
8
|
import gr from "react-dom";
|
|
9
9
|
function _i(n) {
|
|
@@ -54,7 +54,7 @@ const Be = (n) => {
|
|
|
54
54
|
[pe.Calendar]: gi,
|
|
55
55
|
[pe.ArrowBottom]: Bs
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return N.createElement(o[a], {
|
|
58
58
|
...e,
|
|
59
59
|
style: r
|
|
60
60
|
});
|
|
@@ -93,14 +93,14 @@ const Be = (n) => {
|
|
|
93
93
|
classNameChildrenWrapper: v
|
|
94
94
|
} = n, [w, b] = Ce(e), y = () => {
|
|
95
95
|
r || (o == null || o(!w), b(!w));
|
|
96
|
-
},
|
|
96
|
+
}, C = E({
|
|
97
97
|
[qe.spAccordion]: !0,
|
|
98
98
|
[qe.spAccordion_open]: w,
|
|
99
99
|
[qe.spAccordion_noOpen]: !w,
|
|
100
100
|
[qe.spAccordion_noBorder]: i,
|
|
101
101
|
[qe.spAccordion_noPadding]: s,
|
|
102
102
|
...p && { [p]: !0 }
|
|
103
|
-
}),
|
|
103
|
+
}), T = E({
|
|
104
104
|
[qe.spAccordion__header]: !0,
|
|
105
105
|
...u && { [u]: !0 }
|
|
106
106
|
}), S = E({
|
|
@@ -108,7 +108,7 @@ const Be = (n) => {
|
|
|
108
108
|
[qe[`spAccordion__name--level-${l}`]]: l,
|
|
109
109
|
[qe.spAccordion__name_hiddenExpand]: r,
|
|
110
110
|
...d && { [d]: !0 }
|
|
111
|
-
}),
|
|
111
|
+
}), D = E({
|
|
112
112
|
[qe.spAccordion__icon]: !0,
|
|
113
113
|
[qe.spAccordion__icon_open]: w,
|
|
114
114
|
[qe.spAccordion__icon_hidden]: r,
|
|
@@ -121,10 +121,10 @@ const Be = (n) => {
|
|
|
121
121
|
[qe.spAccordion__content]: !0,
|
|
122
122
|
[qe.spAccordion__content_open]: w
|
|
123
123
|
});
|
|
124
|
-
return /* @__PURE__ */ ue("div", { className:
|
|
125
|
-
/* @__PURE__ */ ue("div", { className:
|
|
124
|
+
return /* @__PURE__ */ ue("div", { className: C, children: [
|
|
125
|
+
/* @__PURE__ */ ue("div", { className: T, children: [
|
|
126
126
|
/* @__PURE__ */ M("div", { className: S, children: /* @__PURE__ */ M("span", { onClick: y, children: a }) }),
|
|
127
|
-
/* @__PURE__ */ M(Be, { onClick: y, className:
|
|
127
|
+
/* @__PURE__ */ M(Be, { onClick: y, className: D, name: pe.ChevronDown })
|
|
128
128
|
] }),
|
|
129
129
|
/* @__PURE__ */ M("div", { className: x, children: /* @__PURE__ */ M("div", { className: A, children: t }) })
|
|
130
130
|
] });
|
|
@@ -179,22 +179,22 @@ const Be = (n) => {
|
|
|
179
179
|
isFullWidth: w = !1,
|
|
180
180
|
isOnlyIcon: b = !1,
|
|
181
181
|
noPadding: y = !1,
|
|
182
|
-
classNameRoot:
|
|
183
|
-
classNameTextRoot:
|
|
182
|
+
classNameRoot: C,
|
|
183
|
+
classNameTextRoot: T,
|
|
184
184
|
classNameIconContainerRoot: S
|
|
185
|
-
} = n,
|
|
186
|
-
l || r == null || r(
|
|
185
|
+
} = n, D = (Y) => {
|
|
186
|
+
l || r == null || r(Y);
|
|
187
187
|
}, x = () => {
|
|
188
|
-
const
|
|
188
|
+
const Y = E({
|
|
189
189
|
[ct.spButton__text]: !0,
|
|
190
|
-
...
|
|
190
|
+
...T && { [T]: !0 }
|
|
191
191
|
}), P = E({
|
|
192
192
|
[ct.spButton__iconContainer]: !0,
|
|
193
193
|
...S && { [S]: !0 }
|
|
194
194
|
}), L = () => v ? /* @__PURE__ */ M("div", { className: P, children: /* @__PURE__ */ M(Ea, { size: "md", classNameRoot: ct.spButton__spinner }) }) : o ? /* @__PURE__ */ M("div", { className: P, children: /* @__PURE__ */ M(Be, { name: o, rotate: s }) }) : i ? /* @__PURE__ */ M("div", { className: P, children: i }) : null;
|
|
195
195
|
return /* @__PURE__ */ ue(Mn, { children: [
|
|
196
196
|
u === "start" && L(),
|
|
197
|
-
!b && m && /* @__PURE__ */ M("div", { className:
|
|
197
|
+
!b && m && /* @__PURE__ */ M("div", { className: Y, children: m }),
|
|
198
198
|
u === "end" && L()
|
|
199
199
|
] });
|
|
200
200
|
}, A = E({
|
|
@@ -206,14 +206,14 @@ const Be = (n) => {
|
|
|
206
206
|
[ct.spButton_fullWidth]: w,
|
|
207
207
|
[ct.spButton_disabled]: l,
|
|
208
208
|
[ct.spButton_loading]: v,
|
|
209
|
-
...
|
|
209
|
+
...C && { [C]: !0 }
|
|
210
210
|
});
|
|
211
211
|
return /* @__PURE__ */ M(
|
|
212
212
|
"button",
|
|
213
213
|
{
|
|
214
214
|
style: e,
|
|
215
215
|
className: A,
|
|
216
|
-
onClick:
|
|
216
|
+
onClick: D,
|
|
217
217
|
disabled: l,
|
|
218
218
|
type: p,
|
|
219
219
|
form: d,
|
|
@@ -247,18 +247,18 @@ const Be = (n) => {
|
|
|
247
247
|
submitBtnVariant: w = "primary",
|
|
248
248
|
cancelBtnClassName: b,
|
|
249
249
|
submitBtnClassName: y
|
|
250
|
-
} = n,
|
|
250
|
+
} = n, C = E({
|
|
251
251
|
[wn.spApplyButtons]: !0,
|
|
252
252
|
[wn[`spApplyButtons_mobile-${a}`]]: a,
|
|
253
253
|
[wn[`spApplyButtons_align-${t}`]]: t
|
|
254
|
-
}),
|
|
254
|
+
}), T = E({
|
|
255
255
|
[wn.spApplyButtons__submit]: !0,
|
|
256
256
|
...y && { [y]: !0 }
|
|
257
257
|
}), S = E({
|
|
258
258
|
[wn.spApplyButtons__cancel]: !0,
|
|
259
259
|
...b && { [b]: !0 }
|
|
260
260
|
});
|
|
261
|
-
return /* @__PURE__ */ ue("div", { className:
|
|
261
|
+
return /* @__PURE__ */ ue("div", { className: C, children: [
|
|
262
262
|
u && /* @__PURE__ */ M(
|
|
263
263
|
tr,
|
|
264
264
|
{
|
|
@@ -277,7 +277,7 @@ const Be = (n) => {
|
|
|
277
277
|
type: "submit",
|
|
278
278
|
variant: w,
|
|
279
279
|
iconName: o,
|
|
280
|
-
classNameRoot:
|
|
280
|
+
classNameRoot: T,
|
|
281
281
|
form: l || void 0,
|
|
282
282
|
disabled: p,
|
|
283
283
|
onClick: d,
|
|
@@ -348,7 +348,7 @@ const Be = (n) => {
|
|
|
348
348
|
"spText_type-description": "_spText_type-description_ouo6s_96",
|
|
349
349
|
"spText_type-link": "_spText_type-link_ouo6s_104",
|
|
350
350
|
spText_cursorPointer: Ul
|
|
351
|
-
}, st =
|
|
351
|
+
}, st = N.forwardRef((n, a) => {
|
|
352
352
|
const {
|
|
353
353
|
type: t,
|
|
354
354
|
children: e,
|
|
@@ -417,19 +417,19 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
417
417
|
subHeader: w,
|
|
418
418
|
footer: b,
|
|
419
419
|
size: y = "lg"
|
|
420
|
-
} = n,
|
|
420
|
+
} = n, C = E({
|
|
421
421
|
[et.modalWrapper]: !0,
|
|
422
422
|
[et[`modalWrapper--modalVerticalAlign-${u}`]]: u,
|
|
423
423
|
[et[`modalWrapper--textAlign-${d}`]]: d,
|
|
424
424
|
...o && { [o]: !0 }
|
|
425
|
-
}),
|
|
425
|
+
}), T = E({
|
|
426
426
|
[et.modalWrapper__modal]: !0,
|
|
427
427
|
[et[`modalWrapper__modal--size-${y}`]]: y,
|
|
428
428
|
...i && { [i]: !0 }
|
|
429
429
|
}), S = E({
|
|
430
430
|
[et.modalWrapper__closeButton]: !0,
|
|
431
431
|
[et[`modalWrapper__closeButton--size-${y}`]]: y
|
|
432
|
-
}),
|
|
432
|
+
}), D = E({
|
|
433
433
|
[et.modalWrapper__closeButtonIconContainer]: !0,
|
|
434
434
|
[et[`modalWrapper__closeButtonIconContainer--size-${y}`]]: y
|
|
435
435
|
}), x = E({
|
|
@@ -437,16 +437,16 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
437
437
|
}), A = E({
|
|
438
438
|
[et.modalWrapper__header]: !0,
|
|
439
439
|
...s && { [s]: !0 }
|
|
440
|
-
}),
|
|
440
|
+
}), Y = E({
|
|
441
441
|
[et.modalWrapper__subHeader]: !0
|
|
442
442
|
}), P = E({
|
|
443
443
|
[et.modalWrapper__footer]: !0,
|
|
444
444
|
...l && { [l]: !0 }
|
|
445
445
|
});
|
|
446
|
-
return /* @__PURE__ */ M(bi, { zIndex: a, isHiddenModal: t, classNameRoot:
|
|
446
|
+
return /* @__PURE__ */ M(bi, { zIndex: a, isHiddenModal: t, classNameRoot: C, children: /* @__PURE__ */ ue("div", { className: T, style: p, children: [
|
|
447
447
|
(v || w) && /* @__PURE__ */ ue("div", { className: A, children: [
|
|
448
448
|
typeof v == "string" ? /* @__PURE__ */ M(st, { type: "h3", children: v }) : v,
|
|
449
|
-
w && /* @__PURE__ */ M("div", { className:
|
|
449
|
+
w && /* @__PURE__ */ M("div", { className: Y, children: typeof w == "string" ? /* @__PURE__ */ M(st, { children: w }) : w })
|
|
450
450
|
] }),
|
|
451
451
|
r && /* @__PURE__ */ M("div", { className: x, children: r }),
|
|
452
452
|
b && /* @__PURE__ */ M("div", { className: P, children: b }),
|
|
@@ -454,7 +454,7 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
454
454
|
tr,
|
|
455
455
|
{
|
|
456
456
|
classNameRoot: S,
|
|
457
|
-
classNameIconContainerRoot:
|
|
457
|
+
classNameIconContainerRoot: D,
|
|
458
458
|
onClick: m,
|
|
459
459
|
iconName: pe.Close,
|
|
460
460
|
variant: "link",
|
|
@@ -481,13 +481,13 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
481
481
|
applyButtonsAlign: w = "right",
|
|
482
482
|
modalVerticalAlign: b = "top",
|
|
483
483
|
textAlign: y = "left",
|
|
484
|
-
loading:
|
|
485
|
-
isVisibleCloseButton:
|
|
484
|
+
loading: C,
|
|
485
|
+
isVisibleCloseButton: T,
|
|
486
486
|
isHiddenModal: S,
|
|
487
|
-
size:
|
|
487
|
+
size: D,
|
|
488
488
|
classNameRoot: x,
|
|
489
489
|
classNameLayerRoot: A,
|
|
490
|
-
submitBtnVariant:
|
|
490
|
+
submitBtnVariant: Y,
|
|
491
491
|
cancelBtnVariant: P,
|
|
492
492
|
submitBtnClassName: L,
|
|
493
493
|
cancelBtnClassName: G,
|
|
@@ -503,9 +503,9 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
503
503
|
modalVerticalAlign: b,
|
|
504
504
|
textAlign: y,
|
|
505
505
|
subHeader: e,
|
|
506
|
-
isVisibleCloseButton:
|
|
506
|
+
isVisibleCloseButton: T,
|
|
507
507
|
isHiddenModal: S,
|
|
508
|
-
size:
|
|
508
|
+
size: D,
|
|
509
509
|
classNameRoot: x,
|
|
510
510
|
classNameLayerRoot: A,
|
|
511
511
|
classNameHeaderRoot: ce,
|
|
@@ -522,13 +522,13 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
522
522
|
cancelBtnDisabled: o,
|
|
523
523
|
submitBtnContent: s,
|
|
524
524
|
submitBtnIconName: l,
|
|
525
|
-
submitBtnVariant:
|
|
525
|
+
submitBtnVariant: Y,
|
|
526
526
|
cancelBtnVariant: P,
|
|
527
527
|
formId: d,
|
|
528
528
|
disabled: u,
|
|
529
529
|
onClose: m,
|
|
530
530
|
submit: p,
|
|
531
|
-
loading:
|
|
531
|
+
loading: C
|
|
532
532
|
}
|
|
533
533
|
) : null
|
|
534
534
|
}
|
|
@@ -567,7 +567,7 @@ const $l = "_modalWrapper_1qyrz_43", Ql = "_modalWrapper__modal_1qyrz_76", Gl =
|
|
|
567
567
|
spBaseTooltip: nc,
|
|
568
568
|
spBaseTooltip_noPadding: rc,
|
|
569
569
|
spBaseTooltip__content: ac
|
|
570
|
-
}, yi =
|
|
570
|
+
}, yi = N.forwardRef((n, a) => {
|
|
571
571
|
const {
|
|
572
572
|
text: t,
|
|
573
573
|
noPadding: e = !1,
|
|
@@ -651,9 +651,9 @@ const wr = (n) => {
|
|
|
651
651
|
classNameBaseTooltipRoot: m,
|
|
652
652
|
classNameBaseTooltipContentRoot: v,
|
|
653
653
|
styleTooltip: w
|
|
654
|
-
} = n, [b, y] = Ce(!1),
|
|
654
|
+
} = n, [b, y] = Ce(!1), C = Fe(null), T = Fe(null), [S, D] = Ce(!1);
|
|
655
655
|
Na(
|
|
656
|
-
[
|
|
656
|
+
[C, T],
|
|
657
657
|
() => {
|
|
658
658
|
s && s(), y(!1);
|
|
659
659
|
},
|
|
@@ -661,13 +661,13 @@ const wr = (n) => {
|
|
|
661
661
|
);
|
|
662
662
|
const x = (W) => {
|
|
663
663
|
e && W.stopPropagation(), !a && (b ? s && s() : i && i(), y((z) => t ? !z : !0));
|
|
664
|
-
}, [A,
|
|
664
|
+
}, [A, Y] = Ce({
|
|
665
665
|
visibility: "hidden",
|
|
666
666
|
opacity: 0,
|
|
667
667
|
left: "-9999px"
|
|
668
668
|
}), [P, L] = Ce(!1), G = Ge(() => {
|
|
669
|
-
if (!
|
|
670
|
-
const W =
|
|
669
|
+
if (!C.current || !T.current) return;
|
|
670
|
+
const W = C.current.getBoundingClientRect(), z = T.current.getBoundingClientRect();
|
|
671
671
|
let $ = 0, X = 0;
|
|
672
672
|
switch (p) {
|
|
673
673
|
case je.Right:
|
|
@@ -709,7 +709,7 @@ const wr = (n) => {
|
|
|
709
709
|
default:
|
|
710
710
|
$ = W.bottom + window.scrollY, X = W.left + window.scrollX;
|
|
711
711
|
}
|
|
712
|
-
$ + z.height > window.innerHeight + window.scrollY && p.includes("bottom") ? $ = W.top + window.scrollY - z.height : $ < window.scrollY && p.includes("top") && ($ = W.bottom + window.scrollY), X + z.width > window.innerWidth + window.scrollX && p.includes("left") ? X = W.left + window.scrollX - z.width + W.width : X < window.scrollX && p.includes("right") && (X = W.right + window.scrollX - W.width),
|
|
712
|
+
$ + z.height > window.innerHeight + window.scrollY && p.includes("bottom") ? $ = W.top + window.scrollY - z.height : $ < window.scrollY && p.includes("top") && ($ = W.bottom + window.scrollY), X + z.width > window.innerWidth + window.scrollX && p.includes("left") ? X = W.left + window.scrollX - z.width + W.width : X < window.scrollX && p.includes("right") && (X = W.right + window.scrollX - W.width), Y((h) => ({
|
|
713
713
|
...h,
|
|
714
714
|
top: `${$}px`,
|
|
715
715
|
left: `${X}px`,
|
|
@@ -717,7 +717,7 @@ const wr = (n) => {
|
|
|
717
717
|
opacity: b || P ? 1 : 0
|
|
718
718
|
}));
|
|
719
719
|
}, [p, b, P]);
|
|
720
|
-
Re(() => (
|
|
720
|
+
Re(() => (D(!0), () => D(!1)), []), Re(() => {
|
|
721
721
|
S && G();
|
|
722
722
|
}, [S, G]), Re(() => {
|
|
723
723
|
if (!S) return;
|
|
@@ -737,7 +737,7 @@ const wr = (n) => {
|
|
|
737
737
|
return /* @__PURE__ */ ue(
|
|
738
738
|
"div",
|
|
739
739
|
{
|
|
740
|
-
ref:
|
|
740
|
+
ref: C,
|
|
741
741
|
className: K,
|
|
742
742
|
onClick: x,
|
|
743
743
|
onMouseEnter: () => a && L(!0),
|
|
@@ -749,7 +749,7 @@ const wr = (n) => {
|
|
|
749
749
|
yi,
|
|
750
750
|
{
|
|
751
751
|
style: A,
|
|
752
|
-
ref:
|
|
752
|
+
ref: T,
|
|
753
753
|
noPadding: d,
|
|
754
754
|
text: u,
|
|
755
755
|
classNameRoot: ce,
|
|
@@ -812,23 +812,23 @@ const wr = (n) => {
|
|
|
812
812
|
[Ze.spCheckbox__box]: !0,
|
|
813
813
|
[Ze.spCheckbox__box_disabled]: e,
|
|
814
814
|
[Ze.spCheckbox__box_error]: s
|
|
815
|
-
}),
|
|
815
|
+
}), C = E({
|
|
816
816
|
[Ze.spCheckbox__box__checkmark]: !0,
|
|
817
817
|
[Ze[`spCheckbox__box__checkmark--size-${a}`]]: a
|
|
818
|
-
}),
|
|
818
|
+
}), T = E({
|
|
819
819
|
[Ze.spCheckbox__box__innerSquare]: !0,
|
|
820
820
|
[Ze.spCheckbox__box__innerSquare_checked]: t,
|
|
821
821
|
[Ze[`spCheckbox__box__innerSquare--size-${a}`]]: a
|
|
822
822
|
}), S = E({
|
|
823
823
|
[Ze.spCheckbox__control]: !0
|
|
824
|
-
}),
|
|
824
|
+
}), D = E({
|
|
825
825
|
[Ze.spCheckbox__label]: !0
|
|
826
826
|
}), x = E({
|
|
827
827
|
[Ze.spCheckbox__required]: !0
|
|
828
828
|
}), A = E({
|
|
829
829
|
[Ze.spCheckbox__error]: !0,
|
|
830
830
|
...w && { [w]: !0 }
|
|
831
|
-
}),
|
|
831
|
+
}), Y = E({
|
|
832
832
|
[Ze.spCheckbox__tooltip]: !0
|
|
833
833
|
});
|
|
834
834
|
return /* @__PURE__ */ ue("div", { className: b, onMouseEnter: m, children: [
|
|
@@ -844,10 +844,10 @@ const wr = (n) => {
|
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
),
|
|
847
|
-
/* @__PURE__ */ M("span", { className:
|
|
848
|
-
i && /* @__PURE__ */ M("span", { className:
|
|
847
|
+
/* @__PURE__ */ M("span", { className: C, children: /* @__PURE__ */ M("span", { className: T }) }),
|
|
848
|
+
i && /* @__PURE__ */ M("span", { className: D, children: i }),
|
|
849
849
|
p && /* @__PURE__ */ M("div", { className: x, children: "*" }),
|
|
850
|
-
d && /* @__PURE__ */ M("div", { className:
|
|
850
|
+
d && /* @__PURE__ */ M("div", { className: Y, children: /* @__PURE__ */ M(br, { hover: !0, position: u, text: d }) })
|
|
851
851
|
] }),
|
|
852
852
|
s && /* @__PURE__ */ M("div", { className: A, children: s })
|
|
853
853
|
] });
|
|
@@ -2736,30 +2736,30 @@ function nu(n, a, t) {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
const ru = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, au = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ou = /^'([^]*?)'?$/, iu = /''/g, su = /[a-zA-Z]/;
|
|
2738
2738
|
function io(n, a, t) {
|
|
2739
|
-
var u, d, m, v, w, b, y,
|
|
2740
|
-
const e = Zt(), r = (t == null ? void 0 : t.locale) ?? e.locale ?? Pi, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((v = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((b = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : b.weekStartsOn) ?? e.weekStartsOn ?? ((
|
|
2739
|
+
var u, d, m, v, w, b, y, C;
|
|
2740
|
+
const e = Zt(), r = (t == null ? void 0 : t.locale) ?? e.locale ?? Pi, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((v = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((b = (w = t == null ? void 0 : t.locale) == null ? void 0 : w.options) == null ? void 0 : b.weekStartsOn) ?? e.weekStartsOn ?? ((C = (y = e.locale) == null ? void 0 : y.options) == null ? void 0 : C.weekStartsOn) ?? 0, s = oe(n, t == null ? void 0 : t.in);
|
|
2741
2741
|
if (!ar(s))
|
|
2742
2742
|
throw new RangeError("Invalid time value");
|
|
2743
|
-
let l = a.match(au).map((
|
|
2744
|
-
const S =
|
|
2743
|
+
let l = a.match(au).map((T) => {
|
|
2744
|
+
const S = T[0];
|
|
2745
2745
|
if (S === "p" || S === "P") {
|
|
2746
|
-
const
|
|
2747
|
-
return
|
|
2746
|
+
const D = ma[S];
|
|
2747
|
+
return D(T, r.formatLong);
|
|
2748
2748
|
}
|
|
2749
|
-
return
|
|
2750
|
-
}).join("").match(ru).map((
|
|
2751
|
-
if (
|
|
2749
|
+
return T;
|
|
2750
|
+
}).join("").match(ru).map((T) => {
|
|
2751
|
+
if (T === "''")
|
|
2752
2752
|
return { isToken: !1, value: "'" };
|
|
2753
|
-
const S =
|
|
2753
|
+
const S = T[0];
|
|
2754
2754
|
if (S === "'")
|
|
2755
|
-
return { isToken: !1, value: lu(
|
|
2755
|
+
return { isToken: !1, value: lu(T) };
|
|
2756
2756
|
if (no[S])
|
|
2757
|
-
return { isToken: !0, value:
|
|
2757
|
+
return { isToken: !0, value: T };
|
|
2758
2758
|
if (S.match(su))
|
|
2759
2759
|
throw new RangeError(
|
|
2760
2760
|
"Format string contains an unescaped latin alphabet character `" + S + "`"
|
|
2761
2761
|
);
|
|
2762
|
-
return { isToken: !1, value:
|
|
2762
|
+
return { isToken: !1, value: T };
|
|
2763
2763
|
});
|
|
2764
2764
|
r.localize.preprocessor && (l = r.localize.preprocessor(s, l));
|
|
2765
2765
|
const p = {
|
|
@@ -2767,12 +2767,12 @@ function io(n, a, t) {
|
|
|
2767
2767
|
weekStartsOn: i,
|
|
2768
2768
|
locale: r
|
|
2769
2769
|
};
|
|
2770
|
-
return l.map((
|
|
2771
|
-
if (!
|
|
2772
|
-
const S =
|
|
2770
|
+
return l.map((T) => {
|
|
2771
|
+
if (!T.isToken) return T.value;
|
|
2772
|
+
const S = T.value;
|
|
2773
2773
|
(!(t != null && t.useAdditionalWeekYearTokens) && eu(S) || !(t != null && t.useAdditionalDayOfYearTokens) && Jp(S)) && tu(S, a, String(n));
|
|
2774
|
-
const
|
|
2775
|
-
return
|
|
2774
|
+
const D = no[S[0]];
|
|
2775
|
+
return D(s, S, r.localize, p);
|
|
2776
2776
|
}).join("");
|
|
2777
2777
|
}
|
|
2778
2778
|
function lu(n) {
|
|
@@ -4288,8 +4288,8 @@ const td = {
|
|
|
4288
4288
|
T: new ed()
|
|
4289
4289
|
}, nd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, rd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ad = /^'([^]*?)'?$/, od = /''/g, id = /\S/, sd = /[a-zA-Z]/;
|
|
4290
4290
|
function ld(n, a, t, e) {
|
|
4291
|
-
var y,
|
|
4292
|
-
const r = () => De((e == null ? void 0 : e.in) || t, NaN), o = uu(), i = (e == null ? void 0 : e.locale) ?? o.locale ?? Pi, s = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((
|
|
4291
|
+
var y, C, T, S, D, x, A, Y;
|
|
4292
|
+
const r = () => De((e == null ? void 0 : e.in) || t, NaN), o = uu(), i = (e == null ? void 0 : e.locale) ?? o.locale ?? Pi, s = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((C = (y = e == null ? void 0 : e.locale) == null ? void 0 : y.options) == null ? void 0 : C.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((S = (T = o.locale) == null ? void 0 : T.options) == null ? void 0 : S.firstWeekContainsDate) ?? 1, l = (e == null ? void 0 : e.weekStartsOn) ?? ((x = (D = e == null ? void 0 : e.locale) == null ? void 0 : D.options) == null ? void 0 : x.weekStartsOn) ?? o.weekStartsOn ?? ((Y = (A = o.locale) == null ? void 0 : A.options) == null ? void 0 : Y.weekStartsOn) ?? 0;
|
|
4293
4293
|
if (!a)
|
|
4294
4294
|
return n ? r() : oe(t, e == null ? void 0 : e.in);
|
|
4295
4295
|
const p = {
|
|
@@ -4851,13 +4851,13 @@ const rf = async (n, a, t) => {
|
|
|
4851
4851
|
for (let b = 0; b < s.length; b++) {
|
|
4852
4852
|
const {
|
|
4853
4853
|
name: y,
|
|
4854
|
-
fn:
|
|
4854
|
+
fn: C
|
|
4855
4855
|
} = s[b], {
|
|
4856
|
-
x:
|
|
4856
|
+
x: T,
|
|
4857
4857
|
y: S,
|
|
4858
|
-
data:
|
|
4858
|
+
data: D,
|
|
4859
4859
|
reset: x
|
|
4860
|
-
} = await
|
|
4860
|
+
} = await C({
|
|
4861
4861
|
x: u,
|
|
4862
4862
|
y: d,
|
|
4863
4863
|
initialPlacement: e,
|
|
@@ -4871,11 +4871,11 @@ const rf = async (n, a, t) => {
|
|
|
4871
4871
|
floating: a
|
|
4872
4872
|
}
|
|
4873
4873
|
});
|
|
4874
|
-
u =
|
|
4874
|
+
u = T ?? u, d = S ?? d, v = {
|
|
4875
4875
|
...v,
|
|
4876
4876
|
[y]: {
|
|
4877
4877
|
...v[y],
|
|
4878
|
-
...
|
|
4878
|
+
...D
|
|
4879
4879
|
}
|
|
4880
4880
|
}, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (p = x.rects === !0 ? await i.getElementRects({
|
|
4881
4881
|
reference: n,
|
|
@@ -4910,17 +4910,17 @@ async function af(n, a) {
|
|
|
4910
4910
|
elementContext: d = "floating",
|
|
4911
4911
|
altBoundary: m = !1,
|
|
4912
4912
|
padding: v = 0
|
|
4913
|
-
} = Mr(a, n), w = Hi(v), y = s[m ? d === "floating" ? "reference" : "floating" : d],
|
|
4913
|
+
} = Mr(a, n), w = Hi(v), y = s[m ? d === "floating" ? "reference" : "floating" : d], C = ur(await o.getClippingRect({
|
|
4914
4914
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(y))) == null || t ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
4915
4915
|
boundary: p,
|
|
4916
4916
|
rootBoundary: u,
|
|
4917
4917
|
strategy: l
|
|
4918
|
-
})),
|
|
4918
|
+
})), T = d === "floating" ? {
|
|
4919
4919
|
x: e,
|
|
4920
4920
|
y: r,
|
|
4921
4921
|
width: i.floating.width,
|
|
4922
4922
|
height: i.floating.height
|
|
4923
|
-
} : i.reference, S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
4923
|
+
} : i.reference, S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), D = await (o.isElement == null ? void 0 : o.isElement(S)) ? await (o.getScale == null ? void 0 : o.getScale(S)) || {
|
|
4924
4924
|
x: 1,
|
|
4925
4925
|
y: 1
|
|
4926
4926
|
} : {
|
|
@@ -4928,15 +4928,15 @@ async function af(n, a) {
|
|
|
4928
4928
|
y: 1
|
|
4929
4929
|
}, x = ur(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4930
4930
|
elements: s,
|
|
4931
|
-
rect:
|
|
4931
|
+
rect: T,
|
|
4932
4932
|
offsetParent: S,
|
|
4933
4933
|
strategy: l
|
|
4934
|
-
}) :
|
|
4934
|
+
}) : T);
|
|
4935
4935
|
return {
|
|
4936
|
-
top: (
|
|
4937
|
-
bottom: (x.bottom -
|
|
4938
|
-
left: (
|
|
4939
|
-
right: (x.right -
|
|
4936
|
+
top: (C.top - x.top + w.top) / D.y,
|
|
4937
|
+
bottom: (x.bottom - C.bottom + w.bottom) / D.y,
|
|
4938
|
+
left: (C.left - x.left + w.left) / D.x,
|
|
4939
|
+
right: (x.right - C.right + w.right) / D.x
|
|
4940
4940
|
};
|
|
4941
4941
|
}
|
|
4942
4942
|
const of = (n) => ({
|
|
@@ -4960,10 +4960,10 @@ const of = (n) => ({
|
|
|
4960
4960
|
const d = Hi(u), m = {
|
|
4961
4961
|
x: t,
|
|
4962
4962
|
y: e
|
|
4963
|
-
}, v = Ba(r), w = Wa(v), b = await i.getDimensions(p), y = v === "y",
|
|
4964
|
-
let
|
|
4965
|
-
(!
|
|
4966
|
-
const P =
|
|
4963
|
+
}, 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));
|
|
4964
|
+
let Y = A ? A[S] : 0;
|
|
4965
|
+
(!Y || !await (i.isElement == null ? void 0 : i.isElement(A))) && (Y = s.floating[S] || o.floating[w]);
|
|
4966
|
+
const P = D / 2 - x / 2, L = Y / 2 - b[w] / 2 - 1, G = fn(d[C], L), ce = fn(d[T], L), ne = G, K = Y - b[w] - ce, te = Y / 2 - b[w] / 2 + P, W = jd(ne, te, K), z = !l.arrow && On(r) != null && te !== W && o.reference[w] / 2 - (te < ne ? G : ce) - b[w] / 2 < 0, $ = z ? te < ne ? te - ne : te - K : 0;
|
|
4967
4967
|
return {
|
|
4968
4968
|
[v]: m[v] + $,
|
|
4969
4969
|
data: {
|
|
@@ -5000,12 +5000,12 @@ const of = (n) => ({
|
|
|
5000
5000
|
} = Mr(n, a);
|
|
5001
5001
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5002
5002
|
return {};
|
|
5003
|
-
const
|
|
5004
|
-
!m && A && x.push(...Gd(s, b, w,
|
|
5005
|
-
const
|
|
5003
|
+
const C = mn(r), T = Vt(s), S = mn(s) === s, D = await (l.isRTL == null ? void 0 : l.isRTL(p.floating)), x = m || (S || !b ? [pr(s)] : Vd(s)), A = w !== "none";
|
|
5004
|
+
!m && A && x.push(...Gd(s, b, w, D));
|
|
5005
|
+
const Y = [s, ...x], P = await af(a, y), L = [];
|
|
5006
5006
|
let G = ((e = o.flip) == null ? void 0 : e.overflows) || [];
|
|
5007
|
-
if (u && L.push(P[
|
|
5008
|
-
const te = qd(r, i,
|
|
5007
|
+
if (u && L.push(P[C]), d) {
|
|
5008
|
+
const te = qd(r, i, D);
|
|
5009
5009
|
L.push(P[te[0]], P[te[1]]);
|
|
5010
5010
|
}
|
|
5011
5011
|
if (G = [...G, {
|
|
@@ -5013,10 +5013,10 @@ const of = (n) => ({
|
|
|
5013
5013
|
overflows: L
|
|
5014
5014
|
}], !L.every((te) => te <= 0)) {
|
|
5015
5015
|
var ce, ne;
|
|
5016
|
-
const te = (((ce = o.flip) == null ? void 0 : ce.index) || 0) + 1, W =
|
|
5017
|
-
if (W && (!(d === "alignment" ?
|
|
5016
|
+
const te = (((ce = o.flip) == null ? void 0 : ce.index) || 0) + 1, W = Y[te];
|
|
5017
|
+
if (W && (!(d === "alignment" ? T !== Vt(W) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5018
5018
|
// overflows the main axis.
|
|
5019
|
-
G.every((X) => Vt(X.placement) ===
|
|
5019
|
+
G.every((X) => Vt(X.placement) === T ? X.overflows[0] > 0 : !0)))
|
|
5020
5020
|
return {
|
|
5021
5021
|
data: {
|
|
5022
5022
|
index: te,
|
|
@@ -5034,7 +5034,7 @@ const of = (n) => ({
|
|
|
5034
5034
|
const $ = (K = G.filter((X) => {
|
|
5035
5035
|
if (A) {
|
|
5036
5036
|
const h = Vt(X.placement);
|
|
5037
|
-
return h ===
|
|
5037
|
+
return h === T || // Create a bias to the `y` side axis due to horizontal
|
|
5038
5038
|
// reading directions favoring greater width.
|
|
5039
5039
|
h === "y";
|
|
5040
5040
|
}
|
|
@@ -5158,8 +5158,8 @@ function Xt(n, a, t, e) {
|
|
|
5158
5158
|
const m = tt(o), v = e && $e(e) ? tt(e) : e;
|
|
5159
5159
|
let w = m, b = va(w);
|
|
5160
5160
|
for (; b && e && v !== w; ) {
|
|
5161
|
-
const y = sn(b),
|
|
5162
|
-
l *= y.x, p *= y.y, u *= y.x, d *= y.y, l += S, p +=
|
|
5161
|
+
const y = sn(b), C = b.getBoundingClientRect(), T = lt(b), S = C.left + (b.clientLeft + parseFloat(T.paddingLeft)) * y.x, D = C.top + (b.clientTop + parseFloat(T.paddingTop)) * y.y;
|
|
5162
|
+
l *= y.x, p *= y.y, u *= y.x, d *= y.y, l += S, p += D, w = tt(b), b = va(w);
|
|
5163
5163
|
}
|
|
5164
5164
|
}
|
|
5165
5165
|
return ur({
|
|
@@ -5416,21 +5416,21 @@ function Sf(n, a) {
|
|
|
5416
5416
|
} = p;
|
|
5417
5417
|
if (s || a(), !m || !v)
|
|
5418
5418
|
return;
|
|
5419
|
-
const w = Bn(d), b = Bn(r.clientWidth - (u + m)), y = Bn(r.clientHeight - (d + v)),
|
|
5420
|
-
rootMargin: -w + "px " + -b + "px " + -y + "px " + -
|
|
5419
|
+
const w = Bn(d), b = Bn(r.clientWidth - (u + m)), y = Bn(r.clientHeight - (d + v)), C = Bn(u), S = {
|
|
5420
|
+
rootMargin: -w + "px " + -b + "px " + -y + "px " + -C + "px",
|
|
5421
5421
|
threshold: Gt(0, fn(1, l)) || 1
|
|
5422
5422
|
};
|
|
5423
|
-
let
|
|
5423
|
+
let D = !0;
|
|
5424
5424
|
function x(A) {
|
|
5425
|
-
const
|
|
5426
|
-
if (
|
|
5427
|
-
if (!
|
|
5425
|
+
const Y = A[0].intersectionRatio;
|
|
5426
|
+
if (Y !== l) {
|
|
5427
|
+
if (!D)
|
|
5428
5428
|
return i();
|
|
5429
|
-
|
|
5429
|
+
Y ? i(!1, Y) : e = setTimeout(() => {
|
|
5430
5430
|
i(!1, 1e-7);
|
|
5431
5431
|
}, 1e3);
|
|
5432
5432
|
}
|
|
5433
|
-
|
|
5433
|
+
Y === 1 && !Qi(p, n.getBoundingClientRect()) && i(), D = !1;
|
|
5434
5434
|
}
|
|
5435
5435
|
try {
|
|
5436
5436
|
t = new IntersectionObserver(x, {
|
|
@@ -5454,16 +5454,16 @@ function Mf(n, a, t, e) {
|
|
|
5454
5454
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
5455
5455
|
animationFrame: l = !1
|
|
5456
5456
|
} = e, p = Ya(n), u = r || o ? [...p ? Nn(p) : [], ...Nn(a)] : [];
|
|
5457
|
-
u.forEach((
|
|
5458
|
-
r &&
|
|
5457
|
+
u.forEach((C) => {
|
|
5458
|
+
r && C.addEventListener("scroll", t, {
|
|
5459
5459
|
passive: !0
|
|
5460
|
-
}), o &&
|
|
5460
|
+
}), o && C.addEventListener("resize", t);
|
|
5461
5461
|
});
|
|
5462
5462
|
const d = p && s ? Sf(p, t) : null;
|
|
5463
5463
|
let m = -1, v = null;
|
|
5464
|
-
i && (v = new ResizeObserver((
|
|
5465
|
-
let [
|
|
5466
|
-
|
|
5464
|
+
i && (v = new ResizeObserver((C) => {
|
|
5465
|
+
let [T] = C;
|
|
5466
|
+
T && T.target === p && v && (v.unobserve(a), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
5467
5467
|
var S;
|
|
5468
5468
|
(S = v) == null || S.observe(a);
|
|
5469
5469
|
})), t();
|
|
@@ -5471,14 +5471,14 @@ function Mf(n, a, t, e) {
|
|
|
5471
5471
|
let w, b = l ? Xt(n) : null;
|
|
5472
5472
|
l && y();
|
|
5473
5473
|
function y() {
|
|
5474
|
-
const
|
|
5475
|
-
b && !Qi(b,
|
|
5474
|
+
const C = Xt(n);
|
|
5475
|
+
b && !Qi(b, C) && t(), b = C, w = requestAnimationFrame(y);
|
|
5476
5476
|
}
|
|
5477
5477
|
return t(), () => {
|
|
5478
|
-
var
|
|
5479
|
-
u.forEach((
|
|
5480
|
-
r &&
|
|
5481
|
-
}), d == null || d(), (
|
|
5478
|
+
var C;
|
|
5479
|
+
u.forEach((T) => {
|
|
5480
|
+
r && T.removeEventListener("scroll", t), o && T.removeEventListener("resize", t);
|
|
5481
|
+
}), d == null || d(), (C = v) == null || C.disconnect(), v = null, l && cancelAnimationFrame(w);
|
|
5482
5482
|
};
|
|
5483
5483
|
}
|
|
5484
5484
|
const Ef = pf, Nf = sf, _o = of, Tf = (n, a, t) => {
|
|
@@ -5562,19 +5562,19 @@ function Of(n) {
|
|
|
5562
5562
|
isPositioned: !1
|
|
5563
5563
|
}), [m, v] = R.useState(e);
|
|
5564
5564
|
fr(m, e) || v(e);
|
|
5565
|
-
const [w, b] = R.useState(null), [y,
|
|
5565
|
+
const [w, b] = R.useState(null), [y, C] = R.useState(null), T = R.useCallback((X) => {
|
|
5566
5566
|
X !== A.current && (A.current = X, b(X));
|
|
5567
5567
|
}, []), S = R.useCallback((X) => {
|
|
5568
|
-
X !==
|
|
5569
|
-
}, []),
|
|
5570
|
-
if (!A.current || !
|
|
5568
|
+
X !== Y.current && (Y.current = X, C(X));
|
|
5569
|
+
}, []), D = o || w, x = i || y, A = R.useRef(null), Y = R.useRef(null), P = R.useRef(u), L = l != null, G = zr(l), ce = zr(r), ne = zr(p), K = R.useCallback(() => {
|
|
5570
|
+
if (!A.current || !Y.current)
|
|
5571
5571
|
return;
|
|
5572
5572
|
const X = {
|
|
5573
5573
|
placement: a,
|
|
5574
5574
|
strategy: t,
|
|
5575
5575
|
middleware: m
|
|
5576
5576
|
};
|
|
5577
|
-
ce.current && (X.platform = ce.current), Tf(A.current,
|
|
5577
|
+
ce.current && (X.platform = ce.current), Tf(A.current, Y.current, X).then((h) => {
|
|
5578
5578
|
const f = {
|
|
5579
5579
|
...h,
|
|
5580
5580
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5598,21 +5598,21 @@ function Of(n) {
|
|
|
5598
5598
|
Zn(() => (te.current = !0, () => {
|
|
5599
5599
|
te.current = !1;
|
|
5600
5600
|
}), []), Zn(() => {
|
|
5601
|
-
if (
|
|
5601
|
+
if (D && (A.current = D), x && (Y.current = x), D && x) {
|
|
5602
5602
|
if (G.current)
|
|
5603
|
-
return G.current(
|
|
5603
|
+
return G.current(D, x, K);
|
|
5604
5604
|
K();
|
|
5605
5605
|
}
|
|
5606
|
-
}, [
|
|
5606
|
+
}, [D, x, K, G, L]);
|
|
5607
5607
|
const W = R.useMemo(() => ({
|
|
5608
5608
|
reference: A,
|
|
5609
|
-
floating:
|
|
5610
|
-
setReference:
|
|
5609
|
+
floating: Y,
|
|
5610
|
+
setReference: T,
|
|
5611
5611
|
setFloating: S
|
|
5612
|
-
}), [
|
|
5613
|
-
reference:
|
|
5612
|
+
}), [T, S]), z = R.useMemo(() => ({
|
|
5613
|
+
reference: D,
|
|
5614
5614
|
floating: x
|
|
5615
|
-
}), [
|
|
5615
|
+
}), [D, x]), $ = R.useMemo(() => {
|
|
5616
5616
|
const X = {
|
|
5617
5617
|
position: t,
|
|
5618
5618
|
left: 0,
|
|
@@ -5735,24 +5735,24 @@ const qf = /* @__PURE__ */ R.forwardRef(function(a, t) {
|
|
|
5735
5735
|
...y
|
|
5736
5736
|
} = a;
|
|
5737
5737
|
process.env.NODE_ENV !== "production" && (t || Hf("The `ref` prop is required for `FloatingArrow`."));
|
|
5738
|
-
const
|
|
5738
|
+
const C = Ki(), [T, S] = R.useState(!1);
|
|
5739
5739
|
if (dr(() => {
|
|
5740
5740
|
if (!r) return;
|
|
5741
5741
|
lt(r).direction === "rtl" && S(!0);
|
|
5742
5742
|
}, [r]), !r)
|
|
5743
5743
|
return null;
|
|
5744
|
-
const [
|
|
5745
|
-
let
|
|
5746
|
-
(A && i != null && i.x || !A && i != null && i.y) && (
|
|
5747
|
-
const P = u * 2, L = P / 2, G = s / 2 * (p / -8 + 1), ce = l / 2 * p / 4, ne = !!v, K =
|
|
5748
|
-
let te =
|
|
5749
|
-
|
|
5750
|
-
const W = (o == null ? void 0 : o.x) != null ?
|
|
5744
|
+
const [D, x] = e.split("-"), A = D === "top" || D === "bottom";
|
|
5745
|
+
let Y = d;
|
|
5746
|
+
(A && i != null && i.x || !A && i != null && i.y) && (Y = null);
|
|
5747
|
+
const P = u * 2, L = P / 2, G = s / 2 * (p / -8 + 1), ce = l / 2 * p / 4, ne = !!v, K = Y && x === "end" ? "bottom" : "top";
|
|
5748
|
+
let te = Y && x === "end" ? "right" : "left";
|
|
5749
|
+
Y && T && (te = x === "end" ? "left" : "right");
|
|
5750
|
+
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 - G) + "," + (l - ce)) + (" Q" + s / 2 + "," + l + " " + G + "," + (l - ce)) + " Z", X = {
|
|
5751
5751
|
top: ne ? "rotate(180deg)" : "",
|
|
5752
5752
|
left: ne ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5753
5753
|
bottom: ne ? "" : "rotate(180deg)",
|
|
5754
5754
|
right: ne ? "rotate(-90deg)" : "rotate(90deg)"
|
|
5755
|
-
}[
|
|
5755
|
+
}[D];
|
|
5756
5756
|
return /* @__PURE__ */ ue("svg", {
|
|
5757
5757
|
...y,
|
|
5758
5758
|
"aria-hidden": !0,
|
|
@@ -5765,12 +5765,12 @@ const qf = /* @__PURE__ */ R.forwardRef(function(a, t) {
|
|
|
5765
5765
|
pointerEvents: "none",
|
|
5766
5766
|
[te]: W,
|
|
5767
5767
|
[K]: z,
|
|
5768
|
-
[
|
|
5768
|
+
[D]: A || ne ? "100%" : "calc(100% - " + P / 2 + "px)",
|
|
5769
5769
|
transform: [X, w].filter((h) => !!h).join(" "),
|
|
5770
5770
|
...b
|
|
5771
5771
|
},
|
|
5772
5772
|
children: [P > 0 && /* @__PURE__ */ M("path", {
|
|
5773
|
-
clipPath: "url(#" +
|
|
5773
|
+
clipPath: "url(#" + C + ")",
|
|
5774
5774
|
fill: "none",
|
|
5775
5775
|
stroke: m,
|
|
5776
5776
|
strokeWidth: P + (v ? 0 : 1),
|
|
@@ -5779,7 +5779,7 @@ const qf = /* @__PURE__ */ R.forwardRef(function(a, t) {
|
|
|
5779
5779
|
stroke: P && !v ? y.fill : "none",
|
|
5780
5780
|
d: $
|
|
5781
5781
|
}), /* @__PURE__ */ M("clipPath", {
|
|
5782
|
-
id:
|
|
5782
|
+
id: C,
|
|
5783
5783
|
children: /* @__PURE__ */ M("rect", {
|
|
5784
5784
|
x: -L,
|
|
5785
5785
|
y: L * (ne ? -1 : 1),
|
|
@@ -5867,12 +5867,12 @@ function Xf(n) {
|
|
|
5867
5867
|
}
|
|
5868
5868
|
}
|
|
5869
5869
|
}), w = R.useCallback((S) => {
|
|
5870
|
-
const
|
|
5870
|
+
const D = $e(S) ? {
|
|
5871
5871
|
getBoundingClientRect: () => S.getBoundingClientRect(),
|
|
5872
5872
|
getClientRects: () => S.getClientRects(),
|
|
5873
5873
|
contextElement: S
|
|
5874
5874
|
} : S;
|
|
5875
|
-
l(
|
|
5875
|
+
l(D), v.refs.setReference(D);
|
|
5876
5876
|
}, [v.refs]), b = R.useCallback((S) => {
|
|
5877
5877
|
($e(S) || S === null) && (d.current = S, i(S)), ($e(v.refs.reference.current) || v.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
5878
5878
|
// `null` to support `positionReference` + an unstable `reference`
|
|
@@ -5883,26 +5883,26 @@ function Xf(n) {
|
|
|
5883
5883
|
setReference: b,
|
|
5884
5884
|
setPositionReference: w,
|
|
5885
5885
|
domReference: d
|
|
5886
|
-
}), [v.refs, b, w]),
|
|
5886
|
+
}), [v.refs, b, w]), C = R.useMemo(() => ({
|
|
5887
5887
|
...v.elements,
|
|
5888
5888
|
domReference: u
|
|
5889
|
-
}), [v.elements, u]),
|
|
5889
|
+
}), [v.elements, u]), T = R.useMemo(() => ({
|
|
5890
5890
|
...v,
|
|
5891
5891
|
...e,
|
|
5892
5892
|
refs: y,
|
|
5893
|
-
elements:
|
|
5893
|
+
elements: C,
|
|
5894
5894
|
nodeId: a
|
|
5895
|
-
}), [v, y,
|
|
5895
|
+
}), [v, y, C, a, e]);
|
|
5896
5896
|
return dr(() => {
|
|
5897
|
-
e.dataRef.current.floatingContext =
|
|
5898
|
-
const S = m == null ? void 0 : m.nodesRef.current.find((
|
|
5899
|
-
S && (S.context =
|
|
5897
|
+
e.dataRef.current.floatingContext = T;
|
|
5898
|
+
const S = m == null ? void 0 : m.nodesRef.current.find((D) => D.id === a);
|
|
5899
|
+
S && (S.context = T);
|
|
5900
5900
|
}), R.useMemo(() => ({
|
|
5901
5901
|
...v,
|
|
5902
|
-
context:
|
|
5902
|
+
context: T,
|
|
5903
5903
|
refs: y,
|
|
5904
|
-
elements:
|
|
5905
|
-
}), [v, y,
|
|
5904
|
+
elements: C
|
|
5905
|
+
}), [v, y, C, T]);
|
|
5906
5906
|
}
|
|
5907
5907
|
/*!
|
|
5908
5908
|
react-datepicker v8.7.0
|
|
@@ -5942,7 +5942,7 @@ function xt(n, a, t) {
|
|
|
5942
5942
|
}
|
|
5943
5943
|
var Zf = function(n) {
|
|
5944
5944
|
var a = n.showTimeSelectOnly, t = a === void 0 ? !1 : a, e = n.showTime, r = e === void 0 ? !1 : e, o = n.className, i = n.children, s = t ? "Choose Time" : "Choose Date".concat(r ? " and Time" : "");
|
|
5945
|
-
return
|
|
5945
|
+
return N.createElement("div", { className: o, role: "dialog", "aria-label": s, "aria-modal": "true" }, i);
|
|
5946
5946
|
}, Jf = function(n, a) {
|
|
5947
5947
|
var t = Fe(null), e = Fe(n);
|
|
5948
5948
|
e.current = n;
|
|
@@ -5959,7 +5959,7 @@ var Zf = function(n) {
|
|
|
5959
5959
|
}, [r]), t;
|
|
5960
5960
|
}, Nr = function(n) {
|
|
5961
5961
|
var a = n.children, t = n.onClickOutside, e = n.className, r = n.containerRef, o = n.style, i = n.ignoreClass, s = Jf(t, i);
|
|
5962
|
-
return
|
|
5962
|
+
return N.createElement("div", { className: e, style: o, ref: function(l) {
|
|
5963
5963
|
s.current = l, r && (r.current = l);
|
|
5964
5964
|
} }, a);
|
|
5965
5965
|
}, ee;
|
|
@@ -6385,7 +6385,7 @@ var bm = (
|
|
|
6385
6385
|
ze(a, n);
|
|
6386
6386
|
function a(t) {
|
|
6387
6387
|
var e = n.call(this, t) || this;
|
|
6388
|
-
return e.inputRef =
|
|
6388
|
+
return e.inputRef = N.createRef(), e.onTimeChange = function(r) {
|
|
6389
6389
|
var o, i;
|
|
6390
6390
|
e.setState({ time: r });
|
|
6391
6391
|
var s = e.props.date, l = s instanceof Date && !isNaN(+s), p = l ? s : /* @__PURE__ */ new Date();
|
|
@@ -6400,7 +6400,7 @@ var bm = (
|
|
|
6400
6400
|
date: i,
|
|
6401
6401
|
value: r,
|
|
6402
6402
|
onChange: e.onTimeChange
|
|
6403
|
-
}) :
|
|
6403
|
+
}) : N.createElement("input", { type: "time", className: "react-datepicker-time__input", placeholder: "Time", name: "time-input", ref: e.inputRef, onClick: function() {
|
|
6404
6404
|
var p;
|
|
6405
6405
|
(p = e.inputRef.current) === null || p === void 0 || p.focus();
|
|
6406
6406
|
}, required: !0, value: r, onChange: function(p) {
|
|
@@ -6415,14 +6415,14 @@ var bm = (
|
|
|
6415
6415
|
time: t.timeString
|
|
6416
6416
|
} : null;
|
|
6417
6417
|
}, a.prototype.render = function() {
|
|
6418
|
-
return
|
|
6418
|
+
return N.createElement(
|
|
6419
6419
|
"div",
|
|
6420
6420
|
{ className: "react-datepicker__input-time-container" },
|
|
6421
|
-
|
|
6422
|
-
|
|
6421
|
+
N.createElement("div", { className: "react-datepicker-time__caption" }, this.props.timeInputLabel),
|
|
6422
|
+
N.createElement(
|
|
6423
6423
|
"div",
|
|
6424
6424
|
{ className: "react-datepicker-time__input-container" },
|
|
6425
|
-
|
|
6425
|
+
N.createElement("div", { className: "react-datepicker-time__input" }, this.renderTimeInput())
|
|
6426
6426
|
)
|
|
6427
6427
|
);
|
|
6428
6428
|
}, a;
|
|
@@ -6572,11 +6572,11 @@ var bm = (
|
|
|
6572
6572
|
}, t.render = function() {
|
|
6573
6573
|
return (
|
|
6574
6574
|
// TODO: Use <option> instead of the "option" role to ensure accessibility across all devices.
|
|
6575
|
-
|
|
6575
|
+
N.createElement(
|
|
6576
6576
|
"div",
|
|
6577
6577
|
{ ref: t.dayEl, className: t.getClassNames(t.props.day), onKeyDown: t.handleOnKeyDown, onClick: t.handleClick, onMouseEnter: t.props.usePointerEvent ? void 0 : t.handleMouseEnter, onPointerEnter: t.props.usePointerEvent ? t.handleMouseEnter : void 0, tabIndex: t.getTabIndex(), "aria-label": t.getAriaLabel(), role: "gridcell", title: t.getTitle(), "aria-disabled": t.isDisabled(), "aria-current": t.isCurrentDay() ? "date" : void 0, "aria-selected": t.isSelected() || t.isInRange() },
|
|
6578
6578
|
t.renderDayContents(),
|
|
6579
|
-
t.getTitle() !== "" &&
|
|
6579
|
+
t.getTitle() !== "" && N.createElement("span", { className: "overlay" }, t.getTitle())
|
|
6580
6580
|
)
|
|
6581
6581
|
);
|
|
6582
6582
|
}, t;
|
|
@@ -6636,7 +6636,7 @@ var bm = (
|
|
|
6636
6636
|
"react-datepicker__week-number--clickable": !!s && !r,
|
|
6637
6637
|
"react-datepicker__week-number--selected": !!s && he(this.props.date, this.props.selected)
|
|
6638
6638
|
};
|
|
6639
|
-
return
|
|
6639
|
+
return N.createElement("div", { ref: this.weekNumberEl, className: E(l), "aria-label": "".concat(i, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex(), role: "gridcell" }, e);
|
|
6640
6640
|
}, a;
|
|
6641
6641
|
}(He)
|
|
6642
6642
|
), km = (
|
|
@@ -6683,11 +6683,11 @@ var bm = (
|
|
|
6683
6683
|
var e = t.startOfWeek(), r = [], o = t.formatWeekNumber(e);
|
|
6684
6684
|
if (t.props.showWeekNumber) {
|
|
6685
6685
|
var i = t.props.onWeekSelect || t.props.showWeekPicker ? t.handleWeekClick.bind(t, e, o) : void 0;
|
|
6686
|
-
r.push(
|
|
6686
|
+
r.push(N.createElement(xm, ve({ key: "W" }, a.defaultProps, t.props, { weekNumber: o, isWeekDisabled: t.isWeekDisabled(), date: e, onClick: i })));
|
|
6687
6687
|
}
|
|
6688
6688
|
return r.concat([0, 1, 2, 3, 4, 5, 6].map(function(s) {
|
|
6689
6689
|
var l = ut(e, s);
|
|
6690
|
-
return
|
|
6690
|
+
return N.createElement(ym, ve({}, a.defaultProps, t.props, { ariaLabelPrefixWhenEnabled: t.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: t.props.disabledDayAriaLabelPrefix, key: l.valueOf(), day: l, onClick: t.handleDayClick.bind(t, l), onMouseEnter: t.handleDayMouseEnter.bind(t, l) }));
|
|
6691
6691
|
}));
|
|
6692
6692
|
}, t.startOfWeek = function() {
|
|
6693
6693
|
return At(t.props.day, t.props.locale, t.props.calendarStartDay);
|
|
@@ -6709,7 +6709,7 @@ var bm = (
|
|
|
6709
6709
|
"react-datepicker__week--selected": he(this.startOfWeek(), this.props.selected),
|
|
6710
6710
|
"react-datepicker__week--keyboard-selected": this.isKeyboardSelected()
|
|
6711
6711
|
}, e = this.props.weekClassName ? this.props.weekClassName(this.startOfWeek()) : void 0;
|
|
6712
|
-
return
|
|
6712
|
+
return N.createElement("div", { className: E(t, e), role: "row" }, this.renderDays());
|
|
6713
6713
|
}, a;
|
|
6714
6714
|
}(He)
|
|
6715
6715
|
), xn, Dm = 6, ln = {
|
|
@@ -6834,7 +6834,7 @@ var Cm = (
|
|
|
6834
6834
|
return t.props.showWeekPicker ? At(w, t.props.locale, t.props.calendarStartDay) : t.props.preSelection;
|
|
6835
6835
|
}, p = function(w) {
|
|
6836
6836
|
return t.props.showWeekPicker ? At(w, t.props.locale, t.props.calendarStartDay) : t.props.selected;
|
|
6837
|
-
}, u = t.props.selected ? p(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(
|
|
6837
|
+
}, u = t.props.selected ? p(t.props.selected) : void 0, d = t.props.preSelection ? l(t.props.preSelection) : void 0; e.push(N.createElement(km, ve({}, t.props, { ariaLabelPrefix: t.props.weekAriaLabelPrefix, key: o, day: s, month: Ue(t.props.day), onDayClick: t.handleDayClick, onDayMouseEnter: t.handleDayMouseEnter, selected: u, preSelection: d, showWeekNumber: t.props.showWeekNumbers }))), !i; ) {
|
|
6838
6838
|
o++, s = rr(s, 1);
|
|
6839
6839
|
var m = r && o >= Dm, v = !r && !t.isWeekInMonth(s);
|
|
6840
6840
|
if (m || v)
|
|
@@ -6856,9 +6856,9 @@ var Cm = (
|
|
|
6856
6856
|
}, t.handleKeyboardNavigation = function(e, r, o) {
|
|
6857
6857
|
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;
|
|
6858
6858
|
if (p) {
|
|
6859
|
-
var b = Lo(v, w), y = t.getVerticalOffset(b),
|
|
6859
|
+
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) {
|
|
6860
6860
|
var G, ce, ne = P, K = L;
|
|
6861
|
-
switch (
|
|
6861
|
+
switch (Y) {
|
|
6862
6862
|
case ee.ArrowRight:
|
|
6863
6863
|
ne = ft(P, qn), K = L === 11 ? 0 : L + qn;
|
|
6864
6864
|
break;
|
|
@@ -6866,31 +6866,31 @@ var Cm = (
|
|
|
6866
6866
|
ne = Qt(P, qn), K = L === 0 ? 11 : L - qn;
|
|
6867
6867
|
break;
|
|
6868
6868
|
case ee.ArrowUp:
|
|
6869
|
-
ne = Qt(P, y), K = !((G =
|
|
6869
|
+
ne = Qt(P, y), K = !((G = C == null ? void 0 : C[0]) === null || G === void 0) && G.includes(L) ? L + 12 - y : L - y;
|
|
6870
6870
|
break;
|
|
6871
6871
|
case ee.ArrowDown:
|
|
6872
|
-
ne = ft(P, y), K = !((ce =
|
|
6872
|
+
ne = ft(P, y), K = !((ce = C == null ? void 0 : C[C.length - 1]) === null || ce === void 0) && ce.includes(L) ? L - 12 + y : L + y;
|
|
6873
6873
|
break;
|
|
6874
6874
|
}
|
|
6875
6875
|
return { newCalculatedDate: ne, newCalculatedMonth: K };
|
|
6876
|
-
}, S = function(
|
|
6877
|
-
for (var G = 40, ce =
|
|
6876
|
+
}, S = function(Y, P, L) {
|
|
6877
|
+
for (var G = 40, ce = Y, ne = !1, K = 0, te = T(ce, P, L), W = te.newCalculatedDate, z = te.newCalculatedMonth; !ne; ) {
|
|
6878
6878
|
if (K >= G) {
|
|
6879
6879
|
W = P, z = L;
|
|
6880
6880
|
break;
|
|
6881
6881
|
}
|
|
6882
6882
|
if (d && W < d) {
|
|
6883
6883
|
ce = ee.ArrowRight;
|
|
6884
|
-
var $ =
|
|
6884
|
+
var $ = T(ce, W, z);
|
|
6885
6885
|
W = $.newCalculatedDate, z = $.newCalculatedMonth;
|
|
6886
6886
|
}
|
|
6887
6887
|
if (m && W > m) {
|
|
6888
6888
|
ce = ee.ArrowLeft;
|
|
6889
|
-
var $ =
|
|
6889
|
+
var $ = T(ce, W, z);
|
|
6890
6890
|
W = $.newCalculatedDate, z = $.newCalculatedMonth;
|
|
6891
6891
|
}
|
|
6892
6892
|
if (pm(W, t.props)) {
|
|
6893
|
-
var $ =
|
|
6893
|
+
var $ = T(ce, W, z);
|
|
6894
6894
|
W = $.newCalculatedDate, z = $.newCalculatedMonth;
|
|
6895
6895
|
} else
|
|
6896
6896
|
ne = !0;
|
|
@@ -6902,7 +6902,7 @@ var Cm = (
|
|
|
6902
6902
|
t.isMonthDisabled(o) || (t.onMonthClick(e, o), u == null || u(l));
|
|
6903
6903
|
return;
|
|
6904
6904
|
}
|
|
6905
|
-
var
|
|
6905
|
+
var D = S(r, p, o), x = D.newCalculatedDate, A = D.newCalculatedMonth;
|
|
6906
6906
|
switch (r) {
|
|
6907
6907
|
case ee.ArrowRight:
|
|
6908
6908
|
case ee.ArrowLeft:
|
|
@@ -7002,8 +7002,8 @@ var Cm = (
|
|
|
7002
7002
|
}, t.renderMonths = function() {
|
|
7003
7003
|
var e, r = t.props, o = r.showTwoColumnMonthYearPicker, i = r.showFourColumnMonthYearPicker, s = r.day, l = r.selected, p = (e = $r[Lo(i, o)]) === null || e === void 0 ? void 0 : e.grid;
|
|
7004
7004
|
return p == null ? void 0 : p.map(function(u, d) {
|
|
7005
|
-
return
|
|
7006
|
-
return
|
|
7005
|
+
return N.createElement("div", { className: "react-datepicker__month-wrapper", key: d }, u.map(function(m, v) {
|
|
7006
|
+
return N.createElement("div", { ref: t.MONTH_REFS[m], key: v, onClick: function(w) {
|
|
7007
7007
|
t.onMonthClick(w, m);
|
|
7008
7008
|
}, onKeyDown: function(w) {
|
|
7009
7009
|
rs(w) && (w.preventDefault(), w.key = ee.Enter), t.onMonthKeyDown(w, m);
|
|
@@ -7016,8 +7016,8 @@ var Cm = (
|
|
|
7016
7016
|
});
|
|
7017
7017
|
}, t.renderQuarters = function() {
|
|
7018
7018
|
var e = t.props, r = e.day, o = e.selected, i = [1, 2, 3, 4];
|
|
7019
|
-
return
|
|
7020
|
-
return
|
|
7019
|
+
return N.createElement("div", { className: "react-datepicker__quarter-wrapper" }, i.map(function(s, l) {
|
|
7020
|
+
return N.createElement("div", { key: l, ref: t.QUARTER_REFS[l], role: "option", onClick: function(p) {
|
|
7021
7021
|
t.onQuarterClick(p, s);
|
|
7022
7022
|
}, onKeyDown: function(p) {
|
|
7023
7023
|
t.onQuarterKeyDown(p, s);
|
|
@@ -7042,11 +7042,11 @@ var Cm = (
|
|
|
7042
7042
|
return [e];
|
|
7043
7043
|
}, a.prototype.render = function() {
|
|
7044
7044
|
var t = this.props, e = t.showMonthYearPicker, r = t.showQuarterYearPicker, o = t.day, i = t.ariaLabelPrefix, s = i === void 0 ? "Month " : i, l = s ? s.trim() + " " : "", p = e || r;
|
|
7045
|
-
return p ?
|
|
7045
|
+
return p ? N.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(Se(o, "MMMM, yyyy", this.props.locale)), role: "listbox" }, e ? this.renderMonths() : this.renderQuarters()) : N.createElement(
|
|
7046
7046
|
"div",
|
|
7047
7047
|
{ role: "table" },
|
|
7048
|
-
this.props.dayNamesHeader &&
|
|
7049
|
-
|
|
7048
|
+
this.props.dayNamesHeader && N.createElement("div", { role: "rowgroup" }, this.props.dayNamesHeader),
|
|
7049
|
+
N.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(l).concat(Se(o, "MMMM, yyyy", this.props.locale)), role: "rowgroup" }, this.renderWeeks())
|
|
7050
7050
|
);
|
|
7051
7051
|
}, a;
|
|
7052
7052
|
}(He)
|
|
@@ -7077,12 +7077,12 @@ var Cm = (
|
|
|
7077
7077
|
}
|
|
7078
7078
|
}, t.renderOptions = function() {
|
|
7079
7079
|
return t.monthOptionButtonsRef = {}, t.props.monthNames.map(function(e, r) {
|
|
7080
|
-
return
|
|
7080
|
+
return N.createElement(
|
|
7081
7081
|
"div",
|
|
7082
7082
|
{ ref: function(o) {
|
|
7083
7083
|
t.monthOptionButtonsRef[r] = o, t.isSelectedMonth(r) && (o == null || o.focus());
|
|
7084
7084
|
}, role: "button", tabIndex: 0, className: t.isSelectedMonth(r) ? "react-datepicker__month-option react-datepicker__month-option--selected_month" : "react-datepicker__month-option", key: e, onClick: t.onChange.bind(t, r), onKeyDown: t.handleOptionKeyDown.bind(t, r), "aria-selected": t.isSelectedMonth(r) ? "true" : void 0 },
|
|
7085
|
-
t.isSelectedMonth(r) ?
|
|
7085
|
+
t.isSelectedMonth(r) ? N.createElement("span", { className: "react-datepicker__month-option--selected" }, "✓") : "",
|
|
7086
7086
|
e
|
|
7087
7087
|
);
|
|
7088
7088
|
});
|
|
@@ -7093,7 +7093,7 @@ var Cm = (
|
|
|
7093
7093
|
}, t;
|
|
7094
7094
|
}
|
|
7095
7095
|
return a.prototype.render = function() {
|
|
7096
|
-
return
|
|
7096
|
+
return N.createElement(Nr, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
7097
7097
|
}, a;
|
|
7098
7098
|
}(He)
|
|
7099
7099
|
), Mm = (
|
|
@@ -7106,21 +7106,21 @@ var Cm = (
|
|
|
7106
7106
|
dropdownVisible: !1
|
|
7107
7107
|
}, t.renderSelectOptions = function(e) {
|
|
7108
7108
|
return e.map(function(r, o) {
|
|
7109
|
-
return
|
|
7109
|
+
return N.createElement("option", { key: r, value: o }, r);
|
|
7110
7110
|
});
|
|
7111
7111
|
}, t.renderSelectMode = function(e) {
|
|
7112
|
-
return
|
|
7112
|
+
return N.createElement("select", { value: t.props.month, className: "react-datepicker__month-select", onChange: function(r) {
|
|
7113
7113
|
return t.onChange(parseInt(r.target.value));
|
|
7114
7114
|
} }, t.renderSelectOptions(e));
|
|
7115
7115
|
}, t.renderReadView = function(e, r) {
|
|
7116
|
-
return
|
|
7116
|
+
return N.createElement(
|
|
7117
7117
|
"button",
|
|
7118
7118
|
{ key: "read", type: "button", style: { visibility: e ? "visible" : "hidden" }, className: "react-datepicker__month-read-view", onClick: t.toggleDropdown },
|
|
7119
|
-
|
|
7120
|
-
|
|
7119
|
+
N.createElement("span", { className: "react-datepicker__month-read-view--down-arrow" }),
|
|
7120
|
+
N.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, r[t.props.month])
|
|
7121
7121
|
);
|
|
7122
7122
|
}, t.renderDropdown = function(e) {
|
|
7123
|
-
return
|
|
7123
|
+
return N.createElement(Sm, ve({ key: "dropdown" }, t.props, { monthNames: e, onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
7124
7124
|
}, t.renderScrollMode = function(e) {
|
|
7125
7125
|
var r = t.state.dropdownVisible, o = [t.renderReadView(!r, e)];
|
|
7126
7126
|
return r && o.unshift(t.renderDropdown(e)), o;
|
|
@@ -7146,7 +7146,7 @@ var Cm = (
|
|
|
7146
7146
|
r = this.renderSelectMode(e);
|
|
7147
7147
|
break;
|
|
7148
7148
|
}
|
|
7149
|
-
return
|
|
7149
|
+
return N.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, r);
|
|
7150
7150
|
}, a;
|
|
7151
7151
|
}(He)
|
|
7152
7152
|
);
|
|
@@ -7164,10 +7164,10 @@ var Nm = (
|
|
|
7164
7164
|
return e.renderOptions = function() {
|
|
7165
7165
|
return e.state.monthYearsList.map(function(r) {
|
|
7166
7166
|
var o = ha(r), i = vt(e.props.date, r) && Xe(e.props.date, r);
|
|
7167
|
-
return
|
|
7167
|
+
return N.createElement(
|
|
7168
7168
|
"div",
|
|
7169
7169
|
{ className: i ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", key: o, onClick: e.onChange.bind(e, o), "aria-selected": i ? "true" : void 0 },
|
|
7170
|
-
i ?
|
|
7170
|
+
i ? N.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "✓") : "",
|
|
7171
7171
|
Se(r, e.props.dateFormat, e.props.locale)
|
|
7172
7172
|
);
|
|
7173
7173
|
});
|
|
@@ -7184,7 +7184,7 @@ var Nm = (
|
|
|
7184
7184
|
"react-datepicker__month-year-dropdown": !0,
|
|
7185
7185
|
"react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown
|
|
7186
7186
|
});
|
|
7187
|
-
return
|
|
7187
|
+
return N.createElement(Nr, { className: t, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
7188
7188
|
}, a;
|
|
7189
7189
|
}(He)
|
|
7190
7190
|
), Tm = (
|
|
@@ -7198,23 +7198,23 @@ var Nm = (
|
|
|
7198
7198
|
}, t.renderSelectOptions = function() {
|
|
7199
7199
|
for (var e = Ot(t.props.minDate), r = Ot(t.props.maxDate), o = []; !Bt(e, r); ) {
|
|
7200
7200
|
var i = ha(e);
|
|
7201
|
-
o.push(
|
|
7201
|
+
o.push(N.createElement("option", { key: i, value: i }, Se(e, t.props.dateFormat, t.props.locale))), e = ft(e, 1);
|
|
7202
7202
|
}
|
|
7203
7203
|
return o;
|
|
7204
7204
|
}, t.onSelectChange = function(e) {
|
|
7205
7205
|
t.onChange(parseInt(e.target.value));
|
|
7206
7206
|
}, t.renderSelectMode = function() {
|
|
7207
|
-
return
|
|
7207
|
+
return N.createElement("select", { value: ha(Ot(t.props.date)), className: "react-datepicker__month-year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
|
|
7208
7208
|
}, t.renderReadView = function(e) {
|
|
7209
7209
|
var r = Se(t.props.date, t.props.dateFormat, t.props.locale);
|
|
7210
|
-
return
|
|
7210
|
+
return N.createElement(
|
|
7211
7211
|
"div",
|
|
7212
7212
|
{ key: "read", style: { visibility: e ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: t.toggleDropdown },
|
|
7213
|
-
|
|
7214
|
-
|
|
7213
|
+
N.createElement("span", { className: "react-datepicker__month-year-read-view--down-arrow" }),
|
|
7214
|
+
N.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, r)
|
|
7215
7215
|
);
|
|
7216
7216
|
}, t.renderDropdown = function() {
|
|
7217
|
-
return
|
|
7217
|
+
return N.createElement(Nm, ve({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
7218
7218
|
}, t.renderScrollMode = function() {
|
|
7219
7219
|
var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
|
|
7220
7220
|
return e && r.unshift(t.renderDropdown()), r;
|
|
@@ -7238,7 +7238,7 @@ var Nm = (
|
|
|
7238
7238
|
t = this.renderSelectMode();
|
|
7239
7239
|
break;
|
|
7240
7240
|
}
|
|
7241
|
-
return
|
|
7241
|
+
return N.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
7242
7242
|
}, a;
|
|
7243
7243
|
}(He)
|
|
7244
7244
|
), Pm = (
|
|
@@ -7271,8 +7271,8 @@ var Nm = (
|
|
|
7271
7271
|
var o, i;
|
|
7272
7272
|
e.key === ee.Space && (e.preventDefault(), e.key = ee.Enter), (e.key === ee.ArrowUp || e.key === ee.ArrowLeft) && e.target instanceof HTMLElement && e.target.previousSibling && (e.preventDefault(), e.target.previousSibling instanceof HTMLElement && e.target.previousSibling.focus()), (e.key === ee.ArrowDown || e.key === ee.ArrowRight) && e.target instanceof HTMLElement && e.target.nextSibling && (e.preventDefault(), e.target.nextSibling instanceof HTMLElement && e.target.nextSibling.focus()), e.key === ee.Enter && t.handleClick(r), (i = (o = t.props).handleOnKeyDown) === null || i === void 0 || i.call(o, e);
|
|
7273
7273
|
}, t.renderTimes = function() {
|
|
7274
|
-
for (var e, r = [], o = typeof t.props.format == "string" ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, s = t.props.selected || t.props.openToDate || xe(), l = Jn(s), p = t.props.injectTimes && t.props.injectTimes.sort(function(y,
|
|
7275
|
-
return y.getTime() -
|
|
7274
|
+
for (var e, r = [], o = typeof t.props.format == "string" ? t.props.format : "p", i = (e = t.props.intervals) !== null && e !== void 0 ? e : a.defaultProps.intervals, s = t.props.selected || t.props.openToDate || xe(), l = Jn(s), p = t.props.injectTimes && t.props.injectTimes.sort(function(y, C) {
|
|
7275
|
+
return y.getTime() - C.getTime();
|
|
7276
7276
|
}), u = 60 * gm(s), d = u / i, m = 0; m < d; m++) {
|
|
7277
7277
|
var v = da(l, m * i);
|
|
7278
7278
|
if (r.push(v), p) {
|
|
@@ -7280,23 +7280,23 @@ var Nm = (
|
|
|
7280
7280
|
r = r.concat(w);
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|
|
7283
|
-
var b = r.reduce(function(y,
|
|
7284
|
-
return
|
|
7283
|
+
var b = r.reduce(function(y, C) {
|
|
7284
|
+
return C.getTime() <= s.getTime() ? C : y;
|
|
7285
7285
|
}, r[0]);
|
|
7286
7286
|
return r.map(function(y) {
|
|
7287
|
-
return
|
|
7288
|
-
y === b && (t.centerLi =
|
|
7289
|
-
}, onKeyDown: function(
|
|
7290
|
-
t.handleOnKeyDown(
|
|
7287
|
+
return N.createElement("li", { key: y.valueOf(), onClick: t.handleClick.bind(t, y), className: t.liClasses(y), ref: function(C) {
|
|
7288
|
+
y === b && (t.centerLi = C);
|
|
7289
|
+
}, onKeyDown: function(C) {
|
|
7290
|
+
t.handleOnKeyDown(C, y);
|
|
7291
7291
|
}, tabIndex: y === b ? 0 : -1, role: "option", "aria-selected": t.isSelectedTime(y) ? "true" : void 0, "aria-disabled": t.isDisabledTime(y) ? "true" : void 0 }, Se(y, o, t.props.locale));
|
|
7292
7292
|
});
|
|
7293
7293
|
}, t.renderTimeCaption = function() {
|
|
7294
|
-
return t.props.showTimeCaption === !1 ?
|
|
7294
|
+
return t.props.showTimeCaption === !1 ? N.createElement(N.Fragment, null) : N.createElement(
|
|
7295
7295
|
"div",
|
|
7296
7296
|
{ className: "react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly ? "react-datepicker__header--time--only" : ""), ref: function(e) {
|
|
7297
7297
|
t.header = e;
|
|
7298
7298
|
} },
|
|
7299
|
-
|
|
7299
|
+
N.createElement("div", { className: "react-datepicker-time__header" }, t.props.timeCaption)
|
|
7300
7300
|
);
|
|
7301
7301
|
}, t;
|
|
7302
7302
|
}
|
|
@@ -7327,17 +7327,17 @@ var Nm = (
|
|
|
7327
7327
|
});
|
|
7328
7328
|
}, a.prototype.render = function() {
|
|
7329
7329
|
var t = this, e, r = this.state.height;
|
|
7330
|
-
return
|
|
7330
|
+
return N.createElement(
|
|
7331
7331
|
"div",
|
|
7332
7332
|
{ className: "react-datepicker__time-container ".concat(((e = this.props.todayButton) !== null && e !== void 0 ? e : a.defaultProps.todayButton) ? "react-datepicker__time-container--with-today-button" : "") },
|
|
7333
7333
|
this.renderTimeCaption(),
|
|
7334
|
-
|
|
7334
|
+
N.createElement(
|
|
7335
7335
|
"div",
|
|
7336
7336
|
{ className: "react-datepicker__time" },
|
|
7337
|
-
|
|
7337
|
+
N.createElement(
|
|
7338
7338
|
"div",
|
|
7339
7339
|
{ className: "react-datepicker__time-box" },
|
|
7340
|
-
|
|
7340
|
+
N.createElement("ul", { className: "react-datepicker__time-list", ref: function(o) {
|
|
7341
7341
|
t.list = o;
|
|
7342
7342
|
}, style: r ? { height: r } : {}, role: "listbox", "aria-label": this.props.timeCaption }, this.renderTimes())
|
|
7343
7343
|
)
|
|
@@ -7455,10 +7455,10 @@ var Nm = (
|
|
|
7455
7455
|
case ee.ArrowDown: {
|
|
7456
7456
|
if (u === void 0 || d === void 0 || e.props.preSelection == null)
|
|
7457
7457
|
break;
|
|
7458
|
-
var
|
|
7459
|
-
if (b >
|
|
7458
|
+
var C = Et(u, d).endPeriod, w = Fo, b = o + w;
|
|
7459
|
+
if (b > C) {
|
|
7460
7460
|
var y = d % w;
|
|
7461
|
-
o <=
|
|
7461
|
+
o <= C && o > C - y ? w = y : w += y, b = o + w;
|
|
7462
7462
|
}
|
|
7463
7463
|
e.handleYearNavigation(b, Nt(e.props.preSelection, w));
|
|
7464
7464
|
break;
|
|
@@ -7493,7 +7493,7 @@ var Nm = (
|
|
|
7493
7493
|
if (o === void 0)
|
|
7494
7494
|
return null;
|
|
7495
7495
|
for (var p = Et(o, i), u = p.startPeriod, d = p.endPeriod, m = function(b) {
|
|
7496
|
-
e.push(
|
|
7496
|
+
e.push(N.createElement("div", { ref: v.YEAR_REFS[b - u], onClick: function(y) {
|
|
7497
7497
|
t.onYearClick(y, b);
|
|
7498
7498
|
}, onKeyDown: function(y) {
|
|
7499
7499
|
rs(y) && (y.preventDefault(), y.key = ee.Enter), t.onYearKeyDown(y, b);
|
|
@@ -7508,10 +7508,10 @@ var Nm = (
|
|
|
7508
7508
|
} : void 0, key: b, "aria-current": v.isCurrentYear(b) ? "date" : void 0 }, v.getYearContent(b)));
|
|
7509
7509
|
}, v = this, w = u; w <= d; w++)
|
|
7510
7510
|
m(w);
|
|
7511
|
-
return
|
|
7511
|
+
return N.createElement(
|
|
7512
7512
|
"div",
|
|
7513
7513
|
{ className: "react-datepicker__year" },
|
|
7514
|
-
|
|
7514
|
+
N.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: this.props.usePointerEvent ? void 0 : this.props.clearSelectingDate, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, e)
|
|
7515
7515
|
);
|
|
7516
7516
|
}, a;
|
|
7517
7517
|
}(He)
|
|
@@ -7549,27 +7549,27 @@ var Rm = (
|
|
|
7549
7549
|
}, e.renderOptions = function() {
|
|
7550
7550
|
e.yearOptionButtonsRef = {};
|
|
7551
7551
|
var s = e.props.year, l = e.state.yearsList.map(function(d) {
|
|
7552
|
-
return
|
|
7552
|
+
return N.createElement(
|
|
7553
7553
|
"div",
|
|
7554
7554
|
{ ref: function(m) {
|
|
7555
7555
|
e.yearOptionButtonsRef[d] = m, d === s && (m == null || m.focus());
|
|
7556
7556
|
}, role: "button", tabIndex: 0, className: s === d ? "react-datepicker__year-option react-datepicker__year-option--selected_year" : "react-datepicker__year-option", key: d, onClick: e.onChange.bind(e, d), onKeyDown: e.handleOptionKeyDown.bind(e, d), "aria-selected": s === d ? "true" : void 0 },
|
|
7557
|
-
s === d ?
|
|
7557
|
+
s === d ? N.createElement("span", { className: "react-datepicker__year-option--selected" }, "✓") : "",
|
|
7558
7558
|
d
|
|
7559
7559
|
);
|
|
7560
7560
|
}), p = e.props.minDate ? me(e.props.minDate) : null, u = e.props.maxDate ? me(e.props.maxDate) : null;
|
|
7561
7561
|
return (!u || !e.state.yearsList.find(function(d) {
|
|
7562
7562
|
return d === u;
|
|
7563
|
-
})) && l.unshift(
|
|
7563
|
+
})) && l.unshift(N.createElement(
|
|
7564
7564
|
"div",
|
|
7565
7565
|
{ className: "react-datepicker__year-option", key: "upcoming", onClick: e.incrementYears },
|
|
7566
|
-
|
|
7566
|
+
N.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming" })
|
|
7567
7567
|
)), (!p || !e.state.yearsList.find(function(d) {
|
|
7568
7568
|
return d === p;
|
|
7569
|
-
})) && l.push(
|
|
7569
|
+
})) && l.push(N.createElement(
|
|
7570
7570
|
"div",
|
|
7571
7571
|
{ className: "react-datepicker__year-option", key: "previous", onClick: e.decrementYears },
|
|
7572
|
-
|
|
7572
|
+
N.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous" })
|
|
7573
7573
|
)), l;
|
|
7574
7574
|
}, e.onChange = function(s) {
|
|
7575
7575
|
e.props.onChange(s);
|
|
@@ -7605,7 +7605,7 @@ var Rm = (
|
|
|
7605
7605
|
"react-datepicker__year-dropdown": !0,
|
|
7606
7606
|
"react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown
|
|
7607
7607
|
});
|
|
7608
|
-
return
|
|
7608
|
+
return N.createElement(Nr, { className: t, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
|
|
7609
7609
|
}, a;
|
|
7610
7610
|
}(He)
|
|
7611
7611
|
), Lm = (
|
|
@@ -7618,21 +7618,21 @@ var Rm = (
|
|
|
7618
7618
|
dropdownVisible: !1
|
|
7619
7619
|
}, t.renderSelectOptions = function() {
|
|
7620
7620
|
for (var e = t.props.minDate ? me(t.props.minDate) : 1900, r = t.props.maxDate ? me(t.props.maxDate) : 2100, o = [], i = e; i <= r; i++)
|
|
7621
|
-
o.push(
|
|
7621
|
+
o.push(N.createElement("option", { key: i, value: i }, i));
|
|
7622
7622
|
return o;
|
|
7623
7623
|
}, t.onSelectChange = function(e) {
|
|
7624
7624
|
t.onChange(parseInt(e.target.value));
|
|
7625
7625
|
}, t.renderSelectMode = function() {
|
|
7626
|
-
return
|
|
7626
|
+
return N.createElement("select", { value: t.props.year, className: "react-datepicker__year-select", onChange: t.onSelectChange }, t.renderSelectOptions());
|
|
7627
7627
|
}, t.renderReadView = function(e) {
|
|
7628
|
-
return
|
|
7628
|
+
return N.createElement(
|
|
7629
7629
|
"button",
|
|
7630
7630
|
{ key: "read", type: "button", style: { visibility: e ? "visible" : "hidden" }, className: "react-datepicker__year-read-view", onClick: t.toggleDropdown },
|
|
7631
|
-
|
|
7632
|
-
|
|
7631
|
+
N.createElement("span", { className: "react-datepicker__year-read-view--down-arrow" }),
|
|
7632
|
+
N.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, t.props.year)
|
|
7633
7633
|
);
|
|
7634
7634
|
}, t.renderDropdown = function() {
|
|
7635
|
-
return
|
|
7635
|
+
return N.createElement(Rm, ve({ key: "dropdown" }, t.props, { onChange: t.onChange, onCancel: t.toggleDropdown }));
|
|
7636
7636
|
}, t.renderScrollMode = function() {
|
|
7637
7637
|
var e = t.state.dropdownVisible, r = [t.renderReadView(!e)];
|
|
7638
7638
|
return e && r.unshift(t.renderDropdown()), r;
|
|
@@ -7665,7 +7665,7 @@ var Rm = (
|
|
|
7665
7665
|
t = this.renderSelectMode();
|
|
7666
7666
|
break;
|
|
7667
7667
|
}
|
|
7668
|
-
return
|
|
7668
|
+
return N.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, t);
|
|
7669
7669
|
}, a;
|
|
7670
7670
|
}(He)
|
|
7671
7671
|
), Fm = [
|
|
@@ -7773,18 +7773,18 @@ var Rm = (
|
|
|
7773
7773
|
}, e.header = function(r) {
|
|
7774
7774
|
r === void 0 && (r = e.state.date);
|
|
7775
7775
|
var o = At(r, e.props.locale, e.props.calendarStartDay), i = [];
|
|
7776
|
-
return e.props.showWeekNumbers && i.push(
|
|
7776
|
+
return e.props.showWeekNumbers && i.push(N.createElement(
|
|
7777
7777
|
"div",
|
|
7778
7778
|
{ key: "W", className: "react-datepicker__day-name", role: "columnheader" },
|
|
7779
|
-
|
|
7780
|
-
|
|
7779
|
+
N.createElement("span", { className: "react-datepicker__sr-only" }, "Week number"),
|
|
7780
|
+
N.createElement("span", { "aria-hidden": "true" }, e.props.weekLabel || "#")
|
|
7781
7781
|
)), i.concat([0, 1, 2, 3, 4, 5, 6].map(function(s) {
|
|
7782
7782
|
var l = ut(o, s), p = e.formatWeekday(l, e.props.locale), u = e.props.weekDayClassName ? e.props.weekDayClassName(l) : void 0;
|
|
7783
|
-
return
|
|
7783
|
+
return N.createElement(
|
|
7784
7784
|
"div",
|
|
7785
7785
|
{ key: s, role: "columnheader", className: E("react-datepicker__day-name", u) },
|
|
7786
|
-
|
|
7787
|
-
|
|
7786
|
+
N.createElement("span", { className: "react-datepicker__sr-only" }, Se(l, "EEEE", e.props.locale)),
|
|
7787
|
+
N.createElement("span", { "aria-hidden": "true" }, p)
|
|
7788
7788
|
);
|
|
7789
7789
|
}));
|
|
7790
7790
|
}, e.formatWeekday = function(r, o) {
|
|
@@ -7827,11 +7827,11 @@ var Rm = (
|
|
|
7827
7827
|
"react-datepicker__navigation--previous"
|
|
7828
7828
|
], w = e.decreaseMonth;
|
|
7829
7829
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (w = e.decreaseYear), d && e.props.showDisabledMonthNavigation && (v.push("react-datepicker__navigation--previous--disabled"), w = void 0);
|
|
7830
|
-
var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, y = e.props,
|
|
7831
|
-
return
|
|
7830
|
+
var b = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, y = e.props, C = y.previousMonthButtonLabel, T = C === void 0 ? a.defaultProps.previousMonthButtonLabel : C, S = y.previousYearButtonLabel, D = S === void 0 ? a.defaultProps.previousYearButtonLabel : S, x = e.props, A = x.previousMonthAriaLabel, Y = A === void 0 ? typeof T == "string" ? T : "Previous Month" : A, P = x.previousYearAriaLabel, L = P === void 0 ? typeof D == "string" ? D : "Previous Year" : P;
|
|
7831
|
+
return N.createElement(
|
|
7832
7832
|
"button",
|
|
7833
|
-
{ type: "button", className: v.join(" "), onClick: w, onKeyDown: e.props.handleOnKeyDown, "aria-label": b ? L :
|
|
7834
|
-
|
|
7833
|
+
{ type: "button", className: v.join(" "), onClick: w, onKeyDown: e.props.handleOnKeyDown, "aria-label": b ? L : Y },
|
|
7834
|
+
N.createElement("span", { className: m.join(" ") }, b ? D : T)
|
|
7835
7835
|
);
|
|
7836
7836
|
}
|
|
7837
7837
|
}
|
|
@@ -7873,41 +7873,41 @@ var Rm = (
|
|
|
7873
7873
|
e.props.showTimeSelect && i.push("react-datepicker__navigation--next--with-time"), e.props.todayButton && i.push("react-datepicker__navigation--next--with-today-button");
|
|
7874
7874
|
var l = e.increaseMonth;
|
|
7875
7875
|
(e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker) && (l = e.increaseYear), o && e.props.showDisabledMonthNavigation && (i.push("react-datepicker__navigation--next--disabled"), l = void 0);
|
|
7876
|
-
var p = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, u = e.props, d = u.nextMonthButtonLabel, m = d === void 0 ? a.defaultProps.nextMonthButtonLabel : d, v = u.nextYearButtonLabel, w = v === void 0 ? a.defaultProps.nextYearButtonLabel : v, b = e.props, y = b.nextMonthAriaLabel,
|
|
7877
|
-
return
|
|
7876
|
+
var p = e.props.showMonthYearPicker || e.props.showQuarterYearPicker || e.props.showYearPicker, u = e.props, d = u.nextMonthButtonLabel, m = d === void 0 ? a.defaultProps.nextMonthButtonLabel : d, v = u.nextYearButtonLabel, w = v === void 0 ? a.defaultProps.nextYearButtonLabel : v, b = e.props, y = b.nextMonthAriaLabel, C = y === void 0 ? typeof m == "string" ? m : "Next Month" : y, T = b.nextYearAriaLabel, S = T === void 0 ? typeof w == "string" ? w : "Next Year" : T;
|
|
7877
|
+
return N.createElement(
|
|
7878
7878
|
"button",
|
|
7879
|
-
{ type: "button", className: i.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": p ? S :
|
|
7880
|
-
|
|
7879
|
+
{ type: "button", className: i.join(" "), onClick: l, onKeyDown: e.props.handleOnKeyDown, "aria-label": p ? S : C },
|
|
7880
|
+
N.createElement("span", { className: s.join(" ") }, p ? w : m)
|
|
7881
7881
|
);
|
|
7882
7882
|
}
|
|
7883
7883
|
}
|
|
7884
7884
|
}, e.renderCurrentMonth = function(r) {
|
|
7885
7885
|
r === void 0 && (r = e.state.date);
|
|
7886
7886
|
var o = ["react-datepicker__current-month"];
|
|
7887
|
-
return e.props.showYearDropdown && o.push("react-datepicker__current-month--hasYearDropdown"), e.props.showMonthDropdown && o.push("react-datepicker__current-month--hasMonthDropdown"), e.props.showMonthYearDropdown && o.push("react-datepicker__current-month--hasMonthYearDropdown"),
|
|
7887
|
+
return e.props.showYearDropdown && o.push("react-datepicker__current-month--hasYearDropdown"), e.props.showMonthDropdown && o.push("react-datepicker__current-month--hasMonthDropdown"), e.props.showMonthYearDropdown && o.push("react-datepicker__current-month--hasMonthYearDropdown"), N.createElement("h2", { className: o.join(" ") }, Se(r, e.props.dateFormat, e.props.locale));
|
|
7888
7888
|
}, e.renderYearDropdown = function(r) {
|
|
7889
7889
|
if (r === void 0 && (r = !1), !(!e.props.showYearDropdown || r))
|
|
7890
|
-
return
|
|
7890
|
+
return N.createElement(Lm, ve({}, a.defaultProps, e.props, { date: e.state.date, onChange: e.changeYear, year: me(e.state.date) }));
|
|
7891
7891
|
}, e.renderMonthDropdown = function(r) {
|
|
7892
7892
|
if (r === void 0 && (r = !1), !(!e.props.showMonthDropdown || r))
|
|
7893
|
-
return
|
|
7893
|
+
return N.createElement(Mm, ve({}, a.defaultProps, e.props, { month: Ue(e.state.date), onChange: e.changeMonth }));
|
|
7894
7894
|
}, e.renderMonthYearDropdown = function(r) {
|
|
7895
7895
|
if (r === void 0 && (r = !1), !(!e.props.showMonthYearDropdown || r))
|
|
7896
|
-
return
|
|
7896
|
+
return N.createElement(Tm, ve({}, a.defaultProps, e.props, { date: e.state.date, onChange: e.changeMonthYear }));
|
|
7897
7897
|
}, e.handleTodayButtonClick = function(r) {
|
|
7898
7898
|
e.props.onSelect(xo(), r), e.props.setPreSelection && e.props.setPreSelection(xo());
|
|
7899
7899
|
}, e.renderTodayButton = function() {
|
|
7900
7900
|
if (!(!e.props.todayButton || e.props.showTimeSelectOnly))
|
|
7901
|
-
return
|
|
7901
|
+
return N.createElement("div", { className: "react-datepicker__today-button", onClick: e.handleTodayButtonClick }, e.props.todayButton);
|
|
7902
7902
|
}, e.renderDayNamesHeader = function(r) {
|
|
7903
|
-
return
|
|
7903
|
+
return N.createElement("div", { className: "react-datepicker__day-names", role: "row" }, e.header(r));
|
|
7904
7904
|
}, e.renderDefaultHeader = function(r) {
|
|
7905
7905
|
var o = r.monthDate, i = r.i;
|
|
7906
|
-
return
|
|
7906
|
+
return N.createElement(
|
|
7907
7907
|
"div",
|
|
7908
7908
|
{ className: "react-datepicker__header ".concat(e.props.showTimeSelect ? "react-datepicker__header--has-time-select" : "") },
|
|
7909
7909
|
e.renderCurrentMonth(o),
|
|
7910
|
-
|
|
7910
|
+
N.createElement(
|
|
7911
7911
|
"div",
|
|
7912
7912
|
{ className: "react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(e.props.dropdownMode), onFocus: e.handleDropdownFocus },
|
|
7913
7913
|
e.renderMonthDropdown(i !== 0),
|
|
@@ -7927,11 +7927,11 @@ var Rm = (
|
|
|
7927
7927
|
endYear: b
|
|
7928
7928
|
};
|
|
7929
7929
|
}
|
|
7930
|
-
var y = Mo(e.state.date, e.props),
|
|
7931
|
-
return
|
|
7930
|
+
var y = Mo(e.state.date, e.props), C = Eo(e.state.date, e.props), T = No(e.state.date, e.props), S = To(e.state.date, e.props);
|
|
7931
|
+
return N.createElement("div", { className: "react-datepicker__header react-datepicker__header--custom", onFocus: e.props.onDropdownFocus }, (i = (o = e.props).renderCustomHeader) === null || i === void 0 ? void 0 : i.call(o, ve(ve(ve({}, e.state), u && { visibleYearsRange: m }), { customHeaderCount: l, monthDate: s, changeMonth: e.changeMonth, changeYear: e.changeYear, decreaseMonth: e.decreaseMonth, increaseMonth: e.increaseMonth, decreaseYear: e.decreaseYear, increaseYear: e.increaseYear, prevMonthButtonDisabled: y, nextMonthButtonDisabled: C, prevYearButtonDisabled: T, nextYearButtonDisabled: S })));
|
|
7932
7932
|
}, e.renderYearHeader = function(r) {
|
|
7933
7933
|
var o = r.monthDate, i = e.props, s = i.showYearPicker, l = i.yearItemNumber, p = l === void 0 ? a.defaultProps.yearItemNumber : l, u = Et(o, p), d = u.startPeriod, m = u.endPeriod;
|
|
7934
|
-
return
|
|
7934
|
+
return N.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, s ? "".concat(d, " - ").concat(m) : me(o));
|
|
7935
7935
|
}, e.renderHeader = function(r) {
|
|
7936
7936
|
var o = r.monthDate, i = r.i, s = i === void 0 ? 0 : i, l = { monthDate: o, i: s };
|
|
7937
7937
|
switch (!0) {
|
|
@@ -7947,38 +7947,38 @@ var Rm = (
|
|
|
7947
7947
|
if (!(e.props.showTimeSelectOnly || e.props.showYearPicker)) {
|
|
7948
7948
|
for (var i = [], s = (r = e.props.monthsShown) !== null && r !== void 0 ? r : a.defaultProps.monthsShown, l = e.props.showPreviousMonths ? s - 1 : 0, p = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? Nt(e.state.date, l) : Qt(e.state.date, l), u = (o = e.props.monthSelectedIn) !== null && o !== void 0 ? o : l, d = 0; d < s; ++d) {
|
|
7949
7949
|
var m = d - u + l, v = e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? Nt(p, m) : ft(p, m), w = "month-".concat(d), b = d < s - 1, y = d > 0;
|
|
7950
|
-
i.push(
|
|
7950
|
+
i.push(N.createElement(
|
|
7951
7951
|
"div",
|
|
7952
|
-
{ key: w, ref: function(
|
|
7953
|
-
e.monthContainer =
|
|
7952
|
+
{ key: w, ref: function(C) {
|
|
7953
|
+
e.monthContainer = C ?? void 0;
|
|
7954
7954
|
}, className: "react-datepicker__month-container" },
|
|
7955
7955
|
e.renderHeader({ monthDate: v, i: d }),
|
|
7956
|
-
|
|
7956
|
+
N.createElement(Cm, ve({}, a.defaultProps, e.props, { containerRef: e.containerRef, ariaLabelPrefix: e.props.monthAriaLabelPrefix, day: v, onDayClick: e.handleDayClick, handleOnKeyDown: e.props.handleOnDayKeyDown, handleOnMonthKeyDown: e.props.handleOnKeyDown, onDayMouseEnter: e.handleDayMouseEnter, onMouseLeave: e.handleMonthMouseLeave, orderInDisplay: d, selectingDate: e.state.selectingDate, monthShowsDuplicateDaysEnd: b, monthShowsDuplicateDaysStart: y, dayNamesHeader: e.renderDayNamesHeader(v) }))
|
|
7957
7957
|
));
|
|
7958
7958
|
}
|
|
7959
7959
|
return i;
|
|
7960
7960
|
}
|
|
7961
7961
|
}, e.renderYears = function() {
|
|
7962
7962
|
if (!e.props.showTimeSelectOnly && e.props.showYearPicker)
|
|
7963
|
-
return
|
|
7963
|
+
return N.createElement(
|
|
7964
7964
|
"div",
|
|
7965
7965
|
{ className: "react-datepicker__year--container" },
|
|
7966
7966
|
e.renderHeader({ monthDate: e.state.date }),
|
|
7967
|
-
|
|
7967
|
+
N.createElement(Im, ve({}, a.defaultProps, e.props, { selectingDate: e.state.selectingDate, date: e.state.date, onDayClick: e.handleDayClick, clearSelectingDate: e.clearSelectingDate, onYearMouseEnter: e.handleYearMouseEnter, onYearMouseLeave: e.handleYearMouseLeave }))
|
|
7968
7968
|
);
|
|
7969
7969
|
}, e.renderTimeSection = function() {
|
|
7970
7970
|
if (e.props.showTimeSelect && (e.state.monthContainer || e.props.showTimeSelectOnly))
|
|
7971
|
-
return
|
|
7971
|
+
return N.createElement(Pm, ve({}, a.defaultProps, e.props, { onChange: e.props.onTimeChange, format: e.props.timeFormat, intervals: e.props.timeIntervals, monthRef: e.state.monthContainer }));
|
|
7972
7972
|
}, e.renderInputTimeSection = function() {
|
|
7973
7973
|
var r = e.props.selected ? new Date(e.props.selected) : void 0, o = r && Tr(r) && !!e.props.selected, i = o ? "".concat(Io(r.getHours()), ":").concat(Io(r.getMinutes())) : "";
|
|
7974
7974
|
if (e.props.showTimeInput)
|
|
7975
|
-
return
|
|
7975
|
+
return N.createElement(bm, ve({}, a.defaultProps, e.props, { date: r, timeString: i, onChange: e.props.onTimeChange }));
|
|
7976
7976
|
}, e.renderAriaLiveRegion = function() {
|
|
7977
7977
|
var r, o = Et(e.state.date, (r = e.props.yearItemNumber) !== null && r !== void 0 ? r : a.defaultProps.yearItemNumber), i = o.startPeriod, s = o.endPeriod, l;
|
|
7978
|
-
return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = me(e.state.date) : l = "".concat(Ha(Ue(e.state.date), e.props.locale), " ").concat(me(e.state.date)),
|
|
7978
|
+
return e.props.showYearPicker ? l = "".concat(i, " - ").concat(s) : e.props.showMonthYearPicker || e.props.showQuarterYearPicker ? l = me(e.state.date) : l = "".concat(Ha(Ue(e.state.date), e.props.locale), " ").concat(me(e.state.date)), N.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, e.state.isRenderAriaLiveMessage && l);
|
|
7979
7979
|
}, e.renderChildren = function() {
|
|
7980
7980
|
if (e.props.children)
|
|
7981
|
-
return
|
|
7981
|
+
return N.createElement("div", { className: "react-datepicker__children-container" }, e.props.children);
|
|
7982
7982
|
}, e.containerRef = Wt(), e.state = {
|
|
7983
7983
|
date: e.getDateInView(),
|
|
7984
7984
|
selectingDate: void 0,
|
|
@@ -8021,13 +8021,13 @@ var Rm = (
|
|
|
8021
8021
|
});
|
|
8022
8022
|
}, a.prototype.render = function() {
|
|
8023
8023
|
var t = this.props.container || Zf;
|
|
8024
|
-
return
|
|
8024
|
+
return N.createElement(
|
|
8025
8025
|
Nr,
|
|
8026
8026
|
{ onClickOutside: this.handleClickOutside, style: { display: "contents" }, ignoreClass: this.props.outsideClickIgnoreClass },
|
|
8027
|
-
|
|
8027
|
+
N.createElement(
|
|
8028
8028
|
"div",
|
|
8029
8029
|
{ style: { display: "contents" }, ref: this.containerRef },
|
|
8030
|
-
|
|
8030
|
+
N.createElement(
|
|
8031
8031
|
t,
|
|
8032
8032
|
{ className: E("react-datepicker", this.props.className, {
|
|
8033
8033
|
"react-datepicker--time-only": this.props.showTimeSelectOnly
|
|
@@ -8049,20 +8049,20 @@ var Rm = (
|
|
|
8049
8049
|
), Bm = function(n) {
|
|
8050
8050
|
var a = n.icon, t = n.className, e = t === void 0 ? "" : t, r = n.onClick, o = "react-datepicker__calendar-icon";
|
|
8051
8051
|
if (typeof a == "string")
|
|
8052
|
-
return
|
|
8053
|
-
if (
|
|
8052
|
+
return N.createElement("i", { className: "".concat(o, " ").concat(a, " ").concat(e), "aria-hidden": "true", onClick: r });
|
|
8053
|
+
if (N.isValidElement(a)) {
|
|
8054
8054
|
var i = a;
|
|
8055
|
-
return
|
|
8055
|
+
return N.cloneElement(i, {
|
|
8056
8056
|
className: "".concat(i.props.className || "", " ").concat(o, " ").concat(e),
|
|
8057
8057
|
onClick: function(s) {
|
|
8058
8058
|
typeof i.props.onClick == "function" && i.props.onClick(s), typeof r == "function" && r(s);
|
|
8059
8059
|
}
|
|
8060
8060
|
});
|
|
8061
8061
|
}
|
|
8062
|
-
return
|
|
8062
|
+
return N.createElement(
|
|
8063
8063
|
"svg",
|
|
8064
8064
|
{ className: "".concat(o, " ").concat(e), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", onClick: r },
|
|
8065
|
-
|
|
8065
|
+
N.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })
|
|
8066
8066
|
);
|
|
8067
8067
|
}, os = (
|
|
8068
8068
|
/** @class */
|
|
@@ -8101,12 +8101,12 @@ var Rm = (
|
|
|
8101
8101
|
}
|
|
8102
8102
|
return a.prototype.render = function() {
|
|
8103
8103
|
var t;
|
|
8104
|
-
return ((t = this.props.enableTabLoop) !== null && t !== void 0 ? t : a.defaultProps.enableTabLoop) ?
|
|
8104
|
+
return ((t = this.props.enableTabLoop) !== null && t !== void 0 ? t : a.defaultProps.enableTabLoop) ? N.createElement(
|
|
8105
8105
|
"div",
|
|
8106
8106
|
{ className: "react-datepicker__tab-loop", ref: this.tabLoopRef },
|
|
8107
|
-
|
|
8107
|
+
N.createElement("div", { className: "react-datepicker__tab-loop__start", tabIndex: 0, onFocus: this.handleFocusStart }),
|
|
8108
8108
|
this.props.children,
|
|
8109
|
-
|
|
8109
|
+
N.createElement("div", { className: "react-datepicker__tab-loop__end", tabIndex: 0, onFocus: this.handleFocusEnd })
|
|
8110
8110
|
) : this.props.children;
|
|
8111
8111
|
}, a.defaultProps = {
|
|
8112
8112
|
enableTabLoop: !0
|
|
@@ -8120,7 +8120,7 @@ function Hm(n) {
|
|
|
8120
8120
|
Lf(10),
|
|
8121
8121
|
Af({ element: o })
|
|
8122
8122
|
], (e = t.popperModifiers) !== null && e !== void 0 ? e : [], !0) }, t.popperProps)), s = ve(ve({}, t), { hidePopper: r, popperProps: ve(ve({}, i), { arrowRef: o }) });
|
|
8123
|
-
return
|
|
8123
|
+
return N.createElement(n, ve({}, s));
|
|
8124
8124
|
}
|
|
8125
8125
|
return a.displayName = "withFloating(".concat(n.displayName || n.name || "Component", ")"), a;
|
|
8126
8126
|
}
|
|
@@ -8128,23 +8128,23 @@ var zm = function(n) {
|
|
|
8128
8128
|
var a = n.className, t = n.wrapperClassName, e = n.hidePopper, r = e === void 0 ? !0 : e, o = n.popperComponent, i = n.targetComponent, s = n.enableTabLoop, l = n.popperOnKeyDown, p = n.portalId, u = n.portalHost, d = n.popperProps, m = n.showArrow, v = void 0;
|
|
8129
8129
|
if (!r) {
|
|
8130
8130
|
var w = E("react-datepicker-popper", a);
|
|
8131
|
-
v =
|
|
8131
|
+
v = N.createElement(
|
|
8132
8132
|
is,
|
|
8133
8133
|
{ enableTabLoop: s },
|
|
8134
|
-
|
|
8134
|
+
N.createElement(
|
|
8135
8135
|
"div",
|
|
8136
8136
|
{ ref: d.refs.setFloating, style: d.floatingStyles, className: w, "data-placement": d.placement, onKeyDown: l },
|
|
8137
8137
|
o,
|
|
8138
|
-
m &&
|
|
8138
|
+
m && N.createElement(qf, { ref: d.arrowRef, context: d.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
|
|
8139
8139
|
)
|
|
8140
8140
|
);
|
|
8141
8141
|
}
|
|
8142
|
-
n.popperContainer && (v = Ps(n.popperContainer, {}, v)), p && !r && (v =
|
|
8142
|
+
n.popperContainer && (v = Ps(n.popperContainer, {}, v)), p && !r && (v = N.createElement(os, { portalId: p, portalHost: u }, v));
|
|
8143
8143
|
var b = E("react-datepicker-wrapper", t);
|
|
8144
|
-
return
|
|
8145
|
-
|
|
8144
|
+
return N.createElement(
|
|
8145
|
+
N.Fragment,
|
|
8146
8146
|
null,
|
|
8147
|
-
|
|
8147
|
+
N.createElement("div", { ref: d.refs.setReference, className: b }, i),
|
|
8148
8148
|
v
|
|
8149
8149
|
);
|
|
8150
8150
|
}, qm = Hm(zm);
|
|
@@ -8265,17 +8265,17 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8265
8265
|
inputValue: (d == null ? void 0 : d.target) instanceof HTMLInputElement ? d.target.value : null,
|
|
8266
8266
|
lastPreSelectChange: $m
|
|
8267
8267
|
});
|
|
8268
|
-
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,
|
|
8268
|
+
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 : "";
|
|
8269
8269
|
if (v) {
|
|
8270
|
-
var S = e.props.rangeSeparator,
|
|
8270
|
+
var S = e.props.rangeSeparator, D = S.trim(), x = T.split(y.includes(D) ? S : D, 2).map(function(K) {
|
|
8271
8271
|
return K.trim();
|
|
8272
|
-
}), A = x[0],
|
|
8272
|
+
}), A = x[0], Y = x[1], P = qr(A ?? "", y, e.props.locale, C), L = P ? qr(Y ?? "", y, e.props.locale, C) : null, G = (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());
|
|
8273
8273
|
if (!G && !ce || P && it(P, e.props) || L && it(L, e.props))
|
|
8274
8274
|
return;
|
|
8275
8275
|
(s = (i = e.props).onChange) === null || s === void 0 || s.call(i, [P, L], d);
|
|
8276
8276
|
} else {
|
|
8277
|
-
var ne = qr(
|
|
8278
|
-
(ne || !
|
|
8277
|
+
var ne = qr(T, y, e.props.locale, C, (l = e.props.selected) !== null && l !== void 0 ? l : void 0);
|
|
8278
|
+
(ne || !T) && e.setSelected(ne, d, !0);
|
|
8279
8279
|
}
|
|
8280
8280
|
}
|
|
8281
8281
|
}, e.handleSelect = function(r, o, i) {
|
|
@@ -8293,36 +8293,36 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8293
8293
|
return;
|
|
8294
8294
|
} else if (u !== null && it(u, e.props))
|
|
8295
8295
|
return;
|
|
8296
|
-
var d = e.props, m = d.onChange, v = d.selectsRange, w = d.startDate, b = d.endDate, y = d.selectsMultiple,
|
|
8296
|
+
var d = e.props, m = d.onChange, v = d.selectsRange, w = d.startDate, b = d.endDate, y = d.selectsMultiple, C = d.selectedDates, T = d.minTime, S = d.swapRange;
|
|
8297
8297
|
if (!Ut(e.props.selected, u) || e.props.allowSameDay || v || y)
|
|
8298
8298
|
if (u !== null && (e.props.selected && (!i || !e.props.showTimeSelect && !e.props.showTimeSelectOnly && !e.props.showTimeInput) && (u = Vr(u, {
|
|
8299
8299
|
hour: Pt(e.props.selected),
|
|
8300
8300
|
minute: It(e.props.selected),
|
|
8301
8301
|
second: Ft(e.props.selected)
|
|
8302
|
-
})), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) &&
|
|
8303
|
-
hour:
|
|
8304
|
-
minute:
|
|
8305
|
-
second:
|
|
8302
|
+
})), !i && (e.props.showTimeSelect || e.props.showTimeSelectOnly) && T && (u = Vr(u, {
|
|
8303
|
+
hour: T.getHours(),
|
|
8304
|
+
minute: T.getMinutes(),
|
|
8305
|
+
second: T.getSeconds()
|
|
8306
8306
|
})), e.props.inline || e.setState({
|
|
8307
8307
|
preSelection: u
|
|
8308
8308
|
}), e.props.focusSelectedMonth || e.setState({ monthSelectedIn: s })), v) {
|
|
8309
|
-
var
|
|
8310
|
-
|
|
8309
|
+
var D = !w && !b, x = w && !b, A = !w && !!b, Y = w && b;
|
|
8310
|
+
D ? m == null || m([u, null], o) : x ? u === null ? m == null || m([null, null], o) : Ur(u, w) ? S ? m == null || m([u, w], o) : m == null || m([u, null], o) : m == null || m([w, u], o) : A && (u && Ur(u, b) ? m == null || m([u, b], o) : m == null || m([u, null], o)), Y && (m == null || m([u, null], o));
|
|
8311
8311
|
} else if (y) {
|
|
8312
8312
|
if (u !== null)
|
|
8313
|
-
if (!(
|
|
8313
|
+
if (!(C != null && C.length))
|
|
8314
8314
|
m == null || m([u], o);
|
|
8315
8315
|
else {
|
|
8316
|
-
var P =
|
|
8316
|
+
var P = C.some(function(G) {
|
|
8317
8317
|
return he(G, u);
|
|
8318
8318
|
});
|
|
8319
8319
|
if (P) {
|
|
8320
|
-
var L =
|
|
8320
|
+
var L = C.filter(function(G) {
|
|
8321
8321
|
return !he(G, u);
|
|
8322
8322
|
});
|
|
8323
8323
|
m == null || m(L, o);
|
|
8324
8324
|
} else
|
|
8325
|
-
m == null || m(xt(xt([],
|
|
8325
|
+
m == null || m(xt(xt([], C, !0), [u], !1), o);
|
|
8326
8326
|
}
|
|
8327
8327
|
} else
|
|
8328
8328
|
m == null || m(u, o);
|
|
@@ -8390,9 +8390,9 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8390
8390
|
});
|
|
8391
8391
|
}));
|
|
8392
8392
|
}, e.onDayKeyDown = function(r) {
|
|
8393
|
-
var o, i, s, l, p, u, d = e.props, m = d.minDate, v = d.maxDate, w = d.disabledKeyboardNavigation, b = d.showWeekPicker, y = d.shouldCloseOnSelect,
|
|
8393
|
+
var o, i, s, l, p, u, d = e.props, m = d.minDate, v = d.maxDate, w = d.disabledKeyboardNavigation, b = d.showWeekPicker, y = d.shouldCloseOnSelect, C = d.locale, T = d.calendarStartDay, S = d.adjustDateOnChange, D = d.inline;
|
|
8394
8394
|
if ((i = (o = e.props).onKeyDown) === null || i === void 0 || i.call(o, r), !w) {
|
|
8395
|
-
var x = r.key, A = r.shiftKey,
|
|
8395
|
+
var x = r.key, A = r.shiftKey, Y = xe(e.state.preSelection), P = function(W, z) {
|
|
8396
8396
|
var $ = z;
|
|
8397
8397
|
switch (W) {
|
|
8398
8398
|
case ee.ArrowRight:
|
|
@@ -8414,7 +8414,7 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8414
8414
|
$ = A ? Nt(z, 1) : ft(z, 1);
|
|
8415
8415
|
break;
|
|
8416
8416
|
case ee.Home:
|
|
8417
|
-
$ = At(z,
|
|
8417
|
+
$ = At(z, C, T);
|
|
8418
8418
|
break;
|
|
8419
8419
|
case ee.End:
|
|
8420
8420
|
$ = am(z);
|
|
@@ -8432,7 +8432,7 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8432
8432
|
return g;
|
|
8433
8433
|
};
|
|
8434
8434
|
if (x === ee.Enter) {
|
|
8435
|
-
r.preventDefault(), e.handleSelect(
|
|
8435
|
+
r.preventDefault(), e.handleSelect(Y, r), !y && e.setPreSelection(Y);
|
|
8436
8436
|
return;
|
|
8437
8437
|
} else if (x === ee.Escape) {
|
|
8438
8438
|
r.preventDefault(), e.setOpen(!1), e.inputOk() || (l = (s = e.props).onInputError) === null || l === void 0 || l.call(s, { code: 1, msg: Qr });
|
|
@@ -8448,15 +8448,15 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8448
8448
|
case ee.PageDown:
|
|
8449
8449
|
case ee.Home:
|
|
8450
8450
|
case ee.End:
|
|
8451
|
-
G = L(x,
|
|
8451
|
+
G = L(x, Y);
|
|
8452
8452
|
break;
|
|
8453
8453
|
}
|
|
8454
8454
|
if (!G) {
|
|
8455
8455
|
(u = (p = e.props).onInputError) === null || u === void 0 || u.call(p, { code: 1, msg: Qr });
|
|
8456
8456
|
return;
|
|
8457
8457
|
}
|
|
8458
|
-
if (r.preventDefault(), e.setState({ lastPreSelectChange: Gr }), S && e.setSelected(G), e.setPreSelection(G),
|
|
8459
|
-
var ce = Ue(
|
|
8458
|
+
if (r.preventDefault(), e.setState({ lastPreSelectChange: Gr }), S && e.setSelected(G), e.setPreSelection(G), D) {
|
|
8459
|
+
var ce = Ue(Y), ne = Ue(G), K = me(Y), te = me(G);
|
|
8460
8460
|
ce !== ne || K !== te ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
|
|
8461
8461
|
}
|
|
8462
8462
|
}
|
|
@@ -8473,7 +8473,7 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8473
8473
|
typeof e.props.closeOnScroll == "boolean" && e.props.closeOnScroll ? (r.target === document || r.target === document.documentElement || r.target === document.body) && e.setOpen(!1) : typeof e.props.closeOnScroll == "function" && e.props.closeOnScroll(r) && e.setOpen(!1);
|
|
8474
8474
|
}, e.renderCalendar = function() {
|
|
8475
8475
|
var r, o;
|
|
8476
|
-
return !e.props.inline && !e.isCalendarOpen() ? null :
|
|
8476
|
+
return !e.props.inline && !e.isCalendarOpen() ? null : N.createElement(Wm, ve({ showMonthYearDropdown: void 0, ref: function(i) {
|
|
8477
8477
|
e.calendar = i;
|
|
8478
8478
|
} }, e.props, e.state, { setOpen: e.setOpen, dateFormat: (r = e.props.dateFormatCalendar) !== null && r !== void 0 ? r : a.defaultProps.dateFormatCalendar, onSelect: e.handleSelect, onClickOutside: e.handleCalendarClickOutside, holidays: vm(e.modifyHolidays()), outsideClickIgnoreClass: e.props.outsideClickIgnoreClass, onDropdownFocus: e.handleDropdownFocus, onTimeChange: e.handleTimeChange, className: e.props.calendarClassName, container: e.props.calendarContainer, handleOnKeyDown: e.props.onKeyDown, handleOnDayKeyDown: e.onDayKeyDown, setPreSelection: e.setPreSelection, dropdownMode: (o = e.props.dropdownMode) !== null && o !== void 0 ? o : a.defaultProps.dropdownMode }), e.props.children);
|
|
8479
8479
|
}, e.renderAriaLiveRegion = function() {
|
|
@@ -8490,15 +8490,15 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8490
8490
|
})) : p = "Selected date: ".concat(at(e.props.selected, {
|
|
8491
8491
|
dateFormat: l,
|
|
8492
8492
|
locale: o
|
|
8493
|
-
})),
|
|
8493
|
+
})), N.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, p);
|
|
8494
8494
|
}, e.renderDateInput = function() {
|
|
8495
|
-
var r, o, i = E(e.props.className, (r = {}, r[e.props.outsideClickIgnoreClass || a.defaultProps.outsideClickIgnoreClass] = e.state.open, r)), s = e.props.customInput ||
|
|
8495
|
+
var r, o, i = E(e.props.className, (r = {}, r[e.props.outsideClickIgnoreClass || a.defaultProps.outsideClickIgnoreClass] = e.state.open, r)), s = e.props.customInput || N.createElement("input", { type: "text" }), l = e.props.customInputRef || "ref";
|
|
8496
8496
|
return mi(s, (o = {}, o[l] = function(p) {
|
|
8497
8497
|
e.input = p;
|
|
8498
8498
|
}, o.value = e.getInputValue(), o.onBlur = e.handleBlur, o.onChange = e.handleChange, o.onClick = e.onInputClick, o.onFocus = e.handleFocus, o.onKeyDown = e.onInputKeyDown, o.id = e.props.id, o.name = e.props.name, o.form = e.props.form, o.autoFocus = e.props.autoFocus, o.placeholder = e.props.placeholderText, o.disabled = e.props.disabled, o.autoComplete = e.props.autoComplete, o.className = E(s.props.className, i), o.title = e.props.title, o.readOnly = e.props.readOnly, o.required = e.props.required, o.tabIndex = e.props.tabIndex, o["aria-describedby"] = e.props.ariaDescribedBy, o["aria-invalid"] = e.props.ariaInvalid, o["aria-labelledby"] = e.props.ariaLabelledBy, o["aria-required"] = e.props.ariaRequired, o));
|
|
8499
8499
|
}, e.renderClearButton = function() {
|
|
8500
8500
|
var r = e.props, o = r.isClearable, i = r.disabled, s = r.selected, l = r.startDate, p = r.endDate, u = r.clearButtonTitle, d = r.clearButtonClassName, m = d === void 0 ? "" : d, v = r.ariaLabelClose, w = v === void 0 ? "Close" : v, b = r.selectedDates, y = r.readOnly;
|
|
8501
|
-
return o && !y && (s != null || l != null || p != null || b != null && b.length) ?
|
|
8501
|
+
return o && !y && (s != null || l != null || p != null || b != null && b.length) ? N.createElement("button", { type: "button", className: E("react-datepicker__close-icon", m, { "react-datepicker__close-icon--disabled": i }), disabled: i, "aria-label": w, onClick: e.onClearClick, title: u, tabIndex: -1 }) : null;
|
|
8502
8502
|
}, e.state = e.calcInitialState(), e.preventFocusTimeout = void 0, e;
|
|
8503
8503
|
}
|
|
8504
8504
|
return Object.defineProperty(a, "defaultProps", {
|
|
@@ -8565,10 +8565,10 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8565
8565
|
this.clearPreventFocusTimeout(), window.removeEventListener("scroll", this.onScroll, !0), document.removeEventListener("visibilitychange", this.setHiddenStateOnVisibilityHidden);
|
|
8566
8566
|
}, a.prototype.renderInputContainer = function() {
|
|
8567
8567
|
var t = this.props, e = t.showIcon, r = t.icon, o = t.calendarIconClassname, i = t.calendarIconClassName, s = t.toggleCalendarOnIconClick, l = this.state.open;
|
|
8568
|
-
return o && console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),
|
|
8568
|
+
return o && console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."), N.createElement(
|
|
8569
8569
|
"div",
|
|
8570
8570
|
{ className: "react-datepicker__input-container".concat(e ? " react-datepicker__view-calendar-icon" : "") },
|
|
8571
|
-
e &&
|
|
8571
|
+
e && N.createElement(Bm, ve({ icon: r, className: E(i, !i && o, l && "react-datepicker-ignore-onclickoutside") }, s ? {
|
|
8572
8572
|
onClick: this.toggleCalendar
|
|
8573
8573
|
} : null)),
|
|
8574
8574
|
this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
|
|
@@ -8580,19 +8580,19 @@ var Qr = "Date input not valid.", Um = (
|
|
|
8580
8580
|
if (this.props.inline)
|
|
8581
8581
|
return t;
|
|
8582
8582
|
if (this.props.withPortal) {
|
|
8583
|
-
var e = this.state.open ?
|
|
8583
|
+
var e = this.state.open ? N.createElement(
|
|
8584
8584
|
is,
|
|
8585
8585
|
{ enableTabLoop: this.props.enableTabLoop },
|
|
8586
|
-
|
|
8586
|
+
N.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, t)
|
|
8587
8587
|
) : null;
|
|
8588
|
-
return this.state.open && this.props.portalId && (e =
|
|
8588
|
+
return this.state.open && this.props.portalId && (e = N.createElement(os, ve({ portalId: this.props.portalId }, this.props), e)), N.createElement(
|
|
8589
8589
|
"div",
|
|
8590
8590
|
null,
|
|
8591
8591
|
this.renderInputContainer(),
|
|
8592
8592
|
e
|
|
8593
8593
|
);
|
|
8594
8594
|
}
|
|
8595
|
-
return
|
|
8595
|
+
return N.createElement(qm, ve({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: t, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
|
|
8596
8596
|
}, a;
|
|
8597
8597
|
}(He)
|
|
8598
8598
|
), $m = "input", Gr = "navigate";
|
|
@@ -8606,7 +8606,7 @@ function Qm() {
|
|
|
8606
8606
|
function n(h) {
|
|
8607
8607
|
return h && typeof h == "object" && "default" in h ? h.default : h;
|
|
8608
8608
|
}
|
|
8609
|
-
var a = n(
|
|
8609
|
+
var a = n(N), t = gr;
|
|
8610
8610
|
function e(h, f) {
|
|
8611
8611
|
for (var g = Object.getOwnPropertyNames(f), _ = 0; _ < g.length; _++) {
|
|
8612
8612
|
var c = g[_], k = Object.getOwnPropertyDescriptor(f, c);
|
|
@@ -8684,12 +8684,12 @@ function Qm() {
|
|
|
8684
8684
|
var k = c[_[f]];
|
|
8685
8685
|
return new RegExp(k).test(g);
|
|
8686
8686
|
}
|
|
8687
|
-
function
|
|
8687
|
+
function C(h, f) {
|
|
8688
8688
|
return f.split("").every(function(g, _) {
|
|
8689
8689
|
return b(h, _) || !y(h, _, g);
|
|
8690
8690
|
});
|
|
8691
8691
|
}
|
|
8692
|
-
function
|
|
8692
|
+
function T(h, f) {
|
|
8693
8693
|
var g = h.maskChar, _ = h.prefix;
|
|
8694
8694
|
if (!g) {
|
|
8695
8695
|
for (; f.length > _.length && b(h, f.length - 1); ) f = f.slice(0, f.length - 1);
|
|
@@ -8705,38 +8705,38 @@ function Qm() {
|
|
|
8705
8705
|
return c;
|
|
8706
8706
|
}
|
|
8707
8707
|
function S(h, f) {
|
|
8708
|
-
return
|
|
8708
|
+
return T(h, f) === h.mask.length;
|
|
8709
8709
|
}
|
|
8710
|
-
function
|
|
8710
|
+
function D(h, f) {
|
|
8711
8711
|
var g = h.maskChar, _ = h.mask, c = h.prefix;
|
|
8712
8712
|
if (!g) {
|
|
8713
8713
|
for ((f = A(h, "", f, 0)).length < c.length && (f = c); f.length < _.length && b(h, f.length); ) f += _[f.length];
|
|
8714
8714
|
return f;
|
|
8715
8715
|
}
|
|
8716
|
-
if (f) return A(h,
|
|
8716
|
+
if (f) return A(h, D(h, ""), f, 0);
|
|
8717
8717
|
for (var k = 0; k < _.length; k++) b(h, k) ? f += _[k] : f += g;
|
|
8718
8718
|
return f;
|
|
8719
8719
|
}
|
|
8720
8720
|
function x(h, f, g, _) {
|
|
8721
8721
|
var c = g + _, k = h.maskChar, B = h.mask, V = h.prefix, O = f.split("");
|
|
8722
|
-
if (k) return O.map(function(q,
|
|
8723
|
-
return
|
|
8722
|
+
if (k) return O.map(function(q, j) {
|
|
8723
|
+
return j < g || c <= j ? q : b(h, j) ? B[j] : k;
|
|
8724
8724
|
}).join("");
|
|
8725
8725
|
for (var H = c; H < O.length; H++) b(h, H) && (O[H] = "");
|
|
8726
|
-
return g = Math.max(V.length, g), O.splice(g, c - g), f = O.join(""),
|
|
8726
|
+
return g = Math.max(V.length, g), O.splice(g, c - g), f = O.join(""), D(h, f);
|
|
8727
8727
|
}
|
|
8728
8728
|
function A(h, f, g, _) {
|
|
8729
8729
|
var c = h.mask, k = h.maskChar, B = h.prefix, V = g.split(""), O = S(h, f);
|
|
8730
8730
|
return !k && _ > f.length && (f += c.slice(f.length, _)), V.every(function(H) {
|
|
8731
8731
|
for (; F = H, b(h, U = _) && F !== c[U]; ) {
|
|
8732
|
-
if (_ >= f.length && (f += c[_]), q = H,
|
|
8732
|
+
if (_ >= f.length && (f += c[_]), q = H, j = _, k && b(h, j) && q === k) return !0;
|
|
8733
8733
|
if (++_ >= c.length) return !1;
|
|
8734
8734
|
}
|
|
8735
|
-
var q,
|
|
8736
|
-
return !y(h, _, H) && H !== k || (_ < f.length ? f = k || O || _ < B.length ? f.slice(0, _) + H + f.slice(_ + 1) : (f = f.slice(0, _) + H + f.slice(_),
|
|
8735
|
+
var q, j, U, F;
|
|
8736
|
+
return !y(h, _, H) && H !== k || (_ < f.length ? f = k || O || _ < B.length ? f.slice(0, _) + H + f.slice(_ + 1) : (f = f.slice(0, _) + H + f.slice(_), D(h, f)) : k || (f += H), ++_ < c.length);
|
|
8737
8737
|
}), f;
|
|
8738
8738
|
}
|
|
8739
|
-
function
|
|
8739
|
+
function Y(h, f, g, _) {
|
|
8740
8740
|
var c = h.mask, k = h.maskChar, B = g.split(""), V = _;
|
|
8741
8741
|
return B.every(function(O) {
|
|
8742
8742
|
for (; q = O, b(h, H = _) && q !== c[H]; ) if (++_ >= c.length) return !1;
|
|
@@ -8756,8 +8756,8 @@ function Qm() {
|
|
|
8756
8756
|
return h || h === 0 ? h + "" : "";
|
|
8757
8757
|
}
|
|
8758
8758
|
function ce(h, f, g, _, c) {
|
|
8759
|
-
var k = h.mask, B = h.prefix, V = h.lastEditablePosition, O = f, H = "", q = 0,
|
|
8760
|
-
return g.end > c.start ?
|
|
8759
|
+
var k = h.mask, B = h.prefix, V = h.lastEditablePosition, O = f, H = "", q = 0, j = 0, U = Math.min(c.start, g.start);
|
|
8760
|
+
return g.end > c.start ? j = (q = Y(h, _, H = O.slice(c.start, g.end), U)) ? c.length : 0 : O.length < _.length && (j = _.length - O.length), O = _, j && (j === 1 && !c.length && (U = c.start === g.start ? L(h, g.start) : P(h, g.start)), O = x(h, O, U, j)), O = A(h, O, H, U), (U += q) >= k.length ? U = k.length : U < B.length && !q ? U = B.length : U >= B.length && U < V && q && (U = L(h, U)), H || (H = null), { value: O = D(h, O), enteredString: H, selection: { start: U, end: U } };
|
|
8761
8761
|
}
|
|
8762
8762
|
function ne() {
|
|
8763
8763
|
var h = new RegExp("windows", "i"), f = new RegExp("phone", "i"), g = navigator.userAgent;
|
|
@@ -8802,13 +8802,13 @@ function Qm() {
|
|
|
8802
8802
|
var I = c.getInputDOMNode();
|
|
8803
8803
|
I && (c.value = Q, I.value = Q);
|
|
8804
8804
|
}, c.setCursorToEnd = function() {
|
|
8805
|
-
var Q =
|
|
8805
|
+
var Q = T(c.maskOptions, c.value), I = L(c.maskOptions, Q);
|
|
8806
8806
|
I !== null && c.setCursorPosition(I);
|
|
8807
8807
|
}, c.setSelection = function(Q, I, J) {
|
|
8808
8808
|
J === void 0 && (J = {});
|
|
8809
|
-
var
|
|
8810
|
-
|
|
8811
|
-
c.selectionDeferId = null, u(
|
|
8809
|
+
var le = c.getInputDOMNode(), ae = c.isFocused();
|
|
8810
|
+
le && ae && (J.deferred || u(le, Q, I), c.selectionDeferId !== null && $(c.selectionDeferId), c.selectionDeferId = z(function() {
|
|
8811
|
+
c.selectionDeferId = null, u(le, Q, I);
|
|
8812
8812
|
}), c.previousSelection = { start: Q, end: I, length: Math.abs(I - Q) });
|
|
8813
8813
|
}, c.getSelection = function() {
|
|
8814
8814
|
return d(c.getInputDOMNode());
|
|
@@ -8819,30 +8819,30 @@ function Qm() {
|
|
|
8819
8819
|
}, c.isFocused = function() {
|
|
8820
8820
|
return c.focused;
|
|
8821
8821
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
8822
|
-
var Q = c.maskOptions, I = Q.mask, J = Q.maskChar,
|
|
8823
|
-
return { mask: I, maskChar: J, permanents:
|
|
8824
|
-
}, c.isInputAutofilled = function(Q, I, J,
|
|
8822
|
+
var Q = c.maskOptions, I = Q.mask, J = Q.maskChar, le = Q.permanents, ae = Q.formatChars;
|
|
8823
|
+
return { mask: I, maskChar: J, permanents: le, alwaysShowMask: !!c.props.alwaysShowMask, formatChars: ae };
|
|
8824
|
+
}, c.isInputAutofilled = function(Q, I, J, le) {
|
|
8825
8825
|
var ae = c.getInputDOMNode();
|
|
8826
8826
|
try {
|
|
8827
8827
|
if (ae.matches(":-webkit-autofill")) return !0;
|
|
8828
8828
|
} catch {
|
|
8829
8829
|
}
|
|
8830
|
-
return !c.focused ||
|
|
8830
|
+
return !c.focused || le.end < J.length && I.end === Q.length;
|
|
8831
8831
|
}, c.onChange = function(Q) {
|
|
8832
|
-
var I = s(s(c)).beforePasteState, J = s(s(c)).previousSelection,
|
|
8833
|
-
c.isInputAutofilled(ae, fe, de, J) && (de =
|
|
8832
|
+
var I = s(s(c)).beforePasteState, J = s(s(c)).previousSelection, le = c.props.beforeMaskedValueChange, ae = c.getInputValue(), de = c.value, fe = c.getSelection();
|
|
8833
|
+
c.isInputAutofilled(ae, fe, de, J) && (de = D(c.maskOptions, ""), J = { start: 0, end: 0, length: 0 }), I && (J = I.selection, de = I.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);
|
|
8834
8834
|
var _e = ce(c.maskOptions, ae, fe, de, J), Ae = _e.enteredString, Le = _e.selection, Ye = _e.value;
|
|
8835
|
-
if (K(
|
|
8836
|
-
var Z =
|
|
8835
|
+
if (K(le)) {
|
|
8836
|
+
var Z = le({ value: Ye, selection: Le }, { value: de, selection: J }, Ae, c.getBeforeMaskedValueChangeConfig());
|
|
8837
8837
|
Ye = Z.value, Le = Z.selection;
|
|
8838
8838
|
}
|
|
8839
8839
|
c.setInputValue(Ye), K(c.props.onChange) && c.props.onChange(Q), c.isWindowsPhoneBrowser ? c.setSelection(Le.start, Le.end, { deferred: !0 }) : c.setSelection(Le.start, Le.end);
|
|
8840
8840
|
}, c.onFocus = function(Q) {
|
|
8841
|
-
var I = c.props.beforeMaskedValueChange, J = c.maskOptions,
|
|
8842
|
-
if (c.focused = !0, c.mounted = !0,
|
|
8843
|
-
if (c.value)
|
|
8841
|
+
var I = c.props.beforeMaskedValueChange, J = c.maskOptions, le = J.mask, ae = J.prefix;
|
|
8842
|
+
if (c.focused = !0, c.mounted = !0, le) {
|
|
8843
|
+
if (c.value) T(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
8844
8844
|
else {
|
|
8845
|
-
var de =
|
|
8845
|
+
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 };
|
|
8846
8846
|
if (K(I)) {
|
|
8847
8847
|
var Ye = I({ value: fe, selection: Le }, { value: c.value, selection: null }, null, c.getBeforeMaskedValueChangeConfig());
|
|
8848
8848
|
fe = Ye.value, Le = Ye.selection;
|
|
@@ -8855,19 +8855,19 @@ function Qm() {
|
|
|
8855
8855
|
K(c.props.onFocus) && c.props.onFocus(Q);
|
|
8856
8856
|
}, c.onBlur = function(Q) {
|
|
8857
8857
|
var I = c.props.beforeMaskedValueChange, J = c.maskOptions.mask;
|
|
8858
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1, J && !c.props.alwaysShowMask &&
|
|
8859
|
-
var
|
|
8860
|
-
K(I) && (
|
|
8861
|
-
var ae =
|
|
8862
|
-
ae && c.setInputValue(
|
|
8858
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, J && !c.props.alwaysShowMask && C(c.maskOptions, c.value)) {
|
|
8859
|
+
var le = "";
|
|
8860
|
+
K(I) && (le = I({ value: le, selection: null }, { value: c.value, selection: c.previousSelection }, null, c.getBeforeMaskedValueChangeConfig()).value);
|
|
8861
|
+
var ae = le !== c.getInputValue();
|
|
8862
|
+
ae && c.setInputValue(le), ae && K(c.props.onChange) && c.props.onChange(Q);
|
|
8863
8863
|
}
|
|
8864
8864
|
K(c.props.onBlur) && c.props.onBlur(Q);
|
|
8865
8865
|
}, c.onMouseDown = function(Q) {
|
|
8866
8866
|
if (!c.focused && document.addEventListener) {
|
|
8867
8867
|
c.mouseDownX = Q.clientX, c.mouseDownY = Q.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
8868
|
-
var I = function J(
|
|
8868
|
+
var I = function J(le) {
|
|
8869
8869
|
if (document.removeEventListener("mouseup", J), c.focused) {
|
|
8870
|
-
var ae = Math.abs(
|
|
8870
|
+
var ae = Math.abs(le.clientX - c.mouseDownX), de = Math.abs(le.clientY - c.mouseDownY), fe = Math.max(ae, de), _e = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
8871
8871
|
(fe <= 10 && _e <= 200 || fe <= 5 && _e <= 300) && c.setCursorToEnd();
|
|
8872
8872
|
}
|
|
8873
8873
|
};
|
|
@@ -8879,10 +8879,10 @@ function Qm() {
|
|
|
8879
8879
|
}, c.handleRef = function(Q) {
|
|
8880
8880
|
c.props.children == null && K(c.props.inputRef) && c.props.inputRef(Q);
|
|
8881
8881
|
};
|
|
8882
|
-
var k = _.mask, B = _.maskChar, V = _.formatChars, O = _.alwaysShowMask, H = _.beforeMaskedValueChange, q = _.defaultValue,
|
|
8883
|
-
c.maskOptions = w(k, B, V), q == null && (q = ""),
|
|
8884
|
-
var U = G(
|
|
8885
|
-
if (c.maskOptions.mask && (O || U) && (U =
|
|
8882
|
+
var k = _.mask, B = _.maskChar, V = _.formatChars, O = _.alwaysShowMask, H = _.beforeMaskedValueChange, q = _.defaultValue, j = _.value;
|
|
8883
|
+
c.maskOptions = w(k, B, V), q == null && (q = ""), j == null && (j = q);
|
|
8884
|
+
var U = G(j);
|
|
8885
|
+
if (c.maskOptions.mask && (O || U) && (U = D(c.maskOptions, U), K(H))) {
|
|
8886
8886
|
var F = _.value;
|
|
8887
8887
|
_.value == null && (F = q), U = H({ value: U, selection: null }, { value: F = G(F), selection: null }, null, c.getBeforeMaskedValueChangeConfig()).value;
|
|
8888
8888
|
}
|
|
@@ -8893,25 +8893,25 @@ function Qm() {
|
|
|
8893
8893
|
return g.componentDidMount = function() {
|
|
8894
8894
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
8895
8895
|
}, g.componentDidUpdate = function() {
|
|
8896
|
-
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, B = c.alwaysShowMask, V = c.mask, O = c.maskChar, H = c.formatChars, q = this.maskOptions,
|
|
8896
|
+
var _ = this.previousSelection, c = this.props, k = c.beforeMaskedValueChange, B = c.alwaysShowMask, V = c.mask, O = c.maskChar, H = c.formatChars, q = this.maskOptions, j = B || this.isFocused(), U = this.props.value != null, F = U ? G(this.props.value) : this.value, Q = _ ? _.start : null;
|
|
8897
8897
|
if (this.maskOptions = w(V, O, H), this.maskOptions.mask) {
|
|
8898
8898
|
!q.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
8899
8899
|
var I = this.maskOptions.mask && this.maskOptions.mask !== q.mask;
|
|
8900
|
-
if (q.mask || U || (F = this.getInputValue()), (I || this.maskOptions.mask && (F ||
|
|
8901
|
-
var J =
|
|
8900
|
+
if (q.mask || U || (F = this.getInputValue()), (I || this.maskOptions.mask && (F || j)) && (F = D(this.maskOptions, F)), I) {
|
|
8901
|
+
var J = T(this.maskOptions, F);
|
|
8902
8902
|
(Q === null || J < Q) && (Q = S(this.maskOptions, F) ? J : L(this.maskOptions, J));
|
|
8903
8903
|
}
|
|
8904
|
-
!this.maskOptions.mask || !
|
|
8905
|
-
var
|
|
8904
|
+
!this.maskOptions.mask || !C(this.maskOptions, F) || j || U && this.props.value || (F = "");
|
|
8905
|
+
var le = { start: Q, end: Q };
|
|
8906
8906
|
if (K(k)) {
|
|
8907
|
-
var ae = k({ value: F, selection:
|
|
8908
|
-
F = ae.value,
|
|
8907
|
+
var ae = k({ value: F, selection: le }, { value: this.value, selection: this.previousSelection }, null, this.getBeforeMaskedValueChangeConfig());
|
|
8908
|
+
F = ae.value, le = ae.selection;
|
|
8909
8909
|
}
|
|
8910
8910
|
this.value = F;
|
|
8911
8911
|
var de = this.getInputValue() !== this.value;
|
|
8912
8912
|
de ? (this.setInputValue(this.value), this.forceUpdate()) : I && this.forceUpdate();
|
|
8913
8913
|
var fe = !1;
|
|
8914
|
-
|
|
8914
|
+
le.start != null && le.end != null && (fe = !_ || _.start !== le.start || _.end !== le.end), (fe || de) && this.setSelection(le.start, le.end);
|
|
8915
8915
|
} else q.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
8916
8916
|
}, g.componentWillUnmount = function() {
|
|
8917
8917
|
this.mounted = !1, this.selectionDeferId !== null && $(this.selectionDeferId), this.stopSaveSelectionLoop();
|
|
@@ -9000,7 +9000,7 @@ function Xm() {
|
|
|
9000
9000
|
function n(h) {
|
|
9001
9001
|
return h && typeof h == "object" && "default" in h ? h.default : h;
|
|
9002
9002
|
}
|
|
9003
|
-
var a = n(
|
|
9003
|
+
var a = n(N), t = gr, e = n(Gm()), r = n(Km());
|
|
9004
9004
|
function o(h, f) {
|
|
9005
9005
|
for (var g = Object.getOwnPropertyNames(f), _ = 0; _ < g.length; _++) {
|
|
9006
9006
|
var c = g[_], k = Object.getOwnPropertyDescriptor(f, c);
|
|
@@ -9095,12 +9095,12 @@ function Xm() {
|
|
|
9095
9095
|
var k = _[f], B = c[k];
|
|
9096
9096
|
return new RegExp(B).test(g);
|
|
9097
9097
|
}
|
|
9098
|
-
function
|
|
9098
|
+
function C(h, f) {
|
|
9099
9099
|
return f.split("").every(function(g, _) {
|
|
9100
9100
|
return b(h, _) || !y(h, _, g);
|
|
9101
9101
|
});
|
|
9102
9102
|
}
|
|
9103
|
-
function
|
|
9103
|
+
function T(h, f) {
|
|
9104
9104
|
var g = h.maskChar, _ = h.prefix;
|
|
9105
9105
|
if (!g) {
|
|
9106
9106
|
for (; f.length > _.length && b(h, f.length - 1); )
|
|
@@ -9117,9 +9117,9 @@ function Xm() {
|
|
|
9117
9117
|
return c;
|
|
9118
9118
|
}
|
|
9119
9119
|
function S(h, f) {
|
|
9120
|
-
return
|
|
9120
|
+
return T(h, f) === h.mask.length;
|
|
9121
9121
|
}
|
|
9122
|
-
function
|
|
9122
|
+
function D(h, f) {
|
|
9123
9123
|
var g = h.maskChar, _ = h.mask, c = h.prefix;
|
|
9124
9124
|
if (!g) {
|
|
9125
9125
|
for (f = A(h, "", f, 0), f.length < c.length && (f = c); f.length < _.length && b(h, f.length); )
|
|
@@ -9127,7 +9127,7 @@ function Xm() {
|
|
|
9127
9127
|
return f;
|
|
9128
9128
|
}
|
|
9129
9129
|
if (f) {
|
|
9130
|
-
var k =
|
|
9130
|
+
var k = D(h, "");
|
|
9131
9131
|
return A(h, k, f, 0);
|
|
9132
9132
|
}
|
|
9133
9133
|
for (var B = 0; B < _.length; B++)
|
|
@@ -9139,10 +9139,10 @@ function Xm() {
|
|
|
9139
9139
|
if (!k) {
|
|
9140
9140
|
for (var H = c; H < O.length; H++)
|
|
9141
9141
|
b(h, H) && (O[H] = "");
|
|
9142
|
-
return g = Math.max(V.length, g), O.splice(g, c - g), f = O.join(""),
|
|
9142
|
+
return g = Math.max(V.length, g), O.splice(g, c - g), f = O.join(""), D(h, f);
|
|
9143
9143
|
}
|
|
9144
|
-
return O.map(function(q,
|
|
9145
|
-
return
|
|
9144
|
+
return O.map(function(q, j) {
|
|
9145
|
+
return j < g || j >= c ? q : b(h, j) ? B[j] : k;
|
|
9146
9146
|
}).join("");
|
|
9147
9147
|
}
|
|
9148
9148
|
function A(h, f, g, _) {
|
|
@@ -9151,20 +9151,20 @@ function Xm() {
|
|
|
9151
9151
|
}, q = function(U, F) {
|
|
9152
9152
|
return !k || !b(h, F) || U !== k;
|
|
9153
9153
|
};
|
|
9154
|
-
return !k && _ > f.length && (f += c.slice(f.length, _)), V.every(function(
|
|
9155
|
-
for (; !H(_,
|
|
9156
|
-
if (_ >= f.length && (f += c[_]), !q(
|
|
9154
|
+
return !k && _ > f.length && (f += c.slice(f.length, _)), V.every(function(j) {
|
|
9155
|
+
for (; !H(_, j); ) {
|
|
9156
|
+
if (_ >= f.length && (f += c[_]), !q(j, _))
|
|
9157
9157
|
return !0;
|
|
9158
9158
|
if (_++, _ >= c.length)
|
|
9159
9159
|
return !1;
|
|
9160
9160
|
}
|
|
9161
|
-
var U = y(h, _,
|
|
9162
|
-
return U ? (_ < f.length ? k || O || _ < B.length ? f = f.slice(0, _) +
|
|
9161
|
+
var U = y(h, _, j) || j === k;
|
|
9162
|
+
return U ? (_ < f.length ? k || O || _ < B.length ? f = f.slice(0, _) + j + f.slice(_ + 1) : (f = f.slice(0, _) + j + f.slice(_), f = D(h, f)) : k || (f += j), _++, _ < c.length) : !0;
|
|
9163
9163
|
}), f;
|
|
9164
9164
|
}
|
|
9165
|
-
function
|
|
9166
|
-
var c = h.mask, k = h.maskChar, B = g.split(""), V = _, O = function(q,
|
|
9167
|
-
return !b(h, q) ||
|
|
9165
|
+
function Y(h, f, g, _) {
|
|
9166
|
+
var c = h.mask, k = h.maskChar, B = g.split(""), V = _, O = function(q, j) {
|
|
9167
|
+
return !b(h, q) || j === c[q];
|
|
9168
9168
|
};
|
|
9169
9169
|
return B.every(function(H) {
|
|
9170
9170
|
for (; !O(_, H); )
|
|
@@ -9190,15 +9190,15 @@ function Xm() {
|
|
|
9190
9190
|
return !h && h !== 0 ? "" : h + "";
|
|
9191
9191
|
}
|
|
9192
9192
|
function ce(h, f, g, _, c) {
|
|
9193
|
-
var k = h.mask, B = h.prefix, V = h.lastEditablePosition, O = f, H = "", q = 0,
|
|
9194
|
-
if (g.end > c.start ? (H = O.slice(c.start, g.end), q =
|
|
9195
|
-
if (
|
|
9193
|
+
var k = h.mask, B = h.prefix, V = h.lastEditablePosition, O = f, H = "", q = 0, j = 0, U = Math.min(c.start, g.start);
|
|
9194
|
+
if (g.end > c.start ? (H = O.slice(c.start, g.end), q = Y(h, _, H, U), q ? j = c.length : j = 0) : O.length < _.length && (j = _.length - O.length), O = _, j) {
|
|
9195
|
+
if (j === 1 && !c.length) {
|
|
9196
9196
|
var F = c.start === g.start;
|
|
9197
9197
|
U = F ? L(h, g.start) : P(h, g.start);
|
|
9198
9198
|
}
|
|
9199
|
-
O = x(h, O, U,
|
|
9199
|
+
O = x(h, O, U, j);
|
|
9200
9200
|
}
|
|
9201
|
-
return O = A(h, O, H, U), U = U + q, U >= k.length ? U = k.length : U < B.length && !q ? U = B.length : U >= B.length && U < V && q && (U = L(h, U)), O =
|
|
9201
|
+
return O = A(h, O, H, U), U = U + q, U >= k.length ? U = k.length : U < B.length && !q ? U = B.length : U >= B.length && U < V && q && (U = L(h, U)), O = D(h, O), H || (H = null), {
|
|
9202
9202
|
value: O,
|
|
9203
9203
|
enteredString: H,
|
|
9204
9204
|
selection: {
|
|
@@ -9256,13 +9256,13 @@ function Xm() {
|
|
|
9256
9256
|
var J = c.getInputDOMNode();
|
|
9257
9257
|
J && (c.value = I, J.value = I);
|
|
9258
9258
|
}, c.setCursorToEnd = function() {
|
|
9259
|
-
var I =
|
|
9259
|
+
var I = T(c.maskOptions, c.value), J = L(c.maskOptions, I);
|
|
9260
9260
|
J !== null && c.setCursorPosition(J);
|
|
9261
|
-
}, c.setSelection = function(I, J,
|
|
9262
|
-
|
|
9261
|
+
}, c.setSelection = function(I, J, le) {
|
|
9262
|
+
le === void 0 && (le = {});
|
|
9263
9263
|
var ae = c.getInputDOMNode(), de = c.isFocused();
|
|
9264
9264
|
if (!(!ae || !de)) {
|
|
9265
|
-
var fe =
|
|
9265
|
+
var fe = le, _e = fe.deferred;
|
|
9266
9266
|
_e || u(ae, I, J), c.selectionDeferId !== null && $(c.selectionDeferId), c.selectionDeferId = z(function() {
|
|
9267
9267
|
c.selectionDeferId = null, u(ae, I, J);
|
|
9268
9268
|
}), c.previousSelection = {
|
|
@@ -9281,54 +9281,54 @@ function Xm() {
|
|
|
9281
9281
|
}, c.isFocused = function() {
|
|
9282
9282
|
return c.focused;
|
|
9283
9283
|
}, c.getBeforeMaskedValueChangeConfig = function() {
|
|
9284
|
-
var I = c.maskOptions, J = I.mask,
|
|
9284
|
+
var I = c.maskOptions, J = I.mask, le = I.maskChar, ae = I.permanents, de = I.formatChars, fe = c.props.alwaysShowMask;
|
|
9285
9285
|
return {
|
|
9286
9286
|
mask: J,
|
|
9287
|
-
maskChar:
|
|
9287
|
+
maskChar: le,
|
|
9288
9288
|
permanents: ae,
|
|
9289
9289
|
alwaysShowMask: !!fe,
|
|
9290
9290
|
formatChars: de
|
|
9291
9291
|
};
|
|
9292
|
-
}, c.isInputAutofilled = function(I, J,
|
|
9292
|
+
}, c.isInputAutofilled = function(I, J, le, ae) {
|
|
9293
9293
|
var de = c.getInputDOMNode();
|
|
9294
9294
|
try {
|
|
9295
9295
|
if (de.matches(":-webkit-autofill"))
|
|
9296
9296
|
return !0;
|
|
9297
9297
|
} catch {
|
|
9298
9298
|
}
|
|
9299
|
-
return c.focused ? ae.end <
|
|
9299
|
+
return c.focused ? ae.end < le.length && J.end === I.length : !0;
|
|
9300
9300
|
}, c.onChange = function(I) {
|
|
9301
|
-
var J = p(p(c)),
|
|
9302
|
-
c.isInputAutofilled(_e, Le, Ae, de) && (Ae =
|
|
9301
|
+
var J = p(p(c)), le = J.beforePasteState, ae = p(p(c)), de = ae.previousSelection, fe = c.props.beforeMaskedValueChange, _e = c.getInputValue(), Ae = c.value, Le = c.getSelection();
|
|
9302
|
+
c.isInputAutofilled(_e, Le, Ae, de) && (Ae = D(c.maskOptions, ""), de = {
|
|
9303
9303
|
start: 0,
|
|
9304
9304
|
end: 0,
|
|
9305
9305
|
length: 0
|
|
9306
|
-
}),
|
|
9306
|
+
}), le && (de = le.selection, Ae = le.value, Le = {
|
|
9307
9307
|
start: de.start + _e.length,
|
|
9308
9308
|
end: de.start + _e.length,
|
|
9309
9309
|
length: 0
|
|
9310
9310
|
}, _e = Ae.slice(0, de.start) + _e + Ae.slice(de.end), c.beforePasteState = null);
|
|
9311
|
-
var Ye = ce(c.maskOptions, _e, Le, Ae, de), Z = Ye.enteredString,
|
|
9311
|
+
var Ye = ce(c.maskOptions, _e, Le, Ae, de), Z = Ye.enteredString, ie = Ye.selection, Me = Ye.value;
|
|
9312
9312
|
if (K(fe)) {
|
|
9313
9313
|
var Pe = fe({
|
|
9314
9314
|
value: Me,
|
|
9315
|
-
selection:
|
|
9315
|
+
selection: ie
|
|
9316
9316
|
}, {
|
|
9317
9317
|
value: Ae,
|
|
9318
9318
|
selection: de
|
|
9319
9319
|
}, Z, c.getBeforeMaskedValueChangeConfig());
|
|
9320
|
-
Me = Pe.value,
|
|
9320
|
+
Me = Pe.value, ie = Pe.selection;
|
|
9321
9321
|
}
|
|
9322
|
-
c.setInputValue(Me), K(c.props.onChange) && c.props.onChange(I), c.isWindowsPhoneBrowser ? c.setSelection(
|
|
9322
|
+
c.setInputValue(Me), K(c.props.onChange) && c.props.onChange(I), c.isWindowsPhoneBrowser ? c.setSelection(ie.start, ie.end, {
|
|
9323
9323
|
deferred: !0
|
|
9324
|
-
}) : c.setSelection(
|
|
9324
|
+
}) : c.setSelection(ie.start, ie.end);
|
|
9325
9325
|
}, c.onFocus = function(I) {
|
|
9326
|
-
var J = c.props.beforeMaskedValueChange,
|
|
9326
|
+
var J = c.props.beforeMaskedValueChange, le = c.maskOptions, ae = le.mask, de = le.prefix;
|
|
9327
9327
|
if (c.focused = !0, c.mounted = !0, ae) {
|
|
9328
9328
|
if (c.value)
|
|
9329
|
-
|
|
9329
|
+
T(c.maskOptions, c.value) < c.maskOptions.mask.length && c.setCursorToEnd();
|
|
9330
9330
|
else {
|
|
9331
|
-
var fe =
|
|
9331
|
+
var fe = D(c.maskOptions, de), _e = D(c.maskOptions, fe), Ae = T(c.maskOptions, _e), Le = L(c.maskOptions, Ae), Ye = {
|
|
9332
9332
|
start: Le,
|
|
9333
9333
|
end: Le
|
|
9334
9334
|
};
|
|
@@ -9342,15 +9342,15 @@ function Xm() {
|
|
|
9342
9342
|
}, null, c.getBeforeMaskedValueChangeConfig());
|
|
9343
9343
|
_e = Z.value, Ye = Z.selection;
|
|
9344
9344
|
}
|
|
9345
|
-
var
|
|
9346
|
-
|
|
9345
|
+
var ie = _e !== c.getInputValue();
|
|
9346
|
+
ie && c.setInputValue(_e), ie && K(c.props.onChange) && c.props.onChange(I), c.setSelection(Ye.start, Ye.end);
|
|
9347
9347
|
}
|
|
9348
9348
|
c.runSaveSelectionLoop();
|
|
9349
9349
|
}
|
|
9350
9350
|
K(c.props.onFocus) && c.props.onFocus(I);
|
|
9351
9351
|
}, c.onBlur = function(I) {
|
|
9352
|
-
var J = c.props.beforeMaskedValueChange,
|
|
9353
|
-
if (c.stopSaveSelectionLoop(), c.focused = !1,
|
|
9352
|
+
var J = c.props.beforeMaskedValueChange, le = c.maskOptions.mask;
|
|
9353
|
+
if (c.stopSaveSelectionLoop(), c.focused = !1, le && !c.props.alwaysShowMask && C(c.maskOptions, c.value)) {
|
|
9354
9354
|
var ae = "";
|
|
9355
9355
|
if (K(J)) {
|
|
9356
9356
|
var de = J({
|
|
@@ -9369,8 +9369,8 @@ function Xm() {
|
|
|
9369
9369
|
}, c.onMouseDown = function(I) {
|
|
9370
9370
|
if (!c.focused && document.addEventListener) {
|
|
9371
9371
|
c.mouseDownX = I.clientX, c.mouseDownY = I.clientY, c.mouseDownTime = (/* @__PURE__ */ new Date()).getTime();
|
|
9372
|
-
var J = function
|
|
9373
|
-
if (document.removeEventListener("mouseup",
|
|
9372
|
+
var J = function le(ae) {
|
|
9373
|
+
if (document.removeEventListener("mouseup", le), !!c.focused) {
|
|
9374
9374
|
var de = Math.abs(ae.clientX - c.mouseDownX), fe = Math.abs(ae.clientY - c.mouseDownY), _e = Math.max(de, fe), Ae = (/* @__PURE__ */ new Date()).getTime() - c.mouseDownTime;
|
|
9375
9375
|
(_e <= 10 && Ae <= 200 || _e <= 5 && Ae <= 300) && c.setCursorToEnd();
|
|
9376
9376
|
}
|
|
@@ -9386,10 +9386,10 @@ function Xm() {
|
|
|
9386
9386
|
}, c.handleRef = function(I) {
|
|
9387
9387
|
c.props.children == null && K(c.props.inputRef) && c.props.inputRef(I);
|
|
9388
9388
|
};
|
|
9389
|
-
var k = _.mask, B = _.maskChar, V = _.formatChars, O = _.alwaysShowMask, H = _.beforeMaskedValueChange, q = _.defaultValue,
|
|
9390
|
-
c.maskOptions = w(k, B, V), q == null && (q = ""),
|
|
9391
|
-
var U = G(
|
|
9392
|
-
if (c.maskOptions.mask && (O || U) && (U =
|
|
9389
|
+
var k = _.mask, B = _.maskChar, V = _.formatChars, O = _.alwaysShowMask, H = _.beforeMaskedValueChange, q = _.defaultValue, j = _.value;
|
|
9390
|
+
c.maskOptions = w(k, B, V), q == null && (q = ""), j == null && (j = q);
|
|
9391
|
+
var U = G(j);
|
|
9392
|
+
if (c.maskOptions.mask && (O || U) && (U = D(c.maskOptions, U), K(H))) {
|
|
9393
9393
|
var F = _.value;
|
|
9394
9394
|
_.value == null && (F = q), F = G(F);
|
|
9395
9395
|
var Q = H({
|
|
@@ -9407,19 +9407,19 @@ function Xm() {
|
|
|
9407
9407
|
return g.componentDidMount = function() {
|
|
9408
9408
|
this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = ne(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));
|
|
9409
9409
|
}, g.componentDidUpdate = function() {
|
|
9410
|
-
var c = this.previousSelection, k = this.props, B = k.beforeMaskedValueChange, V = k.alwaysShowMask, O = k.mask, H = k.maskChar, q = k.formatChars,
|
|
9410
|
+
var c = this.previousSelection, k = this.props, B = k.beforeMaskedValueChange, V = k.alwaysShowMask, O = k.mask, H = k.maskChar, q = k.formatChars, j = this.maskOptions, U = V || this.isFocused(), F = this.props.value != null, Q = F ? G(this.props.value) : this.value, I = c ? c.start : null;
|
|
9411
9411
|
if (this.maskOptions = w(O, H, q), this.maskOptions.mask)
|
|
9412
|
-
!
|
|
9412
|
+
!j.mask && this.isFocused() && this.runSaveSelectionLoop();
|
|
9413
9413
|
else {
|
|
9414
|
-
|
|
9414
|
+
j.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());
|
|
9415
9415
|
return;
|
|
9416
9416
|
}
|
|
9417
|
-
var J = this.maskOptions.mask && this.maskOptions.mask !==
|
|
9418
|
-
if (!
|
|
9419
|
-
var
|
|
9420
|
-
(I === null ||
|
|
9417
|
+
var J = this.maskOptions.mask && this.maskOptions.mask !== j.mask;
|
|
9418
|
+
if (!j.mask && !F && (Q = this.getInputValue()), (J || this.maskOptions.mask && (Q || U)) && (Q = D(this.maskOptions, Q)), J) {
|
|
9419
|
+
var le = T(this.maskOptions, Q);
|
|
9420
|
+
(I === null || le < I) && (S(this.maskOptions, Q) ? I = le : I = L(this.maskOptions, le));
|
|
9421
9421
|
}
|
|
9422
|
-
this.maskOptions.mask &&
|
|
9422
|
+
this.maskOptions.mask && C(this.maskOptions, Q) && !U && (!F || !this.props.value) && (Q = "");
|
|
9423
9423
|
var ae = {
|
|
9424
9424
|
start: I,
|
|
9425
9425
|
end: I
|
|
@@ -9446,7 +9446,7 @@ function Xm() {
|
|
|
9446
9446
|
c.alwaysShowMask;
|
|
9447
9447
|
var B = c.maskChar, V = c.formatChars, O = c.inputRef;
|
|
9448
9448
|
c.beforeMaskedValueChange;
|
|
9449
|
-
var H = c.children, q = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]),
|
|
9449
|
+
var H = c.children, q = l(c, ["mask", "alwaysShowMask", "maskChar", "formatChars", "inputRef", "beforeMaskedValueChange", "children"]), j;
|
|
9450
9450
|
if (process.env.NODE_ENV !== "production" && r(
|
|
9451
9451
|
// parse mask to test against actual mask prop as this.maskOptions
|
|
9452
9452
|
// will be updated later in componentDidUpdate
|
|
@@ -9457,20 +9457,20 @@ function Xm() {
|
|
|
9457
9457
|
var U = ["onChange", "onPaste", "onMouseDown", "onFocus", "onBlur", "value", "disabled", "readOnly"], F = i({}, q);
|
|
9458
9458
|
U.forEach(function(J) {
|
|
9459
9459
|
return delete F[J];
|
|
9460
|
-
}),
|
|
9460
|
+
}), j = H(F);
|
|
9461
9461
|
var Q = U.filter(function(J) {
|
|
9462
|
-
return
|
|
9462
|
+
return j.props[J] != null && j.props[J] !== q[J];
|
|
9463
9463
|
});
|
|
9464
9464
|
Q.length && (process.env.NODE_ENV !== "production" ? e(!1, "react-input-mask: the following props should be passed to the react-input-mask's component and should not be altered in children's function: " + Q.join(", ")) : e(!1)), process.env.NODE_ENV !== "production" && r(!O, "react-input-mask: inputRef is ignored when children is passed, attach ref to the children instead");
|
|
9465
9465
|
} else
|
|
9466
|
-
|
|
9466
|
+
j = a.createElement("input", i({
|
|
9467
9467
|
ref: this.handleRef
|
|
9468
9468
|
}, q));
|
|
9469
9469
|
var I = {
|
|
9470
9470
|
onFocus: this.onFocus,
|
|
9471
9471
|
onBlur: this.onBlur
|
|
9472
9472
|
};
|
|
9473
|
-
return this.maskOptions.mask && (!q.disabled && !q.readOnly && (I.onChange = this.onChange, I.onPaste = this.onPaste, I.onMouseDown = this.onMouseDown), q.value != null && (I.value = this.value)),
|
|
9473
|
+
return this.maskOptions.mask && (!q.disabled && !q.readOnly && (I.onChange = this.onChange, I.onPaste = this.onPaste, I.onMouseDown = this.onMouseDown), q.value != null && (I.value = this.value)), j = a.cloneElement(j, I), j;
|
|
9474
9474
|
}, f;
|
|
9475
9475
|
}(a.Component);
|
|
9476
9476
|
return Jr = X, Jr;
|
|
@@ -9495,25 +9495,25 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9495
9495
|
name: e,
|
|
9496
9496
|
onChange: r,
|
|
9497
9497
|
dateFormatMask: o = "99.99.9999",
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9498
|
+
placeholderText: i = "дд.мм.гггг",
|
|
9499
|
+
variant: s = "outlined",
|
|
9500
|
+
size: l = "lg",
|
|
9501
|
+
disabled: p,
|
|
9502
|
+
error: u,
|
|
9503
9503
|
onClick: d,
|
|
9504
9504
|
onBlur: m,
|
|
9505
9505
|
onMouseDownInput: v,
|
|
9506
9506
|
readOnlyInput: w = !1,
|
|
9507
9507
|
focused: b,
|
|
9508
9508
|
changed: y,
|
|
9509
|
-
classNameRoot:
|
|
9510
|
-
} = n, [
|
|
9509
|
+
classNameRoot: C
|
|
9510
|
+
} = n, [T, S] = Ce(!1), D = Fe(null);
|
|
9511
9511
|
Na(
|
|
9512
|
-
[
|
|
9512
|
+
[D],
|
|
9513
9513
|
() => {
|
|
9514
9514
|
S(!1);
|
|
9515
9515
|
},
|
|
9516
|
-
|
|
9516
|
+
T
|
|
9517
9517
|
);
|
|
9518
9518
|
const x = !!t;
|
|
9519
9519
|
Re(() => {
|
|
@@ -9521,21 +9521,21 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9521
9521
|
}, [b]);
|
|
9522
9522
|
const A = (ne) => {
|
|
9523
9523
|
S(!0), v && v(ne);
|
|
9524
|
-
},
|
|
9524
|
+
}, Y = () => {
|
|
9525
9525
|
S(!1);
|
|
9526
9526
|
}, P = (ne) => {
|
|
9527
9527
|
const { target: K } = ne, { value: te, name: W } = K;
|
|
9528
|
-
r && r(ne, { value: te
|
|
9528
|
+
r && r(ne, { value: te, name: W });
|
|
9529
9529
|
}, L = E({
|
|
9530
9530
|
[nt.datepickerInput]: !0,
|
|
9531
|
-
[nt[`datepickerInput_${
|
|
9531
|
+
[nt[`datepickerInput_${s}`]]: s,
|
|
9532
9532
|
[nt.datepickerInput_active]: x,
|
|
9533
|
-
[nt.datepickerInput_size]:
|
|
9534
|
-
[nt.datepickerInput_disabled]:
|
|
9533
|
+
[nt.datepickerInput_size]: l,
|
|
9534
|
+
[nt.datepickerInput_disabled]: p,
|
|
9535
9535
|
[nt.datepickerInput_changed]: y,
|
|
9536
|
-
[nt.datepickerInput_focused]: b ||
|
|
9537
|
-
[nt.datepickerInput_error]: !!
|
|
9538
|
-
...
|
|
9536
|
+
[nt.datepickerInput_focused]: b || T,
|
|
9537
|
+
[nt.datepickerInput_error]: !!u,
|
|
9538
|
+
...C && { [C]: !0 }
|
|
9539
9539
|
}), G = E({
|
|
9540
9540
|
[nt.datepickerInput__input]: !0,
|
|
9541
9541
|
[nt.datepickerInput__input_clearStyles]: !0
|
|
@@ -9545,10 +9545,10 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9545
9545
|
return /* @__PURE__ */ ue(
|
|
9546
9546
|
"div",
|
|
9547
9547
|
{
|
|
9548
|
-
ref:
|
|
9548
|
+
ref: D,
|
|
9549
9549
|
onMouseDown: A,
|
|
9550
9550
|
onClick: d,
|
|
9551
|
-
onBlur:
|
|
9551
|
+
onBlur: Y,
|
|
9552
9552
|
className: L,
|
|
9553
9553
|
children: [
|
|
9554
9554
|
/* @__PURE__ */ M(
|
|
@@ -9556,7 +9556,7 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9556
9556
|
{
|
|
9557
9557
|
className: nt.datepickerInput,
|
|
9558
9558
|
alwaysShowMask: !1,
|
|
9559
|
-
disabled:
|
|
9559
|
+
disabled: p,
|
|
9560
9560
|
mask: o,
|
|
9561
9561
|
onBlur: m,
|
|
9562
9562
|
onMouseDown: (ne) => {
|
|
@@ -9565,15 +9565,15 @@ const Jm = /* @__PURE__ */ qa(Zm), eh = "_datepickerInput_e80nk_43", th = "_date
|
|
|
9565
9565
|
onChange: P,
|
|
9566
9566
|
name: e,
|
|
9567
9567
|
value: t,
|
|
9568
|
-
placeholder:
|
|
9568
|
+
placeholder: i,
|
|
9569
9569
|
children: (ne) => /* @__PURE__ */ M(
|
|
9570
9570
|
"input",
|
|
9571
9571
|
{
|
|
9572
9572
|
...ne,
|
|
9573
9573
|
ref: a,
|
|
9574
9574
|
autoComplete: "off",
|
|
9575
|
-
placeholder:
|
|
9576
|
-
disabled:
|
|
9575
|
+
placeholder: i,
|
|
9576
|
+
disabled: p,
|
|
9577
9577
|
className: G
|
|
9578
9578
|
}
|
|
9579
9579
|
)
|
|
@@ -9622,7 +9622,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9622
9622
|
}
|
|
9623
9623
|
)
|
|
9624
9624
|
] });
|
|
9625
|
-
}, hh = "
|
|
9625
|
+
}, hh = "_datePicker_1ejft_43", vh = "_datePicker_relative_1ejft_49", _h = "_datePicker__customHeader_1ejft_52", gh = "_datePicker__navigationWrapper_1ejft_57", wh = "_datePicker__navigation_1ejft_57", bh = "_datePicker__navigation_previous_1ejft_69", yh = "_datePicker__footer_1ejft_72", xh = "_datePicker__footerActions_1ejft_77", kh = "_datePicker__footerActions_clear_1ejft_82", Dh = "_datePicker__footerActions_done_1ejft_85", Ch = "_datePicker__customContainer_1ejft_88", We = {
|
|
9626
9626
|
datePicker: hh,
|
|
9627
9627
|
datePicker_relative: vh,
|
|
9628
9628
|
datePicker__customHeader: _h,
|
|
@@ -9636,62 +9636,53 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9636
9636
|
datePicker__customContainer: Ch
|
|
9637
9637
|
}, xw = (n) => {
|
|
9638
9638
|
const {
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9639
|
+
variant: a = "outlined",
|
|
9640
|
+
size: t = "lg",
|
|
9641
|
+
placeholderText: e = "дд.мм.гггг",
|
|
9642
|
+
dateFormatMask: r = "99.99.9999",
|
|
9643
|
+
dateFormat: o = "dd.MM.yyyy",
|
|
9644
|
+
readOnlyInput: i = !0,
|
|
9645
|
+
isClearable: s = !0,
|
|
9646
|
+
isRelative: l = !0,
|
|
9647
|
+
shouldCloseOnSelect: p = !1,
|
|
9648
|
+
closeOnScroll: u = !1,
|
|
9649
|
+
disabled: d,
|
|
9650
|
+
required: m,
|
|
9651
|
+
error: v,
|
|
9652
|
+
label: w,
|
|
9653
|
+
value: b,
|
|
9654
|
+
selected: y,
|
|
9655
|
+
onCalendarOpen: C,
|
|
9656
|
+
onCalendarClose: T,
|
|
9657
|
+
onMouseDownInput: S,
|
|
9658
|
+
onChange: D,
|
|
9659
|
+
onBlur: x,
|
|
9660
|
+
onFocus: A,
|
|
9661
|
+
name: Y,
|
|
9662
|
+
changed: P,
|
|
9663
|
+
onMouseEnter: L,
|
|
9664
|
+
infoTooltipText: G,
|
|
9665
|
+
tooltipPosition: ce,
|
|
9666
|
+
minDate: ne,
|
|
9667
|
+
maxDate: K,
|
|
9668
9668
|
classNameRoot: te,
|
|
9669
9669
|
classNameDatePickerInputRoot: W,
|
|
9670
9670
|
classNameLabel: z,
|
|
9671
9671
|
classNameBaseTooltipRoot: $
|
|
9672
|
-
} = n, [X, h] = Ce(!1), [f, g] = Ce(
|
|
9673
|
-
|
|
9672
|
+
} = n, [X, h] = Ce(!1), [f, g] = Ce(y), _ = () => {
|
|
9673
|
+
C && C(), A && A(), h(!0);
|
|
9674
9674
|
}, c = () => {
|
|
9675
|
-
|
|
9675
|
+
T && T(), x && x(), h(!1);
|
|
9676
9676
|
}, k = (I, J) => {
|
|
9677
|
-
|
|
9678
|
-
const ie = {
|
|
9679
|
-
target: {
|
|
9680
|
-
name: S || "",
|
|
9681
|
-
value: I ? I.toISOString() : null
|
|
9682
|
-
}
|
|
9683
|
-
// Можно добавить другие необходимые поля event'а если нужно
|
|
9684
|
-
};
|
|
9685
|
-
S && y(ie, { name: S, value: I });
|
|
9686
|
-
}
|
|
9677
|
+
D && Y && D({ name: Y, value: I });
|
|
9687
9678
|
}, B = (I) => {
|
|
9688
|
-
|
|
9679
|
+
p && k(I), g(I);
|
|
9689
9680
|
}, V = E({
|
|
9690
9681
|
[We.datePicker]: !0,
|
|
9691
|
-
[We.datePicker_size]:
|
|
9692
|
-
[We.datePicker_active]: !!
|
|
9693
|
-
[We.datePicker_error]: !!
|
|
9694
|
-
[We.datePicker_relative]:
|
|
9682
|
+
[We.datePicker_size]: t,
|
|
9683
|
+
[We.datePicker_active]: !!b,
|
|
9684
|
+
[We.datePicker_error]: !!v,
|
|
9685
|
+
[We.datePicker_relative]: l,
|
|
9695
9686
|
...te && { [te]: !0 }
|
|
9696
9687
|
}), O = Fe(null), H = E({
|
|
9697
9688
|
[We.datePicker__customInput]: !0,
|
|
@@ -9699,49 +9690,50 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9699
9690
|
}), q = E({
|
|
9700
9691
|
[We.datePicker__label]: !0,
|
|
9701
9692
|
...z && { [z]: !0 }
|
|
9702
|
-
}),
|
|
9693
|
+
}), j = E({
|
|
9703
9694
|
[We.datePicker__error]: !0
|
|
9704
9695
|
}), U = (I) => {
|
|
9705
|
-
I.preventDefault(), I.stopPropagation(), k(null), O.current && O.current.setOpen(!1), c();
|
|
9696
|
+
I.preventDefault(), I.stopPropagation(), k(null), g(null), O.current && O.current.setOpen(!1), c();
|
|
9706
9697
|
}, F = (I) => {
|
|
9707
9698
|
I.preventDefault(), I.stopPropagation(), O.current && O.current.setOpen(!1), k(f), c();
|
|
9708
9699
|
};
|
|
9709
|
-
return /* @__PURE__ */ ue("div", { onMouseEnter:
|
|
9710
|
-
|
|
9700
|
+
return /* @__PURE__ */ ue("div", { onMouseEnter: L, className: V, children: [
|
|
9701
|
+
w && /* @__PURE__ */ M(
|
|
9711
9702
|
Pr,
|
|
9712
9703
|
{
|
|
9713
9704
|
classNameRoot: q,
|
|
9714
|
-
tooltipPosition:
|
|
9715
|
-
required:
|
|
9716
|
-
label:
|
|
9717
|
-
infoTooltipText:
|
|
9705
|
+
tooltipPosition: ce,
|
|
9706
|
+
required: m,
|
|
9707
|
+
label: w,
|
|
9708
|
+
infoTooltipText: G,
|
|
9718
9709
|
classNameBaseTooltipRoot: $
|
|
9719
9710
|
}
|
|
9720
9711
|
),
|
|
9721
9712
|
/* @__PURE__ */ M(
|
|
9722
9713
|
Um,
|
|
9723
9714
|
{
|
|
9715
|
+
disabledKeyboardNavigation: !f,
|
|
9724
9716
|
onSelect: B,
|
|
9725
9717
|
ref: O,
|
|
9726
|
-
closeOnScroll:
|
|
9727
|
-
shouldCloseOnSelect:
|
|
9728
|
-
minDate:
|
|
9729
|
-
maxDate:
|
|
9730
|
-
dateFormat:
|
|
9718
|
+
closeOnScroll: u,
|
|
9719
|
+
shouldCloseOnSelect: p,
|
|
9720
|
+
minDate: ne,
|
|
9721
|
+
maxDate: K,
|
|
9722
|
+
dateFormat: o,
|
|
9731
9723
|
locale: up,
|
|
9732
|
-
onBlur:
|
|
9733
|
-
onFocus:
|
|
9734
|
-
required:
|
|
9735
|
-
name:
|
|
9724
|
+
onBlur: x,
|
|
9725
|
+
onFocus: A,
|
|
9726
|
+
required: m,
|
|
9727
|
+
name: Y,
|
|
9736
9728
|
onCalendarClose: c,
|
|
9737
9729
|
onCalendarOpen: _,
|
|
9738
|
-
selected:
|
|
9739
|
-
value:
|
|
9740
|
-
disabled:
|
|
9730
|
+
selected: y,
|
|
9731
|
+
value: b,
|
|
9732
|
+
disabled: d,
|
|
9741
9733
|
renderCustomHeader: ({
|
|
9742
9734
|
monthDate: I,
|
|
9743
9735
|
decreaseMonth: J,
|
|
9744
|
-
increaseMonth:
|
|
9736
|
+
increaseMonth: le
|
|
9745
9737
|
}) => {
|
|
9746
9738
|
const ae = I.toLocaleString("ru-RU", {
|
|
9747
9739
|
month: "short"
|
|
@@ -9764,7 +9756,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9764
9756
|
Be,
|
|
9765
9757
|
{
|
|
9766
9758
|
name: pe.ArrowBottom,
|
|
9767
|
-
onClick:
|
|
9759
|
+
onClick: le,
|
|
9768
9760
|
className: E(We.datePicker__navigation)
|
|
9769
9761
|
}
|
|
9770
9762
|
)
|
|
@@ -9773,7 +9765,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9773
9765
|
},
|
|
9774
9766
|
calendarContainer: ({ className: I, children: J }) => /* @__PURE__ */ ue("div", { className: E(We.datePicker__customContainer, I), children: [
|
|
9775
9767
|
J,
|
|
9776
|
-
|
|
9768
|
+
s && /* @__PURE__ */ ue("div", { className: We.datePicker__footer, children: [
|
|
9777
9769
|
/* @__PURE__ */ M(
|
|
9778
9770
|
st,
|
|
9779
9771
|
{
|
|
@@ -9801,22 +9793,22 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9801
9793
|
customInput: /* @__PURE__ */ M(
|
|
9802
9794
|
ss,
|
|
9803
9795
|
{
|
|
9804
|
-
variant:
|
|
9805
|
-
placeholderText:
|
|
9806
|
-
dateFormatMask:
|
|
9807
|
-
changed:
|
|
9796
|
+
variant: a,
|
|
9797
|
+
placeholderText: e,
|
|
9798
|
+
dateFormatMask: r,
|
|
9799
|
+
changed: P,
|
|
9808
9800
|
classNameRoot: H,
|
|
9809
|
-
size:
|
|
9810
|
-
error:
|
|
9801
|
+
size: t,
|
|
9802
|
+
error: v,
|
|
9811
9803
|
focused: X,
|
|
9812
|
-
onMouseDownInput:
|
|
9813
|
-
readOnlyInput:
|
|
9814
|
-
disabled:
|
|
9804
|
+
onMouseDownInput: S,
|
|
9805
|
+
readOnlyInput: i,
|
|
9806
|
+
disabled: d
|
|
9815
9807
|
}
|
|
9816
9808
|
)
|
|
9817
9809
|
}
|
|
9818
9810
|
),
|
|
9819
|
-
|
|
9811
|
+
v && /* @__PURE__ */ M("div", { className: j, children: v })
|
|
9820
9812
|
] });
|
|
9821
9813
|
}, Sh = (n) => {
|
|
9822
9814
|
const { getRootProps: a, children: t, disabled: e, name: r, getInputProps: o } = n;
|
|
@@ -9913,7 +9905,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9913
9905
|
const y = E({
|
|
9914
9906
|
[jo.ellipsisTextWithTooltip]: !0,
|
|
9915
9907
|
...e && { [e]: !0 }
|
|
9916
|
-
}),
|
|
9908
|
+
}), C = E({
|
|
9917
9909
|
[jo.ellipsisTextWithTooltip__tooltip]: !0,
|
|
9918
9910
|
...r && { [r]: !0 }
|
|
9919
9911
|
});
|
|
@@ -9923,7 +9915,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9923
9915
|
hover: !0,
|
|
9924
9916
|
position: s,
|
|
9925
9917
|
classNameBaseTooltipRoot: i,
|
|
9926
|
-
classNameTooltip:
|
|
9918
|
+
classNameTooltip: C,
|
|
9927
9919
|
classNameBaseTooltipContentRoot: o,
|
|
9928
9920
|
isVisibleTooltip: d,
|
|
9929
9921
|
text: a,
|
|
@@ -9997,7 +9989,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
9997
9989
|
spInput__clear: Kh,
|
|
9998
9990
|
spInput__error: Xh,
|
|
9999
9991
|
spInput__error_absolutePosition: Zh
|
|
10000
|
-
}, Jh =
|
|
9992
|
+
}, Jh = N.forwardRef((n, a) => {
|
|
10001
9993
|
const {
|
|
10002
9994
|
value: t,
|
|
10003
9995
|
onChange: e,
|
|
@@ -10014,17 +10006,17 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
10014
10006
|
infoTooltipText: w,
|
|
10015
10007
|
tooltipPosition: b,
|
|
10016
10008
|
isVisibleDefaultTitle: y = !0,
|
|
10017
|
-
placeholder:
|
|
10018
|
-
classNameRoot:
|
|
10009
|
+
placeholder: C = "Введите...",
|
|
10010
|
+
classNameRoot: T,
|
|
10019
10011
|
classNameError: S,
|
|
10020
|
-
classNameLabel:
|
|
10012
|
+
classNameLabel: D,
|
|
10021
10013
|
classNameBaseTooltipRoot: x,
|
|
10022
10014
|
...A
|
|
10023
|
-
} = n,
|
|
10015
|
+
} = n, Y = E({
|
|
10024
10016
|
[pt.spInput]: !0,
|
|
10025
10017
|
[pt.spInput_error]: !!l,
|
|
10026
10018
|
[pt.spInput_absolutePositionError]: s,
|
|
10027
|
-
...
|
|
10019
|
+
...T && { [T]: !0 }
|
|
10028
10020
|
}), P = E({
|
|
10029
10021
|
[pt.spInput__container]: !0
|
|
10030
10022
|
}), L = E({
|
|
@@ -10039,14 +10031,14 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
10039
10031
|
[pt.spInput__error_absolutePosition]: s,
|
|
10040
10032
|
...S && { [S]: !0 }
|
|
10041
10033
|
}), ne = E({
|
|
10042
|
-
...
|
|
10034
|
+
...D && { [D]: !0 }
|
|
10043
10035
|
}), K = (z) => {
|
|
10044
10036
|
e(z, { name: u, value: "" });
|
|
10045
10037
|
}, te = (z) => {
|
|
10046
10038
|
const { value: $, name: X } = z.target;
|
|
10047
10039
|
m && $ && !new RegExp(m).test($) || e(z, { value: $, name: X });
|
|
10048
10040
|
};
|
|
10049
|
-
return /* @__PURE__ */ ue("div", { className:
|
|
10041
|
+
return /* @__PURE__ */ ue("div", { className: Y, children: [
|
|
10050
10042
|
r && /* @__PURE__ */ M(
|
|
10051
10043
|
Pr,
|
|
10052
10044
|
{
|
|
@@ -10063,7 +10055,7 @@ const uh = "_spLabel_1mq16_43", dh = "_spLabel__text_1mq16_52", fh = "_spLabel__
|
|
|
10063
10055
|
"input",
|
|
10064
10056
|
{
|
|
10065
10057
|
...A,
|
|
10066
|
-
placeholder:
|
|
10058
|
+
placeholder: C,
|
|
10067
10059
|
disabled: i,
|
|
10068
10060
|
onChange: te,
|
|
10069
10061
|
title: y ? t : void 0,
|
|
@@ -10247,7 +10239,7 @@ var Uo;
|
|
|
10247
10239
|
function vv() {
|
|
10248
10240
|
if (Uo) return be;
|
|
10249
10241
|
Uo = 1;
|
|
10250
|
-
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, p = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, d = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, v = n ? Symbol.for("react.memo") : 60115, w = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117,
|
|
10242
|
+
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, p = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, d = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, v = n ? Symbol.for("react.memo") : 60115, w = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, T = n ? Symbol.for("react.scope") : 60119;
|
|
10251
10243
|
function S(x) {
|
|
10252
10244
|
if (typeof x == "object" && x !== null) {
|
|
10253
10245
|
var A = x.$$typeof;
|
|
@@ -10278,12 +10270,12 @@ function vv() {
|
|
|
10278
10270
|
}
|
|
10279
10271
|
}
|
|
10280
10272
|
}
|
|
10281
|
-
function
|
|
10273
|
+
function D(x) {
|
|
10282
10274
|
return S(x) === p;
|
|
10283
10275
|
}
|
|
10284
10276
|
return be.AsyncMode = l, be.ConcurrentMode = p, be.ContextConsumer = s, be.ContextProvider = i, be.Element = a, be.ForwardRef = u, be.Fragment = e, be.Lazy = w, be.Memo = v, be.Portal = t, be.Profiler = o, be.StrictMode = r, be.Suspense = d, be.isAsyncMode = function(x) {
|
|
10285
|
-
return
|
|
10286
|
-
}, be.isConcurrentMode =
|
|
10277
|
+
return D(x) || S(x) === l;
|
|
10278
|
+
}, be.isConcurrentMode = D, be.isContextConsumer = function(x) {
|
|
10287
10279
|
return S(x) === s;
|
|
10288
10280
|
}, be.isContextProvider = function(x) {
|
|
10289
10281
|
return S(x) === i;
|
|
@@ -10306,7 +10298,7 @@ function vv() {
|
|
|
10306
10298
|
}, be.isSuspense = function(x) {
|
|
10307
10299
|
return S(x) === d;
|
|
10308
10300
|
}, be.isValidElementType = function(x) {
|
|
10309
|
-
return typeof x == "string" || typeof x == "function" || x === e || x === p || x === o || x === r || x === d || x === m || typeof x == "object" && x !== null && (x.$$typeof === w || x.$$typeof === v || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === y || x.$$typeof ===
|
|
10301
|
+
return typeof x == "string" || typeof x == "function" || x === e || x === p || x === o || x === r || x === d || x === m || typeof x == "object" && x !== null && (x.$$typeof === w || x.$$typeof === v || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === y || x.$$typeof === C || x.$$typeof === T || x.$$typeof === b);
|
|
10310
10302
|
}, be.typeOf = S, be;
|
|
10311
10303
|
}
|
|
10312
10304
|
var ye = {};
|
|
@@ -10321,12 +10313,12 @@ var ye = {};
|
|
|
10321
10313
|
var $o;
|
|
10322
10314
|
function _v() {
|
|
10323
10315
|
return $o || ($o = 1, process.env.NODE_ENV !== "production" && function() {
|
|
10324
|
-
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, p = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, d = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, v = n ? Symbol.for("react.memo") : 60115, w = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117,
|
|
10316
|
+
var n = typeof Symbol == "function" && Symbol.for, a = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, e = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, s = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, p = n ? Symbol.for("react.concurrent_mode") : 60111, u = n ? Symbol.for("react.forward_ref") : 60112, d = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, v = n ? Symbol.for("react.memo") : 60115, w = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, T = n ? Symbol.for("react.scope") : 60119;
|
|
10325
10317
|
function S(F) {
|
|
10326
10318
|
return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10327
|
-
F === e || F === p || F === o || F === r || F === d || F === m || typeof F == "object" && F !== null && (F.$$typeof === w || F.$$typeof === v || F.$$typeof === i || F.$$typeof === s || F.$$typeof === u || F.$$typeof === y || F.$$typeof ===
|
|
10319
|
+
F === e || F === p || F === o || F === r || F === d || F === m || typeof F == "object" && F !== null && (F.$$typeof === w || F.$$typeof === v || F.$$typeof === i || F.$$typeof === s || F.$$typeof === u || F.$$typeof === y || F.$$typeof === C || F.$$typeof === T || F.$$typeof === b);
|
|
10328
10320
|
}
|
|
10329
|
-
function
|
|
10321
|
+
function D(F) {
|
|
10330
10322
|
if (typeof F == "object" && F !== null) {
|
|
10331
10323
|
var Q = F.$$typeof;
|
|
10332
10324
|
switch (Q) {
|
|
@@ -10358,47 +10350,47 @@ function _v() {
|
|
|
10358
10350
|
}
|
|
10359
10351
|
}
|
|
10360
10352
|
}
|
|
10361
|
-
var x = l, A = p,
|
|
10353
|
+
var x = l, A = p, Y = s, P = i, L = a, G = u, ce = e, ne = w, K = v, te = t, W = o, z = r, $ = d, X = !1;
|
|
10362
10354
|
function h(F) {
|
|
10363
|
-
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) ||
|
|
10355
|
+
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;
|
|
10364
10356
|
}
|
|
10365
10357
|
function f(F) {
|
|
10366
|
-
return
|
|
10358
|
+
return D(F) === p;
|
|
10367
10359
|
}
|
|
10368
10360
|
function g(F) {
|
|
10369
|
-
return
|
|
10361
|
+
return D(F) === s;
|
|
10370
10362
|
}
|
|
10371
10363
|
function _(F) {
|
|
10372
|
-
return
|
|
10364
|
+
return D(F) === i;
|
|
10373
10365
|
}
|
|
10374
10366
|
function c(F) {
|
|
10375
10367
|
return typeof F == "object" && F !== null && F.$$typeof === a;
|
|
10376
10368
|
}
|
|
10377
10369
|
function k(F) {
|
|
10378
|
-
return
|
|
10370
|
+
return D(F) === u;
|
|
10379
10371
|
}
|
|
10380
10372
|
function B(F) {
|
|
10381
|
-
return
|
|
10373
|
+
return D(F) === e;
|
|
10382
10374
|
}
|
|
10383
10375
|
function V(F) {
|
|
10384
|
-
return
|
|
10376
|
+
return D(F) === w;
|
|
10385
10377
|
}
|
|
10386
10378
|
function O(F) {
|
|
10387
|
-
return
|
|
10379
|
+
return D(F) === v;
|
|
10388
10380
|
}
|
|
10389
10381
|
function H(F) {
|
|
10390
|
-
return
|
|
10382
|
+
return D(F) === t;
|
|
10391
10383
|
}
|
|
10392
10384
|
function q(F) {
|
|
10393
|
-
return
|
|
10385
|
+
return D(F) === o;
|
|
10394
10386
|
}
|
|
10395
|
-
function
|
|
10396
|
-
return
|
|
10387
|
+
function j(F) {
|
|
10388
|
+
return D(F) === r;
|
|
10397
10389
|
}
|
|
10398
10390
|
function U(F) {
|
|
10399
|
-
return
|
|
10391
|
+
return D(F) === d;
|
|
10400
10392
|
}
|
|
10401
|
-
ye.AsyncMode = x, ye.ConcurrentMode = A, ye.ContextConsumer =
|
|
10393
|
+
ye.AsyncMode = x, ye.ConcurrentMode = A, ye.ContextConsumer = Y, ye.ContextProvider = P, ye.Element = L, ye.ForwardRef = G, ye.Fragment = ce, ye.Lazy = ne, ye.Memo = K, 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 = V, ye.isMemo = O, ye.isPortal = H, ye.isProfiler = q, ye.isStrictMode = j, ye.isSuspense = U, ye.isValidElementType = S, ye.typeOf = D;
|
|
10402
10394
|
}()), ye;
|
|
10403
10395
|
}
|
|
10404
10396
|
var Qo;
|
|
@@ -10541,22 +10533,22 @@ function bv() {
|
|
|
10541
10533
|
return g;
|
|
10542
10534
|
}
|
|
10543
10535
|
var m = "<<anonymous>>", v = {
|
|
10544
|
-
array:
|
|
10545
|
-
bigint:
|
|
10546
|
-
bool:
|
|
10547
|
-
func:
|
|
10548
|
-
number:
|
|
10549
|
-
object:
|
|
10550
|
-
string:
|
|
10551
|
-
symbol:
|
|
10552
|
-
any:
|
|
10536
|
+
array: C("array"),
|
|
10537
|
+
bigint: C("bigint"),
|
|
10538
|
+
bool: C("boolean"),
|
|
10539
|
+
func: C("function"),
|
|
10540
|
+
number: C("number"),
|
|
10541
|
+
object: C("object"),
|
|
10542
|
+
string: C("string"),
|
|
10543
|
+
symbol: C("symbol"),
|
|
10544
|
+
any: T(),
|
|
10553
10545
|
arrayOf: S,
|
|
10554
|
-
element:
|
|
10546
|
+
element: D(),
|
|
10555
10547
|
elementType: x(),
|
|
10556
10548
|
instanceOf: A,
|
|
10557
10549
|
node: G(),
|
|
10558
10550
|
objectOf: P,
|
|
10559
|
-
oneOf:
|
|
10551
|
+
oneOf: Y,
|
|
10560
10552
|
oneOfType: L,
|
|
10561
10553
|
shape: ne,
|
|
10562
10554
|
exact: K
|
|
@@ -10571,8 +10563,8 @@ function bv() {
|
|
|
10571
10563
|
function y(f) {
|
|
10572
10564
|
if (process.env.NODE_ENV !== "production")
|
|
10573
10565
|
var g = {}, _ = 0;
|
|
10574
|
-
function c(B, V, O, H, q,
|
|
10575
|
-
if (H = H || m,
|
|
10566
|
+
function c(B, V, O, H, q, j, U) {
|
|
10567
|
+
if (H = H || m, j = j || O, U !== t) {
|
|
10576
10568
|
if (l) {
|
|
10577
10569
|
var F = new Error(
|
|
10578
10570
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -10582,22 +10574,22 @@ function bv() {
|
|
|
10582
10574
|
var Q = H + ":" + O;
|
|
10583
10575
|
!g[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
10584
10576
|
_ < 3 && (o(
|
|
10585
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
10577
|
+
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
10586
10578
|
), g[Q] = !0, _++);
|
|
10587
10579
|
}
|
|
10588
10580
|
}
|
|
10589
|
-
return V[O] == null ? B ? V[O] === null ? new b("The " + q + " `" +
|
|
10581
|
+
return V[O] == null ? B ? V[O] === null ? new b("The " + q + " `" + j + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new b("The " + q + " `" + j + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : f(V, O, H, q, j);
|
|
10590
10582
|
}
|
|
10591
10583
|
var k = c.bind(null, !1);
|
|
10592
10584
|
return k.isRequired = c.bind(null, !0), k;
|
|
10593
10585
|
}
|
|
10594
|
-
function
|
|
10586
|
+
function C(f) {
|
|
10595
10587
|
function g(_, c, k, B, V, O) {
|
|
10596
10588
|
var H = _[c], q = z(H);
|
|
10597
10589
|
if (q !== f) {
|
|
10598
|
-
var
|
|
10590
|
+
var j = $(H);
|
|
10599
10591
|
return new b(
|
|
10600
|
-
"Invalid " + B + " `" + V + "` of type " + ("`" +
|
|
10592
|
+
"Invalid " + B + " `" + V + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected ") + ("`" + f + "`."),
|
|
10601
10593
|
{ expectedType: f }
|
|
10602
10594
|
);
|
|
10603
10595
|
}
|
|
@@ -10605,7 +10597,7 @@ function bv() {
|
|
|
10605
10597
|
}
|
|
10606
10598
|
return y(g);
|
|
10607
10599
|
}
|
|
10608
|
-
function
|
|
10600
|
+
function T() {
|
|
10609
10601
|
return y(i);
|
|
10610
10602
|
}
|
|
10611
10603
|
function S(f) {
|
|
@@ -10618,15 +10610,15 @@ function bv() {
|
|
|
10618
10610
|
return new b("Invalid " + B + " `" + V + "` of type " + ("`" + H + "` supplied to `" + k + "`, expected an array."));
|
|
10619
10611
|
}
|
|
10620
10612
|
for (var q = 0; q < O.length; q++) {
|
|
10621
|
-
var
|
|
10622
|
-
if (
|
|
10623
|
-
return
|
|
10613
|
+
var j = f(O, q, k, B, V + "[" + q + "]", t);
|
|
10614
|
+
if (j instanceof Error)
|
|
10615
|
+
return j;
|
|
10624
10616
|
}
|
|
10625
10617
|
return null;
|
|
10626
10618
|
}
|
|
10627
10619
|
return y(g);
|
|
10628
10620
|
}
|
|
10629
|
-
function
|
|
10621
|
+
function D() {
|
|
10630
10622
|
function f(g, _, c, k, B) {
|
|
10631
10623
|
var V = g[_];
|
|
10632
10624
|
if (!s(V)) {
|
|
@@ -10658,7 +10650,7 @@ function bv() {
|
|
|
10658
10650
|
}
|
|
10659
10651
|
return y(g);
|
|
10660
10652
|
}
|
|
10661
|
-
function
|
|
10653
|
+
function Y(f) {
|
|
10662
10654
|
if (!Array.isArray(f))
|
|
10663
10655
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
10664
10656
|
"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])."
|
|
@@ -10684,9 +10676,9 @@ function bv() {
|
|
|
10684
10676
|
return new b("Invalid " + B + " `" + V + "` of type " + ("`" + H + "` supplied to `" + k + "`, expected an object."));
|
|
10685
10677
|
for (var q in O)
|
|
10686
10678
|
if (e(O, q)) {
|
|
10687
|
-
var
|
|
10688
|
-
if (
|
|
10689
|
-
return
|
|
10679
|
+
var j = f(O, q, k, B, V + "." + q, t);
|
|
10680
|
+
if (j instanceof Error)
|
|
10681
|
+
return j;
|
|
10690
10682
|
}
|
|
10691
10683
|
return null;
|
|
10692
10684
|
}
|
|
@@ -10703,8 +10695,8 @@ function bv() {
|
|
|
10703
10695
|
), i;
|
|
10704
10696
|
}
|
|
10705
10697
|
function c(k, B, V, O, H) {
|
|
10706
|
-
for (var q = [],
|
|
10707
|
-
var U = f[
|
|
10698
|
+
for (var q = [], j = 0; j < f.length; j++) {
|
|
10699
|
+
var U = f[j], F = U(k, B, V, O, H, t);
|
|
10708
10700
|
if (F == null)
|
|
10709
10701
|
return null;
|
|
10710
10702
|
F.data && e(F.data, "expectedType") && q.push(F.data.expectedType);
|
|
@@ -10731,10 +10723,10 @@ function bv() {
|
|
|
10731
10723
|
if (H !== "object")
|
|
10732
10724
|
return new b("Invalid " + B + " `" + V + "` of type `" + H + "` " + ("supplied to `" + k + "`, expected `object`."));
|
|
10733
10725
|
for (var q in f) {
|
|
10734
|
-
var
|
|
10735
|
-
if (typeof
|
|
10736
|
-
return ce(k, B, V, q, $(
|
|
10737
|
-
var U =
|
|
10726
|
+
var j = f[q];
|
|
10727
|
+
if (typeof j != "function")
|
|
10728
|
+
return ce(k, B, V, q, $(j));
|
|
10729
|
+
var U = j(O, q, k, B, V + "." + q, t);
|
|
10738
10730
|
if (U)
|
|
10739
10731
|
return U;
|
|
10740
10732
|
}
|
|
@@ -10748,16 +10740,16 @@ function bv() {
|
|
|
10748
10740
|
if (H !== "object")
|
|
10749
10741
|
return new b("Invalid " + B + " `" + V + "` of type `" + H + "` " + ("supplied to `" + k + "`, expected `object`."));
|
|
10750
10742
|
var q = a({}, _[c], f);
|
|
10751
|
-
for (var
|
|
10752
|
-
var U = f[
|
|
10753
|
-
if (e(f,
|
|
10754
|
-
return ce(k, B, V,
|
|
10743
|
+
for (var j in q) {
|
|
10744
|
+
var U = f[j];
|
|
10745
|
+
if (e(f, j) && typeof U != "function")
|
|
10746
|
+
return ce(k, B, V, j, $(U));
|
|
10755
10747
|
if (!U)
|
|
10756
10748
|
return new b(
|
|
10757
|
-
"Invalid " + B + " `" + V + "` key `" +
|
|
10749
|
+
"Invalid " + B + " `" + V + "` key `" + j + "` supplied to `" + k + "`.\nBad object: " + JSON.stringify(_[c], null, " ") + `
|
|
10758
10750
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
10759
10751
|
);
|
|
10760
|
-
var F = U(O,
|
|
10752
|
+
var F = U(O, j, k, B, V + "." + j, t);
|
|
10761
10753
|
if (F)
|
|
10762
10754
|
return F;
|
|
10763
10755
|
}
|
|
@@ -10891,37 +10883,37 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
10891
10883
|
} else
|
|
10892
10884
|
ya.exports = yv()();
|
|
10893
10885
|
var Dv = ya.exports;
|
|
10894
|
-
const
|
|
10895
|
-
all:
|
|
10896
|
-
grid:
|
|
10897
|
-
aural:
|
|
10898
|
-
braille:
|
|
10899
|
-
handheld:
|
|
10900
|
-
print:
|
|
10901
|
-
projection:
|
|
10902
|
-
screen:
|
|
10903
|
-
tty:
|
|
10904
|
-
tv:
|
|
10905
|
-
embossed:
|
|
10886
|
+
const se = /* @__PURE__ */ qa(Dv), Ke = se.oneOfType([se.string, se.number]), ds = {
|
|
10887
|
+
all: se.bool,
|
|
10888
|
+
grid: se.bool,
|
|
10889
|
+
aural: se.bool,
|
|
10890
|
+
braille: se.bool,
|
|
10891
|
+
handheld: se.bool,
|
|
10892
|
+
print: se.bool,
|
|
10893
|
+
projection: se.bool,
|
|
10894
|
+
screen: se.bool,
|
|
10895
|
+
tty: se.bool,
|
|
10896
|
+
tv: se.bool,
|
|
10897
|
+
embossed: se.bool
|
|
10906
10898
|
}, Cv = {
|
|
10907
|
-
orientation:
|
|
10908
|
-
scan:
|
|
10909
|
-
aspectRatio:
|
|
10910
|
-
deviceAspectRatio:
|
|
10899
|
+
orientation: se.oneOf(["portrait", "landscape"]),
|
|
10900
|
+
scan: se.oneOf(["progressive", "interlace"]),
|
|
10901
|
+
aspectRatio: se.string,
|
|
10902
|
+
deviceAspectRatio: se.string,
|
|
10911
10903
|
height: Ke,
|
|
10912
10904
|
deviceHeight: Ke,
|
|
10913
10905
|
width: Ke,
|
|
10914
10906
|
deviceWidth: Ke,
|
|
10915
|
-
color:
|
|
10916
|
-
colorIndex:
|
|
10917
|
-
monochrome:
|
|
10907
|
+
color: se.bool,
|
|
10908
|
+
colorIndex: se.bool,
|
|
10909
|
+
monochrome: se.bool,
|
|
10918
10910
|
resolution: Ke,
|
|
10919
10911
|
type: Object.keys(ds)
|
|
10920
10912
|
}, { type: Cw, ...Sv } = Cv, Mv = {
|
|
10921
|
-
minAspectRatio:
|
|
10922
|
-
maxAspectRatio:
|
|
10923
|
-
minDeviceAspectRatio:
|
|
10924
|
-
maxDeviceAspectRatio:
|
|
10913
|
+
minAspectRatio: se.string,
|
|
10914
|
+
maxAspectRatio: se.string,
|
|
10915
|
+
minDeviceAspectRatio: se.string,
|
|
10916
|
+
maxDeviceAspectRatio: se.string,
|
|
10925
10917
|
minHeight: Ke,
|
|
10926
10918
|
maxHeight: Ke,
|
|
10927
10919
|
minDeviceHeight: Ke,
|
|
@@ -10930,12 +10922,12 @@ const le = /* @__PURE__ */ qa(Dv), Ke = le.oneOfType([le.string, le.number]), ds
|
|
|
10930
10922
|
maxWidth: Ke,
|
|
10931
10923
|
minDeviceWidth: Ke,
|
|
10932
10924
|
maxDeviceWidth: Ke,
|
|
10933
|
-
minColor:
|
|
10934
|
-
maxColor:
|
|
10935
|
-
minColorIndex:
|
|
10936
|
-
maxColorIndex:
|
|
10937
|
-
minMonochrome:
|
|
10938
|
-
maxMonochrome:
|
|
10925
|
+
minColor: se.number,
|
|
10926
|
+
maxColor: se.number,
|
|
10927
|
+
minColorIndex: se.number,
|
|
10928
|
+
maxColorIndex: se.number,
|
|
10929
|
+
minMonochrome: se.number,
|
|
10930
|
+
maxMonochrome: se.number,
|
|
10939
10931
|
minResolution: Ke,
|
|
10940
10932
|
maxResolution: Ke,
|
|
10941
10933
|
...Sv
|
|
@@ -11036,8 +11028,8 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11036
11028
|
l.current = o, p.current = performance.now();
|
|
11037
11029
|
const w = (b) => {
|
|
11038
11030
|
if (!p.current) return;
|
|
11039
|
-
const y = b - p.current,
|
|
11040
|
-
i(
|
|
11031
|
+
const y = b - p.current, C = Math.min(y / t, 1), T = C < 0.5 ? 4 * C * C * C : 1 - Math.pow(-2 * C + 2, 3) / 2, S = l.current + (u.current - l.current) * T, D = Math.max(0, Math.floor(S));
|
|
11032
|
+
i(D), C < 1 && (s.current = requestAnimationFrame(w));
|
|
11041
11033
|
};
|
|
11042
11034
|
return s.current = requestAnimationFrame(w), () => {
|
|
11043
11035
|
s.current && cancelAnimationFrame(s.current);
|
|
@@ -11135,28 +11127,28 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11135
11127
|
maxHeightList: w = Qv,
|
|
11136
11128
|
isVisibleDefaultTitle: b = !0,
|
|
11137
11129
|
isScrollableList: y = !1,
|
|
11138
|
-
isAbsolutePositionError:
|
|
11139
|
-
classNameRoot:
|
|
11130
|
+
isAbsolutePositionError: C = !1,
|
|
11131
|
+
classNameRoot: T,
|
|
11140
11132
|
classNameError: S,
|
|
11141
|
-
classNameLabel:
|
|
11133
|
+
classNameLabel: D,
|
|
11142
11134
|
classNameBaseTooltipRoot: x
|
|
11143
|
-
} = n, [A,
|
|
11135
|
+
} = n, [A, Y] = Ce(!1), P = Fe(null);
|
|
11144
11136
|
Na(
|
|
11145
11137
|
[P],
|
|
11146
11138
|
() => {
|
|
11147
|
-
|
|
11139
|
+
Y(!1);
|
|
11148
11140
|
},
|
|
11149
11141
|
A
|
|
11150
11142
|
);
|
|
11151
11143
|
const L = a.find((_) => _.value === e), G = (_, c) => {
|
|
11152
|
-
i(_, { value: c, name: r }),
|
|
11144
|
+
i(_, { value: c, name: r }), Y(!1);
|
|
11153
11145
|
}, ce = () => {
|
|
11154
|
-
m ||
|
|
11146
|
+
m || Y(!A);
|
|
11155
11147
|
}, ne = E({
|
|
11156
11148
|
[Ve.spSelect]: !0,
|
|
11157
11149
|
[Ve.spSelect_error]: !!l,
|
|
11158
|
-
[Ve.spSelect_absolutePositionError]:
|
|
11159
|
-
...
|
|
11150
|
+
[Ve.spSelect_absolutePositionError]: C,
|
|
11151
|
+
...T && { [T]: !0 }
|
|
11160
11152
|
}), K = E({
|
|
11161
11153
|
[Ve.spSelect__container]: !0
|
|
11162
11154
|
}), te = E({
|
|
@@ -11172,10 +11164,10 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11172
11164
|
[Ve.spSelect__list]: !0,
|
|
11173
11165
|
[Ve.spSelect__list_scrollable]: y
|
|
11174
11166
|
}), X = E({
|
|
11175
|
-
...
|
|
11167
|
+
...D && { [D]: !0 }
|
|
11176
11168
|
}), h = E({
|
|
11177
11169
|
[Ve.spSelect__error]: !0,
|
|
11178
|
-
[Ve.spSelect__error_absolutePosition]:
|
|
11170
|
+
[Ve.spSelect__error_absolutePosition]: C,
|
|
11179
11171
|
...S && { [S]: !0 }
|
|
11180
11172
|
}), f = () => /* @__PURE__ */ ue(
|
|
11181
11173
|
"div",
|
|
@@ -11302,10 +11294,10 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11302
11294
|
isNotTableOnNotDesktop: e = !1,
|
|
11303
11295
|
isDesktop: r = !0,
|
|
11304
11296
|
classNameRoot: o
|
|
11305
|
-
} = n, i = a.map((
|
|
11306
|
-
...
|
|
11307
|
-
isVisible: t.some((x) => !!x[
|
|
11308
|
-
} :
|
|
11297
|
+
} = n, i = a.map((D) => t ? {
|
|
11298
|
+
...D,
|
|
11299
|
+
isVisible: t.some((x) => !!x[D.key])
|
|
11300
|
+
} : D).filter((D) => D.isVisible), s = E({
|
|
11309
11301
|
[rt.spTable]: !0,
|
|
11310
11302
|
...o && { [o]: !0 }
|
|
11311
11303
|
}), l = E({
|
|
@@ -11314,28 +11306,28 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11314
11306
|
[rt.spTable__tdColorContent]: !0
|
|
11315
11307
|
}), u = E({
|
|
11316
11308
|
[rt.spTable__emptyPage]: !0
|
|
11317
|
-
}), [d, m] = Ce(null), v = (
|
|
11318
|
-
const { text: x, rowIndex: A, colIndex:
|
|
11319
|
-
(d == null ? void 0 : d.rowIndex) === A && (d == null ? void 0 : d.colIndex) ===
|
|
11320
|
-
m({ rowIndex: A, colIndex:
|
|
11309
|
+
}), [d, m] = Ce(null), v = (D) => {
|
|
11310
|
+
const { text: x, rowIndex: A, colIndex: Y } = D;
|
|
11311
|
+
(d == null ? void 0 : d.rowIndex) === A && (d == null ? void 0 : d.colIndex) === Y || navigator.clipboard.writeText(x).then(() => {
|
|
11312
|
+
m({ rowIndex: A, colIndex: Y });
|
|
11321
11313
|
}).catch((P) => {
|
|
11322
11314
|
console.error("Ошибка при копировании:", P);
|
|
11323
11315
|
});
|
|
11324
11316
|
}, w = () => {
|
|
11325
11317
|
m(null);
|
|
11326
11318
|
}, b = () => /* @__PURE__ */ M("div", { className: u, children: "Данные отсутствуют" }), y = ({
|
|
11327
|
-
row:
|
|
11319
|
+
row: D,
|
|
11328
11320
|
col: x
|
|
11329
11321
|
}) => {
|
|
11330
|
-
const A =
|
|
11322
|
+
const A = D[x.key];
|
|
11331
11323
|
if (!A) return null;
|
|
11332
|
-
const [
|
|
11324
|
+
const [Y, P] = A.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
11333
11325
|
return /* @__PURE__ */ ue("span", { children: [
|
|
11334
|
-
|
|
11326
|
+
Y,
|
|
11335
11327
|
P && /* @__PURE__ */ M("span", { className: p, children: ` ${P}` })
|
|
11336
11328
|
] });
|
|
11337
|
-
},
|
|
11338
|
-
/* @__PURE__ */ M("colgroup", { children: i.map((
|
|
11329
|
+
}, C = () => t && Array.isArray(t) && t.length > 0 ? /* @__PURE__ */ ue("table", { className: s, children: [
|
|
11330
|
+
/* @__PURE__ */ M("colgroup", { children: i.map((D, x, A) => /* @__PURE__ */ M(
|
|
11339
11331
|
"col",
|
|
11340
11332
|
{
|
|
11341
11333
|
style: {
|
|
@@ -11344,16 +11336,16 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11344
11336
|
},
|
|
11345
11337
|
x
|
|
11346
11338
|
)) }),
|
|
11347
|
-
/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ M("tr", { children: i.map((
|
|
11348
|
-
/* @__PURE__ */ M("tbody", { children: t.map((
|
|
11349
|
-
const P = (d == null ? void 0 : d.rowIndex) === x && (d == null ? void 0 : d.colIndex) ===
|
|
11339
|
+
/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ M("tr", { children: i.map((D, x) => /* @__PURE__ */ M("th", { children: D.title }, x)) }) }),
|
|
11340
|
+
/* @__PURE__ */ M("tbody", { children: t.map((D, x) => D ? /* @__PURE__ */ M("tr", { children: i.map((A, Y) => {
|
|
11341
|
+
const P = (d == null ? void 0 : d.rowIndex) === x && (d == null ? void 0 : d.colIndex) === Y;
|
|
11350
11342
|
return /* @__PURE__ */ M(
|
|
11351
11343
|
"td",
|
|
11352
11344
|
{
|
|
11353
11345
|
onMouseLeave: P ? w : void 0,
|
|
11354
11346
|
children: /* @__PURE__ */ ue("div", { className: l, children: [
|
|
11355
|
-
/* @__PURE__ */ M("span", { children: A.isColorContentsCurlyBrackets ? y({ row:
|
|
11356
|
-
!ba(
|
|
11347
|
+
/* @__PURE__ */ M("span", { children: A.isColorContentsCurlyBrackets ? y({ row: D, col: A }) : D[A.key] }),
|
|
11348
|
+
!ba(D[A.key]) && A.isBeCopiedValue && /* @__PURE__ */ M(
|
|
11357
11349
|
Be,
|
|
11358
11350
|
{
|
|
11359
11351
|
className: E({
|
|
@@ -11362,31 +11354,31 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11362
11354
|
}),
|
|
11363
11355
|
name: P ? pe.Check : pe.Copy,
|
|
11364
11356
|
onClick: () => {
|
|
11365
|
-
const L =
|
|
11357
|
+
const L = D[A.key];
|
|
11366
11358
|
if (!L) return null;
|
|
11367
11359
|
v({
|
|
11368
11360
|
text: L,
|
|
11369
11361
|
rowIndex: x,
|
|
11370
|
-
colIndex:
|
|
11362
|
+
colIndex: Y
|
|
11371
11363
|
});
|
|
11372
11364
|
}
|
|
11373
11365
|
}
|
|
11374
11366
|
)
|
|
11375
11367
|
] })
|
|
11376
11368
|
},
|
|
11377
|
-
`${x}:${
|
|
11369
|
+
`${x}:${Y}`
|
|
11378
11370
|
);
|
|
11379
11371
|
}) }, x) : null) })
|
|
11380
|
-
] }) : b(),
|
|
11372
|
+
] }) : b(), T = () => t && Array.isArray(t) && t.length > 0 ? /* @__PURE__ */ M(
|
|
11381
11373
|
"div",
|
|
11382
11374
|
{
|
|
11383
11375
|
className: E({
|
|
11384
11376
|
[rt.spStringsGroup]: !0
|
|
11385
11377
|
}),
|
|
11386
|
-
children: t.map((
|
|
11387
|
-
if (ba(
|
|
11378
|
+
children: t.map((D, x) => D ? /* @__PURE__ */ M("div", { children: i.map((A, Y) => {
|
|
11379
|
+
if (ba(D[A.key]))
|
|
11388
11380
|
return null;
|
|
11389
|
-
const P = (d == null ? void 0 : d.rowIndex) === x && (d == null ? void 0 : d.colIndex) ===
|
|
11381
|
+
const P = (d == null ? void 0 : d.rowIndex) === x && (d == null ? void 0 : d.colIndex) === Y;
|
|
11390
11382
|
return /* @__PURE__ */ ue(
|
|
11391
11383
|
"div",
|
|
11392
11384
|
{
|
|
@@ -11411,7 +11403,7 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11411
11403
|
[rt.spStringsGroup__groupItemContent]: !0
|
|
11412
11404
|
}),
|
|
11413
11405
|
children: [
|
|
11414
|
-
/* @__PURE__ */ M("span", { children: A.isColorContentsCurlyBrackets ? y({ row:
|
|
11406
|
+
/* @__PURE__ */ M("span", { children: A.isColorContentsCurlyBrackets ? y({ row: D, col: A }) : D[A.key] }),
|
|
11415
11407
|
A.isBeCopiedValue && /* @__PURE__ */ M(
|
|
11416
11408
|
Be,
|
|
11417
11409
|
{
|
|
@@ -11421,12 +11413,12 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11421
11413
|
}),
|
|
11422
11414
|
name: P ? pe.Check : pe.Copy,
|
|
11423
11415
|
onClick: () => {
|
|
11424
|
-
const L =
|
|
11416
|
+
const L = D[A.key];
|
|
11425
11417
|
if (!L) return null;
|
|
11426
11418
|
v({
|
|
11427
11419
|
text: L,
|
|
11428
11420
|
rowIndex: x,
|
|
11429
|
-
colIndex:
|
|
11421
|
+
colIndex: Y
|
|
11430
11422
|
});
|
|
11431
11423
|
}
|
|
11432
11424
|
}
|
|
@@ -11436,12 +11428,12 @@ const Tv = (n) => `not ${n}`, Pv = (n, a) => {
|
|
|
11436
11428
|
)
|
|
11437
11429
|
]
|
|
11438
11430
|
},
|
|
11439
|
-
|
|
11431
|
+
Y
|
|
11440
11432
|
);
|
|
11441
11433
|
}) }, x) : null)
|
|
11442
11434
|
}
|
|
11443
11435
|
) : b();
|
|
11444
|
-
return e ? r ?
|
|
11436
|
+
return e ? r ? C() : T() : C();
|
|
11445
11437
|
}, E_ = "_spTabs_1rc64_43", N_ = "_spTabs_separated_1rc64_48", T_ = "_spTabs__tabElement_1rc64_48", P_ = "_spTabs__tabElement_active_1rc64_85", I_ = "_spTabs__tooltip_1rc64_92", jt = {
|
|
11446
11438
|
spTabs: E_,
|
|
11447
11439
|
spTabs_separated: N_,
|
|
@@ -13230,7 +13222,7 @@ var $a = /* @__PURE__ */ hi(function(n, a) {
|
|
|
13230
13222
|
return {
|
|
13231
13223
|
open: o
|
|
13232
13224
|
};
|
|
13233
|
-
}, [o]), /* @__PURE__ */
|
|
13225
|
+
}, [o]), /* @__PURE__ */ N.createElement(Ls, null, t(Ee(Ee({}, i), {}, {
|
|
13234
13226
|
open: o
|
|
13235
13227
|
})));
|
|
13236
13228
|
});
|
|
@@ -13268,7 +13260,7 @@ $a.propTypes = {
|
|
|
13268
13260
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
13269
13261
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
13270
13262
|
*/
|
|
13271
|
-
children:
|
|
13263
|
+
children: se.func,
|
|
13272
13264
|
/**
|
|
13273
13265
|
* Set accepted file types.
|
|
13274
13266
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -13276,90 +13268,90 @@ $a.propTypes = {
|
|
|
13276
13268
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
13277
13269
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
13278
13270
|
*/
|
|
13279
|
-
accept:
|
|
13271
|
+
accept: se.objectOf(se.arrayOf(se.string)),
|
|
13280
13272
|
/**
|
|
13281
13273
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
13282
13274
|
*/
|
|
13283
|
-
multiple:
|
|
13275
|
+
multiple: se.bool,
|
|
13284
13276
|
/**
|
|
13285
13277
|
* If false, allow dropped items to take over the current browser window
|
|
13286
13278
|
*/
|
|
13287
|
-
preventDropOnDocument:
|
|
13279
|
+
preventDropOnDocument: se.bool,
|
|
13288
13280
|
/**
|
|
13289
13281
|
* If true, disables click to open the native file selection dialog
|
|
13290
13282
|
*/
|
|
13291
|
-
noClick:
|
|
13283
|
+
noClick: se.bool,
|
|
13292
13284
|
/**
|
|
13293
13285
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
13294
13286
|
* Note that it also stops tracking the focus state.
|
|
13295
13287
|
*/
|
|
13296
|
-
noKeyboard:
|
|
13288
|
+
noKeyboard: se.bool,
|
|
13297
13289
|
/**
|
|
13298
13290
|
* If true, disables drag 'n' drop
|
|
13299
13291
|
*/
|
|
13300
|
-
noDrag:
|
|
13292
|
+
noDrag: se.bool,
|
|
13301
13293
|
/**
|
|
13302
13294
|
* If true, stops drag event propagation to parents
|
|
13303
13295
|
*/
|
|
13304
|
-
noDragEventsBubbling:
|
|
13296
|
+
noDragEventsBubbling: se.bool,
|
|
13305
13297
|
/**
|
|
13306
13298
|
* Minimum file size (in bytes)
|
|
13307
13299
|
*/
|
|
13308
|
-
minSize:
|
|
13300
|
+
minSize: se.number,
|
|
13309
13301
|
/**
|
|
13310
13302
|
* Maximum file size (in bytes)
|
|
13311
13303
|
*/
|
|
13312
|
-
maxSize:
|
|
13304
|
+
maxSize: se.number,
|
|
13313
13305
|
/**
|
|
13314
13306
|
* Maximum accepted number of files
|
|
13315
13307
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
13316
13308
|
*/
|
|
13317
|
-
maxFiles:
|
|
13309
|
+
maxFiles: se.number,
|
|
13318
13310
|
/**
|
|
13319
13311
|
* Enable/disable the dropzone
|
|
13320
13312
|
*/
|
|
13321
|
-
disabled:
|
|
13313
|
+
disabled: se.bool,
|
|
13322
13314
|
/**
|
|
13323
13315
|
* Use this to provide a custom file aggregator
|
|
13324
13316
|
*
|
|
13325
13317
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
13326
13318
|
*/
|
|
13327
|
-
getFilesFromEvent:
|
|
13319
|
+
getFilesFromEvent: se.func,
|
|
13328
13320
|
/**
|
|
13329
13321
|
* Cb for when closing the file dialog with no selection
|
|
13330
13322
|
*/
|
|
13331
|
-
onFileDialogCancel:
|
|
13323
|
+
onFileDialogCancel: se.func,
|
|
13332
13324
|
/**
|
|
13333
13325
|
* Cb for when opening the file dialog
|
|
13334
13326
|
*/
|
|
13335
|
-
onFileDialogOpen:
|
|
13327
|
+
onFileDialogOpen: se.func,
|
|
13336
13328
|
/**
|
|
13337
13329
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
13338
13330
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
13339
13331
|
*/
|
|
13340
|
-
useFsAccessApi:
|
|
13332
|
+
useFsAccessApi: se.bool,
|
|
13341
13333
|
/**
|
|
13342
13334
|
* Set to true to focus the root element on render
|
|
13343
13335
|
*/
|
|
13344
|
-
autoFocus:
|
|
13336
|
+
autoFocus: se.bool,
|
|
13345
13337
|
/**
|
|
13346
13338
|
* Cb for when the `dragenter` event occurs.
|
|
13347
13339
|
*
|
|
13348
13340
|
* @param {DragEvent} event
|
|
13349
13341
|
*/
|
|
13350
|
-
onDragEnter:
|
|
13342
|
+
onDragEnter: se.func,
|
|
13351
13343
|
/**
|
|
13352
13344
|
* Cb for when the `dragleave` event occurs
|
|
13353
13345
|
*
|
|
13354
13346
|
* @param {DragEvent} event
|
|
13355
13347
|
*/
|
|
13356
|
-
onDragLeave:
|
|
13348
|
+
onDragLeave: se.func,
|
|
13357
13349
|
/**
|
|
13358
13350
|
* Cb for when the `dragover` event occurs
|
|
13359
13351
|
*
|
|
13360
13352
|
* @param {DragEvent} event
|
|
13361
13353
|
*/
|
|
13362
|
-
onDragOver:
|
|
13354
|
+
onDragOver: se.func,
|
|
13363
13355
|
/**
|
|
13364
13356
|
* Cb for when the `drop` event occurs.
|
|
13365
13357
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -13390,7 +13382,7 @@ $a.propTypes = {
|
|
|
13390
13382
|
* @param {FileRejection[]} fileRejections
|
|
13391
13383
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
13392
13384
|
*/
|
|
13393
|
-
onDrop:
|
|
13385
|
+
onDrop: se.func,
|
|
13394
13386
|
/**
|
|
13395
13387
|
* Cb for when the `drop` event occurs.
|
|
13396
13388
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -13398,7 +13390,7 @@ $a.propTypes = {
|
|
|
13398
13390
|
* @param {File[]} files
|
|
13399
13391
|
* @param {(DragEvent|Event)} event
|
|
13400
13392
|
*/
|
|
13401
|
-
onDropAccepted:
|
|
13393
|
+
onDropAccepted: se.func,
|
|
13402
13394
|
/**
|
|
13403
13395
|
* Cb for when the `drop` event occurs.
|
|
13404
13396
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -13406,19 +13398,19 @@ $a.propTypes = {
|
|
|
13406
13398
|
* @param {FileRejection[]} fileRejections
|
|
13407
13399
|
* @param {(DragEvent|Event)} event
|
|
13408
13400
|
*/
|
|
13409
|
-
onDropRejected:
|
|
13401
|
+
onDropRejected: se.func,
|
|
13410
13402
|
/**
|
|
13411
13403
|
* Cb for when there's some error from any of the promises.
|
|
13412
13404
|
*
|
|
13413
13405
|
* @param {Error} error
|
|
13414
13406
|
*/
|
|
13415
|
-
onError:
|
|
13407
|
+
onError: se.func,
|
|
13416
13408
|
/**
|
|
13417
13409
|
* Custom validation function. It must return null if there's no errors.
|
|
13418
13410
|
* @param {File} file
|
|
13419
13411
|
* @returns {FileError|FileError[]|null}
|
|
13420
13412
|
*/
|
|
13421
|
-
validator:
|
|
13413
|
+
validator: se.func
|
|
13422
13414
|
};
|
|
13423
13415
|
var Sa = {
|
|
13424
13416
|
isFocused: !1,
|
|
@@ -13430,7 +13422,7 @@ var Sa = {
|
|
|
13430
13422
|
fileRejections: []
|
|
13431
13423
|
};
|
|
13432
13424
|
function Ms() {
|
|
13433
|
-
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,
|
|
13425
|
+
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, G = tn(function() {
|
|
13434
13426
|
return cg(t);
|
|
13435
13427
|
}, [t]), ce = tn(function() {
|
|
13436
13428
|
return lg(t);
|
|
@@ -13438,11 +13430,11 @@ function Ms() {
|
|
|
13438
13430
|
return typeof y == "function" ? y : fi;
|
|
13439
13431
|
}, [y]), K = tn(function() {
|
|
13440
13432
|
return typeof b == "function" ? b : fi;
|
|
13441
|
-
}, [b]), te = Fe(null), W = Fe(null), z = Os(Dg, Sa), $ = ua(z, 2), X = $[0], h = $[1], f = X.isFocused, g = X.isFileDialogActive, _ = Fe(typeof window < "u" && window.isSecureContext &&
|
|
13433
|
+
}, [b]), te = Fe(null), W = Fe(null), z = Os(Dg, Sa), $ = ua(z, 2), X = $[0], h = $[1], f = X.isFocused, g = X.isFileDialogActive, _ = Fe(typeof window < "u" && window.isSecureContext && C && sg()), c = function() {
|
|
13442
13434
|
!_.current && g && setTimeout(function() {
|
|
13443
13435
|
if (W.current) {
|
|
13444
|
-
var
|
|
13445
|
-
|
|
13436
|
+
var ie = W.current.files;
|
|
13437
|
+
ie.length || (h({
|
|
13446
13438
|
type: "closeDialog"
|
|
13447
13439
|
}), K());
|
|
13448
13440
|
}
|
|
@@ -13453,24 +13445,24 @@ function Ms() {
|
|
|
13453
13445
|
window.removeEventListener("focus", c, !1);
|
|
13454
13446
|
};
|
|
13455
13447
|
}, [W, g, K, _]);
|
|
13456
|
-
var k = Fe([]), B = function(
|
|
13457
|
-
te.current && te.current.contains(
|
|
13448
|
+
var k = Fe([]), B = function(ie) {
|
|
13449
|
+
te.current && te.current.contains(ie.target) || (ie.preventDefault(), k.current = []);
|
|
13458
13450
|
};
|
|
13459
13451
|
Re(function() {
|
|
13460
13452
|
return S && (document.addEventListener("dragover", ui, !1), document.addEventListener("drop", B, !1)), function() {
|
|
13461
13453
|
S && (document.removeEventListener("dragover", ui), document.removeEventListener("drop", B));
|
|
13462
13454
|
};
|
|
13463
13455
|
}, [te, S]), Re(function() {
|
|
13464
|
-
return !e &&
|
|
13456
|
+
return !e && T && te.current && te.current.focus(), function() {
|
|
13465
13457
|
};
|
|
13466
|
-
}, [te,
|
|
13458
|
+
}, [te, T, e]);
|
|
13467
13459
|
var V = Ge(function(Z) {
|
|
13468
13460
|
P ? P(Z) : console.error(Z);
|
|
13469
13461
|
}, [P]), O = Ge(function(Z) {
|
|
13470
|
-
Z.preventDefault(), Z.persist(), _e(Z), k.current = [].concat(vg(k.current), [Z.target]), Qn(Z) && Promise.resolve(r(Z)).then(function(
|
|
13471
|
-
if (!(vr(Z) && !
|
|
13472
|
-
var Me =
|
|
13473
|
-
files:
|
|
13462
|
+
Z.preventDefault(), Z.persist(), _e(Z), k.current = [].concat(vg(k.current), [Z.target]), Qn(Z) && Promise.resolve(r(Z)).then(function(ie) {
|
|
13463
|
+
if (!(vr(Z) && !Y)) {
|
|
13464
|
+
var Me = ie.length, Pe = Me > 0 && rg({
|
|
13465
|
+
files: ie,
|
|
13474
13466
|
accept: G,
|
|
13475
13467
|
minSize: i,
|
|
13476
13468
|
maxSize: o,
|
|
@@ -13485,30 +13477,30 @@ function Ms() {
|
|
|
13485
13477
|
type: "setDraggedFiles"
|
|
13486
13478
|
}), p && p(Z);
|
|
13487
13479
|
}
|
|
13488
|
-
}).catch(function(
|
|
13489
|
-
return V(
|
|
13480
|
+
}).catch(function(ie) {
|
|
13481
|
+
return V(ie);
|
|
13490
13482
|
});
|
|
13491
|
-
}, [r, p, V,
|
|
13483
|
+
}, [r, p, V, Y, G, i, o, s, l, L]), H = Ge(function(Z) {
|
|
13492
13484
|
Z.preventDefault(), Z.persist(), _e(Z);
|
|
13493
|
-
var
|
|
13494
|
-
if (
|
|
13485
|
+
var ie = Qn(Z);
|
|
13486
|
+
if (ie && Z.dataTransfer)
|
|
13495
13487
|
try {
|
|
13496
13488
|
Z.dataTransfer.dropEffect = "copy";
|
|
13497
13489
|
} catch {
|
|
13498
13490
|
}
|
|
13499
|
-
return
|
|
13500
|
-
}, [d,
|
|
13491
|
+
return ie && d && d(Z), !1;
|
|
13492
|
+
}, [d, Y]), q = Ge(function(Z) {
|
|
13501
13493
|
Z.preventDefault(), Z.persist(), _e(Z);
|
|
13502
|
-
var
|
|
13494
|
+
var ie = k.current.filter(function(Pe) {
|
|
13503
13495
|
return te.current && te.current.contains(Pe);
|
|
13504
|
-
}), Me =
|
|
13505
|
-
Me !== -1 &&
|
|
13496
|
+
}), Me = ie.indexOf(Z.target);
|
|
13497
|
+
Me !== -1 && ie.splice(Me, 1), k.current = ie, !(ie.length > 0) && (h({
|
|
13506
13498
|
type: "setDraggedFiles",
|
|
13507
13499
|
isDragActive: !1,
|
|
13508
13500
|
isDragAccept: !1,
|
|
13509
13501
|
isDragReject: !1
|
|
13510
13502
|
}), Qn(Z) && u && u(Z));
|
|
13511
|
-
}, [te, u,
|
|
13503
|
+
}, [te, u, Y]), j = Ge(function(Z, ie) {
|
|
13512
13504
|
var Me = [], Pe = [];
|
|
13513
13505
|
Z.forEach(function(Je) {
|
|
13514
13506
|
var gn = ys(Je, G), 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;
|
|
@@ -13533,16 +13525,16 @@ function Ms() {
|
|
|
13533
13525
|
fileRejections: Pe,
|
|
13534
13526
|
isDragReject: Pe.length > 0,
|
|
13535
13527
|
type: "setFiles"
|
|
13536
|
-
}), m && m(Me, Pe,
|
|
13528
|
+
}), m && m(Me, Pe, ie), Pe.length > 0 && w && w(Pe, ie), Me.length > 0 && v && v(Me, ie);
|
|
13537
13529
|
}, [h, s, G, i, o, l, m, v, w, L]), U = Ge(function(Z) {
|
|
13538
|
-
Z.preventDefault(), Z.persist(), _e(Z), k.current = [], Qn(Z) && Promise.resolve(r(Z)).then(function(
|
|
13539
|
-
vr(Z) && !
|
|
13540
|
-
}).catch(function(
|
|
13541
|
-
return V(
|
|
13530
|
+
Z.preventDefault(), Z.persist(), _e(Z), k.current = [], Qn(Z) && Promise.resolve(r(Z)).then(function(ie) {
|
|
13531
|
+
vr(Z) && !Y || j(ie, Z);
|
|
13532
|
+
}).catch(function(ie) {
|
|
13533
|
+
return V(ie);
|
|
13542
13534
|
}), h({
|
|
13543
13535
|
type: "reset"
|
|
13544
13536
|
});
|
|
13545
|
-
}, [r,
|
|
13537
|
+
}, [r, j, V, Y]), F = Ge(function() {
|
|
13546
13538
|
if (_.current) {
|
|
13547
13539
|
h({
|
|
13548
13540
|
type: "openDialog"
|
|
@@ -13551,23 +13543,23 @@ function Ms() {
|
|
|
13551
13543
|
multiple: s,
|
|
13552
13544
|
types: ce
|
|
13553
13545
|
};
|
|
13554
|
-
window.showOpenFilePicker(Z).then(function(
|
|
13555
|
-
return r(
|
|
13556
|
-
}).then(function(
|
|
13557
|
-
|
|
13546
|
+
window.showOpenFilePicker(Z).then(function(ie) {
|
|
13547
|
+
return r(ie);
|
|
13548
|
+
}).then(function(ie) {
|
|
13549
|
+
j(ie, null), h({
|
|
13558
13550
|
type: "closeDialog"
|
|
13559
13551
|
});
|
|
13560
|
-
}).catch(function(
|
|
13561
|
-
pg(
|
|
13552
|
+
}).catch(function(ie) {
|
|
13553
|
+
pg(ie) ? (K(ie), h({
|
|
13562
13554
|
type: "closeDialog"
|
|
13563
|
-
})) : ug(
|
|
13555
|
+
})) : ug(ie) ? (_.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(ie);
|
|
13564
13556
|
});
|
|
13565
13557
|
return;
|
|
13566
13558
|
}
|
|
13567
13559
|
W.current && (h({
|
|
13568
13560
|
type: "openDialog"
|
|
13569
13561
|
}), ne(), W.current.value = null, W.current.click());
|
|
13570
|
-
}, [h, ne, K,
|
|
13562
|
+
}, [h, ne, K, C, j, V, ce, s]), Q = Ge(function(Z) {
|
|
13571
13563
|
!te.current || !te.current.isEqualNode(Z.target) || (Z.key === " " || Z.key === "Enter" || Z.keyCode === 32 || Z.keyCode === 13) && (Z.preventDefault(), F());
|
|
13572
13564
|
}, [te, F]), I = Ge(function() {
|
|
13573
13565
|
h({
|
|
@@ -13577,24 +13569,24 @@ function Ms() {
|
|
|
13577
13569
|
h({
|
|
13578
13570
|
type: "blur"
|
|
13579
13571
|
});
|
|
13580
|
-
}, []),
|
|
13581
|
-
|
|
13582
|
-
}, [
|
|
13583
|
-
return e ? null :
|
|
13584
|
-
}, de = function(
|
|
13585
|
-
return x ? null : ae(
|
|
13586
|
-
}, fe = function(
|
|
13587
|
-
return A ? null : ae(
|
|
13588
|
-
}, _e = function(
|
|
13589
|
-
|
|
13572
|
+
}, []), le = Ge(function() {
|
|
13573
|
+
D || (ig() ? setTimeout(F, 0) : F());
|
|
13574
|
+
}, [D, F]), ae = function(ie) {
|
|
13575
|
+
return e ? null : ie;
|
|
13576
|
+
}, de = function(ie) {
|
|
13577
|
+
return x ? null : ae(ie);
|
|
13578
|
+
}, fe = function(ie) {
|
|
13579
|
+
return A ? null : ae(ie);
|
|
13580
|
+
}, _e = function(ie) {
|
|
13581
|
+
Y && ie.stopPropagation();
|
|
13590
13582
|
}, Ae = tn(function() {
|
|
13591
13583
|
return function() {
|
|
13592
|
-
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
13584
|
+
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, ie = Z.refKey, Me = ie === void 0 ? "ref" : ie, Pe = Z.role, Je = Z.onKeyDown, gn = Z.onFocus, en = Z.onBlur, Ir = Z.onClick, Or = Z.onDragEnter, Rr = Z.onDragOver, Fn = Z.onDragLeave, Lr = Z.onDrop, Fr = _r(Z, mg);
|
|
13593
13585
|
return Ee(Ee(Ca({
|
|
13594
13586
|
onKeyDown: de(mt(Je, Q)),
|
|
13595
13587
|
onFocus: de(mt(gn, I)),
|
|
13596
13588
|
onBlur: de(mt(en, J)),
|
|
13597
|
-
onClick: ae(mt(Ir,
|
|
13589
|
+
onClick: ae(mt(Ir, le)),
|
|
13598
13590
|
onDragEnter: fe(mt(Or, O)),
|
|
13599
13591
|
onDragOver: fe(mt(Rr, H)),
|
|
13600
13592
|
onDragLeave: fe(mt(Fn, q)),
|
|
@@ -13604,11 +13596,11 @@ function Ms() {
|
|
|
13604
13596
|
tabIndex: 0
|
|
13605
13597
|
} : {}), Fr);
|
|
13606
13598
|
};
|
|
13607
|
-
}, [te, Q, I, J,
|
|
13599
|
+
}, [te, Q, I, J, le, O, H, q, U, x, A, e]), Le = Ge(function(Z) {
|
|
13608
13600
|
Z.stopPropagation();
|
|
13609
13601
|
}, []), Ye = tn(function() {
|
|
13610
13602
|
return function() {
|
|
13611
|
-
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
13603
|
+
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, hg), en = Ca({
|
|
13612
13604
|
accept: G,
|
|
13613
13605
|
multiple: s,
|
|
13614
13606
|
type: "file",
|
|
@@ -13756,12 +13748,12 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13756
13748
|
b([..._, ...w]), r(c, e);
|
|
13757
13749
|
},
|
|
13758
13750
|
[w, l, s, e, r]
|
|
13759
|
-
), { getRootProps:
|
|
13751
|
+
), { getRootProps: C, getInputProps: T } = Cg({
|
|
13760
13752
|
accept: o,
|
|
13761
13753
|
onDrop: y,
|
|
13762
13754
|
multiple: s,
|
|
13763
13755
|
disabled: i
|
|
13764
|
-
}), S = w ? (w == null ? void 0 : w.length) > 0 : void 0,
|
|
13756
|
+
}), S = w ? (w == null ? void 0 : w.length) > 0 : void 0, D = [...l.map((f) => ({ file: f, errors: null })), ...w], x = (D == null ? void 0 : D.length) > 0 || (w == null ? void 0 : w.length) > 0, A = t === "input", Y = t === "dropzone", P = E({
|
|
13765
13757
|
[ge.spUploadFiles]: !0,
|
|
13766
13758
|
[ge[`spUploadFiles--variant-${t}`]]: t,
|
|
13767
13759
|
[ge.spUploadFiles_error]: S && !s && v && v.length > 0,
|
|
@@ -13807,12 +13799,12 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13807
13799
|
return /* @__PURE__ */ M(
|
|
13808
13800
|
kn,
|
|
13809
13801
|
{
|
|
13810
|
-
text:
|
|
13802
|
+
text: D[0].file.name,
|
|
13811
13803
|
classNameTooltipRoot: E(ge.spUploadFiles__fileNameContainer),
|
|
13812
13804
|
classNameRoot: E(ge.spUploadFiles__fileName)
|
|
13813
13805
|
}
|
|
13814
13806
|
);
|
|
13815
|
-
}, z = () => /* @__PURE__ */ M("ul", { className: G, children:
|
|
13807
|
+
}, z = () => /* @__PURE__ */ M("ul", { className: G, children: D.map(({ file: f, errors: g }, _) => {
|
|
13816
13808
|
const c = g ? (g == null ? void 0 : g.length) > 0 : void 0, k = () => g ? g == null ? void 0 : g.map(rw).join(", ") : "";
|
|
13817
13809
|
return /* @__PURE__ */ ue(
|
|
13818
13810
|
"li",
|
|
@@ -13898,12 +13890,12 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13898
13890
|
return /* @__PURE__ */ M(
|
|
13899
13891
|
Sh,
|
|
13900
13892
|
{
|
|
13901
|
-
getRootProps:
|
|
13902
|
-
getInputProps:
|
|
13893
|
+
getRootProps: C,
|
|
13894
|
+
getInputProps: T,
|
|
13903
13895
|
disabled: i,
|
|
13904
13896
|
name: e,
|
|
13905
13897
|
children: /* @__PURE__ */ ue("div", { className: P, children: [
|
|
13906
|
-
|
|
13898
|
+
Y && /* @__PURE__ */ M(
|
|
13907
13899
|
wr,
|
|
13908
13900
|
{
|
|
13909
13901
|
hover: !0,
|
|
@@ -13950,9 +13942,9 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13950
13942
|
...a && { [a]: !0 }
|
|
13951
13943
|
}), y = E({
|
|
13952
13944
|
[Mt.viewImageModal__layer]: !0
|
|
13953
|
-
}),
|
|
13945
|
+
}), C = E({
|
|
13954
13946
|
[Mt.viewImageModal__closeButton]: !0
|
|
13955
|
-
}),
|
|
13947
|
+
}), T = E({
|
|
13956
13948
|
[Mt.viewImageModal__spinner]: !0
|
|
13957
13949
|
}), S = E(Mt.viewImageModal__img, {
|
|
13958
13950
|
[Mt.viewImageModal__img_loading]: p,
|
|
@@ -13960,7 +13952,7 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13960
13952
|
...t && { [t]: !0 }
|
|
13961
13953
|
});
|
|
13962
13954
|
return /* @__PURE__ */ ue(bi, { classNameRoot: y, children: [
|
|
13963
|
-
s && p && /* @__PURE__ */ M(Ea, { classNameRoot:
|
|
13955
|
+
s && p && /* @__PURE__ */ M(Ea, { classNameRoot: T, size: "xl" }),
|
|
13964
13956
|
/* @__PURE__ */ ue("div", { className: b, children: [
|
|
13965
13957
|
/* @__PURE__ */ M(
|
|
13966
13958
|
"img",
|
|
@@ -13984,7 +13976,7 @@ const Cg = (n) => Ms(n), Sg = "_spUploadFiles_qdbwu_43", Mg = "_spUploadFiles_er
|
|
|
13984
13976
|
/* @__PURE__ */ M(
|
|
13985
13977
|
tr,
|
|
13986
13978
|
{
|
|
13987
|
-
classNameRoot:
|
|
13979
|
+
classNameRoot: C,
|
|
13988
13980
|
onClick: l,
|
|
13989
13981
|
variant: "link",
|
|
13990
13982
|
isOnlyIcon: !0,
|