test-stpr-ui-kit 0.5.22 → 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/test-stpr-ui-kit.css +1 -1
- package/dist/test-stpr-ui-kit.es.d.ts +2 -1
- package/dist/test-stpr-ui-kit.js +177 -181
- package/dist/test-stpr-ui-kit.umd.cjs +10 -10
- 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
|
-
}, In = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", jn = "_spAccordion_noPadding_14avc_63", Rn = "_spAccordion_open_14avc_66",
|
|
55
|
+
}, In = "_spAccordion_14avc_43", Ln = "_spAccordion_noBorder_14avc_60", jn = "_spAccordion_noPadding_14avc_63", Rn = "_spAccordion_open_14avc_66", An = "_spAccordion__header_14avc_69", Fn = "_spAccordion_noOpen_14avc_88", Bn = "_spAccordion__name_14avc_99", Dn = "_spAccordion__name_hiddenExpand_14avc_110", Mn = "_spAccordion__icon_14avc_125", Pn = "_spAccordion__icon_hidden_14avc_131", On = "_spAccordion__icon_open_14avc_134", Wn = "_spAccordion__childrenWrapper_14avc_141", zn = "_spAccordion__childrenWrapper_open_14avc_150", Un = "_spAccordion__content_14avc_153", qn = "_spAccordion__content_open_14avc_159", ce = {
|
|
56
56
|
spAccordion: In,
|
|
57
57
|
spAccordion_noBorder: Ln,
|
|
58
58
|
spAccordion_noPadding: jn,
|
|
59
59
|
spAccordion_open: Rn,
|
|
60
|
-
spAccordion__header:
|
|
61
|
-
spAccordion_noOpen:
|
|
60
|
+
spAccordion__header: An,
|
|
61
|
+
spAccordion_noOpen: Fn,
|
|
62
62
|
spAccordion__name: Bn,
|
|
63
63
|
spAccordion__name_hiddenExpand: Dn,
|
|
64
64
|
"spAccordion__name--level-1": "_spAccordion__name--level-1_14avc_114",
|
|
@@ -338,7 +338,7 @@ const de = (e) => {
|
|
|
338
338
|
"spText_type-description": "_spText_type-description_1todx_97",
|
|
339
339
|
"spText_type-link": "_spText_type-link_1todx_105",
|
|
340
340
|
spText_cursorPointer: ma
|
|
341
|
-
},
|
|
341
|
+
}, Ee = Ve.forwardRef((e, t) => {
|
|
342
342
|
const {
|
|
343
343
|
type: o,
|
|
344
344
|
children: n,
|
|
@@ -369,7 +369,7 @@ const de = (e) => {
|
|
|
369
369
|
}
|
|
370
370
|
);
|
|
371
371
|
});
|
|
372
|
-
|
|
372
|
+
Ee.displayName = "Text";
|
|
373
373
|
const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa = "_modalWrapper__content_1pg9r_106", va = "_modalWrapper__header_1pg9r_109", ga = "_modalWrapper__subHeader_1pg9r_117", xa = "_modalWrapper__subHeader_onlySubHeader_1pg9r_125", ha = "_modalWrapper__footer_1pg9r_128", ba = "_modalWrapper__closeButton_1pg9r_131", ge = {
|
|
374
374
|
modalWrapper: ua,
|
|
375
375
|
"modalWrapper--modalVerticalAlign-top": "_modalWrapper--modalVerticalAlign-top_1pg9r_48",
|
|
@@ -432,8 +432,8 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
432
432
|
});
|
|
433
433
|
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: b, children: /* @__PURE__ */ W("div", { className: I, style: s, children: [
|
|
434
434
|
(u || g) && /* @__PURE__ */ W("div", { className: w, children: [
|
|
435
|
-
typeof u == "string" ? /* @__PURE__ */ c(
|
|
436
|
-
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(
|
|
435
|
+
typeof u == "string" ? /* @__PURE__ */ c(Ee, { type: "h3", children: u }) : u,
|
|
436
|
+
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(Ee, { children: g }) : g })
|
|
437
437
|
] }),
|
|
438
438
|
a && /* @__PURE__ */ c("div", { className: R, children: a }),
|
|
439
439
|
h && /* @__PURE__ */ c("div", { className: N, children: h }),
|
|
@@ -609,9 +609,9 @@ function Co(e, t, o = !0) {
|
|
|
609
609
|
};
|
|
610
610
|
}, [e, t, o]);
|
|
611
611
|
}
|
|
612
|
-
const Ra = "_spTooltip_1pqws_43",
|
|
612
|
+
const Ra = "_spTooltip_1pqws_43", Aa = "_spInfoTooltip_1pqws_48", ko = {
|
|
613
613
|
spTooltip: Ra,
|
|
614
|
-
spInfoTooltip:
|
|
614
|
+
spInfoTooltip: Aa
|
|
615
615
|
};
|
|
616
616
|
var pe = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(pe || {});
|
|
617
617
|
const it = (e) => {
|
|
@@ -751,8 +751,8 @@ const it = (e) => {
|
|
|
751
751
|
trigger: /* @__PURE__ */ c(de, { name: D.Info })
|
|
752
752
|
}
|
|
753
753
|
);
|
|
754
|
-
},
|
|
755
|
-
spCheckbox:
|
|
754
|
+
}, Fa = "_spCheckbox_14zra_43", Ba = "_spCheckbox__control_14zra_49", Da = "_spCheckbox__label_14zra_52", Ma = "_spCheckbox__box_14zra_63", Pa = "_spCheckbox__box_disabled_14zra_74", Oa = "_spCheckbox__box_error_14zra_79", Wa = "_spCheckbox__box__checkmark_14zra_85", za = "_spCheckbox__box__innerSquare_14zra_105", Ua = "_spCheckbox__box__innerSquare_checked_14zra_121", qa = "_spCheckbox__tooltip_14zra_125", $a = "_spCheckbox__required_14zra_129", Ha = "_spCheckbox__error_14zra_135", xe = {
|
|
755
|
+
spCheckbox: Fa,
|
|
756
756
|
spCheckbox__control: Ba,
|
|
757
757
|
spCheckbox__label: Da,
|
|
758
758
|
spCheckbox__box: Ma,
|
|
@@ -969,7 +969,7 @@ const it = (e) => {
|
|
|
969
969
|
isVisibleTooltip: u,
|
|
970
970
|
text: t,
|
|
971
971
|
trigger: /* @__PURE__ */ W($e, { children: [
|
|
972
|
-
/* @__PURE__ */ c(
|
|
972
|
+
/* @__PURE__ */ c(Ee, { ...p, classNameRoot: I, isEllipsis: !0, ref: l, children: t }),
|
|
973
973
|
o && u && x && /* @__PURE__ */ W($e, { children: [
|
|
974
974
|
/* @__PURE__ */ c(
|
|
975
975
|
"div",
|
|
@@ -981,11 +981,11 @@ const it = (e) => {
|
|
|
981
981
|
pointerEvents: "none",
|
|
982
982
|
whiteSpace: "nowrap"
|
|
983
983
|
},
|
|
984
|
-
children: /* @__PURE__ */ c(
|
|
984
|
+
children: /* @__PURE__ */ c(Ee, { ...p, classNameRoot: I, children: gt(t) })
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
987
|
/* @__PURE__ */ c(
|
|
988
|
-
|
|
988
|
+
Ee,
|
|
989
989
|
{
|
|
990
990
|
style: { width: "fit-content" },
|
|
991
991
|
...p,
|
|
@@ -1168,10 +1168,10 @@ function To(e) {
|
|
|
1168
1168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1169
1169
|
}
|
|
1170
1170
|
var Pt = {};
|
|
1171
|
-
Pt.match =
|
|
1171
|
+
Pt.match = Ai;
|
|
1172
1172
|
Pt.parse = No;
|
|
1173
1173
|
var Si = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, Ii = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, Li = /^(?:(min|max)-)?(.+)/, ji = /(em|rem|px|cm|mm|in|pt|pc)?$/, Ri = /(dpi|dpcm|dppx)?$/;
|
|
1174
|
-
function
|
|
1174
|
+
function Ai(e, t) {
|
|
1175
1175
|
return No(e).some(function(o) {
|
|
1176
1176
|
var n = o.inverse, a = o.type === "all" || t.type === o.type;
|
|
1177
1177
|
if (a && n || !(a || n))
|
|
@@ -1268,10 +1268,10 @@ function Yt(e) {
|
|
|
1268
1268
|
return t;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
var
|
|
1271
|
+
var Fi = Pt.match, Gt = typeof window < "u" ? window.matchMedia : null;
|
|
1272
1272
|
function Bi(e, t, o) {
|
|
1273
1273
|
var n = this, a;
|
|
1274
|
-
Gt && !o && (a = Gt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
1274
|
+
Gt && !o && (a = Gt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = Fi(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = p;
|
|
1275
1275
|
function i(l) {
|
|
1276
1276
|
a && a.addListener(l);
|
|
1277
1277
|
}
|
|
@@ -1452,7 +1452,7 @@ function $i() {
|
|
|
1452
1452
|
function L(y) {
|
|
1453
1453
|
return w(y) === r;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function A(y) {
|
|
1456
1456
|
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
1457
1457
|
}
|
|
1458
1458
|
function S(y) {
|
|
@@ -1479,7 +1479,7 @@ function $i() {
|
|
|
1479
1479
|
function ie(y) {
|
|
1480
1480
|
return w(y) === u;
|
|
1481
1481
|
}
|
|
1482
|
-
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = O, J.ContextProvider = q, J.Element = G, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = $, J.isAsyncMode = ee, J.isConcurrentMode = f, J.isContextConsumer = v, J.isContextProvider = L, J.isElement =
|
|
1482
|
+
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = O, J.ContextProvider = q, J.Element = G, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = $, J.isAsyncMode = ee, J.isConcurrentMode = f, J.isContextConsumer = v, J.isContextProvider = L, J.isElement = A, J.isForwardRef = S, J.isFragment = P, J.isLazy = B, J.isMemo = U, J.isPortal = V, J.isProfiler = X, J.isStrictMode = H, J.isSuspense = ie, J.isValidElementType = R, J.typeOf = w;
|
|
1483
1483
|
}()), J;
|
|
1484
1484
|
}
|
|
1485
1485
|
var Zt;
|
|
@@ -1652,7 +1652,7 @@ function Yi() {
|
|
|
1652
1652
|
function I(f) {
|
|
1653
1653
|
if (process.env.NODE_ENV !== "production")
|
|
1654
1654
|
var v = {}, L = 0;
|
|
1655
|
-
function
|
|
1655
|
+
function A(P, B, U, V, X, H, ie) {
|
|
1656
1656
|
if (V = V || g, H = H || U, ie !== o) {
|
|
1657
1657
|
if (p) {
|
|
1658
1658
|
var y = new Error(
|
|
@@ -1669,12 +1669,12 @@ function Yi() {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
return B[U] == null ? P ? B[U] === null ? new b("The " + X + " `" + H + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + X + " `" + H + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : f(B, U, V, X, H);
|
|
1671
1671
|
}
|
|
1672
|
-
var S =
|
|
1673
|
-
return S.isRequired =
|
|
1672
|
+
var S = A.bind(null, !1);
|
|
1673
|
+
return S.isRequired = A.bind(null, !0), S;
|
|
1674
1674
|
}
|
|
1675
1675
|
function j(f) {
|
|
1676
|
-
function v(L,
|
|
1677
|
-
var V = L[
|
|
1676
|
+
function v(L, A, S, P, B, U) {
|
|
1677
|
+
var V = L[A], X = M(V);
|
|
1678
1678
|
if (X !== f) {
|
|
1679
1679
|
var H = $(V);
|
|
1680
1680
|
return new b(
|
|
@@ -1690,10 +1690,10 @@ function Yi() {
|
|
|
1690
1690
|
return I(r);
|
|
1691
1691
|
}
|
|
1692
1692
|
function R(f) {
|
|
1693
|
-
function v(L,
|
|
1693
|
+
function v(L, A, S, P, B) {
|
|
1694
1694
|
if (typeof f != "function")
|
|
1695
1695
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
1696
|
-
var U = L[
|
|
1696
|
+
var U = L[A];
|
|
1697
1697
|
if (!Array.isArray(U)) {
|
|
1698
1698
|
var V = M(U);
|
|
1699
1699
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an array."));
|
|
@@ -1708,31 +1708,31 @@ function Yi() {
|
|
|
1708
1708
|
return I(v);
|
|
1709
1709
|
}
|
|
1710
1710
|
function w() {
|
|
1711
|
-
function f(v, L,
|
|
1711
|
+
function f(v, L, A, S, P) {
|
|
1712
1712
|
var B = v[L];
|
|
1713
1713
|
if (!s(B)) {
|
|
1714
1714
|
var U = M(B);
|
|
1715
|
-
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1715
|
+
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1716
1716
|
}
|
|
1717
1717
|
return null;
|
|
1718
1718
|
}
|
|
1719
1719
|
return I(f);
|
|
1720
1720
|
}
|
|
1721
1721
|
function m() {
|
|
1722
|
-
function f(v, L,
|
|
1722
|
+
function f(v, L, A, S, P) {
|
|
1723
1723
|
var B = v[L];
|
|
1724
1724
|
if (!e.isValidElementType(B)) {
|
|
1725
1725
|
var U = M(B);
|
|
1726
|
-
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" +
|
|
1726
|
+
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1727
1727
|
}
|
|
1728
1728
|
return null;
|
|
1729
1729
|
}
|
|
1730
1730
|
return I(f);
|
|
1731
1731
|
}
|
|
1732
1732
|
function N(f) {
|
|
1733
|
-
function v(L,
|
|
1734
|
-
if (!(L[
|
|
1735
|
-
var U = f.name || g, V = ee(L[
|
|
1733
|
+
function v(L, A, S, P, B) {
|
|
1734
|
+
if (!(L[A] instanceof f)) {
|
|
1735
|
+
var U = f.name || g, V = ee(L[A]);
|
|
1736
1736
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected ") + ("instance of `" + U + "`."));
|
|
1737
1737
|
}
|
|
1738
1738
|
return null;
|
|
@@ -1744,8 +1744,8 @@ function Yi() {
|
|
|
1744
1744
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1745
1745
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1746
1746
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1747
|
-
function v(L,
|
|
1748
|
-
for (var U = L[
|
|
1747
|
+
function v(L, A, S, P, B) {
|
|
1748
|
+
for (var U = L[A], V = 0; V < f.length; V++)
|
|
1749
1749
|
if (x(U, f[V]))
|
|
1750
1750
|
return null;
|
|
1751
1751
|
var X = JSON.stringify(f, function(ie, y) {
|
|
@@ -1757,10 +1757,10 @@ function Yi() {
|
|
|
1757
1757
|
return I(v);
|
|
1758
1758
|
}
|
|
1759
1759
|
function q(f) {
|
|
1760
|
-
function v(L,
|
|
1760
|
+
function v(L, A, S, P, B) {
|
|
1761
1761
|
if (typeof f != "function")
|
|
1762
1762
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
1763
|
-
var U = L[
|
|
1763
|
+
var U = L[A], V = M(U);
|
|
1764
1764
|
if (V !== "object")
|
|
1765
1765
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an object."));
|
|
1766
1766
|
for (var X in U)
|
|
@@ -1783,7 +1783,7 @@ function Yi() {
|
|
|
1783
1783
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(L) + " at index " + v + "."
|
|
1784
1784
|
), r;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function A(S, P, B, U, V) {
|
|
1787
1787
|
for (var X = [], H = 0; H < f.length; H++) {
|
|
1788
1788
|
var ie = f[H], y = ie(S, P, B, U, V, o);
|
|
1789
1789
|
if (y == null)
|
|
@@ -1793,22 +1793,22 @@ function Yi() {
|
|
|
1793
1793
|
var be = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1794
1794
|
return new b("Invalid " + U + " `" + V + "` supplied to " + ("`" + B + "`" + be + "."));
|
|
1795
1795
|
}
|
|
1796
|
-
return I(
|
|
1796
|
+
return I(A);
|
|
1797
1797
|
}
|
|
1798
1798
|
function ne() {
|
|
1799
|
-
function f(v, L,
|
|
1800
|
-
return Z(v[L]) ? null : new b("Invalid " + S + " `" + P + "` supplied to " + ("`" +
|
|
1799
|
+
function f(v, L, A, S, P) {
|
|
1800
|
+
return Z(v[L]) ? null : new b("Invalid " + S + " `" + P + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1801
1801
|
}
|
|
1802
1802
|
return I(f);
|
|
1803
1803
|
}
|
|
1804
|
-
function me(f, v, L,
|
|
1804
|
+
function me(f, v, L, A, S) {
|
|
1805
1805
|
return new b(
|
|
1806
|
-
(f || "React class") + ": " + v + " type `" + L + "." +
|
|
1806
|
+
(f || "React class") + ": " + v + " type `" + L + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
1807
1807
|
);
|
|
1808
1808
|
}
|
|
1809
1809
|
function ue(f) {
|
|
1810
|
-
function v(L,
|
|
1811
|
-
var U = L[
|
|
1810
|
+
function v(L, A, S, P, B) {
|
|
1811
|
+
var U = L[A], V = M(U);
|
|
1812
1812
|
if (V !== "object")
|
|
1813
1813
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1814
1814
|
for (var X in f) {
|
|
@@ -1824,18 +1824,18 @@ function Yi() {
|
|
|
1824
1824
|
return I(v);
|
|
1825
1825
|
}
|
|
1826
1826
|
function le(f) {
|
|
1827
|
-
function v(L,
|
|
1828
|
-
var U = L[
|
|
1827
|
+
function v(L, A, S, P, B) {
|
|
1828
|
+
var U = L[A], V = M(U);
|
|
1829
1829
|
if (V !== "object")
|
|
1830
1830
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1831
|
-
var X = t({}, L[
|
|
1831
|
+
var X = t({}, L[A], f);
|
|
1832
1832
|
for (var H in X) {
|
|
1833
1833
|
var ie = f[H];
|
|
1834
1834
|
if (n(f, H) && typeof ie != "function")
|
|
1835
1835
|
return me(S, P, B, H, $(ie));
|
|
1836
1836
|
if (!ie)
|
|
1837
1837
|
return new b(
|
|
1838
|
-
"Invalid " + P + " `" + B + "` key `" + H + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(L[
|
|
1838
|
+
"Invalid " + P + " `" + B + "` key `" + H + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(L[A], null, " ") + `
|
|
1839
1839
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1840
1840
|
);
|
|
1841
1841
|
var y = ie(U, H, S, P, B + "." + H, o);
|
|
@@ -1861,14 +1861,14 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1861
1861
|
return !0;
|
|
1862
1862
|
var v = u(f);
|
|
1863
1863
|
if (v) {
|
|
1864
|
-
var L = v.call(f),
|
|
1864
|
+
var L = v.call(f), A;
|
|
1865
1865
|
if (v !== f.entries) {
|
|
1866
|
-
for (; !(
|
|
1867
|
-
if (!Z(
|
|
1866
|
+
for (; !(A = L.next()).done; )
|
|
1867
|
+
if (!Z(A.value))
|
|
1868
1868
|
return !1;
|
|
1869
1869
|
} else
|
|
1870
|
-
for (; !(
|
|
1871
|
-
var S =
|
|
1870
|
+
for (; !(A = L.next()).done; ) {
|
|
1871
|
+
var S = A.value;
|
|
1872
1872
|
if (S && !Z(S[1]))
|
|
1873
1873
|
return !1;
|
|
1874
1874
|
}
|
|
@@ -2180,12 +2180,12 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2180
2180
|
children: i
|
|
2181
2181
|
}
|
|
2182
2182
|
),
|
|
2183
|
-
d && /* @__PURE__ */ W(
|
|
2183
|
+
d && /* @__PURE__ */ W(Ee, { classNameRoot: g, children: [
|
|
2184
2184
|
l,
|
|
2185
2185
|
"%"
|
|
2186
2186
|
] })
|
|
2187
2187
|
] });
|
|
2188
|
-
}, Cr = 180, kr = "_spSelect_1l6hu_43", Tr = "_spSelect_error_1l6hu_48", Nr = "_spSelect__control_1l6hu_48", Er = "_spSelect__value_empty_1l6hu_52", Sr = "_spSelect__icon_1l6hu_55", Ir = "_spSelect_absolutePositionError_1l6hu_58", Lr = "_spSelect__container_1l6hu_61", jr = "_spSelect__control_filled_1l6hu_81", Rr = "_spSelect__control_outlined_1l6hu_85",
|
|
2188
|
+
}, Cr = 180, kr = "_spSelect_1l6hu_43", Tr = "_spSelect_error_1l6hu_48", Nr = "_spSelect__control_1l6hu_48", Er = "_spSelect__value_empty_1l6hu_52", Sr = "_spSelect__icon_1l6hu_55", Ir = "_spSelect_absolutePositionError_1l6hu_58", Lr = "_spSelect__container_1l6hu_61", jr = "_spSelect__control_filled_1l6hu_81", Rr = "_spSelect__control_outlined_1l6hu_85", Ar = "_spSelect__control_disabled_1l6hu_110", Fr = "_spSelect__value_1l6hu_52", Br = "_spSelect__list_1l6hu_141", Dr = "_spSelect__list_scrollable_1l6hu_148", Mr = "_spSelect__option_1l6hu_164", Pr = "_spSelect__error_1l6hu_182", Or = "_spSelect__error_absolutePosition_1l6hu_189", _e = {
|
|
2189
2189
|
spSelect: kr,
|
|
2190
2190
|
spSelect_error: Tr,
|
|
2191
2191
|
spSelect__control: Nr,
|
|
@@ -2195,8 +2195,8 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2195
2195
|
spSelect__container: Lr,
|
|
2196
2196
|
spSelect__control_filled: jr,
|
|
2197
2197
|
spSelect__control_outlined: Rr,
|
|
2198
|
-
spSelect__control_disabled:
|
|
2199
|
-
spSelect__value:
|
|
2198
|
+
spSelect__control_disabled: Ar,
|
|
2199
|
+
spSelect__value: Fr,
|
|
2200
2200
|
spSelect__list: Br,
|
|
2201
2201
|
spSelect__list_scrollable: Dr,
|
|
2202
2202
|
spSelect__option: Mr,
|
|
@@ -2309,7 +2309,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2309
2309
|
className: _({
|
|
2310
2310
|
[_e.spSelect__option]: !0
|
|
2311
2311
|
}),
|
|
2312
|
-
onClick: (
|
|
2312
|
+
onClick: (A) => ne(A, v.value),
|
|
2313
2313
|
children: [
|
|
2314
2314
|
v.label,
|
|
2315
2315
|
L && /* @__PURE__ */ c(de, { name: D.Check, className: M })
|
|
@@ -2519,59 +2519,55 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
) : b();
|
|
2521
2521
|
return n ? a ? j() : z() : j();
|
|
2522
|
-
}, os = "
|
|
2522
|
+
}, os = "_spTabs_1rc64_43", ns = "_spTabs_separated_1rc64_48", as = "_spTabs__tabElement_1rc64_48", is = "_spTabs__tabElement_active_1rc64_85", rs = "_spTabs__tooltip_1rc64_92", je = {
|
|
2523
2523
|
spTabs: os,
|
|
2524
2524
|
spTabs_separated: ns,
|
|
2525
|
-
"spTabs--size-md": "_spTabs--size-
|
|
2525
|
+
"spTabs--size-md": "_spTabs--size-md_1rc64_48",
|
|
2526
2526
|
spTabs__tabElement: as,
|
|
2527
|
-
"spTabs--size-lg": "_spTabs--size-
|
|
2528
|
-
"spTabs--variant-contained": "_spTabs--variant-
|
|
2527
|
+
"spTabs--size-lg": "_spTabs--size-lg_1rc64_51",
|
|
2528
|
+
"spTabs--variant-contained": "_spTabs--variant-contained_1rc64_54",
|
|
2529
2529
|
spTabs__tabElement_active: is,
|
|
2530
2530
|
spTabs__tooltip: rs,
|
|
2531
|
-
"spTabs--variant-
|
|
2531
|
+
"spTabs--variant-outlined": "_spTabs--variant-outlined_1rc64_95",
|
|
2532
|
+
"spTabs--variant-filled": "_spTabs--variant-filled_1rc64_114"
|
|
2532
2533
|
}, nl = (e) => {
|
|
2533
2534
|
const {
|
|
2534
2535
|
panes: t,
|
|
2535
2536
|
isSeparated: o = !1,
|
|
2536
2537
|
classNameRoot: n,
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2538
|
+
classNameTabElementRoot: a,
|
|
2539
|
+
classNameBaseTooltipRoot: i,
|
|
2540
|
+
variant: r = "contained",
|
|
2541
|
+
size: s = "md"
|
|
2542
|
+
} = e, p = _({
|
|
2541
2543
|
[je.spTabs]: !0,
|
|
2542
2544
|
[je.spTabs_separated]: o,
|
|
2543
|
-
[je[`spTabs--variant-${
|
|
2544
|
-
[je[`spTabs--size-${
|
|
2545
|
+
[je[`spTabs--variant-${r}`]]: r,
|
|
2546
|
+
[je[`spTabs--size-${s}`]]: s,
|
|
2545
2547
|
...n && { [n]: !0 }
|
|
2546
|
-
}),
|
|
2548
|
+
}), l = _({
|
|
2547
2549
|
[je.spTabs__tooltip]: !0
|
|
2548
|
-
})
|
|
2549
|
-
|
|
2550
|
-
case "md":
|
|
2551
|
-
return "p2";
|
|
2552
|
-
case "lg":
|
|
2553
|
-
return "p1";
|
|
2554
|
-
}
|
|
2555
|
-
};
|
|
2556
|
-
return /* @__PURE__ */ c("div", { className: s, children: t.map((d, u) => {
|
|
2550
|
+
});
|
|
2551
|
+
return /* @__PURE__ */ c("div", { className: p, children: t.map((d, u) => {
|
|
2557
2552
|
const { name: g, active: h, onClick: x, infoTooltipText: b } = d;
|
|
2558
2553
|
return /* @__PURE__ */ W(
|
|
2559
2554
|
"div",
|
|
2560
2555
|
{
|
|
2561
2556
|
className: _({
|
|
2562
2557
|
[je.spTabs__tabElement]: !0,
|
|
2563
|
-
[je.spTabs__tabElement_active]: h
|
|
2558
|
+
[je.spTabs__tabElement_active]: h,
|
|
2559
|
+
...a && { [a]: !0 }
|
|
2564
2560
|
}),
|
|
2565
2561
|
onClick: x,
|
|
2566
2562
|
children: [
|
|
2567
|
-
/* @__PURE__ */ c(
|
|
2563
|
+
/* @__PURE__ */ c("span", { children: g }),
|
|
2568
2564
|
!!b && /* @__PURE__ */ c(
|
|
2569
2565
|
rt,
|
|
2570
2566
|
{
|
|
2571
2567
|
hover: !0,
|
|
2572
|
-
classNameTooltip:
|
|
2568
|
+
classNameTooltip: l,
|
|
2573
2569
|
text: b,
|
|
2574
|
-
classNameBaseTooltipRoot:
|
|
2570
|
+
classNameBaseTooltipRoot: i
|
|
2575
2571
|
}
|
|
2576
2572
|
)
|
|
2577
2573
|
]
|
|
@@ -2610,10 +2606,10 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2610
2606
|
classNameBaseTooltipRoot: r
|
|
2611
2607
|
}
|
|
2612
2608
|
),
|
|
2613
|
-
/* @__PURE__ */ c(
|
|
2609
|
+
/* @__PURE__ */ c(Ee, { ...l, children: p })
|
|
2614
2610
|
] });
|
|
2615
2611
|
};
|
|
2616
|
-
function
|
|
2612
|
+
function Ae(e, t, o, n) {
|
|
2617
2613
|
function a(i) {
|
|
2618
2614
|
return i instanceof o ? i : new o(function(r) {
|
|
2619
2615
|
r(i);
|
|
@@ -3876,7 +3872,7 @@ const ds = [
|
|
|
3876
3872
|
// Windows
|
|
3877
3873
|
];
|
|
3878
3874
|
function ms(e) {
|
|
3879
|
-
return
|
|
3875
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3880
3876
|
return ot(e) && us(e.dataTransfer) ? gs(e.dataTransfer, e.type) : _s(e) ? fs(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? vs(e) : [];
|
|
3881
3877
|
});
|
|
3882
3878
|
}
|
|
@@ -3893,12 +3889,12 @@ function fs(e) {
|
|
|
3893
3889
|
return jt(e.target.files).map((t) => Pe(t));
|
|
3894
3890
|
}
|
|
3895
3891
|
function vs(e) {
|
|
3896
|
-
return
|
|
3892
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3897
3893
|
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Pe(o));
|
|
3898
3894
|
});
|
|
3899
3895
|
}
|
|
3900
3896
|
function gs(e, t) {
|
|
3901
|
-
return
|
|
3897
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3902
3898
|
if (e.items) {
|
|
3903
3899
|
const o = jt(e.items).filter((a) => a.kind === "file");
|
|
3904
3900
|
if (t !== "drop")
|
|
@@ -3926,7 +3922,7 @@ function xs(e) {
|
|
|
3926
3922
|
if (typeof e.webkitGetAsEntry != "function")
|
|
3927
3923
|
return po(e);
|
|
3928
3924
|
const t = e.webkitGetAsEntry();
|
|
3929
|
-
return t && t.isDirectory ?
|
|
3925
|
+
return t && t.isDirectory ? Ao(t) : po(e, t);
|
|
3930
3926
|
}
|
|
3931
3927
|
function Ro(e) {
|
|
3932
3928
|
return e.reduce((t, o) => [
|
|
@@ -3935,7 +3931,7 @@ function Ro(e) {
|
|
|
3935
3931
|
], []);
|
|
3936
3932
|
}
|
|
3937
3933
|
function po(e, t) {
|
|
3938
|
-
return
|
|
3934
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3939
3935
|
var o;
|
|
3940
3936
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
3941
3937
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -3953,16 +3949,16 @@ function po(e, t) {
|
|
|
3953
3949
|
});
|
|
3954
3950
|
}
|
|
3955
3951
|
function hs(e) {
|
|
3956
|
-
return
|
|
3957
|
-
return e.isDirectory ?
|
|
3952
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3953
|
+
return e.isDirectory ? Ao(e) : bs(e);
|
|
3958
3954
|
});
|
|
3959
3955
|
}
|
|
3960
|
-
function
|
|
3956
|
+
function Ao(e) {
|
|
3961
3957
|
const t = e.createReader();
|
|
3962
3958
|
return new Promise((o, n) => {
|
|
3963
3959
|
const a = [];
|
|
3964
3960
|
function i() {
|
|
3965
|
-
t.readEntries((r) =>
|
|
3961
|
+
t.readEntries((r) => Ae(this, void 0, void 0, function* () {
|
|
3966
3962
|
if (r.length) {
|
|
3967
3963
|
const s = Promise.all(r.map(hs));
|
|
3968
3964
|
a.push(s), i();
|
|
@@ -3981,7 +3977,7 @@ function Fo(e) {
|
|
|
3981
3977
|
});
|
|
3982
3978
|
}
|
|
3983
3979
|
function bs(e) {
|
|
3984
|
-
return
|
|
3980
|
+
return Ae(this, void 0, void 0, function* () {
|
|
3985
3981
|
return new Promise((t, o) => {
|
|
3986
3982
|
e.file((n) => {
|
|
3987
3983
|
const a = Pe(n, e.fullPath);
|
|
@@ -4032,14 +4028,14 @@ function mo(e) {
|
|
|
4032
4028
|
for (var t = 1; t < arguments.length; t++) {
|
|
4033
4029
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4034
4030
|
t % 2 ? co(Object(o), !0).forEach(function(n) {
|
|
4035
|
-
|
|
4031
|
+
Fo(e, n, o[n]);
|
|
4036
4032
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : co(Object(o)).forEach(function(n) {
|
|
4037
4033
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4038
4034
|
});
|
|
4039
4035
|
}
|
|
4040
4036
|
return e;
|
|
4041
4037
|
}
|
|
4042
|
-
function
|
|
4038
|
+
function Fo(e, t, o) {
|
|
4043
4039
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4044
4040
|
}
|
|
4045
4041
|
function He(e, t) {
|
|
@@ -4148,12 +4144,12 @@ function fo(e) {
|
|
|
4148
4144
|
function Rs(e) {
|
|
4149
4145
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
4150
4146
|
}
|
|
4151
|
-
function
|
|
4147
|
+
function As(e) {
|
|
4152
4148
|
return e.indexOf("Edge/") !== -1;
|
|
4153
4149
|
}
|
|
4154
|
-
function
|
|
4150
|
+
function Fs() {
|
|
4155
4151
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
4156
|
-
return Rs(e) ||
|
|
4152
|
+
return Rs(e) || As(e);
|
|
4157
4153
|
}
|
|
4158
4154
|
function Te() {
|
|
4159
4155
|
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
@@ -4176,7 +4172,7 @@ function Ds(e) {
|
|
|
4176
4172
|
return zo(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(Uo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
4177
4173
|
}).reduce(function(o, n) {
|
|
4178
4174
|
var a = He(n, 2), i = a[0], r = a[1];
|
|
4179
|
-
return mo(mo({}, o), {},
|
|
4175
|
+
return mo(mo({}, o), {}, Fo({}, i, r));
|
|
4180
4176
|
}, {});
|
|
4181
4177
|
return [{
|
|
4182
4178
|
// description is required due to https://crbug.com/1264708
|
|
@@ -4219,7 +4215,7 @@ function Vs(e) {
|
|
|
4219
4215
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4220
4216
|
}
|
|
4221
4217
|
function Ys(e) {
|
|
4222
|
-
if (Array.isArray(e)) return
|
|
4218
|
+
if (Array.isArray(e)) return At(e);
|
|
4223
4219
|
}
|
|
4224
4220
|
function St(e, t) {
|
|
4225
4221
|
return Xs(e) || Ks(e, t) || qo(e, t) || Gs();
|
|
@@ -4230,13 +4226,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4230
4226
|
}
|
|
4231
4227
|
function qo(e, t) {
|
|
4232
4228
|
if (e) {
|
|
4233
|
-
if (typeof e == "string") return
|
|
4229
|
+
if (typeof e == "string") return At(e, t);
|
|
4234
4230
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
4235
4231
|
if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
|
|
4236
|
-
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return
|
|
4232
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return At(e, t);
|
|
4237
4233
|
}
|
|
4238
4234
|
}
|
|
4239
|
-
function
|
|
4235
|
+
function At(e, t) {
|
|
4240
4236
|
(t == null || t > e.length) && (t = e.length);
|
|
4241
4237
|
for (var o = 0, n = new Array(t); o < t; o++)
|
|
4242
4238
|
n[o] = e[o];
|
|
@@ -4278,14 +4274,14 @@ function te(e) {
|
|
|
4278
4274
|
for (var t = 1; t < arguments.length; t++) {
|
|
4279
4275
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4280
4276
|
t % 2 ? vo(Object(o), !0).forEach(function(n) {
|
|
4281
|
-
|
|
4277
|
+
Ft(e, n, o[n]);
|
|
4282
4278
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : vo(Object(o)).forEach(function(n) {
|
|
4283
4279
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4284
4280
|
});
|
|
4285
4281
|
}
|
|
4286
4282
|
return e;
|
|
4287
4283
|
}
|
|
4288
|
-
function
|
|
4284
|
+
function Ft(e, t, o) {
|
|
4289
4285
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
4290
4286
|
}
|
|
4291
4287
|
function at(e, t) {
|
|
@@ -4519,23 +4515,23 @@ function Ho() {
|
|
|
4519
4515
|
return typeof I == "function" ? I : go;
|
|
4520
4516
|
}, [I]), le = De(function() {
|
|
4521
4517
|
return typeof b == "function" ? b : go;
|
|
4522
|
-
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt), $ = St(M, 2), K = $[0], ee = $[1], f = K.isFocused, v = K.isFileDialogActive, L = ve(typeof window < "u" && window.isSecureContext && j && Bs()),
|
|
4518
|
+
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt), $ = St(M, 2), K = $[0], ee = $[1], f = K.isFocused, v = K.isFileDialogActive, L = ve(typeof window < "u" && window.isSecureContext && j && Bs()), A = function() {
|
|
4523
4519
|
!L.current && v && setTimeout(function() {
|
|
4524
4520
|
if (T.current) {
|
|
4525
|
-
var
|
|
4526
|
-
|
|
4521
|
+
var F = T.current.files;
|
|
4522
|
+
F.length || (ee({
|
|
4527
4523
|
type: "closeDialog"
|
|
4528
4524
|
}), le());
|
|
4529
4525
|
}
|
|
4530
4526
|
}, 300);
|
|
4531
4527
|
};
|
|
4532
4528
|
re(function() {
|
|
4533
|
-
return window.addEventListener("focus",
|
|
4534
|
-
window.removeEventListener("focus",
|
|
4529
|
+
return window.addEventListener("focus", A, !1), function() {
|
|
4530
|
+
window.removeEventListener("focus", A, !1);
|
|
4535
4531
|
};
|
|
4536
4532
|
}, [T, v, le, L]);
|
|
4537
|
-
var S = ve([]), P = function(
|
|
4538
|
-
Z.current && Z.current.contains(
|
|
4533
|
+
var S = ve([]), P = function(F) {
|
|
4534
|
+
Z.current && Z.current.contains(F.target) || (F.preventDefault(), S.current = []);
|
|
4539
4535
|
};
|
|
4540
4536
|
re(function() {
|
|
4541
4537
|
return R && (document.addEventListener("dragover", fo, !1), document.addEventListener("drop", P, !1)), function() {
|
|
@@ -4548,10 +4544,10 @@ function Ho() {
|
|
|
4548
4544
|
var B = he(function(k) {
|
|
4549
4545
|
q ? q(k) : console.error(k);
|
|
4550
4546
|
}, [q]), U = he(function(k) {
|
|
4551
|
-
k.preventDefault(), k.persist(), Ge(k), S.current = [].concat($s(S.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(
|
|
4547
|
+
k.preventDefault(), k.persist(), Ge(k), S.current = [].concat($s(S.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(F) {
|
|
4552
4548
|
if (!(nt(k) && !O)) {
|
|
4553
|
-
var ae =
|
|
4554
|
-
files:
|
|
4549
|
+
var ae = F.length, se = ae > 0 && js({
|
|
4550
|
+
files: F,
|
|
4555
4551
|
accept: ne,
|
|
4556
4552
|
minSize: r,
|
|
4557
4553
|
maxSize: i,
|
|
@@ -4566,30 +4562,30 @@ function Ho() {
|
|
|
4566
4562
|
type: "setDraggedFiles"
|
|
4567
4563
|
}), l && l(k);
|
|
4568
4564
|
}
|
|
4569
|
-
}).catch(function(
|
|
4570
|
-
return B(
|
|
4565
|
+
}).catch(function(F) {
|
|
4566
|
+
return B(F);
|
|
4571
4567
|
});
|
|
4572
4568
|
}, [a, l, B, O, ne, r, i, s, p, G]), V = he(function(k) {
|
|
4573
4569
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4574
|
-
var
|
|
4575
|
-
if (
|
|
4570
|
+
var F = et(k);
|
|
4571
|
+
if (F && k.dataTransfer)
|
|
4576
4572
|
try {
|
|
4577
4573
|
k.dataTransfer.dropEffect = "copy";
|
|
4578
4574
|
} catch {
|
|
4579
4575
|
}
|
|
4580
|
-
return
|
|
4576
|
+
return F && u && u(k), !1;
|
|
4581
4577
|
}, [u, O]), X = he(function(k) {
|
|
4582
4578
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4583
|
-
var
|
|
4579
|
+
var F = S.current.filter(function(se) {
|
|
4584
4580
|
return Z.current && Z.current.contains(se);
|
|
4585
|
-
}), ae =
|
|
4586
|
-
ae !== -1 &&
|
|
4581
|
+
}), ae = F.indexOf(k.target);
|
|
4582
|
+
ae !== -1 && F.splice(ae, 1), S.current = F, !(F.length > 0) && (ee({
|
|
4587
4583
|
type: "setDraggedFiles",
|
|
4588
4584
|
isDragActive: !1,
|
|
4589
4585
|
isDragAccept: !1,
|
|
4590
4586
|
isDragReject: !1
|
|
4591
4587
|
}), et(k) && d && d(k));
|
|
4592
|
-
}, [Z, d, O]), H = he(function(k,
|
|
4588
|
+
}, [Z, d, O]), H = he(function(k, F) {
|
|
4593
4589
|
var ae = [], se = [];
|
|
4594
4590
|
k.forEach(function(ye) {
|
|
4595
4591
|
var We = Oo(ye, ne), Be = St(We, 2), pt = Be[0], lt = Be[1], ct = Wo(ye, r, i), Ke = St(ct, 2), dt = Ke[0], mt = Ke[1], ut = G ? G(ye) : null;
|
|
@@ -4614,12 +4610,12 @@ function Ho() {
|
|
|
4614
4610
|
fileRejections: se,
|
|
4615
4611
|
isDragReject: se.length > 0,
|
|
4616
4612
|
type: "setFiles"
|
|
4617
|
-
}), g && g(ae, se,
|
|
4613
|
+
}), g && g(ae, se, F), se.length > 0 && x && x(se, F), ae.length > 0 && h && h(ae, F);
|
|
4618
4614
|
}, [ee, s, ne, r, i, p, g, h, x, G]), ie = he(function(k) {
|
|
4619
|
-
k.preventDefault(), k.persist(), Ge(k), S.current = [], et(k) && Promise.resolve(a(k)).then(function(
|
|
4620
|
-
nt(k) && !O || H(
|
|
4621
|
-
}).catch(function(
|
|
4622
|
-
return B(
|
|
4615
|
+
k.preventDefault(), k.persist(), Ge(k), S.current = [], et(k) && Promise.resolve(a(k)).then(function(F) {
|
|
4616
|
+
nt(k) && !O || H(F, k);
|
|
4617
|
+
}).catch(function(F) {
|
|
4618
|
+
return B(F);
|
|
4623
4619
|
}), ee({
|
|
4624
4620
|
type: "reset"
|
|
4625
4621
|
});
|
|
@@ -4632,16 +4628,16 @@ function Ho() {
|
|
|
4632
4628
|
multiple: s,
|
|
4633
4629
|
types: me
|
|
4634
4630
|
};
|
|
4635
|
-
window.showOpenFilePicker(k).then(function(
|
|
4636
|
-
return a(
|
|
4637
|
-
}).then(function(
|
|
4638
|
-
H(
|
|
4631
|
+
window.showOpenFilePicker(k).then(function(F) {
|
|
4632
|
+
return a(F);
|
|
4633
|
+
}).then(function(F) {
|
|
4634
|
+
H(F, null), ee({
|
|
4639
4635
|
type: "closeDialog"
|
|
4640
4636
|
});
|
|
4641
|
-
}).catch(function(
|
|
4642
|
-
Ps(
|
|
4637
|
+
}).catch(function(F) {
|
|
4638
|
+
Ps(F) ? (le(F), ee({
|
|
4643
4639
|
type: "closeDialog"
|
|
4644
|
-
})) : Os(
|
|
4640
|
+
})) : Os(F) ? (L.current = !1, T.current ? (T.current.value = null, T.current.click()) : B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : B(F);
|
|
4645
4641
|
});
|
|
4646
4642
|
return;
|
|
4647
4643
|
}
|
|
@@ -4659,23 +4655,23 @@ function Ho() {
|
|
|
4659
4655
|
type: "blur"
|
|
4660
4656
|
});
|
|
4661
4657
|
}, []), zt = he(function() {
|
|
4662
|
-
w || (
|
|
4663
|
-
}, [w, y]),
|
|
4664
|
-
return n ? null :
|
|
4665
|
-
}, st = function(
|
|
4666
|
-
return m ? null :
|
|
4667
|
-
}, Ye = function(
|
|
4668
|
-
return N ? null :
|
|
4669
|
-
}, Ge = function(
|
|
4670
|
-
O &&
|
|
4658
|
+
w || (Fs() ? setTimeout(y, 0) : y());
|
|
4659
|
+
}, [w, y]), Fe = function(F) {
|
|
4660
|
+
return n ? null : F;
|
|
4661
|
+
}, st = function(F) {
|
|
4662
|
+
return m ? null : Fe(F);
|
|
4663
|
+
}, Ye = function(F) {
|
|
4664
|
+
return N ? null : Fe(F);
|
|
4665
|
+
}, Ge = function(F) {
|
|
4666
|
+
O && F.stopPropagation();
|
|
4671
4667
|
}, Vo = De(function() {
|
|
4672
4668
|
return function() {
|
|
4673
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4674
|
-
return te(te(
|
|
4669
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = k.refKey, ae = F === void 0 ? "ref" : F, se = k.role, ye = k.onKeyDown, We = k.onFocus, Be = k.onBlur, pt = k.onClick, lt = k.onDragEnter, ct = k.onDragOver, Ke = k.onDragLeave, dt = k.onDrop, mt = at(k, Us);
|
|
4670
|
+
return te(te(Ft({
|
|
4675
4671
|
onKeyDown: st(Te(ye, be)),
|
|
4676
4672
|
onFocus: st(Te(We, Ie)),
|
|
4677
4673
|
onBlur: st(Te(Be, Oe)),
|
|
4678
|
-
onClick:
|
|
4674
|
+
onClick: Fe(Te(pt, zt)),
|
|
4679
4675
|
onDragEnter: Ye(Te(lt, U)),
|
|
4680
4676
|
onDragOver: Ye(Te(ct, V)),
|
|
4681
4677
|
onDragLeave: Ye(Te(Ke, X)),
|
|
@@ -4689,7 +4685,7 @@ function Ho() {
|
|
|
4689
4685
|
k.stopPropagation();
|
|
4690
4686
|
}, []), Go = De(function() {
|
|
4691
4687
|
return function() {
|
|
4692
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
4688
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, F = k.refKey, ae = F === void 0 ? "ref" : F, se = k.onChange, ye = k.onClick, We = at(k, qs), Be = Ft({
|
|
4693
4689
|
accept: ne,
|
|
4694
4690
|
multiple: s,
|
|
4695
4691
|
type: "file",
|
|
@@ -4705,8 +4701,8 @@ function Ho() {
|
|
|
4705
4701
|
width: "1px",
|
|
4706
4702
|
whiteSpace: "nowrap"
|
|
4707
4703
|
},
|
|
4708
|
-
onChange:
|
|
4709
|
-
onClick:
|
|
4704
|
+
onChange: Fe(Te(se, ie)),
|
|
4705
|
+
onClick: Fe(Te(ye, Yo)),
|
|
4710
4706
|
tabIndex: -1
|
|
4711
4707
|
}, ae, T);
|
|
4712
4708
|
return te(te({}, Be), We);
|
|
@@ -4718,7 +4714,7 @@ function Ho() {
|
|
|
4718
4714
|
getInputProps: Go,
|
|
4719
4715
|
rootRef: Z,
|
|
4720
4716
|
inputRef: T,
|
|
4721
|
-
open:
|
|
4717
|
+
open: Fe(y)
|
|
4722
4718
|
});
|
|
4723
4719
|
}
|
|
4724
4720
|
function Qs(e, t) {
|
|
@@ -4833,8 +4829,8 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4833
4829
|
b([...L]), a(f, n);
|
|
4834
4830
|
return;
|
|
4835
4831
|
}
|
|
4836
|
-
const
|
|
4837
|
-
b([...L, ...x]), a(
|
|
4832
|
+
const A = [...p, ...f];
|
|
4833
|
+
b([...L, ...x]), a(A, n);
|
|
4838
4834
|
},
|
|
4839
4835
|
[x, p, s, n, a]
|
|
4840
4836
|
), { getRootProps: j, getInputProps: z } = Js({
|
|
@@ -4866,8 +4862,8 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4866
4862
|
S.splice(P, 1), b(S);
|
|
4867
4863
|
return;
|
|
4868
4864
|
}
|
|
4869
|
-
const L = [...p],
|
|
4870
|
-
L.splice(
|
|
4865
|
+
const L = [...p], A = L.findIndex((S) => S.name === f);
|
|
4866
|
+
L.splice(A, 1), a(L, n);
|
|
4871
4867
|
}, le = (f) => {
|
|
4872
4868
|
f.stopPropagation(), a([], n), b([]);
|
|
4873
4869
|
}, Z = (f) => Object.values(f).flatMap((v) => v.map((L) => L.toUpperCase())).join(", "), T = () => {
|
|
@@ -4894,13 +4890,13 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4894
4890
|
}
|
|
4895
4891
|
);
|
|
4896
4892
|
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: f, errors: v }, L) => {
|
|
4897
|
-
const
|
|
4893
|
+
const A = v ? (v == null ? void 0 : v.length) > 0 : void 0, S = () => v ? v == null ? void 0 : v.map(jp).join(", ") : "";
|
|
4898
4894
|
return /* @__PURE__ */ W(
|
|
4899
4895
|
"li",
|
|
4900
4896
|
{
|
|
4901
4897
|
className: _(
|
|
4902
4898
|
Y.spUploadFiles__fileNamesListItem,
|
|
4903
|
-
|
|
4899
|
+
A && Y.spUploadFiles__fileNamesListItem_error
|
|
4904
4900
|
),
|
|
4905
4901
|
onClick: (P) => {
|
|
4906
4902
|
P.stopPropagation();
|
|
@@ -4911,9 +4907,9 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4911
4907
|
{
|
|
4912
4908
|
className: _(
|
|
4913
4909
|
Y.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4914
|
-
|
|
4910
|
+
A && Y.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4915
4911
|
),
|
|
4916
|
-
children: /* @__PURE__ */ c(de, { name:
|
|
4912
|
+
children: /* @__PURE__ */ c(de, { name: A ? D.InfoError : D.File })
|
|
4917
4913
|
}
|
|
4918
4914
|
),
|
|
4919
4915
|
/* @__PURE__ */ W("div", { className: Y.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
@@ -4931,11 +4927,11 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4931
4927
|
/* @__PURE__ */ c(
|
|
4932
4928
|
Ue,
|
|
4933
4929
|
{
|
|
4934
|
-
text:
|
|
4930
|
+
text: A ? S() : Rp(f.size),
|
|
4935
4931
|
classNameBaseTooltipRoot: Y.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4936
4932
|
classNameRoot: _(
|
|
4937
4933
|
Y.spUploadFiles__fileNamesListItem__description,
|
|
4938
|
-
|
|
4934
|
+
A && Y.spUploadFiles__fileNamesListItem__description_error
|
|
4939
4935
|
)
|
|
4940
4936
|
}
|
|
4941
4937
|
)
|
|
@@ -4945,7 +4941,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4945
4941
|
{
|
|
4946
4942
|
className: _(Y.spUploadFiles__fileNamesListItemDelete),
|
|
4947
4943
|
onClick: (P) => {
|
|
4948
|
-
P.stopPropagation(), ue(f.name,
|
|
4944
|
+
P.stopPropagation(), ue(f.name, A);
|
|
4949
4945
|
},
|
|
4950
4946
|
children: /* @__PURE__ */ c(de, { name: D.Close })
|
|
4951
4947
|
}
|
|
@@ -5008,9 +5004,9 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5008
5004
|
] })
|
|
5009
5005
|
}
|
|
5010
5006
|
);
|
|
5011
|
-
},
|
|
5012
|
-
viewImageModal:
|
|
5013
|
-
viewImageModal__img:
|
|
5007
|
+
}, Ap = "_viewImageModal_1xwys_43", Fp = "_viewImageModal__img_1xwys_66", Bp = "_viewImageModal__img_loading_1xwys_79", Dp = "_viewImageModal__img_error_1xwys_82", Mp = "_viewImageModal__spinner_1xwys_85", Pp = "_viewImageModal__layer_1xwys_112", Op = "_viewImageModal__closeButton_1xwys_117", Ne = {
|
|
5008
|
+
viewImageModal: Ap,
|
|
5009
|
+
viewImageModal__img: Fp,
|
|
5014
5010
|
viewImageModal__img_loading: Bp,
|
|
5015
5011
|
viewImageModal__img_error: Dp,
|
|
5016
5012
|
viewImageModal__spinner: Mp,
|
|
@@ -5027,17 +5023,17 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5027
5023
|
showLoader: s = !0,
|
|
5028
5024
|
onClose: p
|
|
5029
5025
|
} = e, [l, d] = oe(!0), [u, g] = oe(!1), [h, x] = oe(n), b = _({
|
|
5030
|
-
[
|
|
5026
|
+
[Ne.viewImageModal]: !0,
|
|
5031
5027
|
...t && { [t]: !0 }
|
|
5032
5028
|
}), I = _({
|
|
5033
|
-
[
|
|
5029
|
+
[Ne.viewImageModal__layer]: !0
|
|
5034
5030
|
}), j = _({
|
|
5035
|
-
[
|
|
5031
|
+
[Ne.viewImageModal__closeButton]: !0
|
|
5036
5032
|
}), z = _({
|
|
5037
|
-
[
|
|
5038
|
-
}), R = _(
|
|
5039
|
-
[
|
|
5040
|
-
[
|
|
5033
|
+
[Ne.viewImageModal__spinner]: !0
|
|
5034
|
+
}), R = _(Ne.viewImageModal__img, {
|
|
5035
|
+
[Ne.viewImageModal__img_loading]: l,
|
|
5036
|
+
[Ne.viewImageModal__img_error]: u,
|
|
5041
5037
|
...o && { [o]: !0 }
|
|
5042
5038
|
});
|
|
5043
5039
|
return /* @__PURE__ */ W(yo, { classNameRoot: I, children: [
|
|
@@ -5057,9 +5053,9 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5057
5053
|
}
|
|
5058
5054
|
}
|
|
5059
5055
|
),
|
|
5060
|
-
u && /* @__PURE__ */ W("div", { className:
|
|
5061
|
-
/* @__PURE__ */ c(de, { name: D.InfoError, className:
|
|
5062
|
-
/* @__PURE__ */ c(
|
|
5056
|
+
u && /* @__PURE__ */ W("div", { className: Ne.viewImage__errorWrapper, children: [
|
|
5057
|
+
/* @__PURE__ */ c(de, { name: D.InfoError, className: Ne.viewImage__errorIcon }),
|
|
5058
|
+
/* @__PURE__ */ c(Ee, { children: "Не удалось загрузить изображение" })
|
|
5063
5059
|
] })
|
|
5064
5060
|
] }),
|
|
5065
5061
|
/* @__PURE__ */ c(
|
|
@@ -5106,7 +5102,7 @@ export {
|
|
|
5106
5102
|
Dt as Spinner,
|
|
5107
5103
|
ol as Table,
|
|
5108
5104
|
nl as Tabs,
|
|
5109
|
-
|
|
5105
|
+
Ee as Text,
|
|
5110
5106
|
al as TextWithLabel,
|
|
5111
5107
|
it as Tooltip,
|
|
5112
5108
|
il as UploadFiles,
|