test-stpr-ui-kit 0.4.21 → 0.4.23
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
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as Y, 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 ae, useRef as Te, useCallback as le, forwardRef as zn, useImperativeHandle as
|
|
3
|
+
import We, { useState as ce, useEffect as ae, useRef as Te, useCallback as le, forwardRef as zn, useImperativeHandle as Bn, Fragment as Mn, 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 = "";
|
|
@@ -73,41 +73,41 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
73
73
|
classNameTitle: u,
|
|
74
74
|
classNameIcon: d,
|
|
75
75
|
classNameChildrenWrapper: g
|
|
76
|
-
} = e, [
|
|
77
|
-
a || (E(!
|
|
76
|
+
} = e, [b, E] = ce(o), h = () => {
|
|
77
|
+
a || (E(!b), i == null || i(!b));
|
|
78
78
|
}, A = _({
|
|
79
79
|
[se.spAccordion]: !0,
|
|
80
|
-
[se.spAccordion_open]:
|
|
81
|
-
[se.spAccordion_noOpen]: !
|
|
80
|
+
[se.spAccordion_open]: b,
|
|
81
|
+
[se.spAccordion_noOpen]: !b,
|
|
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
|
+
}), V = _({
|
|
89
89
|
[se.spAccordion__name]: !0,
|
|
90
90
|
[se.spAccordion__name_hiddenExpand]: a,
|
|
91
91
|
...u && { [u]: !0 }
|
|
92
|
-
}),
|
|
92
|
+
}), D = _({
|
|
93
93
|
[se.spAccordion__icon]: !0,
|
|
94
|
-
[se.spAccordion__icon_open]:
|
|
94
|
+
[se.spAccordion__icon_open]: b,
|
|
95
95
|
[se.spAccordion__icon_hidden]: a,
|
|
96
96
|
...d && { [d]: !0 }
|
|
97
|
-
}),
|
|
97
|
+
}), w = _({
|
|
98
98
|
[se.spAccordion__childrenWrapper]: !0,
|
|
99
|
-
[se.spAccordion__childrenWrapper_open]:
|
|
99
|
+
[se.spAccordion__childrenWrapper_open]: b,
|
|
100
100
|
...g && { [g]: !0 }
|
|
101
101
|
}), p = _({
|
|
102
102
|
[se.spAccordion__content]: !0,
|
|
103
|
-
[se.spAccordion__content_open]:
|
|
103
|
+
[se.spAccordion__content_open]: b
|
|
104
104
|
});
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
/* @__PURE__ */ l("div", { className:
|
|
108
|
-
/* @__PURE__ */ l(ge, { onClick:
|
|
105
|
+
return /* @__PURE__ */ Y("div", { className: A, children: [
|
|
106
|
+
/* @__PURE__ */ Y("div", { className: L, children: [
|
|
107
|
+
/* @__PURE__ */ l("div", { className: V, children: /* @__PURE__ */ l("span", { onClick: h, children: t }) }),
|
|
108
|
+
/* @__PURE__ */ l(ge, { onClick: h, className: D, name: re.ChevronDown })
|
|
109
109
|
] }),
|
|
110
|
-
/* @__PURE__ */ l("div", { className:
|
|
110
|
+
/* @__PURE__ */ l("div", { className: w, children: /* @__PURE__ */ l("div", { className: p, children: n }) })
|
|
111
111
|
] });
|
|
112
112
|
}, bo = "_spinner_f5rd2_43", yo = "_spinner__inner_f5rd2_53", pt = {
|
|
113
113
|
spinner: bo,
|
|
@@ -129,7 +129,7 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
129
129
|
children: /* @__PURE__ */ l("div", { className: pt.spinner__inner })
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
|
-
}, ko = "_spButton_zixup_43", Co = "_spButton_noPadding_zixup_59", To = "_spButton_onlyIcon_zixup_62", Eo = "_spButton__iconContainer_zixup_70", So = "_spButton_link_zixup_73", Io = "_spButton__text_zixup_77", No = "_spButton_primary_zixup_89", jo = "_spButton_blue_zixup_89",
|
|
132
|
+
}, ko = "_spButton_zixup_43", Co = "_spButton_noPadding_zixup_59", To = "_spButton_onlyIcon_zixup_62", Eo = "_spButton__iconContainer_zixup_70", So = "_spButton_link_zixup_73", Io = "_spButton__text_zixup_77", No = "_spButton_primary_zixup_89", jo = "_spButton_blue_zixup_89", Ro = "_spButton_white_zixup_99", Ao = "_spButton_secondary_zixup_109", Do = "_spButton_fullWidth_zixup_129", Oo = "_spButton_disabled_zixup_132", Lo = "_spButton__spinner_zixup_141", be = {
|
|
133
133
|
spButton: ko,
|
|
134
134
|
spButton_noPadding: Co,
|
|
135
135
|
spButton_onlyIcon: To,
|
|
@@ -138,8 +138,8 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
138
138
|
spButton__text: Io,
|
|
139
139
|
spButton_primary: No,
|
|
140
140
|
spButton_blue: jo,
|
|
141
|
-
spButton_white:
|
|
142
|
-
spButton_secondary:
|
|
141
|
+
spButton_white: Ro,
|
|
142
|
+
spButton_secondary: Ao,
|
|
143
143
|
spButton_fullWidth: Do,
|
|
144
144
|
spButton_disabled: Oo,
|
|
145
145
|
spButton__spinner: Lo
|
|
@@ -157,44 +157,44 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
157
157
|
children: u,
|
|
158
158
|
loading: d = !1,
|
|
159
159
|
isFullWidth: g = !1,
|
|
160
|
-
isOnlyIcon:
|
|
160
|
+
isOnlyIcon: b = !1,
|
|
161
161
|
noPadding: E = !1,
|
|
162
|
-
classNameRoot:
|
|
162
|
+
classNameRoot: h,
|
|
163
163
|
classNameIconContainerRoot: A
|
|
164
|
-
} = e, L = (
|
|
165
|
-
s || a == null || a(
|
|
166
|
-
},
|
|
167
|
-
const
|
|
164
|
+
} = e, L = (w) => {
|
|
165
|
+
s || a == null || a(w);
|
|
166
|
+
}, V = () => {
|
|
167
|
+
const w = _({
|
|
168
168
|
[be.spButton__text]: !0
|
|
169
169
|
}), p = _({
|
|
170
170
|
[be.spButton__iconContainer]: !0,
|
|
171
171
|
...A && { [A]: !0 }
|
|
172
172
|
});
|
|
173
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ Y(cn, { children: [
|
|
174
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
|
-
!
|
|
175
|
+
!b && u && /* @__PURE__ */ l("div", { className: w, children: u })
|
|
176
176
|
] });
|
|
177
|
-
},
|
|
177
|
+
}, D = _({
|
|
178
178
|
[be.spButton]: !0,
|
|
179
179
|
[be.spButton_noPadding]: E,
|
|
180
|
-
[be.spButton_onlyIcon]:
|
|
180
|
+
[be.spButton_onlyIcon]: b,
|
|
181
181
|
[be[`spButton_${n}`]]: n,
|
|
182
182
|
[be[`spButton_${t}`]]: t,
|
|
183
183
|
[be.spButton_fullWidth]: g,
|
|
184
184
|
[be.spButton_disabled]: s,
|
|
185
185
|
[be.spButton_loading]: d,
|
|
186
|
-
...
|
|
186
|
+
...h && { [h]: !0 }
|
|
187
187
|
});
|
|
188
188
|
return /* @__PURE__ */ l(
|
|
189
189
|
"button",
|
|
190
190
|
{
|
|
191
191
|
style: o,
|
|
192
|
-
className:
|
|
192
|
+
className: D,
|
|
193
193
|
onClick: L,
|
|
194
194
|
disabled: s,
|
|
195
195
|
type: m,
|
|
196
196
|
form: c,
|
|
197
|
-
children:
|
|
197
|
+
children: V()
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
}, Po = "_spApplyButtons_e8c1h_43", Fo = "_spApplyButtons__cancel_e8c1h_65", zo = "_spApplyButtons__submit_e8c1h_68", ze = {
|
|
@@ -205,7 +205,7 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
205
205
|
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-column_e8c1h_57",
|
|
206
206
|
spApplyButtons__cancel: Fo,
|
|
207
207
|
spApplyButtons__submit: zo
|
|
208
|
-
},
|
|
208
|
+
}, Bo = (e) => {
|
|
209
209
|
const {
|
|
210
210
|
mobile: t = "column",
|
|
211
211
|
align: n = "center",
|
|
@@ -222,12 +222,12 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
222
222
|
[ze.spApplyButtons]: !0,
|
|
223
223
|
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
224
224
|
[ze[`spApplyButtons_align-${n}`]]: n
|
|
225
|
-
}),
|
|
225
|
+
}), b = _({
|
|
226
226
|
[ze.spApplyButtons__submit]: !0
|
|
227
227
|
}), E = _({
|
|
228
228
|
[ze.spApplyButtons__cancel]: !0
|
|
229
229
|
});
|
|
230
|
-
return /* @__PURE__ */
|
|
230
|
+
return /* @__PURE__ */ Y("div", { className: g, children: [
|
|
231
231
|
o && /* @__PURE__ */ l(
|
|
232
232
|
yt,
|
|
233
233
|
{
|
|
@@ -245,7 +245,7 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
245
245
|
{
|
|
246
246
|
type: "submit",
|
|
247
247
|
variant: "primary",
|
|
248
|
-
classNameRoot:
|
|
248
|
+
classNameRoot: b,
|
|
249
249
|
form: s || void 0,
|
|
250
250
|
disabled: m,
|
|
251
251
|
onClick: u,
|
|
@@ -254,8 +254,8 @@ const ao = "_spAccordion_ui7ma_43", io = "_spAccordion_noBorder_ui7ma_57", ro =
|
|
|
254
254
|
}
|
|
255
255
|
)
|
|
256
256
|
] });
|
|
257
|
-
},
|
|
258
|
-
spBaseTooltip:
|
|
257
|
+
}, Mo = "_spBaseTooltip_1ihh1_43", Wo = "_spBaseTooltip_noPadding_1ihh1_57", qo = "_spBaseTooltip__content_1ihh1_60", ct = {
|
|
258
|
+
spBaseTooltip: Mo,
|
|
259
259
|
spBaseTooltip_noPadding: Wo,
|
|
260
260
|
spBaseTooltip__content: qo
|
|
261
261
|
}, mn = We.forwardRef((e, t) => {
|
|
@@ -318,95 +318,95 @@ const It = (e) => {
|
|
|
318
318
|
text: u,
|
|
319
319
|
noPadding: d,
|
|
320
320
|
classNameTooltip: g,
|
|
321
|
-
classNameBaseTooltipRoot:
|
|
321
|
+
classNameBaseTooltipRoot: b,
|
|
322
322
|
classNameBaseTooltipContentRoot: E
|
|
323
|
-
} = e, [
|
|
323
|
+
} = e, [h, A] = ce(!1), L = Te(null), V = Te(null), [D, w] = ce(!1);
|
|
324
324
|
fn(
|
|
325
|
-
[L,
|
|
325
|
+
[L, V],
|
|
326
326
|
() => {
|
|
327
327
|
s && s(), A(!1);
|
|
328
328
|
},
|
|
329
|
-
|
|
329
|
+
h
|
|
330
330
|
);
|
|
331
|
-
const p = (
|
|
332
|
-
o &&
|
|
333
|
-
}, [
|
|
331
|
+
const p = (k) => {
|
|
332
|
+
o && k.stopPropagation(), !t && (h ? s && s() : r && r(), A((q) => n ? !q : !0));
|
|
333
|
+
}, [T, P] = ce({
|
|
334
334
|
visibility: "hidden",
|
|
335
335
|
opacity: 0,
|
|
336
336
|
left: "-9999px"
|
|
337
337
|
}), [U, J] = ce(!1), ne = le(() => {
|
|
338
|
-
if (!L.current || !
|
|
339
|
-
const
|
|
340
|
-
let X = 0,
|
|
338
|
+
if (!L.current || !V.current) return;
|
|
339
|
+
const k = L.current.getBoundingClientRect(), q = V.current.getBoundingClientRect();
|
|
340
|
+
let X = 0, j = 0;
|
|
341
341
|
switch (c) {
|
|
342
342
|
case ie.Right:
|
|
343
|
-
X =
|
|
343
|
+
X = k.top + window.scrollY - (q.height - k.height) / 2, j = k.right + window.scrollX;
|
|
344
344
|
break;
|
|
345
345
|
case ie.RightTop:
|
|
346
|
-
X =
|
|
346
|
+
X = k.top + window.scrollY, j = k.right + window.scrollX;
|
|
347
347
|
break;
|
|
348
348
|
case ie.RightBottom:
|
|
349
|
-
X =
|
|
349
|
+
X = k.bottom + window.scrollY - q.height, j = k.right + window.scrollX;
|
|
350
350
|
break;
|
|
351
351
|
case ie.Left:
|
|
352
|
-
X =
|
|
352
|
+
X = k.top + window.scrollY - (q.height - k.height) / 2, j = k.left + window.scrollX - q.width;
|
|
353
353
|
break;
|
|
354
354
|
case ie.LeftTop:
|
|
355
|
-
X =
|
|
355
|
+
X = k.top + window.scrollY, j = k.left + window.scrollX - q.width;
|
|
356
356
|
break;
|
|
357
357
|
case ie.LeftBottom:
|
|
358
|
-
X =
|
|
358
|
+
X = k.bottom + window.scrollY - q.height, j = k.left + window.scrollX - q.width;
|
|
359
359
|
break;
|
|
360
360
|
case ie.Bottom:
|
|
361
|
-
X =
|
|
361
|
+
X = k.bottom + window.scrollY, j = k.left + window.scrollX - (q.width - k.width) / 2;
|
|
362
362
|
break;
|
|
363
363
|
case ie.BottomLeft:
|
|
364
|
-
X =
|
|
364
|
+
X = k.bottom + window.scrollY, j = k.left + window.scrollX;
|
|
365
365
|
break;
|
|
366
366
|
case ie.BottomRight:
|
|
367
|
-
X =
|
|
367
|
+
X = k.bottom + window.scrollY, j = k.right + window.scrollX - q.width;
|
|
368
368
|
break;
|
|
369
369
|
case ie.Top:
|
|
370
|
-
X =
|
|
370
|
+
X = k.top + window.scrollY - q.height, j = k.left + window.scrollX - (q.width - k.width) / 2;
|
|
371
371
|
break;
|
|
372
372
|
case ie.TopLeft:
|
|
373
|
-
X =
|
|
373
|
+
X = k.top + window.scrollY - q.height, j = k.left + window.scrollX;
|
|
374
374
|
break;
|
|
375
375
|
case ie.TopRight:
|
|
376
|
-
X =
|
|
376
|
+
X = k.top + window.scrollY - q.height, j = k.right + window.scrollX - q.width;
|
|
377
377
|
break;
|
|
378
378
|
default:
|
|
379
|
-
X =
|
|
379
|
+
X = k.bottom + window.scrollY, j = k.left + window.scrollX;
|
|
380
380
|
}
|
|
381
|
-
X +
|
|
381
|
+
X + q.height > window.innerHeight + window.scrollY && c.includes("bottom") ? X = k.top + window.scrollY - q.height : X < window.scrollY && c.includes("top") && (X = k.bottom + window.scrollY), j + q.width > window.innerWidth + window.scrollX && c.includes("left") ? j = k.left + window.scrollX - q.width + k.width : j < window.scrollX && c.includes("right") && (j = k.right + window.scrollX - k.width), P((f) => ({
|
|
382
382
|
...f,
|
|
383
383
|
top: `${X}px`,
|
|
384
|
-
left: `${
|
|
385
|
-
visibility:
|
|
386
|
-
opacity:
|
|
384
|
+
left: `${j}px`,
|
|
385
|
+
visibility: h || U ? "visible" : "hidden",
|
|
386
|
+
opacity: h || U ? 1 : 0
|
|
387
387
|
}));
|
|
388
|
-
}, [c,
|
|
389
|
-
ae(() => (
|
|
390
|
-
|
|
391
|
-
}, [
|
|
392
|
-
if (!
|
|
393
|
-
const
|
|
394
|
-
return window.addEventListener("resize",
|
|
395
|
-
window.removeEventListener("resize",
|
|
388
|
+
}, [c, h, U]);
|
|
389
|
+
ae(() => (w(!0), () => w(!1)), []), ae(() => {
|
|
390
|
+
D && ne();
|
|
391
|
+
}, [D, ne]), ae(() => {
|
|
392
|
+
if (!D) return;
|
|
393
|
+
const k = () => ne();
|
|
394
|
+
return window.addEventListener("resize", k), window.addEventListener("scroll", k, !0), () => {
|
|
395
|
+
window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
|
|
396
396
|
};
|
|
397
|
-
}, [
|
|
397
|
+
}, [D, ne]);
|
|
398
398
|
const de = _({
|
|
399
399
|
[Dt.spTooltip]: !0,
|
|
400
400
|
...g && { [g]: !0 }
|
|
401
401
|
}), ue = _({
|
|
402
|
-
...
|
|
402
|
+
...b && { [b]: !0 }
|
|
403
403
|
}), me = _({
|
|
404
404
|
...E && { [E]: !0 }
|
|
405
|
-
}),
|
|
405
|
+
}), $ = _({
|
|
406
406
|
[Dt.spTooltip__trigger]: !0,
|
|
407
407
|
...m && { [m]: !0 }
|
|
408
408
|
}), Z = document.body;
|
|
409
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ Y(
|
|
410
410
|
"div",
|
|
411
411
|
{
|
|
412
412
|
className: de,
|
|
@@ -414,12 +414,12 @@ const It = (e) => {
|
|
|
414
414
|
onMouseEnter: () => t && J(!0),
|
|
415
415
|
onMouseLeave: () => t && J(!1),
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */ l("div", { ref: L, className:
|
|
417
|
+
/* @__PURE__ */ l("div", { ref: L, className: $, children: i }),
|
|
418
418
|
a && /* @__PURE__ */ l(_n, { node: Z, children: /* @__PURE__ */ l(
|
|
419
419
|
mn,
|
|
420
420
|
{
|
|
421
|
-
style:
|
|
422
|
-
ref:
|
|
421
|
+
style: T,
|
|
422
|
+
ref: V,
|
|
423
423
|
noPadding: d,
|
|
424
424
|
text: u,
|
|
425
425
|
classNameRoot: ue,
|
|
@@ -456,11 +456,11 @@ const It = (e) => {
|
|
|
456
456
|
tooltipPosition: u,
|
|
457
457
|
infoTooltipText: d,
|
|
458
458
|
onMouseEnter: g,
|
|
459
|
-
classNameRoot:
|
|
459
|
+
classNameRoot: b,
|
|
460
460
|
classNameError: E
|
|
461
|
-
} = e,
|
|
461
|
+
} = e, h = _({
|
|
462
462
|
[ye.spCheckbox]: !0,
|
|
463
|
-
...
|
|
463
|
+
...b && { [b]: !0 }
|
|
464
464
|
}), A = _({
|
|
465
465
|
[ye.spCheckbox__box]: !0,
|
|
466
466
|
[ye.spCheckbox__box_checked]: n,
|
|
@@ -469,18 +469,18 @@ const It = (e) => {
|
|
|
469
469
|
[ye.spCheckbox__box_error]: s
|
|
470
470
|
}), L = _({
|
|
471
471
|
[ye.spCheckbox__control]: !0
|
|
472
|
-
}),
|
|
472
|
+
}), V = _({
|
|
473
473
|
[ye.spCheckbox__label]: !0
|
|
474
|
-
}),
|
|
474
|
+
}), D = _({
|
|
475
475
|
[ye.spCheckbox__required]: !0
|
|
476
|
-
}),
|
|
476
|
+
}), w = _({
|
|
477
477
|
[ye.spCheckbox__error]: !0,
|
|
478
478
|
...E && { [E]: !0 }
|
|
479
479
|
}), p = _({
|
|
480
480
|
[ye.spCheckbox__tooltip]: !0
|
|
481
481
|
});
|
|
482
|
-
return /* @__PURE__ */
|
|
483
|
-
/* @__PURE__ */
|
|
482
|
+
return /* @__PURE__ */ Y("div", { className: h, onMouseEnter: g, children: [
|
|
483
|
+
/* @__PURE__ */ Y("label", { className: A, children: [
|
|
484
484
|
/* @__PURE__ */ l(
|
|
485
485
|
"input",
|
|
486
486
|
{
|
|
@@ -492,11 +492,11 @@ const It = (e) => {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
),
|
|
495
|
-
r && /* @__PURE__ */ l("span", { className:
|
|
496
|
-
c && /* @__PURE__ */ l("div", { className:
|
|
495
|
+
r && /* @__PURE__ */ l("span", { className: V, children: r }),
|
|
496
|
+
c && /* @__PURE__ */ l("div", { className: D, children: "*" }),
|
|
497
497
|
d && /* @__PURE__ */ l("div", { className: p, children: /* @__PURE__ */ l(Qe, { position: u, text: d }) })
|
|
498
498
|
] }),
|
|
499
|
-
s && /* @__PURE__ */ l("div", { className:
|
|
499
|
+
s && /* @__PURE__ */ l("div", { className: w, children: s })
|
|
500
500
|
] });
|
|
501
501
|
}, Ns = (e = {}) => {
|
|
502
502
|
const { initialValue: t = null } = e, [n, o] = ce(t);
|
|
@@ -547,7 +547,7 @@ const It = (e) => {
|
|
|
547
547
|
isCursorPointer: c = !1,
|
|
548
548
|
isCursorPointerByOnClick: u = !0,
|
|
549
549
|
classNameRoot: d
|
|
550
|
-
} = e, g = () => s && u ? !0 : c,
|
|
550
|
+
} = e, g = () => s && u ? !0 : c, b = _({
|
|
551
551
|
[Ye.spText]: !0,
|
|
552
552
|
[Ye.spText_ellipsis]: m,
|
|
553
553
|
[Ye.spText_cursorPointer]: g(),
|
|
@@ -560,7 +560,7 @@ const It = (e) => {
|
|
|
560
560
|
style: { ...r, color: a },
|
|
561
561
|
title: i,
|
|
562
562
|
onClick: s,
|
|
563
|
-
className:
|
|
563
|
+
className: b,
|
|
564
564
|
ref: t,
|
|
565
565
|
children: o
|
|
566
566
|
}
|
|
@@ -592,41 +592,41 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
592
592
|
header: u,
|
|
593
593
|
subHeader: d,
|
|
594
594
|
footer: g
|
|
595
|
-
} = e,
|
|
595
|
+
} = e, b = _({
|
|
596
596
|
[ke.modalWrapper]: !0,
|
|
597
597
|
[ke[`modalWrapper_align-${m}`]]: m
|
|
598
598
|
}), E = _({
|
|
599
599
|
[ke.modalWrapper__modal]: !0,
|
|
600
600
|
...r && { [r]: !0 }
|
|
601
|
-
}),
|
|
601
|
+
}), h = _({
|
|
602
602
|
[ke.modalWrapper__closeButton]: !0
|
|
603
603
|
}), A = _({
|
|
604
604
|
[ke.modalWrapper__closeButtonIconContainer]: !0
|
|
605
605
|
}), L = _({
|
|
606
606
|
[ke.modalWrapper__content]: !0
|
|
607
|
-
}),
|
|
607
|
+
}), V = _({
|
|
608
608
|
[ke.modalWrapper__header]: !0
|
|
609
|
-
}),
|
|
609
|
+
}), D = _({
|
|
610
610
|
[ke.modalWrapper__subHeader]: !0
|
|
611
|
-
}),
|
|
611
|
+
}), w = _({
|
|
612
612
|
[ke.modalWrapper__footer]: !0
|
|
613
613
|
});
|
|
614
614
|
return ae(() => {
|
|
615
|
-
const p = window.scrollY,
|
|
616
|
-
return
|
|
617
|
-
|
|
615
|
+
const p = window.scrollY, T = document.body;
|
|
616
|
+
return T.style.position = "fixed", T.style.top = `-${p}px`, T.style.left = "0", T.style.right = "0", T.style.overflow = "hidden", () => {
|
|
617
|
+
T.style.position = "", T.style.top = "", T.style.left = "", T.style.right = "", T.style.overflow = "", window.scrollTo(0, p);
|
|
618
618
|
};
|
|
619
|
-
}, []), /* @__PURE__ */ l(oa, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ l("div", { className:
|
|
620
|
-
(u || d) && /* @__PURE__ */
|
|
619
|
+
}, []), /* @__PURE__ */ l(oa, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ l("div", { className: b, children: /* @__PURE__ */ Y("div", { className: E, style: s, children: [
|
|
620
|
+
(u || d) && /* @__PURE__ */ Y("div", { className: V, children: [
|
|
621
621
|
typeof u == "string" ? /* @__PURE__ */ l(Se, { type: "h3", children: u }) : u,
|
|
622
|
-
d && /* @__PURE__ */ l("div", { className:
|
|
622
|
+
d && /* @__PURE__ */ l("div", { className: D, children: typeof d == "string" ? /* @__PURE__ */ l(Se, { children: d }) : d })
|
|
623
623
|
] }),
|
|
624
624
|
a && /* @__PURE__ */ l("div", { className: L, children: a }),
|
|
625
|
-
g && /* @__PURE__ */ l("div", { className:
|
|
625
|
+
g && /* @__PURE__ */ l("div", { className: w, children: g }),
|
|
626
626
|
o && /* @__PURE__ */ l(
|
|
627
627
|
yt,
|
|
628
628
|
{
|
|
629
|
-
classNameRoot:
|
|
629
|
+
classNameRoot: h,
|
|
630
630
|
classNameIconContainerRoot: A,
|
|
631
631
|
onClick: c,
|
|
632
632
|
iconName: re.Close,
|
|
@@ -650,9 +650,9 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
650
650
|
formId: u,
|
|
651
651
|
onClose: d,
|
|
652
652
|
mobile: g = "column",
|
|
653
|
-
align:
|
|
653
|
+
align: b = "right",
|
|
654
654
|
modalAlign: E = "top",
|
|
655
|
-
loading:
|
|
655
|
+
loading: h
|
|
656
656
|
} = e;
|
|
657
657
|
return /* @__PURE__ */ l(
|
|
658
658
|
_a,
|
|
@@ -663,10 +663,10 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
663
663
|
align: E,
|
|
664
664
|
subHeader: o,
|
|
665
665
|
footer: a || s ? /* @__PURE__ */ l(
|
|
666
|
-
|
|
666
|
+
Bo,
|
|
667
667
|
{
|
|
668
668
|
mobile: g,
|
|
669
|
-
align:
|
|
669
|
+
align: b,
|
|
670
670
|
cancelBtnContent: a,
|
|
671
671
|
cancelBtnIconName: r,
|
|
672
672
|
cancelBtnDisabled: i,
|
|
@@ -675,7 +675,7 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
675
675
|
disabled: c,
|
|
676
676
|
onClose: d,
|
|
677
677
|
submit: m,
|
|
678
|
-
loading:
|
|
678
|
+
loading: h
|
|
679
679
|
}
|
|
680
680
|
) : null
|
|
681
681
|
}
|
|
@@ -684,14 +684,14 @@ const sa = "_modalWrapper_ah6vq_43", pa = "_modalWrapper__modal_ah6vq_54", ca =
|
|
|
684
684
|
spContextMenu: va,
|
|
685
685
|
spContextMenu__item: xa,
|
|
686
686
|
spContextMenu__item_deleteItem: ga
|
|
687
|
-
},
|
|
687
|
+
}, Rs = (e) => {
|
|
688
688
|
const { onClickItem: t, options: n, classNameRoot: o } = e, a = _({
|
|
689
689
|
[lt.spContextMenu]: !0,
|
|
690
690
|
...o && { [o]: !0 }
|
|
691
691
|
});
|
|
692
692
|
return /* @__PURE__ */ l("ul", { className: a, children: n == null ? void 0 : n.map((i) => {
|
|
693
693
|
const r = i.key === "delete";
|
|
694
|
-
return /* @__PURE__ */
|
|
694
|
+
return /* @__PURE__ */ Y(
|
|
695
695
|
"li",
|
|
696
696
|
{
|
|
697
697
|
className: _({
|
|
@@ -726,11 +726,11 @@ var Lt;
|
|
|
726
726
|
function ha() {
|
|
727
727
|
if (Lt) return G;
|
|
728
728
|
Lt = 1;
|
|
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,
|
|
730
|
-
function
|
|
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, b = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
730
|
+
function D(p) {
|
|
731
731
|
if (typeof p == "object" && p !== null) {
|
|
732
|
-
var
|
|
733
|
-
switch (
|
|
732
|
+
var T = p.$$typeof;
|
|
733
|
+
switch (T) {
|
|
734
734
|
case t:
|
|
735
735
|
switch (p = p.type, p) {
|
|
736
736
|
case m:
|
|
@@ -745,48 +745,48 @@ function ha() {
|
|
|
745
745
|
case s:
|
|
746
746
|
case u:
|
|
747
747
|
case E:
|
|
748
|
-
case
|
|
748
|
+
case b:
|
|
749
749
|
case r:
|
|
750
750
|
return p;
|
|
751
751
|
default:
|
|
752
|
-
return
|
|
752
|
+
return T;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
case n:
|
|
756
|
-
return
|
|
756
|
+
return T;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
760
|
+
function w(p) {
|
|
761
|
+
return D(p) === c;
|
|
762
762
|
}
|
|
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 =
|
|
764
|
-
return
|
|
765
|
-
}, G.isConcurrentMode =
|
|
766
|
-
return
|
|
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 = b, G.Portal = n, G.Profiler = i, G.StrictMode = a, G.Suspense = d, G.isAsyncMode = function(p) {
|
|
764
|
+
return w(p) || D(p) === m;
|
|
765
|
+
}, G.isConcurrentMode = w, G.isContextConsumer = function(p) {
|
|
766
|
+
return D(p) === s;
|
|
767
767
|
}, G.isContextProvider = function(p) {
|
|
768
|
-
return
|
|
768
|
+
return D(p) === r;
|
|
769
769
|
}, G.isElement = function(p) {
|
|
770
770
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
771
771
|
}, G.isForwardRef = function(p) {
|
|
772
|
-
return
|
|
772
|
+
return D(p) === u;
|
|
773
773
|
}, G.isFragment = function(p) {
|
|
774
|
-
return
|
|
774
|
+
return D(p) === o;
|
|
775
775
|
}, G.isLazy = function(p) {
|
|
776
|
-
return
|
|
776
|
+
return D(p) === E;
|
|
777
777
|
}, G.isMemo = function(p) {
|
|
778
|
-
return
|
|
778
|
+
return D(p) === b;
|
|
779
779
|
}, G.isPortal = function(p) {
|
|
780
|
-
return
|
|
780
|
+
return D(p) === n;
|
|
781
781
|
}, G.isProfiler = function(p) {
|
|
782
|
-
return
|
|
782
|
+
return D(p) === i;
|
|
783
783
|
}, G.isStrictMode = function(p) {
|
|
784
|
-
return
|
|
784
|
+
return D(p) === a;
|
|
785
785
|
}, G.isSuspense = function(p) {
|
|
786
|
-
return
|
|
786
|
+
return D(p) === d;
|
|
787
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 ===
|
|
789
|
-
}, G.typeOf =
|
|
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 === b || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof === A || p.$$typeof === L || p.$$typeof === V || p.$$typeof === h);
|
|
789
|
+
}, G.typeOf = D, G;
|
|
790
790
|
}
|
|
791
791
|
var K = {};
|
|
792
792
|
/** @license React v16.13.1
|
|
@@ -800,12 +800,12 @@ var K = {};
|
|
|
800
800
|
var Pt;
|
|
801
801
|
function ba() {
|
|
802
802
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
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,
|
|
804
|
-
function
|
|
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, b = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
804
|
+
function D(v) {
|
|
805
805
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
806
|
-
v === o || v === c || v === i || v === a || v === d || v === g || typeof v == "object" && v !== null && (v.$$typeof === E || v.$$typeof ===
|
|
806
|
+
v === o || v === c || v === i || v === a || v === d || v === g || typeof v == "object" && v !== null && (v.$$typeof === E || v.$$typeof === b || v.$$typeof === r || v.$$typeof === s || v.$$typeof === u || v.$$typeof === A || v.$$typeof === L || v.$$typeof === V || v.$$typeof === h);
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function w(v) {
|
|
809
809
|
if (typeof v == "object" && v !== null) {
|
|
810
810
|
var fe = v.$$typeof;
|
|
811
811
|
switch (fe) {
|
|
@@ -825,7 +825,7 @@ function ba() {
|
|
|
825
825
|
case s:
|
|
826
826
|
case u:
|
|
827
827
|
case E:
|
|
828
|
-
case
|
|
828
|
+
case b:
|
|
829
829
|
case r:
|
|
830
830
|
return Pe;
|
|
831
831
|
default:
|
|
@@ -837,47 +837,47 @@ function ba() {
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
var p = m,
|
|
841
|
-
function
|
|
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) ||
|
|
840
|
+
var p = m, T = c, P = s, U = r, J = t, ne = u, de = o, ue = E, me = b, $ = n, Z = i, k = a, q = d, X = !1;
|
|
841
|
+
function j(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) || w(v) === m;
|
|
843
843
|
}
|
|
844
844
|
function f(v) {
|
|
845
|
-
return
|
|
845
|
+
return w(v) === c;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
848
|
-
return
|
|
847
|
+
function y(v) {
|
|
848
|
+
return w(v) === s;
|
|
849
849
|
}
|
|
850
850
|
function O(v) {
|
|
851
|
-
return
|
|
851
|
+
return w(v) === r;
|
|
852
852
|
}
|
|
853
853
|
function F(v) {
|
|
854
854
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
855
855
|
}
|
|
856
856
|
function I(v) {
|
|
857
|
-
return
|
|
857
|
+
return w(v) === u;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
859
|
+
function M(v) {
|
|
860
|
+
return w(v) === o;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
862
|
+
function R(v) {
|
|
863
|
+
return w(v) === E;
|
|
864
864
|
}
|
|
865
865
|
function z(v) {
|
|
866
|
-
return
|
|
866
|
+
return w(v) === b;
|
|
867
867
|
}
|
|
868
868
|
function W(v) {
|
|
869
|
-
return
|
|
869
|
+
return w(v) === n;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
return
|
|
871
|
+
function H(v) {
|
|
872
|
+
return w(v) === i;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
return
|
|
874
|
+
function B(v) {
|
|
875
|
+
return w(v) === a;
|
|
876
876
|
}
|
|
877
877
|
function te(v) {
|
|
878
|
-
return
|
|
878
|
+
return w(v) === d;
|
|
879
879
|
}
|
|
880
|
-
K.AsyncMode = p, K.ConcurrentMode =
|
|
880
|
+
K.AsyncMode = p, K.ConcurrentMode = T, K.ContextConsumer = P, K.ContextProvider = U, K.Element = J, K.ForwardRef = ne, K.Fragment = de, K.Lazy = ue, K.Memo = me, K.Portal = $, K.Profiler = Z, K.StrictMode = k, K.Suspense = q, K.isAsyncMode = j, K.isConcurrentMode = f, K.isContextConsumer = y, K.isContextProvider = O, K.isElement = F, K.isForwardRef = I, K.isFragment = M, K.isLazy = R, K.isMemo = z, K.isPortal = W, K.isProfiler = H, K.isStrictMode = B, K.isSuspense = te, K.isValidElementType = D, K.typeOf = w;
|
|
881
881
|
}()), K;
|
|
882
882
|
}
|
|
883
883
|
var Ft;
|
|
@@ -935,16 +935,16 @@ function ya() {
|
|
|
935
935
|
return m;
|
|
936
936
|
}, dt;
|
|
937
937
|
}
|
|
938
|
-
var ut,
|
|
938
|
+
var ut, Bt;
|
|
939
939
|
function Nt() {
|
|
940
|
-
if (
|
|
941
|
-
|
|
940
|
+
if (Bt) return ut;
|
|
941
|
+
Bt = 1;
|
|
942
942
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
943
943
|
return ut = e, ut;
|
|
944
944
|
}
|
|
945
|
-
var mt,
|
|
945
|
+
var mt, Mt;
|
|
946
946
|
function gn() {
|
|
947
|
-
return
|
|
947
|
+
return Mt || (Mt = 1, mt = Function.call.bind(Object.prototype.hasOwnProperty)), mt;
|
|
948
948
|
}
|
|
949
949
|
var ft, Wt;
|
|
950
950
|
function wa() {
|
|
@@ -983,9 +983,9 @@ function wa() {
|
|
|
983
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
984
|
), d instanceof Error && !(d.message in n)) {
|
|
985
985
|
n[d.message] = !0;
|
|
986
|
-
var
|
|
986
|
+
var b = c ? c() : "";
|
|
987
987
|
e(
|
|
988
|
-
"Failed " + s + " type: " + d.message + (
|
|
988
|
+
"Failed " + s + " type: " + d.message + (b ?? "")
|
|
989
989
|
);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
@@ -1015,11 +1015,11 @@ function ka() {
|
|
|
1015
1015
|
return _t = function(s, m) {
|
|
1016
1016
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1017
1017
|
function d(f) {
|
|
1018
|
-
var
|
|
1019
|
-
if (typeof
|
|
1020
|
-
return
|
|
1018
|
+
var y = f && (c && f[c] || f[u]);
|
|
1019
|
+
if (typeof y == "function")
|
|
1020
|
+
return y;
|
|
1021
1021
|
}
|
|
1022
|
-
var g = "<<anonymous>>",
|
|
1022
|
+
var g = "<<anonymous>>", b = {
|
|
1023
1023
|
array: L("array"),
|
|
1024
1024
|
bigint: L("bigint"),
|
|
1025
1025
|
bool: L("boolean"),
|
|
@@ -1028,11 +1028,11 @@ function ka() {
|
|
|
1028
1028
|
object: L("object"),
|
|
1029
1029
|
string: L("string"),
|
|
1030
1030
|
symbol: L("symbol"),
|
|
1031
|
-
any:
|
|
1032
|
-
arrayOf:
|
|
1033
|
-
element:
|
|
1031
|
+
any: V(),
|
|
1032
|
+
arrayOf: D,
|
|
1033
|
+
element: w(),
|
|
1034
1034
|
elementType: p(),
|
|
1035
|
-
instanceOf:
|
|
1035
|
+
instanceOf: T,
|
|
1036
1036
|
node: ne(),
|
|
1037
1037
|
objectOf: U,
|
|
1038
1038
|
oneOf: P,
|
|
@@ -1040,18 +1040,18 @@ function ka() {
|
|
|
1040
1040
|
shape: ue,
|
|
1041
1041
|
exact: me
|
|
1042
1042
|
};
|
|
1043
|
-
function E(f,
|
|
1044
|
-
return f ===
|
|
1043
|
+
function E(f, y) {
|
|
1044
|
+
return f === y ? f !== 0 || 1 / f === 1 / y : f !== f && y !== y;
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
this.message = f, this.data =
|
|
1046
|
+
function h(f, y) {
|
|
1047
|
+
this.message = f, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
h.prototype = Error.prototype;
|
|
1050
1050
|
function A(f) {
|
|
1051
1051
|
if (process.env.NODE_ENV !== "production")
|
|
1052
|
-
var
|
|
1053
|
-
function F(
|
|
1054
|
-
if (W = W || g,
|
|
1052
|
+
var y = {}, O = 0;
|
|
1053
|
+
function F(M, R, z, W, H, B, te) {
|
|
1054
|
+
if (W = W || g, B = B || z, te !== n) {
|
|
1055
1055
|
if (m) {
|
|
1056
1056
|
var v = new Error(
|
|
1057
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"
|
|
@@ -1059,192 +1059,192 @@ function ka() {
|
|
|
1059
1059
|
throw v.name = "Invariant Violation", v;
|
|
1060
1060
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1061
1061
|
var fe = W + ":" + z;
|
|
1062
|
-
!
|
|
1062
|
+
!y[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1063
1063
|
O < 3 && (i(
|
|
1064
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1065
|
-
),
|
|
1064
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` 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."
|
|
1065
|
+
), y[fe] = !0, O++);
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1068
|
+
return R[z] == null ? M ? R[z] === null ? new h("The " + H + " `" + B + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new h("The " + H + " `" + B + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : f(R, z, W, H, B);
|
|
1069
1069
|
}
|
|
1070
1070
|
var I = F.bind(null, !1);
|
|
1071
1071
|
return I.isRequired = F.bind(null, !0), I;
|
|
1072
1072
|
}
|
|
1073
1073
|
function L(f) {
|
|
1074
|
-
function
|
|
1075
|
-
var W = O[F],
|
|
1076
|
-
if (
|
|
1077
|
-
var
|
|
1078
|
-
return new
|
|
1079
|
-
"Invalid " +
|
|
1074
|
+
function y(O, F, I, M, R, z) {
|
|
1075
|
+
var W = O[F], H = k(W);
|
|
1076
|
+
if (H !== f) {
|
|
1077
|
+
var B = q(W);
|
|
1078
|
+
return new h(
|
|
1079
|
+
"Invalid " + M + " `" + R + "` of type " + ("`" + B + "` supplied to `" + I + "`, expected ") + ("`" + f + "`."),
|
|
1080
1080
|
{ expectedType: f }
|
|
1081
1081
|
);
|
|
1082
1082
|
}
|
|
1083
1083
|
return null;
|
|
1084
1084
|
}
|
|
1085
|
-
return A(
|
|
1085
|
+
return A(y);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function V() {
|
|
1088
1088
|
return A(r);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
function
|
|
1090
|
+
function D(f) {
|
|
1091
|
+
function y(O, F, I, M, R) {
|
|
1092
1092
|
if (typeof f != "function")
|
|
1093
|
-
return new
|
|
1093
|
+
return new h("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1094
1094
|
var z = O[F];
|
|
1095
1095
|
if (!Array.isArray(z)) {
|
|
1096
|
-
var W =
|
|
1097
|
-
return new
|
|
1096
|
+
var W = k(z);
|
|
1097
|
+
return new h("Invalid " + M + " `" + R + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an array."));
|
|
1098
1098
|
}
|
|
1099
|
-
for (var
|
|
1100
|
-
var
|
|
1101
|
-
if (
|
|
1102
|
-
return
|
|
1099
|
+
for (var H = 0; H < z.length; H++) {
|
|
1100
|
+
var B = f(z, H, I, M, R + "[" + H + "]", n);
|
|
1101
|
+
if (B instanceof Error)
|
|
1102
|
+
return B;
|
|
1103
1103
|
}
|
|
1104
1104
|
return null;
|
|
1105
1105
|
}
|
|
1106
|
-
return A(
|
|
1106
|
+
return A(y);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
function f(
|
|
1110
|
-
var
|
|
1111
|
-
if (!s(
|
|
1112
|
-
var z =
|
|
1113
|
-
return new
|
|
1108
|
+
function w() {
|
|
1109
|
+
function f(y, O, F, I, M) {
|
|
1110
|
+
var R = y[O];
|
|
1111
|
+
if (!s(R)) {
|
|
1112
|
+
var z = k(R);
|
|
1113
|
+
return new h("Invalid " + I + " `" + M + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement."));
|
|
1114
1114
|
}
|
|
1115
1115
|
return null;
|
|
1116
1116
|
}
|
|
1117
1117
|
return A(f);
|
|
1118
1118
|
}
|
|
1119
1119
|
function p() {
|
|
1120
|
-
function f(
|
|
1121
|
-
var
|
|
1122
|
-
if (!e.isValidElementType(
|
|
1123
|
-
var z =
|
|
1124
|
-
return new
|
|
1120
|
+
function f(y, O, F, I, M) {
|
|
1121
|
+
var R = y[O];
|
|
1122
|
+
if (!e.isValidElementType(R)) {
|
|
1123
|
+
var z = k(R);
|
|
1124
|
+
return new h("Invalid " + I + " `" + M + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected a single ReactElement type."));
|
|
1125
1125
|
}
|
|
1126
1126
|
return null;
|
|
1127
1127
|
}
|
|
1128
1128
|
return A(f);
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
function
|
|
1130
|
+
function T(f) {
|
|
1131
|
+
function y(O, F, I, M, R) {
|
|
1132
1132
|
if (!(O[F] instanceof f)) {
|
|
1133
|
-
var z = f.name || g, W =
|
|
1134
|
-
return new
|
|
1133
|
+
var z = f.name || g, W = j(O[F]);
|
|
1134
|
+
return new h("Invalid " + M + " `" + R + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("instance of `" + z + "`."));
|
|
1135
1135
|
}
|
|
1136
1136
|
return null;
|
|
1137
1137
|
}
|
|
1138
|
-
return A(
|
|
1138
|
+
return A(y);
|
|
1139
1139
|
}
|
|
1140
1140
|
function P(f) {
|
|
1141
1141
|
if (!Array.isArray(f))
|
|
1142
1142
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1143
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])."
|
|
1144
1144
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1145
|
-
function
|
|
1145
|
+
function y(O, F, I, M, R) {
|
|
1146
1146
|
for (var z = O[F], W = 0; W < f.length; W++)
|
|
1147
1147
|
if (E(z, f[W]))
|
|
1148
1148
|
return null;
|
|
1149
|
-
var
|
|
1150
|
-
var fe =
|
|
1149
|
+
var H = JSON.stringify(f, function(te, v) {
|
|
1150
|
+
var fe = q(v);
|
|
1151
1151
|
return fe === "symbol" ? String(v) : v;
|
|
1152
1152
|
});
|
|
1153
|
-
return new
|
|
1153
|
+
return new h("Invalid " + M + " `" + R + "` of value `" + String(z) + "` " + ("supplied to `" + I + "`, expected one of " + H + "."));
|
|
1154
1154
|
}
|
|
1155
|
-
return A(
|
|
1155
|
+
return A(y);
|
|
1156
1156
|
}
|
|
1157
1157
|
function U(f) {
|
|
1158
|
-
function
|
|
1158
|
+
function y(O, F, I, M, R) {
|
|
1159
1159
|
if (typeof f != "function")
|
|
1160
|
-
return new
|
|
1161
|
-
var z = O[F], W =
|
|
1160
|
+
return new h("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1161
|
+
var z = O[F], W = k(z);
|
|
1162
1162
|
if (W !== "object")
|
|
1163
|
-
return new
|
|
1164
|
-
for (var
|
|
1165
|
-
if (o(z,
|
|
1166
|
-
var
|
|
1167
|
-
if (
|
|
1168
|
-
return
|
|
1163
|
+
return new h("Invalid " + M + " `" + R + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an object."));
|
|
1164
|
+
for (var H in z)
|
|
1165
|
+
if (o(z, H)) {
|
|
1166
|
+
var B = f(z, H, I, M, R + "." + H, n);
|
|
1167
|
+
if (B instanceof Error)
|
|
1168
|
+
return B;
|
|
1169
1169
|
}
|
|
1170
1170
|
return null;
|
|
1171
1171
|
}
|
|
1172
|
-
return A(
|
|
1172
|
+
return A(y);
|
|
1173
1173
|
}
|
|
1174
1174
|
function J(f) {
|
|
1175
1175
|
if (!Array.isArray(f))
|
|
1176
1176
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1177
|
-
for (var
|
|
1178
|
-
var O = f[
|
|
1177
|
+
for (var y = 0; y < f.length; y++) {
|
|
1178
|
+
var O = f[y];
|
|
1179
1179
|
if (typeof O != "function")
|
|
1180
1180
|
return i(
|
|
1181
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(O) + " at index " +
|
|
1181
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(O) + " at index " + y + "."
|
|
1182
1182
|
), r;
|
|
1183
1183
|
}
|
|
1184
|
-
function F(I,
|
|
1185
|
-
for (var
|
|
1186
|
-
var te = f[
|
|
1184
|
+
function F(I, M, R, z, W) {
|
|
1185
|
+
for (var H = [], B = 0; B < f.length; B++) {
|
|
1186
|
+
var te = f[B], v = te(I, M, R, z, W, n);
|
|
1187
1187
|
if (v == null)
|
|
1188
1188
|
return null;
|
|
1189
|
-
v.data && o(v.data, "expectedType") &&
|
|
1189
|
+
v.data && o(v.data, "expectedType") && H.push(v.data.expectedType);
|
|
1190
1190
|
}
|
|
1191
|
-
var fe =
|
|
1192
|
-
return new
|
|
1191
|
+
var fe = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
1192
|
+
return new h("Invalid " + z + " `" + W + "` supplied to " + ("`" + R + "`" + fe + "."));
|
|
1193
1193
|
}
|
|
1194
1194
|
return A(F);
|
|
1195
1195
|
}
|
|
1196
1196
|
function ne() {
|
|
1197
|
-
function f(
|
|
1198
|
-
return
|
|
1197
|
+
function f(y, O, F, I, M) {
|
|
1198
|
+
return $(y[O]) ? null : new h("Invalid " + I + " `" + M + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
1199
1199
|
}
|
|
1200
1200
|
return A(f);
|
|
1201
1201
|
}
|
|
1202
|
-
function de(f,
|
|
1203
|
-
return new
|
|
1204
|
-
(f || "React class") + ": " +
|
|
1202
|
+
function de(f, y, O, F, I) {
|
|
1203
|
+
return new h(
|
|
1204
|
+
(f || "React class") + ": " + y + " type `" + O + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1205
1205
|
);
|
|
1206
1206
|
}
|
|
1207
1207
|
function ue(f) {
|
|
1208
|
-
function
|
|
1209
|
-
var z = O[F], W =
|
|
1208
|
+
function y(O, F, I, M, R) {
|
|
1209
|
+
var z = O[F], W = k(z);
|
|
1210
1210
|
if (W !== "object")
|
|
1211
|
-
return new
|
|
1212
|
-
for (var
|
|
1213
|
-
var
|
|
1214
|
-
if (typeof
|
|
1215
|
-
return de(I,
|
|
1216
|
-
var te =
|
|
1211
|
+
return new h("Invalid " + M + " `" + R + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1212
|
+
for (var H in f) {
|
|
1213
|
+
var B = f[H];
|
|
1214
|
+
if (typeof B != "function")
|
|
1215
|
+
return de(I, M, R, H, q(B));
|
|
1216
|
+
var te = B(z, H, I, M, R + "." + H, n);
|
|
1217
1217
|
if (te)
|
|
1218
1218
|
return te;
|
|
1219
1219
|
}
|
|
1220
1220
|
return null;
|
|
1221
1221
|
}
|
|
1222
|
-
return A(
|
|
1222
|
+
return A(y);
|
|
1223
1223
|
}
|
|
1224
1224
|
function me(f) {
|
|
1225
|
-
function
|
|
1226
|
-
var z = O[F], W =
|
|
1225
|
+
function y(O, F, I, M, R) {
|
|
1226
|
+
var z = O[F], W = k(z);
|
|
1227
1227
|
if (W !== "object")
|
|
1228
|
-
return new
|
|
1229
|
-
var
|
|
1230
|
-
for (var
|
|
1231
|
-
var te = f[
|
|
1232
|
-
if (o(f,
|
|
1233
|
-
return de(I,
|
|
1228
|
+
return new h("Invalid " + M + " `" + R + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1229
|
+
var H = t({}, O[F], f);
|
|
1230
|
+
for (var B in H) {
|
|
1231
|
+
var te = f[B];
|
|
1232
|
+
if (o(f, B) && typeof te != "function")
|
|
1233
|
+
return de(I, M, R, B, q(te));
|
|
1234
1234
|
if (!te)
|
|
1235
|
-
return new
|
|
1236
|
-
"Invalid " +
|
|
1235
|
+
return new h(
|
|
1236
|
+
"Invalid " + M + " `" + R + "` key `" + B + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(O[F], null, " ") + `
|
|
1237
1237
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1238
1238
|
);
|
|
1239
|
-
var v = te(z,
|
|
1239
|
+
var v = te(z, B, I, M, R + "." + B, n);
|
|
1240
1240
|
if (v)
|
|
1241
1241
|
return v;
|
|
1242
1242
|
}
|
|
1243
1243
|
return null;
|
|
1244
1244
|
}
|
|
1245
|
-
return A(
|
|
1245
|
+
return A(y);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function $(f) {
|
|
1248
1248
|
switch (typeof f) {
|
|
1249
1249
|
case "number":
|
|
1250
1250
|
case "string":
|
|
@@ -1254,20 +1254,20 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1254
1254
|
return !f;
|
|
1255
1255
|
case "object":
|
|
1256
1256
|
if (Array.isArray(f))
|
|
1257
|
-
return f.every(
|
|
1257
|
+
return f.every($);
|
|
1258
1258
|
if (f === null || s(f))
|
|
1259
1259
|
return !0;
|
|
1260
|
-
var
|
|
1261
|
-
if (
|
|
1262
|
-
var O =
|
|
1263
|
-
if (
|
|
1260
|
+
var y = d(f);
|
|
1261
|
+
if (y) {
|
|
1262
|
+
var O = y.call(f), F;
|
|
1263
|
+
if (y !== f.entries) {
|
|
1264
1264
|
for (; !(F = O.next()).done; )
|
|
1265
|
-
if (
|
|
1265
|
+
if (!$(F.value))
|
|
1266
1266
|
return !1;
|
|
1267
1267
|
} else
|
|
1268
1268
|
for (; !(F = O.next()).done; ) {
|
|
1269
1269
|
var I = F.value;
|
|
1270
|
-
if (I &&
|
|
1270
|
+
if (I && !$(I[1]))
|
|
1271
1271
|
return !1;
|
|
1272
1272
|
}
|
|
1273
1273
|
} else
|
|
@@ -1277,43 +1277,43 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1277
1277
|
return !1;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
function Z(f,
|
|
1281
|
-
return f === "symbol" ? !0 :
|
|
1280
|
+
function Z(f, y) {
|
|
1281
|
+
return f === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
var
|
|
1285
|
-
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Z(
|
|
1283
|
+
function k(f) {
|
|
1284
|
+
var y = typeof f;
|
|
1285
|
+
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Z(y, f) ? "symbol" : y;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function q(f) {
|
|
1288
1288
|
if (typeof f > "u" || f === null)
|
|
1289
1289
|
return "" + f;
|
|
1290
|
-
var
|
|
1291
|
-
if (
|
|
1290
|
+
var y = k(f);
|
|
1291
|
+
if (y === "object") {
|
|
1292
1292
|
if (f instanceof Date)
|
|
1293
1293
|
return "date";
|
|
1294
1294
|
if (f instanceof RegExp)
|
|
1295
1295
|
return "regexp";
|
|
1296
1296
|
}
|
|
1297
|
-
return
|
|
1297
|
+
return y;
|
|
1298
1298
|
}
|
|
1299
1299
|
function X(f) {
|
|
1300
|
-
var
|
|
1301
|
-
switch (
|
|
1300
|
+
var y = q(f);
|
|
1301
|
+
switch (y) {
|
|
1302
1302
|
case "array":
|
|
1303
1303
|
case "object":
|
|
1304
|
-
return "an " +
|
|
1304
|
+
return "an " + y;
|
|
1305
1305
|
case "boolean":
|
|
1306
1306
|
case "date":
|
|
1307
1307
|
case "regexp":
|
|
1308
|
-
return "a " +
|
|
1308
|
+
return "a " + y;
|
|
1309
1309
|
default:
|
|
1310
|
-
return
|
|
1310
|
+
return y;
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function j(f) {
|
|
1314
1314
|
return !f.constructor || !f.constructor.name ? g : f.constructor.name;
|
|
1315
1315
|
}
|
|
1316
|
-
return
|
|
1316
|
+
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
1317
1317
|
}, _t;
|
|
1318
1318
|
}
|
|
1319
1319
|
var vt, $t;
|
|
@@ -1370,8 +1370,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1370
1370
|
} else
|
|
1371
1371
|
wt.exports = Ca()();
|
|
1372
1372
|
var Sa = wt.exports;
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1373
|
+
const C = /* @__PURE__ */ vn(Sa);
|
|
1374
|
+
function Re(e, t, n, o) {
|
|
1375
1375
|
function a(i) {
|
|
1376
1376
|
return i instanceof n ? i : new n(function(r) {
|
|
1377
1377
|
r(i);
|
|
@@ -2633,12 +2633,12 @@ const ja = [
|
|
|
2633
2633
|
"Thumbs.db"
|
|
2634
2634
|
// Windows
|
|
2635
2635
|
];
|
|
2636
|
-
function
|
|
2637
|
-
return
|
|
2638
|
-
return Ke(e) &&
|
|
2636
|
+
function Ra(e) {
|
|
2637
|
+
return Re(this, void 0, void 0, function* () {
|
|
2638
|
+
return Ke(e) && Aa(e.dataTransfer) ? Pa(e.dataTransfer, e.type) : Da(e) ? Oa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? La(e) : [];
|
|
2639
2639
|
});
|
|
2640
2640
|
}
|
|
2641
|
-
function
|
|
2641
|
+
function Aa(e) {
|
|
2642
2642
|
return Ke(e);
|
|
2643
2643
|
}
|
|
2644
2644
|
function Da(e) {
|
|
@@ -2651,12 +2651,12 @@ function Oa(e) {
|
|
|
2651
2651
|
return kt(e.target.files).map((t) => Le(t));
|
|
2652
2652
|
}
|
|
2653
2653
|
function La(e) {
|
|
2654
|
-
return
|
|
2654
|
+
return Re(this, void 0, void 0, function* () {
|
|
2655
2655
|
return (yield Promise.all(e.map((n) => n.getFile()))).map((n) => Le(n));
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
2658
2658
|
function Pa(e, t) {
|
|
2659
|
-
return
|
|
2659
|
+
return Re(this, void 0, void 0, function* () {
|
|
2660
2660
|
if (e.items) {
|
|
2661
2661
|
const n = kt(e.items).filter((a) => a.kind === "file");
|
|
2662
2662
|
if (t !== "drop")
|
|
@@ -2693,7 +2693,7 @@ function hn(e) {
|
|
|
2693
2693
|
], []);
|
|
2694
2694
|
}
|
|
2695
2695
|
function Vt(e, t) {
|
|
2696
|
-
return
|
|
2696
|
+
return Re(this, void 0, void 0, function* () {
|
|
2697
2697
|
var n;
|
|
2698
2698
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2699
2699
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -2711,8 +2711,8 @@ function Vt(e, t) {
|
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
2713
|
function za(e) {
|
|
2714
|
-
return
|
|
2715
|
-
return e.isDirectory ? bn(e) :
|
|
2714
|
+
return Re(this, void 0, void 0, function* () {
|
|
2715
|
+
return e.isDirectory ? bn(e) : Ba(e);
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
2718
2718
|
function bn(e) {
|
|
@@ -2720,7 +2720,7 @@ function bn(e) {
|
|
|
2720
2720
|
return new Promise((n, o) => {
|
|
2721
2721
|
const a = [];
|
|
2722
2722
|
function i() {
|
|
2723
|
-
t.readEntries((r) =>
|
|
2723
|
+
t.readEntries((r) => Re(this, void 0, void 0, function* () {
|
|
2724
2724
|
if (r.length) {
|
|
2725
2725
|
const s = Promise.all(r.map(za));
|
|
2726
2726
|
a.push(s), i();
|
|
@@ -2738,8 +2738,8 @@ function bn(e) {
|
|
|
2738
2738
|
i();
|
|
2739
2739
|
});
|
|
2740
2740
|
}
|
|
2741
|
-
function
|
|
2742
|
-
return
|
|
2741
|
+
function Ba(e) {
|
|
2742
|
+
return Re(this, void 0, void 0, function* () {
|
|
2743
2743
|
return new Promise((t, n) => {
|
|
2744
2744
|
e.file((o) => {
|
|
2745
2745
|
const a = Le(o, e.fullPath);
|
|
@@ -2764,9 +2764,9 @@ var xt = function(e, t) {
|
|
|
2764
2764
|
return !0;
|
|
2765
2765
|
};
|
|
2766
2766
|
function Ut(e) {
|
|
2767
|
-
return qa(e) || Wa(e) || wn(e) ||
|
|
2767
|
+
return qa(e) || Wa(e) || wn(e) || Ma();
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function Ma() {
|
|
2770
2770
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2771
2771
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2772
2772
|
}
|
|
@@ -2800,7 +2800,7 @@ function Kt(e) {
|
|
|
2800
2800
|
function yn(e, t, n) {
|
|
2801
2801
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function Me(e, t) {
|
|
2804
2804
|
return Ya(e) || Ha(e, t) || wn(e, t) || $a();
|
|
2805
2805
|
}
|
|
2806
2806
|
function $a() {
|
|
@@ -2884,8 +2884,8 @@ function je(e) {
|
|
|
2884
2884
|
function Ja(e) {
|
|
2885
2885
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2886
2886
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(m) {
|
|
2887
|
-
var c = kn(m, n), u =
|
|
2888
|
-
return d && E && !
|
|
2887
|
+
var c = kn(m, n), u = Me(c, 1), d = u[0], g = Cn(m, o, a), b = Me(g, 1), E = b[0], h = s ? s(m) : null;
|
|
2888
|
+
return d && E && !h;
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
2891
|
function Xe(e) {
|
|
@@ -2926,10 +2926,10 @@ function oi() {
|
|
|
2926
2926
|
function ai(e) {
|
|
2927
2927
|
if (je(e)) {
|
|
2928
2928
|
var t = Object.entries(e).filter(function(n) {
|
|
2929
|
-
var o =
|
|
2929
|
+
var o = Me(n, 2), a = o[0], i = o[1], r = !0;
|
|
2930
2930
|
return Tn(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(En)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2931
2931
|
}).reduce(function(n, o) {
|
|
2932
|
-
var a =
|
|
2932
|
+
var a = Me(o, 2), i = a[0], r = a[1];
|
|
2933
2933
|
return Kt(Kt({}, n), {}, yn({}, i, r));
|
|
2934
2934
|
}, {});
|
|
2935
2935
|
return [{
|
|
@@ -2943,7 +2943,7 @@ function ai(e) {
|
|
|
2943
2943
|
function ii(e) {
|
|
2944
2944
|
if (je(e))
|
|
2945
2945
|
return Object.entries(e).reduce(function(t, n) {
|
|
2946
|
-
var o =
|
|
2946
|
+
var o = Me(n, 2), a = o[0], i = o[1];
|
|
2947
2947
|
return [].concat(Ut(t), [a], Ut(i));
|
|
2948
2948
|
}, []).filter(function(t) {
|
|
2949
2949
|
return Tn(t) || En(t);
|
|
@@ -3061,18 +3061,18 @@ function hi(e, t) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
var Je = /* @__PURE__ */ zn(function(e, t) {
|
|
3063
3063
|
var n = e.children, o = Ze(e, pi), a = bi(o), i = a.open, r = Ze(a, ci);
|
|
3064
|
-
return
|
|
3064
|
+
return Bn(t, function() {
|
|
3065
3065
|
return {
|
|
3066
3066
|
open: i
|
|
3067
3067
|
};
|
|
3068
|
-
}, [i]), /* @__PURE__ */ We.createElement(
|
|
3068
|
+
}, [i]), /* @__PURE__ */ We.createElement(Mn, null, n(Q(Q({}, r), {}, {
|
|
3069
3069
|
open: i
|
|
3070
3070
|
})));
|
|
3071
3071
|
});
|
|
3072
3072
|
Je.displayName = "Dropzone";
|
|
3073
3073
|
var In = {
|
|
3074
3074
|
disabled: !1,
|
|
3075
|
-
getFilesFromEvent:
|
|
3075
|
+
getFilesFromEvent: Ra,
|
|
3076
3076
|
maxSize: 1 / 0,
|
|
3077
3077
|
minSize: 0,
|
|
3078
3078
|
multiple: !0,
|
|
@@ -3103,7 +3103,7 @@ Je.propTypes = {
|
|
|
3103
3103
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3104
3104
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3105
3105
|
*/
|
|
3106
|
-
children:
|
|
3106
|
+
children: C.func,
|
|
3107
3107
|
/**
|
|
3108
3108
|
* Set accepted file types.
|
|
3109
3109
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3111,90 +3111,90 @@ Je.propTypes = {
|
|
|
3111
3111
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3112
3112
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3113
3113
|
*/
|
|
3114
|
-
accept:
|
|
3114
|
+
accept: C.objectOf(C.arrayOf(C.string)),
|
|
3115
3115
|
/**
|
|
3116
3116
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3117
3117
|
*/
|
|
3118
|
-
multiple:
|
|
3118
|
+
multiple: C.bool,
|
|
3119
3119
|
/**
|
|
3120
3120
|
* If false, allow dropped items to take over the current browser window
|
|
3121
3121
|
*/
|
|
3122
|
-
preventDropOnDocument:
|
|
3122
|
+
preventDropOnDocument: C.bool,
|
|
3123
3123
|
/**
|
|
3124
3124
|
* If true, disables click to open the native file selection dialog
|
|
3125
3125
|
*/
|
|
3126
|
-
noClick:
|
|
3126
|
+
noClick: C.bool,
|
|
3127
3127
|
/**
|
|
3128
3128
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3129
3129
|
* Note that it also stops tracking the focus state.
|
|
3130
3130
|
*/
|
|
3131
|
-
noKeyboard:
|
|
3131
|
+
noKeyboard: C.bool,
|
|
3132
3132
|
/**
|
|
3133
3133
|
* If true, disables drag 'n' drop
|
|
3134
3134
|
*/
|
|
3135
|
-
noDrag:
|
|
3135
|
+
noDrag: C.bool,
|
|
3136
3136
|
/**
|
|
3137
3137
|
* If true, stops drag event propagation to parents
|
|
3138
3138
|
*/
|
|
3139
|
-
noDragEventsBubbling:
|
|
3139
|
+
noDragEventsBubbling: C.bool,
|
|
3140
3140
|
/**
|
|
3141
3141
|
* Minimum file size (in bytes)
|
|
3142
3142
|
*/
|
|
3143
|
-
minSize:
|
|
3143
|
+
minSize: C.number,
|
|
3144
3144
|
/**
|
|
3145
3145
|
* Maximum file size (in bytes)
|
|
3146
3146
|
*/
|
|
3147
|
-
maxSize:
|
|
3147
|
+
maxSize: C.number,
|
|
3148
3148
|
/**
|
|
3149
3149
|
* Maximum accepted number of files
|
|
3150
3150
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3151
3151
|
*/
|
|
3152
|
-
maxFiles:
|
|
3152
|
+
maxFiles: C.number,
|
|
3153
3153
|
/**
|
|
3154
3154
|
* Enable/disable the dropzone
|
|
3155
3155
|
*/
|
|
3156
|
-
disabled:
|
|
3156
|
+
disabled: C.bool,
|
|
3157
3157
|
/**
|
|
3158
3158
|
* Use this to provide a custom file aggregator
|
|
3159
3159
|
*
|
|
3160
3160
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3161
3161
|
*/
|
|
3162
|
-
getFilesFromEvent:
|
|
3162
|
+
getFilesFromEvent: C.func,
|
|
3163
3163
|
/**
|
|
3164
3164
|
* Cb for when closing the file dialog with no selection
|
|
3165
3165
|
*/
|
|
3166
|
-
onFileDialogCancel:
|
|
3166
|
+
onFileDialogCancel: C.func,
|
|
3167
3167
|
/**
|
|
3168
3168
|
* Cb for when opening the file dialog
|
|
3169
3169
|
*/
|
|
3170
|
-
onFileDialogOpen:
|
|
3170
|
+
onFileDialogOpen: C.func,
|
|
3171
3171
|
/**
|
|
3172
3172
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3173
3173
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3174
3174
|
*/
|
|
3175
|
-
useFsAccessApi:
|
|
3175
|
+
useFsAccessApi: C.bool,
|
|
3176
3176
|
/**
|
|
3177
3177
|
* Set to true to focus the root element on render
|
|
3178
3178
|
*/
|
|
3179
|
-
autoFocus:
|
|
3179
|
+
autoFocus: C.bool,
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Cb for when the `dragenter` event occurs.
|
|
3182
3182
|
*
|
|
3183
3183
|
* @param {DragEvent} event
|
|
3184
3184
|
*/
|
|
3185
|
-
onDragEnter:
|
|
3185
|
+
onDragEnter: C.func,
|
|
3186
3186
|
/**
|
|
3187
3187
|
* Cb for when the `dragleave` event occurs
|
|
3188
3188
|
*
|
|
3189
3189
|
* @param {DragEvent} event
|
|
3190
3190
|
*/
|
|
3191
|
-
onDragLeave:
|
|
3191
|
+
onDragLeave: C.func,
|
|
3192
3192
|
/**
|
|
3193
3193
|
* Cb for when the `dragover` event occurs
|
|
3194
3194
|
*
|
|
3195
3195
|
* @param {DragEvent} event
|
|
3196
3196
|
*/
|
|
3197
|
-
onDragOver:
|
|
3197
|
+
onDragOver: C.func,
|
|
3198
3198
|
/**
|
|
3199
3199
|
* Cb for when the `drop` event occurs.
|
|
3200
3200
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3225,7 +3225,7 @@ Je.propTypes = {
|
|
|
3225
3225
|
* @param {FileRejection[]} fileRejections
|
|
3226
3226
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3227
3227
|
*/
|
|
3228
|
-
onDrop:
|
|
3228
|
+
onDrop: C.func,
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Cb for when the `drop` event occurs.
|
|
3231
3231
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3233,7 +3233,7 @@ Je.propTypes = {
|
|
|
3233
3233
|
* @param {File[]} files
|
|
3234
3234
|
* @param {(DragEvent|Event)} event
|
|
3235
3235
|
*/
|
|
3236
|
-
onDropAccepted:
|
|
3236
|
+
onDropAccepted: C.func,
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Cb for when the `drop` event occurs.
|
|
3239
3239
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3241,19 +3241,19 @@ Je.propTypes = {
|
|
|
3241
3241
|
* @param {FileRejection[]} fileRejections
|
|
3242
3242
|
* @param {(DragEvent|Event)} event
|
|
3243
3243
|
*/
|
|
3244
|
-
onDropRejected:
|
|
3244
|
+
onDropRejected: C.func,
|
|
3245
3245
|
/**
|
|
3246
3246
|
* Cb for when there's some error from any of the promises.
|
|
3247
3247
|
*
|
|
3248
3248
|
* @param {Error} error
|
|
3249
3249
|
*/
|
|
3250
|
-
onError:
|
|
3250
|
+
onError: C.func,
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Custom validation function. It must return null if there's no errors.
|
|
3253
3253
|
* @param {File} file
|
|
3254
3254
|
* @returns {FileError|FileError[]|null}
|
|
3255
3255
|
*/
|
|
3256
|
-
validator:
|
|
3256
|
+
validator: C.func
|
|
3257
3257
|
};
|
|
3258
3258
|
var St = {
|
|
3259
3259
|
isFocused: !1,
|
|
@@ -3265,19 +3265,19 @@ var St = {
|
|
|
3265
3265
|
fileRejections: []
|
|
3266
3266
|
};
|
|
3267
3267
|
function bi() {
|
|
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,
|
|
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, b = t.onDropAccepted, E = t.onDropRejected, h = t.onFileDialogCancel, A = t.onFileDialogOpen, L = t.useFsAccessApi, V = t.autoFocus, D = t.preventDropOnDocument, w = t.noClick, p = t.noKeyboard, T = t.noDrag, P = t.noDragEventsBubbling, U = t.onError, J = t.validator, ne = Oe(function() {
|
|
3269
3269
|
return ii(n);
|
|
3270
3270
|
}, [n]), de = Oe(function() {
|
|
3271
3271
|
return ai(n);
|
|
3272
3272
|
}, [n]), ue = Oe(function() {
|
|
3273
3273
|
return typeof A == "function" ? A : en;
|
|
3274
3274
|
}, [A]), me = Oe(function() {
|
|
3275
|
-
return typeof
|
|
3276
|
-
}, [
|
|
3277
|
-
!O.current &&
|
|
3275
|
+
return typeof h == "function" ? h : en;
|
|
3276
|
+
}, [h]), $ = Te(null), Z = Te(null), k = Wn(yi, St), q = gt(k, 2), X = q[0], j = q[1], f = X.isFocused, y = X.isFileDialogActive, O = Te(typeof window < "u" && window.isSecureContext && L && oi()), F = function() {
|
|
3277
|
+
!O.current && y && setTimeout(function() {
|
|
3278
3278
|
if (Z.current) {
|
|
3279
3279
|
var S = Z.current.files;
|
|
3280
|
-
S.length || (
|
|
3280
|
+
S.length || (j({
|
|
3281
3281
|
type: "closeDialog"
|
|
3282
3282
|
}), me());
|
|
3283
3283
|
}
|
|
@@ -3287,19 +3287,19 @@ function bi() {
|
|
|
3287
3287
|
return window.addEventListener("focus", F, !1), function() {
|
|
3288
3288
|
window.removeEventListener("focus", F, !1);
|
|
3289
3289
|
};
|
|
3290
|
-
}, [Z,
|
|
3291
|
-
var I = Te([]),
|
|
3292
|
-
|
|
3290
|
+
}, [Z, y, me, O]);
|
|
3291
|
+
var I = Te([]), M = function(S) {
|
|
3292
|
+
$.current && $.current.contains(S.target) || (S.preventDefault(), I.current = []);
|
|
3293
3293
|
};
|
|
3294
3294
|
ae(function() {
|
|
3295
|
-
return
|
|
3296
|
-
|
|
3295
|
+
return D && (document.addEventListener("dragover", Qt, !1), document.addEventListener("drop", M, !1)), function() {
|
|
3296
|
+
D && (document.removeEventListener("dragover", Qt), document.removeEventListener("drop", M));
|
|
3297
3297
|
};
|
|
3298
|
-
}, [
|
|
3299
|
-
return !o &&
|
|
3298
|
+
}, [$, D]), ae(function() {
|
|
3299
|
+
return !o && V && $.current && $.current.focus(), function() {
|
|
3300
3300
|
};
|
|
3301
|
-
}, [
|
|
3302
|
-
var
|
|
3301
|
+
}, [$, V, o]);
|
|
3302
|
+
var R = le(function(x) {
|
|
3303
3303
|
U ? U(x) : console.error(x);
|
|
3304
3304
|
}, [U]), z = le(function(x) {
|
|
3305
3305
|
x.preventDefault(), x.persist(), $e(x), I.current = [].concat(ui(I.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
@@ -3313,7 +3313,7 @@ function bi() {
|
|
|
3313
3313
|
maxFiles: m,
|
|
3314
3314
|
validator: J
|
|
3315
3315
|
}), _e = ee > 0 && !oe;
|
|
3316
|
-
|
|
3316
|
+
j({
|
|
3317
3317
|
isDragAccept: oe,
|
|
3318
3318
|
isDragReject: _e,
|
|
3319
3319
|
isDragActive: !0,
|
|
@@ -3321,9 +3321,9 @@ function bi() {
|
|
|
3321
3321
|
}), c && c(x);
|
|
3322
3322
|
}
|
|
3323
3323
|
}).catch(function(S) {
|
|
3324
|
-
return
|
|
3324
|
+
return R(S);
|
|
3325
3325
|
});
|
|
3326
|
-
}, [a, c,
|
|
3326
|
+
}, [a, c, R, P, ne, r, i, s, m, J]), W = le(function(x) {
|
|
3327
3327
|
x.preventDefault(), x.persist(), $e(x);
|
|
3328
3328
|
var S = Ue(x);
|
|
3329
3329
|
if (S && x.dataTransfer)
|
|
@@ -3332,18 +3332,18 @@ function bi() {
|
|
|
3332
3332
|
} catch {
|
|
3333
3333
|
}
|
|
3334
3334
|
return S && d && d(x), !1;
|
|
3335
|
-
}, [d, P]),
|
|
3335
|
+
}, [d, P]), H = le(function(x) {
|
|
3336
3336
|
x.preventDefault(), x.persist(), $e(x);
|
|
3337
3337
|
var S = I.current.filter(function(oe) {
|
|
3338
|
-
return
|
|
3338
|
+
return $.current && $.current.contains(oe);
|
|
3339
3339
|
}), ee = S.indexOf(x.target);
|
|
3340
|
-
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) && (j({
|
|
3341
3341
|
type: "setDraggedFiles",
|
|
3342
3342
|
isDragActive: !1,
|
|
3343
3343
|
isDragAccept: !1,
|
|
3344
3344
|
isDragReject: !1
|
|
3345
3345
|
}), Ue(x) && u && u(x));
|
|
3346
|
-
}, [
|
|
3346
|
+
}, [$, u, P]), B = le(function(x, S) {
|
|
3347
3347
|
var ee = [], oe = [];
|
|
3348
3348
|
x.forEach(function(_e) {
|
|
3349
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;
|
|
@@ -3363,23 +3363,23 @@ function bi() {
|
|
|
3363
3363
|
file: _e,
|
|
3364
3364
|
errors: [Qa]
|
|
3365
3365
|
});
|
|
3366
|
-
}), ee.splice(0)),
|
|
3366
|
+
}), ee.splice(0)), j({
|
|
3367
3367
|
acceptedFiles: ee,
|
|
3368
3368
|
fileRejections: oe,
|
|
3369
3369
|
isDragReject: oe.length > 0,
|
|
3370
3370
|
type: "setFiles"
|
|
3371
|
-
}), g && g(ee, oe, S), oe.length > 0 && E && E(oe, S), ee.length > 0 &&
|
|
3372
|
-
}, [
|
|
3371
|
+
}), g && g(ee, oe, S), oe.length > 0 && E && E(oe, S), ee.length > 0 && b && b(ee, S);
|
|
3372
|
+
}, [j, s, ne, r, i, m, g, b, E, J]), te = le(function(x) {
|
|
3373
3373
|
x.preventDefault(), x.persist(), $e(x), I.current = [], Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3374
|
-
Xe(x) && !P ||
|
|
3374
|
+
Xe(x) && !P || B(S, x);
|
|
3375
3375
|
}).catch(function(S) {
|
|
3376
|
-
return
|
|
3377
|
-
}),
|
|
3376
|
+
return R(S);
|
|
3377
|
+
}), j({
|
|
3378
3378
|
type: "reset"
|
|
3379
3379
|
});
|
|
3380
|
-
}, [a,
|
|
3380
|
+
}, [a, B, R, P]), v = le(function() {
|
|
3381
3381
|
if (O.current) {
|
|
3382
|
-
|
|
3382
|
+
j({
|
|
3383
3383
|
type: "openDialog"
|
|
3384
3384
|
}), ue();
|
|
3385
3385
|
var x = {
|
|
@@ -3389,37 +3389,37 @@ function bi() {
|
|
|
3389
3389
|
window.showOpenFilePicker(x).then(function(S) {
|
|
3390
3390
|
return a(S);
|
|
3391
3391
|
}).then(function(S) {
|
|
3392
|
-
|
|
3392
|
+
B(S, null), j({
|
|
3393
3393
|
type: "closeDialog"
|
|
3394
3394
|
});
|
|
3395
3395
|
}).catch(function(S) {
|
|
3396
|
-
ri(S) ? (me(S),
|
|
3396
|
+
ri(S) ? (me(S), j({
|
|
3397
3397
|
type: "closeDialog"
|
|
3398
|
-
})) : si(S) ? (O.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) :
|
|
3398
|
+
})) : si(S) ? (O.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : R(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."))) : R(S);
|
|
3399
3399
|
});
|
|
3400
3400
|
return;
|
|
3401
3401
|
}
|
|
3402
|
-
Z.current && (
|
|
3402
|
+
Z.current && (j({
|
|
3403
3403
|
type: "openDialog"
|
|
3404
3404
|
}), ue(), Z.current.value = null, Z.current.click());
|
|
3405
|
-
}, [
|
|
3406
|
-
|
|
3407
|
-
}, [
|
|
3408
|
-
|
|
3405
|
+
}, [j, ue, me, L, B, R, de, s]), fe = le(function(x) {
|
|
3406
|
+
!$.current || !$.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), v());
|
|
3407
|
+
}, [$, v]), Ie = le(function() {
|
|
3408
|
+
j({
|
|
3409
3409
|
type: "focus"
|
|
3410
3410
|
});
|
|
3411
3411
|
}, []), Pe = le(function() {
|
|
3412
|
-
|
|
3412
|
+
j({
|
|
3413
3413
|
type: "blur"
|
|
3414
3414
|
});
|
|
3415
|
-
}, []),
|
|
3416
|
-
|
|
3417
|
-
}, [
|
|
3415
|
+
}, []), At = le(function() {
|
|
3416
|
+
w || (ni() ? setTimeout(v, 0) : v());
|
|
3417
|
+
}, [w, v]), Ae = function(S) {
|
|
3418
3418
|
return o ? null : S;
|
|
3419
3419
|
}, et = function(S) {
|
|
3420
|
-
return p ? null :
|
|
3420
|
+
return p ? null : Ae(S);
|
|
3421
3421
|
}, qe = function(S) {
|
|
3422
|
-
return
|
|
3422
|
+
return T ? null : Ae(S);
|
|
3423
3423
|
}, $e = function(S) {
|
|
3424
3424
|
P && S.stopPropagation();
|
|
3425
3425
|
}, On = Oe(function() {
|
|
@@ -3429,17 +3429,17 @@ function bi() {
|
|
|
3429
3429
|
onKeyDown: et(we(_e, fe)),
|
|
3430
3430
|
onFocus: et(we(Fe, Ie)),
|
|
3431
3431
|
onBlur: et(we(De, Pe)),
|
|
3432
|
-
onClick:
|
|
3432
|
+
onClick: Ae(we(tt, At)),
|
|
3433
3433
|
onDragEnter: qe(we(nt, z)),
|
|
3434
3434
|
onDragOver: qe(we(ot, W)),
|
|
3435
|
-
onDragLeave: qe(we(He,
|
|
3435
|
+
onDragLeave: qe(we(He, H)),
|
|
3436
3436
|
onDrop: qe(we(at, te)),
|
|
3437
3437
|
role: typeof oe == "string" && oe !== "" ? oe : "presentation"
|
|
3438
|
-
}, ee,
|
|
3438
|
+
}, ee, $), !o && !p ? {
|
|
3439
3439
|
tabIndex: 0
|
|
3440
3440
|
} : {}), it);
|
|
3441
3441
|
};
|
|
3442
|
-
}, [
|
|
3442
|
+
}, [$, fe, Ie, Pe, At, z, W, H, te, p, T, o]), Ln = le(function(x) {
|
|
3443
3443
|
x.stopPropagation();
|
|
3444
3444
|
}, []), Pn = Oe(function() {
|
|
3445
3445
|
return function() {
|
|
@@ -3459,8 +3459,8 @@ function bi() {
|
|
|
3459
3459
|
width: "1px",
|
|
3460
3460
|
whiteSpace: "nowrap"
|
|
3461
3461
|
},
|
|
3462
|
-
onChange:
|
|
3463
|
-
onClick:
|
|
3462
|
+
onChange: Ae(we(oe, te)),
|
|
3463
|
+
onClick: Ae(we(_e, Ln)),
|
|
3464
3464
|
tabIndex: -1
|
|
3465
3465
|
}, ee, Z);
|
|
3466
3466
|
return Q(Q({}, De), Fe);
|
|
@@ -3470,9 +3470,9 @@ function bi() {
|
|
|
3470
3470
|
isFocused: f && !o,
|
|
3471
3471
|
getRootProps: On,
|
|
3472
3472
|
getInputProps: Pn,
|
|
3473
|
-
rootRef:
|
|
3473
|
+
rootRef: $,
|
|
3474
3474
|
inputRef: Z,
|
|
3475
|
-
open:
|
|
3475
|
+
open: Ae(v)
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
3478
|
function yi(e, t) {
|
|
@@ -3539,7 +3539,7 @@ const wi = (e) => {
|
|
|
3539
3539
|
},
|
|
3540
3540
|
[c, m, s, r, t]
|
|
3541
3541
|
);
|
|
3542
|
-
return /* @__PURE__ */ l(Je, { multiple: s, onDrop: u, maxSize: o, accept: a, children: ({ getRootProps: d, getInputProps: g }) => /* @__PURE__ */
|
|
3542
|
+
return /* @__PURE__ */ l(Je, { multiple: s, onDrop: u, maxSize: o, accept: a, children: ({ getRootProps: d, getInputProps: g }) => /* @__PURE__ */ Y("div", { ...d({}), children: [
|
|
3543
3543
|
/* @__PURE__ */ l("input", { ...g({}), disabled: i, name: r }),
|
|
3544
3544
|
n
|
|
3545
3545
|
] }) });
|
|
@@ -3552,7 +3552,7 @@ const wi = (e) => {
|
|
|
3552
3552
|
spDropdown__dopdownListItem: Ii,
|
|
3553
3553
|
spDropdown__dopdownListItem_textCenter: Ni,
|
|
3554
3554
|
spDropdown__downloadListItemDescription: ji
|
|
3555
|
-
},
|
|
3555
|
+
}, As = (e) => {
|
|
3556
3556
|
const {
|
|
3557
3557
|
labelText: t = "Выпадающий список",
|
|
3558
3558
|
listName: n,
|
|
@@ -3572,26 +3572,26 @@ const wi = (e) => {
|
|
|
3572
3572
|
[Ee.spDropdown__dropdownListHeader]: !0
|
|
3573
3573
|
}), d = _({
|
|
3574
3574
|
[Ee.spDropdown__downloadListItemDescription]: !0
|
|
3575
|
-
}), [g,
|
|
3575
|
+
}), [g, b] = ce(!1);
|
|
3576
3576
|
return /* @__PURE__ */ l(
|
|
3577
3577
|
It,
|
|
3578
3578
|
{
|
|
3579
3579
|
hover: !1,
|
|
3580
|
-
triggerAction: () =>
|
|
3581
|
-
actionOnClose: () =>
|
|
3582
|
-
text: /* @__PURE__ */
|
|
3580
|
+
triggerAction: () => b(!0),
|
|
3581
|
+
actionOnClose: () => b(!1),
|
|
3582
|
+
text: /* @__PURE__ */ Y("div", { className: c, children: [
|
|
3583
3583
|
n && /* @__PURE__ */ l("div", { className: u, children: n }),
|
|
3584
|
-
o.map((
|
|
3584
|
+
o.map((h, A) => /* @__PURE__ */ Y(
|
|
3585
3585
|
"div",
|
|
3586
3586
|
{
|
|
3587
3587
|
className: _({
|
|
3588
3588
|
[Ee.spDropdown__dopdownListItem]: !0,
|
|
3589
|
-
[Ee.spDropdown__dopdownListItem_textCenter]:
|
|
3589
|
+
[Ee.spDropdown__dopdownListItem_textCenter]: h.textCenter
|
|
3590
3590
|
}),
|
|
3591
|
-
onClick:
|
|
3591
|
+
onClick: h.onClick,
|
|
3592
3592
|
children: [
|
|
3593
|
-
|
|
3594
|
-
|
|
3593
|
+
h.name,
|
|
3594
|
+
h.description && /* @__PURE__ */ l("span", { className: d, children: h.description })
|
|
3595
3595
|
]
|
|
3596
3596
|
},
|
|
3597
3597
|
A
|
|
@@ -3601,15 +3601,15 @@ const wi = (e) => {
|
|
|
3601
3601
|
noPadding: !0,
|
|
3602
3602
|
isToggleClick: !0,
|
|
3603
3603
|
isStopPropagationClickOnTrigger: !0,
|
|
3604
|
-
trigger: /* @__PURE__ */
|
|
3604
|
+
trigger: /* @__PURE__ */ Y("div", { className: r, children: [
|
|
3605
3605
|
/* @__PURE__ */ l("div", { className: s, children: t }),
|
|
3606
3606
|
/* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l(ge, { name: re.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
3607
3607
|
] })
|
|
3608
3608
|
}
|
|
3609
3609
|
);
|
|
3610
|
-
},
|
|
3611
|
-
ellipsisTextWithTooltip:
|
|
3612
|
-
ellipsisTextWithTooltip__tooltip:
|
|
3610
|
+
}, Ri = "_ellipsisTextWithTooltip_1nhiw_43", Ai = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", tn = {
|
|
3611
|
+
ellipsisTextWithTooltip: Ri,
|
|
3612
|
+
ellipsisTextWithTooltip__tooltip: Ai
|
|
3613
3613
|
}, Di = (e) => {
|
|
3614
3614
|
const {
|
|
3615
3615
|
text: t,
|
|
@@ -3629,14 +3629,14 @@ const wi = (e) => {
|
|
|
3629
3629
|
}), g = _({
|
|
3630
3630
|
[tn.ellipsisTextWithTooltip__tooltip]: !0,
|
|
3631
3631
|
...o && { [o]: !0 }
|
|
3632
|
-
}),
|
|
3632
|
+
}), b = _({
|
|
3633
3633
|
...a && { [a]: !0 }
|
|
3634
3634
|
});
|
|
3635
3635
|
return /* @__PURE__ */ l(
|
|
3636
3636
|
It,
|
|
3637
3637
|
{
|
|
3638
3638
|
classNameTooltip: g,
|
|
3639
|
-
classNameTriggerTooltip:
|
|
3639
|
+
classNameTriggerTooltip: b,
|
|
3640
3640
|
classNameBaseTooltipContentRoot: i,
|
|
3641
3641
|
classNameBaseTooltipRoot: r,
|
|
3642
3642
|
isVisibleTooltip: c,
|
|
@@ -3644,7 +3644,7 @@ const wi = (e) => {
|
|
|
3644
3644
|
trigger: /* @__PURE__ */ l(Se, { ...s, classNameRoot: d, isEllipsis: !0, ref: m, children: t })
|
|
3645
3645
|
}
|
|
3646
3646
|
);
|
|
3647
|
-
}, Oi = "_spForm_zefbj_43", Li = "_spForm_fullWidth_zefbj_46", Pi = "_spForm_withSeparator_zefbj_49",
|
|
3647
|
+
}, Oi = "_spForm_zefbj_43", Li = "_spForm_fullWidth_zefbj_46", Pi = "_spForm_withSeparator_zefbj_49", Be = {
|
|
3648
3648
|
spForm: Oi,
|
|
3649
3649
|
spForm_fullWidth: Li,
|
|
3650
3650
|
spForm_withSeparator: Pi,
|
|
@@ -3661,21 +3661,21 @@ const wi = (e) => {
|
|
|
3661
3661
|
classNameRoot: s,
|
|
3662
3662
|
...m
|
|
3663
3663
|
} = e, c = _({
|
|
3664
|
-
[
|
|
3665
|
-
[
|
|
3666
|
-
[
|
|
3667
|
-
[
|
|
3668
|
-
[
|
|
3664
|
+
[Be.spForm]: !0,
|
|
3665
|
+
[Be.spForm_fullWidth]: r,
|
|
3666
|
+
[Be.spForm_addMargin]: a,
|
|
3667
|
+
[Be[`spForm_addMargin--size-${t}`]]: a && t,
|
|
3668
|
+
[Be.spForm_withSeparator]: i,
|
|
3669
3669
|
...s && { [s]: !0 }
|
|
3670
3670
|
});
|
|
3671
3671
|
return /* @__PURE__ */ l("form", { ...m, onSubmit: (d) => {
|
|
3672
3672
|
d.preventDefault(), o && o();
|
|
3673
3673
|
}, className: c, children: n });
|
|
3674
|
-
}, Fi = "_spLabel_g0hfy_43", zi = "_spLabel__text_g0hfy_52",
|
|
3674
|
+
}, Fi = "_spLabel_g0hfy_43", zi = "_spLabel__text_g0hfy_52", Bi = "_spLabel__tooltip_g0hfy_62", Mi = "_spLabel__required_g0hfy_67", Ge = {
|
|
3675
3675
|
spLabel: Fi,
|
|
3676
3676
|
spLabel__text: zi,
|
|
3677
|
-
spLabel__tooltip:
|
|
3678
|
-
spLabel__required:
|
|
3677
|
+
spLabel__tooltip: Bi,
|
|
3678
|
+
spLabel__required: Mi
|
|
3679
3679
|
}, jt = (e) => {
|
|
3680
3680
|
const {
|
|
3681
3681
|
required: t,
|
|
@@ -3693,7 +3693,7 @@ const wi = (e) => {
|
|
|
3693
3693
|
}), c = _({
|
|
3694
3694
|
[Ge.spLabel__tooltip]: !0
|
|
3695
3695
|
});
|
|
3696
|
-
return /* @__PURE__ */
|
|
3696
|
+
return /* @__PURE__ */ Y("div", { className: r, children: [
|
|
3697
3697
|
/* @__PURE__ */ l("label", { className: s, children: n }),
|
|
3698
3698
|
t && /* @__PURE__ */ l("div", { className: m, children: "*" }),
|
|
3699
3699
|
o && /* @__PURE__ */ l("div", { className: c, children: /* @__PURE__ */ l(Qe, { position: a, text: o }) })
|
|
@@ -3722,19 +3722,19 @@ const wi = (e) => {
|
|
|
3722
3722
|
isClearable: u,
|
|
3723
3723
|
pattern: d,
|
|
3724
3724
|
onMouseEnter: g,
|
|
3725
|
-
infoTooltipText:
|
|
3725
|
+
infoTooltipText: b,
|
|
3726
3726
|
tooltipPosition: E,
|
|
3727
|
-
isVisibleDefaultTitle:
|
|
3727
|
+
isVisibleDefaultTitle: h = !0,
|
|
3728
3728
|
placeholder: A = "Введите...",
|
|
3729
3729
|
classNameRoot: L,
|
|
3730
|
-
classNameError:
|
|
3731
|
-
classNameLabel:
|
|
3732
|
-
...
|
|
3730
|
+
classNameError: V,
|
|
3731
|
+
classNameLabel: D,
|
|
3732
|
+
...w
|
|
3733
3733
|
} = e, p = _({
|
|
3734
3734
|
[Ce.spInput]: !0,
|
|
3735
3735
|
[Ce.spInput_error]: !!s,
|
|
3736
3736
|
...L && { [L]: !0 }
|
|
3737
|
-
}),
|
|
3737
|
+
}), T = _({
|
|
3738
3738
|
[Ce.spInput__container]: !0
|
|
3739
3739
|
}), P = _({
|
|
3740
3740
|
[Ce.spInput__control]: !0,
|
|
@@ -3745,16 +3745,16 @@ const wi = (e) => {
|
|
|
3745
3745
|
[Ce.spInput__clear]: !0
|
|
3746
3746
|
}), J = _({
|
|
3747
3747
|
[Ce.spInput__error]: !0,
|
|
3748
|
-
...
|
|
3748
|
+
...V && { [V]: !0 }
|
|
3749
3749
|
}), ne = _({
|
|
3750
|
-
...
|
|
3751
|
-
}), de = (
|
|
3752
|
-
o(
|
|
3753
|
-
}, ue = (
|
|
3754
|
-
const { value: Z, name:
|
|
3755
|
-
d && Z && !new RegExp(d).test(Z) || o(
|
|
3750
|
+
...D && { [D]: !0 }
|
|
3751
|
+
}), de = ($) => {
|
|
3752
|
+
o($, { name: c, value: "" });
|
|
3753
|
+
}, ue = ($) => {
|
|
3754
|
+
const { value: Z, name: k } = $.target;
|
|
3755
|
+
d && Z && !new RegExp(d).test(Z) || o($, { value: Z, name: k });
|
|
3756
3756
|
};
|
|
3757
|
-
return /* @__PURE__ */
|
|
3757
|
+
return /* @__PURE__ */ Y("div", { className: p, children: [
|
|
3758
3758
|
a && /* @__PURE__ */ l(
|
|
3759
3759
|
jt,
|
|
3760
3760
|
{
|
|
@@ -3762,18 +3762,18 @@ const wi = (e) => {
|
|
|
3762
3762
|
tooltipPosition: E,
|
|
3763
3763
|
required: m,
|
|
3764
3764
|
label: a,
|
|
3765
|
-
infoTooltipText:
|
|
3765
|
+
infoTooltipText: b
|
|
3766
3766
|
}
|
|
3767
3767
|
),
|
|
3768
|
-
/* @__PURE__ */
|
|
3768
|
+
/* @__PURE__ */ Y("div", { className: T, onMouseEnter: g, children: [
|
|
3769
3769
|
/* @__PURE__ */ l(
|
|
3770
3770
|
"input",
|
|
3771
3771
|
{
|
|
3772
|
-
...
|
|
3772
|
+
...w,
|
|
3773
3773
|
placeholder: A,
|
|
3774
3774
|
disabled: r,
|
|
3775
3775
|
onChange: ue,
|
|
3776
|
-
title:
|
|
3776
|
+
title: h ? n : void 0,
|
|
3777
3777
|
value: n,
|
|
3778
3778
|
name: c,
|
|
3779
3779
|
className: P,
|
|
@@ -3814,19 +3814,19 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3814
3814
|
infoTooltipText: u,
|
|
3815
3815
|
tooltipPosition: d = ie.TopRight,
|
|
3816
3816
|
classNameRoot: g,
|
|
3817
|
-
error:
|
|
3818
|
-
} = e, E = c.map((p) => p.name),
|
|
3817
|
+
error: b
|
|
3818
|
+
} = e, E = c.map((p) => p.name), h = (E == null ? void 0 : E.length) > 0, A = _({
|
|
3819
3819
|
[ve.spInputFiles]: !0,
|
|
3820
|
-
[ve.spInputFiles_error]: !!
|
|
3820
|
+
[ve.spInputFiles_error]: !!b,
|
|
3821
3821
|
[ve.spInputFiles_disabled]: r,
|
|
3822
|
-
[ve.spInputFiles_fileUploaded]:
|
|
3822
|
+
[ve.spInputFiles_fileUploaded]: h,
|
|
3823
3823
|
...g && { [g]: !0 }
|
|
3824
3824
|
}), L = (p) => {
|
|
3825
|
-
const
|
|
3826
|
-
|
|
3827
|
-
},
|
|
3825
|
+
const T = [...c], P = T.findIndex((U) => U.name === p);
|
|
3826
|
+
T.splice(P, 1), o(T, n);
|
|
3827
|
+
}, V = (p) => {
|
|
3828
3828
|
p.stopPropagation(), o([], n);
|
|
3829
|
-
},
|
|
3829
|
+
}, D = () => s ? /* @__PURE__ */ l("ul", { className: ve.spInputFiles__fileNamesList, children: E.map((p, T) => /* @__PURE__ */ Y(
|
|
3830
3830
|
"li",
|
|
3831
3831
|
{
|
|
3832
3832
|
className: ve.spInputFiles__fileNamesListItem,
|
|
@@ -3845,10 +3845,10 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3845
3845
|
/* @__PURE__ */ l("div", { className: ve.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ l(ge, { name: re.Trash }) })
|
|
3846
3846
|
]
|
|
3847
3847
|
},
|
|
3848
|
-
|
|
3849
|
-
)) }) : /* @__PURE__ */ l(Se, { isEllipsis: !0, children: E[0] }),
|
|
3850
|
-
|
|
3851
|
-
|
|
3848
|
+
T
|
|
3849
|
+
)) }) : /* @__PURE__ */ l(Se, { isEllipsis: !0, children: E[0] }), w = () => /* @__PURE__ */ Y(cn, { children: [
|
|
3850
|
+
h ? D() : /* @__PURE__ */ l(Se, { children: t }),
|
|
3851
|
+
h ? /* @__PURE__ */ l("div", { className: ve.spInputFiles__delete, onClick: V, children: /* @__PURE__ */ l(ge, { name: re.Close }) }) : u && /* @__PURE__ */ l(
|
|
3852
3852
|
Qe,
|
|
3853
3853
|
{
|
|
3854
3854
|
classNameTooltip: ve.spInputFiles__tooltipWrapper,
|
|
@@ -3868,13 +3868,13 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3868
3868
|
maxFiles: m,
|
|
3869
3869
|
accept: i,
|
|
3870
3870
|
onDropFiles: o,
|
|
3871
|
-
disabled: r ||
|
|
3872
|
-
children: /* @__PURE__ */
|
|
3873
|
-
/* @__PURE__ */
|
|
3874
|
-
/* @__PURE__ */ l(ge, { name:
|
|
3875
|
-
|
|
3871
|
+
disabled: r || h,
|
|
3872
|
+
children: /* @__PURE__ */ Y("div", { className: A, children: [
|
|
3873
|
+
/* @__PURE__ */ Y("div", { className: ve.spInputFiles__control, children: [
|
|
3874
|
+
/* @__PURE__ */ l(ge, { name: h ? re.Check : re.Upload }),
|
|
3875
|
+
w()
|
|
3876
3876
|
] }),
|
|
3877
|
-
|
|
3877
|
+
b && /* @__PURE__ */ l("div", { className: ve.spInputFiles__error, children: b })
|
|
3878
3878
|
] })
|
|
3879
3879
|
}
|
|
3880
3880
|
);
|
|
@@ -3885,9 +3885,9 @@ const Qi = "_spInputFiles_1ukpx_43", Ji = "_spInputFiles_error_1ukpx_48", er = "
|
|
|
3885
3885
|
isTablet: !1
|
|
3886
3886
|
}
|
|
3887
3887
|
});
|
|
3888
|
-
var
|
|
3889
|
-
|
|
3890
|
-
|
|
3888
|
+
var Rt = {};
|
|
3889
|
+
Rt.match = vr;
|
|
3890
|
+
Rt.parse = jn;
|
|
3891
3891
|
var dr = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, ur = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, mr = /^(?:(min|max)-)?(.+)/, fr = /(em|rem|px|cm|mm|in|pt|pc)?$/, _r = /(dpi|dpcm|dppx)?$/;
|
|
3892
3892
|
function vr(e, t) {
|
|
3893
3893
|
return jn(e).some(function(n) {
|
|
@@ -3986,7 +3986,7 @@ function an(e) {
|
|
|
3986
3986
|
return t;
|
|
3987
3987
|
}
|
|
3988
3988
|
}
|
|
3989
|
-
var xr =
|
|
3989
|
+
var xr = Rt.match, rn = typeof window < "u" ? window.matchMedia : null;
|
|
3990
3990
|
function gr(e, t, n) {
|
|
3991
3991
|
var o = this, a;
|
|
3992
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;
|
|
@@ -4012,7 +4012,7 @@ var wr = /[A-Z]/g, kr = /^ms-/, ht = {};
|
|
|
4012
4012
|
function Cr(e) {
|
|
4013
4013
|
return "-" + e.toLowerCase();
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4015
|
+
function Rn(e) {
|
|
4016
4016
|
if (ht.hasOwnProperty(e))
|
|
4017
4017
|
return ht[e];
|
|
4018
4018
|
var t = e.replace(wr, Cr);
|
|
@@ -4033,37 +4033,37 @@ function Tr(e, t) {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
return !0;
|
|
4035
4035
|
}
|
|
4036
|
-
const pe =
|
|
4037
|
-
all:
|
|
4038
|
-
grid:
|
|
4039
|
-
aural:
|
|
4040
|
-
braille:
|
|
4041
|
-
handheld:
|
|
4042
|
-
print:
|
|
4043
|
-
projection:
|
|
4044
|
-
screen:
|
|
4045
|
-
tty:
|
|
4046
|
-
tv:
|
|
4047
|
-
embossed:
|
|
4036
|
+
const pe = C.oneOfType([C.string, C.number]), An = {
|
|
4037
|
+
all: C.bool,
|
|
4038
|
+
grid: C.bool,
|
|
4039
|
+
aural: C.bool,
|
|
4040
|
+
braille: C.bool,
|
|
4041
|
+
handheld: C.bool,
|
|
4042
|
+
print: C.bool,
|
|
4043
|
+
projection: C.bool,
|
|
4044
|
+
screen: C.bool,
|
|
4045
|
+
tty: C.bool,
|
|
4046
|
+
tv: C.bool,
|
|
4047
|
+
embossed: C.bool
|
|
4048
4048
|
}, Er = {
|
|
4049
|
-
orientation:
|
|
4050
|
-
scan:
|
|
4051
|
-
aspectRatio:
|
|
4052
|
-
deviceAspectRatio:
|
|
4049
|
+
orientation: C.oneOf(["portrait", "landscape"]),
|
|
4050
|
+
scan: C.oneOf(["progressive", "interlace"]),
|
|
4051
|
+
aspectRatio: C.string,
|
|
4052
|
+
deviceAspectRatio: C.string,
|
|
4053
4053
|
height: pe,
|
|
4054
4054
|
deviceHeight: pe,
|
|
4055
4055
|
width: pe,
|
|
4056
4056
|
deviceWidth: pe,
|
|
4057
|
-
color:
|
|
4058
|
-
colorIndex:
|
|
4059
|
-
monochrome:
|
|
4057
|
+
color: C.bool,
|
|
4058
|
+
colorIndex: C.bool,
|
|
4059
|
+
monochrome: C.bool,
|
|
4060
4060
|
resolution: pe,
|
|
4061
|
-
type: Object.keys(
|
|
4061
|
+
type: Object.keys(An)
|
|
4062
4062
|
}, { type: Ls, ...Sr } = Er, Ir = {
|
|
4063
|
-
minAspectRatio:
|
|
4064
|
-
maxAspectRatio:
|
|
4065
|
-
minDeviceAspectRatio:
|
|
4066
|
-
maxDeviceAspectRatio:
|
|
4063
|
+
minAspectRatio: C.string,
|
|
4064
|
+
maxAspectRatio: C.string,
|
|
4065
|
+
minDeviceAspectRatio: C.string,
|
|
4066
|
+
maxDeviceAspectRatio: C.string,
|
|
4067
4067
|
minHeight: pe,
|
|
4068
4068
|
maxHeight: pe,
|
|
4069
4069
|
minDeviceHeight: pe,
|
|
@@ -4072,29 +4072,29 @@ const pe = k.oneOfType([k.string, k.number]), Rn = {
|
|
|
4072
4072
|
maxWidth: pe,
|
|
4073
4073
|
minDeviceWidth: pe,
|
|
4074
4074
|
maxDeviceWidth: pe,
|
|
4075
|
-
minColor:
|
|
4076
|
-
maxColor:
|
|
4077
|
-
minColorIndex:
|
|
4078
|
-
maxColorIndex:
|
|
4079
|
-
minMonochrome:
|
|
4080
|
-
maxMonochrome:
|
|
4075
|
+
minColor: C.number,
|
|
4076
|
+
maxColor: C.number,
|
|
4077
|
+
minColorIndex: C.number,
|
|
4078
|
+
maxColorIndex: C.number,
|
|
4079
|
+
minMonochrome: C.number,
|
|
4080
|
+
maxMonochrome: C.number,
|
|
4081
4081
|
minResolution: pe,
|
|
4082
4082
|
maxResolution: pe,
|
|
4083
4083
|
...Sr
|
|
4084
|
-
}, Nr = { ...
|
|
4084
|
+
}, Nr = { ...An, ...Ir };
|
|
4085
4085
|
var jr = {
|
|
4086
4086
|
all: Nr
|
|
4087
4087
|
};
|
|
4088
|
-
const
|
|
4089
|
-
const n =
|
|
4090
|
-
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ?
|
|
4088
|
+
const Rr = (e) => `not ${e}`, Ar = (e, t) => {
|
|
4089
|
+
const n = Rn(e);
|
|
4090
|
+
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? Rr(n) : `(${n}: ${t})`;
|
|
4091
4091
|
}, Dr = (e) => e.join(" and "), Or = (e) => {
|
|
4092
4092
|
const t = [];
|
|
4093
4093
|
return Object.keys(jr.all).forEach((n) => {
|
|
4094
4094
|
const o = e[n];
|
|
4095
|
-
o != null && t.push(
|
|
4095
|
+
o != null && t.push(Ar(n, o));
|
|
4096
4096
|
}), Dr(t);
|
|
4097
|
-
}, Lr = ln(void 0), Pr = (e) => e.query || Or(e), sn = (e) => e ? Object.keys(e).reduce((n, o) => (n[
|
|
4097
|
+
}, Lr = ln(void 0), Pr = (e) => e.query || Or(e), sn = (e) => e ? Object.keys(e).reduce((n, o) => (n[Rn(o)] = e[o], n), {}) : void 0, Dn = () => {
|
|
4098
4098
|
const e = Te(!1);
|
|
4099
4099
|
return ae(() => {
|
|
4100
4100
|
e.current = !0;
|
|
@@ -4111,7 +4111,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4111
4111
|
const a = t();
|
|
4112
4112
|
n !== a && o(a);
|
|
4113
4113
|
}, [e]), n;
|
|
4114
|
-
},
|
|
4114
|
+
}, Br = (e, t) => {
|
|
4115
4115
|
const n = () => yr(e, t || {}, !!t), [o, a] = ce(n), i = Dn();
|
|
4116
4116
|
return ae(() => {
|
|
4117
4117
|
if (i) {
|
|
@@ -4121,7 +4121,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4121
4121
|
};
|
|
4122
4122
|
}
|
|
4123
4123
|
}, [e, t]), o;
|
|
4124
|
-
},
|
|
4124
|
+
}, Mr = (e) => {
|
|
4125
4125
|
const [t, n] = ce(e.matches);
|
|
4126
4126
|
return ae(() => {
|
|
4127
4127
|
const o = (a) => {
|
|
@@ -4135,7 +4135,7 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4135
4135
|
const o = Fr(t), a = zr(e);
|
|
4136
4136
|
if (!a)
|
|
4137
4137
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4138
|
-
const i =
|
|
4138
|
+
const i = Br(a, o), r = Mr(i);
|
|
4139
4139
|
return Dn(), ae(() => {
|
|
4140
4140
|
}, [r]), ae(() => () => {
|
|
4141
4141
|
i && i.dispose();
|
|
@@ -4189,25 +4189,25 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4189
4189
|
infoTooltipText: u,
|
|
4190
4190
|
tooltipPosition: d,
|
|
4191
4191
|
disabled: g,
|
|
4192
|
-
required:
|
|
4192
|
+
required: b,
|
|
4193
4193
|
maxHeightList: E = qr,
|
|
4194
|
-
isVisibleDefaultTitle:
|
|
4194
|
+
isVisibleDefaultTitle: h = !0,
|
|
4195
4195
|
isScrollableList: A = !1,
|
|
4196
4196
|
classNameRoot: L,
|
|
4197
|
-
classNameError:
|
|
4198
|
-
classNameLabel:
|
|
4199
|
-
} = e, [
|
|
4197
|
+
classNameError: V,
|
|
4198
|
+
classNameLabel: D
|
|
4199
|
+
} = e, [w, p] = ce(!1), T = Te(null);
|
|
4200
4200
|
fn(
|
|
4201
|
-
[
|
|
4201
|
+
[T],
|
|
4202
4202
|
() => {
|
|
4203
4203
|
p(!1);
|
|
4204
4204
|
},
|
|
4205
|
-
|
|
4205
|
+
w
|
|
4206
4206
|
);
|
|
4207
|
-
const P = t.find((
|
|
4208
|
-
r(
|
|
4207
|
+
const P = t.find((j) => j.value === o), U = (j, f) => {
|
|
4208
|
+
r(j, { value: f, name: a }), p(!1);
|
|
4209
4209
|
}, J = () => {
|
|
4210
|
-
g || p(!
|
|
4210
|
+
g || p(!w);
|
|
4211
4211
|
}, ne = _({
|
|
4212
4212
|
[xe.spSelect]: !0,
|
|
4213
4213
|
[xe.spSelect_error]: !!m,
|
|
@@ -4221,34 +4221,34 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4221
4221
|
}), me = _({
|
|
4222
4222
|
[xe.spSelect__value]: !0,
|
|
4223
4223
|
[xe.spSelect__value_empty]: !P
|
|
4224
|
-
}),
|
|
4224
|
+
}), $ = _({
|
|
4225
4225
|
[xe.spSelect__icon]: !0
|
|
4226
4226
|
}), Z = _({
|
|
4227
4227
|
[xe.spSelect__list]: !0,
|
|
4228
4228
|
[xe.spSelect__list_scrollable]: A
|
|
4229
|
-
}),
|
|
4230
|
-
...
|
|
4231
|
-
}),
|
|
4229
|
+
}), k = _({
|
|
4230
|
+
...D && { [D]: !0 }
|
|
4231
|
+
}), q = _({
|
|
4232
4232
|
[xe.spSelect__error]: !0,
|
|
4233
|
-
...
|
|
4233
|
+
...V && { [V]: !0 }
|
|
4234
4234
|
});
|
|
4235
|
-
return /* @__PURE__ */
|
|
4235
|
+
return /* @__PURE__ */ Y("div", { className: ne, ref: T, children: [
|
|
4236
4236
|
c && /* @__PURE__ */ l(
|
|
4237
4237
|
jt,
|
|
4238
4238
|
{
|
|
4239
|
-
classNameRoot:
|
|
4239
|
+
classNameRoot: k,
|
|
4240
4240
|
tooltipPosition: d,
|
|
4241
|
-
required:
|
|
4241
|
+
required: b,
|
|
4242
4242
|
label: c,
|
|
4243
4243
|
infoTooltipText: u
|
|
4244
4244
|
}
|
|
4245
4245
|
),
|
|
4246
|
-
/* @__PURE__ */
|
|
4247
|
-
/* @__PURE__ */
|
|
4246
|
+
/* @__PURE__ */ Y("div", { className: de, onMouseEnter: s, children: [
|
|
4247
|
+
/* @__PURE__ */ Y(
|
|
4248
4248
|
"div",
|
|
4249
4249
|
{
|
|
4250
4250
|
tabIndex: g ? -1 : 0,
|
|
4251
|
-
title:
|
|
4251
|
+
title: h ? o : void 0,
|
|
4252
4252
|
className: ue,
|
|
4253
4253
|
onClick: J,
|
|
4254
4254
|
children: [
|
|
@@ -4257,39 +4257,39 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4257
4257
|
ge,
|
|
4258
4258
|
{
|
|
4259
4259
|
name: re.SelectChevronDown,
|
|
4260
|
-
rotate:
|
|
4261
|
-
className:
|
|
4260
|
+
rotate: w ? 180 : void 0,
|
|
4261
|
+
className: $
|
|
4262
4262
|
}
|
|
4263
4263
|
)
|
|
4264
4264
|
]
|
|
4265
4265
|
}
|
|
4266
4266
|
),
|
|
4267
|
-
|
|
4267
|
+
w && /* @__PURE__ */ l(
|
|
4268
4268
|
"div",
|
|
4269
4269
|
{
|
|
4270
4270
|
className: Z,
|
|
4271
4271
|
style: A ? { maxHeight: `${E}px` } : {},
|
|
4272
|
-
children: t.map((
|
|
4273
|
-
const f =
|
|
4274
|
-
return /* @__PURE__ */
|
|
4272
|
+
children: t.map((j) => {
|
|
4273
|
+
const f = j.value === o;
|
|
4274
|
+
return /* @__PURE__ */ Y(
|
|
4275
4275
|
"div",
|
|
4276
4276
|
{
|
|
4277
4277
|
className: _({
|
|
4278
4278
|
[xe.spSelect__option]: !0
|
|
4279
4279
|
}),
|
|
4280
|
-
onClick: (
|
|
4280
|
+
onClick: (y) => U(y, j.value),
|
|
4281
4281
|
children: [
|
|
4282
|
-
|
|
4283
|
-
f && /* @__PURE__ */ l(ge, { name: re.Check, className:
|
|
4282
|
+
j.label,
|
|
4283
|
+
f && /* @__PURE__ */ l(ge, { name: re.Check, className: $ })
|
|
4284
4284
|
]
|
|
4285
4285
|
},
|
|
4286
|
-
|
|
4286
|
+
j.value
|
|
4287
4287
|
);
|
|
4288
4288
|
})
|
|
4289
4289
|
}
|
|
4290
4290
|
)
|
|
4291
4291
|
] }),
|
|
4292
|
-
m && /* @__PURE__ */ l("div", { className:
|
|
4292
|
+
m && /* @__PURE__ */ l("div", { className: q, children: m })
|
|
4293
4293
|
] });
|
|
4294
4294
|
}, os = "_skeleton_c18an_44", as = {
|
|
4295
4295
|
skeleton: os
|
|
@@ -4314,16 +4314,16 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4314
4314
|
spStringsGroup__groupItemContent: fs,
|
|
4315
4315
|
spStringsGroup__groupItemContentCopyIcon: _s,
|
|
4316
4316
|
spStringsGroup__groupItemContentCopyIcon_copied: vs
|
|
4317
|
-
}, pn = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1,
|
|
4317
|
+
}, pn = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, Bs = (e) => {
|
|
4318
4318
|
const {
|
|
4319
4319
|
columns: t,
|
|
4320
4320
|
data: n,
|
|
4321
4321
|
isNotTableOnNotDesktop: o = !1,
|
|
4322
4322
|
classNameRoot: a
|
|
4323
|
-
} = e, i = t.map((
|
|
4324
|
-
...
|
|
4325
|
-
isVisible: n.some((p) => !!p[
|
|
4326
|
-
})).filter((
|
|
4323
|
+
} = e, i = t.map((w) => ({
|
|
4324
|
+
...w,
|
|
4325
|
+
isVisible: n.some((p) => !!p[w.key])
|
|
4326
|
+
})).filter((w) => w.isVisible), r = _({
|
|
4327
4327
|
[he.spTable]: !0,
|
|
4328
4328
|
...a && { [a]: !0 }
|
|
4329
4329
|
}), s = _({
|
|
@@ -4334,46 +4334,46 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4334
4334
|
[he.spTable__emptyPage]: !0
|
|
4335
4335
|
}), {
|
|
4336
4336
|
device: { isDesktop: u }
|
|
4337
|
-
} = dn(Nn), [d, g] = ce(null),
|
|
4338
|
-
const { text: p, rowIndex:
|
|
4339
|
-
(d == null ? void 0 : d.rowIndex) ===
|
|
4340
|
-
g({ rowIndex:
|
|
4337
|
+
} = dn(Nn), [d, g] = ce(null), b = (w) => {
|
|
4338
|
+
const { text: p, rowIndex: T, colIndex: P } = w;
|
|
4339
|
+
(d == null ? void 0 : d.rowIndex) === T && (d == null ? void 0 : d.colIndex) === P || navigator.clipboard.writeText(p).then(() => {
|
|
4340
|
+
g({ rowIndex: T, colIndex: P });
|
|
4341
4341
|
}).catch((U) => {
|
|
4342
4342
|
console.error("Ошибка при копировании:", U);
|
|
4343
4343
|
});
|
|
4344
4344
|
}, E = () => {
|
|
4345
4345
|
g(null);
|
|
4346
|
-
},
|
|
4347
|
-
row:
|
|
4346
|
+
}, h = () => /* @__PURE__ */ l("div", { className: c, children: "Данные отсутствуют" }), A = ({
|
|
4347
|
+
row: w,
|
|
4348
4348
|
col: p
|
|
4349
4349
|
}) => {
|
|
4350
|
-
const
|
|
4351
|
-
if (!
|
|
4352
|
-
const [P, U] =
|
|
4353
|
-
return /* @__PURE__ */
|
|
4350
|
+
const T = w[p.key];
|
|
4351
|
+
if (!T) return null;
|
|
4352
|
+
const [P, U] = T.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4353
|
+
return /* @__PURE__ */ Y("span", { children: [
|
|
4354
4354
|
P,
|
|
4355
4355
|
U && /* @__PURE__ */ l("span", { className: m, children: ` ${U}` })
|
|
4356
4356
|
] });
|
|
4357
|
-
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */
|
|
4358
|
-
/* @__PURE__ */ l("colgroup", { children: i.map((
|
|
4357
|
+
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ Y("table", { className: r, children: [
|
|
4358
|
+
/* @__PURE__ */ l("colgroup", { children: i.map((w, p, T) => /* @__PURE__ */ l(
|
|
4359
4359
|
"col",
|
|
4360
4360
|
{
|
|
4361
4361
|
style: {
|
|
4362
|
-
width: `calc(100%/${
|
|
4362
|
+
width: `calc(100%/${T.length})`
|
|
4363
4363
|
}
|
|
4364
4364
|
},
|
|
4365
4365
|
p
|
|
4366
4366
|
)) }),
|
|
4367
|
-
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: i.map((
|
|
4368
|
-
/* @__PURE__ */ l("tbody", { children: n.map((
|
|
4367
|
+
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: i.map((w, p) => /* @__PURE__ */ l("th", { children: w.title }, p)) }) }),
|
|
4368
|
+
/* @__PURE__ */ l("tbody", { children: n.map((w, p) => w ? /* @__PURE__ */ l("tr", { children: i.map((T, P) => {
|
|
4369
4369
|
const U = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === P;
|
|
4370
4370
|
return /* @__PURE__ */ l(
|
|
4371
4371
|
"td",
|
|
4372
4372
|
{
|
|
4373
4373
|
onMouseLeave: U ? E : void 0,
|
|
4374
|
-
children: /* @__PURE__ */
|
|
4375
|
-
/* @__PURE__ */ l("span", { children:
|
|
4376
|
-
!pn(
|
|
4374
|
+
children: /* @__PURE__ */ Y("div", { className: s, children: [
|
|
4375
|
+
/* @__PURE__ */ l("span", { children: T.isColorContentsCurlyBrackets ? A({ row: w, col: T }) : w[T.key] }),
|
|
4376
|
+
!pn(w[T.key]) && T.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4377
4377
|
ge,
|
|
4378
4378
|
{
|
|
4379
4379
|
className: _({
|
|
@@ -4382,9 +4382,9 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4382
4382
|
}),
|
|
4383
4383
|
name: U ? re.Check : re.Copy,
|
|
4384
4384
|
onClick: () => {
|
|
4385
|
-
const J =
|
|
4385
|
+
const J = w[T.key];
|
|
4386
4386
|
if (!J) return null;
|
|
4387
|
-
|
|
4387
|
+
b({
|
|
4388
4388
|
text: J,
|
|
4389
4389
|
rowIndex: p,
|
|
4390
4390
|
colIndex: P
|
|
@@ -4397,17 +4397,17 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4397
4397
|
`${p}:${P}`
|
|
4398
4398
|
);
|
|
4399
4399
|
}) }, p) : null) })
|
|
4400
|
-
] }) :
|
|
4400
|
+
] }) : h(), V = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ l(
|
|
4401
4401
|
"div",
|
|
4402
4402
|
{
|
|
4403
4403
|
className: _({
|
|
4404
4404
|
[he.spStringsGroup]: !0
|
|
4405
4405
|
}),
|
|
4406
|
-
children: n.map((
|
|
4407
|
-
if (pn(
|
|
4406
|
+
children: n.map((w, p) => w ? /* @__PURE__ */ l("div", { children: i.map((T, P) => {
|
|
4407
|
+
if (pn(w[T.key]))
|
|
4408
4408
|
return null;
|
|
4409
4409
|
const U = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === P;
|
|
4410
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ Y(
|
|
4411
4411
|
"div",
|
|
4412
4412
|
{
|
|
4413
4413
|
className: _({
|
|
@@ -4421,18 +4421,18 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4421
4421
|
className: _({
|
|
4422
4422
|
[he.spStringsGroup__groupItemHeader]: !0
|
|
4423
4423
|
}),
|
|
4424
|
-
children:
|
|
4424
|
+
children: T.title
|
|
4425
4425
|
}
|
|
4426
4426
|
),
|
|
4427
|
-
/* @__PURE__ */
|
|
4427
|
+
/* @__PURE__ */ Y(
|
|
4428
4428
|
"div",
|
|
4429
4429
|
{
|
|
4430
4430
|
className: _({
|
|
4431
4431
|
[he.spStringsGroup__groupItemContent]: !0
|
|
4432
4432
|
}),
|
|
4433
4433
|
children: [
|
|
4434
|
-
/* @__PURE__ */ l("span", { children:
|
|
4435
|
-
|
|
4434
|
+
/* @__PURE__ */ l("span", { children: w[T.key] }),
|
|
4435
|
+
T.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4436
4436
|
ge,
|
|
4437
4437
|
{
|
|
4438
4438
|
className: _({
|
|
@@ -4441,9 +4441,9 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4441
4441
|
}),
|
|
4442
4442
|
name: U ? re.Check : re.Copy,
|
|
4443
4443
|
onClick: () => {
|
|
4444
|
-
const J =
|
|
4444
|
+
const J = w[T.key];
|
|
4445
4445
|
if (!J) return null;
|
|
4446
|
-
|
|
4446
|
+
b({
|
|
4447
4447
|
text: J,
|
|
4448
4448
|
rowIndex: p,
|
|
4449
4449
|
colIndex: P
|
|
@@ -4460,8 +4460,8 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4460
4460
|
);
|
|
4461
4461
|
}) }, p) : null)
|
|
4462
4462
|
}
|
|
4463
|
-
) :
|
|
4464
|
-
return o ? u ? L() :
|
|
4463
|
+
) : h();
|
|
4464
|
+
return o ? u ? L() : V() : L();
|
|
4465
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 = {
|
|
4466
4466
|
spTabs: xs,
|
|
4467
4467
|
spTabs_separated: gs,
|
|
@@ -4472,72 +4472,74 @@ const Ar = (e) => `not ${e}`, Rr = (e, t) => {
|
|
|
4472
4472
|
spTabs__tabElement_active: bs,
|
|
4473
4473
|
spTabs__triggerTooltip: ys,
|
|
4474
4474
|
"spTabs--variant-filled": "_spTabs--variant-filled_1citb_93"
|
|
4475
|
-
},
|
|
4475
|
+
}, Ms = (e) => {
|
|
4476
4476
|
const {
|
|
4477
4477
|
panes: t,
|
|
4478
4478
|
isSeparated: n = !1,
|
|
4479
4479
|
classNameRoot: o,
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4480
|
+
classNameBaseTooltipRoot: a,
|
|
4481
|
+
variant: i = "contained",
|
|
4482
|
+
size: r = "md"
|
|
4483
|
+
} = e, s = _({
|
|
4483
4484
|
[Ne.spTabs]: !0,
|
|
4484
4485
|
[Ne.spTabs_separated]: n,
|
|
4485
|
-
[Ne[`spTabs--variant-${
|
|
4486
|
-
[Ne[`spTabs--size-${
|
|
4486
|
+
[Ne[`spTabs--variant-${i}`]]: i,
|
|
4487
|
+
[Ne[`spTabs--size-${r}`]]: r,
|
|
4487
4488
|
...o && { [o]: !0 }
|
|
4488
|
-
}),
|
|
4489
|
+
}), m = _({
|
|
4489
4490
|
[Ne.spTabs__triggerTooltip]: !0
|
|
4490
|
-
}),
|
|
4491
|
-
switch (
|
|
4491
|
+
}), c = () => {
|
|
4492
|
+
switch (r) {
|
|
4492
4493
|
case "md":
|
|
4493
4494
|
return "p2";
|
|
4494
4495
|
case "lg":
|
|
4495
4496
|
return "p1";
|
|
4496
4497
|
}
|
|
4497
4498
|
};
|
|
4498
|
-
return /* @__PURE__ */ l("div", { className:
|
|
4499
|
-
const { name:
|
|
4500
|
-
return /* @__PURE__ */
|
|
4499
|
+
return /* @__PURE__ */ l("div", { className: s, children: t.map((u, d) => {
|
|
4500
|
+
const { name: g, active: b, onClick: E, infoTooltipText: h } = u;
|
|
4501
|
+
return /* @__PURE__ */ Y(
|
|
4501
4502
|
"div",
|
|
4502
4503
|
{
|
|
4503
4504
|
className: _({
|
|
4504
4505
|
[Ne.spTabs__tabElement]: !0,
|
|
4505
|
-
[Ne.spTabs__tabElement_active]:
|
|
4506
|
+
[Ne.spTabs__tabElement_active]: b
|
|
4506
4507
|
}),
|
|
4507
|
-
onClick:
|
|
4508
|
+
onClick: E,
|
|
4508
4509
|
children: [
|
|
4509
|
-
/* @__PURE__ */ l(Se, { type:
|
|
4510
|
-
!!
|
|
4510
|
+
/* @__PURE__ */ l(Se, { type: c(), children: g }),
|
|
4511
|
+
!!h && /* @__PURE__ */ l(
|
|
4511
4512
|
Qe,
|
|
4512
4513
|
{
|
|
4513
|
-
classNameTriggerTooltip:
|
|
4514
|
-
text:
|
|
4514
|
+
classNameTriggerTooltip: m,
|
|
4515
|
+
text: h,
|
|
4516
|
+
classNameBaseTooltipRoot: a
|
|
4515
4517
|
}
|
|
4516
4518
|
)
|
|
4517
4519
|
]
|
|
4518
4520
|
},
|
|
4519
|
-
|
|
4521
|
+
u.key || d
|
|
4520
4522
|
);
|
|
4521
4523
|
}) });
|
|
4522
4524
|
}, ws = "_spTextWithLabel_1dr7p_1", ks = {
|
|
4523
4525
|
spTextWithLabel: ws
|
|
4524
4526
|
}, Ws = (e) => {
|
|
4525
4527
|
const { children: t, label: n, style: o, ...a } = e;
|
|
4526
|
-
return /* @__PURE__ */
|
|
4528
|
+
return /* @__PURE__ */ Y("div", { className: ks.spTextWithLabel, style: { ...o }, children: [
|
|
4527
4529
|
/* @__PURE__ */ l(jt, { label: n }),
|
|
4528
4530
|
/* @__PURE__ */ l(Se, { ...a, children: t })
|
|
4529
4531
|
] });
|
|
4530
4532
|
};
|
|
4531
4533
|
export {
|
|
4532
4534
|
Ss as Accordion,
|
|
4533
|
-
|
|
4535
|
+
Bo as ApplyButtons,
|
|
4534
4536
|
mn as BaseTooltip,
|
|
4535
4537
|
yt as Button,
|
|
4536
4538
|
Is as Checkbox,
|
|
4537
4539
|
js as Confirm,
|
|
4538
|
-
|
|
4540
|
+
Rs as ContextMenu,
|
|
4539
4541
|
wi as DefaultDropzone,
|
|
4540
|
-
|
|
4542
|
+
As as Dropdown,
|
|
4541
4543
|
re as EIconName,
|
|
4542
4544
|
ie as ETooltipPosition,
|
|
4543
4545
|
Di as EllipsisTextWithTooltip,
|
|
@@ -4555,8 +4557,8 @@ export {
|
|
|
4555
4557
|
Fs as Select,
|
|
4556
4558
|
zs as Skeleton,
|
|
4557
4559
|
wo as Spinner,
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
+
Bs as Table,
|
|
4561
|
+
Ms as Tabs,
|
|
4560
4562
|
Se as Text,
|
|
4561
4563
|
Ws as TextWithLabel,
|
|
4562
4564
|
It as Tooltip,
|