test-stpr-ui-kit 0.4.47 → 0.4.49
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 +1110 -1100
- package/dist/test-stpr-ui-kit.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { jsxs as H, jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import './test-stpr-ui-kit.css';function
|
|
1
|
+
import { jsxs as H, jsx as u, Fragment as lo } from "react/jsx-runtime";
|
|
2
|
+
import * as E from "react";
|
|
3
|
+
import qe, { useState as le, useEffect as re, useRef as ve, useCallback as fe, forwardRef as Po, useImperativeHandle as Bo, Fragment as Wo, useMemo as Fe, useReducer as Mo, createContext as co, useContext as qo } from "react";
|
|
4
|
+
import $o from "react-dom";
|
|
5
|
+
import './test-stpr-ui-kit.css';function uo(e) {
|
|
6
6
|
var t, o, n = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
8
8
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
9
9
|
var a = e.length;
|
|
10
|
-
for (t = 0; t < a; t++) e[t] && (o =
|
|
10
|
+
for (t = 0; t < a; t++) e[t] && (o = uo(e[t])) && (n && (n += " "), n += o);
|
|
11
11
|
} else for (o in e) e[o] && (n && (n += " "), n += o);
|
|
12
12
|
return n;
|
|
13
13
|
}
|
|
14
14
|
function f() {
|
|
15
|
-
for (var e, t, o = 0, n = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (t =
|
|
15
|
+
for (var e, t, o = 0, n = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (t = uo(e)) && (n && (n += " "), n += t);
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const Uo = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M20 7L9 18L4 13", stroke: "currentColor", strokeWidth: 2 })), Ho = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M25 6L13 18L1 6", stroke: "currentColor", strokeWidth: 2 })), Vo = (e) => /* @__PURE__ */ E.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 21 22", fill: "none", ...e }, /* @__PURE__ */ E.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(0.680234 -0.732995 -0.680234 -0.732995 3 18)", stroke: "currentColor", strokeWidth: 2 }), /* @__PURE__ */ E.createElement("line", { y1: -1, x2: 20.464, y2: -1, transform: "matrix(-0.680234 -0.732995 0.680234 -0.732995 18 18)", stroke: "currentColor", strokeWidth: 2 })), Yo = (e) => /* @__PURE__ */ E.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__ */ E.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__ */ E.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" })), Go = (e) => /* @__PURE__ */ E.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__ */ E.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ E.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ E.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), Ko = (e) => /* @__PURE__ */ E.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__ */ E.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" })), Xo = (e) => /* @__PURE__ */ E.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__ */ E.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__ */ E.createElement("path", { d: "M12 8V12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.createElement("path", { d: "M12 16H12.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Zo = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Qo = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M12 5V19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Jo = (e) => /* @__PURE__ */ E.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__ */ E.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" })), en = (e) => /* @__PURE__ */ E.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__ */ E.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__ */ E.createElement("path", { d: "M12 8V16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.createElement("path", { d: "M8 12H16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), tn = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M12 15.275L6 9.275L7.275 8L12 12.725L16.725 8L18 9.275L12 15.275Z", fill: "currentColor" })), on = (e) => /* @__PURE__ */ E.createElement("svg", { className: "stpr-icon", xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 17 17", fill: "none", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M4.88889 10.6667L7.05556 8.5L4.88889 6.33333M9.22222 10.6667H12.1111M5.46667 15H11.5333C12.7468 15 13.3535 15 13.817 14.7638C14.2247 14.5561 14.5561 14.2247 14.7638 13.817C15 13.3535 15 12.7468 15 11.5333V5.46667C15 4.25322 15 3.6465 14.7638 3.18302C14.5561 2.77534 14.2247 2.44388 13.817 2.23615C13.3535 2 12.7468 2 11.5333 2H5.46667C4.25322 2 3.6465 2 3.18302 2.23615C2.77534 2.44388 2.44388 2.77534 2.23615 3.18302C2 3.6465 2 4.25322 2 5.46667V11.5333C2 12.7468 2 13.3535 2.23615 13.817C2.44388 14.2247 2.77534 14.5561 3.18302 14.7638C3.6465 15 4.25322 15 5.46667 15Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nn = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.createElement("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), an = (e) => /* @__PURE__ */ E.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__ */ E.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__ */ E.createElement("path", { d: "M14 5L10 1L6 5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ E.createElement("path", { d: "M10 2V13", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), rn = (e) => /* @__PURE__ */ E.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__ */ E.createElement("path", { d: "M12.971 2.24023L25.8228 24.5002H0.119141L12.971 2.24023Z", fill: "#002A64" }), /* @__PURE__ */ E.createElement("path", { d: "M13.0835 4.20023L25.2079 25.2002H0.959141L13.0835 4.20023Z", fill: "#036BFD" }), /* @__PURE__ */ E.createElement("path", { d: "M14.3991 21.0002H11.8791V23.5202H14.3991V21.0002Z", fill: "#F5F5F7" }), /* @__PURE__ */ E.createElement("path", { d: "M14.3991 10.6402H11.8791V19.8802H14.3991V10.6402Z", fill: "#F5F5F7" })), be = (e) => {
|
|
19
19
|
const { name: t, rotate: o, ...n } = e, a = {
|
|
20
20
|
...n.style,
|
|
21
21
|
flexShrink: 0,
|
|
22
22
|
transform: o ? `rotate(${o}deg)` : ""
|
|
23
23
|
}, i = {
|
|
24
|
-
chevronDown:
|
|
25
|
-
info:
|
|
26
|
-
plus:
|
|
27
|
-
minus:
|
|
28
|
-
selectChevronDown:
|
|
29
|
-
upload:
|
|
30
|
-
trash:
|
|
31
|
-
check:
|
|
32
|
-
copy:
|
|
33
|
-
close:
|
|
34
|
-
plusSquare:
|
|
35
|
-
warningColor:
|
|
36
|
-
dots:
|
|
37
|
-
historyClock:
|
|
38
|
-
plusCircle:
|
|
39
|
-
terminalSquare:
|
|
24
|
+
chevronDown: Ho,
|
|
25
|
+
info: Xo,
|
|
26
|
+
plus: Qo,
|
|
27
|
+
minus: Zo,
|
|
28
|
+
selectChevronDown: tn,
|
|
29
|
+
upload: an,
|
|
30
|
+
trash: nn,
|
|
31
|
+
check: Uo,
|
|
32
|
+
copy: Yo,
|
|
33
|
+
close: Vo,
|
|
34
|
+
plusSquare: en,
|
|
35
|
+
warningColor: rn,
|
|
36
|
+
dots: Go,
|
|
37
|
+
historyClock: Ko,
|
|
38
|
+
plusCircle: Jo,
|
|
39
|
+
terminalSquare: on
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return qe.createElement(i[t], {
|
|
42
42
|
...n,
|
|
43
43
|
style: a
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
var ue = /* @__PURE__ */ ((e) => (e.ChevronDown = "chevronDown", e.Info = "info", e.Plus = "plus", e.SelectChevronDown = "selectChevronDown", e.Upload = "upload", e.Trash = "trash", e.Check = "check", e.Copy = "copy", e.Close = "close", e.PlusSquare = "plusSquare", e.PlusCircle = "plusCircle", e.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e.TerminalSquare = "terminalSquare", e))(ue || {});
|
|
47
|
-
const
|
|
48
|
-
spAccordion:
|
|
49
|
-
spAccordion_noBorder:
|
|
50
|
-
spAccordion_noPadding:
|
|
51
|
-
spAccordion_open:
|
|
52
|
-
spAccordion__header:
|
|
53
|
-
spAccordion_noOpen:
|
|
54
|
-
spAccordion__name:
|
|
55
|
-
spAccordion__name_hiddenExpand:
|
|
47
|
+
const sn = "_spAccordion_11ek7_43", pn = "_spAccordion_noBorder_11ek7_57", ln = "_spAccordion_noPadding_11ek7_60", cn = "_spAccordion_open_11ek7_63", dn = "_spAccordion__header_11ek7_66", un = "_spAccordion_noOpen_11ek7_74", mn = "_spAccordion__name_11ek7_96", _n = "_spAccordion__name_hiddenExpand_11ek7_107", fn = "_spAccordion__icon_11ek7_122", vn = "_spAccordion__icon_hidden_11ek7_128", gn = "_spAccordion__icon_open_11ek7_131", xn = "_spAccordion__childrenWrapper_11ek7_138", hn = "_spAccordion__childrenWrapper_open_11ek7_147", bn = "_spAccordion__content_11ek7_150", yn = "_spAccordion__content_open_11ek7_156", ce = {
|
|
48
|
+
spAccordion: sn,
|
|
49
|
+
spAccordion_noBorder: pn,
|
|
50
|
+
spAccordion_noPadding: ln,
|
|
51
|
+
spAccordion_open: cn,
|
|
52
|
+
spAccordion__header: dn,
|
|
53
|
+
spAccordion_noOpen: un,
|
|
54
|
+
spAccordion__name: mn,
|
|
55
|
+
spAccordion__name_hiddenExpand: _n,
|
|
56
56
|
"spAccordion__name--level-1": "_spAccordion__name--level-1_11ek7_111",
|
|
57
57
|
"spAccordion__name--level-2": "_spAccordion__name--level-2_11ek7_114",
|
|
58
|
-
spAccordion__icon:
|
|
59
|
-
spAccordion__icon_hidden:
|
|
58
|
+
spAccordion__icon: fn,
|
|
59
|
+
spAccordion__icon_hidden: vn,
|
|
60
60
|
spAccordion__icon_open: gn,
|
|
61
|
-
spAccordion__childrenWrapper:
|
|
62
|
-
spAccordion__childrenWrapper_open:
|
|
63
|
-
spAccordion__content:
|
|
64
|
-
spAccordion__content_open:
|
|
65
|
-
},
|
|
61
|
+
spAccordion__childrenWrapper: xn,
|
|
62
|
+
spAccordion__childrenWrapper_open: hn,
|
|
63
|
+
spAccordion__content: bn,
|
|
64
|
+
spAccordion__content_open: yn
|
|
65
|
+
}, Us = (e) => {
|
|
66
66
|
const {
|
|
67
67
|
name: t,
|
|
68
68
|
children: o,
|
|
@@ -71,18 +71,18 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
71
71
|
onOpen: i,
|
|
72
72
|
noBorder: r = !1,
|
|
73
73
|
noPadding: s = !1,
|
|
74
|
-
level:
|
|
74
|
+
level: d = 1,
|
|
75
75
|
classNameRoot: p,
|
|
76
76
|
classNameHeader: m,
|
|
77
77
|
classNameTitle: l,
|
|
78
78
|
classNameIcon: v,
|
|
79
|
-
classNameChildrenWrapper:
|
|
80
|
-
} = e, [
|
|
81
|
-
a || (
|
|
82
|
-
},
|
|
79
|
+
classNameChildrenWrapper: b
|
|
80
|
+
} = e, [k, y] = le(n), T = () => {
|
|
81
|
+
a || (y(!k), i == null || i(!k));
|
|
82
|
+
}, A = f({
|
|
83
83
|
[ce.spAccordion]: !0,
|
|
84
|
-
[ce.spAccordion_open]:
|
|
85
|
-
[ce.spAccordion_noOpen]: !
|
|
84
|
+
[ce.spAccordion_open]: k,
|
|
85
|
+
[ce.spAccordion_noOpen]: !k,
|
|
86
86
|
[ce.spAccordion_noBorder]: r,
|
|
87
87
|
[ce.spAccordion_noPadding]: s,
|
|
88
88
|
...p && { [p]: !0 }
|
|
@@ -91,63 +91,63 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
91
91
|
...m && { [m]: !0 }
|
|
92
92
|
}), j = f({
|
|
93
93
|
[ce.spAccordion__name]: !0,
|
|
94
|
-
[ce[`spAccordion__name--level-${
|
|
94
|
+
[ce[`spAccordion__name--level-${d}`]]: d,
|
|
95
95
|
[ce.spAccordion__name_hiddenExpand]: a,
|
|
96
96
|
...l && { [l]: !0 }
|
|
97
|
-
}),
|
|
97
|
+
}), w = f({
|
|
98
98
|
[ce.spAccordion__icon]: !0,
|
|
99
|
-
[ce.spAccordion__icon_open]:
|
|
99
|
+
[ce.spAccordion__icon_open]: k,
|
|
100
100
|
[ce.spAccordion__icon_hidden]: a,
|
|
101
101
|
...v && { [v]: !0 }
|
|
102
102
|
}), c = f({
|
|
103
103
|
[ce.spAccordion__childrenWrapper]: !0,
|
|
104
|
-
[ce.spAccordion__childrenWrapper_open]:
|
|
105
|
-
...
|
|
106
|
-
}),
|
|
104
|
+
[ce.spAccordion__childrenWrapper_open]: k,
|
|
105
|
+
...b && { [b]: !0 }
|
|
106
|
+
}), S = f({
|
|
107
107
|
[ce.spAccordion__content]: !0,
|
|
108
|
-
[ce.spAccordion__content_open]:
|
|
108
|
+
[ce.spAccordion__content_open]: k
|
|
109
109
|
});
|
|
110
|
-
return /* @__PURE__ */ H("div", { className:
|
|
110
|
+
return /* @__PURE__ */ H("div", { className: A, children: [
|
|
111
111
|
/* @__PURE__ */ H("div", { className: M, children: [
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ u("div", { className: j, children: /* @__PURE__ */ u("span", { onClick: T, children: t }) }),
|
|
113
|
+
/* @__PURE__ */ u(be, { onClick: T, className: w, name: ue.ChevronDown })
|
|
114
114
|
] }),
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ u("div", { className: c, children: /* @__PURE__ */ u("div", { className: S, children: o }) })
|
|
116
116
|
] });
|
|
117
|
-
},
|
|
118
|
-
spinner:
|
|
119
|
-
spinner__inner:
|
|
117
|
+
}, wn = "_spinner_18qva_43", kn = "_spinner__inner_18qva_54", lt = {
|
|
118
|
+
spinner: wn,
|
|
119
|
+
spinner__inner: kn,
|
|
120
120
|
"spinner-rotate": "_spinner-rotate_18qva_1",
|
|
121
121
|
"spinner--sm": "_spinner--sm_18qva_67",
|
|
122
122
|
"spinner--md": "_spinner--md_18qva_71",
|
|
123
123
|
"spinner--lg": "_spinner--lg_18qva_74",
|
|
124
124
|
"spinner--xl": "_spinner--xl_18qva_78"
|
|
125
|
-
},
|
|
125
|
+
}, mo = (e) => {
|
|
126
126
|
const { size: t = "md", color: o = "#036bfd", classNameRoot: n } = e;
|
|
127
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ u(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
130
|
className: f(lt.spinner, lt[`spinner--${t}`], n),
|
|
131
131
|
"aria-label": "Loading",
|
|
132
132
|
role: "status",
|
|
133
133
|
style: { color: o },
|
|
134
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ u("div", { className: lt.spinner__inner })
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
|
-
},
|
|
138
|
-
spButton:
|
|
139
|
-
spButton_noPadding:
|
|
140
|
-
spButton_onlyIcon:
|
|
141
|
-
spButton__iconContainer:
|
|
142
|
-
spButton_link:
|
|
143
|
-
spButton__text:
|
|
144
|
-
spButton_primary:
|
|
145
|
-
spButton_blue:
|
|
146
|
-
spButton_white:
|
|
147
|
-
spButton_secondary:
|
|
148
|
-
spButton_fullWidth:
|
|
149
|
-
spButton_disabled:
|
|
150
|
-
spButton__spinner:
|
|
137
|
+
}, Cn = "_spButton_zixup_43", Tn = "_spButton_noPadding_zixup_59", Nn = "_spButton_onlyIcon_zixup_62", En = "_spButton__iconContainer_zixup_70", Sn = "_spButton_link_zixup_73", Rn = "_spButton__text_zixup_77", An = "_spButton_primary_zixup_89", jn = "_spButton_blue_zixup_89", Dn = "_spButton_white_zixup_99", In = "_spButton_secondary_zixup_109", Ln = "_spButton_fullWidth_zixup_129", Fn = "_spButton_disabled_zixup_132", On = "_spButton__spinner_zixup_141", we = {
|
|
138
|
+
spButton: Cn,
|
|
139
|
+
spButton_noPadding: Tn,
|
|
140
|
+
spButton_onlyIcon: Nn,
|
|
141
|
+
spButton__iconContainer: En,
|
|
142
|
+
spButton_link: Sn,
|
|
143
|
+
spButton__text: Rn,
|
|
144
|
+
spButton_primary: An,
|
|
145
|
+
spButton_blue: jn,
|
|
146
|
+
spButton_white: Dn,
|
|
147
|
+
spButton_secondary: In,
|
|
148
|
+
spButton_fullWidth: Ln,
|
|
149
|
+
spButton_disabled: Fn,
|
|
150
|
+
spButton__spinner: On
|
|
151
151
|
}, wt = (e) => {
|
|
152
152
|
const {
|
|
153
153
|
color: t = "blue",
|
|
@@ -157,60 +157,60 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
157
157
|
iconName: i,
|
|
158
158
|
iconRotate: r = 0,
|
|
159
159
|
disabled: s = !1,
|
|
160
|
-
type:
|
|
160
|
+
type: d = "button",
|
|
161
161
|
form: p,
|
|
162
162
|
children: m,
|
|
163
163
|
loading: l = !1,
|
|
164
164
|
isFullWidth: v = !1,
|
|
165
|
-
isOnlyIcon:
|
|
166
|
-
noPadding:
|
|
167
|
-
classNameRoot:
|
|
168
|
-
classNameIconContainerRoot:
|
|
169
|
-
} = e,
|
|
170
|
-
s || a == null || a(
|
|
165
|
+
isOnlyIcon: b = !1,
|
|
166
|
+
noPadding: k = !1,
|
|
167
|
+
classNameRoot: y,
|
|
168
|
+
classNameIconContainerRoot: T
|
|
169
|
+
} = e, A = (w) => {
|
|
170
|
+
s || a == null || a(w);
|
|
171
171
|
}, M = () => {
|
|
172
|
-
const
|
|
172
|
+
const w = f({
|
|
173
173
|
[we.spButton__text]: !0
|
|
174
174
|
}), c = f({
|
|
175
175
|
[we.spButton__iconContainer]: !0,
|
|
176
|
-
...
|
|
176
|
+
...T && { [T]: !0 }
|
|
177
177
|
});
|
|
178
|
-
return /* @__PURE__ */ H(
|
|
179
|
-
(i || l) && /* @__PURE__ */
|
|
180
|
-
!
|
|
178
|
+
return /* @__PURE__ */ H(lo, { children: [
|
|
179
|
+
(i || l) && /* @__PURE__ */ u("div", { className: c, children: l ? /* @__PURE__ */ u(mo, { classNameRoot: we.spButton__spinner }) : i && /* @__PURE__ */ u(be, { name: i, rotate: r }) }),
|
|
180
|
+
!b && m && /* @__PURE__ */ u("div", { className: w, children: m })
|
|
181
181
|
] });
|
|
182
182
|
}, j = f({
|
|
183
183
|
[we.spButton]: !0,
|
|
184
|
-
[we.spButton_noPadding]:
|
|
185
|
-
[we.spButton_onlyIcon]:
|
|
184
|
+
[we.spButton_noPadding]: k,
|
|
185
|
+
[we.spButton_onlyIcon]: b,
|
|
186
186
|
[we[`spButton_${o}`]]: o,
|
|
187
187
|
[we[`spButton_${t}`]]: t,
|
|
188
188
|
[we.spButton_fullWidth]: v,
|
|
189
189
|
[we.spButton_disabled]: s,
|
|
190
190
|
[we.spButton_loading]: l,
|
|
191
|
-
...
|
|
191
|
+
...y && { [y]: !0 }
|
|
192
192
|
});
|
|
193
|
-
return /* @__PURE__ */
|
|
193
|
+
return /* @__PURE__ */ u(
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
196
|
style: n,
|
|
197
197
|
className: j,
|
|
198
|
-
onClick:
|
|
198
|
+
onClick: A,
|
|
199
199
|
disabled: s,
|
|
200
|
-
type:
|
|
200
|
+
type: d,
|
|
201
201
|
form: p,
|
|
202
202
|
children: M()
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
},
|
|
206
|
-
spApplyButtons:
|
|
205
|
+
}, zn = "_spApplyButtons_e8c1h_43", Pn = "_spApplyButtons__cancel_e8c1h_65", Bn = "_spApplyButtons__submit_e8c1h_68", Be = {
|
|
206
|
+
spApplyButtons: zn,
|
|
207
207
|
"spApplyButtons_align-right": "_spApplyButtons_align-right_e8c1h_48",
|
|
208
208
|
"spApplyButtons_align-left": "_spApplyButtons_align-left_e8c1h_51",
|
|
209
209
|
"spApplyButtons_align-center": "_spApplyButtons_align-center_e8c1h_54",
|
|
210
210
|
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-column_e8c1h_57",
|
|
211
|
-
spApplyButtons__cancel:
|
|
212
|
-
spApplyButtons__submit:
|
|
213
|
-
},
|
|
211
|
+
spApplyButtons__cancel: Pn,
|
|
212
|
+
spApplyButtons__submit: Bn
|
|
213
|
+
}, Wn = (e) => {
|
|
214
214
|
const {
|
|
215
215
|
mobile: t = "column",
|
|
216
216
|
align: o = "center",
|
|
@@ -219,7 +219,7 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
219
219
|
cancelBtnDisabled: i,
|
|
220
220
|
submitBtnContent: r,
|
|
221
221
|
formId: s,
|
|
222
|
-
disabled:
|
|
222
|
+
disabled: d,
|
|
223
223
|
onClose: p,
|
|
224
224
|
submit: m,
|
|
225
225
|
loading: l
|
|
@@ -227,43 +227,43 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
227
227
|
[Be.spApplyButtons]: !0,
|
|
228
228
|
[Be[`spApplyButtons_mobile-${t}`]]: t,
|
|
229
229
|
[Be[`spApplyButtons_align-${o}`]]: o
|
|
230
|
-
}),
|
|
230
|
+
}), b = f({
|
|
231
231
|
[Be.spApplyButtons__submit]: !0
|
|
232
|
-
}),
|
|
232
|
+
}), k = f({
|
|
233
233
|
[Be.spApplyButtons__cancel]: !0
|
|
234
234
|
});
|
|
235
235
|
return /* @__PURE__ */ H("div", { className: v, children: [
|
|
236
|
-
n && p && /* @__PURE__ */
|
|
236
|
+
n && p && /* @__PURE__ */ u(
|
|
237
237
|
wt,
|
|
238
238
|
{
|
|
239
239
|
type: "button",
|
|
240
240
|
variant: "secondary",
|
|
241
241
|
iconName: a,
|
|
242
|
-
classNameRoot:
|
|
242
|
+
classNameRoot: k,
|
|
243
243
|
disabled: i,
|
|
244
244
|
onClick: p,
|
|
245
245
|
children: n
|
|
246
246
|
}
|
|
247
247
|
),
|
|
248
|
-
r && /* @__PURE__ */
|
|
248
|
+
r && /* @__PURE__ */ u(
|
|
249
249
|
wt,
|
|
250
250
|
{
|
|
251
251
|
type: "submit",
|
|
252
252
|
variant: "primary",
|
|
253
|
-
classNameRoot:
|
|
253
|
+
classNameRoot: b,
|
|
254
254
|
form: s || void 0,
|
|
255
|
-
disabled:
|
|
255
|
+
disabled: d,
|
|
256
256
|
onClick: m,
|
|
257
257
|
loading: l,
|
|
258
258
|
children: r
|
|
259
259
|
}
|
|
260
260
|
)
|
|
261
261
|
] });
|
|
262
|
-
},
|
|
263
|
-
spBaseTooltip:
|
|
262
|
+
}, Mn = "_spBaseTooltip_z1ltl_43", qn = "_spBaseTooltip_noPadding_z1ltl_71", $n = "_spBaseTooltip__content_z1ltl_74", ct = {
|
|
263
|
+
spBaseTooltip: Mn,
|
|
264
264
|
spBaseTooltip_noPadding: qn,
|
|
265
|
-
spBaseTooltip__content:
|
|
266
|
-
},
|
|
265
|
+
spBaseTooltip__content: $n
|
|
266
|
+
}, _o = qe.forwardRef((e, t) => {
|
|
267
267
|
const {
|
|
268
268
|
text: o,
|
|
269
269
|
noPadding: n = !1,
|
|
@@ -274,14 +274,14 @@ const pn = "_spAccordion_11ek7_43", ln = "_spAccordion_noBorder_11ek7_57", cn =
|
|
|
274
274
|
[ct.spBaseTooltip]: !0,
|
|
275
275
|
[ct.spBaseTooltip_noPadding]: n,
|
|
276
276
|
...i && { [i]: !0 }
|
|
277
|
-
}),
|
|
277
|
+
}), d = f({
|
|
278
278
|
[ct.spBaseTooltip__content]: !0,
|
|
279
279
|
...r && { [r]: !0 }
|
|
280
280
|
});
|
|
281
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ u("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ u("div", { className: d, children: o }) });
|
|
282
282
|
});
|
|
283
|
-
|
|
284
|
-
function
|
|
283
|
+
_o.displayName = "BaseTooltip";
|
|
284
|
+
function fo(e, t, o = !0) {
|
|
285
285
|
re(() => {
|
|
286
286
|
if (!o) return;
|
|
287
287
|
const n = (a) => {
|
|
@@ -292,7 +292,7 @@ function vo(e, t, o = !0) {
|
|
|
292
292
|
};
|
|
293
293
|
}, [e, t, o]);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const vo = ({ children: e, node: t, classNameRoot: o }) => {
|
|
296
296
|
const [n, a] = le(null);
|
|
297
297
|
return re(() => {
|
|
298
298
|
if (t) {
|
|
@@ -303,10 +303,10 @@ const xo = ({ children: e, node: t, classNameRoot: o }) => {
|
|
|
303
303
|
return o && (i.className = o), document.body.appendChild(i), a(i), () => {
|
|
304
304
|
t || document.body.removeChild(i);
|
|
305
305
|
};
|
|
306
|
-
}, [t, o]), n ?
|
|
307
|
-
},
|
|
308
|
-
spTooltip:
|
|
309
|
-
spTooltip__trigger:
|
|
306
|
+
}, [t, o]), n ? $o.createPortal(e, n) : null;
|
|
307
|
+
}, Un = "_spTooltip_9ogwj_43", Hn = "_spTooltip__trigger_9ogwj_46", Lt = {
|
|
308
|
+
spTooltip: Un,
|
|
309
|
+
spTooltip__trigger: Hn
|
|
310
310
|
};
|
|
311
311
|
var de = /* @__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))(de || {});
|
|
312
312
|
const Rt = (e) => {
|
|
@@ -318,98 +318,98 @@ const Rt = (e) => {
|
|
|
318
318
|
trigger: i,
|
|
319
319
|
triggerAction: r,
|
|
320
320
|
actionOnClose: s,
|
|
321
|
-
classNameTriggerTooltip:
|
|
321
|
+
classNameTriggerTooltip: d,
|
|
322
322
|
position: p = de.BottomLeft,
|
|
323
323
|
text: m,
|
|
324
324
|
noPadding: l,
|
|
325
325
|
classNameTooltip: v,
|
|
326
|
-
classNameBaseTooltipRoot:
|
|
327
|
-
classNameBaseTooltipContentRoot:
|
|
328
|
-
} = e, [
|
|
329
|
-
|
|
330
|
-
[
|
|
326
|
+
classNameBaseTooltipRoot: b,
|
|
327
|
+
classNameBaseTooltipContentRoot: k
|
|
328
|
+
} = e, [y, T] = le(!1), A = ve(null), M = ve(null), [j, w] = le(!1);
|
|
329
|
+
fo(
|
|
330
|
+
[A, M],
|
|
331
331
|
() => {
|
|
332
|
-
s && s(),
|
|
332
|
+
s && s(), T(!1);
|
|
333
333
|
},
|
|
334
|
-
|
|
334
|
+
y
|
|
335
335
|
);
|
|
336
|
-
const c = (
|
|
337
|
-
n &&
|
|
338
|
-
}, [
|
|
336
|
+
const c = (C) => {
|
|
337
|
+
n && C.stopPropagation(), !t && (y ? s && s() : r && r(), T((q) => o ? !q : !0));
|
|
338
|
+
}, [S, P] = le({
|
|
339
339
|
visibility: "hidden",
|
|
340
340
|
opacity: 0,
|
|
341
341
|
left: "-9999px"
|
|
342
|
-
}), [L, Q] = le(!1), te =
|
|
343
|
-
if (!
|
|
344
|
-
const
|
|
342
|
+
}), [L, Q] = le(!1), te = fe(() => {
|
|
343
|
+
if (!A.current || !M.current) return;
|
|
344
|
+
const C = A.current.getBoundingClientRect(), q = M.current.getBoundingClientRect();
|
|
345
345
|
let X = 0, B = 0;
|
|
346
346
|
switch (p) {
|
|
347
347
|
case de.Right:
|
|
348
|
-
X =
|
|
348
|
+
X = C.top + window.scrollY - (q.height - C.height) / 2, B = C.right + window.scrollX;
|
|
349
349
|
break;
|
|
350
350
|
case de.RightTop:
|
|
351
|
-
X =
|
|
351
|
+
X = C.top + window.scrollY, B = C.right + window.scrollX;
|
|
352
352
|
break;
|
|
353
353
|
case de.RightBottom:
|
|
354
|
-
X =
|
|
354
|
+
X = C.bottom + window.scrollY - q.height, B = C.right + window.scrollX;
|
|
355
355
|
break;
|
|
356
356
|
case de.Left:
|
|
357
|
-
X =
|
|
357
|
+
X = C.top + window.scrollY - (q.height - C.height) / 2, B = C.left + window.scrollX - q.width;
|
|
358
358
|
break;
|
|
359
359
|
case de.LeftTop:
|
|
360
|
-
X =
|
|
360
|
+
X = C.top + window.scrollY, B = C.left + window.scrollX - q.width;
|
|
361
361
|
break;
|
|
362
362
|
case de.LeftBottom:
|
|
363
|
-
X =
|
|
363
|
+
X = C.bottom + window.scrollY - q.height, B = C.left + window.scrollX - q.width;
|
|
364
364
|
break;
|
|
365
365
|
case de.Bottom:
|
|
366
|
-
X =
|
|
366
|
+
X = C.bottom + window.scrollY, B = C.left + window.scrollX - (q.width - C.width) / 2;
|
|
367
367
|
break;
|
|
368
368
|
case de.BottomLeft:
|
|
369
|
-
X =
|
|
369
|
+
X = C.bottom + window.scrollY, B = C.left + window.scrollX;
|
|
370
370
|
break;
|
|
371
371
|
case de.BottomRight:
|
|
372
|
-
X =
|
|
372
|
+
X = C.bottom + window.scrollY, B = C.right + window.scrollX - q.width;
|
|
373
373
|
break;
|
|
374
374
|
case de.Top:
|
|
375
|
-
X =
|
|
375
|
+
X = C.top + window.scrollY - q.height, B = C.left + window.scrollX - (q.width - C.width) / 2;
|
|
376
376
|
break;
|
|
377
377
|
case de.TopLeft:
|
|
378
|
-
X =
|
|
378
|
+
X = C.top + window.scrollY - q.height, B = C.left + window.scrollX;
|
|
379
379
|
break;
|
|
380
380
|
case de.TopRight:
|
|
381
|
-
X =
|
|
381
|
+
X = C.top + window.scrollY - q.height, B = C.right + window.scrollX - q.width;
|
|
382
382
|
break;
|
|
383
383
|
default:
|
|
384
|
-
X =
|
|
384
|
+
X = C.bottom + window.scrollY, B = C.left + window.scrollX;
|
|
385
385
|
}
|
|
386
|
-
X +
|
|
386
|
+
X + q.height > window.innerHeight + window.scrollY && p.includes("bottom") ? X = C.top + window.scrollY - q.height : X < window.scrollY && p.includes("top") && (X = C.bottom + window.scrollY), B + q.width > window.innerWidth + window.scrollX && p.includes("left") ? B = C.left + window.scrollX - q.width + C.width : B < window.scrollX && p.includes("right") && (B = C.right + window.scrollX - C.width), P((_) => ({
|
|
387
387
|
..._,
|
|
388
388
|
top: `${X}px`,
|
|
389
389
|
left: `${B}px`,
|
|
390
|
-
visibility:
|
|
391
|
-
opacity:
|
|
390
|
+
visibility: y || L ? "visible" : "hidden",
|
|
391
|
+
opacity: y || L ? 1 : 0
|
|
392
392
|
}));
|
|
393
|
-
}, [p,
|
|
394
|
-
re(() => (
|
|
393
|
+
}, [p, y, L]);
|
|
394
|
+
re(() => (w(!0), () => w(!1)), []), re(() => {
|
|
395
395
|
j && te();
|
|
396
396
|
}, [j, te]), re(() => {
|
|
397
397
|
if (!j) return;
|
|
398
|
-
const
|
|
399
|
-
return window.addEventListener("resize",
|
|
400
|
-
window.removeEventListener("resize",
|
|
398
|
+
const C = () => te();
|
|
399
|
+
return window.addEventListener("resize", C), window.addEventListener("scroll", C, !0), () => {
|
|
400
|
+
window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
401
401
|
};
|
|
402
402
|
}, [j, te]);
|
|
403
403
|
const ee = f({
|
|
404
404
|
[Lt.spTooltip]: !0,
|
|
405
405
|
...v && { [v]: !0 }
|
|
406
406
|
}), ae = f({
|
|
407
|
-
...
|
|
407
|
+
...b && { [b]: !0 }
|
|
408
408
|
}), se = f({
|
|
409
|
-
...
|
|
409
|
+
...k && { [k]: !0 }
|
|
410
410
|
}), K = f({
|
|
411
411
|
[Lt.spTooltip__trigger]: !0,
|
|
412
|
-
...
|
|
412
|
+
...d && { [d]: !0 }
|
|
413
413
|
}), Z = document.body;
|
|
414
414
|
return /* @__PURE__ */ H(
|
|
415
415
|
"div",
|
|
@@ -419,11 +419,11 @@ const Rt = (e) => {
|
|
|
419
419
|
onMouseEnter: () => t && Q(!0),
|
|
420
420
|
onMouseLeave: () => t && Q(!1),
|
|
421
421
|
children: [
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
a && /* @__PURE__ */
|
|
424
|
-
|
|
422
|
+
/* @__PURE__ */ u("div", { ref: A, className: K, children: i }),
|
|
423
|
+
a && /* @__PURE__ */ u(vo, { node: Z, children: /* @__PURE__ */ u(
|
|
424
|
+
_o,
|
|
425
425
|
{
|
|
426
|
-
style:
|
|
426
|
+
style: S,
|
|
427
427
|
ref: M,
|
|
428
428
|
noPadding: l,
|
|
429
429
|
text: m,
|
|
@@ -434,20 +434,20 @@ const Rt = (e) => {
|
|
|
434
434
|
]
|
|
435
435
|
}
|
|
436
436
|
);
|
|
437
|
-
}, Je = (e) => /* @__PURE__ */
|
|
438
|
-
spCheckbox:
|
|
439
|
-
spCheckbox__control:
|
|
440
|
-
spCheckbox__label:
|
|
441
|
-
spCheckbox__box:
|
|
437
|
+
}, Je = (e) => /* @__PURE__ */ u(Rt, { ...e, hover: !0, trigger: /* @__PURE__ */ u(be, { name: ue.Info }) }), Vn = "_spCheckbox_uc4g8_43", Yn = "_spCheckbox__control_uc4g8_49", Gn = "_spCheckbox__label_uc4g8_52", Kn = "_spCheckbox__box_uc4g8_63", Xn = "_spCheckbox__box_checked_uc4g8_90", Zn = "_spCheckbox__box_disabled_uc4g8_100", Qn = "_spCheckbox__box_error_uc4g8_111", Jn = "_spCheckbox__tooltip_uc4g8_114", ea = "_spCheckbox__required_uc4g8_119", ta = "_spCheckbox__error_uc4g8_125", ke = {
|
|
438
|
+
spCheckbox: Vn,
|
|
439
|
+
spCheckbox__control: Yn,
|
|
440
|
+
spCheckbox__label: Gn,
|
|
441
|
+
spCheckbox__box: Kn,
|
|
442
442
|
"spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_uc4g8_68",
|
|
443
443
|
"spCheckbox__box--size-md": "_spCheckbox__box--size-md_uc4g8_73",
|
|
444
|
-
spCheckbox__box_checked:
|
|
445
|
-
spCheckbox__box_disabled:
|
|
446
|
-
spCheckbox__box_error:
|
|
447
|
-
spCheckbox__tooltip:
|
|
448
|
-
spCheckbox__required:
|
|
449
|
-
spCheckbox__error:
|
|
450
|
-
},
|
|
444
|
+
spCheckbox__box_checked: Xn,
|
|
445
|
+
spCheckbox__box_disabled: Zn,
|
|
446
|
+
spCheckbox__box_error: Qn,
|
|
447
|
+
spCheckbox__tooltip: Jn,
|
|
448
|
+
spCheckbox__required: ea,
|
|
449
|
+
spCheckbox__error: ta
|
|
450
|
+
}, Hs = (e) => {
|
|
451
451
|
const {
|
|
452
452
|
size: t = "lg",
|
|
453
453
|
checked: o,
|
|
@@ -456,54 +456,54 @@ const Rt = (e) => {
|
|
|
456
456
|
name: i,
|
|
457
457
|
label: r,
|
|
458
458
|
error: s,
|
|
459
|
-
value:
|
|
459
|
+
value: d,
|
|
460
460
|
required: p,
|
|
461
461
|
tooltipPosition: m,
|
|
462
462
|
infoTooltipText: l,
|
|
463
463
|
onMouseEnter: v,
|
|
464
|
-
classNameRoot:
|
|
465
|
-
classNameError:
|
|
466
|
-
} = e,
|
|
464
|
+
classNameRoot: b,
|
|
465
|
+
classNameError: k
|
|
466
|
+
} = e, y = f({
|
|
467
467
|
[ke.spCheckbox]: !0,
|
|
468
|
-
...
|
|
469
|
-
}),
|
|
468
|
+
...b && { [b]: !0 }
|
|
469
|
+
}), T = f({
|
|
470
470
|
[ke.spCheckbox__box]: !0,
|
|
471
471
|
[ke.spCheckbox__box_checked]: o,
|
|
472
472
|
[ke.spCheckbox__box_disabled]: n,
|
|
473
473
|
[ke[`spCheckbox__box--size-${t}`]]: t,
|
|
474
474
|
[ke.spCheckbox__box_error]: s
|
|
475
|
-
}),
|
|
475
|
+
}), A = f({
|
|
476
476
|
[ke.spCheckbox__control]: !0
|
|
477
477
|
}), M = f({
|
|
478
478
|
[ke.spCheckbox__label]: !0
|
|
479
479
|
}), j = f({
|
|
480
480
|
[ke.spCheckbox__required]: !0
|
|
481
|
-
}),
|
|
481
|
+
}), w = f({
|
|
482
482
|
[ke.spCheckbox__error]: !0,
|
|
483
|
-
...
|
|
483
|
+
...k && { [k]: !0 }
|
|
484
484
|
}), c = f({
|
|
485
485
|
[ke.spCheckbox__tooltip]: !0
|
|
486
486
|
});
|
|
487
|
-
return /* @__PURE__ */ H("div", { className:
|
|
488
|
-
/* @__PURE__ */ H("label", { className:
|
|
489
|
-
/* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ H("div", { className: y, onMouseEnter: v, children: [
|
|
488
|
+
/* @__PURE__ */ H("label", { className: T, children: [
|
|
489
|
+
/* @__PURE__ */ u(
|
|
490
490
|
"input",
|
|
491
491
|
{
|
|
492
492
|
type: "checkbox",
|
|
493
|
-
className:
|
|
493
|
+
className: A,
|
|
494
494
|
checked: o,
|
|
495
495
|
onChange: (P) => {
|
|
496
|
-
!n && a && a(P, { name: i, checked: !o, value:
|
|
496
|
+
!n && a && a(P, { name: i, checked: !o, value: d });
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
),
|
|
500
|
-
r && /* @__PURE__ */
|
|
501
|
-
p && /* @__PURE__ */
|
|
502
|
-
l && /* @__PURE__ */
|
|
500
|
+
r && /* @__PURE__ */ u("span", { className: M, children: r }),
|
|
501
|
+
p && /* @__PURE__ */ u("div", { className: j, children: "*" }),
|
|
502
|
+
l && /* @__PURE__ */ u("div", { className: c, children: /* @__PURE__ */ u(Je, { position: m, text: l }) })
|
|
503
503
|
] }),
|
|
504
|
-
s && /* @__PURE__ */
|
|
504
|
+
s && /* @__PURE__ */ u("div", { className: w, children: s })
|
|
505
505
|
] });
|
|
506
|
-
},
|
|
506
|
+
}, Vs = (e = {}) => {
|
|
507
507
|
const { initialValue: t = null } = e, [o, n] = le(t);
|
|
508
508
|
return {
|
|
509
509
|
isOpen: !!o,
|
|
@@ -515,10 +515,10 @@ const Rt = (e) => {
|
|
|
515
515
|
n(null);
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
|
-
},
|
|
519
|
-
layer:
|
|
520
|
-
layer_hidden:
|
|
521
|
-
},
|
|
518
|
+
}, oa = "_layer_14g8d_43", na = "_layer_hidden_14g8d_65", Ft = {
|
|
519
|
+
layer: oa,
|
|
520
|
+
layer_hidden: na
|
|
521
|
+
}, aa = (e) => {
|
|
522
522
|
const {
|
|
523
523
|
children: t,
|
|
524
524
|
zIndex: o = "9999",
|
|
@@ -529,18 +529,18 @@ const Rt = (e) => {
|
|
|
529
529
|
[Ft.layer_hidden]: n,
|
|
530
530
|
...a && { [a]: !0 }
|
|
531
531
|
});
|
|
532
|
-
return /* @__PURE__ */
|
|
533
|
-
},
|
|
534
|
-
spText:
|
|
535
|
-
spText_ellipsis:
|
|
532
|
+
return /* @__PURE__ */ u(vo, { node: i, children: /* @__PURE__ */ u("div", { style: { zIndex: o }, className: r, children: t }) });
|
|
533
|
+
}, ia = "_spText_1gech_43", ra = "_spText_ellipsis_1gech_56", sa = "_spText_cursorPointer_1gech_113", Ve = {
|
|
534
|
+
spText: ia,
|
|
535
|
+
spText_ellipsis: ra,
|
|
536
536
|
"spText_type-h1": "_spText_type-h1_1gech_62",
|
|
537
537
|
"spText_type-h3": "_spText_type-h3_1gech_72",
|
|
538
538
|
"spText_type-p1": "_spText_type-p1_1gech_83",
|
|
539
539
|
"spText_type-p2": "_spText_type-p2_1gech_88",
|
|
540
540
|
"spText_type-description": "_spText_type-description_1gech_92",
|
|
541
541
|
"spText_type-link": "_spText_type-link_1gech_100",
|
|
542
|
-
spText_cursorPointer:
|
|
543
|
-
}, Ne =
|
|
542
|
+
spText_cursorPointer: sa
|
|
543
|
+
}, Ne = qe.forwardRef((e, t) => {
|
|
544
544
|
const {
|
|
545
545
|
type: o,
|
|
546
546
|
children: n,
|
|
@@ -548,48 +548,51 @@ const Rt = (e) => {
|
|
|
548
548
|
title: i,
|
|
549
549
|
style: r,
|
|
550
550
|
onClick: s,
|
|
551
|
-
isEllipsis:
|
|
551
|
+
isEllipsis: d = !1,
|
|
552
552
|
isCursorPointer: p = !1,
|
|
553
553
|
isCursorPointerByOnClick: m = !0,
|
|
554
554
|
classNameRoot: l
|
|
555
|
-
} = e, v = () => s && m ? !0 : p,
|
|
555
|
+
} = e, v = () => s && m ? !0 : p, b = f({
|
|
556
556
|
[Ve.spText]: !0,
|
|
557
|
-
[Ve.spText_ellipsis]:
|
|
557
|
+
[Ve.spText_ellipsis]: d,
|
|
558
558
|
[Ve.spText_cursorPointer]: v(),
|
|
559
559
|
[Ve[`spText_type-${o}`]]: o,
|
|
560
560
|
...l && { [l]: !0 }
|
|
561
561
|
});
|
|
562
|
-
return /* @__PURE__ */
|
|
562
|
+
return /* @__PURE__ */ u(
|
|
563
563
|
"span",
|
|
564
564
|
{
|
|
565
565
|
style: { ...r, color: a },
|
|
566
566
|
title: i,
|
|
567
567
|
onClick: s,
|
|
568
|
-
className:
|
|
568
|
+
className: b,
|
|
569
569
|
ref: t,
|
|
570
570
|
children: n
|
|
571
571
|
}
|
|
572
572
|
);
|
|
573
573
|
});
|
|
574
574
|
Ne.displayName = "Text";
|
|
575
|
-
const la = "
|
|
576
|
-
modalWrapper:
|
|
577
|
-
"modalWrapper--modalAlign-top": "_modalWrapper--modalAlign-
|
|
578
|
-
"modalWrapper--modalAlign-center": "_modalWrapper--modalAlign-
|
|
579
|
-
"modalWrapper--textAlign-left": "_modalWrapper--textAlign-
|
|
580
|
-
"modalWrapper--textAlign-center": "_modalWrapper--textAlign-
|
|
581
|
-
"modalWrapper--textAlign-right": "_modalWrapper--textAlign-
|
|
582
|
-
modalWrapper__modal:
|
|
583
|
-
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-
|
|
584
|
-
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-
|
|
585
|
-
modalWrapper__content:
|
|
586
|
-
modalWrapper__header:
|
|
587
|
-
modalWrapper__subHeader:
|
|
588
|
-
modalWrapper__subHeader_onlySubHeader:
|
|
589
|
-
modalWrapper__footer:
|
|
590
|
-
modalWrapper__closeButton:
|
|
591
|
-
|
|
592
|
-
|
|
575
|
+
const pa = "_modalWrapper_1qgyc_43", la = "_modalWrapper__modal_1qgyc_63", ca = "_modalWrapper__content_1qgyc_92", da = "_modalWrapper__header_1qgyc_95", ua = "_modalWrapper__subHeader_1qgyc_103", ma = "_modalWrapper__subHeader_onlySubHeader_1qgyc_111", _a = "_modalWrapper__footer_1qgyc_114", fa = "_modalWrapper__closeButton_1qgyc_117", _e = {
|
|
576
|
+
modalWrapper: pa,
|
|
577
|
+
"modalWrapper--modalAlign-top": "_modalWrapper--modalAlign-top_1qgyc_48",
|
|
578
|
+
"modalWrapper--modalAlign-center": "_modalWrapper--modalAlign-center_1qgyc_51",
|
|
579
|
+
"modalWrapper--textAlign-left": "_modalWrapper--textAlign-left_1qgyc_54",
|
|
580
|
+
"modalWrapper--textAlign-center": "_modalWrapper--textAlign-center_1qgyc_57",
|
|
581
|
+
"modalWrapper--textAlign-right": "_modalWrapper--textAlign-right_1qgyc_60",
|
|
582
|
+
modalWrapper__modal: la,
|
|
583
|
+
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_1qgyc_81",
|
|
584
|
+
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_1qgyc_87",
|
|
585
|
+
modalWrapper__content: ca,
|
|
586
|
+
modalWrapper__header: da,
|
|
587
|
+
modalWrapper__subHeader: ua,
|
|
588
|
+
modalWrapper__subHeader_onlySubHeader: ma,
|
|
589
|
+
modalWrapper__footer: _a,
|
|
590
|
+
modalWrapper__closeButton: fa,
|
|
591
|
+
"modalWrapper__closeButton--size-lg": "_modalWrapper__closeButton--size-lg_1qgyc_126",
|
|
592
|
+
"modalWrapper__closeButton--size-md": "_modalWrapper__closeButton--size-md_1qgyc_130",
|
|
593
|
+
"modalWrapper__closeButtonIconContainer--size-lg": "_modalWrapper__closeButtonIconContainer--size-lg_1qgyc_135",
|
|
594
|
+
"modalWrapper__closeButtonIconContainer--size-md": "_modalWrapper__closeButtonIconContainer--size-md_1qgyc_139"
|
|
595
|
+
}, va = (e) => {
|
|
593
596
|
const {
|
|
594
597
|
zIndex: t,
|
|
595
598
|
isHiddenModal: o = !1,
|
|
@@ -598,51 +601,53 @@ const la = "_modalWrapper_awlzb_43", ca = "_modalWrapper__modal_awlzb_63", da =
|
|
|
598
601
|
classNameLayerRoot: i,
|
|
599
602
|
classNameRoot: r,
|
|
600
603
|
style: s,
|
|
601
|
-
modalAlign:
|
|
604
|
+
modalAlign: d = "top",
|
|
602
605
|
textAlign: p = "left",
|
|
603
606
|
onClose: m,
|
|
604
607
|
header: l,
|
|
605
608
|
subHeader: v,
|
|
606
|
-
footer:
|
|
607
|
-
size:
|
|
608
|
-
} = e,
|
|
609
|
-
[
|
|
610
|
-
[
|
|
611
|
-
[
|
|
612
|
-
}),
|
|
613
|
-
[
|
|
614
|
-
[
|
|
609
|
+
footer: b,
|
|
610
|
+
size: k = "lg"
|
|
611
|
+
} = e, y = f({
|
|
612
|
+
[_e.modalWrapper]: !0,
|
|
613
|
+
[_e[`modalWrapper--modalAlign-${d}`]]: d,
|
|
614
|
+
[_e[`modalWrapper--textAlign-${p}`]]: p
|
|
615
|
+
}), T = f({
|
|
616
|
+
[_e.modalWrapper__modal]: !0,
|
|
617
|
+
[_e[`modalWrapper__modal--size-${k}`]]: k,
|
|
615
618
|
...r && { [r]: !0 }
|
|
616
|
-
}),
|
|
617
|
-
[
|
|
619
|
+
}), A = f({
|
|
620
|
+
[_e.modalWrapper__closeButton]: !0,
|
|
621
|
+
[_e[`modalWrapper__closeButton--size-${k}`]]: k
|
|
618
622
|
}), M = f({
|
|
619
|
-
[
|
|
623
|
+
[_e.modalWrapper__closeButtonIconContainer]: !0,
|
|
624
|
+
[_e[`modalWrapper__closeButtonIconContainer--size-${k}`]]: k
|
|
620
625
|
}), j = f({
|
|
621
|
-
[
|
|
622
|
-
}),
|
|
623
|
-
[
|
|
626
|
+
[_e.modalWrapper__content]: !0
|
|
627
|
+
}), w = f({
|
|
628
|
+
[_e.modalWrapper__header]: !0
|
|
624
629
|
}), c = f({
|
|
625
|
-
[
|
|
626
|
-
[
|
|
627
|
-
}),
|
|
628
|
-
[
|
|
630
|
+
[_e.modalWrapper__subHeader]: !0,
|
|
631
|
+
[_e.modalWrapper__subHeader_onlySubHeader]: !l
|
|
632
|
+
}), S = f({
|
|
633
|
+
[_e.modalWrapper__footer]: !0
|
|
629
634
|
});
|
|
630
635
|
return re(() => {
|
|
631
636
|
const P = window.scrollY, L = document.body;
|
|
632
637
|
return L.style.position = "fixed", L.style.top = `-${P}px`, L.style.left = "0", L.style.right = "0", L.style.overflow = "hidden", () => {
|
|
633
638
|
L.style.position = "", L.style.top = "", L.style.left = "", L.style.right = "", L.style.overflow = "", window.scrollTo(0, P);
|
|
634
639
|
};
|
|
635
|
-
}, []), /* @__PURE__ */
|
|
636
|
-
(l || v) && /* @__PURE__ */ H("div", { className:
|
|
637
|
-
typeof l == "string" ? /* @__PURE__ */
|
|
638
|
-
v && /* @__PURE__ */
|
|
640
|
+
}, []), /* @__PURE__ */ u(aa, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ u("div", { className: y, children: /* @__PURE__ */ H("div", { className: T, style: s, children: [
|
|
641
|
+
(l || v) && /* @__PURE__ */ H("div", { className: w, children: [
|
|
642
|
+
typeof l == "string" ? /* @__PURE__ */ u(Ne, { type: "h3", children: l }) : l,
|
|
643
|
+
v && /* @__PURE__ */ u("div", { className: c, children: typeof v == "string" ? /* @__PURE__ */ u(Ne, { children: v }) : v })
|
|
639
644
|
] }),
|
|
640
|
-
a && /* @__PURE__ */
|
|
641
|
-
|
|
642
|
-
n && m && /* @__PURE__ */
|
|
645
|
+
a && /* @__PURE__ */ u("div", { className: j, children: a }),
|
|
646
|
+
b && /* @__PURE__ */ u("div", { className: S, children: b }),
|
|
647
|
+
n && m && /* @__PURE__ */ u(
|
|
643
648
|
wt,
|
|
644
649
|
{
|
|
645
|
-
classNameRoot:
|
|
650
|
+
classNameRoot: A,
|
|
646
651
|
classNameIconContainerRoot: M,
|
|
647
652
|
onClick: m,
|
|
648
653
|
iconName: ue.Close,
|
|
@@ -652,7 +657,7 @@ const la = "_modalWrapper_awlzb_43", ca = "_modalWrapper__modal_awlzb_63", da =
|
|
|
652
657
|
}
|
|
653
658
|
)
|
|
654
659
|
] }) }) });
|
|
655
|
-
},
|
|
660
|
+
}, Ys = (e) => {
|
|
656
661
|
const {
|
|
657
662
|
zIndex: t,
|
|
658
663
|
title: o,
|
|
@@ -661,36 +666,36 @@ const la = "_modalWrapper_awlzb_43", ca = "_modalWrapper__modal_awlzb_63", da =
|
|
|
661
666
|
cancelBtnDisabled: i,
|
|
662
667
|
cancelBtnIconName: r,
|
|
663
668
|
submitBtnContent: s,
|
|
664
|
-
submit:
|
|
669
|
+
submit: d,
|
|
665
670
|
disabled: p,
|
|
666
671
|
formId: m,
|
|
667
672
|
onClose: l,
|
|
668
673
|
mobile: v = "column",
|
|
669
|
-
align:
|
|
670
|
-
modalAlign:
|
|
671
|
-
textAlign:
|
|
672
|
-
loading:
|
|
673
|
-
isVisibleCloseButton:
|
|
674
|
+
align: b = "right",
|
|
675
|
+
modalAlign: k = "top",
|
|
676
|
+
textAlign: y = "left",
|
|
677
|
+
loading: T,
|
|
678
|
+
isVisibleCloseButton: A,
|
|
674
679
|
isHiddenModal: M,
|
|
675
680
|
size: j
|
|
676
681
|
} = e;
|
|
677
|
-
return /* @__PURE__ */
|
|
678
|
-
|
|
682
|
+
return /* @__PURE__ */ u(
|
|
683
|
+
va,
|
|
679
684
|
{
|
|
680
685
|
zIndex: t,
|
|
681
686
|
header: o,
|
|
682
687
|
onClose: l,
|
|
683
|
-
modalAlign:
|
|
684
|
-
textAlign:
|
|
688
|
+
modalAlign: k,
|
|
689
|
+
textAlign: y,
|
|
685
690
|
subHeader: n,
|
|
686
|
-
isVisibleCloseButton:
|
|
691
|
+
isVisibleCloseButton: A,
|
|
687
692
|
isHiddenModal: M,
|
|
688
693
|
size: j,
|
|
689
|
-
footer: a || s ? /* @__PURE__ */
|
|
690
|
-
|
|
694
|
+
footer: a || s ? /* @__PURE__ */ u(
|
|
695
|
+
Wn,
|
|
691
696
|
{
|
|
692
697
|
mobile: v,
|
|
693
|
-
align:
|
|
698
|
+
align: b,
|
|
694
699
|
cancelBtnContent: a,
|
|
695
700
|
cancelBtnIconName: r,
|
|
696
701
|
cancelBtnDisabled: i,
|
|
@@ -698,22 +703,22 @@ const la = "_modalWrapper_awlzb_43", ca = "_modalWrapper__modal_awlzb_63", da =
|
|
|
698
703
|
formId: m,
|
|
699
704
|
disabled: p,
|
|
700
705
|
onClose: l,
|
|
701
|
-
submit:
|
|
702
|
-
loading:
|
|
706
|
+
submit: d,
|
|
707
|
+
loading: T
|
|
703
708
|
}
|
|
704
709
|
) : null
|
|
705
710
|
}
|
|
706
711
|
);
|
|
707
|
-
},
|
|
708
|
-
spContextMenu:
|
|
709
|
-
spContextMenu__item:
|
|
710
|
-
spContextMenu__item_deleteItem:
|
|
711
|
-
},
|
|
712
|
+
}, ga = "_spContextMenu_1cza9_43", xa = "_spContextMenu__item_1cza9_55", ha = "_spContextMenu__item_deleteItem_1cza9_74", dt = {
|
|
713
|
+
spContextMenu: ga,
|
|
714
|
+
spContextMenu__item: xa,
|
|
715
|
+
spContextMenu__item_deleteItem: ha
|
|
716
|
+
}, Gs = (e) => {
|
|
712
717
|
const { onClickItem: t, options: o, classNameRoot: n } = e, a = f({
|
|
713
718
|
[dt.spContextMenu]: !0,
|
|
714
719
|
...n && { [n]: !0 }
|
|
715
720
|
});
|
|
716
|
-
return /* @__PURE__ */
|
|
721
|
+
return /* @__PURE__ */ u("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
717
722
|
const r = i.key === "delete";
|
|
718
723
|
return /* @__PURE__ */ H(
|
|
719
724
|
"li",
|
|
@@ -726,7 +731,7 @@ const la = "_modalWrapper_awlzb_43", ca = "_modalWrapper__modal_awlzb_63", da =
|
|
|
726
731
|
t && t(i);
|
|
727
732
|
},
|
|
728
733
|
children: [
|
|
729
|
-
(i == null ? void 0 : i.iconName) && /* @__PURE__ */
|
|
734
|
+
(i == null ? void 0 : i.iconName) && /* @__PURE__ */ u(be, { name: i.iconName }),
|
|
730
735
|
i.label
|
|
731
736
|
]
|
|
732
737
|
},
|
|
@@ -747,17 +752,17 @@ var kt = { exports: {} }, Ye = { exports: {} }, Y = {};
|
|
|
747
752
|
* LICENSE file in the root directory of this source tree.
|
|
748
753
|
*/
|
|
749
754
|
var Ot;
|
|
750
|
-
function
|
|
755
|
+
function ba() {
|
|
751
756
|
if (Ot) return Y;
|
|
752
757
|
Ot = 1;
|
|
753
|
-
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,
|
|
758
|
+
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, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
754
759
|
function j(c) {
|
|
755
760
|
if (typeof c == "object" && c !== null) {
|
|
756
|
-
var
|
|
757
|
-
switch (
|
|
761
|
+
var S = c.$$typeof;
|
|
762
|
+
switch (S) {
|
|
758
763
|
case t:
|
|
759
764
|
switch (c = c.type, c) {
|
|
760
|
-
case
|
|
765
|
+
case d:
|
|
761
766
|
case p:
|
|
762
767
|
case n:
|
|
763
768
|
case i:
|
|
@@ -768,25 +773,25 @@ function wa() {
|
|
|
768
773
|
switch (c = c && c.$$typeof, c) {
|
|
769
774
|
case s:
|
|
770
775
|
case m:
|
|
771
|
-
case
|
|
772
|
-
case
|
|
776
|
+
case k:
|
|
777
|
+
case b:
|
|
773
778
|
case r:
|
|
774
779
|
return c;
|
|
775
780
|
default:
|
|
776
|
-
return
|
|
781
|
+
return S;
|
|
777
782
|
}
|
|
778
783
|
}
|
|
779
784
|
case o:
|
|
780
|
-
return
|
|
785
|
+
return S;
|
|
781
786
|
}
|
|
782
787
|
}
|
|
783
788
|
}
|
|
784
|
-
function
|
|
789
|
+
function w(c) {
|
|
785
790
|
return j(c) === p;
|
|
786
791
|
}
|
|
787
|
-
return Y.AsyncMode =
|
|
788
|
-
return
|
|
789
|
-
}, Y.isConcurrentMode =
|
|
792
|
+
return Y.AsyncMode = d, Y.ConcurrentMode = p, Y.ContextConsumer = s, Y.ContextProvider = r, Y.Element = t, Y.ForwardRef = m, Y.Fragment = n, Y.Lazy = k, Y.Memo = b, Y.Portal = o, Y.Profiler = i, Y.StrictMode = a, Y.Suspense = l, Y.isAsyncMode = function(c) {
|
|
793
|
+
return w(c) || j(c) === d;
|
|
794
|
+
}, Y.isConcurrentMode = w, Y.isContextConsumer = function(c) {
|
|
790
795
|
return j(c) === s;
|
|
791
796
|
}, Y.isContextProvider = function(c) {
|
|
792
797
|
return j(c) === r;
|
|
@@ -797,9 +802,9 @@ function wa() {
|
|
|
797
802
|
}, Y.isFragment = function(c) {
|
|
798
803
|
return j(c) === n;
|
|
799
804
|
}, Y.isLazy = function(c) {
|
|
800
|
-
return j(c) ===
|
|
805
|
+
return j(c) === k;
|
|
801
806
|
}, Y.isMemo = function(c) {
|
|
802
|
-
return j(c) ===
|
|
807
|
+
return j(c) === b;
|
|
803
808
|
}, Y.isPortal = function(c) {
|
|
804
809
|
return j(c) === o;
|
|
805
810
|
}, Y.isProfiler = function(c) {
|
|
@@ -809,7 +814,7 @@ function wa() {
|
|
|
809
814
|
}, Y.isSuspense = function(c) {
|
|
810
815
|
return j(c) === l;
|
|
811
816
|
}, Y.isValidElementType = function(c) {
|
|
812
|
-
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === i || c === a || c === l || c === v || typeof c == "object" && c !== null && (c.$$typeof ===
|
|
817
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === i || c === a || c === l || c === v || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === b || c.$$typeof === r || c.$$typeof === s || c.$$typeof === m || c.$$typeof === T || c.$$typeof === A || c.$$typeof === M || c.$$typeof === y);
|
|
813
818
|
}, Y.typeOf = j, Y;
|
|
814
819
|
}
|
|
815
820
|
var G = {};
|
|
@@ -822,21 +827,21 @@ var G = {};
|
|
|
822
827
|
* LICENSE file in the root directory of this source tree.
|
|
823
828
|
*/
|
|
824
829
|
var zt;
|
|
825
|
-
function
|
|
830
|
+
function ya() {
|
|
826
831
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
827
|
-
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,
|
|
828
|
-
function j(
|
|
829
|
-
return typeof
|
|
830
|
-
|
|
832
|
+
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, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, k = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
833
|
+
function j(g) {
|
|
834
|
+
return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
835
|
+
g === n || g === p || g === i || g === a || g === l || g === v || typeof g == "object" && g !== null && (g.$$typeof === k || g.$$typeof === b || g.$$typeof === r || g.$$typeof === s || g.$$typeof === m || g.$$typeof === T || g.$$typeof === A || g.$$typeof === M || g.$$typeof === y);
|
|
831
836
|
}
|
|
832
|
-
function
|
|
833
|
-
if (typeof
|
|
834
|
-
var
|
|
835
|
-
switch (
|
|
837
|
+
function w(g) {
|
|
838
|
+
if (typeof g == "object" && g !== null) {
|
|
839
|
+
var ge = g.$$typeof;
|
|
840
|
+
switch (ge) {
|
|
836
841
|
case t:
|
|
837
|
-
var Se =
|
|
842
|
+
var Se = g.type;
|
|
838
843
|
switch (Se) {
|
|
839
|
-
case
|
|
844
|
+
case d:
|
|
840
845
|
case p:
|
|
841
846
|
case n:
|
|
842
847
|
case i:
|
|
@@ -848,65 +853,65 @@ function ka() {
|
|
|
848
853
|
switch (ze) {
|
|
849
854
|
case s:
|
|
850
855
|
case m:
|
|
851
|
-
case
|
|
852
|
-
case
|
|
856
|
+
case k:
|
|
857
|
+
case b:
|
|
853
858
|
case r:
|
|
854
859
|
return ze;
|
|
855
860
|
default:
|
|
856
|
-
return
|
|
861
|
+
return ge;
|
|
857
862
|
}
|
|
858
863
|
}
|
|
859
864
|
case o:
|
|
860
|
-
return
|
|
865
|
+
return ge;
|
|
861
866
|
}
|
|
862
867
|
}
|
|
863
868
|
}
|
|
864
|
-
var c =
|
|
865
|
-
function B(
|
|
866
|
-
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(
|
|
869
|
+
var c = d, S = p, P = s, L = r, Q = t, te = m, ee = n, ae = k, se = b, K = o, Z = i, C = a, q = l, X = !1;
|
|
870
|
+
function B(g) {
|
|
871
|
+
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(g) || w(g) === d;
|
|
867
872
|
}
|
|
868
|
-
function _(
|
|
869
|
-
return
|
|
873
|
+
function _(g) {
|
|
874
|
+
return w(g) === p;
|
|
870
875
|
}
|
|
871
|
-
function h(
|
|
872
|
-
return
|
|
876
|
+
function h(g) {
|
|
877
|
+
return w(g) === s;
|
|
873
878
|
}
|
|
874
|
-
function F(
|
|
875
|
-
return
|
|
879
|
+
function F(g) {
|
|
880
|
+
return w(g) === r;
|
|
876
881
|
}
|
|
877
|
-
function O(
|
|
878
|
-
return typeof
|
|
882
|
+
function O(g) {
|
|
883
|
+
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
879
884
|
}
|
|
880
|
-
function D(
|
|
881
|
-
return
|
|
885
|
+
function D(g) {
|
|
886
|
+
return w(g) === m;
|
|
882
887
|
}
|
|
883
|
-
function
|
|
884
|
-
return
|
|
888
|
+
function $(g) {
|
|
889
|
+
return w(g) === n;
|
|
885
890
|
}
|
|
886
|
-
function I(
|
|
887
|
-
return
|
|
891
|
+
function I(g) {
|
|
892
|
+
return w(g) === k;
|
|
888
893
|
}
|
|
889
|
-
function z(
|
|
890
|
-
return
|
|
894
|
+
function z(g) {
|
|
895
|
+
return w(g) === b;
|
|
891
896
|
}
|
|
892
|
-
function U(
|
|
893
|
-
return
|
|
897
|
+
function U(g) {
|
|
898
|
+
return w(g) === o;
|
|
894
899
|
}
|
|
895
|
-
function V(
|
|
896
|
-
return
|
|
900
|
+
function V(g) {
|
|
901
|
+
return w(g) === i;
|
|
897
902
|
}
|
|
898
|
-
function W(
|
|
899
|
-
return
|
|
903
|
+
function W(g) {
|
|
904
|
+
return w(g) === a;
|
|
900
905
|
}
|
|
901
|
-
function ie(
|
|
902
|
-
return
|
|
906
|
+
function ie(g) {
|
|
907
|
+
return w(g) === l;
|
|
903
908
|
}
|
|
904
|
-
G.AsyncMode = c, G.ConcurrentMode =
|
|
909
|
+
G.AsyncMode = c, G.ConcurrentMode = S, G.ContextConsumer = P, G.ContextProvider = L, G.Element = Q, G.ForwardRef = te, G.Fragment = ee, G.Lazy = ae, G.Memo = se, G.Portal = K, G.Profiler = Z, G.StrictMode = C, G.Suspense = q, G.isAsyncMode = B, G.isConcurrentMode = _, G.isContextConsumer = h, G.isContextProvider = F, G.isElement = O, G.isForwardRef = D, G.isFragment = $, G.isLazy = I, G.isMemo = z, G.isPortal = U, G.isProfiler = V, G.isStrictMode = W, G.isSuspense = ie, G.isValidElementType = j, G.typeOf = w;
|
|
905
910
|
}()), G;
|
|
906
911
|
}
|
|
907
912
|
var Pt;
|
|
908
|
-
function
|
|
909
|
-
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ye.exports =
|
|
913
|
+
function xo() {
|
|
914
|
+
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ye.exports = ba() : Ye.exports = ya()), Ye.exports;
|
|
910
915
|
}
|
|
911
916
|
/*
|
|
912
917
|
object-assign
|
|
@@ -914,7 +919,7 @@ object-assign
|
|
|
914
919
|
@license MIT
|
|
915
920
|
*/
|
|
916
921
|
var ut, Bt;
|
|
917
|
-
function
|
|
922
|
+
function wa() {
|
|
918
923
|
if (Bt) return ut;
|
|
919
924
|
Bt = 1;
|
|
920
925
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
@@ -932,10 +937,10 @@ function Ca() {
|
|
|
932
937
|
return !1;
|
|
933
938
|
for (var r = {}, s = 0; s < 10; s++)
|
|
934
939
|
r["_" + String.fromCharCode(s)] = s;
|
|
935
|
-
var
|
|
940
|
+
var d = Object.getOwnPropertyNames(r).map(function(m) {
|
|
936
941
|
return r[m];
|
|
937
942
|
});
|
|
938
|
-
if (
|
|
943
|
+
if (d.join("") !== "0123456789")
|
|
939
944
|
return !1;
|
|
940
945
|
var p = {};
|
|
941
946
|
return "abcdefghijklmnopqrst".split("").forEach(function(m) {
|
|
@@ -946,17 +951,17 @@ function Ca() {
|
|
|
946
951
|
}
|
|
947
952
|
}
|
|
948
953
|
return ut = a() ? Object.assign : function(i, r) {
|
|
949
|
-
for (var s,
|
|
954
|
+
for (var s, d = n(i), p, m = 1; m < arguments.length; m++) {
|
|
950
955
|
s = Object(arguments[m]);
|
|
951
956
|
for (var l in s)
|
|
952
|
-
t.call(s, l) && (
|
|
957
|
+
t.call(s, l) && (d[l] = s[l]);
|
|
953
958
|
if (e) {
|
|
954
959
|
p = e(s);
|
|
955
960
|
for (var v = 0; v < p.length; v++)
|
|
956
|
-
o.call(s, p[v]) && (
|
|
961
|
+
o.call(s, p[v]) && (d[p[v]] = s[p[v]]);
|
|
957
962
|
}
|
|
958
963
|
}
|
|
959
|
-
return
|
|
964
|
+
return d;
|
|
960
965
|
}, ut;
|
|
961
966
|
}
|
|
962
967
|
var mt, Wt;
|
|
@@ -967,17 +972,17 @@ function At() {
|
|
|
967
972
|
return mt = e, mt;
|
|
968
973
|
}
|
|
969
974
|
var _t, Mt;
|
|
970
|
-
function
|
|
975
|
+
function ho() {
|
|
971
976
|
return Mt || (Mt = 1, _t = Function.call.bind(Object.prototype.hasOwnProperty)), _t;
|
|
972
977
|
}
|
|
973
|
-
var ft,
|
|
974
|
-
function
|
|
975
|
-
if (
|
|
976
|
-
|
|
978
|
+
var ft, qt;
|
|
979
|
+
function ka() {
|
|
980
|
+
if (qt) return ft;
|
|
981
|
+
qt = 1;
|
|
977
982
|
var e = function() {
|
|
978
983
|
};
|
|
979
984
|
if (process.env.NODE_ENV !== "production") {
|
|
980
|
-
var t = At(), o = {}, n =
|
|
985
|
+
var t = At(), o = {}, n = ho();
|
|
981
986
|
e = function(i) {
|
|
982
987
|
var r = "Warning: " + i;
|
|
983
988
|
typeof console < "u" && console.error(r);
|
|
@@ -987,7 +992,7 @@ function Ta() {
|
|
|
987
992
|
}
|
|
988
993
|
};
|
|
989
994
|
}
|
|
990
|
-
function a(i, r, s,
|
|
995
|
+
function a(i, r, s, d, p) {
|
|
991
996
|
if (process.env.NODE_ENV !== "production") {
|
|
992
997
|
for (var m in i)
|
|
993
998
|
if (n(i, m)) {
|
|
@@ -995,21 +1000,21 @@ function Ta() {
|
|
|
995
1000
|
try {
|
|
996
1001
|
if (typeof i[m] != "function") {
|
|
997
1002
|
var v = Error(
|
|
998
|
-
(
|
|
1003
|
+
(d || "React class") + ": " + s + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
999
1004
|
);
|
|
1000
1005
|
throw v.name = "Invariant Violation", v;
|
|
1001
1006
|
}
|
|
1002
|
-
l = i[m](r, m,
|
|
1003
|
-
} catch (
|
|
1004
|
-
l =
|
|
1007
|
+
l = i[m](r, m, d, s, null, t);
|
|
1008
|
+
} catch (k) {
|
|
1009
|
+
l = k;
|
|
1005
1010
|
}
|
|
1006
1011
|
if (l && !(l instanceof Error) && e(
|
|
1007
|
-
(
|
|
1012
|
+
(d || "React class") + ": type specification of " + s + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1008
1013
|
), l instanceof Error && !(l.message in o)) {
|
|
1009
1014
|
o[l.message] = !0;
|
|
1010
|
-
var
|
|
1015
|
+
var b = p ? p() : "";
|
|
1011
1016
|
e(
|
|
1012
|
-
"Failed " + s + " type: " + l.message + (
|
|
1017
|
+
"Failed " + s + " type: " + l.message + (b ?? "")
|
|
1013
1018
|
);
|
|
1014
1019
|
}
|
|
1015
1020
|
}
|
|
@@ -1019,44 +1024,44 @@ function Ta() {
|
|
|
1019
1024
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
1020
1025
|
}, ft = a, ft;
|
|
1021
1026
|
}
|
|
1022
|
-
var vt,
|
|
1023
|
-
function
|
|
1024
|
-
if (
|
|
1025
|
-
|
|
1026
|
-
var e =
|
|
1027
|
+
var vt, $t;
|
|
1028
|
+
function Ca() {
|
|
1029
|
+
if ($t) return vt;
|
|
1030
|
+
$t = 1;
|
|
1031
|
+
var e = xo(), t = wa(), o = At(), n = ho(), a = ka(), i = function() {
|
|
1027
1032
|
};
|
|
1028
1033
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1029
|
-
var
|
|
1030
|
-
typeof console < "u" && console.error(
|
|
1034
|
+
var d = "Warning: " + s;
|
|
1035
|
+
typeof console < "u" && console.error(d);
|
|
1031
1036
|
try {
|
|
1032
|
-
throw new Error(
|
|
1037
|
+
throw new Error(d);
|
|
1033
1038
|
} catch {
|
|
1034
1039
|
}
|
|
1035
1040
|
});
|
|
1036
1041
|
function r() {
|
|
1037
1042
|
return null;
|
|
1038
1043
|
}
|
|
1039
|
-
return vt = function(s,
|
|
1044
|
+
return vt = function(s, d) {
|
|
1040
1045
|
var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
1041
1046
|
function l(_) {
|
|
1042
1047
|
var h = _ && (p && _[p] || _[m]);
|
|
1043
1048
|
if (typeof h == "function")
|
|
1044
1049
|
return h;
|
|
1045
1050
|
}
|
|
1046
|
-
var v = "<<anonymous>>",
|
|
1047
|
-
array:
|
|
1048
|
-
bigint:
|
|
1049
|
-
bool:
|
|
1050
|
-
func:
|
|
1051
|
-
number:
|
|
1052
|
-
object:
|
|
1053
|
-
string:
|
|
1054
|
-
symbol:
|
|
1051
|
+
var v = "<<anonymous>>", b = {
|
|
1052
|
+
array: A("array"),
|
|
1053
|
+
bigint: A("bigint"),
|
|
1054
|
+
bool: A("boolean"),
|
|
1055
|
+
func: A("function"),
|
|
1056
|
+
number: A("number"),
|
|
1057
|
+
object: A("object"),
|
|
1058
|
+
string: A("string"),
|
|
1059
|
+
symbol: A("symbol"),
|
|
1055
1060
|
any: M(),
|
|
1056
1061
|
arrayOf: j,
|
|
1057
|
-
element:
|
|
1062
|
+
element: w(),
|
|
1058
1063
|
elementType: c(),
|
|
1059
|
-
instanceOf:
|
|
1064
|
+
instanceOf: S,
|
|
1060
1065
|
node: te(),
|
|
1061
1066
|
objectOf: L,
|
|
1062
1067
|
oneOf: P,
|
|
@@ -1064,136 +1069,136 @@ function Na() {
|
|
|
1064
1069
|
shape: ae,
|
|
1065
1070
|
exact: se
|
|
1066
1071
|
};
|
|
1067
|
-
function
|
|
1072
|
+
function k(_, h) {
|
|
1068
1073
|
return _ === h ? _ !== 0 || 1 / _ === 1 / h : _ !== _ && h !== h;
|
|
1069
1074
|
}
|
|
1070
|
-
function
|
|
1075
|
+
function y(_, h) {
|
|
1071
1076
|
this.message = _, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
|
|
1072
1077
|
}
|
|
1073
|
-
|
|
1074
|
-
function
|
|
1078
|
+
y.prototype = Error.prototype;
|
|
1079
|
+
function T(_) {
|
|
1075
1080
|
if (process.env.NODE_ENV !== "production")
|
|
1076
1081
|
var h = {}, F = 0;
|
|
1077
|
-
function O(
|
|
1082
|
+
function O($, I, z, U, V, W, ie) {
|
|
1078
1083
|
if (U = U || v, W = W || z, ie !== o) {
|
|
1079
|
-
if (
|
|
1080
|
-
var
|
|
1084
|
+
if (d) {
|
|
1085
|
+
var g = new Error(
|
|
1081
1086
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1082
1087
|
);
|
|
1083
|
-
throw
|
|
1088
|
+
throw g.name = "Invariant Violation", g;
|
|
1084
1089
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1085
|
-
var
|
|
1086
|
-
!h[
|
|
1090
|
+
var ge = U + ":" + z;
|
|
1091
|
+
!h[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1087
1092
|
F < 3 && (i(
|
|
1088
1093
|
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1089
|
-
), h[
|
|
1094
|
+
), h[ge] = !0, F++);
|
|
1090
1095
|
}
|
|
1091
1096
|
}
|
|
1092
|
-
return I[z] == null ?
|
|
1097
|
+
return I[z] == null ? $ ? I[z] === null ? new y("The " + V + " `" + W + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + V + " `" + W + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : _(I, z, U, V, W);
|
|
1093
1098
|
}
|
|
1094
1099
|
var D = O.bind(null, !1);
|
|
1095
1100
|
return D.isRequired = O.bind(null, !0), D;
|
|
1096
1101
|
}
|
|
1097
|
-
function
|
|
1098
|
-
function h(F, O, D,
|
|
1099
|
-
var U = F[O], V =
|
|
1102
|
+
function A(_) {
|
|
1103
|
+
function h(F, O, D, $, I, z) {
|
|
1104
|
+
var U = F[O], V = C(U);
|
|
1100
1105
|
if (V !== _) {
|
|
1101
|
-
var W =
|
|
1102
|
-
return new
|
|
1103
|
-
"Invalid " +
|
|
1106
|
+
var W = q(U);
|
|
1107
|
+
return new y(
|
|
1108
|
+
"Invalid " + $ + " `" + I + "` of type " + ("`" + W + "` supplied to `" + D + "`, expected ") + ("`" + _ + "`."),
|
|
1104
1109
|
{ expectedType: _ }
|
|
1105
1110
|
);
|
|
1106
1111
|
}
|
|
1107
1112
|
return null;
|
|
1108
1113
|
}
|
|
1109
|
-
return
|
|
1114
|
+
return T(h);
|
|
1110
1115
|
}
|
|
1111
1116
|
function M() {
|
|
1112
|
-
return
|
|
1117
|
+
return T(r);
|
|
1113
1118
|
}
|
|
1114
1119
|
function j(_) {
|
|
1115
|
-
function h(F, O, D,
|
|
1120
|
+
function h(F, O, D, $, I) {
|
|
1116
1121
|
if (typeof _ != "function")
|
|
1117
|
-
return new
|
|
1122
|
+
return new y("Property `" + I + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
1118
1123
|
var z = F[O];
|
|
1119
1124
|
if (!Array.isArray(z)) {
|
|
1120
|
-
var U =
|
|
1121
|
-
return new
|
|
1125
|
+
var U = C(z);
|
|
1126
|
+
return new y("Invalid " + $ + " `" + I + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected an array."));
|
|
1122
1127
|
}
|
|
1123
1128
|
for (var V = 0; V < z.length; V++) {
|
|
1124
|
-
var W = _(z, V, D,
|
|
1129
|
+
var W = _(z, V, D, $, I + "[" + V + "]", o);
|
|
1125
1130
|
if (W instanceof Error)
|
|
1126
1131
|
return W;
|
|
1127
1132
|
}
|
|
1128
1133
|
return null;
|
|
1129
1134
|
}
|
|
1130
|
-
return
|
|
1135
|
+
return T(h);
|
|
1131
1136
|
}
|
|
1132
|
-
function
|
|
1133
|
-
function _(h, F, O, D,
|
|
1137
|
+
function w() {
|
|
1138
|
+
function _(h, F, O, D, $) {
|
|
1134
1139
|
var I = h[F];
|
|
1135
1140
|
if (!s(I)) {
|
|
1136
|
-
var z =
|
|
1137
|
-
return new
|
|
1141
|
+
var z = C(I);
|
|
1142
|
+
return new y("Invalid " + D + " `" + $ + "` of type " + ("`" + z + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1138
1143
|
}
|
|
1139
1144
|
return null;
|
|
1140
1145
|
}
|
|
1141
|
-
return
|
|
1146
|
+
return T(_);
|
|
1142
1147
|
}
|
|
1143
1148
|
function c() {
|
|
1144
|
-
function _(h, F, O, D,
|
|
1149
|
+
function _(h, F, O, D, $) {
|
|
1145
1150
|
var I = h[F];
|
|
1146
1151
|
if (!e.isValidElementType(I)) {
|
|
1147
|
-
var z =
|
|
1148
|
-
return new
|
|
1152
|
+
var z = C(I);
|
|
1153
|
+
return new y("Invalid " + D + " `" + $ + "` of type " + ("`" + z + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1149
1154
|
}
|
|
1150
1155
|
return null;
|
|
1151
1156
|
}
|
|
1152
|
-
return
|
|
1157
|
+
return T(_);
|
|
1153
1158
|
}
|
|
1154
|
-
function
|
|
1155
|
-
function h(F, O, D,
|
|
1159
|
+
function S(_) {
|
|
1160
|
+
function h(F, O, D, $, I) {
|
|
1156
1161
|
if (!(F[O] instanceof _)) {
|
|
1157
1162
|
var z = _.name || v, U = B(F[O]);
|
|
1158
|
-
return new
|
|
1163
|
+
return new y("Invalid " + $ + " `" + I + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected ") + ("instance of `" + z + "`."));
|
|
1159
1164
|
}
|
|
1160
1165
|
return null;
|
|
1161
1166
|
}
|
|
1162
|
-
return
|
|
1167
|
+
return T(h);
|
|
1163
1168
|
}
|
|
1164
1169
|
function P(_) {
|
|
1165
1170
|
if (!Array.isArray(_))
|
|
1166
1171
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1167
1172
|
"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])."
|
|
1168
1173
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1169
|
-
function h(F, O, D,
|
|
1174
|
+
function h(F, O, D, $, I) {
|
|
1170
1175
|
for (var z = F[O], U = 0; U < _.length; U++)
|
|
1171
|
-
if (
|
|
1176
|
+
if (k(z, _[U]))
|
|
1172
1177
|
return null;
|
|
1173
|
-
var V = JSON.stringify(_, function(ie,
|
|
1174
|
-
var
|
|
1175
|
-
return
|
|
1178
|
+
var V = JSON.stringify(_, function(ie, g) {
|
|
1179
|
+
var ge = q(g);
|
|
1180
|
+
return ge === "symbol" ? String(g) : g;
|
|
1176
1181
|
});
|
|
1177
|
-
return new
|
|
1182
|
+
return new y("Invalid " + $ + " `" + I + "` of value `" + String(z) + "` " + ("supplied to `" + D + "`, expected one of " + V + "."));
|
|
1178
1183
|
}
|
|
1179
|
-
return
|
|
1184
|
+
return T(h);
|
|
1180
1185
|
}
|
|
1181
1186
|
function L(_) {
|
|
1182
|
-
function h(F, O, D,
|
|
1187
|
+
function h(F, O, D, $, I) {
|
|
1183
1188
|
if (typeof _ != "function")
|
|
1184
|
-
return new
|
|
1185
|
-
var z = F[O], U =
|
|
1189
|
+
return new y("Property `" + I + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
1190
|
+
var z = F[O], U = C(z);
|
|
1186
1191
|
if (U !== "object")
|
|
1187
|
-
return new
|
|
1192
|
+
return new y("Invalid " + $ + " `" + I + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected an object."));
|
|
1188
1193
|
for (var V in z)
|
|
1189
1194
|
if (n(z, V)) {
|
|
1190
|
-
var W = _(z, V, D,
|
|
1195
|
+
var W = _(z, V, D, $, I + "." + V, o);
|
|
1191
1196
|
if (W instanceof Error)
|
|
1192
1197
|
return W;
|
|
1193
1198
|
}
|
|
1194
1199
|
return null;
|
|
1195
1200
|
}
|
|
1196
|
-
return
|
|
1201
|
+
return T(h);
|
|
1197
1202
|
}
|
|
1198
1203
|
function Q(_) {
|
|
1199
1204
|
if (!Array.isArray(_))
|
|
@@ -1205,68 +1210,68 @@ function Na() {
|
|
|
1205
1210
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(F) + " at index " + h + "."
|
|
1206
1211
|
), r;
|
|
1207
1212
|
}
|
|
1208
|
-
function O(D,
|
|
1213
|
+
function O(D, $, I, z, U) {
|
|
1209
1214
|
for (var V = [], W = 0; W < _.length; W++) {
|
|
1210
|
-
var ie = _[W],
|
|
1211
|
-
if (
|
|
1215
|
+
var ie = _[W], g = ie(D, $, I, z, U, o);
|
|
1216
|
+
if (g == null)
|
|
1212
1217
|
return null;
|
|
1213
|
-
|
|
1218
|
+
g.data && n(g.data, "expectedType") && V.push(g.data.expectedType);
|
|
1214
1219
|
}
|
|
1215
|
-
var
|
|
1216
|
-
return new
|
|
1220
|
+
var ge = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
1221
|
+
return new y("Invalid " + z + " `" + U + "` supplied to " + ("`" + I + "`" + ge + "."));
|
|
1217
1222
|
}
|
|
1218
|
-
return
|
|
1223
|
+
return T(O);
|
|
1219
1224
|
}
|
|
1220
1225
|
function te() {
|
|
1221
|
-
function _(h, F, O, D,
|
|
1222
|
-
return K(h[F]) ? null : new
|
|
1226
|
+
function _(h, F, O, D, $) {
|
|
1227
|
+
return K(h[F]) ? null : new y("Invalid " + D + " `" + $ + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1223
1228
|
}
|
|
1224
|
-
return
|
|
1229
|
+
return T(_);
|
|
1225
1230
|
}
|
|
1226
1231
|
function ee(_, h, F, O, D) {
|
|
1227
|
-
return new
|
|
1232
|
+
return new y(
|
|
1228
1233
|
(_ || "React class") + ": " + h + " type `" + F + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
1229
1234
|
);
|
|
1230
1235
|
}
|
|
1231
1236
|
function ae(_) {
|
|
1232
|
-
function h(F, O, D,
|
|
1233
|
-
var z = F[O], U =
|
|
1237
|
+
function h(F, O, D, $, I) {
|
|
1238
|
+
var z = F[O], U = C(z);
|
|
1234
1239
|
if (U !== "object")
|
|
1235
|
-
return new
|
|
1240
|
+
return new y("Invalid " + $ + " `" + I + "` of type `" + U + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1236
1241
|
for (var V in _) {
|
|
1237
1242
|
var W = _[V];
|
|
1238
1243
|
if (typeof W != "function")
|
|
1239
|
-
return ee(D,
|
|
1240
|
-
var ie = W(z, V, D,
|
|
1244
|
+
return ee(D, $, I, V, q(W));
|
|
1245
|
+
var ie = W(z, V, D, $, I + "." + V, o);
|
|
1241
1246
|
if (ie)
|
|
1242
1247
|
return ie;
|
|
1243
1248
|
}
|
|
1244
1249
|
return null;
|
|
1245
1250
|
}
|
|
1246
|
-
return
|
|
1251
|
+
return T(h);
|
|
1247
1252
|
}
|
|
1248
1253
|
function se(_) {
|
|
1249
|
-
function h(F, O, D,
|
|
1250
|
-
var z = F[O], U =
|
|
1254
|
+
function h(F, O, D, $, I) {
|
|
1255
|
+
var z = F[O], U = C(z);
|
|
1251
1256
|
if (U !== "object")
|
|
1252
|
-
return new
|
|
1257
|
+
return new y("Invalid " + $ + " `" + I + "` of type `" + U + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1253
1258
|
var V = t({}, F[O], _);
|
|
1254
1259
|
for (var W in V) {
|
|
1255
1260
|
var ie = _[W];
|
|
1256
1261
|
if (n(_, W) && typeof ie != "function")
|
|
1257
|
-
return ee(D,
|
|
1262
|
+
return ee(D, $, I, W, q(ie));
|
|
1258
1263
|
if (!ie)
|
|
1259
|
-
return new
|
|
1260
|
-
"Invalid " +
|
|
1264
|
+
return new y(
|
|
1265
|
+
"Invalid " + $ + " `" + I + "` key `" + W + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(F[O], null, " ") + `
|
|
1261
1266
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
1262
1267
|
);
|
|
1263
|
-
var
|
|
1264
|
-
if (
|
|
1265
|
-
return
|
|
1268
|
+
var g = ie(z, W, D, $, I + "." + W, o);
|
|
1269
|
+
if (g)
|
|
1270
|
+
return g;
|
|
1266
1271
|
}
|
|
1267
1272
|
return null;
|
|
1268
1273
|
}
|
|
1269
|
-
return
|
|
1274
|
+
return T(h);
|
|
1270
1275
|
}
|
|
1271
1276
|
function K(_) {
|
|
1272
1277
|
switch (typeof _) {
|
|
@@ -1304,14 +1309,14 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
1304
1309
|
function Z(_, h) {
|
|
1305
1310
|
return _ === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
|
|
1306
1311
|
}
|
|
1307
|
-
function
|
|
1312
|
+
function C(_) {
|
|
1308
1313
|
var h = typeof _;
|
|
1309
1314
|
return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : Z(h, _) ? "symbol" : h;
|
|
1310
1315
|
}
|
|
1311
|
-
function
|
|
1316
|
+
function q(_) {
|
|
1312
1317
|
if (typeof _ > "u" || _ === null)
|
|
1313
1318
|
return "" + _;
|
|
1314
|
-
var h =
|
|
1319
|
+
var h = C(_);
|
|
1315
1320
|
if (h === "object") {
|
|
1316
1321
|
if (_ instanceof Date)
|
|
1317
1322
|
return "date";
|
|
@@ -1321,7 +1326,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
1321
1326
|
return h;
|
|
1322
1327
|
}
|
|
1323
1328
|
function X(_) {
|
|
1324
|
-
var h =
|
|
1329
|
+
var h = q(_);
|
|
1325
1330
|
switch (h) {
|
|
1326
1331
|
case "array":
|
|
1327
1332
|
case "object":
|
|
@@ -1337,20 +1342,20 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
1337
1342
|
function B(_) {
|
|
1338
1343
|
return !_.constructor || !_.constructor.name ? v : _.constructor.name;
|
|
1339
1344
|
}
|
|
1340
|
-
return
|
|
1345
|
+
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
1341
1346
|
}, vt;
|
|
1342
1347
|
}
|
|
1343
|
-
var
|
|
1344
|
-
function
|
|
1345
|
-
if (Ut) return
|
|
1348
|
+
var gt, Ut;
|
|
1349
|
+
function Ta() {
|
|
1350
|
+
if (Ut) return gt;
|
|
1346
1351
|
Ut = 1;
|
|
1347
1352
|
var e = At();
|
|
1348
1353
|
function t() {
|
|
1349
1354
|
}
|
|
1350
1355
|
function o() {
|
|
1351
1356
|
}
|
|
1352
|
-
return o.resetWarningCache = t,
|
|
1353
|
-
function n(r, s,
|
|
1357
|
+
return o.resetWarningCache = t, gt = function() {
|
|
1358
|
+
function n(r, s, d, p, m, l) {
|
|
1354
1359
|
if (l !== e) {
|
|
1355
1360
|
var v = new Error(
|
|
1356
1361
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1386,15 +1391,15 @@ function Ea() {
|
|
|
1386
1391
|
resetWarningCache: t
|
|
1387
1392
|
};
|
|
1388
1393
|
return i.PropTypes = i, i;
|
|
1389
|
-
},
|
|
1394
|
+
}, gt;
|
|
1390
1395
|
}
|
|
1391
1396
|
if (process.env.NODE_ENV !== "production") {
|
|
1392
|
-
var
|
|
1393
|
-
kt.exports =
|
|
1397
|
+
var Na = xo(), Ea = !0;
|
|
1398
|
+
kt.exports = Ca()(Na.isElement, Ea);
|
|
1394
1399
|
} else
|
|
1395
|
-
kt.exports =
|
|
1396
|
-
var
|
|
1397
|
-
const
|
|
1400
|
+
kt.exports = Ta()();
|
|
1401
|
+
var Sa = kt.exports;
|
|
1402
|
+
const N = /* @__PURE__ */ go(Sa);
|
|
1398
1403
|
function De(e, t, o, n) {
|
|
1399
1404
|
function a(i) {
|
|
1400
1405
|
return i instanceof o ? i : new o(function(r) {
|
|
@@ -1409,7 +1414,7 @@ function De(e, t, o, n) {
|
|
|
1409
1414
|
r(l);
|
|
1410
1415
|
}
|
|
1411
1416
|
}
|
|
1412
|
-
function
|
|
1417
|
+
function d(m) {
|
|
1413
1418
|
try {
|
|
1414
1419
|
p(n.throw(m));
|
|
1415
1420
|
} catch (l) {
|
|
@@ -1417,12 +1422,12 @@ function De(e, t, o, n) {
|
|
|
1417
1422
|
}
|
|
1418
1423
|
}
|
|
1419
1424
|
function p(m) {
|
|
1420
|
-
m.done ? i(m.value) : a(m.value).then(s,
|
|
1425
|
+
m.done ? i(m.value) : a(m.value).then(s, d);
|
|
1421
1426
|
}
|
|
1422
1427
|
p((n = n.apply(e, t || [])).next());
|
|
1423
1428
|
});
|
|
1424
1429
|
}
|
|
1425
|
-
const
|
|
1430
|
+
const Ra = /* @__PURE__ */ new Map([
|
|
1426
1431
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1427
1432
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1428
1433
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2626,13 +2631,13 @@ const ja = /* @__PURE__ */ new Map([
|
|
|
2626
2631
|
["zsh", "text/x-scriptzsh"]
|
|
2627
2632
|
]);
|
|
2628
2633
|
function Oe(e, t, o) {
|
|
2629
|
-
const n =
|
|
2634
|
+
const n = Aa(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
2630
2635
|
return typeof n.path != "string" && Ht(n, "path", i), Ht(n, "relativePath", i), n;
|
|
2631
2636
|
}
|
|
2632
|
-
function
|
|
2637
|
+
function Aa(e) {
|
|
2633
2638
|
const { name: t } = e;
|
|
2634
2639
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2635
|
-
const n = t.split(".").pop().toLowerCase(), a =
|
|
2640
|
+
const n = t.split(".").pop().toLowerCase(), a = Ra.get(n);
|
|
2636
2641
|
a && Object.defineProperty(e, "type", {
|
|
2637
2642
|
value: a,
|
|
2638
2643
|
writable: !1,
|
|
@@ -2650,49 +2655,49 @@ function Ht(e, t, o) {
|
|
|
2650
2655
|
enumerable: !0
|
|
2651
2656
|
});
|
|
2652
2657
|
}
|
|
2653
|
-
const
|
|
2658
|
+
const ja = [
|
|
2654
2659
|
// Thumbnail cache files for macOS and Windows
|
|
2655
2660
|
".DS_Store",
|
|
2656
2661
|
// macOs
|
|
2657
2662
|
"Thumbs.db"
|
|
2658
2663
|
// Windows
|
|
2659
2664
|
];
|
|
2660
|
-
function
|
|
2665
|
+
function Da(e) {
|
|
2661
2666
|
return De(this, void 0, void 0, function* () {
|
|
2662
|
-
return Xe(e) &&
|
|
2667
|
+
return Xe(e) && Ia(e.dataTransfer) ? za(e.dataTransfer, e.type) : La(e) ? Fa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Oa(e) : [];
|
|
2663
2668
|
});
|
|
2664
2669
|
}
|
|
2665
|
-
function
|
|
2670
|
+
function Ia(e) {
|
|
2666
2671
|
return Xe(e);
|
|
2667
2672
|
}
|
|
2668
|
-
function
|
|
2673
|
+
function La(e) {
|
|
2669
2674
|
return Xe(e) && Xe(e.target);
|
|
2670
2675
|
}
|
|
2671
2676
|
function Xe(e) {
|
|
2672
2677
|
return typeof e == "object" && e !== null;
|
|
2673
2678
|
}
|
|
2674
|
-
function
|
|
2679
|
+
function Fa(e) {
|
|
2675
2680
|
return Ct(e.target.files).map((t) => Oe(t));
|
|
2676
2681
|
}
|
|
2677
|
-
function
|
|
2682
|
+
function Oa(e) {
|
|
2678
2683
|
return De(this, void 0, void 0, function* () {
|
|
2679
2684
|
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Oe(o));
|
|
2680
2685
|
});
|
|
2681
2686
|
}
|
|
2682
|
-
function
|
|
2687
|
+
function za(e, t) {
|
|
2683
2688
|
return De(this, void 0, void 0, function* () {
|
|
2684
2689
|
if (e.items) {
|
|
2685
2690
|
const o = Ct(e.items).filter((a) => a.kind === "file");
|
|
2686
2691
|
if (t !== "drop")
|
|
2687
2692
|
return o;
|
|
2688
|
-
const n = yield Promise.all(o.map(
|
|
2689
|
-
return Vt(
|
|
2693
|
+
const n = yield Promise.all(o.map(Pa));
|
|
2694
|
+
return Vt(bo(n));
|
|
2690
2695
|
}
|
|
2691
2696
|
return Vt(Ct(e.files).map((o) => Oe(o)));
|
|
2692
2697
|
});
|
|
2693
2698
|
}
|
|
2694
2699
|
function Vt(e) {
|
|
2695
|
-
return e.filter((t) =>
|
|
2700
|
+
return e.filter((t) => ja.indexOf(t.name) === -1);
|
|
2696
2701
|
}
|
|
2697
2702
|
function Ct(e) {
|
|
2698
2703
|
if (e === null)
|
|
@@ -2704,16 +2709,16 @@ function Ct(e) {
|
|
|
2704
2709
|
}
|
|
2705
2710
|
return t;
|
|
2706
2711
|
}
|
|
2707
|
-
function
|
|
2712
|
+
function Pa(e) {
|
|
2708
2713
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2709
2714
|
return Yt(e);
|
|
2710
2715
|
const t = e.webkitGetAsEntry();
|
|
2711
|
-
return t && t.isDirectory ?
|
|
2716
|
+
return t && t.isDirectory ? yo(t) : Yt(e, t);
|
|
2712
2717
|
}
|
|
2713
|
-
function
|
|
2718
|
+
function bo(e) {
|
|
2714
2719
|
return e.reduce((t, o) => [
|
|
2715
2720
|
...t,
|
|
2716
|
-
...Array.isArray(o) ?
|
|
2721
|
+
...Array.isArray(o) ? bo(o) : [o]
|
|
2717
2722
|
], []);
|
|
2718
2723
|
}
|
|
2719
2724
|
function Yt(e, t) {
|
|
@@ -2734,19 +2739,19 @@ function Yt(e, t) {
|
|
|
2734
2739
|
return Oe(n, (o = t == null ? void 0 : t.fullPath) !== null && o !== void 0 ? o : void 0);
|
|
2735
2740
|
});
|
|
2736
2741
|
}
|
|
2737
|
-
function
|
|
2742
|
+
function Ba(e) {
|
|
2738
2743
|
return De(this, void 0, void 0, function* () {
|
|
2739
|
-
return e.isDirectory ?
|
|
2744
|
+
return e.isDirectory ? yo(e) : Wa(e);
|
|
2740
2745
|
});
|
|
2741
2746
|
}
|
|
2742
|
-
function
|
|
2747
|
+
function yo(e) {
|
|
2743
2748
|
const t = e.createReader();
|
|
2744
2749
|
return new Promise((o, n) => {
|
|
2745
2750
|
const a = [];
|
|
2746
2751
|
function i() {
|
|
2747
2752
|
t.readEntries((r) => De(this, void 0, void 0, function* () {
|
|
2748
2753
|
if (r.length) {
|
|
2749
|
-
const s = Promise.all(r.map(
|
|
2754
|
+
const s = Promise.all(r.map(Ba));
|
|
2750
2755
|
a.push(s), i();
|
|
2751
2756
|
} else
|
|
2752
2757
|
try {
|
|
@@ -2762,7 +2767,7 @@ function wo(e) {
|
|
|
2762
2767
|
i();
|
|
2763
2768
|
});
|
|
2764
2769
|
}
|
|
2765
|
-
function
|
|
2770
|
+
function Wa(e) {
|
|
2766
2771
|
return De(this, void 0, void 0, function* () {
|
|
2767
2772
|
return new Promise((t, o) => {
|
|
2768
2773
|
e.file((n) => {
|
|
@@ -2774,7 +2779,7 @@ function $a(e) {
|
|
|
2774
2779
|
});
|
|
2775
2780
|
});
|
|
2776
2781
|
}
|
|
2777
|
-
var
|
|
2782
|
+
var xt = function(e, t) {
|
|
2778
2783
|
if (e && t) {
|
|
2779
2784
|
var o = Array.isArray(t) ? t : t.split(",");
|
|
2780
2785
|
if (o.length === 0)
|
|
@@ -2788,16 +2793,16 @@ var gt = function(e, t) {
|
|
|
2788
2793
|
return !0;
|
|
2789
2794
|
};
|
|
2790
2795
|
function Gt(e) {
|
|
2791
|
-
return
|
|
2796
|
+
return $a(e) || qa(e) || ko(e) || Ma();
|
|
2792
2797
|
}
|
|
2793
|
-
function
|
|
2798
|
+
function Ma() {
|
|
2794
2799
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2795
2800
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2796
2801
|
}
|
|
2797
|
-
function
|
|
2802
|
+
function qa(e) {
|
|
2798
2803
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2799
2804
|
}
|
|
2800
|
-
function
|
|
2805
|
+
function $a(e) {
|
|
2801
2806
|
if (Array.isArray(e)) return Tt(e);
|
|
2802
2807
|
}
|
|
2803
2808
|
function Kt(e, t) {
|
|
@@ -2814,24 +2819,24 @@ function Xt(e) {
|
|
|
2814
2819
|
for (var t = 1; t < arguments.length; t++) {
|
|
2815
2820
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
2816
2821
|
t % 2 ? Kt(Object(o), !0).forEach(function(n) {
|
|
2817
|
-
|
|
2822
|
+
wo(e, n, o[n]);
|
|
2818
2823
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Kt(Object(o)).forEach(function(n) {
|
|
2819
2824
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
2820
2825
|
});
|
|
2821
2826
|
}
|
|
2822
2827
|
return e;
|
|
2823
2828
|
}
|
|
2824
|
-
function
|
|
2829
|
+
function wo(e, t, o) {
|
|
2825
2830
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
2826
2831
|
}
|
|
2827
2832
|
function Me(e, t) {
|
|
2828
|
-
return
|
|
2833
|
+
return Va(e) || Ha(e, t) || ko(e, t) || Ua();
|
|
2829
2834
|
}
|
|
2830
|
-
function
|
|
2835
|
+
function Ua() {
|
|
2831
2836
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2832
2837
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2833
2838
|
}
|
|
2834
|
-
function
|
|
2839
|
+
function ko(e, t) {
|
|
2835
2840
|
if (e) {
|
|
2836
2841
|
if (typeof e == "string") return Tt(e, t);
|
|
2837
2842
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -2845,15 +2850,15 @@ function Tt(e, t) {
|
|
|
2845
2850
|
n[o] = e[o];
|
|
2846
2851
|
return n;
|
|
2847
2852
|
}
|
|
2848
|
-
function
|
|
2853
|
+
function Ha(e, t) {
|
|
2849
2854
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2850
2855
|
if (o != null) {
|
|
2851
2856
|
var n = [], a = !0, i = !1, r, s;
|
|
2852
2857
|
try {
|
|
2853
2858
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
2854
2859
|
;
|
|
2855
|
-
} catch (
|
|
2856
|
-
i = !0, s =
|
|
2860
|
+
} catch (d) {
|
|
2861
|
+
i = !0, s = d;
|
|
2857
2862
|
} finally {
|
|
2858
2863
|
try {
|
|
2859
2864
|
!a && o.return != null && o.return();
|
|
@@ -2864,34 +2869,34 @@ function Ya(e, t) {
|
|
|
2864
2869
|
return n;
|
|
2865
2870
|
}
|
|
2866
2871
|
}
|
|
2867
|
-
function
|
|
2872
|
+
function Va(e) {
|
|
2868
2873
|
if (Array.isArray(e)) return e;
|
|
2869
2874
|
}
|
|
2870
|
-
var
|
|
2875
|
+
var Ya = typeof xt == "function" ? xt : xt.default, Ga = "file-invalid-type", Ka = "file-too-large", Xa = "file-too-small", Za = "too-many-files", Qa = function() {
|
|
2871
2876
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", o = t.split(","), n = o.length > 1 ? "one of ".concat(o.join(", ")) : o[0];
|
|
2872
2877
|
return {
|
|
2873
|
-
code:
|
|
2878
|
+
code: Ga,
|
|
2874
2879
|
message: "File type must be ".concat(n)
|
|
2875
2880
|
};
|
|
2876
2881
|
}, Zt = function(t) {
|
|
2877
2882
|
return {
|
|
2878
|
-
code:
|
|
2883
|
+
code: Ka,
|
|
2879
2884
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2880
2885
|
};
|
|
2881
2886
|
}, Qt = function(t) {
|
|
2882
2887
|
return {
|
|
2883
|
-
code:
|
|
2888
|
+
code: Xa,
|
|
2884
2889
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2885
2890
|
};
|
|
2886
|
-
},
|
|
2887
|
-
code:
|
|
2891
|
+
}, Ja = {
|
|
2892
|
+
code: Za,
|
|
2888
2893
|
message: "Too many files"
|
|
2889
2894
|
};
|
|
2890
|
-
function
|
|
2891
|
-
var o = e.type === "application/x-moz-file" ||
|
|
2892
|
-
return [o, o ? null :
|
|
2895
|
+
function Co(e, t) {
|
|
2896
|
+
var o = e.type === "application/x-moz-file" || Ya(e, t);
|
|
2897
|
+
return [o, o ? null : Qa(t)];
|
|
2893
2898
|
}
|
|
2894
|
-
function
|
|
2899
|
+
function To(e, t, o) {
|
|
2895
2900
|
if (je(e.size))
|
|
2896
2901
|
if (je(t) && je(o)) {
|
|
2897
2902
|
if (e.size > o) return [!1, Zt(o)];
|
|
@@ -2905,11 +2910,11 @@ function No(e, t, o) {
|
|
|
2905
2910
|
function je(e) {
|
|
2906
2911
|
return e != null;
|
|
2907
2912
|
}
|
|
2908
|
-
function
|
|
2913
|
+
function ei(e) {
|
|
2909
2914
|
var t = e.files, o = e.accept, n = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2910
|
-
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(
|
|
2911
|
-
var p =
|
|
2912
|
-
return l &&
|
|
2915
|
+
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(d) {
|
|
2916
|
+
var p = Co(d, o), m = Me(p, 1), l = m[0], v = To(d, n, a), b = Me(v, 1), k = b[0], y = s ? s(d) : null;
|
|
2917
|
+
return l && k && !y;
|
|
2913
2918
|
});
|
|
2914
2919
|
}
|
|
2915
2920
|
function Ze(e) {
|
|
@@ -2923,15 +2928,15 @@ function Ge(e) {
|
|
|
2923
2928
|
function Jt(e) {
|
|
2924
2929
|
e.preventDefault();
|
|
2925
2930
|
}
|
|
2926
|
-
function
|
|
2931
|
+
function ti(e) {
|
|
2927
2932
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2928
2933
|
}
|
|
2929
|
-
function
|
|
2934
|
+
function oi(e) {
|
|
2930
2935
|
return e.indexOf("Edge/") !== -1;
|
|
2931
2936
|
}
|
|
2932
|
-
function
|
|
2937
|
+
function ni() {
|
|
2933
2938
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2934
|
-
return
|
|
2939
|
+
return ti(e) || oi(e);
|
|
2935
2940
|
}
|
|
2936
2941
|
function Ce() {
|
|
2937
2942
|
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
@@ -2944,17 +2949,17 @@ function Ce() {
|
|
|
2944
2949
|
});
|
|
2945
2950
|
};
|
|
2946
2951
|
}
|
|
2947
|
-
function
|
|
2952
|
+
function ai() {
|
|
2948
2953
|
return "showOpenFilePicker" in window;
|
|
2949
2954
|
}
|
|
2950
|
-
function
|
|
2955
|
+
function ii(e) {
|
|
2951
2956
|
if (je(e)) {
|
|
2952
2957
|
var t = Object.entries(e).filter(function(o) {
|
|
2953
2958
|
var n = Me(o, 2), a = n[0], i = n[1], r = !0;
|
|
2954
|
-
return
|
|
2959
|
+
return No(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(Eo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2955
2960
|
}).reduce(function(o, n) {
|
|
2956
2961
|
var a = Me(n, 2), i = a[0], r = a[1];
|
|
2957
|
-
return Xt(Xt({}, o), {},
|
|
2962
|
+
return Xt(Xt({}, o), {}, wo({}, i, r));
|
|
2958
2963
|
}, {});
|
|
2959
2964
|
return [{
|
|
2960
2965
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2964,49 +2969,49 @@ function si(e) {
|
|
|
2964
2969
|
}
|
|
2965
2970
|
return e;
|
|
2966
2971
|
}
|
|
2967
|
-
function
|
|
2972
|
+
function ri(e) {
|
|
2968
2973
|
if (je(e))
|
|
2969
2974
|
return Object.entries(e).reduce(function(t, o) {
|
|
2970
2975
|
var n = Me(o, 2), a = n[0], i = n[1];
|
|
2971
2976
|
return [].concat(Gt(t), [a], Gt(i));
|
|
2972
2977
|
}, []).filter(function(t) {
|
|
2973
|
-
return
|
|
2978
|
+
return No(t) || Eo(t);
|
|
2974
2979
|
}).join(",");
|
|
2975
2980
|
}
|
|
2976
|
-
function
|
|
2981
|
+
function si(e) {
|
|
2977
2982
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2978
2983
|
}
|
|
2979
|
-
function
|
|
2984
|
+
function pi(e) {
|
|
2980
2985
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2981
2986
|
}
|
|
2982
|
-
function
|
|
2987
|
+
function No(e) {
|
|
2983
2988
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2984
2989
|
}
|
|
2985
|
-
function
|
|
2990
|
+
function Eo(e) {
|
|
2986
2991
|
return /^.*\.[\w]+$/.test(e);
|
|
2987
2992
|
}
|
|
2988
|
-
var
|
|
2989
|
-
function
|
|
2990
|
-
return
|
|
2993
|
+
var li = ["children"], ci = ["open"], di = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ui = ["refKey", "onChange", "onClick"];
|
|
2994
|
+
function mi(e) {
|
|
2995
|
+
return vi(e) || fi(e) || So(e) || _i();
|
|
2991
2996
|
}
|
|
2992
|
-
function
|
|
2997
|
+
function _i() {
|
|
2993
2998
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2994
2999
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2995
3000
|
}
|
|
2996
|
-
function
|
|
3001
|
+
function fi(e) {
|
|
2997
3002
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2998
3003
|
}
|
|
2999
|
-
function
|
|
3004
|
+
function vi(e) {
|
|
3000
3005
|
if (Array.isArray(e)) return Nt(e);
|
|
3001
3006
|
}
|
|
3002
3007
|
function ht(e, t) {
|
|
3003
|
-
return
|
|
3008
|
+
return hi(e) || xi(e, t) || So(e, t) || gi();
|
|
3004
3009
|
}
|
|
3005
|
-
function
|
|
3010
|
+
function gi() {
|
|
3006
3011
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3007
3012
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3008
3013
|
}
|
|
3009
|
-
function
|
|
3014
|
+
function So(e, t) {
|
|
3010
3015
|
if (e) {
|
|
3011
3016
|
if (typeof e == "string") return Nt(e, t);
|
|
3012
3017
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -3020,15 +3025,15 @@ function Nt(e, t) {
|
|
|
3020
3025
|
n[o] = e[o];
|
|
3021
3026
|
return n;
|
|
3022
3027
|
}
|
|
3023
|
-
function
|
|
3028
|
+
function xi(e, t) {
|
|
3024
3029
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3025
3030
|
if (o != null) {
|
|
3026
3031
|
var n = [], a = !0, i = !1, r, s;
|
|
3027
3032
|
try {
|
|
3028
3033
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
3029
3034
|
;
|
|
3030
|
-
} catch (
|
|
3031
|
-
i = !0, s =
|
|
3035
|
+
} catch (d) {
|
|
3036
|
+
i = !0, s = d;
|
|
3032
3037
|
} finally {
|
|
3033
3038
|
try {
|
|
3034
3039
|
!a && o.return != null && o.return();
|
|
@@ -3039,7 +3044,7 @@ function bi(e, t) {
|
|
|
3039
3044
|
return n;
|
|
3040
3045
|
}
|
|
3041
3046
|
}
|
|
3042
|
-
function
|
|
3047
|
+
function hi(e) {
|
|
3043
3048
|
if (Array.isArray(e)) return e;
|
|
3044
3049
|
}
|
|
3045
3050
|
function eo(e, t) {
|
|
@@ -3068,7 +3073,7 @@ function Et(e, t, o) {
|
|
|
3068
3073
|
}
|
|
3069
3074
|
function Qe(e, t) {
|
|
3070
3075
|
if (e == null) return {};
|
|
3071
|
-
var o =
|
|
3076
|
+
var o = bi(e, t), n, a;
|
|
3072
3077
|
if (Object.getOwnPropertySymbols) {
|
|
3073
3078
|
var i = Object.getOwnPropertySymbols(e);
|
|
3074
3079
|
for (a = 0; a < i.length; a++)
|
|
@@ -3076,27 +3081,27 @@ function Qe(e, t) {
|
|
|
3076
3081
|
}
|
|
3077
3082
|
return o;
|
|
3078
3083
|
}
|
|
3079
|
-
function
|
|
3084
|
+
function bi(e, t) {
|
|
3080
3085
|
if (e == null) return {};
|
|
3081
3086
|
var o = {}, n = Object.keys(e), a, i;
|
|
3082
3087
|
for (i = 0; i < n.length; i++)
|
|
3083
3088
|
a = n[i], !(t.indexOf(a) >= 0) && (o[a] = e[a]);
|
|
3084
3089
|
return o;
|
|
3085
3090
|
}
|
|
3086
|
-
var et = /* @__PURE__ */
|
|
3087
|
-
var o = e.children, n = Qe(e,
|
|
3088
|
-
return
|
|
3091
|
+
var et = /* @__PURE__ */ Po(function(e, t) {
|
|
3092
|
+
var o = e.children, n = Qe(e, li), a = yi(n), i = a.open, r = Qe(a, ci);
|
|
3093
|
+
return Bo(t, function() {
|
|
3089
3094
|
return {
|
|
3090
3095
|
open: i
|
|
3091
3096
|
};
|
|
3092
|
-
}, [i]), /* @__PURE__ */
|
|
3097
|
+
}, [i]), /* @__PURE__ */ qe.createElement(Wo, null, o(J(J({}, r), {}, {
|
|
3093
3098
|
open: i
|
|
3094
3099
|
})));
|
|
3095
3100
|
});
|
|
3096
3101
|
et.displayName = "Dropzone";
|
|
3097
|
-
var
|
|
3102
|
+
var Ro = {
|
|
3098
3103
|
disabled: !1,
|
|
3099
|
-
getFilesFromEvent:
|
|
3104
|
+
getFilesFromEvent: Da,
|
|
3100
3105
|
maxSize: 1 / 0,
|
|
3101
3106
|
minSize: 0,
|
|
3102
3107
|
multiple: !0,
|
|
@@ -3110,7 +3115,7 @@ var Ao = {
|
|
|
3110
3115
|
useFsAccessApi: !1,
|
|
3111
3116
|
autoFocus: !1
|
|
3112
3117
|
};
|
|
3113
|
-
et.defaultProps =
|
|
3118
|
+
et.defaultProps = Ro;
|
|
3114
3119
|
et.propTypes = {
|
|
3115
3120
|
/**
|
|
3116
3121
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -3127,7 +3132,7 @@ et.propTypes = {
|
|
|
3127
3132
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3128
3133
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3129
3134
|
*/
|
|
3130
|
-
children:
|
|
3135
|
+
children: N.func,
|
|
3131
3136
|
/**
|
|
3132
3137
|
* Set accepted file types.
|
|
3133
3138
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3135,90 +3140,90 @@ et.propTypes = {
|
|
|
3135
3140
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3136
3141
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3137
3142
|
*/
|
|
3138
|
-
accept:
|
|
3143
|
+
accept: N.objectOf(N.arrayOf(N.string)),
|
|
3139
3144
|
/**
|
|
3140
3145
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3141
3146
|
*/
|
|
3142
|
-
multiple:
|
|
3147
|
+
multiple: N.bool,
|
|
3143
3148
|
/**
|
|
3144
3149
|
* If false, allow dropped items to take over the current browser window
|
|
3145
3150
|
*/
|
|
3146
|
-
preventDropOnDocument:
|
|
3151
|
+
preventDropOnDocument: N.bool,
|
|
3147
3152
|
/**
|
|
3148
3153
|
* If true, disables click to open the native file selection dialog
|
|
3149
3154
|
*/
|
|
3150
|
-
noClick:
|
|
3155
|
+
noClick: N.bool,
|
|
3151
3156
|
/**
|
|
3152
3157
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3153
3158
|
* Note that it also stops tracking the focus state.
|
|
3154
3159
|
*/
|
|
3155
|
-
noKeyboard:
|
|
3160
|
+
noKeyboard: N.bool,
|
|
3156
3161
|
/**
|
|
3157
3162
|
* If true, disables drag 'n' drop
|
|
3158
3163
|
*/
|
|
3159
|
-
noDrag:
|
|
3164
|
+
noDrag: N.bool,
|
|
3160
3165
|
/**
|
|
3161
3166
|
* If true, stops drag event propagation to parents
|
|
3162
3167
|
*/
|
|
3163
|
-
noDragEventsBubbling:
|
|
3168
|
+
noDragEventsBubbling: N.bool,
|
|
3164
3169
|
/**
|
|
3165
3170
|
* Minimum file size (in bytes)
|
|
3166
3171
|
*/
|
|
3167
|
-
minSize:
|
|
3172
|
+
minSize: N.number,
|
|
3168
3173
|
/**
|
|
3169
3174
|
* Maximum file size (in bytes)
|
|
3170
3175
|
*/
|
|
3171
|
-
maxSize:
|
|
3176
|
+
maxSize: N.number,
|
|
3172
3177
|
/**
|
|
3173
3178
|
* Maximum accepted number of files
|
|
3174
3179
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3175
3180
|
*/
|
|
3176
|
-
maxFiles:
|
|
3181
|
+
maxFiles: N.number,
|
|
3177
3182
|
/**
|
|
3178
3183
|
* Enable/disable the dropzone
|
|
3179
3184
|
*/
|
|
3180
|
-
disabled:
|
|
3185
|
+
disabled: N.bool,
|
|
3181
3186
|
/**
|
|
3182
3187
|
* Use this to provide a custom file aggregator
|
|
3183
3188
|
*
|
|
3184
3189
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3185
3190
|
*/
|
|
3186
|
-
getFilesFromEvent:
|
|
3191
|
+
getFilesFromEvent: N.func,
|
|
3187
3192
|
/**
|
|
3188
3193
|
* Cb for when closing the file dialog with no selection
|
|
3189
3194
|
*/
|
|
3190
|
-
onFileDialogCancel:
|
|
3195
|
+
onFileDialogCancel: N.func,
|
|
3191
3196
|
/**
|
|
3192
3197
|
* Cb for when opening the file dialog
|
|
3193
3198
|
*/
|
|
3194
|
-
onFileDialogOpen:
|
|
3199
|
+
onFileDialogOpen: N.func,
|
|
3195
3200
|
/**
|
|
3196
3201
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3197
3202
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3198
3203
|
*/
|
|
3199
|
-
useFsAccessApi:
|
|
3204
|
+
useFsAccessApi: N.bool,
|
|
3200
3205
|
/**
|
|
3201
3206
|
* Set to true to focus the root element on render
|
|
3202
3207
|
*/
|
|
3203
|
-
autoFocus:
|
|
3208
|
+
autoFocus: N.bool,
|
|
3204
3209
|
/**
|
|
3205
3210
|
* Cb for when the `dragenter` event occurs.
|
|
3206
3211
|
*
|
|
3207
3212
|
* @param {DragEvent} event
|
|
3208
3213
|
*/
|
|
3209
|
-
onDragEnter:
|
|
3214
|
+
onDragEnter: N.func,
|
|
3210
3215
|
/**
|
|
3211
3216
|
* Cb for when the `dragleave` event occurs
|
|
3212
3217
|
*
|
|
3213
3218
|
* @param {DragEvent} event
|
|
3214
3219
|
*/
|
|
3215
|
-
onDragLeave:
|
|
3220
|
+
onDragLeave: N.func,
|
|
3216
3221
|
/**
|
|
3217
3222
|
* Cb for when the `dragover` event occurs
|
|
3218
3223
|
*
|
|
3219
3224
|
* @param {DragEvent} event
|
|
3220
3225
|
*/
|
|
3221
|
-
onDragOver:
|
|
3226
|
+
onDragOver: N.func,
|
|
3222
3227
|
/**
|
|
3223
3228
|
* Cb for when the `drop` event occurs.
|
|
3224
3229
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3249,7 +3254,7 @@ et.propTypes = {
|
|
|
3249
3254
|
* @param {FileRejection[]} fileRejections
|
|
3250
3255
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3251
3256
|
*/
|
|
3252
|
-
onDrop:
|
|
3257
|
+
onDrop: N.func,
|
|
3253
3258
|
/**
|
|
3254
3259
|
* Cb for when the `drop` event occurs.
|
|
3255
3260
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3257,7 +3262,7 @@ et.propTypes = {
|
|
|
3257
3262
|
* @param {File[]} files
|
|
3258
3263
|
* @param {(DragEvent|Event)} event
|
|
3259
3264
|
*/
|
|
3260
|
-
onDropAccepted:
|
|
3265
|
+
onDropAccepted: N.func,
|
|
3261
3266
|
/**
|
|
3262
3267
|
* Cb for when the `drop` event occurs.
|
|
3263
3268
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3265,19 +3270,19 @@ et.propTypes = {
|
|
|
3265
3270
|
* @param {FileRejection[]} fileRejections
|
|
3266
3271
|
* @param {(DragEvent|Event)} event
|
|
3267
3272
|
*/
|
|
3268
|
-
onDropRejected:
|
|
3273
|
+
onDropRejected: N.func,
|
|
3269
3274
|
/**
|
|
3270
3275
|
* Cb for when there's some error from any of the promises.
|
|
3271
3276
|
*
|
|
3272
3277
|
* @param {Error} error
|
|
3273
3278
|
*/
|
|
3274
|
-
onError:
|
|
3279
|
+
onError: N.func,
|
|
3275
3280
|
/**
|
|
3276
3281
|
* Custom validation function. It must return null if there's no errors.
|
|
3277
3282
|
* @param {File} file
|
|
3278
3283
|
* @returns {FileError|FileError[]|null}
|
|
3279
3284
|
*/
|
|
3280
|
-
validator:
|
|
3285
|
+
validator: N.func
|
|
3281
3286
|
};
|
|
3282
3287
|
var St = {
|
|
3283
3288
|
isFocused: !1,
|
|
@@ -3288,20 +3293,20 @@ var St = {
|
|
|
3288
3293
|
acceptedFiles: [],
|
|
3289
3294
|
fileRejections: []
|
|
3290
3295
|
};
|
|
3291
|
-
function
|
|
3292
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = J(J({},
|
|
3293
|
-
return
|
|
3296
|
+
function yi() {
|
|
3297
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = J(J({}, Ro), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, d = t.maxFiles, p = t.onDragEnter, m = t.onDragLeave, l = t.onDragOver, v = t.onDrop, b = t.onDropAccepted, k = t.onDropRejected, y = t.onFileDialogCancel, T = t.onFileDialogOpen, A = t.useFsAccessApi, M = t.autoFocus, j = t.preventDropOnDocument, w = t.noClick, c = t.noKeyboard, S = t.noDrag, P = t.noDragEventsBubbling, L = t.onError, Q = t.validator, te = Fe(function() {
|
|
3298
|
+
return ri(o);
|
|
3294
3299
|
}, [o]), ee = Fe(function() {
|
|
3295
|
-
return
|
|
3300
|
+
return ii(o);
|
|
3296
3301
|
}, [o]), ae = Fe(function() {
|
|
3297
|
-
return typeof
|
|
3298
|
-
}, [
|
|
3299
|
-
return typeof
|
|
3300
|
-
}, [
|
|
3302
|
+
return typeof T == "function" ? T : to;
|
|
3303
|
+
}, [T]), se = Fe(function() {
|
|
3304
|
+
return typeof y == "function" ? y : to;
|
|
3305
|
+
}, [y]), K = ve(null), Z = ve(null), C = Mo(wi, St), q = ht(C, 2), X = q[0], B = q[1], _ = X.isFocused, h = X.isFileDialogActive, F = ve(typeof window < "u" && window.isSecureContext && A && ai()), O = function() {
|
|
3301
3306
|
!F.current && h && setTimeout(function() {
|
|
3302
3307
|
if (Z.current) {
|
|
3303
|
-
var
|
|
3304
|
-
|
|
3308
|
+
var R = Z.current.files;
|
|
3309
|
+
R.length || (B({
|
|
3305
3310
|
type: "closeDialog"
|
|
3306
3311
|
}), se());
|
|
3307
3312
|
}
|
|
@@ -3312,29 +3317,29 @@ function ki() {
|
|
|
3312
3317
|
window.removeEventListener("focus", O, !1);
|
|
3313
3318
|
};
|
|
3314
3319
|
}, [Z, h, se, F]);
|
|
3315
|
-
var D =
|
|
3316
|
-
K.current && K.current.contains(
|
|
3320
|
+
var D = ve([]), $ = function(R) {
|
|
3321
|
+
K.current && K.current.contains(R.target) || (R.preventDefault(), D.current = []);
|
|
3317
3322
|
};
|
|
3318
3323
|
re(function() {
|
|
3319
|
-
return j && (document.addEventListener("dragover", Jt, !1), document.addEventListener("drop",
|
|
3320
|
-
j && (document.removeEventListener("dragover", Jt), document.removeEventListener("drop",
|
|
3324
|
+
return j && (document.addEventListener("dragover", Jt, !1), document.addEventListener("drop", $, !1)), function() {
|
|
3325
|
+
j && (document.removeEventListener("dragover", Jt), document.removeEventListener("drop", $));
|
|
3321
3326
|
};
|
|
3322
3327
|
}, [K, j]), re(function() {
|
|
3323
3328
|
return !n && M && K.current && K.current.focus(), function() {
|
|
3324
3329
|
};
|
|
3325
3330
|
}, [K, M, n]);
|
|
3326
|
-
var I =
|
|
3327
|
-
L ? L(
|
|
3328
|
-
}, [L]), z =
|
|
3329
|
-
|
|
3330
|
-
if (!(Ze(
|
|
3331
|
-
var oe =
|
|
3332
|
-
files:
|
|
3331
|
+
var I = fe(function(x) {
|
|
3332
|
+
L ? L(x) : console.error(x);
|
|
3333
|
+
}, [L]), z = fe(function(x) {
|
|
3334
|
+
x.preventDefault(), x.persist(), Ue(x), D.current = [].concat(mi(D.current), [x.target]), Ge(x) && Promise.resolve(a(x)).then(function(R) {
|
|
3335
|
+
if (!(Ze(x) && !P)) {
|
|
3336
|
+
var oe = R.length, pe = oe > 0 && ei({
|
|
3337
|
+
files: R,
|
|
3333
3338
|
accept: te,
|
|
3334
3339
|
minSize: r,
|
|
3335
3340
|
maxSize: i,
|
|
3336
3341
|
multiple: s,
|
|
3337
|
-
maxFiles:
|
|
3342
|
+
maxFiles: d,
|
|
3338
3343
|
validator: Q
|
|
3339
3344
|
}), xe = oe > 0 && !pe;
|
|
3340
3345
|
B({
|
|
@@ -3342,132 +3347,132 @@ function ki() {
|
|
|
3342
3347
|
isDragReject: xe,
|
|
3343
3348
|
isDragActive: !0,
|
|
3344
3349
|
type: "setDraggedFiles"
|
|
3345
|
-
}), p && p(
|
|
3350
|
+
}), p && p(x);
|
|
3346
3351
|
}
|
|
3347
|
-
}).catch(function(
|
|
3348
|
-
return I(
|
|
3352
|
+
}).catch(function(R) {
|
|
3353
|
+
return I(R);
|
|
3349
3354
|
});
|
|
3350
|
-
}, [a, p, I, P, te, r, i, s,
|
|
3351
|
-
|
|
3352
|
-
var
|
|
3353
|
-
if (
|
|
3355
|
+
}, [a, p, I, P, te, r, i, s, d, Q]), U = fe(function(x) {
|
|
3356
|
+
x.preventDefault(), x.persist(), Ue(x);
|
|
3357
|
+
var R = Ge(x);
|
|
3358
|
+
if (R && x.dataTransfer)
|
|
3354
3359
|
try {
|
|
3355
|
-
|
|
3360
|
+
x.dataTransfer.dropEffect = "copy";
|
|
3356
3361
|
} catch {
|
|
3357
3362
|
}
|
|
3358
|
-
return
|
|
3359
|
-
}, [l, P]), V =
|
|
3360
|
-
|
|
3361
|
-
var
|
|
3363
|
+
return R && l && l(x), !1;
|
|
3364
|
+
}, [l, P]), V = fe(function(x) {
|
|
3365
|
+
x.preventDefault(), x.persist(), Ue(x);
|
|
3366
|
+
var R = D.current.filter(function(pe) {
|
|
3362
3367
|
return K.current && K.current.contains(pe);
|
|
3363
|
-
}), oe =
|
|
3364
|
-
oe !== -1 &&
|
|
3368
|
+
}), oe = R.indexOf(x.target);
|
|
3369
|
+
oe !== -1 && R.splice(oe, 1), D.current = R, !(R.length > 0) && (B({
|
|
3365
3370
|
type: "setDraggedFiles",
|
|
3366
3371
|
isDragActive: !1,
|
|
3367
3372
|
isDragAccept: !1,
|
|
3368
3373
|
isDragReject: !1
|
|
3369
|
-
}), Ge(
|
|
3370
|
-
}, [K, m, P]), W =
|
|
3374
|
+
}), Ge(x) && m && m(x));
|
|
3375
|
+
}, [K, m, P]), W = fe(function(x, R) {
|
|
3371
3376
|
var oe = [], pe = [];
|
|
3372
|
-
|
|
3373
|
-
var Pe =
|
|
3377
|
+
x.forEach(function(xe) {
|
|
3378
|
+
var Pe = Co(xe, te), Le = ht(Pe, 2), ot = Le[0], nt = Le[1], at = To(xe, r, i), He = ht(at, 2), it = He[0], rt = He[1], st = Q ? Q(xe) : null;
|
|
3374
3379
|
if (ot && it && !st)
|
|
3375
3380
|
oe.push(xe);
|
|
3376
3381
|
else {
|
|
3377
3382
|
var pt = [nt, rt];
|
|
3378
3383
|
st && (pt = pt.concat(st)), pe.push({
|
|
3379
3384
|
file: xe,
|
|
3380
|
-
errors: pt.filter(function(
|
|
3381
|
-
return
|
|
3385
|
+
errors: pt.filter(function(zo) {
|
|
3386
|
+
return zo;
|
|
3382
3387
|
})
|
|
3383
3388
|
});
|
|
3384
3389
|
}
|
|
3385
|
-
}), (!s && oe.length > 1 || s &&
|
|
3390
|
+
}), (!s && oe.length > 1 || s && d >= 1 && oe.length > d) && (oe.forEach(function(xe) {
|
|
3386
3391
|
pe.push({
|
|
3387
3392
|
file: xe,
|
|
3388
|
-
errors: [
|
|
3393
|
+
errors: [Ja]
|
|
3389
3394
|
});
|
|
3390
3395
|
}), oe.splice(0)), B({
|
|
3391
3396
|
acceptedFiles: oe,
|
|
3392
3397
|
fileRejections: pe,
|
|
3393
3398
|
isDragReject: pe.length > 0,
|
|
3394
3399
|
type: "setFiles"
|
|
3395
|
-
}), v && v(oe, pe,
|
|
3396
|
-
}, [B, s, te, r, i,
|
|
3397
|
-
|
|
3398
|
-
Ze(
|
|
3399
|
-
}).catch(function(
|
|
3400
|
-
return I(
|
|
3400
|
+
}), v && v(oe, pe, R), pe.length > 0 && k && k(pe, R), oe.length > 0 && b && b(oe, R);
|
|
3401
|
+
}, [B, s, te, r, i, d, v, b, k, Q]), ie = fe(function(x) {
|
|
3402
|
+
x.preventDefault(), x.persist(), Ue(x), D.current = [], Ge(x) && Promise.resolve(a(x)).then(function(R) {
|
|
3403
|
+
Ze(x) && !P || W(R, x);
|
|
3404
|
+
}).catch(function(R) {
|
|
3405
|
+
return I(R);
|
|
3401
3406
|
}), B({
|
|
3402
3407
|
type: "reset"
|
|
3403
3408
|
});
|
|
3404
|
-
}, [a, W, I, P]),
|
|
3409
|
+
}, [a, W, I, P]), g = fe(function() {
|
|
3405
3410
|
if (F.current) {
|
|
3406
3411
|
B({
|
|
3407
3412
|
type: "openDialog"
|
|
3408
3413
|
}), ae();
|
|
3409
|
-
var
|
|
3414
|
+
var x = {
|
|
3410
3415
|
multiple: s,
|
|
3411
3416
|
types: ee
|
|
3412
3417
|
};
|
|
3413
|
-
window.showOpenFilePicker(
|
|
3414
|
-
return a(
|
|
3415
|
-
}).then(function(
|
|
3416
|
-
W(
|
|
3418
|
+
window.showOpenFilePicker(x).then(function(R) {
|
|
3419
|
+
return a(R);
|
|
3420
|
+
}).then(function(R) {
|
|
3421
|
+
W(R, null), B({
|
|
3417
3422
|
type: "closeDialog"
|
|
3418
3423
|
});
|
|
3419
|
-
}).catch(function(
|
|
3420
|
-
|
|
3424
|
+
}).catch(function(R) {
|
|
3425
|
+
si(R) ? (se(R), B({
|
|
3421
3426
|
type: "closeDialog"
|
|
3422
|
-
})) :
|
|
3427
|
+
})) : pi(R) ? (F.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : I(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."))) : I(R);
|
|
3423
3428
|
});
|
|
3424
3429
|
return;
|
|
3425
3430
|
}
|
|
3426
3431
|
Z.current && (B({
|
|
3427
3432
|
type: "openDialog"
|
|
3428
3433
|
}), ae(), Z.current.value = null, Z.current.click());
|
|
3429
|
-
}, [B, ae, se,
|
|
3430
|
-
!K.current || !K.current.isEqualNode(
|
|
3431
|
-
}, [K,
|
|
3434
|
+
}, [B, ae, se, A, W, I, ee, s]), ge = fe(function(x) {
|
|
3435
|
+
!K.current || !K.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), g());
|
|
3436
|
+
}, [K, g]), Se = fe(function() {
|
|
3432
3437
|
B({
|
|
3433
3438
|
type: "focus"
|
|
3434
3439
|
});
|
|
3435
|
-
}, []), ze =
|
|
3440
|
+
}, []), ze = fe(function() {
|
|
3436
3441
|
B({
|
|
3437
3442
|
type: "blur"
|
|
3438
3443
|
});
|
|
3439
|
-
}, []), It =
|
|
3440
|
-
|
|
3441
|
-
}, [
|
|
3442
|
-
return n ? null :
|
|
3443
|
-
}, tt = function(
|
|
3444
|
-
return c ? null : Ie(
|
|
3445
|
-
},
|
|
3446
|
-
return
|
|
3447
|
-
}, Ue = function(
|
|
3448
|
-
P &&
|
|
3449
|
-
},
|
|
3444
|
+
}, []), It = fe(function() {
|
|
3445
|
+
w || (ni() ? setTimeout(g, 0) : g());
|
|
3446
|
+
}, [w, g]), Ie = function(R) {
|
|
3447
|
+
return n ? null : R;
|
|
3448
|
+
}, tt = function(R) {
|
|
3449
|
+
return c ? null : Ie(R);
|
|
3450
|
+
}, $e = function(R) {
|
|
3451
|
+
return S ? null : Ie(R);
|
|
3452
|
+
}, Ue = function(R) {
|
|
3453
|
+
P && R.stopPropagation();
|
|
3454
|
+
}, Lo = Fe(function() {
|
|
3450
3455
|
return function() {
|
|
3451
|
-
var
|
|
3456
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = x.refKey, oe = R === void 0 ? "ref" : R, pe = x.role, xe = x.onKeyDown, Pe = x.onFocus, Le = x.onBlur, ot = x.onClick, nt = x.onDragEnter, at = x.onDragOver, He = x.onDragLeave, it = x.onDrop, rt = Qe(x, di);
|
|
3452
3457
|
return J(J(Et({
|
|
3453
|
-
onKeyDown: tt(Ce(xe,
|
|
3458
|
+
onKeyDown: tt(Ce(xe, ge)),
|
|
3454
3459
|
onFocus: tt(Ce(Pe, Se)),
|
|
3455
3460
|
onBlur: tt(Ce(Le, ze)),
|
|
3456
3461
|
onClick: Ie(Ce(ot, It)),
|
|
3457
|
-
onDragEnter:
|
|
3458
|
-
onDragOver:
|
|
3459
|
-
onDragLeave:
|
|
3460
|
-
onDrop:
|
|
3462
|
+
onDragEnter: $e(Ce(nt, z)),
|
|
3463
|
+
onDragOver: $e(Ce(at, U)),
|
|
3464
|
+
onDragLeave: $e(Ce(He, V)),
|
|
3465
|
+
onDrop: $e(Ce(it, ie)),
|
|
3461
3466
|
role: typeof pe == "string" && pe !== "" ? pe : "presentation"
|
|
3462
3467
|
}, oe, K), !n && !c ? {
|
|
3463
3468
|
tabIndex: 0
|
|
3464
3469
|
} : {}), rt);
|
|
3465
3470
|
};
|
|
3466
|
-
}, [K,
|
|
3467
|
-
|
|
3468
|
-
}, []),
|
|
3471
|
+
}, [K, ge, Se, ze, It, z, U, V, ie, c, S, n]), Fo = fe(function(x) {
|
|
3472
|
+
x.stopPropagation();
|
|
3473
|
+
}, []), Oo = Fe(function() {
|
|
3469
3474
|
return function() {
|
|
3470
|
-
var
|
|
3475
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = x.refKey, oe = R === void 0 ? "ref" : R, pe = x.onChange, xe = x.onClick, Pe = Qe(x, ui), Le = Et({
|
|
3471
3476
|
accept: te,
|
|
3472
3477
|
multiple: s,
|
|
3473
3478
|
type: "file",
|
|
@@ -3484,7 +3489,7 @@ function ki() {
|
|
|
3484
3489
|
whiteSpace: "nowrap"
|
|
3485
3490
|
},
|
|
3486
3491
|
onChange: Ie(Ce(pe, ie)),
|
|
3487
|
-
onClick: Ie(Ce(xe,
|
|
3492
|
+
onClick: Ie(Ce(xe, Fo)),
|
|
3488
3493
|
tabIndex: -1
|
|
3489
3494
|
}, oe, Z);
|
|
3490
3495
|
return J(J({}, Le), Pe);
|
|
@@ -3492,14 +3497,14 @@ function ki() {
|
|
|
3492
3497
|
}, [Z, o, s, ie, n]);
|
|
3493
3498
|
return J(J({}, X), {}, {
|
|
3494
3499
|
isFocused: _ && !n,
|
|
3495
|
-
getRootProps:
|
|
3496
|
-
getInputProps:
|
|
3500
|
+
getRootProps: Lo,
|
|
3501
|
+
getInputProps: Oo,
|
|
3497
3502
|
rootRef: K,
|
|
3498
3503
|
inputRef: Z,
|
|
3499
|
-
open: Ie(
|
|
3504
|
+
open: Ie(g)
|
|
3500
3505
|
});
|
|
3501
3506
|
}
|
|
3502
|
-
function
|
|
3507
|
+
function wi(e, t) {
|
|
3503
3508
|
switch (t.type) {
|
|
3504
3509
|
case "focus":
|
|
3505
3510
|
return J(J({}, e), {}, {
|
|
@@ -3537,7 +3542,7 @@ function Ci(e, t) {
|
|
|
3537
3542
|
}
|
|
3538
3543
|
function to() {
|
|
3539
3544
|
}
|
|
3540
|
-
const
|
|
3545
|
+
const ki = (e) => {
|
|
3541
3546
|
const {
|
|
3542
3547
|
onDropFiles: t,
|
|
3543
3548
|
children: o,
|
|
@@ -3546,37 +3551,37 @@ const Ti = (e) => {
|
|
|
3546
3551
|
disabled: i,
|
|
3547
3552
|
name: r,
|
|
3548
3553
|
multiple: s,
|
|
3549
|
-
maxFiles:
|
|
3554
|
+
maxFiles: d,
|
|
3550
3555
|
files: p = []
|
|
3551
|
-
} = e, m =
|
|
3556
|
+
} = e, m = fe(
|
|
3552
3557
|
(l) => {
|
|
3553
3558
|
if (!s) {
|
|
3554
3559
|
t(l, r);
|
|
3555
3560
|
return;
|
|
3556
3561
|
}
|
|
3557
3562
|
const v = [...p, ...l];
|
|
3558
|
-
if (
|
|
3559
|
-
console.log(`Максимальное возможное количество файлов для загрузки - ${
|
|
3563
|
+
if (d && v.length > d) {
|
|
3564
|
+
console.log(`Максимальное возможное количество файлов для загрузки - ${d}`), t(v.slice(0, d), r);
|
|
3560
3565
|
return;
|
|
3561
3566
|
}
|
|
3562
3567
|
t(v, r);
|
|
3563
3568
|
},
|
|
3564
|
-
[p,
|
|
3569
|
+
[p, d, s, r, t]
|
|
3565
3570
|
);
|
|
3566
|
-
return /* @__PURE__ */
|
|
3567
|
-
/* @__PURE__ */
|
|
3571
|
+
return /* @__PURE__ */ u(et, { multiple: s, onDrop: m, maxSize: n, accept: a, children: ({ getRootProps: l, getInputProps: v }) => /* @__PURE__ */ H("div", { ...l({}), style: { height: "100%" }, children: [
|
|
3572
|
+
/* @__PURE__ */ u("input", { ...v({}), disabled: i, name: r }),
|
|
3568
3573
|
o
|
|
3569
3574
|
] }) });
|
|
3570
|
-
},
|
|
3571
|
-
spDropdown:
|
|
3572
|
-
spDropdown__labelText:
|
|
3573
|
-
spDropdown__tooltipContainer:
|
|
3574
|
-
spDropdown__dropdownList:
|
|
3575
|
-
spDropdown__dropdownListHeader:
|
|
3576
|
-
spDropdown__dopdownListItem:
|
|
3577
|
-
spDropdown__dopdownListItem_textCenter:
|
|
3578
|
-
spDropdown__downloadListItemDescription:
|
|
3579
|
-
},
|
|
3575
|
+
}, Ci = "_spDropdown_1f4lf_43", Ti = "_spDropdown__labelText_1f4lf_54", Ni = "_spDropdown__tooltipContainer_1f4lf_62", Ei = "_spDropdown__dropdownList_1f4lf_67", Si = "_spDropdown__dropdownListHeader_1f4lf_73", Ri = "_spDropdown__dopdownListItem_1f4lf_80", Ai = "_spDropdown__dopdownListItem_textCenter_1f4lf_91", ji = "_spDropdown__downloadListItemDescription_1f4lf_94", Ee = {
|
|
3576
|
+
spDropdown: Ci,
|
|
3577
|
+
spDropdown__labelText: Ti,
|
|
3578
|
+
spDropdown__tooltipContainer: Ni,
|
|
3579
|
+
spDropdown__dropdownList: Ei,
|
|
3580
|
+
spDropdown__dropdownListHeader: Si,
|
|
3581
|
+
spDropdown__dopdownListItem: Ri,
|
|
3582
|
+
spDropdown__dopdownListItem_textCenter: Ai,
|
|
3583
|
+
spDropdown__downloadListItemDescription: ji
|
|
3584
|
+
}, Ks = (e) => {
|
|
3580
3585
|
const {
|
|
3581
3586
|
labelText: t = "Выпадающий список",
|
|
3582
3587
|
listName: o,
|
|
@@ -3588,7 +3593,7 @@ const Ti = (e) => {
|
|
|
3588
3593
|
...i && { [i]: !0 }
|
|
3589
3594
|
}), s = f({
|
|
3590
3595
|
[Ee.spDropdown__labelText]: !0
|
|
3591
|
-
}),
|
|
3596
|
+
}), d = f({
|
|
3592
3597
|
[Ee.spDropdown__tooltipContainer]: !0
|
|
3593
3598
|
}), p = f({
|
|
3594
3599
|
[Ee.spDropdown__dropdownList]: !0
|
|
@@ -3596,29 +3601,29 @@ const Ti = (e) => {
|
|
|
3596
3601
|
[Ee.spDropdown__dropdownListHeader]: !0
|
|
3597
3602
|
}), l = f({
|
|
3598
3603
|
[Ee.spDropdown__downloadListItemDescription]: !0
|
|
3599
|
-
}), [v,
|
|
3600
|
-
return /* @__PURE__ */
|
|
3604
|
+
}), [v, b] = le(!1);
|
|
3605
|
+
return /* @__PURE__ */ u(
|
|
3601
3606
|
Rt,
|
|
3602
3607
|
{
|
|
3603
3608
|
hover: !1,
|
|
3604
|
-
triggerAction: () =>
|
|
3605
|
-
actionOnClose: () =>
|
|
3609
|
+
triggerAction: () => b(!0),
|
|
3610
|
+
actionOnClose: () => b(!1),
|
|
3606
3611
|
text: /* @__PURE__ */ H("div", { className: p, children: [
|
|
3607
|
-
o && /* @__PURE__ */
|
|
3608
|
-
n.map((
|
|
3612
|
+
o && /* @__PURE__ */ u("div", { className: m, children: o }),
|
|
3613
|
+
n.map((y, T) => /* @__PURE__ */ H(
|
|
3609
3614
|
"div",
|
|
3610
3615
|
{
|
|
3611
3616
|
className: f({
|
|
3612
3617
|
[Ee.spDropdown__dopdownListItem]: !0,
|
|
3613
|
-
[Ee.spDropdown__dopdownListItem_textCenter]:
|
|
3618
|
+
[Ee.spDropdown__dopdownListItem_textCenter]: y.textCenter
|
|
3614
3619
|
}),
|
|
3615
|
-
onClick:
|
|
3620
|
+
onClick: y.onClick,
|
|
3616
3621
|
children: [
|
|
3617
|
-
|
|
3618
|
-
|
|
3622
|
+
y.name,
|
|
3623
|
+
y.description && /* @__PURE__ */ u("span", { className: l, children: y.description })
|
|
3619
3624
|
]
|
|
3620
3625
|
},
|
|
3621
|
-
|
|
3626
|
+
T
|
|
3622
3627
|
))
|
|
3623
3628
|
] }),
|
|
3624
3629
|
position: a,
|
|
@@ -3626,15 +3631,15 @@ const Ti = (e) => {
|
|
|
3626
3631
|
isToggleClick: !0,
|
|
3627
3632
|
isStopPropagationClickOnTrigger: !0,
|
|
3628
3633
|
trigger: /* @__PURE__ */ H("div", { className: r, children: [
|
|
3629
|
-
/* @__PURE__ */
|
|
3630
|
-
/* @__PURE__ */
|
|
3634
|
+
/* @__PURE__ */ u("div", { className: s, children: t }),
|
|
3635
|
+
/* @__PURE__ */ u("div", { className: d, children: /* @__PURE__ */ u(be, { name: ue.SelectChevronDown, rotate: v ? 180 : void 0 }) })
|
|
3631
3636
|
] })
|
|
3632
3637
|
}
|
|
3633
3638
|
);
|
|
3634
|
-
},
|
|
3635
|
-
ellipsisTextWithTooltip:
|
|
3636
|
-
ellipsisTextWithTooltip__tooltip:
|
|
3637
|
-
},
|
|
3639
|
+
}, Di = "_ellipsisTextWithTooltip_1nhiw_43", Ii = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", oo = {
|
|
3640
|
+
ellipsisTextWithTooltip: Di,
|
|
3641
|
+
ellipsisTextWithTooltip__tooltip: Ii
|
|
3642
|
+
}, Li = (e) => {
|
|
3638
3643
|
const {
|
|
3639
3644
|
text: t,
|
|
3640
3645
|
classNameRoot: o,
|
|
@@ -3643,9 +3648,9 @@ const Ti = (e) => {
|
|
|
3643
3648
|
classNameBaseTooltipContentRoot: i,
|
|
3644
3649
|
classNameBaseTooltipRoot: r,
|
|
3645
3650
|
...s
|
|
3646
|
-
} = e,
|
|
3651
|
+
} = e, d = ve(null), [p, m] = le(!1);
|
|
3647
3652
|
re(() => {
|
|
3648
|
-
|
|
3653
|
+
d.current && m(d.current.scrollWidth > d.current.clientWidth);
|
|
3649
3654
|
}, [t]);
|
|
3650
3655
|
const l = f({
|
|
3651
3656
|
[oo.ellipsisTextWithTooltip]: !0,
|
|
@@ -3653,28 +3658,28 @@ const Ti = (e) => {
|
|
|
3653
3658
|
}), v = f({
|
|
3654
3659
|
[oo.ellipsisTextWithTooltip__tooltip]: !0,
|
|
3655
3660
|
...n && { [n]: !0 }
|
|
3656
|
-
}),
|
|
3661
|
+
}), b = f({
|
|
3657
3662
|
...a && { [a]: !0 }
|
|
3658
3663
|
});
|
|
3659
|
-
return /* @__PURE__ */
|
|
3664
|
+
return /* @__PURE__ */ u(
|
|
3660
3665
|
Rt,
|
|
3661
3666
|
{
|
|
3662
3667
|
classNameTooltip: v,
|
|
3663
|
-
classNameTriggerTooltip:
|
|
3668
|
+
classNameTriggerTooltip: b,
|
|
3664
3669
|
classNameBaseTooltipContentRoot: i,
|
|
3665
3670
|
classNameBaseTooltipRoot: r,
|
|
3666
3671
|
isVisibleTooltip: p,
|
|
3667
3672
|
text: t,
|
|
3668
|
-
trigger: /* @__PURE__ */
|
|
3673
|
+
trigger: /* @__PURE__ */ u(Ne, { ...s, classNameRoot: l, isEllipsis: !0, ref: d, children: t })
|
|
3669
3674
|
}
|
|
3670
3675
|
);
|
|
3671
|
-
},
|
|
3672
|
-
spForm:
|
|
3673
|
-
spForm_fullWidth:
|
|
3674
|
-
spForm_withSeparator:
|
|
3676
|
+
}, Fi = "_spForm_zefbj_43", Oi = "_spForm_fullWidth_zefbj_46", zi = "_spForm_withSeparator_zefbj_49", We = {
|
|
3677
|
+
spForm: Fi,
|
|
3678
|
+
spForm_fullWidth: Oi,
|
|
3679
|
+
spForm_withSeparator: zi,
|
|
3675
3680
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3676
3681
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
3677
|
-
},
|
|
3682
|
+
}, Xs = (e) => {
|
|
3678
3683
|
const {
|
|
3679
3684
|
size: t = "lg",
|
|
3680
3685
|
children: o,
|
|
@@ -3683,7 +3688,7 @@ const Ti = (e) => {
|
|
|
3683
3688
|
withSeparator: i = !1,
|
|
3684
3689
|
fullWidth: r = !0,
|
|
3685
3690
|
classNameRoot: s,
|
|
3686
|
-
...
|
|
3691
|
+
...d
|
|
3687
3692
|
} = e, p = f({
|
|
3688
3693
|
[We.spForm]: !0,
|
|
3689
3694
|
[We.spForm_fullWidth]: r,
|
|
@@ -3692,14 +3697,14 @@ const Ti = (e) => {
|
|
|
3692
3697
|
[We.spForm_withSeparator]: i,
|
|
3693
3698
|
...s && { [s]: !0 }
|
|
3694
3699
|
});
|
|
3695
|
-
return /* @__PURE__ */
|
|
3700
|
+
return /* @__PURE__ */ u("form", { ...d, onSubmit: (l) => {
|
|
3696
3701
|
l.preventDefault(), n && n();
|
|
3697
3702
|
}, className: p, children: o });
|
|
3698
|
-
},
|
|
3699
|
-
spLabel:
|
|
3700
|
-
spLabel__text:
|
|
3701
|
-
spLabel__tooltip:
|
|
3702
|
-
spLabel__required:
|
|
3703
|
+
}, Pi = "_spLabel_g0hfy_43", Bi = "_spLabel__text_g0hfy_52", Wi = "_spLabel__tooltip_g0hfy_62", Mi = "_spLabel__required_g0hfy_67", Ke = {
|
|
3704
|
+
spLabel: Pi,
|
|
3705
|
+
spLabel__text: Bi,
|
|
3706
|
+
spLabel__tooltip: Wi,
|
|
3707
|
+
spLabel__required: Mi
|
|
3703
3708
|
}, jt = (e) => {
|
|
3704
3709
|
const {
|
|
3705
3710
|
required: t,
|
|
@@ -3711,7 +3716,7 @@ const Ti = (e) => {
|
|
|
3711
3716
|
} = e, s = f({
|
|
3712
3717
|
[Ke.spLabel]: !0,
|
|
3713
3718
|
...i && { [i]: !0 }
|
|
3714
|
-
}),
|
|
3719
|
+
}), d = f({
|
|
3715
3720
|
[Ke.spLabel__text]: !0
|
|
3716
3721
|
}), p = f({
|
|
3717
3722
|
[Ke.spLabel__required]: t
|
|
@@ -3719,9 +3724,9 @@ const Ti = (e) => {
|
|
|
3719
3724
|
[Ke.spLabel__tooltip]: !0
|
|
3720
3725
|
});
|
|
3721
3726
|
return /* @__PURE__ */ H("div", { className: s, children: [
|
|
3722
|
-
/* @__PURE__ */
|
|
3723
|
-
t && /* @__PURE__ */
|
|
3724
|
-
n && /* @__PURE__ */
|
|
3727
|
+
/* @__PURE__ */ u("label", { className: d, children: o }),
|
|
3728
|
+
t && /* @__PURE__ */ u("div", { className: p, children: "*" }),
|
|
3729
|
+
n && /* @__PURE__ */ u("div", { className: m, children: /* @__PURE__ */ u(
|
|
3725
3730
|
Je,
|
|
3726
3731
|
{
|
|
3727
3732
|
position: a,
|
|
@@ -3730,18 +3735,18 @@ const Ti = (e) => {
|
|
|
3730
3735
|
}
|
|
3731
3736
|
) })
|
|
3732
3737
|
] });
|
|
3733
|
-
},
|
|
3734
|
-
spInput:
|
|
3735
|
-
spInput_error:
|
|
3736
|
-
spInput__control:
|
|
3737
|
-
spInput__container:
|
|
3738
|
-
spInput__control_filled:
|
|
3739
|
-
spInput__control_outlined:
|
|
3740
|
-
spInput__control_disabled:
|
|
3741
|
-
spInput__control_clearable:
|
|
3742
|
-
spInput__clear:
|
|
3743
|
-
spInput__error:
|
|
3744
|
-
},
|
|
3738
|
+
}, qi = "_spInput_etrn0_43", $i = "_spInput_error_etrn0_48", Ui = "_spInput__control_etrn0_48", Hi = "_spInput__container_etrn0_55", Vi = "_spInput__control_filled_etrn0_74", Yi = "_spInput__control_outlined_etrn0_78", Gi = "_spInput__control_disabled_etrn0_82", Ki = "_spInput__control_clearable_etrn0_86", Xi = "_spInput__clear_etrn0_113", Zi = "_spInput__error_etrn0_122", Te = {
|
|
3739
|
+
spInput: qi,
|
|
3740
|
+
spInput_error: $i,
|
|
3741
|
+
spInput__control: Ui,
|
|
3742
|
+
spInput__container: Hi,
|
|
3743
|
+
spInput__control_filled: Vi,
|
|
3744
|
+
spInput__control_outlined: Yi,
|
|
3745
|
+
spInput__control_disabled: Gi,
|
|
3746
|
+
spInput__control_clearable: Ki,
|
|
3747
|
+
spInput__clear: Xi,
|
|
3748
|
+
spInput__error: Zi
|
|
3749
|
+
}, Qi = qe.forwardRef((e, t) => {
|
|
3745
3750
|
const {
|
|
3746
3751
|
value: o,
|
|
3747
3752
|
onChange: n,
|
|
@@ -3749,24 +3754,24 @@ const Ti = (e) => {
|
|
|
3749
3754
|
variant: i = "outlined",
|
|
3750
3755
|
disabled: r = !1,
|
|
3751
3756
|
error: s,
|
|
3752
|
-
required:
|
|
3757
|
+
required: d,
|
|
3753
3758
|
name: p,
|
|
3754
3759
|
isClearable: m,
|
|
3755
3760
|
pattern: l,
|
|
3756
3761
|
onMouseEnter: v,
|
|
3757
|
-
infoTooltipText:
|
|
3758
|
-
tooltipPosition:
|
|
3759
|
-
isVisibleDefaultTitle:
|
|
3760
|
-
placeholder:
|
|
3761
|
-
classNameRoot:
|
|
3762
|
+
infoTooltipText: b,
|
|
3763
|
+
tooltipPosition: k,
|
|
3764
|
+
isVisibleDefaultTitle: y = !0,
|
|
3765
|
+
placeholder: T = "Введите...",
|
|
3766
|
+
classNameRoot: A,
|
|
3762
3767
|
classNameError: M,
|
|
3763
3768
|
classNameLabel: j,
|
|
3764
|
-
classNameBaseTooltipRoot:
|
|
3769
|
+
classNameBaseTooltipRoot: w,
|
|
3765
3770
|
...c
|
|
3766
|
-
} = e,
|
|
3771
|
+
} = e, S = f({
|
|
3767
3772
|
[Te.spInput]: !0,
|
|
3768
3773
|
[Te.spInput_error]: !!s,
|
|
3769
|
-
...
|
|
3774
|
+
...A && { [A]: !0 }
|
|
3770
3775
|
}), P = f({
|
|
3771
3776
|
[Te.spInput__container]: !0
|
|
3772
3777
|
}), L = f({
|
|
@@ -3784,43 +3789,43 @@ const Ti = (e) => {
|
|
|
3784
3789
|
}), ae = (Z) => {
|
|
3785
3790
|
n(Z, { name: p, value: "" });
|
|
3786
3791
|
}, se = (Z) => {
|
|
3787
|
-
const { value:
|
|
3788
|
-
l &&
|
|
3792
|
+
const { value: C, name: q } = Z.target;
|
|
3793
|
+
l && C && !new RegExp(l).test(C) || n(Z, { value: C, name: q });
|
|
3789
3794
|
};
|
|
3790
|
-
return /* @__PURE__ */ H("div", { className:
|
|
3791
|
-
a && /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ H("div", { className: S, children: [
|
|
3796
|
+
a && /* @__PURE__ */ u(
|
|
3792
3797
|
jt,
|
|
3793
3798
|
{
|
|
3794
3799
|
classNameRoot: ee,
|
|
3795
|
-
tooltipPosition:
|
|
3796
|
-
required:
|
|
3800
|
+
tooltipPosition: k,
|
|
3801
|
+
required: d,
|
|
3797
3802
|
label: a,
|
|
3798
|
-
infoTooltipText:
|
|
3799
|
-
classNameBaseTooltipRoot:
|
|
3803
|
+
infoTooltipText: b,
|
|
3804
|
+
classNameBaseTooltipRoot: w
|
|
3800
3805
|
}
|
|
3801
3806
|
),
|
|
3802
3807
|
/* @__PURE__ */ H("div", { className: P, onMouseEnter: v, children: [
|
|
3803
|
-
/* @__PURE__ */
|
|
3808
|
+
/* @__PURE__ */ u(
|
|
3804
3809
|
"input",
|
|
3805
3810
|
{
|
|
3806
3811
|
...c,
|
|
3807
|
-
placeholder:
|
|
3812
|
+
placeholder: T,
|
|
3808
3813
|
disabled: r,
|
|
3809
3814
|
onChange: se,
|
|
3810
|
-
title:
|
|
3815
|
+
title: y ? o : void 0,
|
|
3811
3816
|
value: o,
|
|
3812
3817
|
name: p,
|
|
3813
3818
|
className: L,
|
|
3814
3819
|
ref: t
|
|
3815
3820
|
}
|
|
3816
3821
|
),
|
|
3817
|
-
m && o && !r && /* @__PURE__ */
|
|
3822
|
+
m && o && !r && /* @__PURE__ */ u(be, { onClick: ae, className: Q, name: ue.Trash })
|
|
3818
3823
|
] }),
|
|
3819
|
-
s && /* @__PURE__ */
|
|
3824
|
+
s && /* @__PURE__ */ u("div", { className: te, children: s })
|
|
3820
3825
|
] });
|
|
3821
3826
|
});
|
|
3822
|
-
|
|
3823
|
-
const
|
|
3827
|
+
Qi.displayName = "Input";
|
|
3828
|
+
const Ji = co({
|
|
3824
3829
|
device: {
|
|
3825
3830
|
isDesktop: !1,
|
|
3826
3831
|
isMobile: !1,
|
|
@@ -3828,16 +3833,16 @@ const tr = uo({
|
|
|
3828
3833
|
}
|
|
3829
3834
|
});
|
|
3830
3835
|
var Dt = {};
|
|
3831
|
-
Dt.match =
|
|
3832
|
-
Dt.parse =
|
|
3833
|
-
var
|
|
3834
|
-
function
|
|
3835
|
-
return
|
|
3836
|
+
Dt.match = ir;
|
|
3837
|
+
Dt.parse = Ao;
|
|
3838
|
+
var er = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, tr = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, or = /^(?:(min|max)-)?(.+)/, nr = /(em|rem|px|cm|mm|in|pt|pc)?$/, ar = /(dpi|dpcm|dppx)?$/;
|
|
3839
|
+
function ir(e, t) {
|
|
3840
|
+
return Ao(e).some(function(o) {
|
|
3836
3841
|
var n = o.inverse, a = o.type === "all" || t.type === o.type;
|
|
3837
3842
|
if (a && n || !(a || n))
|
|
3838
3843
|
return !1;
|
|
3839
3844
|
var i = o.expressions.every(function(r) {
|
|
3840
|
-
var s = r.feature,
|
|
3845
|
+
var s = r.feature, d = r.modifier, p = r.value, m = t[s];
|
|
3841
3846
|
if (!m)
|
|
3842
3847
|
return !1;
|
|
3843
3848
|
switch (s) {
|
|
@@ -3866,7 +3871,7 @@ function sr(e, t) {
|
|
|
3866
3871
|
p = parseInt(p, 10) || 1, m = parseInt(m, 10) || 0;
|
|
3867
3872
|
break;
|
|
3868
3873
|
}
|
|
3869
|
-
switch (
|
|
3874
|
+
switch (d) {
|
|
3870
3875
|
case "min":
|
|
3871
3876
|
return m >= p;
|
|
3872
3877
|
case "max":
|
|
@@ -3878,16 +3883,16 @@ function sr(e, t) {
|
|
|
3878
3883
|
return i && !n || !i && n;
|
|
3879
3884
|
});
|
|
3880
3885
|
}
|
|
3881
|
-
function
|
|
3886
|
+
function Ao(e) {
|
|
3882
3887
|
return e.split(",").map(function(t) {
|
|
3883
3888
|
t = t.trim();
|
|
3884
|
-
var o = t.match(
|
|
3889
|
+
var o = t.match(er), n = o[1], a = o[2], i = o[3] || "", r = {};
|
|
3885
3890
|
return r.inverse = !!n && n.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
3886
|
-
var
|
|
3891
|
+
var d = s.match(tr), p = d[1].toLowerCase().match(or);
|
|
3887
3892
|
return {
|
|
3888
3893
|
modifier: p[1],
|
|
3889
3894
|
feature: p[2],
|
|
3890
|
-
value:
|
|
3895
|
+
value: d[2]
|
|
3891
3896
|
};
|
|
3892
3897
|
}), r;
|
|
3893
3898
|
});
|
|
@@ -3897,7 +3902,7 @@ function no(e) {
|
|
|
3897
3902
|
return t || (o = e.match(/^(\d+)\s*\/\s*(\d+)$/), t = o[1] / o[2]), t;
|
|
3898
3903
|
}
|
|
3899
3904
|
function ao(e) {
|
|
3900
|
-
var t = parseFloat(e), o = String(e).match(
|
|
3905
|
+
var t = parseFloat(e), o = String(e).match(ar)[1];
|
|
3901
3906
|
switch (o) {
|
|
3902
3907
|
case "dpcm":
|
|
3903
3908
|
return t / 2.54;
|
|
@@ -3908,7 +3913,7 @@ function ao(e) {
|
|
|
3908
3913
|
}
|
|
3909
3914
|
}
|
|
3910
3915
|
function io(e) {
|
|
3911
|
-
var t = parseFloat(e), o = String(e).match(
|
|
3916
|
+
var t = parseFloat(e), o = String(e).match(nr)[1];
|
|
3912
3917
|
switch (o) {
|
|
3913
3918
|
case "em":
|
|
3914
3919
|
return t * 16;
|
|
@@ -3928,10 +3933,10 @@ function io(e) {
|
|
|
3928
3933
|
return t;
|
|
3929
3934
|
}
|
|
3930
3935
|
}
|
|
3931
|
-
var
|
|
3932
|
-
function
|
|
3936
|
+
var rr = Dt.match, ro = typeof window < "u" ? window.matchMedia : null;
|
|
3937
|
+
function sr(e, t, o) {
|
|
3933
3938
|
var n = this, a;
|
|
3934
|
-
ro && !o && (a = ro.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
3939
|
+
ro && !o && (a = ro.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = rr(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = d;
|
|
3935
3940
|
function i(p) {
|
|
3936
3941
|
a && a.addListener(p);
|
|
3937
3942
|
}
|
|
@@ -3941,26 +3946,26 @@ function lr(e, t, o) {
|
|
|
3941
3946
|
function s(p) {
|
|
3942
3947
|
n.matches = p.matches, n.media = p.media;
|
|
3943
3948
|
}
|
|
3944
|
-
function
|
|
3949
|
+
function d() {
|
|
3945
3950
|
a && a.removeListener(s);
|
|
3946
3951
|
}
|
|
3947
3952
|
}
|
|
3948
|
-
function
|
|
3949
|
-
return new
|
|
3953
|
+
function pr(e, t, o) {
|
|
3954
|
+
return new sr(e, t, o);
|
|
3950
3955
|
}
|
|
3951
|
-
var
|
|
3952
|
-
const
|
|
3953
|
-
var
|
|
3954
|
-
function
|
|
3956
|
+
var lr = pr;
|
|
3957
|
+
const cr = /* @__PURE__ */ go(lr);
|
|
3958
|
+
var dr = /[A-Z]/g, ur = /^ms-/, bt = {};
|
|
3959
|
+
function mr(e) {
|
|
3955
3960
|
return "-" + e.toLowerCase();
|
|
3956
3961
|
}
|
|
3957
|
-
function
|
|
3962
|
+
function jo(e) {
|
|
3958
3963
|
if (bt.hasOwnProperty(e))
|
|
3959
3964
|
return bt[e];
|
|
3960
|
-
var t = e.replace(
|
|
3961
|
-
return bt[e] =
|
|
3965
|
+
var t = e.replace(dr, mr);
|
|
3966
|
+
return bt[e] = ur.test(t) ? "-" + t : t;
|
|
3962
3967
|
}
|
|
3963
|
-
function
|
|
3968
|
+
function _r(e, t) {
|
|
3964
3969
|
if (e === t)
|
|
3965
3970
|
return !0;
|
|
3966
3971
|
if (!e || !t)
|
|
@@ -3975,37 +3980,37 @@ function vr(e, t) {
|
|
|
3975
3980
|
}
|
|
3976
3981
|
return !0;
|
|
3977
3982
|
}
|
|
3978
|
-
const me =
|
|
3979
|
-
all:
|
|
3980
|
-
grid:
|
|
3981
|
-
aural:
|
|
3982
|
-
braille:
|
|
3983
|
-
handheld:
|
|
3984
|
-
print:
|
|
3985
|
-
projection:
|
|
3986
|
-
screen:
|
|
3987
|
-
tty:
|
|
3988
|
-
tv:
|
|
3989
|
-
embossed:
|
|
3990
|
-
},
|
|
3991
|
-
orientation:
|
|
3992
|
-
scan:
|
|
3993
|
-
aspectRatio:
|
|
3994
|
-
deviceAspectRatio:
|
|
3983
|
+
const me = N.oneOfType([N.string, N.number]), Do = {
|
|
3984
|
+
all: N.bool,
|
|
3985
|
+
grid: N.bool,
|
|
3986
|
+
aural: N.bool,
|
|
3987
|
+
braille: N.bool,
|
|
3988
|
+
handheld: N.bool,
|
|
3989
|
+
print: N.bool,
|
|
3990
|
+
projection: N.bool,
|
|
3991
|
+
screen: N.bool,
|
|
3992
|
+
tty: N.bool,
|
|
3993
|
+
tv: N.bool,
|
|
3994
|
+
embossed: N.bool
|
|
3995
|
+
}, fr = {
|
|
3996
|
+
orientation: N.oneOf(["portrait", "landscape"]),
|
|
3997
|
+
scan: N.oneOf(["progressive", "interlace"]),
|
|
3998
|
+
aspectRatio: N.string,
|
|
3999
|
+
deviceAspectRatio: N.string,
|
|
3995
4000
|
height: me,
|
|
3996
4001
|
deviceHeight: me,
|
|
3997
4002
|
width: me,
|
|
3998
4003
|
deviceWidth: me,
|
|
3999
|
-
color:
|
|
4000
|
-
colorIndex:
|
|
4001
|
-
monochrome:
|
|
4004
|
+
color: N.bool,
|
|
4005
|
+
colorIndex: N.bool,
|
|
4006
|
+
monochrome: N.bool,
|
|
4002
4007
|
resolution: me,
|
|
4003
|
-
type: Object.keys(
|
|
4004
|
-
}, { type:
|
|
4005
|
-
minAspectRatio:
|
|
4006
|
-
maxAspectRatio:
|
|
4007
|
-
minDeviceAspectRatio:
|
|
4008
|
-
maxDeviceAspectRatio:
|
|
4008
|
+
type: Object.keys(Do)
|
|
4009
|
+
}, { type: Zs, ...vr } = fr, gr = {
|
|
4010
|
+
minAspectRatio: N.string,
|
|
4011
|
+
maxAspectRatio: N.string,
|
|
4012
|
+
minDeviceAspectRatio: N.string,
|
|
4013
|
+
maxDeviceAspectRatio: N.string,
|
|
4009
4014
|
minHeight: me,
|
|
4010
4015
|
maxHeight: me,
|
|
4011
4016
|
minDeviceHeight: me,
|
|
@@ -4014,47 +4019,47 @@ const me = T.oneOfType([T.string, T.number]), Io = {
|
|
|
4014
4019
|
maxWidth: me,
|
|
4015
4020
|
minDeviceWidth: me,
|
|
4016
4021
|
maxDeviceWidth: me,
|
|
4017
|
-
minColor:
|
|
4018
|
-
maxColor:
|
|
4019
|
-
minColorIndex:
|
|
4020
|
-
maxColorIndex:
|
|
4021
|
-
minMonochrome:
|
|
4022
|
-
maxMonochrome:
|
|
4022
|
+
minColor: N.number,
|
|
4023
|
+
maxColor: N.number,
|
|
4024
|
+
minColorIndex: N.number,
|
|
4025
|
+
maxColorIndex: N.number,
|
|
4026
|
+
minMonochrome: N.number,
|
|
4027
|
+
maxMonochrome: N.number,
|
|
4023
4028
|
minResolution: me,
|
|
4024
4029
|
maxResolution: me,
|
|
4025
|
-
...
|
|
4026
|
-
},
|
|
4027
|
-
var
|
|
4028
|
-
all:
|
|
4030
|
+
...vr
|
|
4031
|
+
}, xr = { ...Do, ...gr };
|
|
4032
|
+
var hr = {
|
|
4033
|
+
all: xr
|
|
4029
4034
|
};
|
|
4030
|
-
const
|
|
4031
|
-
const o =
|
|
4032
|
-
return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ?
|
|
4033
|
-
},
|
|
4035
|
+
const br = (e) => `not ${e}`, yr = (e, t) => {
|
|
4036
|
+
const o = jo(e);
|
|
4037
|
+
return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ? br(o) : `(${o}: ${t})`;
|
|
4038
|
+
}, wr = (e) => e.join(" and "), kr = (e) => {
|
|
4034
4039
|
const t = [];
|
|
4035
|
-
return Object.keys(
|
|
4040
|
+
return Object.keys(hr.all).forEach((o) => {
|
|
4036
4041
|
const n = e[o];
|
|
4037
|
-
n != null && t.push(
|
|
4038
|
-
}),
|
|
4039
|
-
},
|
|
4040
|
-
const e =
|
|
4042
|
+
n != null && t.push(yr(o, n));
|
|
4043
|
+
}), wr(t);
|
|
4044
|
+
}, Cr = co(void 0), Tr = (e) => e.query || kr(e), so = (e) => e ? Object.keys(e).reduce((o, n) => (o[jo(n)] = e[n], o), {}) : void 0, Io = () => {
|
|
4045
|
+
const e = ve(!1);
|
|
4041
4046
|
return re(() => {
|
|
4042
4047
|
e.current = !0;
|
|
4043
4048
|
}, []), e.current;
|
|
4044
|
-
},
|
|
4045
|
-
const t = qo(
|
|
4049
|
+
}, Nr = (e) => {
|
|
4050
|
+
const t = qo(Cr), o = () => so(e) || so(t), [n, a] = le(o);
|
|
4046
4051
|
return re(() => {
|
|
4047
4052
|
const i = o();
|
|
4048
|
-
|
|
4053
|
+
_r(n, i) || a(i);
|
|
4049
4054
|
}, [e, t]), n;
|
|
4050
|
-
},
|
|
4051
|
-
const t = () =>
|
|
4055
|
+
}, Er = (e) => {
|
|
4056
|
+
const t = () => Tr(e), [o, n] = le(t);
|
|
4052
4057
|
return re(() => {
|
|
4053
4058
|
const a = t();
|
|
4054
4059
|
o !== a && n(a);
|
|
4055
4060
|
}, [e]), o;
|
|
4056
|
-
},
|
|
4057
|
-
const o = () =>
|
|
4061
|
+
}, Sr = (e, t) => {
|
|
4062
|
+
const o = () => cr(e, t || {}, !!t), [n, a] = le(o), i = Io();
|
|
4058
4063
|
return re(() => {
|
|
4059
4064
|
if (i) {
|
|
4060
4065
|
const r = o();
|
|
@@ -4063,7 +4068,7 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4063
4068
|
};
|
|
4064
4069
|
}
|
|
4065
4070
|
}, [e, t]), n;
|
|
4066
|
-
},
|
|
4071
|
+
}, Rr = (e) => {
|
|
4067
4072
|
const [t, o] = le(e.matches);
|
|
4068
4073
|
return re(() => {
|
|
4069
4074
|
const n = (a) => {
|
|
@@ -4074,15 +4079,15 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4074
4079
|
};
|
|
4075
4080
|
}, [e]), t;
|
|
4076
4081
|
}, yt = (e, t, o) => {
|
|
4077
|
-
const n =
|
|
4082
|
+
const n = Nr(t), a = Er(e);
|
|
4078
4083
|
if (!a)
|
|
4079
4084
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4080
|
-
const i =
|
|
4081
|
-
return
|
|
4085
|
+
const i = Sr(a, n), r = Rr(i);
|
|
4086
|
+
return Io(), re(() => {
|
|
4082
4087
|
}, [r]), re(() => () => {
|
|
4083
4088
|
i && i.dispose();
|
|
4084
4089
|
}, []), r;
|
|
4085
|
-
},
|
|
4090
|
+
}, Ar = (e) => {
|
|
4086
4091
|
const { desktop: t, tablet: o, mobile: n } = e, a = yt(t), i = yt(o), r = yt(n);
|
|
4087
4092
|
return {
|
|
4088
4093
|
device: {
|
|
@@ -4091,10 +4096,10 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4091
4096
|
isMobile: r
|
|
4092
4097
|
}
|
|
4093
4098
|
};
|
|
4094
|
-
},
|
|
4095
|
-
const { breakpoints: t, children: o } = e, { device: n } =
|
|
4096
|
-
return /* @__PURE__ */
|
|
4097
|
-
|
|
4099
|
+
}, Qs = (e) => {
|
|
4100
|
+
const { breakpoints: t, children: o } = e, { device: n } = Ar(t);
|
|
4101
|
+
return /* @__PURE__ */ u(
|
|
4102
|
+
Ji.Provider,
|
|
4098
4103
|
{
|
|
4099
4104
|
value: {
|
|
4100
4105
|
device: n
|
|
@@ -4102,16 +4107,21 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4102
4107
|
children: o
|
|
4103
4108
|
}
|
|
4104
4109
|
);
|
|
4105
|
-
},
|
|
4106
|
-
const { targetValue: t, duration: o =
|
|
4110
|
+
}, jr = 2e3, Dr = (e) => {
|
|
4111
|
+
const { targetValue: t, duration: o = jr, doneValue: n } = e, [a, i] = le(t), r = ve(), s = ve(0), d = ve(), p = ve(t), [m, l] = le(!1), v = ve();
|
|
4107
4112
|
return re(() => {
|
|
4108
4113
|
if (p.current = t, t === s.current) return;
|
|
4109
|
-
r.current && cancelAnimationFrame(r.current),
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4114
|
+
if (r.current && cancelAnimationFrame(r.current), t === n) {
|
|
4115
|
+
i(n), s.current = n;
|
|
4116
|
+
return;
|
|
4117
|
+
}
|
|
4118
|
+
s.current = a, d.current = performance.now();
|
|
4119
|
+
const b = (k) => {
|
|
4120
|
+
if (!d.current) return;
|
|
4121
|
+
const y = k - d.current, T = Math.min(y / o, 1), A = T < 0.5 ? 4 * T * T * T : 1 - Math.pow(-2 * T + 2, 3) / 2, M = s.current + (p.current - s.current) * A, j = Math.max(0, Math.floor(M));
|
|
4122
|
+
i(j), T < 1 && (r.current = requestAnimationFrame(b));
|
|
4113
4123
|
};
|
|
4114
|
-
return r.current = requestAnimationFrame(
|
|
4124
|
+
return r.current = requestAnimationFrame(b), () => {
|
|
4115
4125
|
r.current && cancelAnimationFrame(r.current);
|
|
4116
4126
|
};
|
|
4117
4127
|
}, [t, o, n]), re(() => (a === n ? v.current = window.setTimeout(() => {
|
|
@@ -4122,17 +4132,17 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4122
4132
|
animatedValue: a,
|
|
4123
4133
|
isLoading: m
|
|
4124
4134
|
};
|
|
4125
|
-
},
|
|
4126
|
-
progressWrapper:
|
|
4127
|
-
progressWrapper_loading:
|
|
4128
|
-
progressWrapper__childrenWrapper:
|
|
4129
|
-
progressWrapper__childrenWrapper_loading:
|
|
4135
|
+
}, Ir = "_progressWrapper_xn9s0_44", Lr = "_progressWrapper_loading_xn9s0_47", Fr = "_progressWrapper__childrenWrapper_xn9s0_52", Or = "_progressWrapper__childrenWrapper_loading_xn9s0_58", zr = "_pulse_xn9s0_1", Pr = "_progressWrapper__progressBadge_xn9s0_64", Br = "_progressWrapper__progressBadge_loading_xn9s0_75", Re = {
|
|
4136
|
+
progressWrapper: Ir,
|
|
4137
|
+
progressWrapper_loading: Lr,
|
|
4138
|
+
progressWrapper__childrenWrapper: Fr,
|
|
4139
|
+
progressWrapper__childrenWrapper_loading: Or,
|
|
4130
4140
|
"progressWrapper__childrenWrapper--animated-pulse": "_progressWrapper__childrenWrapper--animated-pulse_xn9s0_58",
|
|
4131
|
-
pulse:
|
|
4141
|
+
pulse: zr,
|
|
4132
4142
|
"progressWrapper__childrenWrapper--animated-backgroundProgress": "_progressWrapper__childrenWrapper--animated-backgroundProgress_xn9s0_61",
|
|
4133
|
-
progressWrapper__progressBadge:
|
|
4134
|
-
progressWrapper__progressBadge_loading:
|
|
4135
|
-
},
|
|
4143
|
+
progressWrapper__progressBadge: Pr,
|
|
4144
|
+
progressWrapper__progressBadge_loading: Br
|
|
4145
|
+
}, Js = (e) => {
|
|
4136
4146
|
const {
|
|
4137
4147
|
value: t,
|
|
4138
4148
|
classNameRoot: o,
|
|
@@ -4141,7 +4151,7 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4141
4151
|
children: i,
|
|
4142
4152
|
doneValue: r = 100,
|
|
4143
4153
|
animationVariant: s = "backgroundProgress"
|
|
4144
|
-
} = e, { animatedValue:
|
|
4154
|
+
} = e, { animatedValue: d, isLoading: p } = Dr({
|
|
4145
4155
|
targetValue: t,
|
|
4146
4156
|
duration: a,
|
|
4147
4157
|
doneValue: r
|
|
@@ -4157,39 +4167,39 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4157
4167
|
[Re.progressWrapper__childrenWrapper]: !0,
|
|
4158
4168
|
[Re[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
4159
4169
|
[Re.progressWrapper__childrenWrapper_loading]: p
|
|
4160
|
-
}),
|
|
4161
|
-
"--progress": `${
|
|
4170
|
+
}), b = {
|
|
4171
|
+
"--progress": `${d / r * 100}%`
|
|
4162
4172
|
};
|
|
4163
4173
|
return /* @__PURE__ */ H("div", { className: m, children: [
|
|
4164
|
-
/* @__PURE__ */
|
|
4174
|
+
/* @__PURE__ */ u(
|
|
4165
4175
|
"div",
|
|
4166
4176
|
{
|
|
4167
4177
|
className: v,
|
|
4168
|
-
style: s === "backgroundProgress" ?
|
|
4178
|
+
style: s === "backgroundProgress" ? b : void 0,
|
|
4169
4179
|
children: i
|
|
4170
4180
|
}
|
|
4171
4181
|
),
|
|
4172
4182
|
p && /* @__PURE__ */ H(Ne, { classNameRoot: l, children: [
|
|
4173
|
-
|
|
4183
|
+
d,
|
|
4174
4184
|
"%"
|
|
4175
4185
|
] })
|
|
4176
4186
|
] });
|
|
4177
|
-
},
|
|
4178
|
-
spSelect:
|
|
4187
|
+
}, Wr = 180, Mr = "_spSelect_140u6_43", qr = "_spSelect_error_140u6_48", $r = "_spSelect__control_140u6_48", Ur = "_spSelect__value_empty_140u6_52", Hr = "_spSelect__icon_140u6_55", Vr = "_spSelect__container_140u6_58", Yr = "_spSelect__control_filled_140u6_78", Gr = "_spSelect__control_outlined_140u6_82", Kr = "_spSelect__control_disabled_140u6_107", Xr = "_spSelect__value_140u6_52", Zr = "_spSelect__list_140u6_138", Qr = "_spSelect__list_scrollable_140u6_145", Jr = "_spSelect__option_140u6_161", es = "_spSelect__error_140u6_179", he = {
|
|
4188
|
+
spSelect: Mr,
|
|
4179
4189
|
spSelect_error: qr,
|
|
4180
|
-
spSelect__control:
|
|
4181
|
-
spSelect__value_empty:
|
|
4182
|
-
spSelect__icon:
|
|
4183
|
-
spSelect__container:
|
|
4184
|
-
spSelect__control_filled:
|
|
4185
|
-
spSelect__control_outlined:
|
|
4186
|
-
spSelect__control_disabled:
|
|
4187
|
-
spSelect__value:
|
|
4188
|
-
spSelect__list:
|
|
4189
|
-
spSelect__list_scrollable:
|
|
4190
|
-
spSelect__option:
|
|
4191
|
-
spSelect__error:
|
|
4192
|
-
},
|
|
4190
|
+
spSelect__control: $r,
|
|
4191
|
+
spSelect__value_empty: Ur,
|
|
4192
|
+
spSelect__icon: Hr,
|
|
4193
|
+
spSelect__container: Vr,
|
|
4194
|
+
spSelect__control_filled: Yr,
|
|
4195
|
+
spSelect__control_outlined: Gr,
|
|
4196
|
+
spSelect__control_disabled: Kr,
|
|
4197
|
+
spSelect__value: Xr,
|
|
4198
|
+
spSelect__list: Zr,
|
|
4199
|
+
spSelect__list_scrollable: Qr,
|
|
4200
|
+
spSelect__option: Jr,
|
|
4201
|
+
spSelect__error: es
|
|
4202
|
+
}, ep = (e) => {
|
|
4193
4203
|
const {
|
|
4194
4204
|
options: t,
|
|
4195
4205
|
placeholder: o = "Выберите из списка...",
|
|
@@ -4198,65 +4208,65 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4198
4208
|
variant: i = "outlined",
|
|
4199
4209
|
onChange: r,
|
|
4200
4210
|
onMouseEnter: s,
|
|
4201
|
-
error:
|
|
4211
|
+
error: d,
|
|
4202
4212
|
label: p,
|
|
4203
4213
|
infoTooltipText: m,
|
|
4204
4214
|
tooltipPosition: l,
|
|
4205
4215
|
disabled: v,
|
|
4206
|
-
required:
|
|
4207
|
-
maxHeightList:
|
|
4208
|
-
isVisibleDefaultTitle:
|
|
4209
|
-
isScrollableList:
|
|
4210
|
-
classNameRoot:
|
|
4216
|
+
required: b,
|
|
4217
|
+
maxHeightList: k = Wr,
|
|
4218
|
+
isVisibleDefaultTitle: y = !0,
|
|
4219
|
+
isScrollableList: T = !1,
|
|
4220
|
+
classNameRoot: A,
|
|
4211
4221
|
classNameError: M,
|
|
4212
4222
|
classNameLabel: j,
|
|
4213
|
-
classNameBaseTooltipRoot:
|
|
4214
|
-
} = e, [c,
|
|
4215
|
-
|
|
4223
|
+
classNameBaseTooltipRoot: w
|
|
4224
|
+
} = e, [c, S] = le(!1), P = ve(null);
|
|
4225
|
+
fo(
|
|
4216
4226
|
[P],
|
|
4217
4227
|
() => {
|
|
4218
|
-
|
|
4228
|
+
S(!1);
|
|
4219
4229
|
},
|
|
4220
4230
|
c
|
|
4221
4231
|
);
|
|
4222
4232
|
const L = t.find((_) => _.value === n), Q = (_, h) => {
|
|
4223
|
-
r(_, { value: h, name: a }),
|
|
4233
|
+
r(_, { value: h, name: a }), S(!1);
|
|
4224
4234
|
}, te = () => {
|
|
4225
|
-
v ||
|
|
4235
|
+
v || S(!c);
|
|
4226
4236
|
}, ee = f({
|
|
4227
|
-
[
|
|
4228
|
-
[
|
|
4229
|
-
...
|
|
4237
|
+
[he.spSelect]: !0,
|
|
4238
|
+
[he.spSelect_error]: !!d,
|
|
4239
|
+
...A && { [A]: !0 }
|
|
4230
4240
|
}), ae = f({
|
|
4231
|
-
[
|
|
4241
|
+
[he.spSelect__container]: !0
|
|
4232
4242
|
}), se = f({
|
|
4233
|
-
[
|
|
4234
|
-
[
|
|
4235
|
-
[
|
|
4243
|
+
[he.spSelect__control]: !0,
|
|
4244
|
+
[he[`spSelect__control_${i}`]]: i,
|
|
4245
|
+
[he.spSelect__control_disabled]: v
|
|
4236
4246
|
}), K = f({
|
|
4237
|
-
[
|
|
4238
|
-
[
|
|
4247
|
+
[he.spSelect__value]: !0,
|
|
4248
|
+
[he.spSelect__value_empty]: !L
|
|
4239
4249
|
}), Z = f({
|
|
4240
|
-
[
|
|
4241
|
-
}),
|
|
4242
|
-
[
|
|
4243
|
-
[
|
|
4244
|
-
}),
|
|
4250
|
+
[he.spSelect__icon]: !0
|
|
4251
|
+
}), C = f({
|
|
4252
|
+
[he.spSelect__list]: !0,
|
|
4253
|
+
[he.spSelect__list_scrollable]: T
|
|
4254
|
+
}), q = f({
|
|
4245
4255
|
...j && { [j]: !0 }
|
|
4246
4256
|
}), X = f({
|
|
4247
|
-
[
|
|
4257
|
+
[he.spSelect__error]: !0,
|
|
4248
4258
|
...M && { [M]: !0 }
|
|
4249
4259
|
});
|
|
4250
4260
|
return /* @__PURE__ */ H("div", { className: ee, ref: P, children: [
|
|
4251
|
-
p && /* @__PURE__ */
|
|
4261
|
+
p && /* @__PURE__ */ u(
|
|
4252
4262
|
jt,
|
|
4253
4263
|
{
|
|
4254
|
-
classNameRoot:
|
|
4264
|
+
classNameRoot: q,
|
|
4255
4265
|
tooltipPosition: l,
|
|
4256
|
-
required:
|
|
4266
|
+
required: b,
|
|
4257
4267
|
label: p,
|
|
4258
4268
|
infoTooltipText: m,
|
|
4259
|
-
classNameBaseTooltipRoot:
|
|
4269
|
+
classNameBaseTooltipRoot: w
|
|
4260
4270
|
}
|
|
4261
4271
|
),
|
|
4262
4272
|
/* @__PURE__ */ H("div", { className: ae, onMouseEnter: s, children: [
|
|
@@ -4264,13 +4274,13 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4264
4274
|
"div",
|
|
4265
4275
|
{
|
|
4266
4276
|
tabIndex: v ? -1 : 0,
|
|
4267
|
-
title:
|
|
4277
|
+
title: y ? n : void 0,
|
|
4268
4278
|
className: se,
|
|
4269
4279
|
onClick: te,
|
|
4270
4280
|
children: [
|
|
4271
|
-
/* @__PURE__ */
|
|
4272
|
-
/* @__PURE__ */
|
|
4273
|
-
|
|
4281
|
+
/* @__PURE__ */ u("div", { className: K, children: (L == null ? void 0 : L.label) || o }),
|
|
4282
|
+
/* @__PURE__ */ u(
|
|
4283
|
+
be,
|
|
4274
4284
|
{
|
|
4275
4285
|
name: ue.SelectChevronDown,
|
|
4276
4286
|
rotate: c ? 180 : void 0,
|
|
@@ -4280,23 +4290,23 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4280
4290
|
]
|
|
4281
4291
|
}
|
|
4282
4292
|
),
|
|
4283
|
-
c && /* @__PURE__ */
|
|
4293
|
+
c && /* @__PURE__ */ u(
|
|
4284
4294
|
"div",
|
|
4285
4295
|
{
|
|
4286
|
-
className:
|
|
4287
|
-
style:
|
|
4296
|
+
className: C,
|
|
4297
|
+
style: T ? { maxHeight: `${k}px` } : {},
|
|
4288
4298
|
children: t.map((_) => {
|
|
4289
4299
|
const h = _.value === n;
|
|
4290
4300
|
return /* @__PURE__ */ H(
|
|
4291
4301
|
"div",
|
|
4292
4302
|
{
|
|
4293
4303
|
className: f({
|
|
4294
|
-
[
|
|
4304
|
+
[he.spSelect__option]: !0
|
|
4295
4305
|
}),
|
|
4296
4306
|
onClick: (F) => Q(F, _.value),
|
|
4297
4307
|
children: [
|
|
4298
4308
|
_.label,
|
|
4299
|
-
h && /* @__PURE__ */
|
|
4309
|
+
h && /* @__PURE__ */ u(be, { name: ue.Check, className: Z })
|
|
4300
4310
|
]
|
|
4301
4311
|
},
|
|
4302
4312
|
_.value
|
|
@@ -4305,91 +4315,91 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4305
4315
|
}
|
|
4306
4316
|
)
|
|
4307
4317
|
] }),
|
|
4308
|
-
|
|
4318
|
+
d && /* @__PURE__ */ u("div", { className: X, children: d })
|
|
4309
4319
|
] });
|
|
4310
|
-
},
|
|
4311
|
-
skeleton:
|
|
4312
|
-
},
|
|
4320
|
+
}, ts = "_skeleton_1u7gu_43", os = {
|
|
4321
|
+
skeleton: ts
|
|
4322
|
+
}, tp = (e) => {
|
|
4313
4323
|
const { width: t = "100%", height: o = "1rem", circle: n = !1, classNameRoot: a = "", style: i = {} } = e, r = {
|
|
4314
4324
|
width: t,
|
|
4315
4325
|
height: o,
|
|
4316
4326
|
borderRadius: n ? "50%" : "0",
|
|
4317
4327
|
...i
|
|
4318
4328
|
};
|
|
4319
|
-
return /* @__PURE__ */
|
|
4320
|
-
},
|
|
4321
|
-
spTable:
|
|
4322
|
-
spTable__tdContentCopyIcon:
|
|
4323
|
-
spTable__tdContent:
|
|
4324
|
-
spTable__tdColorContent:
|
|
4325
|
-
spTable__tdContentCopyIcon_copied:
|
|
4326
|
-
spTable__emptyPage:
|
|
4327
|
-
spStringsGroup:
|
|
4328
|
-
spStringsGroup__groupItem:
|
|
4329
|
-
spStringsGroup__groupItemHeader:
|
|
4330
|
-
spStringsGroup__groupItemContent:
|
|
4331
|
-
spStringsGroup__groupItemContentCopyIcon:
|
|
4332
|
-
spStringsGroup__groupItemContentCopyIcon_copied:
|
|
4333
|
-
},
|
|
4329
|
+
return /* @__PURE__ */ u("div", { style: r, className: f(a, os.skeleton) });
|
|
4330
|
+
}, po = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, ns = "_spTable_1vuaj_43", as = "_spTable__tdContentCopyIcon_1vuaj_62", is = "_spTable__tdContent_1vuaj_62", rs = "_spTable__tdColorContent_1vuaj_72", ss = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ps = "_spTable__emptyPage_1vuaj_89", ls = "_spStringsGroup_1vuaj_105", cs = "_spStringsGroup__groupItem_1vuaj_119", ds = "_spStringsGroup__groupItemHeader_1vuaj_134", us = "_spStringsGroup__groupItemContent_1vuaj_138", ms = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", _s = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", ye = {
|
|
4331
|
+
spTable: ns,
|
|
4332
|
+
spTable__tdContentCopyIcon: as,
|
|
4333
|
+
spTable__tdContent: is,
|
|
4334
|
+
spTable__tdColorContent: rs,
|
|
4335
|
+
spTable__tdContentCopyIcon_copied: ss,
|
|
4336
|
+
spTable__emptyPage: ps,
|
|
4337
|
+
spStringsGroup: ls,
|
|
4338
|
+
spStringsGroup__groupItem: cs,
|
|
4339
|
+
spStringsGroup__groupItemHeader: ds,
|
|
4340
|
+
spStringsGroup__groupItemContent: us,
|
|
4341
|
+
spStringsGroup__groupItemContentCopyIcon: ms,
|
|
4342
|
+
spStringsGroup__groupItemContentCopyIcon_copied: _s
|
|
4343
|
+
}, op = (e) => {
|
|
4334
4344
|
const {
|
|
4335
4345
|
columns: t,
|
|
4336
4346
|
data: o,
|
|
4337
4347
|
isNotTableOnNotDesktop: n = !1,
|
|
4338
4348
|
isDesktop: a = !0,
|
|
4339
4349
|
classNameRoot: i
|
|
4340
|
-
} = e, r = t.map((
|
|
4341
|
-
...
|
|
4342
|
-
isVisible: o.some((c) => !!c[
|
|
4343
|
-
} :
|
|
4350
|
+
} = e, r = t.map((w) => o ? {
|
|
4351
|
+
...w,
|
|
4352
|
+
isVisible: o.some((c) => !!c[w.key])
|
|
4353
|
+
} : w).filter((w) => w.isVisible), s = f({
|
|
4344
4354
|
[ye.spTable]: !0,
|
|
4345
4355
|
...i && { [i]: !0 }
|
|
4346
|
-
}),
|
|
4356
|
+
}), d = f({
|
|
4347
4357
|
[ye.spTable__tdContent]: !0
|
|
4348
4358
|
}), p = f({
|
|
4349
4359
|
[ye.spTable__tdColorContent]: !0
|
|
4350
4360
|
}), m = f({
|
|
4351
4361
|
[ye.spTable__emptyPage]: !0
|
|
4352
|
-
}), [l, v] = le(null),
|
|
4353
|
-
const { text: c, rowIndex:
|
|
4354
|
-
(l == null ? void 0 : l.rowIndex) ===
|
|
4355
|
-
v({ rowIndex:
|
|
4362
|
+
}), [l, v] = le(null), b = (w) => {
|
|
4363
|
+
const { text: c, rowIndex: S, colIndex: P } = w;
|
|
4364
|
+
(l == null ? void 0 : l.rowIndex) === S && (l == null ? void 0 : l.colIndex) === P || navigator.clipboard.writeText(c).then(() => {
|
|
4365
|
+
v({ rowIndex: S, colIndex: P });
|
|
4356
4366
|
}).catch((L) => {
|
|
4357
4367
|
console.error("Ошибка при копировании:", L);
|
|
4358
4368
|
});
|
|
4359
|
-
},
|
|
4369
|
+
}, k = () => {
|
|
4360
4370
|
v(null);
|
|
4361
|
-
},
|
|
4362
|
-
row:
|
|
4371
|
+
}, y = () => /* @__PURE__ */ u("div", { className: m, children: "Данные отсутствуют" }), T = ({
|
|
4372
|
+
row: w,
|
|
4363
4373
|
col: c
|
|
4364
4374
|
}) => {
|
|
4365
|
-
const
|
|
4366
|
-
if (!
|
|
4367
|
-
const [P, L] =
|
|
4375
|
+
const S = w[c.key];
|
|
4376
|
+
if (!S) return null;
|
|
4377
|
+
const [P, L] = S.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4368
4378
|
return /* @__PURE__ */ H("span", { children: [
|
|
4369
4379
|
P,
|
|
4370
|
-
L && /* @__PURE__ */
|
|
4380
|
+
L && /* @__PURE__ */ u("span", { className: p, children: ` ${L}` })
|
|
4371
4381
|
] });
|
|
4372
|
-
},
|
|
4373
|
-
/* @__PURE__ */
|
|
4382
|
+
}, A = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ H("table", { className: s, children: [
|
|
4383
|
+
/* @__PURE__ */ u("colgroup", { children: r.map((w, c, S) => /* @__PURE__ */ u(
|
|
4374
4384
|
"col",
|
|
4375
4385
|
{
|
|
4376
4386
|
style: {
|
|
4377
|
-
width: `calc(100%/${
|
|
4387
|
+
width: `calc(100%/${S.length})`
|
|
4378
4388
|
}
|
|
4379
4389
|
},
|
|
4380
4390
|
c
|
|
4381
4391
|
)) }),
|
|
4382
|
-
/* @__PURE__ */
|
|
4383
|
-
/* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", { children: r.map((w, c) => /* @__PURE__ */ u("th", { children: w.title }, c)) }) }),
|
|
4393
|
+
/* @__PURE__ */ u("tbody", { children: o.map((w, c) => w ? /* @__PURE__ */ u("tr", { children: r.map((S, P) => {
|
|
4384
4394
|
const L = (l == null ? void 0 : l.rowIndex) === c && (l == null ? void 0 : l.colIndex) === P;
|
|
4385
|
-
return /* @__PURE__ */
|
|
4395
|
+
return /* @__PURE__ */ u(
|
|
4386
4396
|
"td",
|
|
4387
4397
|
{
|
|
4388
|
-
onMouseLeave: L ?
|
|
4389
|
-
children: /* @__PURE__ */ H("div", { className:
|
|
4390
|
-
/* @__PURE__ */
|
|
4391
|
-
!
|
|
4392
|
-
|
|
4398
|
+
onMouseLeave: L ? k : void 0,
|
|
4399
|
+
children: /* @__PURE__ */ H("div", { className: d, children: [
|
|
4400
|
+
/* @__PURE__ */ u("span", { children: S.isColorContentsCurlyBrackets ? T({ row: w, col: S }) : w[S.key] }),
|
|
4401
|
+
!po(w[S.key]) && S.isBeCopiedValue && /* @__PURE__ */ u(
|
|
4402
|
+
be,
|
|
4393
4403
|
{
|
|
4394
4404
|
className: f({
|
|
4395
4405
|
[ye.spTable__tdContentCopyIcon]: !0,
|
|
@@ -4397,9 +4407,9 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4397
4407
|
}),
|
|
4398
4408
|
name: L ? ue.Check : ue.Copy,
|
|
4399
4409
|
onClick: () => {
|
|
4400
|
-
const Q =
|
|
4410
|
+
const Q = w[S.key];
|
|
4401
4411
|
if (!Q) return null;
|
|
4402
|
-
|
|
4412
|
+
b({
|
|
4403
4413
|
text: Q,
|
|
4404
4414
|
rowIndex: c,
|
|
4405
4415
|
colIndex: P
|
|
@@ -4412,14 +4422,14 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4412
4422
|
`${c}:${P}`
|
|
4413
4423
|
);
|
|
4414
4424
|
}) }, c) : null) })
|
|
4415
|
-
] }) :
|
|
4425
|
+
] }) : y(), M = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ u(
|
|
4416
4426
|
"div",
|
|
4417
4427
|
{
|
|
4418
4428
|
className: f({
|
|
4419
4429
|
[ye.spStringsGroup]: !0
|
|
4420
4430
|
}),
|
|
4421
|
-
children: o.map((
|
|
4422
|
-
if (
|
|
4431
|
+
children: o.map((w, c) => w ? /* @__PURE__ */ u("div", { children: r.map((S, P) => {
|
|
4432
|
+
if (po(w[S.key]))
|
|
4423
4433
|
return null;
|
|
4424
4434
|
const L = (l == null ? void 0 : l.rowIndex) === c && (l == null ? void 0 : l.colIndex) === P;
|
|
4425
4435
|
return /* @__PURE__ */ H(
|
|
@@ -4428,15 +4438,15 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4428
4438
|
className: f({
|
|
4429
4439
|
[ye.spStringsGroup__groupItem]: !0
|
|
4430
4440
|
}),
|
|
4431
|
-
onMouseLeave: L ?
|
|
4441
|
+
onMouseLeave: L ? k : void 0,
|
|
4432
4442
|
children: [
|
|
4433
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ u(
|
|
4434
4444
|
"div",
|
|
4435
4445
|
{
|
|
4436
4446
|
className: f({
|
|
4437
4447
|
[ye.spStringsGroup__groupItemHeader]: !0
|
|
4438
4448
|
}),
|
|
4439
|
-
children:
|
|
4449
|
+
children: S.title
|
|
4440
4450
|
}
|
|
4441
4451
|
),
|
|
4442
4452
|
/* @__PURE__ */ H(
|
|
@@ -4446,9 +4456,9 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4446
4456
|
[ye.spStringsGroup__groupItemContent]: !0
|
|
4447
4457
|
}),
|
|
4448
4458
|
children: [
|
|
4449
|
-
/* @__PURE__ */
|
|
4450
|
-
|
|
4451
|
-
|
|
4459
|
+
/* @__PURE__ */ u("span", { children: S.isColorContentsCurlyBrackets ? T({ row: w, col: S }) : w[S.key] }),
|
|
4460
|
+
S.isBeCopiedValue && /* @__PURE__ */ u(
|
|
4461
|
+
be,
|
|
4452
4462
|
{
|
|
4453
4463
|
className: f({
|
|
4454
4464
|
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
@@ -4456,9 +4466,9 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4456
4466
|
}),
|
|
4457
4467
|
name: L ? ue.Check : ue.Copy,
|
|
4458
4468
|
onClick: () => {
|
|
4459
|
-
const Q =
|
|
4469
|
+
const Q = w[S.key];
|
|
4460
4470
|
if (!Q) return null;
|
|
4461
|
-
|
|
4471
|
+
b({
|
|
4462
4472
|
text: Q,
|
|
4463
4473
|
rowIndex: c,
|
|
4464
4474
|
colIndex: P
|
|
@@ -4475,19 +4485,19 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4475
4485
|
);
|
|
4476
4486
|
}) }, c) : null)
|
|
4477
4487
|
}
|
|
4478
|
-
) :
|
|
4479
|
-
return n ? a ?
|
|
4480
|
-
},
|
|
4481
|
-
spTabs:
|
|
4482
|
-
spTabs_separated:
|
|
4488
|
+
) : y();
|
|
4489
|
+
return n ? a ? A() : M() : A();
|
|
4490
|
+
}, fs = "_spTabs_1citb_43", vs = "_spTabs_separated_1citb_48", gs = "_spTabs__tabElement_1citb_48", xs = "_spTabs__tabElement_active_1citb_83", hs = "_spTabs__triggerTooltip_1citb_90", Ae = {
|
|
4491
|
+
spTabs: fs,
|
|
4492
|
+
spTabs_separated: vs,
|
|
4483
4493
|
"spTabs--size-md": "_spTabs--size-md_1citb_48",
|
|
4484
4494
|
spTabs__tabElement: gs,
|
|
4485
4495
|
"spTabs--size-lg": "_spTabs--size-lg_1citb_51",
|
|
4486
4496
|
"spTabs--variant-contained": "_spTabs--variant-contained_1citb_54",
|
|
4487
|
-
spTabs__tabElement_active:
|
|
4488
|
-
spTabs__triggerTooltip:
|
|
4497
|
+
spTabs__tabElement_active: xs,
|
|
4498
|
+
spTabs__triggerTooltip: hs,
|
|
4489
4499
|
"spTabs--variant-filled": "_spTabs--variant-filled_1citb_93"
|
|
4490
|
-
},
|
|
4500
|
+
}, np = (e) => {
|
|
4491
4501
|
const {
|
|
4492
4502
|
panes: t,
|
|
4493
4503
|
isSeparated: o = !1,
|
|
@@ -4501,7 +4511,7 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4501
4511
|
[Ae[`spTabs--variant-${i}`]]: i,
|
|
4502
4512
|
[Ae[`spTabs--size-${r}`]]: r,
|
|
4503
4513
|
...n && { [n]: !0 }
|
|
4504
|
-
}),
|
|
4514
|
+
}), d = f({
|
|
4505
4515
|
[Ae.spTabs__triggerTooltip]: !0
|
|
4506
4516
|
}), p = () => {
|
|
4507
4517
|
switch (r) {
|
|
@@ -4511,23 +4521,23 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4511
4521
|
return "p1";
|
|
4512
4522
|
}
|
|
4513
4523
|
};
|
|
4514
|
-
return /* @__PURE__ */
|
|
4515
|
-
const { name: v, active:
|
|
4524
|
+
return /* @__PURE__ */ u("div", { className: s, children: t.map((m, l) => {
|
|
4525
|
+
const { name: v, active: b, onClick: k, infoTooltipText: y } = m;
|
|
4516
4526
|
return /* @__PURE__ */ H(
|
|
4517
4527
|
"div",
|
|
4518
4528
|
{
|
|
4519
4529
|
className: f({
|
|
4520
4530
|
[Ae.spTabs__tabElement]: !0,
|
|
4521
|
-
[Ae.spTabs__tabElement_active]:
|
|
4531
|
+
[Ae.spTabs__tabElement_active]: b
|
|
4522
4532
|
}),
|
|
4523
|
-
onClick:
|
|
4533
|
+
onClick: k,
|
|
4524
4534
|
children: [
|
|
4525
|
-
/* @__PURE__ */
|
|
4526
|
-
!!
|
|
4535
|
+
/* @__PURE__ */ u(Ne, { type: p(), children: v }),
|
|
4536
|
+
!!y && /* @__PURE__ */ u(
|
|
4527
4537
|
Je,
|
|
4528
4538
|
{
|
|
4529
|
-
classNameTriggerTooltip:
|
|
4530
|
-
text:
|
|
4539
|
+
classNameTriggerTooltip: d,
|
|
4540
|
+
text: y,
|
|
4531
4541
|
classNameBaseTooltipRoot: a
|
|
4532
4542
|
}
|
|
4533
4543
|
)
|
|
@@ -4536,37 +4546,37 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4536
4546
|
m.key || l
|
|
4537
4547
|
);
|
|
4538
4548
|
}) });
|
|
4539
|
-
},
|
|
4540
|
-
spTextWithLabel:
|
|
4541
|
-
},
|
|
4549
|
+
}, bs = "_spTextWithLabel_1dr7p_1", ys = {
|
|
4550
|
+
spTextWithLabel: bs
|
|
4551
|
+
}, ap = (e) => {
|
|
4542
4552
|
const { children: t, label: o, style: n, ...a } = e;
|
|
4543
|
-
return /* @__PURE__ */ H("div", { className:
|
|
4544
|
-
/* @__PURE__ */
|
|
4545
|
-
/* @__PURE__ */
|
|
4553
|
+
return /* @__PURE__ */ H("div", { className: ys.spTextWithLabel, style: { ...n }, children: [
|
|
4554
|
+
/* @__PURE__ */ u(jt, { label: o }),
|
|
4555
|
+
/* @__PURE__ */ u(Ne, { ...a, children: t })
|
|
4546
4556
|
] });
|
|
4547
|
-
},
|
|
4548
|
-
spUploadFiles:
|
|
4549
|
-
spUploadFiles_error:
|
|
4550
|
-
spUploadFiles__control:
|
|
4557
|
+
}, ws = "_spUploadFiles_isuxw_43", ks = "_spUploadFiles_error_isuxw_49", Cs = "_spUploadFiles__control_isuxw_49", Ts = "_spUploadFiles__placeholder_isuxw_57", Ns = "_spUploadFiles__control_loading_isuxw_71", Es = "_shimmer_isuxw_1", Ss = "_spUploadFiles__fileName_isuxw_86", Rs = "_spUploadFiles_fileUploaded_isuxw_118", As = "_spUploadFiles_disabled_isuxw_118", js = "_spUploadFiles__fileNamesList_isuxw_129", Ds = "_spUploadFiles__fileNamesList_loading_isuxw_138", Is = "_spUploadFiles__fileNamesListItem_isuxw_143", Ls = "_spUploadFiles__fileNamesListItem__triggerTooltip_isuxw_162", Fs = "_spUploadFiles__fileNamesListItemDelete_isuxw_165", Os = "_spUploadFiles__tooltipWrapper_isuxw_180", zs = "_spUploadFiles__tooltip_isuxw_180", Ps = "_spUploadFiles__delete_isuxw_186", Bs = "_spUploadFiles__delete_loading_isuxw_190", Ws = "_spUploadFiles__error_isuxw_199", ne = {
|
|
4558
|
+
spUploadFiles: ws,
|
|
4559
|
+
spUploadFiles_error: ks,
|
|
4560
|
+
spUploadFiles__control: Cs,
|
|
4551
4561
|
"spUploadFiles--variant-input": "_spUploadFiles--variant-input_isuxw_53",
|
|
4552
|
-
spUploadFiles__placeholder:
|
|
4562
|
+
spUploadFiles__placeholder: Ts,
|
|
4553
4563
|
"spUploadFiles--variant-dropzone": "_spUploadFiles--variant-dropzone_isuxw_65",
|
|
4554
|
-
spUploadFiles__control_loading:
|
|
4555
|
-
shimmer:
|
|
4556
|
-
spUploadFiles__fileName:
|
|
4557
|
-
spUploadFiles_fileUploaded:
|
|
4558
|
-
spUploadFiles_disabled:
|
|
4559
|
-
spUploadFiles__fileNamesList:
|
|
4560
|
-
spUploadFiles__fileNamesList_loading:
|
|
4561
|
-
spUploadFiles__fileNamesListItem:
|
|
4562
|
-
spUploadFiles__fileNamesListItem__triggerTooltip:
|
|
4563
|
-
spUploadFiles__fileNamesListItemDelete:
|
|
4564
|
-
spUploadFiles__tooltipWrapper:
|
|
4565
|
-
spUploadFiles__tooltip:
|
|
4566
|
-
spUploadFiles__delete:
|
|
4567
|
-
spUploadFiles__delete_loading:
|
|
4568
|
-
spUploadFiles__error:
|
|
4569
|
-
},
|
|
4564
|
+
spUploadFiles__control_loading: Ns,
|
|
4565
|
+
shimmer: Es,
|
|
4566
|
+
spUploadFiles__fileName: Ss,
|
|
4567
|
+
spUploadFiles_fileUploaded: Rs,
|
|
4568
|
+
spUploadFiles_disabled: As,
|
|
4569
|
+
spUploadFiles__fileNamesList: js,
|
|
4570
|
+
spUploadFiles__fileNamesList_loading: Ds,
|
|
4571
|
+
spUploadFiles__fileNamesListItem: Is,
|
|
4572
|
+
spUploadFiles__fileNamesListItem__triggerTooltip: Ls,
|
|
4573
|
+
spUploadFiles__fileNamesListItemDelete: Fs,
|
|
4574
|
+
spUploadFiles__tooltipWrapper: Os,
|
|
4575
|
+
spUploadFiles__tooltip: zs,
|
|
4576
|
+
spUploadFiles__delete: Ps,
|
|
4577
|
+
spUploadFiles__delete_loading: Bs,
|
|
4578
|
+
spUploadFiles__error: Ws
|
|
4579
|
+
}, ip = (e) => {
|
|
4570
4580
|
const {
|
|
4571
4581
|
placeholder: t = "Загрузите файл",
|
|
4572
4582
|
variant: o = "input",
|
|
@@ -4575,39 +4585,39 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4575
4585
|
maxSize: i,
|
|
4576
4586
|
accept: r,
|
|
4577
4587
|
disabled: s,
|
|
4578
|
-
multiple:
|
|
4588
|
+
multiple: d,
|
|
4579
4589
|
maxFiles: p,
|
|
4580
4590
|
files: m = [],
|
|
4581
4591
|
infoTooltipText: l,
|
|
4582
4592
|
tooltipPosition: v = de.TopRight,
|
|
4583
|
-
classNameRoot:
|
|
4584
|
-
loading:
|
|
4585
|
-
error:
|
|
4586
|
-
} = e,
|
|
4593
|
+
classNameRoot: b,
|
|
4594
|
+
loading: k,
|
|
4595
|
+
error: y
|
|
4596
|
+
} = e, T = m.map((ee) => ee.name), A = (T == null ? void 0 : T.length) > 0, M = o === "input", j = f({
|
|
4587
4597
|
[ne.spUploadFiles]: !0,
|
|
4588
4598
|
[ne[`spUploadFiles--variant-${o}`]]: o,
|
|
4589
|
-
[ne.spUploadFiles_error]: !!
|
|
4599
|
+
[ne.spUploadFiles_error]: !!y,
|
|
4590
4600
|
[ne.spUploadFiles_disabled]: s,
|
|
4591
|
-
[ne.spUploadFiles_multiple]:
|
|
4592
|
-
[ne.spUploadFiles_fileUploaded]:
|
|
4593
|
-
...
|
|
4594
|
-
}),
|
|
4601
|
+
[ne.spUploadFiles_multiple]: d,
|
|
4602
|
+
[ne.spUploadFiles_fileUploaded]: A,
|
|
4603
|
+
...b && { [b]: !0 }
|
|
4604
|
+
}), w = f({
|
|
4595
4605
|
[ne.spUploadFiles__control]: !0,
|
|
4596
|
-
[ne.spUploadFiles__control_loading]:
|
|
4606
|
+
[ne.spUploadFiles__control_loading]: k
|
|
4597
4607
|
}), c = f({
|
|
4598
4608
|
[ne.spUploadFiles__fileNamesList]: !0,
|
|
4599
|
-
[ne.spUploadFiles__fileNamesList_loading]:
|
|
4600
|
-
}),
|
|
4609
|
+
[ne.spUploadFiles__fileNamesList_loading]: k
|
|
4610
|
+
}), S = f({
|
|
4601
4611
|
[ne.spUploadFiles__delete]: !0,
|
|
4602
|
-
[ne.spUploadFiles__delete_loading]:
|
|
4612
|
+
[ne.spUploadFiles__delete_loading]: k
|
|
4603
4613
|
}), P = (ee) => {
|
|
4604
|
-
if (
|
|
4614
|
+
if (k)
|
|
4605
4615
|
return;
|
|
4606
4616
|
const ae = [...m], se = ae.findIndex((K) => K.name === ee);
|
|
4607
4617
|
ae.splice(se, 1), a(ae, n);
|
|
4608
4618
|
}, L = (ee) => {
|
|
4609
4619
|
ee.stopPropagation(), a([], n);
|
|
4610
|
-
}, Q = () =>
|
|
4620
|
+
}, Q = () => d ? /* @__PURE__ */ u("ul", { className: c, children: T.map((ee, ae) => /* @__PURE__ */ H(
|
|
4611
4621
|
"li",
|
|
4612
4622
|
{
|
|
4613
4623
|
className: ne.spUploadFiles__fileNamesListItem,
|
|
@@ -4615,21 +4625,21 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4615
4625
|
se.stopPropagation(), P(ee);
|
|
4616
4626
|
},
|
|
4617
4627
|
children: [
|
|
4618
|
-
/* @__PURE__ */
|
|
4619
|
-
|
|
4628
|
+
/* @__PURE__ */ u(
|
|
4629
|
+
Li,
|
|
4620
4630
|
{
|
|
4621
4631
|
type: "p2",
|
|
4622
4632
|
text: ee,
|
|
4623
4633
|
classNameTriggerTooltipRoot: ne.spUploadFiles__fileNamesListItem__triggerTooltip
|
|
4624
4634
|
}
|
|
4625
4635
|
),
|
|
4626
|
-
/* @__PURE__ */
|
|
4636
|
+
/* @__PURE__ */ u("div", { className: ne.spUploadFiles__fileNamesListItemDelete, children: /* @__PURE__ */ u(be, { name: ue.Trash }) })
|
|
4627
4637
|
]
|
|
4628
4638
|
},
|
|
4629
4639
|
ae
|
|
4630
|
-
)) }) : /* @__PURE__ */
|
|
4631
|
-
|
|
4632
|
-
|
|
4640
|
+
)) }) : /* @__PURE__ */ u(Ne, { isEllipsis: !0, classNameRoot: ne.spUploadFiles__fileName, children: T[0] }), te = () => /* @__PURE__ */ H(lo, { children: [
|
|
4641
|
+
A ? Q() : /* @__PURE__ */ u(Ne, { classNameRoot: ne.spUploadFiles__placeholder, children: t }),
|
|
4642
|
+
A ? /* @__PURE__ */ u("div", { className: S, onClick: L, children: /* @__PURE__ */ u(be, { name: ue.Close }) }) : M && l && /* @__PURE__ */ u(
|
|
4633
4643
|
Je,
|
|
4634
4644
|
{
|
|
4635
4645
|
classNameTooltip: ne.spUploadFiles__tooltipWrapper,
|
|
@@ -4639,60 +4649,60 @@ const wr = (e) => `not ${e}`, kr = (e, t) => {
|
|
|
4639
4649
|
}
|
|
4640
4650
|
)
|
|
4641
4651
|
] });
|
|
4642
|
-
return /* @__PURE__ */
|
|
4643
|
-
|
|
4652
|
+
return /* @__PURE__ */ u(
|
|
4653
|
+
ki,
|
|
4644
4654
|
{
|
|
4645
4655
|
name: n,
|
|
4646
4656
|
files: m,
|
|
4647
|
-
multiple:
|
|
4657
|
+
multiple: d,
|
|
4648
4658
|
maxSize: i,
|
|
4649
4659
|
maxFiles: p,
|
|
4650
4660
|
accept: r,
|
|
4651
4661
|
onDropFiles: a,
|
|
4652
|
-
disabled: s ||
|
|
4662
|
+
disabled: s || A,
|
|
4653
4663
|
children: /* @__PURE__ */ H("div", { className: j, children: [
|
|
4654
|
-
/* @__PURE__ */ H("div", { className:
|
|
4655
|
-
M && (
|
|
4664
|
+
/* @__PURE__ */ H("div", { className: w, children: [
|
|
4665
|
+
M && (k ? /* @__PURE__ */ u(mo, {}) : /* @__PURE__ */ u(be, { name: A ? ue.Check : ue.Upload })),
|
|
4656
4666
|
te()
|
|
4657
4667
|
] }),
|
|
4658
|
-
|
|
4668
|
+
y && /* @__PURE__ */ u("div", { className: ne.spUploadFiles__error, children: y })
|
|
4659
4669
|
] })
|
|
4660
4670
|
}
|
|
4661
4671
|
);
|
|
4662
4672
|
};
|
|
4663
4673
|
export {
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4674
|
+
Us as Accordion,
|
|
4675
|
+
Wn as ApplyButtons,
|
|
4676
|
+
_o as BaseTooltip,
|
|
4667
4677
|
wt as Button,
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4678
|
+
Hs as Checkbox,
|
|
4679
|
+
Ys as Confirm,
|
|
4680
|
+
Gs as ContextMenu,
|
|
4681
|
+
ki as DefaultDropzone,
|
|
4682
|
+
Ks as Dropdown,
|
|
4673
4683
|
ue as EIconName,
|
|
4674
4684
|
de as ETooltipPosition,
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4685
|
+
Li as EllipsisTextWithTooltip,
|
|
4686
|
+
Xs as Form,
|
|
4687
|
+
be as Icon,
|
|
4678
4688
|
Je as InfoTooltip,
|
|
4679
|
-
|
|
4689
|
+
Qi as Input,
|
|
4680
4690
|
jt as Label,
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4691
|
+
aa as Layer,
|
|
4692
|
+
Ji as MediaContext,
|
|
4693
|
+
Qs as MediaContextProvider,
|
|
4694
|
+
va as Modal,
|
|
4695
|
+
vo as Portal,
|
|
4696
|
+
Js as ProgressWrapper,
|
|
4697
|
+
ep as Select,
|
|
4698
|
+
tp as Skeleton,
|
|
4699
|
+
mo as Spinner,
|
|
4700
|
+
op as Table,
|
|
4701
|
+
np as Tabs,
|
|
4692
4702
|
Ne as Text,
|
|
4693
|
-
|
|
4703
|
+
ap as TextWithLabel,
|
|
4694
4704
|
Rt as Tooltip,
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4705
|
+
ip as UploadFiles,
|
|
4706
|
+
Dr as useAnimatedValue,
|
|
4707
|
+
Vs as useModal
|
|
4698
4708
|
};
|