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