test-stpr-ui-kit 0.4.0 → 0.4.2
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/README.md +1 -17
- package/dist/test-stpr-ui-kit.css +1 -0
- package/dist/test-stpr-ui-kit.es.js +172 -172
- package/dist/test-stpr-ui-kit.umd.cjs +25 -0
- package/package.json +4 -4
- package/dist/test-stpr-ui-kit.umd.js +0 -25
- package/dist/vite-storybook-library.css +0 -1
- /package/dist/{assets/fonts → fonts}/ALS_Gorizont_Bold_Expanded_2.1.woff2 +0 -0
- /package/dist/{assets/fonts → fonts}/ALS_Gorizont_Medium_Expanded_2.1.woff2 +0 -0
- /package/dist/{assets/fonts → fonts}/ALS_Gorizont_Regular_Expanded_2.1.woff2 +0 -0
- /package/dist/{assets/fonts → fonts}/ALS_Hauss_Bold_1.002.woff2 +0 -0
- /package/dist/{assets/fonts → fonts}/ALS_Hauss_Medium_1.2.woff2 +0 -0
- /package/dist/{assets/fonts → fonts}/ALS_Hauss_Regular_1.002.woff2 +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as H, jsx as l, Fragment as pn } from "react/jsx-runtime";
|
|
2
2
|
import * as D from "react";
|
|
3
|
-
import We, { useState as ce, useEffect as re, useRef as Ce, useCallback as le, forwardRef as Fn, useImperativeHandle as
|
|
3
|
+
import We, { useState as ce, useEffect as re, useRef as Ce, useCallback as le, forwardRef as Fn, useImperativeHandle as zn, Fragment as Bn, useMemo as Ae, useReducer as Mn, createContext as cn, useContext as ln } from "react";
|
|
4
4
|
import Wn from "react-dom";
|
|
5
|
-
import './
|
|
5
|
+
import './test-stpr-ui-kit.css';function dn(e) {
|
|
6
6
|
var t, n, o = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
8
8
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
@@ -42,7 +42,7 @@ const qn = (e) => /* @__PURE__ */ D.createElement("svg", { className: "stpr-icon
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
var ie = /* @__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.WarningColor = "warningColor", e.Dots = "dots", e.HistoryClock = "historyClock", e.Minus = "minus", e))(ie || {});
|
|
45
|
-
const no = "
|
|
45
|
+
const no = "_spAccordion_1q3b8_43", oo = "_spAccordion_noBorder_1q3b8_56", ao = "_spAccordion_noPadding_1q3b8_59", io = "_spAccordion__name_1q3b8_62", ro = "_spAccordion_open_1q3b8_72", so = "_spAccordion__header_1q3b8_75", po = "_spAccordion_noOpen_1q3b8_83", co = "_spAccordion__name_hiddenExpand_1q3b8_114", lo = "_spAccordion__icon_1q3b8_117", uo = "_spAccordion__icon_hidden_1q3b8_127", mo = "_spAccordion__childrenWrapper_1q3b8_133", fo = "_spAccordion__childrenWrapper_open_1q3b8_148", _e = {
|
|
46
46
|
spAccordion: no,
|
|
47
47
|
spAccordion_noBorder: oo,
|
|
48
48
|
spAccordion_noPadding: ao,
|
|
@@ -109,14 +109,14 @@ const no = "_spAccordion_1bkaj_43", oo = "_spAccordion_noBorder_1bkaj_56", ao =
|
|
|
109
109
|
] }),
|
|
110
110
|
/* @__PURE__ */ l("div", { className: b, children: /* @__PURE__ */ l("div", { children: n }) })
|
|
111
111
|
] });
|
|
112
|
-
}, vo = "
|
|
112
|
+
}, vo = "_spinner_f5rd2_43", _o = "_spinner__inner_f5rd2_53", pt = {
|
|
113
113
|
spinner: vo,
|
|
114
114
|
spinner__inner: _o,
|
|
115
|
-
"spinner-rotate": "_spinner-
|
|
116
|
-
"spinner--sm": "_spinner--
|
|
117
|
-
"spinner--md": "_spinner--
|
|
118
|
-
"spinner--lg": "_spinner--
|
|
119
|
-
"spinner--xl": "_spinner--
|
|
115
|
+
"spinner-rotate": "_spinner-rotate_f5rd2_1",
|
|
116
|
+
"spinner--sm": "_spinner--sm_f5rd2_66",
|
|
117
|
+
"spinner--md": "_spinner--md_f5rd2_70",
|
|
118
|
+
"spinner--lg": "_spinner--lg_f5rd2_73",
|
|
119
|
+
"spinner--xl": "_spinner--xl_f5rd2_77"
|
|
120
120
|
}, xo = (e) => {
|
|
121
121
|
const { size: t = "md", color: n = "#036bfd", classNameRoot: o } = e;
|
|
122
122
|
return /* @__PURE__ */ l(
|
|
@@ -129,7 +129,7 @@ const no = "_spAccordion_1bkaj_43", oo = "_spAccordion_noBorder_1bkaj_56", ao =
|
|
|
129
129
|
children: /* @__PURE__ */ l("div", { className: pt.spinner__inner })
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
|
-
}, go = "
|
|
132
|
+
}, go = "_spButton_1g8qp_43", ho = "_spButton_noPadding_1g8qp_58", bo = "_spButton_onlyIcon_1g8qp_61", yo = "_spButton__iconContainer_1g8qp_69", wo = "_spButton_link_1g8qp_72", ko = "_spButton__text_1g8qp_76", Co = "_spButton_primary_1g8qp_88", To = "_spButton_blue_1g8qp_88", Eo = "_spButton_white_1g8qp_98", So = "_spButton_secondary_1g8qp_108", jo = "_spButton_fullWidth_1g8qp_128", Io = "_spButton_disabled_1g8qp_131", No = "_spButton__spinner_1g8qp_139", be = {
|
|
133
133
|
spButton: go,
|
|
134
134
|
spButton_noPadding: ho,
|
|
135
135
|
spButton_onlyIcon: bo,
|
|
@@ -197,12 +197,12 @@ const no = "_spAccordion_1bkaj_43", oo = "_spAccordion_noBorder_1bkaj_56", ao =
|
|
|
197
197
|
children: Y()
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
|
-
}, Do = "
|
|
200
|
+
}, Do = "_spApplyButtons_e8c1h_43", Ro = "_spApplyButtons__cancel_e8c1h_65", Ao = "_spApplyButtons__submit_e8c1h_68", ze = {
|
|
201
201
|
spApplyButtons: Do,
|
|
202
|
-
"spApplyButtons_align-right": "_spApplyButtons_align-
|
|
203
|
-
"spApplyButtons_align-left": "_spApplyButtons_align-
|
|
204
|
-
"spApplyButtons_align-center": "_spApplyButtons_align-
|
|
205
|
-
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-
|
|
202
|
+
"spApplyButtons_align-right": "_spApplyButtons_align-right_e8c1h_48",
|
|
203
|
+
"spApplyButtons_align-left": "_spApplyButtons_align-left_e8c1h_51",
|
|
204
|
+
"spApplyButtons_align-center": "_spApplyButtons_align-center_e8c1h_54",
|
|
205
|
+
"spApplyButtons_mobile-column": "_spApplyButtons_mobile-column_e8c1h_57",
|
|
206
206
|
spApplyButtons__cancel: Ro,
|
|
207
207
|
spApplyButtons__submit: Ao
|
|
208
208
|
}, Oo = (e) => {
|
|
@@ -218,13 +218,13 @@ const no = "_spAccordion_1bkaj_43", oo = "_spAccordion_noBorder_1bkaj_56", ao =
|
|
|
218
218
|
onClose: d,
|
|
219
219
|
submit: u
|
|
220
220
|
} = e, c = v({
|
|
221
|
-
[
|
|
222
|
-
[
|
|
223
|
-
[
|
|
221
|
+
[ze.spApplyButtons]: !0,
|
|
222
|
+
[ze[`spApplyButtons_mobile-${t}`]]: t,
|
|
223
|
+
[ze[`spApplyButtons_align-${n}`]]: n
|
|
224
224
|
}), y = v({
|
|
225
|
-
[
|
|
225
|
+
[ze.spApplyButtons__submit]: !0
|
|
226
226
|
}), w = v({
|
|
227
|
-
[
|
|
227
|
+
[ze.spApplyButtons__cancel]: !0
|
|
228
228
|
});
|
|
229
229
|
return /* @__PURE__ */ H("div", { className: c, children: [
|
|
230
230
|
o && /* @__PURE__ */ l(
|
|
@@ -252,7 +252,7 @@ const no = "_spAccordion_1bkaj_43", oo = "_spAccordion_noBorder_1bkaj_56", ao =
|
|
|
252
252
|
}
|
|
253
253
|
)
|
|
254
254
|
] });
|
|
255
|
-
}, Lo = "
|
|
255
|
+
}, Lo = "_spBaseTooltip_1ahs2_43", Po = "_spBaseTooltip_noPadding_1ahs2_56", Fo = "_spBaseTooltip__content_1ahs2_59", ct = {
|
|
256
256
|
spBaseTooltip: Lo,
|
|
257
257
|
spBaseTooltip_noPadding: Po,
|
|
258
258
|
spBaseTooltip__content: Fo
|
|
@@ -286,8 +286,8 @@ const mn = ({ children: e, node: t, classNameRoot: n }) => {
|
|
|
286
286
|
t || document.body.removeChild(i);
|
|
287
287
|
};
|
|
288
288
|
}, [t, n]), o ? Wn.createPortal(e, o) : null;
|
|
289
|
-
},
|
|
290
|
-
spTooltip:
|
|
289
|
+
}, zo = "_spTooltip_umff1_43", Bo = {
|
|
290
|
+
spTooltip: zo
|
|
291
291
|
};
|
|
292
292
|
var ae = /* @__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))(ae || {});
|
|
293
293
|
function fn(e, t, n = !0) {
|
|
@@ -330,7 +330,7 @@ const jt = (e) => {
|
|
|
330
330
|
visibility: "hidden",
|
|
331
331
|
opacity: 0,
|
|
332
332
|
left: "-9999px"
|
|
333
|
-
}), [
|
|
333
|
+
}), [z, G] = ce(!1), X = le(() => {
|
|
334
334
|
if (!I.current || !O.current) return;
|
|
335
335
|
const g = I.current.getBoundingClientRect(), L = O.current.getBoundingClientRect();
|
|
336
336
|
let q = 0, K = 0;
|
|
@@ -378,10 +378,10 @@ const jt = (e) => {
|
|
|
378
378
|
...ee,
|
|
379
379
|
top: `${q}px`,
|
|
380
380
|
left: `${K}px`,
|
|
381
|
-
visibility: T ||
|
|
382
|
-
opacity: T ||
|
|
381
|
+
visibility: T || z ? "visible" : "hidden",
|
|
382
|
+
opacity: T || z ? 1 : 0
|
|
383
383
|
}));
|
|
384
|
-
}, [m, T,
|
|
384
|
+
}, [m, T, z]);
|
|
385
385
|
re(() => (R(!0), () => R(!1)), []), re(() => {
|
|
386
386
|
Y && X();
|
|
387
387
|
}, [Y, X]), re(() => {
|
|
@@ -392,7 +392,7 @@ const jt = (e) => {
|
|
|
392
392
|
};
|
|
393
393
|
}, [Y, X]);
|
|
394
394
|
const se = v({
|
|
395
|
-
[
|
|
395
|
+
[Bo.spTooltip]: !0,
|
|
396
396
|
...c && { [c]: !0 }
|
|
397
397
|
}), de = v({
|
|
398
398
|
...y && { [y]: !0 }
|
|
@@ -422,13 +422,13 @@ const jt = (e) => {
|
|
|
422
422
|
]
|
|
423
423
|
}
|
|
424
424
|
);
|
|
425
|
-
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(fe, { name: ie.Info }) }),
|
|
426
|
-
spCheckbox:
|
|
425
|
+
}, Qe = (e) => /* @__PURE__ */ l(jt, { ...e, hover: !0, trigger: /* @__PURE__ */ l(fe, { name: ie.Info }) }), Mo = "_spCheckbox_ux2io_43", Wo = "_spCheckbox__control_ux2io_49", qo = "_spCheckbox__label_ux2io_52", $o = "_spCheckbox__box_ux2io_63", Ho = "_spCheckbox__box_checked_ux2io_89", Yo = "_spCheckbox__box_disabled_ux2io_99", Vo = "_spCheckbox__box_error_ux2io_108", Uo = "_spCheckbox__tooltip_ux2io_111", Go = "_spCheckbox__required_ux2io_116", Ko = "_spCheckbox__error_ux2io_122", ye = {
|
|
426
|
+
spCheckbox: Mo,
|
|
427
427
|
spCheckbox__control: Wo,
|
|
428
428
|
spCheckbox__label: qo,
|
|
429
429
|
spCheckbox__box: $o,
|
|
430
|
-
"spCheckbox__box--size-lg": "_spCheckbox__box--size-
|
|
431
|
-
"spCheckbox__box--size-md": "_spCheckbox__box--size-
|
|
430
|
+
"spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_ux2io_68",
|
|
431
|
+
"spCheckbox__box--size-md": "_spCheckbox__box--size-md_ux2io_73",
|
|
432
432
|
spCheckbox__box_checked: Ho,
|
|
433
433
|
spCheckbox__box_disabled: Yo,
|
|
434
434
|
spCheckbox__box_error: Vo,
|
|
@@ -480,8 +480,8 @@ const jt = (e) => {
|
|
|
480
480
|
type: "checkbox",
|
|
481
481
|
className: O,
|
|
482
482
|
checked: n,
|
|
483
|
-
onChange: (
|
|
484
|
-
!o && a && a(
|
|
483
|
+
onChange: (z) => {
|
|
484
|
+
!o && a && a(z, { name: i, checked: !n, value: m });
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
),
|
|
@@ -503,7 +503,7 @@ const jt = (e) => {
|
|
|
503
503
|
o(null);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
|
-
}, Xo = "
|
|
506
|
+
}, Xo = "_layer_14g8d_43", Zo = "_layer_hidden_14g8d_65", At = {
|
|
507
507
|
layer: Xo,
|
|
508
508
|
layer_hidden: Zo
|
|
509
509
|
}, Qo = (e) => {
|
|
@@ -518,15 +518,15 @@ const jt = (e) => {
|
|
|
518
518
|
...a && { [a]: !0 }
|
|
519
519
|
});
|
|
520
520
|
return /* @__PURE__ */ l(mn, { node: i, children: /* @__PURE__ */ l("div", { style: { zIndex: n }, className: r, children: t }) });
|
|
521
|
-
}, Jo = "
|
|
521
|
+
}, Jo = "_spText_13ohe_43", ea = "_spText_ellipsis_13ohe_54", ta = "_spText_cursorPointer_13ohe_111", Ye = {
|
|
522
522
|
spText: Jo,
|
|
523
523
|
spText_ellipsis: ea,
|
|
524
|
-
"spText_type-h1": "_spText_type-
|
|
525
|
-
"spText_type-h3": "_spText_type-
|
|
526
|
-
"spText_type-p1": "_spText_type-
|
|
527
|
-
"spText_type-p2": "_spText_type-
|
|
528
|
-
"spText_type-description": "_spText_type-
|
|
529
|
-
"spText_type-link": "_spText_type-
|
|
524
|
+
"spText_type-h1": "_spText_type-h1_13ohe_60",
|
|
525
|
+
"spText_type-h3": "_spText_type-h3_13ohe_70",
|
|
526
|
+
"spText_type-p1": "_spText_type-p1_13ohe_81",
|
|
527
|
+
"spText_type-p2": "_spText_type-p2_13ohe_86",
|
|
528
|
+
"spText_type-description": "_spText_type-description_13ohe_90",
|
|
529
|
+
"spText_type-link": "_spText_type-link_13ohe_98",
|
|
530
530
|
spText_cursorPointer: ta
|
|
531
531
|
}, Te = We.forwardRef((e, t) => {
|
|
532
532
|
const {
|
|
@@ -560,10 +560,10 @@ const jt = (e) => {
|
|
|
560
560
|
);
|
|
561
561
|
});
|
|
562
562
|
Te.displayName = "Text";
|
|
563
|
-
const na = "
|
|
563
|
+
const na = "_modalWrapper_r712c_43", oa = "_modalWrapper__modal_r712c_54", aa = "_modalWrapper__content_r712c_69", ia = "_modalWrapper__header_r712c_72", ra = "_modalWrapper__subHeader_r712c_82", sa = "_modalWrapper__footer_r712c_90", pa = "_modalWrapper__closeButton_r712c_104", ca = "_modalWrapper__closeButtonIconContainer_r712c_118", ke = {
|
|
564
564
|
modalWrapper: na,
|
|
565
|
-
"modalWrapper_align-top": "_modalWrapper_align-
|
|
566
|
-
"modalWrapper_align-center": "_modalWrapper_align-
|
|
565
|
+
"modalWrapper_align-top": "_modalWrapper_align-top_r712c_48",
|
|
566
|
+
"modalWrapper_align-center": "_modalWrapper_align-center_r712c_51",
|
|
567
567
|
modalWrapper__modal: oa,
|
|
568
568
|
modalWrapper__content: aa,
|
|
569
569
|
modalWrapper__header: ia,
|
|
@@ -665,7 +665,7 @@ const na = "_modalWrapper_12csn_43", oa = "_modalWrapper__modal_12csn_54", aa =
|
|
|
665
665
|
)
|
|
666
666
|
}
|
|
667
667
|
);
|
|
668
|
-
}, da = "
|
|
668
|
+
}, da = "_spContextMenu_1wocv_43", ua = "_spContextMenu__item_1wocv_54", ma = "_spContextMenu__item_deleteItem_1wocv_73", lt = {
|
|
669
669
|
spContextMenu: da,
|
|
670
670
|
spContextMenu__item: ua,
|
|
671
671
|
spContextMenu__item_deleteItem: ma
|
|
@@ -822,7 +822,7 @@ function va() {
|
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
var p = m, S = d,
|
|
825
|
+
var p = m, S = d, z = s, G = r, X = t, se = u, de = o, ve = T, ne = w, g = n, L = i, q = a, K = c, ee = !1;
|
|
826
826
|
function Q(_) {
|
|
827
827
|
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;
|
|
828
828
|
}
|
|
@@ -841,7 +841,7 @@ function va() {
|
|
|
841
841
|
function j(_) {
|
|
842
842
|
return b(_) === u;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function M(_) {
|
|
845
845
|
return b(_) === o;
|
|
846
846
|
}
|
|
847
847
|
function N(_) {
|
|
@@ -856,13 +856,13 @@ function va() {
|
|
|
856
856
|
function $(_) {
|
|
857
857
|
return b(_) === i;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function B(_) {
|
|
860
860
|
return b(_) === a;
|
|
861
861
|
}
|
|
862
862
|
function te(_) {
|
|
863
863
|
return b(_) === c;
|
|
864
864
|
}
|
|
865
|
-
U.AsyncMode = p, U.ConcurrentMode = S, U.ContextConsumer =
|
|
865
|
+
U.AsyncMode = p, U.ConcurrentMode = S, U.ContextConsumer = z, U.ContextProvider = G, U.Element = X, U.ForwardRef = se, U.Fragment = de, U.Lazy = ve, 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 = M, U.isLazy = N, U.isMemo = F, U.isPortal = W, U.isProfiler = $, U.isStrictMode = B, U.isSuspense = te, U.isValidElementType = R, U.typeOf = b;
|
|
866
866
|
}()), U;
|
|
867
867
|
}
|
|
868
868
|
var Pt;
|
|
@@ -920,21 +920,21 @@ function _a() {
|
|
|
920
920
|
return m;
|
|
921
921
|
}, dt;
|
|
922
922
|
}
|
|
923
|
-
var ut,
|
|
923
|
+
var ut, zt;
|
|
924
924
|
function It() {
|
|
925
|
-
if (
|
|
926
|
-
|
|
925
|
+
if (zt) return ut;
|
|
926
|
+
zt = 1;
|
|
927
927
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
928
928
|
return ut = e, ut;
|
|
929
929
|
}
|
|
930
|
-
var mt,
|
|
930
|
+
var mt, Bt;
|
|
931
931
|
function xn() {
|
|
932
|
-
return
|
|
932
|
+
return Bt || (Bt = 1, mt = Function.call.bind(Object.prototype.hasOwnProperty)), mt;
|
|
933
933
|
}
|
|
934
|
-
var ft,
|
|
934
|
+
var ft, Mt;
|
|
935
935
|
function xa() {
|
|
936
|
-
if (
|
|
937
|
-
|
|
936
|
+
if (Mt) return ft;
|
|
937
|
+
Mt = 1;
|
|
938
938
|
var e = function() {
|
|
939
939
|
};
|
|
940
940
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1020,7 +1020,7 @@ function ga() {
|
|
|
1020
1020
|
instanceOf: S,
|
|
1021
1021
|
node: se(),
|
|
1022
1022
|
objectOf: G,
|
|
1023
|
-
oneOf:
|
|
1023
|
+
oneOf: z,
|
|
1024
1024
|
oneOfType: X,
|
|
1025
1025
|
shape: ve,
|
|
1026
1026
|
exact: ne
|
|
@@ -1035,8 +1035,8 @@ function ga() {
|
|
|
1035
1035
|
function I(f) {
|
|
1036
1036
|
if (process.env.NODE_ENV !== "production")
|
|
1037
1037
|
var h = {}, A = 0;
|
|
1038
|
-
function P(
|
|
1039
|
-
if (W = W || y,
|
|
1038
|
+
function P(M, N, F, W, $, B, te) {
|
|
1039
|
+
if (W = W || y, B = B || F, te !== n) {
|
|
1040
1040
|
if (m) {
|
|
1041
1041
|
var _ = new Error(
|
|
1042
1042
|
"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"
|
|
@@ -1046,22 +1046,22 @@ function ga() {
|
|
|
1046
1046
|
var ue = W + ":" + F;
|
|
1047
1047
|
!h[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1048
1048
|
A < 3 && (i(
|
|
1049
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1049
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + W + "`. 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."
|
|
1050
1050
|
), h[ue] = !0, A++);
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
return N[F] == null ?
|
|
1053
|
+
return N[F] == null ? M ? N[F] === null ? new k("The " + $ + " `" + B + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new k("The " + $ + " `" + B + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : f(N, F, W, $, B);
|
|
1054
1054
|
}
|
|
1055
1055
|
var j = P.bind(null, !1);
|
|
1056
1056
|
return j.isRequired = P.bind(null, !0), j;
|
|
1057
1057
|
}
|
|
1058
1058
|
function O(f) {
|
|
1059
|
-
function h(A, P, j,
|
|
1059
|
+
function h(A, P, j, M, N, F) {
|
|
1060
1060
|
var W = A[P], $ = q(W);
|
|
1061
1061
|
if ($ !== f) {
|
|
1062
|
-
var
|
|
1062
|
+
var B = K(W);
|
|
1063
1063
|
return new k(
|
|
1064
|
-
"Invalid " +
|
|
1064
|
+
"Invalid " + M + " `" + N + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected ") + ("`" + f + "`."),
|
|
1065
1065
|
{ expectedType: f }
|
|
1066
1066
|
);
|
|
1067
1067
|
}
|
|
@@ -1073,61 +1073,61 @@ function ga() {
|
|
|
1073
1073
|
return I(r);
|
|
1074
1074
|
}
|
|
1075
1075
|
function R(f) {
|
|
1076
|
-
function h(A, P, j,
|
|
1076
|
+
function h(A, P, j, M, N) {
|
|
1077
1077
|
if (typeof f != "function")
|
|
1078
1078
|
return new k("Property `" + N + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1079
1079
|
var F = A[P];
|
|
1080
1080
|
if (!Array.isArray(F)) {
|
|
1081
1081
|
var W = q(F);
|
|
1082
|
-
return new k("Invalid " +
|
|
1082
|
+
return new k("Invalid " + M + " `" + N + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
|
|
1083
1083
|
}
|
|
1084
1084
|
for (var $ = 0; $ < F.length; $++) {
|
|
1085
|
-
var
|
|
1086
|
-
if (
|
|
1087
|
-
return
|
|
1085
|
+
var B = f(F, $, j, M, N + "[" + $ + "]", n);
|
|
1086
|
+
if (B instanceof Error)
|
|
1087
|
+
return B;
|
|
1088
1088
|
}
|
|
1089
1089
|
return null;
|
|
1090
1090
|
}
|
|
1091
1091
|
return I(h);
|
|
1092
1092
|
}
|
|
1093
1093
|
function b() {
|
|
1094
|
-
function f(h, A, P, j,
|
|
1094
|
+
function f(h, A, P, j, M) {
|
|
1095
1095
|
var N = h[A];
|
|
1096
1096
|
if (!s(N)) {
|
|
1097
1097
|
var F = q(N);
|
|
1098
|
-
return new k("Invalid " + j + " `" +
|
|
1098
|
+
return new k("Invalid " + j + " `" + M + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement."));
|
|
1099
1099
|
}
|
|
1100
1100
|
return null;
|
|
1101
1101
|
}
|
|
1102
1102
|
return I(f);
|
|
1103
1103
|
}
|
|
1104
1104
|
function p() {
|
|
1105
|
-
function f(h, A, P, j,
|
|
1105
|
+
function f(h, A, P, j, M) {
|
|
1106
1106
|
var N = h[A];
|
|
1107
1107
|
if (!e.isValidElementType(N)) {
|
|
1108
1108
|
var F = q(N);
|
|
1109
|
-
return new k("Invalid " + j + " `" +
|
|
1109
|
+
return new k("Invalid " + j + " `" + M + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected a single ReactElement type."));
|
|
1110
1110
|
}
|
|
1111
1111
|
return null;
|
|
1112
1112
|
}
|
|
1113
1113
|
return I(f);
|
|
1114
1114
|
}
|
|
1115
1115
|
function S(f) {
|
|
1116
|
-
function h(A, P, j,
|
|
1116
|
+
function h(A, P, j, M, N) {
|
|
1117
1117
|
if (!(A[P] instanceof f)) {
|
|
1118
1118
|
var F = f.name || y, W = Q(A[P]);
|
|
1119
|
-
return new k("Invalid " +
|
|
1119
|
+
return new k("Invalid " + M + " `" + N + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + F + "`."));
|
|
1120
1120
|
}
|
|
1121
1121
|
return null;
|
|
1122
1122
|
}
|
|
1123
1123
|
return I(h);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function z(f) {
|
|
1126
1126
|
if (!Array.isArray(f))
|
|
1127
1127
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1128
1128
|
"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])."
|
|
1129
1129
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1130
|
-
function h(A, P, j,
|
|
1130
|
+
function h(A, P, j, M, N) {
|
|
1131
1131
|
for (var F = A[P], W = 0; W < f.length; W++)
|
|
1132
1132
|
if (T(F, f[W]))
|
|
1133
1133
|
return null;
|
|
@@ -1135,22 +1135,22 @@ function ga() {
|
|
|
1135
1135
|
var ue = K(_);
|
|
1136
1136
|
return ue === "symbol" ? String(_) : _;
|
|
1137
1137
|
});
|
|
1138
|
-
return new k("Invalid " +
|
|
1138
|
+
return new k("Invalid " + M + " `" + N + "` of value `" + String(F) + "` " + ("supplied to `" + j + "`, expected one of " + $ + "."));
|
|
1139
1139
|
}
|
|
1140
1140
|
return I(h);
|
|
1141
1141
|
}
|
|
1142
1142
|
function G(f) {
|
|
1143
|
-
function h(A, P, j,
|
|
1143
|
+
function h(A, P, j, M, N) {
|
|
1144
1144
|
if (typeof f != "function")
|
|
1145
1145
|
return new k("Property `" + N + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1146
1146
|
var F = A[P], W = q(F);
|
|
1147
1147
|
if (W !== "object")
|
|
1148
|
-
return new k("Invalid " +
|
|
1148
|
+
return new k("Invalid " + M + " `" + N + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
|
|
1149
1149
|
for (var $ in F)
|
|
1150
1150
|
if (o(F, $)) {
|
|
1151
|
-
var
|
|
1152
|
-
if (
|
|
1153
|
-
return
|
|
1151
|
+
var B = f(F, $, j, M, N + "." + $, n);
|
|
1152
|
+
if (B instanceof Error)
|
|
1153
|
+
return B;
|
|
1154
1154
|
}
|
|
1155
1155
|
return null;
|
|
1156
1156
|
}
|
|
@@ -1166,9 +1166,9 @@ function ga() {
|
|
|
1166
1166
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(A) + " at index " + h + "."
|
|
1167
1167
|
), r;
|
|
1168
1168
|
}
|
|
1169
|
-
function P(j,
|
|
1170
|
-
for (var $ = [],
|
|
1171
|
-
var te = f[
|
|
1169
|
+
function P(j, M, N, F, W) {
|
|
1170
|
+
for (var $ = [], B = 0; B < f.length; B++) {
|
|
1171
|
+
var te = f[B], _ = te(j, M, N, F, W, n);
|
|
1172
1172
|
if (_ == null)
|
|
1173
1173
|
return null;
|
|
1174
1174
|
_.data && o(_.data, "expectedType") && $.push(_.data.expectedType);
|
|
@@ -1179,8 +1179,8 @@ function ga() {
|
|
|
1179
1179
|
return I(P);
|
|
1180
1180
|
}
|
|
1181
1181
|
function se() {
|
|
1182
|
-
function f(h, A, P, j,
|
|
1183
|
-
return g(h[A]) ? null : new k("Invalid " + j + " `" +
|
|
1182
|
+
function f(h, A, P, j, M) {
|
|
1183
|
+
return g(h[A]) ? null : new k("Invalid " + j + " `" + M + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
|
|
1184
1184
|
}
|
|
1185
1185
|
return I(f);
|
|
1186
1186
|
}
|
|
@@ -1190,15 +1190,15 @@ function ga() {
|
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
1192
1192
|
function ve(f) {
|
|
1193
|
-
function h(A, P, j,
|
|
1193
|
+
function h(A, P, j, M, N) {
|
|
1194
1194
|
var F = A[P], W = q(F);
|
|
1195
1195
|
if (W !== "object")
|
|
1196
|
-
return new k("Invalid " +
|
|
1196
|
+
return new k("Invalid " + M + " `" + N + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1197
1197
|
for (var $ in f) {
|
|
1198
|
-
var
|
|
1199
|
-
if (typeof
|
|
1200
|
-
return de(j,
|
|
1201
|
-
var te =
|
|
1198
|
+
var B = f[$];
|
|
1199
|
+
if (typeof B != "function")
|
|
1200
|
+
return de(j, M, N, $, K(B));
|
|
1201
|
+
var te = B(F, $, j, M, N + "." + $, n);
|
|
1202
1202
|
if (te)
|
|
1203
1203
|
return te;
|
|
1204
1204
|
}
|
|
@@ -1207,21 +1207,21 @@ function ga() {
|
|
|
1207
1207
|
return I(h);
|
|
1208
1208
|
}
|
|
1209
1209
|
function ne(f) {
|
|
1210
|
-
function h(A, P, j,
|
|
1210
|
+
function h(A, P, j, M, N) {
|
|
1211
1211
|
var F = A[P], W = q(F);
|
|
1212
1212
|
if (W !== "object")
|
|
1213
|
-
return new k("Invalid " +
|
|
1213
|
+
return new k("Invalid " + M + " `" + N + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1214
1214
|
var $ = t({}, A[P], f);
|
|
1215
|
-
for (var
|
|
1216
|
-
var te = f[
|
|
1217
|
-
if (o(f,
|
|
1218
|
-
return de(j,
|
|
1215
|
+
for (var B in $) {
|
|
1216
|
+
var te = f[B];
|
|
1217
|
+
if (o(f, B) && typeof te != "function")
|
|
1218
|
+
return de(j, M, N, B, K(te));
|
|
1219
1219
|
if (!te)
|
|
1220
1220
|
return new k(
|
|
1221
|
-
"Invalid " +
|
|
1221
|
+
"Invalid " + M + " `" + N + "` key `" + B + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(A[P], null, " ") + `
|
|
1222
1222
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
1223
1223
|
);
|
|
1224
|
-
var _ = te(F,
|
|
1224
|
+
var _ = te(F, B, j, M, N + "." + B, n);
|
|
1225
1225
|
if (_)
|
|
1226
1226
|
return _;
|
|
1227
1227
|
}
|
|
@@ -2785,10 +2785,10 @@ function Gt(e) {
|
|
|
2785
2785
|
function bn(e, t, n) {
|
|
2786
2786
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2788
|
+
function Me(e, t) {
|
|
2789
|
+
return Ma(e) || Ba(e, t) || yn(e, t) || za();
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function za() {
|
|
2792
2792
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2793
2793
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2794
2794
|
}
|
|
@@ -2806,7 +2806,7 @@ function Ct(e, t) {
|
|
|
2806
2806
|
o[n] = e[n];
|
|
2807
2807
|
return o;
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function Ba(e, t) {
|
|
2810
2810
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2811
2811
|
if (n != null) {
|
|
2812
2812
|
var o = [], a = !0, i = !1, r, s;
|
|
@@ -2825,7 +2825,7 @@ function Ma(e, t) {
|
|
|
2825
2825
|
return o;
|
|
2826
2826
|
}
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function Ma(e) {
|
|
2829
2829
|
if (Array.isArray(e)) return e;
|
|
2830
2830
|
}
|
|
2831
2831
|
var Wa = typeof xt == "function" ? xt : xt.default, qa = "file-invalid-type", $a = "file-too-large", Ha = "file-too-small", Ya = "too-many-files", Va = function() {
|
|
@@ -2869,7 +2869,7 @@ function Ie(e) {
|
|
|
2869
2869
|
function Ga(e) {
|
|
2870
2870
|
var t = e.files, n = e.accept, o = e.minSize, a = e.maxSize, i = e.multiple, r = e.maxFiles, s = e.validator;
|
|
2871
2871
|
return !i && t.length > 1 || i && r >= 1 && t.length > r ? !1 : t.every(function(m) {
|
|
2872
|
-
var d = wn(m, n), u =
|
|
2872
|
+
var d = wn(m, n), u = Me(d, 1), c = u[0], y = kn(m, o, a), w = Me(y, 1), T = w[0], k = s ? s(m) : null;
|
|
2873
2873
|
return c && T && !k;
|
|
2874
2874
|
});
|
|
2875
2875
|
}
|
|
@@ -2911,10 +2911,10 @@ function Qa() {
|
|
|
2911
2911
|
function Ja(e) {
|
|
2912
2912
|
if (Ie(e)) {
|
|
2913
2913
|
var t = Object.entries(e).filter(function(n) {
|
|
2914
|
-
var o =
|
|
2914
|
+
var o = Me(n, 2), a = o[0], i = o[1], r = !0;
|
|
2915
2915
|
return Cn(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(Tn)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2916
2916
|
}).reduce(function(n, o) {
|
|
2917
|
-
var a =
|
|
2917
|
+
var a = Me(o, 2), i = a[0], r = a[1];
|
|
2918
2918
|
return Gt(Gt({}, n), {}, bn({}, i, r));
|
|
2919
2919
|
}, {});
|
|
2920
2920
|
return [{
|
|
@@ -2928,7 +2928,7 @@ function Ja(e) {
|
|
|
2928
2928
|
function ei(e) {
|
|
2929
2929
|
if (Ie(e))
|
|
2930
2930
|
return Object.entries(e).reduce(function(t, n) {
|
|
2931
|
-
var o =
|
|
2931
|
+
var o = Me(n, 2), a = o[0], i = o[1];
|
|
2932
2932
|
return [].concat(Vt(t), [a], Vt(i));
|
|
2933
2933
|
}, []).filter(function(t) {
|
|
2934
2934
|
return Cn(t) || Tn(t);
|
|
@@ -3046,11 +3046,11 @@ function fi(e, t) {
|
|
|
3046
3046
|
}
|
|
3047
3047
|
var Je = /* @__PURE__ */ Fn(function(e, t) {
|
|
3048
3048
|
var n = e.children, o = Ze(e, oi), a = vi(o), i = a.open, r = Ze(a, ai);
|
|
3049
|
-
return
|
|
3049
|
+
return zn(t, function() {
|
|
3050
3050
|
return {
|
|
3051
3051
|
open: i
|
|
3052
3052
|
};
|
|
3053
|
-
}, [i]), /* @__PURE__ */ We.createElement(
|
|
3053
|
+
}, [i]), /* @__PURE__ */ We.createElement(Bn, null, n(Z(Z({}, r), {}, {
|
|
3054
3054
|
open: i
|
|
3055
3055
|
})));
|
|
3056
3056
|
});
|
|
@@ -3250,7 +3250,7 @@ var St = {
|
|
|
3250
3250
|
fileRejections: []
|
|
3251
3251
|
};
|
|
3252
3252
|
function vi() {
|
|
3253
|
-
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, T = t.onDropRejected, k = t.onFileDialogCancel, I = t.onFileDialogOpen, O = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, S = t.noDrag,
|
|
3253
|
+
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, T = t.onDropRejected, k = t.onFileDialogCancel, I = t.onFileDialogOpen, O = t.useFsAccessApi, Y = t.autoFocus, R = t.preventDropOnDocument, b = t.noClick, p = t.noKeyboard, S = t.noDrag, z = t.noDragEventsBubbling, G = t.onError, X = t.validator, se = Ae(function() {
|
|
3254
3254
|
return ei(n);
|
|
3255
3255
|
}, [n]), de = Ae(function() {
|
|
3256
3256
|
return Ja(n);
|
|
@@ -3258,7 +3258,7 @@ function vi() {
|
|
|
3258
3258
|
return typeof I == "function" ? I : Jt;
|
|
3259
3259
|
}, [I]), ne = Ae(function() {
|
|
3260
3260
|
return typeof k == "function" ? k : Jt;
|
|
3261
|
-
}, [k]), g = Ce(null), L = Ce(null), q =
|
|
3261
|
+
}, [k]), g = Ce(null), L = Ce(null), q = Mn(_i, 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 && Qa()), P = function() {
|
|
3262
3262
|
!A.current && h && setTimeout(function() {
|
|
3263
3263
|
if (L.current) {
|
|
3264
3264
|
var E = L.current.files;
|
|
@@ -3273,12 +3273,12 @@ function vi() {
|
|
|
3273
3273
|
window.removeEventListener("focus", P, !1);
|
|
3274
3274
|
};
|
|
3275
3275
|
}, [L, h, ne, A]);
|
|
3276
|
-
var j = Ce([]),
|
|
3276
|
+
var j = Ce([]), M = function(E) {
|
|
3277
3277
|
g.current && g.current.contains(E.target) || (E.preventDefault(), j.current = []);
|
|
3278
3278
|
};
|
|
3279
3279
|
re(function() {
|
|
3280
|
-
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop",
|
|
3281
|
-
R && (document.removeEventListener("dragover", Zt), document.removeEventListener("drop",
|
|
3280
|
+
return R && (document.addEventListener("dragover", Zt, !1), document.addEventListener("drop", M, !1)), function() {
|
|
3281
|
+
R && (document.removeEventListener("dragover", Zt), document.removeEventListener("drop", M));
|
|
3282
3282
|
};
|
|
3283
3283
|
}, [g, R]), re(function() {
|
|
3284
3284
|
return !o && Y && g.current && g.current.focus(), function() {
|
|
@@ -3288,7 +3288,7 @@ function vi() {
|
|
|
3288
3288
|
G ? G(x) : console.error(x);
|
|
3289
3289
|
}, [G]), F = le(function(x) {
|
|
3290
3290
|
x.preventDefault(), x.persist(), $e(x), j.current = [].concat(si(j.current), [x.target]), Ue(x) && Promise.resolve(a(x)).then(function(E) {
|
|
3291
|
-
if (!(Xe(x) && !
|
|
3291
|
+
if (!(Xe(x) && !z)) {
|
|
3292
3292
|
var J = E.length, oe = J > 0 && Ga({
|
|
3293
3293
|
files: E,
|
|
3294
3294
|
accept: se,
|
|
@@ -3308,7 +3308,7 @@ function vi() {
|
|
|
3308
3308
|
}).catch(function(E) {
|
|
3309
3309
|
return N(E);
|
|
3310
3310
|
});
|
|
3311
|
-
}, [a, d, N,
|
|
3311
|
+
}, [a, d, N, z, se, r, i, s, m, X]), W = le(function(x) {
|
|
3312
3312
|
x.preventDefault(), x.persist(), $e(x);
|
|
3313
3313
|
var E = Ue(x);
|
|
3314
3314
|
if (E && x.dataTransfer)
|
|
@@ -3317,7 +3317,7 @@ function vi() {
|
|
|
3317
3317
|
} catch {
|
|
3318
3318
|
}
|
|
3319
3319
|
return E && c && c(x), !1;
|
|
3320
|
-
}, [c,
|
|
3320
|
+
}, [c, z]), $ = le(function(x) {
|
|
3321
3321
|
x.preventDefault(), x.persist(), $e(x);
|
|
3322
3322
|
var E = j.current.filter(function(oe) {
|
|
3323
3323
|
return g.current && g.current.contains(oe);
|
|
@@ -3328,7 +3328,7 @@ function vi() {
|
|
|
3328
3328
|
isDragAccept: !1,
|
|
3329
3329
|
isDragReject: !1
|
|
3330
3330
|
}), Ue(x) && u && u(x));
|
|
3331
|
-
}, [g, u,
|
|
3331
|
+
}, [g, u, z]), B = le(function(x, E) {
|
|
3332
3332
|
var J = [], oe = [];
|
|
3333
3333
|
x.forEach(function(me) {
|
|
3334
3334
|
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,13 +3356,13 @@ function vi() {
|
|
|
3356
3356
|
}), y && y(J, oe, E), oe.length > 0 && T && T(oe, E), J.length > 0 && w && w(J, E);
|
|
3357
3357
|
}, [Q, s, se, r, i, m, y, w, T, X]), te = le(function(x) {
|
|
3358
3358
|
x.preventDefault(), x.persist(), $e(x), j.current = [], Ue(x) && Promise.resolve(a(x)).then(function(E) {
|
|
3359
|
-
Xe(x) && !
|
|
3359
|
+
Xe(x) && !z || B(E, x);
|
|
3360
3360
|
}).catch(function(E) {
|
|
3361
3361
|
return N(E);
|
|
3362
3362
|
}), Q({
|
|
3363
3363
|
type: "reset"
|
|
3364
3364
|
});
|
|
3365
|
-
}, [a,
|
|
3365
|
+
}, [a, B, N, z]), _ = le(function() {
|
|
3366
3366
|
if (A.current) {
|
|
3367
3367
|
Q({
|
|
3368
3368
|
type: "openDialog"
|
|
@@ -3374,7 +3374,7 @@ function vi() {
|
|
|
3374
3374
|
window.showOpenFilePicker(x).then(function(E) {
|
|
3375
3375
|
return a(E);
|
|
3376
3376
|
}).then(function(E) {
|
|
3377
|
-
|
|
3377
|
+
B(E, null), Q({
|
|
3378
3378
|
type: "closeDialog"
|
|
3379
3379
|
});
|
|
3380
3380
|
}).catch(function(E) {
|
|
@@ -3387,7 +3387,7 @@ function vi() {
|
|
|
3387
3387
|
L.current && (Q({
|
|
3388
3388
|
type: "openDialog"
|
|
3389
3389
|
}), ve(), L.current.value = null, L.current.click());
|
|
3390
|
-
}, [Q, ve, ne, O,
|
|
3390
|
+
}, [Q, ve, ne, O, B, N, de, s]), ue = le(function(x) {
|
|
3391
3391
|
!g.current || !g.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), _());
|
|
3392
3392
|
}, [g, _]), Se = le(function() {
|
|
3393
3393
|
Q({
|
|
@@ -3406,7 +3406,7 @@ function vi() {
|
|
|
3406
3406
|
}, qe = function(E) {
|
|
3407
3407
|
return S ? null : De(E);
|
|
3408
3408
|
}, $e = function(E) {
|
|
3409
|
-
|
|
3409
|
+
z && E.stopPropagation();
|
|
3410
3410
|
}, An = Ae(function() {
|
|
3411
3411
|
return function() {
|
|
3412
3412
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = x.refKey, J = E === void 0 ? "ref" : E, 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, ii);
|
|
@@ -3528,7 +3528,7 @@ const xi = (e) => {
|
|
|
3528
3528
|
/* @__PURE__ */ l("input", { ...y({}), disabled: i, name: r }),
|
|
3529
3529
|
n
|
|
3530
3530
|
] }) });
|
|
3531
|
-
}, gi = "
|
|
3531
|
+
}, gi = "_spDropdown_1f4lf_43", hi = "_spDropdown__labelText_1f4lf_54", bi = "_spDropdown__tooltipContainer_1f4lf_62", yi = "_spDropdown__dropdownList_1f4lf_67", wi = "_spDropdown__dropdownListHeader_1f4lf_73", ki = "_spDropdown__dopdownListItem_1f4lf_80", Ci = "_spDropdown__dopdownListItem_textCenter_1f4lf_91", Ti = "_spDropdown__downloadListItemDescription_1f4lf_94", Ee = {
|
|
3532
3532
|
spDropdown: gi,
|
|
3533
3533
|
spDropdown__labelText: hi,
|
|
3534
3534
|
spDropdown__tooltipContainer: bi,
|
|
@@ -3591,7 +3591,7 @@ const xi = (e) => {
|
|
|
3591
3591
|
] })
|
|
3592
3592
|
}
|
|
3593
3593
|
);
|
|
3594
|
-
}, Ei = "
|
|
3594
|
+
}, Ei = "_ellipsisTextWithTooltip_1nhiw_43", Si = "_ellipsisTextWithTooltip__tooltip_1nhiw_46", en = {
|
|
3595
3595
|
ellipsisTextWithTooltip: Ei,
|
|
3596
3596
|
ellipsisTextWithTooltip__tooltip: Si
|
|
3597
3597
|
}, bs = (e) => {
|
|
@@ -3624,12 +3624,12 @@ const xi = (e) => {
|
|
|
3624
3624
|
trigger: /* @__PURE__ */ l(Te, { ...r, classNameRoot: u, isEllipsis: !0, ref: s, children: t })
|
|
3625
3625
|
}
|
|
3626
3626
|
);
|
|
3627
|
-
}, ji = "
|
|
3627
|
+
}, ji = "_spForm_zefbj_43", Ii = "_spForm_fullWidth_zefbj_46", Ni = "_spForm_withSeparator_zefbj_49", Be = {
|
|
3628
3628
|
spForm: ji,
|
|
3629
3629
|
spForm_fullWidth: Ii,
|
|
3630
3630
|
spForm_withSeparator: Ni,
|
|
3631
|
-
"spForm_addMargin--size-lg": "_spForm_addMargin--size-
|
|
3632
|
-
"spForm_addMargin--size-md": "_spForm_addMargin--size-
|
|
3631
|
+
"spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
|
|
3632
|
+
"spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
|
|
3633
3633
|
}, ys = (e) => {
|
|
3634
3634
|
const {
|
|
3635
3635
|
size: t = "lg",
|
|
@@ -3641,17 +3641,17 @@ const xi = (e) => {
|
|
|
3641
3641
|
classNameRoot: s,
|
|
3642
3642
|
...m
|
|
3643
3643
|
} = e, d = v({
|
|
3644
|
-
[
|
|
3645
|
-
[
|
|
3646
|
-
[
|
|
3647
|
-
[
|
|
3648
|
-
[
|
|
3644
|
+
[Be.spForm]: !0,
|
|
3645
|
+
[Be.spForm_fullWidth]: r,
|
|
3646
|
+
[Be.spForm_addMargin]: a,
|
|
3647
|
+
[Be[`spForm_addMargin--size-${t}`]]: t,
|
|
3648
|
+
[Be.spForm_withSeparator]: i,
|
|
3649
3649
|
...s && { [s]: !0 }
|
|
3650
3650
|
});
|
|
3651
3651
|
return /* @__PURE__ */ l("form", { ...m, onSubmit: (c) => {
|
|
3652
3652
|
c.preventDefault(), o && o();
|
|
3653
3653
|
}, className: d, children: n });
|
|
3654
|
-
}, Di = "
|
|
3654
|
+
}, Di = "_spLabel_g0hfy_43", Ri = "_spLabel__text_g0hfy_52", Ai = "_spLabel__tooltip_g0hfy_62", Oi = "_spLabel__required_g0hfy_67", Ge = {
|
|
3655
3655
|
spLabel: Di,
|
|
3656
3656
|
spLabel__text: Ri,
|
|
3657
3657
|
spLabel__tooltip: Ai,
|
|
@@ -3678,13 +3678,13 @@ const xi = (e) => {
|
|
|
3678
3678
|
t && /* @__PURE__ */ l("div", { className: m, children: "*" }),
|
|
3679
3679
|
o && /* @__PURE__ */ l("div", { className: d, children: /* @__PURE__ */ l(Qe, { position: a, text: o }) })
|
|
3680
3680
|
] });
|
|
3681
|
-
}, Li = "
|
|
3681
|
+
}, Li = "_spInput_lvrd5_43", Pi = "_spInput_error_lvrd5_48", Fi = "_spInput__control_lvrd5_48", zi = "_spInput__container_lvrd5_55", Bi = "_spInput__control_clearable_lvrd5_75", Mi = "_spInput__clear_lvrd5_95", Wi = "_spInput__error_lvrd5_104", je = {
|
|
3682
3682
|
spInput: Li,
|
|
3683
3683
|
spInput_error: Pi,
|
|
3684
3684
|
spInput__control: Fi,
|
|
3685
|
-
spInput__container:
|
|
3686
|
-
spInput__control_clearable:
|
|
3687
|
-
spInput__clear:
|
|
3685
|
+
spInput__container: zi,
|
|
3686
|
+
spInput__control_clearable: Bi,
|
|
3687
|
+
spInput__clear: Mi,
|
|
3688
3688
|
spInput__error: Wi
|
|
3689
3689
|
}, qi = We.forwardRef((e, t) => {
|
|
3690
3690
|
const {
|
|
@@ -3715,7 +3715,7 @@ const xi = (e) => {
|
|
|
3715
3715
|
}), S = v({
|
|
3716
3716
|
[je.spInput__control]: !0,
|
|
3717
3717
|
[je.spInput__control_clearable]: d
|
|
3718
|
-
}),
|
|
3718
|
+
}), z = v({
|
|
3719
3719
|
[je.spInput__clear]: !0
|
|
3720
3720
|
}), G = v({
|
|
3721
3721
|
[je.spInput__error]: !0,
|
|
@@ -3754,13 +3754,13 @@ const xi = (e) => {
|
|
|
3754
3754
|
ref: t
|
|
3755
3755
|
}
|
|
3756
3756
|
),
|
|
3757
|
-
d && n && !i && /* @__PURE__ */ l(fe, { onClick: se, className:
|
|
3757
|
+
d && n && !i && /* @__PURE__ */ l(fe, { onClick: se, className: z, name: ie.Trash })
|
|
3758
3758
|
] }),
|
|
3759
3759
|
r && /* @__PURE__ */ l("div", { className: G, children: r })
|
|
3760
3760
|
] });
|
|
3761
3761
|
});
|
|
3762
3762
|
qi.displayName = "Input";
|
|
3763
|
-
const $i = "
|
|
3763
|
+
const $i = "_spInputFiles_12x0f_43", Hi = "_spInputFiles_error_12x0f_48", Yi = "_spInputFiles__control_12x0f_48", Vi = "_spInputFiles_fileUploaded_12x0f_73", Ui = "_spInputFiles_disabled_12x0f_73", Gi = "_spInputFiles__fileNamesList_12x0f_83", Ki = "_spInputFiles__fileNamesListItem_12x0f_91", Xi = "_spInputFiles__fileNamesListItemDelete_12x0f_110", Zi = "_spInputFiles__tooltipWrapper_12x0f_125", Qi = "_spInputFiles__tooltip_12x0f_125", Ji = "_spInputFiles__delete_12x0f_131", er = "_spInputFiles__error_12x0f_139", xe = {
|
|
3764
3764
|
spInputFiles: $i,
|
|
3765
3765
|
spInputFiles_error: Hi,
|
|
3766
3766
|
spInputFiles__control: Yi,
|
|
@@ -3795,16 +3795,16 @@ const $i = "_spInputFiles_191kv_43", Hi = "_spInputFiles_error_191kv_48", Yi = "
|
|
|
3795
3795
|
[xe.spInputFiles_fileUploaded]: k,
|
|
3796
3796
|
...y && { [y]: !0 }
|
|
3797
3797
|
}), O = (p) => {
|
|
3798
|
-
const S = [...d],
|
|
3799
|
-
S.splice(
|
|
3798
|
+
const S = [...d], z = S.findIndex((G) => G.name === p);
|
|
3799
|
+
S.splice(z, 1), o(S, n);
|
|
3800
3800
|
}, Y = (p) => {
|
|
3801
3801
|
p.stopPropagation(), o([], n);
|
|
3802
3802
|
}, R = () => s ? /* @__PURE__ */ l("ul", { className: xe.spInputFiles__fileNamesList, children: T.map((p, S) => /* @__PURE__ */ H(
|
|
3803
3803
|
"li",
|
|
3804
3804
|
{
|
|
3805
3805
|
className: xe.spInputFiles__fileNamesListItem,
|
|
3806
|
-
onClick: (
|
|
3807
|
-
|
|
3806
|
+
onClick: (z) => {
|
|
3807
|
+
z.stopPropagation(), O(p);
|
|
3808
3808
|
},
|
|
3809
3809
|
children: [
|
|
3810
3810
|
/* @__PURE__ */ l(Te, { isEllipsis: !0, children: p }),
|
|
@@ -4126,15 +4126,15 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4126
4126
|
children: n
|
|
4127
4127
|
}
|
|
4128
4128
|
);
|
|
4129
|
-
}, Rr = 180, Ar = "
|
|
4129
|
+
}, Rr = 180, Ar = "_spSelect_1h8x4_43", Or = "_spSelect_error_1h8x4_48", Lr = "_spSelect__control_1h8x4_48", Pr = "_spSelect__value_empty_1h8x4_52", Fr = "_spSelect__icon_1h8x4_55", zr = "_spSelect__container_1h8x4_58", Br = "_spSelect__control_disabled_1h8x4_93", Mr = "_spSelect__value_1h8x4_52", Wr = "_spSelect__list_1h8x4_126", qr = "_spSelect__list_scrollable_1h8x4_133", $r = "_spSelect__option_1h8x4_136", Hr = "_spSelect__error_1h8x4_154", ge = {
|
|
4130
4130
|
spSelect: Ar,
|
|
4131
4131
|
spSelect_error: Or,
|
|
4132
4132
|
spSelect__control: Lr,
|
|
4133
4133
|
spSelect__value_empty: Pr,
|
|
4134
4134
|
spSelect__icon: Fr,
|
|
4135
|
-
spSelect__container:
|
|
4136
|
-
spSelect__control_disabled:
|
|
4137
|
-
spSelect__value:
|
|
4135
|
+
spSelect__container: zr,
|
|
4136
|
+
spSelect__control_disabled: Br,
|
|
4137
|
+
spSelect__value: Mr,
|
|
4138
4138
|
spSelect__list: Wr,
|
|
4139
4139
|
spSelect__list_scrollable: qr,
|
|
4140
4140
|
spSelect__option: $r,
|
|
@@ -4167,7 +4167,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4167
4167
|
},
|
|
4168
4168
|
R
|
|
4169
4169
|
);
|
|
4170
|
-
const S = t.find((ee) => ee.value === o),
|
|
4170
|
+
const S = t.find((ee) => ee.value === o), z = (ee, Q) => {
|
|
4171
4171
|
i(ee, { value: Q, name: a }), b(!1);
|
|
4172
4172
|
}, G = () => {
|
|
4173
4173
|
c || b(!R);
|
|
@@ -4239,7 +4239,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4239
4239
|
className: v({
|
|
4240
4240
|
[ge.spSelect__option]: !0
|
|
4241
4241
|
}),
|
|
4242
|
-
onClick: (f) =>
|
|
4242
|
+
onClick: (f) => z(f, ee.value),
|
|
4243
4243
|
children: [
|
|
4244
4244
|
ee.label,
|
|
4245
4245
|
Q && /* @__PURE__ */ l(fe, { name: ie.Check, className: ne })
|
|
@@ -4253,7 +4253,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4253
4253
|
] }),
|
|
4254
4254
|
s && /* @__PURE__ */ l("div", { className: q, children: s })
|
|
4255
4255
|
] });
|
|
4256
|
-
}, Yr = "
|
|
4256
|
+
}, Yr = "_spTable_1vuaj_43", Vr = "_spTable__tdContentCopyIcon_1vuaj_62", Ur = "_spTable__tdContent_1vuaj_62", Gr = "_spTable__tdColorContent_1vuaj_72", Kr = "_spTable__tdContentCopyIcon_copied_1vuaj_85", Xr = "_spTable__emptyPage_1vuaj_89", Zr = "_spStringsGroup_1vuaj_105", Qr = "_spStringsGroup__groupItem_1vuaj_119", Jr = "_spStringsGroup__groupItemHeader_1vuaj_134", es = "_spStringsGroup__groupItemContent_1vuaj_138", ts = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", ns = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", he = {
|
|
4257
4257
|
spTable: Yr,
|
|
4258
4258
|
spTable__tdContentCopyIcon: Vr,
|
|
4259
4259
|
spTable__tdContent: Ur,
|
|
@@ -4287,9 +4287,9 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4287
4287
|
}), {
|
|
4288
4288
|
device: { isDesktop: u }
|
|
4289
4289
|
} = ln(jn), [c, y] = ce(null), w = (b) => {
|
|
4290
|
-
const { text: p, rowIndex: S, colIndex:
|
|
4291
|
-
(c == null ? void 0 : c.rowIndex) === S && (c == null ? void 0 : c.colIndex) ===
|
|
4292
|
-
y({ rowIndex: S, colIndex:
|
|
4290
|
+
const { text: p, rowIndex: S, colIndex: z } = b;
|
|
4291
|
+
(c == null ? void 0 : c.rowIndex) === S && (c == null ? void 0 : c.colIndex) === z || navigator.clipboard.writeText(p).then(() => {
|
|
4292
|
+
y({ rowIndex: S, colIndex: z });
|
|
4293
4293
|
}).catch((G) => {
|
|
4294
4294
|
console.error("Ошибка при копировании:", G);
|
|
4295
4295
|
});
|
|
@@ -4301,9 +4301,9 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4301
4301
|
}) => {
|
|
4302
4302
|
const S = b[p.key];
|
|
4303
4303
|
if (!S) return null;
|
|
4304
|
-
const [
|
|
4304
|
+
const [z, G] = S.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
4305
4305
|
return /* @__PURE__ */ H("span", { children: [
|
|
4306
|
-
|
|
4306
|
+
z,
|
|
4307
4307
|
G && /* @__PURE__ */ l("span", { className: m, children: ` ${G}` })
|
|
4308
4308
|
] });
|
|
4309
4309
|
}, O = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ H("table", { className: r, children: [
|
|
@@ -4317,8 +4317,8 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4317
4317
|
p
|
|
4318
4318
|
)) }),
|
|
4319
4319
|
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: i.map((b, p) => /* @__PURE__ */ l("th", { children: b.title }, p)) }) }),
|
|
4320
|
-
/* @__PURE__ */ l("tbody", { children: n.map((b, p) => b ? /* @__PURE__ */ l("tr", { children: i.map((S,
|
|
4321
|
-
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) ===
|
|
4320
|
+
/* @__PURE__ */ l("tbody", { children: n.map((b, p) => b ? /* @__PURE__ */ l("tr", { children: i.map((S, z) => {
|
|
4321
|
+
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) === z;
|
|
4322
4322
|
return /* @__PURE__ */ l(
|
|
4323
4323
|
"td",
|
|
4324
4324
|
{
|
|
@@ -4339,14 +4339,14 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4339
4339
|
w({
|
|
4340
4340
|
text: X,
|
|
4341
4341
|
rowIndex: p,
|
|
4342
|
-
colIndex:
|
|
4342
|
+
colIndex: z
|
|
4343
4343
|
});
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
4346
|
)
|
|
4347
4347
|
] })
|
|
4348
4348
|
},
|
|
4349
|
-
`${p}:${
|
|
4349
|
+
`${p}:${z}`
|
|
4350
4350
|
);
|
|
4351
4351
|
}) }, p) : null) })
|
|
4352
4352
|
] }) : k(), Y = () => n && Array.isArray(n) && n.length > 0 ? /* @__PURE__ */ l(
|
|
@@ -4355,10 +4355,10 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4355
4355
|
className: v({
|
|
4356
4356
|
[he.spStringsGroup]: !0
|
|
4357
4357
|
}),
|
|
4358
|
-
children: n.map((b, p) => b ? /* @__PURE__ */ l("div", { children: i.map((S,
|
|
4358
|
+
children: n.map((b, p) => b ? /* @__PURE__ */ l("div", { children: i.map((S, z) => {
|
|
4359
4359
|
if (sn(b[S.key]))
|
|
4360
4360
|
return null;
|
|
4361
|
-
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) ===
|
|
4361
|
+
const G = (c == null ? void 0 : c.rowIndex) === p && (c == null ? void 0 : c.colIndex) === z;
|
|
4362
4362
|
return /* @__PURE__ */ H(
|
|
4363
4363
|
"div",
|
|
4364
4364
|
{
|
|
@@ -4398,7 +4398,7 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4398
4398
|
w({
|
|
4399
4399
|
text: X,
|
|
4400
4400
|
rowIndex: p,
|
|
4401
|
-
colIndex:
|
|
4401
|
+
colIndex: z
|
|
4402
4402
|
});
|
|
4403
4403
|
}
|
|
4404
4404
|
}
|
|
@@ -4408,13 +4408,13 @@ const yr = (e) => `not ${e}`, wr = (e, t) => {
|
|
|
4408
4408
|
)
|
|
4409
4409
|
]
|
|
4410
4410
|
},
|
|
4411
|
-
|
|
4411
|
+
z
|
|
4412
4412
|
);
|
|
4413
4413
|
}) }, p) : null)
|
|
4414
4414
|
}
|
|
4415
4415
|
) : k();
|
|
4416
4416
|
return o ? u ? O() : Y() : O();
|
|
4417
|
-
}, os = "
|
|
4417
|
+
}, os = "_spTabs_1guzj_43", as = "_spTabs_separated_1guzj_50", is = "_spTabs__tabElement_1guzj_54", rs = "_spTabs__tabElement_active_1guzj_71", ss = "_spTabs__triggerTooltip_1guzj_78", ps = "_spTabs__tabElement_separated_1guzj_81", Oe = {
|
|
4418
4418
|
spTabs: os,
|
|
4419
4419
|
spTabs_separated: as,
|
|
4420
4420
|
spTabs__tabElement: is,
|