test-stpr-ui-kit 0.4.5 → 0.4.7
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.es.js +225 -220
- package/dist/test-stpr-ui-kit.umd.cjs +8 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as H, jsx as l, Fragment as pn } from "react/jsx-runtime";
|
|
2
2
|
import * as I from "react";
|
|
3
|
-
import We, { useState as ce, useEffect as
|
|
3
|
+
import We, { useState as ce, useEffect as ae, useRef as Ce, useCallback as le, forwardRef as Fn, useImperativeHandle as zn, Fragment as Mn, useMemo as Ae, useReducer as Bn, createContext as cn, useContext as ln } from "react";
|
|
4
4
|
import Wn from "react-dom";
|
|
5
5
|
import './test-stpr-ui-kit.css';function dn(e) {
|
|
6
6
|
var t, n, o = "";
|
|
@@ -42,7 +42,7 @@ const qn = (e) => /* @__PURE__ */ I.createElement("svg", { className: "stpr-icon
|
|
|
42
42
|
style: a
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var re = /* @__PURE__ */ ((e) => (e.ChevronDown = "chevronDown", e.Info = "info", e.Plus = "plus", e.SelectChevronDown = "selectChevronDown", e.Upload = "upload", e.Trash = "trash", e.Check = "check", e.Copy = "copy", e.Close = "close", e.PlusSquare = "plusSquare", e.PlusCircle = "plusCircle", e.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e))(re || {});
|
|
46
46
|
const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io = "_spAccordion_noPadding_1ohth_59", ro = "_spAccordion__name_1ohth_62", so = "_spAccordion_open_1ohth_72", po = "_spAccordion__header_1ohth_75", co = "_spAccordion_noOpen_1ohth_83", lo = "_spAccordion__name_hiddenExpand_1ohth_114", uo = "_spAccordion__icon_1ohth_117", mo = "_spAccordion__icon_hidden_1ohth_127", fo = "_spAccordion__childrenWrapper_1ohth_133", vo = "_spAccordion__childrenWrapper_open_1ohth_142", _o = "_spAccordion__content_1ohth_145", fe = {
|
|
47
47
|
spAccordion: oo,
|
|
48
48
|
spAccordion_noBorder: ao,
|
|
@@ -71,8 +71,8 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
71
71
|
classNameTitle: u,
|
|
72
72
|
classNameIcon: c,
|
|
73
73
|
classNameChildrenWrapper: y
|
|
74
|
-
} = e, [w,
|
|
75
|
-
a || (
|
|
74
|
+
} = e, [w, E] = ce(o), k = () => {
|
|
75
|
+
a || (E(!w), i == null || i(!w));
|
|
76
76
|
}, N = v({
|
|
77
77
|
[fe.spAccordion]: !0,
|
|
78
78
|
[fe.spAccordion_open]: w,
|
|
@@ -105,7 +105,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
105
105
|
rotate: w ? 180 : void 0,
|
|
106
106
|
onClick: k,
|
|
107
107
|
className: R,
|
|
108
|
-
name:
|
|
108
|
+
name: re.ChevronDown
|
|
109
109
|
}
|
|
110
110
|
)
|
|
111
111
|
] }),
|
|
@@ -160,7 +160,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
160
160
|
loading: c = !1,
|
|
161
161
|
isFullWidth: y = !1,
|
|
162
162
|
isOnlyIcon: w = !1,
|
|
163
|
-
noPadding:
|
|
163
|
+
noPadding: E = !1,
|
|
164
164
|
classNameRoot: k,
|
|
165
165
|
classNameIconContainerRoot: N
|
|
166
166
|
} = e, O = (b) => {
|
|
@@ -178,7 +178,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
178
178
|
] });
|
|
179
179
|
}, R = v({
|
|
180
180
|
[be.spButton]: !0,
|
|
181
|
-
[be.spButton_noPadding]:
|
|
181
|
+
[be.spButton_noPadding]: E,
|
|
182
182
|
[be.spButton_onlyIcon]: w,
|
|
183
183
|
[be[`spButton_${n}`]]: n,
|
|
184
184
|
[be[`spButton_${t}`]]: t,
|
|
@@ -278,7 +278,7 @@ const oo = "_spAccordion_1ohth_43", ao = "_spAccordion_noBorder_1ohth_56", io =
|
|
|
278
278
|
un.displayName = "BaseTooltip";
|
|
279
279
|
const mn = ({ children: e, node: t, classNameRoot: n }) => {
|
|
280
280
|
const [o, a] = ce(null);
|
|
281
|
-
return
|
|
281
|
+
return ae(() => {
|
|
282
282
|
if (t) {
|
|
283
283
|
a(t);
|
|
284
284
|
return;
|
|
@@ -291,9 +291,9 @@ const mn = ({ children: e, node: t, classNameRoot: n }) => {
|
|
|
291
291
|
}, Bo = "_spTooltip_umff1_43", Wo = {
|
|
292
292
|
spTooltip: Bo
|
|
293
293
|
};
|
|
294
|
-
var
|
|
294
|
+
var ie = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(ie || {});
|
|
295
295
|
function fn(e, t, n = !0) {
|
|
296
|
-
|
|
296
|
+
ae(() => {
|
|
297
297
|
if (!n) return;
|
|
298
298
|
const o = (a) => {
|
|
299
299
|
e.every((r) => r.current && !r.current.contains(a.target)) && t(a);
|
|
@@ -312,23 +312,23 @@ const jt = (e) => {
|
|
|
312
312
|
triggerAction: i,
|
|
313
313
|
actionOnClose: r,
|
|
314
314
|
classNameTriggerTooltip: s,
|
|
315
|
-
position: m =
|
|
315
|
+
position: m = ie.BottomLeft,
|
|
316
316
|
text: d,
|
|
317
317
|
noPadding: u,
|
|
318
318
|
classNameTooltip: c,
|
|
319
319
|
classNameBaseTooltipRoot: y,
|
|
320
320
|
classNameBaseTooltipContentRoot: w
|
|
321
|
-
} = e, [
|
|
321
|
+
} = e, [E, k] = ce(!1), N = Ce(null), O = Ce(null), [Y, R] = ce(!1);
|
|
322
322
|
fn(
|
|
323
323
|
[N, O],
|
|
324
324
|
() => {
|
|
325
325
|
r && r(), k(!1);
|
|
326
326
|
},
|
|
327
|
-
|
|
327
|
+
E
|
|
328
328
|
);
|
|
329
329
|
const b = (g) => {
|
|
330
|
-
t || (
|
|
331
|
-
}, [p,
|
|
330
|
+
t || (E ? r && r() : i && i(), k((L) => n ? !L : !0));
|
|
331
|
+
}, [p, C] = ce({
|
|
332
332
|
visibility: "hidden",
|
|
333
333
|
opacity: 0,
|
|
334
334
|
left: "-9999px"
|
|
@@ -337,56 +337,56 @@ const jt = (e) => {
|
|
|
337
337
|
const g = N.current.getBoundingClientRect(), L = O.current.getBoundingClientRect();
|
|
338
338
|
let q = 0, K = 0;
|
|
339
339
|
switch (m) {
|
|
340
|
-
case
|
|
340
|
+
case ie.Right:
|
|
341
341
|
q = g.top + window.scrollY - (L.height - g.height) / 2, K = g.right + window.scrollX;
|
|
342
342
|
break;
|
|
343
|
-
case
|
|
343
|
+
case ie.RightTop:
|
|
344
344
|
q = g.top + window.scrollY, K = g.right + window.scrollX;
|
|
345
345
|
break;
|
|
346
|
-
case
|
|
346
|
+
case ie.RightBottom:
|
|
347
347
|
q = g.bottom + window.scrollY - L.height, K = g.right + window.scrollX;
|
|
348
348
|
break;
|
|
349
|
-
case
|
|
349
|
+
case ie.Left:
|
|
350
350
|
q = g.top + window.scrollY - (L.height - g.height) / 2, K = g.left + window.scrollX - L.width;
|
|
351
351
|
break;
|
|
352
|
-
case
|
|
352
|
+
case ie.LeftTop:
|
|
353
353
|
q = g.top + window.scrollY, K = g.left + window.scrollX - L.width;
|
|
354
354
|
break;
|
|
355
|
-
case
|
|
355
|
+
case ie.LeftBottom:
|
|
356
356
|
q = g.bottom + window.scrollY - L.height, K = g.left + window.scrollX - L.width;
|
|
357
357
|
break;
|
|
358
|
-
case
|
|
358
|
+
case ie.Bottom:
|
|
359
359
|
q = g.bottom + window.scrollY, K = g.left + window.scrollX - (L.width - g.width) / 2;
|
|
360
360
|
break;
|
|
361
|
-
case
|
|
361
|
+
case ie.BottomLeft:
|
|
362
362
|
q = g.bottom + window.scrollY, K = g.left + window.scrollX;
|
|
363
363
|
break;
|
|
364
|
-
case
|
|
364
|
+
case ie.BottomRight:
|
|
365
365
|
q = g.bottom + window.scrollY, K = g.right + window.scrollX - L.width;
|
|
366
366
|
break;
|
|
367
|
-
case
|
|
367
|
+
case ie.Top:
|
|
368
368
|
q = g.top + window.scrollY - L.height, K = g.left + window.scrollX - (L.width - g.width) / 2;
|
|
369
369
|
break;
|
|
370
|
-
case
|
|
370
|
+
case ie.TopLeft:
|
|
371
371
|
q = g.top + window.scrollY - L.height, K = g.left + window.scrollX;
|
|
372
372
|
break;
|
|
373
|
-
case
|
|
373
|
+
case ie.TopRight:
|
|
374
374
|
q = g.top + window.scrollY - L.height, K = g.right + window.scrollX - L.width;
|
|
375
375
|
break;
|
|
376
376
|
default:
|
|
377
377
|
q = g.bottom + window.scrollY, K = g.left + window.scrollX;
|
|
378
378
|
}
|
|
379
|
-
q + L.height > window.innerHeight + window.scrollY && m.includes("bottom") ? q = g.top + window.scrollY - L.height : q < window.scrollY && m.includes("top") && (q = g.bottom + window.scrollY),
|
|
379
|
+
q + L.height > window.innerHeight + window.scrollY && m.includes("bottom") ? q = g.top + window.scrollY - L.height : q < window.scrollY && m.includes("top") && (q = g.bottom + window.scrollY), C((ee) => ({
|
|
380
380
|
...ee,
|
|
381
381
|
top: `${q}px`,
|
|
382
382
|
left: `${K}px`,
|
|
383
|
-
visibility:
|
|
384
|
-
opacity:
|
|
383
|
+
visibility: E || z ? "visible" : "hidden",
|
|
384
|
+
opacity: E || z ? 1 : 0
|
|
385
385
|
}));
|
|
386
|
-
}, [m,
|
|
387
|
-
|
|
386
|
+
}, [m, E, z]);
|
|
387
|
+
ae(() => (R(!0), () => R(!1)), []), ae(() => {
|
|
388
388
|
Y && X();
|
|
389
|
-
}, [Y, X]),
|
|
389
|
+
}, [Y, X]), ae(() => {
|
|
390
390
|
if (!Y) return;
|
|
391
391
|
const g = () => X();
|
|
392
392
|
return window.addEventListener("resize", g), window.addEventListener("scroll", g, !0), () => {
|
|
@@ -424,7 +424,7 @@ const jt = (e) => {
|
|
|
424
424
|
]
|
|
425
425
|
}
|
|
426
426
|
);
|
|
427
|
-
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(ve, { name:
|
|
427
|
+
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(ve, { name: re.Info }) }), qo = "_spCheckbox_di6ar_43", $o = "_spCheckbox__control_di6ar_49", Ho = "_spCheckbox__label_di6ar_52", Yo = "_spCheckbox__box_di6ar_63", Vo = "_spCheckbox__box_checked_di6ar_90", Uo = "_spCheckbox__box_disabled_di6ar_100", Go = "_spCheckbox__box_error_di6ar_110", Ko = "_spCheckbox__tooltip_di6ar_113", Xo = "_spCheckbox__required_di6ar_118", Zo = "_spCheckbox__error_di6ar_124", ye = {
|
|
428
428
|
spCheckbox: qo,
|
|
429
429
|
spCheckbox__control: $o,
|
|
430
430
|
spCheckbox__label: Ho,
|
|
@@ -452,7 +452,7 @@ const jt = (e) => {
|
|
|
452
452
|
infoTooltipText: c,
|
|
453
453
|
onMouseEnter: y,
|
|
454
454
|
classNameRoot: w,
|
|
455
|
-
classNameError:
|
|
455
|
+
classNameError: E
|
|
456
456
|
} = e, k = v({
|
|
457
457
|
[ye.spCheckbox]: !0,
|
|
458
458
|
...w && { [w]: !0 }
|
|
@@ -470,7 +470,7 @@ const jt = (e) => {
|
|
|
470
470
|
[ye.spCheckbox__required]: !0
|
|
471
471
|
}), b = v({
|
|
472
472
|
[ye.spCheckbox__error]: !0,
|
|
473
|
-
...
|
|
473
|
+
...E && { [E]: !0 }
|
|
474
474
|
}), p = v({
|
|
475
475
|
[ye.spCheckbox__tooltip]: !0
|
|
476
476
|
});
|
|
@@ -590,7 +590,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
590
590
|
} = e, w = v({
|
|
591
591
|
[ke.modalWrapper]: !0,
|
|
592
592
|
[ke[`modalWrapper_align-${m}`]]: m
|
|
593
|
-
}),
|
|
593
|
+
}), E = v({
|
|
594
594
|
[ke.modalWrapper__modal]: !0,
|
|
595
595
|
...r && { [r]: !0 }
|
|
596
596
|
}), k = v({
|
|
@@ -606,7 +606,12 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
606
606
|
}), b = v({
|
|
607
607
|
[ke.modalWrapper__footer]: !0
|
|
608
608
|
});
|
|
609
|
-
return
|
|
609
|
+
return ae(() => {
|
|
610
|
+
const p = window.scrollY, C = document.body;
|
|
611
|
+
return C.style.position = "fixed", C.style.top = `-${p}px`, C.style.left = "0", C.style.right = "0", C.style.overflow = "hidden", () => {
|
|
612
|
+
C.style.position = "", C.style.top = "", C.style.left = "", C.style.right = "", C.style.overflow = "", window.scrollTo(0, p);
|
|
613
|
+
};
|
|
614
|
+
}, []), /* @__PURE__ */ l(ea, { zIndex: t, isHiddenModal: n, classNameRoot: i, children: /* @__PURE__ */ l("div", { className: w, children: /* @__PURE__ */ H("div", { className: E, style: s, children: [
|
|
610
615
|
(u || c) && /* @__PURE__ */ H("div", { className: Y, children: [
|
|
611
616
|
typeof u == "string" ? /* @__PURE__ */ l(Te, { type: "h3", children: u }) : u,
|
|
612
617
|
c && /* @__PURE__ */ l("div", { className: R, children: typeof c == "string" ? /* @__PURE__ */ l(Te, { children: c }) : c })
|
|
@@ -619,7 +624,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
619
624
|
classNameRoot: k,
|
|
620
625
|
classNameIconContainerRoot: N,
|
|
621
626
|
onClick: d,
|
|
622
|
-
iconName:
|
|
627
|
+
iconName: re.Close,
|
|
623
628
|
variant: "link",
|
|
624
629
|
noPadding: !0,
|
|
625
630
|
isOnlyIcon: !0
|
|
@@ -641,7 +646,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
641
646
|
onClose: c,
|
|
642
647
|
mobile: y = "column",
|
|
643
648
|
align: w = "right",
|
|
644
|
-
modalAlign:
|
|
649
|
+
modalAlign: E = "top"
|
|
645
650
|
} = e;
|
|
646
651
|
return /* @__PURE__ */ l(
|
|
647
652
|
ua,
|
|
@@ -649,7 +654,7 @@ const aa = "_modalWrapper_r712c_43", ia = "_modalWrapper__modal_r712c_54", ra =
|
|
|
649
654
|
zIndex: t,
|
|
650
655
|
header: n,
|
|
651
656
|
onClose: c,
|
|
652
|
-
align:
|
|
657
|
+
align: E,
|
|
653
658
|
subHeader: o,
|
|
654
659
|
footer: /* @__PURE__ */ l(
|
|
655
660
|
Po,
|
|
@@ -714,11 +719,11 @@ var Ot;
|
|
|
714
719
|
function _a() {
|
|
715
720
|
if (Ot) return V;
|
|
716
721
|
Ot = 1;
|
|
717
|
-
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115,
|
|
722
|
+
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
718
723
|
function R(p) {
|
|
719
724
|
if (typeof p == "object" && p !== null) {
|
|
720
|
-
var
|
|
721
|
-
switch (
|
|
725
|
+
var C = p.$$typeof;
|
|
726
|
+
switch (C) {
|
|
722
727
|
case t:
|
|
723
728
|
switch (p = p.type, p) {
|
|
724
729
|
case m:
|
|
@@ -732,23 +737,23 @@ function _a() {
|
|
|
732
737
|
switch (p = p && p.$$typeof, p) {
|
|
733
738
|
case s:
|
|
734
739
|
case u:
|
|
735
|
-
case
|
|
740
|
+
case E:
|
|
736
741
|
case w:
|
|
737
742
|
case r:
|
|
738
743
|
return p;
|
|
739
744
|
default:
|
|
740
|
-
return
|
|
745
|
+
return C;
|
|
741
746
|
}
|
|
742
747
|
}
|
|
743
748
|
case n:
|
|
744
|
-
return
|
|
749
|
+
return C;
|
|
745
750
|
}
|
|
746
751
|
}
|
|
747
752
|
}
|
|
748
753
|
function b(p) {
|
|
749
754
|
return R(p) === d;
|
|
750
755
|
}
|
|
751
|
-
return V.AsyncMode = m, V.ConcurrentMode = d, V.ContextConsumer = s, V.ContextProvider = r, V.Element = t, V.ForwardRef = u, V.Fragment = o, V.Lazy =
|
|
756
|
+
return V.AsyncMode = m, V.ConcurrentMode = d, V.ContextConsumer = s, V.ContextProvider = r, V.Element = t, V.ForwardRef = u, V.Fragment = o, V.Lazy = E, V.Memo = w, V.Portal = n, V.Profiler = i, V.StrictMode = a, V.Suspense = c, V.isAsyncMode = function(p) {
|
|
752
757
|
return b(p) || R(p) === m;
|
|
753
758
|
}, V.isConcurrentMode = b, V.isContextConsumer = function(p) {
|
|
754
759
|
return R(p) === s;
|
|
@@ -761,7 +766,7 @@ function _a() {
|
|
|
761
766
|
}, V.isFragment = function(p) {
|
|
762
767
|
return R(p) === o;
|
|
763
768
|
}, V.isLazy = function(p) {
|
|
764
|
-
return R(p) ===
|
|
769
|
+
return R(p) === E;
|
|
765
770
|
}, V.isMemo = function(p) {
|
|
766
771
|
return R(p) === w;
|
|
767
772
|
}, V.isPortal = function(p) {
|
|
@@ -773,7 +778,7 @@ function _a() {
|
|
|
773
778
|
}, V.isSuspense = function(p) {
|
|
774
779
|
return R(p) === c;
|
|
775
780
|
}, V.isValidElementType = function(p) {
|
|
776
|
-
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === y || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
781
|
+
return typeof p == "string" || typeof p == "function" || p === o || p === d || p === i || p === a || p === c || p === y || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === w || p.$$typeof === r || p.$$typeof === s || p.$$typeof === u || p.$$typeof === N || p.$$typeof === O || p.$$typeof === Y || p.$$typeof === k);
|
|
777
782
|
}, V.typeOf = R, V;
|
|
778
783
|
}
|
|
779
784
|
var U = {};
|
|
@@ -788,10 +793,10 @@ var U = {};
|
|
|
788
793
|
var Lt;
|
|
789
794
|
function xa() {
|
|
790
795
|
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
791
|
-
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115,
|
|
796
|
+
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, m = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
|
|
792
797
|
function R(_) {
|
|
793
798
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
794
|
-
_ === o || _ === d || _ === i || _ === a || _ === c || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof ===
|
|
799
|
+
_ === o || _ === d || _ === i || _ === a || _ === c || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === E || _.$$typeof === w || _.$$typeof === r || _.$$typeof === s || _.$$typeof === u || _.$$typeof === N || _.$$typeof === O || _.$$typeof === Y || _.$$typeof === k);
|
|
795
800
|
}
|
|
796
801
|
function b(_) {
|
|
797
802
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -812,7 +817,7 @@ function xa() {
|
|
|
812
817
|
switch (Pe) {
|
|
813
818
|
case s:
|
|
814
819
|
case u:
|
|
815
|
-
case
|
|
820
|
+
case E:
|
|
816
821
|
case w:
|
|
817
822
|
case r:
|
|
818
823
|
return Pe;
|
|
@@ -825,7 +830,7 @@ function xa() {
|
|
|
825
830
|
}
|
|
826
831
|
}
|
|
827
832
|
}
|
|
828
|
-
var p = m,
|
|
833
|
+
var p = m, C = d, z = s, G = r, X = t, se = u, de = o, _e = E, ne = w, g = n, L = i, q = a, K = c, ee = !1;
|
|
829
834
|
function Q(_) {
|
|
830
835
|
return ee || (ee = !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(_) || b(_) === m;
|
|
831
836
|
}
|
|
@@ -848,7 +853,7 @@ function xa() {
|
|
|
848
853
|
return b(_) === o;
|
|
849
854
|
}
|
|
850
855
|
function D(_) {
|
|
851
|
-
return b(_) ===
|
|
856
|
+
return b(_) === E;
|
|
852
857
|
}
|
|
853
858
|
function F(_) {
|
|
854
859
|
return b(_) === w;
|
|
@@ -865,7 +870,7 @@ function xa() {
|
|
|
865
870
|
function te(_) {
|
|
866
871
|
return b(_) === c;
|
|
867
872
|
}
|
|
868
|
-
U.AsyncMode = p, U.ConcurrentMode =
|
|
873
|
+
U.AsyncMode = p, U.ConcurrentMode = C, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = _e, U.Memo = ne, U.Portal = g, U.Profiler = L, U.StrictMode = q, U.Suspense = K, U.isAsyncMode = Q, U.isConcurrentMode = f, U.isContextConsumer = h, U.isContextProvider = A, U.isElement = P, U.isForwardRef = j, U.isFragment = B, U.isLazy = D, U.isMemo = F, U.isPortal = W, U.isProfiler = $, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = R, U.typeOf = b;
|
|
869
874
|
}()), U;
|
|
870
875
|
}
|
|
871
876
|
var Pt;
|
|
@@ -964,8 +969,8 @@ function ha() {
|
|
|
964
969
|
throw y.name = "Invariant Violation", y;
|
|
965
970
|
}
|
|
966
971
|
c = i[u](r, u, m, s, null, t);
|
|
967
|
-
} catch (
|
|
968
|
-
c =
|
|
972
|
+
} catch (E) {
|
|
973
|
+
c = E;
|
|
969
974
|
}
|
|
970
975
|
if (c && !(c instanceof Error) && e(
|
|
971
976
|
(m || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -1020,7 +1025,7 @@ function ba() {
|
|
|
1020
1025
|
arrayOf: R,
|
|
1021
1026
|
element: b(),
|
|
1022
1027
|
elementType: p(),
|
|
1023
|
-
instanceOf:
|
|
1028
|
+
instanceOf: C,
|
|
1024
1029
|
node: se(),
|
|
1025
1030
|
objectOf: G,
|
|
1026
1031
|
oneOf: z,
|
|
@@ -1028,7 +1033,7 @@ function ba() {
|
|
|
1028
1033
|
shape: _e,
|
|
1029
1034
|
exact: ne
|
|
1030
1035
|
};
|
|
1031
|
-
function
|
|
1036
|
+
function E(f, h) {
|
|
1032
1037
|
return f === h ? f !== 0 || 1 / f === 1 / h : f !== f && h !== h;
|
|
1033
1038
|
}
|
|
1034
1039
|
function k(f, h) {
|
|
@@ -1115,7 +1120,7 @@ function ba() {
|
|
|
1115
1120
|
}
|
|
1116
1121
|
return N(f);
|
|
1117
1122
|
}
|
|
1118
|
-
function
|
|
1123
|
+
function C(f) {
|
|
1119
1124
|
function h(A, P, j, B, D) {
|
|
1120
1125
|
if (!(A[P] instanceof f)) {
|
|
1121
1126
|
var F = f.name || y, W = Q(A[P]);
|
|
@@ -1132,7 +1137,7 @@ function ba() {
|
|
|
1132
1137
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1133
1138
|
function h(A, P, j, B, D) {
|
|
1134
1139
|
for (var F = A[P], W = 0; W < f.length; W++)
|
|
1135
|
-
if (
|
|
1140
|
+
if (E(F, f[W]))
|
|
1136
1141
|
return null;
|
|
1137
1142
|
var $ = JSON.stringify(f, function(te, _) {
|
|
1138
1143
|
var ue = K(_);
|
|
@@ -1358,7 +1363,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1358
1363
|
} else
|
|
1359
1364
|
wt.exports = ya()();
|
|
1360
1365
|
var Ca = wt.exports;
|
|
1361
|
-
const
|
|
1366
|
+
const T = /* @__PURE__ */ vn(Ca);
|
|
1362
1367
|
function Ne(e, t, n, o) {
|
|
1363
1368
|
function a(i) {
|
|
1364
1369
|
return i instanceof n ? i : new n(function(r) {
|
|
@@ -2872,8 +2877,8 @@ function Ie(e) {
|
|
|
2872
2877
|
function Xa(e) {
|
|
2873
2878
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2874
2879
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(m) {
|
|
2875
|
-
var d = wn(m, n), u = Be(d, 1), c = u[0], y = kn(m, o, a), w = Be(y, 1),
|
|
2876
|
-
return c &&
|
|
2880
|
+
var d = wn(m, n), u = Be(d, 1), c = u[0], y = kn(m, o, a), w = Be(y, 1), E = w[0], k = s ? s(m) : null;
|
|
2881
|
+
return c && E && !k;
|
|
2877
2882
|
});
|
|
2878
2883
|
}
|
|
2879
2884
|
function Xe(e) {
|
|
@@ -3091,7 +3096,7 @@ Je.propTypes = {
|
|
|
3091
3096
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
3092
3097
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
3093
3098
|
*/
|
|
3094
|
-
children:
|
|
3099
|
+
children: T.func,
|
|
3095
3100
|
/**
|
|
3096
3101
|
* Set accepted file types.
|
|
3097
3102
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -3099,90 +3104,90 @@ Je.propTypes = {
|
|
|
3099
3104
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
3100
3105
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
3101
3106
|
*/
|
|
3102
|
-
accept:
|
|
3107
|
+
accept: T.objectOf(T.arrayOf(T.string)),
|
|
3103
3108
|
/**
|
|
3104
3109
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
3105
3110
|
*/
|
|
3106
|
-
multiple:
|
|
3111
|
+
multiple: T.bool,
|
|
3107
3112
|
/**
|
|
3108
3113
|
* If false, allow dropped items to take over the current browser window
|
|
3109
3114
|
*/
|
|
3110
|
-
preventDropOnDocument:
|
|
3115
|
+
preventDropOnDocument: T.bool,
|
|
3111
3116
|
/**
|
|
3112
3117
|
* If true, disables click to open the native file selection dialog
|
|
3113
3118
|
*/
|
|
3114
|
-
noClick:
|
|
3119
|
+
noClick: T.bool,
|
|
3115
3120
|
/**
|
|
3116
3121
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
3117
3122
|
* Note that it also stops tracking the focus state.
|
|
3118
3123
|
*/
|
|
3119
|
-
noKeyboard:
|
|
3124
|
+
noKeyboard: T.bool,
|
|
3120
3125
|
/**
|
|
3121
3126
|
* If true, disables drag 'n' drop
|
|
3122
3127
|
*/
|
|
3123
|
-
noDrag:
|
|
3128
|
+
noDrag: T.bool,
|
|
3124
3129
|
/**
|
|
3125
3130
|
* If true, stops drag event propagation to parents
|
|
3126
3131
|
*/
|
|
3127
|
-
noDragEventsBubbling:
|
|
3132
|
+
noDragEventsBubbling: T.bool,
|
|
3128
3133
|
/**
|
|
3129
3134
|
* Minimum file size (in bytes)
|
|
3130
3135
|
*/
|
|
3131
|
-
minSize:
|
|
3136
|
+
minSize: T.number,
|
|
3132
3137
|
/**
|
|
3133
3138
|
* Maximum file size (in bytes)
|
|
3134
3139
|
*/
|
|
3135
|
-
maxSize:
|
|
3140
|
+
maxSize: T.number,
|
|
3136
3141
|
/**
|
|
3137
3142
|
* Maximum accepted number of files
|
|
3138
3143
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
3139
3144
|
*/
|
|
3140
|
-
maxFiles:
|
|
3145
|
+
maxFiles: T.number,
|
|
3141
3146
|
/**
|
|
3142
3147
|
* Enable/disable the dropzone
|
|
3143
3148
|
*/
|
|
3144
|
-
disabled:
|
|
3149
|
+
disabled: T.bool,
|
|
3145
3150
|
/**
|
|
3146
3151
|
* Use this to provide a custom file aggregator
|
|
3147
3152
|
*
|
|
3148
3153
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3149
3154
|
*/
|
|
3150
|
-
getFilesFromEvent:
|
|
3155
|
+
getFilesFromEvent: T.func,
|
|
3151
3156
|
/**
|
|
3152
3157
|
* Cb for when closing the file dialog with no selection
|
|
3153
3158
|
*/
|
|
3154
|
-
onFileDialogCancel:
|
|
3159
|
+
onFileDialogCancel: T.func,
|
|
3155
3160
|
/**
|
|
3156
3161
|
* Cb for when opening the file dialog
|
|
3157
3162
|
*/
|
|
3158
|
-
onFileDialogOpen:
|
|
3163
|
+
onFileDialogOpen: T.func,
|
|
3159
3164
|
/**
|
|
3160
3165
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3161
3166
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3162
3167
|
*/
|
|
3163
|
-
useFsAccessApi:
|
|
3168
|
+
useFsAccessApi: T.bool,
|
|
3164
3169
|
/**
|
|
3165
3170
|
* Set to true to focus the root element on render
|
|
3166
3171
|
*/
|
|
3167
|
-
autoFocus:
|
|
3172
|
+
autoFocus: T.bool,
|
|
3168
3173
|
/**
|
|
3169
3174
|
* Cb for when the `dragenter` event occurs.
|
|
3170
3175
|
*
|
|
3171
3176
|
* @param {DragEvent} event
|
|
3172
3177
|
*/
|
|
3173
|
-
onDragEnter:
|
|
3178
|
+
onDragEnter: T.func,
|
|
3174
3179
|
/**
|
|
3175
3180
|
* Cb for when the `dragleave` event occurs
|
|
3176
3181
|
*
|
|
3177
3182
|
* @param {DragEvent} event
|
|
3178
3183
|
*/
|
|
3179
|
-
onDragLeave:
|
|
3184
|
+
onDragLeave: T.func,
|
|
3180
3185
|
/**
|
|
3181
3186
|
* Cb for when the `dragover` event occurs
|
|
3182
3187
|
*
|
|
3183
3188
|
* @param {DragEvent} event
|
|
3184
3189
|
*/
|
|
3185
|
-
onDragOver:
|
|
3190
|
+
onDragOver: T.func,
|
|
3186
3191
|
/**
|
|
3187
3192
|
* Cb for when the `drop` event occurs.
|
|
3188
3193
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3213,7 +3218,7 @@ Je.propTypes = {
|
|
|
3213
3218
|
* @param {FileRejection[]} fileRejections
|
|
3214
3219
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3215
3220
|
*/
|
|
3216
|
-
onDrop:
|
|
3221
|
+
onDrop: T.func,
|
|
3217
3222
|
/**
|
|
3218
3223
|
* Cb for when the `drop` event occurs.
|
|
3219
3224
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3221,7 +3226,7 @@ Je.propTypes = {
|
|
|
3221
3226
|
* @param {File[]} files
|
|
3222
3227
|
* @param {(DragEvent|Event)} event
|
|
3223
3228
|
*/
|
|
3224
|
-
onDropAccepted:
|
|
3229
|
+
onDropAccepted: T.func,
|
|
3225
3230
|
/**
|
|
3226
3231
|
* Cb for when the `drop` event occurs.
|
|
3227
3232
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3229,19 +3234,19 @@ Je.propTypes = {
|
|
|
3229
3234
|
* @param {FileRejection[]} fileRejections
|
|
3230
3235
|
* @param {(DragEvent|Event)} event
|
|
3231
3236
|
*/
|
|
3232
|
-
onDropRejected:
|
|
3237
|
+
onDropRejected: T.func,
|
|
3233
3238
|
/**
|
|
3234
3239
|
* Cb for when there's some error from any of the promises.
|
|
3235
3240
|
*
|
|
3236
3241
|
* @param {Error} error
|
|
3237
3242
|
*/
|
|
3238
|
-
onError:
|
|
3243
|
+
onError: T.func,
|
|
3239
3244
|
/**
|
|
3240
3245
|
* Custom validation function. It must return null if there's no errors.
|
|
3241
3246
|
* @param {File} file
|
|
3242
3247
|
* @returns {FileError|FileError[]|null}
|
|
3243
3248
|
*/
|
|
3244
|
-
validator:
|
|
3249
|
+
validator: T.func
|
|
3245
3250
|
};
|
|
3246
3251
|
var St = {
|
|
3247
3252
|
isFocused: !1,
|
|
@@ -3253,7 +3258,7 @@ var St = {
|
|
|
3253
3258
|
fileRejections: []
|
|
3254
3259
|
};
|
|
3255
3260
|
function xi() {
|
|
3256
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, y = t.onDrop, w = t.onDropAccepted,
|
|
3261
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = Z(Z({}, Sn), e), n = t.accept, o = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, m = t.maxFiles, d = t.onDragEnter, u = t.onDragLeave, c = t.onDragOver, y = t.onDrop, w = t.onDropAccepted, E = t.onDropRejected, k = t.onFileDialogCancel, N = t.onFileDialogOpen, O = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, C = t.noDrag, z = t.noDragEventsBubbling, G = t.onError, X = t.validator, se = Ae(function() {
|
|
3257
3262
|
return ni(n);
|
|
3258
3263
|
}, [n]), de = Ae(function() {
|
|
3259
3264
|
return ti(n);
|
|
@@ -3264,36 +3269,36 @@ function xi() {
|
|
|
3264
3269
|
}, [k]), g = Ce(null), L = Ce(null), q = Bn(gi, St), K = gt(q, 2), ee = K[0], Q = K[1], f = ee.isFocused, h = ee.isFileDialogActive, A = Ce(typeof window < "u" && window.isSecureContext && O && ei()), P = function() {
|
|
3265
3270
|
!A.current && h && setTimeout(function() {
|
|
3266
3271
|
if (L.current) {
|
|
3267
|
-
var
|
|
3268
|
-
|
|
3272
|
+
var S = L.current.files;
|
|
3273
|
+
S.length || (Q({
|
|
3269
3274
|
type: "closeDialog"
|
|
3270
3275
|
}), ne());
|
|
3271
3276
|
}
|
|
3272
3277
|
}, 300);
|
|
3273
3278
|
};
|
|
3274
|
-
|
|
3279
|
+
ae(function() {
|
|
3275
3280
|
return window.addEventListener("focus", P, !1), function() {
|
|
3276
3281
|
window.removeEventListener("focus", P, !1);
|
|
3277
3282
|
};
|
|
3278
3283
|
}, [L, h, ne, A]);
|
|
3279
|
-
var j = Ce([]), B = function(
|
|
3280
|
-
g.current && g.current.contains(
|
|
3284
|
+
var j = Ce([]), B = function(S) {
|
|
3285
|
+
g.current && g.current.contains(S.target) || (S.preventDefault(), j.current = []);
|
|
3281
3286
|
};
|
|
3282
|
-
|
|
3287
|
+
ae(function() {
|
|
3283
3288
|
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop", B, !1)), function() {
|
|
3284
3289
|
R && (document.removeEventListener("dragover", Zt), document.removeEventListener("drop", B));
|
|
3285
3290
|
};
|
|
3286
|
-
}, [g, R]),
|
|
3291
|
+
}, [g, R]), ae(function() {
|
|
3287
3292
|
return !o && Y && g.current && g.current.focus(), function() {
|
|
3288
3293
|
};
|
|
3289
3294
|
}, [g, Y, o]);
|
|
3290
3295
|
var D = le(function(x) {
|
|
3291
3296
|
G ? G(x) : console.error(x);
|
|
3292
3297
|
}, [G]), F = le(function(x) {
|
|
3293
|
-
x.preventDefault(), x.persist(), $e(x), j.current = [].concat(ci(j.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(
|
|
3298
|
+
x.preventDefault(), x.persist(), $e(x), j.current = [].concat(ci(j.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3294
3299
|
if (!(Xe(x) && !z)) {
|
|
3295
|
-
var J =
|
|
3296
|
-
files:
|
|
3300
|
+
var J = S.length, oe = J > 0 && Xa({
|
|
3301
|
+
files: S,
|
|
3297
3302
|
accept: se,
|
|
3298
3303
|
minSize: r,
|
|
3299
3304
|
maxSize: i,
|
|
@@ -3308,30 +3313,30 @@ function xi() {
|
|
|
3308
3313
|
type: "setDraggedFiles"
|
|
3309
3314
|
}), d && d(x);
|
|
3310
3315
|
}
|
|
3311
|
-
}).catch(function(
|
|
3312
|
-
return D(
|
|
3316
|
+
}).catch(function(S) {
|
|
3317
|
+
return D(S);
|
|
3313
3318
|
});
|
|
3314
3319
|
}, [a, d, D, z, se, r, i, s, m, X]), W = le(function(x) {
|
|
3315
3320
|
x.preventDefault(), x.persist(), $e(x);
|
|
3316
|
-
var
|
|
3317
|
-
if (
|
|
3321
|
+
var S = Ue(x);
|
|
3322
|
+
if (S && x.dataTransfer)
|
|
3318
3323
|
try {
|
|
3319
3324
|
x.dataTransfer.dropEffect = "copy";
|
|
3320
3325
|
} catch {
|
|
3321
3326
|
}
|
|
3322
|
-
return
|
|
3327
|
+
return S && c && c(x), !1;
|
|
3323
3328
|
}, [c, z]), $ = le(function(x) {
|
|
3324
3329
|
x.preventDefault(), x.persist(), $e(x);
|
|
3325
|
-
var
|
|
3330
|
+
var S = j.current.filter(function(oe) {
|
|
3326
3331
|
return g.current && g.current.contains(oe);
|
|
3327
|
-
}), J =
|
|
3328
|
-
J !== -1 &&
|
|
3332
|
+
}), J = S.indexOf(x.target);
|
|
3333
|
+
J !== -1 && S.splice(J, 1), j.current = S, !(S.length > 0) && (Q({
|
|
3329
3334
|
type: "setDraggedFiles",
|
|
3330
3335
|
isDragActive: !1,
|
|
3331
3336
|
isDragAccept: !1,
|
|
3332
3337
|
isDragReject: !1
|
|
3333
3338
|
}), Ue(x) && u && u(x));
|
|
3334
|
-
}, [g, u, z]), M = le(function(x,
|
|
3339
|
+
}, [g, u, z]), M = le(function(x, S) {
|
|
3335
3340
|
var J = [], oe = [];
|
|
3336
3341
|
x.forEach(function(me) {
|
|
3337
3342
|
var Fe = wn(me, se), Re = gt(Fe, 2), tt = Re[0], nt = Re[1], ot = kn(me, r, i), He = gt(ot, 2), at = He[0], it = He[1], rt = X ? X(me) : null;
|
|
@@ -3356,12 +3361,12 @@ function xi() {
|
|
|
3356
3361
|
fileRejections: oe,
|
|
3357
3362
|
isDragReject: oe.length > 0,
|
|
3358
3363
|
type: "setFiles"
|
|
3359
|
-
}), y && y(J, oe,
|
|
3360
|
-
}, [Q, s, se, r, i, m, y, w,
|
|
3361
|
-
x.preventDefault(), x.persist(), $e(x), j.current = [], Ue(x) && Promise.resolve(a(x)).then(function(
|
|
3362
|
-
Xe(x) && !z || M(
|
|
3363
|
-
}).catch(function(
|
|
3364
|
-
return D(
|
|
3364
|
+
}), y && y(J, oe, S), oe.length > 0 && E && E(oe, S), J.length > 0 && w && w(J, S);
|
|
3365
|
+
}, [Q, s, se, r, i, m, y, w, E, X]), te = le(function(x) {
|
|
3366
|
+
x.preventDefault(), x.persist(), $e(x), j.current = [], Ue(x) && Promise.resolve(a(x)).then(function(S) {
|
|
3367
|
+
Xe(x) && !z || M(S, x);
|
|
3368
|
+
}).catch(function(S) {
|
|
3369
|
+
return D(S);
|
|
3365
3370
|
}), Q({
|
|
3366
3371
|
type: "reset"
|
|
3367
3372
|
});
|
|
@@ -3374,16 +3379,16 @@ function xi() {
|
|
|
3374
3379
|
multiple: s,
|
|
3375
3380
|
types: de
|
|
3376
3381
|
};
|
|
3377
|
-
window.showOpenFilePicker(x).then(function(
|
|
3378
|
-
return a(
|
|
3379
|
-
}).then(function(
|
|
3380
|
-
M(
|
|
3382
|
+
window.showOpenFilePicker(x).then(function(S) {
|
|
3383
|
+
return a(S);
|
|
3384
|
+
}).then(function(S) {
|
|
3385
|
+
M(S, null), Q({
|
|
3381
3386
|
type: "closeDialog"
|
|
3382
3387
|
});
|
|
3383
|
-
}).catch(function(
|
|
3384
|
-
oi(
|
|
3388
|
+
}).catch(function(S) {
|
|
3389
|
+
oi(S) ? (ne(S), Q({
|
|
3385
3390
|
type: "closeDialog"
|
|
3386
|
-
})) : ai(
|
|
3391
|
+
})) : ai(S) ? (A.current = !1, L.current ? (L.current.value = null, L.current.click()) : D(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."))) : D(S);
|
|
3387
3392
|
});
|
|
3388
3393
|
return;
|
|
3389
3394
|
}
|
|
@@ -3402,17 +3407,17 @@ function xi() {
|
|
|
3402
3407
|
});
|
|
3403
3408
|
}, []), Rt = le(function() {
|
|
3404
3409
|
b || (Ja() ? setTimeout(_, 0) : _());
|
|
3405
|
-
}, [b, _]), De = function(
|
|
3406
|
-
return o ? null :
|
|
3407
|
-
}, et = function(
|
|
3408
|
-
return p ? null : De(
|
|
3409
|
-
}, qe = function(
|
|
3410
|
-
return
|
|
3411
|
-
}, $e = function(
|
|
3412
|
-
z &&
|
|
3410
|
+
}, [b, _]), De = function(S) {
|
|
3411
|
+
return o ? null : S;
|
|
3412
|
+
}, et = function(S) {
|
|
3413
|
+
return p ? null : De(S);
|
|
3414
|
+
}, qe = function(S) {
|
|
3415
|
+
return C ? null : De(S);
|
|
3416
|
+
}, $e = function(S) {
|
|
3417
|
+
z && S.stopPropagation();
|
|
3413
3418
|
}, An = Ae(function() {
|
|
3414
3419
|
return function() {
|
|
3415
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3420
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, J = S === void 0 ? "ref" : S, oe = x.role, me = x.onKeyDown, Fe = x.onFocus, Re = x.onBlur, tt = x.onClick, nt = x.onDragEnter, ot = x.onDragOver, He = x.onDragLeave, at = x.onDrop, it = Ze(x, si);
|
|
3416
3421
|
return Z(Z(Et({
|
|
3417
3422
|
onKeyDown: et(we(me, ue)),
|
|
3418
3423
|
onFocus: et(we(Fe, je)),
|
|
@@ -3427,11 +3432,11 @@ function xi() {
|
|
|
3427
3432
|
tabIndex: 0
|
|
3428
3433
|
} : {}), it);
|
|
3429
3434
|
};
|
|
3430
|
-
}, [g, ue, je, Pe, Rt, F, W, $, te, p,
|
|
3435
|
+
}, [g, ue, je, Pe, Rt, F, W, $, te, p, C, o]), On = le(function(x) {
|
|
3431
3436
|
x.stopPropagation();
|
|
3432
3437
|
}, []), Ln = Ae(function() {
|
|
3433
3438
|
return function() {
|
|
3434
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3439
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = x.refKey, J = S === void 0 ? "ref" : S, oe = x.onChange, me = x.onClick, Fe = Ze(x, pi), Re = Et({
|
|
3435
3440
|
accept: se,
|
|
3436
3441
|
multiple: s,
|
|
3437
3442
|
type: "file",
|
|
@@ -3545,7 +3550,7 @@ const hi = (e) => {
|
|
|
3545
3550
|
labelText: t = "Выпадающий список",
|
|
3546
3551
|
listName: n,
|
|
3547
3552
|
dropdownList: o = [],
|
|
3548
|
-
dropdownPosition: a =
|
|
3553
|
+
dropdownPosition: a = ie.BottomRight,
|
|
3549
3554
|
classNameRoot: i
|
|
3550
3555
|
} = e, r = v({
|
|
3551
3556
|
[Ee.spDropdown]: !0,
|
|
@@ -3590,7 +3595,7 @@ const hi = (e) => {
|
|
|
3590
3595
|
isToggleClick: !0,
|
|
3591
3596
|
trigger: /* @__PURE__ */ H("div", { className: r, children: [
|
|
3592
3597
|
/* @__PURE__ */ l("div", { className: s, children: t }),
|
|
3593
|
-
/* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l(ve, { name:
|
|
3598
|
+
/* @__PURE__ */ l("div", { className: m, children: /* @__PURE__ */ l(ve, { name: re.SelectChevronDown, rotate: y ? 180 : void 0 }) })
|
|
3594
3599
|
] })
|
|
3595
3600
|
}
|
|
3596
3601
|
);
|
|
@@ -3606,7 +3611,7 @@ const hi = (e) => {
|
|
|
3606
3611
|
classNameBaseTooltipRoot: i,
|
|
3607
3612
|
...r
|
|
3608
3613
|
} = e, s = Ce(null), [m, d] = ce(!1);
|
|
3609
|
-
|
|
3614
|
+
ae(() => {
|
|
3610
3615
|
s.current && d(s.current.scrollWidth > s.current.clientWidth);
|
|
3611
3616
|
}, [t]);
|
|
3612
3617
|
const u = v({
|
|
@@ -3704,7 +3709,7 @@ const hi = (e) => {
|
|
|
3704
3709
|
onMouseEnter: c,
|
|
3705
3710
|
infoTooltipText: y,
|
|
3706
3711
|
tooltipPosition: w,
|
|
3707
|
-
isVisibleDefaultTitle:
|
|
3712
|
+
isVisibleDefaultTitle: E = !0,
|
|
3708
3713
|
placeholder: k = "Введите...",
|
|
3709
3714
|
classNameRoot: N,
|
|
3710
3715
|
classNameError: O,
|
|
@@ -3716,7 +3721,7 @@ const hi = (e) => {
|
|
|
3716
3721
|
...N && { [N]: !0 }
|
|
3717
3722
|
}), p = v({
|
|
3718
3723
|
[Se.spInput__container]: !0
|
|
3719
|
-
}),
|
|
3724
|
+
}), C = v({
|
|
3720
3725
|
[Se.spInput__control]: !0,
|
|
3721
3726
|
[Se.spInput__control_disabled]: i,
|
|
3722
3727
|
[Se.spInput__control_clearable]: d
|
|
@@ -3752,14 +3757,14 @@ const hi = (e) => {
|
|
|
3752
3757
|
placeholder: k,
|
|
3753
3758
|
disabled: i,
|
|
3754
3759
|
onChange: de,
|
|
3755
|
-
title:
|
|
3760
|
+
title: E ? n : void 0,
|
|
3756
3761
|
value: n,
|
|
3757
3762
|
name: m,
|
|
3758
|
-
className:
|
|
3763
|
+
className: C,
|
|
3759
3764
|
ref: t
|
|
3760
3765
|
}
|
|
3761
3766
|
),
|
|
3762
|
-
d && n && !i && /* @__PURE__ */ l(ve, { onClick: se, className: z, name:
|
|
3767
|
+
d && n && !i && /* @__PURE__ */ l(ve, { onClick: se, className: z, name: re.Trash })
|
|
3763
3768
|
] }),
|
|
3764
3769
|
r && /* @__PURE__ */ l("div", { className: G, children: r })
|
|
3765
3770
|
] });
|
|
@@ -3790,21 +3795,21 @@ const Vi = "_spInputFiles_12x0f_43", Ui = "_spInputFiles_error_12x0f_48", Gi = "
|
|
|
3790
3795
|
maxFiles: m,
|
|
3791
3796
|
files: d = [],
|
|
3792
3797
|
infoTooltipText: u,
|
|
3793
|
-
tooltipPosition: c =
|
|
3798
|
+
tooltipPosition: c = ie.TopRight,
|
|
3794
3799
|
classNameRoot: y,
|
|
3795
3800
|
error: w
|
|
3796
|
-
} = e,
|
|
3801
|
+
} = e, E = d.map((p) => p.name), k = (E == null ? void 0 : E.length) > 0, N = v({
|
|
3797
3802
|
[xe.spInputFiles]: !0,
|
|
3798
3803
|
[xe.spInputFiles_error]: !!w,
|
|
3799
3804
|
[xe.spInputFiles_disabled]: r,
|
|
3800
3805
|
[xe.spInputFiles_fileUploaded]: k,
|
|
3801
3806
|
...y && { [y]: !0 }
|
|
3802
3807
|
}), O = (p) => {
|
|
3803
|
-
const
|
|
3804
|
-
|
|
3808
|
+
const C = [...d], z = C.findIndex((G) => G.name === p);
|
|
3809
|
+
C.splice(z, 1), o(C, n);
|
|
3805
3810
|
}, Y = (p) => {
|
|
3806
3811
|
p.stopPropagation(), o([], n);
|
|
3807
|
-
}, R = () => s ? /* @__PURE__ */ l("ul", { className: xe.spInputFiles__fileNamesList, children:
|
|
3812
|
+
}, R = () => s ? /* @__PURE__ */ l("ul", { className: xe.spInputFiles__fileNamesList, children: E.map((p, C) => /* @__PURE__ */ H(
|
|
3808
3813
|
"li",
|
|
3809
3814
|
{
|
|
3810
3815
|
className: xe.spInputFiles__fileNamesListItem,
|
|
@@ -3813,13 +3818,13 @@ const Vi = "_spInputFiles_12x0f_43", Ui = "_spInputFiles_error_12x0f_48", Gi = "
|
|
|
3813
3818
|
},
|
|
3814
3819
|
children: [
|
|
3815
3820
|
/* @__PURE__ */ l(Te, { isEllipsis: !0, children: p }),
|
|
3816
|
-
/* @__PURE__ */ l("div", { className: xe.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ l(ve, { name:
|
|
3821
|
+
/* @__PURE__ */ l("div", { className: xe.spInputFiles__fileNamesListItemDelete, children: /* @__PURE__ */ l(ve, { name: re.Trash }) })
|
|
3817
3822
|
]
|
|
3818
3823
|
},
|
|
3819
|
-
|
|
3820
|
-
)) }) : /* @__PURE__ */ l(Te, { isEllipsis: !0, children:
|
|
3824
|
+
C
|
|
3825
|
+
)) }) : /* @__PURE__ */ l(Te, { isEllipsis: !0, children: E[0] }), b = () => /* @__PURE__ */ H(pn, { children: [
|
|
3821
3826
|
k ? R() : /* @__PURE__ */ l(Te, { children: t }),
|
|
3822
|
-
k ? /* @__PURE__ */ l("div", { className: xe.spInputFiles__delete, onClick: Y, children: /* @__PURE__ */ l(ve, { name:
|
|
3827
|
+
k ? /* @__PURE__ */ l("div", { className: xe.spInputFiles__delete, onClick: Y, children: /* @__PURE__ */ l(ve, { name: re.Close }) }) : u && /* @__PURE__ */ l(
|
|
3823
3828
|
Qe,
|
|
3824
3829
|
{
|
|
3825
3830
|
classNameTooltip: xe.spInputFiles__tooltipWrapper,
|
|
@@ -3842,7 +3847,7 @@ const Vi = "_spInputFiles_12x0f_43", Ui = "_spInputFiles_error_12x0f_48", Gi = "
|
|
|
3842
3847
|
disabled: r || k,
|
|
3843
3848
|
children: /* @__PURE__ */ H("div", { className: N, children: [
|
|
3844
3849
|
/* @__PURE__ */ H("div", { className: xe.spInputFiles__control, children: [
|
|
3845
|
-
/* @__PURE__ */ l(ve, { name: k ?
|
|
3850
|
+
/* @__PURE__ */ l(ve, { name: k ? re.Check : re.Upload }),
|
|
3846
3851
|
b()
|
|
3847
3852
|
] }),
|
|
3848
3853
|
w && /* @__PURE__ */ l("div", { className: xe.spInputFiles__error, children: w })
|
|
@@ -4004,37 +4009,37 @@ function gr(e, t) {
|
|
|
4004
4009
|
}
|
|
4005
4010
|
return !0;
|
|
4006
4011
|
}
|
|
4007
|
-
const pe =
|
|
4008
|
-
all:
|
|
4009
|
-
grid:
|
|
4010
|
-
aural:
|
|
4011
|
-
braille:
|
|
4012
|
-
handheld:
|
|
4013
|
-
print:
|
|
4014
|
-
projection:
|
|
4015
|
-
screen:
|
|
4016
|
-
tty:
|
|
4017
|
-
tv:
|
|
4018
|
-
embossed:
|
|
4012
|
+
const pe = T.oneOfType([T.string, T.number]), Dn = {
|
|
4013
|
+
all: T.bool,
|
|
4014
|
+
grid: T.bool,
|
|
4015
|
+
aural: T.bool,
|
|
4016
|
+
braille: T.bool,
|
|
4017
|
+
handheld: T.bool,
|
|
4018
|
+
print: T.bool,
|
|
4019
|
+
projection: T.bool,
|
|
4020
|
+
screen: T.bool,
|
|
4021
|
+
tty: T.bool,
|
|
4022
|
+
tv: T.bool,
|
|
4023
|
+
embossed: T.bool
|
|
4019
4024
|
}, hr = {
|
|
4020
|
-
orientation:
|
|
4021
|
-
scan:
|
|
4022
|
-
aspectRatio:
|
|
4023
|
-
deviceAspectRatio:
|
|
4025
|
+
orientation: T.oneOf(["portrait", "landscape"]),
|
|
4026
|
+
scan: T.oneOf(["progressive", "interlace"]),
|
|
4027
|
+
aspectRatio: T.string,
|
|
4028
|
+
deviceAspectRatio: T.string,
|
|
4024
4029
|
height: pe,
|
|
4025
4030
|
deviceHeight: pe,
|
|
4026
4031
|
width: pe,
|
|
4027
4032
|
deviceWidth: pe,
|
|
4028
|
-
color:
|
|
4029
|
-
colorIndex:
|
|
4030
|
-
monochrome:
|
|
4033
|
+
color: T.bool,
|
|
4034
|
+
colorIndex: T.bool,
|
|
4035
|
+
monochrome: T.bool,
|
|
4031
4036
|
resolution: pe,
|
|
4032
4037
|
type: Object.keys(Dn)
|
|
4033
4038
|
}, { type: Es, ...br } = hr, yr = {
|
|
4034
|
-
minAspectRatio:
|
|
4035
|
-
maxAspectRatio:
|
|
4036
|
-
minDeviceAspectRatio:
|
|
4037
|
-
maxDeviceAspectRatio:
|
|
4039
|
+
minAspectRatio: T.string,
|
|
4040
|
+
maxAspectRatio: T.string,
|
|
4041
|
+
minDeviceAspectRatio: T.string,
|
|
4042
|
+
maxDeviceAspectRatio: T.string,
|
|
4038
4043
|
minHeight: pe,
|
|
4039
4044
|
maxHeight: pe,
|
|
4040
4045
|
minDeviceHeight: pe,
|
|
@@ -4043,12 +4048,12 @@ const pe = C.oneOfType([C.string, C.number]), Dn = {
|
|
|
4043
4048
|
maxWidth: pe,
|
|
4044
4049
|
minDeviceWidth: pe,
|
|
4045
4050
|
maxDeviceWidth: pe,
|
|
4046
|
-
minColor:
|
|
4047
|
-
maxColor:
|
|
4048
|
-
minColorIndex:
|
|
4049
|
-
maxColorIndex:
|
|
4050
|
-
minMonochrome:
|
|
4051
|
-
maxMonochrome:
|
|
4051
|
+
minColor: T.number,
|
|
4052
|
+
maxColor: T.number,
|
|
4053
|
+
minColorIndex: T.number,
|
|
4054
|
+
maxColorIndex: T.number,
|
|
4055
|
+
minMonochrome: T.number,
|
|
4056
|
+
maxMonochrome: T.number,
|
|
4052
4057
|
minResolution: pe,
|
|
4053
4058
|
maxResolution: pe,
|
|
4054
4059
|
...br
|
|
@@ -4067,24 +4072,24 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4067
4072
|
}), Er(t);
|
|
4068
4073
|
}, jr = cn(void 0), Ir = (e) => e.query || Sr(e), rn = (e) => e ? Object.keys(e).reduce((n, o) => (n[Nn(o)] = e[o], n), {}) : void 0, Rn = () => {
|
|
4069
4074
|
const e = Ce(!1);
|
|
4070
|
-
return
|
|
4075
|
+
return ae(() => {
|
|
4071
4076
|
e.current = !0;
|
|
4072
4077
|
}, []), e.current;
|
|
4073
4078
|
}, Nr = (e) => {
|
|
4074
4079
|
const t = ln(jr), n = () => rn(e) || rn(t), [o, a] = ce(n);
|
|
4075
|
-
return
|
|
4080
|
+
return ae(() => {
|
|
4076
4081
|
const i = n();
|
|
4077
4082
|
gr(o, i) || a(i);
|
|
4078
4083
|
}, [e, t]), o;
|
|
4079
4084
|
}, Dr = (e) => {
|
|
4080
4085
|
const t = () => Ir(e), [n, o] = ce(t);
|
|
4081
|
-
return
|
|
4086
|
+
return ae(() => {
|
|
4082
4087
|
const a = t();
|
|
4083
4088
|
n !== a && o(a);
|
|
4084
4089
|
}, [e]), n;
|
|
4085
4090
|
}, Rr = (e, t) => {
|
|
4086
4091
|
const n = () => fr(e, t || {}, !!t), [o, a] = ce(n), i = Rn();
|
|
4087
|
-
return
|
|
4092
|
+
return ae(() => {
|
|
4088
4093
|
if (i) {
|
|
4089
4094
|
const r = n();
|
|
4090
4095
|
return a(r), () => {
|
|
@@ -4094,7 +4099,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4094
4099
|
}, [e, t]), o;
|
|
4095
4100
|
}, Ar = (e) => {
|
|
4096
4101
|
const [t, n] = ce(e.matches);
|
|
4097
|
-
return
|
|
4102
|
+
return ae(() => {
|
|
4098
4103
|
const o = (a) => {
|
|
4099
4104
|
n(a.matches);
|
|
4100
4105
|
};
|
|
@@ -4107,8 +4112,8 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4107
4112
|
if (!a)
|
|
4108
4113
|
throw new Error("Invalid or missing MediaQuery!");
|
|
4109
4114
|
const i = Rr(a, o), r = Ar(i);
|
|
4110
|
-
return Rn(),
|
|
4111
|
-
}, [r]),
|
|
4115
|
+
return Rn(), ae(() => {
|
|
4116
|
+
}, [r]), ae(() => () => {
|
|
4112
4117
|
i && i.dispose();
|
|
4113
4118
|
}, []), r;
|
|
4114
4119
|
}, Or = (e) => {
|
|
@@ -4159,7 +4164,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4159
4164
|
disabled: c,
|
|
4160
4165
|
required: y,
|
|
4161
4166
|
maxHeightList: w = Lr,
|
|
4162
|
-
isVisibleDefaultTitle:
|
|
4167
|
+
isVisibleDefaultTitle: E = !0,
|
|
4163
4168
|
isScrollableList: k = !1,
|
|
4164
4169
|
classNameRoot: N,
|
|
4165
4170
|
classNameError: O,
|
|
@@ -4172,7 +4177,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4172
4177
|
},
|
|
4173
4178
|
R
|
|
4174
4179
|
);
|
|
4175
|
-
const
|
|
4180
|
+
const C = t.find((ee) => ee.value === o), z = (ee, Q) => {
|
|
4176
4181
|
i(ee, { value: Q, name: a }), b(!1);
|
|
4177
4182
|
}, G = () => {
|
|
4178
4183
|
c || b(!R);
|
|
@@ -4187,7 +4192,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4187
4192
|
[ge.spSelect__control_disabled]: c
|
|
4188
4193
|
}), _e = v({
|
|
4189
4194
|
[ge.spSelect__value]: !0,
|
|
4190
|
-
[ge.spSelect__value_empty]: !
|
|
4195
|
+
[ge.spSelect__value_empty]: !C
|
|
4191
4196
|
}), ne = v({
|
|
4192
4197
|
[ge.spSelect__icon]: !0
|
|
4193
4198
|
}), g = v({
|
|
@@ -4215,15 +4220,15 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4215
4220
|
"div",
|
|
4216
4221
|
{
|
|
4217
4222
|
tabIndex: 0,
|
|
4218
|
-
title:
|
|
4223
|
+
title: E ? o : void 0,
|
|
4219
4224
|
className: de,
|
|
4220
4225
|
onClick: G,
|
|
4221
4226
|
children: [
|
|
4222
|
-
/* @__PURE__ */ l("div", { className: _e, children: (
|
|
4227
|
+
/* @__PURE__ */ l("div", { className: _e, children: (C == null ? void 0 : C.label) || n }),
|
|
4223
4228
|
/* @__PURE__ */ l(
|
|
4224
4229
|
ve,
|
|
4225
4230
|
{
|
|
4226
|
-
name:
|
|
4231
|
+
name: re.SelectChevronDown,
|
|
4227
4232
|
rotate: R ? 180 : void 0,
|
|
4228
4233
|
className: ne
|
|
4229
4234
|
}
|
|
@@ -4247,7 +4252,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4247
4252
|
onClick: (f) => z(f, ee.value),
|
|
4248
4253
|
children: [
|
|
4249
4254
|
ee.label,
|
|
4250
|
-
Q && /* @__PURE__ */ l(ve, { name:
|
|
4255
|
+
Q && /* @__PURE__ */ l(ve, { name: re.Check, className: ne })
|
|
4251
4256
|
]
|
|
4252
4257
|
},
|
|
4253
4258
|
ee.value
|
|
@@ -4292,54 +4297,54 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4292
4297
|
}), {
|
|
4293
4298
|
device: { isDesktop: u }
|
|
4294
4299
|
} = ln(jn), [c, y] = ce(null), w = (b) => {
|
|
4295
|
-
const { text: p, rowIndex:
|
|
4296
|
-
(c == null ? void 0 : c.rowIndex) ===
|
|
4297
|
-
y({ rowIndex:
|
|
4300
|
+
const { text: p, rowIndex: C, colIndex: z } = b;
|
|
4301
|
+
(c == null ? void 0 : c.rowIndex) === C && (c == null ? void 0 : c.colIndex) === z || navigator.clipboard.writeText(p).then(() => {
|
|
4302
|
+
y({ rowIndex: C, colIndex: z });
|
|
4298
4303
|
}).catch((G) => {
|
|
4299
4304
|
console.error("Ошибка при копировании:", G);
|
|
4300
4305
|
});
|
|
4301
|
-
},
|
|
4306
|
+
}, E = () => {
|
|
4302
4307
|
y(null);
|
|
4303
4308
|
}, k = () => /* @__PURE__ */ l("div", { className: d, children: "Данные отсутствуют" }), N = ({
|
|
4304
4309
|
row: b,
|
|
4305
4310
|
col: p
|
|
4306
4311
|
}) => {
|
|
4307
|
-
const
|
|
4308
|
-
if (!
|
|
4309
|
-
const [z, G] =
|
|
4312
|
+
const C = b[p.key];
|
|
4313
|
+
if (!C) return null;
|
|
4314
|
+
const [z, G] = C.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4310
4315
|
return /* @__PURE__ */ H("span", { children: [
|
|
4311
4316
|
z,
|
|
4312
4317
|
G && /* @__PURE__ */ l("span", { className: m, children: ` ${G}` })
|
|
4313
4318
|
] });
|
|
4314
4319
|
}, O = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ H("table", { className: r, children: [
|
|
4315
|
-
/* @__PURE__ */ l("colgroup", { children: i.map((b, p,
|
|
4320
|
+
/* @__PURE__ */ l("colgroup", { children: i.map((b, p, C) => /* @__PURE__ */ l(
|
|
4316
4321
|
"col",
|
|
4317
4322
|
{
|
|
4318
4323
|
style: {
|
|
4319
|
-
width: `calc(100%/${
|
|
4324
|
+
width: `calc(100%/${C.length})`
|
|
4320
4325
|
}
|
|
4321
4326
|
},
|
|
4322
4327
|
p
|
|
4323
4328
|
)) }),
|
|
4324
4329
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: i.map((b, p) => /* @__PURE__ */ l("th", { children: b.title }, p)) }) }),
|
|
4325
|
-
/* @__PURE__ */ l("tbody", { children: n.map((b, p) => b ? /* @__PURE__ */ l("tr", { children: i.map((
|
|
4330
|
+
/* @__PURE__ */ l("tbody", { children: n.map((b, p) => b ? /* @__PURE__ */ l("tr", { children: i.map((C, z) => {
|
|
4326
4331
|
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) === z;
|
|
4327
4332
|
return /* @__PURE__ */ l(
|
|
4328
4333
|
"td",
|
|
4329
4334
|
{
|
|
4330
|
-
onMouseLeave: G ?
|
|
4335
|
+
onMouseLeave: G ? E : void 0,
|
|
4331
4336
|
children: /* @__PURE__ */ H("div", { className: s, children: [
|
|
4332
|
-
/* @__PURE__ */ l("span", { children:
|
|
4333
|
-
!sn(b[
|
|
4337
|
+
/* @__PURE__ */ l("span", { children: C.isColorContentsCurlyBrackets ? N({ row: b, col: C }) : b[C.key] }),
|
|
4338
|
+
!sn(b[C.key]) && C.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4334
4339
|
ve,
|
|
4335
4340
|
{
|
|
4336
4341
|
className: v({
|
|
4337
4342
|
[he.spTable__tdContentCopyIcon]: !0,
|
|
4338
4343
|
[he.spTable__tdContentCopyIcon_copied]: G
|
|
4339
4344
|
}),
|
|
4340
|
-
name: G ?
|
|
4345
|
+
name: G ? re.Check : re.Copy,
|
|
4341
4346
|
onClick: () => {
|
|
4342
|
-
const X = b[
|
|
4347
|
+
const X = b[C.key];
|
|
4343
4348
|
if (!X) return null;
|
|
4344
4349
|
w({
|
|
4345
4350
|
text: X,
|
|
@@ -4360,8 +4365,8 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4360
4365
|
className: v({
|
|
4361
4366
|
[he.spStringsGroup]: !0
|
|
4362
4367
|
}),
|
|
4363
|
-
children: n.map((b, p) => b ? /* @__PURE__ */ l("div", { children: i.map((
|
|
4364
|
-
if (sn(b[
|
|
4368
|
+
children: n.map((b, p) => b ? /* @__PURE__ */ l("div", { children: i.map((C, z) => {
|
|
4369
|
+
if (sn(b[C.key]))
|
|
4365
4370
|
return null;
|
|
4366
4371
|
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) === z;
|
|
4367
4372
|
return /* @__PURE__ */ H(
|
|
@@ -4370,7 +4375,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4370
4375
|
className: v({
|
|
4371
4376
|
[he.spStringsGroup__groupItem]: !0
|
|
4372
4377
|
}),
|
|
4373
|
-
onMouseLeave: G ?
|
|
4378
|
+
onMouseLeave: G ? E : void 0,
|
|
4374
4379
|
children: [
|
|
4375
4380
|
/* @__PURE__ */ l(
|
|
4376
4381
|
"div",
|
|
@@ -4378,7 +4383,7 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4378
4383
|
className: v({
|
|
4379
4384
|
[he.spStringsGroup__groupItemHeader]: !0
|
|
4380
4385
|
}),
|
|
4381
|
-
children:
|
|
4386
|
+
children: C.title
|
|
4382
4387
|
}
|
|
4383
4388
|
),
|
|
4384
4389
|
/* @__PURE__ */ H(
|
|
@@ -4388,17 +4393,17 @@ const Cr = (e) => `not ${e}`, Tr = (e, t) => {
|
|
|
4388
4393
|
[he.spStringsGroup__groupItemContent]: !0
|
|
4389
4394
|
}),
|
|
4390
4395
|
children: [
|
|
4391
|
-
/* @__PURE__ */ l("span", { children: b[
|
|
4392
|
-
|
|
4396
|
+
/* @__PURE__ */ l("span", { children: b[C.key] }),
|
|
4397
|
+
C.isBeCopiedValue && /* @__PURE__ */ l(
|
|
4393
4398
|
ve,
|
|
4394
4399
|
{
|
|
4395
4400
|
className: v({
|
|
4396
4401
|
[he.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
4397
4402
|
[he.spStringsGroup__groupItemContentCopyIcon_copied]: G
|
|
4398
4403
|
}),
|
|
4399
|
-
name: G ?
|
|
4404
|
+
name: G ? re.Check : re.Copy,
|
|
4400
4405
|
onClick: () => {
|
|
4401
|
-
const X = b[
|
|
4406
|
+
const X = b[C.key];
|
|
4402
4407
|
if (!X) return null;
|
|
4403
4408
|
w({
|
|
4404
4409
|
text: X,
|
|
@@ -4478,8 +4483,8 @@ export {
|
|
|
4478
4483
|
ys as ContextMenu,
|
|
4479
4484
|
hi as DefaultDropzone,
|
|
4480
4485
|
ws as Dropdown,
|
|
4481
|
-
|
|
4482
|
-
|
|
4486
|
+
re as EIconName,
|
|
4487
|
+
ie as ETooltipPosition,
|
|
4483
4488
|
ks as EllipsisTextWithTooltip,
|
|
4484
4489
|
Cs as Form,
|
|
4485
4490
|
ve as Icon,
|