test-stpr-ui-kit 0.4.8 → 0.4.9
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as H, jsx as l, Fragment as pn } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as N from "react";
|
|
3
3
|
import We, { useState as ce, useEffect as ae, useRef as Ce, useCallback as le, forwardRef as Fn, useImperativeHandle as zn, Fragment as Mn, useMemo as Ae, useReducer as Bn, createContext as cn, useContext as ln } from "react";
|
|
4
4
|
import Wn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function dn(e) {
|
|
@@ -15,7 +15,7 @@ function v() {
|
|
|
15
15
|
for (var e, t, n = 0, o = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = dn(e)) && (o && (o += " "), o += t);
|
|
16
16
|
return o;
|
|
17
17
|
}
|
|
18
|
-
const qn = (e) => /* @__PURE__ */
|
|
18
|
+
const qn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M20 7L9 18L4 13", stroke: "currentColor", strokeWidth: 2 })), $n = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M25 6L13 18L1 6", stroke: "currentColor", strokeWidth: 2 })), Hn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 20 20", fill: "none", ...e }, /* @__PURE__ */ N.createElement("line", { y1: -0.4, x2: 24.5568, y2: -0.4, transform: "matrix(0.680234 -0.732995 -0.680234 -0.732995 1 19)", stroke: "currentColor", strokeWidth: 0.8 }), /* @__PURE__ */ N.createElement("line", { y1: -0.4, x2: 24.5568, y2: -0.4, transform: "matrix(-0.680234 -0.732995 0.680234 -0.732995 18.9999 19)", stroke: "currentColor", strokeWidth: 0.8 })), Yn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M20 9H11C9.89543 9 9 9.89543 9 11V20C9 21.1046 9.89543 22 11 22H20C21.1046 22 22 21.1046 22 20V11C22 9.89543 21.1046 9 20 9Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M5 15H4C3.46957 15 2.96086 14.7893 2.58579 14.4142C2.21071 14.0391 2 13.5304 2 13V4C2 3.46957 2.21071 2.96086 2.58579 2.58579C2.96086 2.21071 3.46957 2 4 2H13C13.5304 2 14.0391 2.21071 14.4142 2.58579C14.7893 2.96086 15 3.46957 15 4V5", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Vn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 18 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ N.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ N.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), Un = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M8 4.61111V8.5H11.8889M8 15.5C4.13401 15.5 1 12.366 1 8.5C1 4.63401 4.13401 1.5 8 1.5C11.866 1.5 15 4.63401 15 8.5C15 12.366 11.866 15.5 8 15.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Gn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M12 8V12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M12 16H12.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Kn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Xn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M12 5V19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Zn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M8 14.4C4.472 14.4 1.6 11.528 1.6 8C1.6 4.472 4.472 1.6 8 1.6C11.528 1.6 14.4 4.472 14.4 8C14.4 11.528 11.528 14.4 8 14.4ZM8 0C6.94943 0 5.90914 0.206926 4.93853 0.608964C3.96793 1.011 3.08601 1.60028 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.08601 14.3997 3.96793 14.989 4.93853 15.391C5.90914 15.7931 6.94943 16 8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 6.94943 15.7931 5.90914 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.0909 0.206926 9.05058 0 8 0ZM8.8 4H7.2V7.2H4V8.8H7.2V12H8.8V8.8H12V7.2H8.8V4Z", fill: "currentColor" })), Qn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M12 8V16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M8 12H16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Jn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M12 15.275L6 9.275L7.275 8L12 12.725L16.725 8L18 9.275L12 15.275Z", fill: "currentColor" })), eo = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), to = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "-2 -2 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M2 10V17C2 17.5304 2.21071 18.0391 2.58579 18.4142C2.96086 18.7893 3.46957 19 4 19H16C16.5304 19 17.0391 18.7893 17.4142 18.4142C17.7893 18.0391 18 17.5304 18 17V10", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M14 5L10 1L6 5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ N.createElement("path", { d: "M10 2V13", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), no = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon", width: 24, height: 24, viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ N.createElement("path", { d: "M12.971 2.24023L25.8228 24.5002H0.119141L12.971 2.24023Z", fill: "#002A64" }), /* @__PURE__ */ N.createElement("path", { d: "M13.0835 4.20023L25.2079 25.2002H0.959141L13.0835 4.20023Z", fill: "#036BFD" }), /* @__PURE__ */ N.createElement("path", { d: "M14.3991 21.0002H11.8791V23.5202H14.3991V21.0002Z", fill: "#F5F5F7" }), /* @__PURE__ */ N.createElement("path", { d: "M14.3991 10.6402H11.8791V19.8802H14.3991V10.6402Z", fill: "#F5F5F7" })), ve = (e) => {
|
|
19
19
|
const { name: t, rotate: n, ...o } = e, a = {
|
|
20
20
|
...o.style,
|
|
21
21
|
flexShrink: 0,
|
|
@@ -73,7 +73,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
73
73
|
classNameChildrenWrapper: w
|
|
74
74
|
} = e, [k, E] = ce(o), y = () => {
|
|
75
75
|
a || (E(!k), i == null || i(!k));
|
|
76
|
-
},
|
|
76
|
+
}, j = v({
|
|
77
77
|
[fe.spAccordion]: !0,
|
|
78
78
|
[fe.spAccordion_open]: k,
|
|
79
79
|
[fe.spAccordion_noOpen]: !k,
|
|
@@ -96,7 +96,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
96
96
|
[fe.spAccordion__childrenWrapper_open]: k,
|
|
97
97
|
...w && { [w]: !0 }
|
|
98
98
|
});
|
|
99
|
-
return /* @__PURE__ */ H("div", { className:
|
|
99
|
+
return /* @__PURE__ */ H("div", { className: j, children: [
|
|
100
100
|
/* @__PURE__ */ H("div", { className: O, children: [
|
|
101
101
|
/* @__PURE__ */ l("div", { className: Y, children: /* @__PURE__ */ l("span", { onClick: y, children: t }) }),
|
|
102
102
|
/* @__PURE__ */ l(
|
|
@@ -162,7 +162,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
162
162
|
isOnlyIcon: k = !1,
|
|
163
163
|
noPadding: E = !1,
|
|
164
164
|
classNameRoot: y,
|
|
165
|
-
classNameIconContainerRoot:
|
|
165
|
+
classNameIconContainerRoot: j
|
|
166
166
|
} = e, O = (b) => {
|
|
167
167
|
s || a == null || a(b);
|
|
168
168
|
}, Y = () => {
|
|
@@ -170,7 +170,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
170
170
|
[be.spButton__text]: !0
|
|
171
171
|
}), p = v({
|
|
172
172
|
[be.spButton__iconContainer]: !0,
|
|
173
|
-
...
|
|
173
|
+
...j && { [j]: !0 }
|
|
174
174
|
});
|
|
175
175
|
return /* @__PURE__ */ H(pn, { children: [
|
|
176
176
|
(i || c) && /* @__PURE__ */ l("div", { className: p, children: c ? /* @__PURE__ */ l(ho, { classNameRoot: be.spButton__spinner }) : i && /* @__PURE__ */ l(ve, { name: i, rotate: r }) }),
|
|
@@ -320,9 +320,9 @@ const jt = (e) => {
|
|
|
320
320
|
classNameTooltip: c,
|
|
321
321
|
classNameBaseTooltipRoot: w,
|
|
322
322
|
classNameBaseTooltipContentRoot: k
|
|
323
|
-
} = e, [E, y] = ce(!1),
|
|
323
|
+
} = e, [E, y] = ce(!1), j = Ce(null), O = Ce(null), [Y, R] = ce(!1);
|
|
324
324
|
fn(
|
|
325
|
-
[
|
|
325
|
+
[j, O],
|
|
326
326
|
() => {
|
|
327
327
|
r && r(), y(!1);
|
|
328
328
|
},
|
|
@@ -335,8 +335,8 @@ const jt = (e) => {
|
|
|
335
335
|
opacity: 0,
|
|
336
336
|
left: "-9999px"
|
|
337
337
|
}), [z, G] = ce(!1), X = le(() => {
|
|
338
|
-
if (!
|
|
339
|
-
const g =
|
|
338
|
+
if (!j.current || !O.current) return;
|
|
339
|
+
const g = j.current.getBoundingClientRect(), L = O.current.getBoundingClientRect();
|
|
340
340
|
let q = 0, K = 0;
|
|
341
341
|
switch (m) {
|
|
342
342
|
case ie.Right:
|
|
@@ -411,7 +411,7 @@ const jt = (e) => {
|
|
|
411
411
|
onMouseEnter: () => t && G(!0),
|
|
412
412
|
onMouseLeave: () => t && G(!1),
|
|
413
413
|
children: [
|
|
414
|
-
/* @__PURE__ */ l("div", { ref:
|
|
414
|
+
/* @__PURE__ */ l("div", { ref: j, className: s, children: a }),
|
|
415
415
|
o && /* @__PURE__ */ l(mn, { node: ne, children: /* @__PURE__ */ l(
|
|
416
416
|
un,
|
|
417
417
|
{
|
|
@@ -458,7 +458,7 @@ const jt = (e) => {
|
|
|
458
458
|
} = e, y = v({
|
|
459
459
|
[ye.spCheckbox]: !0,
|
|
460
460
|
...k && { [k]: !0 }
|
|
461
|
-
}),
|
|
461
|
+
}), j = v({
|
|
462
462
|
[ye.spCheckbox__box]: !0,
|
|
463
463
|
[ye.spCheckbox__box_checked]: n,
|
|
464
464
|
[ye.spCheckbox__box_disabled]: o,
|
|
@@ -477,7 +477,7 @@ const jt = (e) => {
|
|
|
477
477
|
[ye.spCheckbox__tooltip]: !0
|
|
478
478
|
});
|
|
479
479
|
return /* @__PURE__ */ H("div", { className: y, onMouseEnter: w, children: [
|
|
480
|
-
/* @__PURE__ */ H("label", { className:
|
|
480
|
+
/* @__PURE__ */ H("label", { className: j, children: [
|
|
481
481
|
/* @__PURE__ */ l(
|
|
482
482
|
"input",
|
|
483
483
|
{
|
|
@@ -564,10 +564,10 @@ const jt = (e) => {
|
|
|
564
564
|
);
|
|
565
565
|
});
|
|
566
566
|
Te.displayName = "Text";
|
|
567
|
-
const aa = "
|
|
567
|
+
const aa = "_modalWrapper_ah6vq_43", ia = "_modalWrapper__modal_ah6vq_54", ra = "_modalWrapper__content_ah6vq_77", sa = "_modalWrapper__header_ah6vq_80", pa = "_modalWrapper__subHeader_ah6vq_88", ca = "_modalWrapper__footer_ah6vq_96", la = "_modalWrapper__closeButton_ah6vq_99", da = "_modalWrapper__closeButtonIconContainer_ah6vq_113", ke = {
|
|
568
568
|
modalWrapper: aa,
|
|
569
|
-
"modalWrapper_align-top": "_modalWrapper_align-
|
|
570
|
-
"modalWrapper_align-center": "_modalWrapper_align-
|
|
569
|
+
"modalWrapper_align-top": "_modalWrapper_align-top_ah6vq_48",
|
|
570
|
+
"modalWrapper_align-center": "_modalWrapper_align-center_ah6vq_51",
|
|
571
571
|
modalWrapper__modal: ia,
|
|
572
572
|
modalWrapper__content: ra,
|
|
573
573
|
modalWrapper__header: sa,
|
|
@@ -597,7 +597,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
597
597
|
...r && { [r]: !0 }
|
|
598
598
|
}), y = v({
|
|
599
599
|
[ke.modalWrapper__closeButton]: !0
|
|
600
|
-
}),
|
|
600
|
+
}), j = v({
|
|
601
601
|
[ke.modalWrapper__closeButtonIconContainer]: !0
|
|
602
602
|
}), O = v({
|
|
603
603
|
[ke.modalWrapper__content]: !0
|
|
@@ -624,7 +624,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
624
624
|
yt,
|
|
625
625
|
{
|
|
626
626
|
classNameRoot: y,
|
|
627
|
-
classNameIconContainerRoot:
|
|
627
|
+
classNameIconContainerRoot: j,
|
|
628
628
|
onClick: d,
|
|
629
629
|
iconName: re.Close,
|
|
630
630
|
variant: "link",
|
|
@@ -659,7 +659,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
659
659
|
onClose: c,
|
|
660
660
|
align: E,
|
|
661
661
|
subHeader: o,
|
|
662
|
-
footer: /* @__PURE__ */ l(
|
|
662
|
+
footer: a || s ? /* @__PURE__ */ l(
|
|
663
663
|
Po,
|
|
664
664
|
{
|
|
665
665
|
mobile: w,
|
|
@@ -674,7 +674,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
674
674
|
submit: m,
|
|
675
675
|
loading: y
|
|
676
676
|
}
|
|
677
|
-
)
|
|
677
|
+
) : null
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
}, ma = "_spContextMenu_1wocv_43", fa = "_spContextMenu__item_1wocv_54", va = "_spContextMenu__item_deleteItem_1wocv_73", lt = {
|
|
@@ -723,7 +723,7 @@ var Ot;
|
|
|
723
723
|
function _a() {
|
|
724
724
|
if (Ot) return V;
|
|
725
725
|
Ot = 1;
|
|
726
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = 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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121,
|
|
726
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = 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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
727
727
|
function R(p) {
|
|
728
728
|
if (typeof p == "object" && p !== null) {
|
|
729
729
|
var C = p.$$typeof;
|
|
@@ -782,7 +782,7 @@ function _a() {
|
|
|
782
782
|
}, V.isSuspense = function(p) {
|
|
783
783
|
return R(p) === c;
|
|
784
784
|
}, V.isValidElementType = function(p) {
|
|
785
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === w || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === k || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof ===
|
|
785
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === w || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === k || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof === j || p.$$typeof === O || p.$$typeof === Y || p.$$typeof === y);
|
|
786
786
|
}, V.typeOf = R, V;
|
|
787
787
|
}
|
|
788
788
|
var U = {};
|
|
@@ -797,10 +797,10 @@ var U = {};
|
|
|
797
797
|
var Lt;
|
|
798
798
|
function xa() {
|
|
799
799
|
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
800
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = 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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121,
|
|
800
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = 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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
801
801
|
function R(_) {
|
|
802
802
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
803
|
-
_ === o || _ === d || _ === i || _ === a || _ === c || _ === w || typeof _ == "object" && _ !== null && (_.$$typeof === E || _.$$typeof === k || _.$$typeof === r || _.$$typeof === s || _.$$typeof === u || _.$$typeof ===
|
|
803
|
+
_ === o || _ === d || _ === i || _ === a || _ === c || _ === w || typeof _ == "object" && _ !== null && (_.$$typeof === E || _.$$typeof === k || _.$$typeof === r || _.$$typeof === s || _.$$typeof === u || _.$$typeof === j || _.$$typeof === O || _.$$typeof === Y || _.$$typeof === y);
|
|
804
804
|
}
|
|
805
805
|
function b(_) {
|
|
806
806
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -850,7 +850,7 @@ function xa() {
|
|
|
850
850
|
function P(_) {
|
|
851
851
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function I(_) {
|
|
854
854
|
return b(_) === u;
|
|
855
855
|
}
|
|
856
856
|
function B(_) {
|
|
@@ -874,7 +874,7 @@ function xa() {
|
|
|
874
874
|
function te(_) {
|
|
875
875
|
return b(_) === c;
|
|
876
876
|
}
|
|
877
|
-
U.AsyncMode = p, U.ConcurrentMode = C, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = _e, U.Memo = ne, U.Portal = g, U.Profiler = L, U.StrictMode = q, U.Suspense = K, U.isAsyncMode = Q, U.isConcurrentMode = f, U.isContextConsumer = h, U.isContextProvider = A, U.isElement = P, U.isForwardRef =
|
|
877
|
+
U.AsyncMode = p, U.ConcurrentMode = C, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = _e, U.Memo = ne, U.Portal = g, U.Profiler = L, U.StrictMode = q, U.Suspense = K, U.isAsyncMode = Q, U.isConcurrentMode = f, U.isContextConsumer = h, U.isContextProvider = A, U.isElement = P, U.isForwardRef = I, U.isFragment = B, U.isLazy = D, U.isMemo = F, U.isPortal = W, U.isProfiler = $, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = R, U.typeOf = b;
|
|
878
878
|
}()), U;
|
|
879
879
|
}
|
|
880
880
|
var Pt;
|
|
@@ -1044,7 +1044,7 @@ function ba() {
|
|
|
1044
1044
|
this.message = f, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
|
|
1045
1045
|
}
|
|
1046
1046
|
y.prototype = Error.prototype;
|
|
1047
|
-
function
|
|
1047
|
+
function j(f) {
|
|
1048
1048
|
if (process.env.NODE_ENV !== "production")
|
|
1049
1049
|
var h = {}, A = 0;
|
|
1050
1050
|
function P(B, D, F, W, $, M, te) {
|
|
@@ -1064,82 +1064,82 @@ function ba() {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
return D[F] == null ? B ? D[F] === null ? new y("The " + $ + " `" + M + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new y("The " + $ + " `" + M + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : f(D, F, W, $, M);
|
|
1066
1066
|
}
|
|
1067
|
-
var
|
|
1068
|
-
return
|
|
1067
|
+
var I = P.bind(null, !1);
|
|
1068
|
+
return I.isRequired = P.bind(null, !0), I;
|
|
1069
1069
|
}
|
|
1070
1070
|
function O(f) {
|
|
1071
|
-
function h(A, P,
|
|
1071
|
+
function h(A, P, I, B, D, F) {
|
|
1072
1072
|
var W = A[P], $ = q(W);
|
|
1073
1073
|
if ($ !== f) {
|
|
1074
1074
|
var M = K(W);
|
|
1075
1075
|
return new y(
|
|
1076
|
-
"Invalid " + B + " `" + D + "` of type " + ("`" + M + "` supplied to `" +
|
|
1076
|
+
"Invalid " + B + " `" + D + "` of type " + ("`" + M + "` supplied to `" + I + "`, expected ") + ("`" + f + "`."),
|
|
1077
1077
|
{ expectedType: f }
|
|
1078
1078
|
);
|
|
1079
1079
|
}
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
1082
|
-
return
|
|
1082
|
+
return j(h);
|
|
1083
1083
|
}
|
|
1084
1084
|
function Y() {
|
|
1085
|
-
return
|
|
1085
|
+
return j(r);
|
|
1086
1086
|
}
|
|
1087
1087
|
function R(f) {
|
|
1088
|
-
function h(A, P,
|
|
1088
|
+
function h(A, P, I, B, D) {
|
|
1089
1089
|
if (typeof f != "function")
|
|
1090
|
-
return new y("Property `" + D + "` of component `" +
|
|
1090
|
+
return new y("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1091
1091
|
var F = A[P];
|
|
1092
1092
|
if (!Array.isArray(F)) {
|
|
1093
1093
|
var W = q(F);
|
|
1094
|
-
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" +
|
|
1094
|
+
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an array."));
|
|
1095
1095
|
}
|
|
1096
1096
|
for (var $ = 0; $ < F.length; $++) {
|
|
1097
|
-
var M = f(F, $,
|
|
1097
|
+
var M = f(F, $, I, B, D + "[" + $ + "]", n);
|
|
1098
1098
|
if (M instanceof Error)
|
|
1099
1099
|
return M;
|
|
1100
1100
|
}
|
|
1101
1101
|
return null;
|
|
1102
1102
|
}
|
|
1103
|
-
return
|
|
1103
|
+
return j(h);
|
|
1104
1104
|
}
|
|
1105
1105
|
function b() {
|
|
1106
|
-
function f(h, A, P,
|
|
1106
|
+
function f(h, A, P, I, B) {
|
|
1107
1107
|
var D = h[A];
|
|
1108
1108
|
if (!s(D)) {
|
|
1109
1109
|
var F = q(D);
|
|
1110
|
-
return new y("Invalid " +
|
|
1110
|
+
return new y("Invalid " + I + " `" + B + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1111
1111
|
}
|
|
1112
1112
|
return null;
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return j(f);
|
|
1115
1115
|
}
|
|
1116
1116
|
function p() {
|
|
1117
|
-
function f(h, A, P,
|
|
1117
|
+
function f(h, A, P, I, B) {
|
|
1118
1118
|
var D = h[A];
|
|
1119
1119
|
if (!e.isValidElementType(D)) {
|
|
1120
1120
|
var F = q(D);
|
|
1121
|
-
return new y("Invalid " +
|
|
1121
|
+
return new y("Invalid " + I + " `" + B + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1122
1122
|
}
|
|
1123
1123
|
return null;
|
|
1124
1124
|
}
|
|
1125
|
-
return
|
|
1125
|
+
return j(f);
|
|
1126
1126
|
}
|
|
1127
1127
|
function C(f) {
|
|
1128
|
-
function h(A, P,
|
|
1128
|
+
function h(A, P, I, B, D) {
|
|
1129
1129
|
if (!(A[P] instanceof f)) {
|
|
1130
1130
|
var F = f.name || w, W = Q(A[P]);
|
|
1131
|
-
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" +
|
|
1131
|
+
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("instance of `" + F + "`."));
|
|
1132
1132
|
}
|
|
1133
1133
|
return null;
|
|
1134
1134
|
}
|
|
1135
|
-
return
|
|
1135
|
+
return j(h);
|
|
1136
1136
|
}
|
|
1137
1137
|
function z(f) {
|
|
1138
1138
|
if (!Array.isArray(f))
|
|
1139
1139
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1140
1140
|
"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])."
|
|
1141
1141
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1142
|
-
function h(A, P,
|
|
1142
|
+
function h(A, P, I, B, D) {
|
|
1143
1143
|
for (var F = A[P], W = 0; W < f.length; W++)
|
|
1144
1144
|
if (E(F, f[W]))
|
|
1145
1145
|
return null;
|
|
@@ -1147,26 +1147,26 @@ function ba() {
|
|
|
1147
1147
|
var ue = K(_);
|
|
1148
1148
|
return ue === "symbol" ? String(_) : _;
|
|
1149
1149
|
});
|
|
1150
|
-
return new y("Invalid " + B + " `" + D + "` of value `" + String(F) + "` " + ("supplied to `" +
|
|
1150
|
+
return new y("Invalid " + B + " `" + D + "` of value `" + String(F) + "` " + ("supplied to `" + I + "`, expected one of " + $ + "."));
|
|
1151
1151
|
}
|
|
1152
|
-
return
|
|
1152
|
+
return j(h);
|
|
1153
1153
|
}
|
|
1154
1154
|
function G(f) {
|
|
1155
|
-
function h(A, P,
|
|
1155
|
+
function h(A, P, I, B, D) {
|
|
1156
1156
|
if (typeof f != "function")
|
|
1157
|
-
return new y("Property `" + D + "` of component `" +
|
|
1157
|
+
return new y("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1158
1158
|
var F = A[P], W = q(F);
|
|
1159
1159
|
if (W !== "object")
|
|
1160
|
-
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" +
|
|
1160
|
+
return new y("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an object."));
|
|
1161
1161
|
for (var $ in F)
|
|
1162
1162
|
if (o(F, $)) {
|
|
1163
|
-
var M = f(F, $,
|
|
1163
|
+
var M = f(F, $, I, B, D + "." + $, n);
|
|
1164
1164
|
if (M instanceof Error)
|
|
1165
1165
|
return M;
|
|
1166
1166
|
}
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
1169
|
-
return
|
|
1169
|
+
return j(h);
|
|
1170
1170
|
}
|
|
1171
1171
|
function X(f) {
|
|
1172
1172
|
if (!Array.isArray(f))
|
|
@@ -1178,9 +1178,9 @@ function ba() {
|
|
|
1178
1178
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(A) + " at index " + h + "."
|
|
1179
1179
|
), r;
|
|
1180
1180
|
}
|
|
1181
|
-
function P(
|
|
1181
|
+
function P(I, B, D, F, W) {
|
|
1182
1182
|
for (var $ = [], M = 0; M < f.length; M++) {
|
|
1183
|
-
var te = f[M], _ = te(
|
|
1183
|
+
var te = f[M], _ = te(I, B, D, F, W, n);
|
|
1184
1184
|
if (_ == null)
|
|
1185
1185
|
return null;
|
|
1186
1186
|
_.data && o(_.data, "expectedType") && $.push(_.data.expectedType);
|
|
@@ -1188,58 +1188,58 @@ function ba() {
|
|
|
1188
1188
|
var ue = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1189
1189
|
return new y("Invalid " + F + " `" + W + "` supplied to " + ("`" + D + "`" + ue + "."));
|
|
1190
1190
|
}
|
|
1191
|
-
return
|
|
1191
|
+
return j(P);
|
|
1192
1192
|
}
|
|
1193
1193
|
function se() {
|
|
1194
|
-
function f(h, A, P,
|
|
1195
|
-
return g(h[A]) ? null : new y("Invalid " +
|
|
1194
|
+
function f(h, A, P, I, B) {
|
|
1195
|
+
return g(h[A]) ? null : new y("Invalid " + I + " `" + B + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1196
1196
|
}
|
|
1197
|
-
return
|
|
1197
|
+
return j(f);
|
|
1198
1198
|
}
|
|
1199
|
-
function de(f, h, A, P,
|
|
1199
|
+
function de(f, h, A, P, I) {
|
|
1200
1200
|
return new y(
|
|
1201
|
-
(f || "React class") + ": " + h + " type `" + A + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1201
|
+
(f || "React class") + ": " + h + " type `" + A + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1202
1202
|
);
|
|
1203
1203
|
}
|
|
1204
1204
|
function _e(f) {
|
|
1205
|
-
function h(A, P,
|
|
1205
|
+
function h(A, P, I, B, D) {
|
|
1206
1206
|
var F = A[P], W = q(F);
|
|
1207
1207
|
if (W !== "object")
|
|
1208
|
-
return new y("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" +
|
|
1208
|
+
return new y("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1209
1209
|
for (var $ in f) {
|
|
1210
1210
|
var M = f[$];
|
|
1211
1211
|
if (typeof M != "function")
|
|
1212
|
-
return de(
|
|
1213
|
-
var te = M(F, $,
|
|
1212
|
+
return de(I, B, D, $, K(M));
|
|
1213
|
+
var te = M(F, $, I, B, D + "." + $, n);
|
|
1214
1214
|
if (te)
|
|
1215
1215
|
return te;
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}
|
|
1219
|
-
return
|
|
1219
|
+
return j(h);
|
|
1220
1220
|
}
|
|
1221
1221
|
function ne(f) {
|
|
1222
|
-
function h(A, P,
|
|
1222
|
+
function h(A, P, I, B, D) {
|
|
1223
1223
|
var F = A[P], W = q(F);
|
|
1224
1224
|
if (W !== "object")
|
|
1225
|
-
return new y("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" +
|
|
1225
|
+
return new y("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1226
1226
|
var $ = t({}, A[P], f);
|
|
1227
1227
|
for (var M in $) {
|
|
1228
1228
|
var te = f[M];
|
|
1229
1229
|
if (o(f, M) && typeof te != "function")
|
|
1230
|
-
return de(
|
|
1230
|
+
return de(I, B, D, M, K(te));
|
|
1231
1231
|
if (!te)
|
|
1232
1232
|
return new y(
|
|
1233
|
-
"Invalid " + B + " `" + D + "` key `" + M + "` supplied to `" +
|
|
1233
|
+
"Invalid " + B + " `" + D + "` key `" + M + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(A[P], null, " ") + `
|
|
1234
1234
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1235
1235
|
);
|
|
1236
|
-
var _ = te(F, M,
|
|
1236
|
+
var _ = te(F, M, I, B, D + "." + M, n);
|
|
1237
1237
|
if (_)
|
|
1238
1238
|
return _;
|
|
1239
1239
|
}
|
|
1240
1240
|
return null;
|
|
1241
1241
|
}
|
|
1242
|
-
return
|
|
1242
|
+
return j(h);
|
|
1243
1243
|
}
|
|
1244
1244
|
function g(f) {
|
|
1245
1245
|
switch (typeof f) {
|
|
@@ -1263,8 +1263,8 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1263
1263
|
return !1;
|
|
1264
1264
|
} else
|
|
1265
1265
|
for (; !(P = A.next()).done; ) {
|
|
1266
|
-
var
|
|
1267
|
-
if (
|
|
1266
|
+
var I = P.value;
|
|
1267
|
+
if (I && !g(I[1]))
|
|
1268
1268
|
return !1;
|
|
1269
1269
|
}
|
|
1270
1270
|
} else
|
|
@@ -3262,13 +3262,13 @@ var St = {
|
|
|
3262
3262
|
fileRejections: []
|
|
3263
3263
|
};
|
|
3264
3264
|
function xi() {
|
|
3265
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, w = t.onDrop, k = t.onDropAccepted, E = t.onDropRejected, y = t.onFileDialogCancel,
|
|
3265
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, w = t.onDrop, k = t.onDropAccepted, E = t.onDropRejected, y = t.onFileDialogCancel, j = t.onFileDialogOpen, O = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, C = t.noDrag, z = t.noDragEventsBubbling, G = t.onError, X = t.validator, se = Ae(function() {
|
|
3266
3266
|
return ni(n);
|
|
3267
3267
|
}, [n]), de = Ae(function() {
|
|
3268
3268
|
return ti(n);
|
|
3269
3269
|
}, [n]), _e = Ae(function() {
|
|
3270
|
-
return typeof
|
|
3271
|
-
}, [
|
|
3270
|
+
return typeof j == "function" ? j : Jt;
|
|
3271
|
+
}, [j]), ne = Ae(function() {
|
|
3272
3272
|
return typeof y == "function" ? y : Jt;
|
|
3273
3273
|
}, [y]), g = Ce(null), L = Ce(null), q = Bn(gi, St), K = gt(q, 2), ee = K[0], Q = K[1], f = ee.isFocused, h = ee.isFileDialogActive, A = Ce(typeof window < "u" && window.isSecureContext && O && ei()), P = function() {
|
|
3274
3274
|
!A.current && h && setTimeout(function() {
|
|
@@ -3285,8 +3285,8 @@ function xi() {
|
|
|
3285
3285
|
window.removeEventListener("focus", P, !1);
|
|
3286
3286
|
};
|
|
3287
3287
|
}, [L, h, ne, A]);
|
|
3288
|
-
var
|
|
3289
|
-
g.current && g.current.contains(S.target) || (S.preventDefault(),
|
|
3288
|
+
var I = Ce([]), B = function(S) {
|
|
3289
|
+
g.current && g.current.contains(S.target) || (S.preventDefault(), I.current = []);
|
|
3290
3290
|
};
|
|
3291
3291
|
ae(function() {
|
|
3292
3292
|
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop", B, !1)), function() {
|
|
@@ -3299,7 +3299,7 @@ function xi() {
|
|
|
3299
3299
|
var D = le(function(x) {
|
|
3300
3300
|
G ? G(x) : console.error(x);
|
|
3301
3301
|
}, [G]), F = le(function(x) {
|
|
3302
|
-
x.preventDefault(), x.persist(), $e(x),
|
|
3302
|
+
x.preventDefault(), x.persist(), $e(x), I.current = [].concat(ci(I.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3303
3303
|
if (!(Xe(x) && !z)) {
|
|
3304
3304
|
var J = S.length, oe = J > 0 && Xa({
|
|
3305
3305
|
files: S,
|
|
@@ -3331,10 +3331,10 @@ function xi() {
|
|
|
3331
3331
|
return S && c && c(x), !1;
|
|
3332
3332
|
}, [c, z]), $ = le(function(x) {
|
|
3333
3333
|
x.preventDefault(), x.persist(), $e(x);
|
|
3334
|
-
var S =
|
|
3334
|
+
var S = I.current.filter(function(oe) {
|
|
3335
3335
|
return g.current && g.current.contains(oe);
|
|
3336
3336
|
}), J = S.indexOf(x.target);
|
|
3337
|
-
J !== -1 && S.splice(J, 1),
|
|
3337
|
+
J !== -1 && S.splice(J, 1), I.current = S, !(S.length > 0) && (Q({
|
|
3338
3338
|
type: "setDraggedFiles",
|
|
3339
3339
|
isDragActive: !1,
|
|
3340
3340
|
isDragAccept: !1,
|
|
@@ -3367,7 +3367,7 @@ function xi() {
|
|
|
3367
3367
|
type: "setFiles"
|
|
3368
3368
|
}), w && w(J, oe, S), oe.length > 0 && E && E(oe, S), J.length > 0 && k && k(J, S);
|
|
3369
3369
|
}, [Q, s, se, r, i, m, w, k, E, X]), te = le(function(x) {
|
|
3370
|
-
x.preventDefault(), x.persist(), $e(x),
|
|
3370
|
+
x.preventDefault(), x.persist(), $e(x), I.current = [], Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3371
3371
|
Xe(x) && !z || M(S, x);
|
|
3372
3372
|
}).catch(function(S) {
|
|
3373
3373
|
return D(S);
|
|
@@ -3578,7 +3578,7 @@ const hi = (e) => {
|
|
|
3578
3578
|
actionOnClose: () => k(!1),
|
|
3579
3579
|
text: /* @__PURE__ */ H("div", { className: d, children: [
|
|
3580
3580
|
n && /* @__PURE__ */ l("div", { className: u, children: n }),
|
|
3581
|
-
o.map((y,
|
|
3581
|
+
o.map((y, j) => /* @__PURE__ */ H(
|
|
3582
3582
|
"div",
|
|
3583
3583
|
{
|
|
3584
3584
|
className: v({
|
|
@@ -3591,7 +3591,7 @@ const hi = (e) => {
|
|
|
3591
3591
|
y.description && /* @__PURE__ */ l("span", { className: c, children: y.description })
|
|
3592
3592
|
]
|
|
3593
3593
|
},
|
|
3594
|
-
|
|
3594
|
+
j
|
|
3595
3595
|
))
|
|
3596
3596
|
] }),
|
|
3597
3597
|
position: a,
|
|
@@ -3715,14 +3715,14 @@ const hi = (e) => {
|
|
|
3715
3715
|
tooltipPosition: k,
|
|
3716
3716
|
isVisibleDefaultTitle: E = !0,
|
|
3717
3717
|
placeholder: y = "Введите...",
|
|
3718
|
-
classNameRoot:
|
|
3718
|
+
classNameRoot: j,
|
|
3719
3719
|
classNameError: O,
|
|
3720
3720
|
classNameLabel: Y,
|
|
3721
3721
|
...R
|
|
3722
3722
|
} = e, b = v({
|
|
3723
3723
|
[Se.spInput]: !0,
|
|
3724
3724
|
[Se.spInput_error]: !!r,
|
|
3725
|
-
...
|
|
3725
|
+
...j && { [j]: !0 }
|
|
3726
3726
|
}), p = v({
|
|
3727
3727
|
[Se.spInput__container]: !0
|
|
3728
3728
|
}), C = v({
|
|
@@ -3802,7 +3802,7 @@ const Vi = "_spInputFiles_12x0f_43", Ui = "_spInputFiles_error_12x0f_48", Gi = "
|
|
|
3802
3802
|
tooltipPosition: c = ie.TopRight,
|
|
3803
3803
|
classNameRoot: w,
|
|
3804
3804
|
error: k
|
|
3805
|
-
} = e, E = d.map((p) => p.name), y = (E == null ? void 0 : E.length) > 0,
|
|
3805
|
+
} = e, E = d.map((p) => p.name), y = (E == null ? void 0 : E.length) > 0, j = v({
|
|
3806
3806
|
[xe.spInputFiles]: !0,
|
|
3807
3807
|
[xe.spInputFiles_error]: !!k,
|
|
3808
3808
|
[xe.spInputFiles_disabled]: r,
|
|
@@ -3849,7 +3849,7 @@ const Vi = "_spInputFiles_12x0f_43", Ui = "_spInputFiles_error_12x0f_48", Gi = "
|
|
|
3849
3849
|
accept: i,
|
|
3850
3850
|
onDropFiles: o,
|
|
3851
3851
|
disabled: r || y,
|
|
3852
|
-
children: /* @__PURE__ */ H("div", { className:
|
|
3852
|
+
children: /* @__PURE__ */ H("div", { className: j, children: [
|
|
3853
3853
|
/* @__PURE__ */ H("div", { className: xe.spInputFiles__control, children: [
|
|
3854
3854
|
/* @__PURE__ */ l(ve, { name: y ? re.Check : re.Upload }),
|
|
3855
3855
|
b()
|
|
@@ -4170,7 +4170,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4170
4170
|
maxHeightList: k = Lr,
|
|
4171
4171
|
isVisibleDefaultTitle: E = !0,
|
|
4172
4172
|
isScrollableList: y = !1,
|
|
4173
|
-
classNameRoot:
|
|
4173
|
+
classNameRoot: j,
|
|
4174
4174
|
classNameError: O,
|
|
4175
4175
|
classNameLabel: Y
|
|
4176
4176
|
} = e, [R, b] = ce(!1), p = Ce(null);
|
|
@@ -4188,7 +4188,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4188
4188
|
}, X = v({
|
|
4189
4189
|
[ge.spSelect]: !0,
|
|
4190
4190
|
[ge.spSelect_error]: !!s,
|
|
4191
|
-
...
|
|
4191
|
+
...j && { [j]: !0 }
|
|
4192
4192
|
}), se = v({
|
|
4193
4193
|
[ge.spSelect__container]: !0
|
|
4194
4194
|
}), de = v({
|
|
@@ -4309,7 +4309,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4309
4309
|
});
|
|
4310
4310
|
}, E = () => {
|
|
4311
4311
|
w(null);
|
|
4312
|
-
}, y = () => /* @__PURE__ */ l("div", { className: d, children: "Данные отсутствуют" }),
|
|
4312
|
+
}, y = () => /* @__PURE__ */ l("div", { className: d, children: "Данные отсутствуют" }), j = ({
|
|
4313
4313
|
row: b,
|
|
4314
4314
|
col: p
|
|
4315
4315
|
}) => {
|
|
@@ -4338,7 +4338,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4338
4338
|
{
|
|
4339
4339
|
onMouseLeave: G ? E : void 0,
|
|
4340
4340
|
children: /* @__PURE__ */ H("div", { className: s, children: [
|
|
4341
|
-
/* @__PURE__ */ l("span", { children: C.isColorContentsCurlyBrackets ?
|
|
4341
|
+
/* @__PURE__ */ l("span", { children: C.isColorContentsCurlyBrackets ? j({ row: b, col: C }) : b[C.key] }),
|
|
4342
4342
|
!sn(b[C.key]) && C.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4343
4343
|
ve,
|
|
4344
4344
|
{
|