@bodynarf/react.components 1.6.3 → 1.7.1
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/bbr-components.js +1040 -0
- package/dist/bbr-components.umd.cjs +27 -0
- package/dist/components/accordion/component/index.d.ts +4 -0
- package/{components/anchor/index.js → dist/components/accordion/index.d.ts} +2 -2
- package/dist/components/accordion/types.d.ts +16 -0
- package/dist/components/anchor/component/index.d.ts +3 -0
- package/{components → dist/components}/anchor/components/anchorWithIcon/index.d.ts +3 -5
- package/{components → dist/components}/anchor/components/simpleAnchor/index.d.ts +3 -5
- package/{components/dropdown/index.js → dist/components/anchor/index.d.ts} +2 -2
- package/{components → dist/components}/anchor/types.d.ts +38 -39
- package/{components → dist/components}/button/component/index.d.ts +6 -9
- package/{components → dist/components}/button/components/buttonWithIcon/index.d.ts +3 -5
- package/{components → dist/components}/button/components/simpleButton/index.d.ts +3 -5
- package/{components/button/index.js → dist/components/button/index.d.ts} +2 -2
- package/{components → dist/components}/button/types.d.ts +36 -37
- package/dist/components/dropdown/component/index.d.ts +4 -0
- package/{components → dist/components}/dropdown/components/compact/index.d.ts +3 -5
- package/{components → dist/components}/dropdown/components/item/index.d.ts +13 -15
- package/{components → dist/components}/dropdown/components/label/index.d.ts +17 -18
- package/{components → dist/components}/dropdown/components/withLabel/index.d.ts +3 -5
- package/{components/icon/index.js → dist/components/dropdown/index.d.ts} +2 -2
- package/{components → dist/components}/dropdown/types.d.ts +45 -46
- package/{components → dist/components}/icon/component/index.d.ts +5 -8
- package/dist/components/icon/index.d.ts +2 -0
- package/{components → dist/components}/icon/types.d.ts +15 -16
- package/{components/index.js → dist/components/index.d.ts} +11 -10
- package/{components → dist/components}/paginator/component/index.d.ts +6 -8
- package/{components/paginator/index.js → dist/components/paginator/index.d.ts} +3 -3
- package/{components → dist/components}/paginator/types.d.ts +27 -28
- package/{components → dist/components}/paginator/utils.d.ts +9 -10
- package/{components → dist/components}/primitives/checkbox/component/index.d.ts +4 -7
- package/dist/components/primitives/checkbox/index.d.ts +2 -0
- package/{components → dist/components}/primitives/checkbox/types.d.ts +24 -25
- package/{components → dist/components}/primitives/date/component/index.d.ts +4 -6
- package/dist/components/primitives/date/index.d.ts +2 -0
- package/{components → dist/components}/primitives/date/types.d.ts +8 -9
- package/{components/primitives/index.js → dist/components/primitives/index.d.ts} +7 -7
- package/dist/components/primitives/multiline/component/index.d.ts +4 -0
- package/{components → dist/components}/primitives/multiline/components/multilineWithLabel/index.d.ts +4 -6
- package/{components → dist/components}/primitives/multiline/components/multilineWithoutLabel/index.d.ts +4 -6
- package/dist/components/primitives/multiline/index.d.ts +2 -0
- package/{components → dist/components}/primitives/multiline/types.d.ts +10 -11
- package/{components → dist/components}/primitives/number/component/index.d.ts +4 -6
- package/{components → dist/components}/primitives/number/components/withLabel/index.d.ts +4 -6
- package/{components → dist/components}/primitives/number/components/withoutLabel/index.d.ts +4 -6
- package/dist/components/primitives/number/index.d.ts +2 -0
- package/{components → dist/components}/primitives/number/types.d.ts +12 -13
- package/dist/components/primitives/password/component/index.d.ts +4 -0
- package/{components → dist/components}/primitives/password/components/withLabel/index.d.ts +3 -5
- package/{components → dist/components}/primitives/password/components/withoutLabel/index.d.ts +3 -5
- package/dist/components/primitives/password/index.d.ts +2 -0
- package/{components → dist/components}/primitives/password/types.d.ts +9 -10
- package/dist/components/primitives/text/component/index.d.ts +4 -0
- package/{components → dist/components}/primitives/text/components/textWithLabel/index.d.ts +4 -6
- package/{components → dist/components}/primitives/text/components/textWithoutLabel/index.d.ts +4 -6
- package/dist/components/primitives/text/index.d.ts +2 -0
- package/{components → dist/components}/primitives/text/types.d.ts +6 -7
- package/{components → dist/components}/primitives/types/baseProps.d.ts +29 -30
- package/{components/primitives/types/index.js → dist/components/primitives/types/index.d.ts} +3 -3
- package/{components → dist/components}/primitives/types/label.d.ts +13 -14
- package/{components/primitives/types/validation/index.js → dist/components/primitives/types/validation/index.d.ts} +2 -2
- package/{components → dist/components}/primitives/types/validation/state.d.ts +8 -9
- package/{components → dist/components}/primitives/types/validation/status.d.ts +9 -10
- package/{components → dist/components}/search/component/index.d.ts +3 -6
- package/dist/components/search/index.d.ts +2 -0
- package/{components → dist/components}/search/types.d.ts +26 -27
- package/{components → dist/components}/tabs/component/index.d.ts +31 -34
- package/{components → dist/components}/tabs/components/item/index.d.ts +11 -13
- package/dist/components/tabs/index.d.ts +2 -0
- package/{components → dist/components}/tabs/types.d.ts +42 -43
- package/{components → dist/components}/tag/component/index.d.ts +4 -7
- package/dist/components/tag/index.d.ts +2 -0
- package/{components → dist/components}/tag/types.d.ts +26 -27
- package/{components → dist/components}/types.d.ts +66 -67
- package/{hooks/index.js → dist/hooks/index.d.ts} +2 -2
- package/{hooks → dist/hooks}/useComponentOutsideClick.d.ts +10 -11
- package/{hooks → dist/hooks}/usePagination.d.ts +19 -20
- package/{index.js → dist/index.d.ts} +3 -3
- package/dist/style.css +1 -0
- package/{utils → dist/utils}/dataAttributes.d.ts +7 -8
- package/{utils → dist/utils}/formValidation.d.ts +15 -16
- package/{utils/index.js → dist/utils/index.d.ts} +2 -2
- package/package.json +45 -38
- package/common.scss +0 -3
- package/components/anchor/component/index.d.ts +0 -6
- package/components/anchor/component/index.d.ts.map +0 -1
- package/components/anchor/component/index.js +0 -20
- package/components/anchor/component/style.scss +0 -15
- package/components/anchor/components/anchorWithIcon/index.d.ts.map +0 -1
- package/components/anchor/components/anchorWithIcon/index.js +0 -16
- package/components/anchor/components/simpleAnchor/index.d.ts.map +0 -1
- package/components/anchor/components/simpleAnchor/index.js +0 -5
- package/components/anchor/index.d.ts +0 -3
- package/components/anchor/index.d.ts.map +0 -1
- package/components/anchor/types.d.ts.map +0 -1
- package/components/anchor/types.js +0 -1
- package/components/button/component/index.d.ts.map +0 -1
- package/components/button/component/index.js +0 -36
- package/components/button/component/style.scss +0 -12
- package/components/button/components/buttonWithIcon/index.d.ts.map +0 -1
- package/components/button/components/buttonWithIcon/index.js +0 -19
- package/components/button/components/simpleButton/index.d.ts.map +0 -1
- package/components/button/components/simpleButton/index.js +0 -5
- package/components/button/index.d.ts +0 -3
- package/components/button/index.d.ts.map +0 -1
- package/components/button/types.d.ts.map +0 -1
- package/components/button/types.js +0 -4
- package/components/dropdown/component/index.d.ts +0 -7
- package/components/dropdown/component/index.d.ts.map +0 -1
- package/components/dropdown/component/index.js +0 -15
- package/components/dropdown/component/style.scss +0 -120
- package/components/dropdown/components/compact/index.d.ts.map +0 -1
- package/components/dropdown/components/compact/index.js +0 -62
- package/components/dropdown/components/item/index.d.ts.map +0 -1
- package/components/dropdown/components/item/index.js +0 -6
- package/components/dropdown/components/label/index.d.ts.map +0 -1
- package/components/dropdown/components/label/index.js +0 -22
- package/components/dropdown/components/withLabel/index.d.ts.map +0 -1
- package/components/dropdown/components/withLabel/index.js +0 -83
- package/components/dropdown/index.d.ts +0 -3
- package/components/dropdown/index.d.ts.map +0 -1
- package/components/dropdown/types.d.ts.map +0 -1
- package/components/dropdown/types.js +0 -1
- package/components/icon/component/index.d.ts.map +0 -1
- package/components/icon/component/index.js +0 -23
- package/components/icon/component/style.scss +0 -21
- package/components/icon/index.d.ts +0 -3
- package/components/icon/index.d.ts.map +0 -1
- package/components/icon/types.d.ts.map +0 -1
- package/components/icon/types.js +0 -1
- package/components/index.d.ts +0 -11
- package/components/index.d.ts.map +0 -1
- package/components/paginator/component/index.d.ts.map +0 -1
- package/components/paginator/component/index.js +0 -47
- package/components/paginator/index.d.ts +0 -4
- package/components/paginator/index.d.ts.map +0 -1
- package/components/paginator/types.d.ts.map +0 -1
- package/components/paginator/types.js +0 -1
- package/components/paginator/utils.d.ts.map +0 -1
- package/components/paginator/utils.js +0 -18
- package/components/primitives/checkbox/component/index.d.ts.map +0 -1
- package/components/primitives/checkbox/component/index.js +0 -37
- package/components/primitives/checkbox/component/style.scss +0 -10
- package/components/primitives/checkbox/index.d.ts +0 -3
- package/components/primitives/checkbox/index.d.ts.map +0 -1
- package/components/primitives/checkbox/index.js +0 -2
- package/components/primitives/checkbox/types.d.ts.map +0 -1
- package/components/primitives/checkbox/types.js +0 -1
- package/components/primitives/date/component/index.d.ts.map +0 -1
- package/components/primitives/date/component/index.js +0 -48
- package/components/primitives/date/index.d.ts +0 -3
- package/components/primitives/date/index.d.ts.map +0 -1
- package/components/primitives/date/index.js +0 -2
- package/components/primitives/date/types.d.ts.map +0 -1
- package/components/primitives/date/types.js +0 -1
- package/components/primitives/index.d.ts +0 -8
- package/components/primitives/index.d.ts.map +0 -1
- package/components/primitives/multiline/component/index.d.ts +0 -7
- package/components/primitives/multiline/component/index.d.ts.map +0 -1
- package/components/primitives/multiline/component/index.js +0 -15
- package/components/primitives/multiline/components/multilineWithLabel/index.d.ts.map +0 -1
- package/components/primitives/multiline/components/multilineWithLabel/index.js +0 -45
- package/components/primitives/multiline/components/multilineWithoutLabel/index.d.ts.map +0 -1
- package/components/primitives/multiline/components/multilineWithoutLabel/index.js +0 -27
- package/components/primitives/multiline/index.d.ts +0 -3
- package/components/primitives/multiline/index.d.ts.map +0 -1
- package/components/primitives/multiline/index.js +0 -2
- package/components/primitives/multiline/types.d.ts.map +0 -1
- package/components/primitives/multiline/types.js +0 -1
- package/components/primitives/number/component/index.d.ts.map +0 -1
- package/components/primitives/number/component/index.js +0 -14
- package/components/primitives/number/components/withLabel/index.d.ts.map +0 -1
- package/components/primitives/number/components/withLabel/index.js +0 -44
- package/components/primitives/number/components/withoutLabel/index.d.ts.map +0 -1
- package/components/primitives/number/components/withoutLabel/index.js +0 -26
- package/components/primitives/number/index.d.ts +0 -3
- package/components/primitives/number/index.d.ts.map +0 -1
- package/components/primitives/number/index.js +0 -2
- package/components/primitives/number/types.d.ts.map +0 -1
- package/components/primitives/number/types.js +0 -1
- package/components/primitives/password/component/index.d.ts +0 -7
- package/components/primitives/password/component/index.d.ts.map +0 -1
- package/components/primitives/password/component/index.js +0 -13
- package/components/primitives/password/component/style.scss +0 -16
- package/components/primitives/password/components/withLabel/index.d.ts.map +0 -1
- package/components/primitives/password/components/withLabel/index.js +0 -51
- package/components/primitives/password/components/withoutLabel/index.d.ts.map +0 -1
- package/components/primitives/password/components/withoutLabel/index.js +0 -33
- package/components/primitives/password/index.d.ts +0 -3
- package/components/primitives/password/index.d.ts.map +0 -1
- package/components/primitives/password/index.js +0 -2
- package/components/primitives/password/types.d.ts.map +0 -1
- package/components/primitives/password/types.js +0 -1
- package/components/primitives/text/component/index.d.ts +0 -7
- package/components/primitives/text/component/index.d.ts.map +0 -1
- package/components/primitives/text/component/index.js +0 -15
- package/components/primitives/text/components/textWithLabel/index.d.ts.map +0 -1
- package/components/primitives/text/components/textWithLabel/index.js +0 -44
- package/components/primitives/text/components/textWithoutLabel/index.d.ts.map +0 -1
- package/components/primitives/text/components/textWithoutLabel/index.js +0 -26
- package/components/primitives/text/index.d.ts +0 -3
- package/components/primitives/text/index.d.ts.map +0 -1
- package/components/primitives/text/index.js +0 -2
- package/components/primitives/text/types.d.ts.map +0 -1
- package/components/primitives/text/types.js +0 -1
- package/components/primitives/types/baseProps.d.ts.map +0 -1
- package/components/primitives/types/baseProps.js +0 -1
- package/components/primitives/types/index.d.ts +0 -4
- package/components/primitives/types/index.d.ts.map +0 -1
- package/components/primitives/types/label.d.ts.map +0 -1
- package/components/primitives/types/label.js +0 -1
- package/components/primitives/types/validation/index.d.ts +0 -3
- package/components/primitives/types/validation/index.d.ts.map +0 -1
- package/components/primitives/types/validation/state.d.ts.map +0 -1
- package/components/primitives/types/validation/state.js +0 -2
- package/components/primitives/types/validation/status.d.ts.map +0 -1
- package/components/primitives/types/validation/status.js +0 -11
- package/components/search/component/index.d.ts.map +0 -1
- package/components/search/component/index.js +0 -37
- package/components/search/component/style.scss +0 -24
- package/components/search/index.d.ts +0 -3
- package/components/search/index.d.ts.map +0 -1
- package/components/search/index.js +0 -2
- package/components/search/types.d.ts.map +0 -1
- package/components/search/types.js +0 -1
- package/components/tabs/component/index.d.ts.map +0 -1
- package/components/tabs/component/index.js +0 -68
- package/components/tabs/component/style.scss +0 -12
- package/components/tabs/components/item/index.d.ts.map +0 -1
- package/components/tabs/components/item/index.js +0 -27
- package/components/tabs/index.d.ts +0 -3
- package/components/tabs/index.d.ts.map +0 -1
- package/components/tabs/index.js +0 -2
- package/components/tabs/types.d.ts.map +0 -1
- package/components/tabs/types.js +0 -34
- package/components/tag/component/index.d.ts.map +0 -1
- package/components/tag/component/index.js +0 -28
- package/components/tag/component/style.scss +0 -27
- package/components/tag/index.d.ts +0 -3
- package/components/tag/index.d.ts.map +0 -1
- package/components/tag/index.js +0 -2
- package/components/tag/types.d.ts.map +0 -1
- package/components/tag/types.js +0 -1
- package/components/types.d.ts.map +0 -1
- package/components/types.js +0 -31
- package/hooks/index.d.ts +0 -3
- package/hooks/index.d.ts.map +0 -1
- package/hooks/useComponentOutsideClick.d.ts.map +0 -1
- package/hooks/useComponentOutsideClick.js +0 -32
- package/hooks/usePagination.d.ts.map +0 -1
- package/hooks/usePagination.js +0 -28
- package/index.d.ts +0 -4
- package/index.d.ts.map +0 -1
- package/readme.md +0 -56
- package/tsconfig.tsbuildinfo +0 -1
- package/utils/dataAttributes.d.ts.map +0 -1
- package/utils/dataAttributes.js +0 -19
- package/utils/formValidation.d.ts.map +0 -1
- package/utils/formValidation.js +0 -35
- package/utils/index.d.ts +0 -3
- package/utils/index.d.ts.map +0 -1
|
@@ -0,0 +1,1040 @@
|
|
|
1
|
+
import He, { useCallback as ge, useEffect as Je, useState as $r, useMemo as Be } from "react";
|
|
2
|
+
var C = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Ye;
|
|
13
|
+
function Ir() {
|
|
14
|
+
if (Ye)
|
|
15
|
+
return W;
|
|
16
|
+
Ye = 1;
|
|
17
|
+
var r = He, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, u = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function f(l, g, c) {
|
|
19
|
+
var v, b = {}, P = null, q = null;
|
|
20
|
+
c !== void 0 && (P = "" + c), g.key !== void 0 && (P = "" + g.key), g.ref !== void 0 && (q = g.ref);
|
|
21
|
+
for (v in g)
|
|
22
|
+
i.call(g, v) && !s.hasOwnProperty(v) && (b[v] = g[v]);
|
|
23
|
+
if (l && l.defaultProps)
|
|
24
|
+
for (v in g = l.defaultProps, g)
|
|
25
|
+
b[v] === void 0 && (b[v] = g[v]);
|
|
26
|
+
return { $$typeof: t, type: l, key: P, ref: q, props: b, _owner: u.current };
|
|
27
|
+
}
|
|
28
|
+
return W.Fragment = a, W.jsx = f, W.jsxs = f, W;
|
|
29
|
+
}
|
|
30
|
+
var B = {};
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
var Le;
|
|
41
|
+
function kr() {
|
|
42
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var r = He, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), me = Symbol.iterator, rr = "@@iterator";
|
|
44
|
+
function tr(e) {
|
|
45
|
+
if (e === null || typeof e != "object")
|
|
46
|
+
return null;
|
|
47
|
+
var n = me && e[me] || e[rr];
|
|
48
|
+
return typeof n == "function" ? n : null;
|
|
49
|
+
}
|
|
50
|
+
var M = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function R(e) {
|
|
52
|
+
{
|
|
53
|
+
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), d = 1; d < n; d++)
|
|
54
|
+
o[d - 1] = arguments[d];
|
|
55
|
+
nr("error", e, o);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function nr(e, n, o) {
|
|
59
|
+
{
|
|
60
|
+
var d = M.ReactDebugCurrentFrame, p = d.getStackAddendum();
|
|
61
|
+
p !== "" && (n += "%s", o = o.concat([p]));
|
|
62
|
+
var h = o.map(function(m) {
|
|
63
|
+
return String(m);
|
|
64
|
+
});
|
|
65
|
+
h.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, h);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var ir = !1, ar = !1, or = !1, ur = !1, sr = !1, pe;
|
|
69
|
+
pe = Symbol.for("react.module.reference");
|
|
70
|
+
function fr(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === s || sr || e === u || e === c || e === v || ur || e === q || ir || ar || or || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === b || e.$$typeof === f || e.$$typeof === l || e.$$typeof === g || // This needs to include all possible module reference object
|
|
72
|
+
// types supported by any Flight configuration anywhere since
|
|
73
|
+
// we don't know which Flight build this will end up being used
|
|
74
|
+
// with.
|
|
75
|
+
e.$$typeof === pe || e.getModuleId !== void 0));
|
|
76
|
+
}
|
|
77
|
+
function lr(e, n, o) {
|
|
78
|
+
var d = e.displayName;
|
|
79
|
+
if (d)
|
|
80
|
+
return d;
|
|
81
|
+
var p = n.displayName || n.name || "";
|
|
82
|
+
return p !== "" ? o + "(" + p + ")" : o;
|
|
83
|
+
}
|
|
84
|
+
function he(e) {
|
|
85
|
+
return e.displayName || "Context";
|
|
86
|
+
}
|
|
87
|
+
function S(e) {
|
|
88
|
+
if (e == null)
|
|
89
|
+
return null;
|
|
90
|
+
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
|
+
return e.displayName || e.name || null;
|
|
92
|
+
if (typeof e == "string")
|
|
93
|
+
return e;
|
|
94
|
+
switch (e) {
|
|
95
|
+
case i:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case a:
|
|
98
|
+
return "Portal";
|
|
99
|
+
case s:
|
|
100
|
+
return "Profiler";
|
|
101
|
+
case u:
|
|
102
|
+
return "StrictMode";
|
|
103
|
+
case c:
|
|
104
|
+
return "Suspense";
|
|
105
|
+
case v:
|
|
106
|
+
return "SuspenseList";
|
|
107
|
+
}
|
|
108
|
+
if (typeof e == "object")
|
|
109
|
+
switch (e.$$typeof) {
|
|
110
|
+
case l:
|
|
111
|
+
var n = e;
|
|
112
|
+
return he(n) + ".Consumer";
|
|
113
|
+
case f:
|
|
114
|
+
var o = e;
|
|
115
|
+
return he(o._context) + ".Provider";
|
|
116
|
+
case g:
|
|
117
|
+
return lr(e, e.render, "ForwardRef");
|
|
118
|
+
case b:
|
|
119
|
+
var d = e.displayName || null;
|
|
120
|
+
return d !== null ? d : S(e.type) || "Memo";
|
|
121
|
+
case P: {
|
|
122
|
+
var p = e, h = p._payload, m = p._init;
|
|
123
|
+
try {
|
|
124
|
+
return S(m(h));
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
var F = Object.assign, k = 0, be, _e, Oe, Ee, Re, we, Pe;
|
|
133
|
+
function je() {
|
|
134
|
+
}
|
|
135
|
+
je.__reactDisabledLog = !0;
|
|
136
|
+
function cr() {
|
|
137
|
+
{
|
|
138
|
+
if (k === 0) {
|
|
139
|
+
be = console.log, _e = console.info, Oe = console.warn, Ee = console.error, Re = console.group, we = console.groupCollapsed, Pe = console.groupEnd;
|
|
140
|
+
var e = {
|
|
141
|
+
configurable: !0,
|
|
142
|
+
enumerable: !0,
|
|
143
|
+
value: je,
|
|
144
|
+
writable: !0
|
|
145
|
+
};
|
|
146
|
+
Object.defineProperties(console, {
|
|
147
|
+
info: e,
|
|
148
|
+
log: e,
|
|
149
|
+
warn: e,
|
|
150
|
+
error: e,
|
|
151
|
+
group: e,
|
|
152
|
+
groupCollapsed: e,
|
|
153
|
+
groupEnd: e
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
k++;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function dr() {
|
|
160
|
+
{
|
|
161
|
+
if (k--, k === 0) {
|
|
162
|
+
var e = {
|
|
163
|
+
configurable: !0,
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
writable: !0
|
|
166
|
+
};
|
|
167
|
+
Object.defineProperties(console, {
|
|
168
|
+
log: F({}, e, {
|
|
169
|
+
value: be
|
|
170
|
+
}),
|
|
171
|
+
info: F({}, e, {
|
|
172
|
+
value: _e
|
|
173
|
+
}),
|
|
174
|
+
warn: F({}, e, {
|
|
175
|
+
value: Oe
|
|
176
|
+
}),
|
|
177
|
+
error: F({}, e, {
|
|
178
|
+
value: Ee
|
|
179
|
+
}),
|
|
180
|
+
group: F({}, e, {
|
|
181
|
+
value: Re
|
|
182
|
+
}),
|
|
183
|
+
groupCollapsed: F({}, e, {
|
|
184
|
+
value: we
|
|
185
|
+
}),
|
|
186
|
+
groupEnd: F({}, e, {
|
|
187
|
+
value: Pe
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
k < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var ne = M.ReactCurrentDispatcher, ie;
|
|
195
|
+
function x(e, n, o) {
|
|
196
|
+
{
|
|
197
|
+
if (ie === void 0)
|
|
198
|
+
try {
|
|
199
|
+
throw Error();
|
|
200
|
+
} catch (p) {
|
|
201
|
+
var d = p.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ie = d && d[1] || "";
|
|
203
|
+
}
|
|
204
|
+
return `
|
|
205
|
+
` + ie + e;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var ae = !1, K;
|
|
209
|
+
{
|
|
210
|
+
var vr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
K = new vr();
|
|
212
|
+
}
|
|
213
|
+
function Ce(e, n) {
|
|
214
|
+
if (!e || ae)
|
|
215
|
+
return "";
|
|
216
|
+
{
|
|
217
|
+
var o = K.get(e);
|
|
218
|
+
if (o !== void 0)
|
|
219
|
+
return o;
|
|
220
|
+
}
|
|
221
|
+
var d;
|
|
222
|
+
ae = !0;
|
|
223
|
+
var p = Error.prepareStackTrace;
|
|
224
|
+
Error.prepareStackTrace = void 0;
|
|
225
|
+
var h;
|
|
226
|
+
h = ne.current, ne.current = null, cr();
|
|
227
|
+
try {
|
|
228
|
+
if (n) {
|
|
229
|
+
var m = function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
};
|
|
232
|
+
if (Object.defineProperty(m.prototype, "props", {
|
|
233
|
+
set: function() {
|
|
234
|
+
throw Error();
|
|
235
|
+
}
|
|
236
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
+
try {
|
|
238
|
+
Reflect.construct(m, []);
|
|
239
|
+
} catch (N) {
|
|
240
|
+
d = N;
|
|
241
|
+
}
|
|
242
|
+
Reflect.construct(e, [], m);
|
|
243
|
+
} else {
|
|
244
|
+
try {
|
|
245
|
+
m.call();
|
|
246
|
+
} catch (N) {
|
|
247
|
+
d = N;
|
|
248
|
+
}
|
|
249
|
+
e.call(m.prototype);
|
|
250
|
+
}
|
|
251
|
+
} else {
|
|
252
|
+
try {
|
|
253
|
+
throw Error();
|
|
254
|
+
} catch (N) {
|
|
255
|
+
d = N;
|
|
256
|
+
}
|
|
257
|
+
e();
|
|
258
|
+
}
|
|
259
|
+
} catch (N) {
|
|
260
|
+
if (N && d && typeof N.stack == "string") {
|
|
261
|
+
for (var y = N.stack.split(`
|
|
262
|
+
`), w = d.stack.split(`
|
|
263
|
+
`), _ = y.length - 1, O = w.length - 1; _ >= 1 && O >= 0 && y[_] !== w[O]; )
|
|
264
|
+
O--;
|
|
265
|
+
for (; _ >= 1 && O >= 0; _--, O--)
|
|
266
|
+
if (y[_] !== w[O]) {
|
|
267
|
+
if (_ !== 1 || O !== 1)
|
|
268
|
+
do
|
|
269
|
+
if (_--, O--, O < 0 || y[_] !== w[O]) {
|
|
270
|
+
var j = `
|
|
271
|
+
` + y[_].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, j), j;
|
|
273
|
+
}
|
|
274
|
+
while (_ >= 1 && O >= 0);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} finally {
|
|
279
|
+
ae = !1, ne.current = h, dr(), Error.prepareStackTrace = p;
|
|
280
|
+
}
|
|
281
|
+
var I = e ? e.displayName || e.name : "", We = I ? x(I) : "";
|
|
282
|
+
return typeof e == "function" && K.set(e, We), We;
|
|
283
|
+
}
|
|
284
|
+
function gr(e, n, o) {
|
|
285
|
+
return Ce(e, !1);
|
|
286
|
+
}
|
|
287
|
+
function yr(e) {
|
|
288
|
+
var n = e.prototype;
|
|
289
|
+
return !!(n && n.isReactComponent);
|
|
290
|
+
}
|
|
291
|
+
function G(e, n, o) {
|
|
292
|
+
if (e == null)
|
|
293
|
+
return "";
|
|
294
|
+
if (typeof e == "function")
|
|
295
|
+
return Ce(e, yr(e));
|
|
296
|
+
if (typeof e == "string")
|
|
297
|
+
return x(e);
|
|
298
|
+
switch (e) {
|
|
299
|
+
case c:
|
|
300
|
+
return x("Suspense");
|
|
301
|
+
case v:
|
|
302
|
+
return x("SuspenseList");
|
|
303
|
+
}
|
|
304
|
+
if (typeof e == "object")
|
|
305
|
+
switch (e.$$typeof) {
|
|
306
|
+
case g:
|
|
307
|
+
return gr(e.render);
|
|
308
|
+
case b:
|
|
309
|
+
return G(e.type, n, o);
|
|
310
|
+
case P: {
|
|
311
|
+
var d = e, p = d._payload, h = d._init;
|
|
312
|
+
try {
|
|
313
|
+
return G(h(p), n, o);
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return "";
|
|
319
|
+
}
|
|
320
|
+
var H = Object.prototype.hasOwnProperty, Te = {}, Se = M.ReactDebugCurrentFrame;
|
|
321
|
+
function J(e) {
|
|
322
|
+
if (e) {
|
|
323
|
+
var n = e._owner, o = G(e.type, e._source, n ? n.type : null);
|
|
324
|
+
Se.setExtraStackFrame(o);
|
|
325
|
+
} else
|
|
326
|
+
Se.setExtraStackFrame(null);
|
|
327
|
+
}
|
|
328
|
+
function mr(e, n, o, d, p) {
|
|
329
|
+
{
|
|
330
|
+
var h = Function.call.bind(H);
|
|
331
|
+
for (var m in e)
|
|
332
|
+
if (h(e, m)) {
|
|
333
|
+
var y = void 0;
|
|
334
|
+
try {
|
|
335
|
+
if (typeof e[m] != "function") {
|
|
336
|
+
var w = Error((d || "React class") + ": " + o + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw w.name = "Invariant Violation", w;
|
|
338
|
+
}
|
|
339
|
+
y = e[m](n, m, d, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (_) {
|
|
341
|
+
y = _;
|
|
342
|
+
}
|
|
343
|
+
y && !(y instanceof Error) && (J(p), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", d || "React class", o, m, typeof y), J(null)), y instanceof Error && !(y.message in Te) && (Te[y.message] = !0, J(p), R("Failed %s type: %s", o, y.message), J(null));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
var pr = Array.isArray;
|
|
348
|
+
function oe(e) {
|
|
349
|
+
return pr(e);
|
|
350
|
+
}
|
|
351
|
+
function hr(e) {
|
|
352
|
+
{
|
|
353
|
+
var n = typeof Symbol == "function" && Symbol.toStringTag, o = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
+
return o;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function br(e) {
|
|
358
|
+
try {
|
|
359
|
+
return Ne(e), !1;
|
|
360
|
+
} catch {
|
|
361
|
+
return !0;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function Ne(e) {
|
|
365
|
+
return "" + e;
|
|
366
|
+
}
|
|
367
|
+
function De(e) {
|
|
368
|
+
if (br(e))
|
|
369
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Ne(e);
|
|
370
|
+
}
|
|
371
|
+
var V = M.ReactCurrentOwner, _r = {
|
|
372
|
+
key: !0,
|
|
373
|
+
ref: !0,
|
|
374
|
+
__self: !0,
|
|
375
|
+
__source: !0
|
|
376
|
+
}, Fe, Ae, ue;
|
|
377
|
+
ue = {};
|
|
378
|
+
function Or(e) {
|
|
379
|
+
if (H.call(e, "ref")) {
|
|
380
|
+
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
+
if (n && n.isReactWarning)
|
|
382
|
+
return !1;
|
|
383
|
+
}
|
|
384
|
+
return e.ref !== void 0;
|
|
385
|
+
}
|
|
386
|
+
function Er(e) {
|
|
387
|
+
if (H.call(e, "key")) {
|
|
388
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
+
if (n && n.isReactWarning)
|
|
390
|
+
return !1;
|
|
391
|
+
}
|
|
392
|
+
return e.key !== void 0;
|
|
393
|
+
}
|
|
394
|
+
function Rr(e, n) {
|
|
395
|
+
if (typeof e.ref == "string" && V.current && n && V.current.stateNode !== n) {
|
|
396
|
+
var o = S(V.current.type);
|
|
397
|
+
ue[o] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(V.current.type), e.ref), ue[o] = !0);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function wr(e, n) {
|
|
401
|
+
{
|
|
402
|
+
var o = function() {
|
|
403
|
+
Fe || (Fe = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
404
|
+
};
|
|
405
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: o,
|
|
407
|
+
configurable: !0
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function Pr(e, n) {
|
|
412
|
+
{
|
|
413
|
+
var o = function() {
|
|
414
|
+
Ae || (Ae = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
415
|
+
};
|
|
416
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: o,
|
|
418
|
+
configurable: !0
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var jr = function(e, n, o, d, p, h, m) {
|
|
423
|
+
var y = {
|
|
424
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
+
$$typeof: t,
|
|
426
|
+
// Built-in properties that belong on the element
|
|
427
|
+
type: e,
|
|
428
|
+
key: n,
|
|
429
|
+
ref: o,
|
|
430
|
+
props: m,
|
|
431
|
+
// Record the component responsible for creating this element.
|
|
432
|
+
_owner: h
|
|
433
|
+
};
|
|
434
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
435
|
+
configurable: !1,
|
|
436
|
+
enumerable: !1,
|
|
437
|
+
writable: !0,
|
|
438
|
+
value: !1
|
|
439
|
+
}), Object.defineProperty(y, "_self", {
|
|
440
|
+
configurable: !1,
|
|
441
|
+
enumerable: !1,
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: d
|
|
444
|
+
}), Object.defineProperty(y, "_source", {
|
|
445
|
+
configurable: !1,
|
|
446
|
+
enumerable: !1,
|
|
447
|
+
writable: !1,
|
|
448
|
+
value: p
|
|
449
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
450
|
+
};
|
|
451
|
+
function Cr(e, n, o, d, p) {
|
|
452
|
+
{
|
|
453
|
+
var h, m = {}, y = null, w = null;
|
|
454
|
+
o !== void 0 && (De(o), y = "" + o), Er(n) && (De(n.key), y = "" + n.key), Or(n) && (w = n.ref, Rr(n, p));
|
|
455
|
+
for (h in n)
|
|
456
|
+
H.call(n, h) && !_r.hasOwnProperty(h) && (m[h] = n[h]);
|
|
457
|
+
if (e && e.defaultProps) {
|
|
458
|
+
var _ = e.defaultProps;
|
|
459
|
+
for (h in _)
|
|
460
|
+
m[h] === void 0 && (m[h] = _[h]);
|
|
461
|
+
}
|
|
462
|
+
if (y || w) {
|
|
463
|
+
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
+
y && wr(m, O), w && Pr(m, O);
|
|
465
|
+
}
|
|
466
|
+
return jr(e, y, w, p, d, V.current, m);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
var se = M.ReactCurrentOwner, Ue = M.ReactDebugCurrentFrame;
|
|
470
|
+
function $(e) {
|
|
471
|
+
if (e) {
|
|
472
|
+
var n = e._owner, o = G(e.type, e._source, n ? n.type : null);
|
|
473
|
+
Ue.setExtraStackFrame(o);
|
|
474
|
+
} else
|
|
475
|
+
Ue.setExtraStackFrame(null);
|
|
476
|
+
}
|
|
477
|
+
var fe;
|
|
478
|
+
fe = !1;
|
|
479
|
+
function le(e) {
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
481
|
+
}
|
|
482
|
+
function Me() {
|
|
483
|
+
{
|
|
484
|
+
if (se.current) {
|
|
485
|
+
var e = S(se.current.type);
|
|
486
|
+
if (e)
|
|
487
|
+
return `
|
|
488
|
+
|
|
489
|
+
Check the render method of \`` + e + "`.";
|
|
490
|
+
}
|
|
491
|
+
return "";
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function Tr(e) {
|
|
495
|
+
{
|
|
496
|
+
if (e !== void 0) {
|
|
497
|
+
var n = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
|
|
498
|
+
return `
|
|
499
|
+
|
|
500
|
+
Check your code at ` + n + ":" + o + ".";
|
|
501
|
+
}
|
|
502
|
+
return "";
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
var $e = {};
|
|
506
|
+
function Sr(e) {
|
|
507
|
+
{
|
|
508
|
+
var n = Me();
|
|
509
|
+
if (!n) {
|
|
510
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
511
|
+
o && (n = `
|
|
512
|
+
|
|
513
|
+
Check the top-level render call using <` + o + ">.");
|
|
514
|
+
}
|
|
515
|
+
return n;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function Ie(e, n) {
|
|
519
|
+
{
|
|
520
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
521
|
+
return;
|
|
522
|
+
e._store.validated = !0;
|
|
523
|
+
var o = Sr(n);
|
|
524
|
+
if ($e[o])
|
|
525
|
+
return;
|
|
526
|
+
$e[o] = !0;
|
|
527
|
+
var d = "";
|
|
528
|
+
e && e._owner && e._owner !== se.current && (d = " It was passed a child from " + S(e._owner.type) + "."), $(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, d), $(null);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function ke(e, n) {
|
|
532
|
+
{
|
|
533
|
+
if (typeof e != "object")
|
|
534
|
+
return;
|
|
535
|
+
if (oe(e))
|
|
536
|
+
for (var o = 0; o < e.length; o++) {
|
|
537
|
+
var d = e[o];
|
|
538
|
+
le(d) && Ie(d, n);
|
|
539
|
+
}
|
|
540
|
+
else if (le(e))
|
|
541
|
+
e._store && (e._store.validated = !0);
|
|
542
|
+
else if (e) {
|
|
543
|
+
var p = tr(e);
|
|
544
|
+
if (typeof p == "function" && p !== e.entries)
|
|
545
|
+
for (var h = p.call(e), m; !(m = h.next()).done; )
|
|
546
|
+
le(m.value) && Ie(m.value, n);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
function Nr(e) {
|
|
551
|
+
{
|
|
552
|
+
var n = e.type;
|
|
553
|
+
if (n == null || typeof n == "string")
|
|
554
|
+
return;
|
|
555
|
+
var o;
|
|
556
|
+
if (typeof n == "function")
|
|
557
|
+
o = n.propTypes;
|
|
558
|
+
else if (typeof n == "object" && (n.$$typeof === g || // Note: Memo only checks outer props here.
|
|
559
|
+
// Inner props are checked in the reconciler.
|
|
560
|
+
n.$$typeof === b))
|
|
561
|
+
o = n.propTypes;
|
|
562
|
+
else
|
|
563
|
+
return;
|
|
564
|
+
if (o) {
|
|
565
|
+
var d = S(n);
|
|
566
|
+
mr(o, e.props, "prop", d, e);
|
|
567
|
+
} else if (n.PropTypes !== void 0 && !fe) {
|
|
568
|
+
fe = !0;
|
|
569
|
+
var p = S(n);
|
|
570
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
571
|
+
}
|
|
572
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function Dr(e) {
|
|
576
|
+
{
|
|
577
|
+
for (var n = Object.keys(e.props), o = 0; o < n.length; o++) {
|
|
578
|
+
var d = n[o];
|
|
579
|
+
if (d !== "children" && d !== "key") {
|
|
580
|
+
$(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), $(null);
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
e.ref !== null && ($(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
function Ve(e, n, o, d, p, h) {
|
|
588
|
+
{
|
|
589
|
+
var m = fr(e);
|
|
590
|
+
if (!m) {
|
|
591
|
+
var y = "";
|
|
592
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
+
var w = Tr(p);
|
|
594
|
+
w ? y += w : y += Me();
|
|
595
|
+
var _;
|
|
596
|
+
e === null ? _ = "null" : oe(e) ? _ = "array" : e !== void 0 && e.$$typeof === t ? (_ = "<" + (S(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, y);
|
|
597
|
+
}
|
|
598
|
+
var O = Cr(e, n, o, p, h);
|
|
599
|
+
if (O == null)
|
|
600
|
+
return O;
|
|
601
|
+
if (m) {
|
|
602
|
+
var j = n.children;
|
|
603
|
+
if (j !== void 0)
|
|
604
|
+
if (d)
|
|
605
|
+
if (oe(j)) {
|
|
606
|
+
for (var I = 0; I < j.length; I++)
|
|
607
|
+
ke(j[I], e);
|
|
608
|
+
Object.freeze && Object.freeze(j);
|
|
609
|
+
} else
|
|
610
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
|
+
else
|
|
612
|
+
ke(j, e);
|
|
613
|
+
}
|
|
614
|
+
return e === i ? Dr(O) : Nr(O), O;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function Fr(e, n, o) {
|
|
618
|
+
return Ve(e, n, o, !0);
|
|
619
|
+
}
|
|
620
|
+
function Ar(e, n, o) {
|
|
621
|
+
return Ve(e, n, o, !1);
|
|
622
|
+
}
|
|
623
|
+
var Ur = Ar, Mr = Fr;
|
|
624
|
+
B.Fragment = i, B.jsx = Ur, B.jsxs = Mr;
|
|
625
|
+
}()), B;
|
|
626
|
+
}
|
|
627
|
+
process.env.NODE_ENV === "production" ? Ir() : kr();
|
|
628
|
+
var D = {}, Xe = {}, ze = {};
|
|
629
|
+
Object.defineProperty(ze, "__esModule", { value: !0 });
|
|
630
|
+
var Ze = {}, ce = {}, z = {};
|
|
631
|
+
(function(r) {
|
|
632
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.isObjectEmpty = r.getValueOrDefault = r.isUndefined = r.isNull = r.isNullOrUndefined = void 0;
|
|
633
|
+
const t = (f) => (0, r.isNull)(f) || (0, r.isUndefined)(f);
|
|
634
|
+
r.isNullOrUndefined = t;
|
|
635
|
+
const a = (f) => f === null;
|
|
636
|
+
r.isNull = a;
|
|
637
|
+
const i = (f) => f === void 0;
|
|
638
|
+
r.isUndefined = i;
|
|
639
|
+
const u = (f, l) => (0, r.isNullOrUndefined)(f) ? l : f;
|
|
640
|
+
r.getValueOrDefault = u;
|
|
641
|
+
const s = (f) => (0, r.isNullOrUndefined)(f) ? !0 : Object.entries(f).reduce((g, [c]) => (0, r.isNullOrUndefined)(c[1]) && g, !0);
|
|
642
|
+
r.isObjectEmpty = s;
|
|
643
|
+
})(z);
|
|
644
|
+
var de = {}, qe;
|
|
645
|
+
function Qe() {
|
|
646
|
+
return qe || (qe = 1, function(r) {
|
|
647
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.isNullOrEmpty = r.isStringEmpty = void 0;
|
|
648
|
+
const t = U(), a = (u) => u.length === 0;
|
|
649
|
+
r.isStringEmpty = a;
|
|
650
|
+
const i = (u) => (0, t.isNullOrUndefined)(u) || (0, r.isStringEmpty)(u);
|
|
651
|
+
r.isNullOrEmpty = i, (0, t.isNullOrUndefined)(String.prototype.format) && (String.prototype.format = function(...u) {
|
|
652
|
+
let s = this;
|
|
653
|
+
return [...u].forEach((f, l) => {
|
|
654
|
+
s = s.replace(`{${l}}`, f);
|
|
655
|
+
}), s;
|
|
656
|
+
});
|
|
657
|
+
}(de)), de;
|
|
658
|
+
}
|
|
659
|
+
var Z = {};
|
|
660
|
+
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
661
|
+
Z.isType = void 0;
|
|
662
|
+
const Vr = z, Wr = (r) => {
|
|
663
|
+
const t = r;
|
|
664
|
+
return !(0, Vr.isNullOrUndefined)(t);
|
|
665
|
+
};
|
|
666
|
+
Z.isType = Wr;
|
|
667
|
+
var ve = {}, xe;
|
|
668
|
+
function Br() {
|
|
669
|
+
return xe || (xe = 1, function(r) {
|
|
670
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.getFontColor = r.getFontColorFromString = r.hexToRgb = r.getRgbColor = r.isHexColor = r.isRgbColor = r.whiteHex = r.blackHex = void 0;
|
|
671
|
+
const t = z, a = Qe();
|
|
672
|
+
r.blackHex = "#000", r.whiteHex = "#fff";
|
|
673
|
+
function i(c) {
|
|
674
|
+
return (0, a.isNullOrEmpty)(c) ? !1 : c.trim().startsWith("rgb");
|
|
675
|
+
}
|
|
676
|
+
r.isRgbColor = i;
|
|
677
|
+
function u(c) {
|
|
678
|
+
return (0, a.isNullOrEmpty)(c) ? !1 : /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i.test(c);
|
|
679
|
+
}
|
|
680
|
+
r.isHexColor = u;
|
|
681
|
+
function s(c) {
|
|
682
|
+
if ((0, a.isNullOrEmpty)(c) || !i(c))
|
|
683
|
+
return;
|
|
684
|
+
const v = c.trim().match(/\d+/g);
|
|
685
|
+
return {
|
|
686
|
+
red: parseInt(v[0], 10),
|
|
687
|
+
green: parseInt(v[1], 10),
|
|
688
|
+
blue: parseInt(v[2], 10)
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
r.getRgbColor = s;
|
|
692
|
+
function f(c) {
|
|
693
|
+
if ((0, a.isNullOrEmpty)(c) || !u(c))
|
|
694
|
+
return;
|
|
695
|
+
c.startsWith("#") && (c = c.substring(1));
|
|
696
|
+
const v = c.match(/.{1,2}/g), b = [
|
|
697
|
+
parseInt(v[0], 16),
|
|
698
|
+
parseInt(v[1], 16),
|
|
699
|
+
parseInt(v[2], 16)
|
|
700
|
+
];
|
|
701
|
+
return {
|
|
702
|
+
red: b[0],
|
|
703
|
+
green: b[1],
|
|
704
|
+
blue: b[2]
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
r.hexToRgb = f;
|
|
708
|
+
function l(c) {
|
|
709
|
+
const v = i(c) ? s(c) : f(c);
|
|
710
|
+
return (0, t.isNullOrUndefined)(v) ? "" : g(v);
|
|
711
|
+
}
|
|
712
|
+
r.getFontColorFromString = l;
|
|
713
|
+
function g(c) {
|
|
714
|
+
return c.red * 0.299 + c.green * 0.587 + c.blue * 0.114 > 125 ? r.blackHex : r.whiteHex;
|
|
715
|
+
}
|
|
716
|
+
r.getFontColor = g;
|
|
717
|
+
}(ve)), ve;
|
|
718
|
+
}
|
|
719
|
+
var Ke;
|
|
720
|
+
function U() {
|
|
721
|
+
return Ke || (Ke = 1, function(r) {
|
|
722
|
+
var t = C && C.__createBinding || (Object.create ? function(i, u, s, f) {
|
|
723
|
+
f === void 0 && (f = s);
|
|
724
|
+
var l = Object.getOwnPropertyDescriptor(u, s);
|
|
725
|
+
(!l || ("get" in l ? !u.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
726
|
+
return u[s];
|
|
727
|
+
} }), Object.defineProperty(i, f, l);
|
|
728
|
+
} : function(i, u, s, f) {
|
|
729
|
+
f === void 0 && (f = s), i[f] = u[s];
|
|
730
|
+
}), a = C && C.__exportStar || function(i, u) {
|
|
731
|
+
for (var s in i)
|
|
732
|
+
s !== "default" && !Object.prototype.hasOwnProperty.call(u, s) && t(u, i, s);
|
|
733
|
+
};
|
|
734
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), a(z, r), a(Qe(), r), a(Z, r), a(Br(), r);
|
|
735
|
+
}(ce)), ce;
|
|
736
|
+
}
|
|
737
|
+
(function(r) {
|
|
738
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.getErrorText = r.fetchApi = r.safeFetch = r.get = r.post = r.statusCodesErrorsMap = void 0;
|
|
739
|
+
const t = U();
|
|
740
|
+
r.statusCodesErrorsMap = /* @__PURE__ */ new Map([
|
|
741
|
+
[404, "Server is not reachable."],
|
|
742
|
+
[415, "Server request failed: data is not valid."]
|
|
743
|
+
]);
|
|
744
|
+
const a = async (l, g, c) => {
|
|
745
|
+
const v = {
|
|
746
|
+
method: "POST",
|
|
747
|
+
headers: {
|
|
748
|
+
"content-type": "application/json"
|
|
749
|
+
},
|
|
750
|
+
body: JSON.stringify(g)
|
|
751
|
+
};
|
|
752
|
+
return (0, r.safeFetch)(l, v, c).then((b) => (0, t.isStringEmpty)(b) ? void 0 : JSON.parse(b));
|
|
753
|
+
};
|
|
754
|
+
r.post = a;
|
|
755
|
+
const i = async (l, g) => {
|
|
756
|
+
const c = {
|
|
757
|
+
method: "GET",
|
|
758
|
+
headers: {
|
|
759
|
+
"content-type": "application/json"
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
return (0, r.safeFetch)(l, c, g).then((v) => JSON.parse(v));
|
|
763
|
+
};
|
|
764
|
+
r.get = i;
|
|
765
|
+
const u = async (l, g, c) => {
|
|
766
|
+
try {
|
|
767
|
+
const v = await (0, r.fetchApi)(l, g);
|
|
768
|
+
if (v.ok) {
|
|
769
|
+
const b = await v.text();
|
|
770
|
+
return Promise.resolve(b);
|
|
771
|
+
} else
|
|
772
|
+
return Promise.reject((0, r.getErrorText)(v));
|
|
773
|
+
} catch (v) {
|
|
774
|
+
console.error(v);
|
|
775
|
+
let b = "Unexpected error.";
|
|
776
|
+
return v.name === "AbortError" && (b = `Request timeout after ${c.timeout} ms`), Promise.reject(b);
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
r.safeFetch = u;
|
|
780
|
+
const s = async (l, g, c) => {
|
|
781
|
+
let v;
|
|
782
|
+
if (!(0, t.isNullOrUndefined)(c) && !(0, t.isNullOrUndefined)(c.timeout) && c.timeout > 0) {
|
|
783
|
+
const P = new AbortController();
|
|
784
|
+
v = setTimeout(() => P.abort(), c.timeout * 1e3), g = {
|
|
785
|
+
...g,
|
|
786
|
+
signal: P.signal
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
const b = await fetch(l, g);
|
|
790
|
+
return (0, t.isNullOrUndefined)(v) || clearTimeout(v), b;
|
|
791
|
+
};
|
|
792
|
+
r.fetchApi = s;
|
|
793
|
+
const f = (l, g = !1) => {
|
|
794
|
+
if (l.ok && !g)
|
|
795
|
+
throw new Error("Response is ok, but error handler called.");
|
|
796
|
+
return r.statusCodesErrorsMap.has(l.status) ? r.statusCodesErrorsMap.get(l.status) : "Unexpected error.";
|
|
797
|
+
};
|
|
798
|
+
r.getErrorText = f;
|
|
799
|
+
})(Ze);
|
|
800
|
+
(function(r) {
|
|
801
|
+
var t = C && C.__createBinding || (Object.create ? function(i, u, s, f) {
|
|
802
|
+
f === void 0 && (f = s);
|
|
803
|
+
var l = Object.getOwnPropertyDescriptor(u, s);
|
|
804
|
+
(!l || ("get" in l ? !u.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
805
|
+
return u[s];
|
|
806
|
+
} }), Object.defineProperty(i, f, l);
|
|
807
|
+
} : function(i, u, s, f) {
|
|
808
|
+
f === void 0 && (f = s), i[f] = u[s];
|
|
809
|
+
}), a = C && C.__exportStar || function(i, u) {
|
|
810
|
+
for (var s in i)
|
|
811
|
+
s !== "default" && !Object.prototype.hasOwnProperty.call(u, s) && t(u, i, s);
|
|
812
|
+
};
|
|
813
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), a(ze, r), a(Ze, r);
|
|
814
|
+
})(Xe);
|
|
815
|
+
var Q = {};
|
|
816
|
+
Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
817
|
+
Q.removeByKey = void 0;
|
|
818
|
+
const A = U();
|
|
819
|
+
function Yr(r, t, a) {
|
|
820
|
+
return r.filter((i) => {
|
|
821
|
+
const u = t(i);
|
|
822
|
+
return !a.includes(u);
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
Q.removeByKey = Yr;
|
|
826
|
+
(0, A.isNullOrUndefined)(Array.prototype.remove) && (Array.prototype.remove = function(r) {
|
|
827
|
+
const t = this.indexOf(r);
|
|
828
|
+
t >= 0 && this.splice(t, 1);
|
|
829
|
+
});
|
|
830
|
+
(0, A.isNullOrUndefined)(Array.prototype.removeByFn) && (Array.prototype.removeByFn = function(r) {
|
|
831
|
+
for (; ; ) {
|
|
832
|
+
const t = this.findIndex(r);
|
|
833
|
+
if (t >= 0) {
|
|
834
|
+
this.splice(t, 1);
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
(0, A.isNullOrUndefined)(Array.prototype.groupBy) && (Array.prototype.groupBy = function(r) {
|
|
841
|
+
if (this.length === 0)
|
|
842
|
+
return [];
|
|
843
|
+
const t = this.reduce((a, i) => {
|
|
844
|
+
const u = i[r];
|
|
845
|
+
return (a[u] = a[u] || []).push(i), a;
|
|
846
|
+
}, {});
|
|
847
|
+
return Object.entries(t).map(([a, i]) => ({
|
|
848
|
+
key: a,
|
|
849
|
+
items: i
|
|
850
|
+
}));
|
|
851
|
+
});
|
|
852
|
+
(0, A.isNullOrUndefined)(Array.prototype.removeByKey) && (Array.prototype.removeByKey = function(r, t) {
|
|
853
|
+
this.filter((a) => !r.includes(a[t])).forEach((a) => this.remove(a));
|
|
854
|
+
});
|
|
855
|
+
(0, A.isNullOrUndefined)(Array.prototype.trimNotDefinedValuesBy) && (Array.prototype.trimNotDefinedValuesBy = function(r) {
|
|
856
|
+
const t = [];
|
|
857
|
+
let a = 0;
|
|
858
|
+
for (; ; ) {
|
|
859
|
+
const i = r(this[a]);
|
|
860
|
+
if ((0, A.isNullOrUndefined)(i))
|
|
861
|
+
t.push(a++);
|
|
862
|
+
else
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
for (a = this.length - 1; ; ) {
|
|
866
|
+
const i = r(this[a]);
|
|
867
|
+
if ((0, A.isNullOrUndefined)(i))
|
|
868
|
+
t.push(a--);
|
|
869
|
+
else
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
return this.filter((i, u) => !t.includes(u));
|
|
873
|
+
});
|
|
874
|
+
var ee = {};
|
|
875
|
+
Object.defineProperty(ee, "__esModule", { value: !0 });
|
|
876
|
+
ee.getClassName = void 0;
|
|
877
|
+
const Ge = U(), Lr = (r) => r.filter((t) => !(0, Ge.isNullOrUndefined)(t)).filter((t) => !(0, Ge.isStringEmpty)(t)).filter((t, a, i) => i.indexOf(t) === a).join(" ");
|
|
878
|
+
ee.getClassName = Lr;
|
|
879
|
+
var T = {};
|
|
880
|
+
Object.defineProperty(T, "__esModule", { value: !0 });
|
|
881
|
+
T.emptyFn = T.withDelay = T.delayReject = T.delayResolve = void 0;
|
|
882
|
+
const qr = (r, t) => new Promise((a) => setTimeout(() => a(t), r));
|
|
883
|
+
T.delayResolve = qr;
|
|
884
|
+
const xr = (r, t) => new Promise((a, i) => setTimeout(() => i(t), r));
|
|
885
|
+
T.delayReject = xr;
|
|
886
|
+
const Kr = (r, t) => setTimeout(t, r);
|
|
887
|
+
T.withDelay = Kr;
|
|
888
|
+
const Gr = () => {
|
|
889
|
+
};
|
|
890
|
+
T.emptyFn = Gr;
|
|
891
|
+
var re = {};
|
|
892
|
+
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
893
|
+
re.generateGuid = void 0;
|
|
894
|
+
const E = [], Hr = () => {
|
|
895
|
+
if (E.length === 0)
|
|
896
|
+
for (let r = 0; r < 256; r++)
|
|
897
|
+
E[r] = (r < 16 ? "0" : "") + r.toString(16);
|
|
898
|
+
}, Jr = () => {
|
|
899
|
+
const r = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, a = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
|
|
900
|
+
return E.length === 0 && Hr(), E[r & 255] + E[r >> 8 & 255] + E[r >> 16 & 255] + E[r >> 24 & 255] + "-" + E[t & 255] + E[t >> 8 & 255] + "-" + E[t >> 16 & 15 | 64] + E[t >> 24 & 255] + "-" + E[a & 63 | 128] + E[a >> 8 & 255] + "-" + E[a >> 16 & 255] + E[a >> 24 & 255] + E[i & 255] + E[i >> 8 & 255] + E[i >> 16 & 255] + E[i >> 24 & 255];
|
|
901
|
+
};
|
|
902
|
+
re.generateGuid = Jr;
|
|
903
|
+
var te = {};
|
|
904
|
+
Object.defineProperty(te, "__esModule", { value: !0 });
|
|
905
|
+
te.localStorage = void 0;
|
|
906
|
+
const L = U(), ye = window.localStorage, Xr = (r) => {
|
|
907
|
+
if ((0, L.isStringEmpty)(r))
|
|
908
|
+
return !1;
|
|
909
|
+
const t = ye.getItem(r);
|
|
910
|
+
return !(0, L.isNullOrEmpty)(t);
|
|
911
|
+
}, zr = (r) => {
|
|
912
|
+
if ((0, L.isStringEmpty)(r))
|
|
913
|
+
return;
|
|
914
|
+
const t = ye.getItem(r);
|
|
915
|
+
if (!(0, L.isNullOrEmpty)(t))
|
|
916
|
+
return JSON.parse(t);
|
|
917
|
+
}, Zr = (r, t) => {
|
|
918
|
+
if ((0, L.isStringEmpty)(r))
|
|
919
|
+
return;
|
|
920
|
+
const a = JSON.stringify(t);
|
|
921
|
+
ye.setItem(r, a);
|
|
922
|
+
};
|
|
923
|
+
te.localStorage = {
|
|
924
|
+
hasRecord: Xr,
|
|
925
|
+
getRecord: zr,
|
|
926
|
+
saveRecord: Zr
|
|
927
|
+
};
|
|
928
|
+
var er = {};
|
|
929
|
+
(function(r) {
|
|
930
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.getPropertyValueWithCheck = r.getPropertyValue = r.ensurePropertyDefined = void 0;
|
|
931
|
+
const t = U(), a = (s, f) => {
|
|
932
|
+
if ((0, t.isNullOrUndefined)(s))
|
|
933
|
+
throw new Error('Parameter "object" is not defined.');
|
|
934
|
+
if ((0, t.isNullOrUndefined)(f) || (0, t.isStringEmpty)(f))
|
|
935
|
+
throw new Error('Parameter "propertyName" is not defined');
|
|
936
|
+
if (!Object.keys(s).includes(f))
|
|
937
|
+
throw new Error(`Key "${f}" is not defined in object`);
|
|
938
|
+
};
|
|
939
|
+
r.ensurePropertyDefined = a;
|
|
940
|
+
const i = (s, f) => {
|
|
941
|
+
if ((0, t.isNullOrUndefined)(s))
|
|
942
|
+
throw new Error('Parameter "object" is not defined.');
|
|
943
|
+
if ((0, t.isNullOrUndefined)(f) || (0, t.isStringEmpty)(f))
|
|
944
|
+
throw new Error('Parameter "propertyName" is not defined');
|
|
945
|
+
return Object.keys(s).includes(f) ? s[f] : void 0;
|
|
946
|
+
};
|
|
947
|
+
r.getPropertyValue = i;
|
|
948
|
+
const u = (s, f, l = !0) => {
|
|
949
|
+
(0, r.ensurePropertyDefined)(s, f);
|
|
950
|
+
const g = s[f];
|
|
951
|
+
if (l && (0, t.isNullOrUndefined)(g))
|
|
952
|
+
throw new Error(`Property "${f}" is not defined as requested type in object.`);
|
|
953
|
+
return g;
|
|
954
|
+
};
|
|
955
|
+
r.getPropertyValueWithCheck = u;
|
|
956
|
+
})(er);
|
|
957
|
+
(function(r) {
|
|
958
|
+
var t = C && C.__createBinding || (Object.create ? function(i, u, s, f) {
|
|
959
|
+
f === void 0 && (f = s);
|
|
960
|
+
var l = Object.getOwnPropertyDescriptor(u, s);
|
|
961
|
+
(!l || ("get" in l ? !u.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
962
|
+
return u[s];
|
|
963
|
+
} }), Object.defineProperty(i, f, l);
|
|
964
|
+
} : function(i, u, s, f) {
|
|
965
|
+
f === void 0 && (f = s), i[f] = u[s];
|
|
966
|
+
}), a = C && C.__exportStar || function(i, u) {
|
|
967
|
+
for (var s in i)
|
|
968
|
+
s !== "default" && !Object.prototype.hasOwnProperty.call(u, s) && t(u, i, s);
|
|
969
|
+
};
|
|
970
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), a(Xe, r), a(Q, r), a(U(), r), a(ee, r), a(T, r), a(re, r), a(te, r), a(er, r);
|
|
971
|
+
})(D);
|
|
972
|
+
Y.Small, Y.Normal, Y.Medium, Y.Large;
|
|
973
|
+
const at = (r, t) => {
|
|
974
|
+
const a = !D.isNullOrUndefined(t) && t.status !== X.None, i = Qr(r, t), u = (t == null ? void 0 : t.messages) ?? [];
|
|
975
|
+
return [a, i, u];
|
|
976
|
+
}, Qr = (r, t) => {
|
|
977
|
+
if (D.isNullOrUndefined(t))
|
|
978
|
+
return D.isNullOrUndefined(r) ? "" : `is-${r}`;
|
|
979
|
+
const { status: a } = t;
|
|
980
|
+
switch (a) {
|
|
981
|
+
case X.Valid:
|
|
982
|
+
return "is-success";
|
|
983
|
+
case X.Invalid:
|
|
984
|
+
return "is-danger";
|
|
985
|
+
}
|
|
986
|
+
return D.isNullOrUndefined(r) ? "" : `is-${r}`;
|
|
987
|
+
}, ot = (r) => Object.entries(r).reduce((a, [i, u]) => {
|
|
988
|
+
if (D.isNullOrUndefined(u))
|
|
989
|
+
return a;
|
|
990
|
+
const s = i.startsWith("data-") ? i : `data-${i}`;
|
|
991
|
+
return a[s] = u, a;
|
|
992
|
+
}, {});
|
|
993
|
+
const ut = (r, t, a, i, u) => {
|
|
994
|
+
const s = ge(
|
|
995
|
+
(f) => {
|
|
996
|
+
if (t) {
|
|
997
|
+
const l = f.target;
|
|
998
|
+
if (D.isNullOrUndefined(l))
|
|
999
|
+
return;
|
|
1000
|
+
const g = l.closest(r);
|
|
1001
|
+
D.isNull(g) && a();
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
[t, r, a, u]
|
|
1005
|
+
);
|
|
1006
|
+
Je(() => D.isNullOrUndefined(i) || i === !0 ? (document.addEventListener("click", s), () => document.removeEventListener("click", s)) : () => {
|
|
1007
|
+
}, [i, s]);
|
|
1008
|
+
}, et = 30, st = (r, t = et, a = 1, i = []) => {
|
|
1009
|
+
const [u, s] = $r(a), f = Be(() => Math.ceil(r / t), [t, r]), l = ge((v) => s(v), [s]), g = ge(
|
|
1010
|
+
(v) => {
|
|
1011
|
+
const b = t, P = (u - 1) * t;
|
|
1012
|
+
return v.slice(P, P + b);
|
|
1013
|
+
},
|
|
1014
|
+
[t, u]
|
|
1015
|
+
), c = Be(() => ({
|
|
1016
|
+
currentPage: u,
|
|
1017
|
+
pagesCount: f,
|
|
1018
|
+
onPageChange: l
|
|
1019
|
+
}), [u, f, l]);
|
|
1020
|
+
return Je(() => s(1), i), [c, g];
|
|
1021
|
+
}, ft = (r, t, a = 3) => r < 0 || t <= 0 || r > t ? [] : [
|
|
1022
|
+
...new Array(a).fill(r).map((i, u) => r - u - 1).filter((i) => i > 0 && i < r).reverse(),
|
|
1023
|
+
r,
|
|
1024
|
+
...new Array(a).fill(r).map((i, u) => r + u + 1).filter((i) => i > 0 && i > r && i <= t)
|
|
1025
|
+
];
|
|
1026
|
+
var rt = /* @__PURE__ */ ((r) => (r.default = "", r.boxed = "is-boxed", r.radioButton = "is-toggle", r.radioButtonRounded = "is-toggle is-toggle-rounded", r))(rt || {}), tt = /* @__PURE__ */ ((r) => (r.left = "", r.center = "is-centered", r.right = "is-right", r))(tt || {});
|
|
1027
|
+
var X = /* @__PURE__ */ ((r) => (r.None = "none", r.Valid = "valid", r.Invalid = "invalid", r))(X || {}), Y = /* @__PURE__ */ ((r) => (r.Small = "small", r.Normal = "normal", r.Medium = "medium", r.Large = "large", r))(Y || {}), nt = /* @__PURE__ */ ((r) => (r.Default = "default", r.Primary = "primary", r.Link = "link", r.Info = "info", r.Success = "success", r.Warning = "warning", r.Danger = "danger", r))(nt || {});
|
|
1028
|
+
export {
|
|
1029
|
+
nt as ElementColor,
|
|
1030
|
+
Y as ElementSize,
|
|
1031
|
+
tt as TabsPosition,
|
|
1032
|
+
rt as TabsStyle,
|
|
1033
|
+
X as ValidationStatus,
|
|
1034
|
+
ft as generatePageNumbers,
|
|
1035
|
+
Qr as getStyleClassName,
|
|
1036
|
+
at as getValidationValues,
|
|
1037
|
+
ot as mapDataAttributes,
|
|
1038
|
+
ut as useComponentOutsideClick,
|
|
1039
|
+
st as usePagination
|
|
1040
|
+
};
|