test-stpr-ui-kit 0.5.21 → 0.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as W, jsx as c, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import Ve, { useState as oe, useEffect as re, useRef as ve, useCallback as he, useLayoutEffect as Xo, createContext as xo, useContext as Zo, useMemo as De, useReducer as Qo, forwardRef as Jo, useImperativeHandle as en, Fragment as tn } from "react";
|
|
4
4
|
import on from "react-dom";
|
|
@@ -52,13 +52,13 @@ const de = (e) => {
|
|
|
52
52
|
...n,
|
|
53
53
|
style: a
|
|
54
54
|
});
|
|
55
|
-
}, In = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", jn = "_spAccordion_noPadding_14avc_63", Rn = "_spAccordion_open_14avc_66",
|
|
55
|
+
}, In = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", jn = "_spAccordion_noPadding_14avc_63", Rn = "_spAccordion_open_14avc_66", An = "_spAccordion__header_14avc_69", Fn = "_spAccordion_noOpen_14avc_88", Bn = "_spAccordion__name_14avc_99", Dn = "_spAccordion__name_hiddenExpand_14avc_110", Mn = "_spAccordion__icon_14avc_125", Pn = "_spAccordion__icon_hidden_14avc_131", On = "_spAccordion__icon_open_14avc_134", Wn = "_spAccordion__childrenWrapper_14avc_141", zn = "_spAccordion__childrenWrapper_open_14avc_150", Un = "_spAccordion__content_14avc_153", qn = "_spAccordion__content_open_14avc_159", ce = {
|
|
56
56
|
spAccordion: In,
|
|
57
57
|
spAccordion_noBorder: Ln,
|
|
58
58
|
spAccordion_noPadding: jn,
|
|
59
59
|
spAccordion_open: Rn,
|
|
60
|
-
spAccordion__header:
|
|
61
|
-
spAccordion_noOpen:
|
|
60
|
+
spAccordion__header: An,
|
|
61
|
+
spAccordion_noOpen: Fn,
|
|
62
62
|
spAccordion__name: Bn,
|
|
63
63
|
spAccordion__name_hiddenExpand: Dn,
|
|
64
64
|
"spAccordion__name--level-1": "_spAccordion__name--level-1_14avc_114",
|
|
@@ -85,7 +85,7 @@ const de = (e) => {
|
|
|
85
85
|
classNameTitle: u,
|
|
86
86
|
classNameIcon: g,
|
|
87
87
|
classNameChildrenWrapper: h
|
|
88
|
-
} = e, [x, b] = oe(n),
|
|
88
|
+
} = e, [x, b] = oe(n), I = () => {
|
|
89
89
|
a || (i == null || i(!x), b(!x));
|
|
90
90
|
}, j = _({
|
|
91
91
|
[ce.spAccordion]: !0,
|
|
@@ -115,10 +115,10 @@ const de = (e) => {
|
|
|
115
115
|
[ce.spAccordion__content]: !0,
|
|
116
116
|
[ce.spAccordion__content_open]: x
|
|
117
117
|
});
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */ c("div", { className: R, children: /* @__PURE__ */ c("span", { onClick:
|
|
121
|
-
/* @__PURE__ */ c(de, { onClick:
|
|
118
|
+
return /* @__PURE__ */ W("div", { className: j, children: [
|
|
119
|
+
/* @__PURE__ */ W("div", { className: z, children: [
|
|
120
|
+
/* @__PURE__ */ c("div", { className: R, children: /* @__PURE__ */ c("span", { onClick: I, children: t }) }),
|
|
121
|
+
/* @__PURE__ */ c(de, { onClick: I, className: w, name: D.ChevronDown })
|
|
122
122
|
] }),
|
|
123
123
|
/* @__PURE__ */ c("div", { className: m, children: /* @__PURE__ */ c("div", { className: N, children: o }) })
|
|
124
124
|
] });
|
|
@@ -172,28 +172,28 @@ const de = (e) => {
|
|
|
172
172
|
loading: h = !1,
|
|
173
173
|
isFullWidth: x = !1,
|
|
174
174
|
isOnlyIcon: b = !1,
|
|
175
|
-
noPadding:
|
|
175
|
+
noPadding: I = !1,
|
|
176
176
|
classNameRoot: j,
|
|
177
177
|
classNameTextRoot: z,
|
|
178
178
|
classNameIconContainerRoot: R
|
|
179
|
-
} = e, w = (
|
|
180
|
-
p || a == null || a(
|
|
179
|
+
} = e, w = (O) => {
|
|
180
|
+
p || a == null || a(O);
|
|
181
181
|
}, m = () => {
|
|
182
|
-
const
|
|
182
|
+
const O = _({
|
|
183
183
|
[Ce.spButton__text]: !0,
|
|
184
184
|
...z && { [z]: !0 }
|
|
185
|
-
}),
|
|
185
|
+
}), q = _({
|
|
186
186
|
[Ce.spButton__iconContainer]: !0,
|
|
187
187
|
...R && { [R]: !0 }
|
|
188
|
-
}),
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
d === "start" &&
|
|
191
|
-
!b && g && /* @__PURE__ */ c("div", { className:
|
|
192
|
-
d === "end" &&
|
|
188
|
+
}), G = () => h ? /* @__PURE__ */ c("div", { className: q, children: /* @__PURE__ */ c(Dt, { size: "md", classNameRoot: Ce.spButton__spinner }) }) : i ? /* @__PURE__ */ c("div", { className: q, children: /* @__PURE__ */ c(de, { name: i, rotate: s }) }) : r ? /* @__PURE__ */ c("div", { className: q, children: r }) : null;
|
|
189
|
+
return /* @__PURE__ */ W($e, { children: [
|
|
190
|
+
d === "start" && G(),
|
|
191
|
+
!b && g && /* @__PURE__ */ c("div", { className: O, children: g }),
|
|
192
|
+
d === "end" && G()
|
|
193
193
|
] });
|
|
194
194
|
}, N = _({
|
|
195
195
|
[Ce.spButton]: !0,
|
|
196
|
-
[Ce.spButton_noPadding]:
|
|
196
|
+
[Ce.spButton_noPadding]: I,
|
|
197
197
|
[Ce.spButton_onlyIcon]: b,
|
|
198
198
|
[Ce[`spButton_${o}`]]: o,
|
|
199
199
|
[Ce[`spButton_${t}`]]: t,
|
|
@@ -236,24 +236,26 @@ const de = (e) => {
|
|
|
236
236
|
disabled: l,
|
|
237
237
|
onClose: d,
|
|
238
238
|
submit: u,
|
|
239
|
-
loading: g
|
|
240
|
-
|
|
239
|
+
loading: g,
|
|
240
|
+
cancelBtnVariant: h = "secondary",
|
|
241
|
+
submitBtnVariant: x = "primary"
|
|
242
|
+
} = e, b = _({
|
|
241
243
|
[ze.spApplyButtons]: !0,
|
|
242
244
|
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
243
245
|
[ze[`spApplyButtons_align-${o}`]]: o
|
|
244
|
-
}),
|
|
246
|
+
}), I = _({
|
|
245
247
|
[ze.spApplyButtons__submit]: !0
|
|
246
|
-
}),
|
|
248
|
+
}), j = _({
|
|
247
249
|
[ze.spApplyButtons__cancel]: !0
|
|
248
250
|
});
|
|
249
|
-
return /* @__PURE__ */
|
|
251
|
+
return /* @__PURE__ */ W("div", { className: b, children: [
|
|
250
252
|
d && /* @__PURE__ */ c(
|
|
251
253
|
tt,
|
|
252
254
|
{
|
|
253
255
|
type: "button",
|
|
254
|
-
variant:
|
|
256
|
+
variant: h,
|
|
255
257
|
iconName: a,
|
|
256
|
-
classNameRoot:
|
|
258
|
+
classNameRoot: j,
|
|
257
259
|
disabled: r,
|
|
258
260
|
onClick: d,
|
|
259
261
|
children: n
|
|
@@ -263,9 +265,9 @@ const de = (e) => {
|
|
|
263
265
|
tt,
|
|
264
266
|
{
|
|
265
267
|
type: "submit",
|
|
266
|
-
variant:
|
|
268
|
+
variant: x,
|
|
267
269
|
iconName: i,
|
|
268
|
-
classNameRoot:
|
|
270
|
+
classNameRoot: I,
|
|
269
271
|
form: p || void 0,
|
|
270
272
|
disabled: l,
|
|
271
273
|
onClick: u,
|
|
@@ -336,7 +338,7 @@ const de = (e) => {
|
|
|
336
338
|
"spText_type-description": "_spText_type-description_1todx_97",
|
|
337
339
|
"spText_type-link": "_spText_type-link_1todx_105",
|
|
338
340
|
spText_cursorPointer: ma
|
|
339
|
-
},
|
|
341
|
+
}, Ee = Ve.forwardRef((e, t) => {
|
|
340
342
|
const {
|
|
341
343
|
type: o,
|
|
342
344
|
children: n,
|
|
@@ -367,7 +369,7 @@ const de = (e) => {
|
|
|
367
369
|
}
|
|
368
370
|
);
|
|
369
371
|
});
|
|
370
|
-
|
|
372
|
+
Ee.displayName = "Text";
|
|
371
373
|
const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa = "_modalWrapper__content_1pg9r_106", va = "_modalWrapper__header_1pg9r_109", ga = "_modalWrapper__subHeader_1pg9r_117", xa = "_modalWrapper__subHeader_onlySubHeader_1pg9r_125", ha = "_modalWrapper__footer_1pg9r_128", ba = "_modalWrapper__closeButton_1pg9r_131", ge = {
|
|
372
374
|
modalWrapper: ua,
|
|
373
375
|
"modalWrapper--modalVerticalAlign-top": "_modalWrapper--modalVerticalAlign-top_1pg9r_48",
|
|
@@ -408,7 +410,7 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
408
410
|
[ge.modalWrapper]: !0,
|
|
409
411
|
[ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
|
|
410
412
|
[ge[`modalWrapper--textAlign-${l}`]]: l
|
|
411
|
-
}),
|
|
413
|
+
}), I = _({
|
|
412
414
|
[ge.modalWrapper__modal]: !0,
|
|
413
415
|
[ge[`modalWrapper__modal--size-${x}`]]: x,
|
|
414
416
|
...r && { [r]: !0 }
|
|
@@ -428,10 +430,10 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
428
430
|
}), N = _({
|
|
429
431
|
[ge.modalWrapper__footer]: !0
|
|
430
432
|
});
|
|
431
|
-
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: b, children: /* @__PURE__ */
|
|
432
|
-
(u || g) && /* @__PURE__ */
|
|
433
|
-
typeof u == "string" ? /* @__PURE__ */ c(
|
|
434
|
-
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(
|
|
433
|
+
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: b, children: /* @__PURE__ */ W("div", { className: I, style: s, children: [
|
|
434
|
+
(u || g) && /* @__PURE__ */ W("div", { className: w, children: [
|
|
435
|
+
typeof u == "string" ? /* @__PURE__ */ c(Ee, { type: "h3", children: u }) : u,
|
|
436
|
+
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(Ee, { children: g }) : g })
|
|
435
437
|
] }),
|
|
436
438
|
a && /* @__PURE__ */ c("div", { className: R, children: a }),
|
|
437
439
|
h && /* @__PURE__ */ c("div", { className: N, children: h }),
|
|
@@ -465,13 +467,15 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
465
467
|
applyButtonsMobileDirection: h = "column",
|
|
466
468
|
applyButtonsAlign: x = "right",
|
|
467
469
|
modalVerticalAlign: b = "top",
|
|
468
|
-
textAlign:
|
|
470
|
+
textAlign: I = "left",
|
|
469
471
|
loading: j,
|
|
470
472
|
isVisibleCloseButton: z,
|
|
471
473
|
isHiddenModal: R,
|
|
472
474
|
size: w,
|
|
473
475
|
classNameRoot: m,
|
|
474
|
-
classNameLayerRoot: N
|
|
476
|
+
classNameLayerRoot: N,
|
|
477
|
+
submitBtnVariant: O,
|
|
478
|
+
cancelBtnVariant: q
|
|
475
479
|
} = e;
|
|
476
480
|
return /* @__PURE__ */ c(
|
|
477
481
|
ya,
|
|
@@ -480,7 +484,7 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
480
484
|
header: o,
|
|
481
485
|
onClose: g,
|
|
482
486
|
modalVerticalAlign: b,
|
|
483
|
-
textAlign:
|
|
487
|
+
textAlign: I,
|
|
484
488
|
subHeader: n,
|
|
485
489
|
isVisibleCloseButton: z,
|
|
486
490
|
isHiddenModal: R,
|
|
@@ -497,6 +501,8 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
497
501
|
cancelBtnDisabled: i,
|
|
498
502
|
submitBtnContent: s,
|
|
499
503
|
submitBtnIconName: p,
|
|
504
|
+
submitBtnVariant: O,
|
|
505
|
+
cancelBtnVariant: q,
|
|
500
506
|
formId: u,
|
|
501
507
|
disabled: d,
|
|
502
508
|
onClose: g,
|
|
@@ -518,7 +524,7 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
518
524
|
} = e, [p, l] = oe(o);
|
|
519
525
|
return re(() => {
|
|
520
526
|
l(o);
|
|
521
|
-
}, [o]), /* @__PURE__ */
|
|
527
|
+
}, [o]), /* @__PURE__ */ W($e, { children: [
|
|
522
528
|
t,
|
|
523
529
|
p && /* @__PURE__ */ c(
|
|
524
530
|
wa,
|
|
@@ -577,7 +583,7 @@ const Na = "_spBreadcrumb_8fr8j_43", Ea = "_spBreadcrumb__list_8fr8j_46", Sa = "
|
|
|
577
583
|
[Me.spBreadcrumb__list]: !0,
|
|
578
584
|
...o && { [o]: !0 }
|
|
579
585
|
});
|
|
580
|
-
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: p }, l) => /* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: p }, l) => /* @__PURE__ */ W(
|
|
581
587
|
"li",
|
|
582
588
|
{
|
|
583
589
|
className: _(
|
|
@@ -603,9 +609,9 @@ function Co(e, t, o = !0) {
|
|
|
603
609
|
};
|
|
604
610
|
}, [e, t, o]);
|
|
605
611
|
}
|
|
606
|
-
const Ra = "_spTooltip_1pqws_43",
|
|
612
|
+
const Ra = "_spTooltip_1pqws_43", Aa = "_spInfoTooltip_1pqws_48", ko = {
|
|
607
613
|
spTooltip: Ra,
|
|
608
|
-
spInfoTooltip:
|
|
614
|
+
spInfoTooltip: Aa
|
|
609
615
|
};
|
|
610
616
|
var pe = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(pe || {});
|
|
611
617
|
const it = (e) => {
|
|
@@ -624,72 +630,72 @@ const it = (e) => {
|
|
|
624
630
|
classNameBaseTooltipRoot: g,
|
|
625
631
|
classNameBaseTooltipContentRoot: h,
|
|
626
632
|
styleTooltip: x
|
|
627
|
-
} = e, [b,
|
|
633
|
+
} = e, [b, I] = oe(!1), j = ve(null), z = ve(null), [R, w] = oe(!1);
|
|
628
634
|
Co(
|
|
629
635
|
[j, z],
|
|
630
636
|
() => {
|
|
631
|
-
s && s(),
|
|
637
|
+
s && s(), I(!1);
|
|
632
638
|
},
|
|
633
639
|
b
|
|
634
640
|
);
|
|
635
641
|
const m = (T) => {
|
|
636
|
-
n && T.stopPropagation(), !t && (b ? s && s() : r && r(),
|
|
637
|
-
}, [N,
|
|
642
|
+
n && T.stopPropagation(), !t && (b ? s && s() : r && r(), I((M) => o ? !M : !0));
|
|
643
|
+
}, [N, O] = oe({
|
|
638
644
|
visibility: "hidden",
|
|
639
645
|
opacity: 0,
|
|
640
646
|
left: "-9999px"
|
|
641
|
-
}), [
|
|
647
|
+
}), [q, G] = oe(!1), ne = he(() => {
|
|
642
648
|
if (!j.current || !z.current) return;
|
|
643
649
|
const T = j.current.getBoundingClientRect(), M = z.current.getBoundingClientRect();
|
|
644
|
-
let
|
|
650
|
+
let $ = 0, K = 0;
|
|
645
651
|
switch (l) {
|
|
646
652
|
case pe.Right:
|
|
647
|
-
|
|
653
|
+
$ = T.top + window.scrollY - (M.height - T.height) / 2, K = T.right + window.scrollX;
|
|
648
654
|
break;
|
|
649
655
|
case pe.RightTop:
|
|
650
|
-
|
|
656
|
+
$ = T.top + window.scrollY, K = T.right + window.scrollX;
|
|
651
657
|
break;
|
|
652
658
|
case pe.RightBottom:
|
|
653
|
-
|
|
659
|
+
$ = T.bottom + window.scrollY - M.height, K = T.right + window.scrollX;
|
|
654
660
|
break;
|
|
655
661
|
case pe.Left:
|
|
656
|
-
|
|
662
|
+
$ = T.top + window.scrollY - (M.height - T.height) / 2, K = T.left + window.scrollX - M.width;
|
|
657
663
|
break;
|
|
658
664
|
case pe.LeftTop:
|
|
659
|
-
|
|
665
|
+
$ = T.top + window.scrollY, K = T.left + window.scrollX - M.width;
|
|
660
666
|
break;
|
|
661
667
|
case pe.LeftBottom:
|
|
662
|
-
|
|
668
|
+
$ = T.bottom + window.scrollY - M.height, K = T.left + window.scrollX - M.width;
|
|
663
669
|
break;
|
|
664
670
|
case pe.Bottom:
|
|
665
|
-
|
|
671
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX - (M.width - T.width) / 2;
|
|
666
672
|
break;
|
|
667
673
|
case pe.BottomLeft:
|
|
668
|
-
|
|
674
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX;
|
|
669
675
|
break;
|
|
670
676
|
case pe.BottomRight:
|
|
671
|
-
|
|
677
|
+
$ = T.bottom + window.scrollY, K = T.right + window.scrollX - M.width;
|
|
672
678
|
break;
|
|
673
679
|
case pe.Top:
|
|
674
|
-
|
|
680
|
+
$ = T.top + window.scrollY - M.height, K = T.left + window.scrollX - (M.width - T.width) / 2;
|
|
675
681
|
break;
|
|
676
682
|
case pe.TopLeft:
|
|
677
|
-
|
|
683
|
+
$ = T.top + window.scrollY - M.height, K = T.left + window.scrollX;
|
|
678
684
|
break;
|
|
679
685
|
case pe.TopRight:
|
|
680
|
-
|
|
686
|
+
$ = T.top + window.scrollY - M.height, K = T.right + window.scrollX - M.width;
|
|
681
687
|
break;
|
|
682
688
|
default:
|
|
683
|
-
|
|
689
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX;
|
|
684
690
|
}
|
|
685
|
-
|
|
691
|
+
$ + M.height > window.innerHeight + window.scrollY && l.includes("bottom") ? $ = T.top + window.scrollY - M.height : $ < window.scrollY && l.includes("top") && ($ = T.bottom + window.scrollY), K + M.width > window.innerWidth + window.scrollX && l.includes("left") ? K = T.left + window.scrollX - M.width + T.width : K < window.scrollX && l.includes("right") && (K = T.right + window.scrollX - T.width), O((ee) => ({
|
|
686
692
|
...ee,
|
|
687
|
-
top: `${
|
|
688
|
-
left: `${
|
|
689
|
-
visibility: b ||
|
|
690
|
-
opacity: b ||
|
|
693
|
+
top: `${$}px`,
|
|
694
|
+
left: `${K}px`,
|
|
695
|
+
visibility: b || q ? "visible" : "hidden",
|
|
696
|
+
opacity: b || q ? 1 : 0
|
|
691
697
|
}));
|
|
692
|
-
}, [l, b,
|
|
698
|
+
}, [l, b, q]);
|
|
693
699
|
re(() => (w(!0), () => w(!1)), []), re(() => {
|
|
694
700
|
R && ne();
|
|
695
701
|
}, [R, ne]), re(() => {
|
|
@@ -707,14 +713,14 @@ const it = (e) => {
|
|
|
707
713
|
[ko.spTooltip]: !0,
|
|
708
714
|
...p && { [p]: !0 }
|
|
709
715
|
}), Z = document.body;
|
|
710
|
-
return /* @__PURE__ */
|
|
716
|
+
return /* @__PURE__ */ W(
|
|
711
717
|
"div",
|
|
712
718
|
{
|
|
713
719
|
ref: j,
|
|
714
720
|
className: le,
|
|
715
721
|
onClick: m,
|
|
716
|
-
onMouseEnter: () => t &&
|
|
717
|
-
onMouseLeave: () => t &&
|
|
722
|
+
onMouseEnter: () => t && G(!0),
|
|
723
|
+
onMouseLeave: () => t && G(!1),
|
|
718
724
|
style: x,
|
|
719
725
|
children: [
|
|
720
726
|
i,
|
|
@@ -745,8 +751,8 @@ const it = (e) => {
|
|
|
745
751
|
trigger: /* @__PURE__ */ c(de, { name: D.Info })
|
|
746
752
|
}
|
|
747
753
|
);
|
|
748
|
-
},
|
|
749
|
-
spCheckbox:
|
|
754
|
+
}, Fa = "_spCheckbox_14zra_43", Ba = "_spCheckbox__control_14zra_49", Da = "_spCheckbox__label_14zra_52", Ma = "_spCheckbox__box_14zra_63", Pa = "_spCheckbox__box_disabled_14zra_74", Oa = "_spCheckbox__box_error_14zra_79", Wa = "_spCheckbox__box__checkmark_14zra_85", za = "_spCheckbox__box__innerSquare_14zra_105", Ua = "_spCheckbox__box__innerSquare_checked_14zra_121", qa = "_spCheckbox__tooltip_14zra_125", $a = "_spCheckbox__required_14zra_129", Ha = "_spCheckbox__error_14zra_135", xe = {
|
|
755
|
+
spCheckbox: Fa,
|
|
750
756
|
spCheckbox__control: Ba,
|
|
751
757
|
spCheckbox__label: Da,
|
|
752
758
|
spCheckbox__box: Ma,
|
|
@@ -781,7 +787,7 @@ const it = (e) => {
|
|
|
781
787
|
} = e, b = _({
|
|
782
788
|
[xe.spCheckbox]: !0,
|
|
783
789
|
...h && { [h]: !0 }
|
|
784
|
-
}),
|
|
790
|
+
}), I = _({
|
|
785
791
|
[xe.spCheckbox__box]: !0,
|
|
786
792
|
[xe.spCheckbox__box_disabled]: n,
|
|
787
793
|
[xe.spCheckbox__box_error]: s
|
|
@@ -801,26 +807,26 @@ const it = (e) => {
|
|
|
801
807
|
}), N = _({
|
|
802
808
|
[xe.spCheckbox__error]: !0,
|
|
803
809
|
...x && { [x]: !0 }
|
|
804
|
-
}),
|
|
810
|
+
}), O = _({
|
|
805
811
|
[xe.spCheckbox__tooltip]: !0
|
|
806
812
|
});
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ W("div", { className: b, onMouseEnter: g, children: [
|
|
814
|
+
/* @__PURE__ */ W("label", { className: I, children: [
|
|
809
815
|
/* @__PURE__ */ c(
|
|
810
816
|
"input",
|
|
811
817
|
{
|
|
812
818
|
type: "checkbox",
|
|
813
819
|
className: R,
|
|
814
820
|
checked: o,
|
|
815
|
-
onChange: (
|
|
816
|
-
!n && a && a(
|
|
821
|
+
onChange: (G) => {
|
|
822
|
+
!n && a && a(G, { name: i, checked: !o, value: p });
|
|
817
823
|
}
|
|
818
824
|
}
|
|
819
825
|
),
|
|
820
826
|
/* @__PURE__ */ c("span", { className: j, children: /* @__PURE__ */ c("span", { className: z }) }),
|
|
821
827
|
r && /* @__PURE__ */ c("span", { className: w, children: r }),
|
|
822
828
|
l && /* @__PURE__ */ c("div", { className: m, children: "*" }),
|
|
823
|
-
u && /* @__PURE__ */ c("div", { className:
|
|
829
|
+
u && /* @__PURE__ */ c("div", { className: O, children: /* @__PURE__ */ c(rt, { hover: !0, position: d, text: u }) })
|
|
824
830
|
] }),
|
|
825
831
|
s && /* @__PURE__ */ c("div", { className: N, children: s })
|
|
826
832
|
] });
|
|
@@ -835,7 +841,7 @@ const it = (e) => {
|
|
|
835
841
|
});
|
|
836
842
|
return /* @__PURE__ */ c("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
837
843
|
const r = i.key === "delete";
|
|
838
|
-
return /* @__PURE__ */
|
|
844
|
+
return /* @__PURE__ */ W(
|
|
839
845
|
"li",
|
|
840
846
|
{
|
|
841
847
|
className: _({
|
|
@@ -855,7 +861,7 @@ const it = (e) => {
|
|
|
855
861
|
}) });
|
|
856
862
|
}, Ka = (e) => {
|
|
857
863
|
const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
|
|
858
|
-
return /* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ W("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
859
865
|
/* @__PURE__ */ c("input", { ...i({}), disabled: n, name: a }),
|
|
860
866
|
o
|
|
861
867
|
] });
|
|
@@ -895,9 +901,9 @@ const it = (e) => {
|
|
|
895
901
|
hover: !1,
|
|
896
902
|
triggerAction: () => h(!0),
|
|
897
903
|
actionOnClose: () => h(!1),
|
|
898
|
-
text: /* @__PURE__ */
|
|
904
|
+
text: /* @__PURE__ */ W("div", { className: l, children: [
|
|
899
905
|
o && /* @__PURE__ */ c("div", { className: d, children: o }),
|
|
900
|
-
n.map((b,
|
|
906
|
+
n.map((b, I) => /* @__PURE__ */ W(
|
|
901
907
|
"div",
|
|
902
908
|
{
|
|
903
909
|
className: _({
|
|
@@ -910,14 +916,14 @@ const it = (e) => {
|
|
|
910
916
|
b.description && /* @__PURE__ */ c("span", { className: u, children: b.description })
|
|
911
917
|
]
|
|
912
918
|
},
|
|
913
|
-
|
|
919
|
+
I
|
|
914
920
|
))
|
|
915
921
|
] }),
|
|
916
922
|
position: a,
|
|
917
923
|
noPadding: !0,
|
|
918
924
|
isToggleClick: !0,
|
|
919
925
|
isStopPropagationClickOnTrigger: !0,
|
|
920
|
-
trigger: /* @__PURE__ */
|
|
926
|
+
trigger: /* @__PURE__ */ W("div", { className: r, children: [
|
|
921
927
|
/* @__PURE__ */ c("div", { className: s, children: t }),
|
|
922
928
|
/* @__PURE__ */ c("div", { className: p, children: /* @__PURE__ */ c(de, { name: D.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
923
929
|
] })
|
|
@@ -945,7 +951,7 @@ const it = (e) => {
|
|
|
945
951
|
Xo(() => (b(), window.addEventListener("resize", b), () => {
|
|
946
952
|
window.removeEventListener("resize", b);
|
|
947
953
|
}), [t, h]);
|
|
948
|
-
const
|
|
954
|
+
const I = _({
|
|
949
955
|
[$t.ellipsisTextWithTooltip]: !0,
|
|
950
956
|
...n && { [n]: !0 }
|
|
951
957
|
}), j = _({
|
|
@@ -962,9 +968,9 @@ const it = (e) => {
|
|
|
962
968
|
classNameBaseTooltipContentRoot: i,
|
|
963
969
|
isVisibleTooltip: u,
|
|
964
970
|
text: t,
|
|
965
|
-
trigger: /* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */ c(
|
|
967
|
-
o && u && x && /* @__PURE__ */
|
|
971
|
+
trigger: /* @__PURE__ */ W($e, { children: [
|
|
972
|
+
/* @__PURE__ */ c(Ee, { ...p, classNameRoot: I, isEllipsis: !0, ref: l, children: t }),
|
|
973
|
+
o && u && x && /* @__PURE__ */ W($e, { children: [
|
|
968
974
|
/* @__PURE__ */ c(
|
|
969
975
|
"div",
|
|
970
976
|
{
|
|
@@ -975,15 +981,15 @@ const it = (e) => {
|
|
|
975
981
|
pointerEvents: "none",
|
|
976
982
|
whiteSpace: "nowrap"
|
|
977
983
|
},
|
|
978
|
-
children: /* @__PURE__ */ c(
|
|
984
|
+
children: /* @__PURE__ */ c(Ee, { ...p, classNameRoot: I, children: gt(t) })
|
|
979
985
|
}
|
|
980
986
|
),
|
|
981
987
|
/* @__PURE__ */ c(
|
|
982
|
-
|
|
988
|
+
Ee,
|
|
983
989
|
{
|
|
984
990
|
style: { width: "fit-content" },
|
|
985
991
|
...p,
|
|
986
|
-
classNameRoot:
|
|
992
|
+
classNameRoot: I,
|
|
987
993
|
children: gt(t)
|
|
988
994
|
}
|
|
989
995
|
)
|
|
@@ -1042,7 +1048,7 @@ const it = (e) => {
|
|
|
1042
1048
|
}), d = _({
|
|
1043
1049
|
[Ze.spLabel__tooltip]: !0
|
|
1044
1050
|
});
|
|
1045
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ W("div", { className: s, children: [
|
|
1046
1052
|
/* @__PURE__ */ c("label", { className: p, children: o }),
|
|
1047
1053
|
t && /* @__PURE__ */ c("div", { className: l, children: "*" }),
|
|
1048
1054
|
n && /* @__PURE__ */ c(
|
|
@@ -1085,21 +1091,21 @@ const it = (e) => {
|
|
|
1085
1091
|
onMouseEnter: h,
|
|
1086
1092
|
infoTooltipText: x,
|
|
1087
1093
|
tooltipPosition: b,
|
|
1088
|
-
isVisibleDefaultTitle:
|
|
1094
|
+
isVisibleDefaultTitle: I = !0,
|
|
1089
1095
|
placeholder: j = "Введите...",
|
|
1090
1096
|
classNameRoot: z,
|
|
1091
1097
|
classNameError: R,
|
|
1092
1098
|
classNameLabel: w,
|
|
1093
1099
|
classNameBaseTooltipRoot: m,
|
|
1094
1100
|
...N
|
|
1095
|
-
} = e,
|
|
1101
|
+
} = e, O = _({
|
|
1096
1102
|
[ke.spInput]: !0,
|
|
1097
1103
|
[ke.spInput_error]: !!p,
|
|
1098
1104
|
[ke.spInput_absolutePositionError]: s,
|
|
1099
1105
|
...z && { [z]: !0 }
|
|
1100
|
-
}),
|
|
1106
|
+
}), q = _({
|
|
1101
1107
|
[ke.spInput__container]: !0
|
|
1102
|
-
}),
|
|
1108
|
+
}), G = _({
|
|
1103
1109
|
[ke.spInput__control]: !0,
|
|
1104
1110
|
[ke.spInput__control_disabled]: r,
|
|
1105
1111
|
[ke[`spInput__control_${i}`]]: i,
|
|
@@ -1115,10 +1121,10 @@ const it = (e) => {
|
|
|
1115
1121
|
}), le = (M) => {
|
|
1116
1122
|
n(M, { name: d, value: "" });
|
|
1117
1123
|
}, Z = (M) => {
|
|
1118
|
-
const { value:
|
|
1119
|
-
g &&
|
|
1124
|
+
const { value: $, name: K } = M.target;
|
|
1125
|
+
g && $ && !new RegExp(g).test($) || n(M, { value: $, name: K });
|
|
1120
1126
|
};
|
|
1121
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ W("div", { className: O, children: [
|
|
1122
1128
|
a && /* @__PURE__ */ c(
|
|
1123
1129
|
Mt,
|
|
1124
1130
|
{
|
|
@@ -1130,7 +1136,7 @@ const it = (e) => {
|
|
|
1130
1136
|
classNameBaseTooltipRoot: m
|
|
1131
1137
|
}
|
|
1132
1138
|
),
|
|
1133
|
-
/* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ W("div", { className: q, onMouseEnter: h, children: [
|
|
1134
1140
|
/* @__PURE__ */ c(
|
|
1135
1141
|
"input",
|
|
1136
1142
|
{
|
|
@@ -1138,10 +1144,10 @@ const it = (e) => {
|
|
|
1138
1144
|
placeholder: j,
|
|
1139
1145
|
disabled: r,
|
|
1140
1146
|
onChange: Z,
|
|
1141
|
-
title:
|
|
1147
|
+
title: I ? o : void 0,
|
|
1142
1148
|
value: o,
|
|
1143
1149
|
name: d,
|
|
1144
|
-
className:
|
|
1150
|
+
className: G,
|
|
1145
1151
|
ref: t
|
|
1146
1152
|
}
|
|
1147
1153
|
),
|
|
@@ -1162,10 +1168,10 @@ function To(e) {
|
|
|
1162
1168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1163
1169
|
}
|
|
1164
1170
|
var Pt = {};
|
|
1165
|
-
Pt.match =
|
|
1171
|
+
Pt.match = Ai;
|
|
1166
1172
|
Pt.parse = No;
|
|
1167
1173
|
var Si = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, Ii = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, Li = /^(?:(min|max)-)?(.+)/, ji = /(em|rem|px|cm|mm|in|pt|pc)?$/, Ri = /(dpi|dpcm|dppx)?$/;
|
|
1168
|
-
function
|
|
1174
|
+
function Ai(e, t) {
|
|
1169
1175
|
return No(e).some(function(o) {
|
|
1170
1176
|
var n = o.inverse, a = o.type === "all" || t.type === o.type;
|
|
1171
1177
|
if (a && n || !(a || n))
|
|
@@ -1262,10 +1268,10 @@ function Yt(e) {
|
|
|
1262
1268
|
return t;
|
|
1263
1269
|
}
|
|
1264
1270
|
}
|
|
1265
|
-
var
|
|
1271
|
+
var Fi = Pt.match, Gt = typeof window < "u" ? window.matchMedia : null;
|
|
1266
1272
|
function Bi(e, t, o) {
|
|
1267
1273
|
var n = this, a;
|
|
1268
|
-
Gt && !o && (a = Gt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
1274
|
+
Gt && !o && (a = Gt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = Fi(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = p;
|
|
1269
1275
|
function i(l) {
|
|
1270
1276
|
a && a.addListener(l);
|
|
1271
1277
|
}
|
|
@@ -1322,7 +1328,7 @@ var Kt;
|
|
|
1322
1328
|
function qi() {
|
|
1323
1329
|
if (Kt) return Q;
|
|
1324
1330
|
Kt = 1;
|
|
1325
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121,
|
|
1331
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1326
1332
|
function R(m) {
|
|
1327
1333
|
if (typeof m == "object" && m !== null) {
|
|
1328
1334
|
var N = m.$$typeof;
|
|
@@ -1381,7 +1387,7 @@ function qi() {
|
|
|
1381
1387
|
}, Q.isSuspense = function(m) {
|
|
1382
1388
|
return R(m) === u;
|
|
1383
1389
|
}, Q.isValidElementType = function(m) {
|
|
1384
|
-
return typeof m == "string" || typeof m == "function" || m === n || m === l || m === i || m === a || m === u || m === g || typeof m == "object" && m !== null && (m.$$typeof === x || m.$$typeof === h || m.$$typeof === r || m.$$typeof === s || m.$$typeof === d || m.$$typeof ===
|
|
1390
|
+
return typeof m == "string" || typeof m == "function" || m === n || m === l || m === i || m === a || m === u || m === g || typeof m == "object" && m !== null && (m.$$typeof === x || m.$$typeof === h || m.$$typeof === r || m.$$typeof === s || m.$$typeof === d || m.$$typeof === I || m.$$typeof === j || m.$$typeof === z || m.$$typeof === b);
|
|
1385
1391
|
}, Q.typeOf = R, Q;
|
|
1386
1392
|
}
|
|
1387
1393
|
var J = {};
|
|
@@ -1396,10 +1402,10 @@ var J = {};
|
|
|
1396
1402
|
var Xt;
|
|
1397
1403
|
function $i() {
|
|
1398
1404
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1399
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121,
|
|
1405
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1400
1406
|
function R(y) {
|
|
1401
1407
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1402
|
-
y === n || y === l || y === i || y === a || y === u || y === g || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === h || y.$$typeof === r || y.$$typeof === s || y.$$typeof === d || y.$$typeof ===
|
|
1408
|
+
y === n || y === l || y === i || y === a || y === u || y === g || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === h || y.$$typeof === r || y.$$typeof === s || y.$$typeof === d || y.$$typeof === I || y.$$typeof === j || y.$$typeof === z || y.$$typeof === b);
|
|
1403
1409
|
}
|
|
1404
1410
|
function w(y) {
|
|
1405
1411
|
if (typeof y == "object" && y !== null) {
|
|
@@ -1433,9 +1439,9 @@ function $i() {
|
|
|
1433
1439
|
}
|
|
1434
1440
|
}
|
|
1435
1441
|
}
|
|
1436
|
-
var m = p, N = l,
|
|
1442
|
+
var m = p, N = l, O = s, q = r, G = t, ne = d, me = n, ue = x, le = h, Z = o, T = i, M = a, $ = u, K = !1;
|
|
1437
1443
|
function ee(y) {
|
|
1438
|
-
return
|
|
1444
|
+
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(y) || w(y) === p;
|
|
1439
1445
|
}
|
|
1440
1446
|
function f(y) {
|
|
1441
1447
|
return w(y) === l;
|
|
@@ -1443,10 +1449,10 @@ function $i() {
|
|
|
1443
1449
|
function v(y) {
|
|
1444
1450
|
return w(y) === s;
|
|
1445
1451
|
}
|
|
1446
|
-
function
|
|
1452
|
+
function L(y) {
|
|
1447
1453
|
return w(y) === r;
|
|
1448
1454
|
}
|
|
1449
|
-
function
|
|
1455
|
+
function A(y) {
|
|
1450
1456
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
1451
1457
|
}
|
|
1452
1458
|
function S(y) {
|
|
@@ -1467,13 +1473,13 @@ function $i() {
|
|
|
1467
1473
|
function X(y) {
|
|
1468
1474
|
return w(y) === i;
|
|
1469
1475
|
}
|
|
1470
|
-
function
|
|
1476
|
+
function H(y) {
|
|
1471
1477
|
return w(y) === a;
|
|
1472
1478
|
}
|
|
1473
1479
|
function ie(y) {
|
|
1474
1480
|
return w(y) === u;
|
|
1475
1481
|
}
|
|
1476
|
-
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer =
|
|
1482
|
+
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = O, J.ContextProvider = q, J.Element = G, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = $, J.isAsyncMode = ee, J.isConcurrentMode = f, J.isContextConsumer = v, J.isContextProvider = L, J.isElement = A, J.isForwardRef = S, J.isFragment = P, J.isLazy = B, J.isMemo = U, J.isPortal = V, J.isProfiler = X, J.isStrictMode = H, J.isSuspense = ie, J.isValidElementType = R, J.typeOf = w;
|
|
1477
1483
|
}()), J;
|
|
1478
1484
|
}
|
|
1479
1485
|
var Zt;
|
|
@@ -1630,9 +1636,9 @@ function Yi() {
|
|
|
1630
1636
|
elementType: m(),
|
|
1631
1637
|
instanceOf: N,
|
|
1632
1638
|
node: ne(),
|
|
1633
|
-
objectOf:
|
|
1634
|
-
oneOf:
|
|
1635
|
-
oneOfType:
|
|
1639
|
+
objectOf: q,
|
|
1640
|
+
oneOf: O,
|
|
1641
|
+
oneOfType: G,
|
|
1636
1642
|
shape: ue,
|
|
1637
1643
|
exact: le
|
|
1638
1644
|
};
|
|
@@ -1643,11 +1649,11 @@ function Yi() {
|
|
|
1643
1649
|
this.message = f, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
1644
1650
|
}
|
|
1645
1651
|
b.prototype = Error.prototype;
|
|
1646
|
-
function
|
|
1652
|
+
function I(f) {
|
|
1647
1653
|
if (process.env.NODE_ENV !== "production")
|
|
1648
|
-
var v = {},
|
|
1649
|
-
function
|
|
1650
|
-
if (V = V || g,
|
|
1654
|
+
var v = {}, L = 0;
|
|
1655
|
+
function A(P, B, U, V, X, H, ie) {
|
|
1656
|
+
if (V = V || g, H = H || U, ie !== o) {
|
|
1651
1657
|
if (p) {
|
|
1652
1658
|
var y = new Error(
|
|
1653
1659
|
"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"
|
|
@@ -1656,130 +1662,130 @@ function Yi() {
|
|
|
1656
1662
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1657
1663
|
var be = V + ":" + U;
|
|
1658
1664
|
!v[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1659
|
-
|
|
1660
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1661
|
-
), v[be] = !0,
|
|
1665
|
+
L < 3 && (i(
|
|
1666
|
+
"You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + V + "`. 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."
|
|
1667
|
+
), v[be] = !0, L++);
|
|
1662
1668
|
}
|
|
1663
1669
|
}
|
|
1664
|
-
return B[U] == null ? P ? B[U] === null ? new b("The " + X + " `" +
|
|
1670
|
+
return B[U] == null ? P ? B[U] === null ? new b("The " + X + " `" + H + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + X + " `" + H + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : f(B, U, V, X, H);
|
|
1665
1671
|
}
|
|
1666
|
-
var S =
|
|
1667
|
-
return S.isRequired =
|
|
1672
|
+
var S = A.bind(null, !1);
|
|
1673
|
+
return S.isRequired = A.bind(null, !0), S;
|
|
1668
1674
|
}
|
|
1669
1675
|
function j(f) {
|
|
1670
|
-
function v(
|
|
1671
|
-
var V =
|
|
1676
|
+
function v(L, A, S, P, B, U) {
|
|
1677
|
+
var V = L[A], X = M(V);
|
|
1672
1678
|
if (X !== f) {
|
|
1673
|
-
var
|
|
1679
|
+
var H = $(V);
|
|
1674
1680
|
return new b(
|
|
1675
|
-
"Invalid " + P + " `" + B + "` of type " + ("`" +
|
|
1681
|
+
"Invalid " + P + " `" + B + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected ") + ("`" + f + "`."),
|
|
1676
1682
|
{ expectedType: f }
|
|
1677
1683
|
);
|
|
1678
1684
|
}
|
|
1679
1685
|
return null;
|
|
1680
1686
|
}
|
|
1681
|
-
return
|
|
1687
|
+
return I(v);
|
|
1682
1688
|
}
|
|
1683
1689
|
function z() {
|
|
1684
|
-
return
|
|
1690
|
+
return I(r);
|
|
1685
1691
|
}
|
|
1686
1692
|
function R(f) {
|
|
1687
|
-
function v(
|
|
1693
|
+
function v(L, A, S, P, B) {
|
|
1688
1694
|
if (typeof f != "function")
|
|
1689
1695
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
1690
|
-
var U =
|
|
1696
|
+
var U = L[A];
|
|
1691
1697
|
if (!Array.isArray(U)) {
|
|
1692
1698
|
var V = M(U);
|
|
1693
1699
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an array."));
|
|
1694
1700
|
}
|
|
1695
1701
|
for (var X = 0; X < U.length; X++) {
|
|
1696
|
-
var
|
|
1697
|
-
if (
|
|
1698
|
-
return
|
|
1702
|
+
var H = f(U, X, S, P, B + "[" + X + "]", o);
|
|
1703
|
+
if (H instanceof Error)
|
|
1704
|
+
return H;
|
|
1699
1705
|
}
|
|
1700
1706
|
return null;
|
|
1701
1707
|
}
|
|
1702
|
-
return
|
|
1708
|
+
return I(v);
|
|
1703
1709
|
}
|
|
1704
1710
|
function w() {
|
|
1705
|
-
function f(v,
|
|
1706
|
-
var B = v[
|
|
1711
|
+
function f(v, L, A, S, P) {
|
|
1712
|
+
var B = v[L];
|
|
1707
1713
|
if (!s(B)) {
|
|
1708
1714
|
var U = M(B);
|
|
1709
|
-
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1715
|
+
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1710
1716
|
}
|
|
1711
1717
|
return null;
|
|
1712
1718
|
}
|
|
1713
|
-
return
|
|
1719
|
+
return I(f);
|
|
1714
1720
|
}
|
|
1715
1721
|
function m() {
|
|
1716
|
-
function f(v,
|
|
1717
|
-
var B = v[
|
|
1722
|
+
function f(v, L, A, S, P) {
|
|
1723
|
+
var B = v[L];
|
|
1718
1724
|
if (!e.isValidElementType(B)) {
|
|
1719
1725
|
var U = M(B);
|
|
1720
|
-
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1726
|
+
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1721
1727
|
}
|
|
1722
1728
|
return null;
|
|
1723
1729
|
}
|
|
1724
|
-
return
|
|
1730
|
+
return I(f);
|
|
1725
1731
|
}
|
|
1726
1732
|
function N(f) {
|
|
1727
|
-
function v(
|
|
1728
|
-
if (!(
|
|
1729
|
-
var U = f.name || g, V = ee(
|
|
1733
|
+
function v(L, A, S, P, B) {
|
|
1734
|
+
if (!(L[A] instanceof f)) {
|
|
1735
|
+
var U = f.name || g, V = ee(L[A]);
|
|
1730
1736
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected ") + ("instance of `" + U + "`."));
|
|
1731
1737
|
}
|
|
1732
1738
|
return null;
|
|
1733
1739
|
}
|
|
1734
|
-
return
|
|
1740
|
+
return I(v);
|
|
1735
1741
|
}
|
|
1736
|
-
function
|
|
1742
|
+
function O(f) {
|
|
1737
1743
|
if (!Array.isArray(f))
|
|
1738
1744
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1739
1745
|
"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])."
|
|
1740
1746
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1741
|
-
function v(
|
|
1742
|
-
for (var U =
|
|
1747
|
+
function v(L, A, S, P, B) {
|
|
1748
|
+
for (var U = L[A], V = 0; V < f.length; V++)
|
|
1743
1749
|
if (x(U, f[V]))
|
|
1744
1750
|
return null;
|
|
1745
1751
|
var X = JSON.stringify(f, function(ie, y) {
|
|
1746
|
-
var be =
|
|
1752
|
+
var be = $(y);
|
|
1747
1753
|
return be === "symbol" ? String(y) : y;
|
|
1748
1754
|
});
|
|
1749
1755
|
return new b("Invalid " + P + " `" + B + "` of value `" + String(U) + "` " + ("supplied to `" + S + "`, expected one of " + X + "."));
|
|
1750
1756
|
}
|
|
1751
|
-
return
|
|
1757
|
+
return I(v);
|
|
1752
1758
|
}
|
|
1753
|
-
function
|
|
1754
|
-
function v(
|
|
1759
|
+
function q(f) {
|
|
1760
|
+
function v(L, A, S, P, B) {
|
|
1755
1761
|
if (typeof f != "function")
|
|
1756
1762
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
1757
|
-
var U =
|
|
1763
|
+
var U = L[A], V = M(U);
|
|
1758
1764
|
if (V !== "object")
|
|
1759
1765
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an object."));
|
|
1760
1766
|
for (var X in U)
|
|
1761
1767
|
if (n(U, X)) {
|
|
1762
|
-
var
|
|
1763
|
-
if (
|
|
1764
|
-
return
|
|
1768
|
+
var H = f(U, X, S, P, B + "." + X, o);
|
|
1769
|
+
if (H instanceof Error)
|
|
1770
|
+
return H;
|
|
1765
1771
|
}
|
|
1766
1772
|
return null;
|
|
1767
1773
|
}
|
|
1768
|
-
return
|
|
1774
|
+
return I(v);
|
|
1769
1775
|
}
|
|
1770
|
-
function
|
|
1776
|
+
function G(f) {
|
|
1771
1777
|
if (!Array.isArray(f))
|
|
1772
1778
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1773
1779
|
for (var v = 0; v < f.length; v++) {
|
|
1774
|
-
var
|
|
1775
|
-
if (typeof
|
|
1780
|
+
var L = f[v];
|
|
1781
|
+
if (typeof L != "function")
|
|
1776
1782
|
return i(
|
|
1777
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1783
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(L) + " at index " + v + "."
|
|
1778
1784
|
), r;
|
|
1779
1785
|
}
|
|
1780
|
-
function
|
|
1781
|
-
for (var X = [],
|
|
1782
|
-
var ie = f[
|
|
1786
|
+
function A(S, P, B, U, V) {
|
|
1787
|
+
for (var X = [], H = 0; H < f.length; H++) {
|
|
1788
|
+
var ie = f[H], y = ie(S, P, B, U, V, o);
|
|
1783
1789
|
if (y == null)
|
|
1784
1790
|
return null;
|
|
1785
1791
|
y.data && n(y.data, "expectedType") && X.push(y.data.expectedType);
|
|
@@ -1787,58 +1793,58 @@ function Yi() {
|
|
|
1787
1793
|
var be = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1788
1794
|
return new b("Invalid " + U + " `" + V + "` supplied to " + ("`" + B + "`" + be + "."));
|
|
1789
1795
|
}
|
|
1790
|
-
return
|
|
1796
|
+
return I(A);
|
|
1791
1797
|
}
|
|
1792
1798
|
function ne() {
|
|
1793
|
-
function f(v,
|
|
1794
|
-
return Z(v[
|
|
1799
|
+
function f(v, L, A, S, P) {
|
|
1800
|
+
return Z(v[L]) ? null : new b("Invalid " + S + " `" + P + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1795
1801
|
}
|
|
1796
|
-
return
|
|
1802
|
+
return I(f);
|
|
1797
1803
|
}
|
|
1798
|
-
function me(f, v,
|
|
1804
|
+
function me(f, v, L, A, S) {
|
|
1799
1805
|
return new b(
|
|
1800
|
-
(f || "React class") + ": " + v + " type `" +
|
|
1806
|
+
(f || "React class") + ": " + v + " type `" + L + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
1801
1807
|
);
|
|
1802
1808
|
}
|
|
1803
1809
|
function ue(f) {
|
|
1804
|
-
function v(
|
|
1805
|
-
var U =
|
|
1810
|
+
function v(L, A, S, P, B) {
|
|
1811
|
+
var U = L[A], V = M(U);
|
|
1806
1812
|
if (V !== "object")
|
|
1807
1813
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1808
1814
|
for (var X in f) {
|
|
1809
|
-
var
|
|
1810
|
-
if (typeof
|
|
1811
|
-
return me(S, P, B, X,
|
|
1812
|
-
var ie =
|
|
1815
|
+
var H = f[X];
|
|
1816
|
+
if (typeof H != "function")
|
|
1817
|
+
return me(S, P, B, X, $(H));
|
|
1818
|
+
var ie = H(U, X, S, P, B + "." + X, o);
|
|
1813
1819
|
if (ie)
|
|
1814
1820
|
return ie;
|
|
1815
1821
|
}
|
|
1816
1822
|
return null;
|
|
1817
1823
|
}
|
|
1818
|
-
return
|
|
1824
|
+
return I(v);
|
|
1819
1825
|
}
|
|
1820
1826
|
function le(f) {
|
|
1821
|
-
function v(
|
|
1822
|
-
var U =
|
|
1827
|
+
function v(L, A, S, P, B) {
|
|
1828
|
+
var U = L[A], V = M(U);
|
|
1823
1829
|
if (V !== "object")
|
|
1824
1830
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1825
|
-
var X = t({},
|
|
1826
|
-
for (var
|
|
1827
|
-
var ie = f[
|
|
1828
|
-
if (n(f,
|
|
1829
|
-
return me(S, P, B,
|
|
1831
|
+
var X = t({}, L[A], f);
|
|
1832
|
+
for (var H in X) {
|
|
1833
|
+
var ie = f[H];
|
|
1834
|
+
if (n(f, H) && typeof ie != "function")
|
|
1835
|
+
return me(S, P, B, H, $(ie));
|
|
1830
1836
|
if (!ie)
|
|
1831
1837
|
return new b(
|
|
1832
|
-
"Invalid " + P + " `" + B + "` key `" +
|
|
1838
|
+
"Invalid " + P + " `" + B + "` key `" + H + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(L[A], null, " ") + `
|
|
1833
1839
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1834
1840
|
);
|
|
1835
|
-
var y = ie(U,
|
|
1841
|
+
var y = ie(U, H, S, P, B + "." + H, o);
|
|
1836
1842
|
if (y)
|
|
1837
1843
|
return y;
|
|
1838
1844
|
}
|
|
1839
1845
|
return null;
|
|
1840
1846
|
}
|
|
1841
|
-
return
|
|
1847
|
+
return I(v);
|
|
1842
1848
|
}
|
|
1843
1849
|
function Z(f) {
|
|
1844
1850
|
switch (typeof f) {
|
|
@@ -1855,14 +1861,14 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1855
1861
|
return !0;
|
|
1856
1862
|
var v = u(f);
|
|
1857
1863
|
if (v) {
|
|
1858
|
-
var
|
|
1864
|
+
var L = v.call(f), A;
|
|
1859
1865
|
if (v !== f.entries) {
|
|
1860
|
-
for (; !(
|
|
1861
|
-
if (!Z(
|
|
1866
|
+
for (; !(A = L.next()).done; )
|
|
1867
|
+
if (!Z(A.value))
|
|
1862
1868
|
return !1;
|
|
1863
1869
|
} else
|
|
1864
|
-
for (; !(
|
|
1865
|
-
var S =
|
|
1870
|
+
for (; !(A = L.next()).done; ) {
|
|
1871
|
+
var S = A.value;
|
|
1866
1872
|
if (S && !Z(S[1]))
|
|
1867
1873
|
return !1;
|
|
1868
1874
|
}
|
|
@@ -1880,7 +1886,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1880
1886
|
var v = typeof f;
|
|
1881
1887
|
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : T(v, f) ? "symbol" : v;
|
|
1882
1888
|
}
|
|
1883
|
-
function
|
|
1889
|
+
function $(f) {
|
|
1884
1890
|
if (typeof f > "u" || f === null)
|
|
1885
1891
|
return "" + f;
|
|
1886
1892
|
var v = M(f);
|
|
@@ -1892,8 +1898,8 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1892
1898
|
}
|
|
1893
1899
|
return v;
|
|
1894
1900
|
}
|
|
1895
|
-
function
|
|
1896
|
-
var v =
|
|
1901
|
+
function K(f) {
|
|
1902
|
+
var v = $(f);
|
|
1897
1903
|
switch (v) {
|
|
1898
1904
|
case "array":
|
|
1899
1905
|
case "object":
|
|
@@ -2111,7 +2117,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2111
2117
|
p.current = i, l.current = performance.now();
|
|
2112
2118
|
const x = (b) => {
|
|
2113
2119
|
if (!l.current) return;
|
|
2114
|
-
const
|
|
2120
|
+
const I = b - l.current, j = Math.min(I / o, 1), z = j < 0.5 ? 4 * j * j * j : 1 - Math.pow(-2 * j + 2, 3) / 2, R = p.current + (d.current - p.current) * z, w = Math.max(0, Math.floor(R));
|
|
2115
2121
|
r(w), j < 1 && (s.current = requestAnimationFrame(x));
|
|
2116
2122
|
};
|
|
2117
2123
|
return s.current = requestAnimationFrame(x), () => {
|
|
@@ -2165,7 +2171,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2165
2171
|
}), x = {
|
|
2166
2172
|
"--progress": `${l / r * 100}%`
|
|
2167
2173
|
};
|
|
2168
|
-
return /* @__PURE__ */
|
|
2174
|
+
return /* @__PURE__ */ W("div", { className: u, children: [
|
|
2169
2175
|
/* @__PURE__ */ c(
|
|
2170
2176
|
"div",
|
|
2171
2177
|
{
|
|
@@ -2174,12 +2180,12 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2174
2180
|
children: i
|
|
2175
2181
|
}
|
|
2176
2182
|
),
|
|
2177
|
-
d && /* @__PURE__ */
|
|
2183
|
+
d && /* @__PURE__ */ W(Ee, { classNameRoot: g, children: [
|
|
2178
2184
|
l,
|
|
2179
2185
|
"%"
|
|
2180
2186
|
] })
|
|
2181
2187
|
] });
|
|
2182
|
-
}, Cr = 180, kr = "_spSelect_1l6hu_43", Tr = "_spSelect_error_1l6hu_48", Nr = "_spSelect__control_1l6hu_48", Er = "_spSelect__value_empty_1l6hu_52", Sr = "_spSelect__icon_1l6hu_55", Ir = "_spSelect_absolutePositionError_1l6hu_58", Lr = "_spSelect__container_1l6hu_61", jr = "_spSelect__control_filled_1l6hu_81", Rr = "_spSelect__control_outlined_1l6hu_85",
|
|
2188
|
+
}, Cr = 180, kr = "_spSelect_1l6hu_43", Tr = "_spSelect_error_1l6hu_48", Nr = "_spSelect__control_1l6hu_48", Er = "_spSelect__value_empty_1l6hu_52", Sr = "_spSelect__icon_1l6hu_55", Ir = "_spSelect_absolutePositionError_1l6hu_58", Lr = "_spSelect__container_1l6hu_61", jr = "_spSelect__control_filled_1l6hu_81", Rr = "_spSelect__control_outlined_1l6hu_85", Ar = "_spSelect__control_disabled_1l6hu_110", Fr = "_spSelect__value_1l6hu_52", Br = "_spSelect__list_1l6hu_141", Dr = "_spSelect__list_scrollable_1l6hu_148", Mr = "_spSelect__option_1l6hu_164", Pr = "_spSelect__error_1l6hu_182", Or = "_spSelect__error_absolutePosition_1l6hu_189", _e = {
|
|
2183
2189
|
spSelect: kr,
|
|
2184
2190
|
spSelect_error: Tr,
|
|
2185
2191
|
spSelect__control: Nr,
|
|
@@ -2189,8 +2195,8 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2189
2195
|
spSelect__container: Lr,
|
|
2190
2196
|
spSelect__control_filled: jr,
|
|
2191
2197
|
spSelect__control_outlined: Rr,
|
|
2192
|
-
spSelect__control_disabled:
|
|
2193
|
-
spSelect__value:
|
|
2198
|
+
spSelect__control_disabled: Ar,
|
|
2199
|
+
spSelect__value: Fr,
|
|
2194
2200
|
spSelect__list: Br,
|
|
2195
2201
|
spSelect__list_scrollable: Dr,
|
|
2196
2202
|
spSelect__option: Mr,
|
|
@@ -2213,24 +2219,24 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2213
2219
|
required: h,
|
|
2214
2220
|
maxHeightList: x = Cr,
|
|
2215
2221
|
isVisibleDefaultTitle: b = !0,
|
|
2216
|
-
isScrollableList:
|
|
2222
|
+
isScrollableList: I = !1,
|
|
2217
2223
|
isAbsolutePositionError: j = !1,
|
|
2218
2224
|
classNameRoot: z,
|
|
2219
2225
|
classNameError: R,
|
|
2220
2226
|
classNameLabel: w,
|
|
2221
2227
|
classNameBaseTooltipRoot: m
|
|
2222
|
-
} = e, [N,
|
|
2228
|
+
} = e, [N, O] = oe(!1), q = ve(null);
|
|
2223
2229
|
Co(
|
|
2224
|
-
[
|
|
2230
|
+
[q],
|
|
2225
2231
|
() => {
|
|
2226
|
-
|
|
2232
|
+
O(!1);
|
|
2227
2233
|
},
|
|
2228
2234
|
N
|
|
2229
2235
|
);
|
|
2230
|
-
const
|
|
2231
|
-
r(v, { value:
|
|
2236
|
+
const G = t.find((v) => v.value === n), ne = (v, L) => {
|
|
2237
|
+
r(v, { value: L, name: a }), O(!1);
|
|
2232
2238
|
}, me = () => {
|
|
2233
|
-
g ||
|
|
2239
|
+
g || O(!N);
|
|
2234
2240
|
}, ue = _({
|
|
2235
2241
|
[_e.spSelect]: !0,
|
|
2236
2242
|
[_e.spSelect_error]: !!p,
|
|
@@ -2244,24 +2250,24 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2244
2250
|
[_e.spSelect__control_disabled]: g
|
|
2245
2251
|
}), T = _({
|
|
2246
2252
|
[_e.spSelect__value]: !0,
|
|
2247
|
-
[_e.spSelect__value_empty]: !
|
|
2253
|
+
[_e.spSelect__value_empty]: !G
|
|
2248
2254
|
}), M = _({
|
|
2249
2255
|
[_e.spSelect__icon]: !0
|
|
2250
|
-
}),
|
|
2256
|
+
}), $ = _({
|
|
2251
2257
|
[_e.spSelect__list]: !0,
|
|
2252
|
-
[_e.spSelect__list_scrollable]:
|
|
2253
|
-
}),
|
|
2258
|
+
[_e.spSelect__list_scrollable]: I
|
|
2259
|
+
}), K = _({
|
|
2254
2260
|
...w && { [w]: !0 }
|
|
2255
2261
|
}), ee = _({
|
|
2256
2262
|
[_e.spSelect__error]: !0,
|
|
2257
2263
|
[_e.spSelect__error_absolutePosition]: j,
|
|
2258
2264
|
...R && { [R]: !0 }
|
|
2259
2265
|
});
|
|
2260
|
-
return /* @__PURE__ */
|
|
2266
|
+
return /* @__PURE__ */ W("div", { className: ue, ref: q, children: [
|
|
2261
2267
|
l && /* @__PURE__ */ c(
|
|
2262
2268
|
Mt,
|
|
2263
2269
|
{
|
|
2264
|
-
classNameRoot:
|
|
2270
|
+
classNameRoot: K,
|
|
2265
2271
|
tooltipPosition: u,
|
|
2266
2272
|
required: h,
|
|
2267
2273
|
label: l,
|
|
@@ -2269,8 +2275,8 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2269
2275
|
classNameBaseTooltipRoot: m
|
|
2270
2276
|
}
|
|
2271
2277
|
),
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2278
|
+
/* @__PURE__ */ W("div", { className: le, onMouseEnter: s, children: [
|
|
2279
|
+
/* @__PURE__ */ W(
|
|
2274
2280
|
"div",
|
|
2275
2281
|
{
|
|
2276
2282
|
tabIndex: g ? -1 : 0,
|
|
@@ -2278,7 +2284,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2278
2284
|
className: Z,
|
|
2279
2285
|
onClick: me,
|
|
2280
2286
|
children: [
|
|
2281
|
-
/* @__PURE__ */ c("div", { className: T, children: (
|
|
2287
|
+
/* @__PURE__ */ c("div", { className: T, children: (G == null ? void 0 : G.label) || o }),
|
|
2282
2288
|
/* @__PURE__ */ c(
|
|
2283
2289
|
de,
|
|
2284
2290
|
{
|
|
@@ -2293,20 +2299,20 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2293
2299
|
N && /* @__PURE__ */ c(
|
|
2294
2300
|
"div",
|
|
2295
2301
|
{
|
|
2296
|
-
className:
|
|
2297
|
-
style:
|
|
2302
|
+
className: $,
|
|
2303
|
+
style: I ? { maxHeight: `${x}px` } : {},
|
|
2298
2304
|
children: t.map((v) => {
|
|
2299
|
-
const
|
|
2300
|
-
return /* @__PURE__ */
|
|
2305
|
+
const L = v.value === n;
|
|
2306
|
+
return /* @__PURE__ */ W(
|
|
2301
2307
|
"div",
|
|
2302
2308
|
{
|
|
2303
2309
|
className: _({
|
|
2304
2310
|
[_e.spSelect__option]: !0
|
|
2305
2311
|
}),
|
|
2306
|
-
onClick: (
|
|
2312
|
+
onClick: (A) => ne(A, v.value),
|
|
2307
2313
|
children: [
|
|
2308
2314
|
v.label,
|
|
2309
|
-
|
|
2315
|
+
L && /* @__PURE__ */ c(de, { name: D.Check, className: M })
|
|
2310
2316
|
]
|
|
2311
2317
|
},
|
|
2312
2318
|
v.value
|
|
@@ -2386,26 +2392,26 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2386
2392
|
}), d = _({
|
|
2387
2393
|
[we.spTable__emptyPage]: !0
|
|
2388
2394
|
}), [u, g] = oe(null), h = (w) => {
|
|
2389
|
-
const { text: m, rowIndex: N, colIndex:
|
|
2390
|
-
(u == null ? void 0 : u.rowIndex) === N && (u == null ? void 0 : u.colIndex) ===
|
|
2391
|
-
g({ rowIndex: N, colIndex:
|
|
2392
|
-
}).catch((
|
|
2393
|
-
console.error("Ошибка при копировании:",
|
|
2395
|
+
const { text: m, rowIndex: N, colIndex: O } = w;
|
|
2396
|
+
(u == null ? void 0 : u.rowIndex) === N && (u == null ? void 0 : u.colIndex) === O || navigator.clipboard.writeText(m).then(() => {
|
|
2397
|
+
g({ rowIndex: N, colIndex: O });
|
|
2398
|
+
}).catch((q) => {
|
|
2399
|
+
console.error("Ошибка при копировании:", q);
|
|
2394
2400
|
});
|
|
2395
2401
|
}, x = () => {
|
|
2396
2402
|
g(null);
|
|
2397
|
-
}, b = () => /* @__PURE__ */ c("div", { className: d, children: "Данные отсутствуют" }),
|
|
2403
|
+
}, b = () => /* @__PURE__ */ c("div", { className: d, children: "Данные отсутствуют" }), I = ({
|
|
2398
2404
|
row: w,
|
|
2399
2405
|
col: m
|
|
2400
2406
|
}) => {
|
|
2401
2407
|
const N = w[m.key];
|
|
2402
2408
|
if (!N) return null;
|
|
2403
|
-
const [
|
|
2404
|
-
return /* @__PURE__ */
|
|
2405
|
-
|
|
2406
|
-
|
|
2409
|
+
const [O, q] = N.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2410
|
+
return /* @__PURE__ */ W("span", { children: [
|
|
2411
|
+
O,
|
|
2412
|
+
q && /* @__PURE__ */ c("span", { className: l, children: ` ${q}` })
|
|
2407
2413
|
] });
|
|
2408
|
-
}, j = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */
|
|
2414
|
+
}, j = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ W("table", { className: s, children: [
|
|
2409
2415
|
/* @__PURE__ */ c("colgroup", { children: r.map((w, m, N) => /* @__PURE__ */ c(
|
|
2410
2416
|
"col",
|
|
2411
2417
|
{
|
|
@@ -2416,36 +2422,36 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2416
2422
|
m
|
|
2417
2423
|
)) }),
|
|
2418
2424
|
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: r.map((w, m) => /* @__PURE__ */ c("th", { children: w.title }, m)) }) }),
|
|
2419
|
-
/* @__PURE__ */ c("tbody", { children: o.map((w, m) => w ? /* @__PURE__ */ c("tr", { children: r.map((N,
|
|
2420
|
-
const
|
|
2425
|
+
/* @__PURE__ */ c("tbody", { children: o.map((w, m) => w ? /* @__PURE__ */ c("tr", { children: r.map((N, O) => {
|
|
2426
|
+
const q = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2421
2427
|
return /* @__PURE__ */ c(
|
|
2422
2428
|
"td",
|
|
2423
2429
|
{
|
|
2424
|
-
onMouseLeave:
|
|
2425
|
-
children: /* @__PURE__ */
|
|
2426
|
-
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ?
|
|
2430
|
+
onMouseLeave: q ? x : void 0,
|
|
2431
|
+
children: /* @__PURE__ */ W("div", { className: p, children: [
|
|
2432
|
+
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? I({ row: w, col: N }) : w[N.key] }),
|
|
2427
2433
|
!It(w[N.key]) && N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2428
2434
|
de,
|
|
2429
2435
|
{
|
|
2430
2436
|
className: _({
|
|
2431
2437
|
[we.spTable__tdContentCopyIcon]: !0,
|
|
2432
|
-
[we.spTable__tdContentCopyIcon_copied]:
|
|
2438
|
+
[we.spTable__tdContentCopyIcon_copied]: q
|
|
2433
2439
|
}),
|
|
2434
|
-
name:
|
|
2440
|
+
name: q ? D.Check : D.Copy,
|
|
2435
2441
|
onClick: () => {
|
|
2436
|
-
const
|
|
2437
|
-
if (!
|
|
2442
|
+
const G = w[N.key];
|
|
2443
|
+
if (!G) return null;
|
|
2438
2444
|
h({
|
|
2439
|
-
text:
|
|
2445
|
+
text: G,
|
|
2440
2446
|
rowIndex: m,
|
|
2441
|
-
colIndex:
|
|
2447
|
+
colIndex: O
|
|
2442
2448
|
});
|
|
2443
2449
|
}
|
|
2444
2450
|
}
|
|
2445
2451
|
)
|
|
2446
2452
|
] })
|
|
2447
2453
|
},
|
|
2448
|
-
`${m}:${
|
|
2454
|
+
`${m}:${O}`
|
|
2449
2455
|
);
|
|
2450
2456
|
}) }, m) : null) })
|
|
2451
2457
|
] }) : b(), z = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ c(
|
|
@@ -2454,17 +2460,17 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2454
2460
|
className: _({
|
|
2455
2461
|
[we.spStringsGroup]: !0
|
|
2456
2462
|
}),
|
|
2457
|
-
children: o.map((w, m) => w ? /* @__PURE__ */ c("div", { children: r.map((N,
|
|
2463
|
+
children: o.map((w, m) => w ? /* @__PURE__ */ c("div", { children: r.map((N, O) => {
|
|
2458
2464
|
if (It(w[N.key]))
|
|
2459
2465
|
return null;
|
|
2460
|
-
const
|
|
2461
|
-
return /* @__PURE__ */
|
|
2466
|
+
const q = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2467
|
+
return /* @__PURE__ */ W(
|
|
2462
2468
|
"div",
|
|
2463
2469
|
{
|
|
2464
2470
|
className: _({
|
|
2465
2471
|
[we.spStringsGroup__groupItem]: !0
|
|
2466
2472
|
}),
|
|
2467
|
-
onMouseLeave:
|
|
2473
|
+
onMouseLeave: q ? x : void 0,
|
|
2468
2474
|
children: [
|
|
2469
2475
|
/* @__PURE__ */ c(
|
|
2470
2476
|
"div",
|
|
@@ -2475,29 +2481,29 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2475
2481
|
children: N.title
|
|
2476
2482
|
}
|
|
2477
2483
|
),
|
|
2478
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ W(
|
|
2479
2485
|
"div",
|
|
2480
2486
|
{
|
|
2481
2487
|
className: _({
|
|
2482
2488
|
[we.spStringsGroup__groupItemContent]: !0
|
|
2483
2489
|
}),
|
|
2484
2490
|
children: [
|
|
2485
|
-
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ?
|
|
2491
|
+
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? I({ row: w, col: N }) : w[N.key] }),
|
|
2486
2492
|
N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2487
2493
|
de,
|
|
2488
2494
|
{
|
|
2489
2495
|
className: _({
|
|
2490
2496
|
[we.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
2491
|
-
[we.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
2497
|
+
[we.spStringsGroup__groupItemContentCopyIcon_copied]: q
|
|
2492
2498
|
}),
|
|
2493
|
-
name:
|
|
2499
|
+
name: q ? D.Check : D.Copy,
|
|
2494
2500
|
onClick: () => {
|
|
2495
|
-
const
|
|
2496
|
-
if (!
|
|
2501
|
+
const G = w[N.key];
|
|
2502
|
+
if (!G) return null;
|
|
2497
2503
|
h({
|
|
2498
|
-
text:
|
|
2504
|
+
text: G,
|
|
2499
2505
|
rowIndex: m,
|
|
2500
|
-
colIndex:
|
|
2506
|
+
colIndex: O
|
|
2501
2507
|
});
|
|
2502
2508
|
}
|
|
2503
2509
|
}
|
|
@@ -2507,65 +2513,61 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2507
2513
|
)
|
|
2508
2514
|
]
|
|
2509
2515
|
},
|
|
2510
|
-
|
|
2516
|
+
O
|
|
2511
2517
|
);
|
|
2512
2518
|
}) }, m) : null)
|
|
2513
2519
|
}
|
|
2514
2520
|
) : b();
|
|
2515
2521
|
return n ? a ? j() : z() : j();
|
|
2516
|
-
}, os = "
|
|
2522
|
+
}, os = "_spTabs_1m9iw_43", ns = "_spTabs_separated_1m9iw_48", as = "_spTabs__tabElement_1m9iw_48", is = "_spTabs__tabElement_active_1m9iw_85", rs = "_spTabs__tooltip_1m9iw_92", je = {
|
|
2517
2523
|
spTabs: os,
|
|
2518
2524
|
spTabs_separated: ns,
|
|
2519
|
-
"spTabs--size-md": "_spTabs--size-
|
|
2525
|
+
"spTabs--size-md": "_spTabs--size-md_1m9iw_48",
|
|
2520
2526
|
spTabs__tabElement: as,
|
|
2521
|
-
"spTabs--size-lg": "_spTabs--size-
|
|
2522
|
-
"spTabs--variant-contained": "_spTabs--variant-
|
|
2527
|
+
"spTabs--size-lg": "_spTabs--size-lg_1m9iw_51",
|
|
2528
|
+
"spTabs--variant-contained": "_spTabs--variant-contained_1m9iw_54",
|
|
2523
2529
|
spTabs__tabElement_active: is,
|
|
2524
2530
|
spTabs__tooltip: rs,
|
|
2525
|
-
"spTabs--variant-
|
|
2531
|
+
"spTabs--variant-outlined": "_spTabs--variant-outlined_1m9iw_95",
|
|
2532
|
+
"spTabs--variant-filled": "_spTabs--variant-filled_1m9iw_114"
|
|
2526
2533
|
}, nl = (e) => {
|
|
2527
2534
|
const {
|
|
2528
2535
|
panes: t,
|
|
2529
2536
|
isSeparated: o = !1,
|
|
2530
2537
|
classNameRoot: n,
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2538
|
+
classNameTabElementRoot: a,
|
|
2539
|
+
classNameBaseTooltipRoot: i,
|
|
2540
|
+
variant: r = "contained",
|
|
2541
|
+
size: s = "md"
|
|
2542
|
+
} = e, p = _({
|
|
2535
2543
|
[je.spTabs]: !0,
|
|
2536
2544
|
[je.spTabs_separated]: o,
|
|
2537
|
-
[je[`spTabs--variant-${
|
|
2538
|
-
[je[`spTabs--size-${
|
|
2545
|
+
[je[`spTabs--variant-${r}`]]: r,
|
|
2546
|
+
[je[`spTabs--size-${s}`]]: s,
|
|
2539
2547
|
...n && { [n]: !0 }
|
|
2540
|
-
}),
|
|
2548
|
+
}), l = _({
|
|
2541
2549
|
[je.spTabs__tooltip]: !0
|
|
2542
|
-
})
|
|
2543
|
-
|
|
2544
|
-
case "md":
|
|
2545
|
-
return "p2";
|
|
2546
|
-
case "lg":
|
|
2547
|
-
return "p1";
|
|
2548
|
-
}
|
|
2549
|
-
};
|
|
2550
|
-
return /* @__PURE__ */ c("div", { className: s, children: t.map((d, u) => {
|
|
2550
|
+
});
|
|
2551
|
+
return /* @__PURE__ */ c("div", { className: p, children: t.map((d, u) => {
|
|
2551
2552
|
const { name: g, active: h, onClick: x, infoTooltipText: b } = d;
|
|
2552
|
-
return /* @__PURE__ */
|
|
2553
|
+
return /* @__PURE__ */ W(
|
|
2553
2554
|
"div",
|
|
2554
2555
|
{
|
|
2555
2556
|
className: _({
|
|
2556
2557
|
[je.spTabs__tabElement]: !0,
|
|
2557
|
-
[je.spTabs__tabElement_active]: h
|
|
2558
|
+
[je.spTabs__tabElement_active]: h,
|
|
2559
|
+
...a && { [a]: !0 }
|
|
2558
2560
|
}),
|
|
2559
2561
|
onClick: x,
|
|
2560
2562
|
children: [
|
|
2561
|
-
/* @__PURE__ */ c(
|
|
2563
|
+
/* @__PURE__ */ c("span", { children: g }),
|
|
2562
2564
|
!!b && /* @__PURE__ */ c(
|
|
2563
2565
|
rt,
|
|
2564
2566
|
{
|
|
2565
2567
|
hover: !0,
|
|
2566
|
-
classNameTooltip:
|
|
2568
|
+
classNameTooltip: l,
|
|
2567
2569
|
text: b,
|
|
2568
|
-
classNameBaseTooltipRoot:
|
|
2570
|
+
classNameBaseTooltipRoot: i
|
|
2569
2571
|
}
|
|
2570
2572
|
)
|
|
2571
2573
|
]
|
|
@@ -2592,7 +2594,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2592
2594
|
[io.spTextWithLabel_ellipsis]: l.isEllipsis,
|
|
2593
2595
|
...s && { [s]: !0 }
|
|
2594
2596
|
});
|
|
2595
|
-
return /* @__PURE__ */
|
|
2597
|
+
return /* @__PURE__ */ W("div", { className: d, children: [
|
|
2596
2598
|
/* @__PURE__ */ c(
|
|
2597
2599
|
Mt,
|
|
2598
2600
|
{
|
|
@@ -2604,10 +2606,10 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2604
2606
|
classNameBaseTooltipRoot: r
|
|
2605
2607
|
}
|
|
2606
2608
|
),
|
|
2607
|
-
/* @__PURE__ */ c(
|
|
2609
|
+
/* @__PURE__ */ c(Ee, { ...l, children: p })
|
|
2608
2610
|
] });
|
|
2609
2611
|
};
|
|
2610
|
-
function
|
|
2612
|
+
function Ae(e, t, o, n) {
|
|
2611
2613
|
function a(i) {
|
|
2612
2614
|
return i instanceof o ? i : new o(function(r) {
|
|
2613
2615
|
r(i);
|
|
@@ -3870,7 +3872,7 @@ const ds = [
|
|
|
3870
3872
|
// Windows
|
|
3871
3873
|
];
|
|
3872
3874
|
function ms(e) {
|
|
3873
|
-
return
|
|
3875
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3874
3876
|
return ot(e) && us(e.dataTransfer) ? gs(e.dataTransfer, e.type) : _s(e) ? fs(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? vs(e) : [];
|
|
3875
3877
|
});
|
|
3876
3878
|
}
|
|
@@ -3887,12 +3889,12 @@ function fs(e) {
|
|
|
3887
3889
|
return jt(e.target.files).map((t) => Pe(t));
|
|
3888
3890
|
}
|
|
3889
3891
|
function vs(e) {
|
|
3890
|
-
return
|
|
3892
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3891
3893
|
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Pe(o));
|
|
3892
3894
|
});
|
|
3893
3895
|
}
|
|
3894
3896
|
function gs(e, t) {
|
|
3895
|
-
return
|
|
3897
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3896
3898
|
if (e.items) {
|
|
3897
3899
|
const o = jt(e.items).filter((a) => a.kind === "file");
|
|
3898
3900
|
if (t !== "drop")
|
|
@@ -3920,7 +3922,7 @@ function xs(e) {
|
|
|
3920
3922
|
if (typeof e.webkitGetAsEntry != "function")
|
|
3921
3923
|
return po(e);
|
|
3922
3924
|
const t = e.webkitGetAsEntry();
|
|
3923
|
-
return t && t.isDirectory ?
|
|
3925
|
+
return t && t.isDirectory ? Ao(t) : po(e, t);
|
|
3924
3926
|
}
|
|
3925
3927
|
function Ro(e) {
|
|
3926
3928
|
return e.reduce((t, o) => [
|
|
@@ -3929,7 +3931,7 @@ function Ro(e) {
|
|
|
3929
3931
|
], []);
|
|
3930
3932
|
}
|
|
3931
3933
|
function po(e, t) {
|
|
3932
|
-
return
|
|
3934
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3933
3935
|
var o;
|
|
3934
3936
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
3935
3937
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -3947,16 +3949,16 @@ function po(e, t) {
|
|
|
3947
3949
|
});
|
|
3948
3950
|
}
|
|
3949
3951
|
function hs(e) {
|
|
3950
|
-
return
|
|
3951
|
-
return e.isDirectory ?
|
|
3952
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3953
|
+
return e.isDirectory ? Ao(e) : bs(e);
|
|
3952
3954
|
});
|
|
3953
3955
|
}
|
|
3954
|
-
function
|
|
3956
|
+
function Ao(e) {
|
|
3955
3957
|
const t = e.createReader();
|
|
3956
3958
|
return new Promise((o, n) => {
|
|
3957
3959
|
const a = [];
|
|
3958
3960
|
function i() {
|
|
3959
|
-
t.readEntries((r) =>
|
|
3961
|
+
t.readEntries((r) => Ae(this, void 0, void 0, function* () {
|
|
3960
3962
|
if (r.length) {
|
|
3961
3963
|
const s = Promise.all(r.map(hs));
|
|
3962
3964
|
a.push(s), i();
|
|
@@ -3975,7 +3977,7 @@ function Fo(e) {
|
|
|
3975
3977
|
});
|
|
3976
3978
|
}
|
|
3977
3979
|
function bs(e) {
|
|
3978
|
-
return
|
|
3980
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3979
3981
|
return new Promise((t, o) => {
|
|
3980
3982
|
e.file((n) => {
|
|
3981
3983
|
const a = Pe(n, e.fullPath);
|
|
@@ -4026,14 +4028,14 @@ function mo(e) {
|
|
|
4026
4028
|
for (var t = 1; t < arguments.length; t++) {
|
|
4027
4029
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4028
4030
|
t % 2 ? co(Object(o), !0).forEach(function(n) {
|
|
4029
|
-
|
|
4031
|
+
Fo(e, n, o[n]);
|
|
4030
4032
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : co(Object(o)).forEach(function(n) {
|
|
4031
4033
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4032
4034
|
});
|
|
4033
4035
|
}
|
|
4034
4036
|
return e;
|
|
4035
4037
|
}
|
|
4036
|
-
function
|
|
4038
|
+
function Fo(e, t, o) {
|
|
4037
4039
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4038
4040
|
}
|
|
4039
4041
|
function He(e, t) {
|
|
@@ -4142,12 +4144,12 @@ function fo(e) {
|
|
|
4142
4144
|
function Rs(e) {
|
|
4143
4145
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
4144
4146
|
}
|
|
4145
|
-
function
|
|
4147
|
+
function As(e) {
|
|
4146
4148
|
return e.indexOf("Edge/") !== -1;
|
|
4147
4149
|
}
|
|
4148
|
-
function
|
|
4150
|
+
function Fs() {
|
|
4149
4151
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
4150
|
-
return Rs(e) ||
|
|
4152
|
+
return Rs(e) || As(e);
|
|
4151
4153
|
}
|
|
4152
4154
|
function Te() {
|
|
4153
4155
|
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
@@ -4170,7 +4172,7 @@ function Ds(e) {
|
|
|
4170
4172
|
return zo(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(Uo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
4171
4173
|
}).reduce(function(o, n) {
|
|
4172
4174
|
var a = He(n, 2), i = a[0], r = a[1];
|
|
4173
|
-
return mo(mo({}, o), {},
|
|
4175
|
+
return mo(mo({}, o), {}, Fo({}, i, r));
|
|
4174
4176
|
}, {});
|
|
4175
4177
|
return [{
|
|
4176
4178
|
// description is required due to https://crbug.com/1264708
|
|
@@ -4213,7 +4215,7 @@ function Vs(e) {
|
|
|
4213
4215
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4214
4216
|
}
|
|
4215
4217
|
function Ys(e) {
|
|
4216
|
-
if (Array.isArray(e)) return
|
|
4218
|
+
if (Array.isArray(e)) return At(e);
|
|
4217
4219
|
}
|
|
4218
4220
|
function St(e, t) {
|
|
4219
4221
|
return Xs(e) || Ks(e, t) || qo(e, t) || Gs();
|
|
@@ -4224,13 +4226,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4224
4226
|
}
|
|
4225
4227
|
function qo(e, t) {
|
|
4226
4228
|
if (e) {
|
|
4227
|
-
if (typeof e == "string") return
|
|
4229
|
+
if (typeof e == "string") return At(e, t);
|
|
4228
4230
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
4229
4231
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
|
4230
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
|
4232
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return At(e, t);
|
|
4231
4233
|
}
|
|
4232
4234
|
}
|
|
4233
|
-
function
|
|
4235
|
+
function At(e, t) {
|
|
4234
4236
|
(t == null || t > e.length) && (t = e.length);
|
|
4235
4237
|
for (var o = 0, n = new Array(t); o < t; o++)
|
|
4236
4238
|
n[o] = e[o];
|
|
@@ -4272,14 +4274,14 @@ function te(e) {
|
|
|
4272
4274
|
for (var t = 1; t < arguments.length; t++) {
|
|
4273
4275
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4274
4276
|
t % 2 ? vo(Object(o), !0).forEach(function(n) {
|
|
4275
|
-
|
|
4277
|
+
Ft(e, n, o[n]);
|
|
4276
4278
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : vo(Object(o)).forEach(function(n) {
|
|
4277
4279
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4278
4280
|
});
|
|
4279
4281
|
}
|
|
4280
4282
|
return e;
|
|
4281
4283
|
}
|
|
4282
|
-
function
|
|
4284
|
+
function Ft(e, t, o) {
|
|
4283
4285
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4284
4286
|
}
|
|
4285
4287
|
function at(e, t) {
|
|
@@ -4505,31 +4507,31 @@ var Bt = {
|
|
|
4505
4507
|
fileRejections: []
|
|
4506
4508
|
};
|
|
4507
4509
|
function Ho() {
|
|
4508
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave, u = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, x = t.onDropRejected, b = t.onFileDialogCancel,
|
|
4510
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave, u = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, x = t.onDropRejected, b = t.onFileDialogCancel, I = t.onFileDialogOpen, j = t.useFsAccessApi, z = t.autoFocus, R = t.preventDropOnDocument, w = t.noClick, m = t.noKeyboard, N = t.noDrag, O = t.noDragEventsBubbling, q = t.onError, G = t.validator, ne = De(function() {
|
|
4509
4511
|
return Ms(o);
|
|
4510
4512
|
}, [o]), me = De(function() {
|
|
4511
4513
|
return Ds(o);
|
|
4512
4514
|
}, [o]), ue = De(function() {
|
|
4513
|
-
return typeof
|
|
4514
|
-
}, [
|
|
4515
|
+
return typeof I == "function" ? I : go;
|
|
4516
|
+
}, [I]), le = De(function() {
|
|
4515
4517
|
return typeof b == "function" ? b : go;
|
|
4516
|
-
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt),
|
|
4517
|
-
!
|
|
4518
|
+
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt), $ = St(M, 2), K = $[0], ee = $[1], f = K.isFocused, v = K.isFileDialogActive, L = ve(typeof window < "u" && window.isSecureContext && j && Bs()), A = function() {
|
|
4519
|
+
!L.current && v && setTimeout(function() {
|
|
4518
4520
|
if (T.current) {
|
|
4519
|
-
var
|
|
4520
|
-
|
|
4521
|
+
var F = T.current.files;
|
|
4522
|
+
F.length || (ee({
|
|
4521
4523
|
type: "closeDialog"
|
|
4522
4524
|
}), le());
|
|
4523
4525
|
}
|
|
4524
4526
|
}, 300);
|
|
4525
4527
|
};
|
|
4526
4528
|
re(function() {
|
|
4527
|
-
return window.addEventListener("focus",
|
|
4528
|
-
window.removeEventListener("focus",
|
|
4529
|
+
return window.addEventListener("focus", A, !1), function() {
|
|
4530
|
+
window.removeEventListener("focus", A, !1);
|
|
4529
4531
|
};
|
|
4530
|
-
}, [T, v, le,
|
|
4531
|
-
var S = ve([]), P = function(
|
|
4532
|
-
Z.current && Z.current.contains(
|
|
4532
|
+
}, [T, v, le, L]);
|
|
4533
|
+
var S = ve([]), P = function(F) {
|
|
4534
|
+
Z.current && Z.current.contains(F.target) || (F.preventDefault(), S.current = []);
|
|
4533
4535
|
};
|
|
4534
4536
|
re(function() {
|
|
4535
4537
|
return R && (document.addEventListener("dragover", fo, !1), document.addEventListener("drop", P, !1)), function() {
|
|
@@ -4540,18 +4542,18 @@ function Ho() {
|
|
|
4540
4542
|
};
|
|
4541
4543
|
}, [Z, z, n]);
|
|
4542
4544
|
var B = he(function(k) {
|
|
4543
|
-
|
|
4544
|
-
}, [
|
|
4545
|
-
k.preventDefault(), k.persist(), Ge(k), S.current = [].concat($s(S.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(
|
|
4546
|
-
if (!(nt(k) && !
|
|
4547
|
-
var ae =
|
|
4548
|
-
files:
|
|
4545
|
+
q ? q(k) : console.error(k);
|
|
4546
|
+
}, [q]), U = he(function(k) {
|
|
4547
|
+
k.preventDefault(), k.persist(), Ge(k), S.current = [].concat($s(S.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(F) {
|
|
4548
|
+
if (!(nt(k) && !O)) {
|
|
4549
|
+
var ae = F.length, se = ae > 0 && js({
|
|
4550
|
+
files: F,
|
|
4549
4551
|
accept: ne,
|
|
4550
4552
|
minSize: r,
|
|
4551
4553
|
maxSize: i,
|
|
4552
4554
|
multiple: s,
|
|
4553
4555
|
maxFiles: p,
|
|
4554
|
-
validator:
|
|
4556
|
+
validator: G
|
|
4555
4557
|
}), ye = ae > 0 && !se;
|
|
4556
4558
|
ee({
|
|
4557
4559
|
isDragAccept: se,
|
|
@@ -4560,33 +4562,33 @@ function Ho() {
|
|
|
4560
4562
|
type: "setDraggedFiles"
|
|
4561
4563
|
}), l && l(k);
|
|
4562
4564
|
}
|
|
4563
|
-
}).catch(function(
|
|
4564
|
-
return B(
|
|
4565
|
+
}).catch(function(F) {
|
|
4566
|
+
return B(F);
|
|
4565
4567
|
});
|
|
4566
|
-
}, [a, l, B,
|
|
4568
|
+
}, [a, l, B, O, ne, r, i, s, p, G]), V = he(function(k) {
|
|
4567
4569
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4568
|
-
var
|
|
4569
|
-
if (
|
|
4570
|
+
var F = et(k);
|
|
4571
|
+
if (F && k.dataTransfer)
|
|
4570
4572
|
try {
|
|
4571
4573
|
k.dataTransfer.dropEffect = "copy";
|
|
4572
4574
|
} catch {
|
|
4573
4575
|
}
|
|
4574
|
-
return
|
|
4575
|
-
}, [u,
|
|
4576
|
+
return F && u && u(k), !1;
|
|
4577
|
+
}, [u, O]), X = he(function(k) {
|
|
4576
4578
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4577
|
-
var
|
|
4579
|
+
var F = S.current.filter(function(se) {
|
|
4578
4580
|
return Z.current && Z.current.contains(se);
|
|
4579
|
-
}), ae =
|
|
4580
|
-
ae !== -1 &&
|
|
4581
|
+
}), ae = F.indexOf(k.target);
|
|
4582
|
+
ae !== -1 && F.splice(ae, 1), S.current = F, !(F.length > 0) && (ee({
|
|
4581
4583
|
type: "setDraggedFiles",
|
|
4582
4584
|
isDragActive: !1,
|
|
4583
4585
|
isDragAccept: !1,
|
|
4584
4586
|
isDragReject: !1
|
|
4585
4587
|
}), et(k) && d && d(k));
|
|
4586
|
-
}, [Z, d,
|
|
4588
|
+
}, [Z, d, O]), H = he(function(k, F) {
|
|
4587
4589
|
var ae = [], se = [];
|
|
4588
4590
|
k.forEach(function(ye) {
|
|
4589
|
-
var We = Oo(ye, ne), Be = St(We, 2), pt = Be[0], lt = Be[1], ct = Wo(ye, r, i), Ke = St(ct, 2), dt = Ke[0], mt = Ke[1], ut =
|
|
4591
|
+
var We = Oo(ye, ne), Be = St(We, 2), pt = Be[0], lt = Be[1], ct = Wo(ye, r, i), Ke = St(ct, 2), dt = Ke[0], mt = Ke[1], ut = G ? G(ye) : null;
|
|
4590
4592
|
if (pt && dt && !ut)
|
|
4591
4593
|
ae.push(ye);
|
|
4592
4594
|
else {
|
|
@@ -4608,17 +4610,17 @@ function Ho() {
|
|
|
4608
4610
|
fileRejections: se,
|
|
4609
4611
|
isDragReject: se.length > 0,
|
|
4610
4612
|
type: "setFiles"
|
|
4611
|
-
}), g && g(ae, se,
|
|
4612
|
-
}, [ee, s, ne, r, i, p, g, h, x,
|
|
4613
|
-
k.preventDefault(), k.persist(), Ge(k), S.current = [], et(k) && Promise.resolve(a(k)).then(function(
|
|
4614
|
-
nt(k) && !
|
|
4615
|
-
}).catch(function(
|
|
4616
|
-
return B(
|
|
4613
|
+
}), g && g(ae, se, F), se.length > 0 && x && x(se, F), ae.length > 0 && h && h(ae, F);
|
|
4614
|
+
}, [ee, s, ne, r, i, p, g, h, x, G]), ie = he(function(k) {
|
|
4615
|
+
k.preventDefault(), k.persist(), Ge(k), S.current = [], et(k) && Promise.resolve(a(k)).then(function(F) {
|
|
4616
|
+
nt(k) && !O || H(F, k);
|
|
4617
|
+
}).catch(function(F) {
|
|
4618
|
+
return B(F);
|
|
4617
4619
|
}), ee({
|
|
4618
4620
|
type: "reset"
|
|
4619
4621
|
});
|
|
4620
|
-
}, [a,
|
|
4621
|
-
if (
|
|
4622
|
+
}, [a, H, B, O]), y = he(function() {
|
|
4623
|
+
if (L.current) {
|
|
4622
4624
|
ee({
|
|
4623
4625
|
type: "openDialog"
|
|
4624
4626
|
}), ue();
|
|
@@ -4626,23 +4628,23 @@ function Ho() {
|
|
|
4626
4628
|
multiple: s,
|
|
4627
4629
|
types: me
|
|
4628
4630
|
};
|
|
4629
|
-
window.showOpenFilePicker(k).then(function(
|
|
4630
|
-
return a(
|
|
4631
|
-
}).then(function(
|
|
4632
|
-
|
|
4631
|
+
window.showOpenFilePicker(k).then(function(F) {
|
|
4632
|
+
return a(F);
|
|
4633
|
+
}).then(function(F) {
|
|
4634
|
+
H(F, null), ee({
|
|
4633
4635
|
type: "closeDialog"
|
|
4634
4636
|
});
|
|
4635
|
-
}).catch(function(
|
|
4636
|
-
Ps(
|
|
4637
|
+
}).catch(function(F) {
|
|
4638
|
+
Ps(F) ? (le(F), ee({
|
|
4637
4639
|
type: "closeDialog"
|
|
4638
|
-
})) : Os(
|
|
4640
|
+
})) : Os(F) ? (L.current = !1, T.current ? (T.current.value = null, T.current.click()) : B(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."))) : B(F);
|
|
4639
4641
|
});
|
|
4640
4642
|
return;
|
|
4641
4643
|
}
|
|
4642
4644
|
T.current && (ee({
|
|
4643
4645
|
type: "openDialog"
|
|
4644
4646
|
}), ue(), T.current.value = null, T.current.click());
|
|
4645
|
-
}, [ee, ue, le, j,
|
|
4647
|
+
}, [ee, ue, le, j, H, B, me, s]), be = he(function(k) {
|
|
4646
4648
|
!Z.current || !Z.current.isEqualNode(k.target) || (k.key === " " || k.key === "Enter" || k.keyCode === 32 || k.keyCode === 13) && (k.preventDefault(), y());
|
|
4647
4649
|
}, [Z, y]), Ie = he(function() {
|
|
4648
4650
|
ee({
|
|
@@ -4653,23 +4655,23 @@ function Ho() {
|
|
|
4653
4655
|
type: "blur"
|
|
4654
4656
|
});
|
|
4655
4657
|
}, []), zt = he(function() {
|
|
4656
|
-
w || (
|
|
4657
|
-
}, [w, y]),
|
|
4658
|
-
return n ? null :
|
|
4659
|
-
}, st = function(
|
|
4660
|
-
return m ? null :
|
|
4661
|
-
}, Ye = function(
|
|
4662
|
-
return N ? null :
|
|
4663
|
-
}, Ge = function(
|
|
4664
|
-
|
|
4658
|
+
w || (Fs() ? setTimeout(y, 0) : y());
|
|
4659
|
+
}, [w, y]), Fe = function(F) {
|
|
4660
|
+
return n ? null : F;
|
|
4661
|
+
}, st = function(F) {
|
|
4662
|
+
return m ? null : Fe(F);
|
|
4663
|
+
}, Ye = function(F) {
|
|
4664
|
+
return N ? null : Fe(F);
|
|
4665
|
+
}, Ge = function(F) {
|
|
4666
|
+
O && F.stopPropagation();
|
|
4665
4667
|
}, Vo = De(function() {
|
|
4666
4668
|
return function() {
|
|
4667
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4668
|
-
return te(te(
|
|
4669
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = k.refKey, ae = F === void 0 ? "ref" : F, se = k.role, ye = k.onKeyDown, We = k.onFocus, Be = k.onBlur, pt = k.onClick, lt = k.onDragEnter, ct = k.onDragOver, Ke = k.onDragLeave, dt = k.onDrop, mt = at(k, Us);
|
|
4670
|
+
return te(te(Ft({
|
|
4669
4671
|
onKeyDown: st(Te(ye, be)),
|
|
4670
4672
|
onFocus: st(Te(We, Ie)),
|
|
4671
4673
|
onBlur: st(Te(Be, Oe)),
|
|
4672
|
-
onClick:
|
|
4674
|
+
onClick: Fe(Te(pt, zt)),
|
|
4673
4675
|
onDragEnter: Ye(Te(lt, U)),
|
|
4674
4676
|
onDragOver: Ye(Te(ct, V)),
|
|
4675
4677
|
onDragLeave: Ye(Te(Ke, X)),
|
|
@@ -4683,7 +4685,7 @@ function Ho() {
|
|
|
4683
4685
|
k.stopPropagation();
|
|
4684
4686
|
}, []), Go = De(function() {
|
|
4685
4687
|
return function() {
|
|
4686
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4688
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = k.refKey, ae = F === void 0 ? "ref" : F, se = k.onChange, ye = k.onClick, We = at(k, qs), Be = Ft({
|
|
4687
4689
|
accept: ne,
|
|
4688
4690
|
multiple: s,
|
|
4689
4691
|
type: "file",
|
|
@@ -4699,20 +4701,20 @@ function Ho() {
|
|
|
4699
4701
|
width: "1px",
|
|
4700
4702
|
whiteSpace: "nowrap"
|
|
4701
4703
|
},
|
|
4702
|
-
onChange:
|
|
4703
|
-
onClick:
|
|
4704
|
+
onChange: Fe(Te(se, ie)),
|
|
4705
|
+
onClick: Fe(Te(ye, Yo)),
|
|
4704
4706
|
tabIndex: -1
|
|
4705
4707
|
}, ae, T);
|
|
4706
4708
|
return te(te({}, Be), We);
|
|
4707
4709
|
};
|
|
4708
4710
|
}, [T, o, s, ie, n]);
|
|
4709
|
-
return te(te({},
|
|
4711
|
+
return te(te({}, K), {}, {
|
|
4710
4712
|
isFocused: f && !n,
|
|
4711
4713
|
getRootProps: Vo,
|
|
4712
4714
|
getInputProps: Go,
|
|
4713
4715
|
rootRef: Z,
|
|
4714
4716
|
inputRef: T,
|
|
4715
|
-
open:
|
|
4717
|
+
open: Fe(y)
|
|
4716
4718
|
});
|
|
4717
4719
|
}
|
|
4718
4720
|
function Qs(e, t) {
|
|
@@ -4817,33 +4819,33 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4817
4819
|
classNameRoot: u,
|
|
4818
4820
|
loading: g,
|
|
4819
4821
|
error: h
|
|
4820
|
-
} = e, [x, b] = oe([]),
|
|
4822
|
+
} = e, [x, b] = oe([]), I = he(
|
|
4821
4823
|
(f, v) => {
|
|
4822
|
-
const
|
|
4824
|
+
const L = v.map(({ file: S, errors: P }) => ({
|
|
4823
4825
|
file: S,
|
|
4824
4826
|
errors: P
|
|
4825
4827
|
}));
|
|
4826
4828
|
if (!s) {
|
|
4827
|
-
b([...
|
|
4829
|
+
b([...L]), a(f, n);
|
|
4828
4830
|
return;
|
|
4829
4831
|
}
|
|
4830
|
-
const
|
|
4831
|
-
b([...
|
|
4832
|
+
const A = [...p, ...f];
|
|
4833
|
+
b([...L, ...x]), a(A, n);
|
|
4832
4834
|
},
|
|
4833
4835
|
[x, p, s, n, a]
|
|
4834
4836
|
), { getRootProps: j, getInputProps: z } = Js({
|
|
4835
4837
|
accept: i,
|
|
4836
|
-
onDrop:
|
|
4838
|
+
onDrop: I,
|
|
4837
4839
|
multiple: s,
|
|
4838
4840
|
disabled: r
|
|
4839
|
-
}), R = x ? (x == null ? void 0 : x.length) > 0 : void 0, w = [...p.map((f) => ({ file: f, errors: null })), ...x], m = (w == null ? void 0 : w.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input",
|
|
4841
|
+
}), R = x ? (x == null ? void 0 : x.length) > 0 : void 0, w = [...p.map((f) => ({ file: f, errors: null })), ...x], m = (w == null ? void 0 : w.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input", O = o === "dropzone", q = _({
|
|
4840
4842
|
[Y.spUploadFiles]: !0,
|
|
4841
4843
|
[Y[`spUploadFiles--variant-${o}`]]: o,
|
|
4842
4844
|
[Y.spUploadFiles_error]: R && !s && h && h.length > 0,
|
|
4843
4845
|
[Y.spUploadFiles_disabled]: r,
|
|
4844
4846
|
[Y.spUploadFiles_fileUploaded]: m,
|
|
4845
4847
|
...u && { [u]: !0 }
|
|
4846
|
-
}),
|
|
4848
|
+
}), G = _({
|
|
4847
4849
|
[Y.spUploadFiles__control]: !0,
|
|
4848
4850
|
[Y.spUploadFiles__control_loading]: g
|
|
4849
4851
|
}), ne = _({
|
|
@@ -4860,11 +4862,11 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4860
4862
|
S.splice(P, 1), b(S);
|
|
4861
4863
|
return;
|
|
4862
4864
|
}
|
|
4863
|
-
const
|
|
4864
|
-
|
|
4865
|
+
const L = [...p], A = L.findIndex((S) => S.name === f);
|
|
4866
|
+
L.splice(A, 1), a(L, n);
|
|
4865
4867
|
}, le = (f) => {
|
|
4866
4868
|
f.stopPropagation(), a([], n), b([]);
|
|
4867
|
-
}, Z = (f) => Object.values(f).flatMap((v) => v.map((
|
|
4869
|
+
}, Z = (f) => Object.values(f).flatMap((v) => v.map((L) => L.toUpperCase())).join(", "), T = () => {
|
|
4868
4870
|
if (R) {
|
|
4869
4871
|
const f = Z(i);
|
|
4870
4872
|
return /* @__PURE__ */ c(
|
|
@@ -4887,14 +4889,14 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4887
4889
|
classNameRoot: _(Y.spUploadFiles__fileName)
|
|
4888
4890
|
}
|
|
4889
4891
|
);
|
|
4890
|
-
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: f, errors: v },
|
|
4891
|
-
const
|
|
4892
|
-
return /* @__PURE__ */
|
|
4892
|
+
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: f, errors: v }, L) => {
|
|
4893
|
+
const A = v ? (v == null ? void 0 : v.length) > 0 : void 0, S = () => v ? v == null ? void 0 : v.map(jp).join(", ") : "";
|
|
4894
|
+
return /* @__PURE__ */ W(
|
|
4893
4895
|
"li",
|
|
4894
4896
|
{
|
|
4895
4897
|
className: _(
|
|
4896
4898
|
Y.spUploadFiles__fileNamesListItem,
|
|
4897
|
-
|
|
4899
|
+
A && Y.spUploadFiles__fileNamesListItem_error
|
|
4898
4900
|
),
|
|
4899
4901
|
onClick: (P) => {
|
|
4900
4902
|
P.stopPropagation();
|
|
@@ -4905,12 +4907,12 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4905
4907
|
{
|
|
4906
4908
|
className: _(
|
|
4907
4909
|
Y.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4908
|
-
|
|
4910
|
+
A && Y.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4909
4911
|
),
|
|
4910
|
-
children: /* @__PURE__ */ c(de, { name:
|
|
4912
|
+
children: /* @__PURE__ */ c(de, { name: A ? D.InfoError : D.File })
|
|
4911
4913
|
}
|
|
4912
4914
|
),
|
|
4913
|
-
/* @__PURE__ */
|
|
4915
|
+
/* @__PURE__ */ W("div", { className: Y.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
4914
4916
|
/* @__PURE__ */ c(
|
|
4915
4917
|
Ue,
|
|
4916
4918
|
{
|
|
@@ -4925,11 +4927,11 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4925
4927
|
/* @__PURE__ */ c(
|
|
4926
4928
|
Ue,
|
|
4927
4929
|
{
|
|
4928
|
-
text:
|
|
4930
|
+
text: A ? S() : Rp(f.size),
|
|
4929
4931
|
classNameBaseTooltipRoot: Y.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4930
4932
|
classNameRoot: _(
|
|
4931
4933
|
Y.spUploadFiles__fileNamesListItem__description,
|
|
4932
|
-
|
|
4934
|
+
A && Y.spUploadFiles__fileNamesListItem__description_error
|
|
4933
4935
|
)
|
|
4934
4936
|
}
|
|
4935
4937
|
)
|
|
@@ -4939,16 +4941,16 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4939
4941
|
{
|
|
4940
4942
|
className: _(Y.spUploadFiles__fileNamesListItemDelete),
|
|
4941
4943
|
onClick: (P) => {
|
|
4942
|
-
P.stopPropagation(), ue(f.name,
|
|
4944
|
+
P.stopPropagation(), ue(f.name, A);
|
|
4943
4945
|
},
|
|
4944
4946
|
children: /* @__PURE__ */ c(de, { name: D.Close })
|
|
4945
4947
|
}
|
|
4946
4948
|
)
|
|
4947
4949
|
]
|
|
4948
4950
|
},
|
|
4949
|
-
|
|
4951
|
+
L
|
|
4950
4952
|
);
|
|
4951
|
-
}) }),
|
|
4953
|
+
}) }), $ = () => s ? M() : T(), K = () => /* @__PURE__ */ c(
|
|
4952
4954
|
Ue,
|
|
4953
4955
|
{
|
|
4954
4956
|
classNameRoot: Y.spUploadFiles__placeholder,
|
|
@@ -4958,8 +4960,8 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4958
4960
|
),
|
|
4959
4961
|
text: t
|
|
4960
4962
|
}
|
|
4961
|
-
), ee = () => /* @__PURE__ */
|
|
4962
|
-
m ?
|
|
4963
|
+
), ee = () => /* @__PURE__ */ W($e, { children: [
|
|
4964
|
+
m ? $() : K(),
|
|
4963
4965
|
m && N ? /* @__PURE__ */ c("div", { className: me, onClick: le, children: /* @__PURE__ */ c(de, { name: D.Close }) }) : N && l && /* @__PURE__ */ c(
|
|
4964
4966
|
rt,
|
|
4965
4967
|
{
|
|
@@ -4977,8 +4979,8 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4977
4979
|
getInputProps: z,
|
|
4978
4980
|
disabled: r,
|
|
4979
4981
|
name: n,
|
|
4980
|
-
children: /* @__PURE__ */
|
|
4981
|
-
|
|
4982
|
+
children: /* @__PURE__ */ W("div", { className: q, children: [
|
|
4983
|
+
O && /* @__PURE__ */ c(
|
|
4982
4984
|
it,
|
|
4983
4985
|
{
|
|
4984
4986
|
hover: !0,
|
|
@@ -4988,7 +4990,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4988
4990
|
trigger: void 0
|
|
4989
4991
|
}
|
|
4990
4992
|
),
|
|
4991
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ W("div", { className: G, children: [
|
|
4992
4994
|
N && (g ? /* @__PURE__ */ c(Dt, {}) : /* @__PURE__ */ c(
|
|
4993
4995
|
de,
|
|
4994
4996
|
{
|
|
@@ -5002,9 +5004,9 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5002
5004
|
] })
|
|
5003
5005
|
}
|
|
5004
5006
|
);
|
|
5005
|
-
},
|
|
5006
|
-
viewImageModal:
|
|
5007
|
-
viewImageModal__img:
|
|
5007
|
+
}, Ap = "_viewImageModal_1xwys_43", Fp = "_viewImageModal__img_1xwys_66", Bp = "_viewImageModal__img_loading_1xwys_79", Dp = "_viewImageModal__img_error_1xwys_82", Mp = "_viewImageModal__spinner_1xwys_85", Pp = "_viewImageModal__layer_1xwys_112", Op = "_viewImageModal__closeButton_1xwys_117", Ne = {
|
|
5008
|
+
viewImageModal: Ap,
|
|
5009
|
+
viewImageModal__img: Fp,
|
|
5008
5010
|
viewImageModal__img_loading: Bp,
|
|
5009
5011
|
viewImageModal__img_error: Dp,
|
|
5010
5012
|
viewImageModal__spinner: Mp,
|
|
@@ -5021,22 +5023,22 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5021
5023
|
showLoader: s = !0,
|
|
5022
5024
|
onClose: p
|
|
5023
5025
|
} = e, [l, d] = oe(!0), [u, g] = oe(!1), [h, x] = oe(n), b = _({
|
|
5024
|
-
[
|
|
5026
|
+
[Ne.viewImageModal]: !0,
|
|
5025
5027
|
...t && { [t]: !0 }
|
|
5026
|
-
}),
|
|
5027
|
-
[
|
|
5028
|
+
}), I = _({
|
|
5029
|
+
[Ne.viewImageModal__layer]: !0
|
|
5028
5030
|
}), j = _({
|
|
5029
|
-
[
|
|
5031
|
+
[Ne.viewImageModal__closeButton]: !0
|
|
5030
5032
|
}), z = _({
|
|
5031
|
-
[
|
|
5032
|
-
}), R = _(
|
|
5033
|
-
[
|
|
5034
|
-
[
|
|
5033
|
+
[Ne.viewImageModal__spinner]: !0
|
|
5034
|
+
}), R = _(Ne.viewImageModal__img, {
|
|
5035
|
+
[Ne.viewImageModal__img_loading]: l,
|
|
5036
|
+
[Ne.viewImageModal__img_error]: u,
|
|
5035
5037
|
...o && { [o]: !0 }
|
|
5036
5038
|
});
|
|
5037
|
-
return /* @__PURE__ */
|
|
5039
|
+
return /* @__PURE__ */ W(yo, { classNameRoot: I, children: [
|
|
5038
5040
|
s && l && /* @__PURE__ */ c(Dt, { classNameRoot: z, size: "xl" }),
|
|
5039
|
-
/* @__PURE__ */
|
|
5041
|
+
/* @__PURE__ */ W("div", { className: b, children: [
|
|
5040
5042
|
/* @__PURE__ */ c(
|
|
5041
5043
|
"img",
|
|
5042
5044
|
{
|
|
@@ -5051,9 +5053,9 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5051
5053
|
}
|
|
5052
5054
|
}
|
|
5053
5055
|
),
|
|
5054
|
-
u && /* @__PURE__ */
|
|
5055
|
-
/* @__PURE__ */ c(de, { name: D.InfoError, className:
|
|
5056
|
-
/* @__PURE__ */ c(
|
|
5056
|
+
u && /* @__PURE__ */ W("div", { className: Ne.viewImage__errorWrapper, children: [
|
|
5057
|
+
/* @__PURE__ */ c(de, { name: D.InfoError, className: Ne.viewImage__errorIcon }),
|
|
5058
|
+
/* @__PURE__ */ c(Ee, { children: "Не удалось загрузить изображение" })
|
|
5057
5059
|
] })
|
|
5058
5060
|
] }),
|
|
5059
5061
|
/* @__PURE__ */ c(
|
|
@@ -5100,7 +5102,7 @@ export {
|
|
|
5100
5102
|
Dt as Spinner,
|
|
5101
5103
|
ol as Table,
|
|
5102
5104
|
nl as Tabs,
|
|
5103
|
-
|
|
5105
|
+
Ee as Text,
|
|
5104
5106
|
al as TextWithLabel,
|
|
5105
5107
|
it as Tooltip,
|
|
5106
5108
|
il as UploadFiles,
|