test-stpr-ui-kit 0.4.67 → 0.4.68
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 z, jsx as l, Fragment as fo } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
3
|
import $e, { useState as J, useEffect as ae, useRef as me, useCallback as xe, createContext as vo, useContext as Yo, useMemo as Pe, useReducer as Go, forwardRef as Ko, useImperativeHandle as Xo, Fragment as Zo, useLayoutEffect as Qo } from "react";
|
|
4
4
|
import Jo from "react-dom";
|
|
@@ -72,27 +72,27 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
72
72
|
onOpen: i,
|
|
73
73
|
noBorder: r = !1,
|
|
74
74
|
noPadding: s = !1,
|
|
75
|
-
level:
|
|
76
|
-
classNameRoot:
|
|
75
|
+
level: p = 1,
|
|
76
|
+
classNameRoot: c,
|
|
77
77
|
classNameHeader: u,
|
|
78
78
|
classNameTitle: _,
|
|
79
79
|
classNameIcon: g,
|
|
80
80
|
classNameChildrenWrapper: x
|
|
81
81
|
} = e, [w, C] = J(n), T = () => {
|
|
82
82
|
a || (i == null || i(!w), C(!w));
|
|
83
|
-
},
|
|
83
|
+
}, P = f({
|
|
84
84
|
[de.spAccordion]: !0,
|
|
85
85
|
[de.spAccordion_open]: w,
|
|
86
86
|
[de.spAccordion_noOpen]: !w,
|
|
87
87
|
[de.spAccordion_noBorder]: r,
|
|
88
88
|
[de.spAccordion_noPadding]: s,
|
|
89
|
-
...
|
|
90
|
-
}),
|
|
89
|
+
...c && { [c]: !0 }
|
|
90
|
+
}), M = f({
|
|
91
91
|
[de.spAccordion__header]: !0,
|
|
92
92
|
...u && { [u]: !0 }
|
|
93
93
|
}), j = f({
|
|
94
94
|
[de.spAccordion__name]: !0,
|
|
95
|
-
[de[`spAccordion__name--level-${
|
|
95
|
+
[de[`spAccordion__name--level-${p}`]]: p,
|
|
96
96
|
[de.spAccordion__name_hiddenExpand]: a,
|
|
97
97
|
..._ && { [_]: !0 }
|
|
98
98
|
}), b = f({
|
|
@@ -108,12 +108,12 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
108
108
|
[de.spAccordion__content]: !0,
|
|
109
109
|
[de.spAccordion__content_open]: w
|
|
110
110
|
});
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ z("div", { className: P, children: [
|
|
112
|
+
/* @__PURE__ */ z("div", { className: M, children: [
|
|
113
|
+
/* @__PURE__ */ l("div", { className: j, children: /* @__PURE__ */ l("span", { onClick: T, children: t }) }),
|
|
114
|
+
/* @__PURE__ */ l(ve, { onClick: T, className: b, name: ne.ChevronDown })
|
|
115
115
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l("div", { className: N, children: o }) })
|
|
117
117
|
] });
|
|
118
118
|
}, Ln = "_spinner_18qva_43", Dn = "_spinner__inner_18qva_54", mt = {
|
|
119
119
|
spinner: Ln,
|
|
@@ -125,14 +125,14 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
125
125
|
"spinner--xl": "_spinner--xl_18qva_78"
|
|
126
126
|
}, At = (e) => {
|
|
127
127
|
const { size: t = "md", color: o = "#036bfd", classNameRoot: n } = e;
|
|
128
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ l(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
131
|
className: f(mt.spinner, mt[`spinner--${t}`], n),
|
|
132
132
|
"aria-label": "Loading",
|
|
133
133
|
role: "status",
|
|
134
134
|
style: { color: o },
|
|
135
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ l("div", { className: mt.spinner__inner })
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
}, Pn = "_spButton_7ic3z_43", On = "_spButton_noPadding_7ic3z_62", Bn = "_spButton_onlyIcon_7ic3z_65", Wn = "_spButton__iconContainer_7ic3z_73", zn = "_spButton_link_7ic3z_76", Mn = "_spButton__text_7ic3z_80", Un = "_spButton_white_7ic3z_92", $n = "_spButton_primary_7ic3z_95", qn = "_spButton_blue_7ic3z_95", Hn = "_spButton_secondary_7ic3z_115", Vn = "_spButton_fullWidth_7ic3z_135", Yn = "_spButton_disabled_7ic3z_138", Gn = "_spButton__spinner_7ic3z_147", we = {
|
|
@@ -158,8 +158,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
158
158
|
iconName: i,
|
|
159
159
|
iconRotate: r = 0,
|
|
160
160
|
disabled: s = !1,
|
|
161
|
-
type:
|
|
162
|
-
form:
|
|
161
|
+
type: p = "button",
|
|
162
|
+
form: c,
|
|
163
163
|
children: u,
|
|
164
164
|
loading: _ = !1,
|
|
165
165
|
isFullWidth: g = !1,
|
|
@@ -167,18 +167,18 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
167
167
|
noPadding: w = !1,
|
|
168
168
|
classNameRoot: C,
|
|
169
169
|
classNameIconContainerRoot: T
|
|
170
|
-
} = e,
|
|
170
|
+
} = e, P = (b) => {
|
|
171
171
|
s || a == null || a(b);
|
|
172
|
-
},
|
|
172
|
+
}, M = () => {
|
|
173
173
|
const b = f({
|
|
174
174
|
[we.spButton__text]: !0
|
|
175
175
|
}), m = f({
|
|
176
176
|
[we.spButton__iconContainer]: !0,
|
|
177
177
|
...T && { [T]: !0 }
|
|
178
178
|
});
|
|
179
|
-
return /* @__PURE__ */
|
|
180
|
-
(i || _) && /* @__PURE__ */
|
|
181
|
-
!x && u && /* @__PURE__ */
|
|
179
|
+
return /* @__PURE__ */ z(fo, { children: [
|
|
180
|
+
(i || _) && /* @__PURE__ */ l("div", { className: m, children: _ ? /* @__PURE__ */ l(At, { classNameRoot: we.spButton__spinner }) : i && /* @__PURE__ */ l(ve, { name: i, rotate: r }) }),
|
|
181
|
+
!x && u && /* @__PURE__ */ l("div", { className: b, children: u })
|
|
182
182
|
] });
|
|
183
183
|
}, j = f({
|
|
184
184
|
[we.spButton]: !0,
|
|
@@ -191,16 +191,16 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
191
191
|
[we.spButton_loading]: _,
|
|
192
192
|
...C && { [C]: !0 }
|
|
193
193
|
});
|
|
194
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ l(
|
|
195
195
|
"button",
|
|
196
196
|
{
|
|
197
197
|
style: n,
|
|
198
198
|
className: j,
|
|
199
|
-
onClick:
|
|
199
|
+
onClick: P,
|
|
200
200
|
disabled: s,
|
|
201
|
-
type:
|
|
202
|
-
form:
|
|
203
|
-
children:
|
|
201
|
+
type: p,
|
|
202
|
+
form: c,
|
|
203
|
+
children: M()
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
206
|
}, Kn = "_spApplyButtons_1l9jg_43", Xn = "_spApplyButtons__cancel_1l9jg_73", Zn = "_spApplyButtons__submit_1l9jg_76", ze = {
|
|
@@ -221,8 +221,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
221
221
|
submitBtnIconName: i,
|
|
222
222
|
cancelBtnDisabled: r,
|
|
223
223
|
submitBtnContent: s,
|
|
224
|
-
formId:
|
|
225
|
-
disabled:
|
|
224
|
+
formId: p,
|
|
225
|
+
disabled: c,
|
|
226
226
|
onClose: u,
|
|
227
227
|
submit: _,
|
|
228
228
|
loading: g
|
|
@@ -235,8 +235,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
235
235
|
}), C = f({
|
|
236
236
|
[ze.spApplyButtons__cancel]: !0
|
|
237
237
|
});
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
n && /* @__PURE__ */
|
|
238
|
+
return /* @__PURE__ */ z("div", { className: x, children: [
|
|
239
|
+
n && /* @__PURE__ */ l(
|
|
240
240
|
Qe,
|
|
241
241
|
{
|
|
242
242
|
type: "button",
|
|
@@ -248,15 +248,15 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
248
248
|
children: n
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
s && /* @__PURE__ */
|
|
251
|
+
s && /* @__PURE__ */ l(
|
|
252
252
|
Qe,
|
|
253
253
|
{
|
|
254
254
|
type: "submit",
|
|
255
255
|
variant: "primary",
|
|
256
256
|
iconName: i,
|
|
257
257
|
classNameRoot: w,
|
|
258
|
-
form:
|
|
259
|
-
disabled:
|
|
258
|
+
form: p || void 0,
|
|
259
|
+
disabled: c,
|
|
260
260
|
onClick: _,
|
|
261
261
|
loading: g,
|
|
262
262
|
children: s
|
|
@@ -278,11 +278,11 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
|
|
|
278
278
|
[ut.spBaseTooltip]: !0,
|
|
279
279
|
[ut.spBaseTooltip_noPadding]: n,
|
|
280
280
|
...i && { [i]: !0 }
|
|
281
|
-
}),
|
|
281
|
+
}), p = f({
|
|
282
282
|
[ut.spBaseTooltip__content]: !0,
|
|
283
283
|
...r && { [r]: !0 }
|
|
284
284
|
});
|
|
285
|
-
return /* @__PURE__ */
|
|
285
|
+
return /* @__PURE__ */ l("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ l("div", { className: p, children: o }) });
|
|
286
286
|
});
|
|
287
287
|
xo.displayName = "BaseTooltip";
|
|
288
288
|
function ho(e, t, o = !0) {
|
|
@@ -322,80 +322,80 @@ const ot = (e) => {
|
|
|
322
322
|
trigger: i,
|
|
323
323
|
triggerAction: r,
|
|
324
324
|
actionOnClose: s,
|
|
325
|
-
classNameTriggerTooltip:
|
|
326
|
-
position:
|
|
325
|
+
classNameTriggerTooltip: p,
|
|
326
|
+
position: c = le.BottomLeft,
|
|
327
327
|
text: u,
|
|
328
328
|
noPadding: _,
|
|
329
329
|
classNameTooltip: g,
|
|
330
330
|
classNameBaseTooltipRoot: x,
|
|
331
331
|
classNameBaseTooltipContentRoot: w,
|
|
332
332
|
styleTooltip: C
|
|
333
|
-
} = e, [T,
|
|
333
|
+
} = e, [T, P] = J(!1), M = me(null), j = me(null), [b, m] = J(!1);
|
|
334
334
|
ho(
|
|
335
|
-
[
|
|
335
|
+
[M, j],
|
|
336
336
|
() => {
|
|
337
|
-
s && s(),
|
|
337
|
+
s && s(), P(!1);
|
|
338
338
|
},
|
|
339
339
|
T
|
|
340
340
|
);
|
|
341
341
|
const N = (k) => {
|
|
342
|
-
n && k.stopPropagation(), !t && (T ? s && s() : r && r(),
|
|
343
|
-
}, [
|
|
342
|
+
n && k.stopPropagation(), !t && (T ? s && s() : r && r(), P(($) => o ? !$ : !0));
|
|
343
|
+
}, [B, Y] = J({
|
|
344
344
|
visibility: "hidden",
|
|
345
345
|
opacity: 0,
|
|
346
346
|
left: "-9999px"
|
|
347
347
|
}), [Z, re] = J(!1), se = xe(() => {
|
|
348
|
-
if (!
|
|
349
|
-
const k =
|
|
350
|
-
let
|
|
351
|
-
switch (
|
|
348
|
+
if (!M.current || !j.current) return;
|
|
349
|
+
const k = M.current.getBoundingClientRect(), $ = j.current.getBoundingClientRect();
|
|
350
|
+
let W = 0, d = 0;
|
|
351
|
+
switch (c) {
|
|
352
352
|
case le.Right:
|
|
353
|
-
|
|
353
|
+
W = k.top + window.scrollY - ($.height - k.height) / 2, d = k.right + window.scrollX;
|
|
354
354
|
break;
|
|
355
355
|
case le.RightTop:
|
|
356
|
-
|
|
356
|
+
W = k.top + window.scrollY, d = k.right + window.scrollX;
|
|
357
357
|
break;
|
|
358
358
|
case le.RightBottom:
|
|
359
|
-
|
|
359
|
+
W = k.bottom + window.scrollY - $.height, d = k.right + window.scrollX;
|
|
360
360
|
break;
|
|
361
361
|
case le.Left:
|
|
362
|
-
|
|
362
|
+
W = k.top + window.scrollY - ($.height - k.height) / 2, d = k.left + window.scrollX - $.width;
|
|
363
363
|
break;
|
|
364
364
|
case le.LeftTop:
|
|
365
|
-
|
|
365
|
+
W = k.top + window.scrollY, d = k.left + window.scrollX - $.width;
|
|
366
366
|
break;
|
|
367
367
|
case le.LeftBottom:
|
|
368
|
-
|
|
368
|
+
W = k.bottom + window.scrollY - $.height, d = k.left + window.scrollX - $.width;
|
|
369
369
|
break;
|
|
370
370
|
case le.Bottom:
|
|
371
|
-
|
|
371
|
+
W = k.bottom + window.scrollY, d = k.left + window.scrollX - ($.width - k.width) / 2;
|
|
372
372
|
break;
|
|
373
373
|
case le.BottomLeft:
|
|
374
|
-
|
|
374
|
+
W = k.bottom + window.scrollY, d = k.left + window.scrollX;
|
|
375
375
|
break;
|
|
376
376
|
case le.BottomRight:
|
|
377
|
-
|
|
377
|
+
W = k.bottom + window.scrollY, d = k.right + window.scrollX - $.width;
|
|
378
378
|
break;
|
|
379
379
|
case le.Top:
|
|
380
|
-
|
|
380
|
+
W = k.top + window.scrollY - $.height, d = k.left + window.scrollX - ($.width - k.width) / 2;
|
|
381
381
|
break;
|
|
382
382
|
case le.TopLeft:
|
|
383
|
-
|
|
383
|
+
W = k.top + window.scrollY - $.height, d = k.left + window.scrollX;
|
|
384
384
|
break;
|
|
385
385
|
case le.TopRight:
|
|
386
|
-
|
|
386
|
+
W = k.top + window.scrollY - $.height, d = k.right + window.scrollX - $.width;
|
|
387
387
|
break;
|
|
388
388
|
default:
|
|
389
|
-
|
|
389
|
+
W = k.bottom + window.scrollY, d = k.left + window.scrollX;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
W + $.height > window.innerHeight + window.scrollY && c.includes("bottom") ? W = k.top + window.scrollY - $.height : W < window.scrollY && c.includes("top") && (W = k.bottom + window.scrollY), d + $.width > window.innerWidth + window.scrollX && c.includes("left") ? d = k.left + window.scrollX - $.width + k.width : d < window.scrollX && c.includes("right") && (d = k.right + window.scrollX - k.width), Y((v) => ({
|
|
392
392
|
...v,
|
|
393
|
-
top: `${
|
|
393
|
+
top: `${W}px`,
|
|
394
394
|
left: `${d}px`,
|
|
395
395
|
visibility: T || Z ? "visible" : "hidden",
|
|
396
396
|
opacity: T || Z ? 1 : 0
|
|
397
397
|
}));
|
|
398
|
-
}, [
|
|
398
|
+
}, [c, T, Z]);
|
|
399
399
|
ae(() => (m(!0), () => m(!1)), []), ae(() => {
|
|
400
400
|
b && se();
|
|
401
401
|
}, [b, se]), ae(() => {
|
|
@@ -414,9 +414,9 @@ const ot = (e) => {
|
|
|
414
414
|
...w && { [w]: !0 }
|
|
415
415
|
}), ee = f({
|
|
416
416
|
[Wt.spTooltip__trigger]: !0,
|
|
417
|
-
...
|
|
417
|
+
...p && { [p]: !0 }
|
|
418
418
|
}), Q = document.body;
|
|
419
|
-
return /* @__PURE__ */
|
|
419
|
+
return /* @__PURE__ */ z(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
422
422
|
className: ue,
|
|
@@ -425,11 +425,11 @@ const ot = (e) => {
|
|
|
425
425
|
onMouseLeave: () => t && re(!1),
|
|
426
426
|
style: C,
|
|
427
427
|
children: [
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
a && /* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ l("div", { ref: M, className: ee, children: i }),
|
|
429
|
+
a && /* @__PURE__ */ l(bo, { node: Q, children: /* @__PURE__ */ l(
|
|
430
430
|
xo,
|
|
431
431
|
{
|
|
432
|
-
style:
|
|
432
|
+
style: B,
|
|
433
433
|
ref: j,
|
|
434
434
|
noPadding: _,
|
|
435
435
|
text: u,
|
|
@@ -440,7 +440,7 @@ const ot = (e) => {
|
|
|
440
440
|
]
|
|
441
441
|
}
|
|
442
442
|
);
|
|
443
|
-
}, nt = (e) => /* @__PURE__ */
|
|
443
|
+
}, nt = (e) => /* @__PURE__ */ l(ot, { ...e, hover: !0, trigger: /* @__PURE__ */ l(ve, { name: ne.Info }) }), aa = "_spCheckbox_1ypiv_43", ia = "_spCheckbox__control_1ypiv_49", ra = "_spCheckbox__label_1ypiv_52", sa = "_spCheckbox__box_1ypiv_63", pa = "_spCheckbox__box_checked_1ypiv_90", la = "_spCheckbox__box_disabled_1ypiv_100", ca = "_spCheckbox__box_error_1ypiv_111", da = "_spCheckbox__tooltip_1ypiv_114", ma = "_spCheckbox__required_1ypiv_119", ua = "_spCheckbox__error_1ypiv_125", Ce = {
|
|
444
444
|
spCheckbox: aa,
|
|
445
445
|
spCheckbox__control: ia,
|
|
446
446
|
spCheckbox__label: ra,
|
|
@@ -462,8 +462,8 @@ const ot = (e) => {
|
|
|
462
462
|
name: i,
|
|
463
463
|
label: r,
|
|
464
464
|
error: s,
|
|
465
|
-
value:
|
|
466
|
-
required:
|
|
465
|
+
value: p,
|
|
466
|
+
required: c,
|
|
467
467
|
tooltipPosition: u,
|
|
468
468
|
infoTooltipText: _,
|
|
469
469
|
onMouseEnter: g,
|
|
@@ -478,9 +478,9 @@ const ot = (e) => {
|
|
|
478
478
|
[Ce.spCheckbox__box_disabled]: n,
|
|
479
479
|
[Ce[`spCheckbox__box--size-${t}`]]: t,
|
|
480
480
|
[Ce.spCheckbox__box_error]: s
|
|
481
|
-
}),
|
|
481
|
+
}), P = f({
|
|
482
482
|
[Ce.spCheckbox__control]: !0
|
|
483
|
-
}),
|
|
483
|
+
}), M = f({
|
|
484
484
|
[Ce.spCheckbox__label]: !0
|
|
485
485
|
}), j = f({
|
|
486
486
|
[Ce.spCheckbox__required]: !0
|
|
@@ -490,24 +490,24 @@ const ot = (e) => {
|
|
|
490
490
|
}), m = f({
|
|
491
491
|
[Ce.spCheckbox__tooltip]: !0
|
|
492
492
|
});
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
/* @__PURE__ */
|
|
493
|
+
return /* @__PURE__ */ z("div", { className: C, onMouseEnter: g, children: [
|
|
494
|
+
/* @__PURE__ */ z("label", { className: T, children: [
|
|
495
|
+
/* @__PURE__ */ l(
|
|
496
496
|
"input",
|
|
497
497
|
{
|
|
498
498
|
type: "checkbox",
|
|
499
|
-
className:
|
|
499
|
+
className: P,
|
|
500
500
|
checked: o,
|
|
501
|
-
onChange: (
|
|
502
|
-
!n && a && a(
|
|
501
|
+
onChange: (B) => {
|
|
502
|
+
!n && a && a(B, { name: i, checked: !o, value: p });
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
),
|
|
506
|
-
r && /* @__PURE__ */
|
|
507
|
-
|
|
508
|
-
_ && /* @__PURE__ */
|
|
506
|
+
r && /* @__PURE__ */ l("span", { className: M, children: r }),
|
|
507
|
+
c && /* @__PURE__ */ l("div", { className: j, children: "*" }),
|
|
508
|
+
_ && /* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l(nt, { position: u, text: _ }) })
|
|
509
509
|
] }),
|
|
510
|
-
s && /* @__PURE__ */
|
|
510
|
+
s && /* @__PURE__ */ l("div", { className: b, children: s })
|
|
511
511
|
] });
|
|
512
512
|
}, Rp = (e = {}) => {
|
|
513
513
|
const { initialValue: t = null } = e, [o, n] = J(t);
|
|
@@ -535,7 +535,12 @@ const ot = (e) => {
|
|
|
535
535
|
[zt.layer_hidden]: n,
|
|
536
536
|
...a && { [a]: !0 }
|
|
537
537
|
});
|
|
538
|
-
return
|
|
538
|
+
return ae(() => {
|
|
539
|
+
const s = window.scrollY, p = document.body;
|
|
540
|
+
return p.style.position = "fixed", p.style.top = `-${s}px`, p.style.left = "0", p.style.right = "0", p.style.overflow = "hidden", () => {
|
|
541
|
+
p.style.position = "", p.style.top = "", p.style.left = "", p.style.right = "", p.style.overflow = "", window.scrollTo(0, s);
|
|
542
|
+
};
|
|
543
|
+
}, []), /* @__PURE__ */ l(bo, { node: i, children: /* @__PURE__ */ l("div", { style: { zIndex: o }, className: r, children: t }) });
|
|
539
544
|
}, va = "_spText_1gech_43", ga = "_spText_ellipsis_1gech_56", xa = "_spText_cursorPointer_1gech_113", Ye = {
|
|
540
545
|
spText: va,
|
|
541
546
|
spText_ellipsis: ga,
|
|
@@ -554,18 +559,18 @@ const ot = (e) => {
|
|
|
554
559
|
title: i,
|
|
555
560
|
style: r,
|
|
556
561
|
onClick: s,
|
|
557
|
-
isEllipsis:
|
|
558
|
-
isCursorPointer:
|
|
562
|
+
isEllipsis: p = !1,
|
|
563
|
+
isCursorPointer: c = !1,
|
|
559
564
|
isCursorPointerByOnClick: u = !0,
|
|
560
565
|
classNameRoot: _
|
|
561
|
-
} = e, g = () => s && u ? !0 :
|
|
566
|
+
} = e, g = () => s && u ? !0 : c, x = f({
|
|
562
567
|
[Ye.spText]: !0,
|
|
563
|
-
[Ye.spText_ellipsis]:
|
|
568
|
+
[Ye.spText_ellipsis]: p,
|
|
564
569
|
[Ye.spText_cursorPointer]: g(),
|
|
565
570
|
[Ye[`spText_type-${o}`]]: o,
|
|
566
571
|
..._ && { [_]: !0 }
|
|
567
572
|
});
|
|
568
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ l(
|
|
569
574
|
"span",
|
|
570
575
|
{
|
|
571
576
|
style: { ...r, color: a },
|
|
@@ -607,8 +612,8 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
607
612
|
classNameLayerRoot: i,
|
|
608
613
|
classNameRoot: r,
|
|
609
614
|
style: s,
|
|
610
|
-
modalVerticalAlign:
|
|
611
|
-
textAlign:
|
|
615
|
+
modalVerticalAlign: p = "top",
|
|
616
|
+
textAlign: c = "left",
|
|
612
617
|
onClose: u,
|
|
613
618
|
header: _,
|
|
614
619
|
subHeader: g,
|
|
@@ -616,16 +621,16 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
616
621
|
size: w = "lg"
|
|
617
622
|
} = e, C = f({
|
|
618
623
|
[ge.modalWrapper]: !0,
|
|
619
|
-
[ge[`modalWrapper--modalVerticalAlign-${
|
|
620
|
-
[ge[`modalWrapper--textAlign-${
|
|
624
|
+
[ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
|
|
625
|
+
[ge[`modalWrapper--textAlign-${c}`]]: c
|
|
621
626
|
}), T = f({
|
|
622
627
|
[ge.modalWrapper__modal]: !0,
|
|
623
628
|
[ge[`modalWrapper__modal--size-${w}`]]: w,
|
|
624
629
|
...r && { [r]: !0 }
|
|
625
|
-
}),
|
|
630
|
+
}), P = f({
|
|
626
631
|
[ge.modalWrapper__closeButton]: !0,
|
|
627
632
|
[ge[`modalWrapper__closeButton--size-${w}`]]: w
|
|
628
|
-
}),
|
|
633
|
+
}), M = f({
|
|
629
634
|
[ge.modalWrapper__closeButtonIconContainer]: !0,
|
|
630
635
|
[ge[`modalWrapper__closeButtonIconContainer--size-${w}`]]: w
|
|
631
636
|
}), j = f({
|
|
@@ -638,23 +643,18 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
638
643
|
}), N = f({
|
|
639
644
|
[ge.modalWrapper__footer]: !0
|
|
640
645
|
});
|
|
641
|
-
return
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
};
|
|
646
|
-
}, []), /* @__PURE__ */ p(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ p("div", { className: C, children: /* @__PURE__ */ M("div", { className: T, style: s, children: [
|
|
647
|
-
(_ || g) && /* @__PURE__ */ M("div", { className: b, children: [
|
|
648
|
-
typeof _ == "string" ? /* @__PURE__ */ p(Te, { type: "h3", children: _ }) : _,
|
|
649
|
-
g && /* @__PURE__ */ p("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ p(Te, { children: g }) : g })
|
|
646
|
+
return /* @__PURE__ */ l(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ l("div", { className: C, children: /* @__PURE__ */ z("div", { className: T, style: s, children: [
|
|
647
|
+
(_ || g) && /* @__PURE__ */ z("div", { className: b, children: [
|
|
648
|
+
typeof _ == "string" ? /* @__PURE__ */ l(Te, { type: "h3", children: _ }) : _,
|
|
649
|
+
g && /* @__PURE__ */ l("div", { className: m, children: typeof g == "string" ? /* @__PURE__ */ l(Te, { children: g }) : g })
|
|
650
650
|
] }),
|
|
651
|
-
a && /* @__PURE__ */
|
|
652
|
-
x && /* @__PURE__ */
|
|
653
|
-
n && u && /* @__PURE__ */
|
|
651
|
+
a && /* @__PURE__ */ l("div", { className: j, children: a }),
|
|
652
|
+
x && /* @__PURE__ */ l("div", { className: N, children: x }),
|
|
653
|
+
n && u && /* @__PURE__ */ l(
|
|
654
654
|
Qe,
|
|
655
655
|
{
|
|
656
|
-
classNameRoot:
|
|
657
|
-
classNameIconContainerRoot:
|
|
656
|
+
classNameRoot: P,
|
|
657
|
+
classNameIconContainerRoot: M,
|
|
658
658
|
onClick: u,
|
|
659
659
|
iconName: ne.Close,
|
|
660
660
|
variant: "link",
|
|
@@ -672,8 +672,8 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
672
672
|
cancelBtnDisabled: i,
|
|
673
673
|
cancelBtnIconName: r,
|
|
674
674
|
submitBtnContent: s,
|
|
675
|
-
submitBtnIconName:
|
|
676
|
-
submit:
|
|
675
|
+
submitBtnIconName: p,
|
|
676
|
+
submit: c,
|
|
677
677
|
disabled: u,
|
|
678
678
|
formId: _,
|
|
679
679
|
onClose: g,
|
|
@@ -681,14 +681,14 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
681
681
|
applyButtonsAlign: w = "right",
|
|
682
682
|
modalVerticalAlign: C = "top",
|
|
683
683
|
textAlign: T = "left",
|
|
684
|
-
loading:
|
|
685
|
-
isVisibleCloseButton:
|
|
684
|
+
loading: P,
|
|
685
|
+
isVisibleCloseButton: M,
|
|
686
686
|
isHiddenModal: j,
|
|
687
687
|
size: b,
|
|
688
688
|
classNameRoot: m,
|
|
689
689
|
classNameLayerRoot: N
|
|
690
690
|
} = e;
|
|
691
|
-
return /* @__PURE__ */
|
|
691
|
+
return /* @__PURE__ */ l(
|
|
692
692
|
Ea,
|
|
693
693
|
{
|
|
694
694
|
zIndex: t,
|
|
@@ -697,12 +697,12 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
697
697
|
modalVerticalAlign: C,
|
|
698
698
|
textAlign: T,
|
|
699
699
|
subHeader: n,
|
|
700
|
-
isVisibleCloseButton:
|
|
700
|
+
isVisibleCloseButton: M,
|
|
701
701
|
isHiddenModal: j,
|
|
702
702
|
size: b,
|
|
703
703
|
classNameRoot: m,
|
|
704
704
|
classNameLayerRoot: N,
|
|
705
|
-
footer: a || r || s ||
|
|
705
|
+
footer: a || r || s || p ? /* @__PURE__ */ l(
|
|
706
706
|
Qn,
|
|
707
707
|
{
|
|
708
708
|
applyButtonsMobileDirection: x,
|
|
@@ -711,12 +711,12 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
711
711
|
cancelBtnIconName: r,
|
|
712
712
|
cancelBtnDisabled: i,
|
|
713
713
|
submitBtnContent: s,
|
|
714
|
-
submitBtnIconName:
|
|
714
|
+
submitBtnIconName: p,
|
|
715
715
|
formId: _,
|
|
716
716
|
disabled: u,
|
|
717
717
|
onClose: g,
|
|
718
|
-
submit:
|
|
719
|
-
loading:
|
|
718
|
+
submit: c,
|
|
719
|
+
loading: P
|
|
720
720
|
}
|
|
721
721
|
) : null
|
|
722
722
|
}
|
|
@@ -730,9 +730,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
730
730
|
[_t.spContextMenu]: !0,
|
|
731
731
|
...n && { [n]: !0 }
|
|
732
732
|
});
|
|
733
|
-
return /* @__PURE__ */
|
|
733
|
+
return /* @__PURE__ */ l("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
|
|
734
734
|
const r = i.key === "delete";
|
|
735
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ z(
|
|
736
736
|
"li",
|
|
737
737
|
{
|
|
738
738
|
className: f({
|
|
@@ -743,7 +743,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
743
743
|
t && t(i);
|
|
744
744
|
},
|
|
745
745
|
children: [
|
|
746
|
-
(i == null ? void 0 : i.iconName) && /* @__PURE__ */
|
|
746
|
+
(i == null ? void 0 : i.iconName) && /* @__PURE__ */ l(ve, { name: i.iconName }),
|
|
747
747
|
i.label
|
|
748
748
|
]
|
|
749
749
|
},
|
|
@@ -752,11 +752,11 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
752
752
|
}) });
|
|
753
753
|
}, Fa = (e) => {
|
|
754
754
|
const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
|
|
755
|
-
return /* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
755
|
+
return /* @__PURE__ */ z("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
756
|
+
/* @__PURE__ */ l("input", { ...i({}), disabled: n, name: a }),
|
|
757
757
|
o
|
|
758
758
|
] });
|
|
759
|
-
}, ja = "
|
|
759
|
+
}, ja = "_spDropdown_miycs_43", Aa = "_spDropdown__labelText_miycs_55", La = "_spDropdown__tooltipContainer_miycs_63", Da = "_spDropdown__dropdownList_miycs_68", Pa = "_spDropdown__dropdownListHeader_miycs_74", Oa = "_spDropdown__dopdownListItem_miycs_81", Ba = "_spDropdown__dopdownListItem_textCenter_miycs_93", Wa = "_spDropdown__downloadListItemDescription_miycs_97", Ie = {
|
|
760
760
|
spDropdown: ja,
|
|
761
761
|
spDropdown__labelText: Aa,
|
|
762
762
|
spDropdown__tooltipContainer: La,
|
|
@@ -777,24 +777,24 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
777
777
|
...i && { [i]: !0 }
|
|
778
778
|
}), s = f({
|
|
779
779
|
[Ie.spDropdown__labelText]: !0
|
|
780
|
-
}),
|
|
780
|
+
}), p = f({
|
|
781
781
|
[Ie.spDropdown__tooltipContainer]: !0
|
|
782
|
-
}),
|
|
782
|
+
}), c = f({
|
|
783
783
|
[Ie.spDropdown__dropdownList]: !0
|
|
784
784
|
}), u = f({
|
|
785
785
|
[Ie.spDropdown__dropdownListHeader]: !0
|
|
786
786
|
}), _ = f({
|
|
787
787
|
[Ie.spDropdown__downloadListItemDescription]: !0
|
|
788
788
|
}), [g, x] = J(!1);
|
|
789
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ l(
|
|
790
790
|
ot,
|
|
791
791
|
{
|
|
792
792
|
hover: !1,
|
|
793
793
|
triggerAction: () => x(!0),
|
|
794
794
|
actionOnClose: () => x(!1),
|
|
795
|
-
text: /* @__PURE__ */
|
|
796
|
-
o && /* @__PURE__ */
|
|
797
|
-
n.map((C, T) => /* @__PURE__ */
|
|
795
|
+
text: /* @__PURE__ */ z("div", { className: c, children: [
|
|
796
|
+
o && /* @__PURE__ */ l("div", { className: u, children: o }),
|
|
797
|
+
n.map((C, T) => /* @__PURE__ */ z(
|
|
798
798
|
"div",
|
|
799
799
|
{
|
|
800
800
|
className: f({
|
|
@@ -804,7 +804,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
804
804
|
onClick: C.onClick,
|
|
805
805
|
children: [
|
|
806
806
|
C.name,
|
|
807
|
-
C.description && /* @__PURE__ */
|
|
807
|
+
C.description && /* @__PURE__ */ l("span", { className: _, children: C.description })
|
|
808
808
|
]
|
|
809
809
|
},
|
|
810
810
|
T
|
|
@@ -814,9 +814,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
814
814
|
noPadding: !0,
|
|
815
815
|
isToggleClick: !0,
|
|
816
816
|
isStopPropagationClickOnTrigger: !0,
|
|
817
|
-
trigger: /* @__PURE__ */
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */
|
|
817
|
+
trigger: /* @__PURE__ */ z("div", { className: r, children: [
|
|
818
|
+
/* @__PURE__ */ l("div", { className: s, children: t }),
|
|
819
|
+
/* @__PURE__ */ l("div", { className: p, children: /* @__PURE__ */ l(ve, { name: ne.SelectChevronDown, rotate: g ? 180 : void 0 }) })
|
|
820
820
|
] })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
@@ -832,9 +832,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
832
832
|
classNameBaseTooltipContentRoot: i,
|
|
833
833
|
classNameBaseTooltipRoot: r,
|
|
834
834
|
...s
|
|
835
|
-
} = e,
|
|
835
|
+
} = e, p = me(null), [c, u] = J(!1);
|
|
836
836
|
ae(() => {
|
|
837
|
-
|
|
837
|
+
p.current && u(p.current.scrollWidth > p.current.clientWidth);
|
|
838
838
|
}, [t]);
|
|
839
839
|
const _ = f({
|
|
840
840
|
[Mt.ellipsisTextWithTooltip]: !0,
|
|
@@ -845,16 +845,16 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
845
845
|
}), x = f({
|
|
846
846
|
...a && { [a]: !0 }
|
|
847
847
|
});
|
|
848
|
-
return /* @__PURE__ */
|
|
848
|
+
return /* @__PURE__ */ l(
|
|
849
849
|
ot,
|
|
850
850
|
{
|
|
851
851
|
classNameTooltip: g,
|
|
852
852
|
classNameTriggerTooltip: x,
|
|
853
853
|
classNameBaseTooltipContentRoot: i,
|
|
854
854
|
classNameBaseTooltipRoot: r,
|
|
855
|
-
isVisibleTooltip:
|
|
855
|
+
isVisibleTooltip: c,
|
|
856
856
|
text: t,
|
|
857
|
-
trigger: /* @__PURE__ */
|
|
857
|
+
trigger: /* @__PURE__ */ l(Te, { ...s, classNameRoot: _, isEllipsis: !0, ref: p, children: t })
|
|
858
858
|
}
|
|
859
859
|
);
|
|
860
860
|
}, Ua = "_spForm_zefbj_43", $a = "_spForm_fullWidth_zefbj_46", qa = "_spForm_withSeparator_zefbj_49", Me = {
|
|
@@ -872,8 +872,8 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
872
872
|
withSeparator: i = !1,
|
|
873
873
|
fullWidth: r = !0,
|
|
874
874
|
classNameRoot: s,
|
|
875
|
-
...
|
|
876
|
-
} = e,
|
|
875
|
+
...p
|
|
876
|
+
} = e, c = f({
|
|
877
877
|
[Me.spForm]: !0,
|
|
878
878
|
[Me.spForm_fullWidth]: r,
|
|
879
879
|
[Me.spForm_addMargin]: a,
|
|
@@ -881,9 +881,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
881
881
|
[Me.spForm_withSeparator]: i,
|
|
882
882
|
...s && { [s]: !0 }
|
|
883
883
|
});
|
|
884
|
-
return /* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ l("form", { ...p, onSubmit: (_) => {
|
|
885
885
|
_.preventDefault(), n && n();
|
|
886
|
-
}, className:
|
|
886
|
+
}, className: c, children: o });
|
|
887
887
|
}, Ha = "_spLabel_g0hfy_43", Va = "_spLabel__text_g0hfy_52", Ya = "_spLabel__tooltip_g0hfy_62", Ga = "_spLabel__required_g0hfy_67", Ke = {
|
|
888
888
|
spLabel: Ha,
|
|
889
889
|
spLabel__text: Va,
|
|
@@ -900,17 +900,17 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
900
900
|
} = e, s = f({
|
|
901
901
|
[Ke.spLabel]: !0,
|
|
902
902
|
...i && { [i]: !0 }
|
|
903
|
-
}),
|
|
903
|
+
}), p = f({
|
|
904
904
|
[Ke.spLabel__text]: !0
|
|
905
|
-
}),
|
|
905
|
+
}), c = f({
|
|
906
906
|
[Ke.spLabel__required]: t
|
|
907
907
|
}), u = f({
|
|
908
908
|
[Ke.spLabel__tooltip]: !0
|
|
909
909
|
});
|
|
910
|
-
return /* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
t && /* @__PURE__ */
|
|
913
|
-
n && /* @__PURE__ */
|
|
910
|
+
return /* @__PURE__ */ z("div", { className: s, children: [
|
|
911
|
+
/* @__PURE__ */ l("label", { className: p, children: o }),
|
|
912
|
+
t && /* @__PURE__ */ l("div", { className: c, children: "*" }),
|
|
913
|
+
n && /* @__PURE__ */ l("div", { className: u, children: /* @__PURE__ */ l(
|
|
914
914
|
nt,
|
|
915
915
|
{
|
|
916
916
|
position: a,
|
|
@@ -940,8 +940,8 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
940
940
|
variant: i = "outlined",
|
|
941
941
|
disabled: r = !1,
|
|
942
942
|
isAbsolutePositionError: s = !1,
|
|
943
|
-
error:
|
|
944
|
-
required:
|
|
943
|
+
error: p,
|
|
944
|
+
required: c,
|
|
945
945
|
name: u,
|
|
946
946
|
isClearable: _,
|
|
947
947
|
pattern: g,
|
|
@@ -949,18 +949,18 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
949
949
|
infoTooltipText: w,
|
|
950
950
|
tooltipPosition: C,
|
|
951
951
|
isVisibleDefaultTitle: T = !0,
|
|
952
|
-
placeholder:
|
|
953
|
-
classNameRoot:
|
|
952
|
+
placeholder: P = "Введите...",
|
|
953
|
+
classNameRoot: M,
|
|
954
954
|
classNameError: j,
|
|
955
955
|
classNameLabel: b,
|
|
956
956
|
classNameBaseTooltipRoot: m,
|
|
957
957
|
...N
|
|
958
|
-
} = e,
|
|
958
|
+
} = e, B = f({
|
|
959
959
|
[ke.spInput]: !0,
|
|
960
|
-
[ke.spInput_error]: !!
|
|
960
|
+
[ke.spInput_error]: !!p,
|
|
961
961
|
[ke.spInput_absolutePositionError]: s,
|
|
962
|
-
...
|
|
963
|
-
}),
|
|
962
|
+
...M && { [M]: !0 }
|
|
963
|
+
}), Y = f({
|
|
964
964
|
[ke.spInput__container]: !0
|
|
965
965
|
}), Z = f({
|
|
966
966
|
[ke.spInput__control]: !0,
|
|
@@ -978,27 +978,27 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
978
978
|
}), ce = (Q) => {
|
|
979
979
|
n(Q, { name: u, value: "" });
|
|
980
980
|
}, G = (Q) => {
|
|
981
|
-
const { value: k, name:
|
|
982
|
-
g && k && !new RegExp(g).test(k) || n(Q, { value: k, name:
|
|
981
|
+
const { value: k, name: $ } = Q.target;
|
|
982
|
+
g && k && !new RegExp(g).test(k) || n(Q, { value: k, name: $ });
|
|
983
983
|
};
|
|
984
|
-
return /* @__PURE__ */
|
|
985
|
-
a && /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */ z("div", { className: B, children: [
|
|
985
|
+
a && /* @__PURE__ */ l(
|
|
986
986
|
Lt,
|
|
987
987
|
{
|
|
988
988
|
classNameRoot: ue,
|
|
989
989
|
tooltipPosition: C,
|
|
990
|
-
required:
|
|
990
|
+
required: c,
|
|
991
991
|
label: a,
|
|
992
992
|
infoTooltipText: w,
|
|
993
993
|
classNameBaseTooltipRoot: m
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ z("div", { className: Y, onMouseEnter: x, children: [
|
|
997
|
+
/* @__PURE__ */ l(
|
|
998
998
|
"input",
|
|
999
999
|
{
|
|
1000
1000
|
...N,
|
|
1001
|
-
placeholder:
|
|
1001
|
+
placeholder: P,
|
|
1002
1002
|
disabled: r,
|
|
1003
1003
|
onChange: G,
|
|
1004
1004
|
title: T ? o : void 0,
|
|
@@ -1008,9 +1008,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
|
|
|
1008
1008
|
ref: t
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
_ && o && !r && /* @__PURE__ */
|
|
1011
|
+
_ && o && !r && /* @__PURE__ */ l(ve, { onClick: ce, className: re, name: ne.Trash })
|
|
1012
1012
|
] }),
|
|
1013
|
-
|
|
1013
|
+
p && /* @__PURE__ */ l("div", { className: se, children: p })
|
|
1014
1014
|
] });
|
|
1015
1015
|
});
|
|
1016
1016
|
si.displayName = "Input";
|
|
@@ -1034,42 +1034,42 @@ function _i(e, t) {
|
|
|
1034
1034
|
if (a && n || !(a || n))
|
|
1035
1035
|
return !1;
|
|
1036
1036
|
var i = o.expressions.every(function(r) {
|
|
1037
|
-
var s = r.feature,
|
|
1037
|
+
var s = r.feature, p = r.modifier, c = r.value, u = t[s];
|
|
1038
1038
|
if (!u)
|
|
1039
1039
|
return !1;
|
|
1040
1040
|
switch (s) {
|
|
1041
1041
|
case "orientation":
|
|
1042
1042
|
case "scan":
|
|
1043
|
-
return u.toLowerCase() ===
|
|
1043
|
+
return u.toLowerCase() === c.toLowerCase();
|
|
1044
1044
|
case "width":
|
|
1045
1045
|
case "height":
|
|
1046
1046
|
case "device-width":
|
|
1047
1047
|
case "device-height":
|
|
1048
|
-
|
|
1048
|
+
c = qt(c), u = qt(u);
|
|
1049
1049
|
break;
|
|
1050
1050
|
case "resolution":
|
|
1051
|
-
|
|
1051
|
+
c = $t(c), u = $t(u);
|
|
1052
1052
|
break;
|
|
1053
1053
|
case "aspect-ratio":
|
|
1054
1054
|
case "device-aspect-ratio":
|
|
1055
1055
|
case /* Deprecated */
|
|
1056
1056
|
"device-pixel-ratio":
|
|
1057
|
-
|
|
1057
|
+
c = Ut(c), u = Ut(u);
|
|
1058
1058
|
break;
|
|
1059
1059
|
case "grid":
|
|
1060
1060
|
case "color":
|
|
1061
1061
|
case "color-index":
|
|
1062
1062
|
case "monochrome":
|
|
1063
|
-
|
|
1063
|
+
c = parseInt(c, 10) || 1, u = parseInt(u, 10) || 0;
|
|
1064
1064
|
break;
|
|
1065
1065
|
}
|
|
1066
|
-
switch (
|
|
1066
|
+
switch (p) {
|
|
1067
1067
|
case "min":
|
|
1068
|
-
return u >=
|
|
1068
|
+
return u >= c;
|
|
1069
1069
|
case "max":
|
|
1070
|
-
return u <=
|
|
1070
|
+
return u <= c;
|
|
1071
1071
|
default:
|
|
1072
|
-
return u ===
|
|
1072
|
+
return u === c;
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
return i && !n || !i && n;
|
|
@@ -1080,11 +1080,11 @@ function Co(e) {
|
|
|
1080
1080
|
t = t.trim();
|
|
1081
1081
|
var o = t.match(li), n = o[1], a = o[2], i = o[3] || "", r = {};
|
|
1082
1082
|
return r.inverse = !!n && n.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
1083
|
-
var
|
|
1083
|
+
var p = s.match(ci), c = p[1].toLowerCase().match(di);
|
|
1084
1084
|
return {
|
|
1085
|
-
modifier:
|
|
1086
|
-
feature:
|
|
1087
|
-
value:
|
|
1085
|
+
modifier: c[1],
|
|
1086
|
+
feature: c[2],
|
|
1087
|
+
value: p[2]
|
|
1088
1088
|
};
|
|
1089
1089
|
}), r;
|
|
1090
1090
|
});
|
|
@@ -1128,17 +1128,17 @@ function qt(e) {
|
|
|
1128
1128
|
var fi = Dt.match, Ht = typeof window < "u" ? window.matchMedia : null;
|
|
1129
1129
|
function vi(e, t, o) {
|
|
1130
1130
|
var n = this, a;
|
|
1131
|
-
Ht && !o && (a = Ht.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = fi(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose =
|
|
1132
|
-
function i(
|
|
1133
|
-
a && a.addListener(
|
|
1131
|
+
Ht && !o && (a = Ht.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = fi(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = p;
|
|
1132
|
+
function i(c) {
|
|
1133
|
+
a && a.addListener(c);
|
|
1134
1134
|
}
|
|
1135
|
-
function r(
|
|
1136
|
-
a && a.removeListener(
|
|
1135
|
+
function r(c) {
|
|
1136
|
+
a && a.removeListener(c);
|
|
1137
1137
|
}
|
|
1138
|
-
function s(
|
|
1139
|
-
n.matches =
|
|
1138
|
+
function s(c) {
|
|
1139
|
+
n.matches = c.matches, n.media = c.media;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function p() {
|
|
1142
1142
|
a && a.removeListener(s);
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
@@ -1185,15 +1185,15 @@ var Vt;
|
|
|
1185
1185
|
function ki() {
|
|
1186
1186
|
if (Vt) return K;
|
|
1187
1187
|
Vt = 1;
|
|
1188
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110,
|
|
1188
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
1189
1189
|
function j(m) {
|
|
1190
1190
|
if (typeof m == "object" && m !== null) {
|
|
1191
1191
|
var N = m.$$typeof;
|
|
1192
1192
|
switch (N) {
|
|
1193
1193
|
case t:
|
|
1194
1194
|
switch (m = m.type, m) {
|
|
1195
|
+
case p:
|
|
1195
1196
|
case c:
|
|
1196
|
-
case l:
|
|
1197
1197
|
case n:
|
|
1198
1198
|
case i:
|
|
1199
1199
|
case a:
|
|
@@ -1217,10 +1217,10 @@ function ki() {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
function b(m) {
|
|
1220
|
-
return j(m) ===
|
|
1220
|
+
return j(m) === c;
|
|
1221
1221
|
}
|
|
1222
|
-
return K.AsyncMode =
|
|
1223
|
-
return b(m) || j(m) ===
|
|
1222
|
+
return K.AsyncMode = p, K.ConcurrentMode = c, K.ContextConsumer = s, K.ContextProvider = r, K.Element = t, K.ForwardRef = u, K.Fragment = n, K.Lazy = w, K.Memo = x, K.Portal = o, K.Profiler = i, K.StrictMode = a, K.Suspense = _, K.isAsyncMode = function(m) {
|
|
1223
|
+
return b(m) || j(m) === p;
|
|
1224
1224
|
}, K.isConcurrentMode = b, K.isContextConsumer = function(m) {
|
|
1225
1225
|
return j(m) === s;
|
|
1226
1226
|
}, K.isContextProvider = function(m) {
|
|
@@ -1244,7 +1244,7 @@ function ki() {
|
|
|
1244
1244
|
}, K.isSuspense = function(m) {
|
|
1245
1245
|
return j(m) === _;
|
|
1246
1246
|
}, K.isValidElementType = function(m) {
|
|
1247
|
-
return typeof m == "string" || typeof m == "function" || m === n || m ===
|
|
1247
|
+
return typeof m == "string" || typeof m == "function" || m === n || m === c || m === i || m === a || m === _ || m === g || typeof m == "object" && m !== null && (m.$$typeof === w || m.$$typeof === x || m.$$typeof === r || m.$$typeof === s || m.$$typeof === u || m.$$typeof === T || m.$$typeof === P || m.$$typeof === M || m.$$typeof === C);
|
|
1248
1248
|
}, K.typeOf = j, K;
|
|
1249
1249
|
}
|
|
1250
1250
|
var X = {};
|
|
@@ -1259,10 +1259,10 @@ var X = {};
|
|
|
1259
1259
|
var Yt;
|
|
1260
1260
|
function Ti() {
|
|
1261
1261
|
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1262
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110,
|
|
1262
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
|
1263
1263
|
function j(h) {
|
|
1264
1264
|
return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1265
|
-
h === n || h ===
|
|
1265
|
+
h === n || h === c || h === i || h === a || h === _ || h === g || typeof h == "object" && h !== null && (h.$$typeof === w || h.$$typeof === x || h.$$typeof === r || h.$$typeof === s || h.$$typeof === u || h.$$typeof === T || h.$$typeof === P || h.$$typeof === M || h.$$typeof === C);
|
|
1266
1266
|
}
|
|
1267
1267
|
function b(h) {
|
|
1268
1268
|
if (typeof h == "object" && h !== null) {
|
|
@@ -1271,8 +1271,8 @@ function Ti() {
|
|
|
1271
1271
|
case t:
|
|
1272
1272
|
var Se = h.type;
|
|
1273
1273
|
switch (Se) {
|
|
1274
|
+
case p:
|
|
1274
1275
|
case c:
|
|
1275
|
-
case l:
|
|
1276
1276
|
case n:
|
|
1277
1277
|
case i:
|
|
1278
1278
|
case a:
|
|
@@ -1296,12 +1296,12 @@ function Ti() {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
var m =
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1299
|
+
var m = p, N = c, B = s, Y = r, Z = t, re = u, se = n, ue = w, ce = x, G = o, ee = i, Q = a, k = _, $ = !1;
|
|
1300
|
+
function W(h) {
|
|
1301
|
+
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(h) || b(h) === p;
|
|
1302
1302
|
}
|
|
1303
1303
|
function d(h) {
|
|
1304
|
-
return b(h) ===
|
|
1304
|
+
return b(h) === c;
|
|
1305
1305
|
}
|
|
1306
1306
|
function v(h) {
|
|
1307
1307
|
return b(h) === s;
|
|
@@ -1321,22 +1321,22 @@ function Ti() {
|
|
|
1321
1321
|
function F(h) {
|
|
1322
1322
|
return b(h) === w;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function O(h) {
|
|
1325
1325
|
return b(h) === x;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function q(h) {
|
|
1328
1328
|
return b(h) === o;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function V(h) {
|
|
1331
1331
|
return b(h) === i;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function U(h) {
|
|
1334
1334
|
return b(h) === a;
|
|
1335
1335
|
}
|
|
1336
1336
|
function ie(h) {
|
|
1337
1337
|
return b(h) === _;
|
|
1338
1338
|
}
|
|
1339
|
-
X.AsyncMode = m, X.ConcurrentMode = N, X.ContextConsumer =
|
|
1339
|
+
X.AsyncMode = m, X.ConcurrentMode = N, X.ContextConsumer = B, X.ContextProvider = Y, X.Element = Z, X.ForwardRef = re, X.Fragment = se, X.Lazy = ue, X.Memo = ce, X.Portal = G, X.Profiler = ee, X.StrictMode = Q, X.Suspense = k, X.isAsyncMode = W, X.isConcurrentMode = d, X.isContextConsumer = v, X.isContextProvider = E, X.isElement = A, X.isForwardRef = I, X.isFragment = D, X.isLazy = F, X.isMemo = O, X.isPortal = q, X.isProfiler = V, X.isStrictMode = U, X.isSuspense = ie, X.isValidElementType = j, X.typeOf = b;
|
|
1340
1340
|
}()), X;
|
|
1341
1341
|
}
|
|
1342
1342
|
var Gt;
|
|
@@ -1367,31 +1367,31 @@ function Ni() {
|
|
|
1367
1367
|
return !1;
|
|
1368
1368
|
for (var r = {}, s = 0; s < 10; s++)
|
|
1369
1369
|
r["_" + String.fromCharCode(s)] = s;
|
|
1370
|
-
var
|
|
1370
|
+
var p = Object.getOwnPropertyNames(r).map(function(u) {
|
|
1371
1371
|
return r[u];
|
|
1372
1372
|
});
|
|
1373
|
-
if (
|
|
1373
|
+
if (p.join("") !== "0123456789")
|
|
1374
1374
|
return !1;
|
|
1375
|
-
var
|
|
1375
|
+
var c = {};
|
|
1376
1376
|
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
1377
|
-
|
|
1378
|
-
}), Object.keys(Object.assign({},
|
|
1377
|
+
c[u] = u;
|
|
1378
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
return vt = a() ? Object.assign : function(i, r) {
|
|
1384
|
-
for (var s,
|
|
1384
|
+
for (var s, p = n(i), c, u = 1; u < arguments.length; u++) {
|
|
1385
1385
|
s = Object(arguments[u]);
|
|
1386
1386
|
for (var _ in s)
|
|
1387
|
-
t.call(s, _) && (
|
|
1387
|
+
t.call(s, _) && (p[_] = s[_]);
|
|
1388
1388
|
if (e) {
|
|
1389
|
-
|
|
1390
|
-
for (var g = 0; g <
|
|
1391
|
-
o.call(s,
|
|
1389
|
+
c = e(s);
|
|
1390
|
+
for (var g = 0; g < c.length; g++)
|
|
1391
|
+
o.call(s, c[g]) && (p[c[g]] = s[c[g]]);
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
|
-
return
|
|
1394
|
+
return p;
|
|
1395
1395
|
}, vt;
|
|
1396
1396
|
}
|
|
1397
1397
|
var gt, Xt;
|
|
@@ -1422,7 +1422,7 @@ function Ei() {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
1424
|
}
|
|
1425
|
-
function a(i, r, s,
|
|
1425
|
+
function a(i, r, s, p, c) {
|
|
1426
1426
|
if (process.env.NODE_ENV !== "production") {
|
|
1427
1427
|
for (var u in i)
|
|
1428
1428
|
if (n(i, u)) {
|
|
@@ -1430,19 +1430,19 @@ function Ei() {
|
|
|
1430
1430
|
try {
|
|
1431
1431
|
if (typeof i[u] != "function") {
|
|
1432
1432
|
var g = Error(
|
|
1433
|
-
(
|
|
1433
|
+
(p || "React class") + ": " + s + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1434
1434
|
);
|
|
1435
1435
|
throw g.name = "Invariant Violation", g;
|
|
1436
1436
|
}
|
|
1437
|
-
_ = i[u](r, u,
|
|
1437
|
+
_ = i[u](r, u, p, s, null, t);
|
|
1438
1438
|
} catch (w) {
|
|
1439
1439
|
_ = w;
|
|
1440
1440
|
}
|
|
1441
1441
|
if (_ && !(_ instanceof Error) && e(
|
|
1442
|
-
(
|
|
1442
|
+
(p || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof _ + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1443
1443
|
), _ instanceof Error && !(_.message in o)) {
|
|
1444
1444
|
o[_.message] = !0;
|
|
1445
|
-
var x =
|
|
1445
|
+
var x = c ? c() : "";
|
|
1446
1446
|
e(
|
|
1447
1447
|
"Failed " + s + " type: " + _.message + (x ?? "")
|
|
1448
1448
|
);
|
|
@@ -1461,40 +1461,40 @@ function Ii() {
|
|
|
1461
1461
|
var e = To(), t = Ni(), o = Pt(), n = No(), a = Ei(), i = function() {
|
|
1462
1462
|
};
|
|
1463
1463
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1464
|
-
var
|
|
1465
|
-
typeof console < "u" && console.error(
|
|
1464
|
+
var p = "Warning: " + s;
|
|
1465
|
+
typeof console < "u" && console.error(p);
|
|
1466
1466
|
try {
|
|
1467
|
-
throw new Error(
|
|
1467
|
+
throw new Error(p);
|
|
1468
1468
|
} catch {
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
function r() {
|
|
1472
1472
|
return null;
|
|
1473
1473
|
}
|
|
1474
|
-
return bt = function(s,
|
|
1475
|
-
var
|
|
1474
|
+
return bt = function(s, p) {
|
|
1475
|
+
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1476
1476
|
function _(d) {
|
|
1477
|
-
var v = d && (
|
|
1477
|
+
var v = d && (c && d[c] || d[u]);
|
|
1478
1478
|
if (typeof v == "function")
|
|
1479
1479
|
return v;
|
|
1480
1480
|
}
|
|
1481
1481
|
var g = "<<anonymous>>", x = {
|
|
1482
|
-
array:
|
|
1483
|
-
bigint:
|
|
1484
|
-
bool:
|
|
1485
|
-
func:
|
|
1486
|
-
number:
|
|
1487
|
-
object:
|
|
1488
|
-
string:
|
|
1489
|
-
symbol:
|
|
1490
|
-
any:
|
|
1482
|
+
array: P("array"),
|
|
1483
|
+
bigint: P("bigint"),
|
|
1484
|
+
bool: P("boolean"),
|
|
1485
|
+
func: P("function"),
|
|
1486
|
+
number: P("number"),
|
|
1487
|
+
object: P("object"),
|
|
1488
|
+
string: P("string"),
|
|
1489
|
+
symbol: P("symbol"),
|
|
1490
|
+
any: M(),
|
|
1491
1491
|
arrayOf: j,
|
|
1492
1492
|
element: b(),
|
|
1493
1493
|
elementType: m(),
|
|
1494
1494
|
instanceOf: N,
|
|
1495
1495
|
node: re(),
|
|
1496
|
-
objectOf:
|
|
1497
|
-
oneOf:
|
|
1496
|
+
objectOf: Y,
|
|
1497
|
+
oneOf: B,
|
|
1498
1498
|
oneOfType: Z,
|
|
1499
1499
|
shape: ue,
|
|
1500
1500
|
exact: ce
|
|
@@ -1509,33 +1509,33 @@ function Ii() {
|
|
|
1509
1509
|
function T(d) {
|
|
1510
1510
|
if (process.env.NODE_ENV !== "production")
|
|
1511
1511
|
var v = {}, E = 0;
|
|
1512
|
-
function A(D, F,
|
|
1513
|
-
if (
|
|
1514
|
-
if (
|
|
1512
|
+
function A(D, F, O, q, V, U, ie) {
|
|
1513
|
+
if (q = q || g, U = U || O, ie !== o) {
|
|
1514
|
+
if (p) {
|
|
1515
1515
|
var h = new Error(
|
|
1516
1516
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1517
1517
|
);
|
|
1518
1518
|
throw h.name = "Invariant Violation", h;
|
|
1519
1519
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1520
|
-
var he =
|
|
1520
|
+
var he = q + ":" + O;
|
|
1521
1521
|
!v[he] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1522
1522
|
E < 3 && (i(
|
|
1523
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1523
|
+
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1524
1524
|
), v[he] = !0, E++);
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
return F[
|
|
1527
|
+
return F[O] == null ? D ? F[O] === null ? new C("The " + V + " `" + U + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new C("The " + V + " `" + U + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : d(F, O, q, V, U);
|
|
1528
1528
|
}
|
|
1529
1529
|
var I = A.bind(null, !1);
|
|
1530
1530
|
return I.isRequired = A.bind(null, !0), I;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
function v(E, A, I, D, F,
|
|
1534
|
-
var
|
|
1535
|
-
if (
|
|
1536
|
-
var
|
|
1532
|
+
function P(d) {
|
|
1533
|
+
function v(E, A, I, D, F, O) {
|
|
1534
|
+
var q = E[A], V = Q(q);
|
|
1535
|
+
if (V !== d) {
|
|
1536
|
+
var U = k(q);
|
|
1537
1537
|
return new C(
|
|
1538
|
-
"Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1538
|
+
"Invalid " + D + " `" + F + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected ") + ("`" + d + "`."),
|
|
1539
1539
|
{ expectedType: d }
|
|
1540
1540
|
);
|
|
1541
1541
|
}
|
|
@@ -1543,22 +1543,22 @@ function Ii() {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
return T(v);
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function M() {
|
|
1547
1547
|
return T(r);
|
|
1548
1548
|
}
|
|
1549
1549
|
function j(d) {
|
|
1550
1550
|
function v(E, A, I, D, F) {
|
|
1551
1551
|
if (typeof d != "function")
|
|
1552
1552
|
return new C("Property `" + F + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1553
|
-
var
|
|
1554
|
-
if (!Array.isArray(
|
|
1555
|
-
var
|
|
1556
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1553
|
+
var O = E[A];
|
|
1554
|
+
if (!Array.isArray(O)) {
|
|
1555
|
+
var q = Q(O);
|
|
1556
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an array."));
|
|
1557
1557
|
}
|
|
1558
|
-
for (var
|
|
1559
|
-
var
|
|
1560
|
-
if (
|
|
1561
|
-
return
|
|
1558
|
+
for (var V = 0; V < O.length; V++) {
|
|
1559
|
+
var U = d(O, V, I, D, F + "[" + V + "]", o);
|
|
1560
|
+
if (U instanceof Error)
|
|
1561
|
+
return U;
|
|
1562
1562
|
}
|
|
1563
1563
|
return null;
|
|
1564
1564
|
}
|
|
@@ -1568,8 +1568,8 @@ function Ii() {
|
|
|
1568
1568
|
function d(v, E, A, I, D) {
|
|
1569
1569
|
var F = v[E];
|
|
1570
1570
|
if (!s(F)) {
|
|
1571
|
-
var
|
|
1572
|
-
return new C("Invalid " + I + " `" + D + "` of type " + ("`" +
|
|
1571
|
+
var O = Q(F);
|
|
1572
|
+
return new C("Invalid " + I + " `" + D + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1573
1573
|
}
|
|
1574
1574
|
return null;
|
|
1575
1575
|
}
|
|
@@ -1579,8 +1579,8 @@ function Ii() {
|
|
|
1579
1579
|
function d(v, E, A, I, D) {
|
|
1580
1580
|
var F = v[E];
|
|
1581
1581
|
if (!e.isValidElementType(F)) {
|
|
1582
|
-
var
|
|
1583
|
-
return new C("Invalid " + I + " `" + D + "` of type " + ("`" +
|
|
1582
|
+
var O = Q(F);
|
|
1583
|
+
return new C("Invalid " + I + " `" + D + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1584
1584
|
}
|
|
1585
1585
|
return null;
|
|
1586
1586
|
}
|
|
@@ -1589,42 +1589,42 @@ function Ii() {
|
|
|
1589
1589
|
function N(d) {
|
|
1590
1590
|
function v(E, A, I, D, F) {
|
|
1591
1591
|
if (!(E[A] instanceof d)) {
|
|
1592
|
-
var
|
|
1593
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1592
|
+
var O = d.name || g, q = W(E[A]);
|
|
1593
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + O + "`."));
|
|
1594
1594
|
}
|
|
1595
1595
|
return null;
|
|
1596
1596
|
}
|
|
1597
1597
|
return T(v);
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function B(d) {
|
|
1600
1600
|
if (!Array.isArray(d))
|
|
1601
1601
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1602
1602
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1603
1603
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1604
1604
|
function v(E, A, I, D, F) {
|
|
1605
|
-
for (var
|
|
1606
|
-
if (w(
|
|
1605
|
+
for (var O = E[A], q = 0; q < d.length; q++)
|
|
1606
|
+
if (w(O, d[q]))
|
|
1607
1607
|
return null;
|
|
1608
|
-
var
|
|
1608
|
+
var V = JSON.stringify(d, function(ie, h) {
|
|
1609
1609
|
var he = k(h);
|
|
1610
1610
|
return he === "symbol" ? String(h) : h;
|
|
1611
1611
|
});
|
|
1612
|
-
return new C("Invalid " + D + " `" + F + "` of value `" + String(
|
|
1612
|
+
return new C("Invalid " + D + " `" + F + "` of value `" + String(O) + "` " + ("supplied to `" + I + "`, expected one of " + V + "."));
|
|
1613
1613
|
}
|
|
1614
1614
|
return T(v);
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function Y(d) {
|
|
1617
1617
|
function v(E, A, I, D, F) {
|
|
1618
1618
|
if (typeof d != "function")
|
|
1619
1619
|
return new C("Property `" + F + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1620
|
-
var
|
|
1621
|
-
if (
|
|
1622
|
-
return new C("Invalid " + D + " `" + F + "` of type " + ("`" +
|
|
1623
|
-
for (var
|
|
1624
|
-
if (n(
|
|
1625
|
-
var
|
|
1626
|
-
if (
|
|
1627
|
-
return
|
|
1620
|
+
var O = E[A], q = Q(O);
|
|
1621
|
+
if (q !== "object")
|
|
1622
|
+
return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an object."));
|
|
1623
|
+
for (var V in O)
|
|
1624
|
+
if (n(O, V)) {
|
|
1625
|
+
var U = d(O, V, I, D, F + "." + V, o);
|
|
1626
|
+
if (U instanceof Error)
|
|
1627
|
+
return U;
|
|
1628
1628
|
}
|
|
1629
1629
|
return null;
|
|
1630
1630
|
}
|
|
@@ -1637,18 +1637,18 @@ function Ii() {
|
|
|
1637
1637
|
var E = d[v];
|
|
1638
1638
|
if (typeof E != "function")
|
|
1639
1639
|
return i(
|
|
1640
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1640
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(E) + " at index " + v + "."
|
|
1641
1641
|
), r;
|
|
1642
1642
|
}
|
|
1643
|
-
function A(I, D, F,
|
|
1644
|
-
for (var
|
|
1645
|
-
var ie = d[
|
|
1643
|
+
function A(I, D, F, O, q) {
|
|
1644
|
+
for (var V = [], U = 0; U < d.length; U++) {
|
|
1645
|
+
var ie = d[U], h = ie(I, D, F, O, q, o);
|
|
1646
1646
|
if (h == null)
|
|
1647
1647
|
return null;
|
|
1648
|
-
h.data && n(h.data, "expectedType") &&
|
|
1648
|
+
h.data && n(h.data, "expectedType") && V.push(h.data.expectedType);
|
|
1649
1649
|
}
|
|
1650
|
-
var he =
|
|
1651
|
-
return new C("Invalid " +
|
|
1650
|
+
var he = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
1651
|
+
return new C("Invalid " + O + " `" + q + "` supplied to " + ("`" + F + "`" + he + "."));
|
|
1652
1652
|
}
|
|
1653
1653
|
return T(A);
|
|
1654
1654
|
}
|
|
@@ -1665,14 +1665,14 @@ function Ii() {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
function ue(d) {
|
|
1667
1667
|
function v(E, A, I, D, F) {
|
|
1668
|
-
var
|
|
1669
|
-
if (
|
|
1670
|
-
return new C("Invalid " + D + " `" + F + "` of type `" +
|
|
1671
|
-
for (var
|
|
1672
|
-
var
|
|
1673
|
-
if (typeof
|
|
1674
|
-
return se(I, D, F,
|
|
1675
|
-
var ie =
|
|
1668
|
+
var O = E[A], q = Q(O);
|
|
1669
|
+
if (q !== "object")
|
|
1670
|
+
return new C("Invalid " + D + " `" + F + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1671
|
+
for (var V in d) {
|
|
1672
|
+
var U = d[V];
|
|
1673
|
+
if (typeof U != "function")
|
|
1674
|
+
return se(I, D, F, V, k(U));
|
|
1675
|
+
var ie = U(O, V, I, D, F + "." + V, o);
|
|
1676
1676
|
if (ie)
|
|
1677
1677
|
return ie;
|
|
1678
1678
|
}
|
|
@@ -1682,20 +1682,20 @@ function Ii() {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
function ce(d) {
|
|
1684
1684
|
function v(E, A, I, D, F) {
|
|
1685
|
-
var
|
|
1686
|
-
if (
|
|
1687
|
-
return new C("Invalid " + D + " `" + F + "` of type `" +
|
|
1688
|
-
var
|
|
1689
|
-
for (var
|
|
1690
|
-
var ie = d[
|
|
1691
|
-
if (n(d,
|
|
1692
|
-
return se(I, D, F,
|
|
1685
|
+
var O = E[A], q = Q(O);
|
|
1686
|
+
if (q !== "object")
|
|
1687
|
+
return new C("Invalid " + D + " `" + F + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1688
|
+
var V = t({}, E[A], d);
|
|
1689
|
+
for (var U in V) {
|
|
1690
|
+
var ie = d[U];
|
|
1691
|
+
if (n(d, U) && typeof ie != "function")
|
|
1692
|
+
return se(I, D, F, U, k(ie));
|
|
1693
1693
|
if (!ie)
|
|
1694
1694
|
return new C(
|
|
1695
|
-
"Invalid " + D + " `" + F + "` key `" +
|
|
1695
|
+
"Invalid " + D + " `" + F + "` key `" + U + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(E[A], null, " ") + `
|
|
1696
1696
|
Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
1697
1697
|
);
|
|
1698
|
-
var h = ie(
|
|
1698
|
+
var h = ie(O, U, I, D, F + "." + U, o);
|
|
1699
1699
|
if (h)
|
|
1700
1700
|
return h;
|
|
1701
1701
|
}
|
|
@@ -1755,7 +1755,7 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1755
1755
|
}
|
|
1756
1756
|
return v;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function $(d) {
|
|
1759
1759
|
var v = k(d);
|
|
1760
1760
|
switch (v) {
|
|
1761
1761
|
case "array":
|
|
@@ -1769,7 +1769,7 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1769
1769
|
return v;
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function W(d) {
|
|
1773
1773
|
return !d.constructor || !d.constructor.name ? g : d.constructor.name;
|
|
1774
1774
|
}
|
|
1775
1775
|
return x.checkPropTypes = a, x.resetWarningCache = a.resetWarningCache, x.PropTypes = x, x;
|
|
@@ -1785,7 +1785,7 @@ function Si() {
|
|
|
1785
1785
|
function o() {
|
|
1786
1786
|
}
|
|
1787
1787
|
return o.resetWarningCache = t, yt = function() {
|
|
1788
|
-
function n(r, s,
|
|
1788
|
+
function n(r, s, p, c, u, _) {
|
|
1789
1789
|
if (_ !== e) {
|
|
1790
1790
|
var g = new Error(
|
|
1791
1791
|
"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"
|
|
@@ -1947,7 +1947,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1947
1947
|
};
|
|
1948
1948
|
}, Pp = (e) => {
|
|
1949
1949
|
const { breakpoints: t, children: o } = e, { device: n } = Gi(t);
|
|
1950
|
-
return /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ l(
|
|
1951
1951
|
pi.Provider,
|
|
1952
1952
|
{
|
|
1953
1953
|
value: {
|
|
@@ -1957,17 +1957,17 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
);
|
|
1959
1959
|
}, Ki = 2e3, Xi = (e) => {
|
|
1960
|
-
const { targetValue: t, duration: o = Ki, doneValue: n } = e, [a, i] = J(t), r = me(), s = me(0),
|
|
1960
|
+
const { targetValue: t, duration: o = Ki, doneValue: n } = e, [a, i] = J(t), r = me(), s = me(0), p = me(), c = me(t), [u, _] = J(!1), g = me();
|
|
1961
1961
|
return ae(() => {
|
|
1962
|
-
if (
|
|
1962
|
+
if (c.current = t, t === s.current) return;
|
|
1963
1963
|
if (r.current && cancelAnimationFrame(r.current), t === n && !u) {
|
|
1964
1964
|
i(n), s.current = n;
|
|
1965
1965
|
return;
|
|
1966
1966
|
}
|
|
1967
|
-
s.current = a,
|
|
1967
|
+
s.current = a, p.current = performance.now();
|
|
1968
1968
|
const x = (w) => {
|
|
1969
|
-
if (!
|
|
1970
|
-
const C = w -
|
|
1969
|
+
if (!p.current) return;
|
|
1970
|
+
const C = w - p.current, T = Math.min(C / o, 1), P = T < 0.5 ? 4 * T * T * T : 1 - Math.pow(-2 * T + 2, 3) / 2, M = s.current + (c.current - s.current) * P, j = Math.max(0, Math.floor(M));
|
|
1971
1971
|
i(j), T < 1 && (r.current = requestAnimationFrame(x));
|
|
1972
1972
|
};
|
|
1973
1973
|
return r.current = requestAnimationFrame(x), () => {
|
|
@@ -2000,27 +2000,27 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2000
2000
|
children: i,
|
|
2001
2001
|
doneValue: r = 100,
|
|
2002
2002
|
animationVariant: s = "backgroundProgress"
|
|
2003
|
-
} = e, { animatedValue:
|
|
2003
|
+
} = e, { animatedValue: p, isLoading: c } = Xi({
|
|
2004
2004
|
targetValue: t,
|
|
2005
2005
|
duration: a,
|
|
2006
2006
|
doneValue: r
|
|
2007
2007
|
}), u = f({
|
|
2008
2008
|
[Re.progressWrapper]: !0,
|
|
2009
|
-
[Re.progressWrapper_loading]:
|
|
2009
|
+
[Re.progressWrapper_loading]: c,
|
|
2010
2010
|
...o && { [o]: !0 }
|
|
2011
2011
|
}), _ = f({
|
|
2012
2012
|
[Re.progressWrapper__progressBadge]: !0,
|
|
2013
|
-
[Re.progressWrapper__progressBadge_loading]:
|
|
2013
|
+
[Re.progressWrapper__progressBadge_loading]: c,
|
|
2014
2014
|
...n && { [n]: !0 }
|
|
2015
2015
|
}), g = f({
|
|
2016
2016
|
[Re.progressWrapper__childrenWrapper]: !0,
|
|
2017
2017
|
[Re[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
2018
|
-
[Re.progressWrapper__childrenWrapper_loading]:
|
|
2018
|
+
[Re.progressWrapper__childrenWrapper_loading]: c
|
|
2019
2019
|
}), x = {
|
|
2020
|
-
"--progress": `${
|
|
2020
|
+
"--progress": `${p / r * 100}%`
|
|
2021
2021
|
};
|
|
2022
|
-
return /* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2022
|
+
return /* @__PURE__ */ z("div", { className: u, children: [
|
|
2023
|
+
/* @__PURE__ */ l(
|
|
2024
2024
|
"div",
|
|
2025
2025
|
{
|
|
2026
2026
|
className: g,
|
|
@@ -2028,8 +2028,8 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2028
2028
|
children: i
|
|
2029
2029
|
}
|
|
2030
2030
|
),
|
|
2031
|
-
|
|
2032
|
-
|
|
2031
|
+
c && /* @__PURE__ */ z(Te, { classNameRoot: _, children: [
|
|
2032
|
+
p,
|
|
2033
2033
|
"%"
|
|
2034
2034
|
] })
|
|
2035
2035
|
] });
|
|
@@ -2059,8 +2059,8 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2059
2059
|
variant: i = "outlined",
|
|
2060
2060
|
onChange: r,
|
|
2061
2061
|
onMouseEnter: s,
|
|
2062
|
-
error:
|
|
2063
|
-
label:
|
|
2062
|
+
error: p,
|
|
2063
|
+
label: c,
|
|
2064
2064
|
infoTooltipText: u,
|
|
2065
2065
|
tooltipPosition: _,
|
|
2066
2066
|
disabled: g = !1,
|
|
@@ -2068,28 +2068,28 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2068
2068
|
maxHeightList: w = ar,
|
|
2069
2069
|
isVisibleDefaultTitle: C = !0,
|
|
2070
2070
|
isScrollableList: T = !1,
|
|
2071
|
-
isAbsolutePositionError:
|
|
2072
|
-
classNameRoot:
|
|
2071
|
+
isAbsolutePositionError: P = !1,
|
|
2072
|
+
classNameRoot: M,
|
|
2073
2073
|
classNameError: j,
|
|
2074
2074
|
classNameLabel: b,
|
|
2075
2075
|
classNameBaseTooltipRoot: m
|
|
2076
|
-
} = e, [N,
|
|
2076
|
+
} = e, [N, B] = J(!1), Y = me(null);
|
|
2077
2077
|
ho(
|
|
2078
|
-
[
|
|
2078
|
+
[Y],
|
|
2079
2079
|
() => {
|
|
2080
|
-
|
|
2080
|
+
B(!1);
|
|
2081
2081
|
},
|
|
2082
2082
|
N
|
|
2083
2083
|
);
|
|
2084
2084
|
const Z = t.find((v) => v.value === n), re = (v, E) => {
|
|
2085
|
-
r(v, { value: E, name: a }),
|
|
2085
|
+
r(v, { value: E, name: a }), B(!1);
|
|
2086
2086
|
}, se = () => {
|
|
2087
|
-
g ||
|
|
2087
|
+
g || B(!N);
|
|
2088
2088
|
}, ue = f({
|
|
2089
2089
|
[_e.spSelect]: !0,
|
|
2090
|
-
[_e.spSelect_error]: !!
|
|
2091
|
-
[_e.spSelect_absolutePositionError]:
|
|
2092
|
-
...
|
|
2090
|
+
[_e.spSelect_error]: !!p,
|
|
2091
|
+
[_e.spSelect_absolutePositionError]: P,
|
|
2092
|
+
...M && { [M]: !0 }
|
|
2093
2093
|
}), ce = f({
|
|
2094
2094
|
[_e.spSelect__container]: !0
|
|
2095
2095
|
}), G = f({
|
|
@@ -2104,27 +2104,27 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2104
2104
|
}), k = f({
|
|
2105
2105
|
[_e.spSelect__list]: !0,
|
|
2106
2106
|
[_e.spSelect__list_scrollable]: T
|
|
2107
|
-
}),
|
|
2107
|
+
}), $ = f({
|
|
2108
2108
|
...b && { [b]: !0 }
|
|
2109
|
-
}),
|
|
2109
|
+
}), W = f({
|
|
2110
2110
|
[_e.spSelect__error]: !0,
|
|
2111
|
-
[_e.spSelect__error_absolutePosition]:
|
|
2111
|
+
[_e.spSelect__error_absolutePosition]: P,
|
|
2112
2112
|
...j && { [j]: !0 }
|
|
2113
2113
|
});
|
|
2114
|
-
return /* @__PURE__ */
|
|
2115
|
-
|
|
2114
|
+
return /* @__PURE__ */ z("div", { className: ue, ref: Y, children: [
|
|
2115
|
+
c && /* @__PURE__ */ l(
|
|
2116
2116
|
Lt,
|
|
2117
2117
|
{
|
|
2118
|
-
classNameRoot:
|
|
2118
|
+
classNameRoot: $,
|
|
2119
2119
|
tooltipPosition: _,
|
|
2120
2120
|
required: x,
|
|
2121
|
-
label:
|
|
2121
|
+
label: c,
|
|
2122
2122
|
infoTooltipText: u,
|
|
2123
2123
|
classNameBaseTooltipRoot: m
|
|
2124
2124
|
}
|
|
2125
2125
|
),
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ z("div", { className: ce, onMouseEnter: s, children: [
|
|
2127
|
+
/* @__PURE__ */ z(
|
|
2128
2128
|
"div",
|
|
2129
2129
|
{
|
|
2130
2130
|
tabIndex: g ? -1 : 0,
|
|
@@ -2132,8 +2132,8 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2132
2132
|
className: G,
|
|
2133
2133
|
onClick: se,
|
|
2134
2134
|
children: [
|
|
2135
|
-
/* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ l("div", { className: ee, children: (Z == null ? void 0 : Z.label) || o }),
|
|
2136
|
+
/* @__PURE__ */ l(
|
|
2137
2137
|
ve,
|
|
2138
2138
|
{
|
|
2139
2139
|
name: ne.SelectChevronDown,
|
|
@@ -2144,14 +2144,14 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2144
2144
|
]
|
|
2145
2145
|
}
|
|
2146
2146
|
),
|
|
2147
|
-
N && /* @__PURE__ */
|
|
2147
|
+
N && /* @__PURE__ */ l(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
2150
2150
|
className: k,
|
|
2151
2151
|
style: T ? { maxHeight: `${w}px` } : {},
|
|
2152
2152
|
children: t.map((v) => {
|
|
2153
2153
|
const E = v.value === n;
|
|
2154
|
-
return /* @__PURE__ */
|
|
2154
|
+
return /* @__PURE__ */ z(
|
|
2155
2155
|
"div",
|
|
2156
2156
|
{
|
|
2157
2157
|
className: f({
|
|
@@ -2160,7 +2160,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2160
2160
|
onClick: (A) => re(A, v.value),
|
|
2161
2161
|
children: [
|
|
2162
2162
|
v.label,
|
|
2163
|
-
E && /* @__PURE__ */
|
|
2163
|
+
E && /* @__PURE__ */ l(ve, { name: ne.Check, className: Q })
|
|
2164
2164
|
]
|
|
2165
2165
|
},
|
|
2166
2166
|
v.value
|
|
@@ -2169,7 +2169,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
)
|
|
2171
2171
|
] }),
|
|
2172
|
-
|
|
2172
|
+
p && /* @__PURE__ */ l("div", { className: W, children: p })
|
|
2173
2173
|
] });
|
|
2174
2174
|
}, yr = "_skeleton_1u7gu_43", wr = {
|
|
2175
2175
|
skeleton: yr
|
|
@@ -2180,7 +2180,7 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2180
2180
|
borderRadius: n ? "50%" : "0",
|
|
2181
2181
|
...i
|
|
2182
2182
|
};
|
|
2183
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ l("div", { style: r, className: f(a, wr.skeleton) });
|
|
2184
2184
|
}, Et = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, Cr = "_spTable_1vuaj_43", kr = "_spTable__tdContentCopyIcon_1vuaj_62", Tr = "_spTable__tdContent_1vuaj_62", Nr = "_spTable__tdColorContent_1vuaj_72", Er = "_spTable__tdContentCopyIcon_copied_1vuaj_85", Ir = "_spTable__emptyPage_1vuaj_89", Sr = "_spStringsGroup_1vuaj_105", Rr = "_spStringsGroup__groupItem_1vuaj_119", Fr = "_spStringsGroup__groupItemHeader_1vuaj_134", jr = "_spStringsGroup__groupItemContent_1vuaj_138", Ar = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", Lr = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", ye = {
|
|
2185
2185
|
spTable: Cr,
|
|
2186
2186
|
spTable__tdContentCopyIcon: kr,
|
|
@@ -2207,34 +2207,34 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2207
2207
|
} : b).filter((b) => b.isVisible), s = f({
|
|
2208
2208
|
[ye.spTable]: !0,
|
|
2209
2209
|
...i && { [i]: !0 }
|
|
2210
|
-
}),
|
|
2210
|
+
}), p = f({
|
|
2211
2211
|
[ye.spTable__tdContent]: !0
|
|
2212
|
-
}),
|
|
2212
|
+
}), c = f({
|
|
2213
2213
|
[ye.spTable__tdColorContent]: !0
|
|
2214
2214
|
}), u = f({
|
|
2215
2215
|
[ye.spTable__emptyPage]: !0
|
|
2216
2216
|
}), [_, g] = J(null), x = (b) => {
|
|
2217
|
-
const { text: m, rowIndex: N, colIndex:
|
|
2218
|
-
(_ == null ? void 0 : _.rowIndex) === N && (_ == null ? void 0 : _.colIndex) ===
|
|
2219
|
-
g({ rowIndex: N, colIndex:
|
|
2220
|
-
}).catch((
|
|
2221
|
-
console.error("Ошибка при копировании:",
|
|
2217
|
+
const { text: m, rowIndex: N, colIndex: B } = b;
|
|
2218
|
+
(_ == null ? void 0 : _.rowIndex) === N && (_ == null ? void 0 : _.colIndex) === B || navigator.clipboard.writeText(m).then(() => {
|
|
2219
|
+
g({ rowIndex: N, colIndex: B });
|
|
2220
|
+
}).catch((Y) => {
|
|
2221
|
+
console.error("Ошибка при копировании:", Y);
|
|
2222
2222
|
});
|
|
2223
2223
|
}, w = () => {
|
|
2224
2224
|
g(null);
|
|
2225
|
-
}, C = () => /* @__PURE__ */
|
|
2225
|
+
}, C = () => /* @__PURE__ */ l("div", { className: u, children: "Данные отсутствуют" }), T = ({
|
|
2226
2226
|
row: b,
|
|
2227
2227
|
col: m
|
|
2228
2228
|
}) => {
|
|
2229
2229
|
const N = b[m.key];
|
|
2230
2230
|
if (!N) return null;
|
|
2231
|
-
const [
|
|
2232
|
-
return /* @__PURE__ */
|
|
2233
|
-
|
|
2234
|
-
|
|
2231
|
+
const [B, Y] = N.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2232
|
+
return /* @__PURE__ */ z("span", { children: [
|
|
2233
|
+
B,
|
|
2234
|
+
Y && /* @__PURE__ */ l("span", { className: c, children: ` ${Y}` })
|
|
2235
2235
|
] });
|
|
2236
|
-
},
|
|
2237
|
-
/* @__PURE__ */
|
|
2236
|
+
}, P = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ z("table", { className: s, children: [
|
|
2237
|
+
/* @__PURE__ */ l("colgroup", { children: r.map((b, m, N) => /* @__PURE__ */ l(
|
|
2238
2238
|
"col",
|
|
2239
2239
|
{
|
|
2240
2240
|
style: {
|
|
@@ -2243,58 +2243,58 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2243
2243
|
},
|
|
2244
2244
|
m
|
|
2245
2245
|
)) }),
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
-
/* @__PURE__ */
|
|
2248
|
-
const
|
|
2249
|
-
return /* @__PURE__ */
|
|
2246
|
+
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: r.map((b, m) => /* @__PURE__ */ l("th", { children: b.title }, m)) }) }),
|
|
2247
|
+
/* @__PURE__ */ l("tbody", { children: o.map((b, m) => b ? /* @__PURE__ */ l("tr", { children: r.map((N, B) => {
|
|
2248
|
+
const Y = (_ == null ? void 0 : _.rowIndex) === m && (_ == null ? void 0 : _.colIndex) === B;
|
|
2249
|
+
return /* @__PURE__ */ l(
|
|
2250
2250
|
"td",
|
|
2251
2251
|
{
|
|
2252
|
-
onMouseLeave:
|
|
2253
|
-
children: /* @__PURE__ */
|
|
2254
|
-
/* @__PURE__ */
|
|
2255
|
-
!Et(b[N.key]) && N.isBeCopiedValue && /* @__PURE__ */
|
|
2252
|
+
onMouseLeave: Y ? w : void 0,
|
|
2253
|
+
children: /* @__PURE__ */ z("div", { className: p, children: [
|
|
2254
|
+
/* @__PURE__ */ l("span", { children: N.isColorContentsCurlyBrackets ? T({ row: b, col: N }) : b[N.key] }),
|
|
2255
|
+
!Et(b[N.key]) && N.isBeCopiedValue && /* @__PURE__ */ l(
|
|
2256
2256
|
ve,
|
|
2257
2257
|
{
|
|
2258
2258
|
className: f({
|
|
2259
2259
|
[ye.spTable__tdContentCopyIcon]: !0,
|
|
2260
|
-
[ye.spTable__tdContentCopyIcon_copied]:
|
|
2260
|
+
[ye.spTable__tdContentCopyIcon_copied]: Y
|
|
2261
2261
|
}),
|
|
2262
|
-
name:
|
|
2262
|
+
name: Y ? ne.Check : ne.Copy,
|
|
2263
2263
|
onClick: () => {
|
|
2264
2264
|
const Z = b[N.key];
|
|
2265
2265
|
if (!Z) return null;
|
|
2266
2266
|
x({
|
|
2267
2267
|
text: Z,
|
|
2268
2268
|
rowIndex: m,
|
|
2269
|
-
colIndex:
|
|
2269
|
+
colIndex: B
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
2273
|
)
|
|
2274
2274
|
] })
|
|
2275
2275
|
},
|
|
2276
|
-
`${m}:${
|
|
2276
|
+
`${m}:${B}`
|
|
2277
2277
|
);
|
|
2278
2278
|
}) }, m) : null) })
|
|
2279
|
-
] }) : C(),
|
|
2279
|
+
] }) : C(), M = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ l(
|
|
2280
2280
|
"div",
|
|
2281
2281
|
{
|
|
2282
2282
|
className: f({
|
|
2283
2283
|
[ye.spStringsGroup]: !0
|
|
2284
2284
|
}),
|
|
2285
|
-
children: o.map((b, m) => b ? /* @__PURE__ */
|
|
2285
|
+
children: o.map((b, m) => b ? /* @__PURE__ */ l("div", { children: r.map((N, B) => {
|
|
2286
2286
|
if (Et(b[N.key]))
|
|
2287
2287
|
return null;
|
|
2288
|
-
const
|
|
2289
|
-
return /* @__PURE__ */
|
|
2288
|
+
const Y = (_ == null ? void 0 : _.rowIndex) === m && (_ == null ? void 0 : _.colIndex) === B;
|
|
2289
|
+
return /* @__PURE__ */ z(
|
|
2290
2290
|
"div",
|
|
2291
2291
|
{
|
|
2292
2292
|
className: f({
|
|
2293
2293
|
[ye.spStringsGroup__groupItem]: !0
|
|
2294
2294
|
}),
|
|
2295
|
-
onMouseLeave:
|
|
2295
|
+
onMouseLeave: Y ? w : void 0,
|
|
2296
2296
|
children: [
|
|
2297
|
-
/* @__PURE__ */
|
|
2297
|
+
/* @__PURE__ */ l(
|
|
2298
2298
|
"div",
|
|
2299
2299
|
{
|
|
2300
2300
|
className: f({
|
|
@@ -2303,29 +2303,29 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2303
2303
|
children: N.title
|
|
2304
2304
|
}
|
|
2305
2305
|
),
|
|
2306
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ z(
|
|
2307
2307
|
"div",
|
|
2308
2308
|
{
|
|
2309
2309
|
className: f({
|
|
2310
2310
|
[ye.spStringsGroup__groupItemContent]: !0
|
|
2311
2311
|
}),
|
|
2312
2312
|
children: [
|
|
2313
|
-
/* @__PURE__ */
|
|
2314
|
-
N.isBeCopiedValue && /* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ l("span", { children: N.isColorContentsCurlyBrackets ? T({ row: b, col: N }) : b[N.key] }),
|
|
2314
|
+
N.isBeCopiedValue && /* @__PURE__ */ l(
|
|
2315
2315
|
ve,
|
|
2316
2316
|
{
|
|
2317
2317
|
className: f({
|
|
2318
2318
|
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
2319
|
-
[ye.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
2319
|
+
[ye.spStringsGroup__groupItemContentCopyIcon_copied]: Y
|
|
2320
2320
|
}),
|
|
2321
|
-
name:
|
|
2321
|
+
name: Y ? ne.Check : ne.Copy,
|
|
2322
2322
|
onClick: () => {
|
|
2323
2323
|
const Z = b[N.key];
|
|
2324
2324
|
if (!Z) return null;
|
|
2325
2325
|
x({
|
|
2326
2326
|
text: Z,
|
|
2327
2327
|
rowIndex: m,
|
|
2328
|
-
colIndex:
|
|
2328
|
+
colIndex: B
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
@@ -2335,12 +2335,12 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2335
2335
|
)
|
|
2336
2336
|
]
|
|
2337
2337
|
},
|
|
2338
|
-
|
|
2338
|
+
B
|
|
2339
2339
|
);
|
|
2340
2340
|
}) }, m) : null)
|
|
2341
2341
|
}
|
|
2342
2342
|
) : C();
|
|
2343
|
-
return n ? a ?
|
|
2343
|
+
return n ? a ? P() : M() : P();
|
|
2344
2344
|
}, Dr = "_spTabs_loi7t_43", Pr = "_spTabs_separated_loi7t_48", Or = "_spTabs__tabElement_loi7t_48", Br = "_spTabs__tabElement_active_loi7t_83", Wr = "_spTabs__triggerTooltip_loi7t_90", Fe = {
|
|
2345
2345
|
spTabs: Dr,
|
|
2346
2346
|
spTabs_separated: Pr,
|
|
@@ -2365,9 +2365,9 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2365
2365
|
[Fe[`spTabs--variant-${i}`]]: i,
|
|
2366
2366
|
[Fe[`spTabs--size-${r}`]]: r,
|
|
2367
2367
|
...n && { [n]: !0 }
|
|
2368
|
-
}),
|
|
2368
|
+
}), p = f({
|
|
2369
2369
|
[Fe.spTabs__triggerTooltip]: !0
|
|
2370
|
-
}),
|
|
2370
|
+
}), c = () => {
|
|
2371
2371
|
switch (r) {
|
|
2372
2372
|
case "md":
|
|
2373
2373
|
return "p2";
|
|
@@ -2375,9 +2375,9 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2375
2375
|
return "p1";
|
|
2376
2376
|
}
|
|
2377
2377
|
};
|
|
2378
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ l("div", { className: s, children: t.map((u, _) => {
|
|
2379
2379
|
const { name: g, active: x, onClick: w, infoTooltipText: C } = u;
|
|
2380
|
-
return /* @__PURE__ */
|
|
2380
|
+
return /* @__PURE__ */ z(
|
|
2381
2381
|
"div",
|
|
2382
2382
|
{
|
|
2383
2383
|
className: f({
|
|
@@ -2386,11 +2386,11 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2386
2386
|
}),
|
|
2387
2387
|
onClick: w,
|
|
2388
2388
|
children: [
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
!!C && /* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ l(Te, { type: c(), children: g }),
|
|
2390
|
+
!!C && /* @__PURE__ */ l(
|
|
2391
2391
|
nt,
|
|
2392
2392
|
{
|
|
2393
|
-
classNameTriggerTooltip:
|
|
2393
|
+
classNameTriggerTooltip: p,
|
|
2394
2394
|
text: C,
|
|
2395
2395
|
classNameBaseTooltipRoot: a
|
|
2396
2396
|
}
|
|
@@ -2404,9 +2404,9 @@ const Bi = (e) => `not ${e}`, Wi = (e, t) => {
|
|
|
2404
2404
|
spTextWithLabel: zr
|
|
2405
2405
|
}, Up = (e) => {
|
|
2406
2406
|
const { children: t, label: o, style: n, ...a } = e;
|
|
2407
|
-
return /* @__PURE__ */
|
|
2408
|
-
/* @__PURE__ */
|
|
2409
|
-
/* @__PURE__ */
|
|
2407
|
+
return /* @__PURE__ */ z("div", { className: Mr.spTextWithLabel, style: { ...n }, children: [
|
|
2408
|
+
/* @__PURE__ */ l(Lt, { label: o }),
|
|
2409
|
+
/* @__PURE__ */ l(Te, { ...a, children: t })
|
|
2410
2410
|
] });
|
|
2411
2411
|
};
|
|
2412
2412
|
function Ae(e, t, o, n) {
|
|
@@ -2418,22 +2418,22 @@ function Ae(e, t, o, n) {
|
|
|
2418
2418
|
return new (o || (o = Promise))(function(i, r) {
|
|
2419
2419
|
function s(u) {
|
|
2420
2420
|
try {
|
|
2421
|
-
|
|
2421
|
+
c(n.next(u));
|
|
2422
2422
|
} catch (_) {
|
|
2423
2423
|
r(_);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function p(u) {
|
|
2427
2427
|
try {
|
|
2428
|
-
|
|
2428
|
+
c(n.throw(u));
|
|
2429
2429
|
} catch (_) {
|
|
2430
2430
|
r(_);
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2434
|
-
u.done ? i(u.value) : a(u.value).then(s,
|
|
2433
|
+
function c(u) {
|
|
2434
|
+
u.done ? i(u.value) : a(u.value).then(s, p);
|
|
2435
2435
|
}
|
|
2436
|
-
|
|
2436
|
+
c((n = n.apply(e, t || [])).next());
|
|
2437
2437
|
});
|
|
2438
2438
|
}
|
|
2439
2439
|
const Ur = /* @__PURE__ */ new Map([
|
|
@@ -3866,8 +3866,8 @@ function as(e, t) {
|
|
|
3866
3866
|
try {
|
|
3867
3867
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
3868
3868
|
;
|
|
3869
|
-
} catch (
|
|
3870
|
-
i = !0, s =
|
|
3869
|
+
} catch (p) {
|
|
3870
|
+
i = !0, s = p;
|
|
3871
3871
|
} finally {
|
|
3872
3872
|
try {
|
|
3873
3873
|
!a && o.return != null && o.return();
|
|
@@ -3925,8 +3925,8 @@ function je(e) {
|
|
|
3925
3925
|
}
|
|
3926
3926
|
function cs(e) {
|
|
3927
3927
|
var t = e.files, o = e.accept, n = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
3928
|
-
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(
|
|
3929
|
-
var
|
|
3928
|
+
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(p) {
|
|
3929
|
+
var c = Po(p, o), u = Ue(c, 1), _ = u[0], g = Oo(p, n, a), x = Ue(g, 1), w = x[0], C = s ? s(p) : null;
|
|
3930
3930
|
return _ && w && !C;
|
|
3931
3931
|
});
|
|
3932
3932
|
}
|
|
@@ -4045,8 +4045,8 @@ function Is(e, t) {
|
|
|
4045
4045
|
try {
|
|
4046
4046
|
for (o = o.call(e); !(a = (r = o.next()).done) && (n.push(r.value), !(t && n.length === t)); a = !0)
|
|
4047
4047
|
;
|
|
4048
|
-
} catch (
|
|
4049
|
-
i = !0, s =
|
|
4048
|
+
} catch (p) {
|
|
4049
|
+
i = !0, s = p;
|
|
4050
4050
|
} finally {
|
|
4051
4051
|
try {
|
|
4052
4052
|
!a && o.return != null && o.return();
|
|
@@ -4307,7 +4307,7 @@ var jt = {
|
|
|
4307
4307
|
fileRejections: []
|
|
4308
4308
|
};
|
|
4309
4309
|
function Uo() {
|
|
4310
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, Mo), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple,
|
|
4310
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = te(te({}, Mo), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, c = t.onDragEnter, u = t.onDragLeave, _ = t.onDragOver, g = t.onDrop, x = t.onDropAccepted, w = t.onDropRejected, C = t.onFileDialogCancel, T = t.onFileDialogOpen, P = t.useFsAccessApi, M = t.autoFocus, j = t.preventDropOnDocument, b = t.noClick, m = t.noKeyboard, N = t.noDrag, B = t.noDragEventsBubbling, Y = t.onError, Z = t.validator, re = Pe(function() {
|
|
4311
4311
|
return vs(o);
|
|
4312
4312
|
}, [o]), se = Pe(function() {
|
|
4313
4313
|
return fs(o);
|
|
@@ -4315,11 +4315,11 @@ function Uo() {
|
|
|
4315
4315
|
return typeof T == "function" ? T : uo;
|
|
4316
4316
|
}, [T]), ce = Pe(function() {
|
|
4317
4317
|
return typeof C == "function" ? C : uo;
|
|
4318
|
-
}, [C]), G = me(null), ee = me(null), Q = Go(Fs, jt), k = Tt(Q, 2),
|
|
4318
|
+
}, [C]), G = me(null), ee = me(null), Q = Go(Fs, jt), k = Tt(Q, 2), $ = k[0], W = k[1], d = $.isFocused, v = $.isFileDialogActive, E = me(typeof window < "u" && window.isSecureContext && P && _s()), A = function() {
|
|
4319
4319
|
!E.current && v && setTimeout(function() {
|
|
4320
4320
|
if (ee.current) {
|
|
4321
4321
|
var L = ee.current.files;
|
|
4322
|
-
L.length || (
|
|
4322
|
+
L.length || (W({
|
|
4323
4323
|
type: "closeDialog"
|
|
4324
4324
|
}), ce());
|
|
4325
4325
|
}
|
|
@@ -4338,34 +4338,34 @@ function Uo() {
|
|
|
4338
4338
|
j && (document.removeEventListener("dragover", co), document.removeEventListener("drop", D));
|
|
4339
4339
|
};
|
|
4340
4340
|
}, [G, j]), ae(function() {
|
|
4341
|
-
return !n &&
|
|
4341
|
+
return !n && M && G.current && G.current.focus(), function() {
|
|
4342
4342
|
};
|
|
4343
|
-
}, [G,
|
|
4343
|
+
}, [G, M, n]);
|
|
4344
4344
|
var F = xe(function(y) {
|
|
4345
|
-
|
|
4346
|
-
}, [
|
|
4345
|
+
Y ? Y(y) : console.error(y);
|
|
4346
|
+
}, [Y]), O = xe(function(y) {
|
|
4347
4347
|
y.preventDefault(), y.persist(), He(y), I.current = [].concat(Cs(I.current), [y.target]), Ze(y) && Promise.resolve(a(y)).then(function(L) {
|
|
4348
|
-
if (!(et(y) && !
|
|
4348
|
+
if (!(et(y) && !B)) {
|
|
4349
4349
|
var oe = L.length, pe = oe > 0 && cs({
|
|
4350
4350
|
files: L,
|
|
4351
4351
|
accept: re,
|
|
4352
4352
|
minSize: r,
|
|
4353
4353
|
maxSize: i,
|
|
4354
4354
|
multiple: s,
|
|
4355
|
-
maxFiles:
|
|
4355
|
+
maxFiles: p,
|
|
4356
4356
|
validator: Z
|
|
4357
4357
|
}), be = oe > 0 && !pe;
|
|
4358
|
-
|
|
4358
|
+
W({
|
|
4359
4359
|
isDragAccept: pe,
|
|
4360
4360
|
isDragReject: be,
|
|
4361
4361
|
isDragActive: !0,
|
|
4362
4362
|
type: "setDraggedFiles"
|
|
4363
|
-
}),
|
|
4363
|
+
}), c && c(y);
|
|
4364
4364
|
}
|
|
4365
4365
|
}).catch(function(L) {
|
|
4366
4366
|
return F(L);
|
|
4367
4367
|
});
|
|
4368
|
-
}, [a,
|
|
4368
|
+
}, [a, c, F, B, re, r, i, s, p, Z]), q = xe(function(y) {
|
|
4369
4369
|
y.preventDefault(), y.persist(), He(y);
|
|
4370
4370
|
var L = Ze(y);
|
|
4371
4371
|
if (L && y.dataTransfer)
|
|
@@ -4374,18 +4374,18 @@ function Uo() {
|
|
|
4374
4374
|
} catch {
|
|
4375
4375
|
}
|
|
4376
4376
|
return L && _ && _(y), !1;
|
|
4377
|
-
}, [_,
|
|
4377
|
+
}, [_, B]), V = xe(function(y) {
|
|
4378
4378
|
y.preventDefault(), y.persist(), He(y);
|
|
4379
4379
|
var L = I.current.filter(function(pe) {
|
|
4380
4380
|
return G.current && G.current.contains(pe);
|
|
4381
4381
|
}), oe = L.indexOf(y.target);
|
|
4382
|
-
oe !== -1 && L.splice(oe, 1), I.current = L, !(L.length > 0) && (
|
|
4382
|
+
oe !== -1 && L.splice(oe, 1), I.current = L, !(L.length > 0) && (W({
|
|
4383
4383
|
type: "setDraggedFiles",
|
|
4384
4384
|
isDragActive: !1,
|
|
4385
4385
|
isDragAccept: !1,
|
|
4386
4386
|
isDragReject: !1
|
|
4387
4387
|
}), Ze(y) && u && u(y));
|
|
4388
|
-
}, [G, u,
|
|
4388
|
+
}, [G, u, B]), U = xe(function(y, L) {
|
|
4389
4389
|
var oe = [], pe = [];
|
|
4390
4390
|
y.forEach(function(be) {
|
|
4391
4391
|
var We = Po(be, re), De = Tt(We, 2), it = De[0], rt = De[1], st = Oo(be, r, i), Ve = Tt(st, 2), pt = Ve[0], lt = Ve[1], ct = Z ? Z(be) : null;
|
|
@@ -4400,28 +4400,28 @@ function Uo() {
|
|
|
4400
4400
|
})
|
|
4401
4401
|
});
|
|
4402
4402
|
}
|
|
4403
|
-
}), (!s && oe.length > 1 || s &&
|
|
4403
|
+
}), (!s && oe.length > 1 || s && p >= 1 && oe.length > p) && (oe.forEach(function(be) {
|
|
4404
4404
|
pe.push({
|
|
4405
4405
|
file: be,
|
|
4406
4406
|
errors: [ls]
|
|
4407
4407
|
});
|
|
4408
|
-
}), oe.splice(0)),
|
|
4408
|
+
}), oe.splice(0)), W({
|
|
4409
4409
|
acceptedFiles: oe,
|
|
4410
4410
|
fileRejections: pe,
|
|
4411
4411
|
isDragReject: pe.length > 0,
|
|
4412
4412
|
type: "setFiles"
|
|
4413
4413
|
}), g && g(oe, pe, L), pe.length > 0 && w && w(pe, L), oe.length > 0 && x && x(oe, L);
|
|
4414
|
-
}, [
|
|
4414
|
+
}, [W, s, re, r, i, p, g, x, w, Z]), ie = xe(function(y) {
|
|
4415
4415
|
y.preventDefault(), y.persist(), He(y), I.current = [], Ze(y) && Promise.resolve(a(y)).then(function(L) {
|
|
4416
|
-
et(y) && !
|
|
4416
|
+
et(y) && !B || U(L, y);
|
|
4417
4417
|
}).catch(function(L) {
|
|
4418
4418
|
return F(L);
|
|
4419
|
-
}),
|
|
4419
|
+
}), W({
|
|
4420
4420
|
type: "reset"
|
|
4421
4421
|
});
|
|
4422
|
-
}, [a,
|
|
4422
|
+
}, [a, U, F, B]), h = xe(function() {
|
|
4423
4423
|
if (E.current) {
|
|
4424
|
-
|
|
4424
|
+
W({
|
|
4425
4425
|
type: "openDialog"
|
|
4426
4426
|
}), ue();
|
|
4427
4427
|
var y = {
|
|
@@ -4431,27 +4431,27 @@ function Uo() {
|
|
|
4431
4431
|
window.showOpenFilePicker(y).then(function(L) {
|
|
4432
4432
|
return a(L);
|
|
4433
4433
|
}).then(function(L) {
|
|
4434
|
-
|
|
4434
|
+
U(L, null), W({
|
|
4435
4435
|
type: "closeDialog"
|
|
4436
4436
|
});
|
|
4437
4437
|
}).catch(function(L) {
|
|
4438
|
-
gs(L) ? (ce(L),
|
|
4438
|
+
gs(L) ? (ce(L), W({
|
|
4439
4439
|
type: "closeDialog"
|
|
4440
4440
|
})) : xs(L) ? (E.current = !1, ee.current ? (ee.current.value = null, ee.current.click()) : F(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : F(L);
|
|
4441
4441
|
});
|
|
4442
4442
|
return;
|
|
4443
4443
|
}
|
|
4444
|
-
ee.current && (
|
|
4444
|
+
ee.current && (W({
|
|
4445
4445
|
type: "openDialog"
|
|
4446
4446
|
}), ue(), ee.current.value = null, ee.current.click());
|
|
4447
|
-
}, [
|
|
4447
|
+
}, [W, ue, ce, P, U, F, se, s]), he = xe(function(y) {
|
|
4448
4448
|
!G.current || !G.current.isEqualNode(y.target) || (y.key === " " || y.key === "Enter" || y.keyCode === 32 || y.keyCode === 13) && (y.preventDefault(), h());
|
|
4449
4449
|
}, [G, h]), Se = xe(function() {
|
|
4450
|
-
|
|
4450
|
+
W({
|
|
4451
4451
|
type: "focus"
|
|
4452
4452
|
});
|
|
4453
4453
|
}, []), Be = xe(function() {
|
|
4454
|
-
|
|
4454
|
+
W({
|
|
4455
4455
|
type: "blur"
|
|
4456
4456
|
});
|
|
4457
4457
|
}, []), Bt = xe(function() {
|
|
@@ -4463,7 +4463,7 @@ function Uo() {
|
|
|
4463
4463
|
}, qe = function(L) {
|
|
4464
4464
|
return N ? null : Le(L);
|
|
4465
4465
|
}, He = function(L) {
|
|
4466
|
-
|
|
4466
|
+
B && L.stopPropagation();
|
|
4467
4467
|
}, $o = Pe(function() {
|
|
4468
4468
|
return function() {
|
|
4469
4469
|
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, oe = L === void 0 ? "ref" : L, pe = y.role, be = y.onKeyDown, We = y.onFocus, De = y.onBlur, it = y.onClick, rt = y.onDragEnter, st = y.onDragOver, Ve = y.onDragLeave, pt = y.onDrop, lt = tt(y, ys);
|
|
@@ -4472,16 +4472,16 @@ function Uo() {
|
|
|
4472
4472
|
onFocus: at(Ne(We, Se)),
|
|
4473
4473
|
onBlur: at(Ne(De, Be)),
|
|
4474
4474
|
onClick: Le(Ne(it, Bt)),
|
|
4475
|
-
onDragEnter: qe(Ne(rt,
|
|
4476
|
-
onDragOver: qe(Ne(st,
|
|
4477
|
-
onDragLeave: qe(Ne(Ve,
|
|
4475
|
+
onDragEnter: qe(Ne(rt, O)),
|
|
4476
|
+
onDragOver: qe(Ne(st, q)),
|
|
4477
|
+
onDragLeave: qe(Ne(Ve, V)),
|
|
4478
4478
|
onDrop: qe(Ne(pt, ie)),
|
|
4479
4479
|
role: typeof pe == "string" && pe !== "" ? pe : "presentation"
|
|
4480
4480
|
}, oe, G), !n && !m ? {
|
|
4481
4481
|
tabIndex: 0
|
|
4482
4482
|
} : {}), lt);
|
|
4483
4483
|
};
|
|
4484
|
-
}, [G, he, Se, Be, Bt,
|
|
4484
|
+
}, [G, he, Se, Be, Bt, O, q, V, ie, m, N, n]), qo = xe(function(y) {
|
|
4485
4485
|
y.stopPropagation();
|
|
4486
4486
|
}, []), Ho = Pe(function() {
|
|
4487
4487
|
return function() {
|
|
@@ -4508,7 +4508,7 @@ function Uo() {
|
|
|
4508
4508
|
return te(te({}, De), We);
|
|
4509
4509
|
};
|
|
4510
4510
|
}, [ee, o, s, ie, n]);
|
|
4511
|
-
return te(te({},
|
|
4511
|
+
return te(te({}, $), {}, {
|
|
4512
4512
|
isFocused: d && !n,
|
|
4513
4513
|
getRootProps: $o,
|
|
4514
4514
|
getInputProps: Ho,
|
|
@@ -4571,8 +4571,8 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4571
4571
|
}, Ds = (e, t = {}) => {
|
|
4572
4572
|
const { decimals: o = 1, space: n = !0 } = t;
|
|
4573
4573
|
if (e === 0) return "0" + (n ? " " : "") + "B";
|
|
4574
|
-
const a = 1024, i = ["B", "KB", "MB", "GB", "TB"], r = Math.floor(Math.log(e) / Math.log(a)), s = r === 0 ? 0 : o,
|
|
4575
|
-
return parseFloat((e / Math.pow(a, r)).toFixed(s)) +
|
|
4574
|
+
const a = 1024, i = ["B", "KB", "MB", "GB", "TB"], r = Math.floor(Math.log(e) / Math.log(a)), s = r === 0 ? 0 : o, p = n ? " " : "";
|
|
4575
|
+
return parseFloat((e / Math.pow(a, r)).toFixed(s)) + p + i[r];
|
|
4576
4576
|
}, Ps = "_ellipsisFileName_qx34h_1", Os = "_tooltipContent_qx34h_7", _o = {
|
|
4577
4577
|
ellipsisFileName: Ps,
|
|
4578
4578
|
tooltipContent: Os
|
|
@@ -4583,14 +4583,14 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4583
4583
|
type: n = "p2",
|
|
4584
4584
|
classNameEllipsisText: a,
|
|
4585
4585
|
classNameEllipsisFileNameRoot: i
|
|
4586
|
-
} = e, r = me(null), s = me(null), [
|
|
4587
|
-
r.current &&
|
|
4586
|
+
} = e, r = me(null), s = me(null), [p, c] = J(!1), [u, _] = J(0), g = () => {
|
|
4587
|
+
r.current && c(r.current.scrollWidth > r.current.clientWidth), s.current && _(s.current.offsetWidth);
|
|
4588
4588
|
};
|
|
4589
4589
|
Qo(() => (g(), window.addEventListener("resize", g), () => {
|
|
4590
4590
|
window.removeEventListener("resize", g);
|
|
4591
4591
|
}), [t]);
|
|
4592
4592
|
const x = Ls(t);
|
|
4593
|
-
return /* @__PURE__ */
|
|
4593
|
+
return /* @__PURE__ */ z(
|
|
4594
4594
|
"div",
|
|
4595
4595
|
{
|
|
4596
4596
|
className: f(
|
|
@@ -4598,19 +4598,19 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4598
4598
|
i && i
|
|
4599
4599
|
),
|
|
4600
4600
|
children: [
|
|
4601
|
-
/* @__PURE__ */
|
|
4601
|
+
/* @__PURE__ */ l(
|
|
4602
4602
|
ot,
|
|
4603
4603
|
{
|
|
4604
4604
|
position: le.TopLeft,
|
|
4605
4605
|
classNameBaseTooltipRoot: _o.tooltipContent,
|
|
4606
|
-
styleTooltip: { maxWidth:
|
|
4606
|
+
styleTooltip: { maxWidth: p ? `calc(100% - ${u}px)` : "100%" },
|
|
4607
4607
|
classNameTooltip: o,
|
|
4608
|
-
isVisibleTooltip:
|
|
4608
|
+
isVisibleTooltip: p,
|
|
4609
4609
|
text: t,
|
|
4610
|
-
trigger: /* @__PURE__ */
|
|
4610
|
+
trigger: /* @__PURE__ */ l(Te, { type: n, isEllipsis: !0, ref: r, classNameRoot: a, children: t })
|
|
4611
4611
|
}
|
|
4612
4612
|
),
|
|
4613
|
-
/* @__PURE__ */
|
|
4613
|
+
/* @__PURE__ */ l(
|
|
4614
4614
|
"div",
|
|
4615
4615
|
{
|
|
4616
4616
|
ref: s,
|
|
@@ -4620,14 +4620,14 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4620
4620
|
pointerEvents: "none",
|
|
4621
4621
|
whiteSpace: "nowrap"
|
|
4622
4622
|
},
|
|
4623
|
-
children: /* @__PURE__ */
|
|
4623
|
+
children: /* @__PURE__ */ l(Te, { type: n, classNameRoot: a, children: x })
|
|
4624
4624
|
}
|
|
4625
4625
|
),
|
|
4626
|
-
|
|
4626
|
+
p && /* @__PURE__ */ l(Te, { type: n, classNameRoot: a, children: x })
|
|
4627
4627
|
]
|
|
4628
4628
|
}
|
|
4629
4629
|
);
|
|
4630
|
-
}, Ws = "_spUploadFiles_1i7hm_43", zs = "_spUploadFiles_error_1i7hm_50", Ms = "_spUploadFiles__control_1i7hm_50", Us = "_spUploadFiles__fileNameContainer_1i7hm_54", $s = "_spUploadFiles__fileName_dragError_1i7hm_58", qs = "_spUploadFiles__placeholderContainer_1i7hm_61", Hs = "_spUploadFiles__placeholderContainer_withUloadTooltip_1i7hm_71", Vs = "_spUploadFiles__placeholder_1i7hm_61", Ys = "_spUploadFiles__control_loading_1i7hm_103", Gs = "_shimmer_1i7hm_1", Ks = "_spUploadFiles__fileName_1i7hm_54", Xs = "_spUploadFiles_fileUploaded_1i7hm_150", Zs = "_spUploadFiles_disabled_1i7hm_150", Qs = "_spUploadFiles__fileNamesList_1i7hm_161", Js = "_spUploadFiles__fileNamesList_loading_1i7hm_172", ep = "_spUploadFiles__fileNamesListItem_1i7hm_177", tp = "_spUploadFiles__fileNamesListItem__iconContainer_1i7hm_204", op = "_spUploadFiles__fileNamesListItem__iconContainer_error_1i7hm_213", np = "_spUploadFiles__fileNamesListItem__mainContent_1i7hm_218", ap = "_spUploadFiles__fileNamesListItem__fileNameWrapper_1i7hm_225", ip = "_spUploadFiles__fileNamesListItem__fileName_1i7hm_225", rp = "_spUploadFiles__fileNamesListItem__description_1i7hm_232", sp = "_spUploadFiles__fileNamesListItem__description__tooltipContent_1i7hm_237", pp = "_spUploadFiles__fileNamesListItem__description_error_1i7hm_240", lp = "_spUploadFiles__fileNamesListItemDelete_1i7hm_243", cp = "_spUploadFiles__fileNamesListItemDelete_error_1i7hm_260", dp = "_spUploadFiles__tooltipWrapper_1i7hm_270", mp = "_spUploadFiles__tooltip_1i7hm_270", up = "_spUploadFiles__delete_1i7hm_276", _p = "_spUploadFiles__delete_loading_1i7hm_280", fp = "_spUploadFiles__error_1i7hm_289",
|
|
4630
|
+
}, Ws = "_spUploadFiles_1i7hm_43", zs = "_spUploadFiles_error_1i7hm_50", Ms = "_spUploadFiles__control_1i7hm_50", Us = "_spUploadFiles__fileNameContainer_1i7hm_54", $s = "_spUploadFiles__fileName_dragError_1i7hm_58", qs = "_spUploadFiles__placeholderContainer_1i7hm_61", Hs = "_spUploadFiles__placeholderContainer_withUloadTooltip_1i7hm_71", Vs = "_spUploadFiles__placeholder_1i7hm_61", Ys = "_spUploadFiles__control_loading_1i7hm_103", Gs = "_shimmer_1i7hm_1", Ks = "_spUploadFiles__fileName_1i7hm_54", Xs = "_spUploadFiles_fileUploaded_1i7hm_150", Zs = "_spUploadFiles_disabled_1i7hm_150", Qs = "_spUploadFiles__fileNamesList_1i7hm_161", Js = "_spUploadFiles__fileNamesList_loading_1i7hm_172", ep = "_spUploadFiles__fileNamesListItem_1i7hm_177", tp = "_spUploadFiles__fileNamesListItem__iconContainer_1i7hm_204", op = "_spUploadFiles__fileNamesListItem__iconContainer_error_1i7hm_213", np = "_spUploadFiles__fileNamesListItem__mainContent_1i7hm_218", ap = "_spUploadFiles__fileNamesListItem__fileNameWrapper_1i7hm_225", ip = "_spUploadFiles__fileNamesListItem__fileName_1i7hm_225", rp = "_spUploadFiles__fileNamesListItem__description_1i7hm_232", sp = "_spUploadFiles__fileNamesListItem__description__tooltipContent_1i7hm_237", pp = "_spUploadFiles__fileNamesListItem__description_error_1i7hm_240", lp = "_spUploadFiles__fileNamesListItemDelete_1i7hm_243", cp = "_spUploadFiles__fileNamesListItemDelete_error_1i7hm_260", dp = "_spUploadFiles__tooltipWrapper_1i7hm_270", mp = "_spUploadFiles__tooltip_1i7hm_270", up = "_spUploadFiles__delete_1i7hm_276", _p = "_spUploadFiles__delete_loading_1i7hm_280", fp = "_spUploadFiles__error_1i7hm_289", H = {
|
|
4631
4631
|
spUploadFiles: Ws,
|
|
4632
4632
|
spUploadFiles_error: zs,
|
|
4633
4633
|
spUploadFiles__control: Ms,
|
|
@@ -4670,8 +4670,8 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4670
4670
|
accept: i,
|
|
4671
4671
|
disabled: r,
|
|
4672
4672
|
multiple: s,
|
|
4673
|
-
files:
|
|
4674
|
-
infoTooltipText:
|
|
4673
|
+
files: p = [],
|
|
4674
|
+
infoTooltipText: c,
|
|
4675
4675
|
tooltipPosition: u = le.TopRight,
|
|
4676
4676
|
classNameRoot: _,
|
|
4677
4677
|
loading: g,
|
|
@@ -4686,11 +4686,11 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4686
4686
|
a(v, n);
|
|
4687
4687
|
return;
|
|
4688
4688
|
}
|
|
4689
|
-
const I = [...
|
|
4689
|
+
const I = [...p, ...v];
|
|
4690
4690
|
a(I, n);
|
|
4691
4691
|
},
|
|
4692
|
-
[w,
|
|
4693
|
-
), { getRootProps:
|
|
4692
|
+
[w, p, s, n, a]
|
|
4693
|
+
), { getRootProps: P, getInputProps: M, isDragReject: j } = js({
|
|
4694
4694
|
accept: i,
|
|
4695
4695
|
onDrop: T,
|
|
4696
4696
|
multiple: s,
|
|
@@ -4699,156 +4699,156 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4699
4699
|
ae(() => {
|
|
4700
4700
|
m(j);
|
|
4701
4701
|
}, [j]);
|
|
4702
|
-
const N = [...
|
|
4703
|
-
[
|
|
4704
|
-
[
|
|
4705
|
-
[
|
|
4706
|
-
[
|
|
4707
|
-
[
|
|
4702
|
+
const N = [...p.map((v) => ({ file: v, errors: null })), ...w], B = (N == null ? void 0 : N.length) > 0 || (w == null ? void 0 : w.length) > 0, Y = o === "input", Z = f({
|
|
4703
|
+
[H.spUploadFiles]: !0,
|
|
4704
|
+
[H[`spUploadFiles--variant-${o}`]]: o,
|
|
4705
|
+
[H.spUploadFiles_error]: b && !s && x && x.length > 0,
|
|
4706
|
+
[H.spUploadFiles_disabled]: r,
|
|
4707
|
+
[H.spUploadFiles_fileUploaded]: B,
|
|
4708
4708
|
..._ && { [_]: !0 }
|
|
4709
4709
|
}), re = f({
|
|
4710
|
-
[
|
|
4711
|
-
[
|
|
4710
|
+
[H.spUploadFiles__control]: !0,
|
|
4711
|
+
[H.spUploadFiles__control_loading]: g
|
|
4712
4712
|
}), se = f({
|
|
4713
|
-
[
|
|
4714
|
-
[
|
|
4713
|
+
[H.spUploadFiles__fileNamesList]: !0,
|
|
4714
|
+
[H.spUploadFiles__fileNamesList_loading]: g
|
|
4715
4715
|
}), ue = f({
|
|
4716
|
-
[
|
|
4717
|
-
[
|
|
4716
|
+
[H.spUploadFiles__delete]: !0,
|
|
4717
|
+
[H.spUploadFiles__delete_loading]: g
|
|
4718
4718
|
}), ce = (v, E) => {
|
|
4719
4719
|
if (g)
|
|
4720
4720
|
return;
|
|
4721
4721
|
if (E) {
|
|
4722
|
-
const D = [...w], F = D.findIndex((
|
|
4722
|
+
const D = [...w], F = D.findIndex((O) => O.file.name === v);
|
|
4723
4723
|
D.splice(F, 1), C(D);
|
|
4724
4724
|
return;
|
|
4725
4725
|
}
|
|
4726
|
-
const A = [...
|
|
4726
|
+
const A = [...p], I = A.findIndex((D) => D.name === v);
|
|
4727
4727
|
A.splice(I, 1), a(A, n);
|
|
4728
4728
|
}, G = (v) => {
|
|
4729
4729
|
v.stopPropagation(), a([], n), C([]), m(!1);
|
|
4730
4730
|
}, ee = (v) => Object.values(v).flatMap((E) => E.map((A) => A.toUpperCase())).join(", "), Q = () => {
|
|
4731
4731
|
if (b) {
|
|
4732
4732
|
const v = ee(i);
|
|
4733
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ l(
|
|
4734
4734
|
Ge,
|
|
4735
4735
|
{
|
|
4736
4736
|
text: `Неверный формат файла. Загрузите файл в формате ${v}`,
|
|
4737
|
-
classNameTooltipRoot: f(
|
|
4737
|
+
classNameTooltipRoot: f(H.spUploadFiles__fileNameContainer),
|
|
4738
4738
|
classNameRoot: f(
|
|
4739
|
-
|
|
4740
|
-
b &&
|
|
4739
|
+
H.spUploadFiles__fileName,
|
|
4740
|
+
b && H.spUploadFiles__fileName_dragError
|
|
4741
4741
|
)
|
|
4742
4742
|
}
|
|
4743
4743
|
);
|
|
4744
4744
|
}
|
|
4745
|
-
return /* @__PURE__ */
|
|
4745
|
+
return /* @__PURE__ */ l(
|
|
4746
4746
|
Ge,
|
|
4747
4747
|
{
|
|
4748
4748
|
text: N[0].file.name,
|
|
4749
|
-
classNameTooltipRoot: f(
|
|
4750
|
-
classNameRoot: f(
|
|
4749
|
+
classNameTooltipRoot: f(H.spUploadFiles__fileNameContainer),
|
|
4750
|
+
classNameRoot: f(H.spUploadFiles__fileName)
|
|
4751
4751
|
}
|
|
4752
4752
|
);
|
|
4753
|
-
}, k = () => /* @__PURE__ */
|
|
4753
|
+
}, k = () => /* @__PURE__ */ l("ul", { className: se, children: N.map(({ file: v, errors: E }, A) => {
|
|
4754
4754
|
const I = E ? (E == null ? void 0 : E.length) > 0 : void 0, D = () => E ? E == null ? void 0 : E.map(As).join(", ") : "";
|
|
4755
|
-
return /* @__PURE__ */
|
|
4755
|
+
return /* @__PURE__ */ z(
|
|
4756
4756
|
"li",
|
|
4757
4757
|
{
|
|
4758
4758
|
className: f(
|
|
4759
|
-
|
|
4760
|
-
I &&
|
|
4759
|
+
H.spUploadFiles__fileNamesListItem,
|
|
4760
|
+
I && H.spUploadFiles__fileNamesListItem_error
|
|
4761
4761
|
),
|
|
4762
4762
|
onClick: (F) => {
|
|
4763
4763
|
F.stopPropagation();
|
|
4764
4764
|
},
|
|
4765
4765
|
children: [
|
|
4766
|
-
/* @__PURE__ */
|
|
4766
|
+
/* @__PURE__ */ l(
|
|
4767
4767
|
"div",
|
|
4768
4768
|
{
|
|
4769
4769
|
className: f(
|
|
4770
|
-
|
|
4771
|
-
I &&
|
|
4770
|
+
H.spUploadFiles__fileNamesListItem__iconContainer,
|
|
4771
|
+
I && H.spUploadFiles__fileNamesListItem__iconContainer_error
|
|
4772
4772
|
),
|
|
4773
|
-
children: /* @__PURE__ */
|
|
4773
|
+
children: /* @__PURE__ */ l(ve, { name: I ? ne.InfoError : ne.File })
|
|
4774
4774
|
}
|
|
4775
4775
|
),
|
|
4776
|
-
/* @__PURE__ */
|
|
4777
|
-
/* @__PURE__ */
|
|
4776
|
+
/* @__PURE__ */ z("div", { className: H.spUploadFiles__fileNamesListItem__mainContent, children: [
|
|
4777
|
+
/* @__PURE__ */ l(
|
|
4778
4778
|
Bs,
|
|
4779
4779
|
{
|
|
4780
4780
|
fileName: v.name,
|
|
4781
|
-
classNameEllipsisFileNameRoot:
|
|
4782
|
-
classNameEllipsisText:
|
|
4781
|
+
classNameEllipsisFileNameRoot: H.spUploadFiles__fileNamesListItem__fileNameWrapper,
|
|
4782
|
+
classNameEllipsisText: H.spUploadFiles__fileNamesListItem__fileName
|
|
4783
4783
|
}
|
|
4784
4784
|
),
|
|
4785
|
-
/* @__PURE__ */
|
|
4785
|
+
/* @__PURE__ */ l(
|
|
4786
4786
|
Ge,
|
|
4787
4787
|
{
|
|
4788
4788
|
text: I ? D() : Ds(v.size),
|
|
4789
|
-
classNameBaseTooltipRoot:
|
|
4789
|
+
classNameBaseTooltipRoot: H.spUploadFiles__fileNamesListItem__description__tooltipContent,
|
|
4790
4790
|
classNameRoot: f(
|
|
4791
|
-
|
|
4792
|
-
I &&
|
|
4791
|
+
H.spUploadFiles__fileNamesListItem__description,
|
|
4792
|
+
I && H.spUploadFiles__fileNamesListItem__description_error
|
|
4793
4793
|
)
|
|
4794
4794
|
}
|
|
4795
4795
|
)
|
|
4796
4796
|
] }),
|
|
4797
|
-
/* @__PURE__ */
|
|
4797
|
+
/* @__PURE__ */ l(
|
|
4798
4798
|
"div",
|
|
4799
4799
|
{
|
|
4800
|
-
className: f(
|
|
4800
|
+
className: f(H.spUploadFiles__fileNamesListItemDelete),
|
|
4801
4801
|
onClick: (F) => {
|
|
4802
4802
|
F.stopPropagation(), ce(v.name, I);
|
|
4803
4803
|
},
|
|
4804
|
-
children: /* @__PURE__ */
|
|
4804
|
+
children: /* @__PURE__ */ l(ve, { name: ne.Close })
|
|
4805
4805
|
}
|
|
4806
4806
|
)
|
|
4807
4807
|
]
|
|
4808
4808
|
},
|
|
4809
4809
|
A
|
|
4810
4810
|
);
|
|
4811
|
-
}) }),
|
|
4811
|
+
}) }), $ = () => s ? k() : Q(), W = () => /* @__PURE__ */ l(
|
|
4812
4812
|
Ge,
|
|
4813
4813
|
{
|
|
4814
|
-
classNameRoot:
|
|
4814
|
+
classNameRoot: H.spUploadFiles__placeholder,
|
|
4815
4815
|
classNameTooltipRoot: f(
|
|
4816
|
-
|
|
4817
|
-
!!
|
|
4816
|
+
H.spUploadFiles__placeholderContainer,
|
|
4817
|
+
!!c && H.spUploadFiles__placeholderContainer_withUloadTooltip
|
|
4818
4818
|
),
|
|
4819
4819
|
text: t
|
|
4820
4820
|
}
|
|
4821
|
-
), d = () => /* @__PURE__ */
|
|
4822
|
-
|
|
4823
|
-
|
|
4821
|
+
), d = () => /* @__PURE__ */ z(fo, { children: [
|
|
4822
|
+
B ? $() : W(),
|
|
4823
|
+
B && Y ? /* @__PURE__ */ l("div", { className: ue, onClick: G, children: /* @__PURE__ */ l(ve, { name: ne.Close }) }) : Y && c && /* @__PURE__ */ l(
|
|
4824
4824
|
nt,
|
|
4825
4825
|
{
|
|
4826
|
-
classNameTooltip:
|
|
4826
|
+
classNameTooltip: H.spUploadFiles__tooltipWrapper,
|
|
4827
4827
|
position: u,
|
|
4828
|
-
text:
|
|
4829
|
-
classNameTriggerTooltip:
|
|
4828
|
+
text: c,
|
|
4829
|
+
classNameTriggerTooltip: H.spUploadFiles__tooltip
|
|
4830
4830
|
}
|
|
4831
4831
|
)
|
|
4832
4832
|
] });
|
|
4833
|
-
return /* @__PURE__ */
|
|
4833
|
+
return /* @__PURE__ */ l(
|
|
4834
4834
|
Fa,
|
|
4835
4835
|
{
|
|
4836
|
-
getRootProps:
|
|
4837
|
-
getInputProps:
|
|
4836
|
+
getRootProps: P,
|
|
4837
|
+
getInputProps: M,
|
|
4838
4838
|
disabled: r,
|
|
4839
4839
|
name: n,
|
|
4840
|
-
children: /* @__PURE__ */
|
|
4841
|
-
/* @__PURE__ */
|
|
4842
|
-
|
|
4840
|
+
children: /* @__PURE__ */ z("div", { className: Z, children: [
|
|
4841
|
+
/* @__PURE__ */ z("div", { className: re, children: [
|
|
4842
|
+
Y && (g ? /* @__PURE__ */ l(At, {}) : /* @__PURE__ */ l(
|
|
4843
4843
|
ve,
|
|
4844
4844
|
{
|
|
4845
|
-
name:
|
|
4845
|
+
name: B ? ne.Check : ne.Upload,
|
|
4846
4846
|
style: { flexShrink: 0 }
|
|
4847
4847
|
}
|
|
4848
4848
|
)),
|
|
4849
4849
|
d()
|
|
4850
4850
|
] }),
|
|
4851
|
-
x && /* @__PURE__ */
|
|
4851
|
+
x && /* @__PURE__ */ l("div", { className: H.spUploadFiles__error, children: x })
|
|
4852
4852
|
] })
|
|
4853
4853
|
}
|
|
4854
4854
|
);
|
|
@@ -4871,25 +4871,25 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4871
4871
|
onError: i,
|
|
4872
4872
|
fallbackSrc: r,
|
|
4873
4873
|
showLoader: s = !0,
|
|
4874
|
-
onClose:
|
|
4875
|
-
} = e, [
|
|
4874
|
+
onClose: p
|
|
4875
|
+
} = e, [c, u] = J(!0), [_, g] = J(!1), [x, w] = J(n), C = f({
|
|
4876
4876
|
[Ee.viewImage]: !0,
|
|
4877
4877
|
...t && { [t]: !0 }
|
|
4878
4878
|
}), T = f({
|
|
4879
4879
|
[Ee.viewImage__layer]: !0
|
|
4880
|
-
}),
|
|
4880
|
+
}), P = f({
|
|
4881
4881
|
[Ee.viewImage__closeButton]: !0
|
|
4882
|
-
}),
|
|
4882
|
+
}), M = f({
|
|
4883
4883
|
[Ee.viewImage__spinner]: !0
|
|
4884
4884
|
}), j = f(Ee.viewImage__img, {
|
|
4885
|
-
[Ee.viewImage__img_loading]:
|
|
4885
|
+
[Ee.viewImage__img_loading]: c,
|
|
4886
4886
|
[Ee.viewImage__img_error]: _,
|
|
4887
4887
|
...o && { [o]: !0 }
|
|
4888
4888
|
});
|
|
4889
|
-
return /* @__PURE__ */
|
|
4890
|
-
s &&
|
|
4891
|
-
/* @__PURE__ */
|
|
4892
|
-
/* @__PURE__ */
|
|
4889
|
+
return /* @__PURE__ */ z(yo, { classNameRoot: T, children: [
|
|
4890
|
+
s && c && /* @__PURE__ */ l(At, { classNameRoot: M, size: "xl" }),
|
|
4891
|
+
/* @__PURE__ */ z("div", { className: C, children: [
|
|
4892
|
+
/* @__PURE__ */ l(
|
|
4893
4893
|
"img",
|
|
4894
4894
|
{
|
|
4895
4895
|
className: j,
|
|
@@ -4903,16 +4903,16 @@ const js = (e) => Uo(e), As = (e) => {
|
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
),
|
|
4906
|
-
_ && /* @__PURE__ */
|
|
4907
|
-
/* @__PURE__ */
|
|
4908
|
-
/* @__PURE__ */
|
|
4906
|
+
_ && /* @__PURE__ */ z("div", { className: Ee.viewImage__errorWrapper, children: [
|
|
4907
|
+
/* @__PURE__ */ l(ve, { name: ne.InfoError, className: Ee.viewImage__errorIcon }),
|
|
4908
|
+
/* @__PURE__ */ l(Te, { children: "Не удалось загрузить изображение" })
|
|
4909
4909
|
] })
|
|
4910
4910
|
] }),
|
|
4911
|
-
/* @__PURE__ */
|
|
4911
|
+
/* @__PURE__ */ l(
|
|
4912
4912
|
Qe,
|
|
4913
4913
|
{
|
|
4914
|
-
classNameRoot:
|
|
4915
|
-
onClick:
|
|
4914
|
+
classNameRoot: P,
|
|
4915
|
+
onClick: p,
|
|
4916
4916
|
variant: "link",
|
|
4917
4917
|
isOnlyIcon: !0,
|
|
4918
4918
|
color: "white",
|