test-stpr-ui-kit 0.4.38 → 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 = "";
|
|
@@ -62,7 +62,7 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
62
62
|
spAccordion__childrenWrapper_open: ho,
|
|
63
63
|
spAccordion__content: bo,
|
|
64
64
|
spAccordion__content_open: yo
|
|
65
|
-
},
|
|
65
|
+
}, Bs = (e) => {
|
|
66
66
|
const {
|
|
67
67
|
name: t,
|
|
68
68
|
children: n,
|
|
@@ -73,13 +73,13 @@ 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));
|
|
82
|
-
},
|
|
82
|
+
}, L = _({
|
|
83
83
|
[re.spAccordion]: !0,
|
|
84
84
|
[re.spAccordion_open]: w,
|
|
85
85
|
[re.spAccordion_noOpen]: !w,
|
|
@@ -88,31 +88,31 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
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,
|
|
105
105
|
...y && { [y]: !0 }
|
|
106
|
-
}),
|
|
106
|
+
}), E = _({
|
|
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
|
-
/* @__PURE__ */ m("div", { className: p, children: /* @__PURE__ */ m("div", { className:
|
|
115
|
+
/* @__PURE__ */ m("div", { className: p, children: /* @__PURE__ */ m("div", { className: E, children: n }) })
|
|
116
116
|
] });
|
|
117
117
|
}, wo = "_spinner_f5rd2_43", ko = "_spinner__inner_f5rd2_53", ct = {
|
|
118
118
|
spinner: wo,
|
|
@@ -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:
|
|
143
|
+
spButton__text: Ao,
|
|
144
144
|
spButton_primary: Ro,
|
|
145
|
-
spButton_blue:
|
|
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,56 +159,56 @@ 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
|
-
} = e,
|
|
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:
|
|
198
|
-
onClick:
|
|
197
|
+
className: R,
|
|
198
|
+
onClick: L,
|
|
199
199
|
disabled: s,
|
|
200
200
|
type: u,
|
|
201
201
|
form: c,
|
|
202
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",
|
|
210
210
|
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-column_e8c1h_57",
|
|
211
|
-
spApplyButtons__cancel:
|
|
211
|
+
spApplyButtons__cancel: Bo,
|
|
212
212
|
spApplyButtons__submit: Wo
|
|
213
213
|
}, Mo = (e) => {
|
|
214
214
|
const {
|
|
@@ -221,18 +221,18 @@ 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,
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
224
|
+
submit: d,
|
|
225
|
+
loading: l
|
|
226
|
+
} = e, v = _({
|
|
227
|
+
[Be.spApplyButtons]: !0,
|
|
228
|
+
[Be[`spApplyButtons_mobile-${t}`]]: t,
|
|
229
|
+
[Be[`spApplyButtons_align-${n}`]]: n
|
|
230
230
|
}), y = _({
|
|
231
|
-
[
|
|
231
|
+
[Be.spApplyButtons__submit]: !0
|
|
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),
|
|
328
|
+
} = e, [g, S] = ie(!1), L = ue(null), V = ue(null), [R, k] = ie(!1);
|
|
329
329
|
_n(
|
|
330
|
-
[
|
|
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
|
-
}, [
|
|
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 (!
|
|
344
|
-
const C =
|
|
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
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
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, B = C.left + window.scrollX -
|
|
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, B = C.left + window.scrollX - (
|
|
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
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, B = C.right + window.scrollX -
|
|
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
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
389
|
left: `${B}px`,
|
|
390
|
-
visibility: g ||
|
|
391
|
-
opacity: g ||
|
|
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,
|
|
@@ -419,14 +419,14 @@ const It = (e) => {
|
|
|
419
419
|
onMouseEnter: () => t && J(!0),
|
|
420
420
|
onMouseLeave: () => t && J(!1),
|
|
421
421
|
children: [
|
|
422
|
-
/* @__PURE__ */ m("div", { ref:
|
|
422
|
+
/* @__PURE__ */ m("div", { ref: L, className: X, children: i }),
|
|
423
423
|
a && /* @__PURE__ */ m(vn, { node: Z, children: /* @__PURE__ */ m(
|
|
424
424
|
fn,
|
|
425
425
|
{
|
|
426
|
-
style:
|
|
426
|
+
style: E,
|
|
427
427
|
ref: V,
|
|
428
|
-
noPadding:
|
|
429
|
-
text:
|
|
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
|
-
[
|
|
475
|
-
}),
|
|
476
|
-
[
|
|
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
|
+
}), L = _({
|
|
476
|
+
[ke.spCheckbox__control]: !0
|
|
477
477
|
}), V = _({
|
|
478
|
-
[
|
|
479
|
-
}),
|
|
480
|
-
[
|
|
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
|
-
className:
|
|
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
500
|
r && /* @__PURE__ */ m("span", { className: V, children: r }),
|
|
501
|
-
c && /* @__PURE__ */ m("div", { className:
|
|
502
|
-
|
|
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,11 +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,
|
|
583
|
+
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_awlzb_81",
|
|
584
|
+
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_awlzb_87",
|
|
580
585
|
modalWrapper__content: da,
|
|
581
586
|
modalWrapper__header: ua,
|
|
582
587
|
modalWrapper__subHeader: ma,
|
|
@@ -593,49 +598,53 @@ const ca = "_modalWrapper_1jx5o_43", la = "_modalWrapper__modal_1jx5o_54", da =
|
|
|
593
598
|
classNameLayerRoot: i,
|
|
594
599
|
classNameRoot: r,
|
|
595
600
|
style: s,
|
|
596
|
-
|
|
597
|
-
|
|
601
|
+
modalAlign: u = "top",
|
|
602
|
+
textAlign: c = "left",
|
|
603
|
+
onClose: d,
|
|
598
604
|
header: l,
|
|
599
|
-
subHeader:
|
|
600
|
-
footer:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
[
|
|
604
|
-
|
|
605
|
-
[
|
|
606
|
-
...r && { [r]: !0 }
|
|
607
|
-
}), g = _({
|
|
608
|
-
[ke.modalWrapper__closeButton]: !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
|
|
609
612
|
}), S = _({
|
|
610
|
-
[
|
|
611
|
-
|
|
612
|
-
[
|
|
613
|
+
[be.modalWrapper__modal]: !0,
|
|
614
|
+
[be[`modalWrapper__modal--size-${w}`]]: w,
|
|
615
|
+
...r && { [r]: !0 }
|
|
616
|
+
}), L = _({
|
|
617
|
+
[be.modalWrapper__closeButton]: !0
|
|
613
618
|
}), V = _({
|
|
614
|
-
[
|
|
615
|
-
}),
|
|
616
|
-
[
|
|
617
|
-
[ke.modalWrapper__subHeader_onlySubHeader]: !l
|
|
619
|
+
[be.modalWrapper__closeButtonIconContainer]: !0
|
|
620
|
+
}), R = _({
|
|
621
|
+
[be.modalWrapper__content]: !0
|
|
618
622
|
}), k = _({
|
|
619
|
-
[
|
|
623
|
+
[be.modalWrapper__header]: !0
|
|
624
|
+
}), p = _({
|
|
625
|
+
[be.modalWrapper__subHeader]: !0,
|
|
626
|
+
[be.modalWrapper__subHeader_onlySubHeader]: !l
|
|
627
|
+
}), E = _({
|
|
628
|
+
[be.modalWrapper__footer]: !0
|
|
620
629
|
});
|
|
621
630
|
return ne(() => {
|
|
622
|
-
const
|
|
623
|
-
return
|
|
624
|
-
|
|
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);
|
|
625
634
|
};
|
|
626
|
-
}, []), /* @__PURE__ */ m(ia, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ m("div", { className:
|
|
627
|
-
(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: [
|
|
628
637
|
typeof l == "string" ? /* @__PURE__ */ m(Ee, { type: "h3", children: l }) : l,
|
|
629
|
-
|
|
638
|
+
v && /* @__PURE__ */ m("div", { className: p, children: typeof v == "string" ? /* @__PURE__ */ m(Ee, { children: v }) : v })
|
|
630
639
|
] }),
|
|
631
|
-
a && /* @__PURE__ */ m("div", { className:
|
|
632
|
-
|
|
633
|
-
o &&
|
|
640
|
+
a && /* @__PURE__ */ m("div", { className: R, children: a }),
|
|
641
|
+
y && /* @__PURE__ */ m("div", { className: E, children: y }),
|
|
642
|
+
o && d && /* @__PURE__ */ m(
|
|
634
643
|
wt,
|
|
635
644
|
{
|
|
636
|
-
classNameRoot:
|
|
637
|
-
classNameIconContainerRoot:
|
|
638
|
-
onClick:
|
|
645
|
+
classNameRoot: L,
|
|
646
|
+
classNameIconContainerRoot: V,
|
|
647
|
+
onClick: d,
|
|
639
648
|
iconName: pe.Close,
|
|
640
649
|
variant: "link",
|
|
641
650
|
noPadding: !0,
|
|
@@ -654,39 +663,43 @@ const ca = "_modalWrapper_1jx5o_43", la = "_modalWrapper__modal_1jx5o_54", da =
|
|
|
654
663
|
submitBtnContent: s,
|
|
655
664
|
submit: u,
|
|
656
665
|
disabled: c,
|
|
657
|
-
formId:
|
|
658
|
-
onClose:
|
|
659
|
-
mobile:
|
|
666
|
+
formId: d,
|
|
667
|
+
onClose: l,
|
|
668
|
+
mobile: v = "column",
|
|
660
669
|
align: y = "right",
|
|
661
670
|
modalAlign: w = "top",
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
671
|
+
textAlign: g = "left",
|
|
672
|
+
loading: S,
|
|
673
|
+
isVisibleCloseButton: L,
|
|
674
|
+
isHiddenModal: V,
|
|
675
|
+
size: R
|
|
665
676
|
} = e;
|
|
666
677
|
return /* @__PURE__ */ m(
|
|
667
678
|
ga,
|
|
668
679
|
{
|
|
669
680
|
zIndex: t,
|
|
670
681
|
header: n,
|
|
671
|
-
onClose:
|
|
672
|
-
|
|
682
|
+
onClose: l,
|
|
683
|
+
modalAlign: w,
|
|
684
|
+
textAlign: g,
|
|
673
685
|
subHeader: o,
|
|
674
|
-
isVisibleCloseButton:
|
|
675
|
-
isHiddenModal:
|
|
686
|
+
isVisibleCloseButton: L,
|
|
687
|
+
isHiddenModal: V,
|
|
688
|
+
size: R,
|
|
676
689
|
footer: a || s ? /* @__PURE__ */ m(
|
|
677
690
|
Mo,
|
|
678
691
|
{
|
|
679
|
-
mobile:
|
|
692
|
+
mobile: v,
|
|
680
693
|
align: y,
|
|
681
694
|
cancelBtnContent: a,
|
|
682
695
|
cancelBtnIconName: r,
|
|
683
696
|
cancelBtnDisabled: i,
|
|
684
697
|
submitBtnContent: s,
|
|
685
|
-
formId:
|
|
698
|
+
formId: d,
|
|
686
699
|
disabled: c,
|
|
687
|
-
onClose:
|
|
700
|
+
onClose: l,
|
|
688
701
|
submit: u,
|
|
689
|
-
loading:
|
|
702
|
+
loading: S
|
|
690
703
|
}
|
|
691
704
|
) : null
|
|
692
705
|
}
|
|
@@ -702,7 +715,7 @@ const ca = "_modalWrapper_1jx5o_43", la = "_modalWrapper__modal_1jx5o_54", da =
|
|
|
702
715
|
});
|
|
703
716
|
return /* @__PURE__ */ m("ul", { className: a, children: n == null ? void 0 : n.map((i) => {
|
|
704
717
|
const r = i.key === "delete";
|
|
705
|
-
return /* @__PURE__ */
|
|
718
|
+
return /* @__PURE__ */ H(
|
|
706
719
|
"li",
|
|
707
720
|
{
|
|
708
721
|
className: _({
|
|
@@ -733,15 +746,15 @@ var kt = { exports: {} }, Ue = { exports: {} }, U = {};
|
|
|
733
746
|
* This source code is licensed under the MIT license found in the
|
|
734
747
|
* LICENSE file in the root directory of this source tree.
|
|
735
748
|
*/
|
|
736
|
-
var
|
|
749
|
+
var zt;
|
|
737
750
|
function wa() {
|
|
738
|
-
if (
|
|
739
|
-
|
|
740
|
-
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,
|
|
741
|
-
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) {
|
|
742
755
|
if (typeof p == "object" && p !== null) {
|
|
743
|
-
var
|
|
744
|
-
switch (
|
|
756
|
+
var E = p.$$typeof;
|
|
757
|
+
switch (E) {
|
|
745
758
|
case t:
|
|
746
759
|
switch (p = p.type, p) {
|
|
747
760
|
case u:
|
|
@@ -749,55 +762,55 @@ function wa() {
|
|
|
749
762
|
case o:
|
|
750
763
|
case i:
|
|
751
764
|
case a:
|
|
752
|
-
case
|
|
765
|
+
case l:
|
|
753
766
|
return p;
|
|
754
767
|
default:
|
|
755
768
|
switch (p = p && p.$$typeof, p) {
|
|
756
769
|
case s:
|
|
757
|
-
case
|
|
770
|
+
case d:
|
|
758
771
|
case w:
|
|
759
772
|
case y:
|
|
760
773
|
case r:
|
|
761
774
|
return p;
|
|
762
775
|
default:
|
|
763
|
-
return
|
|
776
|
+
return E;
|
|
764
777
|
}
|
|
765
778
|
}
|
|
766
779
|
case n:
|
|
767
|
-
return
|
|
780
|
+
return E;
|
|
768
781
|
}
|
|
769
782
|
}
|
|
770
783
|
}
|
|
771
784
|
function k(p) {
|
|
772
|
-
return
|
|
785
|
+
return R(p) === c;
|
|
773
786
|
}
|
|
774
|
-
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = s, U.ContextProvider = r, U.Element = t, U.ForwardRef =
|
|
775
|
-
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;
|
|
776
789
|
}, U.isConcurrentMode = k, U.isContextConsumer = function(p) {
|
|
777
|
-
return
|
|
790
|
+
return R(p) === s;
|
|
778
791
|
}, U.isContextProvider = function(p) {
|
|
779
|
-
return
|
|
792
|
+
return R(p) === r;
|
|
780
793
|
}, U.isElement = function(p) {
|
|
781
794
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
782
795
|
}, U.isForwardRef = function(p) {
|
|
783
|
-
return
|
|
796
|
+
return R(p) === d;
|
|
784
797
|
}, U.isFragment = function(p) {
|
|
785
|
-
return
|
|
798
|
+
return R(p) === o;
|
|
786
799
|
}, U.isLazy = function(p) {
|
|
787
|
-
return
|
|
800
|
+
return R(p) === w;
|
|
788
801
|
}, U.isMemo = function(p) {
|
|
789
|
-
return
|
|
802
|
+
return R(p) === y;
|
|
790
803
|
}, U.isPortal = function(p) {
|
|
791
|
-
return
|
|
804
|
+
return R(p) === n;
|
|
792
805
|
}, U.isProfiler = function(p) {
|
|
793
|
-
return
|
|
806
|
+
return R(p) === i;
|
|
794
807
|
}, U.isStrictMode = function(p) {
|
|
795
|
-
return
|
|
808
|
+
return R(p) === a;
|
|
796
809
|
}, U.isSuspense = function(p) {
|
|
797
|
-
return
|
|
810
|
+
return R(p) === l;
|
|
798
811
|
}, U.isValidElementType = function(p) {
|
|
799
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p ===
|
|
800
|
-
}, 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;
|
|
801
814
|
}
|
|
802
815
|
var G = {};
|
|
803
816
|
/** @license React v16.13.1
|
|
@@ -808,37 +821,37 @@ var G = {};
|
|
|
808
821
|
* This source code is licensed under the MIT license found in the
|
|
809
822
|
* LICENSE file in the root directory of this source tree.
|
|
810
823
|
*/
|
|
811
|
-
var
|
|
824
|
+
var Pt;
|
|
812
825
|
function ka() {
|
|
813
|
-
return
|
|
814
|
-
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,
|
|
815
|
-
function
|
|
816
|
-
return typeof
|
|
817
|
-
|
|
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);
|
|
818
831
|
}
|
|
819
|
-
function k(
|
|
820
|
-
if (typeof
|
|
821
|
-
var _e =
|
|
832
|
+
function k(x) {
|
|
833
|
+
if (typeof x == "object" && x !== null) {
|
|
834
|
+
var _e = x.$$typeof;
|
|
822
835
|
switch (_e) {
|
|
823
836
|
case t:
|
|
824
|
-
var Ne =
|
|
837
|
+
var Ne = x.type;
|
|
825
838
|
switch (Ne) {
|
|
826
839
|
case u:
|
|
827
840
|
case c:
|
|
828
841
|
case o:
|
|
829
842
|
case i:
|
|
830
843
|
case a:
|
|
831
|
-
case
|
|
844
|
+
case l:
|
|
832
845
|
return Ne;
|
|
833
846
|
default:
|
|
834
|
-
var
|
|
835
|
-
switch (
|
|
847
|
+
var Pe = Ne && Ne.$$typeof;
|
|
848
|
+
switch (Pe) {
|
|
836
849
|
case s:
|
|
837
|
-
case
|
|
850
|
+
case d:
|
|
838
851
|
case w:
|
|
839
852
|
case y:
|
|
840
853
|
case r:
|
|
841
|
-
return
|
|
854
|
+
return Pe;
|
|
842
855
|
default:
|
|
843
856
|
return _e;
|
|
844
857
|
}
|
|
@@ -848,62 +861,62 @@ function ka() {
|
|
|
848
861
|
}
|
|
849
862
|
}
|
|
850
863
|
}
|
|
851
|
-
var p = u,
|
|
852
|
-
function B(
|
|
853
|
-
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;
|
|
854
867
|
}
|
|
855
|
-
function f(
|
|
856
|
-
return k(
|
|
868
|
+
function f(x) {
|
|
869
|
+
return k(x) === c;
|
|
857
870
|
}
|
|
858
|
-
function b(
|
|
859
|
-
return k(
|
|
871
|
+
function b(x) {
|
|
872
|
+
return k(x) === s;
|
|
860
873
|
}
|
|
861
|
-
function
|
|
862
|
-
return k(
|
|
874
|
+
function O(x) {
|
|
875
|
+
return k(x) === r;
|
|
863
876
|
}
|
|
864
|
-
function
|
|
865
|
-
return typeof
|
|
877
|
+
function P(x) {
|
|
878
|
+
return typeof x == "object" && x !== null && x.$$typeof === t;
|
|
866
879
|
}
|
|
867
|
-
function
|
|
868
|
-
return k(
|
|
880
|
+
function A(x) {
|
|
881
|
+
return k(x) === d;
|
|
869
882
|
}
|
|
870
|
-
function
|
|
871
|
-
return k(
|
|
883
|
+
function $(x) {
|
|
884
|
+
return k(x) === o;
|
|
872
885
|
}
|
|
873
|
-
function
|
|
874
|
-
return k(
|
|
886
|
+
function j(x) {
|
|
887
|
+
return k(x) === w;
|
|
875
888
|
}
|
|
876
|
-
function
|
|
877
|
-
return k(
|
|
889
|
+
function F(x) {
|
|
890
|
+
return k(x) === y;
|
|
878
891
|
}
|
|
879
|
-
function
|
|
880
|
-
return k(
|
|
892
|
+
function q(x) {
|
|
893
|
+
return k(x) === n;
|
|
881
894
|
}
|
|
882
|
-
function Y(
|
|
883
|
-
return k(
|
|
895
|
+
function Y(x) {
|
|
896
|
+
return k(x) === i;
|
|
884
897
|
}
|
|
885
|
-
function
|
|
886
|
-
return k(
|
|
898
|
+
function W(x) {
|
|
899
|
+
return k(x) === a;
|
|
887
900
|
}
|
|
888
|
-
function te(
|
|
889
|
-
return k(
|
|
901
|
+
function te(x) {
|
|
902
|
+
return k(x) === l;
|
|
890
903
|
}
|
|
891
|
-
G.AsyncMode = p, G.ConcurrentMode =
|
|
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;
|
|
892
905
|
}()), G;
|
|
893
906
|
}
|
|
894
|
-
var
|
|
907
|
+
var Ft;
|
|
895
908
|
function gn() {
|
|
896
|
-
return
|
|
909
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? Ue.exports = wa() : Ue.exports = ka()), Ue.exports;
|
|
897
910
|
}
|
|
898
911
|
/*
|
|
899
912
|
object-assign
|
|
900
913
|
(c) Sindre Sorhus
|
|
901
914
|
@license MIT
|
|
902
915
|
*/
|
|
903
|
-
var ut,
|
|
916
|
+
var ut, Bt;
|
|
904
917
|
function Ca() {
|
|
905
|
-
if (
|
|
906
|
-
|
|
918
|
+
if (Bt) return ut;
|
|
919
|
+
Bt = 1;
|
|
907
920
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
908
921
|
function o(i) {
|
|
909
922
|
if (i == null)
|
|
@@ -919,35 +932,35 @@ function Ca() {
|
|
|
919
932
|
return !1;
|
|
920
933
|
for (var r = {}, s = 0; s < 10; s++)
|
|
921
934
|
r["_" + String.fromCharCode(s)] = s;
|
|
922
|
-
var u = Object.getOwnPropertyNames(r).map(function(
|
|
923
|
-
return r[
|
|
935
|
+
var u = Object.getOwnPropertyNames(r).map(function(d) {
|
|
936
|
+
return r[d];
|
|
924
937
|
});
|
|
925
938
|
if (u.join("") !== "0123456789")
|
|
926
939
|
return !1;
|
|
927
940
|
var c = {};
|
|
928
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
929
|
-
c[
|
|
941
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
942
|
+
c[d] = d;
|
|
930
943
|
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
931
944
|
} catch {
|
|
932
945
|
return !1;
|
|
933
946
|
}
|
|
934
947
|
}
|
|
935
948
|
return ut = a() ? Object.assign : function(i, r) {
|
|
936
|
-
for (var s, u = o(i), c,
|
|
937
|
-
s = Object(arguments[
|
|
938
|
-
for (var
|
|
939
|
-
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]);
|
|
940
953
|
if (e) {
|
|
941
954
|
c = e(s);
|
|
942
|
-
for (var
|
|
943
|
-
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]]);
|
|
944
957
|
}
|
|
945
958
|
}
|
|
946
959
|
return u;
|
|
947
960
|
}, ut;
|
|
948
961
|
}
|
|
949
962
|
var mt, Wt;
|
|
950
|
-
function
|
|
963
|
+
function At() {
|
|
951
964
|
if (Wt) return mt;
|
|
952
965
|
Wt = 1;
|
|
953
966
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -964,7 +977,7 @@ function Ta() {
|
|
|
964
977
|
var e = function() {
|
|
965
978
|
};
|
|
966
979
|
if (process.env.NODE_ENV !== "production") {
|
|
967
|
-
var t =
|
|
980
|
+
var t = At(), n = {}, o = hn();
|
|
968
981
|
e = function(i) {
|
|
969
982
|
var r = "Warning: " + i;
|
|
970
983
|
typeof console < "u" && console.error(r);
|
|
@@ -976,27 +989,27 @@ function Ta() {
|
|
|
976
989
|
}
|
|
977
990
|
function a(i, r, s, u, c) {
|
|
978
991
|
if (process.env.NODE_ENV !== "production") {
|
|
979
|
-
for (var
|
|
980
|
-
if (o(i,
|
|
981
|
-
var
|
|
992
|
+
for (var d in i)
|
|
993
|
+
if (o(i, d)) {
|
|
994
|
+
var l;
|
|
982
995
|
try {
|
|
983
|
-
if (typeof i[
|
|
984
|
-
var
|
|
985
|
-
(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`."
|
|
986
999
|
);
|
|
987
|
-
throw
|
|
1000
|
+
throw v.name = "Invariant Violation", v;
|
|
988
1001
|
}
|
|
989
|
-
|
|
1002
|
+
l = i[d](r, d, u, s, null, t);
|
|
990
1003
|
} catch (w) {
|
|
991
|
-
|
|
1004
|
+
l = w;
|
|
992
1005
|
}
|
|
993
|
-
if (
|
|
994
|
-
(u || "React class") + ": type specification of " + s + " `" +
|
|
995
|
-
),
|
|
996
|
-
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;
|
|
997
1010
|
var y = c ? c() : "";
|
|
998
1011
|
e(
|
|
999
|
-
"Failed " + s + " type: " +
|
|
1012
|
+
"Failed " + s + " type: " + l.message + (y ?? "")
|
|
1000
1013
|
);
|
|
1001
1014
|
}
|
|
1002
1015
|
}
|
|
@@ -1010,7 +1023,7 @@ var vt, qt;
|
|
|
1010
1023
|
function Ea() {
|
|
1011
1024
|
if (qt) return vt;
|
|
1012
1025
|
qt = 1;
|
|
1013
|
-
var e = gn(), t = Ca(), n =
|
|
1026
|
+
var e = gn(), t = Ca(), n = At(), o = hn(), a = Ta(), i = function() {
|
|
1014
1027
|
};
|
|
1015
1028
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1016
1029
|
var u = "Warning: " + s;
|
|
@@ -1024,29 +1037,29 @@ function Ea() {
|
|
|
1024
1037
|
return null;
|
|
1025
1038
|
}
|
|
1026
1039
|
return vt = function(s, u) {
|
|
1027
|
-
var c = typeof Symbol == "function" && Symbol.iterator,
|
|
1028
|
-
function
|
|
1029
|
-
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]);
|
|
1030
1043
|
if (typeof b == "function")
|
|
1031
1044
|
return b;
|
|
1032
1045
|
}
|
|
1033
|
-
var
|
|
1034
|
-
array:
|
|
1035
|
-
bigint:
|
|
1036
|
-
bool:
|
|
1037
|
-
func:
|
|
1038
|
-
number:
|
|
1039
|
-
object:
|
|
1040
|
-
string:
|
|
1041
|
-
symbol:
|
|
1046
|
+
var v = "<<anonymous>>", y = {
|
|
1047
|
+
array: L("array"),
|
|
1048
|
+
bigint: L("bigint"),
|
|
1049
|
+
bool: L("boolean"),
|
|
1050
|
+
func: L("function"),
|
|
1051
|
+
number: L("number"),
|
|
1052
|
+
object: L("object"),
|
|
1053
|
+
string: L("string"),
|
|
1054
|
+
symbol: L("symbol"),
|
|
1042
1055
|
any: V(),
|
|
1043
|
-
arrayOf:
|
|
1056
|
+
arrayOf: R,
|
|
1044
1057
|
element: k(),
|
|
1045
1058
|
elementType: p(),
|
|
1046
|
-
instanceOf:
|
|
1059
|
+
instanceOf: E,
|
|
1047
1060
|
node: oe(),
|
|
1048
|
-
objectOf:
|
|
1049
|
-
oneOf:
|
|
1061
|
+
objectOf: D,
|
|
1062
|
+
oneOf: z,
|
|
1050
1063
|
oneOfType: J,
|
|
1051
1064
|
shape: fe,
|
|
1052
1065
|
exact: le
|
|
@@ -1060,34 +1073,34 @@ function Ea() {
|
|
|
1060
1073
|
g.prototype = Error.prototype;
|
|
1061
1074
|
function S(f) {
|
|
1062
1075
|
if (process.env.NODE_ENV !== "production")
|
|
1063
|
-
var b = {},
|
|
1064
|
-
function
|
|
1065
|
-
if (
|
|
1076
|
+
var b = {}, O = 0;
|
|
1077
|
+
function P($, j, F, q, Y, W, te) {
|
|
1078
|
+
if (q = q || v, W = W || F, te !== n) {
|
|
1066
1079
|
if (u) {
|
|
1067
|
-
var
|
|
1080
|
+
var x = new Error(
|
|
1068
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"
|
|
1069
1082
|
);
|
|
1070
|
-
throw
|
|
1083
|
+
throw x.name = "Invariant Violation", x;
|
|
1071
1084
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1072
|
-
var _e =
|
|
1085
|
+
var _e = q + ":" + F;
|
|
1073
1086
|
!b[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1074
|
-
|
|
1075
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1076
|
-
), b[_e] = !0,
|
|
1087
|
+
O < 3 && (i(
|
|
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."
|
|
1089
|
+
), b[_e] = !0, O++);
|
|
1077
1090
|
}
|
|
1078
1091
|
}
|
|
1079
|
-
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);
|
|
1080
1093
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1094
|
+
var A = P.bind(null, !1);
|
|
1095
|
+
return A.isRequired = P.bind(null, !0), A;
|
|
1083
1096
|
}
|
|
1084
|
-
function
|
|
1085
|
-
function b(
|
|
1086
|
-
var
|
|
1097
|
+
function L(f) {
|
|
1098
|
+
function b(O, P, A, $, j, F) {
|
|
1099
|
+
var q = O[P], Y = C(q);
|
|
1087
1100
|
if (Y !== f) {
|
|
1088
|
-
var
|
|
1101
|
+
var W = M(q);
|
|
1089
1102
|
return new g(
|
|
1090
|
-
"Invalid " +
|
|
1103
|
+
"Invalid " + $ + " `" + j + "` of type " + ("`" + W + "` supplied to `" + A + "`, expected ") + ("`" + f + "`."),
|
|
1091
1104
|
{ expectedType: f }
|
|
1092
1105
|
);
|
|
1093
1106
|
}
|
|
@@ -1098,85 +1111,85 @@ function Ea() {
|
|
|
1098
1111
|
function V() {
|
|
1099
1112
|
return S(r);
|
|
1100
1113
|
}
|
|
1101
|
-
function
|
|
1102
|
-
function b(
|
|
1114
|
+
function R(f) {
|
|
1115
|
+
function b(O, P, A, $, j) {
|
|
1103
1116
|
if (typeof f != "function")
|
|
1104
|
-
return new g("Property `" +
|
|
1105
|
-
var
|
|
1106
|
-
if (!Array.isArray(
|
|
1107
|
-
var
|
|
1108
|
-
return new g("Invalid " +
|
|
1117
|
+
return new g("Property `" + j + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
1118
|
+
var F = O[P];
|
|
1119
|
+
if (!Array.isArray(F)) {
|
|
1120
|
+
var q = C(F);
|
|
1121
|
+
return new g("Invalid " + $ + " `" + j + "` of type " + ("`" + q + "` supplied to `" + A + "`, expected an array."));
|
|
1109
1122
|
}
|
|
1110
|
-
for (var Y = 0; Y <
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
return
|
|
1123
|
+
for (var Y = 0; Y < F.length; Y++) {
|
|
1124
|
+
var W = f(F, Y, A, $, j + "[" + Y + "]", n);
|
|
1125
|
+
if (W instanceof Error)
|
|
1126
|
+
return W;
|
|
1114
1127
|
}
|
|
1115
1128
|
return null;
|
|
1116
1129
|
}
|
|
1117
1130
|
return S(b);
|
|
1118
1131
|
}
|
|
1119
1132
|
function k() {
|
|
1120
|
-
function f(b,
|
|
1121
|
-
var
|
|
1122
|
-
if (!s(
|
|
1123
|
-
var
|
|
1124
|
-
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."));
|
|
1125
1138
|
}
|
|
1126
1139
|
return null;
|
|
1127
1140
|
}
|
|
1128
1141
|
return S(f);
|
|
1129
1142
|
}
|
|
1130
1143
|
function p() {
|
|
1131
|
-
function f(b,
|
|
1132
|
-
var
|
|
1133
|
-
if (!e.isValidElementType(
|
|
1134
|
-
var
|
|
1135
|
-
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."));
|
|
1136
1149
|
}
|
|
1137
1150
|
return null;
|
|
1138
1151
|
}
|
|
1139
1152
|
return S(f);
|
|
1140
1153
|
}
|
|
1141
|
-
function
|
|
1142
|
-
function b(
|
|
1143
|
-
if (!(
|
|
1144
|
-
var
|
|
1145
|
-
return new g("Invalid " +
|
|
1154
|
+
function E(f) {
|
|
1155
|
+
function b(O, P, A, $, j) {
|
|
1156
|
+
if (!(O[P] instanceof f)) {
|
|
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 + "`."));
|
|
1146
1159
|
}
|
|
1147
1160
|
return null;
|
|
1148
1161
|
}
|
|
1149
1162
|
return S(b);
|
|
1150
1163
|
}
|
|
1151
|
-
function
|
|
1164
|
+
function z(f) {
|
|
1152
1165
|
if (!Array.isArray(f))
|
|
1153
1166
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1154
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])."
|
|
1155
1168
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1156
|
-
function b(
|
|
1157
|
-
for (var
|
|
1158
|
-
if (w(
|
|
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]))
|
|
1159
1172
|
return null;
|
|
1160
|
-
var Y = JSON.stringify(f, function(te,
|
|
1161
|
-
var _e =
|
|
1162
|
-
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;
|
|
1163
1176
|
});
|
|
1164
|
-
return new g("Invalid " +
|
|
1177
|
+
return new g("Invalid " + $ + " `" + j + "` of value `" + String(F) + "` " + ("supplied to `" + A + "`, expected one of " + Y + "."));
|
|
1165
1178
|
}
|
|
1166
1179
|
return S(b);
|
|
1167
1180
|
}
|
|
1168
|
-
function
|
|
1169
|
-
function b(
|
|
1181
|
+
function D(f) {
|
|
1182
|
+
function b(O, P, A, $, j) {
|
|
1170
1183
|
if (typeof f != "function")
|
|
1171
|
-
return new g("Property `" +
|
|
1172
|
-
var
|
|
1173
|
-
if (
|
|
1174
|
-
return new g("Invalid " +
|
|
1175
|
-
for (var Y in
|
|
1176
|
-
if (o(
|
|
1177
|
-
var
|
|
1178
|
-
if (
|
|
1179
|
-
return
|
|
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."));
|
|
1188
|
+
for (var Y in F)
|
|
1189
|
+
if (o(F, Y)) {
|
|
1190
|
+
var W = f(F, Y, A, $, j + "." + Y, n);
|
|
1191
|
+
if (W instanceof Error)
|
|
1192
|
+
return W;
|
|
1180
1193
|
}
|
|
1181
1194
|
return null;
|
|
1182
1195
|
}
|
|
@@ -1186,45 +1199,45 @@ function Ea() {
|
|
|
1186
1199
|
if (!Array.isArray(f))
|
|
1187
1200
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1188
1201
|
for (var b = 0; b < f.length; b++) {
|
|
1189
|
-
var
|
|
1190
|
-
if (typeof
|
|
1202
|
+
var O = f[b];
|
|
1203
|
+
if (typeof O != "function")
|
|
1191
1204
|
return i(
|
|
1192
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(
|
|
1205
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(O) + " at index " + b + "."
|
|
1193
1206
|
), r;
|
|
1194
1207
|
}
|
|
1195
|
-
function
|
|
1196
|
-
for (var Y = [],
|
|
1197
|
-
var te = f[
|
|
1198
|
-
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)
|
|
1199
1212
|
return null;
|
|
1200
|
-
|
|
1213
|
+
x.data && o(x.data, "expectedType") && Y.push(x.data.expectedType);
|
|
1201
1214
|
}
|
|
1202
1215
|
var _e = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
1203
|
-
return new g("Invalid " +
|
|
1216
|
+
return new g("Invalid " + F + " `" + q + "` supplied to " + ("`" + j + "`" + _e + "."));
|
|
1204
1217
|
}
|
|
1205
|
-
return S(
|
|
1218
|
+
return S(P);
|
|
1206
1219
|
}
|
|
1207
1220
|
function oe() {
|
|
1208
|
-
function f(b,
|
|
1209
|
-
return X(b[
|
|
1221
|
+
function f(b, O, P, A, $) {
|
|
1222
|
+
return X(b[O]) ? null : new g("Invalid " + A + " `" + $ + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1210
1223
|
}
|
|
1211
1224
|
return S(f);
|
|
1212
1225
|
}
|
|
1213
|
-
function me(f, b,
|
|
1226
|
+
function me(f, b, O, P, A) {
|
|
1214
1227
|
return new g(
|
|
1215
|
-
(f || "React class") + ": " + b + " type `" +
|
|
1228
|
+
(f || "React class") + ": " + b + " type `" + O + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
1216
1229
|
);
|
|
1217
1230
|
}
|
|
1218
1231
|
function fe(f) {
|
|
1219
|
-
function b(
|
|
1220
|
-
var
|
|
1221
|
-
if (
|
|
1222
|
-
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`."));
|
|
1223
1236
|
for (var Y in f) {
|
|
1224
|
-
var
|
|
1225
|
-
if (typeof
|
|
1226
|
-
return me(
|
|
1227
|
-
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);
|
|
1228
1241
|
if (te)
|
|
1229
1242
|
return te;
|
|
1230
1243
|
}
|
|
@@ -1233,23 +1246,23 @@ function Ea() {
|
|
|
1233
1246
|
return S(b);
|
|
1234
1247
|
}
|
|
1235
1248
|
function le(f) {
|
|
1236
|
-
function b(
|
|
1237
|
-
var
|
|
1238
|
-
if (
|
|
1239
|
-
return new g("Invalid " +
|
|
1240
|
-
var Y = t({},
|
|
1241
|
-
for (var
|
|
1242
|
-
var te = f[
|
|
1243
|
-
if (o(f,
|
|
1244
|
-
return me(
|
|
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`."));
|
|
1253
|
+
var Y = t({}, O[P], f);
|
|
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));
|
|
1245
1258
|
if (!te)
|
|
1246
1259
|
return new g(
|
|
1247
|
-
"Invalid " +
|
|
1260
|
+
"Invalid " + $ + " `" + j + "` key `" + W + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(O[P], null, " ") + `
|
|
1248
1261
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1249
1262
|
);
|
|
1250
|
-
var
|
|
1251
|
-
if (
|
|
1252
|
-
return
|
|
1263
|
+
var x = te(F, W, A, $, j + "." + W, n);
|
|
1264
|
+
if (x)
|
|
1265
|
+
return x;
|
|
1253
1266
|
}
|
|
1254
1267
|
return null;
|
|
1255
1268
|
}
|
|
@@ -1268,17 +1281,17 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1268
1281
|
return f.every(X);
|
|
1269
1282
|
if (f === null || s(f))
|
|
1270
1283
|
return !0;
|
|
1271
|
-
var b =
|
|
1284
|
+
var b = l(f);
|
|
1272
1285
|
if (b) {
|
|
1273
|
-
var
|
|
1286
|
+
var O = b.call(f), P;
|
|
1274
1287
|
if (b !== f.entries) {
|
|
1275
|
-
for (; !(
|
|
1276
|
-
if (!X(
|
|
1288
|
+
for (; !(P = O.next()).done; )
|
|
1289
|
+
if (!X(P.value))
|
|
1277
1290
|
return !1;
|
|
1278
1291
|
} else
|
|
1279
|
-
for (; !(
|
|
1280
|
-
var
|
|
1281
|
-
if (
|
|
1292
|
+
for (; !(P = O.next()).done; ) {
|
|
1293
|
+
var A = P.value;
|
|
1294
|
+
if (A && !X(A[1]))
|
|
1282
1295
|
return !1;
|
|
1283
1296
|
}
|
|
1284
1297
|
} else
|
|
@@ -1295,7 +1308,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1295
1308
|
var b = typeof f;
|
|
1296
1309
|
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : Z(b, f) ? "symbol" : b;
|
|
1297
1310
|
}
|
|
1298
|
-
function
|
|
1311
|
+
function M(f) {
|
|
1299
1312
|
if (typeof f > "u" || f === null)
|
|
1300
1313
|
return "" + f;
|
|
1301
1314
|
var b = C(f);
|
|
@@ -1308,7 +1321,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1308
1321
|
return b;
|
|
1309
1322
|
}
|
|
1310
1323
|
function K(f) {
|
|
1311
|
-
var b =
|
|
1324
|
+
var b = M(f);
|
|
1312
1325
|
switch (b) {
|
|
1313
1326
|
case "array":
|
|
1314
1327
|
case "object":
|
|
@@ -1322,7 +1335,7 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1322
1335
|
}
|
|
1323
1336
|
}
|
|
1324
1337
|
function B(f) {
|
|
1325
|
-
return !f.constructor || !f.constructor.name ?
|
|
1338
|
+
return !f.constructor || !f.constructor.name ? v : f.constructor.name;
|
|
1326
1339
|
}
|
|
1327
1340
|
return y.checkPropTypes = a, y.resetWarningCache = a.resetWarningCache, y.PropTypes = y, y;
|
|
1328
1341
|
}, vt;
|
|
@@ -1331,18 +1344,18 @@ var xt, Ht;
|
|
|
1331
1344
|
function Sa() {
|
|
1332
1345
|
if (Ht) return xt;
|
|
1333
1346
|
Ht = 1;
|
|
1334
|
-
var e =
|
|
1347
|
+
var e = At();
|
|
1335
1348
|
function t() {
|
|
1336
1349
|
}
|
|
1337
1350
|
function n() {
|
|
1338
1351
|
}
|
|
1339
1352
|
return n.resetWarningCache = t, xt = function() {
|
|
1340
|
-
function o(r, s, u, c,
|
|
1341
|
-
if (
|
|
1342
|
-
var
|
|
1353
|
+
function o(r, s, u, c, d, l) {
|
|
1354
|
+
if (l !== e) {
|
|
1355
|
+
var v = new Error(
|
|
1343
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"
|
|
1344
1357
|
);
|
|
1345
|
-
throw
|
|
1358
|
+
throw v.name = "Invariant Violation", v;
|
|
1346
1359
|
}
|
|
1347
1360
|
}
|
|
1348
1361
|
o.isRequired = o;
|
|
@@ -1380,31 +1393,31 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1380
1393
|
kt.exports = Ea()(Na.isElement, Ia);
|
|
1381
1394
|
} else
|
|
1382
1395
|
kt.exports = Sa()();
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1385
|
-
function
|
|
1396
|
+
var Aa = kt.exports;
|
|
1397
|
+
const T = /* @__PURE__ */ xn(Aa);
|
|
1398
|
+
function je(e, t, n, o) {
|
|
1386
1399
|
function a(i) {
|
|
1387
1400
|
return i instanceof n ? i : new n(function(r) {
|
|
1388
1401
|
r(i);
|
|
1389
1402
|
});
|
|
1390
1403
|
}
|
|
1391
1404
|
return new (n || (n = Promise))(function(i, r) {
|
|
1392
|
-
function s(
|
|
1405
|
+
function s(d) {
|
|
1393
1406
|
try {
|
|
1394
|
-
c(o.next(
|
|
1395
|
-
} catch (
|
|
1396
|
-
r(
|
|
1407
|
+
c(o.next(d));
|
|
1408
|
+
} catch (l) {
|
|
1409
|
+
r(l);
|
|
1397
1410
|
}
|
|
1398
1411
|
}
|
|
1399
|
-
function u(
|
|
1412
|
+
function u(d) {
|
|
1400
1413
|
try {
|
|
1401
|
-
c(o.throw(
|
|
1402
|
-
} catch (
|
|
1403
|
-
r(
|
|
1414
|
+
c(o.throw(d));
|
|
1415
|
+
} catch (l) {
|
|
1416
|
+
r(l);
|
|
1404
1417
|
}
|
|
1405
1418
|
}
|
|
1406
|
-
function c(
|
|
1407
|
-
|
|
1419
|
+
function c(d) {
|
|
1420
|
+
d.done ? i(d.value) : a(d.value).then(s, u);
|
|
1408
1421
|
}
|
|
1409
1422
|
c((o = o.apply(e, t || [])).next());
|
|
1410
1423
|
});
|
|
@@ -2612,11 +2625,11 @@ const Ra = /* @__PURE__ */ new Map([
|
|
|
2612
2625
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
2613
2626
|
["zsh", "text/x-scriptzsh"]
|
|
2614
2627
|
]);
|
|
2615
|
-
function
|
|
2616
|
-
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}`;
|
|
2617
2630
|
return typeof o.path != "string" && Vt(o, "path", i), Vt(o, "relativePath", i), o;
|
|
2618
2631
|
}
|
|
2619
|
-
function
|
|
2632
|
+
function ja(e) {
|
|
2620
2633
|
const { name: t } = e;
|
|
2621
2634
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2622
2635
|
const o = t.split(".").pop().toLowerCase(), a = Ra.get(o);
|
|
@@ -2645,29 +2658,29 @@ const Da = [
|
|
|
2645
2658
|
// Windows
|
|
2646
2659
|
];
|
|
2647
2660
|
function La(e) {
|
|
2648
|
-
return
|
|
2649
|
-
return Xe(e) && Oa(e.dataTransfer) ?
|
|
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) : [];
|
|
2650
2663
|
});
|
|
2651
2664
|
}
|
|
2652
2665
|
function Oa(e) {
|
|
2653
2666
|
return Xe(e);
|
|
2654
2667
|
}
|
|
2655
|
-
function
|
|
2668
|
+
function za(e) {
|
|
2656
2669
|
return Xe(e) && Xe(e.target);
|
|
2657
2670
|
}
|
|
2658
2671
|
function Xe(e) {
|
|
2659
2672
|
return typeof e == "object" && e !== null;
|
|
2660
2673
|
}
|
|
2661
|
-
function
|
|
2662
|
-
return Ct(e.target.files).map((t) =>
|
|
2674
|
+
function Pa(e) {
|
|
2675
|
+
return Ct(e.target.files).map((t) => ze(t));
|
|
2663
2676
|
}
|
|
2664
|
-
function
|
|
2665
|
-
return
|
|
2666
|
-
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));
|
|
2667
2680
|
});
|
|
2668
2681
|
}
|
|
2669
|
-
function
|
|
2670
|
-
return
|
|
2682
|
+
function Ba(e, t) {
|
|
2683
|
+
return je(this, void 0, void 0, function* () {
|
|
2671
2684
|
if (e.items) {
|
|
2672
2685
|
const n = Ct(e.items).filter((a) => a.kind === "file");
|
|
2673
2686
|
if (t !== "drop")
|
|
@@ -2675,7 +2688,7 @@ function za(e, t) {
|
|
|
2675
2688
|
const o = yield Promise.all(n.map(Wa));
|
|
2676
2689
|
return Yt(bn(o));
|
|
2677
2690
|
}
|
|
2678
|
-
return Yt(Ct(e.files).map((n) =>
|
|
2691
|
+
return Yt(Ct(e.files).map((n) => ze(n)));
|
|
2679
2692
|
});
|
|
2680
2693
|
}
|
|
2681
2694
|
function Yt(e) {
|
|
@@ -2704,7 +2717,7 @@ function bn(e) {
|
|
|
2704
2717
|
], []);
|
|
2705
2718
|
}
|
|
2706
2719
|
function Ut(e, t) {
|
|
2707
|
-
return
|
|
2720
|
+
return je(this, void 0, void 0, function* () {
|
|
2708
2721
|
var n;
|
|
2709
2722
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2710
2723
|
const i = yield e.getAsFileSystemHandle();
|
|
@@ -2712,17 +2725,17 @@ function Ut(e, t) {
|
|
|
2712
2725
|
throw new Error(`${e} is not a File`);
|
|
2713
2726
|
if (i !== void 0) {
|
|
2714
2727
|
const r = yield i.getFile();
|
|
2715
|
-
return r.handle = i,
|
|
2728
|
+
return r.handle = i, ze(r);
|
|
2716
2729
|
}
|
|
2717
2730
|
}
|
|
2718
2731
|
const o = e.getAsFile();
|
|
2719
2732
|
if (!o)
|
|
2720
2733
|
throw new Error(`${e} is not a File`);
|
|
2721
|
-
return
|
|
2734
|
+
return ze(o, (n = t == null ? void 0 : t.fullPath) !== null && n !== void 0 ? n : void 0);
|
|
2722
2735
|
});
|
|
2723
2736
|
}
|
|
2724
2737
|
function Ma(e) {
|
|
2725
|
-
return
|
|
2738
|
+
return je(this, void 0, void 0, function* () {
|
|
2726
2739
|
return e.isDirectory ? yn(e) : $a(e);
|
|
2727
2740
|
});
|
|
2728
2741
|
}
|
|
@@ -2731,7 +2744,7 @@ function yn(e) {
|
|
|
2731
2744
|
return new Promise((n, o) => {
|
|
2732
2745
|
const a = [];
|
|
2733
2746
|
function i() {
|
|
2734
|
-
t.readEntries((r) =>
|
|
2747
|
+
t.readEntries((r) => je(this, void 0, void 0, function* () {
|
|
2735
2748
|
if (r.length) {
|
|
2736
2749
|
const s = Promise.all(r.map(Ma));
|
|
2737
2750
|
a.push(s), i();
|
|
@@ -2750,10 +2763,10 @@ function yn(e) {
|
|
|
2750
2763
|
});
|
|
2751
2764
|
}
|
|
2752
2765
|
function $a(e) {
|
|
2753
|
-
return
|
|
2766
|
+
return je(this, void 0, void 0, function* () {
|
|
2754
2767
|
return new Promise((t, n) => {
|
|
2755
2768
|
e.file((o) => {
|
|
2756
|
-
const a =
|
|
2769
|
+
const a = ze(o, e.fullPath);
|
|
2757
2770
|
t(a);
|
|
2758
2771
|
}, (o) => {
|
|
2759
2772
|
n(o);
|
|
@@ -2895,8 +2908,8 @@ function Re(e) {
|
|
|
2895
2908
|
function ni(e) {
|
|
2896
2909
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2897
2910
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(u) {
|
|
2898
|
-
var c = Cn(u, n),
|
|
2899
|
-
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;
|
|
2900
2913
|
});
|
|
2901
2914
|
}
|
|
2902
2915
|
function Ze(e) {
|
|
@@ -3070,9 +3083,9 @@ function wi(e, t) {
|
|
|
3070
3083
|
a = o[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
3071
3084
|
return n;
|
|
3072
3085
|
}
|
|
3073
|
-
var et = /* @__PURE__ */
|
|
3086
|
+
var et = /* @__PURE__ */ Fn(function(e, t) {
|
|
3074
3087
|
var n = e.children, o = Qe(e, di), a = ki(o), i = a.open, r = Qe(a, ui);
|
|
3075
|
-
return
|
|
3088
|
+
return Bn(t, function() {
|
|
3076
3089
|
return {
|
|
3077
3090
|
open: i
|
|
3078
3091
|
};
|
|
@@ -3114,7 +3127,7 @@ et.propTypes = {
|
|
|
3114
3127
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3115
3128
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3116
3129
|
*/
|
|
3117
|
-
children:
|
|
3130
|
+
children: T.func,
|
|
3118
3131
|
/**
|
|
3119
3132
|
* Set accepted file types.
|
|
3120
3133
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3122,90 +3135,90 @@ et.propTypes = {
|
|
|
3122
3135
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3123
3136
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3124
3137
|
*/
|
|
3125
|
-
accept:
|
|
3138
|
+
accept: T.objectOf(T.arrayOf(T.string)),
|
|
3126
3139
|
/**
|
|
3127
3140
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3128
3141
|
*/
|
|
3129
|
-
multiple:
|
|
3142
|
+
multiple: T.bool,
|
|
3130
3143
|
/**
|
|
3131
3144
|
* If false, allow dropped items to take over the current browser window
|
|
3132
3145
|
*/
|
|
3133
|
-
preventDropOnDocument:
|
|
3146
|
+
preventDropOnDocument: T.bool,
|
|
3134
3147
|
/**
|
|
3135
3148
|
* If true, disables click to open the native file selection dialog
|
|
3136
3149
|
*/
|
|
3137
|
-
noClick:
|
|
3150
|
+
noClick: T.bool,
|
|
3138
3151
|
/**
|
|
3139
3152
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3140
3153
|
* Note that it also stops tracking the focus state.
|
|
3141
3154
|
*/
|
|
3142
|
-
noKeyboard:
|
|
3155
|
+
noKeyboard: T.bool,
|
|
3143
3156
|
/**
|
|
3144
3157
|
* If true, disables drag 'n' drop
|
|
3145
3158
|
*/
|
|
3146
|
-
noDrag:
|
|
3159
|
+
noDrag: T.bool,
|
|
3147
3160
|
/**
|
|
3148
3161
|
* If true, stops drag event propagation to parents
|
|
3149
3162
|
*/
|
|
3150
|
-
noDragEventsBubbling:
|
|
3163
|
+
noDragEventsBubbling: T.bool,
|
|
3151
3164
|
/**
|
|
3152
3165
|
* Minimum file size (in bytes)
|
|
3153
3166
|
*/
|
|
3154
|
-
minSize:
|
|
3167
|
+
minSize: T.number,
|
|
3155
3168
|
/**
|
|
3156
3169
|
* Maximum file size (in bytes)
|
|
3157
3170
|
*/
|
|
3158
|
-
maxSize:
|
|
3171
|
+
maxSize: T.number,
|
|
3159
3172
|
/**
|
|
3160
3173
|
* Maximum accepted number of files
|
|
3161
3174
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3162
3175
|
*/
|
|
3163
|
-
maxFiles:
|
|
3176
|
+
maxFiles: T.number,
|
|
3164
3177
|
/**
|
|
3165
3178
|
* Enable/disable the dropzone
|
|
3166
3179
|
*/
|
|
3167
|
-
disabled:
|
|
3180
|
+
disabled: T.bool,
|
|
3168
3181
|
/**
|
|
3169
3182
|
* Use this to provide a custom file aggregator
|
|
3170
3183
|
*
|
|
3171
3184
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3172
3185
|
*/
|
|
3173
|
-
getFilesFromEvent:
|
|
3186
|
+
getFilesFromEvent: T.func,
|
|
3174
3187
|
/**
|
|
3175
3188
|
* Cb for when closing the file dialog with no selection
|
|
3176
3189
|
*/
|
|
3177
|
-
onFileDialogCancel:
|
|
3190
|
+
onFileDialogCancel: T.func,
|
|
3178
3191
|
/**
|
|
3179
3192
|
* Cb for when opening the file dialog
|
|
3180
3193
|
*/
|
|
3181
|
-
onFileDialogOpen:
|
|
3194
|
+
onFileDialogOpen: T.func,
|
|
3182
3195
|
/**
|
|
3183
3196
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3184
3197
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3185
3198
|
*/
|
|
3186
|
-
useFsAccessApi:
|
|
3199
|
+
useFsAccessApi: T.bool,
|
|
3187
3200
|
/**
|
|
3188
3201
|
* Set to true to focus the root element on render
|
|
3189
3202
|
*/
|
|
3190
|
-
autoFocus:
|
|
3203
|
+
autoFocus: T.bool,
|
|
3191
3204
|
/**
|
|
3192
3205
|
* Cb for when the `dragenter` event occurs.
|
|
3193
3206
|
*
|
|
3194
3207
|
* @param {DragEvent} event
|
|
3195
3208
|
*/
|
|
3196
|
-
onDragEnter:
|
|
3209
|
+
onDragEnter: T.func,
|
|
3197
3210
|
/**
|
|
3198
3211
|
* Cb for when the `dragleave` event occurs
|
|
3199
3212
|
*
|
|
3200
3213
|
* @param {DragEvent} event
|
|
3201
3214
|
*/
|
|
3202
|
-
onDragLeave:
|
|
3215
|
+
onDragLeave: T.func,
|
|
3203
3216
|
/**
|
|
3204
3217
|
* Cb for when the `dragover` event occurs
|
|
3205
3218
|
*
|
|
3206
3219
|
* @param {DragEvent} event
|
|
3207
3220
|
*/
|
|
3208
|
-
onDragOver:
|
|
3221
|
+
onDragOver: T.func,
|
|
3209
3222
|
/**
|
|
3210
3223
|
* Cb for when the `drop` event occurs.
|
|
3211
3224
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3236,7 +3249,7 @@ et.propTypes = {
|
|
|
3236
3249
|
* @param {FileRejection[]} fileRejections
|
|
3237
3250
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3238
3251
|
*/
|
|
3239
|
-
onDrop:
|
|
3252
|
+
onDrop: T.func,
|
|
3240
3253
|
/**
|
|
3241
3254
|
* Cb for when the `drop` event occurs.
|
|
3242
3255
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3244,7 +3257,7 @@ et.propTypes = {
|
|
|
3244
3257
|
* @param {File[]} files
|
|
3245
3258
|
* @param {(DragEvent|Event)} event
|
|
3246
3259
|
*/
|
|
3247
|
-
onDropAccepted:
|
|
3260
|
+
onDropAccepted: T.func,
|
|
3248
3261
|
/**
|
|
3249
3262
|
* Cb for when the `drop` event occurs.
|
|
3250
3263
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3252,19 +3265,19 @@ et.propTypes = {
|
|
|
3252
3265
|
* @param {FileRejection[]} fileRejections
|
|
3253
3266
|
* @param {(DragEvent|Event)} event
|
|
3254
3267
|
*/
|
|
3255
|
-
onDropRejected:
|
|
3268
|
+
onDropRejected: T.func,
|
|
3256
3269
|
/**
|
|
3257
3270
|
* Cb for when there's some error from any of the promises.
|
|
3258
3271
|
*
|
|
3259
3272
|
* @param {Error} error
|
|
3260
3273
|
*/
|
|
3261
|
-
onError:
|
|
3274
|
+
onError: T.func,
|
|
3262
3275
|
/**
|
|
3263
3276
|
* Custom validation function. It must return null if there's no errors.
|
|
3264
3277
|
* @param {File} file
|
|
3265
3278
|
* @returns {FileError|FileError[]|null}
|
|
3266
3279
|
*/
|
|
3267
|
-
validator:
|
|
3280
|
+
validator: T.func
|
|
3268
3281
|
};
|
|
3269
3282
|
var Nt = {
|
|
3270
3283
|
isFocused: !1,
|
|
@@ -3276,7 +3289,7 @@ var Nt = {
|
|
|
3276
3289
|
fileRejections: []
|
|
3277
3290
|
};
|
|
3278
3291
|
function ki() {
|
|
3279
|
-
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() {
|
|
3280
3293
|
return pi(n);
|
|
3281
3294
|
}, [n]), me = Oe(function() {
|
|
3282
3295
|
return si(n);
|
|
@@ -3284,8 +3297,8 @@ function ki() {
|
|
|
3284
3297
|
return typeof S == "function" ? S : tn;
|
|
3285
3298
|
}, [S]), le = Oe(function() {
|
|
3286
3299
|
return typeof g == "function" ? g : tn;
|
|
3287
|
-
}, [g]), X = ue(null), Z = ue(null), C = Mn(Ci, Nt),
|
|
3288
|
-
!
|
|
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() {
|
|
3301
|
+
!O.current && b && setTimeout(function() {
|
|
3289
3302
|
if (Z.current) {
|
|
3290
3303
|
var I = Z.current.files;
|
|
3291
3304
|
I.length || (B({
|
|
@@ -3295,26 +3308,26 @@ function ki() {
|
|
|
3295
3308
|
}, 300);
|
|
3296
3309
|
};
|
|
3297
3310
|
ne(function() {
|
|
3298
|
-
return window.addEventListener("focus",
|
|
3299
|
-
window.removeEventListener("focus",
|
|
3311
|
+
return window.addEventListener("focus", P, !1), function() {
|
|
3312
|
+
window.removeEventListener("focus", P, !1);
|
|
3300
3313
|
};
|
|
3301
|
-
}, [Z, b, le,
|
|
3302
|
-
var
|
|
3303
|
-
X.current && X.current.contains(I.target) || (I.preventDefault(),
|
|
3314
|
+
}, [Z, b, le, O]);
|
|
3315
|
+
var A = ue([]), $ = function(I) {
|
|
3316
|
+
X.current && X.current.contains(I.target) || (I.preventDefault(), A.current = []);
|
|
3304
3317
|
};
|
|
3305
3318
|
ne(function() {
|
|
3306
|
-
return
|
|
3307
|
-
|
|
3319
|
+
return R && (document.addEventListener("dragover", Jt, !1), document.addEventListener("drop", $, !1)), function() {
|
|
3320
|
+
R && (document.removeEventListener("dragover", Jt), document.removeEventListener("drop", $));
|
|
3308
3321
|
};
|
|
3309
|
-
}, [X,
|
|
3322
|
+
}, [X, R]), ne(function() {
|
|
3310
3323
|
return !o && V && X.current && X.current.focus(), function() {
|
|
3311
3324
|
};
|
|
3312
3325
|
}, [X, V, o]);
|
|
3313
|
-
var
|
|
3314
|
-
|
|
3315
|
-
}, [
|
|
3316
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3317
|
-
if (!(Ze(h) && !
|
|
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)) {
|
|
3318
3331
|
var ee = I.length, ae = ee > 0 && ni({
|
|
3319
3332
|
files: I,
|
|
3320
3333
|
accept: oe,
|
|
@@ -3332,9 +3345,9 @@ function ki() {
|
|
|
3332
3345
|
}), c && c(h);
|
|
3333
3346
|
}
|
|
3334
3347
|
}).catch(function(I) {
|
|
3335
|
-
return
|
|
3348
|
+
return j(I);
|
|
3336
3349
|
});
|
|
3337
|
-
}, [a, c,
|
|
3350
|
+
}, [a, c, j, z, oe, r, i, s, u, J]), q = de(function(h) {
|
|
3338
3351
|
h.preventDefault(), h.persist(), He(h);
|
|
3339
3352
|
var I = Ge(h);
|
|
3340
3353
|
if (I && h.dataTransfer)
|
|
@@ -3342,30 +3355,30 @@ function ki() {
|
|
|
3342
3355
|
h.dataTransfer.dropEffect = "copy";
|
|
3343
3356
|
} catch {
|
|
3344
3357
|
}
|
|
3345
|
-
return I &&
|
|
3346
|
-
}, [
|
|
3358
|
+
return I && l && l(h), !1;
|
|
3359
|
+
}, [l, z]), Y = de(function(h) {
|
|
3347
3360
|
h.preventDefault(), h.persist(), He(h);
|
|
3348
|
-
var I =
|
|
3361
|
+
var I = A.current.filter(function(ae) {
|
|
3349
3362
|
return X.current && X.current.contains(ae);
|
|
3350
3363
|
}), ee = I.indexOf(h.target);
|
|
3351
|
-
ee !== -1 && I.splice(ee, 1),
|
|
3364
|
+
ee !== -1 && I.splice(ee, 1), A.current = I, !(I.length > 0) && (B({
|
|
3352
3365
|
type: "setDraggedFiles",
|
|
3353
3366
|
isDragActive: !1,
|
|
3354
3367
|
isDragAccept: !1,
|
|
3355
3368
|
isDragReject: !1
|
|
3356
|
-
}), Ge(h) &&
|
|
3357
|
-
}, [X,
|
|
3369
|
+
}), Ge(h) && d && d(h));
|
|
3370
|
+
}, [X, d, z]), W = de(function(h, I) {
|
|
3358
3371
|
var ee = [], ae = [];
|
|
3359
3372
|
h.forEach(function(ve) {
|
|
3360
|
-
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;
|
|
3361
3374
|
if (nt && it && !st)
|
|
3362
3375
|
ee.push(ve);
|
|
3363
3376
|
else {
|
|
3364
3377
|
var pt = [ot, rt];
|
|
3365
3378
|
st && (pt = pt.concat(st)), ae.push({
|
|
3366
3379
|
file: ve,
|
|
3367
|
-
errors: pt.filter(function(
|
|
3368
|
-
return
|
|
3380
|
+
errors: pt.filter(function(Pn) {
|
|
3381
|
+
return Pn;
|
|
3369
3382
|
})
|
|
3370
3383
|
});
|
|
3371
3384
|
}
|
|
@@ -3379,17 +3392,17 @@ function ki() {
|
|
|
3379
3392
|
fileRejections: ae,
|
|
3380
3393
|
isDragReject: ae.length > 0,
|
|
3381
3394
|
type: "setFiles"
|
|
3382
|
-
}),
|
|
3383
|
-
}, [B, s, oe, r, i, u,
|
|
3384
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3385
|
-
Ze(h) && !
|
|
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);
|
|
3386
3399
|
}).catch(function(I) {
|
|
3387
|
-
return
|
|
3400
|
+
return j(I);
|
|
3388
3401
|
}), B({
|
|
3389
3402
|
type: "reset"
|
|
3390
3403
|
});
|
|
3391
|
-
}, [a,
|
|
3392
|
-
if (
|
|
3404
|
+
}, [a, W, j, z]), x = de(function() {
|
|
3405
|
+
if (O.current) {
|
|
3393
3406
|
B({
|
|
3394
3407
|
type: "openDialog"
|
|
3395
3408
|
}), fe();
|
|
@@ -3400,49 +3413,49 @@ function ki() {
|
|
|
3400
3413
|
window.showOpenFilePicker(h).then(function(I) {
|
|
3401
3414
|
return a(I);
|
|
3402
3415
|
}).then(function(I) {
|
|
3403
|
-
|
|
3416
|
+
W(I, null), B({
|
|
3404
3417
|
type: "closeDialog"
|
|
3405
3418
|
});
|
|
3406
3419
|
}).catch(function(I) {
|
|
3407
3420
|
ci(I) ? (le(I), B({
|
|
3408
3421
|
type: "closeDialog"
|
|
3409
|
-
})) : li(I) ? (
|
|
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);
|
|
3410
3423
|
});
|
|
3411
3424
|
return;
|
|
3412
3425
|
}
|
|
3413
3426
|
Z.current && (B({
|
|
3414
3427
|
type: "openDialog"
|
|
3415
3428
|
}), fe(), Z.current.value = null, Z.current.click());
|
|
3416
|
-
}, [B, fe, le,
|
|
3417
|
-
!X.current || !X.current.isEqualNode(h.target) || (h.key === " " || h.key === "Enter" || h.keyCode === 32 || h.keyCode === 13) && (h.preventDefault(),
|
|
3418
|
-
}, [X,
|
|
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() {
|
|
3419
3432
|
B({
|
|
3420
3433
|
type: "focus"
|
|
3421
3434
|
});
|
|
3422
|
-
}, []),
|
|
3435
|
+
}, []), Pe = de(function() {
|
|
3423
3436
|
B({
|
|
3424
3437
|
type: "blur"
|
|
3425
3438
|
});
|
|
3426
3439
|
}, []), Dt = de(function() {
|
|
3427
|
-
k || (ii() ? setTimeout(
|
|
3428
|
-
}, [k,
|
|
3440
|
+
k || (ii() ? setTimeout(x, 0) : x());
|
|
3441
|
+
}, [k, x]), De = function(I) {
|
|
3429
3442
|
return o ? null : I;
|
|
3430
3443
|
}, tt = function(I) {
|
|
3431
3444
|
return p ? null : De(I);
|
|
3432
3445
|
}, qe = function(I) {
|
|
3433
|
-
return
|
|
3446
|
+
return E ? null : De(I);
|
|
3434
3447
|
}, He = function(I) {
|
|
3435
|
-
|
|
3448
|
+
z && I.stopPropagation();
|
|
3436
3449
|
}, Ln = Oe(function() {
|
|
3437
3450
|
return function() {
|
|
3438
|
-
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,
|
|
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);
|
|
3439
3452
|
return Q(Q(St({
|
|
3440
3453
|
onKeyDown: tt(Ce(ve, _e)),
|
|
3441
|
-
onFocus: tt(Ce(
|
|
3442
|
-
onBlur: tt(Ce(Le,
|
|
3454
|
+
onFocus: tt(Ce(Fe, Ne)),
|
|
3455
|
+
onBlur: tt(Ce(Le, Pe)),
|
|
3443
3456
|
onClick: De(Ce(nt, Dt)),
|
|
3444
|
-
onDragEnter: qe(Ce(ot,
|
|
3445
|
-
onDragOver: qe(Ce(at,
|
|
3457
|
+
onDragEnter: qe(Ce(ot, F)),
|
|
3458
|
+
onDragOver: qe(Ce(at, q)),
|
|
3446
3459
|
onDragLeave: qe(Ce(Ve, Y)),
|
|
3447
3460
|
onDrop: qe(Ce(it, te)),
|
|
3448
3461
|
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
@@ -3450,11 +3463,11 @@ function ki() {
|
|
|
3450
3463
|
tabIndex: 0
|
|
3451
3464
|
} : {}), rt);
|
|
3452
3465
|
};
|
|
3453
|
-
}, [X, _e, Ne,
|
|
3466
|
+
}, [X, _e, Ne, Pe, Dt, F, q, Y, te, p, E, o]), On = de(function(h) {
|
|
3454
3467
|
h.stopPropagation();
|
|
3455
|
-
}, []),
|
|
3468
|
+
}, []), zn = Oe(function() {
|
|
3456
3469
|
return function() {
|
|
3457
|
-
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,
|
|
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({
|
|
3458
3471
|
accept: oe,
|
|
3459
3472
|
multiple: s,
|
|
3460
3473
|
type: "file",
|
|
@@ -3474,16 +3487,16 @@ function ki() {
|
|
|
3474
3487
|
onClick: De(Ce(ve, On)),
|
|
3475
3488
|
tabIndex: -1
|
|
3476
3489
|
}, ee, Z);
|
|
3477
|
-
return Q(Q({}, Le),
|
|
3490
|
+
return Q(Q({}, Le), Fe);
|
|
3478
3491
|
};
|
|
3479
3492
|
}, [Z, n, s, te, o]);
|
|
3480
3493
|
return Q(Q({}, K), {}, {
|
|
3481
3494
|
isFocused: f && !o,
|
|
3482
3495
|
getRootProps: Ln,
|
|
3483
|
-
getInputProps:
|
|
3496
|
+
getInputProps: zn,
|
|
3484
3497
|
rootRef: X,
|
|
3485
3498
|
inputRef: Z,
|
|
3486
|
-
open: De(
|
|
3499
|
+
open: De(x)
|
|
3487
3500
|
});
|
|
3488
3501
|
}
|
|
3489
3502
|
function Ci(e, t) {
|
|
@@ -3535,33 +3548,33 @@ const Ti = (e) => {
|
|
|
3535
3548
|
multiple: s,
|
|
3536
3549
|
maxFiles: u,
|
|
3537
3550
|
files: c = []
|
|
3538
|
-
} = e,
|
|
3539
|
-
(
|
|
3551
|
+
} = e, d = de(
|
|
3552
|
+
(l) => {
|
|
3540
3553
|
if (!s) {
|
|
3541
|
-
t(
|
|
3554
|
+
t(l, r);
|
|
3542
3555
|
return;
|
|
3543
3556
|
}
|
|
3544
|
-
const
|
|
3545
|
-
if (u &&
|
|
3546
|
-
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);
|
|
3547
3560
|
return;
|
|
3548
3561
|
}
|
|
3549
|
-
t(
|
|
3562
|
+
t(v, r);
|
|
3550
3563
|
},
|
|
3551
3564
|
[c, u, s, r, t]
|
|
3552
3565
|
);
|
|
3553
|
-
return /* @__PURE__ */ m(et, { multiple: s, onDrop:
|
|
3554
|
-
/* @__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 }),
|
|
3555
3568
|
n
|
|
3556
3569
|
] }) });
|
|
3557
|
-
}, 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 = {
|
|
3558
3571
|
spDropdown: Ei,
|
|
3559
3572
|
spDropdown__labelText: Si,
|
|
3560
3573
|
spDropdown__tooltipContainer: Ni,
|
|
3561
3574
|
spDropdown__dropdownList: Ii,
|
|
3562
|
-
spDropdown__dropdownListHeader:
|
|
3575
|
+
spDropdown__dropdownListHeader: Ai,
|
|
3563
3576
|
spDropdown__dopdownListItem: Ri,
|
|
3564
|
-
spDropdown__dopdownListItem_textCenter:
|
|
3577
|
+
spDropdown__dopdownListItem_textCenter: ji,
|
|
3565
3578
|
spDropdown__downloadListItemDescription: Di
|
|
3566
3579
|
}, Hs = (e) => {
|
|
3567
3580
|
const {
|
|
@@ -3579,20 +3592,20 @@ const Ti = (e) => {
|
|
|
3579
3592
|
[Se.spDropdown__tooltipContainer]: !0
|
|
3580
3593
|
}), c = _({
|
|
3581
3594
|
[Se.spDropdown__dropdownList]: !0
|
|
3582
|
-
}), l = _({
|
|
3583
|
-
[Se.spDropdown__dropdownListHeader]: !0
|
|
3584
3595
|
}), d = _({
|
|
3596
|
+
[Se.spDropdown__dropdownListHeader]: !0
|
|
3597
|
+
}), l = _({
|
|
3585
3598
|
[Se.spDropdown__downloadListItemDescription]: !0
|
|
3586
|
-
}), [
|
|
3599
|
+
}), [v, y] = ie(!1);
|
|
3587
3600
|
return /* @__PURE__ */ m(
|
|
3588
3601
|
It,
|
|
3589
3602
|
{
|
|
3590
3603
|
hover: !1,
|
|
3591
3604
|
triggerAction: () => y(!0),
|
|
3592
3605
|
actionOnClose: () => y(!1),
|
|
3593
|
-
text: /* @__PURE__ */
|
|
3594
|
-
n && /* @__PURE__ */ m("div", { className:
|
|
3595
|
-
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(
|
|
3596
3609
|
"div",
|
|
3597
3610
|
{
|
|
3598
3611
|
className: _({
|
|
@@ -3602,7 +3615,7 @@ const Ti = (e) => {
|
|
|
3602
3615
|
onClick: g.onClick,
|
|
3603
3616
|
children: [
|
|
3604
3617
|
g.name,
|
|
3605
|
-
g.description && /* @__PURE__ */ m("span", { className:
|
|
3618
|
+
g.description && /* @__PURE__ */ m("span", { className: l, children: g.description })
|
|
3606
3619
|
]
|
|
3607
3620
|
},
|
|
3608
3621
|
S
|
|
@@ -3612,16 +3625,16 @@ const Ti = (e) => {
|
|
|
3612
3625
|
noPadding: !0,
|
|
3613
3626
|
isToggleClick: !0,
|
|
3614
3627
|
isStopPropagationClickOnTrigger: !0,
|
|
3615
|
-
trigger: /* @__PURE__ */
|
|
3628
|
+
trigger: /* @__PURE__ */ H("div", { className: r, children: [
|
|
3616
3629
|
/* @__PURE__ */ m("div", { className: s, children: t }),
|
|
3617
|
-
/* @__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 }) })
|
|
3618
3631
|
] })
|
|
3619
3632
|
}
|
|
3620
3633
|
);
|
|
3621
3634
|
}, Li = "_ellipsisTextWithTooltip_1nhiw_43", Oi = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", nn = {
|
|
3622
3635
|
ellipsisTextWithTooltip: Li,
|
|
3623
3636
|
ellipsisTextWithTooltip__tooltip: Oi
|
|
3624
|
-
},
|
|
3637
|
+
}, zi = (e) => {
|
|
3625
3638
|
const {
|
|
3626
3639
|
text: t,
|
|
3627
3640
|
classNameRoot: n,
|
|
@@ -3630,14 +3643,14 @@ const Ti = (e) => {
|
|
|
3630
3643
|
classNameBaseTooltipContentRoot: i,
|
|
3631
3644
|
classNameBaseTooltipRoot: r,
|
|
3632
3645
|
...s
|
|
3633
|
-
} = e, u = ue(null), [c,
|
|
3646
|
+
} = e, u = ue(null), [c, d] = ie(!1);
|
|
3634
3647
|
ne(() => {
|
|
3635
|
-
u.current &&
|
|
3648
|
+
u.current && d(u.current.scrollWidth > u.current.clientWidth);
|
|
3636
3649
|
}, [t]);
|
|
3637
|
-
const
|
|
3650
|
+
const l = _({
|
|
3638
3651
|
[nn.ellipsisTextWithTooltip]: !0,
|
|
3639
3652
|
...n && { [n]: !0 }
|
|
3640
|
-
}),
|
|
3653
|
+
}), v = _({
|
|
3641
3654
|
[nn.ellipsisTextWithTooltip__tooltip]: !0,
|
|
3642
3655
|
...o && { [o]: !0 }
|
|
3643
3656
|
}), y = _({
|
|
@@ -3646,19 +3659,19 @@ const Ti = (e) => {
|
|
|
3646
3659
|
return /* @__PURE__ */ m(
|
|
3647
3660
|
It,
|
|
3648
3661
|
{
|
|
3649
|
-
classNameTooltip:
|
|
3662
|
+
classNameTooltip: v,
|
|
3650
3663
|
classNameTriggerTooltip: y,
|
|
3651
3664
|
classNameBaseTooltipContentRoot: i,
|
|
3652
3665
|
classNameBaseTooltipRoot: r,
|
|
3653
3666
|
isVisibleTooltip: c,
|
|
3654
3667
|
text: t,
|
|
3655
|
-
trigger: /* @__PURE__ */ m(Ee, { ...s, classNameRoot:
|
|
3668
|
+
trigger: /* @__PURE__ */ m(Ee, { ...s, classNameRoot: l, isEllipsis: !0, ref: u, children: t })
|
|
3656
3669
|
}
|
|
3657
3670
|
);
|
|
3658
|
-
},
|
|
3659
|
-
spForm:
|
|
3660
|
-
spForm_fullWidth:
|
|
3661
|
-
spForm_withSeparator:
|
|
3671
|
+
}, Pi = "_spForm_zefbj_43", Fi = "_spForm_fullWidth_zefbj_46", Bi = "_spForm_withSeparator_zefbj_49", We = {
|
|
3672
|
+
spForm: Pi,
|
|
3673
|
+
spForm_fullWidth: Fi,
|
|
3674
|
+
spForm_withSeparator: Bi,
|
|
3662
3675
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3663
3676
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
3664
3677
|
}, Vs = (e) => {
|
|
@@ -3679,8 +3692,8 @@ const Ti = (e) => {
|
|
|
3679
3692
|
[We.spForm_withSeparator]: i,
|
|
3680
3693
|
...s && { [s]: !0 }
|
|
3681
3694
|
});
|
|
3682
|
-
return /* @__PURE__ */ m("form", { ...u, onSubmit: (
|
|
3683
|
-
|
|
3695
|
+
return /* @__PURE__ */ m("form", { ...u, onSubmit: (l) => {
|
|
3696
|
+
l.preventDefault(), o && o();
|
|
3684
3697
|
}, className: c, children: n });
|
|
3685
3698
|
}, Wi = "_spLabel_g0hfy_43", Mi = "_spLabel__text_g0hfy_52", $i = "_spLabel__tooltip_g0hfy_62", qi = "_spLabel__required_g0hfy_67", Ke = {
|
|
3686
3699
|
spLabel: Wi,
|
|
@@ -3702,13 +3715,13 @@ const Ti = (e) => {
|
|
|
3702
3715
|
[Ke.spLabel__text]: !0
|
|
3703
3716
|
}), c = _({
|
|
3704
3717
|
[Ke.spLabel__required]: t
|
|
3705
|
-
}),
|
|
3718
|
+
}), d = _({
|
|
3706
3719
|
[Ke.spLabel__tooltip]: !0
|
|
3707
3720
|
});
|
|
3708
|
-
return /* @__PURE__ */
|
|
3721
|
+
return /* @__PURE__ */ H("div", { className: s, children: [
|
|
3709
3722
|
/* @__PURE__ */ m("label", { className: u, children: n }),
|
|
3710
3723
|
t && /* @__PURE__ */ m("div", { className: c, children: "*" }),
|
|
3711
|
-
o && /* @__PURE__ */ m("div", { className:
|
|
3724
|
+
o && /* @__PURE__ */ m("div", { className: d, children: /* @__PURE__ */ m(
|
|
3712
3725
|
Je,
|
|
3713
3726
|
{
|
|
3714
3727
|
position: a,
|
|
@@ -3738,43 +3751,43 @@ const Ti = (e) => {
|
|
|
3738
3751
|
error: s,
|
|
3739
3752
|
required: u,
|
|
3740
3753
|
name: c,
|
|
3741
|
-
isClearable:
|
|
3742
|
-
pattern:
|
|
3743
|
-
onMouseEnter:
|
|
3754
|
+
isClearable: d,
|
|
3755
|
+
pattern: l,
|
|
3756
|
+
onMouseEnter: v,
|
|
3744
3757
|
infoTooltipText: y,
|
|
3745
3758
|
tooltipPosition: w,
|
|
3746
3759
|
isVisibleDefaultTitle: g = !0,
|
|
3747
3760
|
placeholder: S = "Введите...",
|
|
3748
|
-
classNameRoot:
|
|
3761
|
+
classNameRoot: L,
|
|
3749
3762
|
classNameError: V,
|
|
3750
|
-
classNameLabel:
|
|
3763
|
+
classNameLabel: R,
|
|
3751
3764
|
classNameBaseTooltipRoot: k,
|
|
3752
3765
|
...p
|
|
3753
|
-
} = e,
|
|
3766
|
+
} = e, E = _({
|
|
3754
3767
|
[Te.spInput]: !0,
|
|
3755
3768
|
[Te.spInput_error]: !!s,
|
|
3756
|
-
...
|
|
3757
|
-
}),
|
|
3769
|
+
...L && { [L]: !0 }
|
|
3770
|
+
}), z = _({
|
|
3758
3771
|
[Te.spInput__container]: !0
|
|
3759
|
-
}),
|
|
3772
|
+
}), D = _({
|
|
3760
3773
|
[Te.spInput__control]: !0,
|
|
3761
3774
|
[Te.spInput__control_disabled]: r,
|
|
3762
3775
|
[Te[`spInput__control_${i}`]]: i,
|
|
3763
|
-
[Te.spInput__control_clearable]:
|
|
3776
|
+
[Te.spInput__control_clearable]: d
|
|
3764
3777
|
}), J = _({
|
|
3765
3778
|
[Te.spInput__clear]: !0
|
|
3766
3779
|
}), oe = _({
|
|
3767
3780
|
[Te.spInput__error]: !0,
|
|
3768
3781
|
...V && { [V]: !0 }
|
|
3769
3782
|
}), me = _({
|
|
3770
|
-
...
|
|
3783
|
+
...R && { [R]: !0 }
|
|
3771
3784
|
}), fe = (Z) => {
|
|
3772
3785
|
o(Z, { name: c, value: "" });
|
|
3773
3786
|
}, le = (Z) => {
|
|
3774
|
-
const { value: C, name:
|
|
3775
|
-
|
|
3787
|
+
const { value: C, name: M } = Z.target;
|
|
3788
|
+
l && C && !new RegExp(l).test(C) || o(Z, { value: C, name: M });
|
|
3776
3789
|
};
|
|
3777
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ H("div", { className: E, children: [
|
|
3778
3791
|
a && /* @__PURE__ */ m(
|
|
3779
3792
|
Rt,
|
|
3780
3793
|
{
|
|
@@ -3786,7 +3799,7 @@ const Ti = (e) => {
|
|
|
3786
3799
|
classNameBaseTooltipRoot: k
|
|
3787
3800
|
}
|
|
3788
3801
|
),
|
|
3789
|
-
/* @__PURE__ */
|
|
3802
|
+
/* @__PURE__ */ H("div", { className: z, onMouseEnter: v, children: [
|
|
3790
3803
|
/* @__PURE__ */ m(
|
|
3791
3804
|
"input",
|
|
3792
3805
|
{
|
|
@@ -3797,11 +3810,11 @@ const Ti = (e) => {
|
|
|
3797
3810
|
title: g ? n : void 0,
|
|
3798
3811
|
value: n,
|
|
3799
3812
|
name: c,
|
|
3800
|
-
className:
|
|
3813
|
+
className: D,
|
|
3801
3814
|
ref: t
|
|
3802
3815
|
}
|
|
3803
3816
|
),
|
|
3804
|
-
|
|
3817
|
+
d && n && !r && /* @__PURE__ */ m(he, { onClick: fe, className: J, name: pe.Trash })
|
|
3805
3818
|
] }),
|
|
3806
3819
|
s && /* @__PURE__ */ m("div", { className: oe, children: s })
|
|
3807
3820
|
] });
|
|
@@ -3832,31 +3845,31 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3832
3845
|
multiple: s,
|
|
3833
3846
|
maxFiles: u,
|
|
3834
3847
|
files: c = [],
|
|
3835
|
-
infoTooltipText:
|
|
3836
|
-
tooltipPosition:
|
|
3837
|
-
classNameRoot:
|
|
3848
|
+
infoTooltipText: d,
|
|
3849
|
+
tooltipPosition: l = se.TopRight,
|
|
3850
|
+
classNameRoot: v,
|
|
3838
3851
|
error: y
|
|
3839
3852
|
} = e, w = c.map((p) => p.name), g = (w == null ? void 0 : w.length) > 0, S = _({
|
|
3840
3853
|
[xe.spInputFiles]: !0,
|
|
3841
3854
|
[xe.spInputFiles_error]: !!y,
|
|
3842
3855
|
[xe.spInputFiles_disabled]: r,
|
|
3843
3856
|
[xe.spInputFiles_fileUploaded]: g,
|
|
3844
|
-
...
|
|
3845
|
-
}),
|
|
3846
|
-
const
|
|
3847
|
-
|
|
3857
|
+
...v && { [v]: !0 }
|
|
3858
|
+
}), L = (p) => {
|
|
3859
|
+
const E = [...c], z = E.findIndex((D) => D.name === p);
|
|
3860
|
+
E.splice(z, 1), o(E, n);
|
|
3848
3861
|
}, V = (p) => {
|
|
3849
3862
|
p.stopPropagation(), o([], n);
|
|
3850
|
-
},
|
|
3863
|
+
}, R = () => s ? /* @__PURE__ */ m("ul", { className: xe.spInputFiles__fileNamesList, children: w.map((p, E) => /* @__PURE__ */ H(
|
|
3851
3864
|
"li",
|
|
3852
3865
|
{
|
|
3853
3866
|
className: xe.spInputFiles__fileNamesListItem,
|
|
3854
|
-
onClick: (
|
|
3855
|
-
|
|
3867
|
+
onClick: (z) => {
|
|
3868
|
+
z.stopPropagation(), L(p);
|
|
3856
3869
|
},
|
|
3857
3870
|
children: [
|
|
3858
3871
|
/* @__PURE__ */ m(
|
|
3859
|
-
|
|
3872
|
+
zi,
|
|
3860
3873
|
{
|
|
3861
3874
|
type: "p2",
|
|
3862
3875
|
text: p,
|
|
@@ -3866,15 +3879,15 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3866
3879
|
/* @__PURE__ */ m("div", { className: xe.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ m(he, { name: pe.Trash }) })
|
|
3867
3880
|
]
|
|
3868
3881
|
},
|
|
3869
|
-
|
|
3870
|
-
)) }) : /* @__PURE__ */ m(Ee, { isEllipsis: !0, children: w[0] }), k = () => /* @__PURE__ */
|
|
3871
|
-
g ?
|
|
3872
|
-
g ? /* @__PURE__ */ m("div", { className: xe.spInputFiles__delete, onClick: V, children: /* @__PURE__ */ m(he, { name: pe.Close }) }) :
|
|
3882
|
+
E
|
|
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(
|
|
3873
3886
|
Je,
|
|
3874
3887
|
{
|
|
3875
3888
|
classNameTooltip: xe.spInputFiles__tooltipWrapper,
|
|
3876
|
-
position:
|
|
3877
|
-
text:
|
|
3889
|
+
position: l,
|
|
3890
|
+
text: d,
|
|
3878
3891
|
classNameTriggerTooltip: xe.spInputFiles__tooltip
|
|
3879
3892
|
}
|
|
3880
3893
|
)
|
|
@@ -3890,8 +3903,8 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3890
3903
|
accept: i,
|
|
3891
3904
|
onDropFiles: o,
|
|
3892
3905
|
disabled: r || g,
|
|
3893
|
-
children: /* @__PURE__ */
|
|
3894
|
-
/* @__PURE__ */
|
|
3906
|
+
children: /* @__PURE__ */ H("div", { className: S, children: [
|
|
3907
|
+
/* @__PURE__ */ H("div", { className: xe.spInputFiles__control, children: [
|
|
3895
3908
|
/* @__PURE__ */ m(he, { name: g ? pe.Check : pe.Upload }),
|
|
3896
3909
|
k()
|
|
3897
3910
|
] }),
|
|
@@ -3906,58 +3919,58 @@ const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "
|
|
|
3906
3919
|
isTablet: !1
|
|
3907
3920
|
}
|
|
3908
3921
|
});
|
|
3909
|
-
var
|
|
3910
|
-
|
|
3911
|
-
|
|
3922
|
+
var jt = {};
|
|
3923
|
+
jt.match = br;
|
|
3924
|
+
jt.parse = An;
|
|
3912
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)?$/;
|
|
3913
3926
|
function br(e, t) {
|
|
3914
|
-
return
|
|
3927
|
+
return An(e).some(function(n) {
|
|
3915
3928
|
var o = n.inverse, a = n.type === "all" || t.type === n.type;
|
|
3916
3929
|
if (a && o || !(a || o))
|
|
3917
3930
|
return !1;
|
|
3918
3931
|
var i = n.expressions.every(function(r) {
|
|
3919
|
-
var s = r.feature, u = r.modifier, c = r.value,
|
|
3920
|
-
if (!
|
|
3932
|
+
var s = r.feature, u = r.modifier, c = r.value, d = t[s];
|
|
3933
|
+
if (!d)
|
|
3921
3934
|
return !1;
|
|
3922
3935
|
switch (s) {
|
|
3923
3936
|
case "orientation":
|
|
3924
3937
|
case "scan":
|
|
3925
|
-
return
|
|
3938
|
+
return d.toLowerCase() === c.toLowerCase();
|
|
3926
3939
|
case "width":
|
|
3927
3940
|
case "height":
|
|
3928
3941
|
case "device-width":
|
|
3929
3942
|
case "device-height":
|
|
3930
|
-
c = rn(c),
|
|
3943
|
+
c = rn(c), d = rn(d);
|
|
3931
3944
|
break;
|
|
3932
3945
|
case "resolution":
|
|
3933
|
-
c = an(c),
|
|
3946
|
+
c = an(c), d = an(d);
|
|
3934
3947
|
break;
|
|
3935
3948
|
case "aspect-ratio":
|
|
3936
3949
|
case "device-aspect-ratio":
|
|
3937
3950
|
case /* Deprecated */
|
|
3938
3951
|
"device-pixel-ratio":
|
|
3939
|
-
c = on(c),
|
|
3952
|
+
c = on(c), d = on(d);
|
|
3940
3953
|
break;
|
|
3941
3954
|
case "grid":
|
|
3942
3955
|
case "color":
|
|
3943
3956
|
case "color-index":
|
|
3944
3957
|
case "monochrome":
|
|
3945
|
-
c = parseInt(c, 10) || 1,
|
|
3958
|
+
c = parseInt(c, 10) || 1, d = parseInt(d, 10) || 0;
|
|
3946
3959
|
break;
|
|
3947
3960
|
}
|
|
3948
3961
|
switch (u) {
|
|
3949
3962
|
case "min":
|
|
3950
|
-
return
|
|
3963
|
+
return d >= c;
|
|
3951
3964
|
case "max":
|
|
3952
|
-
return
|
|
3965
|
+
return d <= c;
|
|
3953
3966
|
default:
|
|
3954
|
-
return
|
|
3967
|
+
return d === c;
|
|
3955
3968
|
}
|
|
3956
3969
|
});
|
|
3957
3970
|
return i && !o || !i && o;
|
|
3958
3971
|
});
|
|
3959
3972
|
}
|
|
3960
|
-
function
|
|
3973
|
+
function An(e) {
|
|
3961
3974
|
return e.split(",").map(function(t) {
|
|
3962
3975
|
t = t.trim();
|
|
3963
3976
|
var n = t.match(_r), o = n[1], a = n[2], i = n[3] || "", r = {};
|
|
@@ -4007,7 +4020,7 @@ function rn(e) {
|
|
|
4007
4020
|
return t;
|
|
4008
4021
|
}
|
|
4009
4022
|
}
|
|
4010
|
-
var yr =
|
|
4023
|
+
var yr = jt.match, sn = typeof window < "u" ? window.matchMedia : null;
|
|
4011
4024
|
function wr(e, t, n) {
|
|
4012
4025
|
var o = this, a;
|
|
4013
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;
|
|
@@ -4054,37 +4067,37 @@ function Ir(e, t) {
|
|
|
4054
4067
|
}
|
|
4055
4068
|
return !0;
|
|
4056
4069
|
}
|
|
4057
|
-
const ce =
|
|
4058
|
-
all:
|
|
4059
|
-
grid:
|
|
4060
|
-
aural:
|
|
4061
|
-
braille:
|
|
4062
|
-
handheld:
|
|
4063
|
-
print:
|
|
4064
|
-
projection:
|
|
4065
|
-
screen:
|
|
4066
|
-
tty:
|
|
4067
|
-
tv:
|
|
4068
|
-
embossed:
|
|
4069
|
-
},
|
|
4070
|
-
orientation:
|
|
4071
|
-
scan:
|
|
4072
|
-
aspectRatio:
|
|
4073
|
-
deviceAspectRatio:
|
|
4070
|
+
const ce = T.oneOfType([T.string, T.number]), jn = {
|
|
4071
|
+
all: T.bool,
|
|
4072
|
+
grid: T.bool,
|
|
4073
|
+
aural: T.bool,
|
|
4074
|
+
braille: T.bool,
|
|
4075
|
+
handheld: T.bool,
|
|
4076
|
+
print: T.bool,
|
|
4077
|
+
projection: T.bool,
|
|
4078
|
+
screen: T.bool,
|
|
4079
|
+
tty: T.bool,
|
|
4080
|
+
tv: T.bool,
|
|
4081
|
+
embossed: T.bool
|
|
4082
|
+
}, Ar = {
|
|
4083
|
+
orientation: T.oneOf(["portrait", "landscape"]),
|
|
4084
|
+
scan: T.oneOf(["progressive", "interlace"]),
|
|
4085
|
+
aspectRatio: T.string,
|
|
4086
|
+
deviceAspectRatio: T.string,
|
|
4074
4087
|
height: ce,
|
|
4075
4088
|
deviceHeight: ce,
|
|
4076
4089
|
width: ce,
|
|
4077
4090
|
deviceWidth: ce,
|
|
4078
|
-
color:
|
|
4079
|
-
colorIndex:
|
|
4080
|
-
monochrome:
|
|
4091
|
+
color: T.bool,
|
|
4092
|
+
colorIndex: T.bool,
|
|
4093
|
+
monochrome: T.bool,
|
|
4081
4094
|
resolution: ce,
|
|
4082
|
-
type: Object.keys(
|
|
4083
|
-
}, { type: Us, ...Rr } =
|
|
4084
|
-
minAspectRatio:
|
|
4085
|
-
maxAspectRatio:
|
|
4086
|
-
minDeviceAspectRatio:
|
|
4087
|
-
maxDeviceAspectRatio:
|
|
4095
|
+
type: Object.keys(jn)
|
|
4096
|
+
}, { type: Us, ...Rr } = Ar, jr = {
|
|
4097
|
+
minAspectRatio: T.string,
|
|
4098
|
+
maxAspectRatio: T.string,
|
|
4099
|
+
minDeviceAspectRatio: T.string,
|
|
4100
|
+
maxDeviceAspectRatio: T.string,
|
|
4088
4101
|
minHeight: ce,
|
|
4089
4102
|
maxHeight: ce,
|
|
4090
4103
|
minDeviceHeight: ce,
|
|
@@ -4093,35 +4106,35 @@ const ce = E.oneOfType([E.string, E.number]), An = {
|
|
|
4093
4106
|
maxWidth: ce,
|
|
4094
4107
|
minDeviceWidth: ce,
|
|
4095
4108
|
maxDeviceWidth: ce,
|
|
4096
|
-
minColor:
|
|
4097
|
-
maxColor:
|
|
4098
|
-
minColorIndex:
|
|
4099
|
-
maxColorIndex:
|
|
4100
|
-
minMonochrome:
|
|
4101
|
-
maxMonochrome:
|
|
4109
|
+
minColor: T.number,
|
|
4110
|
+
maxColor: T.number,
|
|
4111
|
+
minColorIndex: T.number,
|
|
4112
|
+
maxColorIndex: T.number,
|
|
4113
|
+
minMonochrome: T.number,
|
|
4114
|
+
maxMonochrome: T.number,
|
|
4102
4115
|
minResolution: ce,
|
|
4103
4116
|
maxResolution: ce,
|
|
4104
4117
|
...Rr
|
|
4105
|
-
}, Dr = { ...
|
|
4118
|
+
}, Dr = { ...jn, ...jr };
|
|
4106
4119
|
var Lr = {
|
|
4107
4120
|
all: Dr
|
|
4108
4121
|
};
|
|
4109
|
-
const Or = (e) => `not ${e}`,
|
|
4122
|
+
const Or = (e) => `not ${e}`, zr = (e, t) => {
|
|
4110
4123
|
const n = Rn(e);
|
|
4111
4124
|
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? Or(n) : `(${n}: ${t})`;
|
|
4112
|
-
},
|
|
4125
|
+
}, Pr = (e) => e.join(" and "), Fr = (e) => {
|
|
4113
4126
|
const t = [];
|
|
4114
4127
|
return Object.keys(Lr.all).forEach((n) => {
|
|
4115
4128
|
const o = e[n];
|
|
4116
|
-
o != null && t.push(
|
|
4117
|
-
}),
|
|
4118
|
-
},
|
|
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 = () => {
|
|
4119
4132
|
const e = ue(!1);
|
|
4120
4133
|
return ne(() => {
|
|
4121
4134
|
e.current = !0;
|
|
4122
4135
|
}, []), e.current;
|
|
4123
4136
|
}, Mr = (e) => {
|
|
4124
|
-
const t = $n(
|
|
4137
|
+
const t = $n(Br), n = () => pn(e) || pn(t), [o, a] = ie(n);
|
|
4125
4138
|
return ne(() => {
|
|
4126
4139
|
const i = n();
|
|
4127
4140
|
Ir(o, i) || a(i);
|
|
@@ -4186,11 +4199,11 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4186
4199
|
return ne(() => {
|
|
4187
4200
|
if (c.current = t, t === s.current) return;
|
|
4188
4201
|
r.current && cancelAnimationFrame(r.current), s.current = a, u.current = performance.now();
|
|
4189
|
-
const
|
|
4190
|
-
const
|
|
4191
|
-
i(
|
|
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));
|
|
4192
4205
|
};
|
|
4193
|
-
return r.current = requestAnimationFrame(
|
|
4206
|
+
return r.current = requestAnimationFrame(d), () => {
|
|
4194
4207
|
r.current && cancelAnimationFrame(r.current);
|
|
4195
4208
|
};
|
|
4196
4209
|
}, [t, n, o]), a;
|
|
@@ -4213,17 +4226,17 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4213
4226
|
children: i,
|
|
4214
4227
|
doneValue: r = 100,
|
|
4215
4228
|
animationVariant: s = "backgroundProgress"
|
|
4216
|
-
} = e, [u, c] = ie(!1),
|
|
4229
|
+
} = e, [u, c] = ie(!1), d = ue(), l = Yr({
|
|
4217
4230
|
targetValue: t,
|
|
4218
4231
|
duration: a,
|
|
4219
4232
|
doneValue: r
|
|
4220
4233
|
});
|
|
4221
|
-
ne(() => (
|
|
4234
|
+
ne(() => (l === r ? d.current = window.setTimeout(() => {
|
|
4222
4235
|
c(!1);
|
|
4223
|
-
}, 500) : (c(!0),
|
|
4224
|
-
|
|
4225
|
-
}), [
|
|
4226
|
-
const
|
|
4236
|
+
}, 500) : (c(!0), d.current && window.clearTimeout(d.current)), () => {
|
|
4237
|
+
d.current && window.clearTimeout(d.current);
|
|
4238
|
+
}), [l, r]);
|
|
4239
|
+
const v = _({
|
|
4227
4240
|
[Ie.progressWrapper]: !0,
|
|
4228
4241
|
[Ie.progressWrapper_loading]: u,
|
|
4229
4242
|
...n && { [n]: !0 }
|
|
@@ -4236,9 +4249,9 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4236
4249
|
[Ie[`progressWrapper__childrenWrapper--animated-${s}`]]: s,
|
|
4237
4250
|
[Ie.progressWrapper__childrenWrapper_loading]: u
|
|
4238
4251
|
}), g = {
|
|
4239
|
-
"--progress": `${
|
|
4252
|
+
"--progress": `${l / r * 100}%`
|
|
4240
4253
|
};
|
|
4241
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ H("div", { className: v, children: [
|
|
4242
4255
|
/* @__PURE__ */ m(
|
|
4243
4256
|
"div",
|
|
4244
4257
|
{
|
|
@@ -4247,8 +4260,8 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4247
4260
|
children: i
|
|
4248
4261
|
}
|
|
4249
4262
|
),
|
|
4250
|
-
u && /* @__PURE__ */
|
|
4251
|
-
|
|
4263
|
+
u && /* @__PURE__ */ H(Ee, { classNameRoot: y, children: [
|
|
4264
|
+
l,
|
|
4252
4265
|
"%"
|
|
4253
4266
|
] })
|
|
4254
4267
|
] });
|
|
@@ -4278,75 +4291,75 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4278
4291
|
onMouseEnter: s,
|
|
4279
4292
|
error: u,
|
|
4280
4293
|
label: c,
|
|
4281
|
-
infoTooltipText:
|
|
4282
|
-
tooltipPosition:
|
|
4283
|
-
disabled:
|
|
4294
|
+
infoTooltipText: d,
|
|
4295
|
+
tooltipPosition: l,
|
|
4296
|
+
disabled: v,
|
|
4284
4297
|
required: y,
|
|
4285
4298
|
maxHeightList: w = es,
|
|
4286
4299
|
isVisibleDefaultTitle: g = !0,
|
|
4287
4300
|
isScrollableList: S = !1,
|
|
4288
|
-
classNameRoot:
|
|
4301
|
+
classNameRoot: L,
|
|
4289
4302
|
classNameError: V,
|
|
4290
|
-
classNameLabel:
|
|
4303
|
+
classNameLabel: R,
|
|
4291
4304
|
classNameBaseTooltipRoot: k
|
|
4292
|
-
} = e, [p,
|
|
4305
|
+
} = e, [p, E] = ie(!1), z = ue(null);
|
|
4293
4306
|
_n(
|
|
4294
|
-
[
|
|
4307
|
+
[z],
|
|
4295
4308
|
() => {
|
|
4296
|
-
|
|
4309
|
+
E(!1);
|
|
4297
4310
|
},
|
|
4298
4311
|
p
|
|
4299
4312
|
);
|
|
4300
|
-
const
|
|
4301
|
-
r(f, { value: b, name: a }),
|
|
4313
|
+
const D = t.find((f) => f.value === o), J = (f, b) => {
|
|
4314
|
+
r(f, { value: b, name: a }), E(!1);
|
|
4302
4315
|
}, oe = () => {
|
|
4303
|
-
|
|
4316
|
+
v || E(!p);
|
|
4304
4317
|
}, me = _({
|
|
4305
4318
|
[ge.spSelect]: !0,
|
|
4306
4319
|
[ge.spSelect_error]: !!u,
|
|
4307
|
-
...
|
|
4320
|
+
...L && { [L]: !0 }
|
|
4308
4321
|
}), fe = _({
|
|
4309
4322
|
[ge.spSelect__container]: !0
|
|
4310
4323
|
}), le = _({
|
|
4311
4324
|
[ge.spSelect__control]: !0,
|
|
4312
4325
|
[ge[`spSelect__control_${i}`]]: i,
|
|
4313
|
-
[ge.spSelect__control_disabled]:
|
|
4326
|
+
[ge.spSelect__control_disabled]: v
|
|
4314
4327
|
}), X = _({
|
|
4315
4328
|
[ge.spSelect__value]: !0,
|
|
4316
|
-
[ge.spSelect__value_empty]: !
|
|
4329
|
+
[ge.spSelect__value_empty]: !D
|
|
4317
4330
|
}), Z = _({
|
|
4318
4331
|
[ge.spSelect__icon]: !0
|
|
4319
4332
|
}), C = _({
|
|
4320
4333
|
[ge.spSelect__list]: !0,
|
|
4321
4334
|
[ge.spSelect__list_scrollable]: S
|
|
4322
|
-
}),
|
|
4323
|
-
...
|
|
4335
|
+
}), M = _({
|
|
4336
|
+
...R && { [R]: !0 }
|
|
4324
4337
|
}), K = _({
|
|
4325
4338
|
[ge.spSelect__error]: !0,
|
|
4326
4339
|
...V && { [V]: !0 }
|
|
4327
4340
|
});
|
|
4328
|
-
return /* @__PURE__ */
|
|
4341
|
+
return /* @__PURE__ */ H("div", { className: me, ref: z, children: [
|
|
4329
4342
|
c && /* @__PURE__ */ m(
|
|
4330
4343
|
Rt,
|
|
4331
4344
|
{
|
|
4332
|
-
classNameRoot:
|
|
4333
|
-
tooltipPosition:
|
|
4345
|
+
classNameRoot: M,
|
|
4346
|
+
tooltipPosition: l,
|
|
4334
4347
|
required: y,
|
|
4335
4348
|
label: c,
|
|
4336
|
-
infoTooltipText:
|
|
4349
|
+
infoTooltipText: d,
|
|
4337
4350
|
classNameBaseTooltipRoot: k
|
|
4338
4351
|
}
|
|
4339
4352
|
),
|
|
4340
|
-
/* @__PURE__ */
|
|
4341
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ H("div", { className: fe, onMouseEnter: s, children: [
|
|
4354
|
+
/* @__PURE__ */ H(
|
|
4342
4355
|
"div",
|
|
4343
4356
|
{
|
|
4344
|
-
tabIndex:
|
|
4357
|
+
tabIndex: v ? -1 : 0,
|
|
4345
4358
|
title: g ? o : void 0,
|
|
4346
4359
|
className: le,
|
|
4347
4360
|
onClick: oe,
|
|
4348
4361
|
children: [
|
|
4349
|
-
/* @__PURE__ */ m("div", { className: X, children: (
|
|
4362
|
+
/* @__PURE__ */ m("div", { className: X, children: (D == null ? void 0 : D.label) || n }),
|
|
4350
4363
|
/* @__PURE__ */ m(
|
|
4351
4364
|
he,
|
|
4352
4365
|
{
|
|
@@ -4365,13 +4378,13 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4365
4378
|
style: S ? { maxHeight: `${w}px` } : {},
|
|
4366
4379
|
children: t.map((f) => {
|
|
4367
4380
|
const b = f.value === o;
|
|
4368
|
-
return /* @__PURE__ */
|
|
4381
|
+
return /* @__PURE__ */ H(
|
|
4369
4382
|
"div",
|
|
4370
4383
|
{
|
|
4371
4384
|
className: _({
|
|
4372
4385
|
[ge.spSelect__option]: !0
|
|
4373
4386
|
}),
|
|
4374
|
-
onClick: (
|
|
4387
|
+
onClick: (O) => J(O, f.value),
|
|
4375
4388
|
children: [
|
|
4376
4389
|
f.label,
|
|
4377
4390
|
b && /* @__PURE__ */ m(he, { name: pe.Check, className: Z })
|
|
@@ -4395,7 +4408,7 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4395
4408
|
...i
|
|
4396
4409
|
};
|
|
4397
4410
|
return /* @__PURE__ */ m("div", { style: r, className: _(a, vs.skeleton) });
|
|
4398
|
-
}, 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 = {
|
|
4399
4412
|
spTable: xs,
|
|
4400
4413
|
spTable__tdContentCopyIcon: gs,
|
|
4401
4414
|
spTable__tdContent: hs,
|
|
@@ -4419,127 +4432,127 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4419
4432
|
...k,
|
|
4420
4433
|
isVisible: n.some((p) => !!p[k.key])
|
|
4421
4434
|
} : k).filter((k) => k.isVisible), s = _({
|
|
4422
|
-
[
|
|
4435
|
+
[ye.spTable]: !0,
|
|
4423
4436
|
...i && { [i]: !0 }
|
|
4424
4437
|
}), u = _({
|
|
4425
|
-
[
|
|
4438
|
+
[ye.spTable__tdContent]: !0
|
|
4426
4439
|
}), c = _({
|
|
4427
|
-
[
|
|
4428
|
-
}),
|
|
4429
|
-
[
|
|
4430
|
-
}), [
|
|
4431
|
-
const { text: p, rowIndex:
|
|
4432
|
-
(
|
|
4433
|
-
|
|
4434
|
-
}).catch((
|
|
4435
|
-
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);
|
|
4436
4449
|
});
|
|
4437
4450
|
}, w = () => {
|
|
4438
|
-
|
|
4439
|
-
}, g = () => /* @__PURE__ */ m("div", { className:
|
|
4451
|
+
v(null);
|
|
4452
|
+
}, g = () => /* @__PURE__ */ m("div", { className: d, children: "Данные отсутствуют" }), S = ({
|
|
4440
4453
|
row: k,
|
|
4441
4454
|
col: p
|
|
4442
4455
|
}) => {
|
|
4443
|
-
const
|
|
4444
|
-
if (!
|
|
4445
|
-
const [
|
|
4446
|
-
return /* @__PURE__ */
|
|
4447
|
-
|
|
4448
|
-
|
|
4456
|
+
const E = k[p.key];
|
|
4457
|
+
if (!E) return null;
|
|
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}` })
|
|
4449
4462
|
] });
|
|
4450
|
-
},
|
|
4451
|
-
/* @__PURE__ */ m("colgroup", { children: r.map((k, p,
|
|
4463
|
+
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ H("table", { className: s, children: [
|
|
4464
|
+
/* @__PURE__ */ m("colgroup", { children: r.map((k, p, E) => /* @__PURE__ */ m(
|
|
4452
4465
|
"col",
|
|
4453
4466
|
{
|
|
4454
4467
|
style: {
|
|
4455
|
-
width: `calc(100%/${
|
|
4468
|
+
width: `calc(100%/${E.length})`
|
|
4456
4469
|
}
|
|
4457
4470
|
},
|
|
4458
4471
|
p
|
|
4459
4472
|
)) }),
|
|
4460
4473
|
/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: r.map((k, p) => /* @__PURE__ */ m("th", { children: k.title }, p)) }) }),
|
|
4461
|
-
/* @__PURE__ */ m("tbody", { children: n.map((k, p) => k ? /* @__PURE__ */ m("tr", { children: r.map((
|
|
4462
|
-
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;
|
|
4463
4476
|
return /* @__PURE__ */ m(
|
|
4464
4477
|
"td",
|
|
4465
4478
|
{
|
|
4466
|
-
onMouseLeave:
|
|
4467
|
-
children: /* @__PURE__ */
|
|
4468
|
-
/* @__PURE__ */ m("span", { children:
|
|
4469
|
-
!ln(k[
|
|
4479
|
+
onMouseLeave: D ? w : void 0,
|
|
4480
|
+
children: /* @__PURE__ */ H("div", { className: u, children: [
|
|
4481
|
+
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
4482
|
+
!ln(k[E.key]) && E.isBeCopiedValue && /* @__PURE__ */ m(
|
|
4470
4483
|
he,
|
|
4471
4484
|
{
|
|
4472
4485
|
className: _({
|
|
4473
|
-
[
|
|
4474
|
-
[
|
|
4486
|
+
[ye.spTable__tdContentCopyIcon]: !0,
|
|
4487
|
+
[ye.spTable__tdContentCopyIcon_copied]: D
|
|
4475
4488
|
}),
|
|
4476
|
-
name:
|
|
4489
|
+
name: D ? pe.Check : pe.Copy,
|
|
4477
4490
|
onClick: () => {
|
|
4478
|
-
const J = k[
|
|
4491
|
+
const J = k[E.key];
|
|
4479
4492
|
if (!J) return null;
|
|
4480
4493
|
y({
|
|
4481
4494
|
text: J,
|
|
4482
4495
|
rowIndex: p,
|
|
4483
|
-
colIndex:
|
|
4496
|
+
colIndex: z
|
|
4484
4497
|
});
|
|
4485
4498
|
}
|
|
4486
4499
|
}
|
|
4487
4500
|
)
|
|
4488
4501
|
] })
|
|
4489
4502
|
},
|
|
4490
|
-
`${p}:${
|
|
4503
|
+
`${p}:${z}`
|
|
4491
4504
|
);
|
|
4492
4505
|
}) }, p) : null) })
|
|
4493
4506
|
] }) : g(), V = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ m(
|
|
4494
4507
|
"div",
|
|
4495
4508
|
{
|
|
4496
4509
|
className: _({
|
|
4497
|
-
[
|
|
4510
|
+
[ye.spStringsGroup]: !0
|
|
4498
4511
|
}),
|
|
4499
|
-
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((
|
|
4500
|
-
if (ln(k[
|
|
4512
|
+
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((E, z) => {
|
|
4513
|
+
if (ln(k[E.key]))
|
|
4501
4514
|
return null;
|
|
4502
|
-
const
|
|
4503
|
-
return /* @__PURE__ */
|
|
4515
|
+
const D = (l == null ? void 0 : l.rowIndex) === p && (l == null ? void 0 : l.colIndex) === z;
|
|
4516
|
+
return /* @__PURE__ */ H(
|
|
4504
4517
|
"div",
|
|
4505
4518
|
{
|
|
4506
4519
|
className: _({
|
|
4507
|
-
[
|
|
4520
|
+
[ye.spStringsGroup__groupItem]: !0
|
|
4508
4521
|
}),
|
|
4509
|
-
onMouseLeave:
|
|
4522
|
+
onMouseLeave: D ? w : void 0,
|
|
4510
4523
|
children: [
|
|
4511
4524
|
/* @__PURE__ */ m(
|
|
4512
4525
|
"div",
|
|
4513
4526
|
{
|
|
4514
4527
|
className: _({
|
|
4515
|
-
[
|
|
4528
|
+
[ye.spStringsGroup__groupItemHeader]: !0
|
|
4516
4529
|
}),
|
|
4517
|
-
children:
|
|
4530
|
+
children: E.title
|
|
4518
4531
|
}
|
|
4519
4532
|
),
|
|
4520
|
-
/* @__PURE__ */
|
|
4533
|
+
/* @__PURE__ */ H(
|
|
4521
4534
|
"div",
|
|
4522
4535
|
{
|
|
4523
4536
|
className: _({
|
|
4524
|
-
[
|
|
4537
|
+
[ye.spStringsGroup__groupItemContent]: !0
|
|
4525
4538
|
}),
|
|
4526
4539
|
children: [
|
|
4527
|
-
/* @__PURE__ */ m("span", { children:
|
|
4528
|
-
|
|
4540
|
+
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
4541
|
+
E.isBeCopiedValue && /* @__PURE__ */ m(
|
|
4529
4542
|
he,
|
|
4530
4543
|
{
|
|
4531
4544
|
className: _({
|
|
4532
|
-
[
|
|
4533
|
-
[
|
|
4545
|
+
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
4546
|
+
[ye.spStringsGroup__groupItemContentCopyIcon_copied]: D
|
|
4534
4547
|
}),
|
|
4535
|
-
name:
|
|
4548
|
+
name: D ? pe.Check : pe.Copy,
|
|
4536
4549
|
onClick: () => {
|
|
4537
|
-
const J = k[
|
|
4550
|
+
const J = k[E.key];
|
|
4538
4551
|
if (!J) return null;
|
|
4539
4552
|
y({
|
|
4540
4553
|
text: J,
|
|
4541
4554
|
rowIndex: p,
|
|
4542
|
-
colIndex:
|
|
4555
|
+
colIndex: z
|
|
4543
4556
|
});
|
|
4544
4557
|
}
|
|
4545
4558
|
}
|
|
@@ -4549,20 +4562,20 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4549
4562
|
)
|
|
4550
4563
|
]
|
|
4551
4564
|
},
|
|
4552
|
-
|
|
4565
|
+
z
|
|
4553
4566
|
);
|
|
4554
4567
|
}) }, p) : null)
|
|
4555
4568
|
}
|
|
4556
4569
|
) : g();
|
|
4557
|
-
return o ? a ?
|
|
4558
|
-
}, 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 = {
|
|
4559
4572
|
spTabs: Is,
|
|
4560
|
-
spTabs_separated:
|
|
4573
|
+
spTabs_separated: As,
|
|
4561
4574
|
"spTabs--size-md": "_spTabs--size-md_1citb_48",
|
|
4562
4575
|
spTabs__tabElement: Rs,
|
|
4563
4576
|
"spTabs--size-lg": "_spTabs--size-lg_1citb_51",
|
|
4564
4577
|
"spTabs--variant-contained": "_spTabs--variant-contained_1citb_54",
|
|
4565
|
-
spTabs__tabElement_active:
|
|
4578
|
+
spTabs__tabElement_active: js,
|
|
4566
4579
|
spTabs__triggerTooltip: Ds,
|
|
4567
4580
|
"spTabs--variant-filled": "_spTabs--variant-filled_1citb_93"
|
|
4568
4581
|
}, Js = (e) => {
|
|
@@ -4574,13 +4587,13 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4574
4587
|
variant: i = "contained",
|
|
4575
4588
|
size: r = "md"
|
|
4576
4589
|
} = e, s = _({
|
|
4577
|
-
[
|
|
4578
|
-
[
|
|
4579
|
-
[
|
|
4580
|
-
[
|
|
4590
|
+
[Ae.spTabs]: !0,
|
|
4591
|
+
[Ae.spTabs_separated]: n,
|
|
4592
|
+
[Ae[`spTabs--variant-${i}`]]: i,
|
|
4593
|
+
[Ae[`spTabs--size-${r}`]]: r,
|
|
4581
4594
|
...o && { [o]: !0 }
|
|
4582
4595
|
}), u = _({
|
|
4583
|
-
[
|
|
4596
|
+
[Ae.spTabs__triggerTooltip]: !0
|
|
4584
4597
|
}), c = () => {
|
|
4585
4598
|
switch (r) {
|
|
4586
4599
|
case "md":
|
|
@@ -4589,18 +4602,18 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4589
4602
|
return "p1";
|
|
4590
4603
|
}
|
|
4591
4604
|
};
|
|
4592
|
-
return /* @__PURE__ */ m("div", { className: s, children: t.map((
|
|
4593
|
-
const { name:
|
|
4594
|
-
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(
|
|
4595
4608
|
"div",
|
|
4596
4609
|
{
|
|
4597
4610
|
className: _({
|
|
4598
|
-
[
|
|
4599
|
-
[
|
|
4611
|
+
[Ae.spTabs__tabElement]: !0,
|
|
4612
|
+
[Ae.spTabs__tabElement_active]: y
|
|
4600
4613
|
}),
|
|
4601
4614
|
onClick: w,
|
|
4602
4615
|
children: [
|
|
4603
|
-
/* @__PURE__ */ m(Ee, { type: c(), children:
|
|
4616
|
+
/* @__PURE__ */ m(Ee, { type: c(), children: v }),
|
|
4604
4617
|
!!g && /* @__PURE__ */ m(
|
|
4605
4618
|
Je,
|
|
4606
4619
|
{
|
|
@@ -4611,20 +4624,20 @@ const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
|
4611
4624
|
)
|
|
4612
4625
|
]
|
|
4613
4626
|
},
|
|
4614
|
-
|
|
4627
|
+
d.key || l
|
|
4615
4628
|
);
|
|
4616
4629
|
}) });
|
|
4617
4630
|
}, Ls = "_spTextWithLabel_1dr7p_1", Os = {
|
|
4618
4631
|
spTextWithLabel: Ls
|
|
4619
4632
|
}, ep = (e) => {
|
|
4620
4633
|
const { children: t, label: n, style: o, ...a } = e;
|
|
4621
|
-
return /* @__PURE__ */
|
|
4634
|
+
return /* @__PURE__ */ H("div", { className: Os.spTextWithLabel, style: { ...o }, children: [
|
|
4622
4635
|
/* @__PURE__ */ m(Rt, { label: n }),
|
|
4623
4636
|
/* @__PURE__ */ m(Ee, { ...a, children: t })
|
|
4624
4637
|
] });
|
|
4625
4638
|
};
|
|
4626
4639
|
export {
|
|
4627
|
-
|
|
4640
|
+
Bs as Accordion,
|
|
4628
4641
|
Mo as ApplyButtons,
|
|
4629
4642
|
fn as BaseTooltip,
|
|
4630
4643
|
wt as Button,
|
|
@@ -4635,7 +4648,7 @@ export {
|
|
|
4635
4648
|
Hs as Dropdown,
|
|
4636
4649
|
pe as EIconName,
|
|
4637
4650
|
se as ETooltipPosition,
|
|
4638
|
-
|
|
4651
|
+
zi as EllipsisTextWithTooltip,
|
|
4639
4652
|
Vs as Form,
|
|
4640
4653
|
he as Icon,
|
|
4641
4654
|
Je as InfoTooltip,
|