test-stpr-ui-kit 0.4.39 → 0.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as H, jsx as m, Fragment as dn } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import $e, { useState as ie, useEffect as ne, useRef as ue, useCallback as de, forwardRef as
|
|
3
|
+
import $e, { useState as ie, useEffect as ne, useRef as ue, useCallback as de, forwardRef as Fn, useImperativeHandle as Bn, Fragment as Wn, useMemo as Oe, useReducer as Mn, createContext as un, useContext as $n } from "react";
|
|
4
4
|
import qn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function mn(e) {
|
|
6
6
|
var t, n, o = "";
|
|
@@ -73,9 +73,9 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
73
73
|
noPadding: s = !1,
|
|
74
74
|
level: u = 1,
|
|
75
75
|
classNameRoot: c,
|
|
76
|
-
classNameHeader:
|
|
77
|
-
classNameTitle:
|
|
78
|
-
classNameIcon:
|
|
76
|
+
classNameHeader: d,
|
|
77
|
+
classNameTitle: l,
|
|
78
|
+
classNameIcon: v,
|
|
79
79
|
classNameChildrenWrapper: y
|
|
80
80
|
} = e, [w, g] = ie(o), S = () => {
|
|
81
81
|
a || (g(!w), i == null || i(!w));
|
|
@@ -86,19 +86,19 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
86
86
|
[re.spAccordion_noBorder]: r,
|
|
87
87
|
[re.spAccordion_noPadding]: s,
|
|
88
88
|
...c && { [c]: !0 }
|
|
89
|
-
}),
|
|
89
|
+
}), V = _({
|
|
90
90
|
[re.spAccordion__header]: !0,
|
|
91
|
-
...
|
|
92
|
-
}),
|
|
91
|
+
...d && { [d]: !0 }
|
|
92
|
+
}), R = _({
|
|
93
93
|
[re.spAccordion__name]: !0,
|
|
94
94
|
[re[`spAccordion__name--level-${u}`]]: u,
|
|
95
95
|
[re.spAccordion__name_hiddenExpand]: a,
|
|
96
|
-
...
|
|
96
|
+
...l && { [l]: !0 }
|
|
97
97
|
}), k = _({
|
|
98
98
|
[re.spAccordion__icon]: !0,
|
|
99
99
|
[re.spAccordion__icon_open]: w,
|
|
100
100
|
[re.spAccordion__icon_hidden]: a,
|
|
101
|
-
...
|
|
101
|
+
...v && { [v]: !0 }
|
|
102
102
|
}), p = _({
|
|
103
103
|
[re.spAccordion__childrenWrapper]: !0,
|
|
104
104
|
[re.spAccordion__childrenWrapper_open]: w,
|
|
@@ -107,9 +107,9 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
107
107
|
[re.spAccordion__content]: !0,
|
|
108
108
|
[re.spAccordion__content_open]: w
|
|
109
109
|
});
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */ m("div", { className:
|
|
110
|
+
return /* @__PURE__ */ H("div", { className: L, children: [
|
|
111
|
+
/* @__PURE__ */ H("div", { className: V, children: [
|
|
112
|
+
/* @__PURE__ */ m("div", { className: R, children: /* @__PURE__ */ m("span", { onClick: S, children: t }) }),
|
|
113
113
|
/* @__PURE__ */ m(he, { onClick: S, className: k, name: pe.ChevronDown })
|
|
114
114
|
] }),
|
|
115
115
|
/* @__PURE__ */ m("div", { className: p, children: /* @__PURE__ */ m("div", { className: E, children: n }) })
|
|
@@ -134,20 +134,20 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
134
134
|
children: /* @__PURE__ */ m("div", { className: ct.spinner__inner })
|
|
135
135
|
}
|
|
136
136
|
);
|
|
137
|
-
}, To = "_spButton_zixup_43", Eo = "_spButton_noPadding_zixup_59", So = "_spButton_onlyIcon_zixup_62", No = "_spButton__iconContainer_zixup_70", Io = "_spButton_link_zixup_73",
|
|
137
|
+
}, To = "_spButton_zixup_43", Eo = "_spButton_noPadding_zixup_59", So = "_spButton_onlyIcon_zixup_62", No = "_spButton__iconContainer_zixup_70", Io = "_spButton_link_zixup_73", Ao = "_spButton__text_zixup_77", Ro = "_spButton_primary_zixup_89", jo = "_spButton_blue_zixup_89", Do = "_spButton_white_zixup_99", Lo = "_spButton_secondary_zixup_109", Oo = "_spButton_fullWidth_zixup_129", zo = "_spButton_disabled_zixup_132", Po = "_spButton__spinner_zixup_141", we = {
|
|
138
138
|
spButton: To,
|
|
139
139
|
spButton_noPadding: Eo,
|
|
140
140
|
spButton_onlyIcon: So,
|
|
141
141
|
spButton__iconContainer: No,
|
|
142
142
|
spButton_link: Io,
|
|
143
|
-
spButton__text:
|
|
144
|
-
spButton_primary:
|
|
145
|
-
spButton_blue:
|
|
143
|
+
spButton__text: Ao,
|
|
144
|
+
spButton_primary: Ro,
|
|
145
|
+
spButton_blue: jo,
|
|
146
146
|
spButton_white: Do,
|
|
147
147
|
spButton_secondary: Lo,
|
|
148
148
|
spButton_fullWidth: Oo,
|
|
149
|
-
spButton_disabled:
|
|
150
|
-
spButton__spinner:
|
|
149
|
+
spButton_disabled: zo,
|
|
150
|
+
spButton__spinner: Po
|
|
151
151
|
}, wt = (e) => {
|
|
152
152
|
const {
|
|
153
153
|
color: t = "blue",
|
|
@@ -159,51 +159,51 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
159
159
|
disabled: s = !1,
|
|
160
160
|
type: u = "button",
|
|
161
161
|
form: c,
|
|
162
|
-
children:
|
|
163
|
-
loading:
|
|
164
|
-
isFullWidth:
|
|
162
|
+
children: d,
|
|
163
|
+
loading: l = !1,
|
|
164
|
+
isFullWidth: v = !1,
|
|
165
165
|
isOnlyIcon: y = !1,
|
|
166
166
|
noPadding: w = !1,
|
|
167
167
|
classNameRoot: g,
|
|
168
168
|
classNameIconContainerRoot: S
|
|
169
169
|
} = e, L = (k) => {
|
|
170
170
|
s || a == null || a(k);
|
|
171
|
-
},
|
|
171
|
+
}, V = () => {
|
|
172
172
|
const k = _({
|
|
173
|
-
[
|
|
173
|
+
[we.spButton__text]: !0
|
|
174
174
|
}), p = _({
|
|
175
|
-
[
|
|
175
|
+
[we.spButton__iconContainer]: !0,
|
|
176
176
|
...S && { [S]: !0 }
|
|
177
177
|
});
|
|
178
|
-
return /* @__PURE__ */
|
|
179
|
-
(i ||
|
|
180
|
-
!y &&
|
|
178
|
+
return /* @__PURE__ */ H(dn, { children: [
|
|
179
|
+
(i || l) && /* @__PURE__ */ m("div", { className: p, children: l ? /* @__PURE__ */ m(Co, { classNameRoot: we.spButton__spinner }) : i && /* @__PURE__ */ m(he, { name: i, rotate: r }) }),
|
|
180
|
+
!y && d && /* @__PURE__ */ m("div", { className: k, children: d })
|
|
181
181
|
] });
|
|
182
|
-
},
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[
|
|
182
|
+
}, R = _({
|
|
183
|
+
[we.spButton]: !0,
|
|
184
|
+
[we.spButton_noPadding]: w,
|
|
185
|
+
[we.spButton_onlyIcon]: y,
|
|
186
|
+
[we[`spButton_${n}`]]: n,
|
|
187
|
+
[we[`spButton_${t}`]]: t,
|
|
188
|
+
[we.spButton_fullWidth]: v,
|
|
189
|
+
[we.spButton_disabled]: s,
|
|
190
|
+
[we.spButton_loading]: l,
|
|
191
191
|
...g && { [g]: !0 }
|
|
192
192
|
});
|
|
193
193
|
return /* @__PURE__ */ m(
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
196
|
style: o,
|
|
197
|
-
className:
|
|
197
|
+
className: R,
|
|
198
198
|
onClick: L,
|
|
199
199
|
disabled: s,
|
|
200
200
|
type: u,
|
|
201
201
|
form: c,
|
|
202
|
-
children:
|
|
202
|
+
children: V()
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
},
|
|
206
|
-
spApplyButtons:
|
|
205
|
+
}, Fo = "_spApplyButtons_e8c1h_43", Bo = "_spApplyButtons__cancel_e8c1h_65", Wo = "_spApplyButtons__submit_e8c1h_68", Be = {
|
|
206
|
+
spApplyButtons: Fo,
|
|
207
207
|
"spApplyButtons_align-right": "_spApplyButtons_align-right_e8c1h_48",
|
|
208
208
|
"spApplyButtons_align-left": "_spApplyButtons_align-left_e8c1h_51",
|
|
209
209
|
"spApplyButtons_align-center": "_spApplyButtons_align-center_e8c1h_54",
|
|
@@ -221,9 +221,9 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
221
221
|
formId: s,
|
|
222
222
|
disabled: u,
|
|
223
223
|
onClose: c,
|
|
224
|
-
submit:
|
|
225
|
-
loading:
|
|
226
|
-
} = e,
|
|
224
|
+
submit: d,
|
|
225
|
+
loading: l
|
|
226
|
+
} = e, v = _({
|
|
227
227
|
[Be.spApplyButtons]: !0,
|
|
228
228
|
[Be[`spApplyButtons_mobile-${t}`]]: t,
|
|
229
229
|
[Be[`spApplyButtons_align-${n}`]]: n
|
|
@@ -232,7 +232,7 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
232
232
|
}), w = _({
|
|
233
233
|
[Be.spApplyButtons__cancel]: !0
|
|
234
234
|
});
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ H("div", { className: v, children: [
|
|
236
236
|
o && /* @__PURE__ */ m(
|
|
237
237
|
wt,
|
|
238
238
|
{
|
|
@@ -253,8 +253,8 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
253
253
|
classNameRoot: y,
|
|
254
254
|
form: s || void 0,
|
|
255
255
|
disabled: u,
|
|
256
|
-
onClick:
|
|
257
|
-
loading:
|
|
256
|
+
onClick: d,
|
|
257
|
+
loading: l,
|
|
258
258
|
children: r
|
|
259
259
|
}
|
|
260
260
|
)
|
|
@@ -320,89 +320,89 @@ const It = (e) => {
|
|
|
320
320
|
actionOnClose: s,
|
|
321
321
|
classNameTriggerTooltip: u,
|
|
322
322
|
position: c = se.BottomLeft,
|
|
323
|
-
text:
|
|
324
|
-
noPadding:
|
|
325
|
-
classNameTooltip:
|
|
323
|
+
text: d,
|
|
324
|
+
noPadding: l,
|
|
325
|
+
classNameTooltip: v,
|
|
326
326
|
classNameBaseTooltipRoot: y,
|
|
327
327
|
classNameBaseTooltipContentRoot: w
|
|
328
|
-
} = e, [g, S] = ie(!1), L = ue(null),
|
|
328
|
+
} = e, [g, S] = ie(!1), L = ue(null), V = ue(null), [R, k] = ie(!1);
|
|
329
329
|
_n(
|
|
330
|
-
[L,
|
|
330
|
+
[L, V],
|
|
331
331
|
() => {
|
|
332
332
|
s && s(), S(!1);
|
|
333
333
|
},
|
|
334
334
|
g
|
|
335
335
|
);
|
|
336
336
|
const p = (C) => {
|
|
337
|
-
o && C.stopPropagation(), !t && (g ? s && s() : r && r(), S((
|
|
338
|
-
}, [E,
|
|
337
|
+
o && C.stopPropagation(), !t && (g ? s && s() : r && r(), S((M) => n ? !M : !0));
|
|
338
|
+
}, [E, z] = ie({
|
|
339
339
|
visibility: "hidden",
|
|
340
340
|
opacity: 0,
|
|
341
341
|
left: "-9999px"
|
|
342
|
-
}), [
|
|
343
|
-
if (!L.current || !
|
|
344
|
-
const C = L.current.getBoundingClientRect(),
|
|
345
|
-
let K = 0,
|
|
342
|
+
}), [D, J] = ie(!1), oe = de(() => {
|
|
343
|
+
if (!L.current || !V.current) return;
|
|
344
|
+
const C = L.current.getBoundingClientRect(), M = V.current.getBoundingClientRect();
|
|
345
|
+
let K = 0, B = 0;
|
|
346
346
|
switch (c) {
|
|
347
347
|
case se.Right:
|
|
348
|
-
K = C.top + window.scrollY - (
|
|
348
|
+
K = C.top + window.scrollY - (M.height - C.height) / 2, B = C.right + window.scrollX;
|
|
349
349
|
break;
|
|
350
350
|
case se.RightTop:
|
|
351
|
-
K = C.top + window.scrollY,
|
|
351
|
+
K = C.top + window.scrollY, B = C.right + window.scrollX;
|
|
352
352
|
break;
|
|
353
353
|
case se.RightBottom:
|
|
354
|
-
K = C.bottom + window.scrollY -
|
|
354
|
+
K = C.bottom + window.scrollY - M.height, B = C.right + window.scrollX;
|
|
355
355
|
break;
|
|
356
356
|
case se.Left:
|
|
357
|
-
K = C.top + window.scrollY - (
|
|
357
|
+
K = C.top + window.scrollY - (M.height - C.height) / 2, B = C.left + window.scrollX - M.width;
|
|
358
358
|
break;
|
|
359
359
|
case se.LeftTop:
|
|
360
|
-
K = C.top + window.scrollY,
|
|
360
|
+
K = C.top + window.scrollY, B = C.left + window.scrollX - M.width;
|
|
361
361
|
break;
|
|
362
362
|
case se.LeftBottom:
|
|
363
|
-
K = C.bottom + window.scrollY -
|
|
363
|
+
K = C.bottom + window.scrollY - M.height, B = C.left + window.scrollX - M.width;
|
|
364
364
|
break;
|
|
365
365
|
case se.Bottom:
|
|
366
|
-
K = C.bottom + window.scrollY,
|
|
366
|
+
K = C.bottom + window.scrollY, B = C.left + window.scrollX - (M.width - C.width) / 2;
|
|
367
367
|
break;
|
|
368
368
|
case se.BottomLeft:
|
|
369
|
-
K = C.bottom + window.scrollY,
|
|
369
|
+
K = C.bottom + window.scrollY, B = C.left + window.scrollX;
|
|
370
370
|
break;
|
|
371
371
|
case se.BottomRight:
|
|
372
|
-
K = C.bottom + window.scrollY,
|
|
372
|
+
K = C.bottom + window.scrollY, B = C.right + window.scrollX - M.width;
|
|
373
373
|
break;
|
|
374
374
|
case se.Top:
|
|
375
|
-
K = C.top + window.scrollY -
|
|
375
|
+
K = C.top + window.scrollY - M.height, B = C.left + window.scrollX - (M.width - C.width) / 2;
|
|
376
376
|
break;
|
|
377
377
|
case se.TopLeft:
|
|
378
|
-
K = C.top + window.scrollY -
|
|
378
|
+
K = C.top + window.scrollY - M.height, B = C.left + window.scrollX;
|
|
379
379
|
break;
|
|
380
380
|
case se.TopRight:
|
|
381
|
-
K = C.top + window.scrollY -
|
|
381
|
+
K = C.top + window.scrollY - M.height, B = C.right + window.scrollX - M.width;
|
|
382
382
|
break;
|
|
383
383
|
default:
|
|
384
|
-
K = C.bottom + window.scrollY,
|
|
384
|
+
K = C.bottom + window.scrollY, B = C.left + window.scrollX;
|
|
385
385
|
}
|
|
386
|
-
K +
|
|
386
|
+
K + M.height > window.innerHeight + window.scrollY && c.includes("bottom") ? K = C.top + window.scrollY - M.height : K < window.scrollY && c.includes("top") && (K = C.bottom + window.scrollY), B + M.width > window.innerWidth + window.scrollX && c.includes("left") ? B = C.left + window.scrollX - M.width + C.width : B < window.scrollX && c.includes("right") && (B = C.right + window.scrollX - C.width), z((f) => ({
|
|
387
387
|
...f,
|
|
388
388
|
top: `${K}px`,
|
|
389
|
-
left: `${
|
|
390
|
-
visibility: g ||
|
|
391
|
-
opacity: g ||
|
|
389
|
+
left: `${B}px`,
|
|
390
|
+
visibility: g || D ? "visible" : "hidden",
|
|
391
|
+
opacity: g || D ? 1 : 0
|
|
392
392
|
}));
|
|
393
|
-
}, [c, g,
|
|
393
|
+
}, [c, g, D]);
|
|
394
394
|
ne(() => (k(!0), () => k(!1)), []), ne(() => {
|
|
395
|
-
|
|
396
|
-
}, [
|
|
397
|
-
if (!
|
|
395
|
+
R && oe();
|
|
396
|
+
}, [R, oe]), ne(() => {
|
|
397
|
+
if (!R) return;
|
|
398
398
|
const C = () => oe();
|
|
399
399
|
return window.addEventListener("resize", C), window.addEventListener("scroll", C, !0), () => {
|
|
400
400
|
window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
401
401
|
};
|
|
402
|
-
}, [
|
|
402
|
+
}, [R, oe]);
|
|
403
403
|
const me = _({
|
|
404
404
|
[Lt.spTooltip]: !0,
|
|
405
|
-
...
|
|
405
|
+
...v && { [v]: !0 }
|
|
406
406
|
}), fe = _({
|
|
407
407
|
...y && { [y]: !0 }
|
|
408
408
|
}), le = _({
|
|
@@ -411,7 +411,7 @@ const It = (e) => {
|
|
|
411
411
|
[Lt.spTooltip__trigger]: !0,
|
|
412
412
|
...u && { [u]: !0 }
|
|
413
413
|
}), Z = document.body;
|
|
414
|
-
return /* @__PURE__ */
|
|
414
|
+
return /* @__PURE__ */ H(
|
|
415
415
|
"div",
|
|
416
416
|
{
|
|
417
417
|
className: me,
|
|
@@ -424,9 +424,9 @@ const It = (e) => {
|
|
|
424
424
|
fn,
|
|
425
425
|
{
|
|
426
426
|
style: E,
|
|
427
|
-
ref:
|
|
428
|
-
noPadding:
|
|
429
|
-
text:
|
|
427
|
+
ref: V,
|
|
428
|
+
noPadding: l,
|
|
429
|
+
text: d,
|
|
430
430
|
classNameRoot: fe,
|
|
431
431
|
classNameContentRoot: le
|
|
432
432
|
}
|
|
@@ -434,7 +434,7 @@ const It = (e) => {
|
|
|
434
434
|
]
|
|
435
435
|
}
|
|
436
436
|
);
|
|
437
|
-
}, Je = (e) => /* @__PURE__ */ m(It, { ...e, hover: !0, trigger: /* @__PURE__ */ m(he, { name: pe.Info }) }), Uo = "_spCheckbox_uc4g8_43", Go = "_spCheckbox__control_uc4g8_49", Ko = "_spCheckbox__label_uc4g8_52", Xo = "_spCheckbox__box_uc4g8_63", Zo = "_spCheckbox__box_checked_uc4g8_90", Qo = "_spCheckbox__box_disabled_uc4g8_100", Jo = "_spCheckbox__box_error_uc4g8_111", ea = "_spCheckbox__tooltip_uc4g8_114", ta = "_spCheckbox__required_uc4g8_119", na = "_spCheckbox__error_uc4g8_125",
|
|
437
|
+
}, Je = (e) => /* @__PURE__ */ m(It, { ...e, hover: !0, trigger: /* @__PURE__ */ m(he, { name: pe.Info }) }), Uo = "_spCheckbox_uc4g8_43", Go = "_spCheckbox__control_uc4g8_49", Ko = "_spCheckbox__label_uc4g8_52", Xo = "_spCheckbox__box_uc4g8_63", Zo = "_spCheckbox__box_checked_uc4g8_90", Qo = "_spCheckbox__box_disabled_uc4g8_100", Jo = "_spCheckbox__box_error_uc4g8_111", ea = "_spCheckbox__tooltip_uc4g8_114", ta = "_spCheckbox__required_uc4g8_119", na = "_spCheckbox__error_uc4g8_125", ke = {
|
|
438
438
|
spCheckbox: Uo,
|
|
439
439
|
spCheckbox__control: Go,
|
|
440
440
|
spCheckbox__label: Ko,
|
|
@@ -458,48 +458,48 @@ const It = (e) => {
|
|
|
458
458
|
error: s,
|
|
459
459
|
value: u,
|
|
460
460
|
required: c,
|
|
461
|
-
tooltipPosition:
|
|
462
|
-
infoTooltipText:
|
|
463
|
-
onMouseEnter:
|
|
461
|
+
tooltipPosition: d,
|
|
462
|
+
infoTooltipText: l,
|
|
463
|
+
onMouseEnter: v,
|
|
464
464
|
classNameRoot: y,
|
|
465
465
|
classNameError: w
|
|
466
466
|
} = e, g = _({
|
|
467
|
-
[
|
|
467
|
+
[ke.spCheckbox]: !0,
|
|
468
468
|
...y && { [y]: !0 }
|
|
469
469
|
}), S = _({
|
|
470
|
-
[
|
|
471
|
-
[
|
|
472
|
-
[
|
|
473
|
-
[
|
|
474
|
-
[
|
|
470
|
+
[ke.spCheckbox__box]: !0,
|
|
471
|
+
[ke.spCheckbox__box_checked]: n,
|
|
472
|
+
[ke.spCheckbox__box_disabled]: o,
|
|
473
|
+
[ke[`spCheckbox__box--size-${t}`]]: t,
|
|
474
|
+
[ke.spCheckbox__box_error]: s
|
|
475
475
|
}), L = _({
|
|
476
|
-
[
|
|
477
|
-
}),
|
|
478
|
-
[
|
|
479
|
-
}),
|
|
480
|
-
[
|
|
476
|
+
[ke.spCheckbox__control]: !0
|
|
477
|
+
}), V = _({
|
|
478
|
+
[ke.spCheckbox__label]: !0
|
|
479
|
+
}), R = _({
|
|
480
|
+
[ke.spCheckbox__required]: !0
|
|
481
481
|
}), k = _({
|
|
482
|
-
[
|
|
482
|
+
[ke.spCheckbox__error]: !0,
|
|
483
483
|
...w && { [w]: !0 }
|
|
484
484
|
}), p = _({
|
|
485
|
-
[
|
|
485
|
+
[ke.spCheckbox__tooltip]: !0
|
|
486
486
|
});
|
|
487
|
-
return /* @__PURE__ */
|
|
488
|
-
/* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ H("div", { className: g, onMouseEnter: v, children: [
|
|
488
|
+
/* @__PURE__ */ H("label", { className: S, children: [
|
|
489
489
|
/* @__PURE__ */ m(
|
|
490
490
|
"input",
|
|
491
491
|
{
|
|
492
492
|
type: "checkbox",
|
|
493
493
|
className: L,
|
|
494
494
|
checked: n,
|
|
495
|
-
onChange: (
|
|
496
|
-
!o && a && a(
|
|
495
|
+
onChange: (z) => {
|
|
496
|
+
!o && a && a(z, { name: i, checked: !n, value: u });
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
),
|
|
500
|
-
r && /* @__PURE__ */ m("span", { className:
|
|
501
|
-
c && /* @__PURE__ */ m("div", { className:
|
|
502
|
-
|
|
500
|
+
r && /* @__PURE__ */ m("span", { className: V, children: r }),
|
|
501
|
+
c && /* @__PURE__ */ m("div", { className: R, children: "*" }),
|
|
502
|
+
l && /* @__PURE__ */ m("div", { className: p, children: /* @__PURE__ */ m(Je, { position: d, text: l }) })
|
|
503
503
|
] }),
|
|
504
504
|
s && /* @__PURE__ */ m("div", { className: k, children: s })
|
|
505
505
|
] });
|
|
@@ -550,14 +550,14 @@ const It = (e) => {
|
|
|
550
550
|
onClick: s,
|
|
551
551
|
isEllipsis: u = !1,
|
|
552
552
|
isCursorPointer: c = !1,
|
|
553
|
-
isCursorPointerByOnClick:
|
|
554
|
-
classNameRoot:
|
|
555
|
-
} = e,
|
|
553
|
+
isCursorPointerByOnClick: d = !0,
|
|
554
|
+
classNameRoot: l
|
|
555
|
+
} = e, v = () => s && d ? !0 : c, y = _({
|
|
556
556
|
[Ye.spText]: !0,
|
|
557
557
|
[Ye.spText_ellipsis]: u,
|
|
558
|
-
[Ye.spText_cursorPointer]:
|
|
558
|
+
[Ye.spText_cursorPointer]: v(),
|
|
559
559
|
[Ye[`spText_type-${n}`]]: n,
|
|
560
|
-
...
|
|
560
|
+
...l && { [l]: !0 }
|
|
561
561
|
});
|
|
562
562
|
return /* @__PURE__ */ m(
|
|
563
563
|
"span",
|
|
@@ -572,13 +572,16 @@ const It = (e) => {
|
|
|
572
572
|
);
|
|
573
573
|
});
|
|
574
574
|
Ee.displayName = "Text";
|
|
575
|
-
const ca = "
|
|
575
|
+
const ca = "_modalWrapper_awlzb_43", la = "_modalWrapper__modal_awlzb_63", da = "_modalWrapper__content_awlzb_92", ua = "_modalWrapper__header_awlzb_95", ma = "_modalWrapper__subHeader_awlzb_103", fa = "_modalWrapper__subHeader_onlySubHeader_awlzb_111", _a = "_modalWrapper__footer_awlzb_114", va = "_modalWrapper__closeButton_awlzb_117", xa = "_modalWrapper__closeButtonIconContainer_awlzb_131", be = {
|
|
576
576
|
modalWrapper: ca,
|
|
577
|
-
"
|
|
578
|
-
"
|
|
577
|
+
"modalWrapper--modalAlign-top": "_modalWrapper--modalAlign-top_awlzb_48",
|
|
578
|
+
"modalWrapper--modalAlign-center": "_modalWrapper--modalAlign-center_awlzb_51",
|
|
579
|
+
"modalWrapper--textAlign-left": "_modalWrapper--textAlign-left_awlzb_54",
|
|
580
|
+
"modalWrapper--textAlign-center": "_modalWrapper--textAlign-center_awlzb_57",
|
|
581
|
+
"modalWrapper--textAlign-right": "_modalWrapper--textAlign-right_awlzb_60",
|
|
579
582
|
modalWrapper__modal: la,
|
|
580
|
-
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-
|
|
581
|
-
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-
|
|
583
|
+
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_awlzb_81",
|
|
584
|
+
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_awlzb_87",
|
|
582
585
|
modalWrapper__content: da,
|
|
583
586
|
modalWrapper__header: ua,
|
|
584
587
|
modalWrapper__subHeader: ma,
|
|
@@ -595,51 +598,53 @@ const ca = "_modalWrapper_14inb_43", la = "_modalWrapper__modal_14inb_54", da =
|
|
|
595
598
|
classNameLayerRoot: i,
|
|
596
599
|
classNameRoot: r,
|
|
597
600
|
style: s,
|
|
598
|
-
|
|
599
|
-
|
|
601
|
+
modalAlign: u = "top",
|
|
602
|
+
textAlign: c = "left",
|
|
603
|
+
onClose: d,
|
|
600
604
|
header: l,
|
|
601
|
-
subHeader:
|
|
602
|
-
footer:
|
|
603
|
-
size:
|
|
604
|
-
} = e,
|
|
605
|
-
[
|
|
606
|
-
[
|
|
607
|
-
|
|
608
|
-
[ke.modalWrapper__modal]: !0,
|
|
609
|
-
[ke[`modalWrapper__modal--size-${y}`]]: y,
|
|
610
|
-
...r && { [r]: !0 }
|
|
605
|
+
subHeader: v,
|
|
606
|
+
footer: y,
|
|
607
|
+
size: w = "lg"
|
|
608
|
+
} = e, g = _({
|
|
609
|
+
[be.modalWrapper]: !0,
|
|
610
|
+
[be[`modalWrapper--modalAlign-${u}`]]: u,
|
|
611
|
+
[be[`modalWrapper--textAlign-${c}`]]: c
|
|
611
612
|
}), S = _({
|
|
612
|
-
[
|
|
613
|
+
[be.modalWrapper__modal]: !0,
|
|
614
|
+
[be[`modalWrapper__modal--size-${w}`]]: w,
|
|
615
|
+
...r && { [r]: !0 }
|
|
613
616
|
}), L = _({
|
|
614
|
-
[
|
|
615
|
-
}),
|
|
616
|
-
[
|
|
617
|
-
}),
|
|
618
|
-
[
|
|
617
|
+
[be.modalWrapper__closeButton]: !0
|
|
618
|
+
}), V = _({
|
|
619
|
+
[be.modalWrapper__closeButtonIconContainer]: !0
|
|
620
|
+
}), R = _({
|
|
621
|
+
[be.modalWrapper__content]: !0
|
|
619
622
|
}), k = _({
|
|
620
|
-
[
|
|
621
|
-
[ke.modalWrapper__subHeader_onlySubHeader]: !l
|
|
623
|
+
[be.modalWrapper__header]: !0
|
|
622
624
|
}), p = _({
|
|
623
|
-
[
|
|
625
|
+
[be.modalWrapper__subHeader]: !0,
|
|
626
|
+
[be.modalWrapper__subHeader_onlySubHeader]: !l
|
|
627
|
+
}), E = _({
|
|
628
|
+
[be.modalWrapper__footer]: !0
|
|
624
629
|
});
|
|
625
630
|
return ne(() => {
|
|
626
|
-
const
|
|
627
|
-
return
|
|
628
|
-
|
|
631
|
+
const z = window.scrollY, D = document.body;
|
|
632
|
+
return D.style.position = "fixed", D.style.top = `-${z}px`, D.style.left = "0", D.style.right = "0", D.style.overflow = "hidden", () => {
|
|
633
|
+
D.style.position = "", D.style.top = "", D.style.left = "", D.style.right = "", D.style.overflow = "", window.scrollTo(0, z);
|
|
629
634
|
};
|
|
630
|
-
}, []), /* @__PURE__ */ m(ia, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ m("div", { className:
|
|
631
|
-
(l ||
|
|
635
|
+
}, []), /* @__PURE__ */ m(ia, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ m("div", { className: g, children: /* @__PURE__ */ H("div", { className: S, style: s, children: [
|
|
636
|
+
(l || v) && /* @__PURE__ */ H("div", { className: k, children: [
|
|
632
637
|
typeof l == "string" ? /* @__PURE__ */ m(Ee, { type: "h3", children: l }) : l,
|
|
633
|
-
|
|
638
|
+
v && /* @__PURE__ */ m("div", { className: p, children: typeof v == "string" ? /* @__PURE__ */ m(Ee, { children: v }) : v })
|
|
634
639
|
] }),
|
|
635
|
-
a && /* @__PURE__ */ m("div", { className:
|
|
636
|
-
|
|
637
|
-
o &&
|
|
640
|
+
a && /* @__PURE__ */ m("div", { className: R, children: a }),
|
|
641
|
+
y && /* @__PURE__ */ m("div", { className: E, children: y }),
|
|
642
|
+
o && d && /* @__PURE__ */ m(
|
|
638
643
|
wt,
|
|
639
644
|
{
|
|
640
|
-
classNameRoot:
|
|
641
|
-
classNameIconContainerRoot:
|
|
642
|
-
onClick:
|
|
645
|
+
classNameRoot: L,
|
|
646
|
+
classNameIconContainerRoot: V,
|
|
647
|
+
onClick: d,
|
|
643
648
|
iconName: pe.Close,
|
|
644
649
|
variant: "link",
|
|
645
650
|
noPadding: !0,
|
|
@@ -658,41 +663,43 @@ const ca = "_modalWrapper_14inb_43", la = "_modalWrapper__modal_14inb_54", da =
|
|
|
658
663
|
submitBtnContent: s,
|
|
659
664
|
submit: u,
|
|
660
665
|
disabled: c,
|
|
661
|
-
formId:
|
|
662
|
-
onClose:
|
|
663
|
-
mobile:
|
|
666
|
+
formId: d,
|
|
667
|
+
onClose: l,
|
|
668
|
+
mobile: v = "column",
|
|
664
669
|
align: y = "right",
|
|
665
670
|
modalAlign: w = "top",
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
671
|
+
textAlign: g = "left",
|
|
672
|
+
loading: S,
|
|
673
|
+
isVisibleCloseButton: L,
|
|
674
|
+
isHiddenModal: V,
|
|
675
|
+
size: R
|
|
670
676
|
} = e;
|
|
671
677
|
return /* @__PURE__ */ m(
|
|
672
678
|
ga,
|
|
673
679
|
{
|
|
674
680
|
zIndex: t,
|
|
675
681
|
header: n,
|
|
676
|
-
onClose:
|
|
677
|
-
|
|
682
|
+
onClose: l,
|
|
683
|
+
modalAlign: w,
|
|
684
|
+
textAlign: g,
|
|
678
685
|
subHeader: o,
|
|
679
|
-
isVisibleCloseButton:
|
|
680
|
-
isHiddenModal:
|
|
681
|
-
size:
|
|
686
|
+
isVisibleCloseButton: L,
|
|
687
|
+
isHiddenModal: V,
|
|
688
|
+
size: R,
|
|
682
689
|
footer: a || s ? /* @__PURE__ */ m(
|
|
683
690
|
Mo,
|
|
684
691
|
{
|
|
685
|
-
mobile:
|
|
692
|
+
mobile: v,
|
|
686
693
|
align: y,
|
|
687
694
|
cancelBtnContent: a,
|
|
688
695
|
cancelBtnIconName: r,
|
|
689
696
|
cancelBtnDisabled: i,
|
|
690
697
|
submitBtnContent: s,
|
|
691
|
-
formId:
|
|
698
|
+
formId: d,
|
|
692
699
|
disabled: c,
|
|
693
|
-
onClose:
|
|
700
|
+
onClose: l,
|
|
694
701
|
submit: u,
|
|
695
|
-
loading:
|
|
702
|
+
loading: S
|
|
696
703
|
}
|
|
697
704
|
) : null
|
|
698
705
|
}
|
|
@@ -708,7 +715,7 @@ const ca = "_modalWrapper_14inb_43", la = "_modalWrapper__modal_14inb_54", da =
|
|
|
708
715
|
});
|
|
709
716
|
return /* @__PURE__ */ m("ul", { className: a, children: n == null ? void 0 : n.map((i) => {
|
|
710
717
|
const r = i.key === "delete";
|
|
711
|
-
return /* @__PURE__ */
|
|
718
|
+
return /* @__PURE__ */ H(
|
|
712
719
|
"li",
|
|
713
720
|
{
|
|
714
721
|
className: _({
|
|
@@ -739,12 +746,12 @@ var kt = { exports: {} }, Ue = { exports: {} }, U = {};
|
|
|
739
746
|
* This source code is licensed under the MIT license found in the
|
|
740
747
|
* LICENSE file in the root directory of this source tree.
|
|
741
748
|
*/
|
|
742
|
-
var
|
|
749
|
+
var zt;
|
|
743
750
|
function wa() {
|
|
744
|
-
if (
|
|
745
|
-
|
|
746
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
747
|
-
function
|
|
751
|
+
if (zt) return U;
|
|
752
|
+
zt = 1;
|
|
753
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
754
|
+
function R(p) {
|
|
748
755
|
if (typeof p == "object" && p !== null) {
|
|
749
756
|
var E = p.$$typeof;
|
|
750
757
|
switch (E) {
|
|
@@ -755,12 +762,12 @@ function wa() {
|
|
|
755
762
|
case o:
|
|
756
763
|
case i:
|
|
757
764
|
case a:
|
|
758
|
-
case
|
|
765
|
+
case l:
|
|
759
766
|
return p;
|
|
760
767
|
default:
|
|
761
768
|
switch (p = p && p.$$typeof, p) {
|
|
762
769
|
case s:
|
|
763
|
-
case
|
|
770
|
+
case d:
|
|
764
771
|
case w:
|
|
765
772
|
case y:
|
|
766
773
|
case r:
|
|
@@ -775,35 +782,35 @@ function wa() {
|
|
|
775
782
|
}
|
|
776
783
|
}
|
|
777
784
|
function k(p) {
|
|
778
|
-
return
|
|
785
|
+
return R(p) === c;
|
|
779
786
|
}
|
|
780
|
-
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = s, U.ContextProvider = r, U.Element = t, U.ForwardRef =
|
|
781
|
-
return k(p) ||
|
|
787
|
+
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = s, U.ContextProvider = r, U.Element = t, U.ForwardRef = d, U.Fragment = o, U.Lazy = w, U.Memo = y, U.Portal = n, U.Profiler = i, U.StrictMode = a, U.Suspense = l, U.isAsyncMode = function(p) {
|
|
788
|
+
return k(p) || R(p) === u;
|
|
782
789
|
}, U.isConcurrentMode = k, U.isContextConsumer = function(p) {
|
|
783
|
-
return
|
|
790
|
+
return R(p) === s;
|
|
784
791
|
}, U.isContextProvider = function(p) {
|
|
785
|
-
return
|
|
792
|
+
return R(p) === r;
|
|
786
793
|
}, U.isElement = function(p) {
|
|
787
794
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
788
795
|
}, U.isForwardRef = function(p) {
|
|
789
|
-
return
|
|
796
|
+
return R(p) === d;
|
|
790
797
|
}, U.isFragment = function(p) {
|
|
791
|
-
return
|
|
798
|
+
return R(p) === o;
|
|
792
799
|
}, U.isLazy = function(p) {
|
|
793
|
-
return
|
|
800
|
+
return R(p) === w;
|
|
794
801
|
}, U.isMemo = function(p) {
|
|
795
|
-
return
|
|
802
|
+
return R(p) === y;
|
|
796
803
|
}, U.isPortal = function(p) {
|
|
797
|
-
return
|
|
804
|
+
return R(p) === n;
|
|
798
805
|
}, U.isProfiler = function(p) {
|
|
799
|
-
return
|
|
806
|
+
return R(p) === i;
|
|
800
807
|
}, U.isStrictMode = function(p) {
|
|
801
|
-
return
|
|
808
|
+
return R(p) === a;
|
|
802
809
|
}, U.isSuspense = function(p) {
|
|
803
|
-
return
|
|
810
|
+
return R(p) === l;
|
|
804
811
|
}, U.isValidElementType = function(p) {
|
|
805
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p ===
|
|
806
|
-
}, U.typeOf =
|
|
812
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p === l || p === v || typeof p == "object" && p !== null && (p.$$typeof === w || p.$$typeof === y || p.$$typeof === r || p.$$typeof === s || p.$$typeof === d || p.$$typeof === S || p.$$typeof === L || p.$$typeof === V || p.$$typeof === g);
|
|
813
|
+
}, U.typeOf = R, U;
|
|
807
814
|
}
|
|
808
815
|
var G = {};
|
|
809
816
|
/** @license React v16.13.1
|
|
@@ -814,37 +821,37 @@ var G = {};
|
|
|
814
821
|
* This source code is licensed under the MIT license found in the
|
|
815
822
|
* LICENSE file in the root directory of this source tree.
|
|
816
823
|
*/
|
|
817
|
-
var
|
|
824
|
+
var Pt;
|
|
818
825
|
function ka() {
|
|
819
|
-
return
|
|
820
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
821
|
-
function
|
|
822
|
-
return typeof
|
|
823
|
-
|
|
826
|
+
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
827
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, V = e ? Symbol.for("react.scope") : 60119;
|
|
828
|
+
function R(x) {
|
|
829
|
+
return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
830
|
+
x === o || x === c || x === i || x === a || x === l || x === v || typeof x == "object" && x !== null && (x.$$typeof === w || x.$$typeof === y || x.$$typeof === r || x.$$typeof === s || x.$$typeof === d || x.$$typeof === S || x.$$typeof === L || x.$$typeof === V || x.$$typeof === g);
|
|
824
831
|
}
|
|
825
|
-
function k(
|
|
826
|
-
if (typeof
|
|
827
|
-
var _e =
|
|
832
|
+
function k(x) {
|
|
833
|
+
if (typeof x == "object" && x !== null) {
|
|
834
|
+
var _e = x.$$typeof;
|
|
828
835
|
switch (_e) {
|
|
829
836
|
case t:
|
|
830
|
-
var Ne =
|
|
837
|
+
var Ne = x.type;
|
|
831
838
|
switch (Ne) {
|
|
832
839
|
case u:
|
|
833
840
|
case c:
|
|
834
841
|
case o:
|
|
835
842
|
case i:
|
|
836
843
|
case a:
|
|
837
|
-
case
|
|
844
|
+
case l:
|
|
838
845
|
return Ne;
|
|
839
846
|
default:
|
|
840
|
-
var
|
|
841
|
-
switch (
|
|
847
|
+
var Pe = Ne && Ne.$$typeof;
|
|
848
|
+
switch (Pe) {
|
|
842
849
|
case s:
|
|
843
|
-
case
|
|
850
|
+
case d:
|
|
844
851
|
case w:
|
|
845
852
|
case y:
|
|
846
853
|
case r:
|
|
847
|
-
return
|
|
854
|
+
return Pe;
|
|
848
855
|
default:
|
|
849
856
|
return _e;
|
|
850
857
|
}
|
|
@@ -854,52 +861,52 @@ function ka() {
|
|
|
854
861
|
}
|
|
855
862
|
}
|
|
856
863
|
}
|
|
857
|
-
var p = u, E = c,
|
|
858
|
-
function
|
|
859
|
-
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(
|
|
864
|
+
var p = u, E = c, z = s, D = r, J = t, oe = d, me = o, fe = w, le = y, X = n, Z = i, C = a, M = l, K = !1;
|
|
865
|
+
function B(x) {
|
|
866
|
+
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(x) || k(x) === u;
|
|
860
867
|
}
|
|
861
|
-
function f(
|
|
862
|
-
return k(
|
|
868
|
+
function f(x) {
|
|
869
|
+
return k(x) === c;
|
|
863
870
|
}
|
|
864
|
-
function b(
|
|
865
|
-
return k(
|
|
871
|
+
function b(x) {
|
|
872
|
+
return k(x) === s;
|
|
866
873
|
}
|
|
867
|
-
function O(
|
|
868
|
-
return k(
|
|
874
|
+
function O(x) {
|
|
875
|
+
return k(x) === r;
|
|
869
876
|
}
|
|
870
|
-
function P(
|
|
871
|
-
return typeof
|
|
877
|
+
function P(x) {
|
|
878
|
+
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
872
879
|
}
|
|
873
|
-
function
|
|
874
|
-
return k(
|
|
880
|
+
function A(x) {
|
|
881
|
+
return k(x) === d;
|
|
875
882
|
}
|
|
876
|
-
function
|
|
877
|
-
return k(
|
|
883
|
+
function $(x) {
|
|
884
|
+
return k(x) === o;
|
|
878
885
|
}
|
|
879
|
-
function
|
|
880
|
-
return k(
|
|
886
|
+
function j(x) {
|
|
887
|
+
return k(x) === w;
|
|
881
888
|
}
|
|
882
|
-
function F(
|
|
883
|
-
return k(
|
|
889
|
+
function F(x) {
|
|
890
|
+
return k(x) === y;
|
|
884
891
|
}
|
|
885
|
-
function
|
|
886
|
-
return k(
|
|
892
|
+
function q(x) {
|
|
893
|
+
return k(x) === n;
|
|
887
894
|
}
|
|
888
|
-
function Y(
|
|
889
|
-
return k(
|
|
895
|
+
function Y(x) {
|
|
896
|
+
return k(x) === i;
|
|
890
897
|
}
|
|
891
|
-
function
|
|
892
|
-
return k(
|
|
898
|
+
function W(x) {
|
|
899
|
+
return k(x) === a;
|
|
893
900
|
}
|
|
894
|
-
function te(
|
|
895
|
-
return k(
|
|
901
|
+
function te(x) {
|
|
902
|
+
return k(x) === l;
|
|
896
903
|
}
|
|
897
|
-
G.AsyncMode = p, G.ConcurrentMode = E, G.ContextConsumer =
|
|
904
|
+
G.AsyncMode = p, G.ConcurrentMode = E, G.ContextConsumer = z, G.ContextProvider = D, G.Element = J, G.ForwardRef = oe, G.Fragment = me, G.Lazy = fe, G.Memo = le, G.Portal = X, G.Profiler = Z, G.StrictMode = C, G.Suspense = M, G.isAsyncMode = B, G.isConcurrentMode = f, G.isContextConsumer = b, G.isContextProvider = O, G.isElement = P, G.isForwardRef = A, G.isFragment = $, G.isLazy = j, G.isMemo = F, G.isPortal = q, G.isProfiler = Y, G.isStrictMode = W, G.isSuspense = te, G.isValidElementType = R, G.typeOf = k;
|
|
898
905
|
}()), G;
|
|
899
906
|
}
|
|
900
|
-
var
|
|
907
|
+
var Ft;
|
|
901
908
|
function gn() {
|
|
902
|
-
return
|
|
909
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? Ue.exports = wa() : Ue.exports = ka()), Ue.exports;
|
|
903
910
|
}
|
|
904
911
|
/*
|
|
905
912
|
object-assign
|
|
@@ -925,35 +932,35 @@ function Ca() {
|
|
|
925
932
|
return !1;
|
|
926
933
|
for (var r = {}, s = 0; s < 10; s++)
|
|
927
934
|
r["_" + String.fromCharCode(s)] = s;
|
|
928
|
-
var u = Object.getOwnPropertyNames(r).map(function(
|
|
929
|
-
return r[
|
|
935
|
+
var u = Object.getOwnPropertyNames(r).map(function(d) {
|
|
936
|
+
return r[d];
|
|
930
937
|
});
|
|
931
938
|
if (u.join("") !== "0123456789")
|
|
932
939
|
return !1;
|
|
933
940
|
var c = {};
|
|
934
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
935
|
-
c[
|
|
941
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
942
|
+
c[d] = d;
|
|
936
943
|
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
937
944
|
} catch {
|
|
938
945
|
return !1;
|
|
939
946
|
}
|
|
940
947
|
}
|
|
941
948
|
return ut = a() ? Object.assign : function(i, r) {
|
|
942
|
-
for (var s, u = o(i), c,
|
|
943
|
-
s = Object(arguments[
|
|
944
|
-
for (var
|
|
945
|
-
t.call(s,
|
|
949
|
+
for (var s, u = o(i), c, d = 1; d < arguments.length; d++) {
|
|
950
|
+
s = Object(arguments[d]);
|
|
951
|
+
for (var l in s)
|
|
952
|
+
t.call(s, l) && (u[l] = s[l]);
|
|
946
953
|
if (e) {
|
|
947
954
|
c = e(s);
|
|
948
|
-
for (var
|
|
949
|
-
n.call(s, c[
|
|
955
|
+
for (var v = 0; v < c.length; v++)
|
|
956
|
+
n.call(s, c[v]) && (u[c[v]] = s[c[v]]);
|
|
950
957
|
}
|
|
951
958
|
}
|
|
952
959
|
return u;
|
|
953
960
|
}, ut;
|
|
954
961
|
}
|
|
955
962
|
var mt, Wt;
|
|
956
|
-
function
|
|
963
|
+
function At() {
|
|
957
964
|
if (Wt) return mt;
|
|
958
965
|
Wt = 1;
|
|
959
966
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -970,7 +977,7 @@ function Ta() {
|
|
|
970
977
|
var e = function() {
|
|
971
978
|
};
|
|
972
979
|
if (process.env.NODE_ENV !== "production") {
|
|
973
|
-
var t =
|
|
980
|
+
var t = At(), n = {}, o = hn();
|
|
974
981
|
e = function(i) {
|
|
975
982
|
var r = "Warning: " + i;
|
|
976
983
|
typeof console < "u" && console.error(r);
|
|
@@ -982,27 +989,27 @@ function Ta() {
|
|
|
982
989
|
}
|
|
983
990
|
function a(i, r, s, u, c) {
|
|
984
991
|
if (process.env.NODE_ENV !== "production") {
|
|
985
|
-
for (var
|
|
986
|
-
if (o(i,
|
|
987
|
-
var
|
|
992
|
+
for (var d in i)
|
|
993
|
+
if (o(i, d)) {
|
|
994
|
+
var l;
|
|
988
995
|
try {
|
|
989
|
-
if (typeof i[
|
|
990
|
-
var
|
|
991
|
-
(u || "React class") + ": " + s + " type `" +
|
|
996
|
+
if (typeof i[d] != "function") {
|
|
997
|
+
var v = Error(
|
|
998
|
+
(u || "React class") + ": " + s + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
992
999
|
);
|
|
993
|
-
throw
|
|
1000
|
+
throw v.name = "Invariant Violation", v;
|
|
994
1001
|
}
|
|
995
|
-
|
|
1002
|
+
l = i[d](r, d, u, s, null, t);
|
|
996
1003
|
} catch (w) {
|
|
997
|
-
|
|
1004
|
+
l = w;
|
|
998
1005
|
}
|
|
999
|
-
if (
|
|
1000
|
-
(u || "React class") + ": type specification of " + s + " `" +
|
|
1001
|
-
),
|
|
1002
|
-
n[
|
|
1006
|
+
if (l && !(l instanceof Error) && e(
|
|
1007
|
+
(u || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1008
|
+
), l instanceof Error && !(l.message in n)) {
|
|
1009
|
+
n[l.message] = !0;
|
|
1003
1010
|
var y = c ? c() : "";
|
|
1004
1011
|
e(
|
|
1005
|
-
"Failed " + s + " type: " +
|
|
1012
|
+
"Failed " + s + " type: " + l.message + (y ?? "")
|
|
1006
1013
|
);
|
|
1007
1014
|
}
|
|
1008
1015
|
}
|
|
@@ -1016,7 +1023,7 @@ var vt, qt;
|
|
|
1016
1023
|
function Ea() {
|
|
1017
1024
|
if (qt) return vt;
|
|
1018
1025
|
qt = 1;
|
|
1019
|
-
var e = gn(), t = Ca(), n =
|
|
1026
|
+
var e = gn(), t = Ca(), n = At(), o = hn(), a = Ta(), i = function() {
|
|
1020
1027
|
};
|
|
1021
1028
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1022
1029
|
var u = "Warning: " + s;
|
|
@@ -1030,13 +1037,13 @@ function Ea() {
|
|
|
1030
1037
|
return null;
|
|
1031
1038
|
}
|
|
1032
1039
|
return vt = function(s, u) {
|
|
1033
|
-
var c = typeof Symbol == "function" && Symbol.iterator,
|
|
1034
|
-
function
|
|
1035
|
-
var b = f && (c && f[c] || f[
|
|
1040
|
+
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
1041
|
+
function l(f) {
|
|
1042
|
+
var b = f && (c && f[c] || f[d]);
|
|
1036
1043
|
if (typeof b == "function")
|
|
1037
1044
|
return b;
|
|
1038
1045
|
}
|
|
1039
|
-
var
|
|
1046
|
+
var v = "<<anonymous>>", y = {
|
|
1040
1047
|
array: L("array"),
|
|
1041
1048
|
bigint: L("bigint"),
|
|
1042
1049
|
bool: L("boolean"),
|
|
@@ -1045,14 +1052,14 @@ function Ea() {
|
|
|
1045
1052
|
object: L("object"),
|
|
1046
1053
|
string: L("string"),
|
|
1047
1054
|
symbol: L("symbol"),
|
|
1048
|
-
any:
|
|
1049
|
-
arrayOf:
|
|
1055
|
+
any: V(),
|
|
1056
|
+
arrayOf: R,
|
|
1050
1057
|
element: k(),
|
|
1051
1058
|
elementType: p(),
|
|
1052
1059
|
instanceOf: E,
|
|
1053
1060
|
node: oe(),
|
|
1054
|
-
objectOf:
|
|
1055
|
-
oneOf:
|
|
1061
|
+
objectOf: D,
|
|
1062
|
+
oneOf: z,
|
|
1056
1063
|
oneOfType: J,
|
|
1057
1064
|
shape: fe,
|
|
1058
1065
|
exact: le
|
|
@@ -1067,33 +1074,33 @@ function Ea() {
|
|
|
1067
1074
|
function S(f) {
|
|
1068
1075
|
if (process.env.NODE_ENV !== "production")
|
|
1069
1076
|
var b = {}, O = 0;
|
|
1070
|
-
function P(
|
|
1071
|
-
if (
|
|
1077
|
+
function P($, j, F, q, Y, W, te) {
|
|
1078
|
+
if (q = q || v, W = W || F, te !== n) {
|
|
1072
1079
|
if (u) {
|
|
1073
|
-
var
|
|
1080
|
+
var x = new Error(
|
|
1074
1081
|
"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"
|
|
1075
1082
|
);
|
|
1076
|
-
throw
|
|
1083
|
+
throw x.name = "Invariant Violation", x;
|
|
1077
1084
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1078
|
-
var _e =
|
|
1085
|
+
var _e = q + ":" + F;
|
|
1079
1086
|
!b[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1080
1087
|
O < 3 && (i(
|
|
1081
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1088
|
+
"You are manually calling a React.PropTypes validation function for the `" + W + "` 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."
|
|
1082
1089
|
), b[_e] = !0, O++);
|
|
1083
1090
|
}
|
|
1084
1091
|
}
|
|
1085
|
-
return
|
|
1092
|
+
return j[F] == null ? $ ? j[F] === null ? new g("The " + Y + " `" + W + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new g("The " + Y + " `" + W + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : f(j, F, q, Y, W);
|
|
1086
1093
|
}
|
|
1087
|
-
var
|
|
1088
|
-
return
|
|
1094
|
+
var A = P.bind(null, !1);
|
|
1095
|
+
return A.isRequired = P.bind(null, !0), A;
|
|
1089
1096
|
}
|
|
1090
1097
|
function L(f) {
|
|
1091
|
-
function b(O, P,
|
|
1092
|
-
var
|
|
1098
|
+
function b(O, P, A, $, j, F) {
|
|
1099
|
+
var q = O[P], Y = C(q);
|
|
1093
1100
|
if (Y !== f) {
|
|
1094
|
-
var
|
|
1101
|
+
var W = M(q);
|
|
1095
1102
|
return new g(
|
|
1096
|
-
"Invalid " +
|
|
1103
|
+
"Invalid " + $ + " `" + j + "` of type " + ("`" + W + "` supplied to `" + A + "`, expected ") + ("`" + f + "`."),
|
|
1097
1104
|
{ expectedType: f }
|
|
1098
1105
|
);
|
|
1099
1106
|
}
|
|
@@ -1101,88 +1108,88 @@ function Ea() {
|
|
|
1101
1108
|
}
|
|
1102
1109
|
return S(b);
|
|
1103
1110
|
}
|
|
1104
|
-
function
|
|
1111
|
+
function V() {
|
|
1105
1112
|
return S(r);
|
|
1106
1113
|
}
|
|
1107
|
-
function
|
|
1108
|
-
function b(O, P,
|
|
1114
|
+
function R(f) {
|
|
1115
|
+
function b(O, P, A, $, j) {
|
|
1109
1116
|
if (typeof f != "function")
|
|
1110
|
-
return new g("Property `" +
|
|
1117
|
+
return new g("Property `" + j + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
1111
1118
|
var F = O[P];
|
|
1112
1119
|
if (!Array.isArray(F)) {
|
|
1113
|
-
var
|
|
1114
|
-
return new g("Invalid " +
|
|
1120
|
+
var q = C(F);
|
|
1121
|
+
return new g("Invalid " + $ + " `" + j + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected an array."));
|
|
1115
1122
|
}
|
|
1116
1123
|
for (var Y = 0; Y < F.length; Y++) {
|
|
1117
|
-
var
|
|
1118
|
-
if (
|
|
1119
|
-
return
|
|
1124
|
+
var W = f(F, Y, A, $, j + "[" + Y + "]", n);
|
|
1125
|
+
if (W instanceof Error)
|
|
1126
|
+
return W;
|
|
1120
1127
|
}
|
|
1121
1128
|
return null;
|
|
1122
1129
|
}
|
|
1123
1130
|
return S(b);
|
|
1124
1131
|
}
|
|
1125
1132
|
function k() {
|
|
1126
|
-
function f(b, O, P,
|
|
1127
|
-
var
|
|
1128
|
-
if (!s(
|
|
1129
|
-
var F = C(
|
|
1130
|
-
return new g("Invalid " +
|
|
1133
|
+
function f(b, O, P, A, $) {
|
|
1134
|
+
var j = b[O];
|
|
1135
|
+
if (!s(j)) {
|
|
1136
|
+
var F = C(j);
|
|
1137
|
+
return new g("Invalid " + A + " `" + $ + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1131
1138
|
}
|
|
1132
1139
|
return null;
|
|
1133
1140
|
}
|
|
1134
1141
|
return S(f);
|
|
1135
1142
|
}
|
|
1136
1143
|
function p() {
|
|
1137
|
-
function f(b, O, P,
|
|
1138
|
-
var
|
|
1139
|
-
if (!e.isValidElementType(
|
|
1140
|
-
var F = C(
|
|
1141
|
-
return new g("Invalid " +
|
|
1144
|
+
function f(b, O, P, A, $) {
|
|
1145
|
+
var j = b[O];
|
|
1146
|
+
if (!e.isValidElementType(j)) {
|
|
1147
|
+
var F = C(j);
|
|
1148
|
+
return new g("Invalid " + A + " `" + $ + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1142
1149
|
}
|
|
1143
1150
|
return null;
|
|
1144
1151
|
}
|
|
1145
1152
|
return S(f);
|
|
1146
1153
|
}
|
|
1147
1154
|
function E(f) {
|
|
1148
|
-
function b(O, P,
|
|
1155
|
+
function b(O, P, A, $, j) {
|
|
1149
1156
|
if (!(O[P] instanceof f)) {
|
|
1150
|
-
var F = f.name ||
|
|
1151
|
-
return new g("Invalid " +
|
|
1157
|
+
var F = f.name || v, q = B(O[P]);
|
|
1158
|
+
return new g("Invalid " + $ + " `" + j + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected ") + ("instance of `" + F + "`."));
|
|
1152
1159
|
}
|
|
1153
1160
|
return null;
|
|
1154
1161
|
}
|
|
1155
1162
|
return S(b);
|
|
1156
1163
|
}
|
|
1157
|
-
function
|
|
1164
|
+
function z(f) {
|
|
1158
1165
|
if (!Array.isArray(f))
|
|
1159
1166
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1160
1167
|
"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])."
|
|
1161
1168
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1162
|
-
function b(O, P,
|
|
1163
|
-
for (var F = O[P],
|
|
1164
|
-
if (w(F, f[
|
|
1169
|
+
function b(O, P, A, $, j) {
|
|
1170
|
+
for (var F = O[P], q = 0; q < f.length; q++)
|
|
1171
|
+
if (w(F, f[q]))
|
|
1165
1172
|
return null;
|
|
1166
|
-
var Y = JSON.stringify(f, function(te,
|
|
1167
|
-
var _e =
|
|
1168
|
-
return _e === "symbol" ? String(
|
|
1173
|
+
var Y = JSON.stringify(f, function(te, x) {
|
|
1174
|
+
var _e = M(x);
|
|
1175
|
+
return _e === "symbol" ? String(x) : x;
|
|
1169
1176
|
});
|
|
1170
|
-
return new g("Invalid " +
|
|
1177
|
+
return new g("Invalid " + $ + " `" + j + "` of value `" + String(F) + "` " + ("supplied to `" + A + "`, expected one of " + Y + "."));
|
|
1171
1178
|
}
|
|
1172
1179
|
return S(b);
|
|
1173
1180
|
}
|
|
1174
|
-
function
|
|
1175
|
-
function b(O, P,
|
|
1181
|
+
function D(f) {
|
|
1182
|
+
function b(O, P, A, $, j) {
|
|
1176
1183
|
if (typeof f != "function")
|
|
1177
|
-
return new g("Property `" +
|
|
1178
|
-
var F = O[P],
|
|
1179
|
-
if (
|
|
1180
|
-
return new g("Invalid " +
|
|
1184
|
+
return new g("Property `" + j + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
1185
|
+
var F = O[P], q = C(F);
|
|
1186
|
+
if (q !== "object")
|
|
1187
|
+
return new g("Invalid " + $ + " `" + j + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected an object."));
|
|
1181
1188
|
for (var Y in F)
|
|
1182
1189
|
if (o(F, Y)) {
|
|
1183
|
-
var
|
|
1184
|
-
if (
|
|
1185
|
-
return
|
|
1190
|
+
var W = f(F, Y, A, $, j + "." + Y, n);
|
|
1191
|
+
if (W instanceof Error)
|
|
1192
|
+
return W;
|
|
1186
1193
|
}
|
|
1187
1194
|
return null;
|
|
1188
1195
|
}
|
|
@@ -1198,39 +1205,39 @@ function Ea() {
|
|
|
1198
1205
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(O) + " at index " + b + "."
|
|
1199
1206
|
), r;
|
|
1200
1207
|
}
|
|
1201
|
-
function P(
|
|
1202
|
-
for (var Y = [],
|
|
1203
|
-
var te = f[
|
|
1204
|
-
if (
|
|
1208
|
+
function P(A, $, j, F, q) {
|
|
1209
|
+
for (var Y = [], W = 0; W < f.length; W++) {
|
|
1210
|
+
var te = f[W], x = te(A, $, j, F, q, n);
|
|
1211
|
+
if (x == null)
|
|
1205
1212
|
return null;
|
|
1206
|
-
|
|
1213
|
+
x.data && o(x.data, "expectedType") && Y.push(x.data.expectedType);
|
|
1207
1214
|
}
|
|
1208
1215
|
var _e = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
1209
|
-
return new g("Invalid " + F + " `" +
|
|
1216
|
+
return new g("Invalid " + F + " `" + q + "` supplied to " + ("`" + j + "`" + _e + "."));
|
|
1210
1217
|
}
|
|
1211
1218
|
return S(P);
|
|
1212
1219
|
}
|
|
1213
1220
|
function oe() {
|
|
1214
|
-
function f(b, O, P,
|
|
1215
|
-
return X(b[O]) ? null : new g("Invalid " +
|
|
1221
|
+
function f(b, O, P, A, $) {
|
|
1222
|
+
return X(b[O]) ? null : new g("Invalid " + A + " `" + $ + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1216
1223
|
}
|
|
1217
1224
|
return S(f);
|
|
1218
1225
|
}
|
|
1219
|
-
function me(f, b, O, P,
|
|
1226
|
+
function me(f, b, O, P, A) {
|
|
1220
1227
|
return new g(
|
|
1221
|
-
(f || "React class") + ": " + b + " type `" + O + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1228
|
+
(f || "React class") + ": " + b + " type `" + O + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
1222
1229
|
);
|
|
1223
1230
|
}
|
|
1224
1231
|
function fe(f) {
|
|
1225
|
-
function b(O, P,
|
|
1226
|
-
var F = O[P],
|
|
1227
|
-
if (
|
|
1228
|
-
return new g("Invalid " +
|
|
1232
|
+
function b(O, P, A, $, j) {
|
|
1233
|
+
var F = O[P], q = C(F);
|
|
1234
|
+
if (q !== "object")
|
|
1235
|
+
return new g("Invalid " + $ + " `" + j + "` of type `" + q + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
1229
1236
|
for (var Y in f) {
|
|
1230
|
-
var
|
|
1231
|
-
if (typeof
|
|
1232
|
-
return me(
|
|
1233
|
-
var te =
|
|
1237
|
+
var W = f[Y];
|
|
1238
|
+
if (typeof W != "function")
|
|
1239
|
+
return me(A, $, j, Y, M(W));
|
|
1240
|
+
var te = W(F, Y, A, $, j + "." + Y, n);
|
|
1234
1241
|
if (te)
|
|
1235
1242
|
return te;
|
|
1236
1243
|
}
|
|
@@ -1239,23 +1246,23 @@ function Ea() {
|
|
|
1239
1246
|
return S(b);
|
|
1240
1247
|
}
|
|
1241
1248
|
function le(f) {
|
|
1242
|
-
function b(O, P,
|
|
1243
|
-
var F = O[P],
|
|
1244
|
-
if (
|
|
1245
|
-
return new g("Invalid " +
|
|
1249
|
+
function b(O, P, A, $, j) {
|
|
1250
|
+
var F = O[P], q = C(F);
|
|
1251
|
+
if (q !== "object")
|
|
1252
|
+
return new g("Invalid " + $ + " `" + j + "` of type `" + q + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
1246
1253
|
var Y = t({}, O[P], f);
|
|
1247
|
-
for (var
|
|
1248
|
-
var te = f[
|
|
1249
|
-
if (o(f,
|
|
1250
|
-
return me(
|
|
1254
|
+
for (var W in Y) {
|
|
1255
|
+
var te = f[W];
|
|
1256
|
+
if (o(f, W) && typeof te != "function")
|
|
1257
|
+
return me(A, $, j, W, M(te));
|
|
1251
1258
|
if (!te)
|
|
1252
1259
|
return new g(
|
|
1253
|
-
"Invalid " +
|
|
1260
|
+
"Invalid " + $ + " `" + j + "` key `" + W + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(O[P], null, " ") + `
|
|
1254
1261
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1255
1262
|
);
|
|
1256
|
-
var
|
|
1257
|
-
if (
|
|
1258
|
-
return
|
|
1263
|
+
var x = te(F, W, A, $, j + "." + W, n);
|
|
1264
|
+
if (x)
|
|
1265
|
+
return x;
|
|
1259
1266
|
}
|
|
1260
1267
|
return null;
|
|
1261
1268
|
}
|
|
@@ -1274,7 +1281,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1274
1281
|
return f.every(X);
|
|
1275
1282
|
if (f === null || s(f))
|
|
1276
1283
|
return !0;
|
|
1277
|
-
var b =
|
|
1284
|
+
var b = l(f);
|
|
1278
1285
|
if (b) {
|
|
1279
1286
|
var O = b.call(f), P;
|
|
1280
1287
|
if (b !== f.entries) {
|
|
@@ -1283,8 +1290,8 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1283
1290
|
return !1;
|
|
1284
1291
|
} else
|
|
1285
1292
|
for (; !(P = O.next()).done; ) {
|
|
1286
|
-
var
|
|
1287
|
-
if (
|
|
1293
|
+
var A = P.value;
|
|
1294
|
+
if (A && !X(A[1]))
|
|
1288
1295
|
return !1;
|
|
1289
1296
|
}
|
|
1290
1297
|
} else
|
|
@@ -1301,7 +1308,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1301
1308
|
var b = typeof f;
|
|
1302
1309
|
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Z(b, f) ? "symbol" : b;
|
|
1303
1310
|
}
|
|
1304
|
-
function
|
|
1311
|
+
function M(f) {
|
|
1305
1312
|
if (typeof f > "u" || f === null)
|
|
1306
1313
|
return "" + f;
|
|
1307
1314
|
var b = C(f);
|
|
@@ -1314,7 +1321,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1314
1321
|
return b;
|
|
1315
1322
|
}
|
|
1316
1323
|
function K(f) {
|
|
1317
|
-
var b =
|
|
1324
|
+
var b = M(f);
|
|
1318
1325
|
switch (b) {
|
|
1319
1326
|
case "array":
|
|
1320
1327
|
case "object":
|
|
@@ -1327,8 +1334,8 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1327
1334
|
return b;
|
|
1328
1335
|
}
|
|
1329
1336
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return !f.constructor || !f.constructor.name ?
|
|
1337
|
+
function B(f) {
|
|
1338
|
+
return !f.constructor || !f.constructor.name ? v : f.constructor.name;
|
|
1332
1339
|
}
|
|
1333
1340
|
return y.checkPropTypes = a, y.resetWarningCache = a.resetWarningCache, y.PropTypes = y, y;
|
|
1334
1341
|
}, vt;
|
|
@@ -1337,18 +1344,18 @@ var xt, Ht;
|
|
|
1337
1344
|
function Sa() {
|
|
1338
1345
|
if (Ht) return xt;
|
|
1339
1346
|
Ht = 1;
|
|
1340
|
-
var e =
|
|
1347
|
+
var e = At();
|
|
1341
1348
|
function t() {
|
|
1342
1349
|
}
|
|
1343
1350
|
function n() {
|
|
1344
1351
|
}
|
|
1345
1352
|
return n.resetWarningCache = t, xt = function() {
|
|
1346
|
-
function o(r, s, u, c,
|
|
1347
|
-
if (
|
|
1348
|
-
var
|
|
1353
|
+
function o(r, s, u, c, d, l) {
|
|
1354
|
+
if (l !== e) {
|
|
1355
|
+
var v = new Error(
|
|
1349
1356
|
"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"
|
|
1350
1357
|
);
|
|
1351
|
-
throw
|
|
1358
|
+
throw v.name = "Invariant Violation", v;
|
|
1352
1359
|
}
|
|
1353
1360
|
}
|
|
1354
1361
|
o.isRequired = o;
|
|
@@ -1386,36 +1393,36 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1386
1393
|
kt.exports = Ea()(Na.isElement, Ia);
|
|
1387
1394
|
} else
|
|
1388
1395
|
kt.exports = Sa()();
|
|
1389
|
-
var
|
|
1390
|
-
const T = /* @__PURE__ */ xn(
|
|
1391
|
-
function
|
|
1396
|
+
var Aa = kt.exports;
|
|
1397
|
+
const T = /* @__PURE__ */ xn(Aa);
|
|
1398
|
+
function je(e, t, n, o) {
|
|
1392
1399
|
function a(i) {
|
|
1393
1400
|
return i instanceof n ? i : new n(function(r) {
|
|
1394
1401
|
r(i);
|
|
1395
1402
|
});
|
|
1396
1403
|
}
|
|
1397
1404
|
return new (n || (n = Promise))(function(i, r) {
|
|
1398
|
-
function s(
|
|
1405
|
+
function s(d) {
|
|
1399
1406
|
try {
|
|
1400
|
-
c(o.next(
|
|
1401
|
-
} catch (
|
|
1402
|
-
r(
|
|
1407
|
+
c(o.next(d));
|
|
1408
|
+
} catch (l) {
|
|
1409
|
+
r(l);
|
|
1403
1410
|
}
|
|
1404
1411
|
}
|
|
1405
|
-
function u(
|
|
1412
|
+
function u(d) {
|
|
1406
1413
|
try {
|
|
1407
|
-
c(o.throw(
|
|
1408
|
-
} catch (
|
|
1409
|
-
r(
|
|
1414
|
+
c(o.throw(d));
|
|
1415
|
+
} catch (l) {
|
|
1416
|
+
r(l);
|
|
1410
1417
|
}
|
|
1411
1418
|
}
|
|
1412
|
-
function c(
|
|
1413
|
-
|
|
1419
|
+
function c(d) {
|
|
1420
|
+
d.done ? i(d.value) : a(d.value).then(s, u);
|
|
1414
1421
|
}
|
|
1415
1422
|
c((o = o.apply(e, t || [])).next());
|
|
1416
1423
|
});
|
|
1417
1424
|
}
|
|
1418
|
-
const
|
|
1425
|
+
const Ra = /* @__PURE__ */ new Map([
|
|
1419
1426
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1420
1427
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1421
1428
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2618,14 +2625,14 @@ const ja = /* @__PURE__ */ new Map([
|
|
|
2618
2625
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
2619
2626
|
["zsh", "text/x-scriptzsh"]
|
|
2620
2627
|
]);
|
|
2621
|
-
function
|
|
2622
|
-
const o =
|
|
2628
|
+
function ze(e, t, n) {
|
|
2629
|
+
const o = ja(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
2623
2630
|
return typeof o.path != "string" && Vt(o, "path", i), Vt(o, "relativePath", i), o;
|
|
2624
2631
|
}
|
|
2625
|
-
function
|
|
2632
|
+
function ja(e) {
|
|
2626
2633
|
const { name: t } = e;
|
|
2627
2634
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2628
|
-
const o = t.split(".").pop().toLowerCase(), a =
|
|
2635
|
+
const o = t.split(".").pop().toLowerCase(), a = Ra.get(o);
|
|
2629
2636
|
a && Object.defineProperty(e, "type", {
|
|
2630
2637
|
value: a,
|
|
2631
2638
|
writable: !1,
|
|
@@ -2651,29 +2658,29 @@ const Da = [
|
|
|
2651
2658
|
// Windows
|
|
2652
2659
|
];
|
|
2653
2660
|
function La(e) {
|
|
2654
|
-
return
|
|
2655
|
-
return Xe(e) && Oa(e.dataTransfer) ? Ba(e.dataTransfer, e.type) :
|
|
2661
|
+
return je(this, void 0, void 0, function* () {
|
|
2662
|
+
return Xe(e) && Oa(e.dataTransfer) ? Ba(e.dataTransfer, e.type) : za(e) ? Pa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Fa(e) : [];
|
|
2656
2663
|
});
|
|
2657
2664
|
}
|
|
2658
2665
|
function Oa(e) {
|
|
2659
2666
|
return Xe(e);
|
|
2660
2667
|
}
|
|
2661
|
-
function
|
|
2668
|
+
function za(e) {
|
|
2662
2669
|
return Xe(e) && Xe(e.target);
|
|
2663
2670
|
}
|
|
2664
2671
|
function Xe(e) {
|
|
2665
2672
|
return typeof e == "object" && e !== null;
|
|
2666
2673
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return Ct(e.target.files).map((t) =>
|
|
2674
|
+
function Pa(e) {
|
|
2675
|
+
return Ct(e.target.files).map((t) => ze(t));
|
|
2669
2676
|
}
|
|
2670
|
-
function
|
|
2671
|
-
return
|
|
2672
|
-
return (yield Promise.all(e.map((n) => n.getFile()))).map((n) =>
|
|
2677
|
+
function Fa(e) {
|
|
2678
|
+
return je(this, void 0, void 0, function* () {
|
|
2679
|
+
return (yield Promise.all(e.map((n) => n.getFile()))).map((n) => ze(n));
|
|
2673
2680
|
});
|
|
2674
2681
|
}
|
|
2675
2682
|
function Ba(e, t) {
|
|
2676
|
-
return
|
|
2683
|
+
return je(this, void 0, void 0, function* () {
|
|
2677
2684
|
if (e.items) {
|
|
2678
2685
|
const n = Ct(e.items).filter((a) => a.kind === "file");
|
|
2679
2686
|
if (t !== "drop")
|
|
@@ -2681,7 +2688,7 @@ function Ba(e, t) {
|
|
|
2681
2688
|
const o = yield Promise.all(n.map(Wa));
|
|
2682
2689
|
return Yt(bn(o));
|
|
2683
2690
|
}
|
|
2684
|
-
return Yt(Ct(e.files).map((n) =>
|
|
2691
|
+
return Yt(Ct(e.files).map((n) => ze(n)));
|
|
2685
2692
|
});
|
|
2686
2693
|
}
|
|
2687
2694
|
function Yt(e) {
|
|
@@ -2710,7 +2717,7 @@ function bn(e) {
|
|
|
2710
2717
|
], []);
|
|
2711
2718
|
}
|
|
2712
2719
|
function Ut(e, t) {
|
|
2713
|
-
return
|
|
2720
|
+
return je(this, void 0, void 0, function* () {
|
|
2714
2721
|
var n;
|
|
2715
2722
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2716
2723
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -2718,17 +2725,17 @@ function Ut(e, t) {
|
|
|
2718
2725
|
throw new Error(`${e} is not a File`);
|
|
2719
2726
|
if (i !== void 0) {
|
|
2720
2727
|
const r = yield i.getFile();
|
|
2721
|
-
return r.handle = i,
|
|
2728
|
+
return r.handle = i, ze(r);
|
|
2722
2729
|
}
|
|
2723
2730
|
}
|
|
2724
2731
|
const o = e.getAsFile();
|
|
2725
2732
|
if (!o)
|
|
2726
2733
|
throw new Error(`${e} is not a File`);
|
|
2727
|
-
return
|
|
2734
|
+
return ze(o, (n = t == null ? void 0 : t.fullPath) !== null && n !== void 0 ? n : void 0);
|
|
2728
2735
|
});
|
|
2729
2736
|
}
|
|
2730
2737
|
function Ma(e) {
|
|
2731
|
-
return
|
|
2738
|
+
return je(this, void 0, void 0, function* () {
|
|
2732
2739
|
return e.isDirectory ? yn(e) : $a(e);
|
|
2733
2740
|
});
|
|
2734
2741
|
}
|
|
@@ -2737,7 +2744,7 @@ function yn(e) {
|
|
|
2737
2744
|
return new Promise((n, o) => {
|
|
2738
2745
|
const a = [];
|
|
2739
2746
|
function i() {
|
|
2740
|
-
t.readEntries((r) =>
|
|
2747
|
+
t.readEntries((r) => je(this, void 0, void 0, function* () {
|
|
2741
2748
|
if (r.length) {
|
|
2742
2749
|
const s = Promise.all(r.map(Ma));
|
|
2743
2750
|
a.push(s), i();
|
|
@@ -2756,10 +2763,10 @@ function yn(e) {
|
|
|
2756
2763
|
});
|
|
2757
2764
|
}
|
|
2758
2765
|
function $a(e) {
|
|
2759
|
-
return
|
|
2766
|
+
return je(this, void 0, void 0, function* () {
|
|
2760
2767
|
return new Promise((t, n) => {
|
|
2761
2768
|
e.file((o) => {
|
|
2762
|
-
const a =
|
|
2769
|
+
const a = ze(o, e.fullPath);
|
|
2763
2770
|
t(a);
|
|
2764
2771
|
}, (o) => {
|
|
2765
2772
|
n(o);
|
|
@@ -2885,24 +2892,24 @@ function Cn(e, t) {
|
|
|
2885
2892
|
return [n, n ? null : ei(t)];
|
|
2886
2893
|
}
|
|
2887
2894
|
function Tn(e, t, n) {
|
|
2888
|
-
if (
|
|
2889
|
-
if (
|
|
2895
|
+
if (Re(e.size))
|
|
2896
|
+
if (Re(t) && Re(n)) {
|
|
2890
2897
|
if (e.size > n) return [!1, Zt(n)];
|
|
2891
2898
|
if (e.size < t) return [!1, Qt(t)];
|
|
2892
2899
|
} else {
|
|
2893
|
-
if (
|
|
2894
|
-
if (
|
|
2900
|
+
if (Re(t) && e.size < t) return [!1, Qt(t)];
|
|
2901
|
+
if (Re(n) && e.size > n) return [!1, Zt(n)];
|
|
2895
2902
|
}
|
|
2896
2903
|
return [!0, null];
|
|
2897
2904
|
}
|
|
2898
|
-
function
|
|
2905
|
+
function Re(e) {
|
|
2899
2906
|
return e != null;
|
|
2900
2907
|
}
|
|
2901
2908
|
function ni(e) {
|
|
2902
2909
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2903
2910
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(u) {
|
|
2904
|
-
var c = Cn(u, n),
|
|
2905
|
-
return
|
|
2911
|
+
var c = Cn(u, n), d = Me(c, 1), l = d[0], v = Tn(u, o, a), y = Me(v, 1), w = y[0], g = s ? s(u) : null;
|
|
2912
|
+
return l && w && !g;
|
|
2906
2913
|
});
|
|
2907
2914
|
}
|
|
2908
2915
|
function Ze(e) {
|
|
@@ -2941,7 +2948,7 @@ function ri() {
|
|
|
2941
2948
|
return "showOpenFilePicker" in window;
|
|
2942
2949
|
}
|
|
2943
2950
|
function si(e) {
|
|
2944
|
-
if (
|
|
2951
|
+
if (Re(e)) {
|
|
2945
2952
|
var t = Object.entries(e).filter(function(n) {
|
|
2946
2953
|
var o = Me(n, 2), a = o[0], i = o[1], r = !0;
|
|
2947
2954
|
return En(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(Sn)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
@@ -2958,7 +2965,7 @@ function si(e) {
|
|
|
2958
2965
|
return e;
|
|
2959
2966
|
}
|
|
2960
2967
|
function pi(e) {
|
|
2961
|
-
if (
|
|
2968
|
+
if (Re(e))
|
|
2962
2969
|
return Object.entries(e).reduce(function(t, n) {
|
|
2963
2970
|
var o = Me(n, 2), a = o[0], i = o[1];
|
|
2964
2971
|
return [].concat(Gt(t), [a], Gt(i));
|
|
@@ -3076,7 +3083,7 @@ function wi(e, t) {
|
|
|
3076
3083
|
a = o[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
3077
3084
|
return n;
|
|
3078
3085
|
}
|
|
3079
|
-
var et = /* @__PURE__ */
|
|
3086
|
+
var et = /* @__PURE__ */ Fn(function(e, t) {
|
|
3080
3087
|
var n = e.children, o = Qe(e, di), a = ki(o), i = a.open, r = Qe(a, ui);
|
|
3081
3088
|
return Bn(t, function() {
|
|
3082
3089
|
return {
|
|
@@ -3282,7 +3289,7 @@ var Nt = {
|
|
|
3282
3289
|
fileRejections: []
|
|
3283
3290
|
};
|
|
3284
3291
|
function ki() {
|
|
3285
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Q(Q({}, In), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, u = t.maxFiles, c = t.onDragEnter,
|
|
3292
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Q(Q({}, In), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, u = t.maxFiles, c = t.onDragEnter, d = t.onDragLeave, l = t.onDragOver, v = t.onDrop, y = t.onDropAccepted, w = t.onDropRejected, g = t.onFileDialogCancel, S = t.onFileDialogOpen, L = t.useFsAccessApi, V = t.autoFocus, R = t.preventDropOnDocument, k = t.noClick, p = t.noKeyboard, E = t.noDrag, z = t.noDragEventsBubbling, D = t.onError, J = t.validator, oe = Oe(function() {
|
|
3286
3293
|
return pi(n);
|
|
3287
3294
|
}, [n]), me = Oe(function() {
|
|
3288
3295
|
return si(n);
|
|
@@ -3290,11 +3297,11 @@ function ki() {
|
|
|
3290
3297
|
return typeof S == "function" ? S : tn;
|
|
3291
3298
|
}, [S]), le = Oe(function() {
|
|
3292
3299
|
return typeof g == "function" ? g : tn;
|
|
3293
|
-
}, [g]), X = ue(null), Z = ue(null), C = Mn(Ci, Nt),
|
|
3300
|
+
}, [g]), X = ue(null), Z = ue(null), C = Mn(Ci, Nt), M = ht(C, 2), K = M[0], B = M[1], f = K.isFocused, b = K.isFileDialogActive, O = ue(typeof window < "u" && window.isSecureContext && L && ri()), P = function() {
|
|
3294
3301
|
!O.current && b && setTimeout(function() {
|
|
3295
3302
|
if (Z.current) {
|
|
3296
|
-
var
|
|
3297
|
-
|
|
3303
|
+
var I = Z.current.files;
|
|
3304
|
+
I.length || (B({
|
|
3298
3305
|
type: "closeDialog"
|
|
3299
3306
|
}), le());
|
|
3300
3307
|
}
|
|
@@ -3305,24 +3312,24 @@ function ki() {
|
|
|
3305
3312
|
window.removeEventListener("focus", P, !1);
|
|
3306
3313
|
};
|
|
3307
3314
|
}, [Z, b, le, O]);
|
|
3308
|
-
var
|
|
3309
|
-
X.current && X.current.contains(
|
|
3315
|
+
var A = ue([]), $ = function(I) {
|
|
3316
|
+
X.current && X.current.contains(I.target) || (I.preventDefault(), A.current = []);
|
|
3310
3317
|
};
|
|
3311
3318
|
ne(function() {
|
|
3312
|
-
return
|
|
3313
|
-
|
|
3319
|
+
return R && (document.addEventListener("dragover", Jt, !1), document.addEventListener("drop", $, !1)), function() {
|
|
3320
|
+
R && (document.removeEventListener("dragover", Jt), document.removeEventListener("drop", $));
|
|
3314
3321
|
};
|
|
3315
|
-
}, [X,
|
|
3316
|
-
return !o &&
|
|
3322
|
+
}, [X, R]), ne(function() {
|
|
3323
|
+
return !o && V && X.current && X.current.focus(), function() {
|
|
3317
3324
|
};
|
|
3318
|
-
}, [X,
|
|
3319
|
-
var
|
|
3320
|
-
|
|
3321
|
-
}, [
|
|
3322
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3323
|
-
if (!(Ze(h) && !
|
|
3324
|
-
var ee =
|
|
3325
|
-
files:
|
|
3325
|
+
}, [X, V, o]);
|
|
3326
|
+
var j = de(function(h) {
|
|
3327
|
+
D ? D(h) : console.error(h);
|
|
3328
|
+
}, [D]), F = de(function(h) {
|
|
3329
|
+
h.preventDefault(), h.persist(), He(h), A.current = [].concat(_i(A.current), [h.target]), Ge(h) && Promise.resolve(a(h)).then(function(I) {
|
|
3330
|
+
if (!(Ze(h) && !z)) {
|
|
3331
|
+
var ee = I.length, ae = ee > 0 && ni({
|
|
3332
|
+
files: I,
|
|
3326
3333
|
accept: oe,
|
|
3327
3334
|
minSize: r,
|
|
3328
3335
|
maxSize: i,
|
|
@@ -3330,48 +3337,48 @@ function ki() {
|
|
|
3330
3337
|
maxFiles: u,
|
|
3331
3338
|
validator: J
|
|
3332
3339
|
}), ve = ee > 0 && !ae;
|
|
3333
|
-
|
|
3340
|
+
B({
|
|
3334
3341
|
isDragAccept: ae,
|
|
3335
3342
|
isDragReject: ve,
|
|
3336
3343
|
isDragActive: !0,
|
|
3337
3344
|
type: "setDraggedFiles"
|
|
3338
3345
|
}), c && c(h);
|
|
3339
3346
|
}
|
|
3340
|
-
}).catch(function(
|
|
3341
|
-
return
|
|
3347
|
+
}).catch(function(I) {
|
|
3348
|
+
return j(I);
|
|
3342
3349
|
});
|
|
3343
|
-
}, [a, c,
|
|
3350
|
+
}, [a, c, j, z, oe, r, i, s, u, J]), q = de(function(h) {
|
|
3344
3351
|
h.preventDefault(), h.persist(), He(h);
|
|
3345
|
-
var
|
|
3346
|
-
if (
|
|
3352
|
+
var I = Ge(h);
|
|
3353
|
+
if (I && h.dataTransfer)
|
|
3347
3354
|
try {
|
|
3348
3355
|
h.dataTransfer.dropEffect = "copy";
|
|
3349
3356
|
} catch {
|
|
3350
3357
|
}
|
|
3351
|
-
return
|
|
3352
|
-
}, [
|
|
3358
|
+
return I && l && l(h), !1;
|
|
3359
|
+
}, [l, z]), Y = de(function(h) {
|
|
3353
3360
|
h.preventDefault(), h.persist(), He(h);
|
|
3354
|
-
var
|
|
3361
|
+
var I = A.current.filter(function(ae) {
|
|
3355
3362
|
return X.current && X.current.contains(ae);
|
|
3356
|
-
}), ee =
|
|
3357
|
-
ee !== -1 &&
|
|
3363
|
+
}), ee = I.indexOf(h.target);
|
|
3364
|
+
ee !== -1 && I.splice(ee, 1), A.current = I, !(I.length > 0) && (B({
|
|
3358
3365
|
type: "setDraggedFiles",
|
|
3359
3366
|
isDragActive: !1,
|
|
3360
3367
|
isDragAccept: !1,
|
|
3361
3368
|
isDragReject: !1
|
|
3362
|
-
}), Ge(h) &&
|
|
3363
|
-
}, [X,
|
|
3369
|
+
}), Ge(h) && d && d(h));
|
|
3370
|
+
}, [X, d, z]), W = de(function(h, I) {
|
|
3364
3371
|
var ee = [], ae = [];
|
|
3365
3372
|
h.forEach(function(ve) {
|
|
3366
|
-
var
|
|
3373
|
+
var Fe = Cn(ve, oe), Le = ht(Fe, 2), nt = Le[0], ot = Le[1], at = Tn(ve, r, i), Ve = ht(at, 2), it = Ve[0], rt = Ve[1], st = J ? J(ve) : null;
|
|
3367
3374
|
if (nt && it && !st)
|
|
3368
3375
|
ee.push(ve);
|
|
3369
3376
|
else {
|
|
3370
3377
|
var pt = [ot, rt];
|
|
3371
3378
|
st && (pt = pt.concat(st)), ae.push({
|
|
3372
3379
|
file: ve,
|
|
3373
|
-
errors: pt.filter(function(
|
|
3374
|
-
return
|
|
3380
|
+
errors: pt.filter(function(Pn) {
|
|
3381
|
+
return Pn;
|
|
3375
3382
|
})
|
|
3376
3383
|
});
|
|
3377
3384
|
}
|
|
@@ -3380,75 +3387,75 @@ function ki() {
|
|
|
3380
3387
|
file: ve,
|
|
3381
3388
|
errors: [ti]
|
|
3382
3389
|
});
|
|
3383
|
-
}), ee.splice(0)),
|
|
3390
|
+
}), ee.splice(0)), B({
|
|
3384
3391
|
acceptedFiles: ee,
|
|
3385
3392
|
fileRejections: ae,
|
|
3386
3393
|
isDragReject: ae.length > 0,
|
|
3387
3394
|
type: "setFiles"
|
|
3388
|
-
}),
|
|
3389
|
-
}, [
|
|
3390
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3391
|
-
Ze(h) && !
|
|
3392
|
-
}).catch(function(
|
|
3393
|
-
return
|
|
3394
|
-
}),
|
|
3395
|
+
}), v && v(ee, ae, I), ae.length > 0 && w && w(ae, I), ee.length > 0 && y && y(ee, I);
|
|
3396
|
+
}, [B, s, oe, r, i, u, v, y, w, J]), te = de(function(h) {
|
|
3397
|
+
h.preventDefault(), h.persist(), He(h), A.current = [], Ge(h) && Promise.resolve(a(h)).then(function(I) {
|
|
3398
|
+
Ze(h) && !z || W(I, h);
|
|
3399
|
+
}).catch(function(I) {
|
|
3400
|
+
return j(I);
|
|
3401
|
+
}), B({
|
|
3395
3402
|
type: "reset"
|
|
3396
3403
|
});
|
|
3397
|
-
}, [a,
|
|
3404
|
+
}, [a, W, j, z]), x = de(function() {
|
|
3398
3405
|
if (O.current) {
|
|
3399
|
-
|
|
3406
|
+
B({
|
|
3400
3407
|
type: "openDialog"
|
|
3401
3408
|
}), fe();
|
|
3402
3409
|
var h = {
|
|
3403
3410
|
multiple: s,
|
|
3404
3411
|
types: me
|
|
3405
3412
|
};
|
|
3406
|
-
window.showOpenFilePicker(h).then(function(
|
|
3407
|
-
return a(
|
|
3408
|
-
}).then(function(
|
|
3409
|
-
|
|
3413
|
+
window.showOpenFilePicker(h).then(function(I) {
|
|
3414
|
+
return a(I);
|
|
3415
|
+
}).then(function(I) {
|
|
3416
|
+
W(I, null), B({
|
|
3410
3417
|
type: "closeDialog"
|
|
3411
3418
|
});
|
|
3412
|
-
}).catch(function(
|
|
3413
|
-
ci(
|
|
3419
|
+
}).catch(function(I) {
|
|
3420
|
+
ci(I) ? (le(I), B({
|
|
3414
3421
|
type: "closeDialog"
|
|
3415
|
-
})) : li(
|
|
3422
|
+
})) : li(I) ? (O.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : j(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : j(I);
|
|
3416
3423
|
});
|
|
3417
3424
|
return;
|
|
3418
3425
|
}
|
|
3419
|
-
Z.current && (
|
|
3426
|
+
Z.current && (B({
|
|
3420
3427
|
type: "openDialog"
|
|
3421
3428
|
}), fe(), Z.current.value = null, Z.current.click());
|
|
3422
|
-
}, [
|
|
3423
|
-
!X.current || !X.current.isEqualNode(h.target) || (h.key === " " || h.key === "Enter" || h.keyCode === 32 || h.keyCode === 13) && (h.preventDefault(),
|
|
3424
|
-
}, [X,
|
|
3425
|
-
|
|
3429
|
+
}, [B, fe, le, L, W, j, me, s]), _e = de(function(h) {
|
|
3430
|
+
!X.current || !X.current.isEqualNode(h.target) || (h.key === " " || h.key === "Enter" || h.keyCode === 32 || h.keyCode === 13) && (h.preventDefault(), x());
|
|
3431
|
+
}, [X, x]), Ne = de(function() {
|
|
3432
|
+
B({
|
|
3426
3433
|
type: "focus"
|
|
3427
3434
|
});
|
|
3428
|
-
}, []),
|
|
3429
|
-
|
|
3435
|
+
}, []), Pe = de(function() {
|
|
3436
|
+
B({
|
|
3430
3437
|
type: "blur"
|
|
3431
3438
|
});
|
|
3432
3439
|
}, []), Dt = de(function() {
|
|
3433
|
-
k || (ii() ? setTimeout(
|
|
3434
|
-
}, [k,
|
|
3435
|
-
return o ? null :
|
|
3436
|
-
}, tt = function(
|
|
3437
|
-
return p ? null : De(
|
|
3438
|
-
}, qe = function(
|
|
3439
|
-
return E ? null : De(
|
|
3440
|
-
}, He = function(
|
|
3441
|
-
|
|
3440
|
+
k || (ii() ? setTimeout(x, 0) : x());
|
|
3441
|
+
}, [k, x]), De = function(I) {
|
|
3442
|
+
return o ? null : I;
|
|
3443
|
+
}, tt = function(I) {
|
|
3444
|
+
return p ? null : De(I);
|
|
3445
|
+
}, qe = function(I) {
|
|
3446
|
+
return E ? null : De(I);
|
|
3447
|
+
}, He = function(I) {
|
|
3448
|
+
z && I.stopPropagation();
|
|
3442
3449
|
}, Ln = Oe(function() {
|
|
3443
3450
|
return function() {
|
|
3444
|
-
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3451
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = h.refKey, ee = I === void 0 ? "ref" : I, ae = h.role, ve = h.onKeyDown, Fe = h.onFocus, Le = h.onBlur, nt = h.onClick, ot = h.onDragEnter, at = h.onDragOver, Ve = h.onDragLeave, it = h.onDrop, rt = Qe(h, mi);
|
|
3445
3452
|
return Q(Q(St({
|
|
3446
3453
|
onKeyDown: tt(Ce(ve, _e)),
|
|
3447
|
-
onFocus: tt(Ce(
|
|
3448
|
-
onBlur: tt(Ce(Le,
|
|
3454
|
+
onFocus: tt(Ce(Fe, Ne)),
|
|
3455
|
+
onBlur: tt(Ce(Le, Pe)),
|
|
3449
3456
|
onClick: De(Ce(nt, Dt)),
|
|
3450
3457
|
onDragEnter: qe(Ce(ot, F)),
|
|
3451
|
-
onDragOver: qe(Ce(at,
|
|
3458
|
+
onDragOver: qe(Ce(at, q)),
|
|
3452
3459
|
onDragLeave: qe(Ce(Ve, Y)),
|
|
3453
3460
|
onDrop: qe(Ce(it, te)),
|
|
3454
3461
|
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
@@ -3456,11 +3463,11 @@ function ki() {
|
|
|
3456
3463
|
tabIndex: 0
|
|
3457
3464
|
} : {}), rt);
|
|
3458
3465
|
};
|
|
3459
|
-
}, [X, _e, Ne,
|
|
3466
|
+
}, [X, _e, Ne, Pe, Dt, F, q, Y, te, p, E, o]), On = de(function(h) {
|
|
3460
3467
|
h.stopPropagation();
|
|
3461
|
-
}, []),
|
|
3468
|
+
}, []), zn = Oe(function() {
|
|
3462
3469
|
return function() {
|
|
3463
|
-
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3470
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = h.refKey, ee = I === void 0 ? "ref" : I, ae = h.onChange, ve = h.onClick, Fe = Qe(h, fi), Le = St({
|
|
3464
3471
|
accept: oe,
|
|
3465
3472
|
multiple: s,
|
|
3466
3473
|
type: "file",
|
|
@@ -3480,16 +3487,16 @@ function ki() {
|
|
|
3480
3487
|
onClick: De(Ce(ve, On)),
|
|
3481
3488
|
tabIndex: -1
|
|
3482
3489
|
}, ee, Z);
|
|
3483
|
-
return Q(Q({}, Le),
|
|
3490
|
+
return Q(Q({}, Le), Fe);
|
|
3484
3491
|
};
|
|
3485
3492
|
}, [Z, n, s, te, o]);
|
|
3486
3493
|
return Q(Q({}, K), {}, {
|
|
3487
3494
|
isFocused: f && !o,
|
|
3488
3495
|
getRootProps: Ln,
|
|
3489
|
-
getInputProps:
|
|
3496
|
+
getInputProps: zn,
|
|
3490
3497
|
rootRef: X,
|
|
3491
3498
|
inputRef: Z,
|
|
3492
|
-
open: De(
|
|
3499
|
+
open: De(x)
|
|
3493
3500
|
});
|
|
3494
3501
|
}
|
|
3495
3502
|
function Ci(e, t) {
|
|
@@ -3541,33 +3548,33 @@ const Ti = (e) => {
|
|
|
3541
3548
|
multiple: s,
|
|
3542
3549
|
maxFiles: u,
|
|
3543
3550
|
files: c = []
|
|
3544
|
-
} = e,
|
|
3545
|
-
(
|
|
3551
|
+
} = e, d = de(
|
|
3552
|
+
(l) => {
|
|
3546
3553
|
if (!s) {
|
|
3547
|
-
t(
|
|
3554
|
+
t(l, r);
|
|
3548
3555
|
return;
|
|
3549
3556
|
}
|
|
3550
|
-
const
|
|
3551
|
-
if (u &&
|
|
3552
|
-
console.log(`Максимальное возможное количество файлов для загрузки - ${u}`), t(
|
|
3557
|
+
const v = [...c, ...l];
|
|
3558
|
+
if (u && v.length > u) {
|
|
3559
|
+
console.log(`Максимальное возможное количество файлов для загрузки - ${u}`), t(v.slice(0, u), r);
|
|
3553
3560
|
return;
|
|
3554
3561
|
}
|
|
3555
|
-
t(
|
|
3562
|
+
t(v, r);
|
|
3556
3563
|
},
|
|
3557
3564
|
[c, u, s, r, t]
|
|
3558
3565
|
);
|
|
3559
|
-
return /* @__PURE__ */ m(et, { multiple: s, onDrop:
|
|
3560
|
-
/* @__PURE__ */ m("input", { ...
|
|
3566
|
+
return /* @__PURE__ */ m(et, { multiple: s, onDrop: d, maxSize: o, accept: a, children: ({ getRootProps: l, getInputProps: v }) => /* @__PURE__ */ H("div", { ...l({}), children: [
|
|
3567
|
+
/* @__PURE__ */ m("input", { ...v({}), disabled: i, name: r }),
|
|
3561
3568
|
n
|
|
3562
3569
|
] }) });
|
|
3563
|
-
}, Ei = "_spDropdown_1f4lf_43", Si = "_spDropdown__labelText_1f4lf_54", Ni = "_spDropdown__tooltipContainer_1f4lf_62", Ii = "_spDropdown__dropdownList_1f4lf_67",
|
|
3570
|
+
}, Ei = "_spDropdown_1f4lf_43", Si = "_spDropdown__labelText_1f4lf_54", Ni = "_spDropdown__tooltipContainer_1f4lf_62", Ii = "_spDropdown__dropdownList_1f4lf_67", Ai = "_spDropdown__dropdownListHeader_1f4lf_73", Ri = "_spDropdown__dopdownListItem_1f4lf_80", ji = "_spDropdown__dopdownListItem_textCenter_1f4lf_91", Di = "_spDropdown__downloadListItemDescription_1f4lf_94", Se = {
|
|
3564
3571
|
spDropdown: Ei,
|
|
3565
3572
|
spDropdown__labelText: Si,
|
|
3566
3573
|
spDropdown__tooltipContainer: Ni,
|
|
3567
3574
|
spDropdown__dropdownList: Ii,
|
|
3568
|
-
spDropdown__dropdownListHeader:
|
|
3569
|
-
spDropdown__dopdownListItem:
|
|
3570
|
-
spDropdown__dopdownListItem_textCenter:
|
|
3575
|
+
spDropdown__dropdownListHeader: Ai,
|
|
3576
|
+
spDropdown__dopdownListItem: Ri,
|
|
3577
|
+
spDropdown__dopdownListItem_textCenter: ji,
|
|
3571
3578
|
spDropdown__downloadListItemDescription: Di
|
|
3572
3579
|
}, Hs = (e) => {
|
|
3573
3580
|
const {
|
|
@@ -3585,20 +3592,20 @@ const Ti = (e) => {
|
|
|
3585
3592
|
[Se.spDropdown__tooltipContainer]: !0
|
|
3586
3593
|
}), c = _({
|
|
3587
3594
|
[Se.spDropdown__dropdownList]: !0
|
|
3588
|
-
}), l = _({
|
|
3589
|
-
[Se.spDropdown__dropdownListHeader]: !0
|
|
3590
3595
|
}), d = _({
|
|
3596
|
+
[Se.spDropdown__dropdownListHeader]: !0
|
|
3597
|
+
}), l = _({
|
|
3591
3598
|
[Se.spDropdown__downloadListItemDescription]: !0
|
|
3592
|
-
}), [
|
|
3599
|
+
}), [v, y] = ie(!1);
|
|
3593
3600
|
return /* @__PURE__ */ m(
|
|
3594
3601
|
It,
|
|
3595
3602
|
{
|
|
3596
3603
|
hover: !1,
|
|
3597
3604
|
triggerAction: () => y(!0),
|
|
3598
3605
|
actionOnClose: () => y(!1),
|
|
3599
|
-
text: /* @__PURE__ */
|
|
3600
|
-
n && /* @__PURE__ */ m("div", { className:
|
|
3601
|
-
o.map((g, S) => /* @__PURE__ */
|
|
3606
|
+
text: /* @__PURE__ */ H("div", { className: c, children: [
|
|
3607
|
+
n && /* @__PURE__ */ m("div", { className: d, children: n }),
|
|
3608
|
+
o.map((g, S) => /* @__PURE__ */ H(
|
|
3602
3609
|
"div",
|
|
3603
3610
|
{
|
|
3604
3611
|
className: _({
|
|
@@ -3608,7 +3615,7 @@ const Ti = (e) => {
|
|
|
3608
3615
|
onClick: g.onClick,
|
|
3609
3616
|
children: [
|
|
3610
3617
|
g.name,
|
|
3611
|
-
g.description && /* @__PURE__ */ m("span", { className:
|
|
3618
|
+
g.description && /* @__PURE__ */ m("span", { className: l, children: g.description })
|
|
3612
3619
|
]
|
|
3613
3620
|
},
|
|
3614
3621
|
S
|
|
@@ -3618,16 +3625,16 @@ const Ti = (e) => {
|
|
|
3618
3625
|
noPadding: !0,
|
|
3619
3626
|
isToggleClick: !0,
|
|
3620
3627
|
isStopPropagationClickOnTrigger: !0,
|
|
3621
|
-
trigger: /* @__PURE__ */
|
|
3628
|
+
trigger: /* @__PURE__ */ H("div", { className: r, children: [
|
|
3622
3629
|
/* @__PURE__ */ m("div", { className: s, children: t }),
|
|
3623
|
-
/* @__PURE__ */ m("div", { className: u, children: /* @__PURE__ */ m(he, { name: pe.SelectChevronDown, rotate:
|
|
3630
|
+
/* @__PURE__ */ m("div", { className: u, children: /* @__PURE__ */ m(he, { name: pe.SelectChevronDown, rotate: v ? 180 : void 0 }) })
|
|
3624
3631
|
] })
|
|
3625
3632
|
}
|
|
3626
3633
|
);
|
|
3627
3634
|
}, Li = "_ellipsisTextWithTooltip_1nhiw_43", Oi = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", nn = {
|
|
3628
3635
|
ellipsisTextWithTooltip: Li,
|
|
3629
3636
|
ellipsisTextWithTooltip__tooltip: Oi
|
|
3630
|
-
},
|
|
3637
|
+
}, zi = (e) => {
|
|
3631
3638
|
const {
|
|
3632
3639
|
text: t,
|
|
3633
3640
|
classNameRoot: n,
|
|
@@ -3636,14 +3643,14 @@ const Ti = (e) => {
|
|
|
3636
3643
|
classNameBaseTooltipContentRoot: i,
|
|
3637
3644
|
classNameBaseTooltipRoot: r,
|
|
3638
3645
|
...s
|
|
3639
|
-
} = e, u = ue(null), [c,
|
|
3646
|
+
} = e, u = ue(null), [c, d] = ie(!1);
|
|
3640
3647
|
ne(() => {
|
|
3641
|
-
u.current &&
|
|
3648
|
+
u.current && d(u.current.scrollWidth > u.current.clientWidth);
|
|
3642
3649
|
}, [t]);
|
|
3643
|
-
const
|
|
3650
|
+
const l = _({
|
|
3644
3651
|
[nn.ellipsisTextWithTooltip]: !0,
|
|
3645
3652
|
...n && { [n]: !0 }
|
|
3646
|
-
}),
|
|
3653
|
+
}), v = _({
|
|
3647
3654
|
[nn.ellipsisTextWithTooltip__tooltip]: !0,
|
|
3648
3655
|
...o && { [o]: !0 }
|
|
3649
3656
|
}), y = _({
|
|
@@ -3652,18 +3659,18 @@ const Ti = (e) => {
|
|
|
3652
3659
|
return /* @__PURE__ */ m(
|
|
3653
3660
|
It,
|
|
3654
3661
|
{
|
|
3655
|
-
classNameTooltip:
|
|
3662
|
+
classNameTooltip: v,
|
|
3656
3663
|
classNameTriggerTooltip: y,
|
|
3657
3664
|
classNameBaseTooltipContentRoot: i,
|
|
3658
3665
|
classNameBaseTooltipRoot: r,
|
|
3659
3666
|
isVisibleTooltip: c,
|
|
3660
3667
|
text: t,
|
|
3661
|
-
trigger: /* @__PURE__ */ m(Ee, { ...s, classNameRoot:
|
|
3668
|
+
trigger: /* @__PURE__ */ m(Ee, { ...s, classNameRoot: l, isEllipsis: !0, ref: u, children: t })
|
|
3662
3669
|
}
|
|
3663
3670
|
);
|
|
3664
|
-
},
|
|
3665
|
-
spForm:
|
|
3666
|
-
spForm_fullWidth:
|
|
3671
|
+
}, Pi = "_spForm_zefbj_43", Fi = "_spForm_fullWidth_zefbj_46", Bi = "_spForm_withSeparator_zefbj_49", We = {
|
|
3672
|
+
spForm: Pi,
|
|
3673
|
+
spForm_fullWidth: Fi,
|
|
3667
3674
|
spForm_withSeparator: Bi,
|
|
3668
3675
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3669
3676
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
@@ -3685,15 +3692,15 @@ const Ti = (e) => {
|
|
|
3685
3692
|
[We.spForm_withSeparator]: i,
|
|
3686
3693
|
...s && { [s]: !0 }
|
|
3687
3694
|
});
|
|
3688
|
-
return /* @__PURE__ */ m("form", { ...u, onSubmit: (
|
|
3689
|
-
|
|
3695
|
+
return /* @__PURE__ */ m("form", { ...u, onSubmit: (l) => {
|
|
3696
|
+
l.preventDefault(), o && o();
|
|
3690
3697
|
}, className: c, children: n });
|
|
3691
3698
|
}, Wi = "_spLabel_g0hfy_43", Mi = "_spLabel__text_g0hfy_52", $i = "_spLabel__tooltip_g0hfy_62", qi = "_spLabel__required_g0hfy_67", Ke = {
|
|
3692
3699
|
spLabel: Wi,
|
|
3693
3700
|
spLabel__text: Mi,
|
|
3694
3701
|
spLabel__tooltip: $i,
|
|
3695
3702
|
spLabel__required: qi
|
|
3696
|
-
},
|
|
3703
|
+
}, Rt = (e) => {
|
|
3697
3704
|
const {
|
|
3698
3705
|
required: t,
|
|
3699
3706
|
label: n,
|
|
@@ -3708,13 +3715,13 @@ const Ti = (e) => {
|
|
|
3708
3715
|
[Ke.spLabel__text]: !0
|
|
3709
3716
|
}), c = _({
|
|
3710
3717
|
[Ke.spLabel__required]: t
|
|
3711
|
-
}),
|
|
3718
|
+
}), d = _({
|
|
3712
3719
|
[Ke.spLabel__tooltip]: !0
|
|
3713
3720
|
});
|
|
3714
|
-
return /* @__PURE__ */
|
|
3721
|
+
return /* @__PURE__ */ H("div", { className: s, children: [
|
|
3715
3722
|
/* @__PURE__ */ m("label", { className: u, children: n }),
|
|
3716
3723
|
t && /* @__PURE__ */ m("div", { className: c, children: "*" }),
|
|
3717
|
-
o && /* @__PURE__ */ m("div", { className:
|
|
3724
|
+
o && /* @__PURE__ */ m("div", { className: d, children: /* @__PURE__ */ m(
|
|
3718
3725
|
Je,
|
|
3719
3726
|
{
|
|
3720
3727
|
position: a,
|
|
@@ -3744,45 +3751,45 @@ const Ti = (e) => {
|
|
|
3744
3751
|
error: s,
|
|
3745
3752
|
required: u,
|
|
3746
3753
|
name: c,
|
|
3747
|
-
isClearable:
|
|
3748
|
-
pattern:
|
|
3749
|
-
onMouseEnter:
|
|
3754
|
+
isClearable: d,
|
|
3755
|
+
pattern: l,
|
|
3756
|
+
onMouseEnter: v,
|
|
3750
3757
|
infoTooltipText: y,
|
|
3751
3758
|
tooltipPosition: w,
|
|
3752
3759
|
isVisibleDefaultTitle: g = !0,
|
|
3753
3760
|
placeholder: S = "Введите...",
|
|
3754
3761
|
classNameRoot: L,
|
|
3755
|
-
classNameError:
|
|
3756
|
-
classNameLabel:
|
|
3762
|
+
classNameError: V,
|
|
3763
|
+
classNameLabel: R,
|
|
3757
3764
|
classNameBaseTooltipRoot: k,
|
|
3758
3765
|
...p
|
|
3759
3766
|
} = e, E = _({
|
|
3760
3767
|
[Te.spInput]: !0,
|
|
3761
3768
|
[Te.spInput_error]: !!s,
|
|
3762
3769
|
...L && { [L]: !0 }
|
|
3763
|
-
}),
|
|
3770
|
+
}), z = _({
|
|
3764
3771
|
[Te.spInput__container]: !0
|
|
3765
|
-
}),
|
|
3772
|
+
}), D = _({
|
|
3766
3773
|
[Te.spInput__control]: !0,
|
|
3767
3774
|
[Te.spInput__control_disabled]: r,
|
|
3768
3775
|
[Te[`spInput__control_${i}`]]: i,
|
|
3769
|
-
[Te.spInput__control_clearable]:
|
|
3776
|
+
[Te.spInput__control_clearable]: d
|
|
3770
3777
|
}), J = _({
|
|
3771
3778
|
[Te.spInput__clear]: !0
|
|
3772
3779
|
}), oe = _({
|
|
3773
3780
|
[Te.spInput__error]: !0,
|
|
3774
|
-
...
|
|
3781
|
+
...V && { [V]: !0 }
|
|
3775
3782
|
}), me = _({
|
|
3776
|
-
...
|
|
3783
|
+
...R && { [R]: !0 }
|
|
3777
3784
|
}), fe = (Z) => {
|
|
3778
3785
|
o(Z, { name: c, value: "" });
|
|
3779
3786
|
}, le = (Z) => {
|
|
3780
|
-
const { value: C, name:
|
|
3781
|
-
|
|
3787
|
+
const { value: C, name: M } = Z.target;
|
|
3788
|
+
l && C && !new RegExp(l).test(C) || o(Z, { value: C, name: M });
|
|
3782
3789
|
};
|
|
3783
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ H("div", { className: E, children: [
|
|
3784
3791
|
a && /* @__PURE__ */ m(
|
|
3785
|
-
|
|
3792
|
+
Rt,
|
|
3786
3793
|
{
|
|
3787
3794
|
classNameRoot: me,
|
|
3788
3795
|
tooltipPosition: w,
|
|
@@ -3792,7 +3799,7 @@ const Ti = (e) => {
|
|
|
3792
3799
|
classNameBaseTooltipRoot: k
|
|
3793
3800
|
}
|
|
3794
3801
|
),
|
|
3795
|
-
/* @__PURE__ */
|
|
3802
|
+
/* @__PURE__ */ H("div", { className: z, onMouseEnter: v, children: [
|
|
3796
3803
|
/* @__PURE__ */ m(
|
|
3797
3804
|
"input",
|
|
3798
3805
|
{
|
|
@@ -3803,11 +3810,11 @@ const Ti = (e) => {
|
|
|
3803
3810
|
title: g ? n : void 0,
|
|
3804
3811
|
value: n,
|
|
3805
3812
|
name: c,
|
|
3806
|
-
className:
|
|
3813
|
+
className: D,
|
|
3807
3814
|
ref: t
|
|
3808
3815
|
}
|
|
3809
3816
|
),
|
|
3810
|
-
|
|
3817
|
+
d && n && !r && /* @__PURE__ */ m(he, { onClick: fe, className: J, name: pe.Trash })
|
|
3811
3818
|
] }),
|
|
3812
3819
|
s && /* @__PURE__ */ m("div", { className: oe, children: s })
|
|
3813
3820
|
] });
|
|
@@ -3838,31 +3845,31 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3838
3845
|
multiple: s,
|
|
3839
3846
|
maxFiles: u,
|
|
3840
3847
|
files: c = [],
|
|
3841
|
-
infoTooltipText:
|
|
3842
|
-
tooltipPosition:
|
|
3843
|
-
classNameRoot:
|
|
3848
|
+
infoTooltipText: d,
|
|
3849
|
+
tooltipPosition: l = se.TopRight,
|
|
3850
|
+
classNameRoot: v,
|
|
3844
3851
|
error: y
|
|
3845
3852
|
} = e, w = c.map((p) => p.name), g = (w == null ? void 0 : w.length) > 0, S = _({
|
|
3846
3853
|
[xe.spInputFiles]: !0,
|
|
3847
3854
|
[xe.spInputFiles_error]: !!y,
|
|
3848
3855
|
[xe.spInputFiles_disabled]: r,
|
|
3849
3856
|
[xe.spInputFiles_fileUploaded]: g,
|
|
3850
|
-
...
|
|
3857
|
+
...v && { [v]: !0 }
|
|
3851
3858
|
}), L = (p) => {
|
|
3852
|
-
const E = [...c],
|
|
3853
|
-
E.splice(
|
|
3854
|
-
},
|
|
3859
|
+
const E = [...c], z = E.findIndex((D) => D.name === p);
|
|
3860
|
+
E.splice(z, 1), o(E, n);
|
|
3861
|
+
}, V = (p) => {
|
|
3855
3862
|
p.stopPropagation(), o([], n);
|
|
3856
|
-
},
|
|
3863
|
+
}, R = () => s ? /* @__PURE__ */ m("ul", { className: xe.spInputFiles__fileNamesList, children: w.map((p, E) => /* @__PURE__ */ H(
|
|
3857
3864
|
"li",
|
|
3858
3865
|
{
|
|
3859
3866
|
className: xe.spInputFiles__fileNamesListItem,
|
|
3860
|
-
onClick: (
|
|
3861
|
-
|
|
3867
|
+
onClick: (z) => {
|
|
3868
|
+
z.stopPropagation(), L(p);
|
|
3862
3869
|
},
|
|
3863
3870
|
children: [
|
|
3864
3871
|
/* @__PURE__ */ m(
|
|
3865
|
-
|
|
3872
|
+
zi,
|
|
3866
3873
|
{
|
|
3867
3874
|
type: "p2",
|
|
3868
3875
|
text: p,
|
|
@@ -3873,14 +3880,14 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3873
3880
|
]
|
|
3874
3881
|
},
|
|
3875
3882
|
E
|
|
3876
|
-
)) }) : /* @__PURE__ */ m(Ee, { isEllipsis: !0, children: w[0] }), k = () => /* @__PURE__ */
|
|
3877
|
-
g ?
|
|
3878
|
-
g ? /* @__PURE__ */ m("div", { className: xe.spInputFiles__delete, onClick:
|
|
3883
|
+
)) }) : /* @__PURE__ */ m(Ee, { isEllipsis: !0, children: w[0] }), k = () => /* @__PURE__ */ H(dn, { children: [
|
|
3884
|
+
g ? R() : /* @__PURE__ */ m(Ee, { children: t }),
|
|
3885
|
+
g ? /* @__PURE__ */ m("div", { className: xe.spInputFiles__delete, onClick: V, children: /* @__PURE__ */ m(he, { name: pe.Close }) }) : d && /* @__PURE__ */ m(
|
|
3879
3886
|
Je,
|
|
3880
3887
|
{
|
|
3881
3888
|
classNameTooltip: xe.spInputFiles__tooltipWrapper,
|
|
3882
|
-
position:
|
|
3883
|
-
text:
|
|
3889
|
+
position: l,
|
|
3890
|
+
text: d,
|
|
3884
3891
|
classNameTriggerTooltip: xe.spInputFiles__tooltip
|
|
3885
3892
|
}
|
|
3886
3893
|
)
|
|
@@ -3896,8 +3903,8 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3896
3903
|
accept: i,
|
|
3897
3904
|
onDropFiles: o,
|
|
3898
3905
|
disabled: r || g,
|
|
3899
|
-
children: /* @__PURE__ */
|
|
3900
|
-
/* @__PURE__ */
|
|
3906
|
+
children: /* @__PURE__ */ H("div", { className: S, children: [
|
|
3907
|
+
/* @__PURE__ */ H("div", { className: xe.spInputFiles__control, children: [
|
|
3901
3908
|
/* @__PURE__ */ m(he, { name: g ? pe.Check : pe.Upload }),
|
|
3902
3909
|
k()
|
|
3903
3910
|
] }),
|
|
@@ -3912,58 +3919,58 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3912
3919
|
isTablet: !1
|
|
3913
3920
|
}
|
|
3914
3921
|
});
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3917
|
-
|
|
3922
|
+
var jt = {};
|
|
3923
|
+
jt.match = br;
|
|
3924
|
+
jt.parse = An;
|
|
3918
3925
|
var _r = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, vr = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, xr = /^(?:(min|max)-)?(.+)/, gr = /(em|rem|px|cm|mm|in|pt|pc)?$/, hr = /(dpi|dpcm|dppx)?$/;
|
|
3919
3926
|
function br(e, t) {
|
|
3920
|
-
return
|
|
3927
|
+
return An(e).some(function(n) {
|
|
3921
3928
|
var o = n.inverse, a = n.type === "all" || t.type === n.type;
|
|
3922
3929
|
if (a && o || !(a || o))
|
|
3923
3930
|
return !1;
|
|
3924
3931
|
var i = n.expressions.every(function(r) {
|
|
3925
|
-
var s = r.feature, u = r.modifier, c = r.value,
|
|
3926
|
-
if (!
|
|
3932
|
+
var s = r.feature, u = r.modifier, c = r.value, d = t[s];
|
|
3933
|
+
if (!d)
|
|
3927
3934
|
return !1;
|
|
3928
3935
|
switch (s) {
|
|
3929
3936
|
case "orientation":
|
|
3930
3937
|
case "scan":
|
|
3931
|
-
return
|
|
3938
|
+
return d.toLowerCase() === c.toLowerCase();
|
|
3932
3939
|
case "width":
|
|
3933
3940
|
case "height":
|
|
3934
3941
|
case "device-width":
|
|
3935
3942
|
case "device-height":
|
|
3936
|
-
c = rn(c),
|
|
3943
|
+
c = rn(c), d = rn(d);
|
|
3937
3944
|
break;
|
|
3938
3945
|
case "resolution":
|
|
3939
|
-
c = an(c),
|
|
3946
|
+
c = an(c), d = an(d);
|
|
3940
3947
|
break;
|
|
3941
3948
|
case "aspect-ratio":
|
|
3942
3949
|
case "device-aspect-ratio":
|
|
3943
3950
|
case /* Deprecated */
|
|
3944
3951
|
"device-pixel-ratio":
|
|
3945
|
-
c = on(c),
|
|
3952
|
+
c = on(c), d = on(d);
|
|
3946
3953
|
break;
|
|
3947
3954
|
case "grid":
|
|
3948
3955
|
case "color":
|
|
3949
3956
|
case "color-index":
|
|
3950
3957
|
case "monochrome":
|
|
3951
|
-
c = parseInt(c, 10) || 1,
|
|
3958
|
+
c = parseInt(c, 10) || 1, d = parseInt(d, 10) || 0;
|
|
3952
3959
|
break;
|
|
3953
3960
|
}
|
|
3954
3961
|
switch (u) {
|
|
3955
3962
|
case "min":
|
|
3956
|
-
return
|
|
3963
|
+
return d >= c;
|
|
3957
3964
|
case "max":
|
|
3958
|
-
return
|
|
3965
|
+
return d <= c;
|
|
3959
3966
|
default:
|
|
3960
|
-
return
|
|
3967
|
+
return d === c;
|
|
3961
3968
|
}
|
|
3962
3969
|
});
|
|
3963
3970
|
return i && !o || !i && o;
|
|
3964
3971
|
});
|
|
3965
3972
|
}
|
|
3966
|
-
function
|
|
3973
|
+
function An(e) {
|
|
3967
3974
|
return e.split(",").map(function(t) {
|
|
3968
3975
|
t = t.trim();
|
|
3969
3976
|
var n = t.match(_r), o = n[1], a = n[2], i = n[3] || "", r = {};
|
|
@@ -4013,7 +4020,7 @@ function rn(e) {
|
|
|
4013
4020
|
return t;
|
|
4014
4021
|
}
|
|
4015
4022
|
}
|
|
4016
|
-
var yr =
|
|
4023
|
+
var yr = jt.match, sn = typeof window < "u" ? window.matchMedia : null;
|
|
4017
4024
|
function wr(e, t, n) {
|
|
4018
4025
|
var o = this, a;
|
|
4019
4026
|
sn && !n && (a = sn.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches = yr(e, t), this.media = e), this.addListener = i, this.removeListener = r, this.dispose = u;
|
|
@@ -4039,7 +4046,7 @@ var Er = /[A-Z]/g, Sr = /^ms-/, bt = {};
|
|
|
4039
4046
|
function Nr(e) {
|
|
4040
4047
|
return "-" + e.toLowerCase();
|
|
4041
4048
|
}
|
|
4042
|
-
function
|
|
4049
|
+
function Rn(e) {
|
|
4043
4050
|
if (bt.hasOwnProperty(e))
|
|
4044
4051
|
return bt[e];
|
|
4045
4052
|
var t = e.replace(Er, Nr);
|
|
@@ -4060,7 +4067,7 @@ function Ir(e, t) {
|
|
|
4060
4067
|
}
|
|
4061
4068
|
return !0;
|
|
4062
4069
|
}
|
|
4063
|
-
const ce = T.oneOfType([T.string, T.number]),
|
|
4070
|
+
const ce = T.oneOfType([T.string, T.number]), jn = {
|
|
4064
4071
|
all: T.bool,
|
|
4065
4072
|
grid: T.bool,
|
|
4066
4073
|
aural: T.bool,
|
|
@@ -4072,7 +4079,7 @@ const ce = T.oneOfType([T.string, T.number]), An = {
|
|
|
4072
4079
|
tty: T.bool,
|
|
4073
4080
|
tv: T.bool,
|
|
4074
4081
|
embossed: T.bool
|
|
4075
|
-
},
|
|
4082
|
+
}, Ar = {
|
|
4076
4083
|
orientation: T.oneOf(["portrait", "landscape"]),
|
|
4077
4084
|
scan: T.oneOf(["progressive", "interlace"]),
|
|
4078
4085
|
aspectRatio: T.string,
|
|
@@ -4085,8 +4092,8 @@ const ce = T.oneOfType([T.string, T.number]), An = {
|
|
|
4085
4092
|
colorIndex: T.bool,
|
|
4086
4093
|
monochrome: T.bool,
|
|
4087
4094
|
resolution: ce,
|
|
4088
|
-
type: Object.keys(
|
|
4089
|
-
}, { type: Us, ...
|
|
4095
|
+
type: Object.keys(jn)
|
|
4096
|
+
}, { type: Us, ...Rr } = Ar, jr = {
|
|
4090
4097
|
minAspectRatio: T.string,
|
|
4091
4098
|
maxAspectRatio: T.string,
|
|
4092
4099
|
minDeviceAspectRatio: T.string,
|
|
@@ -4107,21 +4114,21 @@ const ce = T.oneOfType([T.string, T.number]), An = {
|
|
|
4107
4114
|
maxMonochrome: T.number,
|
|
4108
4115
|
minResolution: ce,
|
|
4109
4116
|
maxResolution: ce,
|
|
4110
|
-
...
|
|
4111
|
-
}, Dr = { ...
|
|
4117
|
+
...Rr
|
|
4118
|
+
}, Dr = { ...jn, ...jr };
|
|
4112
4119
|
var Lr = {
|
|
4113
4120
|
all: Dr
|
|
4114
4121
|
};
|
|
4115
|
-
const Or = (e) => `not ${e}`,
|
|
4116
|
-
const n =
|
|
4122
|
+
const Or = (e) => `not ${e}`, zr = (e, t) => {
|
|
4123
|
+
const n = Rn(e);
|
|
4117
4124
|
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? Or(n) : `(${n}: ${t})`;
|
|
4118
|
-
},
|
|
4125
|
+
}, Pr = (e) => e.join(" and "), Fr = (e) => {
|
|
4119
4126
|
const t = [];
|
|
4120
4127
|
return Object.keys(Lr.all).forEach((n) => {
|
|
4121
4128
|
const o = e[n];
|
|
4122
|
-
o != null && t.push(
|
|
4123
|
-
}),
|
|
4124
|
-
}, Br = un(void 0), Wr = (e) => e.query ||
|
|
4129
|
+
o != null && t.push(zr(n, o));
|
|
4130
|
+
}), Pr(t);
|
|
4131
|
+
}, Br = un(void 0), Wr = (e) => e.query || Fr(e), pn = (e) => e ? Object.keys(e).reduce((n, o) => (n[Rn(o)] = e[o], n), {}) : void 0, Dn = () => {
|
|
4125
4132
|
const e = ue(!1);
|
|
4126
4133
|
return ne(() => {
|
|
4127
4134
|
e.current = !0;
|
|
@@ -4192,11 +4199,11 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4192
4199
|
return ne(() => {
|
|
4193
4200
|
if (c.current = t, t === s.current) return;
|
|
4194
4201
|
r.current && cancelAnimationFrame(r.current), s.current = a, u.current = performance.now();
|
|
4195
|
-
const
|
|
4196
|
-
const
|
|
4197
|
-
i(L), w < 1 && (r.current = requestAnimationFrame(
|
|
4202
|
+
const d = (l) => {
|
|
4203
|
+
const v = t === o ? cn : n, y = l - (u.current || l), w = Math.min(y / v, 1), g = w < 0.5 ? 4 * w * w * w : 1 - Math.pow(-2 * w + 2, 3) / 2, S = s.current + (c.current - s.current) * g, L = Math.max(0, Math.floor(S));
|
|
4204
|
+
i(L), w < 1 && (r.current = requestAnimationFrame(d));
|
|
4198
4205
|
};
|
|
4199
|
-
return r.current = requestAnimationFrame(
|
|
4206
|
+
return r.current = requestAnimationFrame(d), () => {
|
|
4200
4207
|
r.current && cancelAnimationFrame(r.current);
|
|
4201
4208
|
};
|
|
4202
4209
|
}, [t, n, o]), a;
|
|
@@ -4219,17 +4226,17 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4219
4226
|
children: i,
|
|
4220
4227
|
doneValue: r = 100,
|
|
4221
4228
|
animationVariant: s = "backgroundProgress"
|
|
4222
|
-
} = e, [u, c] = ie(!1),
|
|
4229
|
+
} = e, [u, c] = ie(!1), d = ue(), l = Yr({
|
|
4223
4230
|
targetValue: t,
|
|
4224
4231
|
duration: a,
|
|
4225
4232
|
doneValue: r
|
|
4226
4233
|
});
|
|
4227
|
-
ne(() => (
|
|
4234
|
+
ne(() => (l === r ? d.current = window.setTimeout(() => {
|
|
4228
4235
|
c(!1);
|
|
4229
|
-
}, 500) : (c(!0),
|
|
4230
|
-
|
|
4231
|
-
}), [
|
|
4232
|
-
const
|
|
4236
|
+
}, 500) : (c(!0), d.current && window.clearTimeout(d.current)), () => {
|
|
4237
|
+
d.current && window.clearTimeout(d.current);
|
|
4238
|
+
}), [l, r]);
|
|
4239
|
+
const v = _({
|
|
4233
4240
|
[Ie.progressWrapper]: !0,
|
|
4234
4241
|
[Ie.progressWrapper_loading]: u,
|
|
4235
4242
|
...n && { [n]: !0 }
|
|
@@ -4242,9 +4249,9 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4242
4249
|
[Ie[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
4243
4250
|
[Ie.progressWrapper__childrenWrapper_loading]: u
|
|
4244
4251
|
}), g = {
|
|
4245
|
-
"--progress": `${
|
|
4252
|
+
"--progress": `${l / r * 100}%`
|
|
4246
4253
|
};
|
|
4247
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ H("div", { className: v, children: [
|
|
4248
4255
|
/* @__PURE__ */ m(
|
|
4249
4256
|
"div",
|
|
4250
4257
|
{
|
|
@@ -4253,8 +4260,8 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4253
4260
|
children: i
|
|
4254
4261
|
}
|
|
4255
4262
|
),
|
|
4256
|
-
u && /* @__PURE__ */
|
|
4257
|
-
|
|
4263
|
+
u && /* @__PURE__ */ H(Ee, { classNameRoot: y, children: [
|
|
4264
|
+
l,
|
|
4258
4265
|
"%"
|
|
4259
4266
|
] })
|
|
4260
4267
|
] });
|
|
@@ -4284,29 +4291,29 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4284
4291
|
onMouseEnter: s,
|
|
4285
4292
|
error: u,
|
|
4286
4293
|
label: c,
|
|
4287
|
-
infoTooltipText:
|
|
4288
|
-
tooltipPosition:
|
|
4289
|
-
disabled:
|
|
4294
|
+
infoTooltipText: d,
|
|
4295
|
+
tooltipPosition: l,
|
|
4296
|
+
disabled: v,
|
|
4290
4297
|
required: y,
|
|
4291
4298
|
maxHeightList: w = es,
|
|
4292
4299
|
isVisibleDefaultTitle: g = !0,
|
|
4293
4300
|
isScrollableList: S = !1,
|
|
4294
4301
|
classNameRoot: L,
|
|
4295
|
-
classNameError:
|
|
4296
|
-
classNameLabel:
|
|
4302
|
+
classNameError: V,
|
|
4303
|
+
classNameLabel: R,
|
|
4297
4304
|
classNameBaseTooltipRoot: k
|
|
4298
|
-
} = e, [p, E] = ie(!1),
|
|
4305
|
+
} = e, [p, E] = ie(!1), z = ue(null);
|
|
4299
4306
|
_n(
|
|
4300
|
-
[
|
|
4307
|
+
[z],
|
|
4301
4308
|
() => {
|
|
4302
4309
|
E(!1);
|
|
4303
4310
|
},
|
|
4304
4311
|
p
|
|
4305
4312
|
);
|
|
4306
|
-
const
|
|
4313
|
+
const D = t.find((f) => f.value === o), J = (f, b) => {
|
|
4307
4314
|
r(f, { value: b, name: a }), E(!1);
|
|
4308
4315
|
}, oe = () => {
|
|
4309
|
-
|
|
4316
|
+
v || E(!p);
|
|
4310
4317
|
}, me = _({
|
|
4311
4318
|
[ge.spSelect]: !0,
|
|
4312
4319
|
[ge.spSelect_error]: !!u,
|
|
@@ -4316,43 +4323,43 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4316
4323
|
}), le = _({
|
|
4317
4324
|
[ge.spSelect__control]: !0,
|
|
4318
4325
|
[ge[`spSelect__control_${i}`]]: i,
|
|
4319
|
-
[ge.spSelect__control_disabled]:
|
|
4326
|
+
[ge.spSelect__control_disabled]: v
|
|
4320
4327
|
}), X = _({
|
|
4321
4328
|
[ge.spSelect__value]: !0,
|
|
4322
|
-
[ge.spSelect__value_empty]: !
|
|
4329
|
+
[ge.spSelect__value_empty]: !D
|
|
4323
4330
|
}), Z = _({
|
|
4324
4331
|
[ge.spSelect__icon]: !0
|
|
4325
4332
|
}), C = _({
|
|
4326
4333
|
[ge.spSelect__list]: !0,
|
|
4327
4334
|
[ge.spSelect__list_scrollable]: S
|
|
4328
|
-
}),
|
|
4329
|
-
...
|
|
4335
|
+
}), M = _({
|
|
4336
|
+
...R && { [R]: !0 }
|
|
4330
4337
|
}), K = _({
|
|
4331
4338
|
[ge.spSelect__error]: !0,
|
|
4332
|
-
...
|
|
4339
|
+
...V && { [V]: !0 }
|
|
4333
4340
|
});
|
|
4334
|
-
return /* @__PURE__ */
|
|
4341
|
+
return /* @__PURE__ */ H("div", { className: me, ref: z, children: [
|
|
4335
4342
|
c && /* @__PURE__ */ m(
|
|
4336
|
-
|
|
4343
|
+
Rt,
|
|
4337
4344
|
{
|
|
4338
|
-
classNameRoot:
|
|
4339
|
-
tooltipPosition:
|
|
4345
|
+
classNameRoot: M,
|
|
4346
|
+
tooltipPosition: l,
|
|
4340
4347
|
required: y,
|
|
4341
4348
|
label: c,
|
|
4342
|
-
infoTooltipText:
|
|
4349
|
+
infoTooltipText: d,
|
|
4343
4350
|
classNameBaseTooltipRoot: k
|
|
4344
4351
|
}
|
|
4345
4352
|
),
|
|
4346
|
-
/* @__PURE__ */
|
|
4347
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ H("div", { className: fe, onMouseEnter: s, children: [
|
|
4354
|
+
/* @__PURE__ */ H(
|
|
4348
4355
|
"div",
|
|
4349
4356
|
{
|
|
4350
|
-
tabIndex:
|
|
4357
|
+
tabIndex: v ? -1 : 0,
|
|
4351
4358
|
title: g ? o : void 0,
|
|
4352
4359
|
className: le,
|
|
4353
4360
|
onClick: oe,
|
|
4354
4361
|
children: [
|
|
4355
|
-
/* @__PURE__ */ m("div", { className: X, children: (
|
|
4362
|
+
/* @__PURE__ */ m("div", { className: X, children: (D == null ? void 0 : D.label) || n }),
|
|
4356
4363
|
/* @__PURE__ */ m(
|
|
4357
4364
|
he,
|
|
4358
4365
|
{
|
|
@@ -4371,7 +4378,7 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4371
4378
|
style: S ? { maxHeight: `${w}px` } : {},
|
|
4372
4379
|
children: t.map((f) => {
|
|
4373
4380
|
const b = f.value === o;
|
|
4374
|
-
return /* @__PURE__ */
|
|
4381
|
+
return /* @__PURE__ */ H(
|
|
4375
4382
|
"div",
|
|
4376
4383
|
{
|
|
4377
4384
|
className: _({
|
|
@@ -4401,7 +4408,7 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4401
4408
|
...i
|
|
4402
4409
|
};
|
|
4403
4410
|
return /* @__PURE__ */ m("div", { style: r, className: _(a, vs.skeleton) });
|
|
4404
|
-
}, ln = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, xs = "_spTable_1vuaj_43", gs = "_spTable__tdContentCopyIcon_1vuaj_62", hs = "_spTable__tdContent_1vuaj_62", bs = "_spTable__tdColorContent_1vuaj_72", ys = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ws = "_spTable__emptyPage_1vuaj_89", ks = "_spStringsGroup_1vuaj_105", Cs = "_spStringsGroup__groupItem_1vuaj_119", Ts = "_spStringsGroup__groupItemHeader_1vuaj_134", Es = "_spStringsGroup__groupItemContent_1vuaj_138", Ss = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", Ns = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151",
|
|
4411
|
+
}, ln = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, xs = "_spTable_1vuaj_43", gs = "_spTable__tdContentCopyIcon_1vuaj_62", hs = "_spTable__tdContent_1vuaj_62", bs = "_spTable__tdColorContent_1vuaj_72", ys = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ws = "_spTable__emptyPage_1vuaj_89", ks = "_spStringsGroup_1vuaj_105", Cs = "_spStringsGroup__groupItem_1vuaj_119", Ts = "_spStringsGroup__groupItemHeader_1vuaj_134", Es = "_spStringsGroup__groupItemContent_1vuaj_138", Ss = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", Ns = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", ye = {
|
|
4405
4412
|
spTable: xs,
|
|
4406
4413
|
spTable__tdContentCopyIcon: gs,
|
|
4407
4414
|
spTable__tdContent: hs,
|
|
@@ -4425,35 +4432,35 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4425
4432
|
...k,
|
|
4426
4433
|
isVisible: n.some((p) => !!p[k.key])
|
|
4427
4434
|
} : k).filter((k) => k.isVisible), s = _({
|
|
4428
|
-
[
|
|
4435
|
+
[ye.spTable]: !0,
|
|
4429
4436
|
...i && { [i]: !0 }
|
|
4430
4437
|
}), u = _({
|
|
4431
|
-
[
|
|
4438
|
+
[ye.spTable__tdContent]: !0
|
|
4432
4439
|
}), c = _({
|
|
4433
|
-
[
|
|
4434
|
-
}),
|
|
4435
|
-
[
|
|
4436
|
-
}), [
|
|
4437
|
-
const { text: p, rowIndex: E, colIndex:
|
|
4438
|
-
(
|
|
4439
|
-
|
|
4440
|
-
}).catch((
|
|
4441
|
-
console.error("Ошибка при копировании:",
|
|
4440
|
+
[ye.spTable__tdColorContent]: !0
|
|
4441
|
+
}), d = _({
|
|
4442
|
+
[ye.spTable__emptyPage]: !0
|
|
4443
|
+
}), [l, v] = ie(null), y = (k) => {
|
|
4444
|
+
const { text: p, rowIndex: E, colIndex: z } = k;
|
|
4445
|
+
(l == null ? void 0 : l.rowIndex) === E && (l == null ? void 0 : l.colIndex) === z || navigator.clipboard.writeText(p).then(() => {
|
|
4446
|
+
v({ rowIndex: E, colIndex: z });
|
|
4447
|
+
}).catch((D) => {
|
|
4448
|
+
console.error("Ошибка при копировании:", D);
|
|
4442
4449
|
});
|
|
4443
4450
|
}, w = () => {
|
|
4444
|
-
|
|
4445
|
-
}, g = () => /* @__PURE__ */ m("div", { className:
|
|
4451
|
+
v(null);
|
|
4452
|
+
}, g = () => /* @__PURE__ */ m("div", { className: d, children: "Данные отсутствуют" }), S = ({
|
|
4446
4453
|
row: k,
|
|
4447
4454
|
col: p
|
|
4448
4455
|
}) => {
|
|
4449
4456
|
const E = k[p.key];
|
|
4450
4457
|
if (!E) return null;
|
|
4451
|
-
const [
|
|
4452
|
-
return /* @__PURE__ */
|
|
4453
|
-
|
|
4454
|
-
|
|
4458
|
+
const [z, D] = E.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4459
|
+
return /* @__PURE__ */ H("span", { children: [
|
|
4460
|
+
z,
|
|
4461
|
+
D && /* @__PURE__ */ m("span", { className: c, children: ` ${D}` })
|
|
4455
4462
|
] });
|
|
4456
|
-
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */
|
|
4463
|
+
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ H("table", { className: s, children: [
|
|
4457
4464
|
/* @__PURE__ */ m("colgroup", { children: r.map((k, p, E) => /* @__PURE__ */ m(
|
|
4458
4465
|
"col",
|
|
4459
4466
|
{
|
|
@@ -4464,70 +4471,70 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4464
4471
|
p
|
|
4465
4472
|
)) }),
|
|
4466
4473
|
/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: r.map((k, p) => /* @__PURE__ */ m("th", { children: k.title }, p)) }) }),
|
|
4467
|
-
/* @__PURE__ */ m("tbody", { children: n.map((k, p) => k ? /* @__PURE__ */ m("tr", { children: r.map((E,
|
|
4468
|
-
const
|
|
4474
|
+
/* @__PURE__ */ m("tbody", { children: n.map((k, p) => k ? /* @__PURE__ */ m("tr", { children: r.map((E, z) => {
|
|
4475
|
+
const D = (l == null ? void 0 : l.rowIndex) === p && (l == null ? void 0 : l.colIndex) === z;
|
|
4469
4476
|
return /* @__PURE__ */ m(
|
|
4470
4477
|
"td",
|
|
4471
4478
|
{
|
|
4472
|
-
onMouseLeave:
|
|
4473
|
-
children: /* @__PURE__ */
|
|
4479
|
+
onMouseLeave: D ? w : void 0,
|
|
4480
|
+
children: /* @__PURE__ */ H("div", { className: u, children: [
|
|
4474
4481
|
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
4475
4482
|
!ln(k[E.key]) && E.isBeCopiedValue && /* @__PURE__ */ m(
|
|
4476
4483
|
he,
|
|
4477
4484
|
{
|
|
4478
4485
|
className: _({
|
|
4479
|
-
[
|
|
4480
|
-
[
|
|
4486
|
+
[ye.spTable__tdContentCopyIcon]: !0,
|
|
4487
|
+
[ye.spTable__tdContentCopyIcon_copied]: D
|
|
4481
4488
|
}),
|
|
4482
|
-
name:
|
|
4489
|
+
name: D ? pe.Check : pe.Copy,
|
|
4483
4490
|
onClick: () => {
|
|
4484
4491
|
const J = k[E.key];
|
|
4485
4492
|
if (!J) return null;
|
|
4486
4493
|
y({
|
|
4487
4494
|
text: J,
|
|
4488
4495
|
rowIndex: p,
|
|
4489
|
-
colIndex:
|
|
4496
|
+
colIndex: z
|
|
4490
4497
|
});
|
|
4491
4498
|
}
|
|
4492
4499
|
}
|
|
4493
4500
|
)
|
|
4494
4501
|
] })
|
|
4495
4502
|
},
|
|
4496
|
-
`${p}:${
|
|
4503
|
+
`${p}:${z}`
|
|
4497
4504
|
);
|
|
4498
4505
|
}) }, p) : null) })
|
|
4499
|
-
] }) : g(),
|
|
4506
|
+
] }) : g(), V = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ m(
|
|
4500
4507
|
"div",
|
|
4501
4508
|
{
|
|
4502
4509
|
className: _({
|
|
4503
|
-
[
|
|
4510
|
+
[ye.spStringsGroup]: !0
|
|
4504
4511
|
}),
|
|
4505
|
-
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((E,
|
|
4512
|
+
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((E, z) => {
|
|
4506
4513
|
if (ln(k[E.key]))
|
|
4507
4514
|
return null;
|
|
4508
|
-
const
|
|
4509
|
-
return /* @__PURE__ */
|
|
4515
|
+
const D = (l == null ? void 0 : l.rowIndex) === p && (l == null ? void 0 : l.colIndex) === z;
|
|
4516
|
+
return /* @__PURE__ */ H(
|
|
4510
4517
|
"div",
|
|
4511
4518
|
{
|
|
4512
4519
|
className: _({
|
|
4513
|
-
[
|
|
4520
|
+
[ye.spStringsGroup__groupItem]: !0
|
|
4514
4521
|
}),
|
|
4515
|
-
onMouseLeave:
|
|
4522
|
+
onMouseLeave: D ? w : void 0,
|
|
4516
4523
|
children: [
|
|
4517
4524
|
/* @__PURE__ */ m(
|
|
4518
4525
|
"div",
|
|
4519
4526
|
{
|
|
4520
4527
|
className: _({
|
|
4521
|
-
[
|
|
4528
|
+
[ye.spStringsGroup__groupItemHeader]: !0
|
|
4522
4529
|
}),
|
|
4523
4530
|
children: E.title
|
|
4524
4531
|
}
|
|
4525
4532
|
),
|
|
4526
|
-
/* @__PURE__ */
|
|
4533
|
+
/* @__PURE__ */ H(
|
|
4527
4534
|
"div",
|
|
4528
4535
|
{
|
|
4529
4536
|
className: _({
|
|
4530
|
-
[
|
|
4537
|
+
[ye.spStringsGroup__groupItemContent]: !0
|
|
4531
4538
|
}),
|
|
4532
4539
|
children: [
|
|
4533
4540
|
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
@@ -4535,17 +4542,17 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4535
4542
|
he,
|
|
4536
4543
|
{
|
|
4537
4544
|
className: _({
|
|
4538
|
-
[
|
|
4539
|
-
[
|
|
4545
|
+
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
4546
|
+
[ye.spStringsGroup__groupItemContentCopyIcon_copied]: D
|
|
4540
4547
|
}),
|
|
4541
|
-
name:
|
|
4548
|
+
name: D ? pe.Check : pe.Copy,
|
|
4542
4549
|
onClick: () => {
|
|
4543
4550
|
const J = k[E.key];
|
|
4544
4551
|
if (!J) return null;
|
|
4545
4552
|
y({
|
|
4546
4553
|
text: J,
|
|
4547
4554
|
rowIndex: p,
|
|
4548
|
-
colIndex:
|
|
4555
|
+
colIndex: z
|
|
4549
4556
|
});
|
|
4550
4557
|
}
|
|
4551
4558
|
}
|
|
@@ -4555,20 +4562,20 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4555
4562
|
)
|
|
4556
4563
|
]
|
|
4557
4564
|
},
|
|
4558
|
-
|
|
4565
|
+
z
|
|
4559
4566
|
);
|
|
4560
4567
|
}) }, p) : null)
|
|
4561
4568
|
}
|
|
4562
4569
|
) : g();
|
|
4563
|
-
return o ? a ? L() :
|
|
4564
|
-
}, Is = "_spTabs_1citb_43",
|
|
4570
|
+
return o ? a ? L() : V() : L();
|
|
4571
|
+
}, Is = "_spTabs_1citb_43", As = "_spTabs_separated_1citb_48", Rs = "_spTabs__tabElement_1citb_48", js = "_spTabs__tabElement_active_1citb_83", Ds = "_spTabs__triggerTooltip_1citb_90", Ae = {
|
|
4565
4572
|
spTabs: Is,
|
|
4566
|
-
spTabs_separated:
|
|
4573
|
+
spTabs_separated: As,
|
|
4567
4574
|
"spTabs--size-md": "_spTabs--size-md_1citb_48",
|
|
4568
|
-
spTabs__tabElement:
|
|
4575
|
+
spTabs__tabElement: Rs,
|
|
4569
4576
|
"spTabs--size-lg": "_spTabs--size-lg_1citb_51",
|
|
4570
4577
|
"spTabs--variant-contained": "_spTabs--variant-contained_1citb_54",
|
|
4571
|
-
spTabs__tabElement_active:
|
|
4578
|
+
spTabs__tabElement_active: js,
|
|
4572
4579
|
spTabs__triggerTooltip: Ds,
|
|
4573
4580
|
"spTabs--variant-filled": "_spTabs--variant-filled_1citb_93"
|
|
4574
4581
|
}, Js = (e) => {
|
|
@@ -4580,13 +4587,13 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4580
4587
|
variant: i = "contained",
|
|
4581
4588
|
size: r = "md"
|
|
4582
4589
|
} = e, s = _({
|
|
4583
|
-
[
|
|
4584
|
-
[
|
|
4585
|
-
[
|
|
4586
|
-
[
|
|
4590
|
+
[Ae.spTabs]: !0,
|
|
4591
|
+
[Ae.spTabs_separated]: n,
|
|
4592
|
+
[Ae[`spTabs--variant-${i}`]]: i,
|
|
4593
|
+
[Ae[`spTabs--size-${r}`]]: r,
|
|
4587
4594
|
...o && { [o]: !0 }
|
|
4588
4595
|
}), u = _({
|
|
4589
|
-
[
|
|
4596
|
+
[Ae.spTabs__triggerTooltip]: !0
|
|
4590
4597
|
}), c = () => {
|
|
4591
4598
|
switch (r) {
|
|
4592
4599
|
case "md":
|
|
@@ -4595,18 +4602,18 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4595
4602
|
return "p1";
|
|
4596
4603
|
}
|
|
4597
4604
|
};
|
|
4598
|
-
return /* @__PURE__ */ m("div", { className: s, children: t.map((
|
|
4599
|
-
const { name:
|
|
4600
|
-
return /* @__PURE__ */
|
|
4605
|
+
return /* @__PURE__ */ m("div", { className: s, children: t.map((d, l) => {
|
|
4606
|
+
const { name: v, active: y, onClick: w, infoTooltipText: g } = d;
|
|
4607
|
+
return /* @__PURE__ */ H(
|
|
4601
4608
|
"div",
|
|
4602
4609
|
{
|
|
4603
4610
|
className: _({
|
|
4604
|
-
[
|
|
4605
|
-
[
|
|
4611
|
+
[Ae.spTabs__tabElement]: !0,
|
|
4612
|
+
[Ae.spTabs__tabElement_active]: y
|
|
4606
4613
|
}),
|
|
4607
4614
|
onClick: w,
|
|
4608
4615
|
children: [
|
|
4609
|
-
/* @__PURE__ */ m(Ee, { type: c(), children:
|
|
4616
|
+
/* @__PURE__ */ m(Ee, { type: c(), children: v }),
|
|
4610
4617
|
!!g && /* @__PURE__ */ m(
|
|
4611
4618
|
Je,
|
|
4612
4619
|
{
|
|
@@ -4617,15 +4624,15 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4617
4624
|
)
|
|
4618
4625
|
]
|
|
4619
4626
|
},
|
|
4620
|
-
|
|
4627
|
+
d.key || l
|
|
4621
4628
|
);
|
|
4622
4629
|
}) });
|
|
4623
4630
|
}, Ls = "_spTextWithLabel_1dr7p_1", Os = {
|
|
4624
4631
|
spTextWithLabel: Ls
|
|
4625
4632
|
}, ep = (e) => {
|
|
4626
4633
|
const { children: t, label: n, style: o, ...a } = e;
|
|
4627
|
-
return /* @__PURE__ */
|
|
4628
|
-
/* @__PURE__ */ m(
|
|
4634
|
+
return /* @__PURE__ */ H("div", { className: Os.spTextWithLabel, style: { ...o }, children: [
|
|
4635
|
+
/* @__PURE__ */ m(Rt, { label: n }),
|
|
4629
4636
|
/* @__PURE__ */ m(Ee, { ...a, children: t })
|
|
4630
4637
|
] });
|
|
4631
4638
|
};
|
|
@@ -4641,13 +4648,13 @@ export {
|
|
|
4641
4648
|
Hs as Dropdown,
|
|
4642
4649
|
pe as EIconName,
|
|
4643
4650
|
se as ETooltipPosition,
|
|
4644
|
-
|
|
4651
|
+
zi as EllipsisTextWithTooltip,
|
|
4645
4652
|
Vs as Form,
|
|
4646
4653
|
he as Icon,
|
|
4647
4654
|
Je as InfoTooltip,
|
|
4648
4655
|
er as Input,
|
|
4649
4656
|
Ys as InputFiles,
|
|
4650
|
-
|
|
4657
|
+
Rt as Label,
|
|
4651
4658
|
ia as Layer,
|
|
4652
4659
|
fr as MediaContext,
|
|
4653
4660
|
Gs as MediaContextProvider,
|