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