test-stpr-ui-kit 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/test-stpr-ui-kit.css +1 -1
- package/dist/test-stpr-ui-kit.js +133 -133
- package/dist/test-stpr-ui-kit.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as z, jsx as c, Fragment as jt } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import $e, { useState as ee, useEffect as re, useRef as de, useCallback as xe, useLayoutEffect as xo, createContext as ho, 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,7 +52,7 @@ const me = (e) => {
|
|
|
52
52
|
...n,
|
|
53
53
|
style: a
|
|
54
54
|
});
|
|
55
|
-
}, Sn = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", Rn = "_spAccordion_noPadding_14avc_63", Fn = "_spAccordion_open_14avc_66", An = "_spAccordion__header_14avc_69", jn = "_spAccordion_noOpen_14avc_88", Bn = "_spAccordion__name_14avc_99", Dn = "_spAccordion__name_hiddenExpand_14avc_110", Mn = "_spAccordion__icon_14avc_125",
|
|
55
|
+
}, Sn = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", Rn = "_spAccordion_noPadding_14avc_63", Fn = "_spAccordion_open_14avc_66", An = "_spAccordion__header_14avc_69", jn = "_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", zn = "_spAccordion__icon_open_14avc_134", On = "_spAccordion__childrenWrapper_14avc_141", Wn = "_spAccordion__childrenWrapper_open_14avc_150", Un = "_spAccordion__content_14avc_153", qn = "_spAccordion__content_open_14avc_159", ce = {
|
|
56
56
|
spAccordion: Sn,
|
|
57
57
|
spAccordion_noBorder: Ln,
|
|
58
58
|
spAccordion_noPadding: Rn,
|
|
@@ -64,8 +64,8 @@ const me = (e) => {
|
|
|
64
64
|
"spAccordion__name--level-1": "_spAccordion__name--level-1_14avc_114",
|
|
65
65
|
"spAccordion__name--level-2": "_spAccordion__name--level-2_14avc_117",
|
|
66
66
|
spAccordion__icon: Mn,
|
|
67
|
-
spAccordion__icon_hidden:
|
|
68
|
-
spAccordion__icon_open:
|
|
67
|
+
spAccordion__icon_hidden: Pn,
|
|
68
|
+
spAccordion__icon_open: zn,
|
|
69
69
|
spAccordion__childrenWrapper: On,
|
|
70
70
|
spAccordion__childrenWrapper_open: Wn,
|
|
71
71
|
spAccordion__content: Un,
|
|
@@ -115,8 +115,8 @@ const me = (e) => {
|
|
|
115
115
|
[ce.spAccordion__content]: !0,
|
|
116
116
|
[ce.spAccordion__content_open]: x
|
|
117
117
|
});
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ z("div", { className: A, children: [
|
|
119
|
+
/* @__PURE__ */ z("div", { className: U, children: [
|
|
120
120
|
/* @__PURE__ */ c("div", { className: F, children: /* @__PURE__ */ c("span", { onClick: R, children: t }) }),
|
|
121
121
|
/* @__PURE__ */ c(me, { onClick: R, className: y, name: D.ChevronDown })
|
|
122
122
|
] }),
|
|
@@ -185,7 +185,7 @@ const me = (e) => {
|
|
|
185
185
|
[we.spButton__iconContainer]: !0,
|
|
186
186
|
...U && { [U]: !0 }
|
|
187
187
|
});
|
|
188
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ z(jt, { children: [
|
|
189
189
|
(r || i || g) && /* @__PURE__ */ c("div", { className: O, children: g ? /* @__PURE__ */ c(Bt, { size: "md", classNameRoot: we.spButton__spinner }) : i ? /* @__PURE__ */ c(me, { name: i, rotate: s }) : r || null }),
|
|
190
190
|
!x && u && /* @__PURE__ */ c("div", { className: N, children: u })
|
|
191
191
|
] });
|
|
@@ -244,7 +244,7 @@ const me = (e) => {
|
|
|
244
244
|
}), w = f({
|
|
245
245
|
[We.spApplyButtons__cancel]: !0
|
|
246
246
|
});
|
|
247
|
-
return /* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ z("div", { className: h, children: [
|
|
248
248
|
n && /* @__PURE__ */ c(
|
|
249
249
|
tt,
|
|
250
250
|
{
|
|
@@ -418,8 +418,8 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
418
418
|
}), N = f({
|
|
419
419
|
[ge.modalWrapper__footer]: !0
|
|
420
420
|
});
|
|
421
|
-
return /* @__PURE__ */ c(wo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: w, children: /* @__PURE__ */
|
|
422
|
-
(u || g) && /* @__PURE__ */
|
|
421
|
+
return /* @__PURE__ */ c(wo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: w, children: /* @__PURE__ */ z("div", { className: R, style: s, children: [
|
|
422
|
+
(u || g) && /* @__PURE__ */ z("div", { className: y, children: [
|
|
423
423
|
typeof u == "string" ? /* @__PURE__ */ c(Te, { type: "h3", children: u }) : u,
|
|
424
424
|
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(Te, { children: g }) : g })
|
|
425
425
|
] }),
|
|
@@ -508,7 +508,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
508
508
|
} = e, [l, p] = ee(o);
|
|
509
509
|
return re(() => {
|
|
510
510
|
p(o);
|
|
511
|
-
}, [o]), /* @__PURE__ */
|
|
511
|
+
}, [o]), /* @__PURE__ */ z(jt, { children: [
|
|
512
512
|
t,
|
|
513
513
|
l && /* @__PURE__ */ c(
|
|
514
514
|
wa,
|
|
@@ -548,7 +548,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
548
548
|
return /* @__PURE__ */ c("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ c("div", { className: l, children: o }) });
|
|
549
549
|
});
|
|
550
550
|
Co.displayName = "BaseTooltip";
|
|
551
|
-
const Na = "
|
|
551
|
+
const Na = "_spBreadcrumb_1litt_43", Ea = "_spBreadcrumb__list_1litt_46", Ia = "_spBreadcrumb__listItem_1litt_56", Sa = "_spBreadcrumb__listItem__separator_1litt_61", La = "_spBreadcrumb__listItem__text_1litt_73", Ra = "_spBreadcrumb__listItem_active_1litt_84", Me = {
|
|
552
552
|
spBreadcrumb: Na,
|
|
553
553
|
spBreadcrumb__list: Ea,
|
|
554
554
|
spBreadcrumb__listItem: Ia,
|
|
@@ -567,7 +567,7 @@ const Na = "_spBreadcrumb_z0rec_43", Ea = "_spBreadcrumb__list_z0rec_46", Ia = "
|
|
|
567
567
|
[Me.spBreadcrumb__list]: !0,
|
|
568
568
|
...o && { [o]: !0 }
|
|
569
569
|
});
|
|
570
|
-
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: l }, p) => /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: l }, p) => /* @__PURE__ */ z(
|
|
571
571
|
"li",
|
|
572
572
|
{
|
|
573
573
|
className: f(
|
|
@@ -575,8 +575,8 @@ const Na = "_spBreadcrumb_z0rec_43", Ea = "_spBreadcrumb__list_z0rec_46", Ia = "
|
|
|
575
575
|
l && Me.spBreadcrumb__listItem_active
|
|
576
576
|
),
|
|
577
577
|
children: [
|
|
578
|
-
/* @__PURE__ */ c("
|
|
579
|
-
/* @__PURE__ */ c("
|
|
578
|
+
/* @__PURE__ */ c("div", { className: Me.spBreadcrumb__listItem__separator, children: /* @__PURE__ */ c(me, { name: D.SelectChevronDown, rotate: -90 }) }),
|
|
579
|
+
/* @__PURE__ */ c("span", { title: r, className: Me.spBreadcrumb__listItem__text, onClick: s, children: r })
|
|
580
580
|
]
|
|
581
581
|
},
|
|
582
582
|
p
|
|
@@ -697,7 +697,7 @@ const He = (e) => {
|
|
|
697
697
|
[To.spTooltip]: !0,
|
|
698
698
|
...l && { [l]: !0 }
|
|
699
699
|
}), X = document.body;
|
|
700
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ z(
|
|
701
701
|
"div",
|
|
702
702
|
{
|
|
703
703
|
ref: A,
|
|
@@ -735,15 +735,15 @@ const He = (e) => {
|
|
|
735
735
|
trigger: /* @__PURE__ */ c(me, { name: D.Info })
|
|
736
736
|
}
|
|
737
737
|
);
|
|
738
|
-
}, ja = "_spCheckbox_1ypiv_43", Ba = "_spCheckbox__control_1ypiv_49", Da = "_spCheckbox__label_1ypiv_52", Ma = "_spCheckbox__box_1ypiv_63",
|
|
738
|
+
}, ja = "_spCheckbox_1ypiv_43", Ba = "_spCheckbox__control_1ypiv_49", Da = "_spCheckbox__label_1ypiv_52", Ma = "_spCheckbox__box_1ypiv_63", Pa = "_spCheckbox__box_checked_1ypiv_90", za = "_spCheckbox__box_disabled_1ypiv_100", Oa = "_spCheckbox__box_error_1ypiv_111", Wa = "_spCheckbox__tooltip_1ypiv_114", Ua = "_spCheckbox__required_1ypiv_119", qa = "_spCheckbox__error_1ypiv_125", Ce = {
|
|
739
739
|
spCheckbox: ja,
|
|
740
740
|
spCheckbox__control: Ba,
|
|
741
741
|
spCheckbox__label: Da,
|
|
742
742
|
spCheckbox__box: Ma,
|
|
743
743
|
"spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_1ypiv_68",
|
|
744
744
|
"spCheckbox__box--size-md": "_spCheckbox__box--size-md_1ypiv_73",
|
|
745
|
-
spCheckbox__box_checked:
|
|
746
|
-
spCheckbox__box_disabled:
|
|
745
|
+
spCheckbox__box_checked: Pa,
|
|
746
|
+
spCheckbox__box_disabled: za,
|
|
747
747
|
spCheckbox__box_error: Oa,
|
|
748
748
|
spCheckbox__tooltip: Wa,
|
|
749
749
|
spCheckbox__required: Ua,
|
|
@@ -785,8 +785,8 @@ const He = (e) => {
|
|
|
785
785
|
}), m = f({
|
|
786
786
|
[Ce.spCheckbox__tooltip]: !0
|
|
787
787
|
});
|
|
788
|
-
return /* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
788
|
+
return /* @__PURE__ */ z("div", { className: w, onMouseEnter: g, children: [
|
|
789
|
+
/* @__PURE__ */ z("label", { className: R, children: [
|
|
790
790
|
/* @__PURE__ */ c(
|
|
791
791
|
"input",
|
|
792
792
|
{
|
|
@@ -815,7 +815,7 @@ const He = (e) => {
|
|
|
815
815
|
});
|
|
816
816
|
return /* @__PURE__ */ c("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
817
817
|
const r = i.key === "delete";
|
|
818
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ z(
|
|
819
819
|
"li",
|
|
820
820
|
{
|
|
821
821
|
className: f({
|
|
@@ -835,7 +835,7 @@ const He = (e) => {
|
|
|
835
835
|
}) });
|
|
836
836
|
}, Ya = (e) => {
|
|
837
837
|
const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
|
|
838
|
-
return /* @__PURE__ */
|
|
838
|
+
return /* @__PURE__ */ z("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
839
839
|
/* @__PURE__ */ c("input", { ...i({}), disabled: n, name: a }),
|
|
840
840
|
o
|
|
841
841
|
] });
|
|
@@ -875,9 +875,9 @@ const He = (e) => {
|
|
|
875
875
|
hover: !1,
|
|
876
876
|
triggerAction: () => h(!0),
|
|
877
877
|
actionOnClose: () => h(!1),
|
|
878
|
-
text: /* @__PURE__ */
|
|
878
|
+
text: /* @__PURE__ */ z("div", { className: p, children: [
|
|
879
879
|
o && /* @__PURE__ */ c("div", { className: d, children: o }),
|
|
880
|
-
n.map((w, R) => /* @__PURE__ */
|
|
880
|
+
n.map((w, R) => /* @__PURE__ */ z(
|
|
881
881
|
"div",
|
|
882
882
|
{
|
|
883
883
|
className: f({
|
|
@@ -897,7 +897,7 @@ const He = (e) => {
|
|
|
897
897
|
noPadding: !0,
|
|
898
898
|
isToggleClick: !0,
|
|
899
899
|
isStopPropagationClickOnTrigger: !0,
|
|
900
|
-
trigger: /* @__PURE__ */
|
|
900
|
+
trigger: /* @__PURE__ */ z("div", { className: r, children: [
|
|
901
901
|
/* @__PURE__ */ c("div", { className: s, children: t }),
|
|
902
902
|
/* @__PURE__ */ c("div", { className: l, children: /* @__PURE__ */ c(me, { name: D.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
903
903
|
] })
|
|
@@ -990,7 +990,7 @@ const He = (e) => {
|
|
|
990
990
|
}), d = f({
|
|
991
991
|
[Ze.spLabel__tooltip]: !0
|
|
992
992
|
});
|
|
993
|
-
return /* @__PURE__ */
|
|
993
|
+
return /* @__PURE__ */ z("div", { className: s, children: [
|
|
994
994
|
/* @__PURE__ */ c("label", { className: l, children: o }),
|
|
995
995
|
t && /* @__PURE__ */ c("div", { className: p, children: "*" }),
|
|
996
996
|
n && /* @__PURE__ */ c(
|
|
@@ -1066,7 +1066,7 @@ const He = (e) => {
|
|
|
1066
1066
|
const { value: q, name: V } = M.target;
|
|
1067
1067
|
g && q && !new RegExp(g).test(q) || n(M, { value: q, name: V });
|
|
1068
1068
|
};
|
|
1069
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ z("div", { className: O, children: [
|
|
1070
1070
|
a && /* @__PURE__ */ c(
|
|
1071
1071
|
Dt,
|
|
1072
1072
|
{
|
|
@@ -1078,7 +1078,7 @@ const He = (e) => {
|
|
|
1078
1078
|
classNameBaseTooltipRoot: m
|
|
1079
1079
|
}
|
|
1080
1080
|
),
|
|
1081
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ z("div", { className: G, onMouseEnter: h, children: [
|
|
1082
1082
|
/* @__PURE__ */ c(
|
|
1083
1083
|
"input",
|
|
1084
1084
|
{
|
|
@@ -1232,15 +1232,15 @@ function ji(e, t, o) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
var Bi = ji;
|
|
1234
1234
|
const Di = /* @__PURE__ */ No(Bi);
|
|
1235
|
-
var Mi = /[A-Z]/g,
|
|
1236
|
-
function
|
|
1235
|
+
var Mi = /[A-Z]/g, Pi = /^ms-/, vt = {};
|
|
1236
|
+
function zi(e) {
|
|
1237
1237
|
return "-" + e.toLowerCase();
|
|
1238
1238
|
}
|
|
1239
1239
|
function Io(e) {
|
|
1240
1240
|
if (vt.hasOwnProperty(e))
|
|
1241
1241
|
return vt[e];
|
|
1242
|
-
var t = e.replace(Mi,
|
|
1243
|
-
return vt[e] =
|
|
1242
|
+
var t = e.replace(Mi, zi);
|
|
1243
|
+
return vt[e] = Pi.test(t) ? "-" + t : t;
|
|
1244
1244
|
}
|
|
1245
1245
|
function Oi(e, t) {
|
|
1246
1246
|
if (e === t)
|
|
@@ -1364,14 +1364,14 @@ function Ui() {
|
|
|
1364
1364
|
case u:
|
|
1365
1365
|
return Se;
|
|
1366
1366
|
default:
|
|
1367
|
-
var
|
|
1368
|
-
switch (
|
|
1367
|
+
var ze = Se && Se.$$typeof;
|
|
1368
|
+
switch (ze) {
|
|
1369
1369
|
case s:
|
|
1370
1370
|
case d:
|
|
1371
1371
|
case x:
|
|
1372
1372
|
case h:
|
|
1373
1373
|
case r:
|
|
1374
|
-
return
|
|
1374
|
+
return ze;
|
|
1375
1375
|
default:
|
|
1376
1376
|
return he;
|
|
1377
1377
|
}
|
|
@@ -1400,7 +1400,7 @@ function Ui() {
|
|
|
1400
1400
|
function I(b) {
|
|
1401
1401
|
return y(b) === d;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function P(b) {
|
|
1404
1404
|
return y(b) === n;
|
|
1405
1405
|
}
|
|
1406
1406
|
function B(b) {
|
|
@@ -1421,7 +1421,7 @@ function Ui() {
|
|
|
1421
1421
|
function ie(b) {
|
|
1422
1422
|
return y(b) === u;
|
|
1423
1423
|
}
|
|
1424
|
-
Q.AsyncMode = m, Q.ConcurrentMode = N, Q.ContextConsumer = O, Q.ContextProvider = G, Q.Element = J, Q.ForwardRef = ne, Q.Fragment = ue, Q.Lazy = _e, Q.Memo = pe, Q.Portal = X, Q.Profiler = T, Q.StrictMode = M, Q.Suspense = q, Q.isAsyncMode = te, Q.isConcurrentMode = _, Q.isContextConsumer = v, Q.isContextProvider = S, Q.isElement = L, Q.isForwardRef = I, Q.isFragment =
|
|
1424
|
+
Q.AsyncMode = m, Q.ConcurrentMode = N, Q.ContextConsumer = O, Q.ContextProvider = G, Q.Element = J, Q.ForwardRef = ne, Q.Fragment = ue, Q.Lazy = _e, Q.Memo = pe, Q.Portal = X, Q.Profiler = T, Q.StrictMode = M, Q.Suspense = q, Q.isAsyncMode = te, Q.isConcurrentMode = _, Q.isContextConsumer = v, Q.isContextProvider = S, Q.isElement = L, Q.isForwardRef = I, Q.isFragment = P, Q.isLazy = B, Q.isMemo = W, Q.isPortal = H, Q.isProfiler = K, Q.isStrictMode = $, Q.isSuspense = ie, Q.isValidElementType = F, Q.typeOf = y;
|
|
1425
1425
|
}()), Q;
|
|
1426
1426
|
}
|
|
1427
1427
|
var Xt;
|
|
@@ -1480,7 +1480,7 @@ function qi() {
|
|
|
1480
1480
|
}, gt;
|
|
1481
1481
|
}
|
|
1482
1482
|
var xt, Qt;
|
|
1483
|
-
function
|
|
1483
|
+
function Pt() {
|
|
1484
1484
|
if (Qt) return xt;
|
|
1485
1485
|
Qt = 1;
|
|
1486
1486
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -1497,7 +1497,7 @@ function $i() {
|
|
|
1497
1497
|
var e = function() {
|
|
1498
1498
|
};
|
|
1499
1499
|
if (process.env.NODE_ENV !== "production") {
|
|
1500
|
-
var t =
|
|
1500
|
+
var t = Pt(), o = {}, n = Lo();
|
|
1501
1501
|
e = function(i) {
|
|
1502
1502
|
var r = "Warning: " + i;
|
|
1503
1503
|
typeof console < "u" && console.error(r);
|
|
@@ -1543,7 +1543,7 @@ var yt, to;
|
|
|
1543
1543
|
function Hi() {
|
|
1544
1544
|
if (to) return yt;
|
|
1545
1545
|
to = 1;
|
|
1546
|
-
var e = So(), t = qi(), o =
|
|
1546
|
+
var e = So(), t = qi(), o = Pt(), n = Lo(), a = $i(), i = function() {
|
|
1547
1547
|
};
|
|
1548
1548
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1549
1549
|
var l = "Warning: " + s;
|
|
@@ -1594,7 +1594,7 @@ function Hi() {
|
|
|
1594
1594
|
function R(_) {
|
|
1595
1595
|
if (process.env.NODE_ENV !== "production")
|
|
1596
1596
|
var v = {}, S = 0;
|
|
1597
|
-
function L(
|
|
1597
|
+
function L(P, B, W, H, K, $, ie) {
|
|
1598
1598
|
if (H = H || g, $ = $ || W, ie !== o) {
|
|
1599
1599
|
if (l) {
|
|
1600
1600
|
var b = new Error(
|
|
@@ -1609,18 +1609,18 @@ function Hi() {
|
|
|
1609
1609
|
), v[he] = !0, S++);
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
|
-
return B[W] == null ?
|
|
1612
|
+
return B[W] == null ? P ? B[W] === null ? new w("The " + K + " `" + $ + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new w("The " + K + " `" + $ + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : _(B, W, H, K, $);
|
|
1613
1613
|
}
|
|
1614
1614
|
var I = L.bind(null, !1);
|
|
1615
1615
|
return I.isRequired = L.bind(null, !0), I;
|
|
1616
1616
|
}
|
|
1617
1617
|
function A(_) {
|
|
1618
|
-
function v(S, L, I,
|
|
1618
|
+
function v(S, L, I, P, B, W) {
|
|
1619
1619
|
var H = S[L], K = M(H);
|
|
1620
1620
|
if (K !== _) {
|
|
1621
1621
|
var $ = q(H);
|
|
1622
1622
|
return new w(
|
|
1623
|
-
"Invalid " +
|
|
1623
|
+
"Invalid " + P + " `" + B + "` of type " + ("`" + $ + "` supplied to `" + I + "`, expected ") + ("`" + _ + "`."),
|
|
1624
1624
|
{ expectedType: _ }
|
|
1625
1625
|
);
|
|
1626
1626
|
}
|
|
@@ -1632,16 +1632,16 @@ function Hi() {
|
|
|
1632
1632
|
return R(r);
|
|
1633
1633
|
}
|
|
1634
1634
|
function F(_) {
|
|
1635
|
-
function v(S, L, I,
|
|
1635
|
+
function v(S, L, I, P, B) {
|
|
1636
1636
|
if (typeof _ != "function")
|
|
1637
1637
|
return new w("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1638
1638
|
var W = S[L];
|
|
1639
1639
|
if (!Array.isArray(W)) {
|
|
1640
1640
|
var H = M(W);
|
|
1641
|
-
return new w("Invalid " +
|
|
1641
|
+
return new w("Invalid " + P + " `" + B + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an array."));
|
|
1642
1642
|
}
|
|
1643
1643
|
for (var K = 0; K < W.length; K++) {
|
|
1644
|
-
var $ = _(W, K, I,
|
|
1644
|
+
var $ = _(W, K, I, P, B + "[" + K + "]", o);
|
|
1645
1645
|
if ($ instanceof Error)
|
|
1646
1646
|
return $;
|
|
1647
1647
|
}
|
|
@@ -1650,32 +1650,32 @@ function Hi() {
|
|
|
1650
1650
|
return R(v);
|
|
1651
1651
|
}
|
|
1652
1652
|
function y() {
|
|
1653
|
-
function _(v, S, L, I,
|
|
1653
|
+
function _(v, S, L, I, P) {
|
|
1654
1654
|
var B = v[S];
|
|
1655
1655
|
if (!s(B)) {
|
|
1656
1656
|
var W = M(B);
|
|
1657
|
-
return new w("Invalid " + I + " `" +
|
|
1657
|
+
return new w("Invalid " + I + " `" + P + "` of type " + ("`" + W + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
1658
1658
|
}
|
|
1659
1659
|
return null;
|
|
1660
1660
|
}
|
|
1661
1661
|
return R(_);
|
|
1662
1662
|
}
|
|
1663
1663
|
function m() {
|
|
1664
|
-
function _(v, S, L, I,
|
|
1664
|
+
function _(v, S, L, I, P) {
|
|
1665
1665
|
var B = v[S];
|
|
1666
1666
|
if (!e.isValidElementType(B)) {
|
|
1667
1667
|
var W = M(B);
|
|
1668
|
-
return new w("Invalid " + I + " `" +
|
|
1668
|
+
return new w("Invalid " + I + " `" + P + "` of type " + ("`" + W + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
1669
1669
|
}
|
|
1670
1670
|
return null;
|
|
1671
1671
|
}
|
|
1672
1672
|
return R(_);
|
|
1673
1673
|
}
|
|
1674
1674
|
function N(_) {
|
|
1675
|
-
function v(S, L, I,
|
|
1675
|
+
function v(S, L, I, P, B) {
|
|
1676
1676
|
if (!(S[L] instanceof _)) {
|
|
1677
1677
|
var W = _.name || g, H = te(S[L]);
|
|
1678
|
-
return new w("Invalid " +
|
|
1678
|
+
return new w("Invalid " + P + " `" + B + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected ") + ("instance of `" + W + "`."));
|
|
1679
1679
|
}
|
|
1680
1680
|
return null;
|
|
1681
1681
|
}
|
|
@@ -1686,7 +1686,7 @@ function Hi() {
|
|
|
1686
1686
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1687
1687
|
"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])."
|
|
1688
1688
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1689
|
-
function v(S, L, I,
|
|
1689
|
+
function v(S, L, I, P, B) {
|
|
1690
1690
|
for (var W = S[L], H = 0; H < _.length; H++)
|
|
1691
1691
|
if (x(W, _[H]))
|
|
1692
1692
|
return null;
|
|
@@ -1694,20 +1694,20 @@ function Hi() {
|
|
|
1694
1694
|
var he = q(b);
|
|
1695
1695
|
return he === "symbol" ? String(b) : b;
|
|
1696
1696
|
});
|
|
1697
|
-
return new w("Invalid " +
|
|
1697
|
+
return new w("Invalid " + P + " `" + B + "` of value `" + String(W) + "` " + ("supplied to `" + I + "`, expected one of " + K + "."));
|
|
1698
1698
|
}
|
|
1699
1699
|
return R(v);
|
|
1700
1700
|
}
|
|
1701
1701
|
function G(_) {
|
|
1702
|
-
function v(S, L, I,
|
|
1702
|
+
function v(S, L, I, P, B) {
|
|
1703
1703
|
if (typeof _ != "function")
|
|
1704
1704
|
return new w("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1705
1705
|
var W = S[L], H = M(W);
|
|
1706
1706
|
if (H !== "object")
|
|
1707
|
-
return new w("Invalid " +
|
|
1707
|
+
return new w("Invalid " + P + " `" + B + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an object."));
|
|
1708
1708
|
for (var K in W)
|
|
1709
1709
|
if (n(W, K)) {
|
|
1710
|
-
var $ = _(W, K, I,
|
|
1710
|
+
var $ = _(W, K, I, P, B + "." + K, o);
|
|
1711
1711
|
if ($ instanceof Error)
|
|
1712
1712
|
return $;
|
|
1713
1713
|
}
|
|
@@ -1725,9 +1725,9 @@ function Hi() {
|
|
|
1725
1725
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(S) + " at index " + v + "."
|
|
1726
1726
|
), r;
|
|
1727
1727
|
}
|
|
1728
|
-
function L(I,
|
|
1728
|
+
function L(I, P, B, W, H) {
|
|
1729
1729
|
for (var K = [], $ = 0; $ < _.length; $++) {
|
|
1730
|
-
var ie = _[$], b = ie(I,
|
|
1730
|
+
var ie = _[$], b = ie(I, P, B, W, H, o);
|
|
1731
1731
|
if (b == null)
|
|
1732
1732
|
return null;
|
|
1733
1733
|
b.data && n(b.data, "expectedType") && K.push(b.data.expectedType);
|
|
@@ -1738,8 +1738,8 @@ function Hi() {
|
|
|
1738
1738
|
return R(L);
|
|
1739
1739
|
}
|
|
1740
1740
|
function ne() {
|
|
1741
|
-
function _(v, S, L, I,
|
|
1742
|
-
return X(v[S]) ? null : new w("Invalid " + I + " `" +
|
|
1741
|
+
function _(v, S, L, I, P) {
|
|
1742
|
+
return X(v[S]) ? null : new w("Invalid " + I + " `" + P + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
1743
1743
|
}
|
|
1744
1744
|
return R(_);
|
|
1745
1745
|
}
|
|
@@ -1749,15 +1749,15 @@ function Hi() {
|
|
|
1749
1749
|
);
|
|
1750
1750
|
}
|
|
1751
1751
|
function _e(_) {
|
|
1752
|
-
function v(S, L, I,
|
|
1752
|
+
function v(S, L, I, P, B) {
|
|
1753
1753
|
var W = S[L], H = M(W);
|
|
1754
1754
|
if (H !== "object")
|
|
1755
|
-
return new w("Invalid " +
|
|
1755
|
+
return new w("Invalid " + P + " `" + B + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1756
1756
|
for (var K in _) {
|
|
1757
1757
|
var $ = _[K];
|
|
1758
1758
|
if (typeof $ != "function")
|
|
1759
|
-
return ue(I,
|
|
1760
|
-
var ie = $(W, K, I,
|
|
1759
|
+
return ue(I, P, B, K, q($));
|
|
1760
|
+
var ie = $(W, K, I, P, B + "." + K, o);
|
|
1761
1761
|
if (ie)
|
|
1762
1762
|
return ie;
|
|
1763
1763
|
}
|
|
@@ -1766,21 +1766,21 @@ function Hi() {
|
|
|
1766
1766
|
return R(v);
|
|
1767
1767
|
}
|
|
1768
1768
|
function pe(_) {
|
|
1769
|
-
function v(S, L, I,
|
|
1769
|
+
function v(S, L, I, P, B) {
|
|
1770
1770
|
var W = S[L], H = M(W);
|
|
1771
1771
|
if (H !== "object")
|
|
1772
|
-
return new w("Invalid " +
|
|
1772
|
+
return new w("Invalid " + P + " `" + B + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1773
1773
|
var K = t({}, S[L], _);
|
|
1774
1774
|
for (var $ in K) {
|
|
1775
1775
|
var ie = _[$];
|
|
1776
1776
|
if (n(_, $) && typeof ie != "function")
|
|
1777
|
-
return ue(I,
|
|
1777
|
+
return ue(I, P, B, $, q(ie));
|
|
1778
1778
|
if (!ie)
|
|
1779
1779
|
return new w(
|
|
1780
|
-
"Invalid " +
|
|
1780
|
+
"Invalid " + P + " `" + B + "` key `" + $ + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(S[L], null, " ") + `
|
|
1781
1781
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
1782
1782
|
);
|
|
1783
|
-
var b = ie(W, $, I,
|
|
1783
|
+
var b = ie(W, $, I, P, B + "." + $, o);
|
|
1784
1784
|
if (b)
|
|
1785
1785
|
return b;
|
|
1786
1786
|
}
|
|
@@ -1864,7 +1864,7 @@ var wt, oo;
|
|
|
1864
1864
|
function Vi() {
|
|
1865
1865
|
if (oo) return wt;
|
|
1866
1866
|
oo = 1;
|
|
1867
|
-
var e =
|
|
1867
|
+
var e = Pt();
|
|
1868
1868
|
function t() {
|
|
1869
1869
|
}
|
|
1870
1870
|
function o() {
|
|
@@ -2113,7 +2113,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2113
2113
|
}), x = {
|
|
2114
2114
|
"--progress": `${p / r * 100}%`
|
|
2115
2115
|
};
|
|
2116
|
-
return /* @__PURE__ */
|
|
2116
|
+
return /* @__PURE__ */ z("div", { className: u, children: [
|
|
2117
2117
|
/* @__PURE__ */ c(
|
|
2118
2118
|
"div",
|
|
2119
2119
|
{
|
|
@@ -2122,7 +2122,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2122
2122
|
children: i
|
|
2123
2123
|
}
|
|
2124
2124
|
),
|
|
2125
|
-
d && /* @__PURE__ */
|
|
2125
|
+
d && /* @__PURE__ */ z(Te, { classNameRoot: g, children: [
|
|
2126
2126
|
p,
|
|
2127
2127
|
"%"
|
|
2128
2128
|
] })
|
|
@@ -2205,7 +2205,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2205
2205
|
[fe.spSelect__error_absolutePosition]: A,
|
|
2206
2206
|
...F && { [F]: !0 }
|
|
2207
2207
|
});
|
|
2208
|
-
return /* @__PURE__ */
|
|
2208
|
+
return /* @__PURE__ */ z("div", { className: _e, ref: G, children: [
|
|
2209
2209
|
p && /* @__PURE__ */ c(
|
|
2210
2210
|
Dt,
|
|
2211
2211
|
{
|
|
@@ -2217,8 +2217,8 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2217
2217
|
classNameBaseTooltipRoot: m
|
|
2218
2218
|
}
|
|
2219
2219
|
),
|
|
2220
|
-
/* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2220
|
+
/* @__PURE__ */ z("div", { className: pe, onMouseEnter: s, children: [
|
|
2221
|
+
/* @__PURE__ */ z(
|
|
2222
2222
|
"div",
|
|
2223
2223
|
{
|
|
2224
2224
|
tabIndex: g ? -1 : 0,
|
|
@@ -2245,7 +2245,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2245
2245
|
style: R ? { maxHeight: `${x}px` } : {},
|
|
2246
2246
|
children: t.map((v) => {
|
|
2247
2247
|
const S = v.value === n;
|
|
2248
|
-
return /* @__PURE__ */
|
|
2248
|
+
return /* @__PURE__ */ z(
|
|
2249
2249
|
"div",
|
|
2250
2250
|
{
|
|
2251
2251
|
className: f({
|
|
@@ -2265,9 +2265,9 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2265
2265
|
] }),
|
|
2266
2266
|
l && /* @__PURE__ */ c("div", { className: te, children: l })
|
|
2267
2267
|
] });
|
|
2268
|
-
},
|
|
2269
|
-
skeleton:
|
|
2270
|
-
skeleton_circle:
|
|
2268
|
+
}, Pr = "_skeleton_155t5_43", zr = "_skeleton_circle_155t5_52", Or = "_skeleton_customStart_155t5_55", Wr = "_skeleton_customEnd_155t5_58", Je = {
|
|
2269
|
+
skeleton: Pr,
|
|
2270
|
+
skeleton_circle: zr,
|
|
2271
2271
|
skeleton_customStart: Or,
|
|
2272
2272
|
skeleton_customEnd: Wr
|
|
2273
2273
|
}, op = (e) => {
|
|
@@ -2349,11 +2349,11 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2349
2349
|
const N = y[m.key];
|
|
2350
2350
|
if (!N) return null;
|
|
2351
2351
|
const [O, G] = N.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2352
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ z("span", { children: [
|
|
2353
2353
|
O,
|
|
2354
2354
|
G && /* @__PURE__ */ c("span", { className: p, children: ` ${G}` })
|
|
2355
2355
|
] });
|
|
2356
|
-
}, A = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */
|
|
2356
|
+
}, A = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ z("table", { className: s, children: [
|
|
2357
2357
|
/* @__PURE__ */ c("colgroup", { children: r.map((y, m, N) => /* @__PURE__ */ c(
|
|
2358
2358
|
"col",
|
|
2359
2359
|
{
|
|
@@ -2370,7 +2370,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2370
2370
|
"td",
|
|
2371
2371
|
{
|
|
2372
2372
|
onMouseLeave: G ? x : void 0,
|
|
2373
|
-
children: /* @__PURE__ */
|
|
2373
|
+
children: /* @__PURE__ */ z("div", { className: l, children: [
|
|
2374
2374
|
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? R({ row: y, col: N }) : y[N.key] }),
|
|
2375
2375
|
!It(y[N.key]) && N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2376
2376
|
me,
|
|
@@ -2406,7 +2406,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2406
2406
|
if (It(y[N.key]))
|
|
2407
2407
|
return null;
|
|
2408
2408
|
const G = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2409
|
-
return /* @__PURE__ */
|
|
2409
|
+
return /* @__PURE__ */ z(
|
|
2410
2410
|
"div",
|
|
2411
2411
|
{
|
|
2412
2412
|
className: f({
|
|
@@ -2423,7 +2423,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2423
2423
|
children: N.title
|
|
2424
2424
|
}
|
|
2425
2425
|
),
|
|
2426
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ z(
|
|
2427
2427
|
"div",
|
|
2428
2428
|
{
|
|
2429
2429
|
className: f({
|
|
@@ -2497,7 +2497,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2497
2497
|
};
|
|
2498
2498
|
return /* @__PURE__ */ c("div", { className: s, children: t.map((d, u) => {
|
|
2499
2499
|
const { name: g, active: h, onClick: x, infoTooltipText: w } = d;
|
|
2500
|
-
return /* @__PURE__ */
|
|
2500
|
+
return /* @__PURE__ */ z(
|
|
2501
2501
|
"div",
|
|
2502
2502
|
{
|
|
2503
2503
|
className: f({
|
|
@@ -2540,7 +2540,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2540
2540
|
[ao.spTextWithLabel_ellipsis]: p.isEllipsis,
|
|
2541
2541
|
...s && { [s]: !0 }
|
|
2542
2542
|
});
|
|
2543
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ z("div", { className: d, children: [
|
|
2544
2544
|
/* @__PURE__ */ c(
|
|
2545
2545
|
Dt,
|
|
2546
2546
|
{
|
|
@@ -3785,7 +3785,7 @@ const ss = /* @__PURE__ */ new Map([
|
|
|
3785
3785
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
3786
3786
|
["zsh", "text/x-scriptzsh"]
|
|
3787
3787
|
]);
|
|
3788
|
-
function
|
|
3788
|
+
function Pe(e, t, o) {
|
|
3789
3789
|
const n = ls(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
3790
3790
|
return typeof n.path != "string" && io(n, "path", i), io(n, "relativePath", i), n;
|
|
3791
3791
|
}
|
|
@@ -3832,11 +3832,11 @@ function ot(e) {
|
|
|
3832
3832
|
return typeof e == "object" && e !== null;
|
|
3833
3833
|
}
|
|
3834
3834
|
function us(e) {
|
|
3835
|
-
return St(e.target.files).map((t) =>
|
|
3835
|
+
return St(e.target.files).map((t) => Pe(t));
|
|
3836
3836
|
}
|
|
3837
3837
|
function _s(e) {
|
|
3838
3838
|
return Ae(this, void 0, void 0, function* () {
|
|
3839
|
-
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) =>
|
|
3839
|
+
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Pe(o));
|
|
3840
3840
|
});
|
|
3841
3841
|
}
|
|
3842
3842
|
function fs(e, t) {
|
|
@@ -3848,7 +3848,7 @@ function fs(e, t) {
|
|
|
3848
3848
|
const n = yield Promise.all(o.map(vs));
|
|
3849
3849
|
return ro(Ao(n));
|
|
3850
3850
|
}
|
|
3851
|
-
return ro(St(e.files).map((o) =>
|
|
3851
|
+
return ro(St(e.files).map((o) => Pe(o)));
|
|
3852
3852
|
});
|
|
3853
3853
|
}
|
|
3854
3854
|
function ro(e) {
|
|
@@ -3885,13 +3885,13 @@ function so(e, t) {
|
|
|
3885
3885
|
throw new Error(`${e} is not a File`);
|
|
3886
3886
|
if (i !== void 0) {
|
|
3887
3887
|
const r = yield i.getFile();
|
|
3888
|
-
return r.handle = i,
|
|
3888
|
+
return r.handle = i, Pe(r);
|
|
3889
3889
|
}
|
|
3890
3890
|
}
|
|
3891
3891
|
const n = e.getAsFile();
|
|
3892
3892
|
if (!n)
|
|
3893
3893
|
throw new Error(`${e} is not a File`);
|
|
3894
|
-
return
|
|
3894
|
+
return Pe(n, (o = t == null ? void 0 : t.fullPath) !== null && o !== void 0 ? o : void 0);
|
|
3895
3895
|
});
|
|
3896
3896
|
}
|
|
3897
3897
|
function gs(e) {
|
|
@@ -3926,7 +3926,7 @@ function xs(e) {
|
|
|
3926
3926
|
return Ae(this, void 0, void 0, function* () {
|
|
3927
3927
|
return new Promise((t, o) => {
|
|
3928
3928
|
e.file((n) => {
|
|
3929
|
-
const a =
|
|
3929
|
+
const a = Pe(n, e.fullPath);
|
|
3930
3930
|
t(a);
|
|
3931
3931
|
}, (n) => {
|
|
3932
3932
|
o(n);
|
|
@@ -4027,10 +4027,10 @@ function Cs(e, t) {
|
|
|
4027
4027
|
function ks(e) {
|
|
4028
4028
|
if (Array.isArray(e)) return e;
|
|
4029
4029
|
}
|
|
4030
|
-
var Ts = typeof kt == "function" ? kt : kt.default, Mo = "file-invalid-type",
|
|
4030
|
+
var Ts = typeof kt == "function" ? kt : kt.default, Mo = "file-invalid-type", Po = "file-too-large", zo = "file-too-small", Ns = "too-many-files", Tt = {
|
|
4031
4031
|
FileInvalidType: Mo,
|
|
4032
|
-
FileTooLarge:
|
|
4033
|
-
FileTooSmall:
|
|
4032
|
+
FileTooLarge: Po,
|
|
4033
|
+
FileTooSmall: zo
|
|
4034
4034
|
}, Es = function() {
|
|
4035
4035
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", o = t.split(","), n = o.length > 1 ? "one of ".concat(o.join(", ")) : o[0];
|
|
4036
4036
|
return {
|
|
@@ -4039,12 +4039,12 @@ var Ts = typeof kt == "function" ? kt : kt.default, Mo = "file-invalid-type", zo
|
|
|
4039
4039
|
};
|
|
4040
4040
|
}, mo = function(t) {
|
|
4041
4041
|
return {
|
|
4042
|
-
code:
|
|
4042
|
+
code: Po,
|
|
4043
4043
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
4044
4044
|
};
|
|
4045
4045
|
}, uo = function(t) {
|
|
4046
4046
|
return {
|
|
4047
|
-
code:
|
|
4047
|
+
code: zo,
|
|
4048
4048
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
4049
4049
|
};
|
|
4050
4050
|
}, Is = {
|
|
@@ -4149,7 +4149,7 @@ function Uo(e) {
|
|
|
4149
4149
|
function qo(e) {
|
|
4150
4150
|
return /^.*\.[\w]+$/.test(e);
|
|
4151
4151
|
}
|
|
4152
|
-
var
|
|
4152
|
+
var Ps = ["children"], zs = ["open"], Os = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Ws = ["refKey", "onChange", "onClick"];
|
|
4153
4153
|
function Us(e) {
|
|
4154
4154
|
return Hs(e) || $s(e) || $o(e) || qs();
|
|
4155
4155
|
}
|
|
@@ -4247,8 +4247,8 @@ function Ks(e, t) {
|
|
|
4247
4247
|
a = n[i], !(t.indexOf(a) >= 0) && (o[a] = e[a]);
|
|
4248
4248
|
return o;
|
|
4249
4249
|
}
|
|
4250
|
-
var
|
|
4251
|
-
var o = e.children, n = at(e,
|
|
4250
|
+
var zt = /* @__PURE__ */ Jo(function(e, t) {
|
|
4251
|
+
var o = e.children, n = at(e, Ps), a = Vo(n), i = a.open, r = at(a, zs);
|
|
4252
4252
|
return en(t, function() {
|
|
4253
4253
|
return {
|
|
4254
4254
|
open: i
|
|
@@ -4257,7 +4257,7 @@ var Pt = /* @__PURE__ */ Jo(function(e, t) {
|
|
|
4257
4257
|
open: i
|
|
4258
4258
|
})));
|
|
4259
4259
|
});
|
|
4260
|
-
|
|
4260
|
+
zt.displayName = "Dropzone";
|
|
4261
4261
|
var Ho = {
|
|
4262
4262
|
disabled: !1,
|
|
4263
4263
|
getFilesFromEvent: cs,
|
|
@@ -4274,8 +4274,8 @@ var Ho = {
|
|
|
4274
4274
|
useFsAccessApi: !1,
|
|
4275
4275
|
autoFocus: !1
|
|
4276
4276
|
};
|
|
4277
|
-
|
|
4278
|
-
|
|
4277
|
+
zt.defaultProps = Ho;
|
|
4278
|
+
zt.propTypes = {
|
|
4279
4279
|
/**
|
|
4280
4280
|
* Render function that exposes the dropzone state and prop getter fns
|
|
4281
4281
|
*
|
|
@@ -4476,12 +4476,12 @@ function Vo() {
|
|
|
4476
4476
|
window.removeEventListener("focus", L, !1);
|
|
4477
4477
|
};
|
|
4478
4478
|
}, [T, v, pe, S]);
|
|
4479
|
-
var I = de([]),
|
|
4479
|
+
var I = de([]), P = function(j) {
|
|
4480
4480
|
X.current && X.current.contains(j.target) || (j.preventDefault(), I.current = []);
|
|
4481
4481
|
};
|
|
4482
4482
|
re(function() {
|
|
4483
|
-
return F && (document.addEventListener("dragover", _o, !1), document.addEventListener("drop",
|
|
4484
|
-
F && (document.removeEventListener("dragover", _o), document.removeEventListener("drop",
|
|
4483
|
+
return F && (document.addEventListener("dragover", _o, !1), document.addEventListener("drop", P, !1)), function() {
|
|
4484
|
+
F && (document.removeEventListener("dragover", _o), document.removeEventListener("drop", P));
|
|
4485
4485
|
};
|
|
4486
4486
|
}, [X, F]), re(function() {
|
|
4487
4487
|
return !n && U && X.current && X.current.focus(), function() {
|
|
@@ -4596,7 +4596,7 @@ function Vo() {
|
|
|
4596
4596
|
te({
|
|
4597
4597
|
type: "focus"
|
|
4598
4598
|
});
|
|
4599
|
-
}, []),
|
|
4599
|
+
}, []), ze = xe(function() {
|
|
4600
4600
|
te({
|
|
4601
4601
|
type: "blur"
|
|
4602
4602
|
});
|
|
@@ -4616,7 +4616,7 @@ function Vo() {
|
|
|
4616
4616
|
return oe(oe(Ft({
|
|
4617
4617
|
onKeyDown: rt(Ne(be, he)),
|
|
4618
4618
|
onFocus: rt(Ne(Oe, Se)),
|
|
4619
|
-
onBlur: rt(Ne(Be,
|
|
4619
|
+
onBlur: rt(Ne(Be, ze)),
|
|
4620
4620
|
onClick: je(Ne(st, Ot)),
|
|
4621
4621
|
onDragEnter: Ve(Ne(lt, W)),
|
|
4622
4622
|
onDragOver: Ve(Ne(pt, H)),
|
|
@@ -4627,7 +4627,7 @@ function Vo() {
|
|
|
4627
4627
|
tabIndex: 0
|
|
4628
4628
|
} : {}), dt);
|
|
4629
4629
|
};
|
|
4630
|
-
}, [X, he, Se,
|
|
4630
|
+
}, [X, he, Se, ze, Ot, W, H, K, ie, m, N, n]), Go = xe(function(k) {
|
|
4631
4631
|
k.stopPropagation();
|
|
4632
4632
|
}, []), Ko = De(function() {
|
|
4633
4633
|
return function() {
|
|
@@ -4736,7 +4736,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4736
4736
|
window.removeEventListener("resize", g);
|
|
4737
4737
|
}), [t]);
|
|
4738
4738
|
const h = Js(t);
|
|
4739
|
-
return /* @__PURE__ */
|
|
4739
|
+
return /* @__PURE__ */ z(
|
|
4740
4740
|
"div",
|
|
4741
4741
|
{
|
|
4742
4742
|
className: f(
|
|
@@ -4824,9 +4824,9 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4824
4824
|
error: h
|
|
4825
4825
|
} = e, [x, w] = ee([]), R = xe(
|
|
4826
4826
|
(_, v) => {
|
|
4827
|
-
const S = v.map(({ file: I, errors:
|
|
4827
|
+
const S = v.map(({ file: I, errors: P }) => ({
|
|
4828
4828
|
file: I,
|
|
4829
|
-
errors:
|
|
4829
|
+
errors: P
|
|
4830
4830
|
}));
|
|
4831
4831
|
if (!s) {
|
|
4832
4832
|
w([...S]), a(_, n);
|
|
@@ -4861,8 +4861,8 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4861
4861
|
if (g)
|
|
4862
4862
|
return;
|
|
4863
4863
|
if (v) {
|
|
4864
|
-
const I = [...x],
|
|
4865
|
-
I.splice(
|
|
4864
|
+
const I = [...x], P = I.findIndex((B) => B.file.name === _);
|
|
4865
|
+
I.splice(P, 1), w(I);
|
|
4866
4866
|
return;
|
|
4867
4867
|
}
|
|
4868
4868
|
const S = [...l], L = S.findIndex((I) => I.name === _);
|
|
@@ -4894,15 +4894,15 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4894
4894
|
);
|
|
4895
4895
|
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: y.map(({ file: _, errors: v }, S) => {
|
|
4896
4896
|
const L = v ? (v == null ? void 0 : v.length) > 0 : void 0, I = () => v ? v == null ? void 0 : v.map(Qs).join(", ") : "";
|
|
4897
|
-
return /* @__PURE__ */
|
|
4897
|
+
return /* @__PURE__ */ z(
|
|
4898
4898
|
"li",
|
|
4899
4899
|
{
|
|
4900
4900
|
className: f(
|
|
4901
4901
|
Y.spUploadFiles__fileNamesListItem,
|
|
4902
4902
|
L && Y.spUploadFiles__fileNamesListItem_error
|
|
4903
4903
|
),
|
|
4904
|
-
onClick: (
|
|
4905
|
-
|
|
4904
|
+
onClick: (P) => {
|
|
4905
|
+
P.stopPropagation();
|
|
4906
4906
|
},
|
|
4907
4907
|
children: [
|
|
4908
4908
|
/* @__PURE__ */ c(
|
|
@@ -4915,7 +4915,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4915
4915
|
children: /* @__PURE__ */ c(me, { name: L ? D.InfoError : D.File })
|
|
4916
4916
|
}
|
|
4917
4917
|
),
|
|
4918
|
-
/* @__PURE__ */
|
|
4918
|
+
/* @__PURE__ */ z("div", { className: Y.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
4919
4919
|
/* @__PURE__ */ c(
|
|
4920
4920
|
nl,
|
|
4921
4921
|
{
|
|
@@ -4940,8 +4940,8 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4940
4940
|
"div",
|
|
4941
4941
|
{
|
|
4942
4942
|
className: f(Y.spUploadFiles__fileNamesListItemDelete),
|
|
4943
|
-
onClick: (
|
|
4944
|
-
|
|
4943
|
+
onClick: (P) => {
|
|
4944
|
+
P.stopPropagation(), _e(_.name, L);
|
|
4945
4945
|
},
|
|
4946
4946
|
children: /* @__PURE__ */ c(me, { name: D.Close })
|
|
4947
4947
|
}
|
|
@@ -4960,7 +4960,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4960
4960
|
),
|
|
4961
4961
|
text: t
|
|
4962
4962
|
}
|
|
4963
|
-
), te = () => /* @__PURE__ */
|
|
4963
|
+
), te = () => /* @__PURE__ */ z(jt, { children: [
|
|
4964
4964
|
m ? q() : V(),
|
|
4965
4965
|
m && N ? /* @__PURE__ */ c("div", { className: ue, onClick: pe, children: /* @__PURE__ */ c(me, { name: D.Close }) }) : N && p && /* @__PURE__ */ c(
|
|
4966
4966
|
it,
|
|
@@ -4979,7 +4979,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4979
4979
|
getInputProps: U,
|
|
4980
4980
|
disabled: r,
|
|
4981
4981
|
name: n,
|
|
4982
|
-
children: /* @__PURE__ */
|
|
4982
|
+
children: /* @__PURE__ */ z("div", { className: G, children: [
|
|
4983
4983
|
O && /* @__PURE__ */ c(
|
|
4984
4984
|
He,
|
|
4985
4985
|
{
|
|
@@ -4990,7 +4990,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
4990
4990
|
trigger: void 0
|
|
4991
4991
|
}
|
|
4992
4992
|
),
|
|
4993
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ z("div", { className: J, children: [
|
|
4994
4994
|
N && (g ? /* @__PURE__ */ c(Bt, {}) : /* @__PURE__ */ c(
|
|
4995
4995
|
me,
|
|
4996
4996
|
{
|
|
@@ -5004,13 +5004,13 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
5004
5004
|
] })
|
|
5005
5005
|
}
|
|
5006
5006
|
);
|
|
5007
|
-
}, jl = "_viewImageModal_sn237_43", Bl = "_viewImageModal__img_sn237_77", Dl = "_viewImageModal__img_loading_sn237_90", Ml = "_viewImageModal__img_error_sn237_93",
|
|
5007
|
+
}, jl = "_viewImageModal_sn237_43", Bl = "_viewImageModal__img_sn237_77", Dl = "_viewImageModal__img_loading_sn237_90", Ml = "_viewImageModal__img_error_sn237_93", Pl = "_viewImageModal__spinner_sn237_96", zl = "_viewImageModal__layer_sn237_123", Ol = "_viewImageModal__closeButton_sn237_128", Ee = {
|
|
5008
5008
|
viewImageModal: jl,
|
|
5009
5009
|
viewImageModal__img: Bl,
|
|
5010
5010
|
viewImageModal__img_loading: Dl,
|
|
5011
5011
|
viewImageModal__img_error: Ml,
|
|
5012
|
-
viewImageModal__spinner:
|
|
5013
|
-
viewImageModal__layer:
|
|
5012
|
+
viewImageModal__spinner: Pl,
|
|
5013
|
+
viewImageModal__layer: zl,
|
|
5014
5014
|
viewImageModal__closeButton: Ol
|
|
5015
5015
|
}, sp = (e) => {
|
|
5016
5016
|
const {
|
|
@@ -5036,9 +5036,9 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
5036
5036
|
[Ee.viewImageModal__img_error]: u,
|
|
5037
5037
|
...o && { [o]: !0 }
|
|
5038
5038
|
});
|
|
5039
|
-
return /* @__PURE__ */
|
|
5039
|
+
return /* @__PURE__ */ z(wo, { classNameRoot: R, children: [
|
|
5040
5040
|
s && p && /* @__PURE__ */ c(Bt, { classNameRoot: U, size: "xl" }),
|
|
5041
|
-
/* @__PURE__ */
|
|
5041
|
+
/* @__PURE__ */ z("div", { className: w, children: [
|
|
5042
5042
|
/* @__PURE__ */ c(
|
|
5043
5043
|
"img",
|
|
5044
5044
|
{
|
|
@@ -5053,7 +5053,7 @@ const Zs = (e) => Vo(e), Qs = (e) => {
|
|
|
5053
5053
|
}
|
|
5054
5054
|
}
|
|
5055
5055
|
),
|
|
5056
|
-
u && /* @__PURE__ */
|
|
5056
|
+
u && /* @__PURE__ */ z("div", { className: Ee.viewImage__errorWrapper, children: [
|
|
5057
5057
|
/* @__PURE__ */ c(me, { name: D.InfoError, className: Ee.viewImage__errorIcon }),
|
|
5058
5058
|
/* @__PURE__ */ c(Te, { children: "Не удалось загрузить изображение" })
|
|
5059
5059
|
] })
|