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