test-stpr-ui-kit 0.4.67 → 0.4.69
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 +14 -1
- package/dist/test-stpr-ui-kit.js +1258 -1226
- package/dist/test-stpr-ui-kit.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as z, jsx as c, Fragment as jt } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
|
-
import $e, { useState as
|
|
3
|
+
import $e, { useState as Q, useEffect as oe, useRef as me, useCallback as xe, createContext as vo, useContext as Yo, useMemo as Pe, useReducer as Go, forwardRef as Ko, useImperativeHandle as Xo, Fragment as Zo, useLayoutEffect as Qo } from "react";
|
|
4
4
|
import Jo from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function go(e) {
|
|
6
6
|
var t, o, n = "";
|
|
@@ -44,8 +44,8 @@ const en = (e) => /* @__PURE__ */ R.createElement("svg", { className: "stpr-icon
|
|
|
44
44
|
style: a
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var
|
|
48
|
-
const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn = "_spAccordion_noPadding_14avc_63", wn = "_spAccordion_open_14avc_66", Cn = "_spAccordion__header_14avc_69", kn = "_spAccordion_noOpen_14avc_88", Tn = "_spAccordion__name_14avc_99", Nn = "_spAccordion__name_hiddenExpand_14avc_110", En = "_spAccordion__icon_14avc_125", In = "_spAccordion__icon_hidden_14avc_131", Sn = "_spAccordion__icon_open_14avc_134", Rn = "_spAccordion__childrenWrapper_14avc_141", Fn = "_spAccordion__childrenWrapper_open_14avc_150",
|
|
47
|
+
var ae = /* @__PURE__ */ ((e) => (e.ChevronDown = "chevronDown", e.Info = "info", e.Plus = "plus", e.SelectChevronDown = "selectChevronDown", e.Upload = "upload", e.Trash = "trash", e.Check = "check", e.Copy = "copy", e.Close = "close", e.PlusSquare = "plusSquare", e.PlusCircle = "plusCircle", e.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e.TerminalSquare = "terminalSquare", e.File = "file", e.InfoError = "infoError", e))(ae || {});
|
|
48
|
+
const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn = "_spAccordion_noPadding_14avc_63", wn = "_spAccordion_open_14avc_66", Cn = "_spAccordion__header_14avc_69", kn = "_spAccordion_noOpen_14avc_88", Tn = "_spAccordion__name_14avc_99", Nn = "_spAccordion__name_hiddenExpand_14avc_110", En = "_spAccordion__icon_14avc_125", In = "_spAccordion__icon_hidden_14avc_131", Sn = "_spAccordion__icon_open_14avc_134", Rn = "_spAccordion__childrenWrapper_14avc_141", Fn = "_spAccordion__childrenWrapper_open_14avc_150", An = "_spAccordion__content_14avc_153", jn = "_spAccordion__content_open_14avc_159", de = {
|
|
49
49
|
spAccordion: hn,
|
|
50
50
|
spAccordion_noBorder: bn,
|
|
51
51
|
spAccordion_noPadding: yn,
|
|
@@ -61,9 +61,9 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
61
61
|
spAccordion__icon_open: Sn,
|
|
62
62
|
spAccordion__childrenWrapper: Rn,
|
|
63
63
|
spAccordion__childrenWrapper_open: Fn,
|
|
64
|
-
spAccordion__content:
|
|
65
|
-
spAccordion__content_open:
|
|
66
|
-
},
|
|
64
|
+
spAccordion__content: An,
|
|
65
|
+
spAccordion__content_open: jn
|
|
66
|
+
}, Sp = (e) => {
|
|
67
67
|
const {
|
|
68
68
|
name: t,
|
|
69
69
|
children: o,
|
|
@@ -72,27 +72,27 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
72
72
|
onOpen: i,
|
|
73
73
|
noBorder: r = !1,
|
|
74
74
|
noPadding: s = !1,
|
|
75
|
-
level:
|
|
75
|
+
level: p = 1,
|
|
76
76
|
classNameRoot: l,
|
|
77
77
|
classNameHeader: u,
|
|
78
78
|
classNameTitle: _,
|
|
79
79
|
classNameIcon: g,
|
|
80
|
-
classNameChildrenWrapper:
|
|
81
|
-
} = e, [w, C] =
|
|
80
|
+
classNameChildrenWrapper: h
|
|
81
|
+
} = e, [w, C] = Q(n), N = () => {
|
|
82
82
|
a || (i == null || i(!w), C(!w));
|
|
83
|
-
},
|
|
83
|
+
}, P = f({
|
|
84
84
|
[de.spAccordion]: !0,
|
|
85
85
|
[de.spAccordion_open]: w,
|
|
86
86
|
[de.spAccordion_noOpen]: !w,
|
|
87
87
|
[de.spAccordion_noBorder]: r,
|
|
88
88
|
[de.spAccordion_noPadding]: s,
|
|
89
89
|
...l && { [l]: !0 }
|
|
90
|
-
}),
|
|
90
|
+
}), M = f({
|
|
91
91
|
[de.spAccordion__header]: !0,
|
|
92
92
|
...u && { [u]: !0 }
|
|
93
|
-
}),
|
|
93
|
+
}), A = f({
|
|
94
94
|
[de.spAccordion__name]: !0,
|
|
95
|
-
[de[`spAccordion__name--level-${
|
|
95
|
+
[de[`spAccordion__name--level-${p}`]]: p,
|
|
96
96
|
[de.spAccordion__name_hiddenExpand]: a,
|
|
97
97
|
..._ && { [_]: !0 }
|
|
98
98
|
}), b = f({
|
|
@@ -100,20 +100,20 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
100
100
|
[de.spAccordion__icon_open]: w,
|
|
101
101
|
[de.spAccordion__icon_hidden]: a,
|
|
102
102
|
...g && { [g]: !0 }
|
|
103
|
-
}),
|
|
103
|
+
}), d = f({
|
|
104
104
|
[de.spAccordion__childrenWrapper]: !0,
|
|
105
105
|
[de.spAccordion__childrenWrapper_open]: w,
|
|
106
|
-
...
|
|
107
|
-
}),
|
|
106
|
+
...h && { [h]: !0 }
|
|
107
|
+
}), T = f({
|
|
108
108
|
[de.spAccordion__content]: !0,
|
|
109
109
|
[de.spAccordion__content_open]: w
|
|
110
110
|
});
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ z("div", { className: P, children: [
|
|
112
|
+
/* @__PURE__ */ z("div", { className: M, children: [
|
|
113
|
+
/* @__PURE__ */ c("div", { className: A, children: /* @__PURE__ */ c("span", { onClick: N, children: t }) }),
|
|
114
|
+
/* @__PURE__ */ c(ve, { onClick: N, className: b, name: ae.ChevronDown })
|
|
115
115
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ c("div", { className: d, children: /* @__PURE__ */ c("div", { className: T, children: o }) })
|
|
117
117
|
] });
|
|
118
118
|
}, Ln = "_spinner_18qva_43", Dn = "_spinner__inner_18qva_54", mt = {
|
|
119
119
|
spinner: Ln,
|
|
@@ -123,22 +123,22 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
123
123
|
"spinner--md": "_spinner--md_18qva_71",
|
|
124
124
|
"spinner--lg": "_spinner--lg_18qva_74",
|
|
125
125
|
"spinner--xl": "_spinner--xl_18qva_78"
|
|
126
|
-
},
|
|
126
|
+
}, Lt = (e) => {
|
|
127
127
|
const { size: t = "md", color: o = "#036bfd", classNameRoot: n } = e;
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ c(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
131
|
className: f(mt.spinner, mt[`spinner--${t}`], n),
|
|
132
132
|
"aria-label": "Loading",
|
|
133
133
|
role: "status",
|
|
134
134
|
style: { color: o },
|
|
135
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ c("div", { className: mt.spinner__inner })
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
|
-
}, Pn = "_spButton_7ic3z_43",
|
|
138
|
+
}, Pn = "_spButton_7ic3z_43", Bn = "_spButton_noPadding_7ic3z_62", On = "_spButton_onlyIcon_7ic3z_65", Wn = "_spButton__iconContainer_7ic3z_73", zn = "_spButton_link_7ic3z_76", Mn = "_spButton__text_7ic3z_80", Un = "_spButton_white_7ic3z_92", $n = "_spButton_primary_7ic3z_95", qn = "_spButton_blue_7ic3z_95", Hn = "_spButton_secondary_7ic3z_115", Vn = "_spButton_fullWidth_7ic3z_135", Yn = "_spButton_disabled_7ic3z_138", Gn = "_spButton__spinner_7ic3z_147", we = {
|
|
139
139
|
spButton: Pn,
|
|
140
|
-
spButton_noPadding:
|
|
141
|
-
spButton_onlyIcon:
|
|
140
|
+
spButton_noPadding: Bn,
|
|
141
|
+
spButton_onlyIcon: On,
|
|
142
142
|
spButton__iconContainer: Wn,
|
|
143
143
|
spButton_link: zn,
|
|
144
144
|
spButton__text: Mn,
|
|
@@ -156,51 +156,52 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
156
156
|
style: n,
|
|
157
157
|
onClick: a,
|
|
158
158
|
iconName: i,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
159
|
+
icon: r,
|
|
160
|
+
iconRotate: s = 0,
|
|
161
|
+
disabled: p = !1,
|
|
162
|
+
type: l = "button",
|
|
163
|
+
form: u,
|
|
164
|
+
children: _,
|
|
165
|
+
loading: g = !1,
|
|
166
|
+
isFullWidth: h = !1,
|
|
167
|
+
isOnlyIcon: w = !1,
|
|
168
|
+
noPadding: C = !1,
|
|
169
|
+
classNameRoot: N,
|
|
170
|
+
classNameIconContainerRoot: P
|
|
171
|
+
} = e, M = (d) => {
|
|
172
|
+
p || a == null || a(d);
|
|
173
|
+
}, A = () => {
|
|
174
|
+
const d = f({
|
|
174
175
|
[we.spButton__text]: !0
|
|
175
|
-
}),
|
|
176
|
+
}), T = f({
|
|
176
177
|
[we.spButton__iconContainer]: !0,
|
|
177
|
-
...
|
|
178
|
+
...P && { [P]: !0 }
|
|
178
179
|
});
|
|
179
|
-
return /* @__PURE__ */
|
|
180
|
-
(i ||
|
|
181
|
-
!
|
|
180
|
+
return /* @__PURE__ */ z(jt, { children: [
|
|
181
|
+
(r || i || g) && /* @__PURE__ */ c("div", { className: T, children: g ? /* @__PURE__ */ c(Lt, { classNameRoot: we.spButton__spinner }) : i ? /* @__PURE__ */ c(ve, { name: i, rotate: s }) : r || null }),
|
|
182
|
+
!w && _ && /* @__PURE__ */ c("div", { className: d, children: _ })
|
|
182
183
|
] });
|
|
183
|
-
},
|
|
184
|
+
}, b = f({
|
|
184
185
|
[we.spButton]: !0,
|
|
185
|
-
[we.spButton_noPadding]:
|
|
186
|
-
[we.spButton_onlyIcon]:
|
|
186
|
+
[we.spButton_noPadding]: C,
|
|
187
|
+
[we.spButton_onlyIcon]: w,
|
|
187
188
|
[we[`spButton_${o}`]]: o,
|
|
188
189
|
[we[`spButton_${t}`]]: t,
|
|
189
|
-
[we.spButton_fullWidth]:
|
|
190
|
-
[we.spButton_disabled]:
|
|
191
|
-
[we.spButton_loading]:
|
|
192
|
-
...
|
|
190
|
+
[we.spButton_fullWidth]: h,
|
|
191
|
+
[we.spButton_disabled]: p,
|
|
192
|
+
[we.spButton_loading]: g,
|
|
193
|
+
...N && { [N]: !0 }
|
|
193
194
|
});
|
|
194
|
-
return /* @__PURE__ */
|
|
195
|
+
return /* @__PURE__ */ c(
|
|
195
196
|
"button",
|
|
196
197
|
{
|
|
197
198
|
style: n,
|
|
198
|
-
className:
|
|
199
|
-
onClick:
|
|
200
|
-
disabled:
|
|
201
|
-
type:
|
|
202
|
-
form:
|
|
203
|
-
children:
|
|
199
|
+
className: b,
|
|
200
|
+
onClick: M,
|
|
201
|
+
disabled: p,
|
|
202
|
+
type: l,
|
|
203
|
+
form: u,
|
|
204
|
+
children: A()
|
|
204
205
|
}
|
|
205
206
|
);
|
|
206
207
|
}, Kn = "_spApplyButtons_1l9jg_43", Xn = "_spApplyButtons__cancel_1l9jg_73", Zn = "_spApplyButtons__submit_1l9jg_76", ze = {
|
|
@@ -221,12 +222,12 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
221
222
|
submitBtnIconName: i,
|
|
222
223
|
cancelBtnDisabled: r,
|
|
223
224
|
submitBtnContent: s,
|
|
224
|
-
formId:
|
|
225
|
+
formId: p,
|
|
225
226
|
disabled: l,
|
|
226
227
|
onClose: u,
|
|
227
228
|
submit: _,
|
|
228
229
|
loading: g
|
|
229
|
-
} = e,
|
|
230
|
+
} = e, h = f({
|
|
230
231
|
[ze.spApplyButtons]: !0,
|
|
231
232
|
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
232
233
|
[ze[`spApplyButtons_align-${o}`]]: o
|
|
@@ -235,8 +236,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
235
236
|
}), C = f({
|
|
236
237
|
[ze.spApplyButtons__cancel]: !0
|
|
237
238
|
});
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
n && /* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ z("div", { className: h, children: [
|
|
240
|
+
n && /* @__PURE__ */ c(
|
|
240
241
|
Qe,
|
|
241
242
|
{
|
|
242
243
|
type: "button",
|
|
@@ -248,14 +249,14 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
248
249
|
children: n
|
|
249
250
|
}
|
|
250
251
|
),
|
|
251
|
-
s && /* @__PURE__ */
|
|
252
|
+
s && /* @__PURE__ */ c(
|
|
252
253
|
Qe,
|
|
253
254
|
{
|
|
254
255
|
type: "submit",
|
|
255
256
|
variant: "primary",
|
|
256
257
|
iconName: i,
|
|
257
258
|
classNameRoot: w,
|
|
258
|
-
form:
|
|
259
|
+
form: p || void 0,
|
|
259
260
|
disabled: l,
|
|
260
261
|
onClick: _,
|
|
261
262
|
loading: g,
|
|
@@ -278,15 +279,15 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
278
279
|
[ut.spBaseTooltip]: !0,
|
|
279
280
|
[ut.spBaseTooltip_noPadding]: n,
|
|
280
281
|
...i && { [i]: !0 }
|
|
281
|
-
}),
|
|
282
|
+
}), p = f({
|
|
282
283
|
[ut.spBaseTooltip__content]: !0,
|
|
283
284
|
...r && { [r]: !0 }
|
|
284
285
|
});
|
|
285
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ c("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ c("div", { className: p, children: o }) });
|
|
286
287
|
});
|
|
287
288
|
xo.displayName = "BaseTooltip";
|
|
288
289
|
function ho(e, t, o = !0) {
|
|
289
|
-
|
|
290
|
+
oe(() => {
|
|
290
291
|
if (!o) return;
|
|
291
292
|
const n = (a) => {
|
|
292
293
|
e.every((r) => r.current && !r.current.contains(a.target)) && t(a);
|
|
@@ -297,8 +298,8 @@ function ho(e, t, o = !0) {
|
|
|
297
298
|
}, [e, t, o]);
|
|
298
299
|
}
|
|
299
300
|
const bo = ({ children: e, node: t, classNameRoot: o }) => {
|
|
300
|
-
const [n, a] =
|
|
301
|
-
return
|
|
301
|
+
const [n, a] = Q(null);
|
|
302
|
+
return oe(() => {
|
|
302
303
|
if (t) {
|
|
303
304
|
a(t);
|
|
304
305
|
return;
|
|
@@ -308,7 +309,7 @@ const bo = ({ children: e, node: t, classNameRoot: o }) => {
|
|
|
308
309
|
t || document.body.removeChild(i);
|
|
309
310
|
};
|
|
310
311
|
}, [t, o]), n ? Jo.createPortal(e, n) : null;
|
|
311
|
-
}, oa = "_spTooltip_9ogwj_43", na = "_spTooltip__trigger_9ogwj_46",
|
|
312
|
+
}, oa = "_spTooltip_9ogwj_43", na = "_spTooltip__trigger_9ogwj_46", zt = {
|
|
312
313
|
spTooltip: oa,
|
|
313
314
|
spTooltip__trigger: na
|
|
314
315
|
};
|
|
@@ -322,83 +323,83 @@ const ot = (e) => {
|
|
|
322
323
|
trigger: i,
|
|
323
324
|
triggerAction: r,
|
|
324
325
|
actionOnClose: s,
|
|
325
|
-
classNameTriggerTooltip:
|
|
326
|
+
classNameTriggerTooltip: p,
|
|
326
327
|
position: l = le.BottomLeft,
|
|
327
328
|
text: u,
|
|
328
329
|
noPadding: _,
|
|
329
330
|
classNameTooltip: g,
|
|
330
|
-
classNameBaseTooltipRoot:
|
|
331
|
+
classNameBaseTooltipRoot: h,
|
|
331
332
|
classNameBaseTooltipContentRoot: w,
|
|
332
333
|
styleTooltip: C
|
|
333
|
-
} = e, [
|
|
334
|
+
} = e, [N, P] = Q(!1), M = me(null), A = me(null), [b, d] = Q(!1);
|
|
334
335
|
ho(
|
|
335
|
-
[
|
|
336
|
+
[M, A],
|
|
336
337
|
() => {
|
|
337
|
-
s && s(),
|
|
338
|
+
s && s(), P(!1);
|
|
338
339
|
},
|
|
339
|
-
|
|
340
|
+
N
|
|
340
341
|
);
|
|
341
|
-
const
|
|
342
|
-
n && k.stopPropagation(), !t && (
|
|
343
|
-
}, [
|
|
342
|
+
const T = (k) => {
|
|
343
|
+
n && k.stopPropagation(), !t && (N ? s && s() : r && r(), P(($) => o ? !$ : !0));
|
|
344
|
+
}, [B, Y] = Q({
|
|
344
345
|
visibility: "hidden",
|
|
345
346
|
opacity: 0,
|
|
346
347
|
left: "-9999px"
|
|
347
|
-
}), [Z, re] =
|
|
348
|
-
if (!
|
|
349
|
-
const k =
|
|
350
|
-
let
|
|
348
|
+
}), [Z, re] = Q(!1), se = xe(() => {
|
|
349
|
+
if (!M.current || !A.current) return;
|
|
350
|
+
const k = M.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect();
|
|
351
|
+
let W = 0, m = 0;
|
|
351
352
|
switch (l) {
|
|
352
353
|
case le.Right:
|
|
353
|
-
|
|
354
|
+
W = k.top + window.scrollY - ($.height - k.height) / 2, m = k.right + window.scrollX;
|
|
354
355
|
break;
|
|
355
356
|
case le.RightTop:
|
|
356
|
-
|
|
357
|
+
W = k.top + window.scrollY, m = k.right + window.scrollX;
|
|
357
358
|
break;
|
|
358
359
|
case le.RightBottom:
|
|
359
|
-
|
|
360
|
+
W = k.bottom + window.scrollY - $.height, m = k.right + window.scrollX;
|
|
360
361
|
break;
|
|
361
362
|
case le.Left:
|
|
362
|
-
|
|
363
|
+
W = k.top + window.scrollY - ($.height - k.height) / 2, m = k.left + window.scrollX - $.width;
|
|
363
364
|
break;
|
|
364
365
|
case le.LeftTop:
|
|
365
|
-
|
|
366
|
+
W = k.top + window.scrollY, m = k.left + window.scrollX - $.width;
|
|
366
367
|
break;
|
|
367
368
|
case le.LeftBottom:
|
|
368
|
-
|
|
369
|
+
W = k.bottom + window.scrollY - $.height, m = k.left + window.scrollX - $.width;
|
|
369
370
|
break;
|
|
370
371
|
case le.Bottom:
|
|
371
|
-
|
|
372
|
+
W = k.bottom + window.scrollY, m = k.left + window.scrollX - ($.width - k.width) / 2;
|
|
372
373
|
break;
|
|
373
374
|
case le.BottomLeft:
|
|
374
|
-
|
|
375
|
+
W = k.bottom + window.scrollY, m = k.left + window.scrollX;
|
|
375
376
|
break;
|
|
376
377
|
case le.BottomRight:
|
|
377
|
-
|
|
378
|
+
W = k.bottom + window.scrollY, m = k.right + window.scrollX - $.width;
|
|
378
379
|
break;
|
|
379
380
|
case le.Top:
|
|
380
|
-
|
|
381
|
+
W = k.top + window.scrollY - $.height, m = k.left + window.scrollX - ($.width - k.width) / 2;
|
|
381
382
|
break;
|
|
382
383
|
case le.TopLeft:
|
|
383
|
-
|
|
384
|
+
W = k.top + window.scrollY - $.height, m = k.left + window.scrollX;
|
|
384
385
|
break;
|
|
385
386
|
case le.TopRight:
|
|
386
|
-
|
|
387
|
+
W = k.top + window.scrollY - $.height, m = k.right + window.scrollX - $.width;
|
|
387
388
|
break;
|
|
388
389
|
default:
|
|
389
|
-
|
|
390
|
+
W = k.bottom + window.scrollY, m = k.left + window.scrollX;
|
|
390
391
|
}
|
|
391
|
-
|
|
392
|
+
W + $.height > window.innerHeight + window.scrollY && l.includes("bottom") ? W = k.top + window.scrollY - $.height : W < window.scrollY && l.includes("top") && (W = k.bottom + window.scrollY), m + $.width > window.innerWidth + window.scrollX && l.includes("left") ? m = k.left + window.scrollX - $.width + k.width : m < window.scrollX && l.includes("right") && (m = k.right + window.scrollX - k.width), Y((v) => ({
|
|
392
393
|
...v,
|
|
393
|
-
top: `${
|
|
394
|
-
left: `${
|
|
395
|
-
visibility:
|
|
396
|
-
opacity:
|
|
394
|
+
top: `${W}px`,
|
|
395
|
+
left: `${m}px`,
|
|
396
|
+
visibility: N || Z ? "visible" : "hidden",
|
|
397
|
+
opacity: N || Z ? 1 : 0
|
|
397
398
|
}));
|
|
398
|
-
}, [l,
|
|
399
|
-
|
|
399
|
+
}, [l, N, Z]);
|
|
400
|
+
oe(() => (d(!0), () => d(!1)), []), oe(() => {
|
|
400
401
|
b && se();
|
|
401
|
-
}, [b, se]),
|
|
402
|
+
}, [b, se]), oe(() => {
|
|
402
403
|
if (!b) return;
|
|
403
404
|
const k = () => se();
|
|
404
405
|
return window.addEventListener("resize", k), window.addEventListener("scroll", k, !0), () => {
|
|
@@ -406,31 +407,31 @@ const ot = (e) => {
|
|
|
406
407
|
};
|
|
407
408
|
}, [b, se]);
|
|
408
409
|
const ue = f({
|
|
409
|
-
[
|
|
410
|
+
[zt.spTooltip]: !0,
|
|
410
411
|
...g && { [g]: !0 }
|
|
411
412
|
}), ce = f({
|
|
412
|
-
...
|
|
413
|
+
...h && { [h]: !0 }
|
|
413
414
|
}), G = f({
|
|
414
415
|
...w && { [w]: !0 }
|
|
415
416
|
}), ee = f({
|
|
416
|
-
[
|
|
417
|
-
...
|
|
418
|
-
}),
|
|
419
|
-
return /* @__PURE__ */
|
|
417
|
+
[zt.spTooltip__trigger]: !0,
|
|
418
|
+
...p && { [p]: !0 }
|
|
419
|
+
}), J = document.body;
|
|
420
|
+
return /* @__PURE__ */ z(
|
|
420
421
|
"div",
|
|
421
422
|
{
|
|
422
423
|
className: ue,
|
|
423
|
-
onClick:
|
|
424
|
+
onClick: T,
|
|
424
425
|
onMouseEnter: () => t && re(!0),
|
|
425
426
|
onMouseLeave: () => t && re(!1),
|
|
426
427
|
style: C,
|
|
427
428
|
children: [
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
a && /* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ c("div", { ref: M, className: ee, children: i }),
|
|
430
|
+
a && /* @__PURE__ */ c(bo, { node: J, children: /* @__PURE__ */ c(
|
|
430
431
|
xo,
|
|
431
432
|
{
|
|
432
|
-
style:
|
|
433
|
-
ref:
|
|
433
|
+
style: B,
|
|
434
|
+
ref: A,
|
|
434
435
|
noPadding: _,
|
|
435
436
|
text: u,
|
|
436
437
|
classNameRoot: ce,
|
|
@@ -440,7 +441,7 @@ const ot = (e) => {
|
|
|
440
441
|
]
|
|
441
442
|
}
|
|
442
443
|
);
|
|
443
|
-
}, nt = (e) => /* @__PURE__ */
|
|
444
|
+
}, nt = (e) => /* @__PURE__ */ c(ot, { ...e, hover: !0, trigger: /* @__PURE__ */ c(ve, { name: ae.Info }) }), aa = "_spCheckbox_1ypiv_43", ia = "_spCheckbox__control_1ypiv_49", ra = "_spCheckbox__label_1ypiv_52", sa = "_spCheckbox__box_1ypiv_63", pa = "_spCheckbox__box_checked_1ypiv_90", la = "_spCheckbox__box_disabled_1ypiv_100", ca = "_spCheckbox__box_error_1ypiv_111", da = "_spCheckbox__tooltip_1ypiv_114", ma = "_spCheckbox__required_1ypiv_119", ua = "_spCheckbox__error_1ypiv_125", Ce = {
|
|
444
445
|
spCheckbox: aa,
|
|
445
446
|
spCheckbox__control: ia,
|
|
446
447
|
spCheckbox__label: ra,
|
|
@@ -453,7 +454,7 @@ const ot = (e) => {
|
|
|
453
454
|
spCheckbox__tooltip: da,
|
|
454
455
|
spCheckbox__required: ma,
|
|
455
456
|
spCheckbox__error: ua
|
|
456
|
-
},
|
|
457
|
+
}, Rp = (e) => {
|
|
457
458
|
const {
|
|
458
459
|
size: t = "lg",
|
|
459
460
|
checked: o,
|
|
@@ -462,55 +463,55 @@ const ot = (e) => {
|
|
|
462
463
|
name: i,
|
|
463
464
|
label: r,
|
|
464
465
|
error: s,
|
|
465
|
-
value:
|
|
466
|
+
value: p,
|
|
466
467
|
required: l,
|
|
467
468
|
tooltipPosition: u,
|
|
468
469
|
infoTooltipText: _,
|
|
469
470
|
onMouseEnter: g,
|
|
470
|
-
classNameRoot:
|
|
471
|
+
classNameRoot: h,
|
|
471
472
|
classNameError: w
|
|
472
473
|
} = e, C = f({
|
|
473
474
|
[Ce.spCheckbox]: !0,
|
|
474
|
-
...
|
|
475
|
-
}),
|
|
475
|
+
...h && { [h]: !0 }
|
|
476
|
+
}), N = f({
|
|
476
477
|
[Ce.spCheckbox__box]: !0,
|
|
477
478
|
[Ce.spCheckbox__box_checked]: o,
|
|
478
479
|
[Ce.spCheckbox__box_disabled]: n,
|
|
479
480
|
[Ce[`spCheckbox__box--size-${t}`]]: t,
|
|
480
481
|
[Ce.spCheckbox__box_error]: s
|
|
481
|
-
}),
|
|
482
|
+
}), P = f({
|
|
482
483
|
[Ce.spCheckbox__control]: !0
|
|
483
|
-
}),
|
|
484
|
+
}), M = f({
|
|
484
485
|
[Ce.spCheckbox__label]: !0
|
|
485
|
-
}),
|
|
486
|
+
}), A = f({
|
|
486
487
|
[Ce.spCheckbox__required]: !0
|
|
487
488
|
}), b = f({
|
|
488
489
|
[Ce.spCheckbox__error]: !0,
|
|
489
490
|
...w && { [w]: !0 }
|
|
490
|
-
}),
|
|
491
|
+
}), d = f({
|
|
491
492
|
[Ce.spCheckbox__tooltip]: !0
|
|
492
493
|
});
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
494
|
+
return /* @__PURE__ */ z("div", { className: C, onMouseEnter: g, children: [
|
|
495
|
+
/* @__PURE__ */ z("label", { className: N, children: [
|
|
496
|
+
/* @__PURE__ */ c(
|
|
496
497
|
"input",
|
|
497
498
|
{
|
|
498
499
|
type: "checkbox",
|
|
499
|
-
className:
|
|
500
|
+
className: P,
|
|
500
501
|
checked: o,
|
|
501
|
-
onChange: (
|
|
502
|
-
!n && a && a(
|
|
502
|
+
onChange: (B) => {
|
|
503
|
+
!n && a && a(B, { name: i, checked: !o, value: p });
|
|
503
504
|
}
|
|
504
505
|
}
|
|
505
506
|
),
|
|
506
|
-
r && /* @__PURE__ */
|
|
507
|
-
l && /* @__PURE__ */
|
|
508
|
-
_ && /* @__PURE__ */
|
|
507
|
+
r && /* @__PURE__ */ c("span", { className: M, children: r }),
|
|
508
|
+
l && /* @__PURE__ */ c("div", { className: A, children: "*" }),
|
|
509
|
+
_ && /* @__PURE__ */ c("div", { className: d, children: /* @__PURE__ */ c(nt, { position: u, text: _ }) })
|
|
509
510
|
] }),
|
|
510
|
-
s && /* @__PURE__ */
|
|
511
|
+
s && /* @__PURE__ */ c("div", { className: b, children: s })
|
|
511
512
|
] });
|
|
512
|
-
},
|
|
513
|
-
const { initialValue: t = null } = e, [o, n] =
|
|
513
|
+
}, Fp = (e = {}) => {
|
|
514
|
+
const { initialValue: t = null } = e, [o, n] = Q(t);
|
|
514
515
|
return {
|
|
515
516
|
isOpen: !!o,
|
|
516
517
|
modalData: o,
|
|
@@ -521,7 +522,7 @@ const ot = (e) => {
|
|
|
521
522
|
n(null);
|
|
522
523
|
}
|
|
523
524
|
};
|
|
524
|
-
}, _a = "_layer_14g8d_43", fa = "_layer_hidden_14g8d_65",
|
|
525
|
+
}, _a = "_layer_14g8d_43", fa = "_layer_hidden_14g8d_65", Mt = {
|
|
525
526
|
layer: _a,
|
|
526
527
|
layer_hidden: fa
|
|
527
528
|
}, yo = (e) => {
|
|
@@ -531,11 +532,16 @@ const ot = (e) => {
|
|
|
531
532
|
isHiddenModal: n = !1,
|
|
532
533
|
classNameRoot: a
|
|
533
534
|
} = e, i = document.body, r = f({
|
|
534
|
-
[
|
|
535
|
-
[
|
|
535
|
+
[Mt.layer]: !0,
|
|
536
|
+
[Mt.layer_hidden]: n,
|
|
536
537
|
...a && { [a]: !0 }
|
|
537
538
|
});
|
|
538
|
-
return
|
|
539
|
+
return oe(() => {
|
|
540
|
+
const s = window.scrollY, p = document.body;
|
|
541
|
+
return p.style.position = "fixed", p.style.top = `-${s}px`, p.style.left = "0", p.style.right = "0", p.style.overflow = "hidden", () => {
|
|
542
|
+
p.style.position = "", p.style.top = "", p.style.left = "", p.style.right = "", p.style.overflow = "", window.scrollTo(0, s);
|
|
543
|
+
};
|
|
544
|
+
}, []), /* @__PURE__ */ c(bo, { node: i, children: /* @__PURE__ */ c("div", { style: { zIndex: o }, className: r, children: t }) });
|
|
539
545
|
}, va = "_spText_1gech_43", ga = "_spText_ellipsis_1gech_56", xa = "_spText_cursorPointer_1gech_113", Ye = {
|
|
540
546
|
spText: va,
|
|
541
547
|
spText_ellipsis: ga,
|
|
@@ -554,24 +560,24 @@ const ot = (e) => {
|
|
|
554
560
|
title: i,
|
|
555
561
|
style: r,
|
|
556
562
|
onClick: s,
|
|
557
|
-
isEllipsis:
|
|
563
|
+
isEllipsis: p = !1,
|
|
558
564
|
isCursorPointer: l = !1,
|
|
559
565
|
isCursorPointerByOnClick: u = !0,
|
|
560
566
|
classNameRoot: _
|
|
561
|
-
} = e, g = () => s && u ? !0 : l,
|
|
567
|
+
} = e, g = () => s && u ? !0 : l, h = f({
|
|
562
568
|
[Ye.spText]: !0,
|
|
563
|
-
[Ye.spText_ellipsis]:
|
|
569
|
+
[Ye.spText_ellipsis]: p,
|
|
564
570
|
[Ye.spText_cursorPointer]: g(),
|
|
565
571
|
[Ye[`spText_type-${o}`]]: o,
|
|
566
572
|
..._ && { [_]: !0 }
|
|
567
573
|
});
|
|
568
|
-
return /* @__PURE__ */
|
|
574
|
+
return /* @__PURE__ */ c(
|
|
569
575
|
"span",
|
|
570
576
|
{
|
|
571
577
|
style: { ...r, color: a },
|
|
572
578
|
title: i,
|
|
573
579
|
onClick: s,
|
|
574
|
-
className:
|
|
580
|
+
className: h,
|
|
575
581
|
ref: t,
|
|
576
582
|
children: n
|
|
577
583
|
}
|
|
@@ -607,63 +613,58 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
607
613
|
classNameLayerRoot: i,
|
|
608
614
|
classNameRoot: r,
|
|
609
615
|
style: s,
|
|
610
|
-
modalVerticalAlign:
|
|
616
|
+
modalVerticalAlign: p = "top",
|
|
611
617
|
textAlign: l = "left",
|
|
612
618
|
onClose: u,
|
|
613
619
|
header: _,
|
|
614
620
|
subHeader: g,
|
|
615
|
-
footer:
|
|
621
|
+
footer: h,
|
|
616
622
|
size: w = "lg"
|
|
617
623
|
} = e, C = f({
|
|
618
624
|
[ge.modalWrapper]: !0,
|
|
619
|
-
[ge[`modalWrapper--modalVerticalAlign-${
|
|
625
|
+
[ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
|
|
620
626
|
[ge[`modalWrapper--textAlign-${l}`]]: l
|
|
621
|
-
}),
|
|
627
|
+
}), N = f({
|
|
622
628
|
[ge.modalWrapper__modal]: !0,
|
|
623
629
|
[ge[`modalWrapper__modal--size-${w}`]]: w,
|
|
624
630
|
...r && { [r]: !0 }
|
|
625
|
-
}),
|
|
631
|
+
}), P = f({
|
|
626
632
|
[ge.modalWrapper__closeButton]: !0,
|
|
627
633
|
[ge[`modalWrapper__closeButton--size-${w}`]]: w
|
|
628
|
-
}),
|
|
634
|
+
}), M = f({
|
|
629
635
|
[ge.modalWrapper__closeButtonIconContainer]: !0,
|
|
630
636
|
[ge[`modalWrapper__closeButtonIconContainer--size-${w}`]]: w
|
|
631
|
-
}),
|
|
637
|
+
}), A = f({
|
|
632
638
|
[ge.modalWrapper__content]: !0
|
|
633
639
|
}), b = f({
|
|
634
640
|
[ge.modalWrapper__header]: !0
|
|
635
|
-
}),
|
|
641
|
+
}), d = f({
|
|
636
642
|
[ge.modalWrapper__subHeader]: !0,
|
|
637
643
|
[ge.modalWrapper__subHeader_onlySubHeader]: !_
|
|
638
|
-
}),
|
|
644
|
+
}), T = f({
|
|
639
645
|
[ge.modalWrapper__footer]: !0
|
|
640
646
|
});
|
|
641
|
-
return
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
};
|
|
646
|
-
}, []), /* @__PURE__ */ p(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ p("div", { className: C, children: /* @__PURE__ */ M("div", { className: T, style: s, children: [
|
|
647
|
-
(_ || g) && /* @__PURE__ */ M("div", { className: b, children: [
|
|
648
|
-
typeof _ == "string" ? /* @__PURE__ */ p(Te, { type: "h3", children: _ }) : _,
|
|
649
|
-
g && /* @__PURE__ */ p("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ p(Te, { children: g }) : g })
|
|
647
|
+
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: C, children: /* @__PURE__ */ z("div", { className: N, style: s, children: [
|
|
648
|
+
(_ || g) && /* @__PURE__ */ z("div", { className: b, children: [
|
|
649
|
+
typeof _ == "string" ? /* @__PURE__ */ c(Te, { type: "h3", children: _ }) : _,
|
|
650
|
+
g && /* @__PURE__ */ c("div", { className: d, children: typeof g == "string" ? /* @__PURE__ */ c(Te, { children: g }) : g })
|
|
650
651
|
] }),
|
|
651
|
-
a && /* @__PURE__ */
|
|
652
|
-
|
|
653
|
-
n && u && /* @__PURE__ */
|
|
652
|
+
a && /* @__PURE__ */ c("div", { className: A, children: a }),
|
|
653
|
+
h && /* @__PURE__ */ c("div", { className: T, children: h }),
|
|
654
|
+
n && u && /* @__PURE__ */ c(
|
|
654
655
|
Qe,
|
|
655
656
|
{
|
|
656
|
-
classNameRoot:
|
|
657
|
-
classNameIconContainerRoot:
|
|
657
|
+
classNameRoot: P,
|
|
658
|
+
classNameIconContainerRoot: M,
|
|
658
659
|
onClick: u,
|
|
659
|
-
iconName:
|
|
660
|
+
iconName: ae.Close,
|
|
660
661
|
variant: "link",
|
|
661
662
|
noPadding: !0,
|
|
662
663
|
isOnlyIcon: !0
|
|
663
664
|
}
|
|
664
665
|
)
|
|
665
666
|
] }) }) });
|
|
666
|
-
},
|
|
667
|
+
}, Ia = (e) => {
|
|
667
668
|
const {
|
|
668
669
|
zIndex: t,
|
|
669
670
|
header: o,
|
|
@@ -672,67 +673,67 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
672
673
|
cancelBtnDisabled: i,
|
|
673
674
|
cancelBtnIconName: r,
|
|
674
675
|
submitBtnContent: s,
|
|
675
|
-
submitBtnIconName:
|
|
676
|
+
submitBtnIconName: p,
|
|
676
677
|
submit: l,
|
|
677
678
|
disabled: u,
|
|
678
679
|
formId: _,
|
|
679
680
|
onClose: g,
|
|
680
|
-
applyButtonsMobileDirection:
|
|
681
|
+
applyButtonsMobileDirection: h = "column",
|
|
681
682
|
applyButtonsAlign: w = "right",
|
|
682
683
|
modalVerticalAlign: C = "top",
|
|
683
|
-
textAlign:
|
|
684
|
-
loading:
|
|
685
|
-
isVisibleCloseButton:
|
|
686
|
-
isHiddenModal:
|
|
684
|
+
textAlign: N = "left",
|
|
685
|
+
loading: P,
|
|
686
|
+
isVisibleCloseButton: M,
|
|
687
|
+
isHiddenModal: A,
|
|
687
688
|
size: b,
|
|
688
|
-
classNameRoot:
|
|
689
|
-
classNameLayerRoot:
|
|
689
|
+
classNameRoot: d,
|
|
690
|
+
classNameLayerRoot: T
|
|
690
691
|
} = e;
|
|
691
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ c(
|
|
692
693
|
Ea,
|
|
693
694
|
{
|
|
694
695
|
zIndex: t,
|
|
695
696
|
header: o,
|
|
696
697
|
onClose: g,
|
|
697
698
|
modalVerticalAlign: C,
|
|
698
|
-
textAlign:
|
|
699
|
+
textAlign: N,
|
|
699
700
|
subHeader: n,
|
|
700
|
-
isVisibleCloseButton:
|
|
701
|
-
isHiddenModal:
|
|
701
|
+
isVisibleCloseButton: M,
|
|
702
|
+
isHiddenModal: A,
|
|
702
703
|
size: b,
|
|
703
|
-
classNameRoot:
|
|
704
|
-
classNameLayerRoot:
|
|
705
|
-
footer: a || r || s ||
|
|
704
|
+
classNameRoot: d,
|
|
705
|
+
classNameLayerRoot: T,
|
|
706
|
+
footer: a || r || s || p ? /* @__PURE__ */ c(
|
|
706
707
|
Qn,
|
|
707
708
|
{
|
|
708
|
-
applyButtonsMobileDirection:
|
|
709
|
+
applyButtonsMobileDirection: h,
|
|
709
710
|
applyButtonsAlign: w,
|
|
710
711
|
cancelBtnContent: a,
|
|
711
712
|
cancelBtnIconName: r,
|
|
712
713
|
cancelBtnDisabled: i,
|
|
713
714
|
submitBtnContent: s,
|
|
714
|
-
submitBtnIconName:
|
|
715
|
+
submitBtnIconName: p,
|
|
715
716
|
formId: _,
|
|
716
717
|
disabled: u,
|
|
717
718
|
onClose: g,
|
|
718
719
|
submit: l,
|
|
719
|
-
loading:
|
|
720
|
+
loading: P
|
|
720
721
|
}
|
|
721
722
|
) : null
|
|
722
723
|
}
|
|
723
724
|
);
|
|
724
|
-
},
|
|
725
|
-
spContextMenu:
|
|
726
|
-
spContextMenu__item:
|
|
727
|
-
spContextMenu__item_deleteItem:
|
|
728
|
-
},
|
|
725
|
+
}, Sa = "_spContextMenu_1cza9_43", Ra = "_spContextMenu__item_1cza9_55", Fa = "_spContextMenu__item_deleteItem_1cza9_74", _t = {
|
|
726
|
+
spContextMenu: Sa,
|
|
727
|
+
spContextMenu__item: Ra,
|
|
728
|
+
spContextMenu__item_deleteItem: Fa
|
|
729
|
+
}, Ap = (e) => {
|
|
729
730
|
const { onClickItem: t, options: o, classNameRoot: n } = e, a = f({
|
|
730
731
|
[_t.spContextMenu]: !0,
|
|
731
732
|
...n && { [n]: !0 }
|
|
732
733
|
});
|
|
733
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ c("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
734
735
|
const r = i.key === "delete";
|
|
735
|
-
return /* @__PURE__ */
|
|
736
|
+
return /* @__PURE__ */ z(
|
|
736
737
|
"li",
|
|
737
738
|
{
|
|
738
739
|
className: f({
|
|
@@ -743,29 +744,29 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
743
744
|
t && t(i);
|
|
744
745
|
},
|
|
745
746
|
children: [
|
|
746
|
-
(i == null ? void 0 : i.iconName) && /* @__PURE__ */
|
|
747
|
+
(i == null ? void 0 : i.iconName) && /* @__PURE__ */ c(ve, { name: i.iconName }),
|
|
747
748
|
i.label
|
|
748
749
|
]
|
|
749
750
|
},
|
|
750
751
|
i.key
|
|
751
752
|
);
|
|
752
753
|
}) });
|
|
753
|
-
},
|
|
754
|
+
}, Aa = (e) => {
|
|
754
755
|
const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
|
|
755
|
-
return /* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
756
|
+
return /* @__PURE__ */ z("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
757
|
+
/* @__PURE__ */ c("input", { ...i({}), disabled: n, name: a }),
|
|
757
758
|
o
|
|
758
759
|
] });
|
|
759
|
-
}, ja = "
|
|
760
|
+
}, ja = "_spDropdown_miycs_43", La = "_spDropdown__labelText_miycs_55", Da = "_spDropdown__tooltipContainer_miycs_63", Pa = "_spDropdown__dropdownList_miycs_68", Ba = "_spDropdown__dropdownListHeader_miycs_74", Oa = "_spDropdown__dopdownListItem_miycs_81", Wa = "_spDropdown__dopdownListItem_textCenter_miycs_93", za = "_spDropdown__downloadListItemDescription_miycs_97", Ie = {
|
|
760
761
|
spDropdown: ja,
|
|
761
|
-
spDropdown__labelText:
|
|
762
|
-
spDropdown__tooltipContainer:
|
|
763
|
-
spDropdown__dropdownList:
|
|
764
|
-
spDropdown__dropdownListHeader:
|
|
762
|
+
spDropdown__labelText: La,
|
|
763
|
+
spDropdown__tooltipContainer: Da,
|
|
764
|
+
spDropdown__dropdownList: Pa,
|
|
765
|
+
spDropdown__dropdownListHeader: Ba,
|
|
765
766
|
spDropdown__dopdownListItem: Oa,
|
|
766
|
-
spDropdown__dopdownListItem_textCenter:
|
|
767
|
-
spDropdown__downloadListItemDescription:
|
|
768
|
-
},
|
|
767
|
+
spDropdown__dopdownListItem_textCenter: Wa,
|
|
768
|
+
spDropdown__downloadListItemDescription: za
|
|
769
|
+
}, jp = (e) => {
|
|
769
770
|
const {
|
|
770
771
|
labelText: t = "Выпадающий список",
|
|
771
772
|
listName: o,
|
|
@@ -777,7 +778,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
777
778
|
...i && { [i]: !0 }
|
|
778
779
|
}), s = f({
|
|
779
780
|
[Ie.spDropdown__labelText]: !0
|
|
780
|
-
}),
|
|
781
|
+
}), p = f({
|
|
781
782
|
[Ie.spDropdown__tooltipContainer]: !0
|
|
782
783
|
}), l = f({
|
|
783
784
|
[Ie.spDropdown__dropdownList]: !0
|
|
@@ -785,16 +786,16 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
785
786
|
[Ie.spDropdown__dropdownListHeader]: !0
|
|
786
787
|
}), _ = f({
|
|
787
788
|
[Ie.spDropdown__downloadListItemDescription]: !0
|
|
788
|
-
}), [g,
|
|
789
|
-
return /* @__PURE__ */
|
|
789
|
+
}), [g, h] = Q(!1);
|
|
790
|
+
return /* @__PURE__ */ c(
|
|
790
791
|
ot,
|
|
791
792
|
{
|
|
792
793
|
hover: !1,
|
|
793
|
-
triggerAction: () =>
|
|
794
|
-
actionOnClose: () =>
|
|
795
|
-
text: /* @__PURE__ */
|
|
796
|
-
o && /* @__PURE__ */
|
|
797
|
-
n.map((C,
|
|
794
|
+
triggerAction: () => h(!0),
|
|
795
|
+
actionOnClose: () => h(!1),
|
|
796
|
+
text: /* @__PURE__ */ z("div", { className: l, children: [
|
|
797
|
+
o && /* @__PURE__ */ c("div", { className: u, children: o }),
|
|
798
|
+
n.map((C, N) => /* @__PURE__ */ z(
|
|
798
799
|
"div",
|
|
799
800
|
{
|
|
800
801
|
className: f({
|
|
@@ -804,25 +805,25 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
804
805
|
onClick: C.onClick,
|
|
805
806
|
children: [
|
|
806
807
|
C.name,
|
|
807
|
-
C.description && /* @__PURE__ */
|
|
808
|
+
C.description && /* @__PURE__ */ c("span", { className: _, children: C.description })
|
|
808
809
|
]
|
|
809
810
|
},
|
|
810
|
-
|
|
811
|
+
N
|
|
811
812
|
))
|
|
812
813
|
] }),
|
|
813
814
|
position: a,
|
|
814
815
|
noPadding: !0,
|
|
815
816
|
isToggleClick: !0,
|
|
816
817
|
isStopPropagationClickOnTrigger: !0,
|
|
817
|
-
trigger: /* @__PURE__ */
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
818
|
+
trigger: /* @__PURE__ */ z("div", { className: r, children: [
|
|
819
|
+
/* @__PURE__ */ c("div", { className: s, children: t }),
|
|
820
|
+
/* @__PURE__ */ c("div", { className: p, children: /* @__PURE__ */ c(ve, { name: ae.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
820
821
|
] })
|
|
821
822
|
}
|
|
822
823
|
);
|
|
823
|
-
},
|
|
824
|
-
ellipsisTextWithTooltip:
|
|
825
|
-
ellipsisTextWithTooltip__tooltip:
|
|
824
|
+
}, Ma = "_ellipsisTextWithTooltip_1nhiw_43", Ua = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", Ut = {
|
|
825
|
+
ellipsisTextWithTooltip: Ma,
|
|
826
|
+
ellipsisTextWithTooltip__tooltip: Ua
|
|
826
827
|
}, Ge = (e) => {
|
|
827
828
|
const {
|
|
828
829
|
text: t,
|
|
@@ -832,35 +833,35 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
832
833
|
classNameBaseTooltipContentRoot: i,
|
|
833
834
|
classNameBaseTooltipRoot: r,
|
|
834
835
|
...s
|
|
835
|
-
} = e,
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
} = e, p = me(null), [l, u] = Q(!1);
|
|
837
|
+
oe(() => {
|
|
838
|
+
p.current && u(p.current.scrollWidth > p.current.clientWidth);
|
|
838
839
|
}, [t]);
|
|
839
840
|
const _ = f({
|
|
840
|
-
[
|
|
841
|
+
[Ut.ellipsisTextWithTooltip]: !0,
|
|
841
842
|
...o && { [o]: !0 }
|
|
842
843
|
}), g = f({
|
|
843
|
-
[
|
|
844
|
+
[Ut.ellipsisTextWithTooltip__tooltip]: !0,
|
|
844
845
|
...n && { [n]: !0 }
|
|
845
|
-
}),
|
|
846
|
+
}), h = f({
|
|
846
847
|
...a && { [a]: !0 }
|
|
847
848
|
});
|
|
848
|
-
return /* @__PURE__ */
|
|
849
|
+
return /* @__PURE__ */ c(
|
|
849
850
|
ot,
|
|
850
851
|
{
|
|
851
852
|
classNameTooltip: g,
|
|
852
|
-
classNameTriggerTooltip:
|
|
853
|
+
classNameTriggerTooltip: h,
|
|
853
854
|
classNameBaseTooltipContentRoot: i,
|
|
854
855
|
classNameBaseTooltipRoot: r,
|
|
855
856
|
isVisibleTooltip: l,
|
|
856
857
|
text: t,
|
|
857
|
-
trigger: /* @__PURE__ */
|
|
858
|
+
trigger: /* @__PURE__ */ c(Te, { ...s, classNameRoot: _, isEllipsis: !0, ref: p, children: t })
|
|
858
859
|
}
|
|
859
860
|
);
|
|
860
|
-
},
|
|
861
|
-
spForm:
|
|
862
|
-
spForm_fullWidth:
|
|
863
|
-
spForm_withSeparator:
|
|
861
|
+
}, $a = "_spForm_zefbj_43", qa = "_spForm_fullWidth_zefbj_46", Ha = "_spForm_withSeparator_zefbj_49", Me = {
|
|
862
|
+
spForm: $a,
|
|
863
|
+
spForm_fullWidth: qa,
|
|
864
|
+
spForm_withSeparator: Ha,
|
|
864
865
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
865
866
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
866
867
|
}, Lp = (e) => {
|
|
@@ -872,7 +873,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
872
873
|
withSeparator: i = !1,
|
|
873
874
|
fullWidth: r = !0,
|
|
874
875
|
classNameRoot: s,
|
|
875
|
-
...
|
|
876
|
+
...p
|
|
876
877
|
} = e, l = f({
|
|
877
878
|
[Me.spForm]: !0,
|
|
878
879
|
[Me.spForm_fullWidth]: r,
|
|
@@ -881,15 +882,15 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
881
882
|
[Me.spForm_withSeparator]: i,
|
|
882
883
|
...s && { [s]: !0 }
|
|
883
884
|
});
|
|
884
|
-
return /* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ c("form", { ...p, onSubmit: (_) => {
|
|
885
886
|
_.preventDefault(), n && n();
|
|
886
887
|
}, className: l, children: o });
|
|
887
|
-
},
|
|
888
|
-
spLabel:
|
|
889
|
-
spLabel__text:
|
|
890
|
-
spLabel__tooltip:
|
|
891
|
-
spLabel__required:
|
|
892
|
-
},
|
|
888
|
+
}, Va = "_spLabel_g0hfy_43", Ya = "_spLabel__text_g0hfy_52", Ga = "_spLabel__tooltip_g0hfy_62", Ka = "_spLabel__required_g0hfy_67", Ke = {
|
|
889
|
+
spLabel: Va,
|
|
890
|
+
spLabel__text: Ya,
|
|
891
|
+
spLabel__tooltip: Ga,
|
|
892
|
+
spLabel__required: Ka
|
|
893
|
+
}, Dt = (e) => {
|
|
893
894
|
const {
|
|
894
895
|
required: t,
|
|
895
896
|
label: o,
|
|
@@ -900,17 +901,17 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
900
901
|
} = e, s = f({
|
|
901
902
|
[Ke.spLabel]: !0,
|
|
902
903
|
...i && { [i]: !0 }
|
|
903
|
-
}),
|
|
904
|
+
}), p = f({
|
|
904
905
|
[Ke.spLabel__text]: !0
|
|
905
906
|
}), l = f({
|
|
906
907
|
[Ke.spLabel__required]: t
|
|
907
908
|
}), u = f({
|
|
908
909
|
[Ke.spLabel__tooltip]: !0
|
|
909
910
|
});
|
|
910
|
-
return /* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
t && /* @__PURE__ */
|
|
913
|
-
n && /* @__PURE__ */
|
|
911
|
+
return /* @__PURE__ */ z("div", { className: s, children: [
|
|
912
|
+
/* @__PURE__ */ c("label", { className: p, children: o }),
|
|
913
|
+
t && /* @__PURE__ */ c("div", { className: l, children: "*" }),
|
|
914
|
+
n && /* @__PURE__ */ c("div", { className: u, children: /* @__PURE__ */ c(
|
|
914
915
|
nt,
|
|
915
916
|
{
|
|
916
917
|
position: a,
|
|
@@ -919,20 +920,20 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
919
920
|
}
|
|
920
921
|
) })
|
|
921
922
|
] });
|
|
922
|
-
},
|
|
923
|
-
spInput:
|
|
924
|
-
spInput_error:
|
|
925
|
-
spInput__control:
|
|
926
|
-
spInput_absolutePositionError:
|
|
927
|
-
spInput__container:
|
|
928
|
-
spInput__control_filled:
|
|
929
|
-
spInput__control_outlined:
|
|
930
|
-
spInput__control_disabled:
|
|
931
|
-
spInput__control_clearable:
|
|
932
|
-
spInput__clear:
|
|
933
|
-
spInput__error:
|
|
934
|
-
spInput__error_absolutePosition:
|
|
935
|
-
},
|
|
923
|
+
}, Xa = "_spInput_l89ke_43", Za = "_spInput_error_l89ke_48", Qa = "_spInput__control_l89ke_48", Ja = "_spInput_absolutePositionError_l89ke_55", ei = "_spInput__container_l89ke_58", ti = "_spInput__control_filled_l89ke_77", oi = "_spInput__control_outlined_l89ke_81", ni = "_spInput__control_disabled_l89ke_85", ai = "_spInput__control_clearable_l89ke_89", ii = "_spInput__clear_l89ke_116", ri = "_spInput__error_l89ke_125", si = "_spInput__error_absolutePosition_l89ke_132", ke = {
|
|
924
|
+
spInput: Xa,
|
|
925
|
+
spInput_error: Za,
|
|
926
|
+
spInput__control: Qa,
|
|
927
|
+
spInput_absolutePositionError: Ja,
|
|
928
|
+
spInput__container: ei,
|
|
929
|
+
spInput__control_filled: ti,
|
|
930
|
+
spInput__control_outlined: oi,
|
|
931
|
+
spInput__control_disabled: ni,
|
|
932
|
+
spInput__control_clearable: ai,
|
|
933
|
+
spInput__clear: ii,
|
|
934
|
+
spInput__error: ri,
|
|
935
|
+
spInput__error_absolutePosition: si
|
|
936
|
+
}, pi = $e.forwardRef((e, t) => {
|
|
936
937
|
const {
|
|
937
938
|
value: o,
|
|
938
939
|
onChange: n,
|
|
@@ -940,27 +941,27 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
940
941
|
variant: i = "outlined",
|
|
941
942
|
disabled: r = !1,
|
|
942
943
|
isAbsolutePositionError: s = !1,
|
|
943
|
-
error:
|
|
944
|
+
error: p,
|
|
944
945
|
required: l,
|
|
945
946
|
name: u,
|
|
946
947
|
isClearable: _,
|
|
947
948
|
pattern: g,
|
|
948
|
-
onMouseEnter:
|
|
949
|
+
onMouseEnter: h,
|
|
949
950
|
infoTooltipText: w,
|
|
950
951
|
tooltipPosition: C,
|
|
951
|
-
isVisibleDefaultTitle:
|
|
952
|
-
placeholder:
|
|
953
|
-
classNameRoot:
|
|
954
|
-
classNameError:
|
|
952
|
+
isVisibleDefaultTitle: N = !0,
|
|
953
|
+
placeholder: P = "Введите...",
|
|
954
|
+
classNameRoot: M,
|
|
955
|
+
classNameError: A,
|
|
955
956
|
classNameLabel: b,
|
|
956
|
-
classNameBaseTooltipRoot:
|
|
957
|
-
...
|
|
958
|
-
} = e,
|
|
957
|
+
classNameBaseTooltipRoot: d,
|
|
958
|
+
...T
|
|
959
|
+
} = e, B = f({
|
|
959
960
|
[ke.spInput]: !0,
|
|
960
|
-
[ke.spInput_error]: !!
|
|
961
|
+
[ke.spInput_error]: !!p,
|
|
961
962
|
[ke.spInput_absolutePositionError]: s,
|
|
962
|
-
...
|
|
963
|
-
}),
|
|
963
|
+
...M && { [M]: !0 }
|
|
964
|
+
}), Y = f({
|
|
964
965
|
[ke.spInput__container]: !0
|
|
965
966
|
}), Z = f({
|
|
966
967
|
[ke.spInput__control]: !0,
|
|
@@ -972,49 +973,49 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
972
973
|
}), se = f({
|
|
973
974
|
[ke.spInput__error]: !0,
|
|
974
975
|
[ke.spInput__error_absolutePosition]: s,
|
|
975
|
-
...
|
|
976
|
+
...A && { [A]: !0 }
|
|
976
977
|
}), ue = f({
|
|
977
978
|
...b && { [b]: !0 }
|
|
978
|
-
}), ce = (
|
|
979
|
-
n(
|
|
980
|
-
}, G = (
|
|
981
|
-
const { value: k, name:
|
|
982
|
-
g && k && !new RegExp(g).test(k) || n(
|
|
979
|
+
}), ce = (J) => {
|
|
980
|
+
n(J, { name: u, value: "" });
|
|
981
|
+
}, G = (J) => {
|
|
982
|
+
const { value: k, name: $ } = J.target;
|
|
983
|
+
g && k && !new RegExp(g).test(k) || n(J, { value: k, name: $ });
|
|
983
984
|
};
|
|
984
|
-
return /* @__PURE__ */
|
|
985
|
-
a && /* @__PURE__ */
|
|
986
|
-
|
|
985
|
+
return /* @__PURE__ */ z("div", { className: B, children: [
|
|
986
|
+
a && /* @__PURE__ */ c(
|
|
987
|
+
Dt,
|
|
987
988
|
{
|
|
988
989
|
classNameRoot: ue,
|
|
989
990
|
tooltipPosition: C,
|
|
990
991
|
required: l,
|
|
991
992
|
label: a,
|
|
992
993
|
infoTooltipText: w,
|
|
993
|
-
classNameBaseTooltipRoot:
|
|
994
|
+
classNameBaseTooltipRoot: d
|
|
994
995
|
}
|
|
995
996
|
),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ z("div", { className: Y, onMouseEnter: h, children: [
|
|
998
|
+
/* @__PURE__ */ c(
|
|
998
999
|
"input",
|
|
999
1000
|
{
|
|
1000
|
-
...
|
|
1001
|
-
placeholder:
|
|
1001
|
+
...T,
|
|
1002
|
+
placeholder: P,
|
|
1002
1003
|
disabled: r,
|
|
1003
1004
|
onChange: G,
|
|
1004
|
-
title:
|
|
1005
|
+
title: N ? o : void 0,
|
|
1005
1006
|
value: o,
|
|
1006
1007
|
name: u,
|
|
1007
1008
|
className: Z,
|
|
1008
1009
|
ref: t
|
|
1009
1010
|
}
|
|
1010
1011
|
),
|
|
1011
|
-
_ && o && !r && /* @__PURE__ */
|
|
1012
|
+
_ && o && !r && /* @__PURE__ */ c(ve, { onClick: ce, className: re, name: ae.Trash })
|
|
1012
1013
|
] }),
|
|
1013
|
-
|
|
1014
|
+
p && /* @__PURE__ */ c("div", { className: se, children: p })
|
|
1014
1015
|
] });
|
|
1015
1016
|
});
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1017
|
+
pi.displayName = "Input";
|
|
1018
|
+
const li = vo({
|
|
1018
1019
|
device: {
|
|
1019
1020
|
isDesktop: !1,
|
|
1020
1021
|
isMobile: !1,
|
|
@@ -1024,17 +1025,17 @@ const pi = vo({
|
|
|
1024
1025
|
function wo(e) {
|
|
1025
1026
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1026
1027
|
}
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
var
|
|
1031
|
-
function
|
|
1028
|
+
var Pt = {};
|
|
1029
|
+
Pt.match = fi;
|
|
1030
|
+
Pt.parse = Co;
|
|
1031
|
+
var ci = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, di = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, mi = /^(?:(min|max)-)?(.+)/, ui = /(em|rem|px|cm|mm|in|pt|pc)?$/, _i = /(dpi|dpcm|dppx)?$/;
|
|
1032
|
+
function fi(e, t) {
|
|
1032
1033
|
return Co(e).some(function(o) {
|
|
1033
1034
|
var n = o.inverse, a = o.type === "all" || t.type === o.type;
|
|
1034
1035
|
if (a && n || !(a || n))
|
|
1035
1036
|
return !1;
|
|
1036
1037
|
var i = o.expressions.every(function(r) {
|
|
1037
|
-
var s = r.feature,
|
|
1038
|
+
var s = r.feature, p = r.modifier, l = r.value, u = t[s];
|
|
1038
1039
|
if (!u)
|
|
1039
1040
|
return !1;
|
|
1040
1041
|
switch (s) {
|
|
@@ -1045,16 +1046,16 @@ function _i(e, t) {
|
|
|
1045
1046
|
case "height":
|
|
1046
1047
|
case "device-width":
|
|
1047
1048
|
case "device-height":
|
|
1048
|
-
l =
|
|
1049
|
+
l = Ht(l), u = Ht(u);
|
|
1049
1050
|
break;
|
|
1050
1051
|
case "resolution":
|
|
1051
|
-
l =
|
|
1052
|
+
l = qt(l), u = qt(u);
|
|
1052
1053
|
break;
|
|
1053
1054
|
case "aspect-ratio":
|
|
1054
1055
|
case "device-aspect-ratio":
|
|
1055
1056
|
case /* Deprecated */
|
|
1056
1057
|
"device-pixel-ratio":
|
|
1057
|
-
l =
|
|
1058
|
+
l = $t(l), u = $t(u);
|
|
1058
1059
|
break;
|
|
1059
1060
|
case "grid":
|
|
1060
1061
|
case "color":
|
|
@@ -1063,7 +1064,7 @@ function _i(e, t) {
|
|
|
1063
1064
|
l = parseInt(l, 10) || 1, u = parseInt(u, 10) || 0;
|
|
1064
1065
|
break;
|
|
1065
1066
|
}
|
|
1066
|
-
switch (
|
|
1067
|
+
switch (p) {
|
|
1067
1068
|
case "min":
|
|
1068
1069
|
return u >= l;
|
|
1069
1070
|
case "max":
|
|
@@ -1078,23 +1079,23 @@ function _i(e, t) {
|
|
|
1078
1079
|
function Co(e) {
|
|
1079
1080
|
return e.split(",").map(function(t) {
|
|
1080
1081
|
t = t.trim();
|
|
1081
|
-
var o = t.match(
|
|
1082
|
+
var o = t.match(ci), n = o[1], a = o[2], i = o[3] || "", r = {};
|
|
1082
1083
|
return r.inverse = !!n && n.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
1083
|
-
var
|
|
1084
|
+
var p = s.match(di), l = p[1].toLowerCase().match(mi);
|
|
1084
1085
|
return {
|
|
1085
1086
|
modifier: l[1],
|
|
1086
1087
|
feature: l[2],
|
|
1087
|
-
value:
|
|
1088
|
+
value: p[2]
|
|
1088
1089
|
};
|
|
1089
1090
|
}), r;
|
|
1090
1091
|
});
|
|
1091
1092
|
}
|
|
1092
|
-
function
|
|
1093
|
+
function $t(e) {
|
|
1093
1094
|
var t = Number(e), o;
|
|
1094
1095
|
return t || (o = e.match(/^(\d+)\s*\/\s*(\d+)$/), t = o[1] / o[2]), t;
|
|
1095
1096
|
}
|
|
1096
|
-
function
|
|
1097
|
-
var t = parseFloat(e), o = String(e).match(
|
|
1097
|
+
function qt(e) {
|
|
1098
|
+
var t = parseFloat(e), o = String(e).match(_i)[1];
|
|
1098
1099
|
switch (o) {
|
|
1099
1100
|
case "dpcm":
|
|
1100
1101
|
return t / 2.54;
|
|
@@ -1104,8 +1105,8 @@ function $t(e) {
|
|
|
1104
1105
|
return t;
|
|
1105
1106
|
}
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var t = parseFloat(e), o = String(e).match(
|
|
1108
|
+
function Ht(e) {
|
|
1109
|
+
var t = parseFloat(e), o = String(e).match(ui)[1];
|
|
1109
1110
|
switch (o) {
|
|
1110
1111
|
case "em":
|
|
1111
1112
|
return t * 16;
|
|
@@ -1125,10 +1126,10 @@ function qt(e) {
|
|
|
1125
1126
|
return t;
|
|
1126
1127
|
}
|
|
1127
1128
|
}
|
|
1128
|
-
var
|
|
1129
|
-
function
|
|
1129
|
+
var vi = Pt.match, Vt = typeof window < "u" ? window.matchMedia : null;
|
|
1130
|
+
function gi(e, t, o) {
|
|
1130
1131
|
var n = this, a;
|
|
1131
|
-
|
|
1132
|
+
Vt && !o && (a = Vt.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = vi(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = p;
|
|
1132
1133
|
function i(l) {
|
|
1133
1134
|
a && a.addListener(l);
|
|
1134
1135
|
}
|
|
@@ -1138,26 +1139,26 @@ function vi(e, t, o) {
|
|
|
1138
1139
|
function s(l) {
|
|
1139
1140
|
n.matches = l.matches, n.media = l.media;
|
|
1140
1141
|
}
|
|
1141
|
-
function
|
|
1142
|
+
function p() {
|
|
1142
1143
|
a && a.removeListener(s);
|
|
1143
1144
|
}
|
|
1144
1145
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return new
|
|
1146
|
+
function xi(e, t, o) {
|
|
1147
|
+
return new gi(e, t, o);
|
|
1147
1148
|
}
|
|
1148
|
-
var
|
|
1149
|
-
const
|
|
1150
|
-
var
|
|
1151
|
-
function
|
|
1149
|
+
var hi = xi;
|
|
1150
|
+
const bi = /* @__PURE__ */ wo(hi);
|
|
1151
|
+
var yi = /[A-Z]/g, wi = /^ms-/, ft = {};
|
|
1152
|
+
function Ci(e) {
|
|
1152
1153
|
return "-" + e.toLowerCase();
|
|
1153
1154
|
}
|
|
1154
1155
|
function ko(e) {
|
|
1155
1156
|
if (ft.hasOwnProperty(e))
|
|
1156
1157
|
return ft[e];
|
|
1157
|
-
var t = e.replace(
|
|
1158
|
-
return ft[e] =
|
|
1158
|
+
var t = e.replace(yi, Ci);
|
|
1159
|
+
return ft[e] = wi.test(t) ? "-" + t : t;
|
|
1159
1160
|
}
|
|
1160
|
-
function
|
|
1161
|
+
function ki(e, t) {
|
|
1161
1162
|
if (e === t)
|
|
1162
1163
|
return !0;
|
|
1163
1164
|
if (!e || !t)
|
|
@@ -1181,71 +1182,71 @@ var Nt = { exports: {} }, Xe = { exports: {} }, K = {};
|
|
|
1181
1182
|
* This source code is licensed under the MIT license found in the
|
|
1182
1183
|
* LICENSE file in the root directory of this source tree.
|
|
1183
1184
|
*/
|
|
1184
|
-
var
|
|
1185
|
-
function
|
|
1186
|
-
if (
|
|
1187
|
-
|
|
1188
|
-
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,
|
|
1189
|
-
function
|
|
1190
|
-
if (typeof
|
|
1191
|
-
var
|
|
1192
|
-
switch (
|
|
1185
|
+
var Yt;
|
|
1186
|
+
function Ti() {
|
|
1187
|
+
if (Yt) return K;
|
|
1188
|
+
Yt = 1;
|
|
1189
|
+
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, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
1190
|
+
function A(d) {
|
|
1191
|
+
if (typeof d == "object" && d !== null) {
|
|
1192
|
+
var T = d.$$typeof;
|
|
1193
|
+
switch (T) {
|
|
1193
1194
|
case t:
|
|
1194
|
-
switch (
|
|
1195
|
-
case
|
|
1195
|
+
switch (d = d.type, d) {
|
|
1196
|
+
case p:
|
|
1196
1197
|
case l:
|
|
1197
1198
|
case n:
|
|
1198
1199
|
case i:
|
|
1199
1200
|
case a:
|
|
1200
1201
|
case _:
|
|
1201
|
-
return
|
|
1202
|
+
return d;
|
|
1202
1203
|
default:
|
|
1203
|
-
switch (
|
|
1204
|
+
switch (d = d && d.$$typeof, d) {
|
|
1204
1205
|
case s:
|
|
1205
1206
|
case u:
|
|
1206
1207
|
case w:
|
|
1207
|
-
case
|
|
1208
|
+
case h:
|
|
1208
1209
|
case r:
|
|
1209
|
-
return
|
|
1210
|
+
return d;
|
|
1210
1211
|
default:
|
|
1211
|
-
return
|
|
1212
|
+
return T;
|
|
1212
1213
|
}
|
|
1213
1214
|
}
|
|
1214
1215
|
case o:
|
|
1215
|
-
return
|
|
1216
|
+
return T;
|
|
1216
1217
|
}
|
|
1217
1218
|
}
|
|
1218
1219
|
}
|
|
1219
|
-
function b(
|
|
1220
|
-
return
|
|
1220
|
+
function b(d) {
|
|
1221
|
+
return A(d) === l;
|
|
1221
1222
|
}
|
|
1222
|
-
return K.AsyncMode =
|
|
1223
|
-
return b(
|
|
1224
|
-
}, K.isConcurrentMode = b, K.isContextConsumer = function(
|
|
1225
|
-
return
|
|
1226
|
-
}, K.isContextProvider = function(
|
|
1227
|
-
return
|
|
1228
|
-
}, K.isElement = function(
|
|
1229
|
-
return typeof
|
|
1230
|
-
}, K.isForwardRef = function(
|
|
1231
|
-
return
|
|
1232
|
-
}, K.isFragment = function(
|
|
1233
|
-
return
|
|
1234
|
-
}, K.isLazy = function(
|
|
1235
|
-
return
|
|
1236
|
-
}, K.isMemo = function(
|
|
1237
|
-
return
|
|
1238
|
-
}, K.isPortal = function(
|
|
1239
|
-
return
|
|
1240
|
-
}, K.isProfiler = function(
|
|
1241
|
-
return
|
|
1242
|
-
}, K.isStrictMode = function(
|
|
1243
|
-
return
|
|
1244
|
-
}, K.isSuspense = function(
|
|
1245
|
-
return
|
|
1246
|
-
}, K.isValidElementType = function(
|
|
1247
|
-
return typeof
|
|
1248
|
-
}, K.typeOf =
|
|
1223
|
+
return K.AsyncMode = p, K.ConcurrentMode = l, K.ContextConsumer = s, K.ContextProvider = r, K.Element = t, K.ForwardRef = u, K.Fragment = n, K.Lazy = w, K.Memo = h, K.Portal = o, K.Profiler = i, K.StrictMode = a, K.Suspense = _, K.isAsyncMode = function(d) {
|
|
1224
|
+
return b(d) || A(d) === p;
|
|
1225
|
+
}, K.isConcurrentMode = b, K.isContextConsumer = function(d) {
|
|
1226
|
+
return A(d) === s;
|
|
1227
|
+
}, K.isContextProvider = function(d) {
|
|
1228
|
+
return A(d) === r;
|
|
1229
|
+
}, K.isElement = function(d) {
|
|
1230
|
+
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
1231
|
+
}, K.isForwardRef = function(d) {
|
|
1232
|
+
return A(d) === u;
|
|
1233
|
+
}, K.isFragment = function(d) {
|
|
1234
|
+
return A(d) === n;
|
|
1235
|
+
}, K.isLazy = function(d) {
|
|
1236
|
+
return A(d) === w;
|
|
1237
|
+
}, K.isMemo = function(d) {
|
|
1238
|
+
return A(d) === h;
|
|
1239
|
+
}, K.isPortal = function(d) {
|
|
1240
|
+
return A(d) === o;
|
|
1241
|
+
}, K.isProfiler = function(d) {
|
|
1242
|
+
return A(d) === i;
|
|
1243
|
+
}, K.isStrictMode = function(d) {
|
|
1244
|
+
return A(d) === a;
|
|
1245
|
+
}, K.isSuspense = function(d) {
|
|
1246
|
+
return A(d) === _;
|
|
1247
|
+
}, K.isValidElementType = function(d) {
|
|
1248
|
+
return typeof d == "string" || typeof d == "function" || d === n || d === l || d === i || d === a || d === _ || d === g || typeof d == "object" && d !== null && (d.$$typeof === w || d.$$typeof === h || d.$$typeof === r || d.$$typeof === s || d.$$typeof === u || d.$$typeof === N || d.$$typeof === P || d.$$typeof === M || d.$$typeof === C);
|
|
1249
|
+
}, K.typeOf = A, K;
|
|
1249
1250
|
}
|
|
1250
1251
|
var X = {};
|
|
1251
1252
|
/** @license React v16.13.1
|
|
@@ -1256,22 +1257,22 @@ var X = {};
|
|
|
1256
1257
|
* This source code is licensed under the MIT license found in the
|
|
1257
1258
|
* LICENSE file in the root directory of this source tree.
|
|
1258
1259
|
*/
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1261
|
-
return
|
|
1262
|
-
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,
|
|
1263
|
-
function
|
|
1264
|
-
return typeof
|
|
1265
|
-
|
|
1260
|
+
var Gt;
|
|
1261
|
+
function Ni() {
|
|
1262
|
+
return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1263
|
+
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, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
1264
|
+
function A(x) {
|
|
1265
|
+
return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1266
|
+
x === n || x === l || x === i || x === a || x === _ || x === g || typeof x == "object" && x !== null && (x.$$typeof === w || x.$$typeof === h || x.$$typeof === r || x.$$typeof === s || x.$$typeof === u || x.$$typeof === N || x.$$typeof === P || x.$$typeof === M || x.$$typeof === C);
|
|
1266
1267
|
}
|
|
1267
|
-
function b(
|
|
1268
|
-
if (typeof
|
|
1269
|
-
var he =
|
|
1268
|
+
function b(x) {
|
|
1269
|
+
if (typeof x == "object" && x !== null) {
|
|
1270
|
+
var he = x.$$typeof;
|
|
1270
1271
|
switch (he) {
|
|
1271
1272
|
case t:
|
|
1272
|
-
var Se =
|
|
1273
|
+
var Se = x.type;
|
|
1273
1274
|
switch (Se) {
|
|
1274
|
-
case
|
|
1275
|
+
case p:
|
|
1275
1276
|
case l:
|
|
1276
1277
|
case n:
|
|
1277
1278
|
case i:
|
|
@@ -1279,14 +1280,14 @@ function Ti() {
|
|
|
1279
1280
|
case _:
|
|
1280
1281
|
return Se;
|
|
1281
1282
|
default:
|
|
1282
|
-
var
|
|
1283
|
-
switch (
|
|
1283
|
+
var Oe = Se && Se.$$typeof;
|
|
1284
|
+
switch (Oe) {
|
|
1284
1285
|
case s:
|
|
1285
1286
|
case u:
|
|
1286
1287
|
case w:
|
|
1287
|
-
case
|
|
1288
|
+
case h:
|
|
1288
1289
|
case r:
|
|
1289
|
-
return
|
|
1290
|
+
return Oe;
|
|
1290
1291
|
default:
|
|
1291
1292
|
return he;
|
|
1292
1293
|
}
|
|
@@ -1296,62 +1297,62 @@ function Ti() {
|
|
|
1296
1297
|
}
|
|
1297
1298
|
}
|
|
1298
1299
|
}
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1300
|
+
var d = p, T = l, B = s, Y = r, Z = t, re = u, se = n, ue = w, ce = h, G = o, ee = i, J = a, k = _, $ = !1;
|
|
1301
|
+
function W(x) {
|
|
1302
|
+
return $ || ($ = !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.")), m(x) || b(x) === p;
|
|
1302
1303
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return b(
|
|
1304
|
+
function m(x) {
|
|
1305
|
+
return b(x) === l;
|
|
1305
1306
|
}
|
|
1306
|
-
function v(
|
|
1307
|
-
return b(
|
|
1307
|
+
function v(x) {
|
|
1308
|
+
return b(x) === s;
|
|
1308
1309
|
}
|
|
1309
|
-
function E(
|
|
1310
|
-
return b(
|
|
1310
|
+
function E(x) {
|
|
1311
|
+
return b(x) === r;
|
|
1311
1312
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return typeof
|
|
1313
|
+
function j(x) {
|
|
1314
|
+
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
1314
1315
|
}
|
|
1315
|
-
function I(
|
|
1316
|
-
return b(
|
|
1316
|
+
function I(x) {
|
|
1317
|
+
return b(x) === u;
|
|
1317
1318
|
}
|
|
1318
|
-
function D(
|
|
1319
|
-
return b(
|
|
1319
|
+
function D(x) {
|
|
1320
|
+
return b(x) === n;
|
|
1320
1321
|
}
|
|
1321
|
-
function F(
|
|
1322
|
-
return b(
|
|
1322
|
+
function F(x) {
|
|
1323
|
+
return b(x) === w;
|
|
1323
1324
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return b(
|
|
1325
|
+
function O(x) {
|
|
1326
|
+
return b(x) === h;
|
|
1326
1327
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return b(
|
|
1328
|
+
function q(x) {
|
|
1329
|
+
return b(x) === o;
|
|
1329
1330
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return b(
|
|
1331
|
+
function V(x) {
|
|
1332
|
+
return b(x) === i;
|
|
1332
1333
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return b(
|
|
1334
|
+
function U(x) {
|
|
1335
|
+
return b(x) === a;
|
|
1335
1336
|
}
|
|
1336
|
-
function ie(
|
|
1337
|
-
return b(
|
|
1337
|
+
function ie(x) {
|
|
1338
|
+
return b(x) === _;
|
|
1338
1339
|
}
|
|
1339
|
-
X.AsyncMode =
|
|
1340
|
+
X.AsyncMode = d, X.ConcurrentMode = T, X.ContextConsumer = B, X.ContextProvider = Y, X.Element = Z, X.ForwardRef = re, X.Fragment = se, X.Lazy = ue, X.Memo = ce, X.Portal = G, X.Profiler = ee, X.StrictMode = J, X.Suspense = k, X.isAsyncMode = W, X.isConcurrentMode = m, X.isContextConsumer = v, X.isContextProvider = E, X.isElement = j, X.isForwardRef = I, X.isFragment = D, X.isLazy = F, X.isMemo = O, X.isPortal = q, X.isProfiler = V, X.isStrictMode = U, X.isSuspense = ie, X.isValidElementType = A, X.typeOf = b;
|
|
1340
1341
|
}()), X;
|
|
1341
1342
|
}
|
|
1342
|
-
var
|
|
1343
|
+
var Kt;
|
|
1343
1344
|
function To() {
|
|
1344
|
-
return
|
|
1345
|
+
return Kt || (Kt = 1, process.env.NODE_ENV === "production" ? Xe.exports = Ti() : Xe.exports = Ni()), Xe.exports;
|
|
1345
1346
|
}
|
|
1346
1347
|
/*
|
|
1347
1348
|
object-assign
|
|
1348
1349
|
(c) Sindre Sorhus
|
|
1349
1350
|
@license MIT
|
|
1350
1351
|
*/
|
|
1351
|
-
var vt,
|
|
1352
|
-
function
|
|
1353
|
-
if (
|
|
1354
|
-
|
|
1352
|
+
var vt, Xt;
|
|
1353
|
+
function Ei() {
|
|
1354
|
+
if (Xt) return vt;
|
|
1355
|
+
Xt = 1;
|
|
1355
1356
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
1356
1357
|
function n(i) {
|
|
1357
1358
|
if (i == null)
|
|
@@ -1367,10 +1368,10 @@ function Ni() {
|
|
|
1367
1368
|
return !1;
|
|
1368
1369
|
for (var r = {}, s = 0; s < 10; s++)
|
|
1369
1370
|
r["_" + String.fromCharCode(s)] = s;
|
|
1370
|
-
var
|
|
1371
|
+
var p = Object.getOwnPropertyNames(r).map(function(u) {
|
|
1371
1372
|
return r[u];
|
|
1372
1373
|
});
|
|
1373
|
-
if (
|
|
1374
|
+
if (p.join("") !== "0123456789")
|
|
1374
1375
|
return !1;
|
|
1375
1376
|
var l = {};
|
|
1376
1377
|
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
@@ -1381,38 +1382,38 @@ function Ni() {
|
|
|
1381
1382
|
}
|
|
1382
1383
|
}
|
|
1383
1384
|
return vt = a() ? Object.assign : function(i, r) {
|
|
1384
|
-
for (var s,
|
|
1385
|
+
for (var s, p = n(i), l, u = 1; u < arguments.length; u++) {
|
|
1385
1386
|
s = Object(arguments[u]);
|
|
1386
1387
|
for (var _ in s)
|
|
1387
|
-
t.call(s, _) && (
|
|
1388
|
+
t.call(s, _) && (p[_] = s[_]);
|
|
1388
1389
|
if (e) {
|
|
1389
1390
|
l = e(s);
|
|
1390
1391
|
for (var g = 0; g < l.length; g++)
|
|
1391
|
-
o.call(s, l[g]) && (
|
|
1392
|
+
o.call(s, l[g]) && (p[l[g]] = s[l[g]]);
|
|
1392
1393
|
}
|
|
1393
1394
|
}
|
|
1394
|
-
return
|
|
1395
|
+
return p;
|
|
1395
1396
|
}, vt;
|
|
1396
1397
|
}
|
|
1397
|
-
var gt,
|
|
1398
|
-
function
|
|
1399
|
-
if (
|
|
1400
|
-
|
|
1398
|
+
var gt, Zt;
|
|
1399
|
+
function Bt() {
|
|
1400
|
+
if (Zt) return gt;
|
|
1401
|
+
Zt = 1;
|
|
1401
1402
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1402
1403
|
return gt = e, gt;
|
|
1403
1404
|
}
|
|
1404
|
-
var xt,
|
|
1405
|
+
var xt, Qt;
|
|
1405
1406
|
function No() {
|
|
1406
|
-
return
|
|
1407
|
+
return Qt || (Qt = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
|
|
1407
1408
|
}
|
|
1408
|
-
var ht,
|
|
1409
|
-
function
|
|
1410
|
-
if (
|
|
1411
|
-
|
|
1409
|
+
var ht, Jt;
|
|
1410
|
+
function Ii() {
|
|
1411
|
+
if (Jt) return ht;
|
|
1412
|
+
Jt = 1;
|
|
1412
1413
|
var e = function() {
|
|
1413
1414
|
};
|
|
1414
1415
|
if (process.env.NODE_ENV !== "production") {
|
|
1415
|
-
var t =
|
|
1416
|
+
var t = Bt(), o = {}, n = No();
|
|
1416
1417
|
e = function(i) {
|
|
1417
1418
|
var r = "Warning: " + i;
|
|
1418
1419
|
typeof console < "u" && console.error(r);
|
|
@@ -1422,7 +1423,7 @@ function Ei() {
|
|
|
1422
1423
|
}
|
|
1423
1424
|
};
|
|
1424
1425
|
}
|
|
1425
|
-
function a(i, r, s,
|
|
1426
|
+
function a(i, r, s, p, l) {
|
|
1426
1427
|
if (process.env.NODE_ENV !== "production") {
|
|
1427
1428
|
for (var u in i)
|
|
1428
1429
|
if (n(i, u)) {
|
|
@@ -1430,21 +1431,21 @@ function Ei() {
|
|
|
1430
1431
|
try {
|
|
1431
1432
|
if (typeof i[u] != "function") {
|
|
1432
1433
|
var g = Error(
|
|
1433
|
-
(
|
|
1434
|
+
(p || "React class") + ": " + s + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1434
1435
|
);
|
|
1435
1436
|
throw g.name = "Invariant Violation", g;
|
|
1436
1437
|
}
|
|
1437
|
-
_ = i[u](r, u,
|
|
1438
|
+
_ = i[u](r, u, p, s, null, t);
|
|
1438
1439
|
} catch (w) {
|
|
1439
1440
|
_ = w;
|
|
1440
1441
|
}
|
|
1441
1442
|
if (_ && !(_ instanceof Error) && e(
|
|
1442
|
-
(
|
|
1443
|
+
(p || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1443
1444
|
), _ instanceof Error && !(_.message in o)) {
|
|
1444
1445
|
o[_.message] = !0;
|
|
1445
|
-
var
|
|
1446
|
+
var h = l ? l() : "";
|
|
1446
1447
|
e(
|
|
1447
|
-
"Failed " + s + " type: " + _.message + (
|
|
1448
|
+
"Failed " + s + " type: " + _.message + (h ?? "")
|
|
1448
1449
|
);
|
|
1449
1450
|
}
|
|
1450
1451
|
}
|
|
@@ -1454,278 +1455,278 @@ function Ei() {
|
|
|
1454
1455
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
1455
1456
|
}, ht = a, ht;
|
|
1456
1457
|
}
|
|
1457
|
-
var bt,
|
|
1458
|
-
function
|
|
1459
|
-
if (
|
|
1460
|
-
|
|
1461
|
-
var e = To(), t =
|
|
1458
|
+
var bt, eo;
|
|
1459
|
+
function Si() {
|
|
1460
|
+
if (eo) return bt;
|
|
1461
|
+
eo = 1;
|
|
1462
|
+
var e = To(), t = Ei(), o = Bt(), n = No(), a = Ii(), i = function() {
|
|
1462
1463
|
};
|
|
1463
1464
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1464
|
-
var
|
|
1465
|
-
typeof console < "u" && console.error(
|
|
1465
|
+
var p = "Warning: " + s;
|
|
1466
|
+
typeof console < "u" && console.error(p);
|
|
1466
1467
|
try {
|
|
1467
|
-
throw new Error(
|
|
1468
|
+
throw new Error(p);
|
|
1468
1469
|
} catch {
|
|
1469
1470
|
}
|
|
1470
1471
|
});
|
|
1471
1472
|
function r() {
|
|
1472
1473
|
return null;
|
|
1473
1474
|
}
|
|
1474
|
-
return bt = function(s,
|
|
1475
|
+
return bt = function(s, p) {
|
|
1475
1476
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1476
|
-
function _(
|
|
1477
|
-
var v =
|
|
1477
|
+
function _(m) {
|
|
1478
|
+
var v = m && (l && m[l] || m[u]);
|
|
1478
1479
|
if (typeof v == "function")
|
|
1479
1480
|
return v;
|
|
1480
1481
|
}
|
|
1481
|
-
var g = "<<anonymous>>",
|
|
1482
|
-
array:
|
|
1483
|
-
bigint:
|
|
1484
|
-
bool:
|
|
1485
|
-
func:
|
|
1486
|
-
number:
|
|
1487
|
-
object:
|
|
1488
|
-
string:
|
|
1489
|
-
symbol:
|
|
1490
|
-
any:
|
|
1491
|
-
arrayOf:
|
|
1482
|
+
var g = "<<anonymous>>", h = {
|
|
1483
|
+
array: P("array"),
|
|
1484
|
+
bigint: P("bigint"),
|
|
1485
|
+
bool: P("boolean"),
|
|
1486
|
+
func: P("function"),
|
|
1487
|
+
number: P("number"),
|
|
1488
|
+
object: P("object"),
|
|
1489
|
+
string: P("string"),
|
|
1490
|
+
symbol: P("symbol"),
|
|
1491
|
+
any: M(),
|
|
1492
|
+
arrayOf: A,
|
|
1492
1493
|
element: b(),
|
|
1493
|
-
elementType:
|
|
1494
|
-
instanceOf:
|
|
1494
|
+
elementType: d(),
|
|
1495
|
+
instanceOf: T,
|
|
1495
1496
|
node: re(),
|
|
1496
|
-
objectOf:
|
|
1497
|
-
oneOf:
|
|
1497
|
+
objectOf: Y,
|
|
1498
|
+
oneOf: B,
|
|
1498
1499
|
oneOfType: Z,
|
|
1499
1500
|
shape: ue,
|
|
1500
1501
|
exact: ce
|
|
1501
1502
|
};
|
|
1502
|
-
function w(
|
|
1503
|
-
return
|
|
1503
|
+
function w(m, v) {
|
|
1504
|
+
return m === v ? m !== 0 || 1 / m === 1 / v : m !== m && v !== v;
|
|
1504
1505
|
}
|
|
1505
|
-
function C(
|
|
1506
|
-
this.message =
|
|
1506
|
+
function C(m, v) {
|
|
1507
|
+
this.message = m, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
1507
1508
|
}
|
|
1508
1509
|
C.prototype = Error.prototype;
|
|
1509
|
-
function
|
|
1510
|
+
function N(m) {
|
|
1510
1511
|
if (process.env.NODE_ENV !== "production")
|
|
1511
1512
|
var v = {}, E = 0;
|
|
1512
|
-
function
|
|
1513
|
-
if (
|
|
1514
|
-
if (
|
|
1515
|
-
var
|
|
1513
|
+
function j(D, F, O, q, V, U, ie) {
|
|
1514
|
+
if (q = q || g, U = U || O, ie !== o) {
|
|
1515
|
+
if (p) {
|
|
1516
|
+
var x = new Error(
|
|
1516
1517
|
"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"
|
|
1517
1518
|
);
|
|
1518
|
-
throw
|
|
1519
|
+
throw x.name = "Invariant Violation", x;
|
|
1519
1520
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1520
|
-
var he =
|
|
1521
|
+
var he = q + ":" + O;
|
|
1521
1522
|
!v[he] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1522
1523
|
E < 3 && (i(
|
|
1523
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1524
|
+
"You are manually calling a React.PropTypes validation function for the `" + U + "` 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."
|
|
1524
1525
|
), v[he] = !0, E++);
|
|
1525
1526
|
}
|
|
1526
1527
|
}
|
|
1527
|
-
return F[
|
|
1528
|
+
return F[O] == null ? D ? F[O] === null ? new C("The " + V + " `" + U + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new C("The " + V + " `" + U + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : m(F, O, q, V, U);
|
|
1528
1529
|
}
|
|
1529
|
-
var I =
|
|
1530
|
-
return I.isRequired =
|
|
1530
|
+
var I = j.bind(null, !1);
|
|
1531
|
+
return I.isRequired = j.bind(null, !0), I;
|
|
1531
1532
|
}
|
|
1532
|
-
function
|
|
1533
|
-
function v(E,
|
|
1534
|
-
var
|
|
1535
|
-
if (
|
|
1536
|
-
var
|
|
1533
|
+
function P(m) {
|
|
1534
|
+
function v(E, j, I, D, F, O) {
|
|
1535
|
+
var q = E[j], V = J(q);
|
|
1536
|
+
if (V !== m) {
|
|
1537
|
+
var U = k(q);
|
|
1537
1538
|
return new C(
|
|
1538
|
-
"Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1539
|
-
{ expectedType:
|
|
1539
|
+
"Invalid " + D + " `" + F + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + m + "`."),
|
|
1540
|
+
{ expectedType: m }
|
|
1540
1541
|
);
|
|
1541
1542
|
}
|
|
1542
1543
|
return null;
|
|
1543
1544
|
}
|
|
1544
|
-
return
|
|
1545
|
+
return N(v);
|
|
1545
1546
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return
|
|
1547
|
+
function M() {
|
|
1548
|
+
return N(r);
|
|
1548
1549
|
}
|
|
1549
|
-
function
|
|
1550
|
-
function v(E,
|
|
1551
|
-
if (typeof
|
|
1550
|
+
function A(m) {
|
|
1551
|
+
function v(E, j, I, D, F) {
|
|
1552
|
+
if (typeof m != "function")
|
|
1552
1553
|
return new C("Property `" + F + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1553
|
-
var
|
|
1554
|
-
if (!Array.isArray(
|
|
1555
|
-
var
|
|
1556
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1554
|
+
var O = E[j];
|
|
1555
|
+
if (!Array.isArray(O)) {
|
|
1556
|
+
var q = J(O);
|
|
1557
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an array."));
|
|
1557
1558
|
}
|
|
1558
|
-
for (var
|
|
1559
|
-
var
|
|
1560
|
-
if (
|
|
1561
|
-
return
|
|
1559
|
+
for (var V = 0; V < O.length; V++) {
|
|
1560
|
+
var U = m(O, V, I, D, F + "[" + V + "]", o);
|
|
1561
|
+
if (U instanceof Error)
|
|
1562
|
+
return U;
|
|
1562
1563
|
}
|
|
1563
1564
|
return null;
|
|
1564
1565
|
}
|
|
1565
|
-
return
|
|
1566
|
+
return N(v);
|
|
1566
1567
|
}
|
|
1567
1568
|
function b() {
|
|
1568
|
-
function
|
|
1569
|
+
function m(v, E, j, I, D) {
|
|
1569
1570
|
var F = v[E];
|
|
1570
1571
|
if (!s(F)) {
|
|
1571
|
-
var
|
|
1572
|
-
return new C("Invalid " + I + " `" + D + "` of type " + ("`" +
|
|
1572
|
+
var O = J(F);
|
|
1573
|
+
return new C("Invalid " + I + " `" + D + "` of type " + ("`" + O + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
1573
1574
|
}
|
|
1574
1575
|
return null;
|
|
1575
1576
|
}
|
|
1576
|
-
return
|
|
1577
|
+
return N(m);
|
|
1577
1578
|
}
|
|
1578
|
-
function
|
|
1579
|
-
function
|
|
1579
|
+
function d() {
|
|
1580
|
+
function m(v, E, j, I, D) {
|
|
1580
1581
|
var F = v[E];
|
|
1581
1582
|
if (!e.isValidElementType(F)) {
|
|
1582
|
-
var
|
|
1583
|
-
return new C("Invalid " + I + " `" + D + "` of type " + ("`" +
|
|
1583
|
+
var O = J(F);
|
|
1584
|
+
return new C("Invalid " + I + " `" + D + "` of type " + ("`" + O + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
1584
1585
|
}
|
|
1585
1586
|
return null;
|
|
1586
1587
|
}
|
|
1587
|
-
return
|
|
1588
|
+
return N(m);
|
|
1588
1589
|
}
|
|
1589
|
-
function
|
|
1590
|
-
function v(E,
|
|
1591
|
-
if (!(E[
|
|
1592
|
-
var
|
|
1593
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1590
|
+
function T(m) {
|
|
1591
|
+
function v(E, j, I, D, F) {
|
|
1592
|
+
if (!(E[j] instanceof m)) {
|
|
1593
|
+
var O = m.name || g, q = W(E[j]);
|
|
1594
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + O + "`."));
|
|
1594
1595
|
}
|
|
1595
1596
|
return null;
|
|
1596
1597
|
}
|
|
1597
|
-
return
|
|
1598
|
+
return N(v);
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
-
if (!Array.isArray(
|
|
1600
|
+
function B(m) {
|
|
1601
|
+
if (!Array.isArray(m))
|
|
1601
1602
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1602
1603
|
"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])."
|
|
1603
1604
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1604
|
-
function v(E,
|
|
1605
|
-
for (var
|
|
1606
|
-
if (w(
|
|
1605
|
+
function v(E, j, I, D, F) {
|
|
1606
|
+
for (var O = E[j], q = 0; q < m.length; q++)
|
|
1607
|
+
if (w(O, m[q]))
|
|
1607
1608
|
return null;
|
|
1608
|
-
var
|
|
1609
|
-
var he = k(
|
|
1610
|
-
return he === "symbol" ? String(
|
|
1609
|
+
var V = JSON.stringify(m, function(ie, x) {
|
|
1610
|
+
var he = k(x);
|
|
1611
|
+
return he === "symbol" ? String(x) : x;
|
|
1611
1612
|
});
|
|
1612
|
-
return new C("Invalid " + D + " `" + F + "` of value `" + String(
|
|
1613
|
+
return new C("Invalid " + D + " `" + F + "` of value `" + String(O) + "` " + ("supplied to `" + I + "`, expected one of " + V + "."));
|
|
1613
1614
|
}
|
|
1614
|
-
return
|
|
1615
|
+
return N(v);
|
|
1615
1616
|
}
|
|
1616
|
-
function
|
|
1617
|
-
function v(E,
|
|
1618
|
-
if (typeof
|
|
1617
|
+
function Y(m) {
|
|
1618
|
+
function v(E, j, I, D, F) {
|
|
1619
|
+
if (typeof m != "function")
|
|
1619
1620
|
return new C("Property `" + F + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1620
|
-
var
|
|
1621
|
-
if (
|
|
1622
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1623
|
-
for (var
|
|
1624
|
-
if (n(
|
|
1625
|
-
var
|
|
1626
|
-
if (
|
|
1627
|
-
return
|
|
1621
|
+
var O = E[j], q = J(O);
|
|
1622
|
+
if (q !== "object")
|
|
1623
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an object."));
|
|
1624
|
+
for (var V in O)
|
|
1625
|
+
if (n(O, V)) {
|
|
1626
|
+
var U = m(O, V, I, D, F + "." + V, o);
|
|
1627
|
+
if (U instanceof Error)
|
|
1628
|
+
return U;
|
|
1628
1629
|
}
|
|
1629
1630
|
return null;
|
|
1630
1631
|
}
|
|
1631
|
-
return
|
|
1632
|
+
return N(v);
|
|
1632
1633
|
}
|
|
1633
|
-
function Z(
|
|
1634
|
-
if (!Array.isArray(
|
|
1634
|
+
function Z(m) {
|
|
1635
|
+
if (!Array.isArray(m))
|
|
1635
1636
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1636
|
-
for (var v = 0; v <
|
|
1637
|
-
var E =
|
|
1637
|
+
for (var v = 0; v < m.length; v++) {
|
|
1638
|
+
var E = m[v];
|
|
1638
1639
|
if (typeof E != "function")
|
|
1639
1640
|
return i(
|
|
1640
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1641
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(E) + " at index " + v + "."
|
|
1641
1642
|
), r;
|
|
1642
1643
|
}
|
|
1643
|
-
function
|
|
1644
|
-
for (var
|
|
1645
|
-
var ie =
|
|
1646
|
-
if (
|
|
1644
|
+
function j(I, D, F, O, q) {
|
|
1645
|
+
for (var V = [], U = 0; U < m.length; U++) {
|
|
1646
|
+
var ie = m[U], x = ie(I, D, F, O, q, o);
|
|
1647
|
+
if (x == null)
|
|
1647
1648
|
return null;
|
|
1648
|
-
|
|
1649
|
+
x.data && n(x.data, "expectedType") && V.push(x.data.expectedType);
|
|
1649
1650
|
}
|
|
1650
|
-
var he =
|
|
1651
|
-
return new C("Invalid " +
|
|
1651
|
+
var he = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
1652
|
+
return new C("Invalid " + O + " `" + q + "` supplied to " + ("`" + F + "`" + he + "."));
|
|
1652
1653
|
}
|
|
1653
|
-
return
|
|
1654
|
+
return N(j);
|
|
1654
1655
|
}
|
|
1655
1656
|
function re() {
|
|
1656
|
-
function
|
|
1657
|
-
return G(v[E]) ? null : new C("Invalid " + I + " `" + D + "` supplied to " + ("`" +
|
|
1657
|
+
function m(v, E, j, I, D) {
|
|
1658
|
+
return G(v[E]) ? null : new C("Invalid " + I + " `" + D + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
1658
1659
|
}
|
|
1659
|
-
return
|
|
1660
|
+
return N(m);
|
|
1660
1661
|
}
|
|
1661
|
-
function se(
|
|
1662
|
+
function se(m, v, E, j, I) {
|
|
1662
1663
|
return new C(
|
|
1663
|
-
(
|
|
1664
|
+
(m || "React class") + ": " + v + " type `" + E + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1664
1665
|
);
|
|
1665
1666
|
}
|
|
1666
|
-
function ue(
|
|
1667
|
-
function v(E,
|
|
1668
|
-
var
|
|
1669
|
-
if (
|
|
1670
|
-
return new C("Invalid " + D + " `" + F + "` of type `" +
|
|
1671
|
-
for (var
|
|
1672
|
-
var
|
|
1673
|
-
if (typeof
|
|
1674
|
-
return se(I, D, F,
|
|
1675
|
-
var ie =
|
|
1667
|
+
function ue(m) {
|
|
1668
|
+
function v(E, j, I, D, F) {
|
|
1669
|
+
var O = E[j], q = J(O);
|
|
1670
|
+
if (q !== "object")
|
|
1671
|
+
return new C("Invalid " + D + " `" + F + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1672
|
+
for (var V in m) {
|
|
1673
|
+
var U = m[V];
|
|
1674
|
+
if (typeof U != "function")
|
|
1675
|
+
return se(I, D, F, V, k(U));
|
|
1676
|
+
var ie = U(O, V, I, D, F + "." + V, o);
|
|
1676
1677
|
if (ie)
|
|
1677
1678
|
return ie;
|
|
1678
1679
|
}
|
|
1679
1680
|
return null;
|
|
1680
1681
|
}
|
|
1681
|
-
return
|
|
1682
|
+
return N(v);
|
|
1682
1683
|
}
|
|
1683
|
-
function ce(
|
|
1684
|
-
function v(E,
|
|
1685
|
-
var
|
|
1686
|
-
if (
|
|
1687
|
-
return new C("Invalid " + D + " `" + F + "` of type `" +
|
|
1688
|
-
var
|
|
1689
|
-
for (var
|
|
1690
|
-
var ie =
|
|
1691
|
-
if (n(
|
|
1692
|
-
return se(I, D, F,
|
|
1684
|
+
function ce(m) {
|
|
1685
|
+
function v(E, j, I, D, F) {
|
|
1686
|
+
var O = E[j], q = J(O);
|
|
1687
|
+
if (q !== "object")
|
|
1688
|
+
return new C("Invalid " + D + " `" + F + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1689
|
+
var V = t({}, E[j], m);
|
|
1690
|
+
for (var U in V) {
|
|
1691
|
+
var ie = m[U];
|
|
1692
|
+
if (n(m, U) && typeof ie != "function")
|
|
1693
|
+
return se(I, D, F, U, k(ie));
|
|
1693
1694
|
if (!ie)
|
|
1694
1695
|
return new C(
|
|
1695
|
-
"Invalid " + D + " `" + F + "` key `" +
|
|
1696
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1696
|
+
"Invalid " + D + " `" + F + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(E[j], null, " ") + `
|
|
1697
|
+
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
1697
1698
|
);
|
|
1698
|
-
var
|
|
1699
|
-
if (
|
|
1700
|
-
return
|
|
1699
|
+
var x = ie(O, U, I, D, F + "." + U, o);
|
|
1700
|
+
if (x)
|
|
1701
|
+
return x;
|
|
1701
1702
|
}
|
|
1702
1703
|
return null;
|
|
1703
1704
|
}
|
|
1704
|
-
return
|
|
1705
|
+
return N(v);
|
|
1705
1706
|
}
|
|
1706
|
-
function G(
|
|
1707
|
-
switch (typeof
|
|
1707
|
+
function G(m) {
|
|
1708
|
+
switch (typeof m) {
|
|
1708
1709
|
case "number":
|
|
1709
1710
|
case "string":
|
|
1710
1711
|
case "undefined":
|
|
1711
1712
|
return !0;
|
|
1712
1713
|
case "boolean":
|
|
1713
|
-
return !
|
|
1714
|
+
return !m;
|
|
1714
1715
|
case "object":
|
|
1715
|
-
if (Array.isArray(
|
|
1716
|
-
return
|
|
1717
|
-
if (
|
|
1716
|
+
if (Array.isArray(m))
|
|
1717
|
+
return m.every(G);
|
|
1718
|
+
if (m === null || s(m))
|
|
1718
1719
|
return !0;
|
|
1719
|
-
var v = _(
|
|
1720
|
+
var v = _(m);
|
|
1720
1721
|
if (v) {
|
|
1721
|
-
var E = v.call(
|
|
1722
|
-
if (v !==
|
|
1723
|
-
for (; !(
|
|
1724
|
-
if (!G(
|
|
1722
|
+
var E = v.call(m), j;
|
|
1723
|
+
if (v !== m.entries) {
|
|
1724
|
+
for (; !(j = E.next()).done; )
|
|
1725
|
+
if (!G(j.value))
|
|
1725
1726
|
return !1;
|
|
1726
1727
|
} else
|
|
1727
|
-
for (; !(
|
|
1728
|
-
var I =
|
|
1728
|
+
for (; !(j = E.next()).done; ) {
|
|
1729
|
+
var I = j.value;
|
|
1729
1730
|
if (I && !G(I[1]))
|
|
1730
1731
|
return !1;
|
|
1731
1732
|
}
|
|
@@ -1736,27 +1737,27 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1736
1737
|
return !1;
|
|
1737
1738
|
}
|
|
1738
1739
|
}
|
|
1739
|
-
function ee(
|
|
1740
|
-
return
|
|
1740
|
+
function ee(m, v) {
|
|
1741
|
+
return m === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1741
1742
|
}
|
|
1742
|
-
function
|
|
1743
|
-
var v = typeof
|
|
1744
|
-
return Array.isArray(
|
|
1743
|
+
function J(m) {
|
|
1744
|
+
var v = typeof m;
|
|
1745
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : ee(v, m) ? "symbol" : v;
|
|
1745
1746
|
}
|
|
1746
|
-
function k(
|
|
1747
|
-
if (typeof
|
|
1748
|
-
return "" +
|
|
1749
|
-
var v =
|
|
1747
|
+
function k(m) {
|
|
1748
|
+
if (typeof m > "u" || m === null)
|
|
1749
|
+
return "" + m;
|
|
1750
|
+
var v = J(m);
|
|
1750
1751
|
if (v === "object") {
|
|
1751
|
-
if (
|
|
1752
|
+
if (m instanceof Date)
|
|
1752
1753
|
return "date";
|
|
1753
|
-
if (
|
|
1754
|
+
if (m instanceof RegExp)
|
|
1754
1755
|
return "regexp";
|
|
1755
1756
|
}
|
|
1756
1757
|
return v;
|
|
1757
1758
|
}
|
|
1758
|
-
function
|
|
1759
|
-
var v = k(
|
|
1759
|
+
function $(m) {
|
|
1760
|
+
var v = k(m);
|
|
1760
1761
|
switch (v) {
|
|
1761
1762
|
case "array":
|
|
1762
1763
|
case "object":
|
|
@@ -1769,23 +1770,23 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1769
1770
|
return v;
|
|
1770
1771
|
}
|
|
1771
1772
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return !
|
|
1773
|
+
function W(m) {
|
|
1774
|
+
return !m.constructor || !m.constructor.name ? g : m.constructor.name;
|
|
1774
1775
|
}
|
|
1775
|
-
return
|
|
1776
|
+
return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
|
|
1776
1777
|
}, bt;
|
|
1777
1778
|
}
|
|
1778
|
-
var yt,
|
|
1779
|
-
function
|
|
1780
|
-
if (
|
|
1781
|
-
|
|
1782
|
-
var e =
|
|
1779
|
+
var yt, to;
|
|
1780
|
+
function Ri() {
|
|
1781
|
+
if (to) return yt;
|
|
1782
|
+
to = 1;
|
|
1783
|
+
var e = Bt();
|
|
1783
1784
|
function t() {
|
|
1784
1785
|
}
|
|
1785
1786
|
function o() {
|
|
1786
1787
|
}
|
|
1787
1788
|
return o.resetWarningCache = t, yt = function() {
|
|
1788
|
-
function n(r, s,
|
|
1789
|
+
function n(r, s, p, l, u, _) {
|
|
1789
1790
|
if (_ !== e) {
|
|
1790
1791
|
var g = new Error(
|
|
1791
1792
|
"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"
|
|
@@ -1824,10 +1825,10 @@ function Si() {
|
|
|
1824
1825
|
}, yt;
|
|
1825
1826
|
}
|
|
1826
1827
|
if (process.env.NODE_ENV !== "production") {
|
|
1827
|
-
var
|
|
1828
|
-
Nt.exports =
|
|
1828
|
+
var Fi = To(), Ai = !0;
|
|
1829
|
+
Nt.exports = Si()(Fi.isElement, Ai);
|
|
1829
1830
|
} else
|
|
1830
|
-
Nt.exports =
|
|
1831
|
+
Nt.exports = Ri()();
|
|
1831
1832
|
var ji = Nt.exports;
|
|
1832
1833
|
const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
|
|
1833
1834
|
all: S.bool,
|
|
@@ -1841,7 +1842,7 @@ const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
|
|
|
1841
1842
|
tty: S.bool,
|
|
1842
1843
|
tv: S.bool,
|
|
1843
1844
|
embossed: S.bool
|
|
1844
|
-
},
|
|
1845
|
+
}, Li = {
|
|
1845
1846
|
orientation: S.oneOf(["portrait", "landscape"]),
|
|
1846
1847
|
scan: S.oneOf(["progressive", "interlace"]),
|
|
1847
1848
|
aspectRatio: S.string,
|
|
@@ -1855,7 +1856,7 @@ const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
|
|
|
1855
1856
|
monochrome: S.bool,
|
|
1856
1857
|
resolution: fe,
|
|
1857
1858
|
type: Object.keys(Eo)
|
|
1858
|
-
}, { type: Dp, ...
|
|
1859
|
+
}, { type: Dp, ...Di } = Li, Pi = {
|
|
1859
1860
|
minAspectRatio: S.string,
|
|
1860
1861
|
maxAspectRatio: S.string,
|
|
1861
1862
|
minDeviceAspectRatio: S.string,
|
|
@@ -1876,40 +1877,40 @@ const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
|
|
|
1876
1877
|
maxMonochrome: S.number,
|
|
1877
1878
|
minResolution: fe,
|
|
1878
1879
|
maxResolution: fe,
|
|
1879
|
-
...
|
|
1880
|
-
},
|
|
1880
|
+
...Di
|
|
1881
|
+
}, Bi = { ...Eo, ...Pi };
|
|
1881
1882
|
var Oi = {
|
|
1882
|
-
all:
|
|
1883
|
+
all: Bi
|
|
1883
1884
|
};
|
|
1884
|
-
const
|
|
1885
|
+
const Wi = (e) => `not ${e}`, zi = (e, t) => {
|
|
1885
1886
|
const o = ko(e);
|
|
1886
|
-
return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ?
|
|
1887
|
-
},
|
|
1887
|
+
return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ? Wi(o) : `(${o}: ${t})`;
|
|
1888
|
+
}, Mi = (e) => e.join(" and "), Ui = (e) => {
|
|
1888
1889
|
const t = [];
|
|
1889
1890
|
return Object.keys(Oi.all).forEach((o) => {
|
|
1890
1891
|
const n = e[o];
|
|
1891
|
-
n != null && t.push(
|
|
1892
|
-
}),
|
|
1893
|
-
},
|
|
1892
|
+
n != null && t.push(zi(o, n));
|
|
1893
|
+
}), Mi(t);
|
|
1894
|
+
}, $i = vo(void 0), qi = (e) => e.query || Ui(e), oo = (e) => e ? Object.keys(e).reduce((o, n) => (o[ko(n)] = e[n], o), {}) : void 0, Io = () => {
|
|
1894
1895
|
const e = me(!1);
|
|
1895
|
-
return
|
|
1896
|
+
return oe(() => {
|
|
1896
1897
|
e.current = !0;
|
|
1897
1898
|
}, []), e.current;
|
|
1898
|
-
},
|
|
1899
|
-
const t = Yo(
|
|
1900
|
-
return
|
|
1899
|
+
}, Hi = (e) => {
|
|
1900
|
+
const t = Yo($i), o = () => oo(e) || oo(t), [n, a] = Q(o);
|
|
1901
|
+
return oe(() => {
|
|
1901
1902
|
const i = o();
|
|
1902
|
-
|
|
1903
|
+
ki(n, i) || a(i);
|
|
1903
1904
|
}, [e, t]), n;
|
|
1904
|
-
},
|
|
1905
|
-
const t = () =>
|
|
1906
|
-
return
|
|
1905
|
+
}, Vi = (e) => {
|
|
1906
|
+
const t = () => qi(e), [o, n] = Q(t);
|
|
1907
|
+
return oe(() => {
|
|
1907
1908
|
const a = t();
|
|
1908
1909
|
o !== a && n(a);
|
|
1909
1910
|
}, [e]), o;
|
|
1910
|
-
},
|
|
1911
|
-
const o = () =>
|
|
1912
|
-
return
|
|
1911
|
+
}, Yi = (e, t) => {
|
|
1912
|
+
const o = () => bi(e, t || {}, !!t), [n, a] = Q(o), i = Io();
|
|
1913
|
+
return oe(() => {
|
|
1913
1914
|
if (i) {
|
|
1914
1915
|
const r = o();
|
|
1915
1916
|
return a(r), () => {
|
|
@@ -1917,9 +1918,9 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1917
1918
|
};
|
|
1918
1919
|
}
|
|
1919
1920
|
}, [e, t]), n;
|
|
1920
|
-
},
|
|
1921
|
-
const [t, o] =
|
|
1922
|
-
return
|
|
1921
|
+
}, Gi = (e) => {
|
|
1922
|
+
const [t, o] = Q(e.matches);
|
|
1923
|
+
return oe(() => {
|
|
1923
1924
|
const n = (a) => {
|
|
1924
1925
|
o(a.matches);
|
|
1925
1926
|
};
|
|
@@ -1928,15 +1929,15 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1928
1929
|
};
|
|
1929
1930
|
}, [e]), t;
|
|
1930
1931
|
}, wt = (e, t, o) => {
|
|
1931
|
-
const n =
|
|
1932
|
+
const n = Hi(t), a = Vi(e);
|
|
1932
1933
|
if (!a)
|
|
1933
1934
|
throw new Error("Invalid or missing MediaQuery!");
|
|
1934
|
-
const i =
|
|
1935
|
-
return Io(),
|
|
1936
|
-
}, [r]),
|
|
1935
|
+
const i = Yi(a, n), r = Gi(i);
|
|
1936
|
+
return Io(), oe(() => {
|
|
1937
|
+
}, [r]), oe(() => () => {
|
|
1937
1938
|
i && i.dispose();
|
|
1938
1939
|
}, []), r;
|
|
1939
|
-
},
|
|
1940
|
+
}, Ki = (e) => {
|
|
1940
1941
|
const { desktop: t, tablet: o, mobile: n } = e, a = wt(t), i = wt(o), r = wt(n);
|
|
1941
1942
|
return {
|
|
1942
1943
|
device: {
|
|
@@ -1946,9 +1947,9 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1946
1947
|
}
|
|
1947
1948
|
};
|
|
1948
1949
|
}, Pp = (e) => {
|
|
1949
|
-
const { breakpoints: t, children: o } = e, { device: n } =
|
|
1950
|
-
return /* @__PURE__ */
|
|
1951
|
-
|
|
1950
|
+
const { breakpoints: t, children: o } = e, { device: n } = Ki(t);
|
|
1951
|
+
return /* @__PURE__ */ c(
|
|
1952
|
+
li.Provider,
|
|
1952
1953
|
{
|
|
1953
1954
|
value: {
|
|
1954
1955
|
device: n
|
|
@@ -1956,24 +1957,24 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1956
1957
|
children: o
|
|
1957
1958
|
}
|
|
1958
1959
|
);
|
|
1959
|
-
},
|
|
1960
|
-
const { targetValue: t, duration: o =
|
|
1961
|
-
return
|
|
1960
|
+
}, Xi = 2e3, Zi = (e) => {
|
|
1961
|
+
const { targetValue: t, duration: o = Xi, doneValue: n } = e, [a, i] = Q(t), r = me(), s = me(0), p = me(), l = me(t), [u, _] = Q(!1), g = me();
|
|
1962
|
+
return oe(() => {
|
|
1962
1963
|
if (l.current = t, t === s.current) return;
|
|
1963
1964
|
if (r.current && cancelAnimationFrame(r.current), t === n && !u) {
|
|
1964
1965
|
i(n), s.current = n;
|
|
1965
1966
|
return;
|
|
1966
1967
|
}
|
|
1967
|
-
s.current = a,
|
|
1968
|
-
const
|
|
1969
|
-
if (!
|
|
1970
|
-
const C = w -
|
|
1971
|
-
i(
|
|
1968
|
+
s.current = a, p.current = performance.now();
|
|
1969
|
+
const h = (w) => {
|
|
1970
|
+
if (!p.current) return;
|
|
1971
|
+
const C = w - p.current, N = Math.min(C / o, 1), P = N < 0.5 ? 4 * N * N * N : 1 - Math.pow(-2 * N + 2, 3) / 2, M = s.current + (l.current - s.current) * P, A = Math.max(0, Math.floor(M));
|
|
1972
|
+
i(A), N < 1 && (r.current = requestAnimationFrame(h));
|
|
1972
1973
|
};
|
|
1973
|
-
return r.current = requestAnimationFrame(
|
|
1974
|
+
return r.current = requestAnimationFrame(h), () => {
|
|
1974
1975
|
r.current && cancelAnimationFrame(r.current);
|
|
1975
1976
|
};
|
|
1976
|
-
}, [t, o, n, u]),
|
|
1977
|
+
}, [t, o, n, u]), oe(() => (a === n ? g.current = window.setTimeout(() => {
|
|
1977
1978
|
_(!1);
|
|
1978
1979
|
}, 500) : (_(!0), g.current && window.clearTimeout(g.current)), () => {
|
|
1979
1980
|
g.current && window.clearTimeout(g.current);
|
|
@@ -1981,17 +1982,17 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1981
1982
|
animatedValue: a,
|
|
1982
1983
|
isLoading: u
|
|
1983
1984
|
};
|
|
1984
|
-
},
|
|
1985
|
-
progressWrapper:
|
|
1986
|
-
progressWrapper_loading:
|
|
1987
|
-
progressWrapper__childrenWrapper:
|
|
1988
|
-
progressWrapper__childrenWrapper_loading:
|
|
1985
|
+
}, Qi = "_progressWrapper_xn9s0_44", Ji = "_progressWrapper_loading_xn9s0_47", er = "_progressWrapper__childrenWrapper_xn9s0_52", tr = "_progressWrapper__childrenWrapper_loading_xn9s0_58", or = "_pulse_xn9s0_1", nr = "_progressWrapper__progressBadge_xn9s0_64", ar = "_progressWrapper__progressBadge_loading_xn9s0_75", Re = {
|
|
1986
|
+
progressWrapper: Qi,
|
|
1987
|
+
progressWrapper_loading: Ji,
|
|
1988
|
+
progressWrapper__childrenWrapper: er,
|
|
1989
|
+
progressWrapper__childrenWrapper_loading: tr,
|
|
1989
1990
|
"progressWrapper__childrenWrapper--animated-pulse": "_progressWrapper__childrenWrapper--animated-pulse_xn9s0_58",
|
|
1990
|
-
pulse:
|
|
1991
|
+
pulse: or,
|
|
1991
1992
|
"progressWrapper__childrenWrapper--animated-backgroundProgress": "_progressWrapper__childrenWrapper--animated-backgroundProgress_xn9s0_61",
|
|
1992
|
-
progressWrapper__progressBadge:
|
|
1993
|
-
progressWrapper__progressBadge_loading:
|
|
1994
|
-
},
|
|
1993
|
+
progressWrapper__progressBadge: nr,
|
|
1994
|
+
progressWrapper__progressBadge_loading: ar
|
|
1995
|
+
}, Bp = (e) => {
|
|
1995
1996
|
const {
|
|
1996
1997
|
value: t,
|
|
1997
1998
|
classNameRoot: o,
|
|
@@ -2000,7 +2001,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2000
2001
|
children: i,
|
|
2001
2002
|
doneValue: r = 100,
|
|
2002
2003
|
animationVariant: s = "backgroundProgress"
|
|
2003
|
-
} = e, { animatedValue:
|
|
2004
|
+
} = e, { animatedValue: p, isLoading: l } = Zi({
|
|
2004
2005
|
targetValue: t,
|
|
2005
2006
|
duration: a,
|
|
2006
2007
|
doneValue: r
|
|
@@ -2016,41 +2017,71 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2016
2017
|
[Re.progressWrapper__childrenWrapper]: !0,
|
|
2017
2018
|
[Re[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
2018
2019
|
[Re.progressWrapper__childrenWrapper_loading]: l
|
|
2019
|
-
}),
|
|
2020
|
-
"--progress": `${
|
|
2020
|
+
}), h = {
|
|
2021
|
+
"--progress": `${p / r * 100}%`
|
|
2021
2022
|
};
|
|
2022
|
-
return /* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ z("div", { className: u, children: [
|
|
2024
|
+
/* @__PURE__ */ c(
|
|
2024
2025
|
"div",
|
|
2025
2026
|
{
|
|
2026
2027
|
className: g,
|
|
2027
|
-
style: s === "backgroundProgress" ?
|
|
2028
|
+
style: s === "backgroundProgress" ? h : void 0,
|
|
2028
2029
|
children: i
|
|
2029
2030
|
}
|
|
2030
2031
|
),
|
|
2031
|
-
l && /* @__PURE__ */
|
|
2032
|
-
|
|
2032
|
+
l && /* @__PURE__ */ z(Te, { classNameRoot: _, children: [
|
|
2033
|
+
p,
|
|
2033
2034
|
"%"
|
|
2034
2035
|
] })
|
|
2035
2036
|
] });
|
|
2036
|
-
},
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2037
|
+
}, Op = (e) => {
|
|
2038
|
+
const {
|
|
2039
|
+
children: t,
|
|
2040
|
+
isNeedAuthorized: o,
|
|
2041
|
+
onAuthRedirect: n,
|
|
2042
|
+
unauthorizedMessage: a = "Необходимо авторизоваться",
|
|
2043
|
+
authButtonText: i = "Авторизоваться",
|
|
2044
|
+
confirmSize: r = "md",
|
|
2045
|
+
zIndex: s = 999
|
|
2046
|
+
} = e, [p, l] = Q(o);
|
|
2047
|
+
return oe(() => {
|
|
2048
|
+
l(o);
|
|
2049
|
+
}, [o]), /* @__PURE__ */ z(jt, { children: [
|
|
2050
|
+
t,
|
|
2051
|
+
p && /* @__PURE__ */ c(
|
|
2052
|
+
Ia,
|
|
2053
|
+
{
|
|
2054
|
+
zIndex: s,
|
|
2055
|
+
isVisibleCloseButton: !1,
|
|
2056
|
+
textAlign: "center",
|
|
2057
|
+
applyButtonsAlign: "center",
|
|
2058
|
+
header: a,
|
|
2059
|
+
submitBtnContent: i,
|
|
2060
|
+
size: r,
|
|
2061
|
+
submit: () => {
|
|
2062
|
+
l(!1), n();
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
)
|
|
2066
|
+
] });
|
|
2067
|
+
}, ir = 180, rr = "_spSelect_1l6hu_43", sr = "_spSelect_error_1l6hu_48", pr = "_spSelect__control_1l6hu_48", lr = "_spSelect__value_empty_1l6hu_52", cr = "_spSelect__icon_1l6hu_55", dr = "_spSelect_absolutePositionError_1l6hu_58", mr = "_spSelect__container_1l6hu_61", ur = "_spSelect__control_filled_1l6hu_81", _r = "_spSelect__control_outlined_1l6hu_85", fr = "_spSelect__control_disabled_1l6hu_110", vr = "_spSelect__value_1l6hu_52", gr = "_spSelect__list_1l6hu_141", xr = "_spSelect__list_scrollable_1l6hu_148", hr = "_spSelect__option_1l6hu_164", br = "_spSelect__error_1l6hu_182", yr = "_spSelect__error_absolutePosition_1l6hu_189", _e = {
|
|
2068
|
+
spSelect: rr,
|
|
2069
|
+
spSelect_error: sr,
|
|
2070
|
+
spSelect__control: pr,
|
|
2071
|
+
spSelect__value_empty: lr,
|
|
2072
|
+
spSelect__icon: cr,
|
|
2073
|
+
spSelect_absolutePositionError: dr,
|
|
2074
|
+
spSelect__container: mr,
|
|
2075
|
+
spSelect__control_filled: ur,
|
|
2076
|
+
spSelect__control_outlined: _r,
|
|
2077
|
+
spSelect__control_disabled: fr,
|
|
2078
|
+
spSelect__value: vr,
|
|
2079
|
+
spSelect__list: gr,
|
|
2080
|
+
spSelect__list_scrollable: xr,
|
|
2081
|
+
spSelect__option: hr,
|
|
2082
|
+
spSelect__error: br,
|
|
2083
|
+
spSelect__error_absolutePosition: yr
|
|
2084
|
+
}, Wp = (e) => {
|
|
2054
2085
|
const {
|
|
2055
2086
|
options: t,
|
|
2056
2087
|
placeholder: o = "Выберите из списка...",
|
|
@@ -2059,37 +2090,37 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2059
2090
|
variant: i = "outlined",
|
|
2060
2091
|
onChange: r,
|
|
2061
2092
|
onMouseEnter: s,
|
|
2062
|
-
error:
|
|
2093
|
+
error: p,
|
|
2063
2094
|
label: l,
|
|
2064
2095
|
infoTooltipText: u,
|
|
2065
2096
|
tooltipPosition: _,
|
|
2066
2097
|
disabled: g = !1,
|
|
2067
|
-
required:
|
|
2068
|
-
maxHeightList: w =
|
|
2098
|
+
required: h,
|
|
2099
|
+
maxHeightList: w = ir,
|
|
2069
2100
|
isVisibleDefaultTitle: C = !0,
|
|
2070
|
-
isScrollableList:
|
|
2071
|
-
isAbsolutePositionError:
|
|
2072
|
-
classNameRoot:
|
|
2073
|
-
classNameError:
|
|
2101
|
+
isScrollableList: N = !1,
|
|
2102
|
+
isAbsolutePositionError: P = !1,
|
|
2103
|
+
classNameRoot: M,
|
|
2104
|
+
classNameError: A,
|
|
2074
2105
|
classNameLabel: b,
|
|
2075
|
-
classNameBaseTooltipRoot:
|
|
2076
|
-
} = e, [
|
|
2106
|
+
classNameBaseTooltipRoot: d
|
|
2107
|
+
} = e, [T, B] = Q(!1), Y = me(null);
|
|
2077
2108
|
ho(
|
|
2078
|
-
[
|
|
2109
|
+
[Y],
|
|
2079
2110
|
() => {
|
|
2080
|
-
|
|
2111
|
+
B(!1);
|
|
2081
2112
|
},
|
|
2082
|
-
|
|
2113
|
+
T
|
|
2083
2114
|
);
|
|
2084
2115
|
const Z = t.find((v) => v.value === n), re = (v, E) => {
|
|
2085
|
-
r(v, { value: E, name: a }),
|
|
2116
|
+
r(v, { value: E, name: a }), B(!1);
|
|
2086
2117
|
}, se = () => {
|
|
2087
|
-
g ||
|
|
2118
|
+
g || B(!T);
|
|
2088
2119
|
}, ue = f({
|
|
2089
2120
|
[_e.spSelect]: !0,
|
|
2090
|
-
[_e.spSelect_error]: !!
|
|
2091
|
-
[_e.spSelect_absolutePositionError]:
|
|
2092
|
-
...
|
|
2121
|
+
[_e.spSelect_error]: !!p,
|
|
2122
|
+
[_e.spSelect_absolutePositionError]: P,
|
|
2123
|
+
...M && { [M]: !0 }
|
|
2093
2124
|
}), ce = f({
|
|
2094
2125
|
[_e.spSelect__container]: !0
|
|
2095
2126
|
}), G = f({
|
|
@@ -2099,32 +2130,32 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2099
2130
|
}), ee = f({
|
|
2100
2131
|
[_e.spSelect__value]: !0,
|
|
2101
2132
|
[_e.spSelect__value_empty]: !Z
|
|
2102
|
-
}),
|
|
2133
|
+
}), J = f({
|
|
2103
2134
|
[_e.spSelect__icon]: !0
|
|
2104
2135
|
}), k = f({
|
|
2105
2136
|
[_e.spSelect__list]: !0,
|
|
2106
|
-
[_e.spSelect__list_scrollable]:
|
|
2107
|
-
}),
|
|
2137
|
+
[_e.spSelect__list_scrollable]: N
|
|
2138
|
+
}), $ = f({
|
|
2108
2139
|
...b && { [b]: !0 }
|
|
2109
|
-
}),
|
|
2140
|
+
}), W = f({
|
|
2110
2141
|
[_e.spSelect__error]: !0,
|
|
2111
|
-
[_e.spSelect__error_absolutePosition]:
|
|
2112
|
-
...
|
|
2142
|
+
[_e.spSelect__error_absolutePosition]: P,
|
|
2143
|
+
...A && { [A]: !0 }
|
|
2113
2144
|
});
|
|
2114
|
-
return /* @__PURE__ */
|
|
2115
|
-
l && /* @__PURE__ */
|
|
2116
|
-
|
|
2145
|
+
return /* @__PURE__ */ z("div", { className: ue, ref: Y, children: [
|
|
2146
|
+
l && /* @__PURE__ */ c(
|
|
2147
|
+
Dt,
|
|
2117
2148
|
{
|
|
2118
|
-
classNameRoot:
|
|
2149
|
+
classNameRoot: $,
|
|
2119
2150
|
tooltipPosition: _,
|
|
2120
|
-
required:
|
|
2151
|
+
required: h,
|
|
2121
2152
|
label: l,
|
|
2122
2153
|
infoTooltipText: u,
|
|
2123
|
-
classNameBaseTooltipRoot:
|
|
2154
|
+
classNameBaseTooltipRoot: d
|
|
2124
2155
|
}
|
|
2125
2156
|
),
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ z("div", { className: ce, onMouseEnter: s, children: [
|
|
2158
|
+
/* @__PURE__ */ z(
|
|
2128
2159
|
"div",
|
|
2129
2160
|
{
|
|
2130
2161
|
tabIndex: g ? -1 : 0,
|
|
@@ -2132,35 +2163,35 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2132
2163
|
className: G,
|
|
2133
2164
|
onClick: se,
|
|
2134
2165
|
children: [
|
|
2135
|
-
/* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2166
|
+
/* @__PURE__ */ c("div", { className: ee, children: (Z == null ? void 0 : Z.label) || o }),
|
|
2167
|
+
/* @__PURE__ */ c(
|
|
2137
2168
|
ve,
|
|
2138
2169
|
{
|
|
2139
|
-
name:
|
|
2140
|
-
rotate:
|
|
2141
|
-
className:
|
|
2170
|
+
name: ae.SelectChevronDown,
|
|
2171
|
+
rotate: T ? 180 : void 0,
|
|
2172
|
+
className: J
|
|
2142
2173
|
}
|
|
2143
2174
|
)
|
|
2144
2175
|
]
|
|
2145
2176
|
}
|
|
2146
2177
|
),
|
|
2147
|
-
|
|
2178
|
+
T && /* @__PURE__ */ c(
|
|
2148
2179
|
"div",
|
|
2149
2180
|
{
|
|
2150
2181
|
className: k,
|
|
2151
|
-
style:
|
|
2182
|
+
style: N ? { maxHeight: `${w}px` } : {},
|
|
2152
2183
|
children: t.map((v) => {
|
|
2153
2184
|
const E = v.value === n;
|
|
2154
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ z(
|
|
2155
2186
|
"div",
|
|
2156
2187
|
{
|
|
2157
2188
|
className: f({
|
|
2158
2189
|
[_e.spSelect__option]: !0
|
|
2159
2190
|
}),
|
|
2160
|
-
onClick: (
|
|
2191
|
+
onClick: (j) => re(j, v.value),
|
|
2161
2192
|
children: [
|
|
2162
2193
|
v.label,
|
|
2163
|
-
E && /* @__PURE__ */
|
|
2194
|
+
E && /* @__PURE__ */ c(ve, { name: ae.Check, className: J })
|
|
2164
2195
|
]
|
|
2165
2196
|
},
|
|
2166
2197
|
v.value
|
|
@@ -2169,32 +2200,32 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2169
2200
|
}
|
|
2170
2201
|
)
|
|
2171
2202
|
] }),
|
|
2172
|
-
|
|
2203
|
+
p && /* @__PURE__ */ c("div", { className: W, children: p })
|
|
2173
2204
|
] });
|
|
2174
|
-
},
|
|
2175
|
-
skeleton:
|
|
2176
|
-
},
|
|
2205
|
+
}, wr = "_skeleton_1u7gu_43", Cr = {
|
|
2206
|
+
skeleton: wr
|
|
2207
|
+
}, zp = (e) => {
|
|
2177
2208
|
const { width: t = "100%", height: o = "1rem", circle: n = !1, classNameRoot: a = "", style: i = {} } = e, r = {
|
|
2178
2209
|
width: t,
|
|
2179
2210
|
height: o,
|
|
2180
2211
|
borderRadius: n ? "50%" : "0",
|
|
2181
2212
|
...i
|
|
2182
2213
|
};
|
|
2183
|
-
return /* @__PURE__ */
|
|
2184
|
-
}, Et = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1,
|
|
2185
|
-
spTable:
|
|
2186
|
-
spTable__tdContentCopyIcon:
|
|
2187
|
-
spTable__tdContent:
|
|
2188
|
-
spTable__tdColorContent:
|
|
2189
|
-
spTable__tdContentCopyIcon_copied:
|
|
2190
|
-
spTable__emptyPage:
|
|
2191
|
-
spStringsGroup:
|
|
2192
|
-
spStringsGroup__groupItem:
|
|
2193
|
-
spStringsGroup__groupItemHeader:
|
|
2214
|
+
return /* @__PURE__ */ c("div", { style: r, className: f(a, Cr.skeleton) });
|
|
2215
|
+
}, Et = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, kr = "_spTable_1vuaj_43", Tr = "_spTable__tdContentCopyIcon_1vuaj_62", Nr = "_spTable__tdContent_1vuaj_62", Er = "_spTable__tdColorContent_1vuaj_72", Ir = "_spTable__tdContentCopyIcon_copied_1vuaj_85", Sr = "_spTable__emptyPage_1vuaj_89", Rr = "_spStringsGroup_1vuaj_105", Fr = "_spStringsGroup__groupItem_1vuaj_119", Ar = "_spStringsGroup__groupItemHeader_1vuaj_134", jr = "_spStringsGroup__groupItemContent_1vuaj_138", Lr = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", Dr = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", ye = {
|
|
2216
|
+
spTable: kr,
|
|
2217
|
+
spTable__tdContentCopyIcon: Tr,
|
|
2218
|
+
spTable__tdContent: Nr,
|
|
2219
|
+
spTable__tdColorContent: Er,
|
|
2220
|
+
spTable__tdContentCopyIcon_copied: Ir,
|
|
2221
|
+
spTable__emptyPage: Sr,
|
|
2222
|
+
spStringsGroup: Rr,
|
|
2223
|
+
spStringsGroup__groupItem: Fr,
|
|
2224
|
+
spStringsGroup__groupItemHeader: Ar,
|
|
2194
2225
|
spStringsGroup__groupItemContent: jr,
|
|
2195
|
-
spStringsGroup__groupItemContentCopyIcon:
|
|
2196
|
-
spStringsGroup__groupItemContentCopyIcon_copied:
|
|
2197
|
-
},
|
|
2226
|
+
spStringsGroup__groupItemContentCopyIcon: Lr,
|
|
2227
|
+
spStringsGroup__groupItemContentCopyIcon_copied: Dr
|
|
2228
|
+
}, Mp = (e) => {
|
|
2198
2229
|
const {
|
|
2199
2230
|
columns: t,
|
|
2200
2231
|
data: o,
|
|
@@ -2203,129 +2234,129 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2203
2234
|
classNameRoot: i
|
|
2204
2235
|
} = e, r = t.map((b) => o ? {
|
|
2205
2236
|
...b,
|
|
2206
|
-
isVisible: o.some((
|
|
2237
|
+
isVisible: o.some((d) => !!d[b.key])
|
|
2207
2238
|
} : b).filter((b) => b.isVisible), s = f({
|
|
2208
2239
|
[ye.spTable]: !0,
|
|
2209
2240
|
...i && { [i]: !0 }
|
|
2210
|
-
}),
|
|
2241
|
+
}), p = f({
|
|
2211
2242
|
[ye.spTable__tdContent]: !0
|
|
2212
2243
|
}), l = f({
|
|
2213
2244
|
[ye.spTable__tdColorContent]: !0
|
|
2214
2245
|
}), u = f({
|
|
2215
2246
|
[ye.spTable__emptyPage]: !0
|
|
2216
|
-
}), [_, g] =
|
|
2217
|
-
const { text:
|
|
2218
|
-
(_ == null ? void 0 : _.rowIndex) ===
|
|
2219
|
-
g({ rowIndex:
|
|
2220
|
-
}).catch((
|
|
2221
|
-
console.error("Ошибка при копировании:",
|
|
2247
|
+
}), [_, g] = Q(null), h = (b) => {
|
|
2248
|
+
const { text: d, rowIndex: T, colIndex: B } = b;
|
|
2249
|
+
(_ == null ? void 0 : _.rowIndex) === T && (_ == null ? void 0 : _.colIndex) === B || navigator.clipboard.writeText(d).then(() => {
|
|
2250
|
+
g({ rowIndex: T, colIndex: B });
|
|
2251
|
+
}).catch((Y) => {
|
|
2252
|
+
console.error("Ошибка при копировании:", Y);
|
|
2222
2253
|
});
|
|
2223
2254
|
}, w = () => {
|
|
2224
2255
|
g(null);
|
|
2225
|
-
}, C = () => /* @__PURE__ */
|
|
2256
|
+
}, C = () => /* @__PURE__ */ c("div", { className: u, children: "Данные отсутствуют" }), N = ({
|
|
2226
2257
|
row: b,
|
|
2227
|
-
col:
|
|
2258
|
+
col: d
|
|
2228
2259
|
}) => {
|
|
2229
|
-
const
|
|
2230
|
-
if (!
|
|
2231
|
-
const [
|
|
2232
|
-
return /* @__PURE__ */
|
|
2233
|
-
|
|
2234
|
-
|
|
2260
|
+
const T = b[d.key];
|
|
2261
|
+
if (!T) return null;
|
|
2262
|
+
const [B, Y] = T.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2263
|
+
return /* @__PURE__ */ z("span", { children: [
|
|
2264
|
+
B,
|
|
2265
|
+
Y && /* @__PURE__ */ c("span", { className: l, children: ` ${Y}` })
|
|
2235
2266
|
] });
|
|
2236
|
-
},
|
|
2237
|
-
/* @__PURE__ */
|
|
2267
|
+
}, P = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ z("table", { className: s, children: [
|
|
2268
|
+
/* @__PURE__ */ c("colgroup", { children: r.map((b, d, T) => /* @__PURE__ */ c(
|
|
2238
2269
|
"col",
|
|
2239
2270
|
{
|
|
2240
2271
|
style: {
|
|
2241
|
-
width: `calc(100%/${
|
|
2272
|
+
width: `calc(100%/${T.length})`
|
|
2242
2273
|
}
|
|
2243
2274
|
},
|
|
2244
|
-
|
|
2275
|
+
d
|
|
2245
2276
|
)) }),
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
-
/* @__PURE__ */
|
|
2248
|
-
const
|
|
2249
|
-
return /* @__PURE__ */
|
|
2277
|
+
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: r.map((b, d) => /* @__PURE__ */ c("th", { children: b.title }, d)) }) }),
|
|
2278
|
+
/* @__PURE__ */ c("tbody", { children: o.map((b, d) => b ? /* @__PURE__ */ c("tr", { children: r.map((T, B) => {
|
|
2279
|
+
const Y = (_ == null ? void 0 : _.rowIndex) === d && (_ == null ? void 0 : _.colIndex) === B;
|
|
2280
|
+
return /* @__PURE__ */ c(
|
|
2250
2281
|
"td",
|
|
2251
2282
|
{
|
|
2252
|
-
onMouseLeave:
|
|
2253
|
-
children: /* @__PURE__ */
|
|
2254
|
-
/* @__PURE__ */
|
|
2255
|
-
!Et(b[
|
|
2283
|
+
onMouseLeave: Y ? w : void 0,
|
|
2284
|
+
children: /* @__PURE__ */ z("div", { className: p, children: [
|
|
2285
|
+
/* @__PURE__ */ c("span", { children: T.isColorContentsCurlyBrackets ? N({ row: b, col: T }) : b[T.key] }),
|
|
2286
|
+
!Et(b[T.key]) && T.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2256
2287
|
ve,
|
|
2257
2288
|
{
|
|
2258
2289
|
className: f({
|
|
2259
2290
|
[ye.spTable__tdContentCopyIcon]: !0,
|
|
2260
|
-
[ye.spTable__tdContentCopyIcon_copied]:
|
|
2291
|
+
[ye.spTable__tdContentCopyIcon_copied]: Y
|
|
2261
2292
|
}),
|
|
2262
|
-
name:
|
|
2293
|
+
name: Y ? ae.Check : ae.Copy,
|
|
2263
2294
|
onClick: () => {
|
|
2264
|
-
const Z = b[
|
|
2295
|
+
const Z = b[T.key];
|
|
2265
2296
|
if (!Z) return null;
|
|
2266
|
-
|
|
2297
|
+
h({
|
|
2267
2298
|
text: Z,
|
|
2268
|
-
rowIndex:
|
|
2269
|
-
colIndex:
|
|
2299
|
+
rowIndex: d,
|
|
2300
|
+
colIndex: B
|
|
2270
2301
|
});
|
|
2271
2302
|
}
|
|
2272
2303
|
}
|
|
2273
2304
|
)
|
|
2274
2305
|
] })
|
|
2275
2306
|
},
|
|
2276
|
-
`${
|
|
2307
|
+
`${d}:${B}`
|
|
2277
2308
|
);
|
|
2278
|
-
}) },
|
|
2279
|
-
] }) : C(),
|
|
2309
|
+
}) }, d) : null) })
|
|
2310
|
+
] }) : C(), M = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ c(
|
|
2280
2311
|
"div",
|
|
2281
2312
|
{
|
|
2282
2313
|
className: f({
|
|
2283
2314
|
[ye.spStringsGroup]: !0
|
|
2284
2315
|
}),
|
|
2285
|
-
children: o.map((b,
|
|
2286
|
-
if (Et(b[
|
|
2316
|
+
children: o.map((b, d) => b ? /* @__PURE__ */ c("div", { children: r.map((T, B) => {
|
|
2317
|
+
if (Et(b[T.key]))
|
|
2287
2318
|
return null;
|
|
2288
|
-
const
|
|
2289
|
-
return /* @__PURE__ */
|
|
2319
|
+
const Y = (_ == null ? void 0 : _.rowIndex) === d && (_ == null ? void 0 : _.colIndex) === B;
|
|
2320
|
+
return /* @__PURE__ */ z(
|
|
2290
2321
|
"div",
|
|
2291
2322
|
{
|
|
2292
2323
|
className: f({
|
|
2293
2324
|
[ye.spStringsGroup__groupItem]: !0
|
|
2294
2325
|
}),
|
|
2295
|
-
onMouseLeave:
|
|
2326
|
+
onMouseLeave: Y ? w : void 0,
|
|
2296
2327
|
children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ c(
|
|
2298
2329
|
"div",
|
|
2299
2330
|
{
|
|
2300
2331
|
className: f({
|
|
2301
2332
|
[ye.spStringsGroup__groupItemHeader]: !0
|
|
2302
2333
|
}),
|
|
2303
|
-
children:
|
|
2334
|
+
children: T.title
|
|
2304
2335
|
}
|
|
2305
2336
|
),
|
|
2306
|
-
/* @__PURE__ */
|
|
2337
|
+
/* @__PURE__ */ z(
|
|
2307
2338
|
"div",
|
|
2308
2339
|
{
|
|
2309
2340
|
className: f({
|
|
2310
2341
|
[ye.spStringsGroup__groupItemContent]: !0
|
|
2311
2342
|
}),
|
|
2312
2343
|
children: [
|
|
2313
|
-
/* @__PURE__ */
|
|
2314
|
-
|
|
2344
|
+
/* @__PURE__ */ c("span", { children: T.isColorContentsCurlyBrackets ? N({ row: b, col: T }) : b[T.key] }),
|
|
2345
|
+
T.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2315
2346
|
ve,
|
|
2316
2347
|
{
|
|
2317
2348
|
className: f({
|
|
2318
2349
|
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
2319
|
-
[ye.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
2350
|
+
[ye.spStringsGroup__groupItemContentCopyIcon_copied]: Y
|
|
2320
2351
|
}),
|
|
2321
|
-
name:
|
|
2352
|
+
name: Y ? ae.Check : ae.Copy,
|
|
2322
2353
|
onClick: () => {
|
|
2323
|
-
const Z = b[
|
|
2354
|
+
const Z = b[T.key];
|
|
2324
2355
|
if (!Z) return null;
|
|
2325
|
-
|
|
2356
|
+
h({
|
|
2326
2357
|
text: Z,
|
|
2327
|
-
rowIndex:
|
|
2328
|
-
colIndex:
|
|
2358
|
+
rowIndex: d,
|
|
2359
|
+
colIndex: B
|
|
2329
2360
|
});
|
|
2330
2361
|
}
|
|
2331
2362
|
}
|
|
@@ -2335,23 +2366,23 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2335
2366
|
)
|
|
2336
2367
|
]
|
|
2337
2368
|
},
|
|
2338
|
-
|
|
2369
|
+
B
|
|
2339
2370
|
);
|
|
2340
|
-
}) },
|
|
2371
|
+
}) }, d) : null)
|
|
2341
2372
|
}
|
|
2342
2373
|
) : C();
|
|
2343
|
-
return n ? a ?
|
|
2344
|
-
},
|
|
2345
|
-
spTabs:
|
|
2346
|
-
spTabs_separated:
|
|
2374
|
+
return n ? a ? P() : M() : P();
|
|
2375
|
+
}, Pr = "_spTabs_loi7t_43", Br = "_spTabs_separated_loi7t_48", Or = "_spTabs__tabElement_loi7t_48", Wr = "_spTabs__tabElement_active_loi7t_83", zr = "_spTabs__triggerTooltip_loi7t_90", Fe = {
|
|
2376
|
+
spTabs: Pr,
|
|
2377
|
+
spTabs_separated: Br,
|
|
2347
2378
|
"spTabs--size-md": "_spTabs--size-md_loi7t_48",
|
|
2348
2379
|
spTabs__tabElement: Or,
|
|
2349
2380
|
"spTabs--size-lg": "_spTabs--size-lg_loi7t_51",
|
|
2350
2381
|
"spTabs--variant-contained": "_spTabs--variant-contained_loi7t_54",
|
|
2351
|
-
spTabs__tabElement_active:
|
|
2352
|
-
spTabs__triggerTooltip:
|
|
2382
|
+
spTabs__tabElement_active: Wr,
|
|
2383
|
+
spTabs__triggerTooltip: zr,
|
|
2353
2384
|
"spTabs--variant-filled": "_spTabs--variant-filled_loi7t_93"
|
|
2354
|
-
},
|
|
2385
|
+
}, Up = (e) => {
|
|
2355
2386
|
const {
|
|
2356
2387
|
panes: t,
|
|
2357
2388
|
isSeparated: o = !1,
|
|
@@ -2365,7 +2396,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2365
2396
|
[Fe[`spTabs--variant-${i}`]]: i,
|
|
2366
2397
|
[Fe[`spTabs--size-${r}`]]: r,
|
|
2367
2398
|
...n && { [n]: !0 }
|
|
2368
|
-
}),
|
|
2399
|
+
}), p = f({
|
|
2369
2400
|
[Fe.spTabs__triggerTooltip]: !0
|
|
2370
2401
|
}), l = () => {
|
|
2371
2402
|
switch (r) {
|
|
@@ -2375,22 +2406,22 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2375
2406
|
return "p1";
|
|
2376
2407
|
}
|
|
2377
2408
|
};
|
|
2378
|
-
return /* @__PURE__ */
|
|
2379
|
-
const { name: g, active:
|
|
2380
|
-
return /* @__PURE__ */
|
|
2409
|
+
return /* @__PURE__ */ c("div", { className: s, children: t.map((u, _) => {
|
|
2410
|
+
const { name: g, active: h, onClick: w, infoTooltipText: C } = u;
|
|
2411
|
+
return /* @__PURE__ */ z(
|
|
2381
2412
|
"div",
|
|
2382
2413
|
{
|
|
2383
2414
|
className: f({
|
|
2384
2415
|
[Fe.spTabs__tabElement]: !0,
|
|
2385
|
-
[Fe.spTabs__tabElement_active]:
|
|
2416
|
+
[Fe.spTabs__tabElement_active]: h
|
|
2386
2417
|
}),
|
|
2387
2418
|
onClick: w,
|
|
2388
2419
|
children: [
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
!!C && /* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ c(Te, { type: l(), children: g }),
|
|
2421
|
+
!!C && /* @__PURE__ */ c(
|
|
2391
2422
|
nt,
|
|
2392
2423
|
{
|
|
2393
|
-
classNameTriggerTooltip:
|
|
2424
|
+
classNameTriggerTooltip: p,
|
|
2394
2425
|
text: C,
|
|
2395
2426
|
classNameBaseTooltipRoot: a
|
|
2396
2427
|
}
|
|
@@ -2400,16 +2431,16 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2400
2431
|
u.key || _
|
|
2401
2432
|
);
|
|
2402
2433
|
}) });
|
|
2403
|
-
},
|
|
2404
|
-
spTextWithLabel:
|
|
2405
|
-
},
|
|
2434
|
+
}, Mr = "_spTextWithLabel_1dr7p_1", Ur = {
|
|
2435
|
+
spTextWithLabel: Mr
|
|
2436
|
+
}, $p = (e) => {
|
|
2406
2437
|
const { children: t, label: o, style: n, ...a } = e;
|
|
2407
|
-
return /* @__PURE__ */
|
|
2408
|
-
/* @__PURE__ */
|
|
2409
|
-
/* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ z("div", { className: Ur.spTextWithLabel, style: { ...n }, children: [
|
|
2439
|
+
/* @__PURE__ */ c(Dt, { label: o }),
|
|
2440
|
+
/* @__PURE__ */ c(Te, { ...a, children: t })
|
|
2410
2441
|
] });
|
|
2411
2442
|
};
|
|
2412
|
-
function
|
|
2443
|
+
function je(e, t, o, n) {
|
|
2413
2444
|
function a(i) {
|
|
2414
2445
|
return i instanceof o ? i : new o(function(r) {
|
|
2415
2446
|
r(i);
|
|
@@ -2423,7 +2454,7 @@ function Ae(e, t, o, n) {
|
|
|
2423
2454
|
r(_);
|
|
2424
2455
|
}
|
|
2425
2456
|
}
|
|
2426
|
-
function
|
|
2457
|
+
function p(u) {
|
|
2427
2458
|
try {
|
|
2428
2459
|
l(n.throw(u));
|
|
2429
2460
|
} catch (_) {
|
|
@@ -2431,12 +2462,12 @@ function Ae(e, t, o, n) {
|
|
|
2431
2462
|
}
|
|
2432
2463
|
}
|
|
2433
2464
|
function l(u) {
|
|
2434
|
-
u.done ? i(u.value) : a(u.value).then(s,
|
|
2465
|
+
u.done ? i(u.value) : a(u.value).then(s, p);
|
|
2435
2466
|
}
|
|
2436
2467
|
l((n = n.apply(e, t || [])).next());
|
|
2437
2468
|
});
|
|
2438
2469
|
}
|
|
2439
|
-
const
|
|
2470
|
+
const $r = /* @__PURE__ */ new Map([
|
|
2440
2471
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
2441
2472
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
2442
2473
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -3639,14 +3670,14 @@ const Ur = /* @__PURE__ */ new Map([
|
|
|
3639
3670
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
3640
3671
|
["zsh", "text/x-scriptzsh"]
|
|
3641
3672
|
]);
|
|
3642
|
-
function
|
|
3643
|
-
const n =
|
|
3644
|
-
return typeof n.path != "string" &&
|
|
3673
|
+
function Be(e, t, o) {
|
|
3674
|
+
const n = qr(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
3675
|
+
return typeof n.path != "string" && no(n, "path", i), no(n, "relativePath", i), n;
|
|
3645
3676
|
}
|
|
3646
|
-
function
|
|
3677
|
+
function qr(e) {
|
|
3647
3678
|
const { name: t } = e;
|
|
3648
3679
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
3649
|
-
const n = t.split(".").pop().toLowerCase(), a =
|
|
3680
|
+
const n = t.split(".").pop().toLowerCase(), a = $r.get(n);
|
|
3650
3681
|
a && Object.defineProperty(e, "type", {
|
|
3651
3682
|
value: a,
|
|
3652
3683
|
writable: !1,
|
|
@@ -3656,7 +3687,7 @@ function $r(e) {
|
|
|
3656
3687
|
}
|
|
3657
3688
|
return e;
|
|
3658
3689
|
}
|
|
3659
|
-
function
|
|
3690
|
+
function no(e, t, o) {
|
|
3660
3691
|
Object.defineProperty(e, t, {
|
|
3661
3692
|
value: o,
|
|
3662
3693
|
writable: !1,
|
|
@@ -3664,49 +3695,49 @@ function oo(e, t, o) {
|
|
|
3664
3695
|
enumerable: !0
|
|
3665
3696
|
});
|
|
3666
3697
|
}
|
|
3667
|
-
const
|
|
3698
|
+
const Hr = [
|
|
3668
3699
|
// Thumbnail cache files for macOS and Windows
|
|
3669
3700
|
".DS_Store",
|
|
3670
3701
|
// macOs
|
|
3671
3702
|
"Thumbs.db"
|
|
3672
3703
|
// Windows
|
|
3673
3704
|
];
|
|
3674
|
-
function
|
|
3675
|
-
return
|
|
3676
|
-
return Je(e) &&
|
|
3705
|
+
function Vr(e) {
|
|
3706
|
+
return je(this, void 0, void 0, function* () {
|
|
3707
|
+
return Je(e) && Yr(e.dataTransfer) ? Zr(e.dataTransfer, e.type) : Gr(e) ? Kr(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Xr(e) : [];
|
|
3677
3708
|
});
|
|
3678
3709
|
}
|
|
3679
|
-
function
|
|
3710
|
+
function Yr(e) {
|
|
3680
3711
|
return Je(e);
|
|
3681
3712
|
}
|
|
3682
|
-
function
|
|
3713
|
+
function Gr(e) {
|
|
3683
3714
|
return Je(e) && Je(e.target);
|
|
3684
3715
|
}
|
|
3685
3716
|
function Je(e) {
|
|
3686
3717
|
return typeof e == "object" && e !== null;
|
|
3687
3718
|
}
|
|
3688
|
-
function Gr(e) {
|
|
3689
|
-
return It(e.target.files).map((t) => Oe(t));
|
|
3690
|
-
}
|
|
3691
3719
|
function Kr(e) {
|
|
3692
|
-
return
|
|
3693
|
-
|
|
3720
|
+
return It(e.target.files).map((t) => Be(t));
|
|
3721
|
+
}
|
|
3722
|
+
function Xr(e) {
|
|
3723
|
+
return je(this, void 0, void 0, function* () {
|
|
3724
|
+
return (yield Promise.all(e.map((o) => o.getFile()))).map((o) => Be(o));
|
|
3694
3725
|
});
|
|
3695
3726
|
}
|
|
3696
|
-
function
|
|
3697
|
-
return
|
|
3727
|
+
function Zr(e, t) {
|
|
3728
|
+
return je(this, void 0, void 0, function* () {
|
|
3698
3729
|
if (e.items) {
|
|
3699
3730
|
const o = It(e.items).filter((a) => a.kind === "file");
|
|
3700
3731
|
if (t !== "drop")
|
|
3701
3732
|
return o;
|
|
3702
|
-
const n = yield Promise.all(o.map(
|
|
3703
|
-
return
|
|
3733
|
+
const n = yield Promise.all(o.map(Qr));
|
|
3734
|
+
return ao(So(n));
|
|
3704
3735
|
}
|
|
3705
|
-
return
|
|
3736
|
+
return ao(It(e.files).map((o) => Be(o)));
|
|
3706
3737
|
});
|
|
3707
3738
|
}
|
|
3708
|
-
function
|
|
3709
|
-
return e.filter((t) =>
|
|
3739
|
+
function ao(e) {
|
|
3740
|
+
return e.filter((t) => Hr.indexOf(t.name) === -1);
|
|
3710
3741
|
}
|
|
3711
3742
|
function It(e) {
|
|
3712
3743
|
if (e === null)
|
|
@@ -3718,11 +3749,11 @@ function It(e) {
|
|
|
3718
3749
|
}
|
|
3719
3750
|
return t;
|
|
3720
3751
|
}
|
|
3721
|
-
function
|
|
3752
|
+
function Qr(e) {
|
|
3722
3753
|
if (typeof e.webkitGetAsEntry != "function")
|
|
3723
|
-
return
|
|
3754
|
+
return io(e);
|
|
3724
3755
|
const t = e.webkitGetAsEntry();
|
|
3725
|
-
return t && t.isDirectory ? Ro(t) :
|
|
3756
|
+
return t && t.isDirectory ? Ro(t) : io(e, t);
|
|
3726
3757
|
}
|
|
3727
3758
|
function So(e) {
|
|
3728
3759
|
return e.reduce((t, o) => [
|
|
@@ -3730,8 +3761,8 @@ function So(e) {
|
|
|
3730
3761
|
...Array.isArray(o) ? So(o) : [o]
|
|
3731
3762
|
], []);
|
|
3732
3763
|
}
|
|
3733
|
-
function
|
|
3734
|
-
return
|
|
3764
|
+
function io(e, t) {
|
|
3765
|
+
return je(this, void 0, void 0, function* () {
|
|
3735
3766
|
var o;
|
|
3736
3767
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
3737
3768
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -3739,18 +3770,18 @@ function ao(e, t) {
|
|
|
3739
3770
|
throw new Error(`${e} is not a File`);
|
|
3740
3771
|
if (i !== void 0) {
|
|
3741
3772
|
const r = yield i.getFile();
|
|
3742
|
-
return r.handle = i,
|
|
3773
|
+
return r.handle = i, Be(r);
|
|
3743
3774
|
}
|
|
3744
3775
|
}
|
|
3745
3776
|
const n = e.getAsFile();
|
|
3746
3777
|
if (!n)
|
|
3747
3778
|
throw new Error(`${e} is not a File`);
|
|
3748
|
-
return
|
|
3779
|
+
return Be(n, (o = t == null ? void 0 : t.fullPath) !== null && o !== void 0 ? o : void 0);
|
|
3749
3780
|
});
|
|
3750
3781
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3753
|
-
return e.isDirectory ? Ro(e) :
|
|
3782
|
+
function Jr(e) {
|
|
3783
|
+
return je(this, void 0, void 0, function* () {
|
|
3784
|
+
return e.isDirectory ? Ro(e) : es(e);
|
|
3754
3785
|
});
|
|
3755
3786
|
}
|
|
3756
3787
|
function Ro(e) {
|
|
@@ -3758,9 +3789,9 @@ function Ro(e) {
|
|
|
3758
3789
|
return new Promise((o, n) => {
|
|
3759
3790
|
const a = [];
|
|
3760
3791
|
function i() {
|
|
3761
|
-
t.readEntries((r) =>
|
|
3792
|
+
t.readEntries((r) => je(this, void 0, void 0, function* () {
|
|
3762
3793
|
if (r.length) {
|
|
3763
|
-
const s = Promise.all(r.map(
|
|
3794
|
+
const s = Promise.all(r.map(Jr));
|
|
3764
3795
|
a.push(s), i();
|
|
3765
3796
|
} else
|
|
3766
3797
|
try {
|
|
@@ -3776,11 +3807,11 @@ function Ro(e) {
|
|
|
3776
3807
|
i();
|
|
3777
3808
|
});
|
|
3778
3809
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return
|
|
3810
|
+
function es(e) {
|
|
3811
|
+
return je(this, void 0, void 0, function* () {
|
|
3781
3812
|
return new Promise((t, o) => {
|
|
3782
3813
|
e.file((n) => {
|
|
3783
|
-
const a =
|
|
3814
|
+
const a = Be(n, e.fullPath);
|
|
3784
3815
|
t(a);
|
|
3785
3816
|
}, (n) => {
|
|
3786
3817
|
o(n);
|
|
@@ -3801,20 +3832,20 @@ var Ct = function(e, t) {
|
|
|
3801
3832
|
}
|
|
3802
3833
|
return !0;
|
|
3803
3834
|
};
|
|
3804
|
-
function
|
|
3805
|
-
return
|
|
3835
|
+
function ro(e) {
|
|
3836
|
+
return ns(e) || os(e) || Ao(e) || ts();
|
|
3806
3837
|
}
|
|
3807
|
-
function
|
|
3838
|
+
function ts() {
|
|
3808
3839
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3809
3840
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3810
3841
|
}
|
|
3811
|
-
function
|
|
3842
|
+
function os(e) {
|
|
3812
3843
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
3813
3844
|
}
|
|
3814
|
-
function
|
|
3845
|
+
function ns(e) {
|
|
3815
3846
|
if (Array.isArray(e)) return St(e);
|
|
3816
3847
|
}
|
|
3817
|
-
function
|
|
3848
|
+
function so(e, t) {
|
|
3818
3849
|
var o = Object.keys(e);
|
|
3819
3850
|
if (Object.getOwnPropertySymbols) {
|
|
3820
3851
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3824,12 +3855,12 @@ function ro(e, t) {
|
|
|
3824
3855
|
}
|
|
3825
3856
|
return o;
|
|
3826
3857
|
}
|
|
3827
|
-
function
|
|
3858
|
+
function po(e) {
|
|
3828
3859
|
for (var t = 1; t < arguments.length; t++) {
|
|
3829
3860
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
3830
|
-
t % 2 ?
|
|
3861
|
+
t % 2 ? so(Object(o), !0).forEach(function(n) {
|
|
3831
3862
|
Fo(e, n, o[n]);
|
|
3832
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) :
|
|
3863
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : so(Object(o)).forEach(function(n) {
|
|
3833
3864
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
3834
3865
|
});
|
|
3835
3866
|
}
|
|
@@ -3839,13 +3870,13 @@ function Fo(e, t, o) {
|
|
|
3839
3870
|
return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
|
|
3840
3871
|
}
|
|
3841
3872
|
function Ue(e, t) {
|
|
3842
|
-
return
|
|
3873
|
+
return rs(e) || is(e, t) || Ao(e, t) || as();
|
|
3843
3874
|
}
|
|
3844
|
-
function
|
|
3875
|
+
function as() {
|
|
3845
3876
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3846
3877
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3847
3878
|
}
|
|
3848
|
-
function
|
|
3879
|
+
function Ao(e, t) {
|
|
3849
3880
|
if (e) {
|
|
3850
3881
|
if (typeof e == "string") return St(e, t);
|
|
3851
3882
|
var o = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -3859,15 +3890,15 @@ function St(e, t) {
|
|
|
3859
3890
|
n[o] = e[o];
|
|
3860
3891
|
return n;
|
|
3861
3892
|
}
|
|
3862
|
-
function
|
|
3893
|
+
function is(e, t) {
|
|
3863
3894
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3864
3895
|
if (o != null) {
|
|
3865
3896
|
var n = [], a = !0, i = !1, r, s;
|
|
3866
3897
|
try {
|
|
3867
3898
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
3868
3899
|
;
|
|
3869
|
-
} catch (
|
|
3870
|
-
i = !0, s =
|
|
3900
|
+
} catch (p) {
|
|
3901
|
+
i = !0, s = p;
|
|
3871
3902
|
} finally {
|
|
3872
3903
|
try {
|
|
3873
3904
|
!a && o.return != null && o.return();
|
|
@@ -3878,55 +3909,55 @@ function as(e, t) {
|
|
|
3878
3909
|
return n;
|
|
3879
3910
|
}
|
|
3880
3911
|
}
|
|
3881
|
-
function
|
|
3912
|
+
function rs(e) {
|
|
3882
3913
|
if (Array.isArray(e)) return e;
|
|
3883
3914
|
}
|
|
3884
|
-
var
|
|
3885
|
-
FileInvalidType:
|
|
3915
|
+
var ss = typeof Ct == "function" ? Ct : Ct.default, jo = "file-invalid-type", Lo = "file-too-large", Do = "file-too-small", ps = "too-many-files", kt = {
|
|
3916
|
+
FileInvalidType: jo,
|
|
3886
3917
|
FileTooLarge: Lo,
|
|
3887
3918
|
FileTooSmall: Do
|
|
3888
|
-
},
|
|
3919
|
+
}, ls = function() {
|
|
3889
3920
|
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];
|
|
3890
3921
|
return {
|
|
3891
|
-
code:
|
|
3922
|
+
code: jo,
|
|
3892
3923
|
message: "File type must be ".concat(n)
|
|
3893
3924
|
};
|
|
3894
|
-
},
|
|
3925
|
+
}, lo = function(t) {
|
|
3895
3926
|
return {
|
|
3896
3927
|
code: Lo,
|
|
3897
3928
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
3898
3929
|
};
|
|
3899
|
-
},
|
|
3930
|
+
}, co = function(t) {
|
|
3900
3931
|
return {
|
|
3901
3932
|
code: Do,
|
|
3902
3933
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
3903
3934
|
};
|
|
3904
|
-
},
|
|
3905
|
-
code:
|
|
3935
|
+
}, cs = {
|
|
3936
|
+
code: ps,
|
|
3906
3937
|
message: "Too many files"
|
|
3907
3938
|
};
|
|
3908
3939
|
function Po(e, t) {
|
|
3909
|
-
var o = e.type === "application/x-moz-file" ||
|
|
3910
|
-
return [o, o ? null :
|
|
3940
|
+
var o = e.type === "application/x-moz-file" || ss(e, t);
|
|
3941
|
+
return [o, o ? null : ls(t)];
|
|
3911
3942
|
}
|
|
3912
|
-
function
|
|
3913
|
-
if (
|
|
3914
|
-
if (
|
|
3915
|
-
if (e.size > o) return [!1,
|
|
3916
|
-
if (e.size < t) return [!1,
|
|
3943
|
+
function Bo(e, t, o) {
|
|
3944
|
+
if (Ae(e.size))
|
|
3945
|
+
if (Ae(t) && Ae(o)) {
|
|
3946
|
+
if (e.size > o) return [!1, lo(o)];
|
|
3947
|
+
if (e.size < t) return [!1, co(t)];
|
|
3917
3948
|
} else {
|
|
3918
|
-
if (
|
|
3919
|
-
if (
|
|
3949
|
+
if (Ae(t) && e.size < t) return [!1, co(t)];
|
|
3950
|
+
if (Ae(o) && e.size > o) return [!1, lo(o)];
|
|
3920
3951
|
}
|
|
3921
3952
|
return [!0, null];
|
|
3922
3953
|
}
|
|
3923
|
-
function
|
|
3954
|
+
function Ae(e) {
|
|
3924
3955
|
return e != null;
|
|
3925
3956
|
}
|
|
3926
|
-
function
|
|
3957
|
+
function ds(e) {
|
|
3927
3958
|
var t = e.files, o = e.accept, n = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
3928
|
-
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(
|
|
3929
|
-
var l = Po(
|
|
3959
|
+
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(p) {
|
|
3960
|
+
var l = Po(p, o), u = Ue(l, 1), _ = u[0], g = Bo(p, n, a), h = Ue(g, 1), w = h[0], C = s ? s(p) : null;
|
|
3930
3961
|
return _ && w && !C;
|
|
3931
3962
|
});
|
|
3932
3963
|
}
|
|
@@ -3938,18 +3969,18 @@ function Ze(e) {
|
|
|
3938
3969
|
return t === "Files" || t === "application/x-moz-file";
|
|
3939
3970
|
}) : !!e.target && !!e.target.files;
|
|
3940
3971
|
}
|
|
3941
|
-
function
|
|
3972
|
+
function mo(e) {
|
|
3942
3973
|
e.preventDefault();
|
|
3943
3974
|
}
|
|
3944
|
-
function
|
|
3975
|
+
function ms(e) {
|
|
3945
3976
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
3946
3977
|
}
|
|
3947
|
-
function
|
|
3978
|
+
function us(e) {
|
|
3948
3979
|
return e.indexOf("Edge/") !== -1;
|
|
3949
3980
|
}
|
|
3950
|
-
function
|
|
3981
|
+
function _s() {
|
|
3951
3982
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
3952
|
-
return
|
|
3983
|
+
return ms(e) || us(e);
|
|
3953
3984
|
}
|
|
3954
3985
|
function Ne() {
|
|
3955
3986
|
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
@@ -3962,17 +3993,17 @@ function Ne() {
|
|
|
3962
3993
|
});
|
|
3963
3994
|
};
|
|
3964
3995
|
}
|
|
3965
|
-
function
|
|
3996
|
+
function fs() {
|
|
3966
3997
|
return "showOpenFilePicker" in window;
|
|
3967
3998
|
}
|
|
3968
|
-
function
|
|
3969
|
-
if (
|
|
3999
|
+
function vs(e) {
|
|
4000
|
+
if (Ae(e)) {
|
|
3970
4001
|
var t = Object.entries(e).filter(function(o) {
|
|
3971
4002
|
var n = Ue(o, 2), a = n[0], i = n[1], r = !0;
|
|
3972
|
-
return
|
|
4003
|
+
return Oo(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(Wo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
3973
4004
|
}).reduce(function(o, n) {
|
|
3974
4005
|
var a = Ue(n, 2), i = a[0], r = a[1];
|
|
3975
|
-
return
|
|
4006
|
+
return po(po({}, o), {}, Fo({}, i, r));
|
|
3976
4007
|
}, {});
|
|
3977
4008
|
return [{
|
|
3978
4009
|
// description is required due to https://crbug.com/1264708
|
|
@@ -3982,45 +4013,45 @@ function fs(e) {
|
|
|
3982
4013
|
}
|
|
3983
4014
|
return e;
|
|
3984
4015
|
}
|
|
3985
|
-
function
|
|
3986
|
-
if (
|
|
4016
|
+
function gs(e) {
|
|
4017
|
+
if (Ae(e))
|
|
3987
4018
|
return Object.entries(e).reduce(function(t, o) {
|
|
3988
4019
|
var n = Ue(o, 2), a = n[0], i = n[1];
|
|
3989
|
-
return [].concat(
|
|
4020
|
+
return [].concat(ro(t), [a], ro(i));
|
|
3990
4021
|
}, []).filter(function(t) {
|
|
3991
|
-
return
|
|
4022
|
+
return Oo(t) || Wo(t);
|
|
3992
4023
|
}).join(",");
|
|
3993
4024
|
}
|
|
3994
|
-
function
|
|
4025
|
+
function xs(e) {
|
|
3995
4026
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
3996
4027
|
}
|
|
3997
|
-
function
|
|
4028
|
+
function hs(e) {
|
|
3998
4029
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
3999
4030
|
}
|
|
4000
|
-
function
|
|
4031
|
+
function Oo(e) {
|
|
4001
4032
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
4002
4033
|
}
|
|
4003
4034
|
function Wo(e) {
|
|
4004
4035
|
return /^.*\.[\w]+$/.test(e);
|
|
4005
4036
|
}
|
|
4006
|
-
var
|
|
4007
|
-
function
|
|
4008
|
-
return
|
|
4037
|
+
var bs = ["children"], ys = ["open"], ws = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Cs = ["refKey", "onChange", "onClick"];
|
|
4038
|
+
function ks(e) {
|
|
4039
|
+
return Es(e) || Ns(e) || zo(e) || Ts();
|
|
4009
4040
|
}
|
|
4010
|
-
function
|
|
4041
|
+
function Ts() {
|
|
4011
4042
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4012
4043
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4013
4044
|
}
|
|
4014
|
-
function
|
|
4045
|
+
function Ns(e) {
|
|
4015
4046
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4016
4047
|
}
|
|
4017
|
-
function
|
|
4048
|
+
function Es(e) {
|
|
4018
4049
|
if (Array.isArray(e)) return Rt(e);
|
|
4019
4050
|
}
|
|
4020
4051
|
function Tt(e, t) {
|
|
4021
|
-
return
|
|
4052
|
+
return Rs(e) || Ss(e, t) || zo(e, t) || Is();
|
|
4022
4053
|
}
|
|
4023
|
-
function
|
|
4054
|
+
function Is() {
|
|
4024
4055
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4025
4056
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4026
4057
|
}
|
|
@@ -4038,15 +4069,15 @@ function Rt(e, t) {
|
|
|
4038
4069
|
n[o] = e[o];
|
|
4039
4070
|
return n;
|
|
4040
4071
|
}
|
|
4041
|
-
function
|
|
4072
|
+
function Ss(e, t) {
|
|
4042
4073
|
var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4043
4074
|
if (o != null) {
|
|
4044
4075
|
var n = [], a = !0, i = !1, r, s;
|
|
4045
4076
|
try {
|
|
4046
4077
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
4047
4078
|
;
|
|
4048
|
-
} catch (
|
|
4049
|
-
i = !0, s =
|
|
4079
|
+
} catch (p) {
|
|
4080
|
+
i = !0, s = p;
|
|
4050
4081
|
} finally {
|
|
4051
4082
|
try {
|
|
4052
4083
|
!a && o.return != null && o.return();
|
|
@@ -4057,10 +4088,10 @@ function Is(e, t) {
|
|
|
4057
4088
|
return n;
|
|
4058
4089
|
}
|
|
4059
4090
|
}
|
|
4060
|
-
function
|
|
4091
|
+
function Rs(e) {
|
|
4061
4092
|
if (Array.isArray(e)) return e;
|
|
4062
4093
|
}
|
|
4063
|
-
function
|
|
4094
|
+
function uo(e, t) {
|
|
4064
4095
|
var o = Object.keys(e);
|
|
4065
4096
|
if (Object.getOwnPropertySymbols) {
|
|
4066
4097
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4073,9 +4104,9 @@ function mo(e, t) {
|
|
|
4073
4104
|
function te(e) {
|
|
4074
4105
|
for (var t = 1; t < arguments.length; t++) {
|
|
4075
4106
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
4076
|
-
t % 2 ?
|
|
4107
|
+
t % 2 ? uo(Object(o), !0).forEach(function(n) {
|
|
4077
4108
|
Ft(e, n, o[n]);
|
|
4078
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) :
|
|
4109
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : uo(Object(o)).forEach(function(n) {
|
|
4079
4110
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
4080
4111
|
});
|
|
4081
4112
|
}
|
|
@@ -4086,7 +4117,7 @@ function Ft(e, t, o) {
|
|
|
4086
4117
|
}
|
|
4087
4118
|
function tt(e, t) {
|
|
4088
4119
|
if (e == null) return {};
|
|
4089
|
-
var o =
|
|
4120
|
+
var o = Fs(e, t), n, a;
|
|
4090
4121
|
if (Object.getOwnPropertySymbols) {
|
|
4091
4122
|
var i = Object.getOwnPropertySymbols(e);
|
|
4092
4123
|
for (a = 0; a < i.length; a++)
|
|
@@ -4094,7 +4125,7 @@ function tt(e, t) {
|
|
|
4094
4125
|
}
|
|
4095
4126
|
return o;
|
|
4096
4127
|
}
|
|
4097
|
-
function
|
|
4128
|
+
function Fs(e, t) {
|
|
4098
4129
|
if (e == null) return {};
|
|
4099
4130
|
var o = {}, n = Object.keys(e), a, i;
|
|
4100
4131
|
for (i = 0; i < n.length; i++)
|
|
@@ -4102,7 +4133,7 @@ function Rs(e, t) {
|
|
|
4102
4133
|
return o;
|
|
4103
4134
|
}
|
|
4104
4135
|
var Ot = /* @__PURE__ */ Ko(function(e, t) {
|
|
4105
|
-
var o = e.children, n = tt(e,
|
|
4136
|
+
var o = e.children, n = tt(e, bs), a = Uo(n), i = a.open, r = tt(a, ys);
|
|
4106
4137
|
return Xo(t, function() {
|
|
4107
4138
|
return {
|
|
4108
4139
|
open: i
|
|
@@ -4114,7 +4145,7 @@ var Ot = /* @__PURE__ */ Ko(function(e, t) {
|
|
|
4114
4145
|
Ot.displayName = "Dropzone";
|
|
4115
4146
|
var Mo = {
|
|
4116
4147
|
disabled: !1,
|
|
4117
|
-
getFilesFromEvent:
|
|
4148
|
+
getFilesFromEvent: Vr,
|
|
4118
4149
|
maxSize: 1 / 0,
|
|
4119
4150
|
minSize: 0,
|
|
4120
4151
|
multiple: !0,
|
|
@@ -4297,7 +4328,7 @@ Ot.propTypes = {
|
|
|
4297
4328
|
*/
|
|
4298
4329
|
validator: S.func
|
|
4299
4330
|
};
|
|
4300
|
-
var
|
|
4331
|
+
var At = {
|
|
4301
4332
|
isFocused: !1,
|
|
4302
4333
|
isFileDialogActive: !1,
|
|
4303
4334
|
isDragActive: !1,
|
|
@@ -4307,55 +4338,55 @@ var jt = {
|
|
|
4307
4338
|
fileRejections: []
|
|
4308
4339
|
};
|
|
4309
4340
|
function Uo() {
|
|
4310
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, Mo), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple,
|
|
4311
|
-
return
|
|
4341
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, Mo), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, u = t.onDragLeave, _ = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, w = t.onDropRejected, C = t.onFileDialogCancel, N = t.onFileDialogOpen, P = t.useFsAccessApi, M = t.autoFocus, A = t.preventDropOnDocument, b = t.noClick, d = t.noKeyboard, T = t.noDrag, B = t.noDragEventsBubbling, Y = t.onError, Z = t.validator, re = Pe(function() {
|
|
4342
|
+
return gs(o);
|
|
4312
4343
|
}, [o]), se = Pe(function() {
|
|
4313
|
-
return
|
|
4344
|
+
return vs(o);
|
|
4314
4345
|
}, [o]), ue = Pe(function() {
|
|
4315
|
-
return typeof
|
|
4316
|
-
}, [
|
|
4317
|
-
return typeof C == "function" ? C :
|
|
4318
|
-
}, [C]), G = me(null), ee = me(null),
|
|
4346
|
+
return typeof N == "function" ? N : _o;
|
|
4347
|
+
}, [N]), ce = Pe(function() {
|
|
4348
|
+
return typeof C == "function" ? C : _o;
|
|
4349
|
+
}, [C]), G = me(null), ee = me(null), J = Go(As, At), k = Tt(J, 2), $ = k[0], W = k[1], m = $.isFocused, v = $.isFileDialogActive, E = me(typeof window < "u" && window.isSecureContext && P && fs()), j = function() {
|
|
4319
4350
|
!E.current && v && setTimeout(function() {
|
|
4320
4351
|
if (ee.current) {
|
|
4321
4352
|
var L = ee.current.files;
|
|
4322
|
-
L.length || (
|
|
4353
|
+
L.length || (W({
|
|
4323
4354
|
type: "closeDialog"
|
|
4324
4355
|
}), ce());
|
|
4325
4356
|
}
|
|
4326
4357
|
}, 300);
|
|
4327
4358
|
};
|
|
4328
|
-
|
|
4329
|
-
return window.addEventListener("focus",
|
|
4330
|
-
window.removeEventListener("focus",
|
|
4359
|
+
oe(function() {
|
|
4360
|
+
return window.addEventListener("focus", j, !1), function() {
|
|
4361
|
+
window.removeEventListener("focus", j, !1);
|
|
4331
4362
|
};
|
|
4332
4363
|
}, [ee, v, ce, E]);
|
|
4333
4364
|
var I = me([]), D = function(L) {
|
|
4334
4365
|
G.current && G.current.contains(L.target) || (L.preventDefault(), I.current = []);
|
|
4335
4366
|
};
|
|
4336
|
-
|
|
4337
|
-
return
|
|
4338
|
-
|
|
4367
|
+
oe(function() {
|
|
4368
|
+
return A && (document.addEventListener("dragover", mo, !1), document.addEventListener("drop", D, !1)), function() {
|
|
4369
|
+
A && (document.removeEventListener("dragover", mo), document.removeEventListener("drop", D));
|
|
4339
4370
|
};
|
|
4340
|
-
}, [G,
|
|
4341
|
-
return !n &&
|
|
4371
|
+
}, [G, A]), oe(function() {
|
|
4372
|
+
return !n && M && G.current && G.current.focus(), function() {
|
|
4342
4373
|
};
|
|
4343
|
-
}, [G,
|
|
4374
|
+
}, [G, M, n]);
|
|
4344
4375
|
var F = xe(function(y) {
|
|
4345
|
-
|
|
4346
|
-
}, [
|
|
4347
|
-
y.preventDefault(), y.persist(), He(y), I.current = [].concat(
|
|
4348
|
-
if (!(et(y) && !
|
|
4349
|
-
var
|
|
4376
|
+
Y ? Y(y) : console.error(y);
|
|
4377
|
+
}, [Y]), O = xe(function(y) {
|
|
4378
|
+
y.preventDefault(), y.persist(), He(y), I.current = [].concat(ks(I.current), [y.target]), Ze(y) && Promise.resolve(a(y)).then(function(L) {
|
|
4379
|
+
if (!(et(y) && !B)) {
|
|
4380
|
+
var ne = L.length, pe = ne > 0 && ds({
|
|
4350
4381
|
files: L,
|
|
4351
4382
|
accept: re,
|
|
4352
4383
|
minSize: r,
|
|
4353
4384
|
maxSize: i,
|
|
4354
4385
|
multiple: s,
|
|
4355
|
-
maxFiles:
|
|
4386
|
+
maxFiles: p,
|
|
4356
4387
|
validator: Z
|
|
4357
|
-
}), be =
|
|
4358
|
-
|
|
4388
|
+
}), be = ne > 0 && !pe;
|
|
4389
|
+
W({
|
|
4359
4390
|
isDragAccept: pe,
|
|
4360
4391
|
isDragReject: be,
|
|
4361
4392
|
isDragActive: !0,
|
|
@@ -4365,7 +4396,7 @@ function Uo() {
|
|
|
4365
4396
|
}).catch(function(L) {
|
|
4366
4397
|
return F(L);
|
|
4367
4398
|
});
|
|
4368
|
-
}, [a, l, F,
|
|
4399
|
+
}, [a, l, F, B, re, r, i, s, p, Z]), q = xe(function(y) {
|
|
4369
4400
|
y.preventDefault(), y.persist(), He(y);
|
|
4370
4401
|
var L = Ze(y);
|
|
4371
4402
|
if (L && y.dataTransfer)
|
|
@@ -4374,23 +4405,23 @@ function Uo() {
|
|
|
4374
4405
|
} catch {
|
|
4375
4406
|
}
|
|
4376
4407
|
return L && _ && _(y), !1;
|
|
4377
|
-
}, [_,
|
|
4408
|
+
}, [_, B]), V = xe(function(y) {
|
|
4378
4409
|
y.preventDefault(), y.persist(), He(y);
|
|
4379
4410
|
var L = I.current.filter(function(pe) {
|
|
4380
4411
|
return G.current && G.current.contains(pe);
|
|
4381
|
-
}),
|
|
4382
|
-
|
|
4412
|
+
}), ne = L.indexOf(y.target);
|
|
4413
|
+
ne !== -1 && L.splice(ne, 1), I.current = L, !(L.length > 0) && (W({
|
|
4383
4414
|
type: "setDraggedFiles",
|
|
4384
4415
|
isDragActive: !1,
|
|
4385
4416
|
isDragAccept: !1,
|
|
4386
4417
|
isDragReject: !1
|
|
4387
4418
|
}), Ze(y) && u && u(y));
|
|
4388
|
-
}, [G, u,
|
|
4389
|
-
var
|
|
4419
|
+
}, [G, u, B]), U = xe(function(y, L) {
|
|
4420
|
+
var ne = [], pe = [];
|
|
4390
4421
|
y.forEach(function(be) {
|
|
4391
|
-
var We = Po(be, re), De = Tt(We, 2), it = De[0], rt = De[1], st =
|
|
4422
|
+
var We = Po(be, re), De = Tt(We, 2), it = De[0], rt = De[1], st = Bo(be, r, i), Ve = Tt(st, 2), pt = Ve[0], lt = Ve[1], ct = Z ? Z(be) : null;
|
|
4392
4423
|
if (it && pt && !ct)
|
|
4393
|
-
|
|
4424
|
+
ne.push(be);
|
|
4394
4425
|
else {
|
|
4395
4426
|
var dt = [rt, lt];
|
|
4396
4427
|
ct && (dt = dt.concat(ct)), pe.push({
|
|
@@ -4400,28 +4431,28 @@ function Uo() {
|
|
|
4400
4431
|
})
|
|
4401
4432
|
});
|
|
4402
4433
|
}
|
|
4403
|
-
}), (!s &&
|
|
4434
|
+
}), (!s && ne.length > 1 || s && p >= 1 && ne.length > p) && (ne.forEach(function(be) {
|
|
4404
4435
|
pe.push({
|
|
4405
4436
|
file: be,
|
|
4406
|
-
errors: [
|
|
4437
|
+
errors: [cs]
|
|
4407
4438
|
});
|
|
4408
|
-
}),
|
|
4409
|
-
acceptedFiles:
|
|
4439
|
+
}), ne.splice(0)), W({
|
|
4440
|
+
acceptedFiles: ne,
|
|
4410
4441
|
fileRejections: pe,
|
|
4411
4442
|
isDragReject: pe.length > 0,
|
|
4412
4443
|
type: "setFiles"
|
|
4413
|
-
}), g && g(
|
|
4414
|
-
}, [
|
|
4444
|
+
}), g && g(ne, pe, L), pe.length > 0 && w && w(pe, L), ne.length > 0 && h && h(ne, L);
|
|
4445
|
+
}, [W, s, re, r, i, p, g, h, w, Z]), ie = xe(function(y) {
|
|
4415
4446
|
y.preventDefault(), y.persist(), He(y), I.current = [], Ze(y) && Promise.resolve(a(y)).then(function(L) {
|
|
4416
|
-
et(y) && !
|
|
4447
|
+
et(y) && !B || U(L, y);
|
|
4417
4448
|
}).catch(function(L) {
|
|
4418
4449
|
return F(L);
|
|
4419
|
-
}),
|
|
4450
|
+
}), W({
|
|
4420
4451
|
type: "reset"
|
|
4421
4452
|
});
|
|
4422
|
-
}, [a,
|
|
4453
|
+
}, [a, U, F, B]), x = xe(function() {
|
|
4423
4454
|
if (E.current) {
|
|
4424
|
-
|
|
4455
|
+
W({
|
|
4425
4456
|
type: "openDialog"
|
|
4426
4457
|
}), ue();
|
|
4427
4458
|
var y = {
|
|
@@ -4431,61 +4462,61 @@ function Uo() {
|
|
|
4431
4462
|
window.showOpenFilePicker(y).then(function(L) {
|
|
4432
4463
|
return a(L);
|
|
4433
4464
|
}).then(function(L) {
|
|
4434
|
-
|
|
4465
|
+
U(L, null), W({
|
|
4435
4466
|
type: "closeDialog"
|
|
4436
4467
|
});
|
|
4437
4468
|
}).catch(function(L) {
|
|
4438
|
-
|
|
4469
|
+
xs(L) ? (ce(L), W({
|
|
4439
4470
|
type: "closeDialog"
|
|
4440
|
-
})) :
|
|
4471
|
+
})) : hs(L) ? (E.current = !1, ee.current ? (ee.current.value = null, ee.current.click()) : F(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."))) : F(L);
|
|
4441
4472
|
});
|
|
4442
4473
|
return;
|
|
4443
4474
|
}
|
|
4444
|
-
ee.current && (
|
|
4475
|
+
ee.current && (W({
|
|
4445
4476
|
type: "openDialog"
|
|
4446
4477
|
}), ue(), ee.current.value = null, ee.current.click());
|
|
4447
|
-
}, [
|
|
4448
|
-
!G.current || !G.current.isEqualNode(y.target) || (y.key === " " || y.key === "Enter" || y.keyCode === 32 || y.keyCode === 13) && (y.preventDefault(),
|
|
4449
|
-
}, [G,
|
|
4450
|
-
|
|
4478
|
+
}, [W, ue, ce, P, U, F, se, s]), he = xe(function(y) {
|
|
4479
|
+
!G.current || !G.current.isEqualNode(y.target) || (y.key === " " || y.key === "Enter" || y.keyCode === 32 || y.keyCode === 13) && (y.preventDefault(), x());
|
|
4480
|
+
}, [G, x]), Se = xe(function() {
|
|
4481
|
+
W({
|
|
4451
4482
|
type: "focus"
|
|
4452
4483
|
});
|
|
4453
|
-
}, []),
|
|
4454
|
-
|
|
4484
|
+
}, []), Oe = xe(function() {
|
|
4485
|
+
W({
|
|
4455
4486
|
type: "blur"
|
|
4456
4487
|
});
|
|
4457
|
-
}, []),
|
|
4458
|
-
b || (
|
|
4459
|
-
}, [b,
|
|
4488
|
+
}, []), Wt = xe(function() {
|
|
4489
|
+
b || (_s() ? setTimeout(x, 0) : x());
|
|
4490
|
+
}, [b, x]), Le = function(L) {
|
|
4460
4491
|
return n ? null : L;
|
|
4461
4492
|
}, at = function(L) {
|
|
4462
|
-
return
|
|
4493
|
+
return d ? null : Le(L);
|
|
4463
4494
|
}, qe = function(L) {
|
|
4464
|
-
return
|
|
4495
|
+
return T ? null : Le(L);
|
|
4465
4496
|
}, He = function(L) {
|
|
4466
|
-
|
|
4497
|
+
B && L.stopPropagation();
|
|
4467
4498
|
}, $o = Pe(function() {
|
|
4468
4499
|
return function() {
|
|
4469
|
-
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey,
|
|
4500
|
+
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.role, be = y.onKeyDown, We = y.onFocus, De = y.onBlur, it = y.onClick, rt = y.onDragEnter, st = y.onDragOver, Ve = y.onDragLeave, pt = y.onDrop, lt = tt(y, ws);
|
|
4470
4501
|
return te(te(Ft({
|
|
4471
4502
|
onKeyDown: at(Ne(be, he)),
|
|
4472
4503
|
onFocus: at(Ne(We, Se)),
|
|
4473
|
-
onBlur: at(Ne(De,
|
|
4474
|
-
onClick: Le(Ne(it,
|
|
4475
|
-
onDragEnter: qe(Ne(rt,
|
|
4476
|
-
onDragOver: qe(Ne(st,
|
|
4477
|
-
onDragLeave: qe(Ne(Ve,
|
|
4504
|
+
onBlur: at(Ne(De, Oe)),
|
|
4505
|
+
onClick: Le(Ne(it, Wt)),
|
|
4506
|
+
onDragEnter: qe(Ne(rt, O)),
|
|
4507
|
+
onDragOver: qe(Ne(st, q)),
|
|
4508
|
+
onDragLeave: qe(Ne(Ve, V)),
|
|
4478
4509
|
onDrop: qe(Ne(pt, ie)),
|
|
4479
4510
|
role: typeof pe == "string" && pe !== "" ? pe : "presentation"
|
|
4480
|
-
},
|
|
4511
|
+
}, ne, G), !n && !d ? {
|
|
4481
4512
|
tabIndex: 0
|
|
4482
4513
|
} : {}), lt);
|
|
4483
4514
|
};
|
|
4484
|
-
}, [G, he, Se,
|
|
4515
|
+
}, [G, he, Se, Oe, Wt, O, q, V, ie, d, T, n]), qo = xe(function(y) {
|
|
4485
4516
|
y.stopPropagation();
|
|
4486
4517
|
}, []), Ho = Pe(function() {
|
|
4487
4518
|
return function() {
|
|
4488
|
-
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey,
|
|
4519
|
+
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.onChange, be = y.onClick, We = tt(y, Cs), De = Ft({
|
|
4489
4520
|
accept: re,
|
|
4490
4521
|
multiple: s,
|
|
4491
4522
|
type: "file",
|
|
@@ -4504,20 +4535,20 @@ function Uo() {
|
|
|
4504
4535
|
onChange: Le(Ne(pe, ie)),
|
|
4505
4536
|
onClick: Le(Ne(be, qo)),
|
|
4506
4537
|
tabIndex: -1
|
|
4507
|
-
},
|
|
4538
|
+
}, ne, ee);
|
|
4508
4539
|
return te(te({}, De), We);
|
|
4509
4540
|
};
|
|
4510
4541
|
}, [ee, o, s, ie, n]);
|
|
4511
|
-
return te(te({},
|
|
4512
|
-
isFocused:
|
|
4542
|
+
return te(te({}, $), {}, {
|
|
4543
|
+
isFocused: m && !n,
|
|
4513
4544
|
getRootProps: $o,
|
|
4514
4545
|
getInputProps: Ho,
|
|
4515
4546
|
rootRef: G,
|
|
4516
4547
|
inputRef: ee,
|
|
4517
|
-
open: Le(
|
|
4548
|
+
open: Le(x)
|
|
4518
4549
|
});
|
|
4519
4550
|
}
|
|
4520
|
-
function
|
|
4551
|
+
function As(e, t) {
|
|
4521
4552
|
switch (t.type) {
|
|
4522
4553
|
case "focus":
|
|
4523
4554
|
return te(te({}, e), {}, {
|
|
@@ -4528,7 +4559,7 @@ function Fs(e, t) {
|
|
|
4528
4559
|
isFocused: !1
|
|
4529
4560
|
});
|
|
4530
4561
|
case "openDialog":
|
|
4531
|
-
return te(te({},
|
|
4562
|
+
return te(te({}, At), {}, {
|
|
4532
4563
|
isFileDialogActive: !0
|
|
4533
4564
|
});
|
|
4534
4565
|
case "closeDialog":
|
|
@@ -4548,14 +4579,14 @@ function Fs(e, t) {
|
|
|
4548
4579
|
isDragReject: t.isDragReject
|
|
4549
4580
|
});
|
|
4550
4581
|
case "reset":
|
|
4551
|
-
return te({},
|
|
4582
|
+
return te({}, At);
|
|
4552
4583
|
default:
|
|
4553
4584
|
return e;
|
|
4554
4585
|
}
|
|
4555
4586
|
}
|
|
4556
|
-
function
|
|
4587
|
+
function _o() {
|
|
4557
4588
|
}
|
|
4558
|
-
const js = (e) => Uo(e),
|
|
4589
|
+
const js = (e) => Uo(e), Ls = (e) => {
|
|
4559
4590
|
switch (e.code) {
|
|
4560
4591
|
case kt.FileInvalidType:
|
|
4561
4592
|
return "Неверный формат файла";
|
|
@@ -4565,52 +4596,52 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4565
4596
|
default:
|
|
4566
4597
|
return "";
|
|
4567
4598
|
}
|
|
4568
|
-
},
|
|
4599
|
+
}, Ds = (e) => {
|
|
4569
4600
|
var t;
|
|
4570
4601
|
return Et(e) ? "" : (t = e.split(".").pop()) == null ? void 0 : t.toLowerCase();
|
|
4571
|
-
},
|
|
4602
|
+
}, Ps = (e, t = {}) => {
|
|
4572
4603
|
const { decimals: o = 1, space: n = !0 } = t;
|
|
4573
4604
|
if (e === 0) return "0" + (n ? " " : "") + "B";
|
|
4574
|
-
const a = 1024, i = ["B", "KB", "MB", "GB", "TB"], r = Math.floor(Math.log(e) / Math.log(a)), s = r === 0 ? 0 : o,
|
|
4575
|
-
return parseFloat((e / Math.pow(a, r)).toFixed(s)) +
|
|
4576
|
-
},
|
|
4577
|
-
ellipsisFileName:
|
|
4605
|
+
const a = 1024, i = ["B", "KB", "MB", "GB", "TB"], r = Math.floor(Math.log(e) / Math.log(a)), s = r === 0 ? 0 : o, p = n ? " " : "";
|
|
4606
|
+
return parseFloat((e / Math.pow(a, r)).toFixed(s)) + p + i[r];
|
|
4607
|
+
}, Bs = "_ellipsisFileName_qx34h_1", Os = "_tooltipContent_qx34h_7", fo = {
|
|
4608
|
+
ellipsisFileName: Bs,
|
|
4578
4609
|
tooltipContent: Os
|
|
4579
|
-
},
|
|
4610
|
+
}, Ws = (e) => {
|
|
4580
4611
|
const {
|
|
4581
4612
|
fileName: t,
|
|
4582
4613
|
classNameRoot: o,
|
|
4583
4614
|
type: n = "p2",
|
|
4584
4615
|
classNameEllipsisText: a,
|
|
4585
4616
|
classNameEllipsisFileNameRoot: i
|
|
4586
|
-
} = e, r = me(null), s = me(null), [
|
|
4617
|
+
} = e, r = me(null), s = me(null), [p, l] = Q(!1), [u, _] = Q(0), g = () => {
|
|
4587
4618
|
r.current && l(r.current.scrollWidth > r.current.clientWidth), s.current && _(s.current.offsetWidth);
|
|
4588
4619
|
};
|
|
4589
4620
|
Qo(() => (g(), window.addEventListener("resize", g), () => {
|
|
4590
4621
|
window.removeEventListener("resize", g);
|
|
4591
4622
|
}), [t]);
|
|
4592
|
-
const
|
|
4593
|
-
return /* @__PURE__ */
|
|
4623
|
+
const h = Ds(t);
|
|
4624
|
+
return /* @__PURE__ */ z(
|
|
4594
4625
|
"div",
|
|
4595
4626
|
{
|
|
4596
4627
|
className: f(
|
|
4597
|
-
|
|
4628
|
+
fo.ellipsisFileName,
|
|
4598
4629
|
i && i
|
|
4599
4630
|
),
|
|
4600
4631
|
children: [
|
|
4601
|
-
/* @__PURE__ */
|
|
4632
|
+
/* @__PURE__ */ c(
|
|
4602
4633
|
ot,
|
|
4603
4634
|
{
|
|
4604
4635
|
position: le.TopLeft,
|
|
4605
|
-
classNameBaseTooltipRoot:
|
|
4606
|
-
styleTooltip: { maxWidth:
|
|
4636
|
+
classNameBaseTooltipRoot: fo.tooltipContent,
|
|
4637
|
+
styleTooltip: { maxWidth: p ? `calc(100% - ${u}px)` : "100%" },
|
|
4607
4638
|
classNameTooltip: o,
|
|
4608
|
-
isVisibleTooltip:
|
|
4639
|
+
isVisibleTooltip: p,
|
|
4609
4640
|
text: t,
|
|
4610
|
-
trigger: /* @__PURE__ */
|
|
4641
|
+
trigger: /* @__PURE__ */ c(Te, { type: n, isEllipsis: !0, ref: r, classNameRoot: a, children: t })
|
|
4611
4642
|
}
|
|
4612
4643
|
),
|
|
4613
|
-
/* @__PURE__ */
|
|
4644
|
+
/* @__PURE__ */ c(
|
|
4614
4645
|
"div",
|
|
4615
4646
|
{
|
|
4616
4647
|
ref: s,
|
|
@@ -4620,48 +4651,48 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4620
4651
|
pointerEvents: "none",
|
|
4621
4652
|
whiteSpace: "nowrap"
|
|
4622
4653
|
},
|
|
4623
|
-
children: /* @__PURE__ */
|
|
4654
|
+
children: /* @__PURE__ */ c(Te, { type: n, classNameRoot: a, children: h })
|
|
4624
4655
|
}
|
|
4625
4656
|
),
|
|
4626
|
-
|
|
4657
|
+
p && /* @__PURE__ */ c(Te, { type: n, classNameRoot: a, children: h })
|
|
4627
4658
|
]
|
|
4628
4659
|
}
|
|
4629
4660
|
);
|
|
4630
|
-
},
|
|
4631
|
-
spUploadFiles:
|
|
4632
|
-
spUploadFiles_error:
|
|
4633
|
-
spUploadFiles__control:
|
|
4634
|
-
spUploadFiles__fileNameContainer:
|
|
4635
|
-
spUploadFiles__fileName_dragError:
|
|
4636
|
-
spUploadFiles__placeholderContainer:
|
|
4661
|
+
}, zs = "_spUploadFiles_1i7hm_43", Ms = "_spUploadFiles_error_1i7hm_50", Us = "_spUploadFiles__control_1i7hm_50", $s = "_spUploadFiles__fileNameContainer_1i7hm_54", qs = "_spUploadFiles__fileName_dragError_1i7hm_58", Hs = "_spUploadFiles__placeholderContainer_1i7hm_61", Vs = "_spUploadFiles__placeholderContainer_withUloadTooltip_1i7hm_71", Ys = "_spUploadFiles__placeholder_1i7hm_61", Gs = "_spUploadFiles__control_loading_1i7hm_103", Ks = "_shimmer_1i7hm_1", Xs = "_spUploadFiles__fileName_1i7hm_54", Zs = "_spUploadFiles_fileUploaded_1i7hm_150", Qs = "_spUploadFiles_disabled_1i7hm_150", Js = "_spUploadFiles__fileNamesList_1i7hm_161", ep = "_spUploadFiles__fileNamesList_loading_1i7hm_172", tp = "_spUploadFiles__fileNamesListItem_1i7hm_177", op = "_spUploadFiles__fileNamesListItem__iconContainer_1i7hm_204", np = "_spUploadFiles__fileNamesListItem__iconContainer_error_1i7hm_213", ap = "_spUploadFiles__fileNamesListItem__mainContent_1i7hm_218", ip = "_spUploadFiles__fileNamesListItem__fileNameWrapper_1i7hm_225", rp = "_spUploadFiles__fileNamesListItem__fileName_1i7hm_225", sp = "_spUploadFiles__fileNamesListItem__description_1i7hm_232", pp = "_spUploadFiles__fileNamesListItem__description__tooltipContent_1i7hm_237", lp = "_spUploadFiles__fileNamesListItem__description_error_1i7hm_240", cp = "_spUploadFiles__fileNamesListItemDelete_1i7hm_243", dp = "_spUploadFiles__fileNamesListItemDelete_error_1i7hm_260", mp = "_spUploadFiles__tooltipWrapper_1i7hm_270", up = "_spUploadFiles__tooltip_1i7hm_270", _p = "_spUploadFiles__delete_1i7hm_276", fp = "_spUploadFiles__delete_loading_1i7hm_280", vp = "_spUploadFiles__error_1i7hm_289", H = {
|
|
4662
|
+
spUploadFiles: zs,
|
|
4663
|
+
spUploadFiles_error: Ms,
|
|
4664
|
+
spUploadFiles__control: Us,
|
|
4665
|
+
spUploadFiles__fileNameContainer: $s,
|
|
4666
|
+
spUploadFiles__fileName_dragError: qs,
|
|
4667
|
+
spUploadFiles__placeholderContainer: Hs,
|
|
4637
4668
|
"spUploadFiles--variant-input": "_spUploadFiles--variant-input_1i7hm_64",
|
|
4638
|
-
spUploadFiles__placeholderContainer_withUloadTooltip:
|
|
4639
|
-
spUploadFiles__placeholder:
|
|
4669
|
+
spUploadFiles__placeholderContainer_withUloadTooltip: Vs,
|
|
4670
|
+
spUploadFiles__placeholder: Ys,
|
|
4640
4671
|
"spUploadFiles--variant-dropzone": "_spUploadFiles--variant-dropzone_1i7hm_86",
|
|
4641
|
-
spUploadFiles__control_loading:
|
|
4642
|
-
shimmer:
|
|
4643
|
-
spUploadFiles__fileName:
|
|
4644
|
-
spUploadFiles_fileUploaded:
|
|
4645
|
-
spUploadFiles_disabled:
|
|
4646
|
-
spUploadFiles__fileNamesList:
|
|
4647
|
-
spUploadFiles__fileNamesList_loading:
|
|
4648
|
-
spUploadFiles__fileNamesListItem:
|
|
4649
|
-
spUploadFiles__fileNamesListItem__iconContainer:
|
|
4650
|
-
spUploadFiles__fileNamesListItem__iconContainer_error:
|
|
4651
|
-
spUploadFiles__fileNamesListItem__mainContent:
|
|
4652
|
-
spUploadFiles__fileNamesListItem__fileNameWrapper:
|
|
4653
|
-
spUploadFiles__fileNamesListItem__fileName:
|
|
4654
|
-
spUploadFiles__fileNamesListItem__description:
|
|
4655
|
-
spUploadFiles__fileNamesListItem__description__tooltipContent:
|
|
4656
|
-
spUploadFiles__fileNamesListItem__description_error:
|
|
4657
|
-
spUploadFiles__fileNamesListItemDelete:
|
|
4658
|
-
spUploadFiles__fileNamesListItemDelete_error:
|
|
4659
|
-
spUploadFiles__tooltipWrapper:
|
|
4660
|
-
spUploadFiles__tooltip:
|
|
4661
|
-
spUploadFiles__delete:
|
|
4662
|
-
spUploadFiles__delete_loading:
|
|
4663
|
-
spUploadFiles__error:
|
|
4664
|
-
},
|
|
4672
|
+
spUploadFiles__control_loading: Gs,
|
|
4673
|
+
shimmer: Ks,
|
|
4674
|
+
spUploadFiles__fileName: Xs,
|
|
4675
|
+
spUploadFiles_fileUploaded: Zs,
|
|
4676
|
+
spUploadFiles_disabled: Qs,
|
|
4677
|
+
spUploadFiles__fileNamesList: Js,
|
|
4678
|
+
spUploadFiles__fileNamesList_loading: ep,
|
|
4679
|
+
spUploadFiles__fileNamesListItem: tp,
|
|
4680
|
+
spUploadFiles__fileNamesListItem__iconContainer: op,
|
|
4681
|
+
spUploadFiles__fileNamesListItem__iconContainer_error: np,
|
|
4682
|
+
spUploadFiles__fileNamesListItem__mainContent: ap,
|
|
4683
|
+
spUploadFiles__fileNamesListItem__fileNameWrapper: ip,
|
|
4684
|
+
spUploadFiles__fileNamesListItem__fileName: rp,
|
|
4685
|
+
spUploadFiles__fileNamesListItem__description: sp,
|
|
4686
|
+
spUploadFiles__fileNamesListItem__description__tooltipContent: pp,
|
|
4687
|
+
spUploadFiles__fileNamesListItem__description_error: lp,
|
|
4688
|
+
spUploadFiles__fileNamesListItemDelete: cp,
|
|
4689
|
+
spUploadFiles__fileNamesListItemDelete_error: dp,
|
|
4690
|
+
spUploadFiles__tooltipWrapper: mp,
|
|
4691
|
+
spUploadFiles__tooltip: up,
|
|
4692
|
+
spUploadFiles__delete: _p,
|
|
4693
|
+
spUploadFiles__delete_loading: fp,
|
|
4694
|
+
spUploadFiles__error: vp
|
|
4695
|
+
}, qp = (e) => {
|
|
4665
4696
|
const {
|
|
4666
4697
|
placeholder: t = "Загрузите файл",
|
|
4667
4698
|
variant: o = "input",
|
|
@@ -4670,199 +4701,199 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4670
4701
|
accept: i,
|
|
4671
4702
|
disabled: r,
|
|
4672
4703
|
multiple: s,
|
|
4673
|
-
files:
|
|
4704
|
+
files: p = [],
|
|
4674
4705
|
infoTooltipText: l,
|
|
4675
4706
|
tooltipPosition: u = le.TopRight,
|
|
4676
4707
|
classNameRoot: _,
|
|
4677
4708
|
loading: g,
|
|
4678
|
-
error:
|
|
4679
|
-
} = e, [w, C] =
|
|
4709
|
+
error: h
|
|
4710
|
+
} = e, [w, C] = Q([]), N = xe(
|
|
4680
4711
|
(v, E) => {
|
|
4681
|
-
const
|
|
4712
|
+
const j = E.map(({ file: D, errors: F }) => ({
|
|
4682
4713
|
file: D,
|
|
4683
4714
|
errors: F
|
|
4684
4715
|
}));
|
|
4685
|
-
if (C([...
|
|
4716
|
+
if (C([...j, ...w]), !s) {
|
|
4686
4717
|
a(v, n);
|
|
4687
4718
|
return;
|
|
4688
4719
|
}
|
|
4689
|
-
const I = [...
|
|
4720
|
+
const I = [...p, ...v];
|
|
4690
4721
|
a(I, n);
|
|
4691
4722
|
},
|
|
4692
|
-
[w,
|
|
4693
|
-
), { getRootProps:
|
|
4723
|
+
[w, p, s, n, a]
|
|
4724
|
+
), { getRootProps: P, getInputProps: M, isDragReject: A } = js({
|
|
4694
4725
|
accept: i,
|
|
4695
|
-
onDrop:
|
|
4726
|
+
onDrop: N,
|
|
4696
4727
|
multiple: s,
|
|
4697
4728
|
disabled: r
|
|
4698
|
-
}), [b,
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
}, [
|
|
4702
|
-
const
|
|
4703
|
-
[
|
|
4704
|
-
[
|
|
4705
|
-
[
|
|
4706
|
-
[
|
|
4707
|
-
[
|
|
4729
|
+
}), [b, d] = Q(A);
|
|
4730
|
+
oe(() => {
|
|
4731
|
+
d(A);
|
|
4732
|
+
}, [A]);
|
|
4733
|
+
const T = [...p.map((v) => ({ file: v, errors: null })), ...w], B = (T == null ? void 0 : T.length) > 0 || (w == null ? void 0 : w.length) > 0, Y = o === "input", Z = f({
|
|
4734
|
+
[H.spUploadFiles]: !0,
|
|
4735
|
+
[H[`spUploadFiles--variant-${o}`]]: o,
|
|
4736
|
+
[H.spUploadFiles_error]: b && !s && h && h.length > 0,
|
|
4737
|
+
[H.spUploadFiles_disabled]: r,
|
|
4738
|
+
[H.spUploadFiles_fileUploaded]: B,
|
|
4708
4739
|
..._ && { [_]: !0 }
|
|
4709
4740
|
}), re = f({
|
|
4710
|
-
[
|
|
4711
|
-
[
|
|
4741
|
+
[H.spUploadFiles__control]: !0,
|
|
4742
|
+
[H.spUploadFiles__control_loading]: g
|
|
4712
4743
|
}), se = f({
|
|
4713
|
-
[
|
|
4714
|
-
[
|
|
4744
|
+
[H.spUploadFiles__fileNamesList]: !0,
|
|
4745
|
+
[H.spUploadFiles__fileNamesList_loading]: g
|
|
4715
4746
|
}), ue = f({
|
|
4716
|
-
[
|
|
4717
|
-
[
|
|
4747
|
+
[H.spUploadFiles__delete]: !0,
|
|
4748
|
+
[H.spUploadFiles__delete_loading]: g
|
|
4718
4749
|
}), ce = (v, E) => {
|
|
4719
4750
|
if (g)
|
|
4720
4751
|
return;
|
|
4721
4752
|
if (E) {
|
|
4722
|
-
const D = [...w], F = D.findIndex((
|
|
4753
|
+
const D = [...w], F = D.findIndex((O) => O.file.name === v);
|
|
4723
4754
|
D.splice(F, 1), C(D);
|
|
4724
4755
|
return;
|
|
4725
4756
|
}
|
|
4726
|
-
const
|
|
4727
|
-
|
|
4757
|
+
const j = [...p], I = j.findIndex((D) => D.name === v);
|
|
4758
|
+
j.splice(I, 1), a(j, n);
|
|
4728
4759
|
}, G = (v) => {
|
|
4729
|
-
v.stopPropagation(), a([], n), C([]),
|
|
4730
|
-
}, ee = (v) => Object.values(v).flatMap((E) => E.map((
|
|
4760
|
+
v.stopPropagation(), a([], n), C([]), d(!1);
|
|
4761
|
+
}, ee = (v) => Object.values(v).flatMap((E) => E.map((j) => j.toUpperCase())).join(", "), J = () => {
|
|
4731
4762
|
if (b) {
|
|
4732
4763
|
const v = ee(i);
|
|
4733
|
-
return /* @__PURE__ */
|
|
4764
|
+
return /* @__PURE__ */ c(
|
|
4734
4765
|
Ge,
|
|
4735
4766
|
{
|
|
4736
4767
|
text: `Неверный формат файла. Загрузите файл в формате ${v}`,
|
|
4737
|
-
classNameTooltipRoot: f(
|
|
4768
|
+
classNameTooltipRoot: f(H.spUploadFiles__fileNameContainer),
|
|
4738
4769
|
classNameRoot: f(
|
|
4739
|
-
|
|
4740
|
-
b &&
|
|
4770
|
+
H.spUploadFiles__fileName,
|
|
4771
|
+
b && H.spUploadFiles__fileName_dragError
|
|
4741
4772
|
)
|
|
4742
4773
|
}
|
|
4743
4774
|
);
|
|
4744
4775
|
}
|
|
4745
|
-
return /* @__PURE__ */
|
|
4776
|
+
return /* @__PURE__ */ c(
|
|
4746
4777
|
Ge,
|
|
4747
4778
|
{
|
|
4748
|
-
text:
|
|
4749
|
-
classNameTooltipRoot: f(
|
|
4750
|
-
classNameRoot: f(
|
|
4779
|
+
text: T[0].file.name,
|
|
4780
|
+
classNameTooltipRoot: f(H.spUploadFiles__fileNameContainer),
|
|
4781
|
+
classNameRoot: f(H.spUploadFiles__fileName)
|
|
4751
4782
|
}
|
|
4752
4783
|
);
|
|
4753
|
-
}, k = () => /* @__PURE__ */
|
|
4754
|
-
const I = E ? (E == null ? void 0 : E.length) > 0 : void 0, D = () => E ? E == null ? void 0 : E.map(
|
|
4755
|
-
return /* @__PURE__ */
|
|
4784
|
+
}, k = () => /* @__PURE__ */ c("ul", { className: se, children: T.map(({ file: v, errors: E }, j) => {
|
|
4785
|
+
const I = E ? (E == null ? void 0 : E.length) > 0 : void 0, D = () => E ? E == null ? void 0 : E.map(Ls).join(", ") : "";
|
|
4786
|
+
return /* @__PURE__ */ z(
|
|
4756
4787
|
"li",
|
|
4757
4788
|
{
|
|
4758
4789
|
className: f(
|
|
4759
|
-
|
|
4760
|
-
I &&
|
|
4790
|
+
H.spUploadFiles__fileNamesListItem,
|
|
4791
|
+
I && H.spUploadFiles__fileNamesListItem_error
|
|
4761
4792
|
),
|
|
4762
4793
|
onClick: (F) => {
|
|
4763
4794
|
F.stopPropagation();
|
|
4764
4795
|
},
|
|
4765
4796
|
children: [
|
|
4766
|
-
/* @__PURE__ */
|
|
4797
|
+
/* @__PURE__ */ c(
|
|
4767
4798
|
"div",
|
|
4768
4799
|
{
|
|
4769
4800
|
className: f(
|
|
4770
|
-
|
|
4771
|
-
I &&
|
|
4801
|
+
H.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4802
|
+
I && H.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4772
4803
|
),
|
|
4773
|
-
children: /* @__PURE__ */
|
|
4804
|
+
children: /* @__PURE__ */ c(ve, { name: I ? ae.InfoError : ae.File })
|
|
4774
4805
|
}
|
|
4775
4806
|
),
|
|
4776
|
-
/* @__PURE__ */
|
|
4777
|
-
/* @__PURE__ */
|
|
4778
|
-
|
|
4807
|
+
/* @__PURE__ */ z("div", { className: H.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
4808
|
+
/* @__PURE__ */ c(
|
|
4809
|
+
Ws,
|
|
4779
4810
|
{
|
|
4780
4811
|
fileName: v.name,
|
|
4781
|
-
classNameEllipsisFileNameRoot:
|
|
4782
|
-
classNameEllipsisText:
|
|
4812
|
+
classNameEllipsisFileNameRoot: H.spUploadFiles__fileNamesListItem__fileNameWrapper,
|
|
4813
|
+
classNameEllipsisText: H.spUploadFiles__fileNamesListItem__fileName
|
|
4783
4814
|
}
|
|
4784
4815
|
),
|
|
4785
|
-
/* @__PURE__ */
|
|
4816
|
+
/* @__PURE__ */ c(
|
|
4786
4817
|
Ge,
|
|
4787
4818
|
{
|
|
4788
|
-
text: I ? D() :
|
|
4789
|
-
classNameBaseTooltipRoot:
|
|
4819
|
+
text: I ? D() : Ps(v.size),
|
|
4820
|
+
classNameBaseTooltipRoot: H.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4790
4821
|
classNameRoot: f(
|
|
4791
|
-
|
|
4792
|
-
I &&
|
|
4822
|
+
H.spUploadFiles__fileNamesListItem__description,
|
|
4823
|
+
I && H.spUploadFiles__fileNamesListItem__description_error
|
|
4793
4824
|
)
|
|
4794
4825
|
}
|
|
4795
4826
|
)
|
|
4796
4827
|
] }),
|
|
4797
|
-
/* @__PURE__ */
|
|
4828
|
+
/* @__PURE__ */ c(
|
|
4798
4829
|
"div",
|
|
4799
4830
|
{
|
|
4800
|
-
className: f(
|
|
4831
|
+
className: f(H.spUploadFiles__fileNamesListItemDelete),
|
|
4801
4832
|
onClick: (F) => {
|
|
4802
4833
|
F.stopPropagation(), ce(v.name, I);
|
|
4803
4834
|
},
|
|
4804
|
-
children: /* @__PURE__ */
|
|
4835
|
+
children: /* @__PURE__ */ c(ve, { name: ae.Close })
|
|
4805
4836
|
}
|
|
4806
4837
|
)
|
|
4807
4838
|
]
|
|
4808
4839
|
},
|
|
4809
|
-
|
|
4840
|
+
j
|
|
4810
4841
|
);
|
|
4811
|
-
}) }),
|
|
4842
|
+
}) }), $ = () => s ? k() : J(), W = () => /* @__PURE__ */ c(
|
|
4812
4843
|
Ge,
|
|
4813
4844
|
{
|
|
4814
|
-
classNameRoot:
|
|
4845
|
+
classNameRoot: H.spUploadFiles__placeholder,
|
|
4815
4846
|
classNameTooltipRoot: f(
|
|
4816
|
-
|
|
4817
|
-
!!l &&
|
|
4847
|
+
H.spUploadFiles__placeholderContainer,
|
|
4848
|
+
!!l && H.spUploadFiles__placeholderContainer_withUloadTooltip
|
|
4818
4849
|
),
|
|
4819
4850
|
text: t
|
|
4820
4851
|
}
|
|
4821
|
-
),
|
|
4822
|
-
|
|
4823
|
-
|
|
4852
|
+
), m = () => /* @__PURE__ */ z(jt, { children: [
|
|
4853
|
+
B ? $() : W(),
|
|
4854
|
+
B && Y ? /* @__PURE__ */ c("div", { className: ue, onClick: G, children: /* @__PURE__ */ c(ve, { name: ae.Close }) }) : Y && l && /* @__PURE__ */ c(
|
|
4824
4855
|
nt,
|
|
4825
4856
|
{
|
|
4826
|
-
classNameTooltip:
|
|
4857
|
+
classNameTooltip: H.spUploadFiles__tooltipWrapper,
|
|
4827
4858
|
position: u,
|
|
4828
4859
|
text: l,
|
|
4829
|
-
classNameTriggerTooltip:
|
|
4860
|
+
classNameTriggerTooltip: H.spUploadFiles__tooltip
|
|
4830
4861
|
}
|
|
4831
4862
|
)
|
|
4832
4863
|
] });
|
|
4833
|
-
return /* @__PURE__ */
|
|
4834
|
-
|
|
4864
|
+
return /* @__PURE__ */ c(
|
|
4865
|
+
Aa,
|
|
4835
4866
|
{
|
|
4836
|
-
getRootProps:
|
|
4837
|
-
getInputProps:
|
|
4867
|
+
getRootProps: P,
|
|
4868
|
+
getInputProps: M,
|
|
4838
4869
|
disabled: r,
|
|
4839
4870
|
name: n,
|
|
4840
|
-
children: /* @__PURE__ */
|
|
4841
|
-
/* @__PURE__ */
|
|
4842
|
-
|
|
4871
|
+
children: /* @__PURE__ */ z("div", { className: Z, children: [
|
|
4872
|
+
/* @__PURE__ */ z("div", { className: re, children: [
|
|
4873
|
+
Y && (g ? /* @__PURE__ */ c(Lt, {}) : /* @__PURE__ */ c(
|
|
4843
4874
|
ve,
|
|
4844
4875
|
{
|
|
4845
|
-
name:
|
|
4876
|
+
name: B ? ae.Check : ae.Upload,
|
|
4846
4877
|
style: { flexShrink: 0 }
|
|
4847
4878
|
}
|
|
4848
4879
|
)),
|
|
4849
|
-
|
|
4880
|
+
m()
|
|
4850
4881
|
] }),
|
|
4851
|
-
|
|
4882
|
+
h && /* @__PURE__ */ c("div", { className: H.spUploadFiles__error, children: h })
|
|
4852
4883
|
] })
|
|
4853
4884
|
}
|
|
4854
4885
|
);
|
|
4855
|
-
},
|
|
4856
|
-
viewImage:
|
|
4857
|
-
viewImage__img:
|
|
4858
|
-
viewImage__img_loading:
|
|
4859
|
-
viewImage__img_error:
|
|
4860
|
-
viewImage__spinner:
|
|
4861
|
-
viewImage__errorWrapper:
|
|
4862
|
-
viewImage__errorIcon:
|
|
4863
|
-
viewImage__layer:
|
|
4864
|
-
viewImage__closeButton:
|
|
4865
|
-
},
|
|
4886
|
+
}, gp = "_viewImage_r6txf_43", xp = "_viewImage__img_r6txf_66", hp = "_viewImage__img_loading_r6txf_79", bp = "_viewImage__img_error_r6txf_82", yp = "_viewImage__spinner_r6txf_85", wp = "_viewImage__errorWrapper_r6txf_92", Cp = "_viewImage__errorIcon_r6txf_107", kp = "_viewImage__layer_r6txf_112", Tp = "_viewImage__closeButton_r6txf_117", Ee = {
|
|
4887
|
+
viewImage: gp,
|
|
4888
|
+
viewImage__img: xp,
|
|
4889
|
+
viewImage__img_loading: hp,
|
|
4890
|
+
viewImage__img_error: bp,
|
|
4891
|
+
viewImage__spinner: yp,
|
|
4892
|
+
viewImage__errorWrapper: wp,
|
|
4893
|
+
viewImage__errorIcon: Cp,
|
|
4894
|
+
viewImage__layer: kp,
|
|
4895
|
+
viewImage__closeButton: Tp
|
|
4896
|
+
}, Hp = (e) => {
|
|
4866
4897
|
const {
|
|
4867
4898
|
classNameRoot: t,
|
|
4868
4899
|
classNameImageRoot: o,
|
|
@@ -4871,90 +4902,91 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4871
4902
|
onError: i,
|
|
4872
4903
|
fallbackSrc: r,
|
|
4873
4904
|
showLoader: s = !0,
|
|
4874
|
-
onClose:
|
|
4875
|
-
} = e, [l, u] =
|
|
4905
|
+
onClose: p
|
|
4906
|
+
} = e, [l, u] = Q(!0), [_, g] = Q(!1), [h, w] = Q(n), C = f({
|
|
4876
4907
|
[Ee.viewImage]: !0,
|
|
4877
4908
|
...t && { [t]: !0 }
|
|
4878
|
-
}),
|
|
4909
|
+
}), N = f({
|
|
4879
4910
|
[Ee.viewImage__layer]: !0
|
|
4880
|
-
}),
|
|
4911
|
+
}), P = f({
|
|
4881
4912
|
[Ee.viewImage__closeButton]: !0
|
|
4882
|
-
}),
|
|
4913
|
+
}), M = f({
|
|
4883
4914
|
[Ee.viewImage__spinner]: !0
|
|
4884
|
-
}),
|
|
4915
|
+
}), A = f(Ee.viewImage__img, {
|
|
4885
4916
|
[Ee.viewImage__img_loading]: l,
|
|
4886
4917
|
[Ee.viewImage__img_error]: _,
|
|
4887
4918
|
...o && { [o]: !0 }
|
|
4888
4919
|
});
|
|
4889
|
-
return /* @__PURE__ */
|
|
4890
|
-
s && l && /* @__PURE__ */
|
|
4891
|
-
/* @__PURE__ */
|
|
4892
|
-
/* @__PURE__ */
|
|
4920
|
+
return /* @__PURE__ */ z(yo, { classNameRoot: N, children: [
|
|
4921
|
+
s && l && /* @__PURE__ */ c(Lt, { classNameRoot: M, size: "xl" }),
|
|
4922
|
+
/* @__PURE__ */ z("div", { className: C, children: [
|
|
4923
|
+
/* @__PURE__ */ c(
|
|
4893
4924
|
"img",
|
|
4894
4925
|
{
|
|
4895
|
-
className:
|
|
4896
|
-
src:
|
|
4926
|
+
className: A,
|
|
4927
|
+
src: h,
|
|
4897
4928
|
alt: "someImage",
|
|
4898
|
-
onLoad: (
|
|
4899
|
-
u(!1), a == null || a(
|
|
4929
|
+
onLoad: (T) => {
|
|
4930
|
+
u(!1), a == null || a(T);
|
|
4900
4931
|
},
|
|
4901
|
-
onError: (
|
|
4902
|
-
u(!1), g(!0), r &&
|
|
4932
|
+
onError: (T) => {
|
|
4933
|
+
u(!1), g(!0), r && h !== r && (w(r), g(!1), u(!0)), i == null || i(T);
|
|
4903
4934
|
}
|
|
4904
4935
|
}
|
|
4905
4936
|
),
|
|
4906
|
-
_ && /* @__PURE__ */
|
|
4907
|
-
/* @__PURE__ */
|
|
4908
|
-
/* @__PURE__ */
|
|
4937
|
+
_ && /* @__PURE__ */ z("div", { className: Ee.viewImage__errorWrapper, children: [
|
|
4938
|
+
/* @__PURE__ */ c(ve, { name: ae.InfoError, className: Ee.viewImage__errorIcon }),
|
|
4939
|
+
/* @__PURE__ */ c(Te, { children: "Не удалось загрузить изображение" })
|
|
4909
4940
|
] })
|
|
4910
4941
|
] }),
|
|
4911
|
-
/* @__PURE__ */
|
|
4942
|
+
/* @__PURE__ */ c(
|
|
4912
4943
|
Qe,
|
|
4913
4944
|
{
|
|
4914
|
-
classNameRoot:
|
|
4915
|
-
onClick:
|
|
4945
|
+
classNameRoot: P,
|
|
4946
|
+
onClick: p,
|
|
4916
4947
|
variant: "link",
|
|
4917
4948
|
isOnlyIcon: !0,
|
|
4918
4949
|
color: "white",
|
|
4919
|
-
iconName:
|
|
4950
|
+
iconName: ae.Close
|
|
4920
4951
|
}
|
|
4921
4952
|
)
|
|
4922
4953
|
] });
|
|
4923
4954
|
};
|
|
4924
4955
|
export {
|
|
4925
|
-
|
|
4956
|
+
Sp as Accordion,
|
|
4926
4957
|
Qn as ApplyButtons,
|
|
4927
4958
|
xo as BaseTooltip,
|
|
4928
4959
|
Qe as Button,
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4960
|
+
Rp as Checkbox,
|
|
4961
|
+
Ia as Confirm,
|
|
4962
|
+
Ap as ContextMenu,
|
|
4963
|
+
Aa as DefaultDropzone,
|
|
4964
|
+
jp as Dropdown,
|
|
4965
|
+
ae as EIconName,
|
|
4935
4966
|
le as ETooltipPosition,
|
|
4936
4967
|
Ge as EllipsisTextWithTooltip,
|
|
4937
4968
|
Lp as Form,
|
|
4938
4969
|
ve as Icon,
|
|
4939
4970
|
nt as InfoTooltip,
|
|
4940
|
-
|
|
4941
|
-
|
|
4971
|
+
pi as Input,
|
|
4972
|
+
Dt as Label,
|
|
4942
4973
|
yo as Layer,
|
|
4943
|
-
|
|
4974
|
+
li as MediaContext,
|
|
4944
4975
|
Pp as MediaContextProvider,
|
|
4945
4976
|
Ea as Modal,
|
|
4946
4977
|
bo as Portal,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
Wp as
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
Mp as
|
|
4978
|
+
Bp as ProgressWrapper,
|
|
4979
|
+
Op as ProtectedRoute,
|
|
4980
|
+
Wp as Select,
|
|
4981
|
+
zp as Skeleton,
|
|
4982
|
+
Lt as Spinner,
|
|
4983
|
+
Mp as Table,
|
|
4984
|
+
Up as Tabs,
|
|
4953
4985
|
Te as Text,
|
|
4954
|
-
|
|
4986
|
+
$p as TextWithLabel,
|
|
4955
4987
|
ot as Tooltip,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4988
|
+
qp as UploadFiles,
|
|
4989
|
+
Hp as ViewImageModal,
|
|
4990
|
+
Zi as useAnimatedValue,
|
|
4991
|
+
Fp as useModal
|
|
4960
4992
|
};
|