test-stpr-ui-kit 0.5.20 → 0.5.22
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,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as W, jsx as c, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import Ve, { useState as oe, useEffect as re, useRef as ve, useCallback as he, useLayoutEffect as Xo, createContext as xo, useContext as Zo, useMemo as De, useReducer as Qo, forwardRef as Jo, useImperativeHandle as en, Fragment as tn } from "react";
|
|
4
4
|
import on from "react-dom";
|
|
@@ -11,7 +11,7 @@ import './test-stpr-ui-kit.css';function ho(e) {
|
|
|
11
11
|
} else for (o in e) e[o] && (n && (n += " "), n += o);
|
|
12
12
|
return n;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function _() {
|
|
15
15
|
for (var e, t, o = 0, n = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (t = ho(e)) && (n && (n += " "), n += t);
|
|
16
16
|
return n;
|
|
17
17
|
}
|
|
@@ -82,43 +82,43 @@ const de = (e) => {
|
|
|
82
82
|
level: p = 1,
|
|
83
83
|
classNameRoot: l,
|
|
84
84
|
classNameHeader: d,
|
|
85
|
-
classNameTitle:
|
|
85
|
+
classNameTitle: u,
|
|
86
86
|
classNameIcon: g,
|
|
87
87
|
classNameChildrenWrapper: h
|
|
88
|
-
} = e, [x, b] = oe(n),
|
|
88
|
+
} = e, [x, b] = oe(n), I = () => {
|
|
89
89
|
a || (i == null || i(!x), b(!x));
|
|
90
|
-
}, j =
|
|
90
|
+
}, j = _({
|
|
91
91
|
[ce.spAccordion]: !0,
|
|
92
92
|
[ce.spAccordion_open]: x,
|
|
93
93
|
[ce.spAccordion_noOpen]: !x,
|
|
94
94
|
[ce.spAccordion_noBorder]: r,
|
|
95
95
|
[ce.spAccordion_noPadding]: s,
|
|
96
96
|
...l && { [l]: !0 }
|
|
97
|
-
}), z =
|
|
97
|
+
}), z = _({
|
|
98
98
|
[ce.spAccordion__header]: !0,
|
|
99
99
|
...d && { [d]: !0 }
|
|
100
|
-
}), R =
|
|
100
|
+
}), R = _({
|
|
101
101
|
[ce.spAccordion__name]: !0,
|
|
102
102
|
[ce[`spAccordion__name--level-${p}`]]: p,
|
|
103
103
|
[ce.spAccordion__name_hiddenExpand]: a,
|
|
104
|
-
...
|
|
105
|
-
}), w =
|
|
104
|
+
...u && { [u]: !0 }
|
|
105
|
+
}), w = _({
|
|
106
106
|
[ce.spAccordion__icon]: !0,
|
|
107
107
|
[ce.spAccordion__icon_open]: x,
|
|
108
108
|
[ce.spAccordion__icon_hidden]: a,
|
|
109
109
|
...g && { [g]: !0 }
|
|
110
|
-
}), m =
|
|
110
|
+
}), m = _({
|
|
111
111
|
[ce.spAccordion__childrenWrapper]: !0,
|
|
112
112
|
[ce.spAccordion__childrenWrapper_open]: x,
|
|
113
113
|
...h && { [h]: !0 }
|
|
114
|
-
}), N =
|
|
114
|
+
}), N = _({
|
|
115
115
|
[ce.spAccordion__content]: !0,
|
|
116
116
|
[ce.spAccordion__content_open]: x
|
|
117
117
|
});
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */ c("div", { className: R, children: /* @__PURE__ */ c("span", { onClick:
|
|
121
|
-
/* @__PURE__ */ c(de, { onClick:
|
|
118
|
+
return /* @__PURE__ */ W("div", { className: j, children: [
|
|
119
|
+
/* @__PURE__ */ W("div", { className: z, children: [
|
|
120
|
+
/* @__PURE__ */ c("div", { className: R, children: /* @__PURE__ */ c("span", { onClick: I, children: t }) }),
|
|
121
|
+
/* @__PURE__ */ c(de, { onClick: I, className: w, name: D.ChevronDown })
|
|
122
122
|
] }),
|
|
123
123
|
/* @__PURE__ */ c("div", { className: m, children: /* @__PURE__ */ c("div", { className: N, children: o }) })
|
|
124
124
|
] });
|
|
@@ -135,7 +135,7 @@ const de = (e) => {
|
|
|
135
135
|
return /* @__PURE__ */ c(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
|
-
className:
|
|
138
|
+
className: _(Ut.spinner, Ut[`spinner--${t}`], n),
|
|
139
139
|
"aria-label": "Loading",
|
|
140
140
|
role: "status",
|
|
141
141
|
style: { color: o }
|
|
@@ -167,33 +167,33 @@ const de = (e) => {
|
|
|
167
167
|
disabled: p = !1,
|
|
168
168
|
type: l = "button",
|
|
169
169
|
iconPosition: d = "start",
|
|
170
|
-
form:
|
|
170
|
+
form: u,
|
|
171
171
|
children: g,
|
|
172
172
|
loading: h = !1,
|
|
173
173
|
isFullWidth: x = !1,
|
|
174
174
|
isOnlyIcon: b = !1,
|
|
175
|
-
noPadding:
|
|
175
|
+
noPadding: I = !1,
|
|
176
176
|
classNameRoot: j,
|
|
177
177
|
classNameTextRoot: z,
|
|
178
178
|
classNameIconContainerRoot: R
|
|
179
|
-
} = e, w = (
|
|
180
|
-
p || a == null || a(
|
|
179
|
+
} = e, w = (O) => {
|
|
180
|
+
p || a == null || a(O);
|
|
181
181
|
}, m = () => {
|
|
182
|
-
const
|
|
182
|
+
const O = _({
|
|
183
183
|
[Ce.spButton__text]: !0,
|
|
184
184
|
...z && { [z]: !0 }
|
|
185
|
-
}),
|
|
185
|
+
}), q = _({
|
|
186
186
|
[Ce.spButton__iconContainer]: !0,
|
|
187
187
|
...R && { [R]: !0 }
|
|
188
|
-
}),
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
d === "start" &&
|
|
191
|
-
!b && g && /* @__PURE__ */ c("div", { className:
|
|
192
|
-
d === "end" &&
|
|
188
|
+
}), G = () => h ? /* @__PURE__ */ c("div", { className: q, children: /* @__PURE__ */ c(Dt, { size: "md", classNameRoot: Ce.spButton__spinner }) }) : i ? /* @__PURE__ */ c("div", { className: q, children: /* @__PURE__ */ c(de, { name: i, rotate: s }) }) : r ? /* @__PURE__ */ c("div", { className: q, children: r }) : null;
|
|
189
|
+
return /* @__PURE__ */ W($e, { children: [
|
|
190
|
+
d === "start" && G(),
|
|
191
|
+
!b && g && /* @__PURE__ */ c("div", { className: O, children: g }),
|
|
192
|
+
d === "end" && G()
|
|
193
193
|
] });
|
|
194
|
-
}, N =
|
|
194
|
+
}, N = _({
|
|
195
195
|
[Ce.spButton]: !0,
|
|
196
|
-
[Ce.spButton_noPadding]:
|
|
196
|
+
[Ce.spButton_noPadding]: I,
|
|
197
197
|
[Ce.spButton_onlyIcon]: b,
|
|
198
198
|
[Ce[`spButton_${o}`]]: o,
|
|
199
199
|
[Ce[`spButton_${t}`]]: t,
|
|
@@ -210,7 +210,7 @@ const de = (e) => {
|
|
|
210
210
|
onClick: w,
|
|
211
211
|
disabled: p,
|
|
212
212
|
type: l,
|
|
213
|
-
form:
|
|
213
|
+
form: u,
|
|
214
214
|
children: m()
|
|
215
215
|
}
|
|
216
216
|
);
|
|
@@ -227,48 +227,50 @@ const de = (e) => {
|
|
|
227
227
|
const {
|
|
228
228
|
applyButtonsMobileDirection: t = "column",
|
|
229
229
|
applyButtonsAlign: o = "center",
|
|
230
|
-
cancelBtnContent: n,
|
|
230
|
+
cancelBtnContent: n = "Отменить",
|
|
231
231
|
cancelBtnIconName: a,
|
|
232
232
|
submitBtnIconName: i,
|
|
233
233
|
cancelBtnDisabled: r,
|
|
234
|
-
submitBtnContent: s,
|
|
234
|
+
submitBtnContent: s = "Подтвердить",
|
|
235
235
|
formId: p,
|
|
236
236
|
disabled: l,
|
|
237
237
|
onClose: d,
|
|
238
|
-
submit:
|
|
239
|
-
loading: g
|
|
240
|
-
|
|
238
|
+
submit: u,
|
|
239
|
+
loading: g,
|
|
240
|
+
cancelBtnVariant: h = "secondary",
|
|
241
|
+
submitBtnVariant: x = "primary"
|
|
242
|
+
} = e, b = _({
|
|
241
243
|
[ze.spApplyButtons]: !0,
|
|
242
244
|
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
243
245
|
[ze[`spApplyButtons_align-${o}`]]: o
|
|
244
|
-
}),
|
|
246
|
+
}), I = _({
|
|
245
247
|
[ze.spApplyButtons__submit]: !0
|
|
246
|
-
}),
|
|
248
|
+
}), j = _({
|
|
247
249
|
[ze.spApplyButtons__cancel]: !0
|
|
248
250
|
});
|
|
249
|
-
return /* @__PURE__ */
|
|
250
|
-
|
|
251
|
+
return /* @__PURE__ */ W("div", { className: b, children: [
|
|
252
|
+
d && /* @__PURE__ */ c(
|
|
251
253
|
tt,
|
|
252
254
|
{
|
|
253
255
|
type: "button",
|
|
254
|
-
variant:
|
|
256
|
+
variant: h,
|
|
255
257
|
iconName: a,
|
|
256
|
-
classNameRoot:
|
|
258
|
+
classNameRoot: j,
|
|
257
259
|
disabled: r,
|
|
258
260
|
onClick: d,
|
|
259
261
|
children: n
|
|
260
262
|
}
|
|
261
263
|
),
|
|
262
|
-
|
|
264
|
+
u && /* @__PURE__ */ c(
|
|
263
265
|
tt,
|
|
264
266
|
{
|
|
265
267
|
type: "submit",
|
|
266
|
-
variant:
|
|
268
|
+
variant: x,
|
|
267
269
|
iconName: i,
|
|
268
|
-
classNameRoot:
|
|
270
|
+
classNameRoot: I,
|
|
269
271
|
form: p || void 0,
|
|
270
272
|
disabled: l,
|
|
271
|
-
onClick:
|
|
273
|
+
onClick: u,
|
|
272
274
|
loading: g,
|
|
273
275
|
children: s
|
|
274
276
|
}
|
|
@@ -315,7 +317,7 @@ const de = (e) => {
|
|
|
315
317
|
zIndex: o = 999,
|
|
316
318
|
isHiddenModal: n = !1,
|
|
317
319
|
classNameRoot: a
|
|
318
|
-
} = e, i = document.body, r =
|
|
320
|
+
} = e, i = document.body, r = _({
|
|
319
321
|
[qt.layer]: !0,
|
|
320
322
|
[qt.layer_hidden]: n,
|
|
321
323
|
...a && { [a]: !0 }
|
|
@@ -347,13 +349,13 @@ const de = (e) => {
|
|
|
347
349
|
isEllipsis: p = !1,
|
|
348
350
|
isCursorPointer: l = !1,
|
|
349
351
|
isCursorPointerByOnClick: d = !0,
|
|
350
|
-
classNameRoot:
|
|
351
|
-
} = e, g = () => s && d ? !0 : l, h =
|
|
352
|
+
classNameRoot: u
|
|
353
|
+
} = e, g = () => s && d ? !0 : l, h = _({
|
|
352
354
|
[Xe.spText]: !0,
|
|
353
355
|
[Xe.spText_ellipsis]: p,
|
|
354
356
|
[Xe.spText_cursorPointer]: g(),
|
|
355
357
|
[Xe[`spText_type-${o}`]]: o,
|
|
356
|
-
...
|
|
358
|
+
...u && { [u]: !0 }
|
|
357
359
|
});
|
|
358
360
|
return /* @__PURE__ */ c(
|
|
359
361
|
"span",
|
|
@@ -400,37 +402,37 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
400
402
|
modalVerticalAlign: p = "top",
|
|
401
403
|
textAlign: l = "left",
|
|
402
404
|
onClose: d,
|
|
403
|
-
header:
|
|
405
|
+
header: u,
|
|
404
406
|
subHeader: g,
|
|
405
407
|
footer: h,
|
|
406
408
|
size: x = "lg"
|
|
407
|
-
} = e, b =
|
|
409
|
+
} = e, b = _({
|
|
408
410
|
[ge.modalWrapper]: !0,
|
|
409
411
|
[ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
|
|
410
412
|
[ge[`modalWrapper--textAlign-${l}`]]: l
|
|
411
|
-
}),
|
|
413
|
+
}), I = _({
|
|
412
414
|
[ge.modalWrapper__modal]: !0,
|
|
413
415
|
[ge[`modalWrapper__modal--size-${x}`]]: x,
|
|
414
416
|
...r && { [r]: !0 }
|
|
415
|
-
}), j =
|
|
417
|
+
}), j = _({
|
|
416
418
|
[ge.modalWrapper__closeButton]: !0,
|
|
417
419
|
[ge[`modalWrapper__closeButton--size-${x}`]]: x
|
|
418
|
-
}), z =
|
|
420
|
+
}), z = _({
|
|
419
421
|
[ge.modalWrapper__closeButtonIconContainer]: !0,
|
|
420
422
|
[ge[`modalWrapper__closeButtonIconContainer--size-${x}`]]: x
|
|
421
|
-
}), R =
|
|
423
|
+
}), R = _({
|
|
422
424
|
[ge.modalWrapper__content]: !0
|
|
423
|
-
}), w =
|
|
425
|
+
}), w = _({
|
|
424
426
|
[ge.modalWrapper__header]: !0
|
|
425
|
-
}), m =
|
|
427
|
+
}), m = _({
|
|
426
428
|
[ge.modalWrapper__subHeader]: !0,
|
|
427
|
-
[ge.modalWrapper__subHeader_onlySubHeader]: !
|
|
428
|
-
}), N =
|
|
429
|
+
[ge.modalWrapper__subHeader_onlySubHeader]: !u
|
|
430
|
+
}), N = _({
|
|
429
431
|
[ge.modalWrapper__footer]: !0
|
|
430
432
|
});
|
|
431
|
-
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: b, children: /* @__PURE__ */
|
|
432
|
-
(
|
|
433
|
-
typeof
|
|
433
|
+
return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: b, children: /* @__PURE__ */ W("div", { className: I, style: s, children: [
|
|
434
|
+
(u || g) && /* @__PURE__ */ W("div", { className: w, children: [
|
|
435
|
+
typeof u == "string" ? /* @__PURE__ */ c(Ne, { type: "h3", children: u }) : u,
|
|
434
436
|
g && /* @__PURE__ */ c("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ c(Ne, { children: g }) : g })
|
|
435
437
|
] }),
|
|
436
438
|
a && /* @__PURE__ */ c("div", { className: R, children: a }),
|
|
@@ -460,18 +462,20 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
460
462
|
submitBtnIconName: p,
|
|
461
463
|
submit: l,
|
|
462
464
|
disabled: d,
|
|
463
|
-
formId:
|
|
465
|
+
formId: u,
|
|
464
466
|
onClose: g,
|
|
465
467
|
applyButtonsMobileDirection: h = "column",
|
|
466
468
|
applyButtonsAlign: x = "right",
|
|
467
469
|
modalVerticalAlign: b = "top",
|
|
468
|
-
textAlign:
|
|
470
|
+
textAlign: I = "left",
|
|
469
471
|
loading: j,
|
|
470
472
|
isVisibleCloseButton: z,
|
|
471
473
|
isHiddenModal: R,
|
|
472
474
|
size: w,
|
|
473
475
|
classNameRoot: m,
|
|
474
|
-
classNameLayerRoot: N
|
|
476
|
+
classNameLayerRoot: N,
|
|
477
|
+
submitBtnVariant: O,
|
|
478
|
+
cancelBtnVariant: q
|
|
475
479
|
} = e;
|
|
476
480
|
return /* @__PURE__ */ c(
|
|
477
481
|
ya,
|
|
@@ -480,7 +484,7 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
480
484
|
header: o,
|
|
481
485
|
onClose: g,
|
|
482
486
|
modalVerticalAlign: b,
|
|
483
|
-
textAlign:
|
|
487
|
+
textAlign: I,
|
|
484
488
|
subHeader: n,
|
|
485
489
|
isVisibleCloseButton: z,
|
|
486
490
|
isHiddenModal: R,
|
|
@@ -497,7 +501,9 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
497
501
|
cancelBtnDisabled: i,
|
|
498
502
|
submitBtnContent: s,
|
|
499
503
|
submitBtnIconName: p,
|
|
500
|
-
|
|
504
|
+
submitBtnVariant: O,
|
|
505
|
+
cancelBtnVariant: q,
|
|
506
|
+
formId: u,
|
|
501
507
|
disabled: d,
|
|
502
508
|
onClose: g,
|
|
503
509
|
submit: l,
|
|
@@ -518,7 +524,7 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
518
524
|
} = e, [p, l] = oe(o);
|
|
519
525
|
return re(() => {
|
|
520
526
|
l(o);
|
|
521
|
-
}, [o]), /* @__PURE__ */
|
|
527
|
+
}, [o]), /* @__PURE__ */ W($e, { children: [
|
|
522
528
|
t,
|
|
523
529
|
p && /* @__PURE__ */ c(
|
|
524
530
|
wa,
|
|
@@ -547,11 +553,11 @@ const ua = "_modalWrapper_1pg9r_43", _a = "_modalWrapper__modal_1pg9r_63", fa =
|
|
|
547
553
|
style: a,
|
|
548
554
|
classNameRoot: i,
|
|
549
555
|
classNameContentRoot: r
|
|
550
|
-
} = e, s =
|
|
556
|
+
} = e, s = _({
|
|
551
557
|
[ft.spBaseTooltip]: !0,
|
|
552
558
|
[ft.spBaseTooltip_noPadding]: n,
|
|
553
559
|
...i && { [i]: !0 }
|
|
554
|
-
}), p =
|
|
560
|
+
}), p = _({
|
|
555
561
|
[ft.spBaseTooltip__content]: !0,
|
|
556
562
|
...r && { [r]: !0 }
|
|
557
563
|
});
|
|
@@ -570,17 +576,17 @@ const Na = "_spBreadcrumb_8fr8j_43", Ea = "_spBreadcrumb__list_8fr8j_46", Sa = "
|
|
|
570
576
|
classNameRoot: t,
|
|
571
577
|
classNameListRoot: o,
|
|
572
578
|
crumbsList: n = []
|
|
573
|
-
} = e, a =
|
|
579
|
+
} = e, a = _({
|
|
574
580
|
[Me.spBreadcrumb]: !0,
|
|
575
581
|
...t && { [t]: !0 }
|
|
576
|
-
}), i =
|
|
582
|
+
}), i = _({
|
|
577
583
|
[Me.spBreadcrumb__list]: !0,
|
|
578
584
|
...o && { [o]: !0 }
|
|
579
585
|
});
|
|
580
|
-
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: p }, l) => /* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ c("nav", { "aria-label": "breadcrumb", className: a, children: /* @__PURE__ */ c("ol", { className: i, children: n.map(({ text: r, onClick: s, active: p }, l) => /* @__PURE__ */ W(
|
|
581
587
|
"li",
|
|
582
588
|
{
|
|
583
|
-
className:
|
|
589
|
+
className: _(
|
|
584
590
|
Me.spBreadcrumb__listItem,
|
|
585
591
|
p && Me.spBreadcrumb__listItem_active
|
|
586
592
|
),
|
|
@@ -620,76 +626,76 @@ const it = (e) => {
|
|
|
620
626
|
classNameTooltip: p,
|
|
621
627
|
position: l = pe.BottomLeft,
|
|
622
628
|
text: d,
|
|
623
|
-
noPadding:
|
|
629
|
+
noPadding: u,
|
|
624
630
|
classNameBaseTooltipRoot: g,
|
|
625
631
|
classNameBaseTooltipContentRoot: h,
|
|
626
632
|
styleTooltip: x
|
|
627
|
-
} = e, [b,
|
|
633
|
+
} = e, [b, I] = oe(!1), j = ve(null), z = ve(null), [R, w] = oe(!1);
|
|
628
634
|
Co(
|
|
629
635
|
[j, z],
|
|
630
636
|
() => {
|
|
631
|
-
s && s(),
|
|
637
|
+
s && s(), I(!1);
|
|
632
638
|
},
|
|
633
639
|
b
|
|
634
640
|
);
|
|
635
641
|
const m = (T) => {
|
|
636
|
-
n && T.stopPropagation(), !t && (b ? s && s() : r && r(),
|
|
637
|
-
}, [N,
|
|
642
|
+
n && T.stopPropagation(), !t && (b ? s && s() : r && r(), I((M) => o ? !M : !0));
|
|
643
|
+
}, [N, O] = oe({
|
|
638
644
|
visibility: "hidden",
|
|
639
645
|
opacity: 0,
|
|
640
646
|
left: "-9999px"
|
|
641
|
-
}), [
|
|
647
|
+
}), [q, G] = oe(!1), ne = he(() => {
|
|
642
648
|
if (!j.current || !z.current) return;
|
|
643
649
|
const T = j.current.getBoundingClientRect(), M = z.current.getBoundingClientRect();
|
|
644
|
-
let
|
|
650
|
+
let $ = 0, K = 0;
|
|
645
651
|
switch (l) {
|
|
646
652
|
case pe.Right:
|
|
647
|
-
|
|
653
|
+
$ = T.top + window.scrollY - (M.height - T.height) / 2, K = T.right + window.scrollX;
|
|
648
654
|
break;
|
|
649
655
|
case pe.RightTop:
|
|
650
|
-
|
|
656
|
+
$ = T.top + window.scrollY, K = T.right + window.scrollX;
|
|
651
657
|
break;
|
|
652
658
|
case pe.RightBottom:
|
|
653
|
-
|
|
659
|
+
$ = T.bottom + window.scrollY - M.height, K = T.right + window.scrollX;
|
|
654
660
|
break;
|
|
655
661
|
case pe.Left:
|
|
656
|
-
|
|
662
|
+
$ = T.top + window.scrollY - (M.height - T.height) / 2, K = T.left + window.scrollX - M.width;
|
|
657
663
|
break;
|
|
658
664
|
case pe.LeftTop:
|
|
659
|
-
|
|
665
|
+
$ = T.top + window.scrollY, K = T.left + window.scrollX - M.width;
|
|
660
666
|
break;
|
|
661
667
|
case pe.LeftBottom:
|
|
662
|
-
|
|
668
|
+
$ = T.bottom + window.scrollY - M.height, K = T.left + window.scrollX - M.width;
|
|
663
669
|
break;
|
|
664
670
|
case pe.Bottom:
|
|
665
|
-
|
|
671
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX - (M.width - T.width) / 2;
|
|
666
672
|
break;
|
|
667
673
|
case pe.BottomLeft:
|
|
668
|
-
|
|
674
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX;
|
|
669
675
|
break;
|
|
670
676
|
case pe.BottomRight:
|
|
671
|
-
|
|
677
|
+
$ = T.bottom + window.scrollY, K = T.right + window.scrollX - M.width;
|
|
672
678
|
break;
|
|
673
679
|
case pe.Top:
|
|
674
|
-
|
|
680
|
+
$ = T.top + window.scrollY - M.height, K = T.left + window.scrollX - (M.width - T.width) / 2;
|
|
675
681
|
break;
|
|
676
682
|
case pe.TopLeft:
|
|
677
|
-
|
|
683
|
+
$ = T.top + window.scrollY - M.height, K = T.left + window.scrollX;
|
|
678
684
|
break;
|
|
679
685
|
case pe.TopRight:
|
|
680
|
-
|
|
686
|
+
$ = T.top + window.scrollY - M.height, K = T.right + window.scrollX - M.width;
|
|
681
687
|
break;
|
|
682
688
|
default:
|
|
683
|
-
|
|
689
|
+
$ = T.bottom + window.scrollY, K = T.left + window.scrollX;
|
|
684
690
|
}
|
|
685
|
-
|
|
691
|
+
$ + M.height > window.innerHeight + window.scrollY && l.includes("bottom") ? $ = T.top + window.scrollY - M.height : $ < window.scrollY && l.includes("top") && ($ = T.bottom + window.scrollY), K + M.width > window.innerWidth + window.scrollX && l.includes("left") ? K = T.left + window.scrollX - M.width + T.width : K < window.scrollX && l.includes("right") && (K = T.right + window.scrollX - T.width), O((ee) => ({
|
|
686
692
|
...ee,
|
|
687
|
-
top: `${
|
|
688
|
-
left: `${
|
|
689
|
-
visibility: b ||
|
|
690
|
-
opacity: b ||
|
|
693
|
+
top: `${$}px`,
|
|
694
|
+
left: `${K}px`,
|
|
695
|
+
visibility: b || q ? "visible" : "hidden",
|
|
696
|
+
opacity: b || q ? 1 : 0
|
|
691
697
|
}));
|
|
692
|
-
}, [l, b,
|
|
698
|
+
}, [l, b, q]);
|
|
693
699
|
re(() => (w(!0), () => w(!1)), []), re(() => {
|
|
694
700
|
R && ne();
|
|
695
701
|
}, [R, ne]), re(() => {
|
|
@@ -699,22 +705,22 @@ const it = (e) => {
|
|
|
699
705
|
window.removeEventListener("resize", T), window.removeEventListener("scroll", T, !0);
|
|
700
706
|
};
|
|
701
707
|
}, [R, ne]);
|
|
702
|
-
const me =
|
|
708
|
+
const me = _({
|
|
703
709
|
...g && { [g]: !0 }
|
|
704
|
-
}), ue =
|
|
710
|
+
}), ue = _({
|
|
705
711
|
...h && { [h]: !0 }
|
|
706
|
-
}), le =
|
|
712
|
+
}), le = _({
|
|
707
713
|
[ko.spTooltip]: !0,
|
|
708
714
|
...p && { [p]: !0 }
|
|
709
715
|
}), Z = document.body;
|
|
710
|
-
return /* @__PURE__ */
|
|
716
|
+
return /* @__PURE__ */ W(
|
|
711
717
|
"div",
|
|
712
718
|
{
|
|
713
719
|
ref: j,
|
|
714
720
|
className: le,
|
|
715
721
|
onClick: m,
|
|
716
|
-
onMouseEnter: () => t &&
|
|
717
|
-
onMouseLeave: () => t &&
|
|
722
|
+
onMouseEnter: () => t && G(!0),
|
|
723
|
+
onMouseLeave: () => t && G(!1),
|
|
718
724
|
style: x,
|
|
719
725
|
children: [
|
|
720
726
|
i,
|
|
@@ -723,7 +729,7 @@ const it = (e) => {
|
|
|
723
729
|
{
|
|
724
730
|
style: N,
|
|
725
731
|
ref: z,
|
|
726
|
-
noPadding:
|
|
732
|
+
noPadding: u,
|
|
727
733
|
text: d,
|
|
728
734
|
classNameRoot: me,
|
|
729
735
|
classNameContentRoot: ue
|
|
@@ -733,7 +739,7 @@ const it = (e) => {
|
|
|
733
739
|
}
|
|
734
740
|
);
|
|
735
741
|
}, rt = (e) => {
|
|
736
|
-
const t = e.classNameTooltip, o =
|
|
742
|
+
const t = e.classNameTooltip, o = _({
|
|
737
743
|
[ko.spInfoTooltip]: !0,
|
|
738
744
|
...t && { [t]: !0 }
|
|
739
745
|
});
|
|
@@ -774,53 +780,53 @@ const it = (e) => {
|
|
|
774
780
|
value: p,
|
|
775
781
|
required: l,
|
|
776
782
|
tooltipPosition: d,
|
|
777
|
-
infoTooltipText:
|
|
783
|
+
infoTooltipText: u,
|
|
778
784
|
onMouseEnter: g,
|
|
779
785
|
classNameRoot: h,
|
|
780
786
|
classNameError: x
|
|
781
|
-
} = e, b =
|
|
787
|
+
} = e, b = _({
|
|
782
788
|
[xe.spCheckbox]: !0,
|
|
783
789
|
...h && { [h]: !0 }
|
|
784
|
-
}),
|
|
790
|
+
}), I = _({
|
|
785
791
|
[xe.spCheckbox__box]: !0,
|
|
786
792
|
[xe.spCheckbox__box_disabled]: n,
|
|
787
793
|
[xe.spCheckbox__box_error]: s
|
|
788
|
-
}), j =
|
|
794
|
+
}), j = _({
|
|
789
795
|
[xe.spCheckbox__box__checkmark]: !0,
|
|
790
796
|
[xe[`spCheckbox__box__checkmark--size-${t}`]]: t
|
|
791
|
-
}), z =
|
|
797
|
+
}), z = _({
|
|
792
798
|
[xe.spCheckbox__box__innerSquare]: !0,
|
|
793
799
|
[xe.spCheckbox__box__innerSquare_checked]: o,
|
|
794
800
|
[xe[`spCheckbox__box__innerSquare--size-${t}`]]: t
|
|
795
|
-
}), R =
|
|
801
|
+
}), R = _({
|
|
796
802
|
[xe.spCheckbox__control]: !0
|
|
797
|
-
}), w =
|
|
803
|
+
}), w = _({
|
|
798
804
|
[xe.spCheckbox__label]: !0
|
|
799
|
-
}), m =
|
|
805
|
+
}), m = _({
|
|
800
806
|
[xe.spCheckbox__required]: !0
|
|
801
|
-
}), N =
|
|
807
|
+
}), N = _({
|
|
802
808
|
[xe.spCheckbox__error]: !0,
|
|
803
809
|
...x && { [x]: !0 }
|
|
804
|
-
}),
|
|
810
|
+
}), O = _({
|
|
805
811
|
[xe.spCheckbox__tooltip]: !0
|
|
806
812
|
});
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ W("div", { className: b, onMouseEnter: g, children: [
|
|
814
|
+
/* @__PURE__ */ W("label", { className: I, children: [
|
|
809
815
|
/* @__PURE__ */ c(
|
|
810
816
|
"input",
|
|
811
817
|
{
|
|
812
818
|
type: "checkbox",
|
|
813
819
|
className: R,
|
|
814
820
|
checked: o,
|
|
815
|
-
onChange: (
|
|
816
|
-
!n && a && a(
|
|
821
|
+
onChange: (G) => {
|
|
822
|
+
!n && a && a(G, { name: i, checked: !o, value: p });
|
|
817
823
|
}
|
|
818
824
|
}
|
|
819
825
|
),
|
|
820
826
|
/* @__PURE__ */ c("span", { className: j, children: /* @__PURE__ */ c("span", { className: z }) }),
|
|
821
827
|
r && /* @__PURE__ */ c("span", { className: w, children: r }),
|
|
822
828
|
l && /* @__PURE__ */ c("div", { className: m, children: "*" }),
|
|
823
|
-
|
|
829
|
+
u && /* @__PURE__ */ c("div", { className: O, children: /* @__PURE__ */ c(rt, { hover: !0, position: d, text: u }) })
|
|
824
830
|
] }),
|
|
825
831
|
s && /* @__PURE__ */ c("div", { className: N, children: s })
|
|
826
832
|
] });
|
|
@@ -829,16 +835,16 @@ const it = (e) => {
|
|
|
829
835
|
spContextMenu__item: Ya,
|
|
830
836
|
spContextMenu__item_deleteItem: Ga
|
|
831
837
|
}, Gp = (e) => {
|
|
832
|
-
const { onClickItem: t, options: o, classNameRoot: n } = e, a =
|
|
838
|
+
const { onClickItem: t, options: o, classNameRoot: n } = e, a = _({
|
|
833
839
|
[vt.spContextMenu]: !0,
|
|
834
840
|
...n && { [n]: !0 }
|
|
835
841
|
});
|
|
836
842
|
return /* @__PURE__ */ c("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
837
843
|
const r = i.key === "delete";
|
|
838
|
-
return /* @__PURE__ */
|
|
844
|
+
return /* @__PURE__ */ W(
|
|
839
845
|
"li",
|
|
840
846
|
{
|
|
841
|
-
className:
|
|
847
|
+
className: _({
|
|
842
848
|
[vt.spContextMenu__item]: !0,
|
|
843
849
|
[vt.spContextMenu__item_deleteItem]: r
|
|
844
850
|
}),
|
|
@@ -855,7 +861,7 @@ const it = (e) => {
|
|
|
855
861
|
}) });
|
|
856
862
|
}, Ka = (e) => {
|
|
857
863
|
const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
|
|
858
|
-
return /* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ W("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
859
865
|
/* @__PURE__ */ c("input", { ...i({}), disabled: n, name: a }),
|
|
860
866
|
o
|
|
861
867
|
] });
|
|
@@ -875,18 +881,18 @@ const it = (e) => {
|
|
|
875
881
|
dropdownList: n = [],
|
|
876
882
|
dropdownPosition: a = pe.BottomRight,
|
|
877
883
|
classNameRoot: i
|
|
878
|
-
} = e, r =
|
|
884
|
+
} = e, r = _({
|
|
879
885
|
[Se.spDropdown]: !0,
|
|
880
886
|
...i && { [i]: !0 }
|
|
881
|
-
}), s =
|
|
887
|
+
}), s = _({
|
|
882
888
|
[Se.spDropdown__labelText]: !0
|
|
883
|
-
}), p =
|
|
889
|
+
}), p = _({
|
|
884
890
|
[Se.spDropdown__tooltipContainer]: !0
|
|
885
|
-
}), l =
|
|
891
|
+
}), l = _({
|
|
886
892
|
[Se.spDropdown__dropdownList]: !0
|
|
887
|
-
}), d =
|
|
893
|
+
}), d = _({
|
|
888
894
|
[Se.spDropdown__dropdownListHeader]: !0
|
|
889
|
-
}),
|
|
895
|
+
}), u = _({
|
|
890
896
|
[Se.spDropdown__downloadListItemDescription]: !0
|
|
891
897
|
}), [g, h] = oe(!1);
|
|
892
898
|
return /* @__PURE__ */ c(
|
|
@@ -895,29 +901,29 @@ const it = (e) => {
|
|
|
895
901
|
hover: !1,
|
|
896
902
|
triggerAction: () => h(!0),
|
|
897
903
|
actionOnClose: () => h(!1),
|
|
898
|
-
text: /* @__PURE__ */
|
|
904
|
+
text: /* @__PURE__ */ W("div", { className: l, children: [
|
|
899
905
|
o && /* @__PURE__ */ c("div", { className: d, children: o }),
|
|
900
|
-
n.map((b,
|
|
906
|
+
n.map((b, I) => /* @__PURE__ */ W(
|
|
901
907
|
"div",
|
|
902
908
|
{
|
|
903
|
-
className:
|
|
909
|
+
className: _({
|
|
904
910
|
[Se.spDropdown__dopdownListItem]: !0,
|
|
905
911
|
[Se.spDropdown__dopdownListItem_textCenter]: b.textCenter
|
|
906
912
|
}),
|
|
907
913
|
onClick: b.onClick,
|
|
908
914
|
children: [
|
|
909
915
|
b.name,
|
|
910
|
-
b.description && /* @__PURE__ */ c("span", { className:
|
|
916
|
+
b.description && /* @__PURE__ */ c("span", { className: u, children: b.description })
|
|
911
917
|
]
|
|
912
918
|
},
|
|
913
|
-
|
|
919
|
+
I
|
|
914
920
|
))
|
|
915
921
|
] }),
|
|
916
922
|
position: a,
|
|
917
923
|
noPadding: !0,
|
|
918
924
|
isToggleClick: !0,
|
|
919
925
|
isStopPropagationClickOnTrigger: !0,
|
|
920
|
-
trigger: /* @__PURE__ */
|
|
926
|
+
trigger: /* @__PURE__ */ W("div", { className: r, children: [
|
|
921
927
|
/* @__PURE__ */ c("div", { className: s, children: t }),
|
|
922
928
|
/* @__PURE__ */ c("div", { className: p, children: /* @__PURE__ */ c(de, { name: D.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
923
929
|
] })
|
|
@@ -939,16 +945,16 @@ const it = (e) => {
|
|
|
939
945
|
classNameBaseTooltipRoot: r,
|
|
940
946
|
defaultTooltipPosition: s,
|
|
941
947
|
...p
|
|
942
|
-
} = e, l = ve(null), d = ve(null), [
|
|
948
|
+
} = e, l = ve(null), d = ve(null), [u, g] = oe(!1), h = gt(t), x = h !== t, b = () => {
|
|
943
949
|
l.current && g(l.current.scrollWidth > l.current.clientWidth);
|
|
944
950
|
};
|
|
945
951
|
Xo(() => (b(), window.addEventListener("resize", b), () => {
|
|
946
952
|
window.removeEventListener("resize", b);
|
|
947
953
|
}), [t, h]);
|
|
948
|
-
const
|
|
954
|
+
const I = _({
|
|
949
955
|
[$t.ellipsisTextWithTooltip]: !0,
|
|
950
956
|
...n && { [n]: !0 }
|
|
951
|
-
}), j =
|
|
957
|
+
}), j = _({
|
|
952
958
|
[$t.ellipsisTextWithTooltip__tooltip]: !0,
|
|
953
959
|
...a && { [a]: !0 }
|
|
954
960
|
});
|
|
@@ -960,11 +966,11 @@ const it = (e) => {
|
|
|
960
966
|
classNameBaseTooltipRoot: r,
|
|
961
967
|
classNameTooltip: j,
|
|
962
968
|
classNameBaseTooltipContentRoot: i,
|
|
963
|
-
isVisibleTooltip:
|
|
969
|
+
isVisibleTooltip: u,
|
|
964
970
|
text: t,
|
|
965
|
-
trigger: /* @__PURE__ */
|
|
966
|
-
/* @__PURE__ */ c(Ne, { ...p, classNameRoot:
|
|
967
|
-
o &&
|
|
971
|
+
trigger: /* @__PURE__ */ W($e, { children: [
|
|
972
|
+
/* @__PURE__ */ c(Ne, { ...p, classNameRoot: I, isEllipsis: !0, ref: l, children: t }),
|
|
973
|
+
o && u && x && /* @__PURE__ */ W($e, { children: [
|
|
968
974
|
/* @__PURE__ */ c(
|
|
969
975
|
"div",
|
|
970
976
|
{
|
|
@@ -975,7 +981,7 @@ const it = (e) => {
|
|
|
975
981
|
pointerEvents: "none",
|
|
976
982
|
whiteSpace: "nowrap"
|
|
977
983
|
},
|
|
978
|
-
children: /* @__PURE__ */ c(Ne, { ...p, classNameRoot:
|
|
984
|
+
children: /* @__PURE__ */ c(Ne, { ...p, classNameRoot: I, children: gt(t) })
|
|
979
985
|
}
|
|
980
986
|
),
|
|
981
987
|
/* @__PURE__ */ c(
|
|
@@ -983,7 +989,7 @@ const it = (e) => {
|
|
|
983
989
|
{
|
|
984
990
|
style: { width: "fit-content" },
|
|
985
991
|
...p,
|
|
986
|
-
classNameRoot:
|
|
992
|
+
classNameRoot: I,
|
|
987
993
|
children: gt(t)
|
|
988
994
|
}
|
|
989
995
|
)
|
|
@@ -1008,7 +1014,7 @@ const it = (e) => {
|
|
|
1008
1014
|
fullWidth: r = !0,
|
|
1009
1015
|
classNameRoot: s,
|
|
1010
1016
|
...p
|
|
1011
|
-
} = e, l =
|
|
1017
|
+
} = e, l = _({
|
|
1012
1018
|
[qe.spForm]: !0,
|
|
1013
1019
|
[qe[`spForm--size-${t}`]]: t,
|
|
1014
1020
|
[qe.spForm_fullWidth]: r,
|
|
@@ -1016,8 +1022,8 @@ const it = (e) => {
|
|
|
1016
1022
|
[qe.spForm_withSeparator]: i && a,
|
|
1017
1023
|
...s && { [s]: !0 }
|
|
1018
1024
|
});
|
|
1019
|
-
return /* @__PURE__ */ c("form", { ...p, onSubmit: (
|
|
1020
|
-
|
|
1025
|
+
return /* @__PURE__ */ c("form", { ...p, onSubmit: (u) => {
|
|
1026
|
+
u.preventDefault(), n && n();
|
|
1021
1027
|
}, className: l, children: o });
|
|
1022
1028
|
}, ci = "_spLabel_1mq16_43", di = "_spLabel__text_1mq16_52", mi = "_spLabel__tooltip_1mq16_62", ui = "_spLabel__required_1mq16_69", Ze = {
|
|
1023
1029
|
spLabel: ci,
|
|
@@ -1032,17 +1038,17 @@ const it = (e) => {
|
|
|
1032
1038
|
tooltipPosition: a,
|
|
1033
1039
|
classNameRoot: i,
|
|
1034
1040
|
classNameBaseTooltipRoot: r
|
|
1035
|
-
} = e, s =
|
|
1041
|
+
} = e, s = _({
|
|
1036
1042
|
[Ze.spLabel]: !0,
|
|
1037
1043
|
...i && { [i]: !0 }
|
|
1038
|
-
}), p =
|
|
1044
|
+
}), p = _({
|
|
1039
1045
|
[Ze.spLabel__text]: !0
|
|
1040
|
-
}), l =
|
|
1046
|
+
}), l = _({
|
|
1041
1047
|
[Ze.spLabel__required]: t
|
|
1042
|
-
}), d =
|
|
1048
|
+
}), d = _({
|
|
1043
1049
|
[Ze.spLabel__tooltip]: !0
|
|
1044
1050
|
});
|
|
1045
|
-
return /* @__PURE__ */
|
|
1051
|
+
return /* @__PURE__ */ W("div", { className: s, children: [
|
|
1046
1052
|
/* @__PURE__ */ c("label", { className: p, children: o }),
|
|
1047
1053
|
t && /* @__PURE__ */ c("div", { className: l, children: "*" }),
|
|
1048
1054
|
n && /* @__PURE__ */ c(
|
|
@@ -1080,45 +1086,45 @@ const it = (e) => {
|
|
|
1080
1086
|
error: p,
|
|
1081
1087
|
required: l,
|
|
1082
1088
|
name: d,
|
|
1083
|
-
isClearable:
|
|
1089
|
+
isClearable: u,
|
|
1084
1090
|
pattern: g,
|
|
1085
1091
|
onMouseEnter: h,
|
|
1086
1092
|
infoTooltipText: x,
|
|
1087
1093
|
tooltipPosition: b,
|
|
1088
|
-
isVisibleDefaultTitle:
|
|
1094
|
+
isVisibleDefaultTitle: I = !0,
|
|
1089
1095
|
placeholder: j = "Введите...",
|
|
1090
1096
|
classNameRoot: z,
|
|
1091
1097
|
classNameError: R,
|
|
1092
1098
|
classNameLabel: w,
|
|
1093
1099
|
classNameBaseTooltipRoot: m,
|
|
1094
1100
|
...N
|
|
1095
|
-
} = e,
|
|
1101
|
+
} = e, O = _({
|
|
1096
1102
|
[ke.spInput]: !0,
|
|
1097
1103
|
[ke.spInput_error]: !!p,
|
|
1098
1104
|
[ke.spInput_absolutePositionError]: s,
|
|
1099
1105
|
...z && { [z]: !0 }
|
|
1100
|
-
}),
|
|
1106
|
+
}), q = _({
|
|
1101
1107
|
[ke.spInput__container]: !0
|
|
1102
|
-
}),
|
|
1108
|
+
}), G = _({
|
|
1103
1109
|
[ke.spInput__control]: !0,
|
|
1104
1110
|
[ke.spInput__control_disabled]: r,
|
|
1105
1111
|
[ke[`spInput__control_${i}`]]: i,
|
|
1106
|
-
[ke.spInput__control_clearable]:
|
|
1107
|
-
}), ne =
|
|
1112
|
+
[ke.spInput__control_clearable]: u
|
|
1113
|
+
}), ne = _({
|
|
1108
1114
|
[ke.spInput__clear]: !0
|
|
1109
|
-
}), me =
|
|
1115
|
+
}), me = _({
|
|
1110
1116
|
[ke.spInput__error]: !0,
|
|
1111
1117
|
[ke.spInput__error_absolutePosition]: s,
|
|
1112
1118
|
...R && { [R]: !0 }
|
|
1113
|
-
}), ue =
|
|
1119
|
+
}), ue = _({
|
|
1114
1120
|
...w && { [w]: !0 }
|
|
1115
1121
|
}), le = (M) => {
|
|
1116
1122
|
n(M, { name: d, value: "" });
|
|
1117
1123
|
}, Z = (M) => {
|
|
1118
|
-
const { value:
|
|
1119
|
-
g &&
|
|
1124
|
+
const { value: $, name: K } = M.target;
|
|
1125
|
+
g && $ && !new RegExp(g).test($) || n(M, { value: $, name: K });
|
|
1120
1126
|
};
|
|
1121
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ W("div", { className: O, children: [
|
|
1122
1128
|
a && /* @__PURE__ */ c(
|
|
1123
1129
|
Mt,
|
|
1124
1130
|
{
|
|
@@ -1130,7 +1136,7 @@ const it = (e) => {
|
|
|
1130
1136
|
classNameBaseTooltipRoot: m
|
|
1131
1137
|
}
|
|
1132
1138
|
),
|
|
1133
|
-
/* @__PURE__ */
|
|
1139
|
+
/* @__PURE__ */ W("div", { className: q, onMouseEnter: h, children: [
|
|
1134
1140
|
/* @__PURE__ */ c(
|
|
1135
1141
|
"input",
|
|
1136
1142
|
{
|
|
@@ -1138,14 +1144,14 @@ const it = (e) => {
|
|
|
1138
1144
|
placeholder: j,
|
|
1139
1145
|
disabled: r,
|
|
1140
1146
|
onChange: Z,
|
|
1141
|
-
title:
|
|
1147
|
+
title: I ? o : void 0,
|
|
1142
1148
|
value: o,
|
|
1143
1149
|
name: d,
|
|
1144
|
-
className:
|
|
1150
|
+
className: G,
|
|
1145
1151
|
ref: t
|
|
1146
1152
|
}
|
|
1147
1153
|
),
|
|
1148
|
-
|
|
1154
|
+
u && o && !r && /* @__PURE__ */ c(de, { onClick: le, className: ne, name: D.Trash })
|
|
1149
1155
|
] }),
|
|
1150
1156
|
p && /* @__PURE__ */ c("div", { className: me, children: p })
|
|
1151
1157
|
] });
|
|
@@ -1322,7 +1328,7 @@ var Kt;
|
|
|
1322
1328
|
function qi() {
|
|
1323
1329
|
if (Kt) return Q;
|
|
1324
1330
|
Kt = 1;
|
|
1325
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1331
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1326
1332
|
function R(m) {
|
|
1327
1333
|
if (typeof m == "object" && m !== null) {
|
|
1328
1334
|
var N = m.$$typeof;
|
|
@@ -1334,7 +1340,7 @@ function qi() {
|
|
|
1334
1340
|
case n:
|
|
1335
1341
|
case i:
|
|
1336
1342
|
case a:
|
|
1337
|
-
case
|
|
1343
|
+
case u:
|
|
1338
1344
|
return m;
|
|
1339
1345
|
default:
|
|
1340
1346
|
switch (m = m && m.$$typeof, m) {
|
|
@@ -1356,7 +1362,7 @@ function qi() {
|
|
|
1356
1362
|
function w(m) {
|
|
1357
1363
|
return R(m) === l;
|
|
1358
1364
|
}
|
|
1359
|
-
return Q.AsyncMode = p, Q.ConcurrentMode = l, Q.ContextConsumer = s, Q.ContextProvider = r, Q.Element = t, Q.ForwardRef = d, Q.Fragment = n, Q.Lazy = x, Q.Memo = h, Q.Portal = o, Q.Profiler = i, Q.StrictMode = a, Q.Suspense =
|
|
1365
|
+
return Q.AsyncMode = p, Q.ConcurrentMode = l, Q.ContextConsumer = s, Q.ContextProvider = r, Q.Element = t, Q.ForwardRef = d, Q.Fragment = n, Q.Lazy = x, Q.Memo = h, Q.Portal = o, Q.Profiler = i, Q.StrictMode = a, Q.Suspense = u, Q.isAsyncMode = function(m) {
|
|
1360
1366
|
return w(m) || R(m) === p;
|
|
1361
1367
|
}, Q.isConcurrentMode = w, Q.isContextConsumer = function(m) {
|
|
1362
1368
|
return R(m) === s;
|
|
@@ -1379,9 +1385,9 @@ function qi() {
|
|
|
1379
1385
|
}, Q.isStrictMode = function(m) {
|
|
1380
1386
|
return R(m) === a;
|
|
1381
1387
|
}, Q.isSuspense = function(m) {
|
|
1382
|
-
return R(m) ===
|
|
1388
|
+
return R(m) === u;
|
|
1383
1389
|
}, Q.isValidElementType = function(m) {
|
|
1384
|
-
return typeof m == "string" || typeof m == "function" || m === n || m === l || m === i || m === a || m ===
|
|
1390
|
+
return typeof m == "string" || typeof m == "function" || m === n || m === l || m === i || m === a || m === u || m === g || typeof m == "object" && m !== null && (m.$$typeof === x || m.$$typeof === h || m.$$typeof === r || m.$$typeof === s || m.$$typeof === d || m.$$typeof === I || m.$$typeof === j || m.$$typeof === z || m.$$typeof === b);
|
|
1385
1391
|
}, Q.typeOf = R, Q;
|
|
1386
1392
|
}
|
|
1387
1393
|
var J = {};
|
|
@@ -1396,10 +1402,10 @@ var J = {};
|
|
|
1396
1402
|
var Xt;
|
|
1397
1403
|
function $i() {
|
|
1398
1404
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1399
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1405
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1400
1406
|
function R(y) {
|
|
1401
1407
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1402
|
-
y === n || y === l || y === i || y === a || y ===
|
|
1408
|
+
y === n || y === l || y === i || y === a || y === u || y === g || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === h || y.$$typeof === r || y.$$typeof === s || y.$$typeof === d || y.$$typeof === I || y.$$typeof === j || y.$$typeof === z || y.$$typeof === b);
|
|
1403
1409
|
}
|
|
1404
1410
|
function w(y) {
|
|
1405
1411
|
if (typeof y == "object" && y !== null) {
|
|
@@ -1413,7 +1419,7 @@ function $i() {
|
|
|
1413
1419
|
case n:
|
|
1414
1420
|
case i:
|
|
1415
1421
|
case a:
|
|
1416
|
-
case
|
|
1422
|
+
case u:
|
|
1417
1423
|
return Ie;
|
|
1418
1424
|
default:
|
|
1419
1425
|
var Oe = Ie && Ie.$$typeof;
|
|
@@ -1433,9 +1439,9 @@ function $i() {
|
|
|
1433
1439
|
}
|
|
1434
1440
|
}
|
|
1435
1441
|
}
|
|
1436
|
-
var m = p, N = l,
|
|
1442
|
+
var m = p, N = l, O = s, q = r, G = t, ne = d, me = n, ue = x, le = h, Z = o, T = i, M = a, $ = u, K = !1;
|
|
1437
1443
|
function ee(y) {
|
|
1438
|
-
return
|
|
1444
|
+
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(y) || w(y) === p;
|
|
1439
1445
|
}
|
|
1440
1446
|
function f(y) {
|
|
1441
1447
|
return w(y) === l;
|
|
@@ -1443,7 +1449,7 @@ function $i() {
|
|
|
1443
1449
|
function v(y) {
|
|
1444
1450
|
return w(y) === s;
|
|
1445
1451
|
}
|
|
1446
|
-
function
|
|
1452
|
+
function L(y) {
|
|
1447
1453
|
return w(y) === r;
|
|
1448
1454
|
}
|
|
1449
1455
|
function F(y) {
|
|
@@ -1467,13 +1473,13 @@ function $i() {
|
|
|
1467
1473
|
function X(y) {
|
|
1468
1474
|
return w(y) === i;
|
|
1469
1475
|
}
|
|
1470
|
-
function
|
|
1476
|
+
function H(y) {
|
|
1471
1477
|
return w(y) === a;
|
|
1472
1478
|
}
|
|
1473
1479
|
function ie(y) {
|
|
1474
|
-
return w(y) ===
|
|
1480
|
+
return w(y) === u;
|
|
1475
1481
|
}
|
|
1476
|
-
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer =
|
|
1482
|
+
J.AsyncMode = m, J.ConcurrentMode = N, J.ContextConsumer = O, J.ContextProvider = q, J.Element = G, J.ForwardRef = ne, J.Fragment = me, J.Lazy = ue, J.Memo = le, J.Portal = Z, J.Profiler = T, J.StrictMode = M, J.Suspense = $, J.isAsyncMode = ee, J.isConcurrentMode = f, J.isContextConsumer = v, J.isContextProvider = L, J.isElement = F, J.isForwardRef = S, J.isFragment = P, J.isLazy = B, J.isMemo = U, J.isPortal = V, J.isProfiler = X, J.isStrictMode = H, J.isSuspense = ie, J.isValidElementType = R, J.typeOf = w;
|
|
1477
1483
|
}()), J;
|
|
1478
1484
|
}
|
|
1479
1485
|
var Zt;
|
|
@@ -1520,8 +1526,8 @@ function Hi() {
|
|
|
1520
1526
|
return ht = a() ? Object.assign : function(i, r) {
|
|
1521
1527
|
for (var s, p = n(i), l, d = 1; d < arguments.length; d++) {
|
|
1522
1528
|
s = Object(arguments[d]);
|
|
1523
|
-
for (var
|
|
1524
|
-
t.call(s,
|
|
1529
|
+
for (var u in s)
|
|
1530
|
+
t.call(s, u) && (p[u] = s[u]);
|
|
1525
1531
|
if (e) {
|
|
1526
1532
|
l = e(s);
|
|
1527
1533
|
for (var g = 0; g < l.length; g++)
|
|
@@ -1563,7 +1569,7 @@ function Vi() {
|
|
|
1563
1569
|
if (process.env.NODE_ENV !== "production") {
|
|
1564
1570
|
for (var d in i)
|
|
1565
1571
|
if (n(i, d)) {
|
|
1566
|
-
var
|
|
1572
|
+
var u;
|
|
1567
1573
|
try {
|
|
1568
1574
|
if (typeof i[d] != "function") {
|
|
1569
1575
|
var g = Error(
|
|
@@ -1571,17 +1577,17 @@ function Vi() {
|
|
|
1571
1577
|
);
|
|
1572
1578
|
throw g.name = "Invariant Violation", g;
|
|
1573
1579
|
}
|
|
1574
|
-
|
|
1580
|
+
u = i[d](r, d, p, s, null, t);
|
|
1575
1581
|
} catch (x) {
|
|
1576
|
-
|
|
1582
|
+
u = x;
|
|
1577
1583
|
}
|
|
1578
|
-
if (
|
|
1579
|
-
(p || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
1580
|
-
),
|
|
1581
|
-
o[
|
|
1584
|
+
if (u && !(u instanceof Error) && e(
|
|
1585
|
+
(p || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1586
|
+
), u instanceof Error && !(u.message in o)) {
|
|
1587
|
+
o[u.message] = !0;
|
|
1582
1588
|
var h = l ? l() : "";
|
|
1583
1589
|
e(
|
|
1584
|
-
"Failed " + s + " type: " +
|
|
1590
|
+
"Failed " + s + " type: " + u.message + (h ?? "")
|
|
1585
1591
|
);
|
|
1586
1592
|
}
|
|
1587
1593
|
}
|
|
@@ -1610,7 +1616,7 @@ function Yi() {
|
|
|
1610
1616
|
}
|
|
1611
1617
|
return Ct = function(s, p) {
|
|
1612
1618
|
var l = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
1613
|
-
function
|
|
1619
|
+
function u(f) {
|
|
1614
1620
|
var v = f && (l && f[l] || f[d]);
|
|
1615
1621
|
if (typeof v == "function")
|
|
1616
1622
|
return v;
|
|
@@ -1630,9 +1636,9 @@ function Yi() {
|
|
|
1630
1636
|
elementType: m(),
|
|
1631
1637
|
instanceOf: N,
|
|
1632
1638
|
node: ne(),
|
|
1633
|
-
objectOf:
|
|
1634
|
-
oneOf:
|
|
1635
|
-
oneOfType:
|
|
1639
|
+
objectOf: q,
|
|
1640
|
+
oneOf: O,
|
|
1641
|
+
oneOfType: G,
|
|
1636
1642
|
shape: ue,
|
|
1637
1643
|
exact: le
|
|
1638
1644
|
};
|
|
@@ -1643,11 +1649,11 @@ function Yi() {
|
|
|
1643
1649
|
this.message = f, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
1644
1650
|
}
|
|
1645
1651
|
b.prototype = Error.prototype;
|
|
1646
|
-
function
|
|
1652
|
+
function I(f) {
|
|
1647
1653
|
if (process.env.NODE_ENV !== "production")
|
|
1648
|
-
var v = {},
|
|
1649
|
-
function F(P, B, U, V, X,
|
|
1650
|
-
if (V = V || g,
|
|
1654
|
+
var v = {}, L = 0;
|
|
1655
|
+
function F(P, B, U, V, X, H, ie) {
|
|
1656
|
+
if (V = V || g, H = H || U, ie !== o) {
|
|
1651
1657
|
if (p) {
|
|
1652
1658
|
var y = new Error(
|
|
1653
1659
|
"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"
|
|
@@ -1656,130 +1662,130 @@ function Yi() {
|
|
|
1656
1662
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1657
1663
|
var be = V + ":" + U;
|
|
1658
1664
|
!v[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1659
|
-
|
|
1660
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1661
|
-
), v[be] = !0,
|
|
1665
|
+
L < 3 && (i(
|
|
1666
|
+
"You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + V + "`. 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."
|
|
1667
|
+
), v[be] = !0, L++);
|
|
1662
1668
|
}
|
|
1663
1669
|
}
|
|
1664
|
-
return B[U] == null ? P ? B[U] === null ? new b("The " + X + " `" +
|
|
1670
|
+
return B[U] == null ? P ? B[U] === null ? new b("The " + X + " `" + H + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + X + " `" + H + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : f(B, U, V, X, H);
|
|
1665
1671
|
}
|
|
1666
1672
|
var S = F.bind(null, !1);
|
|
1667
1673
|
return S.isRequired = F.bind(null, !0), S;
|
|
1668
1674
|
}
|
|
1669
1675
|
function j(f) {
|
|
1670
|
-
function v(
|
|
1671
|
-
var V =
|
|
1676
|
+
function v(L, F, S, P, B, U) {
|
|
1677
|
+
var V = L[F], X = M(V);
|
|
1672
1678
|
if (X !== f) {
|
|
1673
|
-
var
|
|
1679
|
+
var H = $(V);
|
|
1674
1680
|
return new b(
|
|
1675
|
-
"Invalid " + P + " `" + B + "` of type " + ("`" +
|
|
1681
|
+
"Invalid " + P + " `" + B + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected ") + ("`" + f + "`."),
|
|
1676
1682
|
{ expectedType: f }
|
|
1677
1683
|
);
|
|
1678
1684
|
}
|
|
1679
1685
|
return null;
|
|
1680
1686
|
}
|
|
1681
|
-
return
|
|
1687
|
+
return I(v);
|
|
1682
1688
|
}
|
|
1683
1689
|
function z() {
|
|
1684
|
-
return
|
|
1690
|
+
return I(r);
|
|
1685
1691
|
}
|
|
1686
1692
|
function R(f) {
|
|
1687
|
-
function v(
|
|
1693
|
+
function v(L, F, S, P, B) {
|
|
1688
1694
|
if (typeof f != "function")
|
|
1689
1695
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
1690
|
-
var U =
|
|
1696
|
+
var U = L[F];
|
|
1691
1697
|
if (!Array.isArray(U)) {
|
|
1692
1698
|
var V = M(U);
|
|
1693
1699
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an array."));
|
|
1694
1700
|
}
|
|
1695
1701
|
for (var X = 0; X < U.length; X++) {
|
|
1696
|
-
var
|
|
1697
|
-
if (
|
|
1698
|
-
return
|
|
1702
|
+
var H = f(U, X, S, P, B + "[" + X + "]", o);
|
|
1703
|
+
if (H instanceof Error)
|
|
1704
|
+
return H;
|
|
1699
1705
|
}
|
|
1700
1706
|
return null;
|
|
1701
1707
|
}
|
|
1702
|
-
return
|
|
1708
|
+
return I(v);
|
|
1703
1709
|
}
|
|
1704
1710
|
function w() {
|
|
1705
|
-
function f(v,
|
|
1706
|
-
var B = v[
|
|
1711
|
+
function f(v, L, F, S, P) {
|
|
1712
|
+
var B = v[L];
|
|
1707
1713
|
if (!s(B)) {
|
|
1708
1714
|
var U = M(B);
|
|
1709
1715
|
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected a single ReactElement."));
|
|
1710
1716
|
}
|
|
1711
1717
|
return null;
|
|
1712
1718
|
}
|
|
1713
|
-
return
|
|
1719
|
+
return I(f);
|
|
1714
1720
|
}
|
|
1715
1721
|
function m() {
|
|
1716
|
-
function f(v,
|
|
1717
|
-
var B = v[
|
|
1722
|
+
function f(v, L, F, S, P) {
|
|
1723
|
+
var B = v[L];
|
|
1718
1724
|
if (!e.isValidElementType(B)) {
|
|
1719
1725
|
var U = M(B);
|
|
1720
1726
|
return new b("Invalid " + S + " `" + P + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected a single ReactElement type."));
|
|
1721
1727
|
}
|
|
1722
1728
|
return null;
|
|
1723
1729
|
}
|
|
1724
|
-
return
|
|
1730
|
+
return I(f);
|
|
1725
1731
|
}
|
|
1726
1732
|
function N(f) {
|
|
1727
|
-
function v(
|
|
1728
|
-
if (!(
|
|
1729
|
-
var U = f.name || g, V = ee(
|
|
1733
|
+
function v(L, F, S, P, B) {
|
|
1734
|
+
if (!(L[F] instanceof f)) {
|
|
1735
|
+
var U = f.name || g, V = ee(L[F]);
|
|
1730
1736
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected ") + ("instance of `" + U + "`."));
|
|
1731
1737
|
}
|
|
1732
1738
|
return null;
|
|
1733
1739
|
}
|
|
1734
|
-
return
|
|
1740
|
+
return I(v);
|
|
1735
1741
|
}
|
|
1736
|
-
function
|
|
1742
|
+
function O(f) {
|
|
1737
1743
|
if (!Array.isArray(f))
|
|
1738
1744
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1739
1745
|
"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])."
|
|
1740
1746
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1741
|
-
function v(
|
|
1742
|
-
for (var U =
|
|
1747
|
+
function v(L, F, S, P, B) {
|
|
1748
|
+
for (var U = L[F], V = 0; V < f.length; V++)
|
|
1743
1749
|
if (x(U, f[V]))
|
|
1744
1750
|
return null;
|
|
1745
1751
|
var X = JSON.stringify(f, function(ie, y) {
|
|
1746
|
-
var be =
|
|
1752
|
+
var be = $(y);
|
|
1747
1753
|
return be === "symbol" ? String(y) : y;
|
|
1748
1754
|
});
|
|
1749
1755
|
return new b("Invalid " + P + " `" + B + "` of value `" + String(U) + "` " + ("supplied to `" + S + "`, expected one of " + X + "."));
|
|
1750
1756
|
}
|
|
1751
|
-
return
|
|
1757
|
+
return I(v);
|
|
1752
1758
|
}
|
|
1753
|
-
function
|
|
1754
|
-
function v(
|
|
1759
|
+
function q(f) {
|
|
1760
|
+
function v(L, F, S, P, B) {
|
|
1755
1761
|
if (typeof f != "function")
|
|
1756
1762
|
return new b("Property `" + B + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
1757
|
-
var U =
|
|
1763
|
+
var U = L[F], V = M(U);
|
|
1758
1764
|
if (V !== "object")
|
|
1759
1765
|
return new b("Invalid " + P + " `" + B + "` of type " + ("`" + V + "` supplied to `" + S + "`, expected an object."));
|
|
1760
1766
|
for (var X in U)
|
|
1761
1767
|
if (n(U, X)) {
|
|
1762
|
-
var
|
|
1763
|
-
if (
|
|
1764
|
-
return
|
|
1768
|
+
var H = f(U, X, S, P, B + "." + X, o);
|
|
1769
|
+
if (H instanceof Error)
|
|
1770
|
+
return H;
|
|
1765
1771
|
}
|
|
1766
1772
|
return null;
|
|
1767
1773
|
}
|
|
1768
|
-
return
|
|
1774
|
+
return I(v);
|
|
1769
1775
|
}
|
|
1770
|
-
function
|
|
1776
|
+
function G(f) {
|
|
1771
1777
|
if (!Array.isArray(f))
|
|
1772
1778
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1773
1779
|
for (var v = 0; v < f.length; v++) {
|
|
1774
|
-
var
|
|
1775
|
-
if (typeof
|
|
1780
|
+
var L = f[v];
|
|
1781
|
+
if (typeof L != "function")
|
|
1776
1782
|
return i(
|
|
1777
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1783
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(L) + " at index " + v + "."
|
|
1778
1784
|
), r;
|
|
1779
1785
|
}
|
|
1780
1786
|
function F(S, P, B, U, V) {
|
|
1781
|
-
for (var X = [],
|
|
1782
|
-
var ie = f[
|
|
1787
|
+
for (var X = [], H = 0; H < f.length; H++) {
|
|
1788
|
+
var ie = f[H], y = ie(S, P, B, U, V, o);
|
|
1783
1789
|
if (y == null)
|
|
1784
1790
|
return null;
|
|
1785
1791
|
y.data && n(y.data, "expectedType") && X.push(y.data.expectedType);
|
|
@@ -1787,58 +1793,58 @@ function Yi() {
|
|
|
1787
1793
|
var be = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1788
1794
|
return new b("Invalid " + U + " `" + V + "` supplied to " + ("`" + B + "`" + be + "."));
|
|
1789
1795
|
}
|
|
1790
|
-
return
|
|
1796
|
+
return I(F);
|
|
1791
1797
|
}
|
|
1792
1798
|
function ne() {
|
|
1793
|
-
function f(v,
|
|
1794
|
-
return Z(v[
|
|
1799
|
+
function f(v, L, F, S, P) {
|
|
1800
|
+
return Z(v[L]) ? null : new b("Invalid " + S + " `" + P + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
1795
1801
|
}
|
|
1796
|
-
return
|
|
1802
|
+
return I(f);
|
|
1797
1803
|
}
|
|
1798
|
-
function me(f, v,
|
|
1804
|
+
function me(f, v, L, F, S) {
|
|
1799
1805
|
return new b(
|
|
1800
|
-
(f || "React class") + ": " + v + " type `" +
|
|
1806
|
+
(f || "React class") + ": " + v + " type `" + L + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
1801
1807
|
);
|
|
1802
1808
|
}
|
|
1803
1809
|
function ue(f) {
|
|
1804
|
-
function v(
|
|
1805
|
-
var U =
|
|
1810
|
+
function v(L, F, S, P, B) {
|
|
1811
|
+
var U = L[F], V = M(U);
|
|
1806
1812
|
if (V !== "object")
|
|
1807
1813
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1808
1814
|
for (var X in f) {
|
|
1809
|
-
var
|
|
1810
|
-
if (typeof
|
|
1811
|
-
return me(S, P, B, X,
|
|
1812
|
-
var ie =
|
|
1815
|
+
var H = f[X];
|
|
1816
|
+
if (typeof H != "function")
|
|
1817
|
+
return me(S, P, B, X, $(H));
|
|
1818
|
+
var ie = H(U, X, S, P, B + "." + X, o);
|
|
1813
1819
|
if (ie)
|
|
1814
1820
|
return ie;
|
|
1815
1821
|
}
|
|
1816
1822
|
return null;
|
|
1817
1823
|
}
|
|
1818
|
-
return
|
|
1824
|
+
return I(v);
|
|
1819
1825
|
}
|
|
1820
1826
|
function le(f) {
|
|
1821
|
-
function v(
|
|
1822
|
-
var U =
|
|
1827
|
+
function v(L, F, S, P, B) {
|
|
1828
|
+
var U = L[F], V = M(U);
|
|
1823
1829
|
if (V !== "object")
|
|
1824
1830
|
return new b("Invalid " + P + " `" + B + "` of type `" + V + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1825
|
-
var X = t({},
|
|
1826
|
-
for (var
|
|
1827
|
-
var ie = f[
|
|
1828
|
-
if (n(f,
|
|
1829
|
-
return me(S, P, B,
|
|
1831
|
+
var X = t({}, L[F], f);
|
|
1832
|
+
for (var H in X) {
|
|
1833
|
+
var ie = f[H];
|
|
1834
|
+
if (n(f, H) && typeof ie != "function")
|
|
1835
|
+
return me(S, P, B, H, $(ie));
|
|
1830
1836
|
if (!ie)
|
|
1831
1837
|
return new b(
|
|
1832
|
-
"Invalid " + P + " `" + B + "` key `" +
|
|
1838
|
+
"Invalid " + P + " `" + B + "` key `" + H + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(L[F], null, " ") + `
|
|
1833
1839
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1834
1840
|
);
|
|
1835
|
-
var y = ie(U,
|
|
1841
|
+
var y = ie(U, H, S, P, B + "." + H, o);
|
|
1836
1842
|
if (y)
|
|
1837
1843
|
return y;
|
|
1838
1844
|
}
|
|
1839
1845
|
return null;
|
|
1840
1846
|
}
|
|
1841
|
-
return
|
|
1847
|
+
return I(v);
|
|
1842
1848
|
}
|
|
1843
1849
|
function Z(f) {
|
|
1844
1850
|
switch (typeof f) {
|
|
@@ -1853,15 +1859,15 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1853
1859
|
return f.every(Z);
|
|
1854
1860
|
if (f === null || s(f))
|
|
1855
1861
|
return !0;
|
|
1856
|
-
var v =
|
|
1862
|
+
var v = u(f);
|
|
1857
1863
|
if (v) {
|
|
1858
|
-
var
|
|
1864
|
+
var L = v.call(f), F;
|
|
1859
1865
|
if (v !== f.entries) {
|
|
1860
|
-
for (; !(F =
|
|
1866
|
+
for (; !(F = L.next()).done; )
|
|
1861
1867
|
if (!Z(F.value))
|
|
1862
1868
|
return !1;
|
|
1863
1869
|
} else
|
|
1864
|
-
for (; !(F =
|
|
1870
|
+
for (; !(F = L.next()).done; ) {
|
|
1865
1871
|
var S = F.value;
|
|
1866
1872
|
if (S && !Z(S[1]))
|
|
1867
1873
|
return !1;
|
|
@@ -1880,7 +1886,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1880
1886
|
var v = typeof f;
|
|
1881
1887
|
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : T(v, f) ? "symbol" : v;
|
|
1882
1888
|
}
|
|
1883
|
-
function
|
|
1889
|
+
function $(f) {
|
|
1884
1890
|
if (typeof f > "u" || f === null)
|
|
1885
1891
|
return "" + f;
|
|
1886
1892
|
var v = M(f);
|
|
@@ -1892,8 +1898,8 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1892
1898
|
}
|
|
1893
1899
|
return v;
|
|
1894
1900
|
}
|
|
1895
|
-
function
|
|
1896
|
-
var v =
|
|
1901
|
+
function K(f) {
|
|
1902
|
+
var v = $(f);
|
|
1897
1903
|
switch (v) {
|
|
1898
1904
|
case "array":
|
|
1899
1905
|
case "object":
|
|
@@ -1922,8 +1928,8 @@ function Gi() {
|
|
|
1922
1928
|
function o() {
|
|
1923
1929
|
}
|
|
1924
1930
|
return o.resetWarningCache = t, kt = function() {
|
|
1925
|
-
function n(r, s, p, l, d,
|
|
1926
|
-
if (
|
|
1931
|
+
function n(r, s, p, l, d, u) {
|
|
1932
|
+
if (u !== e) {
|
|
1927
1933
|
var g = new Error(
|
|
1928
1934
|
"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"
|
|
1929
1935
|
);
|
|
@@ -2101,29 +2107,29 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2101
2107
|
}
|
|
2102
2108
|
);
|
|
2103
2109
|
}, _r = 2e3, fr = (e) => {
|
|
2104
|
-
const { targetValue: t, duration: o = _r, doneValue: n, onSuccessLoaded: a } = e, [i, r] = oe(t), s = ve(), p = ve(0), l = ve(), d = ve(t), [
|
|
2110
|
+
const { targetValue: t, duration: o = _r, doneValue: n, onSuccessLoaded: a } = e, [i, r] = oe(t), s = ve(), p = ve(0), l = ve(), d = ve(t), [u, g] = oe(!1), h = ve();
|
|
2105
2111
|
return re(() => {
|
|
2106
2112
|
if (d.current = t, t === p.current) return;
|
|
2107
|
-
if (s.current && cancelAnimationFrame(s.current), t === n && !
|
|
2113
|
+
if (s.current && cancelAnimationFrame(s.current), t === n && !u) {
|
|
2108
2114
|
r(n), p.current = n;
|
|
2109
2115
|
return;
|
|
2110
2116
|
}
|
|
2111
2117
|
p.current = i, l.current = performance.now();
|
|
2112
2118
|
const x = (b) => {
|
|
2113
2119
|
if (!l.current) return;
|
|
2114
|
-
const
|
|
2120
|
+
const I = b - l.current, j = Math.min(I / o, 1), z = j < 0.5 ? 4 * j * j * j : 1 - Math.pow(-2 * j + 2, 3) / 2, R = p.current + (d.current - p.current) * z, w = Math.max(0, Math.floor(R));
|
|
2115
2121
|
r(w), j < 1 && (s.current = requestAnimationFrame(x));
|
|
2116
2122
|
};
|
|
2117
2123
|
return s.current = requestAnimationFrame(x), () => {
|
|
2118
2124
|
s.current && cancelAnimationFrame(s.current);
|
|
2119
2125
|
};
|
|
2120
|
-
}, [t, o, n,
|
|
2121
|
-
|
|
2126
|
+
}, [t, o, n, u]), re(() => (i === n ? h.current = window.setTimeout(() => {
|
|
2127
|
+
u && a && a(), g(!1);
|
|
2122
2128
|
}, 500) : (g(!0), h.current && window.clearTimeout(h.current)), () => {
|
|
2123
2129
|
h.current && window.clearTimeout(h.current);
|
|
2124
|
-
}), [i, n,
|
|
2130
|
+
}), [i, n, u, a]), {
|
|
2125
2131
|
animatedValue: i,
|
|
2126
|
-
isLoading:
|
|
2132
|
+
isLoading: u
|
|
2127
2133
|
};
|
|
2128
2134
|
}, vr = "_progressWrapper_xn9s0_44", gr = "_progressWrapper_loading_xn9s0_47", xr = "_progressWrapper__childrenWrapper_xn9s0_52", hr = "_progressWrapper__childrenWrapper_loading_xn9s0_58", br = "_pulse_xn9s0_1", yr = "_progressWrapper__progressBadge_xn9s0_64", wr = "_progressWrapper__progressBadge_loading_xn9s0_75", Le = {
|
|
2129
2135
|
progressWrapper: vr,
|
|
@@ -2150,22 +2156,22 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2150
2156
|
duration: a,
|
|
2151
2157
|
doneValue: r,
|
|
2152
2158
|
onSuccessLoaded: p
|
|
2153
|
-
}),
|
|
2159
|
+
}), u = _({
|
|
2154
2160
|
[Le.progressWrapper]: !0,
|
|
2155
2161
|
[Le.progressWrapper_loading]: d,
|
|
2156
2162
|
...o && { [o]: !0 }
|
|
2157
|
-
}), g =
|
|
2163
|
+
}), g = _({
|
|
2158
2164
|
[Le.progressWrapper__progressBadge]: !0,
|
|
2159
2165
|
[Le.progressWrapper__progressBadge_loading]: d,
|
|
2160
2166
|
...n && { [n]: !0 }
|
|
2161
|
-
}), h =
|
|
2167
|
+
}), h = _({
|
|
2162
2168
|
[Le.progressWrapper__childrenWrapper]: !0,
|
|
2163
2169
|
[Le[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
2164
2170
|
[Le.progressWrapper__childrenWrapper_loading]: d
|
|
2165
2171
|
}), x = {
|
|
2166
2172
|
"--progress": `${l / r * 100}%`
|
|
2167
2173
|
};
|
|
2168
|
-
return /* @__PURE__ */
|
|
2174
|
+
return /* @__PURE__ */ W("div", { className: u, children: [
|
|
2169
2175
|
/* @__PURE__ */ c(
|
|
2170
2176
|
"div",
|
|
2171
2177
|
{
|
|
@@ -2174,7 +2180,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2174
2180
|
children: i
|
|
2175
2181
|
}
|
|
2176
2182
|
),
|
|
2177
|
-
d && /* @__PURE__ */
|
|
2183
|
+
d && /* @__PURE__ */ W(Ne, { classNameRoot: g, children: [
|
|
2178
2184
|
l,
|
|
2179
2185
|
"%"
|
|
2180
2186
|
] })
|
|
@@ -2208,69 +2214,69 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2208
2214
|
error: p,
|
|
2209
2215
|
label: l,
|
|
2210
2216
|
infoTooltipText: d,
|
|
2211
|
-
tooltipPosition:
|
|
2217
|
+
tooltipPosition: u,
|
|
2212
2218
|
disabled: g = !1,
|
|
2213
2219
|
required: h,
|
|
2214
2220
|
maxHeightList: x = Cr,
|
|
2215
2221
|
isVisibleDefaultTitle: b = !0,
|
|
2216
|
-
isScrollableList:
|
|
2222
|
+
isScrollableList: I = !1,
|
|
2217
2223
|
isAbsolutePositionError: j = !1,
|
|
2218
2224
|
classNameRoot: z,
|
|
2219
2225
|
classNameError: R,
|
|
2220
2226
|
classNameLabel: w,
|
|
2221
2227
|
classNameBaseTooltipRoot: m
|
|
2222
|
-
} = e, [N,
|
|
2228
|
+
} = e, [N, O] = oe(!1), q = ve(null);
|
|
2223
2229
|
Co(
|
|
2224
|
-
[
|
|
2230
|
+
[q],
|
|
2225
2231
|
() => {
|
|
2226
|
-
|
|
2232
|
+
O(!1);
|
|
2227
2233
|
},
|
|
2228
2234
|
N
|
|
2229
2235
|
);
|
|
2230
|
-
const
|
|
2231
|
-
r(v, { value:
|
|
2236
|
+
const G = t.find((v) => v.value === n), ne = (v, L) => {
|
|
2237
|
+
r(v, { value: L, name: a }), O(!1);
|
|
2232
2238
|
}, me = () => {
|
|
2233
|
-
g ||
|
|
2234
|
-
}, ue =
|
|
2239
|
+
g || O(!N);
|
|
2240
|
+
}, ue = _({
|
|
2235
2241
|
[_e.spSelect]: !0,
|
|
2236
2242
|
[_e.spSelect_error]: !!p,
|
|
2237
2243
|
[_e.spSelect_absolutePositionError]: j,
|
|
2238
2244
|
...z && { [z]: !0 }
|
|
2239
|
-
}), le =
|
|
2245
|
+
}), le = _({
|
|
2240
2246
|
[_e.spSelect__container]: !0
|
|
2241
|
-
}), Z =
|
|
2247
|
+
}), Z = _({
|
|
2242
2248
|
[_e.spSelect__control]: !0,
|
|
2243
2249
|
[_e[`spSelect__control_${i}`]]: i,
|
|
2244
2250
|
[_e.spSelect__control_disabled]: g
|
|
2245
|
-
}), T =
|
|
2251
|
+
}), T = _({
|
|
2246
2252
|
[_e.spSelect__value]: !0,
|
|
2247
|
-
[_e.spSelect__value_empty]: !
|
|
2248
|
-
}), M =
|
|
2253
|
+
[_e.spSelect__value_empty]: !G
|
|
2254
|
+
}), M = _({
|
|
2249
2255
|
[_e.spSelect__icon]: !0
|
|
2250
|
-
}),
|
|
2256
|
+
}), $ = _({
|
|
2251
2257
|
[_e.spSelect__list]: !0,
|
|
2252
|
-
[_e.spSelect__list_scrollable]:
|
|
2253
|
-
}),
|
|
2258
|
+
[_e.spSelect__list_scrollable]: I
|
|
2259
|
+
}), K = _({
|
|
2254
2260
|
...w && { [w]: !0 }
|
|
2255
|
-
}), ee =
|
|
2261
|
+
}), ee = _({
|
|
2256
2262
|
[_e.spSelect__error]: !0,
|
|
2257
2263
|
[_e.spSelect__error_absolutePosition]: j,
|
|
2258
2264
|
...R && { [R]: !0 }
|
|
2259
2265
|
});
|
|
2260
|
-
return /* @__PURE__ */
|
|
2266
|
+
return /* @__PURE__ */ W("div", { className: ue, ref: q, children: [
|
|
2261
2267
|
l && /* @__PURE__ */ c(
|
|
2262
2268
|
Mt,
|
|
2263
2269
|
{
|
|
2264
|
-
classNameRoot:
|
|
2265
|
-
tooltipPosition:
|
|
2270
|
+
classNameRoot: K,
|
|
2271
|
+
tooltipPosition: u,
|
|
2266
2272
|
required: h,
|
|
2267
2273
|
label: l,
|
|
2268
2274
|
infoTooltipText: d,
|
|
2269
2275
|
classNameBaseTooltipRoot: m
|
|
2270
2276
|
}
|
|
2271
2277
|
),
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2278
|
+
/* @__PURE__ */ W("div", { className: le, onMouseEnter: s, children: [
|
|
2279
|
+
/* @__PURE__ */ W(
|
|
2274
2280
|
"div",
|
|
2275
2281
|
{
|
|
2276
2282
|
tabIndex: g ? -1 : 0,
|
|
@@ -2278,7 +2284,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2278
2284
|
className: Z,
|
|
2279
2285
|
onClick: me,
|
|
2280
2286
|
children: [
|
|
2281
|
-
/* @__PURE__ */ c("div", { className: T, children: (
|
|
2287
|
+
/* @__PURE__ */ c("div", { className: T, children: (G == null ? void 0 : G.label) || o }),
|
|
2282
2288
|
/* @__PURE__ */ c(
|
|
2283
2289
|
de,
|
|
2284
2290
|
{
|
|
@@ -2293,20 +2299,20 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2293
2299
|
N && /* @__PURE__ */ c(
|
|
2294
2300
|
"div",
|
|
2295
2301
|
{
|
|
2296
|
-
className:
|
|
2297
|
-
style:
|
|
2302
|
+
className: $,
|
|
2303
|
+
style: I ? { maxHeight: `${x}px` } : {},
|
|
2298
2304
|
children: t.map((v) => {
|
|
2299
|
-
const
|
|
2300
|
-
return /* @__PURE__ */
|
|
2305
|
+
const L = v.value === n;
|
|
2306
|
+
return /* @__PURE__ */ W(
|
|
2301
2307
|
"div",
|
|
2302
2308
|
{
|
|
2303
|
-
className:
|
|
2309
|
+
className: _({
|
|
2304
2310
|
[_e.spSelect__option]: !0
|
|
2305
2311
|
}),
|
|
2306
2312
|
onClick: (F) => ne(F, v.value),
|
|
2307
2313
|
children: [
|
|
2308
2314
|
v.label,
|
|
2309
|
-
|
|
2315
|
+
L && /* @__PURE__ */ c(de, { name: D.Check, className: M })
|
|
2310
2316
|
]
|
|
2311
2317
|
},
|
|
2312
2318
|
v.value
|
|
@@ -2335,7 +2341,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2335
2341
|
width: n,
|
|
2336
2342
|
height: a,
|
|
2337
2343
|
...s
|
|
2338
|
-
}, l =
|
|
2344
|
+
}, l = _({
|
|
2339
2345
|
[Je.skeleton]: !0,
|
|
2340
2346
|
[Je.skeleton_circle]: i,
|
|
2341
2347
|
[Je.skeleton_customStart]: t,
|
|
@@ -2376,36 +2382,36 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2376
2382
|
} = e, r = t.map((w) => o ? {
|
|
2377
2383
|
...w,
|
|
2378
2384
|
isVisible: o.some((m) => !!m[w.key])
|
|
2379
|
-
} : w).filter((w) => w.isVisible), s =
|
|
2385
|
+
} : w).filter((w) => w.isVisible), s = _({
|
|
2380
2386
|
[we.spTable]: !0,
|
|
2381
2387
|
...i && { [i]: !0 }
|
|
2382
|
-
}), p =
|
|
2388
|
+
}), p = _({
|
|
2383
2389
|
[we.spTable__tdContent]: !0
|
|
2384
|
-
}), l =
|
|
2390
|
+
}), l = _({
|
|
2385
2391
|
[we.spTable__tdColorContent]: !0
|
|
2386
|
-
}), d =
|
|
2392
|
+
}), d = _({
|
|
2387
2393
|
[we.spTable__emptyPage]: !0
|
|
2388
|
-
}), [
|
|
2389
|
-
const { text: m, rowIndex: N, colIndex:
|
|
2390
|
-
(
|
|
2391
|
-
g({ rowIndex: N, colIndex:
|
|
2392
|
-
}).catch((
|
|
2393
|
-
console.error("Ошибка при копировании:",
|
|
2394
|
+
}), [u, g] = oe(null), h = (w) => {
|
|
2395
|
+
const { text: m, rowIndex: N, colIndex: O } = w;
|
|
2396
|
+
(u == null ? void 0 : u.rowIndex) === N && (u == null ? void 0 : u.colIndex) === O || navigator.clipboard.writeText(m).then(() => {
|
|
2397
|
+
g({ rowIndex: N, colIndex: O });
|
|
2398
|
+
}).catch((q) => {
|
|
2399
|
+
console.error("Ошибка при копировании:", q);
|
|
2394
2400
|
});
|
|
2395
2401
|
}, x = () => {
|
|
2396
2402
|
g(null);
|
|
2397
|
-
}, b = () => /* @__PURE__ */ c("div", { className: d, children: "Данные отсутствуют" }),
|
|
2403
|
+
}, b = () => /* @__PURE__ */ c("div", { className: d, children: "Данные отсутствуют" }), I = ({
|
|
2398
2404
|
row: w,
|
|
2399
2405
|
col: m
|
|
2400
2406
|
}) => {
|
|
2401
2407
|
const N = w[m.key];
|
|
2402
2408
|
if (!N) return null;
|
|
2403
|
-
const [
|
|
2404
|
-
return /* @__PURE__ */
|
|
2405
|
-
|
|
2406
|
-
|
|
2409
|
+
const [O, q] = N.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2410
|
+
return /* @__PURE__ */ W("span", { children: [
|
|
2411
|
+
O,
|
|
2412
|
+
q && /* @__PURE__ */ c("span", { className: l, children: ` ${q}` })
|
|
2407
2413
|
] });
|
|
2408
|
-
}, j = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */
|
|
2414
|
+
}, j = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ W("table", { className: s, children: [
|
|
2409
2415
|
/* @__PURE__ */ c("colgroup", { children: r.map((w, m, N) => /* @__PURE__ */ c(
|
|
2410
2416
|
"col",
|
|
2411
2417
|
{
|
|
@@ -2416,88 +2422,88 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2416
2422
|
m
|
|
2417
2423
|
)) }),
|
|
2418
2424
|
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: r.map((w, m) => /* @__PURE__ */ c("th", { children: w.title }, m)) }) }),
|
|
2419
|
-
/* @__PURE__ */ c("tbody", { children: o.map((w, m) => w ? /* @__PURE__ */ c("tr", { children: r.map((N,
|
|
2420
|
-
const
|
|
2425
|
+
/* @__PURE__ */ c("tbody", { children: o.map((w, m) => w ? /* @__PURE__ */ c("tr", { children: r.map((N, O) => {
|
|
2426
|
+
const q = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2421
2427
|
return /* @__PURE__ */ c(
|
|
2422
2428
|
"td",
|
|
2423
2429
|
{
|
|
2424
|
-
onMouseLeave:
|
|
2425
|
-
children: /* @__PURE__ */
|
|
2426
|
-
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ?
|
|
2430
|
+
onMouseLeave: q ? x : void 0,
|
|
2431
|
+
children: /* @__PURE__ */ W("div", { className: p, children: [
|
|
2432
|
+
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? I({ row: w, col: N }) : w[N.key] }),
|
|
2427
2433
|
!It(w[N.key]) && N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2428
2434
|
de,
|
|
2429
2435
|
{
|
|
2430
|
-
className:
|
|
2436
|
+
className: _({
|
|
2431
2437
|
[we.spTable__tdContentCopyIcon]: !0,
|
|
2432
|
-
[we.spTable__tdContentCopyIcon_copied]:
|
|
2438
|
+
[we.spTable__tdContentCopyIcon_copied]: q
|
|
2433
2439
|
}),
|
|
2434
|
-
name:
|
|
2440
|
+
name: q ? D.Check : D.Copy,
|
|
2435
2441
|
onClick: () => {
|
|
2436
|
-
const
|
|
2437
|
-
if (!
|
|
2442
|
+
const G = w[N.key];
|
|
2443
|
+
if (!G) return null;
|
|
2438
2444
|
h({
|
|
2439
|
-
text:
|
|
2445
|
+
text: G,
|
|
2440
2446
|
rowIndex: m,
|
|
2441
|
-
colIndex:
|
|
2447
|
+
colIndex: O
|
|
2442
2448
|
});
|
|
2443
2449
|
}
|
|
2444
2450
|
}
|
|
2445
2451
|
)
|
|
2446
2452
|
] })
|
|
2447
2453
|
},
|
|
2448
|
-
`${m}:${
|
|
2454
|
+
`${m}:${O}`
|
|
2449
2455
|
);
|
|
2450
2456
|
}) }, m) : null) })
|
|
2451
2457
|
] }) : b(), z = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ c(
|
|
2452
2458
|
"div",
|
|
2453
2459
|
{
|
|
2454
|
-
className:
|
|
2460
|
+
className: _({
|
|
2455
2461
|
[we.spStringsGroup]: !0
|
|
2456
2462
|
}),
|
|
2457
|
-
children: o.map((w, m) => w ? /* @__PURE__ */ c("div", { children: r.map((N,
|
|
2463
|
+
children: o.map((w, m) => w ? /* @__PURE__ */ c("div", { children: r.map((N, O) => {
|
|
2458
2464
|
if (It(w[N.key]))
|
|
2459
2465
|
return null;
|
|
2460
|
-
const
|
|
2461
|
-
return /* @__PURE__ */
|
|
2466
|
+
const q = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2467
|
+
return /* @__PURE__ */ W(
|
|
2462
2468
|
"div",
|
|
2463
2469
|
{
|
|
2464
|
-
className:
|
|
2470
|
+
className: _({
|
|
2465
2471
|
[we.spStringsGroup__groupItem]: !0
|
|
2466
2472
|
}),
|
|
2467
|
-
onMouseLeave:
|
|
2473
|
+
onMouseLeave: q ? x : void 0,
|
|
2468
2474
|
children: [
|
|
2469
2475
|
/* @__PURE__ */ c(
|
|
2470
2476
|
"div",
|
|
2471
2477
|
{
|
|
2472
|
-
className:
|
|
2478
|
+
className: _({
|
|
2473
2479
|
[we.spStringsGroup__groupItemHeader]: !0
|
|
2474
2480
|
}),
|
|
2475
2481
|
children: N.title
|
|
2476
2482
|
}
|
|
2477
2483
|
),
|
|
2478
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ W(
|
|
2479
2485
|
"div",
|
|
2480
2486
|
{
|
|
2481
|
-
className:
|
|
2487
|
+
className: _({
|
|
2482
2488
|
[we.spStringsGroup__groupItemContent]: !0
|
|
2483
2489
|
}),
|
|
2484
2490
|
children: [
|
|
2485
|
-
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ?
|
|
2491
|
+
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? I({ row: w, col: N }) : w[N.key] }),
|
|
2486
2492
|
N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
2487
2493
|
de,
|
|
2488
2494
|
{
|
|
2489
|
-
className:
|
|
2495
|
+
className: _({
|
|
2490
2496
|
[we.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
2491
|
-
[we.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
2497
|
+
[we.spStringsGroup__groupItemContentCopyIcon_copied]: q
|
|
2492
2498
|
}),
|
|
2493
|
-
name:
|
|
2499
|
+
name: q ? D.Check : D.Copy,
|
|
2494
2500
|
onClick: () => {
|
|
2495
|
-
const
|
|
2496
|
-
if (!
|
|
2501
|
+
const G = w[N.key];
|
|
2502
|
+
if (!G) return null;
|
|
2497
2503
|
h({
|
|
2498
|
-
text:
|
|
2504
|
+
text: G,
|
|
2499
2505
|
rowIndex: m,
|
|
2500
|
-
colIndex:
|
|
2506
|
+
colIndex: O
|
|
2501
2507
|
});
|
|
2502
2508
|
}
|
|
2503
2509
|
}
|
|
@@ -2507,7 +2513,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2507
2513
|
)
|
|
2508
2514
|
]
|
|
2509
2515
|
},
|
|
2510
|
-
|
|
2516
|
+
O
|
|
2511
2517
|
);
|
|
2512
2518
|
}) }, m) : null)
|
|
2513
2519
|
}
|
|
@@ -2531,13 +2537,13 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2531
2537
|
classNameBaseTooltipRoot: a,
|
|
2532
2538
|
variant: i = "contained",
|
|
2533
2539
|
size: r = "md"
|
|
2534
|
-
} = e, s =
|
|
2540
|
+
} = e, s = _({
|
|
2535
2541
|
[je.spTabs]: !0,
|
|
2536
2542
|
[je.spTabs_separated]: o,
|
|
2537
2543
|
[je[`spTabs--variant-${i}`]]: i,
|
|
2538
2544
|
[je[`spTabs--size-${r}`]]: r,
|
|
2539
2545
|
...n && { [n]: !0 }
|
|
2540
|
-
}), p =
|
|
2546
|
+
}), p = _({
|
|
2541
2547
|
[je.spTabs__tooltip]: !0
|
|
2542
2548
|
}), l = () => {
|
|
2543
2549
|
switch (r) {
|
|
@@ -2547,12 +2553,12 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2547
2553
|
return "p1";
|
|
2548
2554
|
}
|
|
2549
2555
|
};
|
|
2550
|
-
return /* @__PURE__ */ c("div", { className: s, children: t.map((d,
|
|
2556
|
+
return /* @__PURE__ */ c("div", { className: s, children: t.map((d, u) => {
|
|
2551
2557
|
const { name: g, active: h, onClick: x, infoTooltipText: b } = d;
|
|
2552
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ W(
|
|
2553
2559
|
"div",
|
|
2554
2560
|
{
|
|
2555
|
-
className:
|
|
2561
|
+
className: _({
|
|
2556
2562
|
[je.spTabs__tabElement]: !0,
|
|
2557
2563
|
[je.spTabs__tabElement_active]: h
|
|
2558
2564
|
}),
|
|
@@ -2570,7 +2576,7 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2570
2576
|
)
|
|
2571
2577
|
]
|
|
2572
2578
|
},
|
|
2573
|
-
d.key ||
|
|
2579
|
+
d.key || u
|
|
2574
2580
|
);
|
|
2575
2581
|
}) });
|
|
2576
2582
|
}, ss = "_spTextWithLabel_18nkl_1", ps = "_spTextWithLabel_ellipsis_18nkl_4", io = {
|
|
@@ -2587,12 +2593,12 @@ const nr = (e) => `not ${e}`, ar = (e, t) => {
|
|
|
2587
2593
|
classNameWrapperRoot: s,
|
|
2588
2594
|
children: p,
|
|
2589
2595
|
...l
|
|
2590
|
-
} = e, d =
|
|
2596
|
+
} = e, d = _({
|
|
2591
2597
|
[io.spTextWithLabel]: !0,
|
|
2592
2598
|
[io.spTextWithLabel_ellipsis]: l.isEllipsis,
|
|
2593
2599
|
...s && { [s]: !0 }
|
|
2594
2600
|
});
|
|
2595
|
-
return /* @__PURE__ */
|
|
2601
|
+
return /* @__PURE__ */ W("div", { className: d, children: [
|
|
2596
2602
|
/* @__PURE__ */ c(
|
|
2597
2603
|
Mt,
|
|
2598
2604
|
{
|
|
@@ -2617,15 +2623,15 @@ function Fe(e, t, o, n) {
|
|
|
2617
2623
|
function s(d) {
|
|
2618
2624
|
try {
|
|
2619
2625
|
l(n.next(d));
|
|
2620
|
-
} catch (
|
|
2621
|
-
r(
|
|
2626
|
+
} catch (u) {
|
|
2627
|
+
r(u);
|
|
2622
2628
|
}
|
|
2623
2629
|
}
|
|
2624
2630
|
function p(d) {
|
|
2625
2631
|
try {
|
|
2626
2632
|
l(n.throw(d));
|
|
2627
|
-
} catch (
|
|
2628
|
-
r(
|
|
2633
|
+
} catch (u) {
|
|
2634
|
+
r(u);
|
|
2629
2635
|
}
|
|
2630
2636
|
}
|
|
2631
2637
|
function l(d) {
|
|
@@ -4124,8 +4130,8 @@ function Re(e) {
|
|
|
4124
4130
|
function js(e) {
|
|
4125
4131
|
var t = e.files, o = e.accept, n = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
4126
4132
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(p) {
|
|
4127
|
-
var l = Oo(p, o), d = He(l, 1),
|
|
4128
|
-
return
|
|
4133
|
+
var l = Oo(p, o), d = He(l, 1), u = d[0], g = Wo(p, n, a), h = He(g, 1), x = h[0], b = s ? s(p) : null;
|
|
4134
|
+
return u && x && !b;
|
|
4129
4135
|
});
|
|
4130
4136
|
}
|
|
4131
4137
|
function nt(e) {
|
|
@@ -4505,16 +4511,16 @@ var Bt = {
|
|
|
4505
4511
|
fileRejections: []
|
|
4506
4512
|
};
|
|
4507
4513
|
function Ho() {
|
|
4508
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave,
|
|
4514
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave, u = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, x = t.onDropRejected, b = t.onFileDialogCancel, I = t.onFileDialogOpen, j = t.useFsAccessApi, z = t.autoFocus, R = t.preventDropOnDocument, w = t.noClick, m = t.noKeyboard, N = t.noDrag, O = t.noDragEventsBubbling, q = t.onError, G = t.validator, ne = De(function() {
|
|
4509
4515
|
return Ms(o);
|
|
4510
4516
|
}, [o]), me = De(function() {
|
|
4511
4517
|
return Ds(o);
|
|
4512
4518
|
}, [o]), ue = De(function() {
|
|
4513
|
-
return typeof
|
|
4514
|
-
}, [
|
|
4519
|
+
return typeof I == "function" ? I : go;
|
|
4520
|
+
}, [I]), le = De(function() {
|
|
4515
4521
|
return typeof b == "function" ? b : go;
|
|
4516
|
-
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt),
|
|
4517
|
-
!
|
|
4522
|
+
}, [b]), Z = ve(null), T = ve(null), M = Qo(Qs, Bt), $ = St(M, 2), K = $[0], ee = $[1], f = K.isFocused, v = K.isFileDialogActive, L = ve(typeof window < "u" && window.isSecureContext && j && Bs()), F = function() {
|
|
4523
|
+
!L.current && v && setTimeout(function() {
|
|
4518
4524
|
if (T.current) {
|
|
4519
4525
|
var A = T.current.files;
|
|
4520
4526
|
A.length || (ee({
|
|
@@ -4527,7 +4533,7 @@ function Ho() {
|
|
|
4527
4533
|
return window.addEventListener("focus", F, !1), function() {
|
|
4528
4534
|
window.removeEventListener("focus", F, !1);
|
|
4529
4535
|
};
|
|
4530
|
-
}, [T, v, le,
|
|
4536
|
+
}, [T, v, le, L]);
|
|
4531
4537
|
var S = ve([]), P = function(A) {
|
|
4532
4538
|
Z.current && Z.current.contains(A.target) || (A.preventDefault(), S.current = []);
|
|
4533
4539
|
};
|
|
@@ -4540,10 +4546,10 @@ function Ho() {
|
|
|
4540
4546
|
};
|
|
4541
4547
|
}, [Z, z, n]);
|
|
4542
4548
|
var B = he(function(k) {
|
|
4543
|
-
|
|
4544
|
-
}, [
|
|
4549
|
+
q ? q(k) : console.error(k);
|
|
4550
|
+
}, [q]), U = he(function(k) {
|
|
4545
4551
|
k.preventDefault(), k.persist(), Ge(k), S.current = [].concat($s(S.current), [k.target]), et(k) && Promise.resolve(a(k)).then(function(A) {
|
|
4546
|
-
if (!(nt(k) && !
|
|
4552
|
+
if (!(nt(k) && !O)) {
|
|
4547
4553
|
var ae = A.length, se = ae > 0 && js({
|
|
4548
4554
|
files: A,
|
|
4549
4555
|
accept: ne,
|
|
@@ -4551,7 +4557,7 @@ function Ho() {
|
|
|
4551
4557
|
maxSize: i,
|
|
4552
4558
|
multiple: s,
|
|
4553
4559
|
maxFiles: p,
|
|
4554
|
-
validator:
|
|
4560
|
+
validator: G
|
|
4555
4561
|
}), ye = ae > 0 && !se;
|
|
4556
4562
|
ee({
|
|
4557
4563
|
isDragAccept: se,
|
|
@@ -4563,7 +4569,7 @@ function Ho() {
|
|
|
4563
4569
|
}).catch(function(A) {
|
|
4564
4570
|
return B(A);
|
|
4565
4571
|
});
|
|
4566
|
-
}, [a, l, B,
|
|
4572
|
+
}, [a, l, B, O, ne, r, i, s, p, G]), V = he(function(k) {
|
|
4567
4573
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4568
4574
|
var A = et(k);
|
|
4569
4575
|
if (A && k.dataTransfer)
|
|
@@ -4571,8 +4577,8 @@ function Ho() {
|
|
|
4571
4577
|
k.dataTransfer.dropEffect = "copy";
|
|
4572
4578
|
} catch {
|
|
4573
4579
|
}
|
|
4574
|
-
return A &&
|
|
4575
|
-
}, [
|
|
4580
|
+
return A && u && u(k), !1;
|
|
4581
|
+
}, [u, O]), X = he(function(k) {
|
|
4576
4582
|
k.preventDefault(), k.persist(), Ge(k);
|
|
4577
4583
|
var A = S.current.filter(function(se) {
|
|
4578
4584
|
return Z.current && Z.current.contains(se);
|
|
@@ -4583,10 +4589,10 @@ function Ho() {
|
|
|
4583
4589
|
isDragAccept: !1,
|
|
4584
4590
|
isDragReject: !1
|
|
4585
4591
|
}), et(k) && d && d(k));
|
|
4586
|
-
}, [Z, d,
|
|
4592
|
+
}, [Z, d, O]), H = he(function(k, A) {
|
|
4587
4593
|
var ae = [], se = [];
|
|
4588
4594
|
k.forEach(function(ye) {
|
|
4589
|
-
var We = Oo(ye, ne), Be = St(We, 2), pt = Be[0], lt = Be[1], ct = Wo(ye, r, i), Ke = St(ct, 2), dt = Ke[0], mt = Ke[1], ut =
|
|
4595
|
+
var We = Oo(ye, ne), Be = St(We, 2), pt = Be[0], lt = Be[1], ct = Wo(ye, r, i), Ke = St(ct, 2), dt = Ke[0], mt = Ke[1], ut = G ? G(ye) : null;
|
|
4590
4596
|
if (pt && dt && !ut)
|
|
4591
4597
|
ae.push(ye);
|
|
4592
4598
|
else {
|
|
@@ -4609,16 +4615,16 @@ function Ho() {
|
|
|
4609
4615
|
isDragReject: se.length > 0,
|
|
4610
4616
|
type: "setFiles"
|
|
4611
4617
|
}), g && g(ae, se, A), se.length > 0 && x && x(se, A), ae.length > 0 && h && h(ae, A);
|
|
4612
|
-
}, [ee, s, ne, r, i, p, g, h, x,
|
|
4618
|
+
}, [ee, s, ne, r, i, p, g, h, x, G]), ie = he(function(k) {
|
|
4613
4619
|
k.preventDefault(), k.persist(), Ge(k), S.current = [], et(k) && Promise.resolve(a(k)).then(function(A) {
|
|
4614
|
-
nt(k) && !
|
|
4620
|
+
nt(k) && !O || H(A, k);
|
|
4615
4621
|
}).catch(function(A) {
|
|
4616
4622
|
return B(A);
|
|
4617
4623
|
}), ee({
|
|
4618
4624
|
type: "reset"
|
|
4619
4625
|
});
|
|
4620
|
-
}, [a,
|
|
4621
|
-
if (
|
|
4626
|
+
}, [a, H, B, O]), y = he(function() {
|
|
4627
|
+
if (L.current) {
|
|
4622
4628
|
ee({
|
|
4623
4629
|
type: "openDialog"
|
|
4624
4630
|
}), ue();
|
|
@@ -4629,20 +4635,20 @@ function Ho() {
|
|
|
4629
4635
|
window.showOpenFilePicker(k).then(function(A) {
|
|
4630
4636
|
return a(A);
|
|
4631
4637
|
}).then(function(A) {
|
|
4632
|
-
|
|
4638
|
+
H(A, null), ee({
|
|
4633
4639
|
type: "closeDialog"
|
|
4634
4640
|
});
|
|
4635
4641
|
}).catch(function(A) {
|
|
4636
4642
|
Ps(A) ? (le(A), ee({
|
|
4637
4643
|
type: "closeDialog"
|
|
4638
|
-
})) : Os(A) ? (
|
|
4644
|
+
})) : Os(A) ? (L.current = !1, T.current ? (T.current.value = null, T.current.click()) : B(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."))) : B(A);
|
|
4639
4645
|
});
|
|
4640
4646
|
return;
|
|
4641
4647
|
}
|
|
4642
4648
|
T.current && (ee({
|
|
4643
4649
|
type: "openDialog"
|
|
4644
4650
|
}), ue(), T.current.value = null, T.current.click());
|
|
4645
|
-
}, [ee, ue, le, j,
|
|
4651
|
+
}, [ee, ue, le, j, H, B, me, s]), be = he(function(k) {
|
|
4646
4652
|
!Z.current || !Z.current.isEqualNode(k.target) || (k.key === " " || k.key === "Enter" || k.keyCode === 32 || k.keyCode === 13) && (k.preventDefault(), y());
|
|
4647
4653
|
}, [Z, y]), Ie = he(function() {
|
|
4648
4654
|
ee({
|
|
@@ -4661,7 +4667,7 @@ function Ho() {
|
|
|
4661
4667
|
}, Ye = function(A) {
|
|
4662
4668
|
return N ? null : Ae(A);
|
|
4663
4669
|
}, Ge = function(A) {
|
|
4664
|
-
|
|
4670
|
+
O && A.stopPropagation();
|
|
4665
4671
|
}, Vo = De(function() {
|
|
4666
4672
|
return function() {
|
|
4667
4673
|
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, A = k.refKey, ae = A === void 0 ? "ref" : A, se = k.role, ye = k.onKeyDown, We = k.onFocus, Be = k.onBlur, pt = k.onClick, lt = k.onDragEnter, ct = k.onDragOver, Ke = k.onDragLeave, dt = k.onDrop, mt = at(k, Us);
|
|
@@ -4706,7 +4712,7 @@ function Ho() {
|
|
|
4706
4712
|
return te(te({}, Be), We);
|
|
4707
4713
|
};
|
|
4708
4714
|
}, [T, o, s, ie, n]);
|
|
4709
|
-
return te(te({},
|
|
4715
|
+
return te(te({}, K), {}, {
|
|
4710
4716
|
isFocused: f && !n,
|
|
4711
4717
|
getRootProps: Vo,
|
|
4712
4718
|
getInputProps: Go,
|
|
@@ -4814,42 +4820,42 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4814
4820
|
files: p = [],
|
|
4815
4821
|
infoTooltipText: l,
|
|
4816
4822
|
tooltipPosition: d = pe.TopRight,
|
|
4817
|
-
classNameRoot:
|
|
4823
|
+
classNameRoot: u,
|
|
4818
4824
|
loading: g,
|
|
4819
4825
|
error: h
|
|
4820
|
-
} = e, [x, b] = oe([]),
|
|
4826
|
+
} = e, [x, b] = oe([]), I = he(
|
|
4821
4827
|
(f, v) => {
|
|
4822
|
-
const
|
|
4828
|
+
const L = v.map(({ file: S, errors: P }) => ({
|
|
4823
4829
|
file: S,
|
|
4824
4830
|
errors: P
|
|
4825
4831
|
}));
|
|
4826
4832
|
if (!s) {
|
|
4827
|
-
b([...
|
|
4833
|
+
b([...L]), a(f, n);
|
|
4828
4834
|
return;
|
|
4829
4835
|
}
|
|
4830
4836
|
const F = [...p, ...f];
|
|
4831
|
-
b([...
|
|
4837
|
+
b([...L, ...x]), a(F, n);
|
|
4832
4838
|
},
|
|
4833
4839
|
[x, p, s, n, a]
|
|
4834
4840
|
), { getRootProps: j, getInputProps: z } = Js({
|
|
4835
4841
|
accept: i,
|
|
4836
|
-
onDrop:
|
|
4842
|
+
onDrop: I,
|
|
4837
4843
|
multiple: s,
|
|
4838
4844
|
disabled: r
|
|
4839
|
-
}), R = x ? (x == null ? void 0 : x.length) > 0 : void 0, w = [...p.map((f) => ({ file: f, errors: null })), ...x], m = (w == null ? void 0 : w.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input",
|
|
4845
|
+
}), R = x ? (x == null ? void 0 : x.length) > 0 : void 0, w = [...p.map((f) => ({ file: f, errors: null })), ...x], m = (w == null ? void 0 : w.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input", O = o === "dropzone", q = _({
|
|
4840
4846
|
[Y.spUploadFiles]: !0,
|
|
4841
4847
|
[Y[`spUploadFiles--variant-${o}`]]: o,
|
|
4842
4848
|
[Y.spUploadFiles_error]: R && !s && h && h.length > 0,
|
|
4843
4849
|
[Y.spUploadFiles_disabled]: r,
|
|
4844
4850
|
[Y.spUploadFiles_fileUploaded]: m,
|
|
4845
|
-
...
|
|
4846
|
-
}),
|
|
4851
|
+
...u && { [u]: !0 }
|
|
4852
|
+
}), G = _({
|
|
4847
4853
|
[Y.spUploadFiles__control]: !0,
|
|
4848
4854
|
[Y.spUploadFiles__control_loading]: g
|
|
4849
|
-
}), ne =
|
|
4855
|
+
}), ne = _({
|
|
4850
4856
|
[Y.spUploadFiles__fileNamesList]: !0,
|
|
4851
4857
|
[Y.spUploadFiles__fileNamesList_loading]: g
|
|
4852
|
-
}), me =
|
|
4858
|
+
}), me = _({
|
|
4853
4859
|
[Y.spUploadFiles__delete]: !0,
|
|
4854
4860
|
[Y.spUploadFiles__delete_loading]: g
|
|
4855
4861
|
}), ue = (f, v) => {
|
|
@@ -4860,19 +4866,19 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4860
4866
|
S.splice(P, 1), b(S);
|
|
4861
4867
|
return;
|
|
4862
4868
|
}
|
|
4863
|
-
const
|
|
4864
|
-
|
|
4869
|
+
const L = [...p], F = L.findIndex((S) => S.name === f);
|
|
4870
|
+
L.splice(F, 1), a(L, n);
|
|
4865
4871
|
}, le = (f) => {
|
|
4866
4872
|
f.stopPropagation(), a([], n), b([]);
|
|
4867
|
-
}, Z = (f) => Object.values(f).flatMap((v) => v.map((
|
|
4873
|
+
}, Z = (f) => Object.values(f).flatMap((v) => v.map((L) => L.toUpperCase())).join(", "), T = () => {
|
|
4868
4874
|
if (R) {
|
|
4869
4875
|
const f = Z(i);
|
|
4870
4876
|
return /* @__PURE__ */ c(
|
|
4871
4877
|
Ue,
|
|
4872
4878
|
{
|
|
4873
4879
|
text: `Неверный формат файла. Загрузите файл в формате ${f}`,
|
|
4874
|
-
classNameTooltipRoot:
|
|
4875
|
-
classNameRoot:
|
|
4880
|
+
classNameTooltipRoot: _(Y.spUploadFiles__fileNameContainer),
|
|
4881
|
+
classNameRoot: _(
|
|
4876
4882
|
Y.spUploadFiles__fileName,
|
|
4877
4883
|
R && Y.spUploadFiles__fileName_dragError
|
|
4878
4884
|
)
|
|
@@ -4883,16 +4889,16 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4883
4889
|
Ue,
|
|
4884
4890
|
{
|
|
4885
4891
|
text: w[0].file.name,
|
|
4886
|
-
classNameTooltipRoot:
|
|
4887
|
-
classNameRoot:
|
|
4892
|
+
classNameTooltipRoot: _(Y.spUploadFiles__fileNameContainer),
|
|
4893
|
+
classNameRoot: _(Y.spUploadFiles__fileName)
|
|
4888
4894
|
}
|
|
4889
4895
|
);
|
|
4890
|
-
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: f, errors: v },
|
|
4896
|
+
}, M = () => /* @__PURE__ */ c("ul", { className: ne, children: w.map(({ file: f, errors: v }, L) => {
|
|
4891
4897
|
const F = v ? (v == null ? void 0 : v.length) > 0 : void 0, S = () => v ? v == null ? void 0 : v.map(jp).join(", ") : "";
|
|
4892
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ W(
|
|
4893
4899
|
"li",
|
|
4894
4900
|
{
|
|
4895
|
-
className:
|
|
4901
|
+
className: _(
|
|
4896
4902
|
Y.spUploadFiles__fileNamesListItem,
|
|
4897
4903
|
F && Y.spUploadFiles__fileNamesListItem_error
|
|
4898
4904
|
),
|
|
@@ -4903,14 +4909,14 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4903
4909
|
/* @__PURE__ */ c(
|
|
4904
4910
|
"div",
|
|
4905
4911
|
{
|
|
4906
|
-
className:
|
|
4912
|
+
className: _(
|
|
4907
4913
|
Y.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4908
4914
|
F && Y.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4909
4915
|
),
|
|
4910
4916
|
children: /* @__PURE__ */ c(de, { name: F ? D.InfoError : D.File })
|
|
4911
4917
|
}
|
|
4912
4918
|
),
|
|
4913
|
-
/* @__PURE__ */
|
|
4919
|
+
/* @__PURE__ */ W("div", { className: Y.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
4914
4920
|
/* @__PURE__ */ c(
|
|
4915
4921
|
Ue,
|
|
4916
4922
|
{
|
|
@@ -4927,7 +4933,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4927
4933
|
{
|
|
4928
4934
|
text: F ? S() : Rp(f.size),
|
|
4929
4935
|
classNameBaseTooltipRoot: Y.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4930
|
-
classNameRoot:
|
|
4936
|
+
classNameRoot: _(
|
|
4931
4937
|
Y.spUploadFiles__fileNamesListItem__description,
|
|
4932
4938
|
F && Y.spUploadFiles__fileNamesListItem__description_error
|
|
4933
4939
|
)
|
|
@@ -4937,7 +4943,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4937
4943
|
/* @__PURE__ */ c(
|
|
4938
4944
|
"div",
|
|
4939
4945
|
{
|
|
4940
|
-
className:
|
|
4946
|
+
className: _(Y.spUploadFiles__fileNamesListItemDelete),
|
|
4941
4947
|
onClick: (P) => {
|
|
4942
4948
|
P.stopPropagation(), ue(f.name, F);
|
|
4943
4949
|
},
|
|
@@ -4946,20 +4952,20 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4946
4952
|
)
|
|
4947
4953
|
]
|
|
4948
4954
|
},
|
|
4949
|
-
|
|
4955
|
+
L
|
|
4950
4956
|
);
|
|
4951
|
-
}) }),
|
|
4957
|
+
}) }), $ = () => s ? M() : T(), K = () => /* @__PURE__ */ c(
|
|
4952
4958
|
Ue,
|
|
4953
4959
|
{
|
|
4954
4960
|
classNameRoot: Y.spUploadFiles__placeholder,
|
|
4955
|
-
classNameTooltipRoot:
|
|
4961
|
+
classNameTooltipRoot: _(
|
|
4956
4962
|
Y.spUploadFiles__placeholderContainer,
|
|
4957
4963
|
!!l && Y.spUploadFiles__placeholderContainer_withUloadTooltip
|
|
4958
4964
|
),
|
|
4959
4965
|
text: t
|
|
4960
4966
|
}
|
|
4961
|
-
), ee = () => /* @__PURE__ */
|
|
4962
|
-
m ?
|
|
4967
|
+
), ee = () => /* @__PURE__ */ W($e, { children: [
|
|
4968
|
+
m ? $() : K(),
|
|
4963
4969
|
m && N ? /* @__PURE__ */ c("div", { className: me, onClick: le, children: /* @__PURE__ */ c(de, { name: D.Close }) }) : N && l && /* @__PURE__ */ c(
|
|
4964
4970
|
rt,
|
|
4965
4971
|
{
|
|
@@ -4977,8 +4983,8 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4977
4983
|
getInputProps: z,
|
|
4978
4984
|
disabled: r,
|
|
4979
4985
|
name: n,
|
|
4980
|
-
children: /* @__PURE__ */
|
|
4981
|
-
|
|
4986
|
+
children: /* @__PURE__ */ W("div", { className: q, children: [
|
|
4987
|
+
O && /* @__PURE__ */ c(
|
|
4982
4988
|
it,
|
|
4983
4989
|
{
|
|
4984
4990
|
hover: !0,
|
|
@@ -4988,7 +4994,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
4988
4994
|
trigger: void 0
|
|
4989
4995
|
}
|
|
4990
4996
|
),
|
|
4991
|
-
/* @__PURE__ */
|
|
4997
|
+
/* @__PURE__ */ W("div", { className: G, children: [
|
|
4992
4998
|
N && (g ? /* @__PURE__ */ c(Dt, {}) : /* @__PURE__ */ c(
|
|
4993
4999
|
de,
|
|
4994
5000
|
{
|
|
@@ -5020,23 +5026,23 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5020
5026
|
fallbackSrc: r,
|
|
5021
5027
|
showLoader: s = !0,
|
|
5022
5028
|
onClose: p
|
|
5023
|
-
} = e, [l, d] = oe(!0), [
|
|
5029
|
+
} = e, [l, d] = oe(!0), [u, g] = oe(!1), [h, x] = oe(n), b = _({
|
|
5024
5030
|
[Ee.viewImageModal]: !0,
|
|
5025
5031
|
...t && { [t]: !0 }
|
|
5026
|
-
}),
|
|
5032
|
+
}), I = _({
|
|
5027
5033
|
[Ee.viewImageModal__layer]: !0
|
|
5028
|
-
}), j =
|
|
5034
|
+
}), j = _({
|
|
5029
5035
|
[Ee.viewImageModal__closeButton]: !0
|
|
5030
|
-
}), z =
|
|
5036
|
+
}), z = _({
|
|
5031
5037
|
[Ee.viewImageModal__spinner]: !0
|
|
5032
|
-
}), R =
|
|
5038
|
+
}), R = _(Ee.viewImageModal__img, {
|
|
5033
5039
|
[Ee.viewImageModal__img_loading]: l,
|
|
5034
|
-
[Ee.viewImageModal__img_error]:
|
|
5040
|
+
[Ee.viewImageModal__img_error]: u,
|
|
5035
5041
|
...o && { [o]: !0 }
|
|
5036
5042
|
});
|
|
5037
|
-
return /* @__PURE__ */
|
|
5043
|
+
return /* @__PURE__ */ W(yo, { classNameRoot: I, children: [
|
|
5038
5044
|
s && l && /* @__PURE__ */ c(Dt, { classNameRoot: z, size: "xl" }),
|
|
5039
|
-
/* @__PURE__ */
|
|
5045
|
+
/* @__PURE__ */ W("div", { className: b, children: [
|
|
5040
5046
|
/* @__PURE__ */ c(
|
|
5041
5047
|
"img",
|
|
5042
5048
|
{
|
|
@@ -5051,7 +5057,7 @@ const Js = (e) => Ho(e), ep = "_spUploadFiles_1jy0y_43", tp = "_spUploadFiles_er
|
|
|
5051
5057
|
}
|
|
5052
5058
|
}
|
|
5053
5059
|
),
|
|
5054
|
-
|
|
5060
|
+
u && /* @__PURE__ */ W("div", { className: Ee.viewImage__errorWrapper, children: [
|
|
5055
5061
|
/* @__PURE__ */ c(de, { name: D.InfoError, className: Ee.viewImage__errorIcon }),
|
|
5056
5062
|
/* @__PURE__ */ c(Ne, { children: "Не удалось загрузить изображение" })
|
|
5057
5063
|
] })
|