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