test-stpr-ui-kit 0.4.20 → 0.4.21
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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as H, jsx as l, Fragment as cn } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import We, { useState as ce, useEffect as
|
|
3
|
+
import We, { useState as ce, useEffect as ae, useRef as Te, useCallback as le, forwardRef as zn, useImperativeHandle as Mn, Fragment as Bn, useMemo as Oe, useReducer as Wn, createContext as ln, useContext as dn } from "react";
|
|
4
4
|
import qn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function un(e) {
|
|
6
6
|
var t, n, o = "";
|
|
@@ -42,7 +42,7 @@ const $n = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon
|
|
|
42
42
|
style: a
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var re = /* @__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))(re || {});
|
|
46
46
|
const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro = "_spAccordion_noPadding_ui7ma_60", so = "_spAccordion__name_ui7ma_63", po = "_spAccordion_open_ui7ma_73", co = "_spAccordion__header_ui7ma_76", lo = "_spAccordion_noOpen_ui7ma_84", uo = "_spAccordion__name_hiddenExpand_ui7ma_118", mo = "_spAccordion__icon_ui7ma_122", fo = "_spAccordion__icon_hidden_ui7ma_128", _o = "_spAccordion__icon_open_ui7ma_131", vo = "_spAccordion__childrenWrapper_ui7ma_138", xo = "_spAccordion__childrenWrapper_open_ui7ma_147", go = "_spAccordion__content_ui7ma_150", ho = "_spAccordion__content_open_ui7ma_156", se = {
|
|
47
47
|
spAccordion: ao,
|
|
48
48
|
spAccordion_noBorder: io,
|
|
@@ -68,32 +68,32 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
68
68
|
onOpen: i,
|
|
69
69
|
noBorder: r = !1,
|
|
70
70
|
noPadding: s = !1,
|
|
71
|
-
classNameRoot:
|
|
72
|
-
classNameHeader:
|
|
73
|
-
classNameTitle:
|
|
74
|
-
classNameIcon:
|
|
71
|
+
classNameRoot: m,
|
|
72
|
+
classNameHeader: c,
|
|
73
|
+
classNameTitle: u,
|
|
74
|
+
classNameIcon: d,
|
|
75
75
|
classNameChildrenWrapper: g
|
|
76
76
|
} = e, [h, E] = ce(o), w = () => {
|
|
77
77
|
a || (E(!h), i == null || i(!h));
|
|
78
|
-
},
|
|
78
|
+
}, A = _({
|
|
79
79
|
[se.spAccordion]: !0,
|
|
80
80
|
[se.spAccordion_open]: h,
|
|
81
81
|
[se.spAccordion_noOpen]: !h,
|
|
82
82
|
[se.spAccordion_noBorder]: r,
|
|
83
83
|
[se.spAccordion_noPadding]: s,
|
|
84
|
-
...
|
|
84
|
+
...m && { [m]: !0 }
|
|
85
85
|
}), L = _({
|
|
86
86
|
[se.spAccordion__header]: !0,
|
|
87
|
-
...
|
|
87
|
+
...c && { [c]: !0 }
|
|
88
88
|
}), Y = _({
|
|
89
89
|
[se.spAccordion__name]: !0,
|
|
90
90
|
[se.spAccordion__name_hiddenExpand]: a,
|
|
91
|
-
...
|
|
91
|
+
...u && { [u]: !0 }
|
|
92
92
|
}), R = _({
|
|
93
93
|
[se.spAccordion__icon]: !0,
|
|
94
94
|
[se.spAccordion__icon_open]: h,
|
|
95
95
|
[se.spAccordion__icon_hidden]: a,
|
|
96
|
-
...
|
|
96
|
+
...d && { [d]: !0 }
|
|
97
97
|
}), y = _({
|
|
98
98
|
[se.spAccordion__childrenWrapper]: !0,
|
|
99
99
|
[se.spAccordion__childrenWrapper_open]: h,
|
|
@@ -102,10 +102,10 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
102
102
|
[se.spAccordion__content]: !0,
|
|
103
103
|
[se.spAccordion__content_open]: h
|
|
104
104
|
});
|
|
105
|
-
return /* @__PURE__ */ H("div", { className:
|
|
105
|
+
return /* @__PURE__ */ H("div", { className: A, children: [
|
|
106
106
|
/* @__PURE__ */ H("div", { className: L, children: [
|
|
107
107
|
/* @__PURE__ */ l("div", { className: Y, children: /* @__PURE__ */ l("span", { onClick: w, children: t }) }),
|
|
108
|
-
/* @__PURE__ */ l(ge, { onClick: w, className: R, name:
|
|
108
|
+
/* @__PURE__ */ l(ge, { onClick: w, className: R, name: re.ChevronDown })
|
|
109
109
|
] }),
|
|
110
110
|
/* @__PURE__ */ l("div", { className: y, children: /* @__PURE__ */ l("div", { className: p, children: n }) })
|
|
111
111
|
] });
|
|
@@ -152,15 +152,15 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
152
152
|
iconName: i,
|
|
153
153
|
iconRotate: r = 0,
|
|
154
154
|
disabled: s = !1,
|
|
155
|
-
type:
|
|
156
|
-
form:
|
|
157
|
-
children:
|
|
158
|
-
loading:
|
|
155
|
+
type: m = "button",
|
|
156
|
+
form: c,
|
|
157
|
+
children: u,
|
|
158
|
+
loading: d = !1,
|
|
159
159
|
isFullWidth: g = !1,
|
|
160
160
|
isOnlyIcon: h = !1,
|
|
161
161
|
noPadding: E = !1,
|
|
162
162
|
classNameRoot: w,
|
|
163
|
-
classNameIconContainerRoot:
|
|
163
|
+
classNameIconContainerRoot: A
|
|
164
164
|
} = e, L = (y) => {
|
|
165
165
|
s || a == null || a(y);
|
|
166
166
|
}, Y = () => {
|
|
@@ -168,11 +168,11 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
168
168
|
[be.spButton__text]: !0
|
|
169
169
|
}), p = _({
|
|
170
170
|
[be.spButton__iconContainer]: !0,
|
|
171
|
-
...
|
|
171
|
+
...A && { [A]: !0 }
|
|
172
172
|
});
|
|
173
173
|
return /* @__PURE__ */ H(cn, { children: [
|
|
174
|
-
(i ||
|
|
175
|
-
!h &&
|
|
174
|
+
(i || d) && /* @__PURE__ */ l("div", { className: p, children: d ? /* @__PURE__ */ l(wo, { classNameRoot: be.spButton__spinner }) : i && /* @__PURE__ */ l(ge, { name: i, rotate: r }) }),
|
|
175
|
+
!h && u && /* @__PURE__ */ l("div", { className: y, children: u })
|
|
176
176
|
] });
|
|
177
177
|
}, R = _({
|
|
178
178
|
[be.spButton]: !0,
|
|
@@ -182,7 +182,7 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
182
182
|
[be[`spButton_${t}`]]: t,
|
|
183
183
|
[be.spButton_fullWidth]: g,
|
|
184
184
|
[be.spButton_disabled]: s,
|
|
185
|
-
[be.spButton_loading]:
|
|
185
|
+
[be.spButton_loading]: d,
|
|
186
186
|
...w && { [w]: !0 }
|
|
187
187
|
});
|
|
188
188
|
return /* @__PURE__ */ l(
|
|
@@ -192,8 +192,8 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
192
192
|
className: R,
|
|
193
193
|
onClick: L,
|
|
194
194
|
disabled: s,
|
|
195
|
-
type:
|
|
196
|
-
form:
|
|
195
|
+
type: m,
|
|
196
|
+
form: c,
|
|
197
197
|
children: Y()
|
|
198
198
|
}
|
|
199
199
|
);
|
|
@@ -214,10 +214,10 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
214
214
|
cancelBtnDisabled: i,
|
|
215
215
|
submitBtnContent: r,
|
|
216
216
|
formId: s,
|
|
217
|
-
disabled:
|
|
218
|
-
onClose:
|
|
219
|
-
submit:
|
|
220
|
-
loading:
|
|
217
|
+
disabled: m,
|
|
218
|
+
onClose: c,
|
|
219
|
+
submit: u,
|
|
220
|
+
loading: d
|
|
221
221
|
} = e, g = _({
|
|
222
222
|
[ze.spApplyButtons]: !0,
|
|
223
223
|
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
@@ -236,7 +236,7 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
236
236
|
iconName: a,
|
|
237
237
|
classNameRoot: E,
|
|
238
238
|
disabled: i,
|
|
239
|
-
onClick:
|
|
239
|
+
onClick: c,
|
|
240
240
|
children: o
|
|
241
241
|
}
|
|
242
242
|
),
|
|
@@ -247,9 +247,9 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
247
247
|
variant: "primary",
|
|
248
248
|
classNameRoot: h,
|
|
249
249
|
form: s || void 0,
|
|
250
|
-
disabled:
|
|
251
|
-
onClick:
|
|
252
|
-
loading:
|
|
250
|
+
disabled: m,
|
|
251
|
+
onClick: u,
|
|
252
|
+
loading: d,
|
|
253
253
|
children: r
|
|
254
254
|
}
|
|
255
255
|
)
|
|
@@ -269,15 +269,15 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
269
269
|
[ct.spBaseTooltip]: !0,
|
|
270
270
|
[ct.spBaseTooltip_noPadding]: o,
|
|
271
271
|
...i && { [i]: !0 }
|
|
272
|
-
}),
|
|
272
|
+
}), m = _({
|
|
273
273
|
[ct.spBaseTooltip__content]: !0,
|
|
274
274
|
...r && { [r]: !0 }
|
|
275
275
|
});
|
|
276
|
-
return /* @__PURE__ */ l("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ l("div", { className:
|
|
276
|
+
return /* @__PURE__ */ l("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ l("div", { className: m, children: n }) });
|
|
277
277
|
});
|
|
278
278
|
mn.displayName = "BaseTooltip";
|
|
279
279
|
function fn(e, t, n = !0) {
|
|
280
|
-
|
|
280
|
+
ae(() => {
|
|
281
281
|
if (!n) return;
|
|
282
282
|
const o = (a) => {
|
|
283
283
|
e.every((r) => r.current && !r.current.contains(a.target)) && t(a);
|
|
@@ -289,7 +289,7 @@ function fn(e, t, n = !0) {
|
|
|
289
289
|
}
|
|
290
290
|
const _n = ({ children: e, node: t, classNameRoot: n }) => {
|
|
291
291
|
const [o, a] = ce(null);
|
|
292
|
-
return
|
|
292
|
+
return ae(() => {
|
|
293
293
|
if (t) {
|
|
294
294
|
a(t);
|
|
295
295
|
return;
|
|
@@ -303,132 +303,133 @@ const _n = ({ children: e, node: t, classNameRoot: n }) => {
|
|
|
303
303
|
spTooltip: $o,
|
|
304
304
|
spTooltip__trigger: Ho
|
|
305
305
|
};
|
|
306
|
-
var
|
|
306
|
+
var ie = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(ie || {});
|
|
307
307
|
const It = (e) => {
|
|
308
308
|
const {
|
|
309
309
|
hover: t = !0,
|
|
310
310
|
isToggleClick: n = !1,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
311
|
+
isStopPropagationClickOnTrigger: o = !1,
|
|
312
|
+
isVisibleTooltip: a = !0,
|
|
313
|
+
trigger: i,
|
|
314
|
+
triggerAction: r,
|
|
315
|
+
actionOnClose: s,
|
|
316
|
+
classNameTriggerTooltip: m,
|
|
317
|
+
position: c = ie.BottomLeft,
|
|
318
|
+
text: u,
|
|
319
|
+
noPadding: d,
|
|
320
|
+
classNameTooltip: g,
|
|
321
|
+
classNameBaseTooltipRoot: h,
|
|
322
|
+
classNameBaseTooltipContentRoot: E
|
|
323
|
+
} = e, [w, A] = ce(!1), L = Te(null), Y = Te(null), [R, y] = ce(!1);
|
|
323
324
|
fn(
|
|
324
|
-
[
|
|
325
|
+
[L, Y],
|
|
325
326
|
() => {
|
|
326
|
-
|
|
327
|
+
s && s(), A(!1);
|
|
327
328
|
},
|
|
328
|
-
|
|
329
|
+
w
|
|
329
330
|
);
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
}, [
|
|
331
|
+
const p = (T) => {
|
|
332
|
+
o && T.stopPropagation(), !t && (w ? s && s() : r && r(), A((V) => n ? !V : !0));
|
|
333
|
+
}, [C, P] = ce({
|
|
333
334
|
visibility: "hidden",
|
|
334
335
|
opacity: 0,
|
|
335
336
|
left: "-9999px"
|
|
336
|
-
}), [
|
|
337
|
-
if (!
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
switch (
|
|
341
|
-
case
|
|
342
|
-
|
|
337
|
+
}), [U, J] = ce(!1), ne = le(() => {
|
|
338
|
+
if (!L.current || !Y.current) return;
|
|
339
|
+
const T = L.current.getBoundingClientRect(), V = Y.current.getBoundingClientRect();
|
|
340
|
+
let X = 0, D = 0;
|
|
341
|
+
switch (c) {
|
|
342
|
+
case ie.Right:
|
|
343
|
+
X = T.top + window.scrollY - (V.height - T.height) / 2, D = T.right + window.scrollX;
|
|
343
344
|
break;
|
|
344
|
-
case
|
|
345
|
-
|
|
345
|
+
case ie.RightTop:
|
|
346
|
+
X = T.top + window.scrollY, D = T.right + window.scrollX;
|
|
346
347
|
break;
|
|
347
|
-
case
|
|
348
|
-
|
|
348
|
+
case ie.RightBottom:
|
|
349
|
+
X = T.bottom + window.scrollY - V.height, D = T.right + window.scrollX;
|
|
349
350
|
break;
|
|
350
|
-
case
|
|
351
|
-
|
|
351
|
+
case ie.Left:
|
|
352
|
+
X = T.top + window.scrollY - (V.height - T.height) / 2, D = T.left + window.scrollX - V.width;
|
|
352
353
|
break;
|
|
353
|
-
case
|
|
354
|
-
|
|
354
|
+
case ie.LeftTop:
|
|
355
|
+
X = T.top + window.scrollY, D = T.left + window.scrollX - V.width;
|
|
355
356
|
break;
|
|
356
|
-
case
|
|
357
|
-
|
|
357
|
+
case ie.LeftBottom:
|
|
358
|
+
X = T.bottom + window.scrollY - V.height, D = T.left + window.scrollX - V.width;
|
|
358
359
|
break;
|
|
359
|
-
case
|
|
360
|
-
|
|
360
|
+
case ie.Bottom:
|
|
361
|
+
X = T.bottom + window.scrollY, D = T.left + window.scrollX - (V.width - T.width) / 2;
|
|
361
362
|
break;
|
|
362
|
-
case
|
|
363
|
-
|
|
363
|
+
case ie.BottomLeft:
|
|
364
|
+
X = T.bottom + window.scrollY, D = T.left + window.scrollX;
|
|
364
365
|
break;
|
|
365
|
-
case
|
|
366
|
-
|
|
366
|
+
case ie.BottomRight:
|
|
367
|
+
X = T.bottom + window.scrollY, D = T.right + window.scrollX - V.width;
|
|
367
368
|
break;
|
|
368
|
-
case
|
|
369
|
-
|
|
369
|
+
case ie.Top:
|
|
370
|
+
X = T.top + window.scrollY - V.height, D = T.left + window.scrollX - (V.width - T.width) / 2;
|
|
370
371
|
break;
|
|
371
|
-
case
|
|
372
|
-
|
|
372
|
+
case ie.TopLeft:
|
|
373
|
+
X = T.top + window.scrollY - V.height, D = T.left + window.scrollX;
|
|
373
374
|
break;
|
|
374
|
-
case
|
|
375
|
-
|
|
375
|
+
case ie.TopRight:
|
|
376
|
+
X = T.top + window.scrollY - V.height, D = T.right + window.scrollX - V.width;
|
|
376
377
|
break;
|
|
377
378
|
default:
|
|
378
|
-
|
|
379
|
+
X = T.bottom + window.scrollY, D = T.left + window.scrollX;
|
|
379
380
|
}
|
|
380
|
-
|
|
381
|
-
...
|
|
382
|
-
top: `${
|
|
383
|
-
left: `${
|
|
384
|
-
visibility:
|
|
385
|
-
opacity:
|
|
381
|
+
X + V.height > window.innerHeight + window.scrollY && c.includes("bottom") ? X = T.top + window.scrollY - V.height : X < window.scrollY && c.includes("top") && (X = T.bottom + window.scrollY), P((f) => ({
|
|
382
|
+
...f,
|
|
383
|
+
top: `${X}px`,
|
|
384
|
+
left: `${D}px`,
|
|
385
|
+
visibility: w || U ? "visible" : "hidden",
|
|
386
|
+
opacity: w || U ? 1 : 0
|
|
386
387
|
}));
|
|
387
|
-
}, [
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}, [
|
|
391
|
-
if (!
|
|
392
|
-
const
|
|
393
|
-
return window.addEventListener("resize",
|
|
394
|
-
window.removeEventListener("resize",
|
|
388
|
+
}, [c, w, U]);
|
|
389
|
+
ae(() => (y(!0), () => y(!1)), []), ae(() => {
|
|
390
|
+
R && ne();
|
|
391
|
+
}, [R, ne]), ae(() => {
|
|
392
|
+
if (!R) return;
|
|
393
|
+
const T = () => ne();
|
|
394
|
+
return window.addEventListener("resize", T), window.addEventListener("scroll", T, !0), () => {
|
|
395
|
+
window.removeEventListener("resize", T), window.removeEventListener("scroll", T, !0);
|
|
395
396
|
};
|
|
396
|
-
}, [
|
|
397
|
-
const
|
|
397
|
+
}, [R, ne]);
|
|
398
|
+
const de = _({
|
|
398
399
|
[Dt.spTooltip]: !0,
|
|
399
|
-
...c && { [c]: !0 }
|
|
400
|
-
}), de = _({
|
|
401
400
|
...g && { [g]: !0 }
|
|
402
401
|
}), ue = _({
|
|
403
402
|
...h && { [h]: !0 }
|
|
404
403
|
}), me = _({
|
|
404
|
+
...E && { [E]: !0 }
|
|
405
|
+
}), q = _({
|
|
405
406
|
[Dt.spTooltip__trigger]: !0,
|
|
406
|
-
...
|
|
407
|
-
}),
|
|
407
|
+
...m && { [m]: !0 }
|
|
408
|
+
}), Z = document.body;
|
|
408
409
|
return /* @__PURE__ */ H(
|
|
409
410
|
"div",
|
|
410
411
|
{
|
|
411
|
-
className:
|
|
412
|
-
onClick:
|
|
413
|
-
onMouseEnter: () => t &&
|
|
414
|
-
onMouseLeave: () => t &&
|
|
412
|
+
className: de,
|
|
413
|
+
onClick: p,
|
|
414
|
+
onMouseEnter: () => t && J(!0),
|
|
415
|
+
onMouseLeave: () => t && J(!1),
|
|
415
416
|
children: [
|
|
416
|
-
/* @__PURE__ */ l("div", { ref:
|
|
417
|
-
|
|
417
|
+
/* @__PURE__ */ l("div", { ref: L, className: q, children: i }),
|
|
418
|
+
a && /* @__PURE__ */ l(_n, { node: Z, children: /* @__PURE__ */ l(
|
|
418
419
|
mn,
|
|
419
420
|
{
|
|
420
|
-
style:
|
|
421
|
-
ref:
|
|
422
|
-
noPadding:
|
|
423
|
-
text:
|
|
424
|
-
classNameRoot:
|
|
425
|
-
classNameContentRoot:
|
|
421
|
+
style: C,
|
|
422
|
+
ref: Y,
|
|
423
|
+
noPadding: d,
|
|
424
|
+
text: u,
|
|
425
|
+
classNameRoot: ue,
|
|
426
|
+
classNameContentRoot: me
|
|
426
427
|
}
|
|
427
428
|
) })
|
|
428
429
|
]
|
|
429
430
|
}
|
|
430
431
|
);
|
|
431
|
-
}, Qe = (e) => /* @__PURE__ */ l(It, { ...e, hover: !0, trigger: /* @__PURE__ */ l(ge, { name:
|
|
432
|
+
}, Qe = (e) => /* @__PURE__ */ l(It, { ...e, hover: !0, trigger: /* @__PURE__ */ l(ge, { name: re.Info }) }), Yo = "_spCheckbox_uc4g8_43", Vo = "_spCheckbox__control_uc4g8_49", Uo = "_spCheckbox__label_uc4g8_52", Go = "_spCheckbox__box_uc4g8_63", Ko = "_spCheckbox__box_checked_uc4g8_90", Xo = "_spCheckbox__box_disabled_uc4g8_100", Zo = "_spCheckbox__box_error_uc4g8_111", Qo = "_spCheckbox__tooltip_uc4g8_114", Jo = "_spCheckbox__required_uc4g8_119", ea = "_spCheckbox__error_uc4g8_125", ye = {
|
|
432
433
|
spCheckbox: Yo,
|
|
433
434
|
spCheckbox__control: Vo,
|
|
434
435
|
spCheckbox__label: Uo,
|
|
@@ -450,17 +451,17 @@ const It = (e) => {
|
|
|
450
451
|
name: i,
|
|
451
452
|
label: r,
|
|
452
453
|
error: s,
|
|
453
|
-
value:
|
|
454
|
-
required:
|
|
455
|
-
tooltipPosition:
|
|
456
|
-
infoTooltipText:
|
|
454
|
+
value: m,
|
|
455
|
+
required: c,
|
|
456
|
+
tooltipPosition: u,
|
|
457
|
+
infoTooltipText: d,
|
|
457
458
|
onMouseEnter: g,
|
|
458
459
|
classNameRoot: h,
|
|
459
460
|
classNameError: E
|
|
460
461
|
} = e, w = _({
|
|
461
462
|
[ye.spCheckbox]: !0,
|
|
462
463
|
...h && { [h]: !0 }
|
|
463
|
-
}),
|
|
464
|
+
}), A = _({
|
|
464
465
|
[ye.spCheckbox__box]: !0,
|
|
465
466
|
[ye.spCheckbox__box_checked]: n,
|
|
466
467
|
[ye.spCheckbox__box_disabled]: o,
|
|
@@ -479,21 +480,21 @@ const It = (e) => {
|
|
|
479
480
|
[ye.spCheckbox__tooltip]: !0
|
|
480
481
|
});
|
|
481
482
|
return /* @__PURE__ */ H("div", { className: w, onMouseEnter: g, children: [
|
|
482
|
-
/* @__PURE__ */ H("label", { className:
|
|
483
|
+
/* @__PURE__ */ H("label", { className: A, children: [
|
|
483
484
|
/* @__PURE__ */ l(
|
|
484
485
|
"input",
|
|
485
486
|
{
|
|
486
487
|
type: "checkbox",
|
|
487
488
|
className: L,
|
|
488
489
|
checked: n,
|
|
489
|
-
onChange: (
|
|
490
|
-
!o && a && a(
|
|
490
|
+
onChange: (P) => {
|
|
491
|
+
!o && a && a(P, { name: i, checked: !n, value: m });
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
),
|
|
494
495
|
r && /* @__PURE__ */ l("span", { className: Y, children: r }),
|
|
495
|
-
|
|
496
|
-
|
|
496
|
+
c && /* @__PURE__ */ l("div", { className: R, children: "*" }),
|
|
497
|
+
d && /* @__PURE__ */ l("div", { className: p, children: /* @__PURE__ */ l(Qe, { position: u, text: d }) })
|
|
497
498
|
] }),
|
|
498
499
|
s && /* @__PURE__ */ l("div", { className: y, children: s })
|
|
499
500
|
] });
|
|
@@ -542,16 +543,16 @@ const It = (e) => {
|
|
|
542
543
|
title: i,
|
|
543
544
|
style: r,
|
|
544
545
|
onClick: s,
|
|
545
|
-
isEllipsis:
|
|
546
|
-
isCursorPointer:
|
|
547
|
-
isCursorPointerByOnClick:
|
|
548
|
-
classNameRoot:
|
|
549
|
-
} = e, g = () => s &&
|
|
546
|
+
isEllipsis: m = !1,
|
|
547
|
+
isCursorPointer: c = !1,
|
|
548
|
+
isCursorPointerByOnClick: u = !0,
|
|
549
|
+
classNameRoot: d
|
|
550
|
+
} = e, g = () => s && u ? !0 : c, h = _({
|
|
550
551
|
[Ye.spText]: !0,
|
|
551
|
-
[Ye.spText_ellipsis]:
|
|
552
|
+
[Ye.spText_ellipsis]: m,
|
|
552
553
|
[Ye.spText_cursorPointer]: g(),
|
|
553
554
|
[Ye[`spText_type-${n}`]]: n,
|
|
554
|
-
...
|
|
555
|
+
...d && { [d]: !0 }
|
|
555
556
|
});
|
|
556
557
|
return /* @__PURE__ */ l(
|
|
557
558
|
"span",
|
|
@@ -586,20 +587,20 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
586
587
|
classNameLayerRoot: i,
|
|
587
588
|
classNameRoot: r,
|
|
588
589
|
style: s,
|
|
589
|
-
align:
|
|
590
|
-
onClose:
|
|
591
|
-
header:
|
|
592
|
-
subHeader:
|
|
590
|
+
align: m = "top",
|
|
591
|
+
onClose: c,
|
|
592
|
+
header: u,
|
|
593
|
+
subHeader: d,
|
|
593
594
|
footer: g
|
|
594
595
|
} = e, h = _({
|
|
595
596
|
[ke.modalWrapper]: !0,
|
|
596
|
-
[ke[`modalWrapper_align-${
|
|
597
|
+
[ke[`modalWrapper_align-${m}`]]: m
|
|
597
598
|
}), E = _({
|
|
598
599
|
[ke.modalWrapper__modal]: !0,
|
|
599
600
|
...r && { [r]: !0 }
|
|
600
601
|
}), w = _({
|
|
601
602
|
[ke.modalWrapper__closeButton]: !0
|
|
602
|
-
}),
|
|
603
|
+
}), A = _({
|
|
603
604
|
[ke.modalWrapper__closeButtonIconContainer]: !0
|
|
604
605
|
}), L = _({
|
|
605
606
|
[ke.modalWrapper__content]: !0
|
|
@@ -610,15 +611,15 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
610
611
|
}), y = _({
|
|
611
612
|
[ke.modalWrapper__footer]: !0
|
|
612
613
|
});
|
|
613
|
-
return
|
|
614
|
-
const p = window.scrollY,
|
|
615
|
-
return
|
|
616
|
-
|
|
614
|
+
return ae(() => {
|
|
615
|
+
const p = window.scrollY, C = document.body;
|
|
616
|
+
return C.style.position = "fixed", C.style.top = `-${p}px`, C.style.left = "0", C.style.right = "0", C.style.overflow = "hidden", () => {
|
|
617
|
+
C.style.position = "", C.style.top = "", C.style.left = "", C.style.right = "", C.style.overflow = "", window.scrollTo(0, p);
|
|
617
618
|
};
|
|
618
619
|
}, []), /* @__PURE__ */ l(oa, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ l("div", { className: h, children: /* @__PURE__ */ H("div", { className: E, style: s, children: [
|
|
619
|
-
(
|
|
620
|
-
typeof
|
|
621
|
-
|
|
620
|
+
(u || d) && /* @__PURE__ */ H("div", { className: Y, children: [
|
|
621
|
+
typeof u == "string" ? /* @__PURE__ */ l(Se, { type: "h3", children: u }) : u,
|
|
622
|
+
d && /* @__PURE__ */ l("div", { className: R, children: typeof d == "string" ? /* @__PURE__ */ l(Se, { children: d }) : d })
|
|
622
623
|
] }),
|
|
623
624
|
a && /* @__PURE__ */ l("div", { className: L, children: a }),
|
|
624
625
|
g && /* @__PURE__ */ l("div", { className: y, children: g }),
|
|
@@ -626,9 +627,9 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
626
627
|
yt,
|
|
627
628
|
{
|
|
628
629
|
classNameRoot: w,
|
|
629
|
-
classNameIconContainerRoot:
|
|
630
|
-
onClick:
|
|
631
|
-
iconName:
|
|
630
|
+
classNameIconContainerRoot: A,
|
|
631
|
+
onClick: c,
|
|
632
|
+
iconName: re.Close,
|
|
632
633
|
variant: "link",
|
|
633
634
|
noPadding: !0,
|
|
634
635
|
isOnlyIcon: !0
|
|
@@ -644,10 +645,10 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
644
645
|
cancelBtnDisabled: i,
|
|
645
646
|
cancelBtnIconName: r,
|
|
646
647
|
submitBtnContent: s,
|
|
647
|
-
submit:
|
|
648
|
-
disabled:
|
|
649
|
-
formId:
|
|
650
|
-
onClose:
|
|
648
|
+
submit: m,
|
|
649
|
+
disabled: c,
|
|
650
|
+
formId: u,
|
|
651
|
+
onClose: d,
|
|
651
652
|
mobile: g = "column",
|
|
652
653
|
align: h = "right",
|
|
653
654
|
modalAlign: E = "top",
|
|
@@ -658,7 +659,7 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
658
659
|
{
|
|
659
660
|
zIndex: t,
|
|
660
661
|
header: n,
|
|
661
|
-
onClose:
|
|
662
|
+
onClose: d,
|
|
662
663
|
align: E,
|
|
663
664
|
subHeader: o,
|
|
664
665
|
footer: a || s ? /* @__PURE__ */ l(
|
|
@@ -670,10 +671,10 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
670
671
|
cancelBtnIconName: r,
|
|
671
672
|
cancelBtnDisabled: i,
|
|
672
673
|
submitBtnContent: s,
|
|
673
|
-
formId:
|
|
674
|
-
disabled:
|
|
675
|
-
onClose:
|
|
676
|
-
submit:
|
|
674
|
+
formId: u,
|
|
675
|
+
disabled: c,
|
|
676
|
+
onClose: d,
|
|
677
|
+
submit: m,
|
|
677
678
|
loading: w
|
|
678
679
|
}
|
|
679
680
|
) : null
|
|
@@ -712,7 +713,7 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
712
713
|
function vn(e) {
|
|
713
714
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
714
715
|
}
|
|
715
|
-
var wt = { exports: {} }, Ve = { exports: {} },
|
|
716
|
+
var wt = { exports: {} }, Ve = { exports: {} }, G = {};
|
|
716
717
|
/** @license React v16.13.1
|
|
717
718
|
* react-is.production.min.js
|
|
718
719
|
*
|
|
@@ -723,71 +724,71 @@ var wt = { exports: {} }, Ve = { exports: {} }, U = {};
|
|
|
723
724
|
*/
|
|
724
725
|
var Lt;
|
|
725
726
|
function ha() {
|
|
726
|
-
if (Lt) return
|
|
727
|
+
if (Lt) return G;
|
|
727
728
|
Lt = 1;
|
|
728
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110,
|
|
729
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
729
730
|
function R(p) {
|
|
730
731
|
if (typeof p == "object" && p !== null) {
|
|
731
|
-
var
|
|
732
|
-
switch (
|
|
732
|
+
var C = p.$$typeof;
|
|
733
|
+
switch (C) {
|
|
733
734
|
case t:
|
|
734
735
|
switch (p = p.type, p) {
|
|
735
|
-
case
|
|
736
|
-
case
|
|
736
|
+
case m:
|
|
737
|
+
case c:
|
|
737
738
|
case o:
|
|
738
739
|
case i:
|
|
739
740
|
case a:
|
|
740
|
-
case
|
|
741
|
+
case d:
|
|
741
742
|
return p;
|
|
742
743
|
default:
|
|
743
744
|
switch (p = p && p.$$typeof, p) {
|
|
744
745
|
case s:
|
|
745
|
-
case
|
|
746
|
+
case u:
|
|
746
747
|
case E:
|
|
747
748
|
case h:
|
|
748
749
|
case r:
|
|
749
750
|
return p;
|
|
750
751
|
default:
|
|
751
|
-
return
|
|
752
|
+
return C;
|
|
752
753
|
}
|
|
753
754
|
}
|
|
754
755
|
case n:
|
|
755
|
-
return
|
|
756
|
+
return C;
|
|
756
757
|
}
|
|
757
758
|
}
|
|
758
759
|
}
|
|
759
760
|
function y(p) {
|
|
760
|
-
return R(p) ===
|
|
761
|
+
return R(p) === c;
|
|
761
762
|
}
|
|
762
|
-
return
|
|
763
|
-
return y(p) || R(p) ===
|
|
764
|
-
},
|
|
763
|
+
return G.AsyncMode = m, G.ConcurrentMode = c, G.ContextConsumer = s, G.ContextProvider = r, G.Element = t, G.ForwardRef = u, G.Fragment = o, G.Lazy = E, G.Memo = h, G.Portal = n, G.Profiler = i, G.StrictMode = a, G.Suspense = d, G.isAsyncMode = function(p) {
|
|
764
|
+
return y(p) || R(p) === m;
|
|
765
|
+
}, G.isConcurrentMode = y, G.isContextConsumer = function(p) {
|
|
765
766
|
return R(p) === s;
|
|
766
|
-
},
|
|
767
|
+
}, G.isContextProvider = function(p) {
|
|
767
768
|
return R(p) === r;
|
|
768
|
-
},
|
|
769
|
+
}, G.isElement = function(p) {
|
|
769
770
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
770
|
-
},
|
|
771
|
-
return R(p) ===
|
|
772
|
-
},
|
|
771
|
+
}, G.isForwardRef = function(p) {
|
|
772
|
+
return R(p) === u;
|
|
773
|
+
}, G.isFragment = function(p) {
|
|
773
774
|
return R(p) === o;
|
|
774
|
-
},
|
|
775
|
+
}, G.isLazy = function(p) {
|
|
775
776
|
return R(p) === E;
|
|
776
|
-
},
|
|
777
|
+
}, G.isMemo = function(p) {
|
|
777
778
|
return R(p) === h;
|
|
778
|
-
},
|
|
779
|
+
}, G.isPortal = function(p) {
|
|
779
780
|
return R(p) === n;
|
|
780
|
-
},
|
|
781
|
+
}, G.isProfiler = function(p) {
|
|
781
782
|
return R(p) === i;
|
|
782
|
-
},
|
|
783
|
+
}, G.isStrictMode = function(p) {
|
|
783
784
|
return R(p) === a;
|
|
784
|
-
},
|
|
785
|
-
return R(p) ===
|
|
786
|
-
},
|
|
787
|
-
return typeof p == "string" || typeof p == "function" || p === o || p ===
|
|
788
|
-
},
|
|
785
|
+
}, G.isSuspense = function(p) {
|
|
786
|
+
return R(p) === d;
|
|
787
|
+
}, G.isValidElementType = function(p) {
|
|
788
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p === d || p === g || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === h || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof === A || p.$$typeof === L || p.$$typeof === Y || p.$$typeof === w);
|
|
789
|
+
}, G.typeOf = R, G;
|
|
789
790
|
}
|
|
790
|
-
var
|
|
791
|
+
var K = {};
|
|
791
792
|
/** @license React v16.13.1
|
|
792
793
|
* react-is.development.js
|
|
793
794
|
*
|
|
@@ -799,10 +800,10 @@ var G = {};
|
|
|
799
800
|
var Pt;
|
|
800
801
|
function ba() {
|
|
801
802
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
802
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110,
|
|
803
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
803
804
|
function R(v) {
|
|
804
805
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
805
|
-
v === o || v ===
|
|
806
|
+
v === o || v === c || v === i || v === a || v === d || v === g || typeof v == "object" && v !== null && (v.$$typeof === E || v.$$typeof === h || v.$$typeof === r || v.$$typeof === s || v.$$typeof === u || v.$$typeof === A || v.$$typeof === L || v.$$typeof === Y || v.$$typeof === w);
|
|
806
807
|
}
|
|
807
808
|
function y(v) {
|
|
808
809
|
if (typeof v == "object" && v !== null) {
|
|
@@ -811,18 +812,18 @@ function ba() {
|
|
|
811
812
|
case t:
|
|
812
813
|
var Ie = v.type;
|
|
813
814
|
switch (Ie) {
|
|
814
|
-
case
|
|
815
|
-
case
|
|
815
|
+
case m:
|
|
816
|
+
case c:
|
|
816
817
|
case o:
|
|
817
818
|
case i:
|
|
818
819
|
case a:
|
|
819
|
-
case
|
|
820
|
+
case d:
|
|
820
821
|
return Ie;
|
|
821
822
|
default:
|
|
822
823
|
var Pe = Ie && Ie.$$typeof;
|
|
823
824
|
switch (Pe) {
|
|
824
825
|
case s:
|
|
825
|
-
case
|
|
826
|
+
case u:
|
|
826
827
|
case E:
|
|
827
828
|
case h:
|
|
828
829
|
case r:
|
|
@@ -836,12 +837,12 @@ function ba() {
|
|
|
836
837
|
}
|
|
837
838
|
}
|
|
838
839
|
}
|
|
839
|
-
var p =
|
|
840
|
-
function
|
|
841
|
-
return
|
|
840
|
+
var p = m, C = c, P = s, U = r, J = t, ne = u, de = o, ue = E, me = h, q = n, Z = i, T = a, V = d, X = !1;
|
|
841
|
+
function D(v) {
|
|
842
|
+
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(v) || y(v) === m;
|
|
842
843
|
}
|
|
843
844
|
function f(v) {
|
|
844
|
-
return y(v) ===
|
|
845
|
+
return y(v) === c;
|
|
845
846
|
}
|
|
846
847
|
function b(v) {
|
|
847
848
|
return y(v) === s;
|
|
@@ -849,19 +850,19 @@ function ba() {
|
|
|
849
850
|
function O(v) {
|
|
850
851
|
return y(v) === r;
|
|
851
852
|
}
|
|
852
|
-
function
|
|
853
|
+
function F(v) {
|
|
853
854
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
854
855
|
}
|
|
855
856
|
function I(v) {
|
|
856
|
-
return y(v) ===
|
|
857
|
+
return y(v) === u;
|
|
857
858
|
}
|
|
858
859
|
function B(v) {
|
|
859
860
|
return y(v) === o;
|
|
860
861
|
}
|
|
861
|
-
function
|
|
862
|
+
function j(v) {
|
|
862
863
|
return y(v) === E;
|
|
863
864
|
}
|
|
864
|
-
function
|
|
865
|
+
function z(v) {
|
|
865
866
|
return y(v) === h;
|
|
866
867
|
}
|
|
867
868
|
function W(v) {
|
|
@@ -870,14 +871,14 @@ function ba() {
|
|
|
870
871
|
function $(v) {
|
|
871
872
|
return y(v) === i;
|
|
872
873
|
}
|
|
873
|
-
function
|
|
874
|
+
function M(v) {
|
|
874
875
|
return y(v) === a;
|
|
875
876
|
}
|
|
876
877
|
function te(v) {
|
|
877
|
-
return y(v) ===
|
|
878
|
+
return y(v) === d;
|
|
878
879
|
}
|
|
879
|
-
|
|
880
|
-
}()),
|
|
880
|
+
K.AsyncMode = p, K.ConcurrentMode = C, K.ContextConsumer = P, K.ContextProvider = U, K.Element = J, K.ForwardRef = ne, K.Fragment = de, K.Lazy = ue, K.Memo = me, K.Portal = q, K.Profiler = Z, K.StrictMode = T, K.Suspense = V, K.isAsyncMode = D, K.isConcurrentMode = f, K.isContextConsumer = b, K.isContextProvider = O, K.isElement = F, K.isForwardRef = I, K.isFragment = B, K.isLazy = j, K.isMemo = z, K.isPortal = W, K.isProfiler = $, K.isStrictMode = M, K.isSuspense = te, K.isValidElementType = R, K.typeOf = y;
|
|
881
|
+
}()), K;
|
|
881
882
|
}
|
|
882
883
|
var Ft;
|
|
883
884
|
function xn() {
|
|
@@ -907,31 +908,31 @@ function ya() {
|
|
|
907
908
|
return !1;
|
|
908
909
|
for (var r = {}, s = 0; s < 10; s++)
|
|
909
910
|
r["_" + String.fromCharCode(s)] = s;
|
|
910
|
-
var
|
|
911
|
-
return r[
|
|
911
|
+
var m = Object.getOwnPropertyNames(r).map(function(u) {
|
|
912
|
+
return r[u];
|
|
912
913
|
});
|
|
913
|
-
if (
|
|
914
|
+
if (m.join("") !== "0123456789")
|
|
914
915
|
return !1;
|
|
915
|
-
var
|
|
916
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
917
|
-
|
|
918
|
-
}), Object.keys(Object.assign({},
|
|
916
|
+
var c = {};
|
|
917
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
918
|
+
c[u] = u;
|
|
919
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
919
920
|
} catch {
|
|
920
921
|
return !1;
|
|
921
922
|
}
|
|
922
923
|
}
|
|
923
924
|
return dt = a() ? Object.assign : function(i, r) {
|
|
924
|
-
for (var s,
|
|
925
|
-
s = Object(arguments[
|
|
926
|
-
for (var
|
|
927
|
-
t.call(s,
|
|
925
|
+
for (var s, m = o(i), c, u = 1; u < arguments.length; u++) {
|
|
926
|
+
s = Object(arguments[u]);
|
|
927
|
+
for (var d in s)
|
|
928
|
+
t.call(s, d) && (m[d] = s[d]);
|
|
928
929
|
if (e) {
|
|
929
|
-
|
|
930
|
-
for (var g = 0; g <
|
|
931
|
-
n.call(s,
|
|
930
|
+
c = e(s);
|
|
931
|
+
for (var g = 0; g < c.length; g++)
|
|
932
|
+
n.call(s, c[g]) && (m[c[g]] = s[c[g]]);
|
|
932
933
|
}
|
|
933
934
|
}
|
|
934
|
-
return
|
|
935
|
+
return m;
|
|
935
936
|
}, dt;
|
|
936
937
|
}
|
|
937
938
|
var ut, Mt;
|
|
@@ -962,29 +963,29 @@ function wa() {
|
|
|
962
963
|
}
|
|
963
964
|
};
|
|
964
965
|
}
|
|
965
|
-
function a(i, r, s,
|
|
966
|
+
function a(i, r, s, m, c) {
|
|
966
967
|
if (process.env.NODE_ENV !== "production") {
|
|
967
|
-
for (var
|
|
968
|
-
if (o(i,
|
|
969
|
-
var
|
|
968
|
+
for (var u in i)
|
|
969
|
+
if (o(i, u)) {
|
|
970
|
+
var d;
|
|
970
971
|
try {
|
|
971
|
-
if (typeof i[
|
|
972
|
+
if (typeof i[u] != "function") {
|
|
972
973
|
var g = Error(
|
|
973
|
-
(
|
|
974
|
+
(m || "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`."
|
|
974
975
|
);
|
|
975
976
|
throw g.name = "Invariant Violation", g;
|
|
976
977
|
}
|
|
977
|
-
|
|
978
|
+
d = i[u](r, u, m, s, null, t);
|
|
978
979
|
} catch (E) {
|
|
979
|
-
|
|
980
|
+
d = E;
|
|
980
981
|
}
|
|
981
|
-
if (
|
|
982
|
-
(
|
|
983
|
-
),
|
|
984
|
-
n[
|
|
985
|
-
var h =
|
|
982
|
+
if (d && !(d instanceof Error) && e(
|
|
983
|
+
(m || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
984
|
+
), d instanceof Error && !(d.message in n)) {
|
|
985
|
+
n[d.message] = !0;
|
|
986
|
+
var h = c ? c() : "";
|
|
986
987
|
e(
|
|
987
|
-
"Failed " + s + " type: " +
|
|
988
|
+
"Failed " + s + " type: " + d.message + (h ?? "")
|
|
988
989
|
);
|
|
989
990
|
}
|
|
990
991
|
}
|
|
@@ -1001,20 +1002,20 @@ function ka() {
|
|
|
1001
1002
|
var e = xn(), t = ya(), n = Nt(), o = gn(), a = wa(), i = function() {
|
|
1002
1003
|
};
|
|
1003
1004
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1004
|
-
var
|
|
1005
|
-
typeof console < "u" && console.error(
|
|
1005
|
+
var m = "Warning: " + s;
|
|
1006
|
+
typeof console < "u" && console.error(m);
|
|
1006
1007
|
try {
|
|
1007
|
-
throw new Error(
|
|
1008
|
+
throw new Error(m);
|
|
1008
1009
|
} catch {
|
|
1009
1010
|
}
|
|
1010
1011
|
});
|
|
1011
1012
|
function r() {
|
|
1012
1013
|
return null;
|
|
1013
1014
|
}
|
|
1014
|
-
return _t = function(s,
|
|
1015
|
-
var
|
|
1016
|
-
function
|
|
1017
|
-
var b = f && (
|
|
1015
|
+
return _t = function(s, m) {
|
|
1016
|
+
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1017
|
+
function d(f) {
|
|
1018
|
+
var b = f && (c && f[c] || f[u]);
|
|
1018
1019
|
if (typeof b == "function")
|
|
1019
1020
|
return b;
|
|
1020
1021
|
}
|
|
@@ -1031,11 +1032,11 @@ function ka() {
|
|
|
1031
1032
|
arrayOf: R,
|
|
1032
1033
|
element: y(),
|
|
1033
1034
|
elementType: p(),
|
|
1034
|
-
instanceOf:
|
|
1035
|
-
node:
|
|
1036
|
-
objectOf:
|
|
1037
|
-
oneOf:
|
|
1038
|
-
oneOfType:
|
|
1035
|
+
instanceOf: C,
|
|
1036
|
+
node: ne(),
|
|
1037
|
+
objectOf: U,
|
|
1038
|
+
oneOf: P,
|
|
1039
|
+
oneOfType: J,
|
|
1039
1040
|
shape: ue,
|
|
1040
1041
|
exact: me
|
|
1041
1042
|
};
|
|
@@ -1046,202 +1047,202 @@ function ka() {
|
|
|
1046
1047
|
this.message = f, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
|
|
1047
1048
|
}
|
|
1048
1049
|
w.prototype = Error.prototype;
|
|
1049
|
-
function
|
|
1050
|
+
function A(f) {
|
|
1050
1051
|
if (process.env.NODE_ENV !== "production")
|
|
1051
1052
|
var b = {}, O = 0;
|
|
1052
|
-
function
|
|
1053
|
-
if (W = W || g,
|
|
1054
|
-
if (
|
|
1053
|
+
function F(B, j, z, W, $, M, te) {
|
|
1054
|
+
if (W = W || g, M = M || z, te !== n) {
|
|
1055
|
+
if (m) {
|
|
1055
1056
|
var v = new Error(
|
|
1056
1057
|
"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"
|
|
1057
1058
|
);
|
|
1058
1059
|
throw v.name = "Invariant Violation", v;
|
|
1059
1060
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1060
|
-
var fe = W + ":" +
|
|
1061
|
+
var fe = W + ":" + z;
|
|
1061
1062
|
!b[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1062
1063
|
O < 3 && (i(
|
|
1063
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1064
|
+
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1064
1065
|
), b[fe] = !0, O++);
|
|
1065
1066
|
}
|
|
1066
1067
|
}
|
|
1067
|
-
return
|
|
1068
|
+
return j[z] == null ? B ? j[z] === null ? new w("The " + $ + " `" + M + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new w("The " + $ + " `" + M + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : f(j, z, W, $, M);
|
|
1068
1069
|
}
|
|
1069
|
-
var I =
|
|
1070
|
-
return I.isRequired =
|
|
1070
|
+
var I = F.bind(null, !1);
|
|
1071
|
+
return I.isRequired = F.bind(null, !0), I;
|
|
1071
1072
|
}
|
|
1072
1073
|
function L(f) {
|
|
1073
|
-
function b(O,
|
|
1074
|
-
var W = O[
|
|
1074
|
+
function b(O, F, I, B, j, z) {
|
|
1075
|
+
var W = O[F], $ = T(W);
|
|
1075
1076
|
if ($ !== f) {
|
|
1076
|
-
var
|
|
1077
|
+
var M = V(W);
|
|
1077
1078
|
return new w(
|
|
1078
|
-
"Invalid " + B + " `" +
|
|
1079
|
+
"Invalid " + B + " `" + j + "` of type " + ("`" + M + "` supplied to `" + I + "`, expected ") + ("`" + f + "`."),
|
|
1079
1080
|
{ expectedType: f }
|
|
1080
1081
|
);
|
|
1081
1082
|
}
|
|
1082
1083
|
return null;
|
|
1083
1084
|
}
|
|
1084
|
-
return
|
|
1085
|
+
return A(b);
|
|
1085
1086
|
}
|
|
1086
1087
|
function Y() {
|
|
1087
|
-
return
|
|
1088
|
+
return A(r);
|
|
1088
1089
|
}
|
|
1089
1090
|
function R(f) {
|
|
1090
|
-
function b(O,
|
|
1091
|
+
function b(O, F, I, B, j) {
|
|
1091
1092
|
if (typeof f != "function")
|
|
1092
|
-
return new w("Property `" +
|
|
1093
|
-
var
|
|
1094
|
-
if (!Array.isArray(
|
|
1095
|
-
var W =
|
|
1096
|
-
return new w("Invalid " + B + " `" +
|
|
1093
|
+
return new w("Property `" + j + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1094
|
+
var z = O[F];
|
|
1095
|
+
if (!Array.isArray(z)) {
|
|
1096
|
+
var W = T(z);
|
|
1097
|
+
return new w("Invalid " + B + " `" + j + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an array."));
|
|
1097
1098
|
}
|
|
1098
|
-
for (var $ = 0; $ <
|
|
1099
|
-
var
|
|
1100
|
-
if (
|
|
1101
|
-
return
|
|
1099
|
+
for (var $ = 0; $ < z.length; $++) {
|
|
1100
|
+
var M = f(z, $, I, B, j + "[" + $ + "]", n);
|
|
1101
|
+
if (M instanceof Error)
|
|
1102
|
+
return M;
|
|
1102
1103
|
}
|
|
1103
1104
|
return null;
|
|
1104
1105
|
}
|
|
1105
|
-
return
|
|
1106
|
+
return A(b);
|
|
1106
1107
|
}
|
|
1107
1108
|
function y() {
|
|
1108
|
-
function f(b, O,
|
|
1109
|
-
var
|
|
1110
|
-
if (!s(
|
|
1111
|
-
var
|
|
1112
|
-
return new w("Invalid " + I + " `" + B + "` of type " + ("`" +
|
|
1109
|
+
function f(b, O, F, I, B) {
|
|
1110
|
+
var j = b[O];
|
|
1111
|
+
if (!s(j)) {
|
|
1112
|
+
var z = T(j);
|
|
1113
|
+
return new w("Invalid " + I + " `" + B + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement."));
|
|
1113
1114
|
}
|
|
1114
1115
|
return null;
|
|
1115
1116
|
}
|
|
1116
|
-
return
|
|
1117
|
+
return A(f);
|
|
1117
1118
|
}
|
|
1118
1119
|
function p() {
|
|
1119
|
-
function f(b, O,
|
|
1120
|
-
var
|
|
1121
|
-
if (!e.isValidElementType(
|
|
1122
|
-
var
|
|
1123
|
-
return new w("Invalid " + I + " `" + B + "` of type " + ("`" +
|
|
1120
|
+
function f(b, O, F, I, B) {
|
|
1121
|
+
var j = b[O];
|
|
1122
|
+
if (!e.isValidElementType(j)) {
|
|
1123
|
+
var z = T(j);
|
|
1124
|
+
return new w("Invalid " + I + " `" + B + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement type."));
|
|
1124
1125
|
}
|
|
1125
1126
|
return null;
|
|
1126
1127
|
}
|
|
1127
|
-
return
|
|
1128
|
+
return A(f);
|
|
1128
1129
|
}
|
|
1129
|
-
function
|
|
1130
|
-
function b(O,
|
|
1131
|
-
if (!(O[
|
|
1132
|
-
var
|
|
1133
|
-
return new w("Invalid " + B + " `" +
|
|
1130
|
+
function C(f) {
|
|
1131
|
+
function b(O, F, I, B, j) {
|
|
1132
|
+
if (!(O[F] instanceof f)) {
|
|
1133
|
+
var z = f.name || g, W = D(O[F]);
|
|
1134
|
+
return new w("Invalid " + B + " `" + j + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("instance of `" + z + "`."));
|
|
1134
1135
|
}
|
|
1135
1136
|
return null;
|
|
1136
1137
|
}
|
|
1137
|
-
return
|
|
1138
|
+
return A(b);
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function P(f) {
|
|
1140
1141
|
if (!Array.isArray(f))
|
|
1141
1142
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1142
1143
|
"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])."
|
|
1143
1144
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1144
|
-
function b(O,
|
|
1145
|
-
for (var
|
|
1146
|
-
if (E(
|
|
1145
|
+
function b(O, F, I, B, j) {
|
|
1146
|
+
for (var z = O[F], W = 0; W < f.length; W++)
|
|
1147
|
+
if (E(z, f[W]))
|
|
1147
1148
|
return null;
|
|
1148
1149
|
var $ = JSON.stringify(f, function(te, v) {
|
|
1149
1150
|
var fe = V(v);
|
|
1150
1151
|
return fe === "symbol" ? String(v) : v;
|
|
1151
1152
|
});
|
|
1152
|
-
return new w("Invalid " + B + " `" +
|
|
1153
|
+
return new w("Invalid " + B + " `" + j + "` of value `" + String(z) + "` " + ("supplied to `" + I + "`, expected one of " + $ + "."));
|
|
1153
1154
|
}
|
|
1154
|
-
return
|
|
1155
|
+
return A(b);
|
|
1155
1156
|
}
|
|
1156
|
-
function
|
|
1157
|
-
function b(O,
|
|
1157
|
+
function U(f) {
|
|
1158
|
+
function b(O, F, I, B, j) {
|
|
1158
1159
|
if (typeof f != "function")
|
|
1159
|
-
return new w("Property `" +
|
|
1160
|
-
var
|
|
1160
|
+
return new w("Property `" + j + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1161
|
+
var z = O[F], W = T(z);
|
|
1161
1162
|
if (W !== "object")
|
|
1162
|
-
return new w("Invalid " + B + " `" +
|
|
1163
|
-
for (var $ in
|
|
1164
|
-
if (o(
|
|
1165
|
-
var
|
|
1166
|
-
if (
|
|
1167
|
-
return
|
|
1163
|
+
return new w("Invalid " + B + " `" + j + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an object."));
|
|
1164
|
+
for (var $ in z)
|
|
1165
|
+
if (o(z, $)) {
|
|
1166
|
+
var M = f(z, $, I, B, j + "." + $, n);
|
|
1167
|
+
if (M instanceof Error)
|
|
1168
|
+
return M;
|
|
1168
1169
|
}
|
|
1169
1170
|
return null;
|
|
1170
1171
|
}
|
|
1171
|
-
return
|
|
1172
|
+
return A(b);
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
+
function J(f) {
|
|
1174
1175
|
if (!Array.isArray(f))
|
|
1175
1176
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1176
1177
|
for (var b = 0; b < f.length; b++) {
|
|
1177
1178
|
var O = f[b];
|
|
1178
1179
|
if (typeof O != "function")
|
|
1179
1180
|
return i(
|
|
1180
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1181
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(O) + " at index " + b + "."
|
|
1181
1182
|
), r;
|
|
1182
1183
|
}
|
|
1183
|
-
function
|
|
1184
|
-
for (var $ = [],
|
|
1185
|
-
var te = f[
|
|
1184
|
+
function F(I, B, j, z, W) {
|
|
1185
|
+
for (var $ = [], M = 0; M < f.length; M++) {
|
|
1186
|
+
var te = f[M], v = te(I, B, j, z, W, n);
|
|
1186
1187
|
if (v == null)
|
|
1187
1188
|
return null;
|
|
1188
1189
|
v.data && o(v.data, "expectedType") && $.push(v.data.expectedType);
|
|
1189
1190
|
}
|
|
1190
1191
|
var fe = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1191
|
-
return new w("Invalid " +
|
|
1192
|
+
return new w("Invalid " + z + " `" + W + "` supplied to " + ("`" + j + "`" + fe + "."));
|
|
1192
1193
|
}
|
|
1193
|
-
return
|
|
1194
|
+
return A(F);
|
|
1194
1195
|
}
|
|
1195
|
-
function
|
|
1196
|
-
function f(b, O,
|
|
1197
|
-
return q(b[O]) ? null : new w("Invalid " + I + " `" + B + "` supplied to " + ("`" +
|
|
1196
|
+
function ne() {
|
|
1197
|
+
function f(b, O, F, I, B) {
|
|
1198
|
+
return q(b[O]) ? null : new w("Invalid " + I + " `" + B + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
1198
1199
|
}
|
|
1199
|
-
return
|
|
1200
|
+
return A(f);
|
|
1200
1201
|
}
|
|
1201
|
-
function de(f, b, O,
|
|
1202
|
+
function de(f, b, O, F, I) {
|
|
1202
1203
|
return new w(
|
|
1203
|
-
(f || "React class") + ": " + b + " type `" + O + "." +
|
|
1204
|
+
(f || "React class") + ": " + b + " type `" + O + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1204
1205
|
);
|
|
1205
1206
|
}
|
|
1206
1207
|
function ue(f) {
|
|
1207
|
-
function b(O,
|
|
1208
|
-
var
|
|
1208
|
+
function b(O, F, I, B, j) {
|
|
1209
|
+
var z = O[F], W = T(z);
|
|
1209
1210
|
if (W !== "object")
|
|
1210
|
-
return new w("Invalid " + B + " `" +
|
|
1211
|
+
return new w("Invalid " + B + " `" + j + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1211
1212
|
for (var $ in f) {
|
|
1212
|
-
var
|
|
1213
|
-
if (typeof
|
|
1214
|
-
return de(I, B,
|
|
1215
|
-
var te = z
|
|
1213
|
+
var M = f[$];
|
|
1214
|
+
if (typeof M != "function")
|
|
1215
|
+
return de(I, B, j, $, V(M));
|
|
1216
|
+
var te = M(z, $, I, B, j + "." + $, n);
|
|
1216
1217
|
if (te)
|
|
1217
1218
|
return te;
|
|
1218
1219
|
}
|
|
1219
1220
|
return null;
|
|
1220
1221
|
}
|
|
1221
|
-
return
|
|
1222
|
+
return A(b);
|
|
1222
1223
|
}
|
|
1223
1224
|
function me(f) {
|
|
1224
|
-
function b(O,
|
|
1225
|
-
var
|
|
1225
|
+
function b(O, F, I, B, j) {
|
|
1226
|
+
var z = O[F], W = T(z);
|
|
1226
1227
|
if (W !== "object")
|
|
1227
|
-
return new w("Invalid " + B + " `" +
|
|
1228
|
-
var $ = t({}, O[
|
|
1229
|
-
for (var
|
|
1230
|
-
var te = f[
|
|
1231
|
-
if (o(f,
|
|
1232
|
-
return de(I, B,
|
|
1228
|
+
return new w("Invalid " + B + " `" + j + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1229
|
+
var $ = t({}, O[F], f);
|
|
1230
|
+
for (var M in $) {
|
|
1231
|
+
var te = f[M];
|
|
1232
|
+
if (o(f, M) && typeof te != "function")
|
|
1233
|
+
return de(I, B, j, M, V(te));
|
|
1233
1234
|
if (!te)
|
|
1234
1235
|
return new w(
|
|
1235
|
-
"Invalid " + B + " `" +
|
|
1236
|
+
"Invalid " + B + " `" + j + "` key `" + M + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(O[F], null, " ") + `
|
|
1236
1237
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1237
1238
|
);
|
|
1238
|
-
var v = te(
|
|
1239
|
+
var v = te(z, M, I, B, j + "." + M, n);
|
|
1239
1240
|
if (v)
|
|
1240
1241
|
return v;
|
|
1241
1242
|
}
|
|
1242
1243
|
return null;
|
|
1243
1244
|
}
|
|
1244
|
-
return
|
|
1245
|
+
return A(b);
|
|
1245
1246
|
}
|
|
1246
1247
|
function q(f) {
|
|
1247
1248
|
switch (typeof f) {
|
|
@@ -1256,16 +1257,16 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1256
1257
|
return f.every(q);
|
|
1257
1258
|
if (f === null || s(f))
|
|
1258
1259
|
return !0;
|
|
1259
|
-
var b =
|
|
1260
|
+
var b = d(f);
|
|
1260
1261
|
if (b) {
|
|
1261
|
-
var O = b.call(f),
|
|
1262
|
+
var O = b.call(f), F;
|
|
1262
1263
|
if (b !== f.entries) {
|
|
1263
|
-
for (; !(
|
|
1264
|
-
if (!q(
|
|
1264
|
+
for (; !(F = O.next()).done; )
|
|
1265
|
+
if (!q(F.value))
|
|
1265
1266
|
return !1;
|
|
1266
1267
|
} else
|
|
1267
|
-
for (; !(
|
|
1268
|
-
var I =
|
|
1268
|
+
for (; !(F = O.next()).done; ) {
|
|
1269
|
+
var I = F.value;
|
|
1269
1270
|
if (I && !q(I[1]))
|
|
1270
1271
|
return !1;
|
|
1271
1272
|
}
|
|
@@ -1276,17 +1277,17 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1276
1277
|
return !1;
|
|
1277
1278
|
}
|
|
1278
1279
|
}
|
|
1279
|
-
function
|
|
1280
|
+
function Z(f, b) {
|
|
1280
1281
|
return f === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
|
|
1281
1282
|
}
|
|
1282
|
-
function
|
|
1283
|
+
function T(f) {
|
|
1283
1284
|
var b = typeof f;
|
|
1284
|
-
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" :
|
|
1285
|
+
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Z(b, f) ? "symbol" : b;
|
|
1285
1286
|
}
|
|
1286
1287
|
function V(f) {
|
|
1287
1288
|
if (typeof f > "u" || f === null)
|
|
1288
1289
|
return "" + f;
|
|
1289
|
-
var b =
|
|
1290
|
+
var b = T(f);
|
|
1290
1291
|
if (b === "object") {
|
|
1291
1292
|
if (f instanceof Date)
|
|
1292
1293
|
return "date";
|
|
@@ -1295,7 +1296,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1295
1296
|
}
|
|
1296
1297
|
return b;
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
+
function X(f) {
|
|
1299
1300
|
var b = V(f);
|
|
1300
1301
|
switch (b) {
|
|
1301
1302
|
case "array":
|
|
@@ -1309,7 +1310,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1309
1310
|
return b;
|
|
1310
1311
|
}
|
|
1311
1312
|
}
|
|
1312
|
-
function
|
|
1313
|
+
function D(f) {
|
|
1313
1314
|
return !f.constructor || !f.constructor.name ? g : f.constructor.name;
|
|
1314
1315
|
}
|
|
1315
1316
|
return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -1325,8 +1326,8 @@ function Ca() {
|
|
|
1325
1326
|
function n() {
|
|
1326
1327
|
}
|
|
1327
1328
|
return n.resetWarningCache = t, vt = function() {
|
|
1328
|
-
function o(r, s,
|
|
1329
|
-
if (
|
|
1329
|
+
function o(r, s, m, c, u, d) {
|
|
1330
|
+
if (d !== e) {
|
|
1330
1331
|
var g = new Error(
|
|
1331
1332
|
"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"
|
|
1332
1333
|
);
|
|
@@ -1369,7 +1370,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1369
1370
|
} else
|
|
1370
1371
|
wt.exports = Ca()();
|
|
1371
1372
|
var Sa = wt.exports;
|
|
1372
|
-
const
|
|
1373
|
+
const k = /* @__PURE__ */ vn(Sa);
|
|
1373
1374
|
function Ae(e, t, n, o) {
|
|
1374
1375
|
function a(i) {
|
|
1375
1376
|
return i instanceof n ? i : new n(function(r) {
|
|
@@ -1377,24 +1378,24 @@ function Ae(e, t, n, o) {
|
|
|
1377
1378
|
});
|
|
1378
1379
|
}
|
|
1379
1380
|
return new (n || (n = Promise))(function(i, r) {
|
|
1380
|
-
function s(
|
|
1381
|
+
function s(u) {
|
|
1381
1382
|
try {
|
|
1382
|
-
|
|
1383
|
-
} catch (
|
|
1384
|
-
r(
|
|
1383
|
+
c(o.next(u));
|
|
1384
|
+
} catch (d) {
|
|
1385
|
+
r(d);
|
|
1385
1386
|
}
|
|
1386
1387
|
}
|
|
1387
|
-
function u
|
|
1388
|
+
function m(u) {
|
|
1388
1389
|
try {
|
|
1389
|
-
|
|
1390
|
-
} catch (
|
|
1391
|
-
r(
|
|
1390
|
+
c(o.throw(u));
|
|
1391
|
+
} catch (d) {
|
|
1392
|
+
r(d);
|
|
1392
1393
|
}
|
|
1393
1394
|
}
|
|
1394
|
-
function
|
|
1395
|
-
|
|
1395
|
+
function c(u) {
|
|
1396
|
+
u.done ? i(u.value) : a(u.value).then(s, m);
|
|
1396
1397
|
}
|
|
1397
|
-
|
|
1398
|
+
c((o = o.apply(e, t || [])).next());
|
|
1398
1399
|
});
|
|
1399
1400
|
}
|
|
1400
1401
|
const Ia = /* @__PURE__ */ new Map([
|
|
@@ -2827,8 +2828,8 @@ function Ha(e, t) {
|
|
|
2827
2828
|
try {
|
|
2828
2829
|
for (n = n.call(e); !(a = (r = n.next()).done) && (o.push(r.value), !(t && o.length === t)); a = !0)
|
|
2829
2830
|
;
|
|
2830
|
-
} catch (
|
|
2831
|
-
i = !0, s =
|
|
2831
|
+
} catch (m) {
|
|
2832
|
+
i = !0, s = m;
|
|
2832
2833
|
} finally {
|
|
2833
2834
|
try {
|
|
2834
2835
|
!a && n.return != null && n.return();
|
|
@@ -2882,9 +2883,9 @@ function je(e) {
|
|
|
2882
2883
|
}
|
|
2883
2884
|
function Ja(e) {
|
|
2884
2885
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2885
|
-
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(
|
|
2886
|
-
var
|
|
2887
|
-
return
|
|
2886
|
+
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(m) {
|
|
2887
|
+
var c = kn(m, n), u = Be(c, 1), d = u[0], g = Cn(m, o, a), h = Be(g, 1), E = h[0], w = s ? s(m) : null;
|
|
2888
|
+
return d && E && !w;
|
|
2888
2889
|
});
|
|
2889
2890
|
}
|
|
2890
2891
|
function Xe(e) {
|
|
@@ -3002,8 +3003,8 @@ function xi(e, t) {
|
|
|
3002
3003
|
try {
|
|
3003
3004
|
for (n = n.call(e); !(a = (r = n.next()).done) && (o.push(r.value), !(t && o.length === t)); a = !0)
|
|
3004
3005
|
;
|
|
3005
|
-
} catch (
|
|
3006
|
-
i = !0, s =
|
|
3006
|
+
} catch (m) {
|
|
3007
|
+
i = !0, s = m;
|
|
3007
3008
|
} finally {
|
|
3008
3009
|
try {
|
|
3009
3010
|
!a && n.return != null && n.return();
|
|
@@ -3027,7 +3028,7 @@ function Jt(e, t) {
|
|
|
3027
3028
|
}
|
|
3028
3029
|
return n;
|
|
3029
3030
|
}
|
|
3030
|
-
function
|
|
3031
|
+
function Q(e) {
|
|
3031
3032
|
for (var t = 1; t < arguments.length; t++) {
|
|
3032
3033
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3033
3034
|
t % 2 ? Jt(Object(n), !0).forEach(function(o) {
|
|
@@ -3064,7 +3065,7 @@ var Je = /* @__PURE__ */ zn(function(e, t) {
|
|
|
3064
3065
|
return {
|
|
3065
3066
|
open: i
|
|
3066
3067
|
};
|
|
3067
|
-
}, [i]), /* @__PURE__ */ We.createElement(Bn, null, n(
|
|
3068
|
+
}, [i]), /* @__PURE__ */ We.createElement(Bn, null, n(Q(Q({}, r), {}, {
|
|
3068
3069
|
open: i
|
|
3069
3070
|
})));
|
|
3070
3071
|
});
|
|
@@ -3102,7 +3103,7 @@ Je.propTypes = {
|
|
|
3102
3103
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3103
3104
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3104
3105
|
*/
|
|
3105
|
-
children:
|
|
3106
|
+
children: k.func,
|
|
3106
3107
|
/**
|
|
3107
3108
|
* Set accepted file types.
|
|
3108
3109
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3110,90 +3111,90 @@ Je.propTypes = {
|
|
|
3110
3111
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3111
3112
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3112
3113
|
*/
|
|
3113
|
-
accept:
|
|
3114
|
+
accept: k.objectOf(k.arrayOf(k.string)),
|
|
3114
3115
|
/**
|
|
3115
3116
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3116
3117
|
*/
|
|
3117
|
-
multiple:
|
|
3118
|
+
multiple: k.bool,
|
|
3118
3119
|
/**
|
|
3119
3120
|
* If false, allow dropped items to take over the current browser window
|
|
3120
3121
|
*/
|
|
3121
|
-
preventDropOnDocument:
|
|
3122
|
+
preventDropOnDocument: k.bool,
|
|
3122
3123
|
/**
|
|
3123
3124
|
* If true, disables click to open the native file selection dialog
|
|
3124
3125
|
*/
|
|
3125
|
-
noClick:
|
|
3126
|
+
noClick: k.bool,
|
|
3126
3127
|
/**
|
|
3127
3128
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3128
3129
|
* Note that it also stops tracking the focus state.
|
|
3129
3130
|
*/
|
|
3130
|
-
noKeyboard:
|
|
3131
|
+
noKeyboard: k.bool,
|
|
3131
3132
|
/**
|
|
3132
3133
|
* If true, disables drag 'n' drop
|
|
3133
3134
|
*/
|
|
3134
|
-
noDrag:
|
|
3135
|
+
noDrag: k.bool,
|
|
3135
3136
|
/**
|
|
3136
3137
|
* If true, stops drag event propagation to parents
|
|
3137
3138
|
*/
|
|
3138
|
-
noDragEventsBubbling:
|
|
3139
|
+
noDragEventsBubbling: k.bool,
|
|
3139
3140
|
/**
|
|
3140
3141
|
* Minimum file size (in bytes)
|
|
3141
3142
|
*/
|
|
3142
|
-
minSize:
|
|
3143
|
+
minSize: k.number,
|
|
3143
3144
|
/**
|
|
3144
3145
|
* Maximum file size (in bytes)
|
|
3145
3146
|
*/
|
|
3146
|
-
maxSize:
|
|
3147
|
+
maxSize: k.number,
|
|
3147
3148
|
/**
|
|
3148
3149
|
* Maximum accepted number of files
|
|
3149
3150
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3150
3151
|
*/
|
|
3151
|
-
maxFiles:
|
|
3152
|
+
maxFiles: k.number,
|
|
3152
3153
|
/**
|
|
3153
3154
|
* Enable/disable the dropzone
|
|
3154
3155
|
*/
|
|
3155
|
-
disabled:
|
|
3156
|
+
disabled: k.bool,
|
|
3156
3157
|
/**
|
|
3157
3158
|
* Use this to provide a custom file aggregator
|
|
3158
3159
|
*
|
|
3159
3160
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3160
3161
|
*/
|
|
3161
|
-
getFilesFromEvent:
|
|
3162
|
+
getFilesFromEvent: k.func,
|
|
3162
3163
|
/**
|
|
3163
3164
|
* Cb for when closing the file dialog with no selection
|
|
3164
3165
|
*/
|
|
3165
|
-
onFileDialogCancel:
|
|
3166
|
+
onFileDialogCancel: k.func,
|
|
3166
3167
|
/**
|
|
3167
3168
|
* Cb for when opening the file dialog
|
|
3168
3169
|
*/
|
|
3169
|
-
onFileDialogOpen:
|
|
3170
|
+
onFileDialogOpen: k.func,
|
|
3170
3171
|
/**
|
|
3171
3172
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3172
3173
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3173
3174
|
*/
|
|
3174
|
-
useFsAccessApi:
|
|
3175
|
+
useFsAccessApi: k.bool,
|
|
3175
3176
|
/**
|
|
3176
3177
|
* Set to true to focus the root element on render
|
|
3177
3178
|
*/
|
|
3178
|
-
autoFocus:
|
|
3179
|
+
autoFocus: k.bool,
|
|
3179
3180
|
/**
|
|
3180
3181
|
* Cb for when the `dragenter` event occurs.
|
|
3181
3182
|
*
|
|
3182
3183
|
* @param {DragEvent} event
|
|
3183
3184
|
*/
|
|
3184
|
-
onDragEnter:
|
|
3185
|
+
onDragEnter: k.func,
|
|
3185
3186
|
/**
|
|
3186
3187
|
* Cb for when the `dragleave` event occurs
|
|
3187
3188
|
*
|
|
3188
3189
|
* @param {DragEvent} event
|
|
3189
3190
|
*/
|
|
3190
|
-
onDragLeave:
|
|
3191
|
+
onDragLeave: k.func,
|
|
3191
3192
|
/**
|
|
3192
3193
|
* Cb for when the `dragover` event occurs
|
|
3193
3194
|
*
|
|
3194
3195
|
* @param {DragEvent} event
|
|
3195
3196
|
*/
|
|
3196
|
-
onDragOver:
|
|
3197
|
+
onDragOver: k.func,
|
|
3197
3198
|
/**
|
|
3198
3199
|
* Cb for when the `drop` event occurs.
|
|
3199
3200
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3224,7 +3225,7 @@ Je.propTypes = {
|
|
|
3224
3225
|
* @param {FileRejection[]} fileRejections
|
|
3225
3226
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3226
3227
|
*/
|
|
3227
|
-
onDrop:
|
|
3228
|
+
onDrop: k.func,
|
|
3228
3229
|
/**
|
|
3229
3230
|
* Cb for when the `drop` event occurs.
|
|
3230
3231
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3232,7 +3233,7 @@ Je.propTypes = {
|
|
|
3232
3233
|
* @param {File[]} files
|
|
3233
3234
|
* @param {(DragEvent|Event)} event
|
|
3234
3235
|
*/
|
|
3235
|
-
onDropAccepted:
|
|
3236
|
+
onDropAccepted: k.func,
|
|
3236
3237
|
/**
|
|
3237
3238
|
* Cb for when the `drop` event occurs.
|
|
3238
3239
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3240,19 +3241,19 @@ Je.propTypes = {
|
|
|
3240
3241
|
* @param {FileRejection[]} fileRejections
|
|
3241
3242
|
* @param {(DragEvent|Event)} event
|
|
3242
3243
|
*/
|
|
3243
|
-
onDropRejected:
|
|
3244
|
+
onDropRejected: k.func,
|
|
3244
3245
|
/**
|
|
3245
3246
|
* Cb for when there's some error from any of the promises.
|
|
3246
3247
|
*
|
|
3247
3248
|
* @param {Error} error
|
|
3248
3249
|
*/
|
|
3249
|
-
onError:
|
|
3250
|
+
onError: k.func,
|
|
3250
3251
|
/**
|
|
3251
3252
|
* Custom validation function. It must return null if there's no errors.
|
|
3252
3253
|
* @param {File} file
|
|
3253
3254
|
* @returns {FileError|FileError[]|null}
|
|
3254
3255
|
*/
|
|
3255
|
-
validator:
|
|
3256
|
+
validator: k.func
|
|
3256
3257
|
};
|
|
3257
3258
|
var St = {
|
|
3258
3259
|
isFocused: !1,
|
|
@@ -3264,65 +3265,65 @@ var St = {
|
|
|
3264
3265
|
fileRejections: []
|
|
3265
3266
|
};
|
|
3266
3267
|
function bi() {
|
|
3267
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t =
|
|
3268
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Q(Q({}, In), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, c = t.onDragEnter, u = t.onDragLeave, d = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, E = t.onDropRejected, w = t.onFileDialogCancel, A = t.onFileDialogOpen, L = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, y = t.noClick, p = t.noKeyboard, C = t.noDrag, P = t.noDragEventsBubbling, U = t.onError, J = t.validator, ne = Oe(function() {
|
|
3268
3269
|
return ii(n);
|
|
3269
3270
|
}, [n]), de = Oe(function() {
|
|
3270
3271
|
return ai(n);
|
|
3271
3272
|
}, [n]), ue = Oe(function() {
|
|
3272
|
-
return typeof
|
|
3273
|
-
}, [
|
|
3273
|
+
return typeof A == "function" ? A : en;
|
|
3274
|
+
}, [A]), me = Oe(function() {
|
|
3274
3275
|
return typeof w == "function" ? w : en;
|
|
3275
|
-
}, [w]), q = Te(null),
|
|
3276
|
+
}, [w]), q = Te(null), Z = Te(null), T = Wn(yi, St), V = gt(T, 2), X = V[0], D = V[1], f = X.isFocused, b = X.isFileDialogActive, O = Te(typeof window < "u" && window.isSecureContext && L && oi()), F = function() {
|
|
3276
3277
|
!O.current && b && setTimeout(function() {
|
|
3277
|
-
if (
|
|
3278
|
-
var S =
|
|
3279
|
-
S.length || (
|
|
3278
|
+
if (Z.current) {
|
|
3279
|
+
var S = Z.current.files;
|
|
3280
|
+
S.length || (D({
|
|
3280
3281
|
type: "closeDialog"
|
|
3281
3282
|
}), me());
|
|
3282
3283
|
}
|
|
3283
3284
|
}, 300);
|
|
3284
3285
|
};
|
|
3285
|
-
|
|
3286
|
-
return window.addEventListener("focus",
|
|
3287
|
-
window.removeEventListener("focus",
|
|
3286
|
+
ae(function() {
|
|
3287
|
+
return window.addEventListener("focus", F, !1), function() {
|
|
3288
|
+
window.removeEventListener("focus", F, !1);
|
|
3288
3289
|
};
|
|
3289
|
-
}, [
|
|
3290
|
+
}, [Z, b, me, O]);
|
|
3290
3291
|
var I = Te([]), B = function(S) {
|
|
3291
3292
|
q.current && q.current.contains(S.target) || (S.preventDefault(), I.current = []);
|
|
3292
3293
|
};
|
|
3293
|
-
|
|
3294
|
+
ae(function() {
|
|
3294
3295
|
return R && (document.addEventListener("dragover", Qt, !1), document.addEventListener("drop", B, !1)), function() {
|
|
3295
3296
|
R && (document.removeEventListener("dragover", Qt), document.removeEventListener("drop", B));
|
|
3296
3297
|
};
|
|
3297
|
-
}, [q, R]),
|
|
3298
|
+
}, [q, R]), ae(function() {
|
|
3298
3299
|
return !o && Y && q.current && q.current.focus(), function() {
|
|
3299
3300
|
};
|
|
3300
3301
|
}, [q, Y, o]);
|
|
3301
|
-
var
|
|
3302
|
-
|
|
3303
|
-
}, [
|
|
3302
|
+
var j = le(function(x) {
|
|
3303
|
+
U ? U(x) : console.error(x);
|
|
3304
|
+
}, [U]), z = le(function(x) {
|
|
3304
3305
|
x.preventDefault(), x.persist(), $e(x), I.current = [].concat(ui(I.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3305
|
-
if (!(Xe(x) && !
|
|
3306
|
-
var ee = S.length,
|
|
3306
|
+
if (!(Xe(x) && !P)) {
|
|
3307
|
+
var ee = S.length, oe = ee > 0 && Ja({
|
|
3307
3308
|
files: S,
|
|
3308
|
-
accept:
|
|
3309
|
+
accept: ne,
|
|
3309
3310
|
minSize: r,
|
|
3310
3311
|
maxSize: i,
|
|
3311
3312
|
multiple: s,
|
|
3312
|
-
maxFiles:
|
|
3313
|
-
validator:
|
|
3314
|
-
}), _e = ee > 0 && !
|
|
3315
|
-
|
|
3316
|
-
isDragAccept:
|
|
3313
|
+
maxFiles: m,
|
|
3314
|
+
validator: J
|
|
3315
|
+
}), _e = ee > 0 && !oe;
|
|
3316
|
+
D({
|
|
3317
|
+
isDragAccept: oe,
|
|
3317
3318
|
isDragReject: _e,
|
|
3318
3319
|
isDragActive: !0,
|
|
3319
3320
|
type: "setDraggedFiles"
|
|
3320
|
-
}),
|
|
3321
|
+
}), c && c(x);
|
|
3321
3322
|
}
|
|
3322
3323
|
}).catch(function(S) {
|
|
3323
|
-
return
|
|
3324
|
+
return j(S);
|
|
3324
3325
|
});
|
|
3325
|
-
}, [a,
|
|
3326
|
+
}, [a, c, j, P, ne, r, i, s, m, J]), W = le(function(x) {
|
|
3326
3327
|
x.preventDefault(), x.persist(), $e(x);
|
|
3327
3328
|
var S = Ue(x);
|
|
3328
3329
|
if (S && x.dataTransfer)
|
|
@@ -3330,55 +3331,55 @@ function bi() {
|
|
|
3330
3331
|
x.dataTransfer.dropEffect = "copy";
|
|
3331
3332
|
} catch {
|
|
3332
3333
|
}
|
|
3333
|
-
return S &&
|
|
3334
|
-
}, [
|
|
3334
|
+
return S && d && d(x), !1;
|
|
3335
|
+
}, [d, P]), $ = le(function(x) {
|
|
3335
3336
|
x.preventDefault(), x.persist(), $e(x);
|
|
3336
|
-
var S = I.current.filter(function(
|
|
3337
|
-
return q.current && q.current.contains(
|
|
3337
|
+
var S = I.current.filter(function(oe) {
|
|
3338
|
+
return q.current && q.current.contains(oe);
|
|
3338
3339
|
}), ee = S.indexOf(x.target);
|
|
3339
|
-
ee !== -1 && S.splice(ee, 1), I.current = S, !(S.length > 0) && (
|
|
3340
|
+
ee !== -1 && S.splice(ee, 1), I.current = S, !(S.length > 0) && (D({
|
|
3340
3341
|
type: "setDraggedFiles",
|
|
3341
3342
|
isDragActive: !1,
|
|
3342
3343
|
isDragAccept: !1,
|
|
3343
3344
|
isDragReject: !1
|
|
3344
|
-
}), Ue(x) &&
|
|
3345
|
-
}, [q,
|
|
3346
|
-
var ee = [],
|
|
3345
|
+
}), Ue(x) && u && u(x));
|
|
3346
|
+
}, [q, u, P]), M = le(function(x, S) {
|
|
3347
|
+
var ee = [], oe = [];
|
|
3347
3348
|
x.forEach(function(_e) {
|
|
3348
|
-
var Fe = kn(_e,
|
|
3349
|
+
var Fe = kn(_e, ne), De = gt(Fe, 2), tt = De[0], nt = De[1], ot = Cn(_e, r, i), He = gt(ot, 2), at = He[0], it = He[1], rt = J ? J(_e) : null;
|
|
3349
3350
|
if (tt && at && !rt)
|
|
3350
3351
|
ee.push(_e);
|
|
3351
3352
|
else {
|
|
3352
3353
|
var st = [nt, it];
|
|
3353
|
-
rt && (st = st.concat(rt)),
|
|
3354
|
+
rt && (st = st.concat(rt)), oe.push({
|
|
3354
3355
|
file: _e,
|
|
3355
3356
|
errors: st.filter(function(Fn) {
|
|
3356
3357
|
return Fn;
|
|
3357
3358
|
})
|
|
3358
3359
|
});
|
|
3359
3360
|
}
|
|
3360
|
-
}), (!s && ee.length > 1 || s &&
|
|
3361
|
-
|
|
3361
|
+
}), (!s && ee.length > 1 || s && m >= 1 && ee.length > m) && (ee.forEach(function(_e) {
|
|
3362
|
+
oe.push({
|
|
3362
3363
|
file: _e,
|
|
3363
3364
|
errors: [Qa]
|
|
3364
3365
|
});
|
|
3365
|
-
}), ee.splice(0)),
|
|
3366
|
+
}), ee.splice(0)), D({
|
|
3366
3367
|
acceptedFiles: ee,
|
|
3367
|
-
fileRejections:
|
|
3368
|
-
isDragReject:
|
|
3368
|
+
fileRejections: oe,
|
|
3369
|
+
isDragReject: oe.length > 0,
|
|
3369
3370
|
type: "setFiles"
|
|
3370
|
-
}), g && g(ee,
|
|
3371
|
-
}, [
|
|
3371
|
+
}), g && g(ee, oe, S), oe.length > 0 && E && E(oe, S), ee.length > 0 && h && h(ee, S);
|
|
3372
|
+
}, [D, s, ne, r, i, m, g, h, E, J]), te = le(function(x) {
|
|
3372
3373
|
x.preventDefault(), x.persist(), $e(x), I.current = [], Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3373
|
-
Xe(x) && !
|
|
3374
|
+
Xe(x) && !P || M(S, x);
|
|
3374
3375
|
}).catch(function(S) {
|
|
3375
|
-
return
|
|
3376
|
-
}),
|
|
3376
|
+
return j(S);
|
|
3377
|
+
}), D({
|
|
3377
3378
|
type: "reset"
|
|
3378
3379
|
});
|
|
3379
|
-
}, [a,
|
|
3380
|
+
}, [a, M, j, P]), v = le(function() {
|
|
3380
3381
|
if (O.current) {
|
|
3381
|
-
|
|
3382
|
+
D({
|
|
3382
3383
|
type: "openDialog"
|
|
3383
3384
|
}), ue();
|
|
3384
3385
|
var x = {
|
|
@@ -3388,27 +3389,27 @@ function bi() {
|
|
|
3388
3389
|
window.showOpenFilePicker(x).then(function(S) {
|
|
3389
3390
|
return a(S);
|
|
3390
3391
|
}).then(function(S) {
|
|
3391
|
-
|
|
3392
|
+
M(S, null), D({
|
|
3392
3393
|
type: "closeDialog"
|
|
3393
3394
|
});
|
|
3394
3395
|
}).catch(function(S) {
|
|
3395
|
-
ri(S) ? (me(S),
|
|
3396
|
+
ri(S) ? (me(S), D({
|
|
3396
3397
|
type: "closeDialog"
|
|
3397
|
-
})) : si(S) ? (O.current = !1,
|
|
3398
|
+
})) : si(S) ? (O.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : j(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."))) : j(S);
|
|
3398
3399
|
});
|
|
3399
3400
|
return;
|
|
3400
3401
|
}
|
|
3401
|
-
|
|
3402
|
+
Z.current && (D({
|
|
3402
3403
|
type: "openDialog"
|
|
3403
|
-
}), ue(),
|
|
3404
|
-
}, [
|
|
3404
|
+
}), ue(), Z.current.value = null, Z.current.click());
|
|
3405
|
+
}, [D, ue, me, L, M, j, de, s]), fe = le(function(x) {
|
|
3405
3406
|
!q.current || !q.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), v());
|
|
3406
3407
|
}, [q, v]), Ie = le(function() {
|
|
3407
|
-
|
|
3408
|
+
D({
|
|
3408
3409
|
type: "focus"
|
|
3409
3410
|
});
|
|
3410
3411
|
}, []), Pe = le(function() {
|
|
3411
|
-
|
|
3412
|
+
D({
|
|
3412
3413
|
type: "blur"
|
|
3413
3414
|
});
|
|
3414
3415
|
}, []), Rt = le(function() {
|
|
@@ -3418,32 +3419,32 @@ function bi() {
|
|
|
3418
3419
|
}, et = function(S) {
|
|
3419
3420
|
return p ? null : Re(S);
|
|
3420
3421
|
}, qe = function(S) {
|
|
3421
|
-
return
|
|
3422
|
+
return C ? null : Re(S);
|
|
3422
3423
|
}, $e = function(S) {
|
|
3423
|
-
|
|
3424
|
+
P && S.stopPropagation();
|
|
3424
3425
|
}, On = Oe(function() {
|
|
3425
3426
|
return function() {
|
|
3426
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, ee = S === void 0 ? "ref" : S,
|
|
3427
|
-
return
|
|
3427
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, ee = S === void 0 ? "ref" : S, oe = x.role, _e = x.onKeyDown, Fe = x.onFocus, De = x.onBlur, tt = x.onClick, nt = x.onDragEnter, ot = x.onDragOver, He = x.onDragLeave, at = x.onDrop, it = Ze(x, li);
|
|
3428
|
+
return Q(Q(Et({
|
|
3428
3429
|
onKeyDown: et(we(_e, fe)),
|
|
3429
3430
|
onFocus: et(we(Fe, Ie)),
|
|
3430
3431
|
onBlur: et(we(De, Pe)),
|
|
3431
3432
|
onClick: Re(we(tt, Rt)),
|
|
3432
|
-
onDragEnter: qe(we(nt,
|
|
3433
|
+
onDragEnter: qe(we(nt, z)),
|
|
3433
3434
|
onDragOver: qe(we(ot, W)),
|
|
3434
3435
|
onDragLeave: qe(we(He, $)),
|
|
3435
3436
|
onDrop: qe(we(at, te)),
|
|
3436
|
-
role: typeof
|
|
3437
|
+
role: typeof oe == "string" && oe !== "" ? oe : "presentation"
|
|
3437
3438
|
}, ee, q), !o && !p ? {
|
|
3438
3439
|
tabIndex: 0
|
|
3439
3440
|
} : {}), it);
|
|
3440
3441
|
};
|
|
3441
|
-
}, [q, fe, Ie, Pe, Rt,
|
|
3442
|
+
}, [q, fe, Ie, Pe, Rt, z, W, $, te, p, C, o]), Ln = le(function(x) {
|
|
3442
3443
|
x.stopPropagation();
|
|
3443
3444
|
}, []), Pn = Oe(function() {
|
|
3444
3445
|
return function() {
|
|
3445
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, ee = S === void 0 ? "ref" : S,
|
|
3446
|
-
accept:
|
|
3446
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, ee = S === void 0 ? "ref" : S, oe = x.onChange, _e = x.onClick, Fe = Ze(x, di), De = Et({
|
|
3447
|
+
accept: ne,
|
|
3447
3448
|
multiple: s,
|
|
3448
3449
|
type: "file",
|
|
3449
3450
|
style: {
|
|
@@ -3458,54 +3459,54 @@ function bi() {
|
|
|
3458
3459
|
width: "1px",
|
|
3459
3460
|
whiteSpace: "nowrap"
|
|
3460
3461
|
},
|
|
3461
|
-
onChange: Re(we(
|
|
3462
|
+
onChange: Re(we(oe, te)),
|
|
3462
3463
|
onClick: Re(we(_e, Ln)),
|
|
3463
3464
|
tabIndex: -1
|
|
3464
|
-
}, ee,
|
|
3465
|
-
return
|
|
3465
|
+
}, ee, Z);
|
|
3466
|
+
return Q(Q({}, De), Fe);
|
|
3466
3467
|
};
|
|
3467
|
-
}, [
|
|
3468
|
-
return
|
|
3468
|
+
}, [Z, n, s, te, o]);
|
|
3469
|
+
return Q(Q({}, X), {}, {
|
|
3469
3470
|
isFocused: f && !o,
|
|
3470
3471
|
getRootProps: On,
|
|
3471
3472
|
getInputProps: Pn,
|
|
3472
3473
|
rootRef: q,
|
|
3473
|
-
inputRef:
|
|
3474
|
+
inputRef: Z,
|
|
3474
3475
|
open: Re(v)
|
|
3475
3476
|
});
|
|
3476
3477
|
}
|
|
3477
3478
|
function yi(e, t) {
|
|
3478
3479
|
switch (t.type) {
|
|
3479
3480
|
case "focus":
|
|
3480
|
-
return
|
|
3481
|
+
return Q(Q({}, e), {}, {
|
|
3481
3482
|
isFocused: !0
|
|
3482
3483
|
});
|
|
3483
3484
|
case "blur":
|
|
3484
|
-
return
|
|
3485
|
+
return Q(Q({}, e), {}, {
|
|
3485
3486
|
isFocused: !1
|
|
3486
3487
|
});
|
|
3487
3488
|
case "openDialog":
|
|
3488
|
-
return
|
|
3489
|
+
return Q(Q({}, St), {}, {
|
|
3489
3490
|
isFileDialogActive: !0
|
|
3490
3491
|
});
|
|
3491
3492
|
case "closeDialog":
|
|
3492
|
-
return
|
|
3493
|
+
return Q(Q({}, e), {}, {
|
|
3493
3494
|
isFileDialogActive: !1
|
|
3494
3495
|
});
|
|
3495
3496
|
case "setDraggedFiles":
|
|
3496
|
-
return
|
|
3497
|
+
return Q(Q({}, e), {}, {
|
|
3497
3498
|
isDragActive: t.isDragActive,
|
|
3498
3499
|
isDragAccept: t.isDragAccept,
|
|
3499
3500
|
isDragReject: t.isDragReject
|
|
3500
3501
|
});
|
|
3501
3502
|
case "setFiles":
|
|
3502
|
-
return
|
|
3503
|
+
return Q(Q({}, e), {}, {
|
|
3503
3504
|
acceptedFiles: t.acceptedFiles,
|
|
3504
3505
|
fileRejections: t.fileRejections,
|
|
3505
3506
|
isDragReject: t.isDragReject
|
|
3506
3507
|
});
|
|
3507
3508
|
case "reset":
|
|
3508
|
-
return
|
|
3509
|
+
return Q({}, St);
|
|
3509
3510
|
default:
|
|
3510
3511
|
return e;
|
|
3511
3512
|
}
|
|
@@ -3521,24 +3522,24 @@ const wi = (e) => {
|
|
|
3521
3522
|
disabled: i,
|
|
3522
3523
|
name: r,
|
|
3523
3524
|
multiple: s,
|
|
3524
|
-
maxFiles:
|
|
3525
|
-
files:
|
|
3526
|
-
} = e,
|
|
3527
|
-
(
|
|
3525
|
+
maxFiles: m,
|
|
3526
|
+
files: c = []
|
|
3527
|
+
} = e, u = le(
|
|
3528
|
+
(d) => {
|
|
3528
3529
|
if (!s) {
|
|
3529
|
-
t(
|
|
3530
|
+
t(d, r);
|
|
3530
3531
|
return;
|
|
3531
3532
|
}
|
|
3532
|
-
const g = [...
|
|
3533
|
-
if (
|
|
3534
|
-
console.log(`Максимальное возможное количество файлов для загрузки - ${
|
|
3533
|
+
const g = [...c, ...d];
|
|
3534
|
+
if (m && g.length > m) {
|
|
3535
|
+
console.log(`Максимальное возможное количество файлов для загрузки - ${m}`), t(g.slice(0, m), r);
|
|
3535
3536
|
return;
|
|
3536
3537
|
}
|
|
3537
3538
|
t(g, r);
|
|
3538
3539
|
},
|
|
3539
|
-
[
|
|
3540
|
+
[c, m, s, r, t]
|
|
3540
3541
|
);
|
|
3541
|
-
return /* @__PURE__ */ l(Je, { multiple: s, onDrop:
|
|
3542
|
+
return /* @__PURE__ */ l(Je, { multiple: s, onDrop: u, maxSize: o, accept: a, children: ({ getRootProps: d, getInputProps: g }) => /* @__PURE__ */ H("div", { ...d({}), children: [
|
|
3542
3543
|
/* @__PURE__ */ l("input", { ...g({}), disabled: i, name: r }),
|
|
3543
3544
|
n
|
|
3544
3545
|
] }) });
|
|
@@ -3556,20 +3557,20 @@ const wi = (e) => {
|
|
|
3556
3557
|
labelText: t = "Выпадающий список",
|
|
3557
3558
|
listName: n,
|
|
3558
3559
|
dropdownList: o = [],
|
|
3559
|
-
dropdownPosition: a =
|
|
3560
|
+
dropdownPosition: a = ie.BottomRight,
|
|
3560
3561
|
classNameRoot: i
|
|
3561
3562
|
} = e, r = _({
|
|
3562
3563
|
[Ee.spDropdown]: !0,
|
|
3563
3564
|
...i && { [i]: !0 }
|
|
3564
3565
|
}), s = _({
|
|
3565
3566
|
[Ee.spDropdown__labelText]: !0
|
|
3566
|
-
}),
|
|
3567
|
+
}), m = _({
|
|
3567
3568
|
[Ee.spDropdown__tooltipContainer]: !0
|
|
3568
|
-
}),
|
|
3569
|
+
}), c = _({
|
|
3569
3570
|
[Ee.spDropdown__dropdownList]: !0
|
|
3570
|
-
}),
|
|
3571
|
+
}), u = _({
|
|
3571
3572
|
[Ee.spDropdown__dropdownListHeader]: !0
|
|
3572
|
-
}),
|
|
3573
|
+
}), d = _({
|
|
3573
3574
|
[Ee.spDropdown__downloadListItemDescription]: !0
|
|
3574
3575
|
}), [g, h] = ce(!1);
|
|
3575
3576
|
return /* @__PURE__ */ l(
|
|
@@ -3578,9 +3579,9 @@ const wi = (e) => {
|
|
|
3578
3579
|
hover: !1,
|
|
3579
3580
|
triggerAction: () => h(!0),
|
|
3580
3581
|
actionOnClose: () => h(!1),
|
|
3581
|
-
text: /* @__PURE__ */ H("div", { className:
|
|
3582
|
-
n && /* @__PURE__ */ l("div", { className:
|
|
3583
|
-
o.map((w,
|
|
3582
|
+
text: /* @__PURE__ */ H("div", { className: c, children: [
|
|
3583
|
+
n && /* @__PURE__ */ l("div", { className: u, children: n }),
|
|
3584
|
+
o.map((w, A) => /* @__PURE__ */ H(
|
|
3584
3585
|
"div",
|
|
3585
3586
|
{
|
|
3586
3587
|
className: _({
|
|
@@ -3590,18 +3591,19 @@ const wi = (e) => {
|
|
|
3590
3591
|
onClick: w.onClick,
|
|
3591
3592
|
children: [
|
|
3592
3593
|
w.name,
|
|
3593
|
-
w.description && /* @__PURE__ */ l("span", { className:
|
|
3594
|
+
w.description && /* @__PURE__ */ l("span", { className: d, children: w.description })
|
|
3594
3595
|
]
|
|
3595
3596
|
},
|
|
3596
|
-
|
|
3597
|
+
A
|
|
3597
3598
|
))
|
|
3598
3599
|
] }),
|
|
3599
3600
|
position: a,
|
|
3600
3601
|
noPadding: !0,
|
|
3601
3602
|
isToggleClick: !0,
|
|
3603
|
+
isStopPropagationClickOnTrigger: !0,
|
|
3602
3604
|
trigger: /* @__PURE__ */ H("div", { className: r, children: [
|
|
3603
3605
|
/* @__PURE__ */ l("div", { className: s, children: t }),
|
|
3604
|
-
/* @__PURE__ */ l("div", { className:
|
|
3606
|
+
/* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l(ge, { name: re.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
3605
3607
|
] })
|
|
3606
3608
|
}
|
|
3607
3609
|
);
|
|
@@ -3617,11 +3619,11 @@ const wi = (e) => {
|
|
|
3617
3619
|
classNameBaseTooltipContentRoot: i,
|
|
3618
3620
|
classNameBaseTooltipRoot: r,
|
|
3619
3621
|
...s
|
|
3620
|
-
} = e,
|
|
3621
|
-
|
|
3622
|
-
|
|
3622
|
+
} = e, m = Te(null), [c, u] = ce(!1);
|
|
3623
|
+
ae(() => {
|
|
3624
|
+
m.current && u(m.current.scrollWidth > m.current.clientWidth);
|
|
3623
3625
|
}, [t]);
|
|
3624
|
-
const
|
|
3626
|
+
const d = _({
|
|
3625
3627
|
[tn.ellipsisTextWithTooltip]: !0,
|
|
3626
3628
|
...n && { [n]: !0 }
|
|
3627
3629
|
}), g = _({
|
|
@@ -3637,9 +3639,9 @@ const wi = (e) => {
|
|
|
3637
3639
|
classNameTriggerTooltip: h,
|
|
3638
3640
|
classNameBaseTooltipContentRoot: i,
|
|
3639
3641
|
classNameBaseTooltipRoot: r,
|
|
3640
|
-
isVisibleTooltip:
|
|
3642
|
+
isVisibleTooltip: c,
|
|
3641
3643
|
text: t,
|
|
3642
|
-
trigger: /* @__PURE__ */ l(Se, { ...s, classNameRoot:
|
|
3644
|
+
trigger: /* @__PURE__ */ l(Se, { ...s, classNameRoot: d, isEllipsis: !0, ref: m, children: t })
|
|
3643
3645
|
}
|
|
3644
3646
|
);
|
|
3645
3647
|
}, Oi = "_spForm_zefbj_43", Li = "_spForm_fullWidth_zefbj_46", Pi = "_spForm_withSeparator_zefbj_49", Me = {
|
|
@@ -3657,8 +3659,8 @@ const wi = (e) => {
|
|
|
3657
3659
|
withSeparator: i = !1,
|
|
3658
3660
|
fullWidth: r = !0,
|
|
3659
3661
|
classNameRoot: s,
|
|
3660
|
-
...
|
|
3661
|
-
} = e,
|
|
3662
|
+
...m
|
|
3663
|
+
} = e, c = _({
|
|
3662
3664
|
[Me.spForm]: !0,
|
|
3663
3665
|
[Me.spForm_fullWidth]: r,
|
|
3664
3666
|
[Me.spForm_addMargin]: a,
|
|
@@ -3666,9 +3668,9 @@ const wi = (e) => {
|
|
|
3666
3668
|
[Me.spForm_withSeparator]: i,
|
|
3667
3669
|
...s && { [s]: !0 }
|
|
3668
3670
|
});
|
|
3669
|
-
return /* @__PURE__ */ l("form", { ...
|
|
3670
|
-
|
|
3671
|
-
}, className:
|
|
3671
|
+
return /* @__PURE__ */ l("form", { ...m, onSubmit: (d) => {
|
|
3672
|
+
d.preventDefault(), o && o();
|
|
3673
|
+
}, className: c, children: n });
|
|
3672
3674
|
}, Fi = "_spLabel_g0hfy_43", zi = "_spLabel__text_g0hfy_52", Mi = "_spLabel__tooltip_g0hfy_62", Bi = "_spLabel__required_g0hfy_67", Ge = {
|
|
3673
3675
|
spLabel: Fi,
|
|
3674
3676
|
spLabel__text: zi,
|
|
@@ -3686,15 +3688,15 @@ const wi = (e) => {
|
|
|
3686
3688
|
...i && { [i]: !0 }
|
|
3687
3689
|
}), s = _({
|
|
3688
3690
|
[Ge.spLabel__text]: !0
|
|
3689
|
-
}),
|
|
3691
|
+
}), m = _({
|
|
3690
3692
|
[Ge.spLabel__required]: t
|
|
3691
|
-
}),
|
|
3693
|
+
}), c = _({
|
|
3692
3694
|
[Ge.spLabel__tooltip]: !0
|
|
3693
3695
|
});
|
|
3694
3696
|
return /* @__PURE__ */ H("div", { className: r, children: [
|
|
3695
3697
|
/* @__PURE__ */ l("label", { className: s, children: n }),
|
|
3696
|
-
t && /* @__PURE__ */ l("div", { className:
|
|
3697
|
-
o && /* @__PURE__ */ l("div", { className:
|
|
3698
|
+
t && /* @__PURE__ */ l("div", { className: m, children: "*" }),
|
|
3699
|
+
o && /* @__PURE__ */ l("div", { className: c, children: /* @__PURE__ */ l(Qe, { position: a, text: o }) })
|
|
3698
3700
|
] });
|
|
3699
3701
|
}, Wi = "_spInput_etrn0_43", qi = "_spInput_error_etrn0_48", $i = "_spInput__control_etrn0_48", Hi = "_spInput__container_etrn0_55", Yi = "_spInput__control_filled_etrn0_74", Vi = "_spInput__control_outlined_etrn0_78", Ui = "_spInput__control_disabled_etrn0_82", Gi = "_spInput__control_clearable_etrn0_86", Ki = "_spInput__clear_etrn0_113", Xi = "_spInput__error_etrn0_122", Ce = {
|
|
3700
3702
|
spInput: Wi,
|
|
@@ -3715,15 +3717,15 @@ const wi = (e) => {
|
|
|
3715
3717
|
variant: i = "outlined",
|
|
3716
3718
|
disabled: r = !1,
|
|
3717
3719
|
error: s,
|
|
3718
|
-
required:
|
|
3719
|
-
name:
|
|
3720
|
-
isClearable:
|
|
3721
|
-
pattern:
|
|
3720
|
+
required: m,
|
|
3721
|
+
name: c,
|
|
3722
|
+
isClearable: u,
|
|
3723
|
+
pattern: d,
|
|
3722
3724
|
onMouseEnter: g,
|
|
3723
3725
|
infoTooltipText: h,
|
|
3724
3726
|
tooltipPosition: E,
|
|
3725
3727
|
isVisibleDefaultTitle: w = !0,
|
|
3726
|
-
placeholder:
|
|
3728
|
+
placeholder: A = "Введите...",
|
|
3727
3729
|
classNameRoot: L,
|
|
3728
3730
|
classNameError: Y,
|
|
3729
3731
|
classNameLabel: R,
|
|
@@ -3732,55 +3734,55 @@ const wi = (e) => {
|
|
|
3732
3734
|
[Ce.spInput]: !0,
|
|
3733
3735
|
[Ce.spInput_error]: !!s,
|
|
3734
3736
|
...L && { [L]: !0 }
|
|
3735
|
-
}),
|
|
3737
|
+
}), C = _({
|
|
3736
3738
|
[Ce.spInput__container]: !0
|
|
3737
|
-
}),
|
|
3739
|
+
}), P = _({
|
|
3738
3740
|
[Ce.spInput__control]: !0,
|
|
3739
3741
|
[Ce.spInput__control_disabled]: r,
|
|
3740
3742
|
[Ce[`spInput__control_${i}`]]: i,
|
|
3741
|
-
[Ce.spInput__control_clearable]:
|
|
3742
|
-
}),
|
|
3743
|
+
[Ce.spInput__control_clearable]: u
|
|
3744
|
+
}), U = _({
|
|
3743
3745
|
[Ce.spInput__clear]: !0
|
|
3744
|
-
}),
|
|
3746
|
+
}), J = _({
|
|
3745
3747
|
[Ce.spInput__error]: !0,
|
|
3746
3748
|
...Y && { [Y]: !0 }
|
|
3747
|
-
}),
|
|
3749
|
+
}), ne = _({
|
|
3748
3750
|
...R && { [R]: !0 }
|
|
3749
3751
|
}), de = (q) => {
|
|
3750
|
-
o(q, { name:
|
|
3752
|
+
o(q, { name: c, value: "" });
|
|
3751
3753
|
}, ue = (q) => {
|
|
3752
|
-
const { value:
|
|
3753
|
-
|
|
3754
|
+
const { value: Z, name: T } = q.target;
|
|
3755
|
+
d && Z && !new RegExp(d).test(Z) || o(q, { value: Z, name: T });
|
|
3754
3756
|
};
|
|
3755
3757
|
return /* @__PURE__ */ H("div", { className: p, children: [
|
|
3756
3758
|
a && /* @__PURE__ */ l(
|
|
3757
3759
|
jt,
|
|
3758
3760
|
{
|
|
3759
|
-
classNameRoot:
|
|
3761
|
+
classNameRoot: ne,
|
|
3760
3762
|
tooltipPosition: E,
|
|
3761
|
-
required:
|
|
3763
|
+
required: m,
|
|
3762
3764
|
label: a,
|
|
3763
3765
|
infoTooltipText: h
|
|
3764
3766
|
}
|
|
3765
3767
|
),
|
|
3766
|
-
/* @__PURE__ */ H("div", { className:
|
|
3768
|
+
/* @__PURE__ */ H("div", { className: C, onMouseEnter: g, children: [
|
|
3767
3769
|
/* @__PURE__ */ l(
|
|
3768
3770
|
"input",
|
|
3769
3771
|
{
|
|
3770
3772
|
...y,
|
|
3771
|
-
placeholder:
|
|
3773
|
+
placeholder: A,
|
|
3772
3774
|
disabled: r,
|
|
3773
3775
|
onChange: ue,
|
|
3774
3776
|
title: w ? n : void 0,
|
|
3775
3777
|
value: n,
|
|
3776
|
-
name:
|
|
3777
|
-
className:
|
|
3778
|
+
name: c,
|
|
3779
|
+
className: P,
|
|
3778
3780
|
ref: t
|
|
3779
3781
|
}
|
|
3780
3782
|
),
|
|
3781
|
-
|
|
3783
|
+
u && n && !r && /* @__PURE__ */ l(ge, { onClick: de, className: U, name: re.Trash })
|
|
3782
3784
|
] }),
|
|
3783
|
-
s && /* @__PURE__ */ l("div", { className:
|
|
3785
|
+
s && /* @__PURE__ */ l("div", { className: J, children: s })
|
|
3784
3786
|
] });
|
|
3785
3787
|
});
|
|
3786
3788
|
Zi.displayName = "Input";
|
|
@@ -3807,29 +3809,29 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3807
3809
|
accept: i,
|
|
3808
3810
|
disabled: r,
|
|
3809
3811
|
multiple: s,
|
|
3810
|
-
maxFiles:
|
|
3811
|
-
files:
|
|
3812
|
-
infoTooltipText:
|
|
3813
|
-
tooltipPosition:
|
|
3812
|
+
maxFiles: m,
|
|
3813
|
+
files: c = [],
|
|
3814
|
+
infoTooltipText: u,
|
|
3815
|
+
tooltipPosition: d = ie.TopRight,
|
|
3814
3816
|
classNameRoot: g,
|
|
3815
3817
|
error: h
|
|
3816
|
-
} = e, E =
|
|
3818
|
+
} = e, E = c.map((p) => p.name), w = (E == null ? void 0 : E.length) > 0, A = _({
|
|
3817
3819
|
[ve.spInputFiles]: !0,
|
|
3818
3820
|
[ve.spInputFiles_error]: !!h,
|
|
3819
3821
|
[ve.spInputFiles_disabled]: r,
|
|
3820
3822
|
[ve.spInputFiles_fileUploaded]: w,
|
|
3821
3823
|
...g && { [g]: !0 }
|
|
3822
3824
|
}), L = (p) => {
|
|
3823
|
-
const
|
|
3824
|
-
|
|
3825
|
+
const C = [...c], P = C.findIndex((U) => U.name === p);
|
|
3826
|
+
C.splice(P, 1), o(C, n);
|
|
3825
3827
|
}, Y = (p) => {
|
|
3826
3828
|
p.stopPropagation(), o([], n);
|
|
3827
|
-
}, R = () => s ? /* @__PURE__ */ l("ul", { className: ve.spInputFiles__fileNamesList, children: E.map((p,
|
|
3829
|
+
}, R = () => s ? /* @__PURE__ */ l("ul", { className: ve.spInputFiles__fileNamesList, children: E.map((p, C) => /* @__PURE__ */ H(
|
|
3828
3830
|
"li",
|
|
3829
3831
|
{
|
|
3830
3832
|
className: ve.spInputFiles__fileNamesListItem,
|
|
3831
|
-
onClick: (
|
|
3832
|
-
|
|
3833
|
+
onClick: (P) => {
|
|
3834
|
+
P.stopPropagation(), L(p);
|
|
3833
3835
|
},
|
|
3834
3836
|
children: [
|
|
3835
3837
|
/* @__PURE__ */ l(
|
|
@@ -3840,18 +3842,18 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3840
3842
|
classNameTriggerTooltipRoot: ve.spInputFiles__fileNamesListItem__triggerTooltip
|
|
3841
3843
|
}
|
|
3842
3844
|
),
|
|
3843
|
-
/* @__PURE__ */ l("div", { className: ve.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ l(ge, { name:
|
|
3845
|
+
/* @__PURE__ */ l("div", { className: ve.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ l(ge, { name: re.Trash }) })
|
|
3844
3846
|
]
|
|
3845
3847
|
},
|
|
3846
|
-
|
|
3848
|
+
C
|
|
3847
3849
|
)) }) : /* @__PURE__ */ l(Se, { isEllipsis: !0, children: E[0] }), y = () => /* @__PURE__ */ H(cn, { children: [
|
|
3848
3850
|
w ? R() : /* @__PURE__ */ l(Se, { children: t }),
|
|
3849
|
-
w ? /* @__PURE__ */ l("div", { className: ve.spInputFiles__delete, onClick: Y, children: /* @__PURE__ */ l(ge, { name:
|
|
3851
|
+
w ? /* @__PURE__ */ l("div", { className: ve.spInputFiles__delete, onClick: Y, children: /* @__PURE__ */ l(ge, { name: re.Close }) }) : u && /* @__PURE__ */ l(
|
|
3850
3852
|
Qe,
|
|
3851
3853
|
{
|
|
3852
3854
|
classNameTooltip: ve.spInputFiles__tooltipWrapper,
|
|
3853
|
-
position:
|
|
3854
|
-
text:
|
|
3855
|
+
position: d,
|
|
3856
|
+
text: u,
|
|
3855
3857
|
classNameTriggerTooltip: ve.spInputFiles__tooltip
|
|
3856
3858
|
}
|
|
3857
3859
|
)
|
|
@@ -3860,16 +3862,16 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3860
3862
|
wi,
|
|
3861
3863
|
{
|
|
3862
3864
|
name: n,
|
|
3863
|
-
files:
|
|
3865
|
+
files: c,
|
|
3864
3866
|
multiple: s,
|
|
3865
3867
|
maxSize: a,
|
|
3866
|
-
maxFiles:
|
|
3868
|
+
maxFiles: m,
|
|
3867
3869
|
accept: i,
|
|
3868
3870
|
onDropFiles: o,
|
|
3869
3871
|
disabled: r || w,
|
|
3870
|
-
children: /* @__PURE__ */ H("div", { className:
|
|
3872
|
+
children: /* @__PURE__ */ H("div", { className: A, children: [
|
|
3871
3873
|
/* @__PURE__ */ H("div", { className: ve.spInputFiles__control, children: [
|
|
3872
|
-
/* @__PURE__ */ l(ge, { name: w ?
|
|
3874
|
+
/* @__PURE__ */ l(ge, { name: w ? re.Check : re.Upload }),
|
|
3873
3875
|
y()
|
|
3874
3876
|
] }),
|
|
3875
3877
|
h && /* @__PURE__ */ l("div", { className: ve.spInputFiles__error, children: h })
|
|
@@ -3893,42 +3895,42 @@ function vr(e, t) {
|
|
|
3893
3895
|
if (a && o || !(a || o))
|
|
3894
3896
|
return !1;
|
|
3895
3897
|
var i = n.expressions.every(function(r) {
|
|
3896
|
-
var s = r.feature,
|
|
3897
|
-
if (!
|
|
3898
|
+
var s = r.feature, m = r.modifier, c = r.value, u = t[s];
|
|
3899
|
+
if (!u)
|
|
3898
3900
|
return !1;
|
|
3899
3901
|
switch (s) {
|
|
3900
3902
|
case "orientation":
|
|
3901
3903
|
case "scan":
|
|
3902
|
-
return
|
|
3904
|
+
return u.toLowerCase() === c.toLowerCase();
|
|
3903
3905
|
case "width":
|
|
3904
3906
|
case "height":
|
|
3905
3907
|
case "device-width":
|
|
3906
3908
|
case "device-height":
|
|
3907
|
-
|
|
3909
|
+
c = an(c), u = an(u);
|
|
3908
3910
|
break;
|
|
3909
3911
|
case "resolution":
|
|
3910
|
-
|
|
3912
|
+
c = on(c), u = on(u);
|
|
3911
3913
|
break;
|
|
3912
3914
|
case "aspect-ratio":
|
|
3913
3915
|
case "device-aspect-ratio":
|
|
3914
3916
|
case /* Deprecated */
|
|
3915
3917
|
"device-pixel-ratio":
|
|
3916
|
-
|
|
3918
|
+
c = nn(c), u = nn(u);
|
|
3917
3919
|
break;
|
|
3918
3920
|
case "grid":
|
|
3919
3921
|
case "color":
|
|
3920
3922
|
case "color-index":
|
|
3921
3923
|
case "monochrome":
|
|
3922
|
-
|
|
3924
|
+
c = parseInt(c, 10) || 1, u = parseInt(u, 10) || 0;
|
|
3923
3925
|
break;
|
|
3924
3926
|
}
|
|
3925
|
-
switch (
|
|
3927
|
+
switch (m) {
|
|
3926
3928
|
case "min":
|
|
3927
|
-
return
|
|
3929
|
+
return u >= c;
|
|
3928
3930
|
case "max":
|
|
3929
|
-
return
|
|
3931
|
+
return u <= c;
|
|
3930
3932
|
default:
|
|
3931
|
-
return
|
|
3933
|
+
return u === c;
|
|
3932
3934
|
}
|
|
3933
3935
|
});
|
|
3934
3936
|
return i && !o || !i && o;
|
|
@@ -3939,11 +3941,11 @@ function jn(e) {
|
|
|
3939
3941
|
t = t.trim();
|
|
3940
3942
|
var n = t.match(dr), o = n[1], a = n[2], i = n[3] || "", r = {};
|
|
3941
3943
|
return r.inverse = !!o && o.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
3942
|
-
var
|
|
3944
|
+
var m = s.match(ur), c = m[1].toLowerCase().match(mr);
|
|
3943
3945
|
return {
|
|
3944
|
-
modifier:
|
|
3945
|
-
feature:
|
|
3946
|
-
value:
|
|
3946
|
+
modifier: c[1],
|
|
3947
|
+
feature: c[2],
|
|
3948
|
+
value: m[2]
|
|
3947
3949
|
};
|
|
3948
3950
|
}), r;
|
|
3949
3951
|
});
|
|
@@ -3987,17 +3989,17 @@ function an(e) {
|
|
|
3987
3989
|
var xr = At.match, rn = typeof window < "u" ? window.matchMedia : null;
|
|
3988
3990
|
function gr(e, t, n) {
|
|
3989
3991
|
var o = this, a;
|
|
3990
|
-
rn && !n && (a = rn.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = xr(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose =
|
|
3991
|
-
function i(
|
|
3992
|
-
a && a.addListener(
|
|
3992
|
+
rn && !n && (a = rn.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = xr(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = m;
|
|
3993
|
+
function i(c) {
|
|
3994
|
+
a && a.addListener(c);
|
|
3993
3995
|
}
|
|
3994
|
-
function r(
|
|
3995
|
-
a && a.removeListener(
|
|
3996
|
+
function r(c) {
|
|
3997
|
+
a && a.removeListener(c);
|
|
3996
3998
|
}
|
|
3997
|
-
function s(
|
|
3998
|
-
o.matches =
|
|
3999
|
+
function s(c) {
|
|
4000
|
+
o.matches = c.matches, o.media = c.media;
|
|
3999
4001
|
}
|
|
4000
|
-
function
|
|
4002
|
+
function m() {
|
|
4001
4003
|
a && a.removeListener(s);
|
|
4002
4004
|
}
|
|
4003
4005
|
}
|
|
@@ -4031,37 +4033,37 @@ function Tr(e, t) {
|
|
|
4031
4033
|
}
|
|
4032
4034
|
return !0;
|
|
4033
4035
|
}
|
|
4034
|
-
const pe =
|
|
4035
|
-
all:
|
|
4036
|
-
grid:
|
|
4037
|
-
aural:
|
|
4038
|
-
braille:
|
|
4039
|
-
handheld:
|
|
4040
|
-
print:
|
|
4041
|
-
projection:
|
|
4042
|
-
screen:
|
|
4043
|
-
tty:
|
|
4044
|
-
tv:
|
|
4045
|
-
embossed:
|
|
4036
|
+
const pe = k.oneOfType([k.string, k.number]), Rn = {
|
|
4037
|
+
all: k.bool,
|
|
4038
|
+
grid: k.bool,
|
|
4039
|
+
aural: k.bool,
|
|
4040
|
+
braille: k.bool,
|
|
4041
|
+
handheld: k.bool,
|
|
4042
|
+
print: k.bool,
|
|
4043
|
+
projection: k.bool,
|
|
4044
|
+
screen: k.bool,
|
|
4045
|
+
tty: k.bool,
|
|
4046
|
+
tv: k.bool,
|
|
4047
|
+
embossed: k.bool
|
|
4046
4048
|
}, Er = {
|
|
4047
|
-
orientation:
|
|
4048
|
-
scan:
|
|
4049
|
-
aspectRatio:
|
|
4050
|
-
deviceAspectRatio:
|
|
4049
|
+
orientation: k.oneOf(["portrait", "landscape"]),
|
|
4050
|
+
scan: k.oneOf(["progressive", "interlace"]),
|
|
4051
|
+
aspectRatio: k.string,
|
|
4052
|
+
deviceAspectRatio: k.string,
|
|
4051
4053
|
height: pe,
|
|
4052
4054
|
deviceHeight: pe,
|
|
4053
4055
|
width: pe,
|
|
4054
4056
|
deviceWidth: pe,
|
|
4055
|
-
color:
|
|
4056
|
-
colorIndex:
|
|
4057
|
-
monochrome:
|
|
4057
|
+
color: k.bool,
|
|
4058
|
+
colorIndex: k.bool,
|
|
4059
|
+
monochrome: k.bool,
|
|
4058
4060
|
resolution: pe,
|
|
4059
4061
|
type: Object.keys(Rn)
|
|
4060
4062
|
}, { type: Ls, ...Sr } = Er, Ir = {
|
|
4061
|
-
minAspectRatio:
|
|
4062
|
-
maxAspectRatio:
|
|
4063
|
-
minDeviceAspectRatio:
|
|
4064
|
-
maxDeviceAspectRatio:
|
|
4063
|
+
minAspectRatio: k.string,
|
|
4064
|
+
maxAspectRatio: k.string,
|
|
4065
|
+
minDeviceAspectRatio: k.string,
|
|
4066
|
+
maxDeviceAspectRatio: k.string,
|
|
4065
4067
|
minHeight: pe,
|
|
4066
4068
|
maxHeight: pe,
|
|
4067
4069
|
minDeviceHeight: pe,
|
|
@@ -4070,12 +4072,12 @@ const pe = C.oneOfType([C.string, C.number]), Rn = {
|
|
|
4070
4072
|
maxWidth: pe,
|
|
4071
4073
|
minDeviceWidth: pe,
|
|
4072
4074
|
maxDeviceWidth: pe,
|
|
4073
|
-
minColor:
|
|
4074
|
-
maxColor:
|
|
4075
|
-
minColorIndex:
|
|
4076
|
-
maxColorIndex:
|
|
4077
|
-
minMonochrome:
|
|
4078
|
-
maxMonochrome:
|
|
4075
|
+
minColor: k.number,
|
|
4076
|
+
maxColor: k.number,
|
|
4077
|
+
minColorIndex: k.number,
|
|
4078
|
+
maxColorIndex: k.number,
|
|
4079
|
+
minMonochrome: k.number,
|
|
4080
|
+
maxMonochrome: k.number,
|
|
4079
4081
|
minResolution: pe,
|
|
4080
4082
|
maxResolution: pe,
|
|
4081
4083
|
...Sr
|
|
@@ -4094,24 +4096,24 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4094
4096
|
}), Dr(t);
|
|
4095
4097
|
}, Lr = ln(void 0), Pr = (e) => e.query || Or(e), sn = (e) => e ? Object.keys(e).reduce((n, o) => (n[An(o)] = e[o], n), {}) : void 0, Dn = () => {
|
|
4096
4098
|
const e = Te(!1);
|
|
4097
|
-
return
|
|
4099
|
+
return ae(() => {
|
|
4098
4100
|
e.current = !0;
|
|
4099
4101
|
}, []), e.current;
|
|
4100
4102
|
}, Fr = (e) => {
|
|
4101
4103
|
const t = dn(Lr), n = () => sn(e) || sn(t), [o, a] = ce(n);
|
|
4102
|
-
return
|
|
4104
|
+
return ae(() => {
|
|
4103
4105
|
const i = n();
|
|
4104
4106
|
Tr(o, i) || a(i);
|
|
4105
4107
|
}, [e, t]), o;
|
|
4106
4108
|
}, zr = (e) => {
|
|
4107
4109
|
const t = () => Pr(e), [n, o] = ce(t);
|
|
4108
|
-
return
|
|
4110
|
+
return ae(() => {
|
|
4109
4111
|
const a = t();
|
|
4110
4112
|
n !== a && o(a);
|
|
4111
4113
|
}, [e]), n;
|
|
4112
4114
|
}, Mr = (e, t) => {
|
|
4113
4115
|
const n = () => yr(e, t || {}, !!t), [o, a] = ce(n), i = Dn();
|
|
4114
|
-
return
|
|
4116
|
+
return ae(() => {
|
|
4115
4117
|
if (i) {
|
|
4116
4118
|
const r = n();
|
|
4117
4119
|
return a(r), () => {
|
|
@@ -4121,7 +4123,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4121
4123
|
}, [e, t]), o;
|
|
4122
4124
|
}, Br = (e) => {
|
|
4123
4125
|
const [t, n] = ce(e.matches);
|
|
4124
|
-
return
|
|
4126
|
+
return ae(() => {
|
|
4125
4127
|
const o = (a) => {
|
|
4126
4128
|
n(a.matches);
|
|
4127
4129
|
};
|
|
@@ -4134,8 +4136,8 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4134
4136
|
if (!a)
|
|
4135
4137
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4136
4138
|
const i = Mr(a, o), r = Br(i);
|
|
4137
|
-
return Dn(),
|
|
4138
|
-
}, [r]),
|
|
4139
|
+
return Dn(), ae(() => {
|
|
4140
|
+
}, [r]), ae(() => () => {
|
|
4139
4141
|
i && i.dispose();
|
|
4140
4142
|
}, []), r;
|
|
4141
4143
|
}, Wr = (e) => {
|
|
@@ -4182,33 +4184,33 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4182
4184
|
variant: i = "outlined",
|
|
4183
4185
|
onChange: r,
|
|
4184
4186
|
onMouseEnter: s,
|
|
4185
|
-
error:
|
|
4186
|
-
label:
|
|
4187
|
-
infoTooltipText:
|
|
4188
|
-
tooltipPosition:
|
|
4187
|
+
error: m,
|
|
4188
|
+
label: c,
|
|
4189
|
+
infoTooltipText: u,
|
|
4190
|
+
tooltipPosition: d,
|
|
4189
4191
|
disabled: g,
|
|
4190
4192
|
required: h,
|
|
4191
4193
|
maxHeightList: E = qr,
|
|
4192
4194
|
isVisibleDefaultTitle: w = !0,
|
|
4193
|
-
isScrollableList:
|
|
4195
|
+
isScrollableList: A = !1,
|
|
4194
4196
|
classNameRoot: L,
|
|
4195
4197
|
classNameError: Y,
|
|
4196
4198
|
classNameLabel: R
|
|
4197
|
-
} = e, [y, p] = ce(!1),
|
|
4199
|
+
} = e, [y, p] = ce(!1), C = Te(null);
|
|
4198
4200
|
fn(
|
|
4199
|
-
[
|
|
4201
|
+
[C],
|
|
4200
4202
|
() => {
|
|
4201
4203
|
p(!1);
|
|
4202
4204
|
},
|
|
4203
4205
|
y
|
|
4204
4206
|
);
|
|
4205
|
-
const
|
|
4206
|
-
r(
|
|
4207
|
-
},
|
|
4207
|
+
const P = t.find((D) => D.value === o), U = (D, f) => {
|
|
4208
|
+
r(D, { value: f, name: a }), p(!1);
|
|
4209
|
+
}, J = () => {
|
|
4208
4210
|
g || p(!y);
|
|
4209
|
-
},
|
|
4211
|
+
}, ne = _({
|
|
4210
4212
|
[xe.spSelect]: !0,
|
|
4211
|
-
[xe.spSelect_error]: !!
|
|
4213
|
+
[xe.spSelect_error]: !!m,
|
|
4212
4214
|
...L && { [L]: !0 }
|
|
4213
4215
|
}), de = _({
|
|
4214
4216
|
[xe.spSelect__container]: !0
|
|
@@ -4218,27 +4220,27 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4218
4220
|
[xe.spSelect__control_disabled]: g
|
|
4219
4221
|
}), me = _({
|
|
4220
4222
|
[xe.spSelect__value]: !0,
|
|
4221
|
-
[xe.spSelect__value_empty]: !
|
|
4223
|
+
[xe.spSelect__value_empty]: !P
|
|
4222
4224
|
}), q = _({
|
|
4223
4225
|
[xe.spSelect__icon]: !0
|
|
4224
|
-
}),
|
|
4226
|
+
}), Z = _({
|
|
4225
4227
|
[xe.spSelect__list]: !0,
|
|
4226
|
-
[xe.spSelect__list_scrollable]:
|
|
4227
|
-
}),
|
|
4228
|
+
[xe.spSelect__list_scrollable]: A
|
|
4229
|
+
}), T = _({
|
|
4228
4230
|
...R && { [R]: !0 }
|
|
4229
4231
|
}), V = _({
|
|
4230
4232
|
[xe.spSelect__error]: !0,
|
|
4231
4233
|
...Y && { [Y]: !0 }
|
|
4232
4234
|
});
|
|
4233
|
-
return /* @__PURE__ */ H("div", { className:
|
|
4234
|
-
|
|
4235
|
+
return /* @__PURE__ */ H("div", { className: ne, ref: C, children: [
|
|
4236
|
+
c && /* @__PURE__ */ l(
|
|
4235
4237
|
jt,
|
|
4236
4238
|
{
|
|
4237
|
-
classNameRoot:
|
|
4238
|
-
tooltipPosition:
|
|
4239
|
+
classNameRoot: T,
|
|
4240
|
+
tooltipPosition: d,
|
|
4239
4241
|
required: h,
|
|
4240
|
-
label:
|
|
4241
|
-
infoTooltipText:
|
|
4242
|
+
label: c,
|
|
4243
|
+
infoTooltipText: u
|
|
4242
4244
|
}
|
|
4243
4245
|
),
|
|
4244
4246
|
/* @__PURE__ */ H("div", { className: de, onMouseEnter: s, children: [
|
|
@@ -4248,13 +4250,13 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4248
4250
|
tabIndex: g ? -1 : 0,
|
|
4249
4251
|
title: w ? o : void 0,
|
|
4250
4252
|
className: ue,
|
|
4251
|
-
onClick:
|
|
4253
|
+
onClick: J,
|
|
4252
4254
|
children: [
|
|
4253
|
-
/* @__PURE__ */ l("div", { className: me, children: (
|
|
4255
|
+
/* @__PURE__ */ l("div", { className: me, children: (P == null ? void 0 : P.label) || n }),
|
|
4254
4256
|
/* @__PURE__ */ l(
|
|
4255
4257
|
ge,
|
|
4256
4258
|
{
|
|
4257
|
-
name:
|
|
4259
|
+
name: re.SelectChevronDown,
|
|
4258
4260
|
rotate: y ? 180 : void 0,
|
|
4259
4261
|
className: q
|
|
4260
4262
|
}
|
|
@@ -4265,29 +4267,29 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4265
4267
|
y && /* @__PURE__ */ l(
|
|
4266
4268
|
"div",
|
|
4267
4269
|
{
|
|
4268
|
-
className:
|
|
4269
|
-
style:
|
|
4270
|
-
children: t.map((
|
|
4271
|
-
const f =
|
|
4270
|
+
className: Z,
|
|
4271
|
+
style: A ? { maxHeight: `${E}px` } : {},
|
|
4272
|
+
children: t.map((D) => {
|
|
4273
|
+
const f = D.value === o;
|
|
4272
4274
|
return /* @__PURE__ */ H(
|
|
4273
4275
|
"div",
|
|
4274
4276
|
{
|
|
4275
4277
|
className: _({
|
|
4276
4278
|
[xe.spSelect__option]: !0
|
|
4277
4279
|
}),
|
|
4278
|
-
onClick: (b) =>
|
|
4280
|
+
onClick: (b) => U(b, D.value),
|
|
4279
4281
|
children: [
|
|
4280
|
-
|
|
4281
|
-
f && /* @__PURE__ */ l(ge, { name:
|
|
4282
|
+
D.label,
|
|
4283
|
+
f && /* @__PURE__ */ l(ge, { name: re.Check, className: q })
|
|
4282
4284
|
]
|
|
4283
4285
|
},
|
|
4284
|
-
|
|
4286
|
+
D.value
|
|
4285
4287
|
);
|
|
4286
4288
|
})
|
|
4287
4289
|
}
|
|
4288
4290
|
)
|
|
4289
4291
|
] }),
|
|
4290
|
-
|
|
4292
|
+
m && /* @__PURE__ */ l("div", { className: V, children: m })
|
|
4291
4293
|
] });
|
|
4292
4294
|
}, os = "_skeleton_c18an_44", as = {
|
|
4293
4295
|
skeleton: os
|
|
@@ -4326,73 +4328,73 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4326
4328
|
...a && { [a]: !0 }
|
|
4327
4329
|
}), s = _({
|
|
4328
4330
|
[he.spTable__tdContent]: !0
|
|
4329
|
-
}),
|
|
4331
|
+
}), m = _({
|
|
4330
4332
|
[he.spTable__tdColorContent]: !0
|
|
4331
|
-
}),
|
|
4333
|
+
}), c = _({
|
|
4332
4334
|
[he.spTable__emptyPage]: !0
|
|
4333
4335
|
}), {
|
|
4334
|
-
device: { isDesktop:
|
|
4335
|
-
} = dn(Nn), [
|
|
4336
|
-
const { text: p, rowIndex:
|
|
4337
|
-
(
|
|
4338
|
-
g({ rowIndex:
|
|
4339
|
-
}).catch((
|
|
4340
|
-
console.error("Ошибка при копировании:",
|
|
4336
|
+
device: { isDesktop: u }
|
|
4337
|
+
} = dn(Nn), [d, g] = ce(null), h = (y) => {
|
|
4338
|
+
const { text: p, rowIndex: C, colIndex: P } = y;
|
|
4339
|
+
(d == null ? void 0 : d.rowIndex) === C && (d == null ? void 0 : d.colIndex) === P || navigator.clipboard.writeText(p).then(() => {
|
|
4340
|
+
g({ rowIndex: C, colIndex: P });
|
|
4341
|
+
}).catch((U) => {
|
|
4342
|
+
console.error("Ошибка при копировании:", U);
|
|
4341
4343
|
});
|
|
4342
4344
|
}, E = () => {
|
|
4343
4345
|
g(null);
|
|
4344
|
-
}, w = () => /* @__PURE__ */ l("div", { className:
|
|
4346
|
+
}, w = () => /* @__PURE__ */ l("div", { className: c, children: "Данные отсутствуют" }), A = ({
|
|
4345
4347
|
row: y,
|
|
4346
4348
|
col: p
|
|
4347
4349
|
}) => {
|
|
4348
|
-
const
|
|
4349
|
-
if (!
|
|
4350
|
-
const [
|
|
4350
|
+
const C = y[p.key];
|
|
4351
|
+
if (!C) return null;
|
|
4352
|
+
const [P, U] = C.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4351
4353
|
return /* @__PURE__ */ H("span", { children: [
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
+
P,
|
|
4355
|
+
U && /* @__PURE__ */ l("span", { className: m, children: ` ${U}` })
|
|
4354
4356
|
] });
|
|
4355
4357
|
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ H("table", { className: r, children: [
|
|
4356
|
-
/* @__PURE__ */ l("colgroup", { children: i.map((y, p,
|
|
4358
|
+
/* @__PURE__ */ l("colgroup", { children: i.map((y, p, C) => /* @__PURE__ */ l(
|
|
4357
4359
|
"col",
|
|
4358
4360
|
{
|
|
4359
4361
|
style: {
|
|
4360
|
-
width: `calc(100%/${
|
|
4362
|
+
width: `calc(100%/${C.length})`
|
|
4361
4363
|
}
|
|
4362
4364
|
},
|
|
4363
4365
|
p
|
|
4364
4366
|
)) }),
|
|
4365
4367
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: i.map((y, p) => /* @__PURE__ */ l("th", { children: y.title }, p)) }) }),
|
|
4366
|
-
/* @__PURE__ */ l("tbody", { children: n.map((y, p) => y ? /* @__PURE__ */ l("tr", { children: i.map((
|
|
4367
|
-
const
|
|
4368
|
+
/* @__PURE__ */ l("tbody", { children: n.map((y, p) => y ? /* @__PURE__ */ l("tr", { children: i.map((C, P) => {
|
|
4369
|
+
const U = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === P;
|
|
4368
4370
|
return /* @__PURE__ */ l(
|
|
4369
4371
|
"td",
|
|
4370
4372
|
{
|
|
4371
|
-
onMouseLeave:
|
|
4373
|
+
onMouseLeave: U ? E : void 0,
|
|
4372
4374
|
children: /* @__PURE__ */ H("div", { className: s, children: [
|
|
4373
|
-
/* @__PURE__ */ l("span", { children:
|
|
4374
|
-
!pn(y[
|
|
4375
|
+
/* @__PURE__ */ l("span", { children: C.isColorContentsCurlyBrackets ? A({ row: y, col: C }) : y[C.key] }),
|
|
4376
|
+
!pn(y[C.key]) && C.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4375
4377
|
ge,
|
|
4376
4378
|
{
|
|
4377
4379
|
className: _({
|
|
4378
4380
|
[he.spTable__tdContentCopyIcon]: !0,
|
|
4379
|
-
[he.spTable__tdContentCopyIcon_copied]:
|
|
4381
|
+
[he.spTable__tdContentCopyIcon_copied]: U
|
|
4380
4382
|
}),
|
|
4381
|
-
name:
|
|
4383
|
+
name: U ? re.Check : re.Copy,
|
|
4382
4384
|
onClick: () => {
|
|
4383
|
-
const
|
|
4384
|
-
if (!
|
|
4385
|
+
const J = y[C.key];
|
|
4386
|
+
if (!J) return null;
|
|
4385
4387
|
h({
|
|
4386
|
-
text:
|
|
4388
|
+
text: J,
|
|
4387
4389
|
rowIndex: p,
|
|
4388
|
-
colIndex:
|
|
4390
|
+
colIndex: P
|
|
4389
4391
|
});
|
|
4390
4392
|
}
|
|
4391
4393
|
}
|
|
4392
4394
|
)
|
|
4393
4395
|
] })
|
|
4394
4396
|
},
|
|
4395
|
-
`${p}:${
|
|
4397
|
+
`${p}:${P}`
|
|
4396
4398
|
);
|
|
4397
4399
|
}) }, p) : null) })
|
|
4398
4400
|
] }) : w(), Y = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ l(
|
|
@@ -4401,17 +4403,17 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4401
4403
|
className: _({
|
|
4402
4404
|
[he.spStringsGroup]: !0
|
|
4403
4405
|
}),
|
|
4404
|
-
children: n.map((y, p) => y ? /* @__PURE__ */ l("div", { children: i.map((
|
|
4405
|
-
if (pn(y[
|
|
4406
|
+
children: n.map((y, p) => y ? /* @__PURE__ */ l("div", { children: i.map((C, P) => {
|
|
4407
|
+
if (pn(y[C.key]))
|
|
4406
4408
|
return null;
|
|
4407
|
-
const
|
|
4409
|
+
const U = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === P;
|
|
4408
4410
|
return /* @__PURE__ */ H(
|
|
4409
4411
|
"div",
|
|
4410
4412
|
{
|
|
4411
4413
|
className: _({
|
|
4412
4414
|
[he.spStringsGroup__groupItem]: !0
|
|
4413
4415
|
}),
|
|
4414
|
-
onMouseLeave:
|
|
4416
|
+
onMouseLeave: U ? E : void 0,
|
|
4415
4417
|
children: [
|
|
4416
4418
|
/* @__PURE__ */ l(
|
|
4417
4419
|
"div",
|
|
@@ -4419,7 +4421,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4419
4421
|
className: _({
|
|
4420
4422
|
[he.spStringsGroup__groupItemHeader]: !0
|
|
4421
4423
|
}),
|
|
4422
|
-
children:
|
|
4424
|
+
children: C.title
|
|
4423
4425
|
}
|
|
4424
4426
|
),
|
|
4425
4427
|
/* @__PURE__ */ H(
|
|
@@ -4429,22 +4431,22 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4429
4431
|
[he.spStringsGroup__groupItemContent]: !0
|
|
4430
4432
|
}),
|
|
4431
4433
|
children: [
|
|
4432
|
-
/* @__PURE__ */ l("span", { children: y[
|
|
4433
|
-
|
|
4434
|
+
/* @__PURE__ */ l("span", { children: y[C.key] }),
|
|
4435
|
+
C.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4434
4436
|
ge,
|
|
4435
4437
|
{
|
|
4436
4438
|
className: _({
|
|
4437
4439
|
[he.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
4438
|
-
[he.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
4440
|
+
[he.spStringsGroup__groupItemContentCopyIcon_copied]: U
|
|
4439
4441
|
}),
|
|
4440
|
-
name:
|
|
4442
|
+
name: U ? re.Check : re.Copy,
|
|
4441
4443
|
onClick: () => {
|
|
4442
|
-
const
|
|
4443
|
-
if (!
|
|
4444
|
+
const J = y[C.key];
|
|
4445
|
+
if (!J) return null;
|
|
4444
4446
|
h({
|
|
4445
|
-
text:
|
|
4447
|
+
text: J,
|
|
4446
4448
|
rowIndex: p,
|
|
4447
|
-
colIndex:
|
|
4449
|
+
colIndex: P
|
|
4448
4450
|
});
|
|
4449
4451
|
}
|
|
4450
4452
|
}
|
|
@@ -4454,12 +4456,12 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4454
4456
|
)
|
|
4455
4457
|
]
|
|
4456
4458
|
},
|
|
4457
|
-
|
|
4459
|
+
P
|
|
4458
4460
|
);
|
|
4459
4461
|
}) }, p) : null)
|
|
4460
4462
|
}
|
|
4461
4463
|
) : w();
|
|
4462
|
-
return o ?
|
|
4464
|
+
return o ? u ? L() : Y() : L();
|
|
4463
4465
|
}, xs = "_spTabs_1citb_43", gs = "_spTabs_separated_1citb_48", hs = "_spTabs__tabElement_1citb_48", bs = "_spTabs__tabElement_active_1citb_83", ys = "_spTabs__triggerTooltip_1citb_90", Ne = {
|
|
4464
4466
|
spTabs: xs,
|
|
4465
4467
|
spTabs_separated: gs,
|
|
@@ -4485,7 +4487,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4485
4487
|
...o && { [o]: !0 }
|
|
4486
4488
|
}), s = _({
|
|
4487
4489
|
[Ne.spTabs__triggerTooltip]: !0
|
|
4488
|
-
}),
|
|
4490
|
+
}), m = () => {
|
|
4489
4491
|
switch (i) {
|
|
4490
4492
|
case "md":
|
|
4491
4493
|
return "p2";
|
|
@@ -4493,8 +4495,8 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4493
4495
|
return "p1";
|
|
4494
4496
|
}
|
|
4495
4497
|
};
|
|
4496
|
-
return /* @__PURE__ */ l("div", { className: r, children: t.map((
|
|
4497
|
-
const { name:
|
|
4498
|
+
return /* @__PURE__ */ l("div", { className: r, children: t.map((c, u) => {
|
|
4499
|
+
const { name: d, active: g, onClick: h, infoTooltipText: E } = c;
|
|
4498
4500
|
return /* @__PURE__ */ H(
|
|
4499
4501
|
"div",
|
|
4500
4502
|
{
|
|
@@ -4504,7 +4506,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4504
4506
|
}),
|
|
4505
4507
|
onClick: h,
|
|
4506
4508
|
children: [
|
|
4507
|
-
/* @__PURE__ */ l(Se, { type:
|
|
4509
|
+
/* @__PURE__ */ l(Se, { type: m(), children: d }),
|
|
4508
4510
|
!!E && /* @__PURE__ */ l(
|
|
4509
4511
|
Qe,
|
|
4510
4512
|
{
|
|
@@ -4514,7 +4516,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4514
4516
|
)
|
|
4515
4517
|
]
|
|
4516
4518
|
},
|
|
4517
|
-
|
|
4519
|
+
c.key || u
|
|
4518
4520
|
);
|
|
4519
4521
|
}) });
|
|
4520
4522
|
}, ws = "_spTextWithLabel_1dr7p_1", ks = {
|
|
@@ -4536,8 +4538,8 @@ export {
|
|
|
4536
4538
|
As as ContextMenu,
|
|
4537
4539
|
wi as DefaultDropzone,
|
|
4538
4540
|
Rs as Dropdown,
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
+
re as EIconName,
|
|
4542
|
+
ie as ETooltipPosition,
|
|
4541
4543
|
Di as EllipsisTextWithTooltip,
|
|
4542
4544
|
Ds as Form,
|
|
4543
4545
|
ge as Icon,
|