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