test-stpr-ui-kit 0.4.37 → 0.4.39
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,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as q, jsx as m, Fragment as dn } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import $e, { useState as ie, useEffect as ne, useRef as ue, useCallback as de, forwardRef as zn, useImperativeHandle as Bn, Fragment as Wn, useMemo as Oe, useReducer as Mn, createContext as un, useContext as $n } from "react";
|
|
4
|
+
import qn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function mn(e) {
|
|
6
6
|
var t, n, o = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -38,7 +38,7 @@ const Hn = (e) => /* @__PURE__ */ N.createElement("svg", { className: "stpr-icon
|
|
|
38
38
|
plusCircle: Jn,
|
|
39
39
|
terminalSquare: no
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return $e.createElement(i[t], {
|
|
42
42
|
...o,
|
|
43
43
|
style: a
|
|
44
44
|
});
|
|
@@ -86,10 +86,10 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
86
86
|
[re.spAccordion_noBorder]: r,
|
|
87
87
|
[re.spAccordion_noPadding]: s,
|
|
88
88
|
...c && { [c]: !0 }
|
|
89
|
-
}),
|
|
89
|
+
}), H = _({
|
|
90
90
|
[re.spAccordion__header]: !0,
|
|
91
91
|
...l && { [l]: !0 }
|
|
92
|
-
}),
|
|
92
|
+
}), D = _({
|
|
93
93
|
[re.spAccordion__name]: !0,
|
|
94
94
|
[re[`spAccordion__name--level-${u}`]]: u,
|
|
95
95
|
[re.spAccordion__name_hiddenExpand]: a,
|
|
@@ -103,16 +103,16 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
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__ */ q("div", { className: L, children: [
|
|
111
|
+
/* @__PURE__ */ q("div", { className: H, children: [
|
|
112
|
+
/* @__PURE__ */ m("div", { className: D, 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,11 +134,11 @@ 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",
|
|
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", Ro = "_spButton__text_zixup_77", jo = "_spButton_primary_zixup_89", Ao = "_spButton_blue_zixup_89", Do = "_spButton_white_zixup_99", Lo = "_spButton_secondary_zixup_109", Oo = "_spButton_fullWidth_zixup_129", Po = "_spButton_disabled_zixup_132", Fo = "_spButton__spinner_zixup_141", ye = {
|
|
138
138
|
spButton: To,
|
|
139
139
|
spButton_noPadding: Eo,
|
|
140
|
-
spButton_onlyIcon:
|
|
141
|
-
spButton__iconContainer:
|
|
140
|
+
spButton_onlyIcon: So,
|
|
141
|
+
spButton__iconContainer: No,
|
|
142
142
|
spButton_link: Io,
|
|
143
143
|
spButton__text: Ro,
|
|
144
144
|
spButton_primary: jo,
|
|
@@ -168,18 +168,18 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
168
168
|
classNameIconContainerRoot: S
|
|
169
169
|
} = e, L = (k) => {
|
|
170
170
|
s || a == null || a(k);
|
|
171
|
-
},
|
|
171
|
+
}, H = () => {
|
|
172
172
|
const k = _({
|
|
173
173
|
[ye.spButton__text]: !0
|
|
174
174
|
}), p = _({
|
|
175
175
|
[ye.spButton__iconContainer]: !0,
|
|
176
176
|
...S && { [S]: !0 }
|
|
177
177
|
});
|
|
178
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ q(dn, { children: [
|
|
179
179
|
(i || d) && /* @__PURE__ */ m("div", { className: p, children: d ? /* @__PURE__ */ m(Co, { classNameRoot: ye.spButton__spinner }) : i && /* @__PURE__ */ m(he, { name: i, rotate: r }) }),
|
|
180
180
|
!y && l && /* @__PURE__ */ m("div", { className: k, children: l })
|
|
181
181
|
] });
|
|
182
|
-
},
|
|
182
|
+
}, D = _({
|
|
183
183
|
[ye.spButton]: !0,
|
|
184
184
|
[ye.spButton_noPadding]: w,
|
|
185
185
|
[ye.spButton_onlyIcon]: y,
|
|
@@ -194,21 +194,21 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
194
194
|
"button",
|
|
195
195
|
{
|
|
196
196
|
style: o,
|
|
197
|
-
className:
|
|
197
|
+
className: D,
|
|
198
198
|
onClick: L,
|
|
199
199
|
disabled: s,
|
|
200
200
|
type: u,
|
|
201
201
|
form: c,
|
|
202
|
-
children:
|
|
202
|
+
children: H()
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
},
|
|
206
|
-
spApplyButtons:
|
|
205
|
+
}, zo = "_spApplyButtons_e8c1h_43", Bo = "_spApplyButtons__cancel_e8c1h_65", Wo = "_spApplyButtons__submit_e8c1h_68", Be = {
|
|
206
|
+
spApplyButtons: zo,
|
|
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 {
|
|
@@ -224,15 +224,15 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
224
224
|
submit: l,
|
|
225
225
|
loading: d
|
|
226
226
|
} = e, x = _({
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
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__ */ q("div", { className: x, children: [
|
|
236
236
|
o && /* @__PURE__ */ m(
|
|
237
237
|
wt,
|
|
238
238
|
{
|
|
@@ -259,11 +259,11 @@ const ro = "_spAccordion_11ek7_43", so = "_spAccordion_noBorder_11ek7_57", po =
|
|
|
259
259
|
}
|
|
260
260
|
)
|
|
261
261
|
] });
|
|
262
|
-
},
|
|
263
|
-
spBaseTooltip:
|
|
264
|
-
spBaseTooltip_noPadding:
|
|
262
|
+
}, $o = "_spBaseTooltip_z1ltl_43", qo = "_spBaseTooltip_noPadding_z1ltl_71", Ho = "_spBaseTooltip__content_z1ltl_74", lt = {
|
|
263
|
+
spBaseTooltip: $o,
|
|
264
|
+
spBaseTooltip_noPadding: qo,
|
|
265
265
|
spBaseTooltip__content: Ho
|
|
266
|
-
}, fn =
|
|
266
|
+
}, fn = $e.forwardRef((e, t) => {
|
|
267
267
|
const {
|
|
268
268
|
text: n,
|
|
269
269
|
noPadding: o = !1,
|
|
@@ -303,7 +303,7 @@ const vn = ({ children: e, node: t, classNameRoot: n }) => {
|
|
|
303
303
|
return n && (i.className = n), document.body.appendChild(i), a(i), () => {
|
|
304
304
|
t || document.body.removeChild(i);
|
|
305
305
|
};
|
|
306
|
-
}, [t, n]), o ?
|
|
306
|
+
}, [t, n]), o ? qn.createPortal(e, o) : null;
|
|
307
307
|
}, Vo = "_spTooltip_9ogwj_43", Yo = "_spTooltip__trigger_9ogwj_46", Lt = {
|
|
308
308
|
spTooltip: Vo,
|
|
309
309
|
spTooltip__trigger: Yo
|
|
@@ -325,9 +325,9 @@ const It = (e) => {
|
|
|
325
325
|
classNameTooltip: x,
|
|
326
326
|
classNameBaseTooltipRoot: y,
|
|
327
327
|
classNameBaseTooltipContentRoot: w
|
|
328
|
-
} = e, [g, S] = ie(!1), L = ue(null),
|
|
328
|
+
} = e, [g, S] = ie(!1), L = ue(null), H = ue(null), [D, k] = ie(!1);
|
|
329
329
|
_n(
|
|
330
|
-
[L,
|
|
330
|
+
[L, H],
|
|
331
331
|
() => {
|
|
332
332
|
s && s(), S(!1);
|
|
333
333
|
},
|
|
@@ -335,71 +335,71 @@ const It = (e) => {
|
|
|
335
335
|
);
|
|
336
336
|
const p = (C) => {
|
|
337
337
|
o && C.stopPropagation(), !t && (g ? s && s() : r && r(), S((W) => n ? !W : !0));
|
|
338
|
-
}, [
|
|
338
|
+
}, [E, I] = ie({
|
|
339
339
|
visibility: "hidden",
|
|
340
340
|
opacity: 0,
|
|
341
341
|
left: "-9999px"
|
|
342
|
-
}), [
|
|
343
|
-
if (!L.current || !
|
|
344
|
-
const C = L.current.getBoundingClientRect(), W =
|
|
345
|
-
let K = 0,
|
|
342
|
+
}), [V, J] = ie(!1), oe = de(() => {
|
|
343
|
+
if (!L.current || !H.current) return;
|
|
344
|
+
const C = L.current.getBoundingClientRect(), W = H.current.getBoundingClientRect();
|
|
345
|
+
let K = 0, z = 0;
|
|
346
346
|
switch (c) {
|
|
347
347
|
case se.Right:
|
|
348
|
-
K = C.top + window.scrollY - (W.height - C.height) / 2,
|
|
348
|
+
K = C.top + window.scrollY - (W.height - C.height) / 2, z = C.right + window.scrollX;
|
|
349
349
|
break;
|
|
350
350
|
case se.RightTop:
|
|
351
|
-
K = C.top + window.scrollY,
|
|
351
|
+
K = C.top + window.scrollY, z = C.right + window.scrollX;
|
|
352
352
|
break;
|
|
353
353
|
case se.RightBottom:
|
|
354
|
-
K = C.bottom + window.scrollY - W.height,
|
|
354
|
+
K = C.bottom + window.scrollY - W.height, z = C.right + window.scrollX;
|
|
355
355
|
break;
|
|
356
356
|
case se.Left:
|
|
357
|
-
K = C.top + window.scrollY - (W.height - C.height) / 2,
|
|
357
|
+
K = C.top + window.scrollY - (W.height - C.height) / 2, z = C.left + window.scrollX - W.width;
|
|
358
358
|
break;
|
|
359
359
|
case se.LeftTop:
|
|
360
|
-
K = C.top + window.scrollY,
|
|
360
|
+
K = C.top + window.scrollY, z = C.left + window.scrollX - W.width;
|
|
361
361
|
break;
|
|
362
362
|
case se.LeftBottom:
|
|
363
|
-
K = C.bottom + window.scrollY - W.height,
|
|
363
|
+
K = C.bottom + window.scrollY - W.height, z = C.left + window.scrollX - W.width;
|
|
364
364
|
break;
|
|
365
365
|
case se.Bottom:
|
|
366
|
-
K = C.bottom + window.scrollY,
|
|
366
|
+
K = C.bottom + window.scrollY, z = C.left + window.scrollX - (W.width - C.width) / 2;
|
|
367
367
|
break;
|
|
368
368
|
case se.BottomLeft:
|
|
369
|
-
K = C.bottom + window.scrollY,
|
|
369
|
+
K = C.bottom + window.scrollY, z = C.left + window.scrollX;
|
|
370
370
|
break;
|
|
371
371
|
case se.BottomRight:
|
|
372
|
-
K = C.bottom + window.scrollY,
|
|
372
|
+
K = C.bottom + window.scrollY, z = C.right + window.scrollX - W.width;
|
|
373
373
|
break;
|
|
374
374
|
case se.Top:
|
|
375
|
-
K = C.top + window.scrollY - W.height,
|
|
375
|
+
K = C.top + window.scrollY - W.height, z = C.left + window.scrollX - (W.width - C.width) / 2;
|
|
376
376
|
break;
|
|
377
377
|
case se.TopLeft:
|
|
378
|
-
K = C.top + window.scrollY - W.height,
|
|
378
|
+
K = C.top + window.scrollY - W.height, z = C.left + window.scrollX;
|
|
379
379
|
break;
|
|
380
380
|
case se.TopRight:
|
|
381
|
-
K = C.top + window.scrollY - W.height,
|
|
381
|
+
K = C.top + window.scrollY - W.height, z = C.right + window.scrollX - W.width;
|
|
382
382
|
break;
|
|
383
383
|
default:
|
|
384
|
-
K = C.bottom + window.scrollY,
|
|
384
|
+
K = C.bottom + window.scrollY, z = C.left + window.scrollX;
|
|
385
385
|
}
|
|
386
|
-
K + W.height > window.innerHeight + window.scrollY && c.includes("bottom") ? K = C.top + window.scrollY - W.height : K < window.scrollY && c.includes("top") && (K = C.bottom + window.scrollY),
|
|
386
|
+
K + W.height > window.innerHeight + window.scrollY && c.includes("bottom") ? K = C.top + window.scrollY - W.height : K < window.scrollY && c.includes("top") && (K = C.bottom + window.scrollY), z + W.width > window.innerWidth + window.scrollX && c.includes("left") ? z = C.left + window.scrollX - W.width + C.width : z < window.scrollX && c.includes("right") && (z = C.right + window.scrollX - C.width), I((f) => ({
|
|
387
387
|
...f,
|
|
388
388
|
top: `${K}px`,
|
|
389
|
-
left: `${
|
|
390
|
-
visibility: g ||
|
|
391
|
-
opacity: g ||
|
|
389
|
+
left: `${z}px`,
|
|
390
|
+
visibility: g || V ? "visible" : "hidden",
|
|
391
|
+
opacity: g || V ? 1 : 0
|
|
392
392
|
}));
|
|
393
|
-
}, [c, g,
|
|
393
|
+
}, [c, g, V]);
|
|
394
394
|
ne(() => (k(!0), () => k(!1)), []), ne(() => {
|
|
395
|
-
|
|
396
|
-
}, [
|
|
397
|
-
if (!
|
|
395
|
+
D && oe();
|
|
396
|
+
}, [D, oe]), ne(() => {
|
|
397
|
+
if (!D) 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
|
+
}, [D, oe]);
|
|
403
403
|
const me = _({
|
|
404
404
|
[Lt.spTooltip]: !0,
|
|
405
405
|
...x && { [x]: !0 }
|
|
@@ -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__ */ q(
|
|
415
415
|
"div",
|
|
416
416
|
{
|
|
417
417
|
className: me,
|
|
@@ -423,8 +423,8 @@ const It = (e) => {
|
|
|
423
423
|
a && /* @__PURE__ */ m(vn, { node: Z, children: /* @__PURE__ */ m(
|
|
424
424
|
fn,
|
|
425
425
|
{
|
|
426
|
-
style:
|
|
427
|
-
ref:
|
|
426
|
+
style: E,
|
|
427
|
+
ref: H,
|
|
428
428
|
noPadding: d,
|
|
429
429
|
text: l,
|
|
430
430
|
classNameRoot: fe,
|
|
@@ -447,7 +447,7 @@ const It = (e) => {
|
|
|
447
447
|
spCheckbox__tooltip: ea,
|
|
448
448
|
spCheckbox__required: ta,
|
|
449
449
|
spCheckbox__error: na
|
|
450
|
-
},
|
|
450
|
+
}, Ws = (e) => {
|
|
451
451
|
const {
|
|
452
452
|
size: t = "lg",
|
|
453
453
|
checked: n,
|
|
@@ -474,9 +474,9 @@ const It = (e) => {
|
|
|
474
474
|
[we.spCheckbox__box_error]: s
|
|
475
475
|
}), L = _({
|
|
476
476
|
[we.spCheckbox__control]: !0
|
|
477
|
-
}),
|
|
477
|
+
}), H = _({
|
|
478
478
|
[we.spCheckbox__label]: !0
|
|
479
|
-
}),
|
|
479
|
+
}), D = _({
|
|
480
480
|
[we.spCheckbox__required]: !0
|
|
481
481
|
}), k = _({
|
|
482
482
|
[we.spCheckbox__error]: !0,
|
|
@@ -484,26 +484,26 @@ const It = (e) => {
|
|
|
484
484
|
}), p = _({
|
|
485
485
|
[we.spCheckbox__tooltip]: !0
|
|
486
486
|
});
|
|
487
|
-
return /* @__PURE__ */
|
|
488
|
-
/* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ q("div", { className: g, onMouseEnter: x, children: [
|
|
488
|
+
/* @__PURE__ */ q("label", { className: S, children: [
|
|
489
489
|
/* @__PURE__ */ m(
|
|
490
490
|
"input",
|
|
491
491
|
{
|
|
492
492
|
type: "checkbox",
|
|
493
493
|
className: L,
|
|
494
494
|
checked: n,
|
|
495
|
-
onChange: (
|
|
496
|
-
!o && a && a(
|
|
495
|
+
onChange: (I) => {
|
|
496
|
+
!o && a && a(I, { name: i, checked: !n, value: u });
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
),
|
|
500
|
-
r && /* @__PURE__ */ m("span", { className:
|
|
501
|
-
c && /* @__PURE__ */ m("div", { className:
|
|
500
|
+
r && /* @__PURE__ */ m("span", { className: H, children: r }),
|
|
501
|
+
c && /* @__PURE__ */ m("div", { className: D, children: "*" }),
|
|
502
502
|
d && /* @__PURE__ */ m("div", { className: p, children: /* @__PURE__ */ m(Je, { position: l, text: d }) })
|
|
503
503
|
] }),
|
|
504
504
|
s && /* @__PURE__ */ m("div", { className: k, children: s })
|
|
505
505
|
] });
|
|
506
|
-
},
|
|
506
|
+
}, Ms = (e = {}) => {
|
|
507
507
|
const { initialValue: t = null } = e, [n, o] = ie(t);
|
|
508
508
|
return {
|
|
509
509
|
isOpen: !!n,
|
|
@@ -540,7 +540,7 @@ const It = (e) => {
|
|
|
540
540
|
"spText_type-description": "_spText_type-description_1gech_92",
|
|
541
541
|
"spText_type-link": "_spText_type-link_1gech_100",
|
|
542
542
|
spText_cursorPointer: pa
|
|
543
|
-
}, Ee =
|
|
543
|
+
}, Ee = $e.forwardRef((e, t) => {
|
|
544
544
|
const {
|
|
545
545
|
type: n,
|
|
546
546
|
children: o,
|
|
@@ -572,18 +572,21 @@ const It = (e) => {
|
|
|
572
572
|
);
|
|
573
573
|
});
|
|
574
574
|
Ee.displayName = "Text";
|
|
575
|
-
const ca = "
|
|
575
|
+
const ca = "_modalWrapper_14inb_43", la = "_modalWrapper__modal_14inb_54", da = "_modalWrapper__content_14inb_83", ua = "_modalWrapper__header_14inb_86", ma = "_modalWrapper__subHeader_14inb_94", fa = "_modalWrapper__subHeader_onlySubHeader_14inb_102", _a = "_modalWrapper__footer_14inb_105", va = "_modalWrapper__closeButton_14inb_108", xa = "_modalWrapper__closeButtonIconContainer_14inb_122", ke = {
|
|
576
576
|
modalWrapper: ca,
|
|
577
|
-
"modalWrapper_align-top": "_modalWrapper_align-
|
|
578
|
-
"modalWrapper_align-center": "_modalWrapper_align-
|
|
577
|
+
"modalWrapper_align-top": "_modalWrapper_align-top_14inb_48",
|
|
578
|
+
"modalWrapper_align-center": "_modalWrapper_align-center_14inb_51",
|
|
579
579
|
modalWrapper__modal: la,
|
|
580
|
+
"modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_14inb_72",
|
|
581
|
+
"modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_14inb_78",
|
|
580
582
|
modalWrapper__content: da,
|
|
581
583
|
modalWrapper__header: ua,
|
|
582
584
|
modalWrapper__subHeader: ma,
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
modalWrapper__subHeader_onlySubHeader: fa,
|
|
586
|
+
modalWrapper__footer: _a,
|
|
587
|
+
modalWrapper__closeButton: va,
|
|
588
|
+
modalWrapper__closeButtonIconContainer: xa
|
|
589
|
+
}, ga = (e) => {
|
|
587
590
|
const {
|
|
588
591
|
zIndex: t,
|
|
589
592
|
isHiddenModal: n = !1,
|
|
@@ -596,43 +599,46 @@ const ca = "_modalWrapper_ah6vq_43", la = "_modalWrapper__modal_ah6vq_54", da =
|
|
|
596
599
|
onClose: c,
|
|
597
600
|
header: l,
|
|
598
601
|
subHeader: d,
|
|
599
|
-
footer: x
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
[
|
|
603
|
-
|
|
604
|
-
[Ce.modalWrapper__modal]: !0,
|
|
605
|
-
...r && { [r]: !0 }
|
|
602
|
+
footer: x,
|
|
603
|
+
size: y = "lg"
|
|
604
|
+
} = e, w = _({
|
|
605
|
+
[ke.modalWrapper]: !0,
|
|
606
|
+
[ke[`modalWrapper_align-${u}`]]: u
|
|
606
607
|
}), g = _({
|
|
607
|
-
[
|
|
608
|
+
[ke.modalWrapper__modal]: !0,
|
|
609
|
+
[ke[`modalWrapper__modal--size-${y}`]]: y,
|
|
610
|
+
...r && { [r]: !0 }
|
|
608
611
|
}), S = _({
|
|
609
|
-
[
|
|
612
|
+
[ke.modalWrapper__closeButton]: !0
|
|
610
613
|
}), L = _({
|
|
611
|
-
[
|
|
612
|
-
}),
|
|
613
|
-
[
|
|
614
|
-
}),
|
|
615
|
-
[
|
|
614
|
+
[ke.modalWrapper__closeButtonIconContainer]: !0
|
|
615
|
+
}), H = _({
|
|
616
|
+
[ke.modalWrapper__content]: !0
|
|
617
|
+
}), D = _({
|
|
618
|
+
[ke.modalWrapper__header]: !0
|
|
616
619
|
}), k = _({
|
|
617
|
-
[
|
|
620
|
+
[ke.modalWrapper__subHeader]: !0,
|
|
621
|
+
[ke.modalWrapper__subHeader_onlySubHeader]: !l
|
|
622
|
+
}), p = _({
|
|
623
|
+
[ke.modalWrapper__footer]: !0
|
|
618
624
|
});
|
|
619
625
|
return ne(() => {
|
|
620
|
-
const
|
|
621
|
-
return
|
|
622
|
-
|
|
626
|
+
const E = window.scrollY, I = document.body;
|
|
627
|
+
return I.style.position = "fixed", I.style.top = `-${E}px`, I.style.left = "0", I.style.right = "0", I.style.overflow = "hidden", () => {
|
|
628
|
+
I.style.position = "", I.style.top = "", I.style.left = "", I.style.right = "", I.style.overflow = "", window.scrollTo(0, E);
|
|
623
629
|
};
|
|
624
|
-
}, []), /* @__PURE__ */ m(ia, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ m("div", { className:
|
|
625
|
-
(l || d) && /* @__PURE__ */
|
|
630
|
+
}, []), /* @__PURE__ */ m(ia, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ m("div", { className: w, children: /* @__PURE__ */ q("div", { className: g, style: s, children: [
|
|
631
|
+
(l || d) && /* @__PURE__ */ q("div", { className: D, children: [
|
|
626
632
|
typeof l == "string" ? /* @__PURE__ */ m(Ee, { type: "h3", children: l }) : l,
|
|
627
|
-
d && /* @__PURE__ */ m("div", { className:
|
|
633
|
+
d && /* @__PURE__ */ m("div", { className: k, children: typeof d == "string" ? /* @__PURE__ */ m(Ee, { children: d }) : d })
|
|
628
634
|
] }),
|
|
629
|
-
a && /* @__PURE__ */ m("div", { className:
|
|
630
|
-
x && /* @__PURE__ */ m("div", { className:
|
|
631
|
-
o && /* @__PURE__ */ m(
|
|
635
|
+
a && /* @__PURE__ */ m("div", { className: H, children: a }),
|
|
636
|
+
x && /* @__PURE__ */ m("div", { className: p, children: x }),
|
|
637
|
+
o && c && /* @__PURE__ */ m(
|
|
632
638
|
wt,
|
|
633
639
|
{
|
|
634
|
-
classNameRoot:
|
|
635
|
-
classNameIconContainerRoot:
|
|
640
|
+
classNameRoot: S,
|
|
641
|
+
classNameIconContainerRoot: L,
|
|
636
642
|
onClick: c,
|
|
637
643
|
iconName: pe.Close,
|
|
638
644
|
variant: "link",
|
|
@@ -641,7 +647,7 @@ const ca = "_modalWrapper_ah6vq_43", la = "_modalWrapper__modal_ah6vq_54", da =
|
|
|
641
647
|
}
|
|
642
648
|
)
|
|
643
649
|
] }) }) });
|
|
644
|
-
},
|
|
650
|
+
}, $s = (e) => {
|
|
645
651
|
const {
|
|
646
652
|
zIndex: t,
|
|
647
653
|
title: n,
|
|
@@ -657,16 +663,22 @@ const ca = "_modalWrapper_ah6vq_43", la = "_modalWrapper__modal_ah6vq_54", da =
|
|
|
657
663
|
mobile: x = "column",
|
|
658
664
|
align: y = "right",
|
|
659
665
|
modalAlign: w = "top",
|
|
660
|
-
loading: g
|
|
666
|
+
loading: g,
|
|
667
|
+
isVisibleCloseButton: S,
|
|
668
|
+
isHiddenModal: L,
|
|
669
|
+
size: H
|
|
661
670
|
} = e;
|
|
662
671
|
return /* @__PURE__ */ m(
|
|
663
|
-
|
|
672
|
+
ga,
|
|
664
673
|
{
|
|
665
674
|
zIndex: t,
|
|
666
675
|
header: n,
|
|
667
676
|
onClose: d,
|
|
668
677
|
align: w,
|
|
669
678
|
subHeader: o,
|
|
679
|
+
isVisibleCloseButton: S,
|
|
680
|
+
isHiddenModal: L,
|
|
681
|
+
size: H,
|
|
670
682
|
footer: a || s ? /* @__PURE__ */ m(
|
|
671
683
|
Mo,
|
|
672
684
|
{
|
|
@@ -685,10 +697,10 @@ const ca = "_modalWrapper_ah6vq_43", la = "_modalWrapper__modal_ah6vq_54", da =
|
|
|
685
697
|
) : null
|
|
686
698
|
}
|
|
687
699
|
);
|
|
688
|
-
},
|
|
689
|
-
spContextMenu:
|
|
690
|
-
spContextMenu__item:
|
|
691
|
-
spContextMenu__item_deleteItem:
|
|
700
|
+
}, ha = "_spContextMenu_1cza9_43", ba = "_spContextMenu__item_1cza9_55", ya = "_spContextMenu__item_deleteItem_1cza9_74", dt = {
|
|
701
|
+
spContextMenu: ha,
|
|
702
|
+
spContextMenu__item: ba,
|
|
703
|
+
spContextMenu__item_deleteItem: ya
|
|
692
704
|
}, qs = (e) => {
|
|
693
705
|
const { onClickItem: t, options: n, classNameRoot: o } = e, a = _({
|
|
694
706
|
[dt.spContextMenu]: !0,
|
|
@@ -696,7 +708,7 @@ const ca = "_modalWrapper_ah6vq_43", la = "_modalWrapper__modal_ah6vq_54", da =
|
|
|
696
708
|
});
|
|
697
709
|
return /* @__PURE__ */ m("ul", { className: a, children: n == null ? void 0 : n.map((i) => {
|
|
698
710
|
const r = i.key === "delete";
|
|
699
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ q(
|
|
700
712
|
"li",
|
|
701
713
|
{
|
|
702
714
|
className: _({
|
|
@@ -728,14 +740,14 @@ var kt = { exports: {} }, Ue = { exports: {} }, U = {};
|
|
|
728
740
|
* LICENSE file in the root directory of this source tree.
|
|
729
741
|
*/
|
|
730
742
|
var Pt;
|
|
731
|
-
function
|
|
743
|
+
function wa() {
|
|
732
744
|
if (Pt) return U;
|
|
733
745
|
Pt = 1;
|
|
734
|
-
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, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, x = 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,
|
|
735
|
-
function
|
|
746
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, x = 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, H = e ? Symbol.for("react.scope") : 60119;
|
|
747
|
+
function D(p) {
|
|
736
748
|
if (typeof p == "object" && p !== null) {
|
|
737
|
-
var
|
|
738
|
-
switch (
|
|
749
|
+
var E = p.$$typeof;
|
|
750
|
+
switch (E) {
|
|
739
751
|
case t:
|
|
740
752
|
switch (p = p.type, p) {
|
|
741
753
|
case u:
|
|
@@ -754,44 +766,44 @@ function ya() {
|
|
|
754
766
|
case r:
|
|
755
767
|
return p;
|
|
756
768
|
default:
|
|
757
|
-
return
|
|
769
|
+
return E;
|
|
758
770
|
}
|
|
759
771
|
}
|
|
760
772
|
case n:
|
|
761
|
-
return
|
|
773
|
+
return E;
|
|
762
774
|
}
|
|
763
775
|
}
|
|
764
776
|
}
|
|
765
777
|
function k(p) {
|
|
766
|
-
return
|
|
778
|
+
return D(p) === c;
|
|
767
779
|
}
|
|
768
780
|
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = s, U.ContextProvider = r, U.Element = t, U.ForwardRef = l, U.Fragment = o, U.Lazy = w, U.Memo = y, U.Portal = n, U.Profiler = i, U.StrictMode = a, U.Suspense = d, U.isAsyncMode = function(p) {
|
|
769
|
-
return k(p) ||
|
|
781
|
+
return k(p) || D(p) === u;
|
|
770
782
|
}, U.isConcurrentMode = k, U.isContextConsumer = function(p) {
|
|
771
|
-
return
|
|
783
|
+
return D(p) === s;
|
|
772
784
|
}, U.isContextProvider = function(p) {
|
|
773
|
-
return
|
|
785
|
+
return D(p) === r;
|
|
774
786
|
}, U.isElement = function(p) {
|
|
775
787
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
776
788
|
}, U.isForwardRef = function(p) {
|
|
777
|
-
return
|
|
789
|
+
return D(p) === l;
|
|
778
790
|
}, U.isFragment = function(p) {
|
|
779
|
-
return
|
|
791
|
+
return D(p) === o;
|
|
780
792
|
}, U.isLazy = function(p) {
|
|
781
|
-
return
|
|
793
|
+
return D(p) === w;
|
|
782
794
|
}, U.isMemo = function(p) {
|
|
783
|
-
return
|
|
795
|
+
return D(p) === y;
|
|
784
796
|
}, U.isPortal = function(p) {
|
|
785
|
-
return
|
|
797
|
+
return D(p) === n;
|
|
786
798
|
}, U.isProfiler = function(p) {
|
|
787
|
-
return
|
|
799
|
+
return D(p) === i;
|
|
788
800
|
}, U.isStrictMode = function(p) {
|
|
789
|
-
return
|
|
801
|
+
return D(p) === a;
|
|
790
802
|
}, U.isSuspense = function(p) {
|
|
791
|
-
return
|
|
803
|
+
return D(p) === d;
|
|
792
804
|
}, U.isValidElementType = function(p) {
|
|
793
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p === d || p === x || typeof p == "object" && p !== null && (p.$$typeof === w || p.$$typeof === y || p.$$typeof === r || p.$$typeof === s || p.$$typeof === l || p.$$typeof === S || p.$$typeof === L || p.$$typeof ===
|
|
794
|
-
}, U.typeOf =
|
|
805
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === c || p === i || p === a || p === d || p === x || typeof p == "object" && p !== null && (p.$$typeof === w || p.$$typeof === y || p.$$typeof === r || p.$$typeof === s || p.$$typeof === l || p.$$typeof === S || p.$$typeof === L || p.$$typeof === H || p.$$typeof === g);
|
|
806
|
+
}, U.typeOf = D, U;
|
|
795
807
|
}
|
|
796
808
|
var G = {};
|
|
797
809
|
/** @license React v16.13.1
|
|
@@ -803,29 +815,29 @@ var G = {};
|
|
|
803
815
|
* LICENSE file in the root directory of this source tree.
|
|
804
816
|
*/
|
|
805
817
|
var Ft;
|
|
806
|
-
function
|
|
818
|
+
function ka() {
|
|
807
819
|
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
808
|
-
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, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, x = 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,
|
|
809
|
-
function
|
|
820
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, x = 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, H = e ? Symbol.for("react.scope") : 60119;
|
|
821
|
+
function D(v) {
|
|
810
822
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
811
|
-
v === o || v === c || v === i || v === a || v === d || v === x || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === y || v.$$typeof === r || v.$$typeof === s || v.$$typeof === l || v.$$typeof === S || v.$$typeof === L || v.$$typeof ===
|
|
823
|
+
v === o || v === c || v === i || v === a || v === d || v === x || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === y || v.$$typeof === r || v.$$typeof === s || v.$$typeof === l || v.$$typeof === S || v.$$typeof === L || v.$$typeof === H || v.$$typeof === g);
|
|
812
824
|
}
|
|
813
825
|
function k(v) {
|
|
814
826
|
if (typeof v == "object" && v !== null) {
|
|
815
827
|
var _e = v.$$typeof;
|
|
816
828
|
switch (_e) {
|
|
817
829
|
case t:
|
|
818
|
-
var
|
|
819
|
-
switch (
|
|
830
|
+
var Ne = v.type;
|
|
831
|
+
switch (Ne) {
|
|
820
832
|
case u:
|
|
821
833
|
case c:
|
|
822
834
|
case o:
|
|
823
835
|
case i:
|
|
824
836
|
case a:
|
|
825
837
|
case d:
|
|
826
|
-
return
|
|
838
|
+
return Ne;
|
|
827
839
|
default:
|
|
828
|
-
var Fe =
|
|
840
|
+
var Fe = Ne && Ne.$$typeof;
|
|
829
841
|
switch (Fe) {
|
|
830
842
|
case s:
|
|
831
843
|
case l:
|
|
@@ -842,8 +854,8 @@ function wa() {
|
|
|
842
854
|
}
|
|
843
855
|
}
|
|
844
856
|
}
|
|
845
|
-
var p = u,
|
|
846
|
-
function
|
|
857
|
+
var p = u, E = c, I = s, V = r, J = t, oe = l, me = o, fe = w, le = y, X = n, Z = i, C = a, W = d, K = !1;
|
|
858
|
+
function z(v) {
|
|
847
859
|
return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(v) || k(v) === u;
|
|
848
860
|
}
|
|
849
861
|
function f(v) {
|
|
@@ -852,52 +864,52 @@ function wa() {
|
|
|
852
864
|
function b(v) {
|
|
853
865
|
return k(v) === s;
|
|
854
866
|
}
|
|
855
|
-
function
|
|
867
|
+
function O(v) {
|
|
856
868
|
return k(v) === r;
|
|
857
869
|
}
|
|
858
|
-
function
|
|
870
|
+
function P(v) {
|
|
859
871
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
860
872
|
}
|
|
861
|
-
function
|
|
873
|
+
function j(v) {
|
|
862
874
|
return k(v) === l;
|
|
863
875
|
}
|
|
864
876
|
function M(v) {
|
|
865
877
|
return k(v) === o;
|
|
866
878
|
}
|
|
867
|
-
function
|
|
879
|
+
function A(v) {
|
|
868
880
|
return k(v) === w;
|
|
869
881
|
}
|
|
870
|
-
function
|
|
882
|
+
function F(v) {
|
|
871
883
|
return k(v) === y;
|
|
872
884
|
}
|
|
873
|
-
function
|
|
885
|
+
function $(v) {
|
|
874
886
|
return k(v) === n;
|
|
875
887
|
}
|
|
876
|
-
function
|
|
888
|
+
function Y(v) {
|
|
877
889
|
return k(v) === i;
|
|
878
890
|
}
|
|
879
|
-
function
|
|
891
|
+
function B(v) {
|
|
880
892
|
return k(v) === a;
|
|
881
893
|
}
|
|
882
894
|
function te(v) {
|
|
883
895
|
return k(v) === d;
|
|
884
896
|
}
|
|
885
|
-
G.AsyncMode = p, G.ConcurrentMode =
|
|
897
|
+
G.AsyncMode = p, G.ConcurrentMode = E, G.ContextConsumer = I, G.ContextProvider = V, 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 = W, G.isAsyncMode = z, G.isConcurrentMode = f, G.isContextConsumer = b, G.isContextProvider = O, G.isElement = P, G.isForwardRef = j, G.isFragment = M, G.isLazy = A, G.isMemo = F, G.isPortal = $, G.isProfiler = Y, G.isStrictMode = B, G.isSuspense = te, G.isValidElementType = D, G.typeOf = k;
|
|
886
898
|
}()), G;
|
|
887
899
|
}
|
|
888
|
-
var
|
|
900
|
+
var zt;
|
|
889
901
|
function gn() {
|
|
890
|
-
return
|
|
902
|
+
return zt || (zt = 1, process.env.NODE_ENV === "production" ? Ue.exports = wa() : Ue.exports = ka()), Ue.exports;
|
|
891
903
|
}
|
|
892
904
|
/*
|
|
893
905
|
object-assign
|
|
894
906
|
(c) Sindre Sorhus
|
|
895
907
|
@license MIT
|
|
896
908
|
*/
|
|
897
|
-
var ut,
|
|
898
|
-
function
|
|
899
|
-
if (
|
|
900
|
-
|
|
909
|
+
var ut, Bt;
|
|
910
|
+
function Ca() {
|
|
911
|
+
if (Bt) return ut;
|
|
912
|
+
Bt = 1;
|
|
901
913
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
902
914
|
function o(i) {
|
|
903
915
|
if (i == null)
|
|
@@ -951,10 +963,10 @@ var ft, Mt;
|
|
|
951
963
|
function hn() {
|
|
952
964
|
return Mt || (Mt = 1, ft = Function.call.bind(Object.prototype.hasOwnProperty)), ft;
|
|
953
965
|
}
|
|
954
|
-
var _t,
|
|
955
|
-
function
|
|
956
|
-
if (
|
|
957
|
-
|
|
966
|
+
var _t, $t;
|
|
967
|
+
function Ta() {
|
|
968
|
+
if ($t) return _t;
|
|
969
|
+
$t = 1;
|
|
958
970
|
var e = function() {
|
|
959
971
|
};
|
|
960
972
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1000,11 +1012,11 @@ function Ca() {
|
|
|
1000
1012
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
1001
1013
|
}, _t = a, _t;
|
|
1002
1014
|
}
|
|
1003
|
-
var vt,
|
|
1004
|
-
function
|
|
1005
|
-
if (
|
|
1006
|
-
|
|
1007
|
-
var e = gn(), t =
|
|
1015
|
+
var vt, qt;
|
|
1016
|
+
function Ea() {
|
|
1017
|
+
if (qt) return vt;
|
|
1018
|
+
qt = 1;
|
|
1019
|
+
var e = gn(), t = Ca(), n = Rt(), o = hn(), a = Ta(), i = function() {
|
|
1008
1020
|
};
|
|
1009
1021
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
1010
1022
|
var u = "Warning: " + s;
|
|
@@ -1033,14 +1045,14 @@ function Ta() {
|
|
|
1033
1045
|
object: L("object"),
|
|
1034
1046
|
string: L("string"),
|
|
1035
1047
|
symbol: L("symbol"),
|
|
1036
|
-
any:
|
|
1037
|
-
arrayOf:
|
|
1048
|
+
any: H(),
|
|
1049
|
+
arrayOf: D,
|
|
1038
1050
|
element: k(),
|
|
1039
1051
|
elementType: p(),
|
|
1040
|
-
instanceOf:
|
|
1052
|
+
instanceOf: E,
|
|
1041
1053
|
node: oe(),
|
|
1042
|
-
objectOf:
|
|
1043
|
-
oneOf:
|
|
1054
|
+
objectOf: V,
|
|
1055
|
+
oneOf: I,
|
|
1044
1056
|
oneOfType: J,
|
|
1045
1057
|
shape: fe,
|
|
1046
1058
|
exact: le
|
|
@@ -1054,34 +1066,34 @@ function Ta() {
|
|
|
1054
1066
|
g.prototype = Error.prototype;
|
|
1055
1067
|
function S(f) {
|
|
1056
1068
|
if (process.env.NODE_ENV !== "production")
|
|
1057
|
-
var b = {},
|
|
1058
|
-
function
|
|
1059
|
-
if (
|
|
1069
|
+
var b = {}, O = 0;
|
|
1070
|
+
function P(M, A, F, $, Y, B, te) {
|
|
1071
|
+
if ($ = $ || x, B = B || F, te !== n) {
|
|
1060
1072
|
if (u) {
|
|
1061
1073
|
var v = new Error(
|
|
1062
1074
|
"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"
|
|
1063
1075
|
);
|
|
1064
1076
|
throw v.name = "Invariant Violation", v;
|
|
1065
1077
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1066
|
-
var _e =
|
|
1078
|
+
var _e = $ + ":" + F;
|
|
1067
1079
|
!b[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1068
|
-
|
|
1069
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1070
|
-
), b[_e] = !0,
|
|
1080
|
+
O < 3 && (i(
|
|
1081
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + $ + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1082
|
+
), b[_e] = !0, O++);
|
|
1071
1083
|
}
|
|
1072
1084
|
}
|
|
1073
|
-
return
|
|
1085
|
+
return A[F] == null ? M ? A[F] === null ? new g("The " + Y + " `" + B + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new g("The " + Y + " `" + B + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : f(A, F, $, Y, B);
|
|
1074
1086
|
}
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1087
|
+
var j = P.bind(null, !1);
|
|
1088
|
+
return j.isRequired = P.bind(null, !0), j;
|
|
1077
1089
|
}
|
|
1078
1090
|
function L(f) {
|
|
1079
|
-
function b(
|
|
1080
|
-
var
|
|
1081
|
-
if (
|
|
1082
|
-
var
|
|
1091
|
+
function b(O, P, j, M, A, F) {
|
|
1092
|
+
var $ = O[P], Y = C($);
|
|
1093
|
+
if (Y !== f) {
|
|
1094
|
+
var B = W($);
|
|
1083
1095
|
return new g(
|
|
1084
|
-
"Invalid " + M + " `" +
|
|
1096
|
+
"Invalid " + M + " `" + A + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected ") + ("`" + f + "`."),
|
|
1085
1097
|
{ expectedType: f }
|
|
1086
1098
|
);
|
|
1087
1099
|
}
|
|
@@ -1089,88 +1101,88 @@ function Ta() {
|
|
|
1089
1101
|
}
|
|
1090
1102
|
return S(b);
|
|
1091
1103
|
}
|
|
1092
|
-
function
|
|
1104
|
+
function H() {
|
|
1093
1105
|
return S(r);
|
|
1094
1106
|
}
|
|
1095
|
-
function
|
|
1096
|
-
function b(
|
|
1107
|
+
function D(f) {
|
|
1108
|
+
function b(O, P, j, M, A) {
|
|
1097
1109
|
if (typeof f != "function")
|
|
1098
|
-
return new g("Property `" +
|
|
1099
|
-
var
|
|
1100
|
-
if (!Array.isArray(
|
|
1101
|
-
var
|
|
1102
|
-
return new g("Invalid " + M + " `" +
|
|
1110
|
+
return new g("Property `" + A + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1111
|
+
var F = O[P];
|
|
1112
|
+
if (!Array.isArray(F)) {
|
|
1113
|
+
var $ = C(F);
|
|
1114
|
+
return new g("Invalid " + M + " `" + A + "` of type " + ("`" + $ + "` supplied to `" + j + "`, expected an array."));
|
|
1103
1115
|
}
|
|
1104
|
-
for (var
|
|
1105
|
-
var
|
|
1106
|
-
if (
|
|
1107
|
-
return
|
|
1116
|
+
for (var Y = 0; Y < F.length; Y++) {
|
|
1117
|
+
var B = f(F, Y, j, M, A + "[" + Y + "]", n);
|
|
1118
|
+
if (B instanceof Error)
|
|
1119
|
+
return B;
|
|
1108
1120
|
}
|
|
1109
1121
|
return null;
|
|
1110
1122
|
}
|
|
1111
1123
|
return S(b);
|
|
1112
1124
|
}
|
|
1113
1125
|
function k() {
|
|
1114
|
-
function f(b,
|
|
1115
|
-
var
|
|
1116
|
-
if (!s(
|
|
1117
|
-
var
|
|
1118
|
-
return new g("Invalid " +
|
|
1126
|
+
function f(b, O, P, j, M) {
|
|
1127
|
+
var A = b[O];
|
|
1128
|
+
if (!s(A)) {
|
|
1129
|
+
var F = C(A);
|
|
1130
|
+
return new g("Invalid " + j + " `" + M + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1119
1131
|
}
|
|
1120
1132
|
return null;
|
|
1121
1133
|
}
|
|
1122
1134
|
return S(f);
|
|
1123
1135
|
}
|
|
1124
1136
|
function p() {
|
|
1125
|
-
function f(b,
|
|
1126
|
-
var
|
|
1127
|
-
if (!e.isValidElementType(
|
|
1128
|
-
var
|
|
1129
|
-
return new g("Invalid " +
|
|
1137
|
+
function f(b, O, P, j, M) {
|
|
1138
|
+
var A = b[O];
|
|
1139
|
+
if (!e.isValidElementType(A)) {
|
|
1140
|
+
var F = C(A);
|
|
1141
|
+
return new g("Invalid " + j + " `" + M + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1130
1142
|
}
|
|
1131
1143
|
return null;
|
|
1132
1144
|
}
|
|
1133
1145
|
return S(f);
|
|
1134
1146
|
}
|
|
1135
|
-
function
|
|
1136
|
-
function b(
|
|
1137
|
-
if (!(
|
|
1138
|
-
var
|
|
1139
|
-
return new g("Invalid " + M + " `" +
|
|
1147
|
+
function E(f) {
|
|
1148
|
+
function b(O, P, j, M, A) {
|
|
1149
|
+
if (!(O[P] instanceof f)) {
|
|
1150
|
+
var F = f.name || x, $ = z(O[P]);
|
|
1151
|
+
return new g("Invalid " + M + " `" + A + "` of type " + ("`" + $ + "` supplied to `" + j + "`, expected ") + ("instance of `" + F + "`."));
|
|
1140
1152
|
}
|
|
1141
1153
|
return null;
|
|
1142
1154
|
}
|
|
1143
1155
|
return S(b);
|
|
1144
1156
|
}
|
|
1145
|
-
function
|
|
1157
|
+
function I(f) {
|
|
1146
1158
|
if (!Array.isArray(f))
|
|
1147
1159
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1148
1160
|
"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])."
|
|
1149
1161
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1150
|
-
function b(
|
|
1151
|
-
for (var
|
|
1152
|
-
if (w(
|
|
1162
|
+
function b(O, P, j, M, A) {
|
|
1163
|
+
for (var F = O[P], $ = 0; $ < f.length; $++)
|
|
1164
|
+
if (w(F, f[$]))
|
|
1153
1165
|
return null;
|
|
1154
|
-
var
|
|
1166
|
+
var Y = JSON.stringify(f, function(te, v) {
|
|
1155
1167
|
var _e = W(v);
|
|
1156
1168
|
return _e === "symbol" ? String(v) : v;
|
|
1157
1169
|
});
|
|
1158
|
-
return new g("Invalid " + M + " `" +
|
|
1170
|
+
return new g("Invalid " + M + " `" + A + "` of value `" + String(F) + "` " + ("supplied to `" + j + "`, expected one of " + Y + "."));
|
|
1159
1171
|
}
|
|
1160
1172
|
return S(b);
|
|
1161
1173
|
}
|
|
1162
|
-
function
|
|
1163
|
-
function b(
|
|
1174
|
+
function V(f) {
|
|
1175
|
+
function b(O, P, j, M, A) {
|
|
1164
1176
|
if (typeof f != "function")
|
|
1165
|
-
return new g("Property `" +
|
|
1166
|
-
var
|
|
1167
|
-
if (
|
|
1168
|
-
return new g("Invalid " + M + " `" +
|
|
1169
|
-
for (var
|
|
1170
|
-
if (o(
|
|
1171
|
-
var
|
|
1172
|
-
if (
|
|
1173
|
-
return
|
|
1177
|
+
return new g("Property `" + A + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1178
|
+
var F = O[P], $ = C(F);
|
|
1179
|
+
if ($ !== "object")
|
|
1180
|
+
return new g("Invalid " + M + " `" + A + "` of type " + ("`" + $ + "` supplied to `" + j + "`, expected an object."));
|
|
1181
|
+
for (var Y in F)
|
|
1182
|
+
if (o(F, Y)) {
|
|
1183
|
+
var B = f(F, Y, j, M, A + "." + Y, n);
|
|
1184
|
+
if (B instanceof Error)
|
|
1185
|
+
return B;
|
|
1174
1186
|
}
|
|
1175
1187
|
return null;
|
|
1176
1188
|
}
|
|
@@ -1180,45 +1192,45 @@ function Ta() {
|
|
|
1180
1192
|
if (!Array.isArray(f))
|
|
1181
1193
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
1182
1194
|
for (var b = 0; b < f.length; b++) {
|
|
1183
|
-
var
|
|
1184
|
-
if (typeof
|
|
1195
|
+
var O = f[b];
|
|
1196
|
+
if (typeof O != "function")
|
|
1185
1197
|
return i(
|
|
1186
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(
|
|
1198
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(O) + " at index " + b + "."
|
|
1187
1199
|
), r;
|
|
1188
1200
|
}
|
|
1189
|
-
function
|
|
1190
|
-
for (var
|
|
1191
|
-
var te = f[
|
|
1201
|
+
function P(j, M, A, F, $) {
|
|
1202
|
+
for (var Y = [], B = 0; B < f.length; B++) {
|
|
1203
|
+
var te = f[B], v = te(j, M, A, F, $, n);
|
|
1192
1204
|
if (v == null)
|
|
1193
1205
|
return null;
|
|
1194
|
-
v.data && o(v.data, "expectedType") &&
|
|
1206
|
+
v.data && o(v.data, "expectedType") && Y.push(v.data.expectedType);
|
|
1195
1207
|
}
|
|
1196
|
-
var _e =
|
|
1197
|
-
return new g("Invalid " +
|
|
1208
|
+
var _e = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
1209
|
+
return new g("Invalid " + F + " `" + $ + "` supplied to " + ("`" + A + "`" + _e + "."));
|
|
1198
1210
|
}
|
|
1199
|
-
return S(
|
|
1211
|
+
return S(P);
|
|
1200
1212
|
}
|
|
1201
1213
|
function oe() {
|
|
1202
|
-
function f(b,
|
|
1203
|
-
return X(b[
|
|
1214
|
+
function f(b, O, P, j, M) {
|
|
1215
|
+
return X(b[O]) ? null : new g("Invalid " + j + " `" + M + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1204
1216
|
}
|
|
1205
1217
|
return S(f);
|
|
1206
1218
|
}
|
|
1207
|
-
function me(f, b,
|
|
1219
|
+
function me(f, b, O, P, j) {
|
|
1208
1220
|
return new g(
|
|
1209
|
-
(f || "React class") + ": " + b + " type `" +
|
|
1221
|
+
(f || "React class") + ": " + b + " type `" + O + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1210
1222
|
);
|
|
1211
1223
|
}
|
|
1212
1224
|
function fe(f) {
|
|
1213
|
-
function b(
|
|
1214
|
-
var
|
|
1215
|
-
if (
|
|
1216
|
-
return new g("Invalid " + M + " `" +
|
|
1217
|
-
for (var
|
|
1218
|
-
var
|
|
1219
|
-
if (typeof
|
|
1220
|
-
return me(
|
|
1221
|
-
var te =
|
|
1225
|
+
function b(O, P, j, M, A) {
|
|
1226
|
+
var F = O[P], $ = C(F);
|
|
1227
|
+
if ($ !== "object")
|
|
1228
|
+
return new g("Invalid " + M + " `" + A + "` of type `" + $ + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1229
|
+
for (var Y in f) {
|
|
1230
|
+
var B = f[Y];
|
|
1231
|
+
if (typeof B != "function")
|
|
1232
|
+
return me(j, M, A, Y, W(B));
|
|
1233
|
+
var te = B(F, Y, j, M, A + "." + Y, n);
|
|
1222
1234
|
if (te)
|
|
1223
1235
|
return te;
|
|
1224
1236
|
}
|
|
@@ -1227,21 +1239,21 @@ function Ta() {
|
|
|
1227
1239
|
return S(b);
|
|
1228
1240
|
}
|
|
1229
1241
|
function le(f) {
|
|
1230
|
-
function b(
|
|
1231
|
-
var
|
|
1232
|
-
if (
|
|
1233
|
-
return new g("Invalid " + M + " `" +
|
|
1234
|
-
var
|
|
1235
|
-
for (var
|
|
1236
|
-
var te = f[
|
|
1237
|
-
if (o(f,
|
|
1238
|
-
return me(
|
|
1242
|
+
function b(O, P, j, M, A) {
|
|
1243
|
+
var F = O[P], $ = C(F);
|
|
1244
|
+
if ($ !== "object")
|
|
1245
|
+
return new g("Invalid " + M + " `" + A + "` of type `" + $ + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1246
|
+
var Y = t({}, O[P], f);
|
|
1247
|
+
for (var B in Y) {
|
|
1248
|
+
var te = f[B];
|
|
1249
|
+
if (o(f, B) && typeof te != "function")
|
|
1250
|
+
return me(j, M, A, B, W(te));
|
|
1239
1251
|
if (!te)
|
|
1240
1252
|
return new g(
|
|
1241
|
-
"Invalid " + M + " `" +
|
|
1253
|
+
"Invalid " + M + " `" + A + "` key `" + B + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(O[P], null, " ") + `
|
|
1242
1254
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1243
1255
|
);
|
|
1244
|
-
var v = te(
|
|
1256
|
+
var v = te(F, B, j, M, A + "." + B, n);
|
|
1245
1257
|
if (v)
|
|
1246
1258
|
return v;
|
|
1247
1259
|
}
|
|
@@ -1264,15 +1276,15 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1264
1276
|
return !0;
|
|
1265
1277
|
var b = d(f);
|
|
1266
1278
|
if (b) {
|
|
1267
|
-
var
|
|
1279
|
+
var O = b.call(f), P;
|
|
1268
1280
|
if (b !== f.entries) {
|
|
1269
|
-
for (; !(
|
|
1270
|
-
if (!X(
|
|
1281
|
+
for (; !(P = O.next()).done; )
|
|
1282
|
+
if (!X(P.value))
|
|
1271
1283
|
return !1;
|
|
1272
1284
|
} else
|
|
1273
|
-
for (; !(
|
|
1274
|
-
var
|
|
1275
|
-
if (
|
|
1285
|
+
for (; !(P = O.next()).done; ) {
|
|
1286
|
+
var j = P.value;
|
|
1287
|
+
if (j && !X(j[1]))
|
|
1276
1288
|
return !1;
|
|
1277
1289
|
}
|
|
1278
1290
|
} else
|
|
@@ -1315,14 +1327,14 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
1315
1327
|
return b;
|
|
1316
1328
|
}
|
|
1317
1329
|
}
|
|
1318
|
-
function
|
|
1330
|
+
function z(f) {
|
|
1319
1331
|
return !f.constructor || !f.constructor.name ? x : f.constructor.name;
|
|
1320
1332
|
}
|
|
1321
1333
|
return y.checkPropTypes = a, y.resetWarningCache = a.resetWarningCache, y.PropTypes = y, y;
|
|
1322
1334
|
}, vt;
|
|
1323
1335
|
}
|
|
1324
1336
|
var xt, Ht;
|
|
1325
|
-
function
|
|
1337
|
+
function Sa() {
|
|
1326
1338
|
if (Ht) return xt;
|
|
1327
1339
|
Ht = 1;
|
|
1328
1340
|
var e = Rt();
|
|
@@ -1370,12 +1382,12 @@ function Ea() {
|
|
|
1370
1382
|
}, xt;
|
|
1371
1383
|
}
|
|
1372
1384
|
if (process.env.NODE_ENV !== "production") {
|
|
1373
|
-
var Na = gn(),
|
|
1374
|
-
kt.exports =
|
|
1385
|
+
var Na = gn(), Ia = !0;
|
|
1386
|
+
kt.exports = Ea()(Na.isElement, Ia);
|
|
1375
1387
|
} else
|
|
1376
|
-
kt.exports =
|
|
1377
|
-
var
|
|
1378
|
-
const
|
|
1388
|
+
kt.exports = Sa()();
|
|
1389
|
+
var Ra = kt.exports;
|
|
1390
|
+
const T = /* @__PURE__ */ xn(Ra);
|
|
1379
1391
|
function Ae(e, t, n, o) {
|
|
1380
1392
|
function a(i) {
|
|
1381
1393
|
return i instanceof n ? i : new n(function(r) {
|
|
@@ -1403,7 +1415,7 @@ function Ae(e, t, n, o) {
|
|
|
1403
1415
|
c((o = o.apply(e, t || [])).next());
|
|
1404
1416
|
});
|
|
1405
1417
|
}
|
|
1406
|
-
const
|
|
1418
|
+
const ja = /* @__PURE__ */ new Map([
|
|
1407
1419
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1408
1420
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1409
1421
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2607,13 +2619,13 @@ const Ra = /* @__PURE__ */ new Map([
|
|
|
2607
2619
|
["zsh", "text/x-scriptzsh"]
|
|
2608
2620
|
]);
|
|
2609
2621
|
function Pe(e, t, n) {
|
|
2610
|
-
const o =
|
|
2622
|
+
const o = Aa(e), { webkitRelativePath: a } = e, i = typeof t == "string" ? t : typeof a == "string" && a.length > 0 ? a : `./${e.name}`;
|
|
2611
2623
|
return typeof o.path != "string" && Vt(o, "path", i), Vt(o, "relativePath", i), o;
|
|
2612
2624
|
}
|
|
2613
|
-
function
|
|
2625
|
+
function Aa(e) {
|
|
2614
2626
|
const { name: t } = e;
|
|
2615
2627
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2616
|
-
const o = t.split(".").pop().toLowerCase(), a =
|
|
2628
|
+
const o = t.split(".").pop().toLowerCase(), a = ja.get(o);
|
|
2617
2629
|
a && Object.defineProperty(e, "type", {
|
|
2618
2630
|
value: a,
|
|
2619
2631
|
writable: !1,
|
|
@@ -2631,31 +2643,31 @@ function Vt(e, t, n) {
|
|
|
2631
2643
|
enumerable: !0
|
|
2632
2644
|
});
|
|
2633
2645
|
}
|
|
2634
|
-
const
|
|
2646
|
+
const Da = [
|
|
2635
2647
|
// Thumbnail cache files for macOS and Windows
|
|
2636
2648
|
".DS_Store",
|
|
2637
2649
|
// macOs
|
|
2638
2650
|
"Thumbs.db"
|
|
2639
2651
|
// Windows
|
|
2640
2652
|
];
|
|
2641
|
-
function
|
|
2653
|
+
function La(e) {
|
|
2642
2654
|
return Ae(this, void 0, void 0, function* () {
|
|
2643
|
-
return Xe(e) &&
|
|
2655
|
+
return Xe(e) && Oa(e.dataTransfer) ? Ba(e.dataTransfer, e.type) : Pa(e) ? Fa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? za(e) : [];
|
|
2644
2656
|
});
|
|
2645
2657
|
}
|
|
2646
|
-
function
|
|
2658
|
+
function Oa(e) {
|
|
2647
2659
|
return Xe(e);
|
|
2648
2660
|
}
|
|
2649
|
-
function
|
|
2661
|
+
function Pa(e) {
|
|
2650
2662
|
return Xe(e) && Xe(e.target);
|
|
2651
2663
|
}
|
|
2652
2664
|
function Xe(e) {
|
|
2653
2665
|
return typeof e == "object" && e !== null;
|
|
2654
2666
|
}
|
|
2655
|
-
function
|
|
2667
|
+
function Fa(e) {
|
|
2656
2668
|
return Ct(e.target.files).map((t) => Pe(t));
|
|
2657
2669
|
}
|
|
2658
|
-
function
|
|
2670
|
+
function za(e) {
|
|
2659
2671
|
return Ae(this, void 0, void 0, function* () {
|
|
2660
2672
|
return (yield Promise.all(e.map((n) => n.getFile()))).map((n) => Pe(n));
|
|
2661
2673
|
});
|
|
@@ -2666,14 +2678,14 @@ function Ba(e, t) {
|
|
|
2666
2678
|
const n = Ct(e.items).filter((a) => a.kind === "file");
|
|
2667
2679
|
if (t !== "drop")
|
|
2668
2680
|
return n;
|
|
2669
|
-
const o = yield Promise.all(n.map(
|
|
2681
|
+
const o = yield Promise.all(n.map(Wa));
|
|
2670
2682
|
return Yt(bn(o));
|
|
2671
2683
|
}
|
|
2672
2684
|
return Yt(Ct(e.files).map((n) => Pe(n)));
|
|
2673
2685
|
});
|
|
2674
2686
|
}
|
|
2675
2687
|
function Yt(e) {
|
|
2676
|
-
return e.filter((t) =>
|
|
2688
|
+
return e.filter((t) => Da.indexOf(t.name) === -1);
|
|
2677
2689
|
}
|
|
2678
2690
|
function Ct(e) {
|
|
2679
2691
|
if (e === null)
|
|
@@ -2685,7 +2697,7 @@ function Ct(e) {
|
|
|
2685
2697
|
}
|
|
2686
2698
|
return t;
|
|
2687
2699
|
}
|
|
2688
|
-
function
|
|
2700
|
+
function Wa(e) {
|
|
2689
2701
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2690
2702
|
return Ut(e);
|
|
2691
2703
|
const t = e.webkitGetAsEntry();
|
|
@@ -2715,9 +2727,9 @@ function Ut(e, t) {
|
|
|
2715
2727
|
return Pe(o, (n = t == null ? void 0 : t.fullPath) !== null && n !== void 0 ? n : void 0);
|
|
2716
2728
|
});
|
|
2717
2729
|
}
|
|
2718
|
-
function
|
|
2730
|
+
function Ma(e) {
|
|
2719
2731
|
return Ae(this, void 0, void 0, function* () {
|
|
2720
|
-
return e.isDirectory ? yn(e) :
|
|
2732
|
+
return e.isDirectory ? yn(e) : $a(e);
|
|
2721
2733
|
});
|
|
2722
2734
|
}
|
|
2723
2735
|
function yn(e) {
|
|
@@ -2727,7 +2739,7 @@ function yn(e) {
|
|
|
2727
2739
|
function i() {
|
|
2728
2740
|
t.readEntries((r) => Ae(this, void 0, void 0, function* () {
|
|
2729
2741
|
if (r.length) {
|
|
2730
|
-
const s = Promise.all(r.map(
|
|
2742
|
+
const s = Promise.all(r.map(Ma));
|
|
2731
2743
|
a.push(s), i();
|
|
2732
2744
|
} else
|
|
2733
2745
|
try {
|
|
@@ -2743,7 +2755,7 @@ function yn(e) {
|
|
|
2743
2755
|
i();
|
|
2744
2756
|
});
|
|
2745
2757
|
}
|
|
2746
|
-
function
|
|
2758
|
+
function $a(e) {
|
|
2747
2759
|
return Ae(this, void 0, void 0, function* () {
|
|
2748
2760
|
return new Promise((t, n) => {
|
|
2749
2761
|
e.file((o) => {
|
|
@@ -2769,16 +2781,16 @@ var gt = function(e, t) {
|
|
|
2769
2781
|
return !0;
|
|
2770
2782
|
};
|
|
2771
2783
|
function Gt(e) {
|
|
2772
|
-
return
|
|
2784
|
+
return Va(e) || Ha(e) || kn(e) || qa();
|
|
2773
2785
|
}
|
|
2774
2786
|
function qa() {
|
|
2775
2787
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2776
2788
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2777
2789
|
}
|
|
2778
|
-
function
|
|
2790
|
+
function Ha(e) {
|
|
2779
2791
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2780
2792
|
}
|
|
2781
|
-
function
|
|
2793
|
+
function Va(e) {
|
|
2782
2794
|
if (Array.isArray(e)) return Tt(e);
|
|
2783
2795
|
}
|
|
2784
2796
|
function Kt(e, t) {
|
|
@@ -2806,9 +2818,9 @@ function wn(e, t, n) {
|
|
|
2806
2818
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2807
2819
|
}
|
|
2808
2820
|
function Me(e, t) {
|
|
2809
|
-
return
|
|
2821
|
+
return Ga(e) || Ua(e, t) || kn(e, t) || Ya();
|
|
2810
2822
|
}
|
|
2811
|
-
function
|
|
2823
|
+
function Ya() {
|
|
2812
2824
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2813
2825
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2814
2826
|
}
|
|
@@ -2826,7 +2838,7 @@ function Tt(e, t) {
|
|
|
2826
2838
|
o[n] = e[n];
|
|
2827
2839
|
return o;
|
|
2828
2840
|
}
|
|
2829
|
-
function
|
|
2841
|
+
function Ua(e, t) {
|
|
2830
2842
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2831
2843
|
if (n != null) {
|
|
2832
2844
|
var o = [], a = !0, i = !1, r, s;
|
|
@@ -2845,32 +2857,32 @@ function Ya(e, t) {
|
|
|
2845
2857
|
return o;
|
|
2846
2858
|
}
|
|
2847
2859
|
}
|
|
2848
|
-
function
|
|
2860
|
+
function Ga(e) {
|
|
2849
2861
|
if (Array.isArray(e)) return e;
|
|
2850
2862
|
}
|
|
2851
|
-
var
|
|
2863
|
+
var Ka = typeof gt == "function" ? gt : gt.default, Xa = "file-invalid-type", Za = "file-too-large", Qa = "file-too-small", Ja = "too-many-files", ei = function() {
|
|
2852
2864
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = t.split(","), o = n.length > 1 ? "one of ".concat(n.join(", ")) : n[0];
|
|
2853
2865
|
return {
|
|
2854
|
-
code:
|
|
2866
|
+
code: Xa,
|
|
2855
2867
|
message: "File type must be ".concat(o)
|
|
2856
2868
|
};
|
|
2857
2869
|
}, Zt = function(t) {
|
|
2858
2870
|
return {
|
|
2859
|
-
code:
|
|
2871
|
+
code: Za,
|
|
2860
2872
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2861
2873
|
};
|
|
2862
2874
|
}, Qt = function(t) {
|
|
2863
2875
|
return {
|
|
2864
|
-
code:
|
|
2876
|
+
code: Qa,
|
|
2865
2877
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2866
2878
|
};
|
|
2867
|
-
},
|
|
2868
|
-
code:
|
|
2879
|
+
}, ti = {
|
|
2880
|
+
code: Ja,
|
|
2869
2881
|
message: "Too many files"
|
|
2870
2882
|
};
|
|
2871
2883
|
function Cn(e, t) {
|
|
2872
|
-
var n = e.type === "application/x-moz-file" ||
|
|
2873
|
-
return [n, n ? null :
|
|
2884
|
+
var n = e.type === "application/x-moz-file" || Ka(e, t);
|
|
2885
|
+
return [n, n ? null : ei(t)];
|
|
2874
2886
|
}
|
|
2875
2887
|
function Tn(e, t, n) {
|
|
2876
2888
|
if (je(e.size))
|
|
@@ -2886,7 +2898,7 @@ function Tn(e, t, n) {
|
|
|
2886
2898
|
function je(e) {
|
|
2887
2899
|
return e != null;
|
|
2888
2900
|
}
|
|
2889
|
-
function
|
|
2901
|
+
function ni(e) {
|
|
2890
2902
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2891
2903
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(u) {
|
|
2892
2904
|
var c = Cn(u, n), l = Me(c, 1), d = l[0], x = Tn(u, o, a), y = Me(x, 1), w = y[0], g = s ? s(u) : null;
|
|
@@ -2904,17 +2916,17 @@ function Ge(e) {
|
|
|
2904
2916
|
function Jt(e) {
|
|
2905
2917
|
e.preventDefault();
|
|
2906
2918
|
}
|
|
2907
|
-
function
|
|
2919
|
+
function oi(e) {
|
|
2908
2920
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2909
2921
|
}
|
|
2910
|
-
function
|
|
2922
|
+
function ai(e) {
|
|
2911
2923
|
return e.indexOf("Edge/") !== -1;
|
|
2912
2924
|
}
|
|
2913
|
-
function
|
|
2925
|
+
function ii() {
|
|
2914
2926
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2915
|
-
return
|
|
2927
|
+
return oi(e) || ai(e);
|
|
2916
2928
|
}
|
|
2917
|
-
function
|
|
2929
|
+
function Ce() {
|
|
2918
2930
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2919
2931
|
t[n] = arguments[n];
|
|
2920
2932
|
return function(o) {
|
|
@@ -2925,14 +2937,14 @@ function ke() {
|
|
|
2925
2937
|
});
|
|
2926
2938
|
};
|
|
2927
2939
|
}
|
|
2928
|
-
function
|
|
2940
|
+
function ri() {
|
|
2929
2941
|
return "showOpenFilePicker" in window;
|
|
2930
2942
|
}
|
|
2931
|
-
function
|
|
2943
|
+
function si(e) {
|
|
2932
2944
|
if (je(e)) {
|
|
2933
2945
|
var t = Object.entries(e).filter(function(n) {
|
|
2934
2946
|
var o = Me(n, 2), a = o[0], i = o[1], r = !0;
|
|
2935
|
-
return En(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(
|
|
2947
|
+
return En(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(Sn)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2936
2948
|
}).reduce(function(n, o) {
|
|
2937
2949
|
var a = Me(o, 2), i = a[0], r = a[1];
|
|
2938
2950
|
return Xt(Xt({}, n), {}, wn({}, i, r));
|
|
@@ -2945,49 +2957,49 @@ function ri(e) {
|
|
|
2945
2957
|
}
|
|
2946
2958
|
return e;
|
|
2947
2959
|
}
|
|
2948
|
-
function
|
|
2960
|
+
function pi(e) {
|
|
2949
2961
|
if (je(e))
|
|
2950
2962
|
return Object.entries(e).reduce(function(t, n) {
|
|
2951
2963
|
var o = Me(n, 2), a = o[0], i = o[1];
|
|
2952
2964
|
return [].concat(Gt(t), [a], Gt(i));
|
|
2953
2965
|
}, []).filter(function(t) {
|
|
2954
|
-
return En(t) ||
|
|
2966
|
+
return En(t) || Sn(t);
|
|
2955
2967
|
}).join(",");
|
|
2956
2968
|
}
|
|
2957
|
-
function
|
|
2969
|
+
function ci(e) {
|
|
2958
2970
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2959
2971
|
}
|
|
2960
|
-
function
|
|
2972
|
+
function li(e) {
|
|
2961
2973
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2962
2974
|
}
|
|
2963
2975
|
function En(e) {
|
|
2964
2976
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2965
2977
|
}
|
|
2966
|
-
function
|
|
2978
|
+
function Sn(e) {
|
|
2967
2979
|
return /^.*\.[\w]+$/.test(e);
|
|
2968
2980
|
}
|
|
2969
|
-
var
|
|
2970
|
-
function
|
|
2971
|
-
return
|
|
2981
|
+
var di = ["children"], ui = ["open"], mi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], fi = ["refKey", "onChange", "onClick"];
|
|
2982
|
+
function _i(e) {
|
|
2983
|
+
return gi(e) || xi(e) || Nn(e) || vi();
|
|
2972
2984
|
}
|
|
2973
|
-
function
|
|
2985
|
+
function vi() {
|
|
2974
2986
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2975
2987
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2976
2988
|
}
|
|
2977
|
-
function
|
|
2989
|
+
function xi(e) {
|
|
2978
2990
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2979
2991
|
}
|
|
2980
|
-
function
|
|
2992
|
+
function gi(e) {
|
|
2981
2993
|
if (Array.isArray(e)) return Et(e);
|
|
2982
2994
|
}
|
|
2983
2995
|
function ht(e, t) {
|
|
2984
|
-
return
|
|
2996
|
+
return yi(e) || bi(e, t) || Nn(e, t) || hi();
|
|
2985
2997
|
}
|
|
2986
|
-
function
|
|
2998
|
+
function hi() {
|
|
2987
2999
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2988
3000
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2989
3001
|
}
|
|
2990
|
-
function
|
|
3002
|
+
function Nn(e, t) {
|
|
2991
3003
|
if (e) {
|
|
2992
3004
|
if (typeof e == "string") return Et(e, t);
|
|
2993
3005
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -3001,7 +3013,7 @@ function Et(e, t) {
|
|
|
3001
3013
|
o[n] = e[n];
|
|
3002
3014
|
return o;
|
|
3003
3015
|
}
|
|
3004
|
-
function
|
|
3016
|
+
function bi(e, t) {
|
|
3005
3017
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3006
3018
|
if (n != null) {
|
|
3007
3019
|
var o = [], a = !0, i = !1, r, s;
|
|
@@ -3020,7 +3032,7 @@ function hi(e, t) {
|
|
|
3020
3032
|
return o;
|
|
3021
3033
|
}
|
|
3022
3034
|
}
|
|
3023
|
-
function
|
|
3035
|
+
function yi(e) {
|
|
3024
3036
|
if (Array.isArray(e)) return e;
|
|
3025
3037
|
}
|
|
3026
3038
|
function en(e, t) {
|
|
@@ -3037,19 +3049,19 @@ function Q(e) {
|
|
|
3037
3049
|
for (var t = 1; t < arguments.length; t++) {
|
|
3038
3050
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3039
3051
|
t % 2 ? en(Object(n), !0).forEach(function(o) {
|
|
3040
|
-
|
|
3052
|
+
St(e, o, n[o]);
|
|
3041
3053
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : en(Object(n)).forEach(function(o) {
|
|
3042
3054
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
3043
3055
|
});
|
|
3044
3056
|
}
|
|
3045
3057
|
return e;
|
|
3046
3058
|
}
|
|
3047
|
-
function
|
|
3059
|
+
function St(e, t, n) {
|
|
3048
3060
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
3049
3061
|
}
|
|
3050
3062
|
function Qe(e, t) {
|
|
3051
3063
|
if (e == null) return {};
|
|
3052
|
-
var n =
|
|
3064
|
+
var n = wi(e, t), o, a;
|
|
3053
3065
|
if (Object.getOwnPropertySymbols) {
|
|
3054
3066
|
var i = Object.getOwnPropertySymbols(e);
|
|
3055
3067
|
for (a = 0; a < i.length; a++)
|
|
@@ -3057,27 +3069,27 @@ function Qe(e, t) {
|
|
|
3057
3069
|
}
|
|
3058
3070
|
return n;
|
|
3059
3071
|
}
|
|
3060
|
-
function
|
|
3072
|
+
function wi(e, t) {
|
|
3061
3073
|
if (e == null) return {};
|
|
3062
3074
|
var n = {}, o = Object.keys(e), a, i;
|
|
3063
3075
|
for (i = 0; i < o.length; i++)
|
|
3064
3076
|
a = o[i], !(t.indexOf(a) >= 0) && (n[a] = e[a]);
|
|
3065
3077
|
return n;
|
|
3066
3078
|
}
|
|
3067
|
-
var et = /* @__PURE__ */
|
|
3068
|
-
var n = e.children, o = Qe(e,
|
|
3069
|
-
return
|
|
3079
|
+
var et = /* @__PURE__ */ zn(function(e, t) {
|
|
3080
|
+
var n = e.children, o = Qe(e, di), a = ki(o), i = a.open, r = Qe(a, ui);
|
|
3081
|
+
return Bn(t, function() {
|
|
3070
3082
|
return {
|
|
3071
3083
|
open: i
|
|
3072
3084
|
};
|
|
3073
|
-
}, [i]), /* @__PURE__ */
|
|
3085
|
+
}, [i]), /* @__PURE__ */ $e.createElement(Wn, null, n(Q(Q({}, r), {}, {
|
|
3074
3086
|
open: i
|
|
3075
3087
|
})));
|
|
3076
3088
|
});
|
|
3077
3089
|
et.displayName = "Dropzone";
|
|
3078
3090
|
var In = {
|
|
3079
3091
|
disabled: !1,
|
|
3080
|
-
getFilesFromEvent:
|
|
3092
|
+
getFilesFromEvent: La,
|
|
3081
3093
|
maxSize: 1 / 0,
|
|
3082
3094
|
minSize: 0,
|
|
3083
3095
|
multiple: !0,
|
|
@@ -3108,7 +3120,7 @@ et.propTypes = {
|
|
|
3108
3120
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3109
3121
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3110
3122
|
*/
|
|
3111
|
-
children:
|
|
3123
|
+
children: T.func,
|
|
3112
3124
|
/**
|
|
3113
3125
|
* Set accepted file types.
|
|
3114
3126
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3116,90 +3128,90 @@ et.propTypes = {
|
|
|
3116
3128
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3117
3129
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3118
3130
|
*/
|
|
3119
|
-
accept:
|
|
3131
|
+
accept: T.objectOf(T.arrayOf(T.string)),
|
|
3120
3132
|
/**
|
|
3121
3133
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3122
3134
|
*/
|
|
3123
|
-
multiple:
|
|
3135
|
+
multiple: T.bool,
|
|
3124
3136
|
/**
|
|
3125
3137
|
* If false, allow dropped items to take over the current browser window
|
|
3126
3138
|
*/
|
|
3127
|
-
preventDropOnDocument:
|
|
3139
|
+
preventDropOnDocument: T.bool,
|
|
3128
3140
|
/**
|
|
3129
3141
|
* If true, disables click to open the native file selection dialog
|
|
3130
3142
|
*/
|
|
3131
|
-
noClick:
|
|
3143
|
+
noClick: T.bool,
|
|
3132
3144
|
/**
|
|
3133
3145
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3134
3146
|
* Note that it also stops tracking the focus state.
|
|
3135
3147
|
*/
|
|
3136
|
-
noKeyboard:
|
|
3148
|
+
noKeyboard: T.bool,
|
|
3137
3149
|
/**
|
|
3138
3150
|
* If true, disables drag 'n' drop
|
|
3139
3151
|
*/
|
|
3140
|
-
noDrag:
|
|
3152
|
+
noDrag: T.bool,
|
|
3141
3153
|
/**
|
|
3142
3154
|
* If true, stops drag event propagation to parents
|
|
3143
3155
|
*/
|
|
3144
|
-
noDragEventsBubbling:
|
|
3156
|
+
noDragEventsBubbling: T.bool,
|
|
3145
3157
|
/**
|
|
3146
3158
|
* Minimum file size (in bytes)
|
|
3147
3159
|
*/
|
|
3148
|
-
minSize:
|
|
3160
|
+
minSize: T.number,
|
|
3149
3161
|
/**
|
|
3150
3162
|
* Maximum file size (in bytes)
|
|
3151
3163
|
*/
|
|
3152
|
-
maxSize:
|
|
3164
|
+
maxSize: T.number,
|
|
3153
3165
|
/**
|
|
3154
3166
|
* Maximum accepted number of files
|
|
3155
3167
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3156
3168
|
*/
|
|
3157
|
-
maxFiles:
|
|
3169
|
+
maxFiles: T.number,
|
|
3158
3170
|
/**
|
|
3159
3171
|
* Enable/disable the dropzone
|
|
3160
3172
|
*/
|
|
3161
|
-
disabled:
|
|
3173
|
+
disabled: T.bool,
|
|
3162
3174
|
/**
|
|
3163
3175
|
* Use this to provide a custom file aggregator
|
|
3164
3176
|
*
|
|
3165
3177
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3166
3178
|
*/
|
|
3167
|
-
getFilesFromEvent:
|
|
3179
|
+
getFilesFromEvent: T.func,
|
|
3168
3180
|
/**
|
|
3169
3181
|
* Cb for when closing the file dialog with no selection
|
|
3170
3182
|
*/
|
|
3171
|
-
onFileDialogCancel:
|
|
3183
|
+
onFileDialogCancel: T.func,
|
|
3172
3184
|
/**
|
|
3173
3185
|
* Cb for when opening the file dialog
|
|
3174
3186
|
*/
|
|
3175
|
-
onFileDialogOpen:
|
|
3187
|
+
onFileDialogOpen: T.func,
|
|
3176
3188
|
/**
|
|
3177
3189
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3178
3190
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3179
3191
|
*/
|
|
3180
|
-
useFsAccessApi:
|
|
3192
|
+
useFsAccessApi: T.bool,
|
|
3181
3193
|
/**
|
|
3182
3194
|
* Set to true to focus the root element on render
|
|
3183
3195
|
*/
|
|
3184
|
-
autoFocus:
|
|
3196
|
+
autoFocus: T.bool,
|
|
3185
3197
|
/**
|
|
3186
3198
|
* Cb for when the `dragenter` event occurs.
|
|
3187
3199
|
*
|
|
3188
3200
|
* @param {DragEvent} event
|
|
3189
3201
|
*/
|
|
3190
|
-
onDragEnter:
|
|
3202
|
+
onDragEnter: T.func,
|
|
3191
3203
|
/**
|
|
3192
3204
|
* Cb for when the `dragleave` event occurs
|
|
3193
3205
|
*
|
|
3194
3206
|
* @param {DragEvent} event
|
|
3195
3207
|
*/
|
|
3196
|
-
onDragLeave:
|
|
3208
|
+
onDragLeave: T.func,
|
|
3197
3209
|
/**
|
|
3198
3210
|
* Cb for when the `dragover` event occurs
|
|
3199
3211
|
*
|
|
3200
3212
|
* @param {DragEvent} event
|
|
3201
3213
|
*/
|
|
3202
|
-
onDragOver:
|
|
3214
|
+
onDragOver: T.func,
|
|
3203
3215
|
/**
|
|
3204
3216
|
* Cb for when the `drop` event occurs.
|
|
3205
3217
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3230,7 +3242,7 @@ et.propTypes = {
|
|
|
3230
3242
|
* @param {FileRejection[]} fileRejections
|
|
3231
3243
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3232
3244
|
*/
|
|
3233
|
-
onDrop:
|
|
3245
|
+
onDrop: T.func,
|
|
3234
3246
|
/**
|
|
3235
3247
|
* Cb for when the `drop` event occurs.
|
|
3236
3248
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3238,7 +3250,7 @@ et.propTypes = {
|
|
|
3238
3250
|
* @param {File[]} files
|
|
3239
3251
|
* @param {(DragEvent|Event)} event
|
|
3240
3252
|
*/
|
|
3241
|
-
onDropAccepted:
|
|
3253
|
+
onDropAccepted: T.func,
|
|
3242
3254
|
/**
|
|
3243
3255
|
* Cb for when the `drop` event occurs.
|
|
3244
3256
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3246,21 +3258,21 @@ et.propTypes = {
|
|
|
3246
3258
|
* @param {FileRejection[]} fileRejections
|
|
3247
3259
|
* @param {(DragEvent|Event)} event
|
|
3248
3260
|
*/
|
|
3249
|
-
onDropRejected:
|
|
3261
|
+
onDropRejected: T.func,
|
|
3250
3262
|
/**
|
|
3251
3263
|
* Cb for when there's some error from any of the promises.
|
|
3252
3264
|
*
|
|
3253
3265
|
* @param {Error} error
|
|
3254
3266
|
*/
|
|
3255
|
-
onError:
|
|
3267
|
+
onError: T.func,
|
|
3256
3268
|
/**
|
|
3257
3269
|
* Custom validation function. It must return null if there's no errors.
|
|
3258
3270
|
* @param {File} file
|
|
3259
3271
|
* @returns {FileError|FileError[]|null}
|
|
3260
3272
|
*/
|
|
3261
|
-
validator:
|
|
3273
|
+
validator: T.func
|
|
3262
3274
|
};
|
|
3263
|
-
var
|
|
3275
|
+
var Nt = {
|
|
3264
3276
|
isFocused: !1,
|
|
3265
3277
|
isFileDialogActive: !1,
|
|
3266
3278
|
isDragActive: !1,
|
|
@@ -3269,48 +3281,48 @@ var St = {
|
|
|
3269
3281
|
acceptedFiles: [],
|
|
3270
3282
|
fileRejections: []
|
|
3271
3283
|
};
|
|
3272
|
-
function
|
|
3273
|
-
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, l = t.onDragLeave, d = t.onDragOver, x = t.onDrop, y = t.onDropAccepted, w = t.onDropRejected, g = t.onFileDialogCancel, S = t.onFileDialogOpen, L = t.useFsAccessApi,
|
|
3274
|
-
return
|
|
3284
|
+
function ki() {
|
|
3285
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Q(Q({}, In), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, u = t.maxFiles, c = t.onDragEnter, l = t.onDragLeave, d = t.onDragOver, x = t.onDrop, y = t.onDropAccepted, w = t.onDropRejected, g = t.onFileDialogCancel, S = t.onFileDialogOpen, L = t.useFsAccessApi, H = t.autoFocus, D = t.preventDropOnDocument, k = t.noClick, p = t.noKeyboard, E = t.noDrag, I = t.noDragEventsBubbling, V = t.onError, J = t.validator, oe = Oe(function() {
|
|
3286
|
+
return pi(n);
|
|
3275
3287
|
}, [n]), me = Oe(function() {
|
|
3276
|
-
return
|
|
3288
|
+
return si(n);
|
|
3277
3289
|
}, [n]), fe = Oe(function() {
|
|
3278
3290
|
return typeof S == "function" ? S : tn;
|
|
3279
3291
|
}, [S]), le = Oe(function() {
|
|
3280
3292
|
return typeof g == "function" ? g : tn;
|
|
3281
|
-
}, [g]), X = ue(null), Z = ue(null), C = Mn(
|
|
3282
|
-
!
|
|
3293
|
+
}, [g]), X = ue(null), Z = ue(null), C = Mn(Ci, Nt), W = ht(C, 2), K = W[0], z = W[1], f = K.isFocused, b = K.isFileDialogActive, O = ue(typeof window < "u" && window.isSecureContext && L && ri()), P = function() {
|
|
3294
|
+
!O.current && b && setTimeout(function() {
|
|
3283
3295
|
if (Z.current) {
|
|
3284
|
-
var
|
|
3285
|
-
|
|
3296
|
+
var R = Z.current.files;
|
|
3297
|
+
R.length || (z({
|
|
3286
3298
|
type: "closeDialog"
|
|
3287
3299
|
}), le());
|
|
3288
3300
|
}
|
|
3289
3301
|
}, 300);
|
|
3290
3302
|
};
|
|
3291
3303
|
ne(function() {
|
|
3292
|
-
return window.addEventListener("focus",
|
|
3293
|
-
window.removeEventListener("focus",
|
|
3304
|
+
return window.addEventListener("focus", P, !1), function() {
|
|
3305
|
+
window.removeEventListener("focus", P, !1);
|
|
3294
3306
|
};
|
|
3295
|
-
}, [Z, b, le,
|
|
3296
|
-
var
|
|
3297
|
-
X.current && X.current.contains(
|
|
3307
|
+
}, [Z, b, le, O]);
|
|
3308
|
+
var j = ue([]), M = function(R) {
|
|
3309
|
+
X.current && X.current.contains(R.target) || (R.preventDefault(), j.current = []);
|
|
3298
3310
|
};
|
|
3299
3311
|
ne(function() {
|
|
3300
|
-
return
|
|
3301
|
-
|
|
3312
|
+
return D && (document.addEventListener("dragover", Jt, !1), document.addEventListener("drop", M, !1)), function() {
|
|
3313
|
+
D && (document.removeEventListener("dragover", Jt), document.removeEventListener("drop", M));
|
|
3302
3314
|
};
|
|
3303
|
-
}, [X,
|
|
3304
|
-
return !o &&
|
|
3315
|
+
}, [X, D]), ne(function() {
|
|
3316
|
+
return !o && H && X.current && X.current.focus(), function() {
|
|
3305
3317
|
};
|
|
3306
|
-
}, [X,
|
|
3307
|
-
var
|
|
3308
|
-
|
|
3309
|
-
}, [
|
|
3310
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3311
|
-
if (!(Ze(h) && !
|
|
3312
|
-
var ee =
|
|
3313
|
-
files:
|
|
3318
|
+
}, [X, H, o]);
|
|
3319
|
+
var A = de(function(h) {
|
|
3320
|
+
V ? V(h) : console.error(h);
|
|
3321
|
+
}, [V]), F = de(function(h) {
|
|
3322
|
+
h.preventDefault(), h.persist(), He(h), j.current = [].concat(_i(j.current), [h.target]), Ge(h) && Promise.resolve(a(h)).then(function(R) {
|
|
3323
|
+
if (!(Ze(h) && !I)) {
|
|
3324
|
+
var ee = R.length, ae = ee > 0 && ni({
|
|
3325
|
+
files: R,
|
|
3314
3326
|
accept: oe,
|
|
3315
3327
|
minSize: r,
|
|
3316
3328
|
maxSize: i,
|
|
@@ -3318,40 +3330,40 @@ function wi() {
|
|
|
3318
3330
|
maxFiles: u,
|
|
3319
3331
|
validator: J
|
|
3320
3332
|
}), ve = ee > 0 && !ae;
|
|
3321
|
-
|
|
3333
|
+
z({
|
|
3322
3334
|
isDragAccept: ae,
|
|
3323
3335
|
isDragReject: ve,
|
|
3324
3336
|
isDragActive: !0,
|
|
3325
3337
|
type: "setDraggedFiles"
|
|
3326
3338
|
}), c && c(h);
|
|
3327
3339
|
}
|
|
3328
|
-
}).catch(function(
|
|
3329
|
-
return
|
|
3340
|
+
}).catch(function(R) {
|
|
3341
|
+
return A(R);
|
|
3330
3342
|
});
|
|
3331
|
-
}, [a, c,
|
|
3343
|
+
}, [a, c, A, I, oe, r, i, s, u, J]), $ = de(function(h) {
|
|
3332
3344
|
h.preventDefault(), h.persist(), He(h);
|
|
3333
|
-
var
|
|
3334
|
-
if (
|
|
3345
|
+
var R = Ge(h);
|
|
3346
|
+
if (R && h.dataTransfer)
|
|
3335
3347
|
try {
|
|
3336
3348
|
h.dataTransfer.dropEffect = "copy";
|
|
3337
3349
|
} catch {
|
|
3338
3350
|
}
|
|
3339
|
-
return
|
|
3340
|
-
}, [d,
|
|
3351
|
+
return R && d && d(h), !1;
|
|
3352
|
+
}, [d, I]), Y = de(function(h) {
|
|
3341
3353
|
h.preventDefault(), h.persist(), He(h);
|
|
3342
|
-
var
|
|
3354
|
+
var R = j.current.filter(function(ae) {
|
|
3343
3355
|
return X.current && X.current.contains(ae);
|
|
3344
|
-
}), ee =
|
|
3345
|
-
ee !== -1 &&
|
|
3356
|
+
}), ee = R.indexOf(h.target);
|
|
3357
|
+
ee !== -1 && R.splice(ee, 1), j.current = R, !(R.length > 0) && (z({
|
|
3346
3358
|
type: "setDraggedFiles",
|
|
3347
3359
|
isDragActive: !1,
|
|
3348
3360
|
isDragAccept: !1,
|
|
3349
3361
|
isDragReject: !1
|
|
3350
3362
|
}), Ge(h) && l && l(h));
|
|
3351
|
-
}, [X, l,
|
|
3363
|
+
}, [X, l, I]), B = de(function(h, R) {
|
|
3352
3364
|
var ee = [], ae = [];
|
|
3353
3365
|
h.forEach(function(ve) {
|
|
3354
|
-
var
|
|
3366
|
+
var ze = Cn(ve, oe), Le = ht(ze, 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;
|
|
3355
3367
|
if (nt && it && !st)
|
|
3356
3368
|
ee.push(ve);
|
|
3357
3369
|
else {
|
|
@@ -3366,89 +3378,89 @@ function wi() {
|
|
|
3366
3378
|
}), (!s && ee.length > 1 || s && u >= 1 && ee.length > u) && (ee.forEach(function(ve) {
|
|
3367
3379
|
ae.push({
|
|
3368
3380
|
file: ve,
|
|
3369
|
-
errors: [
|
|
3381
|
+
errors: [ti]
|
|
3370
3382
|
});
|
|
3371
|
-
}), ee.splice(0)),
|
|
3383
|
+
}), ee.splice(0)), z({
|
|
3372
3384
|
acceptedFiles: ee,
|
|
3373
3385
|
fileRejections: ae,
|
|
3374
3386
|
isDragReject: ae.length > 0,
|
|
3375
3387
|
type: "setFiles"
|
|
3376
|
-
}), x && x(ee, ae,
|
|
3377
|
-
}, [
|
|
3378
|
-
h.preventDefault(), h.persist(), He(h),
|
|
3379
|
-
Ze(h) && !
|
|
3380
|
-
}).catch(function(
|
|
3381
|
-
return
|
|
3382
|
-
}),
|
|
3388
|
+
}), x && x(ee, ae, R), ae.length > 0 && w && w(ae, R), ee.length > 0 && y && y(ee, R);
|
|
3389
|
+
}, [z, s, oe, r, i, u, x, y, w, J]), te = de(function(h) {
|
|
3390
|
+
h.preventDefault(), h.persist(), He(h), j.current = [], Ge(h) && Promise.resolve(a(h)).then(function(R) {
|
|
3391
|
+
Ze(h) && !I || B(R, h);
|
|
3392
|
+
}).catch(function(R) {
|
|
3393
|
+
return A(R);
|
|
3394
|
+
}), z({
|
|
3383
3395
|
type: "reset"
|
|
3384
3396
|
});
|
|
3385
|
-
}, [a,
|
|
3386
|
-
if (
|
|
3387
|
-
|
|
3397
|
+
}, [a, B, A, I]), v = de(function() {
|
|
3398
|
+
if (O.current) {
|
|
3399
|
+
z({
|
|
3388
3400
|
type: "openDialog"
|
|
3389
3401
|
}), fe();
|
|
3390
3402
|
var h = {
|
|
3391
3403
|
multiple: s,
|
|
3392
3404
|
types: me
|
|
3393
3405
|
};
|
|
3394
|
-
window.showOpenFilePicker(h).then(function(
|
|
3395
|
-
return a(
|
|
3396
|
-
}).then(function(
|
|
3397
|
-
|
|
3406
|
+
window.showOpenFilePicker(h).then(function(R) {
|
|
3407
|
+
return a(R);
|
|
3408
|
+
}).then(function(R) {
|
|
3409
|
+
B(R, null), z({
|
|
3398
3410
|
type: "closeDialog"
|
|
3399
3411
|
});
|
|
3400
|
-
}).catch(function(
|
|
3401
|
-
|
|
3412
|
+
}).catch(function(R) {
|
|
3413
|
+
ci(R) ? (le(R), z({
|
|
3402
3414
|
type: "closeDialog"
|
|
3403
|
-
})) :
|
|
3415
|
+
})) : li(R) ? (O.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : A(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."))) : A(R);
|
|
3404
3416
|
});
|
|
3405
3417
|
return;
|
|
3406
3418
|
}
|
|
3407
|
-
Z.current && (
|
|
3419
|
+
Z.current && (z({
|
|
3408
3420
|
type: "openDialog"
|
|
3409
3421
|
}), fe(), Z.current.value = null, Z.current.click());
|
|
3410
|
-
}, [
|
|
3422
|
+
}, [z, fe, le, L, B, A, me, s]), _e = de(function(h) {
|
|
3411
3423
|
!X.current || !X.current.isEqualNode(h.target) || (h.key === " " || h.key === "Enter" || h.keyCode === 32 || h.keyCode === 13) && (h.preventDefault(), v());
|
|
3412
|
-
}, [X, v]),
|
|
3413
|
-
|
|
3424
|
+
}, [X, v]), Ne = de(function() {
|
|
3425
|
+
z({
|
|
3414
3426
|
type: "focus"
|
|
3415
3427
|
});
|
|
3416
3428
|
}, []), Fe = de(function() {
|
|
3417
|
-
|
|
3429
|
+
z({
|
|
3418
3430
|
type: "blur"
|
|
3419
3431
|
});
|
|
3420
3432
|
}, []), Dt = de(function() {
|
|
3421
|
-
k || (
|
|
3422
|
-
}, [k, v]), De = function(
|
|
3423
|
-
return o ? null :
|
|
3424
|
-
}, tt = function(
|
|
3425
|
-
return p ? null : De(
|
|
3426
|
-
},
|
|
3427
|
-
return
|
|
3428
|
-
}, He = function(
|
|
3429
|
-
|
|
3433
|
+
k || (ii() ? setTimeout(v, 0) : v());
|
|
3434
|
+
}, [k, v]), De = function(R) {
|
|
3435
|
+
return o ? null : R;
|
|
3436
|
+
}, tt = function(R) {
|
|
3437
|
+
return p ? null : De(R);
|
|
3438
|
+
}, qe = function(R) {
|
|
3439
|
+
return E ? null : De(R);
|
|
3440
|
+
}, He = function(R) {
|
|
3441
|
+
I && R.stopPropagation();
|
|
3430
3442
|
}, Ln = Oe(function() {
|
|
3431
3443
|
return function() {
|
|
3432
|
-
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3433
|
-
return Q(Q(
|
|
3434
|
-
onKeyDown: tt(
|
|
3435
|
-
onFocus: tt(
|
|
3436
|
-
onBlur: tt(
|
|
3437
|
-
onClick: De(
|
|
3438
|
-
onDragEnter:
|
|
3439
|
-
onDragOver:
|
|
3440
|
-
onDragLeave:
|
|
3441
|
-
onDrop:
|
|
3444
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = h.refKey, ee = R === void 0 ? "ref" : R, ae = h.role, ve = h.onKeyDown, ze = h.onFocus, Le = h.onBlur, nt = h.onClick, ot = h.onDragEnter, at = h.onDragOver, Ve = h.onDragLeave, it = h.onDrop, rt = Qe(h, mi);
|
|
3445
|
+
return Q(Q(St({
|
|
3446
|
+
onKeyDown: tt(Ce(ve, _e)),
|
|
3447
|
+
onFocus: tt(Ce(ze, Ne)),
|
|
3448
|
+
onBlur: tt(Ce(Le, Fe)),
|
|
3449
|
+
onClick: De(Ce(nt, Dt)),
|
|
3450
|
+
onDragEnter: qe(Ce(ot, F)),
|
|
3451
|
+
onDragOver: qe(Ce(at, $)),
|
|
3452
|
+
onDragLeave: qe(Ce(Ve, Y)),
|
|
3453
|
+
onDrop: qe(Ce(it, te)),
|
|
3442
3454
|
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
3443
3455
|
}, ee, X), !o && !p ? {
|
|
3444
3456
|
tabIndex: 0
|
|
3445
3457
|
} : {}), rt);
|
|
3446
3458
|
};
|
|
3447
|
-
}, [X, _e,
|
|
3459
|
+
}, [X, _e, Ne, Fe, Dt, F, $, Y, te, p, E, o]), On = de(function(h) {
|
|
3448
3460
|
h.stopPropagation();
|
|
3449
3461
|
}, []), Pn = Oe(function() {
|
|
3450
3462
|
return function() {
|
|
3451
|
-
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3463
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, R = h.refKey, ee = R === void 0 ? "ref" : R, ae = h.onChange, ve = h.onClick, ze = Qe(h, fi), Le = St({
|
|
3452
3464
|
accept: oe,
|
|
3453
3465
|
multiple: s,
|
|
3454
3466
|
type: "file",
|
|
@@ -3464,11 +3476,11 @@ function wi() {
|
|
|
3464
3476
|
width: "1px",
|
|
3465
3477
|
whiteSpace: "nowrap"
|
|
3466
3478
|
},
|
|
3467
|
-
onChange: De(
|
|
3468
|
-
onClick: De(
|
|
3479
|
+
onChange: De(Ce(ae, te)),
|
|
3480
|
+
onClick: De(Ce(ve, On)),
|
|
3469
3481
|
tabIndex: -1
|
|
3470
3482
|
}, ee, Z);
|
|
3471
|
-
return Q(Q({}, Le),
|
|
3483
|
+
return Q(Q({}, Le), ze);
|
|
3472
3484
|
};
|
|
3473
3485
|
}, [Z, n, s, te, o]);
|
|
3474
3486
|
return Q(Q({}, K), {}, {
|
|
@@ -3480,7 +3492,7 @@ function wi() {
|
|
|
3480
3492
|
open: De(v)
|
|
3481
3493
|
});
|
|
3482
3494
|
}
|
|
3483
|
-
function
|
|
3495
|
+
function Ci(e, t) {
|
|
3484
3496
|
switch (t.type) {
|
|
3485
3497
|
case "focus":
|
|
3486
3498
|
return Q(Q({}, e), {}, {
|
|
@@ -3491,7 +3503,7 @@ function ki(e, t) {
|
|
|
3491
3503
|
isFocused: !1
|
|
3492
3504
|
});
|
|
3493
3505
|
case "openDialog":
|
|
3494
|
-
return Q(Q({},
|
|
3506
|
+
return Q(Q({}, Nt), {}, {
|
|
3495
3507
|
isFileDialogActive: !0
|
|
3496
3508
|
});
|
|
3497
3509
|
case "closeDialog":
|
|
@@ -3511,14 +3523,14 @@ function ki(e, t) {
|
|
|
3511
3523
|
isDragReject: t.isDragReject
|
|
3512
3524
|
});
|
|
3513
3525
|
case "reset":
|
|
3514
|
-
return Q({},
|
|
3526
|
+
return Q({}, Nt);
|
|
3515
3527
|
default:
|
|
3516
3528
|
return e;
|
|
3517
3529
|
}
|
|
3518
3530
|
}
|
|
3519
3531
|
function tn() {
|
|
3520
3532
|
}
|
|
3521
|
-
const
|
|
3533
|
+
const Ti = (e) => {
|
|
3522
3534
|
const {
|
|
3523
3535
|
onDropFiles: t,
|
|
3524
3536
|
children: n,
|
|
@@ -3544,20 +3556,20 @@ const Ci = (e) => {
|
|
|
3544
3556
|
},
|
|
3545
3557
|
[c, u, s, r, t]
|
|
3546
3558
|
);
|
|
3547
|
-
return /* @__PURE__ */ m(et, { multiple: s, onDrop: l, maxSize: o, accept: a, children: ({ getRootProps: d, getInputProps: x }) => /* @__PURE__ */
|
|
3559
|
+
return /* @__PURE__ */ m(et, { multiple: s, onDrop: l, maxSize: o, accept: a, children: ({ getRootProps: d, getInputProps: x }) => /* @__PURE__ */ q("div", { ...d({}), children: [
|
|
3548
3560
|
/* @__PURE__ */ m("input", { ...x({}), disabled: i, name: r }),
|
|
3549
3561
|
n
|
|
3550
3562
|
] }) });
|
|
3551
|
-
},
|
|
3552
|
-
spDropdown:
|
|
3553
|
-
spDropdown__labelText:
|
|
3563
|
+
}, Ei = "_spDropdown_1f4lf_43", Si = "_spDropdown__labelText_1f4lf_54", Ni = "_spDropdown__tooltipContainer_1f4lf_62", Ii = "_spDropdown__dropdownList_1f4lf_67", Ri = "_spDropdown__dropdownListHeader_1f4lf_73", ji = "_spDropdown__dopdownListItem_1f4lf_80", Ai = "_spDropdown__dopdownListItem_textCenter_1f4lf_91", Di = "_spDropdown__downloadListItemDescription_1f4lf_94", Se = {
|
|
3564
|
+
spDropdown: Ei,
|
|
3565
|
+
spDropdown__labelText: Si,
|
|
3554
3566
|
spDropdown__tooltipContainer: Ni,
|
|
3555
|
-
spDropdown__dropdownList:
|
|
3556
|
-
spDropdown__dropdownListHeader:
|
|
3557
|
-
spDropdown__dopdownListItem:
|
|
3558
|
-
spDropdown__dopdownListItem_textCenter:
|
|
3559
|
-
spDropdown__downloadListItemDescription:
|
|
3560
|
-
},
|
|
3567
|
+
spDropdown__dropdownList: Ii,
|
|
3568
|
+
spDropdown__dropdownListHeader: Ri,
|
|
3569
|
+
spDropdown__dopdownListItem: ji,
|
|
3570
|
+
spDropdown__dopdownListItem_textCenter: Ai,
|
|
3571
|
+
spDropdown__downloadListItemDescription: Di
|
|
3572
|
+
}, Hs = (e) => {
|
|
3561
3573
|
const {
|
|
3562
3574
|
labelText: t = "Выпадающий список",
|
|
3563
3575
|
listName: n,
|
|
@@ -3565,18 +3577,18 @@ const Ci = (e) => {
|
|
|
3565
3577
|
dropdownPosition: a = se.BottomRight,
|
|
3566
3578
|
classNameRoot: i
|
|
3567
3579
|
} = e, r = _({
|
|
3568
|
-
[
|
|
3580
|
+
[Se.spDropdown]: !0,
|
|
3569
3581
|
...i && { [i]: !0 }
|
|
3570
3582
|
}), s = _({
|
|
3571
|
-
[
|
|
3583
|
+
[Se.spDropdown__labelText]: !0
|
|
3572
3584
|
}), u = _({
|
|
3573
|
-
[
|
|
3585
|
+
[Se.spDropdown__tooltipContainer]: !0
|
|
3574
3586
|
}), c = _({
|
|
3575
|
-
[
|
|
3587
|
+
[Se.spDropdown__dropdownList]: !0
|
|
3576
3588
|
}), l = _({
|
|
3577
|
-
[
|
|
3589
|
+
[Se.spDropdown__dropdownListHeader]: !0
|
|
3578
3590
|
}), d = _({
|
|
3579
|
-
[
|
|
3591
|
+
[Se.spDropdown__downloadListItemDescription]: !0
|
|
3580
3592
|
}), [x, y] = ie(!1);
|
|
3581
3593
|
return /* @__PURE__ */ m(
|
|
3582
3594
|
It,
|
|
@@ -3584,14 +3596,14 @@ const Ci = (e) => {
|
|
|
3584
3596
|
hover: !1,
|
|
3585
3597
|
triggerAction: () => y(!0),
|
|
3586
3598
|
actionOnClose: () => y(!1),
|
|
3587
|
-
text: /* @__PURE__ */
|
|
3599
|
+
text: /* @__PURE__ */ q("div", { className: c, children: [
|
|
3588
3600
|
n && /* @__PURE__ */ m("div", { className: l, children: n }),
|
|
3589
|
-
o.map((g, S) => /* @__PURE__ */
|
|
3601
|
+
o.map((g, S) => /* @__PURE__ */ q(
|
|
3590
3602
|
"div",
|
|
3591
3603
|
{
|
|
3592
3604
|
className: _({
|
|
3593
|
-
[
|
|
3594
|
-
[
|
|
3605
|
+
[Se.spDropdown__dopdownListItem]: !0,
|
|
3606
|
+
[Se.spDropdown__dopdownListItem_textCenter]: g.textCenter
|
|
3595
3607
|
}),
|
|
3596
3608
|
onClick: g.onClick,
|
|
3597
3609
|
children: [
|
|
@@ -3606,16 +3618,16 @@ const Ci = (e) => {
|
|
|
3606
3618
|
noPadding: !0,
|
|
3607
3619
|
isToggleClick: !0,
|
|
3608
3620
|
isStopPropagationClickOnTrigger: !0,
|
|
3609
|
-
trigger: /* @__PURE__ */
|
|
3621
|
+
trigger: /* @__PURE__ */ q("div", { className: r, children: [
|
|
3610
3622
|
/* @__PURE__ */ m("div", { className: s, children: t }),
|
|
3611
3623
|
/* @__PURE__ */ m("div", { className: u, children: /* @__PURE__ */ m(he, { name: pe.SelectChevronDown, rotate: x ? 180 : void 0 }) })
|
|
3612
3624
|
] })
|
|
3613
3625
|
}
|
|
3614
3626
|
);
|
|
3615
|
-
},
|
|
3616
|
-
ellipsisTextWithTooltip:
|
|
3617
|
-
ellipsisTextWithTooltip__tooltip:
|
|
3618
|
-
},
|
|
3627
|
+
}, Li = "_ellipsisTextWithTooltip_1nhiw_43", Oi = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", nn = {
|
|
3628
|
+
ellipsisTextWithTooltip: Li,
|
|
3629
|
+
ellipsisTextWithTooltip__tooltip: Oi
|
|
3630
|
+
}, Pi = (e) => {
|
|
3619
3631
|
const {
|
|
3620
3632
|
text: t,
|
|
3621
3633
|
classNameRoot: n,
|
|
@@ -3649,13 +3661,13 @@ const Ci = (e) => {
|
|
|
3649
3661
|
trigger: /* @__PURE__ */ m(Ee, { ...s, classNameRoot: d, isEllipsis: !0, ref: u, children: t })
|
|
3650
3662
|
}
|
|
3651
3663
|
);
|
|
3652
|
-
},
|
|
3653
|
-
spForm:
|
|
3654
|
-
spForm_fullWidth:
|
|
3664
|
+
}, Fi = "_spForm_zefbj_43", zi = "_spForm_fullWidth_zefbj_46", Bi = "_spForm_withSeparator_zefbj_49", We = {
|
|
3665
|
+
spForm: Fi,
|
|
3666
|
+
spForm_fullWidth: zi,
|
|
3655
3667
|
spForm_withSeparator: Bi,
|
|
3656
3668
|
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3657
3669
|
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
3658
|
-
},
|
|
3670
|
+
}, Vs = (e) => {
|
|
3659
3671
|
const {
|
|
3660
3672
|
size: t = "lg",
|
|
3661
3673
|
children: n,
|
|
@@ -3676,10 +3688,10 @@ const Ci = (e) => {
|
|
|
3676
3688
|
return /* @__PURE__ */ m("form", { ...u, onSubmit: (d) => {
|
|
3677
3689
|
d.preventDefault(), o && o();
|
|
3678
3690
|
}, className: c, children: n });
|
|
3679
|
-
},
|
|
3680
|
-
spLabel:
|
|
3681
|
-
spLabel__text:
|
|
3682
|
-
spLabel__tooltip:
|
|
3691
|
+
}, Wi = "_spLabel_g0hfy_43", Mi = "_spLabel__text_g0hfy_52", $i = "_spLabel__tooltip_g0hfy_62", qi = "_spLabel__required_g0hfy_67", Ke = {
|
|
3692
|
+
spLabel: Wi,
|
|
3693
|
+
spLabel__text: Mi,
|
|
3694
|
+
spLabel__tooltip: $i,
|
|
3683
3695
|
spLabel__required: qi
|
|
3684
3696
|
}, jt = (e) => {
|
|
3685
3697
|
const {
|
|
@@ -3699,7 +3711,7 @@ const Ci = (e) => {
|
|
|
3699
3711
|
}), l = _({
|
|
3700
3712
|
[Ke.spLabel__tooltip]: !0
|
|
3701
3713
|
});
|
|
3702
|
-
return /* @__PURE__ */
|
|
3714
|
+
return /* @__PURE__ */ q("div", { className: s, children: [
|
|
3703
3715
|
/* @__PURE__ */ m("label", { className: u, children: n }),
|
|
3704
3716
|
t && /* @__PURE__ */ m("div", { className: c, children: "*" }),
|
|
3705
3717
|
o && /* @__PURE__ */ m("div", { className: l, children: /* @__PURE__ */ m(
|
|
@@ -3711,18 +3723,18 @@ const Ci = (e) => {
|
|
|
3711
3723
|
}
|
|
3712
3724
|
) })
|
|
3713
3725
|
] });
|
|
3714
|
-
},
|
|
3715
|
-
spInput:
|
|
3716
|
-
spInput_error:
|
|
3717
|
-
spInput__control:
|
|
3718
|
-
spInput__container:
|
|
3719
|
-
spInput__control_filled:
|
|
3720
|
-
spInput__control_outlined:
|
|
3721
|
-
spInput__control_disabled:
|
|
3722
|
-
spInput__control_clearable:
|
|
3723
|
-
spInput__clear:
|
|
3724
|
-
spInput__error:
|
|
3725
|
-
},
|
|
3726
|
+
}, Hi = "_spInput_etrn0_43", Vi = "_spInput_error_etrn0_48", Yi = "_spInput__control_etrn0_48", Ui = "_spInput__container_etrn0_55", Gi = "_spInput__control_filled_etrn0_74", Ki = "_spInput__control_outlined_etrn0_78", Xi = "_spInput__control_disabled_etrn0_82", Zi = "_spInput__control_clearable_etrn0_86", Qi = "_spInput__clear_etrn0_113", Ji = "_spInput__error_etrn0_122", Te = {
|
|
3727
|
+
spInput: Hi,
|
|
3728
|
+
spInput_error: Vi,
|
|
3729
|
+
spInput__control: Yi,
|
|
3730
|
+
spInput__container: Ui,
|
|
3731
|
+
spInput__control_filled: Gi,
|
|
3732
|
+
spInput__control_outlined: Ki,
|
|
3733
|
+
spInput__control_disabled: Xi,
|
|
3734
|
+
spInput__control_clearable: Zi,
|
|
3735
|
+
spInput__clear: Qi,
|
|
3736
|
+
spInput__error: Ji
|
|
3737
|
+
}, er = $e.forwardRef((e, t) => {
|
|
3726
3738
|
const {
|
|
3727
3739
|
value: n,
|
|
3728
3740
|
onChange: o,
|
|
@@ -3740,17 +3752,17 @@ const Ci = (e) => {
|
|
|
3740
3752
|
isVisibleDefaultTitle: g = !0,
|
|
3741
3753
|
placeholder: S = "Введите...",
|
|
3742
3754
|
classNameRoot: L,
|
|
3743
|
-
classNameError:
|
|
3744
|
-
classNameLabel:
|
|
3755
|
+
classNameError: H,
|
|
3756
|
+
classNameLabel: D,
|
|
3745
3757
|
classNameBaseTooltipRoot: k,
|
|
3746
3758
|
...p
|
|
3747
|
-
} = e,
|
|
3759
|
+
} = e, E = _({
|
|
3748
3760
|
[Te.spInput]: !0,
|
|
3749
3761
|
[Te.spInput_error]: !!s,
|
|
3750
3762
|
...L && { [L]: !0 }
|
|
3751
|
-
}),
|
|
3763
|
+
}), I = _({
|
|
3752
3764
|
[Te.spInput__container]: !0
|
|
3753
|
-
}),
|
|
3765
|
+
}), V = _({
|
|
3754
3766
|
[Te.spInput__control]: !0,
|
|
3755
3767
|
[Te.spInput__control_disabled]: r,
|
|
3756
3768
|
[Te[`spInput__control_${i}`]]: i,
|
|
@@ -3759,16 +3771,16 @@ const Ci = (e) => {
|
|
|
3759
3771
|
[Te.spInput__clear]: !0
|
|
3760
3772
|
}), oe = _({
|
|
3761
3773
|
[Te.spInput__error]: !0,
|
|
3762
|
-
...
|
|
3774
|
+
...H && { [H]: !0 }
|
|
3763
3775
|
}), me = _({
|
|
3764
|
-
...
|
|
3776
|
+
...D && { [D]: !0 }
|
|
3765
3777
|
}), fe = (Z) => {
|
|
3766
3778
|
o(Z, { name: c, value: "" });
|
|
3767
3779
|
}, le = (Z) => {
|
|
3768
3780
|
const { value: C, name: W } = Z.target;
|
|
3769
3781
|
d && C && !new RegExp(d).test(C) || o(Z, { value: C, name: W });
|
|
3770
3782
|
};
|
|
3771
|
-
return /* @__PURE__ */
|
|
3783
|
+
return /* @__PURE__ */ q("div", { className: E, children: [
|
|
3772
3784
|
a && /* @__PURE__ */ m(
|
|
3773
3785
|
jt,
|
|
3774
3786
|
{
|
|
@@ -3780,7 +3792,7 @@ const Ci = (e) => {
|
|
|
3780
3792
|
classNameBaseTooltipRoot: k
|
|
3781
3793
|
}
|
|
3782
3794
|
),
|
|
3783
|
-
/* @__PURE__ */
|
|
3795
|
+
/* @__PURE__ */ q("div", { className: I, onMouseEnter: x, children: [
|
|
3784
3796
|
/* @__PURE__ */ m(
|
|
3785
3797
|
"input",
|
|
3786
3798
|
{
|
|
@@ -3791,7 +3803,7 @@ const Ci = (e) => {
|
|
|
3791
3803
|
title: g ? n : void 0,
|
|
3792
3804
|
value: n,
|
|
3793
3805
|
name: c,
|
|
3794
|
-
className:
|
|
3806
|
+
className: V,
|
|
3795
3807
|
ref: t
|
|
3796
3808
|
}
|
|
3797
3809
|
),
|
|
@@ -3800,22 +3812,22 @@ const Ci = (e) => {
|
|
|
3800
3812
|
s && /* @__PURE__ */ m("div", { className: oe, children: s })
|
|
3801
3813
|
] });
|
|
3802
3814
|
});
|
|
3803
|
-
|
|
3804
|
-
const
|
|
3805
|
-
spInputFiles:
|
|
3806
|
-
spInputFiles_error:
|
|
3807
|
-
spInputFiles__control:
|
|
3808
|
-
spInputFiles_disabled:
|
|
3809
|
-
spInputFiles_fileUploaded:
|
|
3810
|
-
spInputFiles__fileNamesList:
|
|
3811
|
-
spInputFiles__fileNamesListItem:
|
|
3812
|
-
spInputFiles__fileNamesListItem__triggerTooltip:
|
|
3813
|
-
spInputFiles__fileNamesListItemDelete:
|
|
3814
|
-
spInputFiles__tooltipWrapper:
|
|
3815
|
-
spInputFiles__tooltip:
|
|
3816
|
-
spInputFiles__delete:
|
|
3817
|
-
spInputFiles__error:
|
|
3818
|
-
},
|
|
3815
|
+
er.displayName = "Input";
|
|
3816
|
+
const tr = "_spInputFiles_1ukpx_43", nr = "_spInputFiles_error_1ukpx_48", or = "_spInputFiles__control_1ukpx_48", ar = "_spInputFiles_disabled_1ukpx_77", ir = "_spInputFiles_fileUploaded_1ukpx_81", rr = "_spInputFiles__fileNamesList_1ukpx_85", sr = "_spInputFiles__fileNamesListItem_1ukpx_94", pr = "_spInputFiles__fileNamesListItem__triggerTooltip_1ukpx_113", cr = "_spInputFiles__fileNamesListItemDelete_1ukpx_116", lr = "_spInputFiles__tooltipWrapper_1ukpx_131", dr = "_spInputFiles__tooltip_1ukpx_131", ur = "_spInputFiles__delete_1ukpx_137", mr = "_spInputFiles__error_1ukpx_145", xe = {
|
|
3817
|
+
spInputFiles: tr,
|
|
3818
|
+
spInputFiles_error: nr,
|
|
3819
|
+
spInputFiles__control: or,
|
|
3820
|
+
spInputFiles_disabled: ar,
|
|
3821
|
+
spInputFiles_fileUploaded: ir,
|
|
3822
|
+
spInputFiles__fileNamesList: rr,
|
|
3823
|
+
spInputFiles__fileNamesListItem: sr,
|
|
3824
|
+
spInputFiles__fileNamesListItem__triggerTooltip: pr,
|
|
3825
|
+
spInputFiles__fileNamesListItemDelete: cr,
|
|
3826
|
+
spInputFiles__tooltipWrapper: lr,
|
|
3827
|
+
spInputFiles__tooltip: dr,
|
|
3828
|
+
spInputFiles__delete: ur,
|
|
3829
|
+
spInputFiles__error: mr
|
|
3830
|
+
}, Ys = (e) => {
|
|
3819
3831
|
const {
|
|
3820
3832
|
placeholder: t = "Загрузите файл",
|
|
3821
3833
|
name: n,
|
|
@@ -3837,20 +3849,20 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3837
3849
|
[xe.spInputFiles_fileUploaded]: g,
|
|
3838
3850
|
...x && { [x]: !0 }
|
|
3839
3851
|
}), L = (p) => {
|
|
3840
|
-
const
|
|
3841
|
-
|
|
3842
|
-
},
|
|
3852
|
+
const E = [...c], I = E.findIndex((V) => V.name === p);
|
|
3853
|
+
E.splice(I, 1), o(E, n);
|
|
3854
|
+
}, H = (p) => {
|
|
3843
3855
|
p.stopPropagation(), o([], n);
|
|
3844
|
-
},
|
|
3856
|
+
}, D = () => s ? /* @__PURE__ */ m("ul", { className: xe.spInputFiles__fileNamesList, children: w.map((p, E) => /* @__PURE__ */ q(
|
|
3845
3857
|
"li",
|
|
3846
3858
|
{
|
|
3847
3859
|
className: xe.spInputFiles__fileNamesListItem,
|
|
3848
|
-
onClick: (
|
|
3849
|
-
|
|
3860
|
+
onClick: (I) => {
|
|
3861
|
+
I.stopPropagation(), L(p);
|
|
3850
3862
|
},
|
|
3851
3863
|
children: [
|
|
3852
3864
|
/* @__PURE__ */ m(
|
|
3853
|
-
|
|
3865
|
+
Pi,
|
|
3854
3866
|
{
|
|
3855
3867
|
type: "p2",
|
|
3856
3868
|
text: p,
|
|
@@ -3860,10 +3872,10 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3860
3872
|
/* @__PURE__ */ m("div", { className: xe.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ m(he, { name: pe.Trash }) })
|
|
3861
3873
|
]
|
|
3862
3874
|
},
|
|
3863
|
-
|
|
3864
|
-
)) }) : /* @__PURE__ */ m(Ee, { isEllipsis: !0, children: w[0] }), k = () => /* @__PURE__ */
|
|
3865
|
-
g ?
|
|
3866
|
-
g ? /* @__PURE__ */ m("div", { className: xe.spInputFiles__delete, onClick:
|
|
3875
|
+
E
|
|
3876
|
+
)) }) : /* @__PURE__ */ m(Ee, { isEllipsis: !0, children: w[0] }), k = () => /* @__PURE__ */ q(dn, { children: [
|
|
3877
|
+
g ? D() : /* @__PURE__ */ m(Ee, { children: t }),
|
|
3878
|
+
g ? /* @__PURE__ */ m("div", { className: xe.spInputFiles__delete, onClick: H, children: /* @__PURE__ */ m(he, { name: pe.Close }) }) : l && /* @__PURE__ */ m(
|
|
3867
3879
|
Je,
|
|
3868
3880
|
{
|
|
3869
3881
|
classNameTooltip: xe.spInputFiles__tooltipWrapper,
|
|
@@ -3874,7 +3886,7 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3874
3886
|
)
|
|
3875
3887
|
] });
|
|
3876
3888
|
return /* @__PURE__ */ m(
|
|
3877
|
-
|
|
3889
|
+
Ti,
|
|
3878
3890
|
{
|
|
3879
3891
|
name: n,
|
|
3880
3892
|
files: c,
|
|
@@ -3884,8 +3896,8 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3884
3896
|
accept: i,
|
|
3885
3897
|
onDropFiles: o,
|
|
3886
3898
|
disabled: r || g,
|
|
3887
|
-
children: /* @__PURE__ */
|
|
3888
|
-
/* @__PURE__ */
|
|
3899
|
+
children: /* @__PURE__ */ q("div", { className: S, children: [
|
|
3900
|
+
/* @__PURE__ */ q("div", { className: xe.spInputFiles__control, children: [
|
|
3889
3901
|
/* @__PURE__ */ m(he, { name: g ? pe.Check : pe.Upload }),
|
|
3890
3902
|
k()
|
|
3891
3903
|
] }),
|
|
@@ -3893,7 +3905,7 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3893
3905
|
] })
|
|
3894
3906
|
}
|
|
3895
3907
|
);
|
|
3896
|
-
},
|
|
3908
|
+
}, fr = un({
|
|
3897
3909
|
device: {
|
|
3898
3910
|
isDesktop: !1,
|
|
3899
3911
|
isMobile: !1,
|
|
@@ -3901,10 +3913,10 @@ const er = "_spInputFiles_1ukpx_43", tr = "_spInputFiles_error_1ukpx_48", nr = "
|
|
|
3901
3913
|
}
|
|
3902
3914
|
});
|
|
3903
3915
|
var At = {};
|
|
3904
|
-
At.match =
|
|
3916
|
+
At.match = br;
|
|
3905
3917
|
At.parse = Rn;
|
|
3906
|
-
var
|
|
3907
|
-
function
|
|
3918
|
+
var _r = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i, vr = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/, xr = /^(?:(min|max)-)?(.+)/, gr = /(em|rem|px|cm|mm|in|pt|pc)?$/, hr = /(dpi|dpcm|dppx)?$/;
|
|
3919
|
+
function br(e, t) {
|
|
3908
3920
|
return Rn(e).some(function(n) {
|
|
3909
3921
|
var o = n.inverse, a = n.type === "all" || t.type === n.type;
|
|
3910
3922
|
if (a && o || !(a || o))
|
|
@@ -3954,9 +3966,9 @@ function hr(e, t) {
|
|
|
3954
3966
|
function Rn(e) {
|
|
3955
3967
|
return e.split(",").map(function(t) {
|
|
3956
3968
|
t = t.trim();
|
|
3957
|
-
var n = t.match(
|
|
3969
|
+
var n = t.match(_r), o = n[1], a = n[2], i = n[3] || "", r = {};
|
|
3958
3970
|
return r.inverse = !!o && o.toLowerCase() === "not", r.type = a ? a.toLowerCase() : "all", i = i.match(/\([^\)]+\)/g) || [], r.expressions = i.map(function(s) {
|
|
3959
|
-
var u = s.match(
|
|
3971
|
+
var u = s.match(vr), c = u[1].toLowerCase().match(xr);
|
|
3960
3972
|
return {
|
|
3961
3973
|
modifier: c[1],
|
|
3962
3974
|
feature: c[2],
|
|
@@ -3970,7 +3982,7 @@ function on(e) {
|
|
|
3970
3982
|
return t || (n = e.match(/^(\d+)\s*\/\s*(\d+)$/), t = n[1] / n[2]), t;
|
|
3971
3983
|
}
|
|
3972
3984
|
function an(e) {
|
|
3973
|
-
var t = parseFloat(e), n = String(e).match(
|
|
3985
|
+
var t = parseFloat(e), n = String(e).match(hr)[1];
|
|
3974
3986
|
switch (n) {
|
|
3975
3987
|
case "dpcm":
|
|
3976
3988
|
return t / 2.54;
|
|
@@ -3981,7 +3993,7 @@ function an(e) {
|
|
|
3981
3993
|
}
|
|
3982
3994
|
}
|
|
3983
3995
|
function rn(e) {
|
|
3984
|
-
var t = parseFloat(e), n = String(e).match(
|
|
3996
|
+
var t = parseFloat(e), n = String(e).match(gr)[1];
|
|
3985
3997
|
switch (n) {
|
|
3986
3998
|
case "em":
|
|
3987
3999
|
return t * 16;
|
|
@@ -4001,10 +4013,10 @@ function rn(e) {
|
|
|
4001
4013
|
return t;
|
|
4002
4014
|
}
|
|
4003
4015
|
}
|
|
4004
|
-
var
|
|
4005
|
-
function
|
|
4016
|
+
var yr = At.match, sn = typeof window < "u" ? window.matchMedia : null;
|
|
4017
|
+
function wr(e, t, n) {
|
|
4006
4018
|
var o = this, a;
|
|
4007
|
-
sn && !n && (a = sn.call(window, e)), a ? (this.matches = a.matches, this.media = a.media, a.addListener(s)) : (this.matches =
|
|
4019
|
+
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;
|
|
4008
4020
|
function i(c) {
|
|
4009
4021
|
a && a.addListener(c);
|
|
4010
4022
|
}
|
|
@@ -4018,22 +4030,22 @@ function yr(e, t, n) {
|
|
|
4018
4030
|
a && a.removeListener(s);
|
|
4019
4031
|
}
|
|
4020
4032
|
}
|
|
4021
|
-
function
|
|
4022
|
-
return new
|
|
4033
|
+
function kr(e, t, n) {
|
|
4034
|
+
return new wr(e, t, n);
|
|
4023
4035
|
}
|
|
4024
|
-
var
|
|
4025
|
-
const
|
|
4026
|
-
var
|
|
4036
|
+
var Cr = kr;
|
|
4037
|
+
const Tr = /* @__PURE__ */ xn(Cr);
|
|
4038
|
+
var Er = /[A-Z]/g, Sr = /^ms-/, bt = {};
|
|
4027
4039
|
function Nr(e) {
|
|
4028
4040
|
return "-" + e.toLowerCase();
|
|
4029
4041
|
}
|
|
4030
4042
|
function jn(e) {
|
|
4031
4043
|
if (bt.hasOwnProperty(e))
|
|
4032
4044
|
return bt[e];
|
|
4033
|
-
var t = e.replace(
|
|
4034
|
-
return bt[e] =
|
|
4045
|
+
var t = e.replace(Er, Nr);
|
|
4046
|
+
return bt[e] = Sr.test(t) ? "-" + t : t;
|
|
4035
4047
|
}
|
|
4036
|
-
function
|
|
4048
|
+
function Ir(e, t) {
|
|
4037
4049
|
if (e === t)
|
|
4038
4050
|
return !0;
|
|
4039
4051
|
if (!e || !t)
|
|
@@ -4048,37 +4060,37 @@ function Sr(e, t) {
|
|
|
4048
4060
|
}
|
|
4049
4061
|
return !0;
|
|
4050
4062
|
}
|
|
4051
|
-
const ce =
|
|
4052
|
-
all:
|
|
4053
|
-
grid:
|
|
4054
|
-
aural:
|
|
4055
|
-
braille:
|
|
4056
|
-
handheld:
|
|
4057
|
-
print:
|
|
4058
|
-
projection:
|
|
4059
|
-
screen:
|
|
4060
|
-
tty:
|
|
4061
|
-
tv:
|
|
4062
|
-
embossed:
|
|
4063
|
-
},
|
|
4064
|
-
orientation:
|
|
4065
|
-
scan:
|
|
4066
|
-
aspectRatio:
|
|
4067
|
-
deviceAspectRatio:
|
|
4063
|
+
const ce = T.oneOfType([T.string, T.number]), An = {
|
|
4064
|
+
all: T.bool,
|
|
4065
|
+
grid: T.bool,
|
|
4066
|
+
aural: T.bool,
|
|
4067
|
+
braille: T.bool,
|
|
4068
|
+
handheld: T.bool,
|
|
4069
|
+
print: T.bool,
|
|
4070
|
+
projection: T.bool,
|
|
4071
|
+
screen: T.bool,
|
|
4072
|
+
tty: T.bool,
|
|
4073
|
+
tv: T.bool,
|
|
4074
|
+
embossed: T.bool
|
|
4075
|
+
}, Rr = {
|
|
4076
|
+
orientation: T.oneOf(["portrait", "landscape"]),
|
|
4077
|
+
scan: T.oneOf(["progressive", "interlace"]),
|
|
4078
|
+
aspectRatio: T.string,
|
|
4079
|
+
deviceAspectRatio: T.string,
|
|
4068
4080
|
height: ce,
|
|
4069
4081
|
deviceHeight: ce,
|
|
4070
4082
|
width: ce,
|
|
4071
4083
|
deviceWidth: ce,
|
|
4072
|
-
color:
|
|
4073
|
-
colorIndex:
|
|
4074
|
-
monochrome:
|
|
4084
|
+
color: T.bool,
|
|
4085
|
+
colorIndex: T.bool,
|
|
4086
|
+
monochrome: T.bool,
|
|
4075
4087
|
resolution: ce,
|
|
4076
4088
|
type: Object.keys(An)
|
|
4077
|
-
}, { type:
|
|
4078
|
-
minAspectRatio:
|
|
4079
|
-
maxAspectRatio:
|
|
4080
|
-
minDeviceAspectRatio:
|
|
4081
|
-
maxDeviceAspectRatio:
|
|
4089
|
+
}, { type: Us, ...jr } = Rr, Ar = {
|
|
4090
|
+
minAspectRatio: T.string,
|
|
4091
|
+
maxAspectRatio: T.string,
|
|
4092
|
+
minDeviceAspectRatio: T.string,
|
|
4093
|
+
maxDeviceAspectRatio: T.string,
|
|
4082
4094
|
minHeight: ce,
|
|
4083
4095
|
maxHeight: ce,
|
|
4084
4096
|
minDeviceHeight: ce,
|
|
@@ -4087,47 +4099,47 @@ const ce = E.oneOfType([E.string, E.number]), An = {
|
|
|
4087
4099
|
maxWidth: ce,
|
|
4088
4100
|
minDeviceWidth: ce,
|
|
4089
4101
|
maxDeviceWidth: ce,
|
|
4090
|
-
minColor:
|
|
4091
|
-
maxColor:
|
|
4092
|
-
minColorIndex:
|
|
4093
|
-
maxColorIndex:
|
|
4094
|
-
minMonochrome:
|
|
4095
|
-
maxMonochrome:
|
|
4102
|
+
minColor: T.number,
|
|
4103
|
+
maxColor: T.number,
|
|
4104
|
+
minColorIndex: T.number,
|
|
4105
|
+
maxColorIndex: T.number,
|
|
4106
|
+
minMonochrome: T.number,
|
|
4107
|
+
maxMonochrome: T.number,
|
|
4096
4108
|
minResolution: ce,
|
|
4097
4109
|
maxResolution: ce,
|
|
4098
|
-
...
|
|
4099
|
-
},
|
|
4100
|
-
var
|
|
4101
|
-
all:
|
|
4110
|
+
...jr
|
|
4111
|
+
}, Dr = { ...An, ...Ar };
|
|
4112
|
+
var Lr = {
|
|
4113
|
+
all: Dr
|
|
4102
4114
|
};
|
|
4103
|
-
const
|
|
4115
|
+
const Or = (e) => `not ${e}`, Pr = (e, t) => {
|
|
4104
4116
|
const n = jn(e);
|
|
4105
|
-
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ?
|
|
4106
|
-
},
|
|
4117
|
+
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? Or(n) : `(${n}: ${t})`;
|
|
4118
|
+
}, Fr = (e) => e.join(" and "), zr = (e) => {
|
|
4107
4119
|
const t = [];
|
|
4108
|
-
return Object.keys(
|
|
4120
|
+
return Object.keys(Lr.all).forEach((n) => {
|
|
4109
4121
|
const o = e[n];
|
|
4110
|
-
o != null && t.push(
|
|
4111
|
-
}),
|
|
4112
|
-
}, Br = un(void 0),
|
|
4122
|
+
o != null && t.push(Pr(n, o));
|
|
4123
|
+
}), Fr(t);
|
|
4124
|
+
}, Br = un(void 0), Wr = (e) => e.query || zr(e), pn = (e) => e ? Object.keys(e).reduce((n, o) => (n[jn(o)] = e[o], n), {}) : void 0, Dn = () => {
|
|
4113
4125
|
const e = ue(!1);
|
|
4114
4126
|
return ne(() => {
|
|
4115
4127
|
e.current = !0;
|
|
4116
4128
|
}, []), e.current;
|
|
4117
|
-
},
|
|
4118
|
-
const t =
|
|
4129
|
+
}, Mr = (e) => {
|
|
4130
|
+
const t = $n(Br), n = () => pn(e) || pn(t), [o, a] = ie(n);
|
|
4119
4131
|
return ne(() => {
|
|
4120
4132
|
const i = n();
|
|
4121
|
-
|
|
4133
|
+
Ir(o, i) || a(i);
|
|
4122
4134
|
}, [e, t]), o;
|
|
4123
|
-
},
|
|
4124
|
-
const t = () =>
|
|
4135
|
+
}, $r = (e) => {
|
|
4136
|
+
const t = () => Wr(e), [n, o] = ie(t);
|
|
4125
4137
|
return ne(() => {
|
|
4126
4138
|
const a = t();
|
|
4127
4139
|
n !== a && o(a);
|
|
4128
4140
|
}, [e]), n;
|
|
4129
4141
|
}, qr = (e, t) => {
|
|
4130
|
-
const n = () =>
|
|
4142
|
+
const n = () => Tr(e, t || {}, !!t), [o, a] = ie(n), i = Dn();
|
|
4131
4143
|
return ne(() => {
|
|
4132
4144
|
if (i) {
|
|
4133
4145
|
const r = n();
|
|
@@ -4136,7 +4148,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4136
4148
|
};
|
|
4137
4149
|
}
|
|
4138
4150
|
}, [e, t]), o;
|
|
4139
|
-
},
|
|
4151
|
+
}, Hr = (e) => {
|
|
4140
4152
|
const [t, n] = ie(e.matches);
|
|
4141
4153
|
return ne(() => {
|
|
4142
4154
|
const o = (a) => {
|
|
@@ -4147,15 +4159,15 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4147
4159
|
};
|
|
4148
4160
|
}, [e]), t;
|
|
4149
4161
|
}, yt = (e, t, n) => {
|
|
4150
|
-
const o =
|
|
4162
|
+
const o = Mr(t), a = $r(e);
|
|
4151
4163
|
if (!a)
|
|
4152
4164
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4153
|
-
const i = qr(a, o), r =
|
|
4165
|
+
const i = qr(a, o), r = Hr(i);
|
|
4154
4166
|
return Dn(), ne(() => {
|
|
4155
4167
|
}, [r]), ne(() => () => {
|
|
4156
4168
|
i && i.dispose();
|
|
4157
4169
|
}, []), r;
|
|
4158
|
-
},
|
|
4170
|
+
}, Vr = (e) => {
|
|
4159
4171
|
const { desktop: t, tablet: n, mobile: o } = e, a = yt(t), i = yt(n), r = yt(o);
|
|
4160
4172
|
return {
|
|
4161
4173
|
device: {
|
|
@@ -4164,10 +4176,10 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4164
4176
|
isMobile: r
|
|
4165
4177
|
}
|
|
4166
4178
|
};
|
|
4167
|
-
},
|
|
4168
|
-
const { breakpoints: t, children: n } = e, { device: o } =
|
|
4179
|
+
}, Gs = (e) => {
|
|
4180
|
+
const { breakpoints: t, children: n } = e, { device: o } = Vr(t);
|
|
4169
4181
|
return /* @__PURE__ */ m(
|
|
4170
|
-
|
|
4182
|
+
fr.Provider,
|
|
4171
4183
|
{
|
|
4172
4184
|
value: {
|
|
4173
4185
|
device: o
|
|
@@ -4175,7 +4187,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4175
4187
|
children: n
|
|
4176
4188
|
}
|
|
4177
4189
|
);
|
|
4178
|
-
}, cn = 2e3,
|
|
4190
|
+
}, cn = 2e3, Yr = (e) => {
|
|
4179
4191
|
const { targetValue: t, duration: n = cn, doneValue: o } = e, [a, i] = ie(t), r = ue(), s = ue(0), u = ue(), c = ue(t);
|
|
4180
4192
|
return ne(() => {
|
|
4181
4193
|
if (c.current = t, t === s.current) return;
|
|
@@ -4188,17 +4200,17 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4188
4200
|
r.current && cancelAnimationFrame(r.current);
|
|
4189
4201
|
};
|
|
4190
4202
|
}, [t, n, o]), a;
|
|
4191
|
-
},
|
|
4192
|
-
progressWrapper:
|
|
4193
|
-
progressWrapper_loading:
|
|
4194
|
-
progressWrapper__childrenWrapper:
|
|
4195
|
-
progressWrapper__childrenWrapper_loading:
|
|
4203
|
+
}, Ur = "_progressWrapper_xn9s0_44", Gr = "_progressWrapper_loading_xn9s0_47", Kr = "_progressWrapper__childrenWrapper_xn9s0_52", Xr = "_progressWrapper__childrenWrapper_loading_xn9s0_58", Zr = "_pulse_xn9s0_1", Qr = "_progressWrapper__progressBadge_xn9s0_64", Jr = "_progressWrapper__progressBadge_loading_xn9s0_75", Ie = {
|
|
4204
|
+
progressWrapper: Ur,
|
|
4205
|
+
progressWrapper_loading: Gr,
|
|
4206
|
+
progressWrapper__childrenWrapper: Kr,
|
|
4207
|
+
progressWrapper__childrenWrapper_loading: Xr,
|
|
4196
4208
|
"progressWrapper__childrenWrapper--animated-pulse": "_progressWrapper__childrenWrapper--animated-pulse_xn9s0_58",
|
|
4197
|
-
pulse:
|
|
4209
|
+
pulse: Zr,
|
|
4198
4210
|
"progressWrapper__childrenWrapper--animated-backgroundProgress": "_progressWrapper__childrenWrapper--animated-backgroundProgress_xn9s0_61",
|
|
4199
|
-
progressWrapper__progressBadge:
|
|
4200
|
-
progressWrapper__progressBadge_loading:
|
|
4201
|
-
},
|
|
4211
|
+
progressWrapper__progressBadge: Qr,
|
|
4212
|
+
progressWrapper__progressBadge_loading: Jr
|
|
4213
|
+
}, Ks = (e) => {
|
|
4202
4214
|
const {
|
|
4203
4215
|
value: t,
|
|
4204
4216
|
classNameRoot: n,
|
|
@@ -4207,7 +4219,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4207
4219
|
children: i,
|
|
4208
4220
|
doneValue: r = 100,
|
|
4209
4221
|
animationVariant: s = "backgroundProgress"
|
|
4210
|
-
} = e, [u, c] = ie(!1), l = ue(), d =
|
|
4222
|
+
} = e, [u, c] = ie(!1), l = ue(), d = Yr({
|
|
4211
4223
|
targetValue: t,
|
|
4212
4224
|
duration: a,
|
|
4213
4225
|
doneValue: r
|
|
@@ -4232,7 +4244,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4232
4244
|
}), g = {
|
|
4233
4245
|
"--progress": `${d / r * 100}%`
|
|
4234
4246
|
};
|
|
4235
|
-
return /* @__PURE__ */
|
|
4247
|
+
return /* @__PURE__ */ q("div", { className: x, children: [
|
|
4236
4248
|
/* @__PURE__ */ m(
|
|
4237
4249
|
"div",
|
|
4238
4250
|
{
|
|
@@ -4241,27 +4253,27 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4241
4253
|
children: i
|
|
4242
4254
|
}
|
|
4243
4255
|
),
|
|
4244
|
-
u && /* @__PURE__ */
|
|
4256
|
+
u && /* @__PURE__ */ q(Ee, { classNameRoot: y, children: [
|
|
4245
4257
|
d,
|
|
4246
4258
|
"%"
|
|
4247
4259
|
] })
|
|
4248
4260
|
] });
|
|
4249
|
-
},
|
|
4250
|
-
spSelect:
|
|
4251
|
-
spSelect_error:
|
|
4252
|
-
spSelect__control:
|
|
4253
|
-
spSelect__value_empty:
|
|
4254
|
-
spSelect__icon:
|
|
4255
|
-
spSelect__container:
|
|
4256
|
-
spSelect__control_filled:
|
|
4257
|
-
spSelect__control_outlined:
|
|
4258
|
-
spSelect__control_disabled:
|
|
4259
|
-
spSelect__value:
|
|
4260
|
-
spSelect__list:
|
|
4261
|
-
spSelect__list_scrollable:
|
|
4262
|
-
spSelect__option:
|
|
4263
|
-
spSelect__error:
|
|
4264
|
-
},
|
|
4261
|
+
}, es = 180, ts = "_spSelect_140u6_43", ns = "_spSelect_error_140u6_48", os = "_spSelect__control_140u6_48", as = "_spSelect__value_empty_140u6_52", is = "_spSelect__icon_140u6_55", rs = "_spSelect__container_140u6_58", ss = "_spSelect__control_filled_140u6_78", ps = "_spSelect__control_outlined_140u6_82", cs = "_spSelect__control_disabled_140u6_107", ls = "_spSelect__value_140u6_52", ds = "_spSelect__list_140u6_138", us = "_spSelect__list_scrollable_140u6_145", ms = "_spSelect__option_140u6_161", fs = "_spSelect__error_140u6_179", ge = {
|
|
4262
|
+
spSelect: ts,
|
|
4263
|
+
spSelect_error: ns,
|
|
4264
|
+
spSelect__control: os,
|
|
4265
|
+
spSelect__value_empty: as,
|
|
4266
|
+
spSelect__icon: is,
|
|
4267
|
+
spSelect__container: rs,
|
|
4268
|
+
spSelect__control_filled: ss,
|
|
4269
|
+
spSelect__control_outlined: ps,
|
|
4270
|
+
spSelect__control_disabled: cs,
|
|
4271
|
+
spSelect__value: ls,
|
|
4272
|
+
spSelect__list: ds,
|
|
4273
|
+
spSelect__list_scrollable: us,
|
|
4274
|
+
spSelect__option: ms,
|
|
4275
|
+
spSelect__error: fs
|
|
4276
|
+
}, Xs = (e) => {
|
|
4265
4277
|
const {
|
|
4266
4278
|
options: t,
|
|
4267
4279
|
placeholder: n = "Выберите из списка...",
|
|
@@ -4276,25 +4288,25 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4276
4288
|
tooltipPosition: d,
|
|
4277
4289
|
disabled: x,
|
|
4278
4290
|
required: y,
|
|
4279
|
-
maxHeightList: w =
|
|
4291
|
+
maxHeightList: w = es,
|
|
4280
4292
|
isVisibleDefaultTitle: g = !0,
|
|
4281
4293
|
isScrollableList: S = !1,
|
|
4282
4294
|
classNameRoot: L,
|
|
4283
|
-
classNameError:
|
|
4284
|
-
classNameLabel:
|
|
4295
|
+
classNameError: H,
|
|
4296
|
+
classNameLabel: D,
|
|
4285
4297
|
classNameBaseTooltipRoot: k
|
|
4286
|
-
} = e, [p,
|
|
4298
|
+
} = e, [p, E] = ie(!1), I = ue(null);
|
|
4287
4299
|
_n(
|
|
4288
|
-
[
|
|
4300
|
+
[I],
|
|
4289
4301
|
() => {
|
|
4290
|
-
|
|
4302
|
+
E(!1);
|
|
4291
4303
|
},
|
|
4292
4304
|
p
|
|
4293
4305
|
);
|
|
4294
|
-
const
|
|
4295
|
-
r(f, { value: b, name: a }),
|
|
4306
|
+
const V = t.find((f) => f.value === o), J = (f, b) => {
|
|
4307
|
+
r(f, { value: b, name: a }), E(!1);
|
|
4296
4308
|
}, oe = () => {
|
|
4297
|
-
x ||
|
|
4309
|
+
x || E(!p);
|
|
4298
4310
|
}, me = _({
|
|
4299
4311
|
[ge.spSelect]: !0,
|
|
4300
4312
|
[ge.spSelect_error]: !!u,
|
|
@@ -4307,19 +4319,19 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4307
4319
|
[ge.spSelect__control_disabled]: x
|
|
4308
4320
|
}), X = _({
|
|
4309
4321
|
[ge.spSelect__value]: !0,
|
|
4310
|
-
[ge.spSelect__value_empty]: !
|
|
4322
|
+
[ge.spSelect__value_empty]: !V
|
|
4311
4323
|
}), Z = _({
|
|
4312
4324
|
[ge.spSelect__icon]: !0
|
|
4313
4325
|
}), C = _({
|
|
4314
4326
|
[ge.spSelect__list]: !0,
|
|
4315
4327
|
[ge.spSelect__list_scrollable]: S
|
|
4316
4328
|
}), W = _({
|
|
4317
|
-
...
|
|
4329
|
+
...D && { [D]: !0 }
|
|
4318
4330
|
}), K = _({
|
|
4319
4331
|
[ge.spSelect__error]: !0,
|
|
4320
|
-
...
|
|
4332
|
+
...H && { [H]: !0 }
|
|
4321
4333
|
});
|
|
4322
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ q("div", { className: me, ref: I, children: [
|
|
4323
4335
|
c && /* @__PURE__ */ m(
|
|
4324
4336
|
jt,
|
|
4325
4337
|
{
|
|
@@ -4331,8 +4343,8 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4331
4343
|
classNameBaseTooltipRoot: k
|
|
4332
4344
|
}
|
|
4333
4345
|
),
|
|
4334
|
-
/* @__PURE__ */
|
|
4335
|
-
/* @__PURE__ */
|
|
4346
|
+
/* @__PURE__ */ q("div", { className: fe, onMouseEnter: s, children: [
|
|
4347
|
+
/* @__PURE__ */ q(
|
|
4336
4348
|
"div",
|
|
4337
4349
|
{
|
|
4338
4350
|
tabIndex: x ? -1 : 0,
|
|
@@ -4340,7 +4352,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4340
4352
|
className: le,
|
|
4341
4353
|
onClick: oe,
|
|
4342
4354
|
children: [
|
|
4343
|
-
/* @__PURE__ */ m("div", { className: X, children: (
|
|
4355
|
+
/* @__PURE__ */ m("div", { className: X, children: (V == null ? void 0 : V.label) || n }),
|
|
4344
4356
|
/* @__PURE__ */ m(
|
|
4345
4357
|
he,
|
|
4346
4358
|
{
|
|
@@ -4359,13 +4371,13 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4359
4371
|
style: S ? { maxHeight: `${w}px` } : {},
|
|
4360
4372
|
children: t.map((f) => {
|
|
4361
4373
|
const b = f.value === o;
|
|
4362
|
-
return /* @__PURE__ */
|
|
4374
|
+
return /* @__PURE__ */ q(
|
|
4363
4375
|
"div",
|
|
4364
4376
|
{
|
|
4365
4377
|
className: _({
|
|
4366
4378
|
[ge.spSelect__option]: !0
|
|
4367
4379
|
}),
|
|
4368
|
-
onClick: (
|
|
4380
|
+
onClick: (O) => J(O, f.value),
|
|
4369
4381
|
children: [
|
|
4370
4382
|
f.label,
|
|
4371
4383
|
b && /* @__PURE__ */ m(he, { name: pe.Check, className: Z })
|
|
@@ -4379,30 +4391,30 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4379
4391
|
] }),
|
|
4380
4392
|
u && /* @__PURE__ */ m("div", { className: K, children: u })
|
|
4381
4393
|
] });
|
|
4382
|
-
},
|
|
4383
|
-
skeleton:
|
|
4384
|
-
},
|
|
4394
|
+
}, _s = "_skeleton_c18an_44", vs = {
|
|
4395
|
+
skeleton: _s
|
|
4396
|
+
}, Zs = (e) => {
|
|
4385
4397
|
const { width: t = "100%", height: n = "1rem", circle: o = !1, classNameRoot: a = "", style: i = {} } = e, r = {
|
|
4386
4398
|
width: t,
|
|
4387
4399
|
height: n,
|
|
4388
4400
|
borderRadius: o ? "50%" : "0",
|
|
4389
4401
|
...i
|
|
4390
4402
|
};
|
|
4391
|
-
return /* @__PURE__ */ m("div", { style: r, className: _(a,
|
|
4392
|
-
}, ln = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1,
|
|
4393
|
-
spTable:
|
|
4394
|
-
spTable__tdContentCopyIcon:
|
|
4395
|
-
spTable__tdContent:
|
|
4396
|
-
spTable__tdColorContent:
|
|
4397
|
-
spTable__tdContentCopyIcon_copied:
|
|
4398
|
-
spTable__emptyPage:
|
|
4399
|
-
spStringsGroup:
|
|
4400
|
-
spStringsGroup__groupItem:
|
|
4401
|
-
spStringsGroup__groupItemHeader:
|
|
4402
|
-
spStringsGroup__groupItemContent:
|
|
4403
|
-
spStringsGroup__groupItemContentCopyIcon:
|
|
4403
|
+
return /* @__PURE__ */ m("div", { style: r, className: _(a, vs.skeleton) });
|
|
4404
|
+
}, ln = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, xs = "_spTable_1vuaj_43", gs = "_spTable__tdContentCopyIcon_1vuaj_62", hs = "_spTable__tdContent_1vuaj_62", bs = "_spTable__tdColorContent_1vuaj_72", ys = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ws = "_spTable__emptyPage_1vuaj_89", ks = "_spStringsGroup_1vuaj_105", Cs = "_spStringsGroup__groupItem_1vuaj_119", Ts = "_spStringsGroup__groupItemHeader_1vuaj_134", Es = "_spStringsGroup__groupItemContent_1vuaj_138", Ss = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", Ns = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", be = {
|
|
4405
|
+
spTable: xs,
|
|
4406
|
+
spTable__tdContentCopyIcon: gs,
|
|
4407
|
+
spTable__tdContent: hs,
|
|
4408
|
+
spTable__tdColorContent: bs,
|
|
4409
|
+
spTable__tdContentCopyIcon_copied: ys,
|
|
4410
|
+
spTable__emptyPage: ws,
|
|
4411
|
+
spStringsGroup: ks,
|
|
4412
|
+
spStringsGroup__groupItem: Cs,
|
|
4413
|
+
spStringsGroup__groupItemHeader: Ts,
|
|
4414
|
+
spStringsGroup__groupItemContent: Es,
|
|
4415
|
+
spStringsGroup__groupItemContentCopyIcon: Ss,
|
|
4404
4416
|
spStringsGroup__groupItemContentCopyIcon_copied: Ns
|
|
4405
|
-
},
|
|
4417
|
+
}, Qs = (e) => {
|
|
4406
4418
|
const {
|
|
4407
4419
|
columns: t,
|
|
4408
4420
|
data: n,
|
|
@@ -4422,11 +4434,11 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4422
4434
|
}), l = _({
|
|
4423
4435
|
[be.spTable__emptyPage]: !0
|
|
4424
4436
|
}), [d, x] = ie(null), y = (k) => {
|
|
4425
|
-
const { text: p, rowIndex:
|
|
4426
|
-
(d == null ? void 0 : d.rowIndex) ===
|
|
4427
|
-
x({ rowIndex:
|
|
4428
|
-
}).catch((
|
|
4429
|
-
console.error("Ошибка при копировании:",
|
|
4437
|
+
const { text: p, rowIndex: E, colIndex: I } = k;
|
|
4438
|
+
(d == null ? void 0 : d.rowIndex) === E && (d == null ? void 0 : d.colIndex) === I || navigator.clipboard.writeText(p).then(() => {
|
|
4439
|
+
x({ rowIndex: E, colIndex: I });
|
|
4440
|
+
}).catch((V) => {
|
|
4441
|
+
console.error("Ошибка при копировании:", V);
|
|
4430
4442
|
});
|
|
4431
4443
|
}, w = () => {
|
|
4432
4444
|
x(null);
|
|
@@ -4434,73 +4446,73 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4434
4446
|
row: k,
|
|
4435
4447
|
col: p
|
|
4436
4448
|
}) => {
|
|
4437
|
-
const
|
|
4438
|
-
if (!
|
|
4439
|
-
const [
|
|
4440
|
-
return /* @__PURE__ */
|
|
4441
|
-
|
|
4442
|
-
|
|
4449
|
+
const E = k[p.key];
|
|
4450
|
+
if (!E) return null;
|
|
4451
|
+
const [I, V] = E.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4452
|
+
return /* @__PURE__ */ q("span", { children: [
|
|
4453
|
+
I,
|
|
4454
|
+
V && /* @__PURE__ */ m("span", { className: c, children: ` ${V}` })
|
|
4443
4455
|
] });
|
|
4444
|
-
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */
|
|
4445
|
-
/* @__PURE__ */ m("colgroup", { children: r.map((k, p,
|
|
4456
|
+
}, L = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ q("table", { className: s, children: [
|
|
4457
|
+
/* @__PURE__ */ m("colgroup", { children: r.map((k, p, E) => /* @__PURE__ */ m(
|
|
4446
4458
|
"col",
|
|
4447
4459
|
{
|
|
4448
4460
|
style: {
|
|
4449
|
-
width: `calc(100%/${
|
|
4461
|
+
width: `calc(100%/${E.length})`
|
|
4450
4462
|
}
|
|
4451
4463
|
},
|
|
4452
4464
|
p
|
|
4453
4465
|
)) }),
|
|
4454
4466
|
/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: r.map((k, p) => /* @__PURE__ */ m("th", { children: k.title }, p)) }) }),
|
|
4455
|
-
/* @__PURE__ */ m("tbody", { children: n.map((k, p) => k ? /* @__PURE__ */ m("tr", { children: r.map((
|
|
4456
|
-
const
|
|
4467
|
+
/* @__PURE__ */ m("tbody", { children: n.map((k, p) => k ? /* @__PURE__ */ m("tr", { children: r.map((E, I) => {
|
|
4468
|
+
const V = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === I;
|
|
4457
4469
|
return /* @__PURE__ */ m(
|
|
4458
4470
|
"td",
|
|
4459
4471
|
{
|
|
4460
|
-
onMouseLeave:
|
|
4461
|
-
children: /* @__PURE__ */
|
|
4462
|
-
/* @__PURE__ */ m("span", { children:
|
|
4463
|
-
!ln(k[
|
|
4472
|
+
onMouseLeave: V ? w : void 0,
|
|
4473
|
+
children: /* @__PURE__ */ q("div", { className: u, children: [
|
|
4474
|
+
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
4475
|
+
!ln(k[E.key]) && E.isBeCopiedValue && /* @__PURE__ */ m(
|
|
4464
4476
|
he,
|
|
4465
4477
|
{
|
|
4466
4478
|
className: _({
|
|
4467
4479
|
[be.spTable__tdContentCopyIcon]: !0,
|
|
4468
|
-
[be.spTable__tdContentCopyIcon_copied]:
|
|
4480
|
+
[be.spTable__tdContentCopyIcon_copied]: V
|
|
4469
4481
|
}),
|
|
4470
|
-
name:
|
|
4482
|
+
name: V ? pe.Check : pe.Copy,
|
|
4471
4483
|
onClick: () => {
|
|
4472
|
-
const J = k[
|
|
4484
|
+
const J = k[E.key];
|
|
4473
4485
|
if (!J) return null;
|
|
4474
4486
|
y({
|
|
4475
4487
|
text: J,
|
|
4476
4488
|
rowIndex: p,
|
|
4477
|
-
colIndex:
|
|
4489
|
+
colIndex: I
|
|
4478
4490
|
});
|
|
4479
4491
|
}
|
|
4480
4492
|
}
|
|
4481
4493
|
)
|
|
4482
4494
|
] })
|
|
4483
4495
|
},
|
|
4484
|
-
`${p}:${
|
|
4496
|
+
`${p}:${I}`
|
|
4485
4497
|
);
|
|
4486
4498
|
}) }, p) : null) })
|
|
4487
|
-
] }) : g(),
|
|
4499
|
+
] }) : g(), H = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ m(
|
|
4488
4500
|
"div",
|
|
4489
4501
|
{
|
|
4490
4502
|
className: _({
|
|
4491
4503
|
[be.spStringsGroup]: !0
|
|
4492
4504
|
}),
|
|
4493
|
-
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((
|
|
4494
|
-
if (ln(k[
|
|
4505
|
+
children: n.map((k, p) => k ? /* @__PURE__ */ m("div", { children: r.map((E, I) => {
|
|
4506
|
+
if (ln(k[E.key]))
|
|
4495
4507
|
return null;
|
|
4496
|
-
const
|
|
4497
|
-
return /* @__PURE__ */
|
|
4508
|
+
const V = (d == null ? void 0 : d.rowIndex) === p && (d == null ? void 0 : d.colIndex) === I;
|
|
4509
|
+
return /* @__PURE__ */ q(
|
|
4498
4510
|
"div",
|
|
4499
4511
|
{
|
|
4500
4512
|
className: _({
|
|
4501
4513
|
[be.spStringsGroup__groupItem]: !0
|
|
4502
4514
|
}),
|
|
4503
|
-
onMouseLeave:
|
|
4515
|
+
onMouseLeave: V ? w : void 0,
|
|
4504
4516
|
children: [
|
|
4505
4517
|
/* @__PURE__ */ m(
|
|
4506
4518
|
"div",
|
|
@@ -4508,32 +4520,32 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4508
4520
|
className: _({
|
|
4509
4521
|
[be.spStringsGroup__groupItemHeader]: !0
|
|
4510
4522
|
}),
|
|
4511
|
-
children:
|
|
4523
|
+
children: E.title
|
|
4512
4524
|
}
|
|
4513
4525
|
),
|
|
4514
|
-
/* @__PURE__ */
|
|
4526
|
+
/* @__PURE__ */ q(
|
|
4515
4527
|
"div",
|
|
4516
4528
|
{
|
|
4517
4529
|
className: _({
|
|
4518
4530
|
[be.spStringsGroup__groupItemContent]: !0
|
|
4519
4531
|
}),
|
|
4520
4532
|
children: [
|
|
4521
|
-
/* @__PURE__ */ m("span", { children:
|
|
4522
|
-
|
|
4533
|
+
/* @__PURE__ */ m("span", { children: E.isColorContentsCurlyBrackets ? S({ row: k, col: E }) : k[E.key] }),
|
|
4534
|
+
E.isBeCopiedValue && /* @__PURE__ */ m(
|
|
4523
4535
|
he,
|
|
4524
4536
|
{
|
|
4525
4537
|
className: _({
|
|
4526
4538
|
[be.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
4527
|
-
[be.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
4539
|
+
[be.spStringsGroup__groupItemContentCopyIcon_copied]: V
|
|
4528
4540
|
}),
|
|
4529
|
-
name:
|
|
4541
|
+
name: V ? pe.Check : pe.Copy,
|
|
4530
4542
|
onClick: () => {
|
|
4531
|
-
const J = k[
|
|
4543
|
+
const J = k[E.key];
|
|
4532
4544
|
if (!J) return null;
|
|
4533
4545
|
y({
|
|
4534
4546
|
text: J,
|
|
4535
4547
|
rowIndex: p,
|
|
4536
|
-
colIndex:
|
|
4548
|
+
colIndex: I
|
|
4537
4549
|
});
|
|
4538
4550
|
}
|
|
4539
4551
|
}
|
|
@@ -4543,23 +4555,23 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4543
4555
|
)
|
|
4544
4556
|
]
|
|
4545
4557
|
},
|
|
4546
|
-
|
|
4558
|
+
I
|
|
4547
4559
|
);
|
|
4548
4560
|
}) }, p) : null)
|
|
4549
4561
|
}
|
|
4550
4562
|
) : g();
|
|
4551
|
-
return o ? a ? L() :
|
|
4552
|
-
},
|
|
4553
|
-
spTabs:
|
|
4554
|
-
spTabs_separated:
|
|
4563
|
+
return o ? a ? L() : H() : L();
|
|
4564
|
+
}, Is = "_spTabs_1citb_43", Rs = "_spTabs_separated_1citb_48", js = "_spTabs__tabElement_1citb_48", As = "_spTabs__tabElement_active_1citb_83", Ds = "_spTabs__triggerTooltip_1citb_90", Re = {
|
|
4565
|
+
spTabs: Is,
|
|
4566
|
+
spTabs_separated: Rs,
|
|
4555
4567
|
"spTabs--size-md": "_spTabs--size-md_1citb_48",
|
|
4556
|
-
spTabs__tabElement:
|
|
4568
|
+
spTabs__tabElement: js,
|
|
4557
4569
|
"spTabs--size-lg": "_spTabs--size-lg_1citb_51",
|
|
4558
4570
|
"spTabs--variant-contained": "_spTabs--variant-contained_1citb_54",
|
|
4559
|
-
spTabs__tabElement_active:
|
|
4560
|
-
spTabs__triggerTooltip:
|
|
4571
|
+
spTabs__tabElement_active: As,
|
|
4572
|
+
spTabs__triggerTooltip: Ds,
|
|
4561
4573
|
"spTabs--variant-filled": "_spTabs--variant-filled_1citb_93"
|
|
4562
|
-
},
|
|
4574
|
+
}, Js = (e) => {
|
|
4563
4575
|
const {
|
|
4564
4576
|
panes: t,
|
|
4565
4577
|
isSeparated: n = !1,
|
|
@@ -4585,7 +4597,7 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4585
4597
|
};
|
|
4586
4598
|
return /* @__PURE__ */ m("div", { className: s, children: t.map((l, d) => {
|
|
4587
4599
|
const { name: x, active: y, onClick: w, infoTooltipText: g } = l;
|
|
4588
|
-
return /* @__PURE__ */
|
|
4600
|
+
return /* @__PURE__ */ q(
|
|
4589
4601
|
"div",
|
|
4590
4602
|
{
|
|
4591
4603
|
className: _({
|
|
@@ -4608,11 +4620,11 @@ const Lr = (e) => `not ${e}`, Or = (e, t) => {
|
|
|
4608
4620
|
l.key || d
|
|
4609
4621
|
);
|
|
4610
4622
|
}) });
|
|
4611
|
-
},
|
|
4612
|
-
spTextWithLabel:
|
|
4613
|
-
},
|
|
4623
|
+
}, Ls = "_spTextWithLabel_1dr7p_1", Os = {
|
|
4624
|
+
spTextWithLabel: Ls
|
|
4625
|
+
}, ep = (e) => {
|
|
4614
4626
|
const { children: t, label: n, style: o, ...a } = e;
|
|
4615
|
-
return /* @__PURE__ */
|
|
4627
|
+
return /* @__PURE__ */ q("div", { className: Os.spTextWithLabel, style: { ...o }, children: [
|
|
4616
4628
|
/* @__PURE__ */ m(jt, { label: n }),
|
|
4617
4629
|
/* @__PURE__ */ m(Ee, { ...a, children: t })
|
|
4618
4630
|
] });
|
|
@@ -4622,33 +4634,33 @@ export {
|
|
|
4622
4634
|
Mo as ApplyButtons,
|
|
4623
4635
|
fn as BaseTooltip,
|
|
4624
4636
|
wt as Button,
|
|
4625
|
-
|
|
4626
|
-
|
|
4637
|
+
Ws as Checkbox,
|
|
4638
|
+
$s as Confirm,
|
|
4627
4639
|
qs as ContextMenu,
|
|
4628
|
-
|
|
4629
|
-
|
|
4640
|
+
Ti as DefaultDropzone,
|
|
4641
|
+
Hs as Dropdown,
|
|
4630
4642
|
pe as EIconName,
|
|
4631
4643
|
se as ETooltipPosition,
|
|
4632
|
-
|
|
4633
|
-
|
|
4644
|
+
Pi as EllipsisTextWithTooltip,
|
|
4645
|
+
Vs as Form,
|
|
4634
4646
|
he as Icon,
|
|
4635
4647
|
Je as InfoTooltip,
|
|
4636
|
-
|
|
4637
|
-
|
|
4648
|
+
er as Input,
|
|
4649
|
+
Ys as InputFiles,
|
|
4638
4650
|
jt as Label,
|
|
4639
4651
|
ia as Layer,
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4652
|
+
fr as MediaContext,
|
|
4653
|
+
Gs as MediaContextProvider,
|
|
4654
|
+
ga as Modal,
|
|
4643
4655
|
vn as Portal,
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4656
|
+
Ks as ProgressWrapper,
|
|
4657
|
+
Xs as Select,
|
|
4658
|
+
Zs as Skeleton,
|
|
4647
4659
|
Co as Spinner,
|
|
4648
|
-
|
|
4649
|
-
|
|
4660
|
+
Qs as Table,
|
|
4661
|
+
Js as Tabs,
|
|
4650
4662
|
Ee as Text,
|
|
4651
|
-
|
|
4663
|
+
ep as TextWithLabel,
|
|
4652
4664
|
It as Tooltip,
|
|
4653
|
-
|
|
4665
|
+
Ms as useModal
|
|
4654
4666
|
};
|