test-stpr-ui-kit 0.5.16 → 0.5.17
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 +206 -206
- package/dist/test-stpr-ui-kit.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -52,13 +52,13 @@ const de = (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",
|
|
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", 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: Sn,
|
|
57
57
|
spAccordion_noBorder: Ln,
|
|
58
58
|
spAccordion_noPadding: Rn,
|
|
59
|
-
spAccordion_open:
|
|
60
|
-
spAccordion__header:
|
|
61
|
-
spAccordion_noOpen:
|
|
59
|
+
spAccordion_open: Fn,
|
|
60
|
+
spAccordion__header: An,
|
|
61
|
+
spAccordion_noOpen: jn,
|
|
62
62
|
spAccordion__name: Bn,
|
|
63
63
|
spAccordion__name_hiddenExpand: Dn,
|
|
64
64
|
"spAccordion__name--level-1": "_spAccordion__name--level-1_14avc_114",
|
|
@@ -97,7 +97,7 @@ const de = (e) => {
|
|
|
97
97
|
}), z = f({
|
|
98
98
|
[ce.spAccordion__header]: !0,
|
|
99
99
|
...d && { [d]: !0 }
|
|
100
|
-
}),
|
|
100
|
+
}), F = f({
|
|
101
101
|
[ce.spAccordion__name]: !0,
|
|
102
102
|
[ce[`spAccordion__name--level-${p}`]]: p,
|
|
103
103
|
[ce.spAccordion__name_hiddenExpand]: a,
|
|
@@ -117,7 +117,7 @@ const de = (e) => {
|
|
|
117
117
|
});
|
|
118
118
|
return /* @__PURE__ */ O("div", { className: R, children: [
|
|
119
119
|
/* @__PURE__ */ O("div", { className: z, children: [
|
|
120
|
-
/* @__PURE__ */ c("div", { className:
|
|
120
|
+
/* @__PURE__ */ c("div", { className: F, children: /* @__PURE__ */ c("span", { onClick: L, children: t }) }),
|
|
121
121
|
/* @__PURE__ */ c(de, { onClick: L, className: w, name: D.ChevronDown })
|
|
122
122
|
] }),
|
|
123
123
|
/* @__PURE__ */ c("div", { className: m, children: /* @__PURE__ */ c("div", { className: N, children: o }) })
|
|
@@ -175,7 +175,7 @@ const de = (e) => {
|
|
|
175
175
|
noPadding: L = !1,
|
|
176
176
|
classNameRoot: R,
|
|
177
177
|
classNameTextRoot: z,
|
|
178
|
-
classNameIconContainerRoot:
|
|
178
|
+
classNameIconContainerRoot: F
|
|
179
179
|
} = e, w = (W) => {
|
|
180
180
|
p || a == null || a(W);
|
|
181
181
|
}, m = () => {
|
|
@@ -184,7 +184,7 @@ const de = (e) => {
|
|
|
184
184
|
...z && { [z]: !0 }
|
|
185
185
|
}), H = f({
|
|
186
186
|
[we.spButton__iconContainer]: !0,
|
|
187
|
-
...
|
|
187
|
+
...F && { [F]: !0 }
|
|
188
188
|
}), X = () => h ? /* @__PURE__ */ c("div", { className: H, children: /* @__PURE__ */ c(Dt, { size: "md", classNameRoot: we.spButton__spinner }) }) : i ? /* @__PURE__ */ c("div", { className: H, children: /* @__PURE__ */ c(de, { name: i, rotate: s }) }) : r ? /* @__PURE__ */ c("div", { className: H, children: r }) : null;
|
|
189
189
|
return /* @__PURE__ */ O($e, { children: [
|
|
190
190
|
d === "start" && X(),
|
|
@@ -418,7 +418,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
418
418
|
}), z = f({
|
|
419
419
|
[ge.modalWrapper__closeButtonIconContainer]: !0,
|
|
420
420
|
[ge[`modalWrapper__closeButtonIconContainer--size-${x}`]]: x
|
|
421
|
-
}),
|
|
421
|
+
}), F = f({
|
|
422
422
|
[ge.modalWrapper__content]: !0
|
|
423
423
|
}), w = f({
|
|
424
424
|
[ge.modalWrapper__header]: !0
|
|
@@ -433,7 +433,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
433
433
|
typeof u == "string" ? /* @__PURE__ */ c(Ne, { type: "h3", children: u }) : u,
|
|
434
434
|
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(Ne, { children: g }) : g })
|
|
435
435
|
] }),
|
|
436
|
-
a && /* @__PURE__ */ c("div", { className:
|
|
436
|
+
a && /* @__PURE__ */ c("div", { className: F, children: a }),
|
|
437
437
|
h && /* @__PURE__ */ c("div", { className: N, children: h }),
|
|
438
438
|
n && d && /* @__PURE__ */ c(
|
|
439
439
|
tt,
|
|
@@ -468,7 +468,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
468
468
|
textAlign: L = "left",
|
|
469
469
|
loading: R,
|
|
470
470
|
isVisibleCloseButton: z,
|
|
471
|
-
isHiddenModal:
|
|
471
|
+
isHiddenModal: F,
|
|
472
472
|
size: w,
|
|
473
473
|
classNameRoot: m,
|
|
474
474
|
classNameLayerRoot: N
|
|
@@ -483,7 +483,7 @@ const ua = "_modalWrapper_1kqdh_43", _a = "_modalWrapper__modal_1kqdh_63", fa =
|
|
|
483
483
|
textAlign: L,
|
|
484
484
|
subHeader: n,
|
|
485
485
|
isVisibleCloseButton: z,
|
|
486
|
-
isHiddenModal:
|
|
486
|
+
isHiddenModal: F,
|
|
487
487
|
size: w,
|
|
488
488
|
classNameRoot: m,
|
|
489
489
|
classNameLayerRoot: N,
|
|
@@ -603,9 +603,9 @@ function Co(e, t, o = !0) {
|
|
|
603
603
|
};
|
|
604
604
|
}, [e, t, o]);
|
|
605
605
|
}
|
|
606
|
-
const
|
|
607
|
-
spTooltip:
|
|
608
|
-
spInfoTooltip:
|
|
606
|
+
const Fa = "_spTooltip_1pqws_43", Aa = "_spInfoTooltip_1pqws_48", ko = {
|
|
607
|
+
spTooltip: Fa,
|
|
608
|
+
spInfoTooltip: Aa
|
|
609
609
|
};
|
|
610
610
|
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
611
|
const it = (e) => {
|
|
@@ -624,7 +624,7 @@ const it = (e) => {
|
|
|
624
624
|
classNameBaseTooltipRoot: g,
|
|
625
625
|
classNameBaseTooltipContentRoot: h,
|
|
626
626
|
styleTooltip: x
|
|
627
|
-
} = e, [b, L] = oe(!1), R = ve(null), z = ve(null), [
|
|
627
|
+
} = e, [b, L] = oe(!1), R = ve(null), z = ve(null), [F, w] = oe(!1);
|
|
628
628
|
Co(
|
|
629
629
|
[R, z],
|
|
630
630
|
() => {
|
|
@@ -691,14 +691,14 @@ const it = (e) => {
|
|
|
691
691
|
}));
|
|
692
692
|
}, [l, b, H]);
|
|
693
693
|
re(() => (w(!0), () => w(!1)), []), re(() => {
|
|
694
|
-
|
|
695
|
-
}, [
|
|
696
|
-
if (!
|
|
694
|
+
F && ne();
|
|
695
|
+
}, [F, ne]), re(() => {
|
|
696
|
+
if (!F) return;
|
|
697
697
|
const T = () => ne();
|
|
698
698
|
return window.addEventListener("resize", T), window.addEventListener("scroll", T, !0), () => {
|
|
699
699
|
window.removeEventListener("resize", T), window.removeEventListener("scroll", T, !0);
|
|
700
700
|
};
|
|
701
|
-
}, [
|
|
701
|
+
}, [F, ne]);
|
|
702
702
|
const me = f({
|
|
703
703
|
...g && { [g]: !0 }
|
|
704
704
|
}), ue = f({
|
|
@@ -745,13 +745,13 @@ const it = (e) => {
|
|
|
745
745
|
trigger: /* @__PURE__ */ c(de, { name: D.Info })
|
|
746
746
|
}
|
|
747
747
|
);
|
|
748
|
-
},
|
|
749
|
-
spCheckbox:
|
|
748
|
+
}, ja = "_spCheckbox_14v70_43", Ba = "_spCheckbox__control_14v70_49", Da = "_spCheckbox__label_14v70_52", Ma = "_spCheckbox__box_14v70_63", Pa = "_spCheckbox__box_checked_14v70_93", Oa = "_spCheckbox__box_disabled_14v70_99", Wa = "_spCheckbox__box_error_14v70_110", za = "_spCheckbox__tooltip_14v70_113", Ua = "_spCheckbox__required_14v70_118", qa = "_spCheckbox__error_14v70_124", Ce = {
|
|
749
|
+
spCheckbox: ja,
|
|
750
750
|
spCheckbox__control: Ba,
|
|
751
751
|
spCheckbox__label: Da,
|
|
752
752
|
spCheckbox__box: Ma,
|
|
753
|
-
"spCheckbox__box--size-lg": "_spCheckbox__box--size-
|
|
754
|
-
"spCheckbox__box--size-md": "_spCheckbox__box--size-
|
|
753
|
+
"spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_14v70_70",
|
|
754
|
+
"spCheckbox__box--size-md": "_spCheckbox__box--size-md_14v70_74",
|
|
755
755
|
spCheckbox__box_checked: Pa,
|
|
756
756
|
spCheckbox__box_disabled: Oa,
|
|
757
757
|
spCheckbox__box_error: Wa,
|
|
@@ -787,7 +787,7 @@ const it = (e) => {
|
|
|
787
787
|
[Ce.spCheckbox__control]: !0
|
|
788
788
|
}), z = f({
|
|
789
789
|
[Ce.spCheckbox__label]: !0
|
|
790
|
-
}),
|
|
790
|
+
}), F = f({
|
|
791
791
|
[Ce.spCheckbox__required]: !0
|
|
792
792
|
}), w = f({
|
|
793
793
|
[Ce.spCheckbox__error]: !0,
|
|
@@ -809,7 +809,7 @@ const it = (e) => {
|
|
|
809
809
|
}
|
|
810
810
|
),
|
|
811
811
|
r && /* @__PURE__ */ c("span", { className: z, children: r }),
|
|
812
|
-
l && /* @__PURE__ */ c("div", { className:
|
|
812
|
+
l && /* @__PURE__ */ c("div", { className: F, children: "*" }),
|
|
813
813
|
u && /* @__PURE__ */ c("div", { className: m, children: /* @__PURE__ */ c(rt, { hover: !0, position: d, text: u }) })
|
|
814
814
|
] }),
|
|
815
815
|
s && /* @__PURE__ */ c("div", { className: w, children: s })
|
|
@@ -1078,7 +1078,7 @@ const it = (e) => {
|
|
|
1078
1078
|
isVisibleDefaultTitle: L = !0,
|
|
1079
1079
|
placeholder: R = "Введите...",
|
|
1080
1080
|
classNameRoot: z,
|
|
1081
|
-
classNameError:
|
|
1081
|
+
classNameError: F,
|
|
1082
1082
|
classNameLabel: w,
|
|
1083
1083
|
classNameBaseTooltipRoot: m,
|
|
1084
1084
|
...N
|
|
@@ -1099,7 +1099,7 @@ const it = (e) => {
|
|
|
1099
1099
|
}), me = f({
|
|
1100
1100
|
[ke.spInput__error]: !0,
|
|
1101
1101
|
[ke.spInput__error_absolutePosition]: s,
|
|
1102
|
-
...
|
|
1102
|
+
...F && { [F]: !0 }
|
|
1103
1103
|
}), ue = f({
|
|
1104
1104
|
...w && { [w]: !0 }
|
|
1105
1105
|
}), le = (M) => {
|
|
@@ -1252,10 +1252,10 @@ function Yt(e) {
|
|
|
1252
1252
|
return t;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
var
|
|
1256
|
-
function
|
|
1255
|
+
var Fi = Pt.match, Gt = typeof window < "u" ? window.matchMedia : null;
|
|
1256
|
+
function Ai(e, t, o) {
|
|
1257
1257
|
var n = this, a;
|
|
1258
|
-
Gt && !o && (a = Gt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
1258
|
+
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;
|
|
1259
1259
|
function i(l) {
|
|
1260
1260
|
a && a.addListener(l);
|
|
1261
1261
|
}
|
|
@@ -1269,10 +1269,10 @@ function Fi(e, t, o) {
|
|
|
1269
1269
|
a && a.removeListener(s);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return new
|
|
1272
|
+
function ji(e, t, o) {
|
|
1273
|
+
return new Ai(e, t, o);
|
|
1274
1274
|
}
|
|
1275
|
-
var Bi =
|
|
1275
|
+
var Bi = ji;
|
|
1276
1276
|
const Di = /* @__PURE__ */ To(Bi);
|
|
1277
1277
|
var Mi = /[A-Z]/g, Pi = /^ms-/, xt = {};
|
|
1278
1278
|
function Oi(e) {
|
|
@@ -1313,7 +1313,7 @@ function zi() {
|
|
|
1313
1313
|
if (Kt) return Q;
|
|
1314
1314
|
Kt = 1;
|
|
1315
1315
|
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, L = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1316
|
-
function
|
|
1316
|
+
function F(m) {
|
|
1317
1317
|
if (typeof m == "object" && m !== null) {
|
|
1318
1318
|
var N = m.$$typeof;
|
|
1319
1319
|
switch (N) {
|
|
@@ -1344,35 +1344,35 @@ function zi() {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
function w(m) {
|
|
1347
|
-
return
|
|
1347
|
+
return F(m) === l;
|
|
1348
1348
|
}
|
|
1349
1349
|
return Q.AsyncMode = p, Q.ConcurrentMode = l, Q.ContextConsumer = s, Q.ContextProvider = r, Q.Element = t, Q.ForwardRef = d, Q.Fragment = n, Q.Lazy = x, Q.Memo = h, Q.Portal = o, Q.Profiler = i, Q.StrictMode = a, Q.Suspense = u, Q.isAsyncMode = function(m) {
|
|
1350
|
-
return w(m) ||
|
|
1350
|
+
return w(m) || F(m) === p;
|
|
1351
1351
|
}, Q.isConcurrentMode = w, Q.isContextConsumer = function(m) {
|
|
1352
|
-
return
|
|
1352
|
+
return F(m) === s;
|
|
1353
1353
|
}, Q.isContextProvider = function(m) {
|
|
1354
|
-
return
|
|
1354
|
+
return F(m) === r;
|
|
1355
1355
|
}, Q.isElement = function(m) {
|
|
1356
1356
|
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
1357
1357
|
}, Q.isForwardRef = function(m) {
|
|
1358
|
-
return
|
|
1358
|
+
return F(m) === d;
|
|
1359
1359
|
}, Q.isFragment = function(m) {
|
|
1360
|
-
return
|
|
1360
|
+
return F(m) === n;
|
|
1361
1361
|
}, Q.isLazy = function(m) {
|
|
1362
|
-
return
|
|
1362
|
+
return F(m) === x;
|
|
1363
1363
|
}, Q.isMemo = function(m) {
|
|
1364
|
-
return
|
|
1364
|
+
return F(m) === h;
|
|
1365
1365
|
}, Q.isPortal = function(m) {
|
|
1366
|
-
return
|
|
1366
|
+
return F(m) === o;
|
|
1367
1367
|
}, Q.isProfiler = function(m) {
|
|
1368
|
-
return
|
|
1368
|
+
return F(m) === i;
|
|
1369
1369
|
}, Q.isStrictMode = function(m) {
|
|
1370
|
-
return
|
|
1370
|
+
return F(m) === a;
|
|
1371
1371
|
}, Q.isSuspense = function(m) {
|
|
1372
|
-
return
|
|
1372
|
+
return F(m) === u;
|
|
1373
1373
|
}, Q.isValidElementType = function(m) {
|
|
1374
1374
|
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 === L || m.$$typeof === R || m.$$typeof === z || m.$$typeof === b);
|
|
1375
|
-
}, Q.typeOf =
|
|
1375
|
+
}, Q.typeOf = F, Q;
|
|
1376
1376
|
}
|
|
1377
1377
|
var J = {};
|
|
1378
1378
|
/** @license React v16.13.1
|
|
@@ -1387,7 +1387,7 @@ var Xt;
|
|
|
1387
1387
|
function Ui() {
|
|
1388
1388
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1389
1389
|
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, L = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1390
|
-
function
|
|
1390
|
+
function F(y) {
|
|
1391
1391
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1392
1392
|
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 === L || y.$$typeof === R || y.$$typeof === z || y.$$typeof === b);
|
|
1393
1393
|
}
|
|
@@ -1436,7 +1436,7 @@ function Ui() {
|
|
|
1436
1436
|
function S(y) {
|
|
1437
1437
|
return w(y) === r;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function A(y) {
|
|
1440
1440
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
1441
1441
|
}
|
|
1442
1442
|
function I(y) {
|
|
@@ -1463,7 +1463,7 @@ function Ui() {
|
|
|
1463
1463
|
function ie(y) {
|
|
1464
1464
|
return w(y) === u;
|
|
1465
1465
|
}
|
|
1466
|
-
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = W, J.ContextProvider = H, J.Element = X, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = q, J.isAsyncMode = ee, J.isConcurrentMode = _, J.isContextConsumer = v, J.isContextProvider = S, J.isElement =
|
|
1466
|
+
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = W, J.ContextProvider = H, J.Element = X, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = q, J.isAsyncMode = ee, J.isConcurrentMode = _, J.isContextConsumer = v, J.isContextProvider = S, J.isElement = A, J.isForwardRef = I, J.isFragment = P, J.isLazy = B, J.isMemo = U, J.isPortal = V, J.isProfiler = K, J.isStrictMode = $, J.isSuspense = ie, J.isValidElementType = F, J.typeOf = w;
|
|
1467
1467
|
}()), J;
|
|
1468
1468
|
}
|
|
1469
1469
|
var Zt;
|
|
@@ -1615,7 +1615,7 @@ function Hi() {
|
|
|
1615
1615
|
string: R("string"),
|
|
1616
1616
|
symbol: R("symbol"),
|
|
1617
1617
|
any: z(),
|
|
1618
|
-
arrayOf:
|
|
1618
|
+
arrayOf: F,
|
|
1619
1619
|
element: w(),
|
|
1620
1620
|
elementType: m(),
|
|
1621
1621
|
instanceOf: N,
|
|
@@ -1636,7 +1636,7 @@ function Hi() {
|
|
|
1636
1636
|
function L(_) {
|
|
1637
1637
|
if (process.env.NODE_ENV !== "production")
|
|
1638
1638
|
var v = {}, S = 0;
|
|
1639
|
-
function
|
|
1639
|
+
function A(P, B, U, V, K, $, ie) {
|
|
1640
1640
|
if (V = V || g, $ = $ || U, ie !== o) {
|
|
1641
1641
|
if (p) {
|
|
1642
1642
|
var y = new Error(
|
|
@@ -1653,12 +1653,12 @@ function Hi() {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
return B[U] == null ? P ? B[U] === null ? new b("The " + K + " `" + $ + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + K + " `" + $ + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : _(B, U, V, K, $);
|
|
1655
1655
|
}
|
|
1656
|
-
var I =
|
|
1657
|
-
return I.isRequired =
|
|
1656
|
+
var I = A.bind(null, !1);
|
|
1657
|
+
return I.isRequired = A.bind(null, !0), I;
|
|
1658
1658
|
}
|
|
1659
1659
|
function R(_) {
|
|
1660
|
-
function v(S,
|
|
1661
|
-
var V = S[
|
|
1660
|
+
function v(S, A, I, P, B, U) {
|
|
1661
|
+
var V = S[A], K = M(V);
|
|
1662
1662
|
if (K !== _) {
|
|
1663
1663
|
var $ = q(V);
|
|
1664
1664
|
return new b(
|
|
@@ -1673,11 +1673,11 @@ function Hi() {
|
|
|
1673
1673
|
function z() {
|
|
1674
1674
|
return L(r);
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1677
|
-
function v(S,
|
|
1676
|
+
function F(_) {
|
|
1677
|
+
function v(S, A, I, P, B) {
|
|
1678
1678
|
if (typeof _ != "function")
|
|
1679
1679
|
return new b("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1680
|
-
var U = S[
|
|
1680
|
+
var U = S[A];
|
|
1681
1681
|
if (!Array.isArray(U)) {
|
|
1682
1682
|
var V = M(U);
|
|
1683
1683
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an array."));
|
|
@@ -1692,31 +1692,31 @@ function Hi() {
|
|
|
1692
1692
|
return L(v);
|
|
1693
1693
|
}
|
|
1694
1694
|
function w() {
|
|
1695
|
-
function _(v, S,
|
|
1695
|
+
function _(v, S, A, I, P) {
|
|
1696
1696
|
var B = v[S];
|
|
1697
1697
|
if (!s(B)) {
|
|
1698
1698
|
var U = M(B);
|
|
1699
|
-
return new b("Invalid " + I + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1699
|
+
return new b("Invalid " + I + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1700
1700
|
}
|
|
1701
1701
|
return null;
|
|
1702
1702
|
}
|
|
1703
1703
|
return L(_);
|
|
1704
1704
|
}
|
|
1705
1705
|
function m() {
|
|
1706
|
-
function _(v, S,
|
|
1706
|
+
function _(v, S, A, I, P) {
|
|
1707
1707
|
var B = v[S];
|
|
1708
1708
|
if (!e.isValidElementType(B)) {
|
|
1709
1709
|
var U = M(B);
|
|
1710
|
-
return new b("Invalid " + I + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1710
|
+
return new b("Invalid " + I + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1711
1711
|
}
|
|
1712
1712
|
return null;
|
|
1713
1713
|
}
|
|
1714
1714
|
return L(_);
|
|
1715
1715
|
}
|
|
1716
1716
|
function N(_) {
|
|
1717
|
-
function v(S,
|
|
1718
|
-
if (!(S[
|
|
1719
|
-
var U = _.name || g, V = ee(S[
|
|
1717
|
+
function v(S, A, I, P, B) {
|
|
1718
|
+
if (!(S[A] instanceof _)) {
|
|
1719
|
+
var U = _.name || g, V = ee(S[A]);
|
|
1720
1720
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("instance of `" + U + "`."));
|
|
1721
1721
|
}
|
|
1722
1722
|
return null;
|
|
@@ -1728,8 +1728,8 @@ function Hi() {
|
|
|
1728
1728
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1729
1729
|
"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])."
|
|
1730
1730
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1731
|
-
function v(S,
|
|
1732
|
-
for (var U = S[
|
|
1731
|
+
function v(S, A, I, P, B) {
|
|
1732
|
+
for (var U = S[A], V = 0; V < _.length; V++)
|
|
1733
1733
|
if (x(U, _[V]))
|
|
1734
1734
|
return null;
|
|
1735
1735
|
var K = JSON.stringify(_, function(ie, y) {
|
|
@@ -1741,10 +1741,10 @@ function Hi() {
|
|
|
1741
1741
|
return L(v);
|
|
1742
1742
|
}
|
|
1743
1743
|
function H(_) {
|
|
1744
|
-
function v(S,
|
|
1744
|
+
function v(S, A, I, P, B) {
|
|
1745
1745
|
if (typeof _ != "function")
|
|
1746
1746
|
return new b("Property `" + B + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1747
|
-
var U = S[
|
|
1747
|
+
var U = S[A], V = M(U);
|
|
1748
1748
|
if (V !== "object")
|
|
1749
1749
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an object."));
|
|
1750
1750
|
for (var K in U)
|
|
@@ -1767,7 +1767,7 @@ function Hi() {
|
|
|
1767
1767
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(S) + " at index " + v + "."
|
|
1768
1768
|
), r;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function A(I, P, B, U, V) {
|
|
1771
1771
|
for (var K = [], $ = 0; $ < _.length; $++) {
|
|
1772
1772
|
var ie = _[$], y = ie(I, P, B, U, V, o);
|
|
1773
1773
|
if (y == null)
|
|
@@ -1777,22 +1777,22 @@ function Hi() {
|
|
|
1777
1777
|
var he = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
1778
1778
|
return new b("Invalid " + U + " `" + V + "` supplied to " + ("`" + B + "`" + he + "."));
|
|
1779
1779
|
}
|
|
1780
|
-
return L(
|
|
1780
|
+
return L(A);
|
|
1781
1781
|
}
|
|
1782
1782
|
function ne() {
|
|
1783
|
-
function _(v, S,
|
|
1784
|
-
return Z(v[S]) ? null : new b("Invalid " + I + " `" + P + "` supplied to " + ("`" +
|
|
1783
|
+
function _(v, S, A, I, P) {
|
|
1784
|
+
return Z(v[S]) ? null : new b("Invalid " + I + " `" + P + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1785
1785
|
}
|
|
1786
1786
|
return L(_);
|
|
1787
1787
|
}
|
|
1788
|
-
function me(_, v, S,
|
|
1788
|
+
function me(_, v, S, A, I) {
|
|
1789
1789
|
return new b(
|
|
1790
|
-
(_ || "React class") + ": " + v + " type `" + S + "." +
|
|
1790
|
+
(_ || "React class") + ": " + v + " type `" + S + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1791
1791
|
);
|
|
1792
1792
|
}
|
|
1793
1793
|
function ue(_) {
|
|
1794
|
-
function v(S,
|
|
1795
|
-
var U = S[
|
|
1794
|
+
function v(S, A, I, P, B) {
|
|
1795
|
+
var U = S[A], V = M(U);
|
|
1796
1796
|
if (V !== "object")
|
|
1797
1797
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1798
1798
|
for (var K in _) {
|
|
@@ -1808,18 +1808,18 @@ function Hi() {
|
|
|
1808
1808
|
return L(v);
|
|
1809
1809
|
}
|
|
1810
1810
|
function le(_) {
|
|
1811
|
-
function v(S,
|
|
1812
|
-
var U = S[
|
|
1811
|
+
function v(S, A, I, P, B) {
|
|
1812
|
+
var U = S[A], V = M(U);
|
|
1813
1813
|
if (V !== "object")
|
|
1814
1814
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1815
|
-
var K = t({}, S[
|
|
1815
|
+
var K = t({}, S[A], _);
|
|
1816
1816
|
for (var $ in K) {
|
|
1817
1817
|
var ie = _[$];
|
|
1818
1818
|
if (n(_, $) && typeof ie != "function")
|
|
1819
1819
|
return me(I, P, B, $, q(ie));
|
|
1820
1820
|
if (!ie)
|
|
1821
1821
|
return new b(
|
|
1822
|
-
"Invalid " + P + " `" + B + "` key `" + $ + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(S[
|
|
1822
|
+
"Invalid " + P + " `" + B + "` key `" + $ + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(S[A], null, " ") + `
|
|
1823
1823
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
1824
1824
|
);
|
|
1825
1825
|
var y = ie(U, $, I, P, B + "." + $, o);
|
|
@@ -1845,14 +1845,14 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
1845
1845
|
return !0;
|
|
1846
1846
|
var v = u(_);
|
|
1847
1847
|
if (v) {
|
|
1848
|
-
var S = v.call(_),
|
|
1848
|
+
var S = v.call(_), A;
|
|
1849
1849
|
if (v !== _.entries) {
|
|
1850
|
-
for (; !(
|
|
1851
|
-
if (!Z(
|
|
1850
|
+
for (; !(A = S.next()).done; )
|
|
1851
|
+
if (!Z(A.value))
|
|
1852
1852
|
return !1;
|
|
1853
1853
|
} else
|
|
1854
|
-
for (; !(
|
|
1855
|
-
var I =
|
|
1854
|
+
for (; !(A = S.next()).done; ) {
|
|
1855
|
+
var I = A.value;
|
|
1856
1856
|
if (I && !Z(I[1]))
|
|
1857
1857
|
return !1;
|
|
1858
1858
|
}
|
|
@@ -2101,7 +2101,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2101
2101
|
p.current = i, l.current = performance.now();
|
|
2102
2102
|
const x = (b) => {
|
|
2103
2103
|
if (!l.current) return;
|
|
2104
|
-
const L = b - l.current, R = Math.min(L / o, 1), z = R < 0.5 ? 4 * R * R * R : 1 - Math.pow(-2 * R + 2, 3) / 2,
|
|
2104
|
+
const L = b - l.current, R = Math.min(L / o, 1), z = R < 0.5 ? 4 * R * R * R : 1 - Math.pow(-2 * R + 2, 3) / 2, F = p.current + (d.current - p.current) * z, w = Math.max(0, Math.floor(F));
|
|
2105
2105
|
r(w), R < 1 && (s.current = requestAnimationFrame(x));
|
|
2106
2106
|
};
|
|
2107
2107
|
return s.current = requestAnimationFrame(x), () => {
|
|
@@ -2169,7 +2169,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2169
2169
|
"%"
|
|
2170
2170
|
] })
|
|
2171
2171
|
] });
|
|
2172
|
-
}, yr = 180, wr = "_spSelect_1l6hu_43", Cr = "_spSelect_error_1l6hu_48", kr = "_spSelect__control_1l6hu_48", Tr = "_spSelect__value_empty_1l6hu_52", Nr = "_spSelect__icon_1l6hu_55", Er = "_spSelect_absolutePositionError_1l6hu_58", Ir = "_spSelect__container_1l6hu_61", Sr = "_spSelect__control_filled_1l6hu_81", Lr = "_spSelect__control_outlined_1l6hu_85", Rr = "_spSelect__control_disabled_1l6hu_110",
|
|
2172
|
+
}, yr = 180, wr = "_spSelect_1l6hu_43", Cr = "_spSelect_error_1l6hu_48", kr = "_spSelect__control_1l6hu_48", Tr = "_spSelect__value_empty_1l6hu_52", Nr = "_spSelect__icon_1l6hu_55", Er = "_spSelect_absolutePositionError_1l6hu_58", Ir = "_spSelect__container_1l6hu_61", Sr = "_spSelect__control_filled_1l6hu_81", Lr = "_spSelect__control_outlined_1l6hu_85", Rr = "_spSelect__control_disabled_1l6hu_110", Fr = "_spSelect__value_1l6hu_52", Ar = "_spSelect__list_1l6hu_141", jr = "_spSelect__list_scrollable_1l6hu_148", Br = "_spSelect__option_1l6hu_164", Dr = "_spSelect__error_1l6hu_182", Mr = "_spSelect__error_absolutePosition_1l6hu_189", _e = {
|
|
2173
2173
|
spSelect: wr,
|
|
2174
2174
|
spSelect_error: Cr,
|
|
2175
2175
|
spSelect__control: kr,
|
|
@@ -2180,9 +2180,9 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2180
2180
|
spSelect__control_filled: Sr,
|
|
2181
2181
|
spSelect__control_outlined: Lr,
|
|
2182
2182
|
spSelect__control_disabled: Rr,
|
|
2183
|
-
spSelect__value:
|
|
2184
|
-
spSelect__list:
|
|
2185
|
-
spSelect__list_scrollable:
|
|
2183
|
+
spSelect__value: Fr,
|
|
2184
|
+
spSelect__list: Ar,
|
|
2185
|
+
spSelect__list_scrollable: jr,
|
|
2186
2186
|
spSelect__option: Br,
|
|
2187
2187
|
spSelect__error: Dr,
|
|
2188
2188
|
spSelect__error_absolutePosition: Mr
|
|
@@ -2206,7 +2206,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2206
2206
|
isScrollableList: L = !1,
|
|
2207
2207
|
isAbsolutePositionError: R = !1,
|
|
2208
2208
|
classNameRoot: z,
|
|
2209
|
-
classNameError:
|
|
2209
|
+
classNameError: F,
|
|
2210
2210
|
classNameLabel: w,
|
|
2211
2211
|
classNameBaseTooltipRoot: m
|
|
2212
2212
|
} = e, [N, W] = oe(!1), H = ve(null);
|
|
@@ -2245,7 +2245,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2245
2245
|
}), ee = f({
|
|
2246
2246
|
[_e.spSelect__error]: !0,
|
|
2247
2247
|
[_e.spSelect__error_absolutePosition]: R,
|
|
2248
|
-
...
|
|
2248
|
+
...F && { [F]: !0 }
|
|
2249
2249
|
});
|
|
2250
2250
|
return /* @__PURE__ */ O("div", { className: ue, ref: H, children: [
|
|
2251
2251
|
l && /* @__PURE__ */ c(
|
|
@@ -2293,7 +2293,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2293
2293
|
className: f({
|
|
2294
2294
|
[_e.spSelect__option]: !0
|
|
2295
2295
|
}),
|
|
2296
|
-
onClick: (
|
|
2296
|
+
onClick: (A) => ne(A, v.value),
|
|
2297
2297
|
children: [
|
|
2298
2298
|
v.label,
|
|
2299
2299
|
S && /* @__PURE__ */ c(de, { name: D.Check, className: M })
|
|
@@ -2597,7 +2597,7 @@ const tr = (e) => `not ${e}`, or = (e, t) => {
|
|
|
2597
2597
|
/* @__PURE__ */ c(Ne, { ...l, children: p })
|
|
2598
2598
|
] });
|
|
2599
2599
|
};
|
|
2600
|
-
function
|
|
2600
|
+
function Ae(e, t, o, n) {
|
|
2601
2601
|
function a(i) {
|
|
2602
2602
|
return i instanceof o ? i : new o(function(r) {
|
|
2603
2603
|
r(i);
|
|
@@ -3860,7 +3860,7 @@ const ls = [
|
|
|
3860
3860
|
// Windows
|
|
3861
3861
|
];
|
|
3862
3862
|
function cs(e) {
|
|
3863
|
-
return
|
|
3863
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3864
3864
|
return ot(e) && ds(e.dataTransfer) ? fs(e.dataTransfer, e.type) : ms(e) ? us(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? _s(e) : [];
|
|
3865
3865
|
});
|
|
3866
3866
|
}
|
|
@@ -3877,18 +3877,18 @@ function us(e) {
|
|
|
3877
3877
|
return Rt(e.target.files).map((t) => Pe(t));
|
|
3878
3878
|
}
|
|
3879
3879
|
function _s(e) {
|
|
3880
|
-
return
|
|
3880
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3881
3881
|
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Pe(o));
|
|
3882
3882
|
});
|
|
3883
3883
|
}
|
|
3884
3884
|
function fs(e, t) {
|
|
3885
|
-
return
|
|
3885
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3886
3886
|
if (e.items) {
|
|
3887
3887
|
const o = Rt(e.items).filter((a) => a.kind === "file");
|
|
3888
3888
|
if (t !== "drop")
|
|
3889
3889
|
return o;
|
|
3890
3890
|
const n = yield Promise.all(o.map(vs));
|
|
3891
|
-
return so(
|
|
3891
|
+
return so(Fo(n));
|
|
3892
3892
|
}
|
|
3893
3893
|
return so(Rt(e.files).map((o) => Pe(o)));
|
|
3894
3894
|
});
|
|
@@ -3910,16 +3910,16 @@ function vs(e) {
|
|
|
3910
3910
|
if (typeof e.webkitGetAsEntry != "function")
|
|
3911
3911
|
return po(e);
|
|
3912
3912
|
const t = e.webkitGetAsEntry();
|
|
3913
|
-
return t && t.isDirectory ?
|
|
3913
|
+
return t && t.isDirectory ? Ao(t) : po(e, t);
|
|
3914
3914
|
}
|
|
3915
|
-
function
|
|
3915
|
+
function Fo(e) {
|
|
3916
3916
|
return e.reduce((t, o) => [
|
|
3917
3917
|
...t,
|
|
3918
|
-
...Array.isArray(o) ?
|
|
3918
|
+
...Array.isArray(o) ? Fo(o) : [o]
|
|
3919
3919
|
], []);
|
|
3920
3920
|
}
|
|
3921
3921
|
function po(e, t) {
|
|
3922
|
-
return
|
|
3922
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3923
3923
|
var o;
|
|
3924
3924
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
3925
3925
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -3937,16 +3937,16 @@ function po(e, t) {
|
|
|
3937
3937
|
});
|
|
3938
3938
|
}
|
|
3939
3939
|
function gs(e) {
|
|
3940
|
-
return
|
|
3941
|
-
return e.isDirectory ?
|
|
3940
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3941
|
+
return e.isDirectory ? Ao(e) : xs(e);
|
|
3942
3942
|
});
|
|
3943
3943
|
}
|
|
3944
|
-
function
|
|
3944
|
+
function Ao(e) {
|
|
3945
3945
|
const t = e.createReader();
|
|
3946
3946
|
return new Promise((o, n) => {
|
|
3947
3947
|
const a = [];
|
|
3948
3948
|
function i() {
|
|
3949
|
-
t.readEntries((r) =>
|
|
3949
|
+
t.readEntries((r) => Ae(this, void 0, void 0, function* () {
|
|
3950
3950
|
if (r.length) {
|
|
3951
3951
|
const s = Promise.all(r.map(gs));
|
|
3952
3952
|
a.push(s), i();
|
|
@@ -3965,7 +3965,7 @@ function Fo(e) {
|
|
|
3965
3965
|
});
|
|
3966
3966
|
}
|
|
3967
3967
|
function xs(e) {
|
|
3968
|
-
return
|
|
3968
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3969
3969
|
return new Promise((t, o) => {
|
|
3970
3970
|
e.file((n) => {
|
|
3971
3971
|
const a = Pe(n, e.fullPath);
|
|
@@ -4000,7 +4000,7 @@ function bs(e) {
|
|
|
4000
4000
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4001
4001
|
}
|
|
4002
4002
|
function ys(e) {
|
|
4003
|
-
if (Array.isArray(e)) return
|
|
4003
|
+
if (Array.isArray(e)) return Ft(e);
|
|
4004
4004
|
}
|
|
4005
4005
|
function co(e, t) {
|
|
4006
4006
|
var o = Object.keys(e);
|
|
@@ -4016,14 +4016,14 @@ function mo(e) {
|
|
|
4016
4016
|
for (var t = 1; t < arguments.length; t++) {
|
|
4017
4017
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4018
4018
|
t % 2 ? co(Object(o), !0).forEach(function(n) {
|
|
4019
|
-
|
|
4019
|
+
jo(e, n, o[n]);
|
|
4020
4020
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : co(Object(o)).forEach(function(n) {
|
|
4021
4021
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4022
4022
|
});
|
|
4023
4023
|
}
|
|
4024
4024
|
return e;
|
|
4025
4025
|
}
|
|
4026
|
-
function
|
|
4026
|
+
function jo(e, t, o) {
|
|
4027
4027
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4028
4028
|
}
|
|
4029
4029
|
function He(e, t) {
|
|
@@ -4035,13 +4035,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4035
4035
|
}
|
|
4036
4036
|
function Bo(e, t) {
|
|
4037
4037
|
if (e) {
|
|
4038
|
-
if (typeof e == "string") return
|
|
4038
|
+
if (typeof e == "string") return Ft(e, t);
|
|
4039
4039
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
4040
4040
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
|
4041
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
|
4041
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Ft(e, t);
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
|
-
function
|
|
4044
|
+
function Ft(e, t) {
|
|
4045
4045
|
(t == null || t > e.length) && (t = e.length);
|
|
4046
4046
|
for (var o = 0, n = new Array(t); o < t; o++)
|
|
4047
4047
|
n[o] = e[o];
|
|
@@ -4098,17 +4098,17 @@ function Oo(e, t) {
|
|
|
4098
4098
|
return [o, o ? null : Es(t)];
|
|
4099
4099
|
}
|
|
4100
4100
|
function Wo(e, t, o) {
|
|
4101
|
-
if (
|
|
4102
|
-
if (
|
|
4101
|
+
if (Fe(e.size))
|
|
4102
|
+
if (Fe(t) && Fe(o)) {
|
|
4103
4103
|
if (e.size > o) return [!1, uo(o)];
|
|
4104
4104
|
if (e.size < t) return [!1, _o(t)];
|
|
4105
4105
|
} else {
|
|
4106
|
-
if (
|
|
4107
|
-
if (
|
|
4106
|
+
if (Fe(t) && e.size < t) return [!1, _o(t)];
|
|
4107
|
+
if (Fe(o) && e.size > o) return [!1, uo(o)];
|
|
4108
4108
|
}
|
|
4109
4109
|
return [!0, null];
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function Fe(e) {
|
|
4112
4112
|
return e != null;
|
|
4113
4113
|
}
|
|
4114
4114
|
function Ss(e) {
|
|
@@ -4135,7 +4135,7 @@ function Ls(e) {
|
|
|
4135
4135
|
function Rs(e) {
|
|
4136
4136
|
return e.indexOf("Edge/") !== -1;
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function Fs() {
|
|
4139
4139
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
4140
4140
|
return Ls(e) || Rs(e);
|
|
4141
4141
|
}
|
|
@@ -4150,17 +4150,17 @@ function Te() {
|
|
|
4150
4150
|
});
|
|
4151
4151
|
};
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function As() {
|
|
4154
4154
|
return "showOpenFilePicker" in window;
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
if (
|
|
4156
|
+
function js(e) {
|
|
4157
|
+
if (Fe(e)) {
|
|
4158
4158
|
var t = Object.entries(e).filter(function(o) {
|
|
4159
4159
|
var n = He(o, 2), a = n[0], i = n[1], r = !0;
|
|
4160
4160
|
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;
|
|
4161
4161
|
}).reduce(function(o, n) {
|
|
4162
4162
|
var a = He(n, 2), i = a[0], r = a[1];
|
|
4163
|
-
return mo(mo({}, o), {},
|
|
4163
|
+
return mo(mo({}, o), {}, jo({}, i, r));
|
|
4164
4164
|
}, {});
|
|
4165
4165
|
return [{
|
|
4166
4166
|
// description is required due to https://crbug.com/1264708
|
|
@@ -4171,7 +4171,7 @@ function As(e) {
|
|
|
4171
4171
|
return e;
|
|
4172
4172
|
}
|
|
4173
4173
|
function Bs(e) {
|
|
4174
|
-
if (
|
|
4174
|
+
if (Fe(e))
|
|
4175
4175
|
return Object.entries(e).reduce(function(t, o) {
|
|
4176
4176
|
var n = He(o, 2), a = n[0], i = n[1];
|
|
4177
4177
|
return [].concat(lo(t), [a], lo(i));
|
|
@@ -4203,7 +4203,7 @@ function $s(e) {
|
|
|
4203
4203
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4204
4204
|
}
|
|
4205
4205
|
function Hs(e) {
|
|
4206
|
-
if (Array.isArray(e)) return
|
|
4206
|
+
if (Array.isArray(e)) return At(e);
|
|
4207
4207
|
}
|
|
4208
4208
|
function It(e, t) {
|
|
4209
4209
|
return Gs(e) || Ys(e, t) || qo(e, t) || Vs();
|
|
@@ -4214,13 +4214,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4214
4214
|
}
|
|
4215
4215
|
function qo(e, t) {
|
|
4216
4216
|
if (e) {
|
|
4217
|
-
if (typeof e == "string") return
|
|
4217
|
+
if (typeof e == "string") return At(e, t);
|
|
4218
4218
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
4219
4219
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
|
4220
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
|
4220
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return At(e, t);
|
|
4221
4221
|
}
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function At(e, t) {
|
|
4224
4224
|
(t == null || t > e.length) && (t = e.length);
|
|
4225
4225
|
for (var o = 0, n = new Array(t); o < t; o++)
|
|
4226
4226
|
n[o] = e[o];
|
|
@@ -4262,14 +4262,14 @@ function te(e) {
|
|
|
4262
4262
|
for (var t = 1; t < arguments.length; t++) {
|
|
4263
4263
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4264
4264
|
t % 2 ? vo(Object(o), !0).forEach(function(n) {
|
|
4265
|
-
|
|
4265
|
+
jt(e, n, o[n]);
|
|
4266
4266
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : vo(Object(o)).forEach(function(n) {
|
|
4267
4267
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
4270
|
return e;
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function jt(e, t, o) {
|
|
4273
4273
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4274
4274
|
}
|
|
4275
4275
|
function at(e, t) {
|
|
@@ -4495,47 +4495,47 @@ var Bt = {
|
|
|
4495
4495
|
fileRejections: []
|
|
4496
4496
|
};
|
|
4497
4497
|
function Ho() {
|
|
4498
|
-
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, L = t.onFileDialogOpen, R = t.useFsAccessApi, z = t.autoFocus,
|
|
4498
|
+
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, L = t.onFileDialogOpen, R = t.useFsAccessApi, z = t.autoFocus, F = t.preventDropOnDocument, w = t.noClick, m = t.noKeyboard, N = t.noDrag, W = t.noDragEventsBubbling, H = t.onError, X = t.validator, ne = De(function() {
|
|
4499
4499
|
return Bs(o);
|
|
4500
4500
|
}, [o]), me = De(function() {
|
|
4501
|
-
return
|
|
4501
|
+
return js(o);
|
|
4502
4502
|
}, [o]), ue = De(function() {
|
|
4503
4503
|
return typeof L == "function" ? L : go;
|
|
4504
4504
|
}, [L]), le = De(function() {
|
|
4505
4505
|
return typeof b == "function" ? b : go;
|
|
4506
|
-
}, [b]), Z = ve(null), T = ve(null), M = Qo(Xs, Bt), q = It(M, 2), G = q[0], ee = q[1], _ = G.isFocused, v = G.isFileDialogActive, S = ve(typeof window < "u" && window.isSecureContext && R &&
|
|
4506
|
+
}, [b]), Z = ve(null), T = ve(null), M = Qo(Xs, Bt), q = It(M, 2), G = q[0], ee = q[1], _ = G.isFocused, v = G.isFileDialogActive, S = ve(typeof window < "u" && window.isSecureContext && R && As()), A = function() {
|
|
4507
4507
|
!S.current && v && setTimeout(function() {
|
|
4508
4508
|
if (T.current) {
|
|
4509
|
-
var
|
|
4510
|
-
|
|
4509
|
+
var j = T.current.files;
|
|
4510
|
+
j.length || (ee({
|
|
4511
4511
|
type: "closeDialog"
|
|
4512
4512
|
}), le());
|
|
4513
4513
|
}
|
|
4514
4514
|
}, 300);
|
|
4515
4515
|
};
|
|
4516
4516
|
re(function() {
|
|
4517
|
-
return window.addEventListener("focus",
|
|
4518
|
-
window.removeEventListener("focus",
|
|
4517
|
+
return window.addEventListener("focus", A, !1), function() {
|
|
4518
|
+
window.removeEventListener("focus", A, !1);
|
|
4519
4519
|
};
|
|
4520
4520
|
}, [T, v, le, S]);
|
|
4521
|
-
var I = ve([]), P = function(
|
|
4522
|
-
Z.current && Z.current.contains(
|
|
4521
|
+
var I = ve([]), P = function(j) {
|
|
4522
|
+
Z.current && Z.current.contains(j.target) || (j.preventDefault(), I.current = []);
|
|
4523
4523
|
};
|
|
4524
4524
|
re(function() {
|
|
4525
|
-
return
|
|
4526
|
-
|
|
4525
|
+
return F && (document.addEventListener("dragover", fo, !1), document.addEventListener("drop", P, !1)), function() {
|
|
4526
|
+
F && (document.removeEventListener("dragover", fo), document.removeEventListener("drop", P));
|
|
4527
4527
|
};
|
|
4528
|
-
}, [Z,
|
|
4528
|
+
}, [Z, F]), re(function() {
|
|
4529
4529
|
return !n && z && Z.current && Z.current.focus(), function() {
|
|
4530
4530
|
};
|
|
4531
4531
|
}, [Z, z, n]);
|
|
4532
4532
|
var B = xe(function(k) {
|
|
4533
4533
|
H ? H(k) : console.error(k);
|
|
4534
4534
|
}, [H]), U = xe(function(k) {
|
|
4535
|
-
k.preventDefault(), k.persist(), Ge(k), I.current = [].concat(Us(I.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(
|
|
4535
|
+
k.preventDefault(), k.persist(), Ge(k), I.current = [].concat(Us(I.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(j) {
|
|
4536
4536
|
if (!(nt(k) && !W)) {
|
|
4537
|
-
var ae =
|
|
4538
|
-
files:
|
|
4537
|
+
var ae = j.length, se = ae > 0 && Ss({
|
|
4538
|
+
files: j,
|
|
4539
4539
|
accept: ne,
|
|
4540
4540
|
minSize: r,
|
|
4541
4541
|
maxSize: i,
|
|
@@ -4550,30 +4550,30 @@ function Ho() {
|
|
|
4550
4550
|
type: "setDraggedFiles"
|
|
4551
4551
|
}), l && l(k);
|
|
4552
4552
|
}
|
|
4553
|
-
}).catch(function(
|
|
4554
|
-
return B(
|
|
4553
|
+
}).catch(function(j) {
|
|
4554
|
+
return B(j);
|
|
4555
4555
|
});
|
|
4556
4556
|
}, [a, l, B, W, ne, r, i, s, p, X]), V = xe(function(k) {
|
|
4557
4557
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4558
|
-
var
|
|
4559
|
-
if (
|
|
4558
|
+
var j = et(k);
|
|
4559
|
+
if (j && k.dataTransfer)
|
|
4560
4560
|
try {
|
|
4561
4561
|
k.dataTransfer.dropEffect = "copy";
|
|
4562
4562
|
} catch {
|
|
4563
4563
|
}
|
|
4564
|
-
return
|
|
4564
|
+
return j && u && u(k), !1;
|
|
4565
4565
|
}, [u, W]), K = xe(function(k) {
|
|
4566
4566
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4567
|
-
var
|
|
4567
|
+
var j = I.current.filter(function(se) {
|
|
4568
4568
|
return Z.current && Z.current.contains(se);
|
|
4569
|
-
}), ae =
|
|
4570
|
-
ae !== -1 &&
|
|
4569
|
+
}), ae = j.indexOf(k.target);
|
|
4570
|
+
ae !== -1 && j.splice(ae, 1), I.current = j, !(j.length > 0) && (ee({
|
|
4571
4571
|
type: "setDraggedFiles",
|
|
4572
4572
|
isDragActive: !1,
|
|
4573
4573
|
isDragAccept: !1,
|
|
4574
4574
|
isDragReject: !1
|
|
4575
4575
|
}), et(k) && d && d(k));
|
|
4576
|
-
}, [Z, d, W]), $ = xe(function(k,
|
|
4576
|
+
}, [Z, d, W]), $ = xe(function(k, j) {
|
|
4577
4577
|
var ae = [], se = [];
|
|
4578
4578
|
k.forEach(function(be) {
|
|
4579
4579
|
var We = Oo(be, ne), Be = It(We, 2), pt = Be[0], lt = Be[1], ct = Wo(be, r, i), Ke = It(ct, 2), dt = Ke[0], mt = Ke[1], ut = X ? X(be) : null;
|
|
@@ -4598,12 +4598,12 @@ function Ho() {
|
|
|
4598
4598
|
fileRejections: se,
|
|
4599
4599
|
isDragReject: se.length > 0,
|
|
4600
4600
|
type: "setFiles"
|
|
4601
|
-
}), g && g(ae, se,
|
|
4601
|
+
}), g && g(ae, se, j), se.length > 0 && x && x(se, j), ae.length > 0 && h && h(ae, j);
|
|
4602
4602
|
}, [ee, s, ne, r, i, p, g, h, x, X]), ie = xe(function(k) {
|
|
4603
|
-
k.preventDefault(), k.persist(), Ge(k), I.current = [], et(k) && Promise.resolve(a(k)).then(function(
|
|
4604
|
-
nt(k) && !W || $(
|
|
4605
|
-
}).catch(function(
|
|
4606
|
-
return B(
|
|
4603
|
+
k.preventDefault(), k.persist(), Ge(k), I.current = [], et(k) && Promise.resolve(a(k)).then(function(j) {
|
|
4604
|
+
nt(k) && !W || $(j, k);
|
|
4605
|
+
}).catch(function(j) {
|
|
4606
|
+
return B(j);
|
|
4607
4607
|
}), ee({
|
|
4608
4608
|
type: "reset"
|
|
4609
4609
|
});
|
|
@@ -4616,16 +4616,16 @@ function Ho() {
|
|
|
4616
4616
|
multiple: s,
|
|
4617
4617
|
types: me
|
|
4618
4618
|
};
|
|
4619
|
-
window.showOpenFilePicker(k).then(function(
|
|
4620
|
-
return a(
|
|
4621
|
-
}).then(function(
|
|
4622
|
-
$(
|
|
4619
|
+
window.showOpenFilePicker(k).then(function(j) {
|
|
4620
|
+
return a(j);
|
|
4621
|
+
}).then(function(j) {
|
|
4622
|
+
$(j, null), ee({
|
|
4623
4623
|
type: "closeDialog"
|
|
4624
4624
|
});
|
|
4625
|
-
}).catch(function(
|
|
4626
|
-
Ds(
|
|
4625
|
+
}).catch(function(j) {
|
|
4626
|
+
Ds(j) ? (le(j), ee({
|
|
4627
4627
|
type: "closeDialog"
|
|
4628
|
-
})) : Ms(
|
|
4628
|
+
})) : Ms(j) ? (S.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(j);
|
|
4629
4629
|
});
|
|
4630
4630
|
return;
|
|
4631
4631
|
}
|
|
@@ -4643,23 +4643,23 @@ function Ho() {
|
|
|
4643
4643
|
type: "blur"
|
|
4644
4644
|
});
|
|
4645
4645
|
}, []), zt = xe(function() {
|
|
4646
|
-
w || (
|
|
4647
|
-
}, [w, y]),
|
|
4648
|
-
return n ? null :
|
|
4649
|
-
}, st = function(
|
|
4650
|
-
return m ? null :
|
|
4651
|
-
}, Ye = function(
|
|
4652
|
-
return N ? null :
|
|
4653
|
-
}, Ge = function(
|
|
4654
|
-
W &&
|
|
4646
|
+
w || (Fs() ? setTimeout(y, 0) : y());
|
|
4647
|
+
}, [w, y]), je = function(j) {
|
|
4648
|
+
return n ? null : j;
|
|
4649
|
+
}, st = function(j) {
|
|
4650
|
+
return m ? null : je(j);
|
|
4651
|
+
}, Ye = function(j) {
|
|
4652
|
+
return N ? null : je(j);
|
|
4653
|
+
}, Ge = function(j) {
|
|
4654
|
+
W && j.stopPropagation();
|
|
4655
4655
|
}, Vo = De(function() {
|
|
4656
4656
|
return function() {
|
|
4657
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4658
|
-
return te(te(
|
|
4657
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = k.refKey, ae = j === void 0 ? "ref" : j, se = k.role, be = 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, Ws);
|
|
4658
|
+
return te(te(jt({
|
|
4659
4659
|
onKeyDown: st(Te(be, he)),
|
|
4660
4660
|
onFocus: st(Te(We, Se)),
|
|
4661
4661
|
onBlur: st(Te(Be, Oe)),
|
|
4662
|
-
onClick:
|
|
4662
|
+
onClick: je(Te(pt, zt)),
|
|
4663
4663
|
onDragEnter: Ye(Te(lt, U)),
|
|
4664
4664
|
onDragOver: Ye(Te(ct, V)),
|
|
4665
4665
|
onDragLeave: Ye(Te(Ke, K)),
|
|
@@ -4673,7 +4673,7 @@ function Ho() {
|
|
|
4673
4673
|
k.stopPropagation();
|
|
4674
4674
|
}, []), Go = De(function() {
|
|
4675
4675
|
return function() {
|
|
4676
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4676
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = k.refKey, ae = j === void 0 ? "ref" : j, se = k.onChange, be = k.onClick, We = at(k, zs), Be = jt({
|
|
4677
4677
|
accept: ne,
|
|
4678
4678
|
multiple: s,
|
|
4679
4679
|
type: "file",
|
|
@@ -4689,8 +4689,8 @@ function Ho() {
|
|
|
4689
4689
|
width: "1px",
|
|
4690
4690
|
whiteSpace: "nowrap"
|
|
4691
4691
|
},
|
|
4692
|
-
onChange:
|
|
4693
|
-
onClick:
|
|
4692
|
+
onChange: je(Te(se, ie)),
|
|
4693
|
+
onClick: je(Te(be, Yo)),
|
|
4694
4694
|
tabIndex: -1
|
|
4695
4695
|
}, ae, T);
|
|
4696
4696
|
return te(te({}, Be), We);
|
|
@@ -4702,7 +4702,7 @@ function Ho() {
|
|
|
4702
4702
|
getInputProps: Go,
|
|
4703
4703
|
rootRef: Z,
|
|
4704
4704
|
inputRef: T,
|
|
4705
|
-
open:
|
|
4705
|
+
open: je(y)
|
|
4706
4706
|
});
|
|
4707
4707
|
}
|
|
4708
4708
|
function Xs(e, t) {
|
|
@@ -4817,8 +4817,8 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4817
4817
|
b([...S]), a(_, n);
|
|
4818
4818
|
return;
|
|
4819
4819
|
}
|
|
4820
|
-
const
|
|
4821
|
-
b([...S, ...x]), a(
|
|
4820
|
+
const A = [...p, ..._];
|
|
4821
|
+
b([...S, ...x]), a(A, n);
|
|
4822
4822
|
},
|
|
4823
4823
|
[x, p, s, n, a]
|
|
4824
4824
|
), { getRootProps: R, getInputProps: z } = Zs({
|
|
@@ -4826,10 +4826,10 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4826
4826
|
onDrop: L,
|
|
4827
4827
|
multiple: s,
|
|
4828
4828
|
disabled: r
|
|
4829
|
-
}),
|
|
4829
|
+
}), F = x ? (x == null ? void 0 : x.length) > 0 : void 0, w = [...p.map((_) => ({ file: _, errors: null })), ...x], m = (w == null ? void 0 : w.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input", W = o === "dropzone", H = f({
|
|
4830
4830
|
[Y.spUploadFiles]: !0,
|
|
4831
4831
|
[Y[`spUploadFiles--variant-${o}`]]: o,
|
|
4832
|
-
[Y.spUploadFiles_error]:
|
|
4832
|
+
[Y.spUploadFiles_error]: F && !s && h && h.length > 0,
|
|
4833
4833
|
[Y.spUploadFiles_disabled]: r,
|
|
4834
4834
|
[Y.spUploadFiles_fileUploaded]: m,
|
|
4835
4835
|
...u && { [u]: !0 }
|
|
@@ -4850,12 +4850,12 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4850
4850
|
I.splice(P, 1), b(I);
|
|
4851
4851
|
return;
|
|
4852
4852
|
}
|
|
4853
|
-
const S = [...p],
|
|
4854
|
-
S.splice(
|
|
4853
|
+
const S = [...p], A = S.findIndex((I) => I.name === _);
|
|
4854
|
+
S.splice(A, 1), a(S, n);
|
|
4855
4855
|
}, le = (_) => {
|
|
4856
4856
|
_.stopPropagation(), a([], n), b([]);
|
|
4857
4857
|
}, Z = (_) => Object.values(_).flatMap((v) => v.map((S) => S.toUpperCase())).join(", "), T = () => {
|
|
4858
|
-
if (
|
|
4858
|
+
if (F) {
|
|
4859
4859
|
const _ = Z(i);
|
|
4860
4860
|
return /* @__PURE__ */ c(
|
|
4861
4861
|
Ue,
|
|
@@ -4864,7 +4864,7 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4864
4864
|
classNameTooltipRoot: f(Y.spUploadFiles__fileNameContainer),
|
|
4865
4865
|
classNameRoot: f(
|
|
4866
4866
|
Y.spUploadFiles__fileName,
|
|
4867
|
-
|
|
4867
|
+
F && Y.spUploadFiles__fileName_dragError
|
|
4868
4868
|
)
|
|
4869
4869
|
}
|
|
4870
4870
|
);
|
|
@@ -4878,13 +4878,13 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4878
4878
|
}
|
|
4879
4879
|
);
|
|
4880
4880
|
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: _, errors: v }, S) => {
|
|
4881
|
-
const
|
|
4881
|
+
const A = v ? (v == null ? void 0 : v.length) > 0 : void 0, I = () => v ? v == null ? void 0 : v.map(Sp).join(", ") : "";
|
|
4882
4882
|
return /* @__PURE__ */ O(
|
|
4883
4883
|
"li",
|
|
4884
4884
|
{
|
|
4885
4885
|
className: f(
|
|
4886
4886
|
Y.spUploadFiles__fileNamesListItem,
|
|
4887
|
-
|
|
4887
|
+
A && Y.spUploadFiles__fileNamesListItem_error
|
|
4888
4888
|
),
|
|
4889
4889
|
onClick: (P) => {
|
|
4890
4890
|
P.stopPropagation();
|
|
@@ -4895,9 +4895,9 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4895
4895
|
{
|
|
4896
4896
|
className: f(
|
|
4897
4897
|
Y.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4898
|
-
|
|
4898
|
+
A && Y.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4899
4899
|
),
|
|
4900
|
-
children: /* @__PURE__ */ c(de, { name:
|
|
4900
|
+
children: /* @__PURE__ */ c(de, { name: A ? D.InfoError : D.File })
|
|
4901
4901
|
}
|
|
4902
4902
|
),
|
|
4903
4903
|
/* @__PURE__ */ O("div", { className: Y.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
@@ -4915,11 +4915,11 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4915
4915
|
/* @__PURE__ */ c(
|
|
4916
4916
|
Ue,
|
|
4917
4917
|
{
|
|
4918
|
-
text:
|
|
4918
|
+
text: A ? I() : Lp(_.size),
|
|
4919
4919
|
classNameBaseTooltipRoot: Y.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4920
4920
|
classNameRoot: f(
|
|
4921
4921
|
Y.spUploadFiles__fileNamesListItem__description,
|
|
4922
|
-
|
|
4922
|
+
A && Y.spUploadFiles__fileNamesListItem__description_error
|
|
4923
4923
|
)
|
|
4924
4924
|
}
|
|
4925
4925
|
)
|
|
@@ -4929,7 +4929,7 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4929
4929
|
{
|
|
4930
4930
|
className: f(Y.spUploadFiles__fileNamesListItemDelete),
|
|
4931
4931
|
onClick: (P) => {
|
|
4932
|
-
P.stopPropagation(), ue(_.name,
|
|
4932
|
+
P.stopPropagation(), ue(_.name, A);
|
|
4933
4933
|
},
|
|
4934
4934
|
children: /* @__PURE__ */ c(de, { name: D.Close })
|
|
4935
4935
|
}
|
|
@@ -4992,11 +4992,11 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
4992
4992
|
] })
|
|
4993
4993
|
}
|
|
4994
4994
|
);
|
|
4995
|
-
}, Rp = "_viewImageModal_sn237_43",
|
|
4995
|
+
}, Rp = "_viewImageModal_sn237_43", Fp = "_viewImageModal__img_sn237_77", Ap = "_viewImageModal__img_loading_sn237_90", jp = "_viewImageModal__img_error_sn237_93", Bp = "_viewImageModal__spinner_sn237_96", Dp = "_viewImageModal__layer_sn237_123", Mp = "_viewImageModal__closeButton_sn237_128", Ee = {
|
|
4996
4996
|
viewImageModal: Rp,
|
|
4997
|
-
viewImageModal__img:
|
|
4998
|
-
viewImageModal__img_loading:
|
|
4999
|
-
viewImageModal__img_error:
|
|
4997
|
+
viewImageModal__img: Fp,
|
|
4998
|
+
viewImageModal__img_loading: Ap,
|
|
4999
|
+
viewImageModal__img_error: jp,
|
|
5000
5000
|
viewImageModal__spinner: Bp,
|
|
5001
5001
|
viewImageModal__layer: Dp,
|
|
5002
5002
|
viewImageModal__closeButton: Mp
|
|
@@ -5019,7 +5019,7 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
5019
5019
|
[Ee.viewImageModal__closeButton]: !0
|
|
5020
5020
|
}), z = f({
|
|
5021
5021
|
[Ee.viewImageModal__spinner]: !0
|
|
5022
|
-
}),
|
|
5022
|
+
}), F = f(Ee.viewImageModal__img, {
|
|
5023
5023
|
[Ee.viewImageModal__img_loading]: l,
|
|
5024
5024
|
[Ee.viewImageModal__img_error]: u,
|
|
5025
5025
|
...o && { [o]: !0 }
|
|
@@ -5030,7 +5030,7 @@ const Zs = (e) => Ho(e), Qs = "_spUploadFiles_11994_43", Js = "_spUploadFiles_er
|
|
|
5030
5030
|
/* @__PURE__ */ c(
|
|
5031
5031
|
"img",
|
|
5032
5032
|
{
|
|
5033
|
-
className:
|
|
5033
|
+
className: F,
|
|
5034
5034
|
src: h,
|
|
5035
5035
|
alt: "someImage",
|
|
5036
5036
|
onLoad: (N) => {
|