test-stpr-ui-kit 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -17
- package/dist/test-stpr-ui-kit.es.d.ts +2 -1
- package/dist/test-stpr-ui-kit.es.js +569 -568
- package/dist/test-stpr-ui-kit.umd.cjs +10 -10
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as H, jsx as l, Fragment as pn } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import We, { useState as ce, useEffect as re, useRef as
|
|
2
|
+
import * as I from "react";
|
|
3
|
+
import We, { useState as ce, useEffect as re, useRef as ke, useCallback as le, forwardRef as Fn, useImperativeHandle as zn, Fragment as Mn, useMemo as Ae, useReducer as Bn, createContext as cn, useContext as ln } from "react";
|
|
4
4
|
import Wn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function dn(e) {
|
|
6
6
|
var t, n, o = "";
|
|
@@ -15,7 +15,7 @@ function v() {
|
|
|
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 qn = (e) => /* @__PURE__ */
|
|
18
|
+
const qn = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M20 7L9 18L4 13", stroke: "currentColor", strokeWidth: 2 })), $n = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M25 6L13 18L1 6", stroke: "currentColor", strokeWidth: 2 })), Hn = (e) => /* @__PURE__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.createElement("circle", { cx: 2, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ I.createElement("circle", { cx: 9, cy: 2, r: 2, fill: "currentColor" }), /* @__PURE__ */ I.createElement("circle", { cx: 16, cy: 2, r: 2, fill: "currentColor" })), Un = (e) => /* @__PURE__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.createElement("path", { d: "M12 8V12", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M12 16H12.01", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Kn = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Xn = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M12 5V19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Zn = (e) => /* @__PURE__ */ I.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__ */ I.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__ */ I.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__ */ I.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__ */ I.createElement("path", { d: "M12 8V16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M8 12H16", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Jn = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M12 15.275L6 9.275L7.275 8L12 12.725L16.725 8L18 9.275L12 15.275Z", fill: "currentColor" })), eo = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M3 6H5H21", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M10 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M14 11V17", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), to = (e) => /* @__PURE__ */ I.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__ */ I.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__ */ I.createElement("path", { d: "M14 5L10 1L6 5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ I.createElement("path", { d: "M10 2V13", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })), no = (e) => /* @__PURE__ */ I.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__ */ I.createElement("path", { d: "M12.971 2.24023L25.8228 24.5002H0.119141L12.971 2.24023Z", fill: "#002A64" }), /* @__PURE__ */ I.createElement("path", { d: "M13.0835 4.20023L25.2079 25.2002H0.959141L13.0835 4.20023Z", fill: "#036BFD" }), /* @__PURE__ */ I.createElement("path", { d: "M14.3991 21.0002H11.8791V23.5202H14.3991V21.0002Z", fill: "#F5F5F7" }), /* @__PURE__ */ I.createElement("path", { d: "M14.3991 10.6402H11.8791V19.8802H14.3991V10.6402Z", fill: "#F5F5F7" })), fe = (e) => {
|
|
19
19
|
const { name: t, rotate: n, ...o } = e, a = {
|
|
20
20
|
...o.style,
|
|
21
21
|
flexShrink: 0,
|
|
@@ -25,37 +25,38 @@ const qn = (e) => /* @__PURE__ */ D.createElement("svg", { className: "stpr-icon
|
|
|
25
25
|
info: Gn,
|
|
26
26
|
plus: Xn,
|
|
27
27
|
minus: Kn,
|
|
28
|
-
selectChevronDown:
|
|
29
|
-
upload:
|
|
30
|
-
trash:
|
|
28
|
+
selectChevronDown: Jn,
|
|
29
|
+
upload: to,
|
|
30
|
+
trash: eo,
|
|
31
31
|
check: qn,
|
|
32
32
|
copy: Yn,
|
|
33
33
|
close: Hn,
|
|
34
|
-
plusSquare:
|
|
35
|
-
warningColor:
|
|
34
|
+
plusSquare: Qn,
|
|
35
|
+
warningColor: no,
|
|
36
36
|
dots: Vn,
|
|
37
|
-
historyClock: Un
|
|
37
|
+
historyClock: Un,
|
|
38
|
+
plusCircle: Zn
|
|
38
39
|
};
|
|
39
40
|
return We.createElement(i[t], {
|
|
40
41
|
...o,
|
|
41
42
|
style: a
|
|
42
43
|
});
|
|
43
44
|
};
|
|
44
|
-
var ie = /* @__PURE__ */ ((e) => (e.ChevronDown = "chevronDown", e.Info = "info", e.Plus = "plus", e.SelectChevronDown = "selectChevronDown", e.Upload = "upload", e.Trash = "trash", e.Check = "check", e.Copy = "copy", e.Close = "close", e.PlusSquare = "plusSquare", e.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e))(ie || {});
|
|
45
|
-
const
|
|
46
|
-
spAccordion:
|
|
47
|
-
spAccordion_noBorder:
|
|
48
|
-
spAccordion_noPadding:
|
|
49
|
-
spAccordion__name:
|
|
50
|
-
spAccordion_open:
|
|
51
|
-
spAccordion__header:
|
|
52
|
-
spAccordion_noOpen:
|
|
53
|
-
spAccordion__name_hiddenExpand:
|
|
54
|
-
spAccordion__icon:
|
|
55
|
-
spAccordion__icon_hidden:
|
|
56
|
-
spAccordion__childrenWrapper:
|
|
57
|
-
spAccordion__childrenWrapper_open:
|
|
58
|
-
},
|
|
45
|
+
var ie = /* @__PURE__ */ ((e) => (e.ChevronDown = "chevronDown", e.Info = "info", e.Plus = "plus", e.SelectChevronDown = "selectChevronDown", e.Upload = "upload", e.Trash = "trash", e.Check = "check", e.Copy = "copy", e.Close = "close", e.PlusSquare = "plusSquare", e.PlusCircle = "plusCircle", e.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e))(ie || {});
|
|
46
|
+
const oo = "_spAccordion_1q3b8_43", ao = "_spAccordion_noBorder_1q3b8_56", io = "_spAccordion_noPadding_1q3b8_59", ro = "_spAccordion__name_1q3b8_62", so = "_spAccordion_open_1q3b8_72", po = "_spAccordion__header_1q3b8_75", co = "_spAccordion_noOpen_1q3b8_83", lo = "_spAccordion__name_hiddenExpand_1q3b8_114", uo = "_spAccordion__icon_1q3b8_117", mo = "_spAccordion__icon_hidden_1q3b8_127", fo = "_spAccordion__childrenWrapper_1q3b8_133", vo = "_spAccordion__childrenWrapper_open_1q3b8_148", _e = {
|
|
47
|
+
spAccordion: oo,
|
|
48
|
+
spAccordion_noBorder: ao,
|
|
49
|
+
spAccordion_noPadding: io,
|
|
50
|
+
spAccordion__name: ro,
|
|
51
|
+
spAccordion_open: so,
|
|
52
|
+
spAccordion__header: po,
|
|
53
|
+
spAccordion_noOpen: co,
|
|
54
|
+
spAccordion__name_hiddenExpand: lo,
|
|
55
|
+
spAccordion__icon: uo,
|
|
56
|
+
spAccordion__icon_hidden: mo,
|
|
57
|
+
spAccordion__childrenWrapper: fo,
|
|
58
|
+
spAccordion__childrenWrapper_open: vo
|
|
59
|
+
}, vs = (e) => {
|
|
59
60
|
const {
|
|
60
61
|
name: t,
|
|
61
62
|
children: n,
|
|
@@ -69,9 +70,9 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
69
70
|
classNameTitle: u,
|
|
70
71
|
classNameIcon: c,
|
|
71
72
|
classNameChildrenWrapper: y
|
|
72
|
-
} = e, [w, T] = ce(o),
|
|
73
|
+
} = e, [w, T] = ce(o), C = () => {
|
|
73
74
|
a || (T(!w), i == null || i(!w));
|
|
74
|
-
},
|
|
75
|
+
}, N = v({
|
|
75
76
|
[_e.spAccordion]: !0,
|
|
76
77
|
[_e.spAccordion_open]: w,
|
|
77
78
|
[_e.spAccordion_noOpen]: !w,
|
|
@@ -94,14 +95,14 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
94
95
|
[_e.spAccordion__childrenWrapper_open]: w,
|
|
95
96
|
...y && { [y]: !0 }
|
|
96
97
|
});
|
|
97
|
-
return /* @__PURE__ */ H("div", { className:
|
|
98
|
+
return /* @__PURE__ */ H("div", { className: N, children: [
|
|
98
99
|
/* @__PURE__ */ H("div", { className: O, children: [
|
|
99
|
-
/* @__PURE__ */ l("div", { className: Y, children: /* @__PURE__ */ l("span", { onClick:
|
|
100
|
+
/* @__PURE__ */ l("div", { className: Y, children: /* @__PURE__ */ l("span", { onClick: C, children: t }) }),
|
|
100
101
|
/* @__PURE__ */ l(
|
|
101
102
|
fe,
|
|
102
103
|
{
|
|
103
104
|
rotate: w ? 180 : void 0,
|
|
104
|
-
onClick:
|
|
105
|
+
onClick: C,
|
|
105
106
|
className: R,
|
|
106
107
|
name: ie.ChevronDown
|
|
107
108
|
}
|
|
@@ -109,15 +110,15 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
109
110
|
] }),
|
|
110
111
|
/* @__PURE__ */ l("div", { className: b, children: /* @__PURE__ */ l("div", { children: n }) })
|
|
111
112
|
] });
|
|
112
|
-
},
|
|
113
|
-
spinner:
|
|
114
|
-
spinner__inner:
|
|
113
|
+
}, _o = "_spinner_f5rd2_43", xo = "_spinner__inner_f5rd2_53", pt = {
|
|
114
|
+
spinner: _o,
|
|
115
|
+
spinner__inner: xo,
|
|
115
116
|
"spinner-rotate": "_spinner-rotate_f5rd2_1",
|
|
116
117
|
"spinner--sm": "_spinner--sm_f5rd2_66",
|
|
117
118
|
"spinner--md": "_spinner--md_f5rd2_70",
|
|
118
119
|
"spinner--lg": "_spinner--lg_f5rd2_73",
|
|
119
120
|
"spinner--xl": "_spinner--xl_f5rd2_77"
|
|
120
|
-
},
|
|
121
|
+
}, go = (e) => {
|
|
121
122
|
const { size: t = "md", color: n = "#036bfd", classNameRoot: o } = e;
|
|
122
123
|
return /* @__PURE__ */ l(
|
|
123
124
|
"div",
|
|
@@ -129,20 +130,20 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
129
130
|
children: /* @__PURE__ */ l("div", { className: pt.spinner__inner })
|
|
130
131
|
}
|
|
131
132
|
);
|
|
132
|
-
},
|
|
133
|
-
spButton:
|
|
134
|
-
spButton_noPadding:
|
|
135
|
-
spButton_onlyIcon:
|
|
136
|
-
spButton__iconContainer:
|
|
137
|
-
spButton_link:
|
|
133
|
+
}, ho = "_spButton_1g8qp_43", bo = "_spButton_noPadding_1g8qp_58", yo = "_spButton_onlyIcon_1g8qp_61", wo = "_spButton__iconContainer_1g8qp_69", Co = "_spButton_link_1g8qp_72", ko = "_spButton__text_1g8qp_76", To = "_spButton_primary_1g8qp_88", Eo = "_spButton_blue_1g8qp_88", So = "_spButton_white_1g8qp_98", jo = "_spButton_secondary_1g8qp_108", Io = "_spButton_fullWidth_1g8qp_128", No = "_spButton_disabled_1g8qp_131", Do = "_spButton__spinner_1g8qp_139", be = {
|
|
134
|
+
spButton: ho,
|
|
135
|
+
spButton_noPadding: bo,
|
|
136
|
+
spButton_onlyIcon: yo,
|
|
137
|
+
spButton__iconContainer: wo,
|
|
138
|
+
spButton_link: Co,
|
|
138
139
|
spButton__text: ko,
|
|
139
|
-
spButton_primary:
|
|
140
|
-
spButton_blue:
|
|
141
|
-
spButton_white:
|
|
142
|
-
spButton_secondary:
|
|
143
|
-
spButton_fullWidth:
|
|
144
|
-
spButton_disabled:
|
|
145
|
-
spButton__spinner:
|
|
140
|
+
spButton_primary: To,
|
|
141
|
+
spButton_blue: Eo,
|
|
142
|
+
spButton_white: So,
|
|
143
|
+
spButton_secondary: jo,
|
|
144
|
+
spButton_fullWidth: Io,
|
|
145
|
+
spButton_disabled: No,
|
|
146
|
+
spButton__spinner: Do
|
|
146
147
|
}, yt = (e) => {
|
|
147
148
|
const {
|
|
148
149
|
color: t = "blue",
|
|
@@ -159,8 +160,8 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
159
160
|
isFullWidth: y = !1,
|
|
160
161
|
isOnlyIcon: w = !1,
|
|
161
162
|
noPadding: T = !1,
|
|
162
|
-
classNameRoot:
|
|
163
|
-
classNameIconContainerRoot:
|
|
163
|
+
classNameRoot: C,
|
|
164
|
+
classNameIconContainerRoot: N
|
|
164
165
|
} = e, O = (b) => {
|
|
165
166
|
s || a == null || a(b);
|
|
166
167
|
}, Y = () => {
|
|
@@ -168,10 +169,10 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
168
169
|
[be.spButton__text]: !0
|
|
169
170
|
}), p = v({
|
|
170
171
|
[be.spButton__iconContainer]: !0,
|
|
171
|
-
...
|
|
172
|
+
...N && { [N]: !0 }
|
|
172
173
|
});
|
|
173
174
|
return /* @__PURE__ */ H(pn, { children: [
|
|
174
|
-
(i || c) && /* @__PURE__ */ l("div", { className: p, children: c ? /* @__PURE__ */ l(
|
|
175
|
+
(i || c) && /* @__PURE__ */ l("div", { className: p, children: c ? /* @__PURE__ */ l(go, { classNameRoot: be.spButton__spinner }) : i && /* @__PURE__ */ l(fe, { name: i, rotate: r }) }),
|
|
175
176
|
!w && u && /* @__PURE__ */ l("div", { className: b, children: u })
|
|
176
177
|
] });
|
|
177
178
|
}, R = v({
|
|
@@ -183,7 +184,7 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
183
184
|
[be.spButton_fullWidth]: y,
|
|
184
185
|
[be.spButton_disabled]: s,
|
|
185
186
|
[be.spButton_loading]: c,
|
|
186
|
-
...
|
|
187
|
+
...C && { [C]: !0 }
|
|
187
188
|
});
|
|
188
189
|
return /* @__PURE__ */ l(
|
|
189
190
|
"button",
|
|
@@ -197,15 +198,15 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
197
198
|
children: Y()
|
|
198
199
|
}
|
|
199
200
|
);
|
|
200
|
-
},
|
|
201
|
-
spApplyButtons:
|
|
201
|
+
}, Ro = "_spApplyButtons_e8c1h_43", Ao = "_spApplyButtons__cancel_e8c1h_65", Oo = "_spApplyButtons__submit_e8c1h_68", ze = {
|
|
202
|
+
spApplyButtons: Ro,
|
|
202
203
|
"spApplyButtons_align-right": "_spApplyButtons_align-right_e8c1h_48",
|
|
203
204
|
"spApplyButtons_align-left": "_spApplyButtons_align-left_e8c1h_51",
|
|
204
205
|
"spApplyButtons_align-center": "_spApplyButtons_align-center_e8c1h_54",
|
|
205
206
|
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-column_e8c1h_57",
|
|
206
|
-
spApplyButtons__cancel:
|
|
207
|
-
spApplyButtons__submit:
|
|
208
|
-
},
|
|
207
|
+
spApplyButtons__cancel: Ao,
|
|
208
|
+
spApplyButtons__submit: Oo
|
|
209
|
+
}, Lo = (e) => {
|
|
209
210
|
const {
|
|
210
211
|
mobile: t = "column",
|
|
211
212
|
align: n = "center",
|
|
@@ -252,10 +253,10 @@ const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao =
|
|
|
252
253
|
}
|
|
253
254
|
)
|
|
254
255
|
] });
|
|
255
|
-
},
|
|
256
|
-
spBaseTooltip:
|
|
257
|
-
spBaseTooltip_noPadding:
|
|
258
|
-
spBaseTooltip__content:
|
|
256
|
+
}, Po = "_spBaseTooltip_1ahs2_43", Fo = "_spBaseTooltip_noPadding_1ahs2_56", zo = "_spBaseTooltip__content_1ahs2_59", ct = {
|
|
257
|
+
spBaseTooltip: Po,
|
|
258
|
+
spBaseTooltip_noPadding: Fo,
|
|
259
|
+
spBaseTooltip__content: zo
|
|
259
260
|
}, un = We.forwardRef((e, t) => {
|
|
260
261
|
const {
|
|
261
262
|
text: n,
|
|
@@ -286,8 +287,8 @@ const mn = ({ children: e, node: t, classNameRoot: n }) => {
|
|
|
286
287
|
t || document.body.removeChild(i);
|
|
287
288
|
};
|
|
288
289
|
}, [t, n]), o ? Wn.createPortal(e, o) : null;
|
|
289
|
-
},
|
|
290
|
-
spTooltip:
|
|
290
|
+
}, Mo = "_spTooltip_umff1_43", Bo = {
|
|
291
|
+
spTooltip: Mo
|
|
291
292
|
};
|
|
292
293
|
var ae = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(ae || {});
|
|
293
294
|
function fn(e, t, n = !0) {
|
|
@@ -316,23 +317,23 @@ const jt = (e) => {
|
|
|
316
317
|
classNameTooltip: c,
|
|
317
318
|
classNameBaseTooltipRoot: y,
|
|
318
319
|
classNameBaseTooltipContentRoot: w
|
|
319
|
-
} = e, [T,
|
|
320
|
+
} = e, [T, C] = ce(!1), N = ke(null), O = ke(null), [Y, R] = ce(!1);
|
|
320
321
|
fn(
|
|
321
|
-
[
|
|
322
|
+
[N, O],
|
|
322
323
|
() => {
|
|
323
|
-
r && r(),
|
|
324
|
+
r && r(), C(!1);
|
|
324
325
|
},
|
|
325
326
|
T
|
|
326
327
|
);
|
|
327
328
|
const b = (g) => {
|
|
328
|
-
t || (T ? r && r() : i && i(),
|
|
329
|
+
t || (T ? r && r() : i && i(), C((L) => n ? !L : !0));
|
|
329
330
|
}, [p, S] = ce({
|
|
330
331
|
visibility: "hidden",
|
|
331
332
|
opacity: 0,
|
|
332
333
|
left: "-9999px"
|
|
333
334
|
}), [z, G] = ce(!1), X = le(() => {
|
|
334
|
-
if (!
|
|
335
|
-
const g =
|
|
335
|
+
if (!N.current || !O.current) return;
|
|
336
|
+
const g = N.current.getBoundingClientRect(), L = O.current.getBoundingClientRect();
|
|
336
337
|
let q = 0, K = 0;
|
|
337
338
|
switch (m) {
|
|
338
339
|
case ae.Right:
|
|
@@ -407,7 +408,7 @@ const jt = (e) => {
|
|
|
407
408
|
onMouseEnter: () => t && G(!0),
|
|
408
409
|
onMouseLeave: () => t && G(!1),
|
|
409
410
|
children: [
|
|
410
|
-
/* @__PURE__ */ l("div", { ref:
|
|
411
|
+
/* @__PURE__ */ l("div", { ref: N, className: s, children: a }),
|
|
411
412
|
o && /* @__PURE__ */ l(mn, { node: ne, children: /* @__PURE__ */ l(
|
|
412
413
|
un,
|
|
413
414
|
{
|
|
@@ -422,20 +423,20 @@ const jt = (e) => {
|
|
|
422
423
|
]
|
|
423
424
|
}
|
|
424
425
|
);
|
|
425
|
-
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(fe, { name: ie.Info }) }),
|
|
426
|
-
spCheckbox:
|
|
427
|
-
spCheckbox__control:
|
|
428
|
-
spCheckbox__label:
|
|
429
|
-
spCheckbox__box:
|
|
426
|
+
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(fe, { name: ie.Info }) }), Wo = "_spCheckbox_ux2io_43", qo = "_spCheckbox__control_ux2io_49", $o = "_spCheckbox__label_ux2io_52", Ho = "_spCheckbox__box_ux2io_63", Yo = "_spCheckbox__box_checked_ux2io_89", Vo = "_spCheckbox__box_disabled_ux2io_99", Uo = "_spCheckbox__box_error_ux2io_108", Go = "_spCheckbox__tooltip_ux2io_111", Ko = "_spCheckbox__required_ux2io_116", Xo = "_spCheckbox__error_ux2io_122", ye = {
|
|
427
|
+
spCheckbox: Wo,
|
|
428
|
+
spCheckbox__control: qo,
|
|
429
|
+
spCheckbox__label: $o,
|
|
430
|
+
spCheckbox__box: Ho,
|
|
430
431
|
"spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_ux2io_68",
|
|
431
432
|
"spCheckbox__box--size-md": "_spCheckbox__box--size-md_ux2io_73",
|
|
432
|
-
spCheckbox__box_checked:
|
|
433
|
-
spCheckbox__box_disabled:
|
|
434
|
-
spCheckbox__box_error:
|
|
435
|
-
spCheckbox__tooltip:
|
|
436
|
-
spCheckbox__required:
|
|
437
|
-
spCheckbox__error:
|
|
438
|
-
},
|
|
433
|
+
spCheckbox__box_checked: Yo,
|
|
434
|
+
spCheckbox__box_disabled: Vo,
|
|
435
|
+
spCheckbox__box_error: Uo,
|
|
436
|
+
spCheckbox__tooltip: Go,
|
|
437
|
+
spCheckbox__required: Ko,
|
|
438
|
+
spCheckbox__error: Xo
|
|
439
|
+
}, _s = (e) => {
|
|
439
440
|
const {
|
|
440
441
|
size: t = "lg",
|
|
441
442
|
checked: n,
|
|
@@ -451,10 +452,10 @@ const jt = (e) => {
|
|
|
451
452
|
onMouseEnter: y,
|
|
452
453
|
classNameRoot: w,
|
|
453
454
|
classNameError: T
|
|
454
|
-
} = e,
|
|
455
|
+
} = e, C = v({
|
|
455
456
|
[ye.spCheckbox]: !0,
|
|
456
457
|
...w && { [w]: !0 }
|
|
457
|
-
}),
|
|
458
|
+
}), N = v({
|
|
458
459
|
[ye.spCheckbox__box]: !0,
|
|
459
460
|
[ye.spCheckbox__box_checked]: n,
|
|
460
461
|
[ye.spCheckbox__box_disabled]: o,
|
|
@@ -472,8 +473,8 @@ const jt = (e) => {
|
|
|
472
473
|
}), p = v({
|
|
473
474
|
[ye.spCheckbox__tooltip]: !0
|
|
474
475
|
});
|
|
475
|
-
return /* @__PURE__ */ H("div", { className:
|
|
476
|
-
/* @__PURE__ */ H("label", { className:
|
|
476
|
+
return /* @__PURE__ */ H("div", { className: C, onMouseEnter: y, children: [
|
|
477
|
+
/* @__PURE__ */ H("label", { className: N, children: [
|
|
477
478
|
/* @__PURE__ */ l(
|
|
478
479
|
"input",
|
|
479
480
|
{
|
|
@@ -491,7 +492,7 @@ const jt = (e) => {
|
|
|
491
492
|
] }),
|
|
492
493
|
s && /* @__PURE__ */ l("div", { className: b, children: s })
|
|
493
494
|
] });
|
|
494
|
-
},
|
|
495
|
+
}, xs = (e = {}) => {
|
|
495
496
|
const { initialValue: t = null } = e, [n, o] = ce(t);
|
|
496
497
|
return {
|
|
497
498
|
isOpen: !!n,
|
|
@@ -503,10 +504,10 @@ const jt = (e) => {
|
|
|
503
504
|
o(null);
|
|
504
505
|
}
|
|
505
506
|
};
|
|
506
|
-
},
|
|
507
|
-
layer:
|
|
508
|
-
layer_hidden:
|
|
509
|
-
},
|
|
507
|
+
}, Zo = "_layer_14g8d_43", Qo = "_layer_hidden_14g8d_65", At = {
|
|
508
|
+
layer: Zo,
|
|
509
|
+
layer_hidden: Qo
|
|
510
|
+
}, Jo = (e) => {
|
|
510
511
|
const {
|
|
511
512
|
children: t,
|
|
512
513
|
zIndex: n = "9999",
|
|
@@ -518,16 +519,16 @@ const jt = (e) => {
|
|
|
518
519
|
...a && { [a]: !0 }
|
|
519
520
|
});
|
|
520
521
|
return /* @__PURE__ */ l(mn, { node: i, children: /* @__PURE__ */ l("div", { style: { zIndex: n }, className: r, children: t }) });
|
|
521
|
-
},
|
|
522
|
-
spText:
|
|
523
|
-
spText_ellipsis:
|
|
522
|
+
}, ea = "_spText_13ohe_43", ta = "_spText_ellipsis_13ohe_54", na = "_spText_cursorPointer_13ohe_111", Ye = {
|
|
523
|
+
spText: ea,
|
|
524
|
+
spText_ellipsis: ta,
|
|
524
525
|
"spText_type-h1": "_spText_type-h1_13ohe_60",
|
|
525
526
|
"spText_type-h3": "_spText_type-h3_13ohe_70",
|
|
526
527
|
"spText_type-p1": "_spText_type-p1_13ohe_81",
|
|
527
528
|
"spText_type-p2": "_spText_type-p2_13ohe_86",
|
|
528
529
|
"spText_type-description": "_spText_type-description_13ohe_90",
|
|
529
530
|
"spText_type-link": "_spText_type-link_13ohe_98",
|
|
530
|
-
spText_cursorPointer:
|
|
531
|
+
spText_cursorPointer: na
|
|
531
532
|
}, Te = We.forwardRef((e, t) => {
|
|
532
533
|
const {
|
|
533
534
|
type: n,
|
|
@@ -560,18 +561,18 @@ const jt = (e) => {
|
|
|
560
561
|
);
|
|
561
562
|
});
|
|
562
563
|
Te.displayName = "Text";
|
|
563
|
-
const
|
|
564
|
-
modalWrapper:
|
|
564
|
+
const oa = "_modalWrapper_r712c_43", aa = "_modalWrapper__modal_r712c_54", ia = "_modalWrapper__content_r712c_69", ra = "_modalWrapper__header_r712c_72", sa = "_modalWrapper__subHeader_r712c_82", pa = "_modalWrapper__footer_r712c_90", ca = "_modalWrapper__closeButton_r712c_104", la = "_modalWrapper__closeButtonIconContainer_r712c_118", Ce = {
|
|
565
|
+
modalWrapper: oa,
|
|
565
566
|
"modalWrapper_align-top": "_modalWrapper_align-top_r712c_48",
|
|
566
567
|
"modalWrapper_align-center": "_modalWrapper_align-center_r712c_51",
|
|
567
|
-
modalWrapper__modal:
|
|
568
|
-
modalWrapper__content:
|
|
569
|
-
modalWrapper__header:
|
|
570
|
-
modalWrapper__subHeader:
|
|
571
|
-
modalWrapper__footer:
|
|
572
|
-
modalWrapper__closeButton:
|
|
573
|
-
modalWrapper__closeButtonIconContainer:
|
|
574
|
-
},
|
|
568
|
+
modalWrapper__modal: aa,
|
|
569
|
+
modalWrapper__content: ia,
|
|
570
|
+
modalWrapper__header: ra,
|
|
571
|
+
modalWrapper__subHeader: sa,
|
|
572
|
+
modalWrapper__footer: pa,
|
|
573
|
+
modalWrapper__closeButton: ca,
|
|
574
|
+
modalWrapper__closeButtonIconContainer: la
|
|
575
|
+
}, da = (e) => {
|
|
575
576
|
const {
|
|
576
577
|
zIndex: t,
|
|
577
578
|
isHiddenModal: n = !1,
|
|
@@ -586,25 +587,25 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
586
587
|
subHeader: c,
|
|
587
588
|
footer: y
|
|
588
589
|
} = e, w = v({
|
|
589
|
-
[
|
|
590
|
-
[
|
|
590
|
+
[Ce.modalWrapper]: !0,
|
|
591
|
+
[Ce[`modalWrapper_align-${m}`]]: m
|
|
591
592
|
}), T = v({
|
|
592
|
-
[
|
|
593
|
+
[Ce.modalWrapper__modal]: !0,
|
|
593
594
|
...r && { [r]: !0 }
|
|
594
|
-
}),
|
|
595
|
-
[
|
|
596
|
-
}),
|
|
597
|
-
[
|
|
595
|
+
}), C = v({
|
|
596
|
+
[Ce.modalWrapper__closeButton]: !0
|
|
597
|
+
}), N = v({
|
|
598
|
+
[Ce.modalWrapper__closeButtonIconContainer]: !0
|
|
598
599
|
}), O = v({
|
|
599
|
-
[
|
|
600
|
+
[Ce.modalWrapper__content]: !0
|
|
600
601
|
}), Y = v({
|
|
601
|
-
[
|
|
602
|
+
[Ce.modalWrapper__header]: !0
|
|
602
603
|
}), R = v({
|
|
603
|
-
[
|
|
604
|
+
[Ce.modalWrapper__subHeader]: !0
|
|
604
605
|
}), b = v({
|
|
605
|
-
[
|
|
606
|
+
[Ce.modalWrapper__footer]: !0
|
|
606
607
|
});
|
|
607
|
-
return /* @__PURE__ */ l(
|
|
608
|
+
return /* @__PURE__ */ l(Jo, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ l("div", { className: w, children: /* @__PURE__ */ H("div", { className: T, style: s, children: [
|
|
608
609
|
(u || c) && /* @__PURE__ */ H("div", { className: Y, children: [
|
|
609
610
|
typeof u == "string" ? /* @__PURE__ */ l(Te, { type: "h3", children: u }) : u,
|
|
610
611
|
c && /* @__PURE__ */ l("div", { className: R, children: typeof c == "string" ? /* @__PURE__ */ l(Te, { children: c }) : c })
|
|
@@ -614,8 +615,8 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
614
615
|
o && /* @__PURE__ */ l(
|
|
615
616
|
yt,
|
|
616
617
|
{
|
|
617
|
-
classNameRoot:
|
|
618
|
-
classNameIconContainerRoot:
|
|
618
|
+
classNameRoot: C,
|
|
619
|
+
classNameIconContainerRoot: N,
|
|
619
620
|
onClick: d,
|
|
620
621
|
iconName: ie.Close,
|
|
621
622
|
variant: "link",
|
|
@@ -623,7 +624,7 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
623
624
|
}
|
|
624
625
|
)
|
|
625
626
|
] }) }) });
|
|
626
|
-
},
|
|
627
|
+
}, gs = (e) => {
|
|
627
628
|
const {
|
|
628
629
|
zIndex: t,
|
|
629
630
|
title: n,
|
|
@@ -641,7 +642,7 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
641
642
|
modalAlign: T = "top"
|
|
642
643
|
} = e;
|
|
643
644
|
return /* @__PURE__ */ l(
|
|
644
|
-
|
|
645
|
+
da,
|
|
645
646
|
{
|
|
646
647
|
zIndex: t,
|
|
647
648
|
header: n,
|
|
@@ -649,7 +650,7 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
649
650
|
align: T,
|
|
650
651
|
subHeader: o,
|
|
651
652
|
footer: /* @__PURE__ */ l(
|
|
652
|
-
|
|
653
|
+
Lo,
|
|
653
654
|
{
|
|
654
655
|
mobile: y,
|
|
655
656
|
align: w,
|
|
@@ -665,11 +666,11 @@ const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa =
|
|
|
665
666
|
)
|
|
666
667
|
}
|
|
667
668
|
);
|
|
668
|
-
},
|
|
669
|
-
spContextMenu:
|
|
670
|
-
spContextMenu__item:
|
|
671
|
-
spContextMenu__item_deleteItem:
|
|
672
|
-
},
|
|
669
|
+
}, ua = "_spContextMenu_1wocv_43", ma = "_spContextMenu__item_1wocv_54", fa = "_spContextMenu__item_deleteItem_1wocv_73", lt = {
|
|
670
|
+
spContextMenu: ua,
|
|
671
|
+
spContextMenu__item: ma,
|
|
672
|
+
spContextMenu__item_deleteItem: fa
|
|
673
|
+
}, hs = (e) => {
|
|
673
674
|
const { onClickItem: t, options: n, classNameRoot: o } = e, a = v({
|
|
674
675
|
[lt.spContextMenu]: !0,
|
|
675
676
|
...o && { [o]: !0 }
|
|
@@ -708,10 +709,10 @@ var wt = { exports: {} }, Ve = { exports: {} }, V = {};
|
|
|
708
709
|
* LICENSE file in the root directory of this source tree.
|
|
709
710
|
*/
|
|
710
711
|
var Ot;
|
|
711
|
-
function
|
|
712
|
+
function va() {
|
|
712
713
|
if (Ot) return V;
|
|
713
714
|
Ot = 1;
|
|
714
|
-
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116,
|
|
715
|
+
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
715
716
|
function R(p) {
|
|
716
717
|
if (typeof p == "object" && p !== null) {
|
|
717
718
|
var S = p.$$typeof;
|
|
@@ -770,7 +771,7 @@ function fa() {
|
|
|
770
771
|
}, V.isSuspense = function(p) {
|
|
771
772
|
return R(p) === c;
|
|
772
773
|
}, V.isValidElementType = function(p) {
|
|
773
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === y || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === w || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof ===
|
|
774
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === y || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === w || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof === N || p.$$typeof === O || p.$$typeof === Y || p.$$typeof === C);
|
|
774
775
|
}, V.typeOf = R, V;
|
|
775
776
|
}
|
|
776
777
|
var U = {};
|
|
@@ -783,12 +784,12 @@ var U = {};
|
|
|
783
784
|
* LICENSE file in the root directory of this source tree.
|
|
784
785
|
*/
|
|
785
786
|
var Lt;
|
|
786
|
-
function
|
|
787
|
+
function _a() {
|
|
787
788
|
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
788
|
-
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116,
|
|
789
|
+
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
789
790
|
function R(_) {
|
|
790
791
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
791
|
-
_ === o || _ === d || _ === i || _ === a || _ === c || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === T || _.$$typeof === w || _.$$typeof === r || _.$$typeof === s || _.$$typeof === u || _.$$typeof ===
|
|
792
|
+
_ === o || _ === d || _ === i || _ === a || _ === c || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === T || _.$$typeof === w || _.$$typeof === r || _.$$typeof === s || _.$$typeof === u || _.$$typeof === N || _.$$typeof === O || _.$$typeof === Y || _.$$typeof === C);
|
|
792
793
|
}
|
|
793
794
|
function b(_) {
|
|
794
795
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -841,10 +842,10 @@ function va() {
|
|
|
841
842
|
function j(_) {
|
|
842
843
|
return b(_) === u;
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function B(_) {
|
|
845
846
|
return b(_) === o;
|
|
846
847
|
}
|
|
847
|
-
function
|
|
848
|
+
function D(_) {
|
|
848
849
|
return b(_) === T;
|
|
849
850
|
}
|
|
850
851
|
function F(_) {
|
|
@@ -856,18 +857,18 @@ function va() {
|
|
|
856
857
|
function $(_) {
|
|
857
858
|
return b(_) === i;
|
|
858
859
|
}
|
|
859
|
-
function
|
|
860
|
+
function M(_) {
|
|
860
861
|
return b(_) === a;
|
|
861
862
|
}
|
|
862
863
|
function te(_) {
|
|
863
864
|
return b(_) === c;
|
|
864
865
|
}
|
|
865
|
-
U.AsyncMode = p, U.ConcurrentMode = S, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = ve, U.Memo = ne, U.Portal = g, U.Profiler = L, U.StrictMode = q, U.Suspense = K, U.isAsyncMode = Q, U.isConcurrentMode = f, U.isContextConsumer = h, U.isContextProvider = A, U.isElement = P, U.isForwardRef = j, U.isFragment =
|
|
866
|
+
U.AsyncMode = p, U.ConcurrentMode = S, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = ve, U.Memo = ne, U.Portal = g, U.Profiler = L, U.StrictMode = q, U.Suspense = K, U.isAsyncMode = Q, U.isConcurrentMode = f, U.isContextConsumer = h, U.isContextProvider = A, U.isElement = P, U.isForwardRef = j, U.isFragment = B, U.isLazy = D, U.isMemo = F, U.isPortal = W, U.isProfiler = $, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = R, U.typeOf = b;
|
|
866
867
|
}()), U;
|
|
867
868
|
}
|
|
868
869
|
var Pt;
|
|
869
870
|
function _n() {
|
|
870
|
-
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ve.exports =
|
|
871
|
+
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ve.exports = va() : Ve.exports = _a()), Ve.exports;
|
|
871
872
|
}
|
|
872
873
|
/*
|
|
873
874
|
object-assign
|
|
@@ -875,7 +876,7 @@ object-assign
|
|
|
875
876
|
@license MIT
|
|
876
877
|
*/
|
|
877
878
|
var dt, Ft;
|
|
878
|
-
function
|
|
879
|
+
function xa() {
|
|
879
880
|
if (Ft) return dt;
|
|
880
881
|
Ft = 1;
|
|
881
882
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
@@ -927,14 +928,14 @@ function It() {
|
|
|
927
928
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
928
929
|
return ut = e, ut;
|
|
929
930
|
}
|
|
930
|
-
var mt,
|
|
931
|
+
var mt, Mt;
|
|
931
932
|
function xn() {
|
|
932
|
-
return
|
|
933
|
+
return Mt || (Mt = 1, mt = Function.call.bind(Object.prototype.hasOwnProperty)), mt;
|
|
933
934
|
}
|
|
934
|
-
var ft,
|
|
935
|
-
function
|
|
936
|
-
if (
|
|
937
|
-
|
|
935
|
+
var ft, Bt;
|
|
936
|
+
function ga() {
|
|
937
|
+
if (Bt) return ft;
|
|
938
|
+
Bt = 1;
|
|
938
939
|
var e = function() {
|
|
939
940
|
};
|
|
940
941
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -981,10 +982,10 @@ function xa() {
|
|
|
981
982
|
}, ft = a, ft;
|
|
982
983
|
}
|
|
983
984
|
var vt, Wt;
|
|
984
|
-
function
|
|
985
|
+
function ha() {
|
|
985
986
|
if (Wt) return vt;
|
|
986
987
|
Wt = 1;
|
|
987
|
-
var e = _n(), t =
|
|
988
|
+
var e = _n(), t = xa(), n = It(), o = xn(), a = ga(), i = function() {
|
|
988
989
|
};
|
|
989
990
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
990
991
|
var m = "Warning: " + s;
|
|
@@ -1028,15 +1029,15 @@ function ga() {
|
|
|
1028
1029
|
function T(f, h) {
|
|
1029
1030
|
return f === h ? f !== 0 || 1 / f === 1 / h : f !== f && h !== h;
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
+
function C(f, h) {
|
|
1032
1033
|
this.message = f, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
|
|
1033
1034
|
}
|
|
1034
|
-
|
|
1035
|
-
function
|
|
1035
|
+
C.prototype = Error.prototype;
|
|
1036
|
+
function N(f) {
|
|
1036
1037
|
if (process.env.NODE_ENV !== "production")
|
|
1037
1038
|
var h = {}, A = 0;
|
|
1038
|
-
function P(
|
|
1039
|
-
if (W = W || y,
|
|
1039
|
+
function P(B, D, F, W, $, M, te) {
|
|
1040
|
+
if (W = W || y, M = M || F, te !== n) {
|
|
1040
1041
|
if (m) {
|
|
1041
1042
|
var _ = new Error(
|
|
1042
1043
|
"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"
|
|
@@ -1046,88 +1047,88 @@ function ga() {
|
|
|
1046
1047
|
var ue = W + ":" + F;
|
|
1047
1048
|
!h[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1048
1049
|
A < 3 && (i(
|
|
1049
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1050
|
+
"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."
|
|
1050
1051
|
), h[ue] = !0, A++);
|
|
1051
1052
|
}
|
|
1052
1053
|
}
|
|
1053
|
-
return
|
|
1054
|
+
return D[F] == null ? B ? D[F] === null ? new C("The " + $ + " `" + M + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new C("The " + $ + " `" + M + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : f(D, F, W, $, M);
|
|
1054
1055
|
}
|
|
1055
1056
|
var j = P.bind(null, !1);
|
|
1056
1057
|
return j.isRequired = P.bind(null, !0), j;
|
|
1057
1058
|
}
|
|
1058
1059
|
function O(f) {
|
|
1059
|
-
function h(A, P, j,
|
|
1060
|
+
function h(A, P, j, B, D, F) {
|
|
1060
1061
|
var W = A[P], $ = q(W);
|
|
1061
1062
|
if ($ !== f) {
|
|
1062
|
-
var
|
|
1063
|
-
return new
|
|
1064
|
-
"Invalid " +
|
|
1063
|
+
var M = K(W);
|
|
1064
|
+
return new C(
|
|
1065
|
+
"Invalid " + B + " `" + D + "` of type " + ("`" + M + "` supplied to `" + j + "`, expected ") + ("`" + f + "`."),
|
|
1065
1066
|
{ expectedType: f }
|
|
1066
1067
|
);
|
|
1067
1068
|
}
|
|
1068
1069
|
return null;
|
|
1069
1070
|
}
|
|
1070
|
-
return
|
|
1071
|
+
return N(h);
|
|
1071
1072
|
}
|
|
1072
1073
|
function Y() {
|
|
1073
|
-
return
|
|
1074
|
+
return N(r);
|
|
1074
1075
|
}
|
|
1075
1076
|
function R(f) {
|
|
1076
|
-
function h(A, P, j,
|
|
1077
|
+
function h(A, P, j, B, D) {
|
|
1077
1078
|
if (typeof f != "function")
|
|
1078
|
-
return new
|
|
1079
|
+
return new C("Property `" + D + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1079
1080
|
var F = A[P];
|
|
1080
1081
|
if (!Array.isArray(F)) {
|
|
1081
1082
|
var W = q(F);
|
|
1082
|
-
return new
|
|
1083
|
+
return new C("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
|
|
1083
1084
|
}
|
|
1084
1085
|
for (var $ = 0; $ < F.length; $++) {
|
|
1085
|
-
var
|
|
1086
|
-
if (
|
|
1087
|
-
return
|
|
1086
|
+
var M = f(F, $, j, B, D + "[" + $ + "]", n);
|
|
1087
|
+
if (M instanceof Error)
|
|
1088
|
+
return M;
|
|
1088
1089
|
}
|
|
1089
1090
|
return null;
|
|
1090
1091
|
}
|
|
1091
|
-
return
|
|
1092
|
+
return N(h);
|
|
1092
1093
|
}
|
|
1093
1094
|
function b() {
|
|
1094
|
-
function f(h, A, P, j,
|
|
1095
|
-
var
|
|
1096
|
-
if (!s(
|
|
1097
|
-
var F = q(
|
|
1098
|
-
return new
|
|
1095
|
+
function f(h, A, P, j, B) {
|
|
1096
|
+
var D = h[A];
|
|
1097
|
+
if (!s(D)) {
|
|
1098
|
+
var F = q(D);
|
|
1099
|
+
return new C("Invalid " + j + " `" + B + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1099
1100
|
}
|
|
1100
1101
|
return null;
|
|
1101
1102
|
}
|
|
1102
|
-
return
|
|
1103
|
+
return N(f);
|
|
1103
1104
|
}
|
|
1104
1105
|
function p() {
|
|
1105
|
-
function f(h, A, P, j,
|
|
1106
|
-
var
|
|
1107
|
-
if (!e.isValidElementType(
|
|
1108
|
-
var F = q(
|
|
1109
|
-
return new
|
|
1106
|
+
function f(h, A, P, j, B) {
|
|
1107
|
+
var D = h[A];
|
|
1108
|
+
if (!e.isValidElementType(D)) {
|
|
1109
|
+
var F = q(D);
|
|
1110
|
+
return new C("Invalid " + j + " `" + B + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1110
1111
|
}
|
|
1111
1112
|
return null;
|
|
1112
1113
|
}
|
|
1113
|
-
return
|
|
1114
|
+
return N(f);
|
|
1114
1115
|
}
|
|
1115
1116
|
function S(f) {
|
|
1116
|
-
function h(A, P, j,
|
|
1117
|
+
function h(A, P, j, B, D) {
|
|
1117
1118
|
if (!(A[P] instanceof f)) {
|
|
1118
1119
|
var F = f.name || y, W = Q(A[P]);
|
|
1119
|
-
return new
|
|
1120
|
+
return new C("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + F + "`."));
|
|
1120
1121
|
}
|
|
1121
1122
|
return null;
|
|
1122
1123
|
}
|
|
1123
|
-
return
|
|
1124
|
+
return N(h);
|
|
1124
1125
|
}
|
|
1125
1126
|
function z(f) {
|
|
1126
1127
|
if (!Array.isArray(f))
|
|
1127
1128
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1128
1129
|
"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])."
|
|
1129
1130
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1130
|
-
function h(A, P, j,
|
|
1131
|
+
function h(A, P, j, B, D) {
|
|
1131
1132
|
for (var F = A[P], W = 0; W < f.length; W++)
|
|
1132
1133
|
if (T(F, f[W]))
|
|
1133
1134
|
return null;
|
|
@@ -1135,26 +1136,26 @@ function ga() {
|
|
|
1135
1136
|
var ue = K(_);
|
|
1136
1137
|
return ue === "symbol" ? String(_) : _;
|
|
1137
1138
|
});
|
|
1138
|
-
return new
|
|
1139
|
+
return new C("Invalid " + B + " `" + D + "` of value `" + String(F) + "` " + ("supplied to `" + j + "`, expected one of " + $ + "."));
|
|
1139
1140
|
}
|
|
1140
|
-
return
|
|
1141
|
+
return N(h);
|
|
1141
1142
|
}
|
|
1142
1143
|
function G(f) {
|
|
1143
|
-
function h(A, P, j,
|
|
1144
|
+
function h(A, P, j, B, D) {
|
|
1144
1145
|
if (typeof f != "function")
|
|
1145
|
-
return new
|
|
1146
|
+
return new C("Property `" + D + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1146
1147
|
var F = A[P], W = q(F);
|
|
1147
1148
|
if (W !== "object")
|
|
1148
|
-
return new
|
|
1149
|
+
return new C("Invalid " + B + " `" + D + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
|
|
1149
1150
|
for (var $ in F)
|
|
1150
1151
|
if (o(F, $)) {
|
|
1151
|
-
var
|
|
1152
|
-
if (
|
|
1153
|
-
return
|
|
1152
|
+
var M = f(F, $, j, B, D + "." + $, n);
|
|
1153
|
+
if (M instanceof Error)
|
|
1154
|
+
return M;
|
|
1154
1155
|
}
|
|
1155
1156
|
return null;
|
|
1156
1157
|
}
|
|
1157
|
-
return
|
|
1158
|
+
return N(h);
|
|
1158
1159
|
}
|
|
1159
1160
|
function X(f) {
|
|
1160
1161
|
if (!Array.isArray(f))
|
|
@@ -1166,68 +1167,68 @@ function ga() {
|
|
|
1166
1167
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(A) + " at index " + h + "."
|
|
1167
1168
|
), r;
|
|
1168
1169
|
}
|
|
1169
|
-
function P(j,
|
|
1170
|
-
for (var $ = [],
|
|
1171
|
-
var te = f[
|
|
1170
|
+
function P(j, B, D, F, W) {
|
|
1171
|
+
for (var $ = [], M = 0; M < f.length; M++) {
|
|
1172
|
+
var te = f[M], _ = te(j, B, D, F, W, n);
|
|
1172
1173
|
if (_ == null)
|
|
1173
1174
|
return null;
|
|
1174
1175
|
_.data && o(_.data, "expectedType") && $.push(_.data.expectedType);
|
|
1175
1176
|
}
|
|
1176
1177
|
var ue = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1177
|
-
return new
|
|
1178
|
+
return new C("Invalid " + F + " `" + W + "` supplied to " + ("`" + D + "`" + ue + "."));
|
|
1178
1179
|
}
|
|
1179
|
-
return
|
|
1180
|
+
return N(P);
|
|
1180
1181
|
}
|
|
1181
1182
|
function se() {
|
|
1182
|
-
function f(h, A, P, j,
|
|
1183
|
-
return g(h[A]) ? null : new
|
|
1183
|
+
function f(h, A, P, j, B) {
|
|
1184
|
+
return g(h[A]) ? null : new C("Invalid " + j + " `" + B + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1184
1185
|
}
|
|
1185
|
-
return
|
|
1186
|
+
return N(f);
|
|
1186
1187
|
}
|
|
1187
1188
|
function de(f, h, A, P, j) {
|
|
1188
|
-
return new
|
|
1189
|
+
return new C(
|
|
1189
1190
|
(f || "React class") + ": " + h + " type `" + A + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1190
1191
|
);
|
|
1191
1192
|
}
|
|
1192
1193
|
function ve(f) {
|
|
1193
|
-
function h(A, P, j,
|
|
1194
|
+
function h(A, P, j, B, D) {
|
|
1194
1195
|
var F = A[P], W = q(F);
|
|
1195
1196
|
if (W !== "object")
|
|
1196
|
-
return new
|
|
1197
|
+
return new C("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1197
1198
|
for (var $ in f) {
|
|
1198
|
-
var
|
|
1199
|
-
if (typeof
|
|
1200
|
-
return de(j,
|
|
1201
|
-
var te =
|
|
1199
|
+
var M = f[$];
|
|
1200
|
+
if (typeof M != "function")
|
|
1201
|
+
return de(j, B, D, $, K(M));
|
|
1202
|
+
var te = M(F, $, j, B, D + "." + $, n);
|
|
1202
1203
|
if (te)
|
|
1203
1204
|
return te;
|
|
1204
1205
|
}
|
|
1205
1206
|
return null;
|
|
1206
1207
|
}
|
|
1207
|
-
return
|
|
1208
|
+
return N(h);
|
|
1208
1209
|
}
|
|
1209
1210
|
function ne(f) {
|
|
1210
|
-
function h(A, P, j,
|
|
1211
|
+
function h(A, P, j, B, D) {
|
|
1211
1212
|
var F = A[P], W = q(F);
|
|
1212
1213
|
if (W !== "object")
|
|
1213
|
-
return new
|
|
1214
|
+
return new C("Invalid " + B + " `" + D + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1214
1215
|
var $ = t({}, A[P], f);
|
|
1215
|
-
for (var
|
|
1216
|
-
var te = f[
|
|
1217
|
-
if (o(f,
|
|
1218
|
-
return de(j,
|
|
1216
|
+
for (var M in $) {
|
|
1217
|
+
var te = f[M];
|
|
1218
|
+
if (o(f, M) && typeof te != "function")
|
|
1219
|
+
return de(j, B, D, M, K(te));
|
|
1219
1220
|
if (!te)
|
|
1220
|
-
return new
|
|
1221
|
-
"Invalid " +
|
|
1221
|
+
return new C(
|
|
1222
|
+
"Invalid " + B + " `" + D + "` key `" + M + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(A[P], null, " ") + `
|
|
1222
1223
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1223
1224
|
);
|
|
1224
|
-
var _ = te(F,
|
|
1225
|
+
var _ = te(F, M, j, B, D + "." + M, n);
|
|
1225
1226
|
if (_)
|
|
1226
1227
|
return _;
|
|
1227
1228
|
}
|
|
1228
1229
|
return null;
|
|
1229
1230
|
}
|
|
1230
|
-
return
|
|
1231
|
+
return N(h);
|
|
1231
1232
|
}
|
|
1232
1233
|
function g(f) {
|
|
1233
1234
|
switch (typeof f) {
|
|
@@ -1302,7 +1303,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1302
1303
|
}, vt;
|
|
1303
1304
|
}
|
|
1304
1305
|
var _t, qt;
|
|
1305
|
-
function
|
|
1306
|
+
function ba() {
|
|
1306
1307
|
if (qt) return _t;
|
|
1307
1308
|
qt = 1;
|
|
1308
1309
|
var e = It();
|
|
@@ -1350,12 +1351,12 @@ function ha() {
|
|
|
1350
1351
|
}, _t;
|
|
1351
1352
|
}
|
|
1352
1353
|
if (process.env.NODE_ENV !== "production") {
|
|
1353
|
-
var
|
|
1354
|
-
wt.exports =
|
|
1354
|
+
var ya = _n(), wa = !0;
|
|
1355
|
+
wt.exports = ha()(ya.isElement, wa);
|
|
1355
1356
|
} else
|
|
1356
|
-
wt.exports =
|
|
1357
|
-
var
|
|
1358
|
-
const
|
|
1357
|
+
wt.exports = ba()();
|
|
1358
|
+
var Ca = wt.exports;
|
|
1359
|
+
const k = /* @__PURE__ */ vn(Ca);
|
|
1359
1360
|
function Ne(e, t, n, o) {
|
|
1360
1361
|
function a(i) {
|
|
1361
1362
|
return i instanceof n ? i : new n(function(r) {
|
|
@@ -2587,10 +2588,10 @@ const ka = /* @__PURE__ */ new Map([
|
|
|
2587
2588
|
["zsh", "text/x-scriptzsh"]
|
|
2588
2589
|
]);
|
|
2589
2590
|
function Le(e, t, n) {
|
|
2590
|
-
const o =
|
|
2591
|
+
const o = Ta(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
2591
2592
|
return typeof o.path != "string" && $t(o, "path", i), $t(o, "relativePath", i), o;
|
|
2592
2593
|
}
|
|
2593
|
-
function
|
|
2594
|
+
function Ta(e) {
|
|
2594
2595
|
const { name: t } = e;
|
|
2595
2596
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2596
2597
|
const o = t.split(".").pop().toLowerCase(), a = ka.get(o);
|
|
@@ -2611,51 +2612,51 @@ function $t(e, t, n) {
|
|
|
2611
2612
|
enumerable: !0
|
|
2612
2613
|
});
|
|
2613
2614
|
}
|
|
2614
|
-
const
|
|
2615
|
+
const Ea = [
|
|
2615
2616
|
// Thumbnail cache files for macOS and Windows
|
|
2616
2617
|
".DS_Store",
|
|
2617
2618
|
// macOs
|
|
2618
2619
|
"Thumbs.db"
|
|
2619
2620
|
// Windows
|
|
2620
2621
|
];
|
|
2621
|
-
function
|
|
2622
|
+
function Sa(e) {
|
|
2622
2623
|
return Ne(this, void 0, void 0, function* () {
|
|
2623
|
-
return Ke(e) &&
|
|
2624
|
+
return Ke(e) && ja(e.dataTransfer) ? Ra(e.dataTransfer, e.type) : Ia(e) ? Na(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Da(e) : [];
|
|
2624
2625
|
});
|
|
2625
2626
|
}
|
|
2626
|
-
function
|
|
2627
|
+
function ja(e) {
|
|
2627
2628
|
return Ke(e);
|
|
2628
2629
|
}
|
|
2629
|
-
function
|
|
2630
|
+
function Ia(e) {
|
|
2630
2631
|
return Ke(e) && Ke(e.target);
|
|
2631
2632
|
}
|
|
2632
2633
|
function Ke(e) {
|
|
2633
2634
|
return typeof e == "object" && e !== null;
|
|
2634
2635
|
}
|
|
2635
|
-
function Ia(e) {
|
|
2636
|
-
return kt(e.target.files).map((t) => Le(t));
|
|
2637
|
-
}
|
|
2638
2636
|
function Na(e) {
|
|
2637
|
+
return Ct(e.target.files).map((t) => Le(t));
|
|
2638
|
+
}
|
|
2639
|
+
function Da(e) {
|
|
2639
2640
|
return Ne(this, void 0, void 0, function* () {
|
|
2640
2641
|
return (yield Promise.all(e.map((n) => n.getFile()))).map((n) => Le(n));
|
|
2641
2642
|
});
|
|
2642
2643
|
}
|
|
2643
|
-
function
|
|
2644
|
+
function Ra(e, t) {
|
|
2644
2645
|
return Ne(this, void 0, void 0, function* () {
|
|
2645
2646
|
if (e.items) {
|
|
2646
|
-
const n =
|
|
2647
|
+
const n = Ct(e.items).filter((a) => a.kind === "file");
|
|
2647
2648
|
if (t !== "drop")
|
|
2648
2649
|
return n;
|
|
2649
|
-
const o = yield Promise.all(n.map(
|
|
2650
|
+
const o = yield Promise.all(n.map(Aa));
|
|
2650
2651
|
return Ht(gn(o));
|
|
2651
2652
|
}
|
|
2652
|
-
return Ht(
|
|
2653
|
+
return Ht(Ct(e.files).map((n) => Le(n)));
|
|
2653
2654
|
});
|
|
2654
2655
|
}
|
|
2655
2656
|
function Ht(e) {
|
|
2656
|
-
return e.filter((t) =>
|
|
2657
|
+
return e.filter((t) => Ea.indexOf(t.name) === -1);
|
|
2657
2658
|
}
|
|
2658
|
-
function
|
|
2659
|
+
function Ct(e) {
|
|
2659
2660
|
if (e === null)
|
|
2660
2661
|
return [];
|
|
2661
2662
|
const t = [];
|
|
@@ -2665,7 +2666,7 @@ function kt(e) {
|
|
|
2665
2666
|
}
|
|
2666
2667
|
return t;
|
|
2667
2668
|
}
|
|
2668
|
-
function
|
|
2669
|
+
function Aa(e) {
|
|
2669
2670
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2670
2671
|
return Yt(e);
|
|
2671
2672
|
const t = e.webkitGetAsEntry();
|
|
@@ -2695,9 +2696,9 @@ function Yt(e, t) {
|
|
|
2695
2696
|
return Le(o, (n = t == null ? void 0 : t.fullPath) !== null && n !== void 0 ? n : void 0);
|
|
2696
2697
|
});
|
|
2697
2698
|
}
|
|
2698
|
-
function
|
|
2699
|
+
function Oa(e) {
|
|
2699
2700
|
return Ne(this, void 0, void 0, function* () {
|
|
2700
|
-
return e.isDirectory ? hn(e) :
|
|
2701
|
+
return e.isDirectory ? hn(e) : La(e);
|
|
2701
2702
|
});
|
|
2702
2703
|
}
|
|
2703
2704
|
function hn(e) {
|
|
@@ -2707,7 +2708,7 @@ function hn(e) {
|
|
|
2707
2708
|
function i() {
|
|
2708
2709
|
t.readEntries((r) => Ne(this, void 0, void 0, function* () {
|
|
2709
2710
|
if (r.length) {
|
|
2710
|
-
const s = Promise.all(r.map(
|
|
2711
|
+
const s = Promise.all(r.map(Oa));
|
|
2711
2712
|
a.push(s), i();
|
|
2712
2713
|
} else
|
|
2713
2714
|
try {
|
|
@@ -2723,7 +2724,7 @@ function hn(e) {
|
|
|
2723
2724
|
i();
|
|
2724
2725
|
});
|
|
2725
2726
|
}
|
|
2726
|
-
function
|
|
2727
|
+
function La(e) {
|
|
2727
2728
|
return Ne(this, void 0, void 0, function* () {
|
|
2728
2729
|
return new Promise((t, n) => {
|
|
2729
2730
|
e.file((o) => {
|
|
@@ -2749,17 +2750,17 @@ var xt = function(e, t) {
|
|
|
2749
2750
|
return !0;
|
|
2750
2751
|
};
|
|
2751
2752
|
function Vt(e) {
|
|
2752
|
-
return
|
|
2753
|
+
return za(e) || Fa(e) || yn(e) || Pa();
|
|
2753
2754
|
}
|
|
2754
|
-
function
|
|
2755
|
+
function Pa() {
|
|
2755
2756
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2756
2757
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2757
2758
|
}
|
|
2758
|
-
function
|
|
2759
|
+
function Fa(e) {
|
|
2759
2760
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2760
2761
|
}
|
|
2761
|
-
function
|
|
2762
|
-
if (Array.isArray(e)) return
|
|
2762
|
+
function za(e) {
|
|
2763
|
+
if (Array.isArray(e)) return kt(e);
|
|
2763
2764
|
}
|
|
2764
2765
|
function Ut(e, t) {
|
|
2765
2766
|
var n = Object.keys(e);
|
|
@@ -2785,22 +2786,22 @@ function Gt(e) {
|
|
|
2785
2786
|
function bn(e, t, n) {
|
|
2786
2787
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2787
2788
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2789
|
+
function Be(e, t) {
|
|
2790
|
+
return Wa(e) || Ba(e, t) || yn(e, t) || Ma();
|
|
2790
2791
|
}
|
|
2791
|
-
function
|
|
2792
|
+
function Ma() {
|
|
2792
2793
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2793
2794
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2794
2795
|
}
|
|
2795
2796
|
function yn(e, t) {
|
|
2796
2797
|
if (e) {
|
|
2797
|
-
if (typeof e == "string") return
|
|
2798
|
+
if (typeof e == "string") return kt(e, t);
|
|
2798
2799
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2799
2800
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2800
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
2801
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return kt(e, t);
|
|
2801
2802
|
}
|
|
2802
2803
|
}
|
|
2803
|
-
function
|
|
2804
|
+
function kt(e, t) {
|
|
2804
2805
|
(t == null || t > e.length) && (t = e.length);
|
|
2805
2806
|
for (var n = 0, o = new Array(t); n < t; n++)
|
|
2806
2807
|
o[n] = e[n];
|
|
@@ -2825,34 +2826,34 @@ function Ba(e, t) {
|
|
|
2825
2826
|
return o;
|
|
2826
2827
|
}
|
|
2827
2828
|
}
|
|
2828
|
-
function
|
|
2829
|
+
function Wa(e) {
|
|
2829
2830
|
if (Array.isArray(e)) return e;
|
|
2830
2831
|
}
|
|
2831
|
-
var
|
|
2832
|
+
var qa = typeof xt == "function" ? xt : xt.default, $a = "file-invalid-type", Ha = "file-too-large", Ya = "file-too-small", Va = "too-many-files", Ua = function() {
|
|
2832
2833
|
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];
|
|
2833
2834
|
return {
|
|
2834
|
-
code:
|
|
2835
|
+
code: $a,
|
|
2835
2836
|
message: "File type must be ".concat(o)
|
|
2836
2837
|
};
|
|
2837
2838
|
}, Kt = function(t) {
|
|
2838
2839
|
return {
|
|
2839
|
-
code:
|
|
2840
|
+
code: Ha,
|
|
2840
2841
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2841
2842
|
};
|
|
2842
2843
|
}, Xt = function(t) {
|
|
2843
2844
|
return {
|
|
2844
|
-
code:
|
|
2845
|
+
code: Ya,
|
|
2845
2846
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2846
2847
|
};
|
|
2847
|
-
},
|
|
2848
|
-
code:
|
|
2848
|
+
}, Ga = {
|
|
2849
|
+
code: Va,
|
|
2849
2850
|
message: "Too many files"
|
|
2850
2851
|
};
|
|
2851
2852
|
function wn(e, t) {
|
|
2852
|
-
var n = e.type === "application/x-moz-file" ||
|
|
2853
|
-
return [n, n ? null :
|
|
2853
|
+
var n = e.type === "application/x-moz-file" || qa(e, t);
|
|
2854
|
+
return [n, n ? null : Ua(t)];
|
|
2854
2855
|
}
|
|
2855
|
-
function
|
|
2856
|
+
function Cn(e, t, n) {
|
|
2856
2857
|
if (Ie(e.size))
|
|
2857
2858
|
if (Ie(t) && Ie(n)) {
|
|
2858
2859
|
if (e.size > n) return [!1, Kt(n)];
|
|
@@ -2866,11 +2867,11 @@ function kn(e, t, n) {
|
|
|
2866
2867
|
function Ie(e) {
|
|
2867
2868
|
return e != null;
|
|
2868
2869
|
}
|
|
2869
|
-
function
|
|
2870
|
+
function Ka(e) {
|
|
2870
2871
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2871
2872
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(m) {
|
|
2872
|
-
var d = wn(m, n), u =
|
|
2873
|
-
return c && T && !
|
|
2873
|
+
var d = wn(m, n), u = Be(d, 1), c = u[0], y = Cn(m, o, a), w = Be(y, 1), T = w[0], C = s ? s(m) : null;
|
|
2874
|
+
return c && T && !C;
|
|
2874
2875
|
});
|
|
2875
2876
|
}
|
|
2876
2877
|
function Xe(e) {
|
|
@@ -2884,15 +2885,15 @@ function Ue(e) {
|
|
|
2884
2885
|
function Zt(e) {
|
|
2885
2886
|
e.preventDefault();
|
|
2886
2887
|
}
|
|
2887
|
-
function
|
|
2888
|
+
function Xa(e) {
|
|
2888
2889
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2889
2890
|
}
|
|
2890
|
-
function
|
|
2891
|
+
function Za(e) {
|
|
2891
2892
|
return e.indexOf("Edge/") !== -1;
|
|
2892
2893
|
}
|
|
2893
|
-
function
|
|
2894
|
+
function Qa() {
|
|
2894
2895
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2895
|
-
return
|
|
2896
|
+
return Xa(e) || Za(e);
|
|
2896
2897
|
}
|
|
2897
2898
|
function we() {
|
|
2898
2899
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -2905,16 +2906,16 @@ function we() {
|
|
|
2905
2906
|
});
|
|
2906
2907
|
};
|
|
2907
2908
|
}
|
|
2908
|
-
function
|
|
2909
|
+
function Ja() {
|
|
2909
2910
|
return "showOpenFilePicker" in window;
|
|
2910
2911
|
}
|
|
2911
|
-
function
|
|
2912
|
+
function ei(e) {
|
|
2912
2913
|
if (Ie(e)) {
|
|
2913
2914
|
var t = Object.entries(e).filter(function(n) {
|
|
2914
|
-
var o =
|
|
2915
|
-
return
|
|
2915
|
+
var o = Be(n, 2), a = o[0], i = o[1], r = !0;
|
|
2916
|
+
return kn(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;
|
|
2916
2917
|
}).reduce(function(n, o) {
|
|
2917
|
-
var a =
|
|
2918
|
+
var a = Be(o, 2), i = a[0], r = a[1];
|
|
2918
2919
|
return Gt(Gt({}, n), {}, bn({}, i, r));
|
|
2919
2920
|
}, {});
|
|
2920
2921
|
return [{
|
|
@@ -2925,45 +2926,45 @@ function Ja(e) {
|
|
|
2925
2926
|
}
|
|
2926
2927
|
return e;
|
|
2927
2928
|
}
|
|
2928
|
-
function
|
|
2929
|
+
function ti(e) {
|
|
2929
2930
|
if (Ie(e))
|
|
2930
2931
|
return Object.entries(e).reduce(function(t, n) {
|
|
2931
|
-
var o =
|
|
2932
|
+
var o = Be(n, 2), a = o[0], i = o[1];
|
|
2932
2933
|
return [].concat(Vt(t), [a], Vt(i));
|
|
2933
2934
|
}, []).filter(function(t) {
|
|
2934
|
-
return
|
|
2935
|
+
return kn(t) || Tn(t);
|
|
2935
2936
|
}).join(",");
|
|
2936
2937
|
}
|
|
2937
|
-
function
|
|
2938
|
+
function ni(e) {
|
|
2938
2939
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2939
2940
|
}
|
|
2940
|
-
function
|
|
2941
|
+
function oi(e) {
|
|
2941
2942
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2942
2943
|
}
|
|
2943
|
-
function
|
|
2944
|
+
function kn(e) {
|
|
2944
2945
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2945
2946
|
}
|
|
2946
2947
|
function Tn(e) {
|
|
2947
2948
|
return /^.*\.[\w]+$/.test(e);
|
|
2948
2949
|
}
|
|
2949
|
-
var
|
|
2950
|
-
function
|
|
2951
|
-
return
|
|
2950
|
+
var ai = ["children"], ii = ["open"], ri = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], si = ["refKey", "onChange", "onClick"];
|
|
2951
|
+
function pi(e) {
|
|
2952
|
+
return di(e) || li(e) || En(e) || ci();
|
|
2952
2953
|
}
|
|
2953
|
-
function
|
|
2954
|
+
function ci() {
|
|
2954
2955
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2955
2956
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2956
2957
|
}
|
|
2957
|
-
function
|
|
2958
|
+
function li(e) {
|
|
2958
2959
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2959
2960
|
}
|
|
2960
|
-
function
|
|
2961
|
+
function di(e) {
|
|
2961
2962
|
if (Array.isArray(e)) return Tt(e);
|
|
2962
2963
|
}
|
|
2963
2964
|
function gt(e, t) {
|
|
2964
|
-
return
|
|
2965
|
+
return fi(e) || mi(e, t) || En(e, t) || ui();
|
|
2965
2966
|
}
|
|
2966
|
-
function
|
|
2967
|
+
function ui() {
|
|
2967
2968
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2968
2969
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2969
2970
|
}
|
|
@@ -2981,7 +2982,7 @@ function Tt(e, t) {
|
|
|
2981
2982
|
o[n] = e[n];
|
|
2982
2983
|
return o;
|
|
2983
2984
|
}
|
|
2984
|
-
function
|
|
2985
|
+
function mi(e, t) {
|
|
2985
2986
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2986
2987
|
if (n != null) {
|
|
2987
2988
|
var o = [], a = !0, i = !1, r, s;
|
|
@@ -3000,7 +3001,7 @@ function ui(e, t) {
|
|
|
3000
3001
|
return o;
|
|
3001
3002
|
}
|
|
3002
3003
|
}
|
|
3003
|
-
function
|
|
3004
|
+
function fi(e) {
|
|
3004
3005
|
if (Array.isArray(e)) return e;
|
|
3005
3006
|
}
|
|
3006
3007
|
function Qt(e, t) {
|
|
@@ -3029,7 +3030,7 @@ function Et(e, t, n) {
|
|
|
3029
3030
|
}
|
|
3030
3031
|
function Ze(e, t) {
|
|
3031
3032
|
if (e == null) return {};
|
|
3032
|
-
var n =
|
|
3033
|
+
var n = vi(e, t), o, a;
|
|
3033
3034
|
if (Object.getOwnPropertySymbols) {
|
|
3034
3035
|
var i = Object.getOwnPropertySymbols(e);
|
|
3035
3036
|
for (a = 0; a < i.length; a++)
|
|
@@ -3037,7 +3038,7 @@ function Ze(e, t) {
|
|
|
3037
3038
|
}
|
|
3038
3039
|
return n;
|
|
3039
3040
|
}
|
|
3040
|
-
function
|
|
3041
|
+
function vi(e, t) {
|
|
3041
3042
|
if (e == null) return {};
|
|
3042
3043
|
var n = {}, o = Object.keys(e), a, i;
|
|
3043
3044
|
for (i = 0; i < o.length; i++)
|
|
@@ -3045,19 +3046,19 @@ function fi(e, t) {
|
|
|
3045
3046
|
return n;
|
|
3046
3047
|
}
|
|
3047
3048
|
var Je = /* @__PURE__ */ Fn(function(e, t) {
|
|
3048
|
-
var n = e.children, o = Ze(e,
|
|
3049
|
+
var n = e.children, o = Ze(e, ai), a = _i(o), i = a.open, r = Ze(a, ii);
|
|
3049
3050
|
return zn(t, function() {
|
|
3050
3051
|
return {
|
|
3051
3052
|
open: i
|
|
3052
3053
|
};
|
|
3053
|
-
}, [i]), /* @__PURE__ */ We.createElement(
|
|
3054
|
+
}, [i]), /* @__PURE__ */ We.createElement(Mn, null, n(Z(Z({}, r), {}, {
|
|
3054
3055
|
open: i
|
|
3055
3056
|
})));
|
|
3056
3057
|
});
|
|
3057
3058
|
Je.displayName = "Dropzone";
|
|
3058
3059
|
var Sn = {
|
|
3059
3060
|
disabled: !1,
|
|
3060
|
-
getFilesFromEvent:
|
|
3061
|
+
getFilesFromEvent: Sa,
|
|
3061
3062
|
maxSize: 1 / 0,
|
|
3062
3063
|
minSize: 0,
|
|
3063
3064
|
multiple: !0,
|
|
@@ -3088,7 +3089,7 @@ Je.propTypes = {
|
|
|
3088
3089
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3089
3090
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3090
3091
|
*/
|
|
3091
|
-
children:
|
|
3092
|
+
children: k.func,
|
|
3092
3093
|
/**
|
|
3093
3094
|
* Set accepted file types.
|
|
3094
3095
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3096,90 +3097,90 @@ Je.propTypes = {
|
|
|
3096
3097
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3097
3098
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3098
3099
|
*/
|
|
3099
|
-
accept:
|
|
3100
|
+
accept: k.objectOf(k.arrayOf(k.string)),
|
|
3100
3101
|
/**
|
|
3101
3102
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3102
3103
|
*/
|
|
3103
|
-
multiple:
|
|
3104
|
+
multiple: k.bool,
|
|
3104
3105
|
/**
|
|
3105
3106
|
* If false, allow dropped items to take over the current browser window
|
|
3106
3107
|
*/
|
|
3107
|
-
preventDropOnDocument:
|
|
3108
|
+
preventDropOnDocument: k.bool,
|
|
3108
3109
|
/**
|
|
3109
3110
|
* If true, disables click to open the native file selection dialog
|
|
3110
3111
|
*/
|
|
3111
|
-
noClick:
|
|
3112
|
+
noClick: k.bool,
|
|
3112
3113
|
/**
|
|
3113
3114
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3114
3115
|
* Note that it also stops tracking the focus state.
|
|
3115
3116
|
*/
|
|
3116
|
-
noKeyboard:
|
|
3117
|
+
noKeyboard: k.bool,
|
|
3117
3118
|
/**
|
|
3118
3119
|
* If true, disables drag 'n' drop
|
|
3119
3120
|
*/
|
|
3120
|
-
noDrag:
|
|
3121
|
+
noDrag: k.bool,
|
|
3121
3122
|
/**
|
|
3122
3123
|
* If true, stops drag event propagation to parents
|
|
3123
3124
|
*/
|
|
3124
|
-
noDragEventsBubbling:
|
|
3125
|
+
noDragEventsBubbling: k.bool,
|
|
3125
3126
|
/**
|
|
3126
3127
|
* Minimum file size (in bytes)
|
|
3127
3128
|
*/
|
|
3128
|
-
minSize:
|
|
3129
|
+
minSize: k.number,
|
|
3129
3130
|
/**
|
|
3130
3131
|
* Maximum file size (in bytes)
|
|
3131
3132
|
*/
|
|
3132
|
-
maxSize:
|
|
3133
|
+
maxSize: k.number,
|
|
3133
3134
|
/**
|
|
3134
3135
|
* Maximum accepted number of files
|
|
3135
3136
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3136
3137
|
*/
|
|
3137
|
-
maxFiles:
|
|
3138
|
+
maxFiles: k.number,
|
|
3138
3139
|
/**
|
|
3139
3140
|
* Enable/disable the dropzone
|
|
3140
3141
|
*/
|
|
3141
|
-
disabled:
|
|
3142
|
+
disabled: k.bool,
|
|
3142
3143
|
/**
|
|
3143
3144
|
* Use this to provide a custom file aggregator
|
|
3144
3145
|
*
|
|
3145
3146
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3146
3147
|
*/
|
|
3147
|
-
getFilesFromEvent:
|
|
3148
|
+
getFilesFromEvent: k.func,
|
|
3148
3149
|
/**
|
|
3149
3150
|
* Cb for when closing the file dialog with no selection
|
|
3150
3151
|
*/
|
|
3151
|
-
onFileDialogCancel:
|
|
3152
|
+
onFileDialogCancel: k.func,
|
|
3152
3153
|
/**
|
|
3153
3154
|
* Cb for when opening the file dialog
|
|
3154
3155
|
*/
|
|
3155
|
-
onFileDialogOpen:
|
|
3156
|
+
onFileDialogOpen: k.func,
|
|
3156
3157
|
/**
|
|
3157
3158
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3158
3159
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3159
3160
|
*/
|
|
3160
|
-
useFsAccessApi:
|
|
3161
|
+
useFsAccessApi: k.bool,
|
|
3161
3162
|
/**
|
|
3162
3163
|
* Set to true to focus the root element on render
|
|
3163
3164
|
*/
|
|
3164
|
-
autoFocus:
|
|
3165
|
+
autoFocus: k.bool,
|
|
3165
3166
|
/**
|
|
3166
3167
|
* Cb for when the `dragenter` event occurs.
|
|
3167
3168
|
*
|
|
3168
3169
|
* @param {DragEvent} event
|
|
3169
3170
|
*/
|
|
3170
|
-
onDragEnter:
|
|
3171
|
+
onDragEnter: k.func,
|
|
3171
3172
|
/**
|
|
3172
3173
|
* Cb for when the `dragleave` event occurs
|
|
3173
3174
|
*
|
|
3174
3175
|
* @param {DragEvent} event
|
|
3175
3176
|
*/
|
|
3176
|
-
onDragLeave:
|
|
3177
|
+
onDragLeave: k.func,
|
|
3177
3178
|
/**
|
|
3178
3179
|
* Cb for when the `dragover` event occurs
|
|
3179
3180
|
*
|
|
3180
3181
|
* @param {DragEvent} event
|
|
3181
3182
|
*/
|
|
3182
|
-
onDragOver:
|
|
3183
|
+
onDragOver: k.func,
|
|
3183
3184
|
/**
|
|
3184
3185
|
* Cb for when the `drop` event occurs.
|
|
3185
3186
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3210,7 +3211,7 @@ Je.propTypes = {
|
|
|
3210
3211
|
* @param {FileRejection[]} fileRejections
|
|
3211
3212
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3212
3213
|
*/
|
|
3213
|
-
onDrop:
|
|
3214
|
+
onDrop: k.func,
|
|
3214
3215
|
/**
|
|
3215
3216
|
* Cb for when the `drop` event occurs.
|
|
3216
3217
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3218,7 +3219,7 @@ Je.propTypes = {
|
|
|
3218
3219
|
* @param {File[]} files
|
|
3219
3220
|
* @param {(DragEvent|Event)} event
|
|
3220
3221
|
*/
|
|
3221
|
-
onDropAccepted:
|
|
3222
|
+
onDropAccepted: k.func,
|
|
3222
3223
|
/**
|
|
3223
3224
|
* Cb for when the `drop` event occurs.
|
|
3224
3225
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3226,19 +3227,19 @@ Je.propTypes = {
|
|
|
3226
3227
|
* @param {FileRejection[]} fileRejections
|
|
3227
3228
|
* @param {(DragEvent|Event)} event
|
|
3228
3229
|
*/
|
|
3229
|
-
onDropRejected:
|
|
3230
|
+
onDropRejected: k.func,
|
|
3230
3231
|
/**
|
|
3231
3232
|
* Cb for when there's some error from any of the promises.
|
|
3232
3233
|
*
|
|
3233
3234
|
* @param {Error} error
|
|
3234
3235
|
*/
|
|
3235
|
-
onError:
|
|
3236
|
+
onError: k.func,
|
|
3236
3237
|
/**
|
|
3237
3238
|
* Custom validation function. It must return null if there's no errors.
|
|
3238
3239
|
* @param {File} file
|
|
3239
3240
|
* @returns {FileError|FileError[]|null}
|
|
3240
3241
|
*/
|
|
3241
|
-
validator:
|
|
3242
|
+
validator: k.func
|
|
3242
3243
|
};
|
|
3243
3244
|
var St = {
|
|
3244
3245
|
isFocused: !1,
|
|
@@ -3249,16 +3250,16 @@ var St = {
|
|
|
3249
3250
|
acceptedFiles: [],
|
|
3250
3251
|
fileRejections: []
|
|
3251
3252
|
};
|
|
3252
|
-
function
|
|
3253
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, y = t.onDrop, w = t.onDropAccepted, T = t.onDropRejected,
|
|
3254
|
-
return
|
|
3253
|
+
function _i() {
|
|
3254
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, y = t.onDrop, w = t.onDropAccepted, T = t.onDropRejected, C = t.onFileDialogCancel, N = t.onFileDialogOpen, O = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, S = t.noDrag, z = t.noDragEventsBubbling, G = t.onError, X = t.validator, se = Ae(function() {
|
|
3255
|
+
return ti(n);
|
|
3255
3256
|
}, [n]), de = Ae(function() {
|
|
3256
|
-
return
|
|
3257
|
+
return ei(n);
|
|
3257
3258
|
}, [n]), ve = Ae(function() {
|
|
3258
|
-
return typeof
|
|
3259
|
-
}, [
|
|
3260
|
-
return typeof
|
|
3261
|
-
}, [
|
|
3259
|
+
return typeof N == "function" ? N : Jt;
|
|
3260
|
+
}, [N]), ne = Ae(function() {
|
|
3261
|
+
return typeof C == "function" ? C : Jt;
|
|
3262
|
+
}, [C]), g = ke(null), L = ke(null), q = Bn(xi, St), K = gt(q, 2), ee = K[0], Q = K[1], f = ee.isFocused, h = ee.isFileDialogActive, A = ke(typeof window < "u" && window.isSecureContext && O && Ja()), P = function() {
|
|
3262
3263
|
!A.current && h && setTimeout(function() {
|
|
3263
3264
|
if (L.current) {
|
|
3264
3265
|
var E = L.current.files;
|
|
@@ -3273,23 +3274,23 @@ function vi() {
|
|
|
3273
3274
|
window.removeEventListener("focus", P, !1);
|
|
3274
3275
|
};
|
|
3275
3276
|
}, [L, h, ne, A]);
|
|
3276
|
-
var j =
|
|
3277
|
+
var j = ke([]), B = function(E) {
|
|
3277
3278
|
g.current && g.current.contains(E.target) || (E.preventDefault(), j.current = []);
|
|
3278
3279
|
};
|
|
3279
3280
|
re(function() {
|
|
3280
|
-
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop",
|
|
3281
|
-
R && (document.removeEventListener("dragover", Zt), document.removeEventListener("drop",
|
|
3281
|
+
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop", B, !1)), function() {
|
|
3282
|
+
R && (document.removeEventListener("dragover", Zt), document.removeEventListener("drop", B));
|
|
3282
3283
|
};
|
|
3283
3284
|
}, [g, R]), re(function() {
|
|
3284
3285
|
return !o && Y && g.current && g.current.focus(), function() {
|
|
3285
3286
|
};
|
|
3286
3287
|
}, [g, Y, o]);
|
|
3287
|
-
var
|
|
3288
|
+
var D = le(function(x) {
|
|
3288
3289
|
G ? G(x) : console.error(x);
|
|
3289
3290
|
}, [G]), F = le(function(x) {
|
|
3290
|
-
x.preventDefault(), x.persist(), $e(x), j.current = [].concat(
|
|
3291
|
+
x.preventDefault(), x.persist(), $e(x), j.current = [].concat(pi(j.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(E) {
|
|
3291
3292
|
if (!(Xe(x) && !z)) {
|
|
3292
|
-
var J = E.length, oe = J > 0 &&
|
|
3293
|
+
var J = E.length, oe = J > 0 && Ka({
|
|
3293
3294
|
files: E,
|
|
3294
3295
|
accept: se,
|
|
3295
3296
|
minSize: r,
|
|
@@ -3306,9 +3307,9 @@ function vi() {
|
|
|
3306
3307
|
}), d && d(x);
|
|
3307
3308
|
}
|
|
3308
3309
|
}).catch(function(E) {
|
|
3309
|
-
return
|
|
3310
|
+
return D(E);
|
|
3310
3311
|
});
|
|
3311
|
-
}, [a, d,
|
|
3312
|
+
}, [a, d, D, z, se, r, i, s, m, X]), W = le(function(x) {
|
|
3312
3313
|
x.preventDefault(), x.persist(), $e(x);
|
|
3313
3314
|
var E = Ue(x);
|
|
3314
3315
|
if (E && x.dataTransfer)
|
|
@@ -3328,10 +3329,10 @@ function vi() {
|
|
|
3328
3329
|
isDragAccept: !1,
|
|
3329
3330
|
isDragReject: !1
|
|
3330
3331
|
}), Ue(x) && u && u(x));
|
|
3331
|
-
}, [g, u, z]),
|
|
3332
|
+
}, [g, u, z]), M = le(function(x, E) {
|
|
3332
3333
|
var J = [], oe = [];
|
|
3333
3334
|
x.forEach(function(me) {
|
|
3334
|
-
var Fe = wn(me, se), Re = gt(Fe, 2), tt = Re[0], nt = Re[1], ot =
|
|
3335
|
+
var Fe = wn(me, se), Re = gt(Fe, 2), tt = Re[0], nt = Re[1], ot = Cn(me, r, i), He = gt(ot, 2), at = He[0], it = He[1], rt = X ? X(me) : null;
|
|
3335
3336
|
if (tt && at && !rt)
|
|
3336
3337
|
J.push(me);
|
|
3337
3338
|
else {
|
|
@@ -3346,7 +3347,7 @@ function vi() {
|
|
|
3346
3347
|
}), (!s && J.length > 1 || s && m >= 1 && J.length > m) && (J.forEach(function(me) {
|
|
3347
3348
|
oe.push({
|
|
3348
3349
|
file: me,
|
|
3349
|
-
errors: [
|
|
3350
|
+
errors: [Ga]
|
|
3350
3351
|
});
|
|
3351
3352
|
}), J.splice(0)), Q({
|
|
3352
3353
|
acceptedFiles: J,
|
|
@@ -3356,13 +3357,13 @@ function vi() {
|
|
|
3356
3357
|
}), y && y(J, oe, E), oe.length > 0 && T && T(oe, E), J.length > 0 && w && w(J, E);
|
|
3357
3358
|
}, [Q, s, se, r, i, m, y, w, T, X]), te = le(function(x) {
|
|
3358
3359
|
x.preventDefault(), x.persist(), $e(x), j.current = [], Ue(x) && Promise.resolve(a(x)).then(function(E) {
|
|
3359
|
-
Xe(x) && !z ||
|
|
3360
|
+
Xe(x) && !z || M(E, x);
|
|
3360
3361
|
}).catch(function(E) {
|
|
3361
|
-
return
|
|
3362
|
+
return D(E);
|
|
3362
3363
|
}), Q({
|
|
3363
3364
|
type: "reset"
|
|
3364
3365
|
});
|
|
3365
|
-
}, [a,
|
|
3366
|
+
}, [a, M, D, z]), _ = le(function() {
|
|
3366
3367
|
if (A.current) {
|
|
3367
3368
|
Q({
|
|
3368
3369
|
type: "openDialog"
|
|
@@ -3374,20 +3375,20 @@ function vi() {
|
|
|
3374
3375
|
window.showOpenFilePicker(x).then(function(E) {
|
|
3375
3376
|
return a(E);
|
|
3376
3377
|
}).then(function(E) {
|
|
3377
|
-
|
|
3378
|
+
M(E, null), Q({
|
|
3378
3379
|
type: "closeDialog"
|
|
3379
3380
|
});
|
|
3380
3381
|
}).catch(function(E) {
|
|
3381
|
-
|
|
3382
|
+
ni(E) ? (ne(E), Q({
|
|
3382
3383
|
type: "closeDialog"
|
|
3383
|
-
})) :
|
|
3384
|
+
})) : oi(E) ? (A.current = !1, L.current ? (L.current.value = null, L.current.click()) : D(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."))) : D(E);
|
|
3384
3385
|
});
|
|
3385
3386
|
return;
|
|
3386
3387
|
}
|
|
3387
3388
|
L.current && (Q({
|
|
3388
3389
|
type: "openDialog"
|
|
3389
3390
|
}), ve(), L.current.value = null, L.current.click());
|
|
3390
|
-
}, [Q, ve, ne, O,
|
|
3391
|
+
}, [Q, ve, ne, O, M, D, de, s]), ue = le(function(x) {
|
|
3391
3392
|
!g.current || !g.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), _());
|
|
3392
3393
|
}, [g, _]), Se = le(function() {
|
|
3393
3394
|
Q({
|
|
@@ -3398,7 +3399,7 @@ function vi() {
|
|
|
3398
3399
|
type: "blur"
|
|
3399
3400
|
});
|
|
3400
3401
|
}, []), Rt = le(function() {
|
|
3401
|
-
b || (
|
|
3402
|
+
b || (Qa() ? setTimeout(_, 0) : _());
|
|
3402
3403
|
}, [b, _]), De = function(E) {
|
|
3403
3404
|
return o ? null : E;
|
|
3404
3405
|
}, et = function(E) {
|
|
@@ -3409,7 +3410,7 @@ function vi() {
|
|
|
3409
3410
|
z && E.stopPropagation();
|
|
3410
3411
|
}, An = Ae(function() {
|
|
3411
3412
|
return function() {
|
|
3412
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = x.refKey, J = E === void 0 ? "ref" : E, oe = x.role, me = 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,
|
|
3413
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = x.refKey, J = E === void 0 ? "ref" : E, oe = x.role, me = 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, ri);
|
|
3413
3414
|
return Z(Z(Et({
|
|
3414
3415
|
onKeyDown: et(we(me, ue)),
|
|
3415
3416
|
onFocus: et(we(Fe, Se)),
|
|
@@ -3428,7 +3429,7 @@ function vi() {
|
|
|
3428
3429
|
x.stopPropagation();
|
|
3429
3430
|
}, []), Ln = Ae(function() {
|
|
3430
3431
|
return function() {
|
|
3431
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = x.refKey, J = E === void 0 ? "ref" : E, oe = x.onChange, me = x.onClick, Fe = Ze(x,
|
|
3432
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = x.refKey, J = E === void 0 ? "ref" : E, oe = x.onChange, me = x.onClick, Fe = Ze(x, si), Re = Et({
|
|
3432
3433
|
accept: se,
|
|
3433
3434
|
multiple: s,
|
|
3434
3435
|
type: "file",
|
|
@@ -3460,7 +3461,7 @@ function vi() {
|
|
|
3460
3461
|
open: De(_)
|
|
3461
3462
|
});
|
|
3462
3463
|
}
|
|
3463
|
-
function
|
|
3464
|
+
function xi(e, t) {
|
|
3464
3465
|
switch (t.type) {
|
|
3465
3466
|
case "focus":
|
|
3466
3467
|
return Z(Z({}, e), {}, {
|
|
@@ -3498,7 +3499,7 @@ function _i(e, t) {
|
|
|
3498
3499
|
}
|
|
3499
3500
|
function Jt() {
|
|
3500
3501
|
}
|
|
3501
|
-
const
|
|
3502
|
+
const gi = (e) => {
|
|
3502
3503
|
const {
|
|
3503
3504
|
onDropFiles: t,
|
|
3504
3505
|
children: n,
|
|
@@ -3528,16 +3529,16 @@ const xi = (e) => {
|
|
|
3528
3529
|
/* @__PURE__ */ l("input", { ...y({}), disabled: i, name: r }),
|
|
3529
3530
|
n
|
|
3530
3531
|
] }) });
|
|
3531
|
-
},
|
|
3532
|
-
spDropdown:
|
|
3533
|
-
spDropdown__labelText:
|
|
3534
|
-
spDropdown__tooltipContainer:
|
|
3535
|
-
spDropdown__dropdownList:
|
|
3536
|
-
spDropdown__dropdownListHeader:
|
|
3532
|
+
}, hi = "_spDropdown_1f4lf_43", bi = "_spDropdown__labelText_1f4lf_54", yi = "_spDropdown__tooltipContainer_1f4lf_62", wi = "_spDropdown__dropdownList_1f4lf_67", Ci = "_spDropdown__dropdownListHeader_1f4lf_73", ki = "_spDropdown__dopdownListItem_1f4lf_80", Ti = "_spDropdown__dopdownListItem_textCenter_1f4lf_91", Ei = "_spDropdown__downloadListItemDescription_1f4lf_94", Ee = {
|
|
3533
|
+
spDropdown: hi,
|
|
3534
|
+
spDropdown__labelText: bi,
|
|
3535
|
+
spDropdown__tooltipContainer: yi,
|
|
3536
|
+
spDropdown__dropdownList: wi,
|
|
3537
|
+
spDropdown__dropdownListHeader: Ci,
|
|
3537
3538
|
spDropdown__dopdownListItem: ki,
|
|
3538
|
-
spDropdown__dopdownListItem_textCenter:
|
|
3539
|
-
spDropdown__downloadListItemDescription:
|
|
3540
|
-
},
|
|
3539
|
+
spDropdown__dopdownListItem_textCenter: Ti,
|
|
3540
|
+
spDropdown__downloadListItemDescription: Ei
|
|
3541
|
+
}, bs = (e) => {
|
|
3541
3542
|
const {
|
|
3542
3543
|
labelText: t = "Выпадающий список",
|
|
3543
3544
|
listName: n,
|
|
@@ -3566,20 +3567,20 @@ const xi = (e) => {
|
|
|
3566
3567
|
actionOnClose: () => w(!1),
|
|
3567
3568
|
text: /* @__PURE__ */ H("div", { className: d, children: [
|
|
3568
3569
|
n && /* @__PURE__ */ l("div", { className: u, children: n }),
|
|
3569
|
-
o.map((
|
|
3570
|
+
o.map((C, N) => /* @__PURE__ */ H(
|
|
3570
3571
|
"div",
|
|
3571
3572
|
{
|
|
3572
3573
|
className: v({
|
|
3573
3574
|
[Ee.spDropdown__dopdownListItem]: !0,
|
|
3574
|
-
[Ee.spDropdown__dopdownListItem_textCenter]:
|
|
3575
|
+
[Ee.spDropdown__dopdownListItem_textCenter]: C.textCenter
|
|
3575
3576
|
}),
|
|
3576
|
-
onClick:
|
|
3577
|
+
onClick: C.onClick,
|
|
3577
3578
|
children: [
|
|
3578
|
-
|
|
3579
|
-
|
|
3579
|
+
C.name,
|
|
3580
|
+
C.description && /* @__PURE__ */ l("span", { className: c, children: C.description })
|
|
3580
3581
|
]
|
|
3581
3582
|
},
|
|
3582
|
-
|
|
3583
|
+
N
|
|
3583
3584
|
))
|
|
3584
3585
|
] }),
|
|
3585
3586
|
position: a,
|
|
@@ -3591,10 +3592,10 @@ const xi = (e) => {
|
|
|
3591
3592
|
] })
|
|
3592
3593
|
}
|
|
3593
3594
|
);
|
|
3594
|
-
},
|
|
3595
|
-
ellipsisTextWithTooltip:
|
|
3596
|
-
ellipsisTextWithTooltip__tooltip:
|
|
3597
|
-
},
|
|
3595
|
+
}, Si = "_ellipsisTextWithTooltip_1nhiw_43", ji = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", en = {
|
|
3596
|
+
ellipsisTextWithTooltip: Si,
|
|
3597
|
+
ellipsisTextWithTooltip__tooltip: ji
|
|
3598
|
+
}, ys = (e) => {
|
|
3598
3599
|
const {
|
|
3599
3600
|
text: t,
|
|
3600
3601
|
classNameRoot: n,
|
|
@@ -3602,7 +3603,7 @@ const xi = (e) => {
|
|
|
3602
3603
|
classNameBaseTooltipContentRoot: a,
|
|
3603
3604
|
classNameBaseTooltipRoot: i,
|
|
3604
3605
|
...r
|
|
3605
|
-
} = e, s =
|
|
3606
|
+
} = e, s = ke(null), [m, d] = ce(!1);
|
|
3606
3607
|
re(() => {
|
|
3607
3608
|
s.current && d(s.current.scrollWidth > s.current.clientWidth);
|
|
3608
3609
|
}, [t]);
|
|
@@ -3624,13 +3625,13 @@ const xi = (e) => {
|
|
|
3624
3625
|
trigger: /* @__PURE__ */ l(Te, { ...r, classNameRoot: u, isEllipsis: !0, ref: s, children: t })
|
|
3625
3626
|
}
|
|
3626
3627
|
);
|
|
3627
|
-
},
|
|
3628
|
-
spForm:
|
|
3629
|
-
spForm_fullWidth:
|
|
3630
|
-
spForm_withSeparator:
|
|
3628
|
+
}, Ii = "_spForm_zefbj_43", Ni = "_spForm_fullWidth_zefbj_46", Di = "_spForm_withSeparator_zefbj_49", Me = {
|
|
3629
|
+
spForm: Ii,
|
|
3630
|
+
spForm_fullWidth: Ni,
|
|
3631
|
+
spForm_withSeparator: Di,
|
|
3631
3632
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3632
3633
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
3633
|
-
},
|
|
3634
|
+
}, ws = (e) => {
|
|
3634
3635
|
const {
|
|
3635
3636
|
size: t = "lg",
|
|
3636
3637
|
children: n,
|
|
@@ -3641,21 +3642,21 @@ const xi = (e) => {
|
|
|
3641
3642
|
classNameRoot: s,
|
|
3642
3643
|
...m
|
|
3643
3644
|
} = e, d = v({
|
|
3644
|
-
[
|
|
3645
|
-
[
|
|
3646
|
-
[
|
|
3647
|
-
[
|
|
3648
|
-
[
|
|
3645
|
+
[Me.spForm]: !0,
|
|
3646
|
+
[Me.spForm_fullWidth]: r,
|
|
3647
|
+
[Me.spForm_addMargin]: a,
|
|
3648
|
+
[Me[`spForm_addMargin--size-${t}`]]: a && t,
|
|
3649
|
+
[Me.spForm_withSeparator]: i,
|
|
3649
3650
|
...s && { [s]: !0 }
|
|
3650
3651
|
});
|
|
3651
3652
|
return /* @__PURE__ */ l("form", { ...m, onSubmit: (c) => {
|
|
3652
3653
|
c.preventDefault(), o && o();
|
|
3653
3654
|
}, className: d, children: n });
|
|
3654
|
-
},
|
|
3655
|
-
spLabel:
|
|
3656
|
-
spLabel__text:
|
|
3657
|
-
spLabel__tooltip:
|
|
3658
|
-
spLabel__required:
|
|
3655
|
+
}, Ri = "_spLabel_g0hfy_43", Ai = "_spLabel__text_g0hfy_52", Oi = "_spLabel__tooltip_g0hfy_62", Li = "_spLabel__required_g0hfy_67", Ge = {
|
|
3656
|
+
spLabel: Ri,
|
|
3657
|
+
spLabel__text: Ai,
|
|
3658
|
+
spLabel__tooltip: Oi,
|
|
3659
|
+
spLabel__required: Li
|
|
3659
3660
|
}, Nt = (e) => {
|
|
3660
3661
|
const {
|
|
3661
3662
|
required: t,
|
|
@@ -3678,15 +3679,15 @@ const xi = (e) => {
|
|
|
3678
3679
|
t && /* @__PURE__ */ l("div", { className: m, children: "*" }),
|
|
3679
3680
|
o && /* @__PURE__ */ l("div", { className: d, children: /* @__PURE__ */ l(Qe, { position: a, text: o }) })
|
|
3680
3681
|
] });
|
|
3681
|
-
},
|
|
3682
|
-
spInput:
|
|
3683
|
-
spInput_error:
|
|
3684
|
-
spInput__control:
|
|
3685
|
-
spInput__container:
|
|
3682
|
+
}, Pi = "_spInput_lvrd5_43", Fi = "_spInput_error_lvrd5_48", zi = "_spInput__control_lvrd5_48", Mi = "_spInput__container_lvrd5_55", Bi = "_spInput__control_clearable_lvrd5_75", Wi = "_spInput__clear_lvrd5_95", qi = "_spInput__error_lvrd5_104", je = {
|
|
3683
|
+
spInput: Pi,
|
|
3684
|
+
spInput_error: Fi,
|
|
3685
|
+
spInput__control: zi,
|
|
3686
|
+
spInput__container: Mi,
|
|
3686
3687
|
spInput__control_clearable: Bi,
|
|
3687
|
-
spInput__clear:
|
|
3688
|
-
spInput__error:
|
|
3689
|
-
},
|
|
3688
|
+
spInput__clear: Wi,
|
|
3689
|
+
spInput__error: qi
|
|
3690
|
+
}, $i = We.forwardRef((e, t) => {
|
|
3690
3691
|
const {
|
|
3691
3692
|
value: n,
|
|
3692
3693
|
onChange: o,
|
|
@@ -3701,15 +3702,15 @@ const xi = (e) => {
|
|
|
3701
3702
|
infoTooltipText: y,
|
|
3702
3703
|
tooltipPosition: w,
|
|
3703
3704
|
isVisibleDefaultTitle: T = !0,
|
|
3704
|
-
placeholder:
|
|
3705
|
-
classNameRoot:
|
|
3705
|
+
placeholder: C = "Введите...",
|
|
3706
|
+
classNameRoot: N,
|
|
3706
3707
|
classNameError: O,
|
|
3707
3708
|
classNameLabel: Y,
|
|
3708
3709
|
...R
|
|
3709
3710
|
} = e, b = v({
|
|
3710
3711
|
[je.spInput]: !0,
|
|
3711
3712
|
[je.spInput_error]: !!r,
|
|
3712
|
-
...
|
|
3713
|
+
...N && { [N]: !0 }
|
|
3713
3714
|
}), p = v({
|
|
3714
3715
|
[je.spInput__container]: !0
|
|
3715
3716
|
}), S = v({
|
|
@@ -3744,7 +3745,7 @@ const xi = (e) => {
|
|
|
3744
3745
|
"input",
|
|
3745
3746
|
{
|
|
3746
3747
|
...R,
|
|
3747
|
-
placeholder:
|
|
3748
|
+
placeholder: C,
|
|
3748
3749
|
disabled: i,
|
|
3749
3750
|
onChange: de,
|
|
3750
3751
|
title: T ? n : void 0,
|
|
@@ -3759,21 +3760,21 @@ const xi = (e) => {
|
|
|
3759
3760
|
r && /* @__PURE__ */ l("div", { className: G, children: r })
|
|
3760
3761
|
] });
|
|
3761
3762
|
});
|
|
3762
|
-
|
|
3763
|
-
const
|
|
3764
|
-
spInputFiles:
|
|
3765
|
-
spInputFiles_error:
|
|
3766
|
-
spInputFiles__control:
|
|
3767
|
-
spInputFiles_fileUploaded:
|
|
3768
|
-
spInputFiles_disabled:
|
|
3769
|
-
spInputFiles__fileNamesList:
|
|
3770
|
-
spInputFiles__fileNamesListItem:
|
|
3771
|
-
spInputFiles__fileNamesListItemDelete:
|
|
3772
|
-
spInputFiles__tooltipWrapper:
|
|
3773
|
-
spInputFiles__tooltip:
|
|
3774
|
-
spInputFiles__delete:
|
|
3775
|
-
spInputFiles__error:
|
|
3776
|
-
},
|
|
3763
|
+
$i.displayName = "Input";
|
|
3764
|
+
const Hi = "_spInputFiles_12x0f_43", Yi = "_spInputFiles_error_12x0f_48", Vi = "_spInputFiles__control_12x0f_48", Ui = "_spInputFiles_fileUploaded_12x0f_73", Gi = "_spInputFiles_disabled_12x0f_73", Ki = "_spInputFiles__fileNamesList_12x0f_83", Xi = "_spInputFiles__fileNamesListItem_12x0f_91", Zi = "_spInputFiles__fileNamesListItemDelete_12x0f_110", Qi = "_spInputFiles__tooltipWrapper_12x0f_125", Ji = "_spInputFiles__tooltip_12x0f_125", er = "_spInputFiles__delete_12x0f_131", tr = "_spInputFiles__error_12x0f_139", xe = {
|
|
3765
|
+
spInputFiles: Hi,
|
|
3766
|
+
spInputFiles_error: Yi,
|
|
3767
|
+
spInputFiles__control: Vi,
|
|
3768
|
+
spInputFiles_fileUploaded: Ui,
|
|
3769
|
+
spInputFiles_disabled: Gi,
|
|
3770
|
+
spInputFiles__fileNamesList: Ki,
|
|
3771
|
+
spInputFiles__fileNamesListItem: Xi,
|
|
3772
|
+
spInputFiles__fileNamesListItemDelete: Zi,
|
|
3773
|
+
spInputFiles__tooltipWrapper: Qi,
|
|
3774
|
+
spInputFiles__tooltip: Ji,
|
|
3775
|
+
spInputFiles__delete: er,
|
|
3776
|
+
spInputFiles__error: tr
|
|
3777
|
+
}, Cs = (e) => {
|
|
3777
3778
|
const {
|
|
3778
3779
|
placeholder: t = "Загрузите файл",
|
|
3779
3780
|
name: n,
|
|
@@ -3788,11 +3789,11 @@ const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "
|
|
|
3788
3789
|
tooltipPosition: c = ae.TopRight,
|
|
3789
3790
|
classNameRoot: y,
|
|
3790
3791
|
error: w
|
|
3791
|
-
} = e, T = d.map((p) => p.name),
|
|
3792
|
+
} = e, T = d.map((p) => p.name), C = (T == null ? void 0 : T.length) > 0, N = v({
|
|
3792
3793
|
[xe.spInputFiles]: !0,
|
|
3793
3794
|
[xe.spInputFiles_error]: !!w,
|
|
3794
3795
|
[xe.spInputFiles_disabled]: r,
|
|
3795
|
-
[xe.spInputFiles_fileUploaded]:
|
|
3796
|
+
[xe.spInputFiles_fileUploaded]: C,
|
|
3796
3797
|
...y && { [y]: !0 }
|
|
3797
3798
|
}), O = (p) => {
|
|
3798
3799
|
const S = [...d], z = S.findIndex((G) => G.name === p);
|
|
@@ -3813,8 +3814,8 @@ const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "
|
|
|
3813
3814
|
},
|
|
3814
3815
|
S
|
|
3815
3816
|
)) }) : /* @__PURE__ */ l(Te, { isEllipsis: !0, children: T[0] }), b = () => /* @__PURE__ */ H(pn, { children: [
|
|
3816
|
-
|
|
3817
|
-
|
|
3817
|
+
C ? R() : /* @__PURE__ */ l(Te, { children: t }),
|
|
3818
|
+
C ? /* @__PURE__ */ l("div", { className: xe.spInputFiles__delete, onClick: Y, children: /* @__PURE__ */ l(fe, { name: ie.Close }) }) : u && /* @__PURE__ */ l(
|
|
3818
3819
|
Qe,
|
|
3819
3820
|
{
|
|
3820
3821
|
classNameTooltip: xe.spInputFiles__tooltipWrapper,
|
|
@@ -3825,7 +3826,7 @@ const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "
|
|
|
3825
3826
|
)
|
|
3826
3827
|
] });
|
|
3827
3828
|
return /* @__PURE__ */ l(
|
|
3828
|
-
|
|
3829
|
+
gi,
|
|
3829
3830
|
{
|
|
3830
3831
|
name: n,
|
|
3831
3832
|
files: d,
|
|
@@ -3834,10 +3835,10 @@ const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "
|
|
|
3834
3835
|
maxFiles: m,
|
|
3835
3836
|
accept: i,
|
|
3836
3837
|
onDropFiles: o,
|
|
3837
|
-
disabled: r ||
|
|
3838
|
-
children: /* @__PURE__ */ H("div", { className:
|
|
3838
|
+
disabled: r || C,
|
|
3839
|
+
children: /* @__PURE__ */ H("div", { className: N, children: [
|
|
3839
3840
|
/* @__PURE__ */ H("div", { className: xe.spInputFiles__control, children: [
|
|
3840
|
-
/* @__PURE__ */ l(fe, { name:
|
|
3841
|
+
/* @__PURE__ */ l(fe, { name: C ? ie.Check : ie.Upload }),
|
|
3841
3842
|
b()
|
|
3842
3843
|
] }),
|
|
3843
3844
|
w && /* @__PURE__ */ l("div", { className: xe.spInputFiles__error, children: w })
|
|
@@ -3852,10 +3853,10 @@ const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "
|
|
|
3852
3853
|
}
|
|
3853
3854
|
});
|
|
3854
3855
|
var Dt = {};
|
|
3855
|
-
Dt.match =
|
|
3856
|
+
Dt.match = sr;
|
|
3856
3857
|
Dt.parse = In;
|
|
3857
|
-
var
|
|
3858
|
-
function
|
|
3858
|
+
var nr = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, or = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, ar = /^(?:(min|max)-)?(.+)/, ir = /(em|rem|px|cm|mm|in|pt|pc)?$/, rr = /(dpi|dpcm|dppx)?$/;
|
|
3859
|
+
function sr(e, t) {
|
|
3859
3860
|
return In(e).some(function(n) {
|
|
3860
3861
|
var o = n.inverse, a = n.type === "all" || t.type === n.type;
|
|
3861
3862
|
if (a && o || !(a || o))
|
|
@@ -3905,9 +3906,9 @@ function rr(e, t) {
|
|
|
3905
3906
|
function In(e) {
|
|
3906
3907
|
return e.split(",").map(function(t) {
|
|
3907
3908
|
t = t.trim();
|
|
3908
|
-
var n = t.match(
|
|
3909
|
+
var n = t.match(nr), o = n[1], a = n[2], i = n[3] || "", r = {};
|
|
3909
3910
|
return r.inverse = !!o && o.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
3910
|
-
var m = s.match(
|
|
3911
|
+
var m = s.match(or), d = m[1].toLowerCase().match(ar);
|
|
3911
3912
|
return {
|
|
3912
3913
|
modifier: d[1],
|
|
3913
3914
|
feature: d[2],
|
|
@@ -3921,7 +3922,7 @@ function tn(e) {
|
|
|
3921
3922
|
return t || (n = e.match(/^(\d+)\s*\/\s*(\d+)$/), t = n[1] / n[2]), t;
|
|
3922
3923
|
}
|
|
3923
3924
|
function nn(e) {
|
|
3924
|
-
var t = parseFloat(e), n = String(e).match(
|
|
3925
|
+
var t = parseFloat(e), n = String(e).match(rr)[1];
|
|
3925
3926
|
switch (n) {
|
|
3926
3927
|
case "dpcm":
|
|
3927
3928
|
return t / 2.54;
|
|
@@ -3932,7 +3933,7 @@ function nn(e) {
|
|
|
3932
3933
|
}
|
|
3933
3934
|
}
|
|
3934
3935
|
function on(e) {
|
|
3935
|
-
var t = parseFloat(e), n = String(e).match(
|
|
3936
|
+
var t = parseFloat(e), n = String(e).match(ir)[1];
|
|
3936
3937
|
switch (n) {
|
|
3937
3938
|
case "em":
|
|
3938
3939
|
return t * 16;
|
|
@@ -3952,10 +3953,10 @@ function on(e) {
|
|
|
3952
3953
|
return t;
|
|
3953
3954
|
}
|
|
3954
3955
|
}
|
|
3955
|
-
var
|
|
3956
|
-
function
|
|
3956
|
+
var pr = Dt.match, an = typeof window < "u" ? window.matchMedia : null;
|
|
3957
|
+
function cr(e, t, n) {
|
|
3957
3958
|
var o = this, a;
|
|
3958
|
-
an && !n && (a = an.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
3959
|
+
an && !n && (a = an.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = pr(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = m;
|
|
3959
3960
|
function i(d) {
|
|
3960
3961
|
a && a.addListener(d);
|
|
3961
3962
|
}
|
|
@@ -3969,22 +3970,22 @@ function pr(e, t, n) {
|
|
|
3969
3970
|
a && a.removeListener(s);
|
|
3970
3971
|
}
|
|
3971
3972
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return new
|
|
3973
|
+
function lr(e, t, n) {
|
|
3974
|
+
return new cr(e, t, n);
|
|
3974
3975
|
}
|
|
3975
|
-
var
|
|
3976
|
-
const
|
|
3977
|
-
var
|
|
3978
|
-
function
|
|
3976
|
+
var dr = lr;
|
|
3977
|
+
const ur = /* @__PURE__ */ vn(dr);
|
|
3978
|
+
var mr = /[A-Z]/g, fr = /^ms-/, ht = {};
|
|
3979
|
+
function vr(e) {
|
|
3979
3980
|
return "-" + e.toLowerCase();
|
|
3980
3981
|
}
|
|
3981
3982
|
function Nn(e) {
|
|
3982
3983
|
if (ht.hasOwnProperty(e))
|
|
3983
3984
|
return ht[e];
|
|
3984
|
-
var t = e.replace(
|
|
3985
|
-
return ht[e] =
|
|
3985
|
+
var t = e.replace(mr, vr);
|
|
3986
|
+
return ht[e] = fr.test(t) ? "-" + t : t;
|
|
3986
3987
|
}
|
|
3987
|
-
function
|
|
3988
|
+
function _r(e, t) {
|
|
3988
3989
|
if (e === t)
|
|
3989
3990
|
return !0;
|
|
3990
3991
|
if (!e || !t)
|
|
@@ -3999,37 +4000,37 @@ function vr(e, t) {
|
|
|
3999
4000
|
}
|
|
4000
4001
|
return !0;
|
|
4001
4002
|
}
|
|
4002
|
-
const pe =
|
|
4003
|
-
all:
|
|
4004
|
-
grid:
|
|
4005
|
-
aural:
|
|
4006
|
-
braille:
|
|
4007
|
-
handheld:
|
|
4008
|
-
print:
|
|
4009
|
-
projection:
|
|
4010
|
-
screen:
|
|
4011
|
-
tty:
|
|
4012
|
-
tv:
|
|
4013
|
-
embossed:
|
|
4014
|
-
},
|
|
4015
|
-
orientation:
|
|
4016
|
-
scan:
|
|
4017
|
-
aspectRatio:
|
|
4018
|
-
deviceAspectRatio:
|
|
4003
|
+
const pe = k.oneOfType([k.string, k.number]), Dn = {
|
|
4004
|
+
all: k.bool,
|
|
4005
|
+
grid: k.bool,
|
|
4006
|
+
aural: k.bool,
|
|
4007
|
+
braille: k.bool,
|
|
4008
|
+
handheld: k.bool,
|
|
4009
|
+
print: k.bool,
|
|
4010
|
+
projection: k.bool,
|
|
4011
|
+
screen: k.bool,
|
|
4012
|
+
tty: k.bool,
|
|
4013
|
+
tv: k.bool,
|
|
4014
|
+
embossed: k.bool
|
|
4015
|
+
}, xr = {
|
|
4016
|
+
orientation: k.oneOf(["portrait", "landscape"]),
|
|
4017
|
+
scan: k.oneOf(["progressive", "interlace"]),
|
|
4018
|
+
aspectRatio: k.string,
|
|
4019
|
+
deviceAspectRatio: k.string,
|
|
4019
4020
|
height: pe,
|
|
4020
4021
|
deviceHeight: pe,
|
|
4021
4022
|
width: pe,
|
|
4022
4023
|
deviceWidth: pe,
|
|
4023
|
-
color:
|
|
4024
|
-
colorIndex:
|
|
4025
|
-
monochrome:
|
|
4024
|
+
color: k.bool,
|
|
4025
|
+
colorIndex: k.bool,
|
|
4026
|
+
monochrome: k.bool,
|
|
4026
4027
|
resolution: pe,
|
|
4027
4028
|
type: Object.keys(Dn)
|
|
4028
|
-
}, { type: ks, ...
|
|
4029
|
-
minAspectRatio:
|
|
4030
|
-
maxAspectRatio:
|
|
4031
|
-
minDeviceAspectRatio:
|
|
4032
|
-
maxDeviceAspectRatio:
|
|
4029
|
+
}, { type: ks, ...gr } = xr, hr = {
|
|
4030
|
+
minAspectRatio: k.string,
|
|
4031
|
+
maxAspectRatio: k.string,
|
|
4032
|
+
minDeviceAspectRatio: k.string,
|
|
4033
|
+
maxDeviceAspectRatio: k.string,
|
|
4033
4034
|
minHeight: pe,
|
|
4034
4035
|
maxHeight: pe,
|
|
4035
4036
|
minDeviceHeight: pe,
|
|
@@ -4038,47 +4039,47 @@ const pe = C.oneOfType([C.string, C.number]), Dn = {
|
|
|
4038
4039
|
maxWidth: pe,
|
|
4039
4040
|
minDeviceWidth: pe,
|
|
4040
4041
|
maxDeviceWidth: pe,
|
|
4041
|
-
minColor:
|
|
4042
|
-
maxColor:
|
|
4043
|
-
minColorIndex:
|
|
4044
|
-
maxColorIndex:
|
|
4045
|
-
minMonochrome:
|
|
4046
|
-
maxMonochrome:
|
|
4042
|
+
minColor: k.number,
|
|
4043
|
+
maxColor: k.number,
|
|
4044
|
+
minColorIndex: k.number,
|
|
4045
|
+
maxColorIndex: k.number,
|
|
4046
|
+
minMonochrome: k.number,
|
|
4047
|
+
maxMonochrome: k.number,
|
|
4047
4048
|
minResolution: pe,
|
|
4048
4049
|
maxResolution: pe,
|
|
4049
|
-
...
|
|
4050
|
-
},
|
|
4051
|
-
var
|
|
4052
|
-
all:
|
|
4050
|
+
...gr
|
|
4051
|
+
}, br = { ...Dn, ...hr };
|
|
4052
|
+
var yr = {
|
|
4053
|
+
all: br
|
|
4053
4054
|
};
|
|
4054
|
-
const
|
|
4055
|
+
const wr = (e) => `not ${e}`, Cr = (e, t) => {
|
|
4055
4056
|
const n = Nn(e);
|
|
4056
|
-
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ?
|
|
4057
|
-
}, kr = (e) => e.join(" and "),
|
|
4057
|
+
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? wr(n) : `(${n}: ${t})`;
|
|
4058
|
+
}, kr = (e) => e.join(" and "), Tr = (e) => {
|
|
4058
4059
|
const t = [];
|
|
4059
|
-
return Object.keys(
|
|
4060
|
+
return Object.keys(yr.all).forEach((n) => {
|
|
4060
4061
|
const o = e[n];
|
|
4061
|
-
o != null && t.push(
|
|
4062
|
+
o != null && t.push(Cr(n, o));
|
|
4062
4063
|
}), kr(t);
|
|
4063
|
-
},
|
|
4064
|
-
const e =
|
|
4064
|
+
}, Er = cn(void 0), Sr = (e) => e.query || Tr(e), rn = (e) => e ? Object.keys(e).reduce((n, o) => (n[Nn(o)] = e[o], n), {}) : void 0, Rn = () => {
|
|
4065
|
+
const e = ke(!1);
|
|
4065
4066
|
return re(() => {
|
|
4066
4067
|
e.current = !0;
|
|
4067
4068
|
}, []), e.current;
|
|
4068
|
-
},
|
|
4069
|
-
const t = ln(
|
|
4069
|
+
}, jr = (e) => {
|
|
4070
|
+
const t = ln(Er), n = () => rn(e) || rn(t), [o, a] = ce(n);
|
|
4070
4071
|
return re(() => {
|
|
4071
4072
|
const i = n();
|
|
4072
|
-
|
|
4073
|
+
_r(o, i) || a(i);
|
|
4073
4074
|
}, [e, t]), o;
|
|
4074
|
-
},
|
|
4075
|
-
const t = () =>
|
|
4075
|
+
}, Ir = (e) => {
|
|
4076
|
+
const t = () => Sr(e), [n, o] = ce(t);
|
|
4076
4077
|
return re(() => {
|
|
4077
4078
|
const a = t();
|
|
4078
4079
|
n !== a && o(a);
|
|
4079
4080
|
}, [e]), n;
|
|
4080
|
-
},
|
|
4081
|
-
const n = () =>
|
|
4081
|
+
}, Nr = (e, t) => {
|
|
4082
|
+
const n = () => ur(e, t || {}, !!t), [o, a] = ce(n), i = Rn();
|
|
4082
4083
|
return re(() => {
|
|
4083
4084
|
if (i) {
|
|
4084
4085
|
const r = n();
|
|
@@ -4087,7 +4088,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4087
4088
|
};
|
|
4088
4089
|
}
|
|
4089
4090
|
}, [e, t]), o;
|
|
4090
|
-
},
|
|
4091
|
+
}, Dr = (e) => {
|
|
4091
4092
|
const [t, n] = ce(e.matches);
|
|
4092
4093
|
return re(() => {
|
|
4093
4094
|
const o = (a) => {
|
|
@@ -4098,15 +4099,15 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4098
4099
|
};
|
|
4099
4100
|
}, [e]), t;
|
|
4100
4101
|
}, bt = (e, t, n) => {
|
|
4101
|
-
const o =
|
|
4102
|
+
const o = jr(t), a = Ir(e);
|
|
4102
4103
|
if (!a)
|
|
4103
4104
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4104
|
-
const i =
|
|
4105
|
+
const i = Nr(a, o), r = Dr(i);
|
|
4105
4106
|
return Rn(), re(() => {
|
|
4106
4107
|
}, [r]), re(() => () => {
|
|
4107
4108
|
i && i.dispose();
|
|
4108
4109
|
}, []), r;
|
|
4109
|
-
},
|
|
4110
|
+
}, Rr = (e) => {
|
|
4110
4111
|
const { desktop: t, tablet: n, mobile: o } = e, a = bt(t), i = bt(n), r = bt(o);
|
|
4111
4112
|
return {
|
|
4112
4113
|
device: {
|
|
@@ -4115,8 +4116,8 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4115
4116
|
isMobile: r
|
|
4116
4117
|
}
|
|
4117
4118
|
};
|
|
4118
|
-
},
|
|
4119
|
-
const { breakpoints: t, children: n } = e, { device: o } =
|
|
4119
|
+
}, Ts = (e) => {
|
|
4120
|
+
const { breakpoints: t, children: n } = e, { device: o } = Rr(t);
|
|
4120
4121
|
return /* @__PURE__ */ l(
|
|
4121
4122
|
jn.Provider,
|
|
4122
4123
|
{
|
|
@@ -4126,20 +4127,20 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4126
4127
|
children: n
|
|
4127
4128
|
}
|
|
4128
4129
|
);
|
|
4129
|
-
},
|
|
4130
|
-
spSelect:
|
|
4131
|
-
spSelect_error:
|
|
4132
|
-
spSelect__control:
|
|
4133
|
-
spSelect__value_empty:
|
|
4134
|
-
spSelect__icon:
|
|
4135
|
-
spSelect__container:
|
|
4130
|
+
}, Ar = 180, Or = "_spSelect_1h8x4_43", Lr = "_spSelect_error_1h8x4_48", Pr = "_spSelect__control_1h8x4_48", Fr = "_spSelect__value_empty_1h8x4_52", zr = "_spSelect__icon_1h8x4_55", Mr = "_spSelect__container_1h8x4_58", Br = "_spSelect__control_disabled_1h8x4_93", Wr = "_spSelect__value_1h8x4_52", qr = "_spSelect__list_1h8x4_126", $r = "_spSelect__list_scrollable_1h8x4_133", Hr = "_spSelect__option_1h8x4_136", Yr = "_spSelect__error_1h8x4_154", ge = {
|
|
4131
|
+
spSelect: Or,
|
|
4132
|
+
spSelect_error: Lr,
|
|
4133
|
+
spSelect__control: Pr,
|
|
4134
|
+
spSelect__value_empty: Fr,
|
|
4135
|
+
spSelect__icon: zr,
|
|
4136
|
+
spSelect__container: Mr,
|
|
4136
4137
|
spSelect__control_disabled: Br,
|
|
4137
|
-
spSelect__value:
|
|
4138
|
-
spSelect__list:
|
|
4139
|
-
spSelect__list_scrollable:
|
|
4140
|
-
spSelect__option:
|
|
4141
|
-
spSelect__error:
|
|
4142
|
-
},
|
|
4138
|
+
spSelect__value: Wr,
|
|
4139
|
+
spSelect__list: qr,
|
|
4140
|
+
spSelect__list_scrollable: $r,
|
|
4141
|
+
spSelect__option: Hr,
|
|
4142
|
+
spSelect__error: Yr
|
|
4143
|
+
}, Es = (e) => {
|
|
4143
4144
|
const {
|
|
4144
4145
|
options: t,
|
|
4145
4146
|
placeholder: n = "Выберите из списка...",
|
|
@@ -4153,13 +4154,13 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4153
4154
|
tooltipPosition: u,
|
|
4154
4155
|
disabled: c,
|
|
4155
4156
|
required: y,
|
|
4156
|
-
maxHeightList: w =
|
|
4157
|
+
maxHeightList: w = Ar,
|
|
4157
4158
|
isVisibleDefaultTitle: T = !0,
|
|
4158
|
-
isScrollableList:
|
|
4159
|
-
classNameRoot:
|
|
4159
|
+
isScrollableList: C = !1,
|
|
4160
|
+
classNameRoot: N,
|
|
4160
4161
|
classNameError: O,
|
|
4161
4162
|
classNameLabel: Y
|
|
4162
|
-
} = e, [R, b] = ce(!1), p =
|
|
4163
|
+
} = e, [R, b] = ce(!1), p = ke(null);
|
|
4163
4164
|
fn(
|
|
4164
4165
|
[p],
|
|
4165
4166
|
() => {
|
|
@@ -4174,7 +4175,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4174
4175
|
}, X = v({
|
|
4175
4176
|
[ge.spSelect]: !0,
|
|
4176
4177
|
[ge.spSelect_error]: !!s,
|
|
4177
|
-
...
|
|
4178
|
+
...N && { [N]: !0 }
|
|
4178
4179
|
}), se = v({
|
|
4179
4180
|
[ge.spSelect__container]: !0
|
|
4180
4181
|
}), de = v({
|
|
@@ -4187,7 +4188,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4187
4188
|
[ge.spSelect__icon]: !0
|
|
4188
4189
|
}), g = v({
|
|
4189
4190
|
[ge.spSelect__list]: !0,
|
|
4190
|
-
[ge.spSelect__list_scrollable]:
|
|
4191
|
+
[ge.spSelect__list_scrollable]: C
|
|
4191
4192
|
}), L = v({
|
|
4192
4193
|
...Y && { [Y]: !0 }
|
|
4193
4194
|
}), q = v({
|
|
@@ -4230,7 +4231,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4230
4231
|
"div",
|
|
4231
4232
|
{
|
|
4232
4233
|
className: g,
|
|
4233
|
-
style:
|
|
4234
|
+
style: C ? { maxHeight: `${w}px` } : {},
|
|
4234
4235
|
children: t.map((ee) => {
|
|
4235
4236
|
const Q = ee.value === o;
|
|
4236
4237
|
return /* @__PURE__ */ H(
|
|
@@ -4253,20 +4254,20 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4253
4254
|
] }),
|
|
4254
4255
|
s && /* @__PURE__ */ l("div", { className: q, children: s })
|
|
4255
4256
|
] });
|
|
4256
|
-
},
|
|
4257
|
-
spTable:
|
|
4258
|
-
spTable__tdContentCopyIcon:
|
|
4259
|
-
spTable__tdContent:
|
|
4260
|
-
spTable__tdColorContent:
|
|
4261
|
-
spTable__tdContentCopyIcon_copied:
|
|
4262
|
-
spTable__emptyPage:
|
|
4263
|
-
spStringsGroup:
|
|
4264
|
-
spStringsGroup__groupItem:
|
|
4265
|
-
spStringsGroup__groupItemHeader:
|
|
4266
|
-
spStringsGroup__groupItemContent:
|
|
4267
|
-
spStringsGroup__groupItemContentCopyIcon:
|
|
4268
|
-
spStringsGroup__groupItemContentCopyIcon_copied:
|
|
4269
|
-
}, sn = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1,
|
|
4257
|
+
}, Vr = "_spTable_1vuaj_43", Ur = "_spTable__tdContentCopyIcon_1vuaj_62", Gr = "_spTable__tdContent_1vuaj_62", Kr = "_spTable__tdColorContent_1vuaj_72", Xr = "_spTable__tdContentCopyIcon_copied_1vuaj_85", Zr = "_spTable__emptyPage_1vuaj_89", Qr = "_spStringsGroup_1vuaj_105", Jr = "_spStringsGroup__groupItem_1vuaj_119", es = "_spStringsGroup__groupItemHeader_1vuaj_134", ts = "_spStringsGroup__groupItemContent_1vuaj_138", ns = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", os = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", he = {
|
|
4258
|
+
spTable: Vr,
|
|
4259
|
+
spTable__tdContentCopyIcon: Ur,
|
|
4260
|
+
spTable__tdContent: Gr,
|
|
4261
|
+
spTable__tdColorContent: Kr,
|
|
4262
|
+
spTable__tdContentCopyIcon_copied: Xr,
|
|
4263
|
+
spTable__emptyPage: Zr,
|
|
4264
|
+
spStringsGroup: Qr,
|
|
4265
|
+
spStringsGroup__groupItem: Jr,
|
|
4266
|
+
spStringsGroup__groupItemHeader: es,
|
|
4267
|
+
spStringsGroup__groupItemContent: ts,
|
|
4268
|
+
spStringsGroup__groupItemContentCopyIcon: ns,
|
|
4269
|
+
spStringsGroup__groupItemContentCopyIcon_copied: os
|
|
4270
|
+
}, sn = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, Ss = (e) => {
|
|
4270
4271
|
const {
|
|
4271
4272
|
columns: t,
|
|
4272
4273
|
data: n,
|
|
@@ -4295,7 +4296,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4295
4296
|
});
|
|
4296
4297
|
}, T = () => {
|
|
4297
4298
|
y(null);
|
|
4298
|
-
},
|
|
4299
|
+
}, C = () => /* @__PURE__ */ l("div", { className: d, children: "Данные отсутствуют" }), N = ({
|
|
4299
4300
|
row: b,
|
|
4300
4301
|
col: p
|
|
4301
4302
|
}) => {
|
|
@@ -4324,7 +4325,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4324
4325
|
{
|
|
4325
4326
|
onMouseLeave: G ? T : void 0,
|
|
4326
4327
|
children: /* @__PURE__ */ H("div", { className: s, children: [
|
|
4327
|
-
/* @__PURE__ */ l("span", { children: S.isColorContentsCurlyBrackets ?
|
|
4328
|
+
/* @__PURE__ */ l("span", { children: S.isColorContentsCurlyBrackets ? N({ row: b, col: S }) : b[S.key] }),
|
|
4328
4329
|
!sn(b[S.key]) && S.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4329
4330
|
fe,
|
|
4330
4331
|
{
|
|
@@ -4349,7 +4350,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4349
4350
|
`${p}:${z}`
|
|
4350
4351
|
);
|
|
4351
4352
|
}) }, p) : null) })
|
|
4352
|
-
] }) :
|
|
4353
|
+
] }) : C(), Y = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ l(
|
|
4353
4354
|
"div",
|
|
4354
4355
|
{
|
|
4355
4356
|
className: v({
|
|
@@ -4412,16 +4413,16 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4412
4413
|
);
|
|
4413
4414
|
}) }, p) : null)
|
|
4414
4415
|
}
|
|
4415
|
-
) :
|
|
4416
|
+
) : C();
|
|
4416
4417
|
return o ? u ? O() : Y() : O();
|
|
4417
|
-
},
|
|
4418
|
-
spTabs:
|
|
4419
|
-
spTabs_separated:
|
|
4420
|
-
spTabs__tabElement:
|
|
4421
|
-
spTabs__tabElement_active:
|
|
4422
|
-
spTabs__triggerTooltip:
|
|
4423
|
-
spTabs__tabElement_separated:
|
|
4424
|
-
},
|
|
4418
|
+
}, as = "_spTabs_1guzj_43", is = "_spTabs_separated_1guzj_50", rs = "_spTabs__tabElement_1guzj_54", ss = "_spTabs__tabElement_active_1guzj_71", ps = "_spTabs__triggerTooltip_1guzj_78", cs = "_spTabs__tabElement_separated_1guzj_81", Oe = {
|
|
4419
|
+
spTabs: as,
|
|
4420
|
+
spTabs_separated: is,
|
|
4421
|
+
spTabs__tabElement: rs,
|
|
4422
|
+
spTabs__tabElement_active: ss,
|
|
4423
|
+
spTabs__triggerTooltip: ps,
|
|
4424
|
+
spTabs__tabElement_separated: cs
|
|
4425
|
+
}, js = (e) => {
|
|
4425
4426
|
const { panes: t, isSeparated: n = !1, classNameRoot: o } = e, a = v({
|
|
4426
4427
|
[Oe.spTabs]: !0,
|
|
4427
4428
|
[Oe.spTabs_separated]: n,
|
|
@@ -4454,45 +4455,45 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4454
4455
|
r.key || s
|
|
4455
4456
|
);
|
|
4456
4457
|
}) });
|
|
4457
|
-
},
|
|
4458
|
-
spTextWithLabel:
|
|
4459
|
-
},
|
|
4458
|
+
}, ls = "_spTextWithLabel_1dr7p_1", ds = {
|
|
4459
|
+
spTextWithLabel: ls
|
|
4460
|
+
}, Is = (e) => {
|
|
4460
4461
|
const { children: t, label: n, style: o, ...a } = e;
|
|
4461
|
-
return /* @__PURE__ */ H("div", { className:
|
|
4462
|
+
return /* @__PURE__ */ H("div", { className: ds.spTextWithLabel, style: { ...o }, children: [
|
|
4462
4463
|
/* @__PURE__ */ l(Nt, { label: n }),
|
|
4463
4464
|
/* @__PURE__ */ l(Te, { ...a, children: t })
|
|
4464
4465
|
] });
|
|
4465
4466
|
};
|
|
4466
4467
|
export {
|
|
4467
|
-
|
|
4468
|
-
|
|
4468
|
+
vs as Accordion,
|
|
4469
|
+
Lo as ApplyButtons,
|
|
4469
4470
|
un as BaseTooltip,
|
|
4470
4471
|
yt as Button,
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4472
|
+
_s as Checkbox,
|
|
4473
|
+
gs as Confirm,
|
|
4474
|
+
hs as ContextMenu,
|
|
4475
|
+
gi as DefaultDropzone,
|
|
4476
|
+
bs as Dropdown,
|
|
4476
4477
|
ie as EIconName,
|
|
4477
4478
|
ae as ETooltipPosition,
|
|
4478
|
-
|
|
4479
|
-
|
|
4479
|
+
ys as EllipsisTextWithTooltip,
|
|
4480
|
+
ws as Form,
|
|
4480
4481
|
fe as Icon,
|
|
4481
4482
|
Qe as InfoTooltip,
|
|
4482
|
-
|
|
4483
|
-
|
|
4483
|
+
$i as Input,
|
|
4484
|
+
Cs as InputFiles,
|
|
4484
4485
|
Nt as Label,
|
|
4485
|
-
|
|
4486
|
+
Jo as Layer,
|
|
4486
4487
|
jn as MediaContext,
|
|
4487
|
-
|
|
4488
|
-
|
|
4488
|
+
Ts as MediaContextProvider,
|
|
4489
|
+
da as Modal,
|
|
4489
4490
|
mn as Portal,
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4491
|
+
Es as Select,
|
|
4492
|
+
go as Spinner,
|
|
4493
|
+
Ss as Table,
|
|
4494
|
+
js as Tabs,
|
|
4494
4495
|
Te as Text,
|
|
4495
|
-
|
|
4496
|
+
Is as TextWithLabel,
|
|
4496
4497
|
jt as Tooltip,
|
|
4497
|
-
|
|
4498
|
+
xs as useModal
|
|
4498
4499
|
};
|