@web-fuse/wf-components 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Display/Card/LightCard.Title.d.ts +1 -4
- package/dist/Display/CodeBlock/CodeBlockCopy.d.ts +1 -1
- package/dist/Display/CodeBlock/index.d.ts +1 -0
- package/dist/Display/CodeBlock/languages.d.ts +1 -0
- package/dist/Display/Collapse/Collapse.d.ts +1 -1
- package/dist/Display/Collapse/CollapseBase.d.ts +5 -5
- package/dist/Display/Collapse/CollapseContent.d.ts +2 -2
- package/dist/Display/Selector/style.d.ts +2 -2
- package/dist/Form/Buttons.d.ts +8 -8
- package/dist/Form/HoverLabel.d.ts +1 -1
- package/dist/Form/Input.d.ts +1 -1
- package/dist/Layout/Navbar/style.d.ts +1 -1
- package/dist/index.cjs.js +33 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +212 -203
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
@@ -23,14 +23,14 @@ function _r() {
|
|
23
23
|
return Ce;
|
24
24
|
an = 1;
|
25
25
|
var e = Ve, o = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
26
|
-
function c(i,
|
26
|
+
function c(i, d, g) {
|
27
27
|
var p, u = {}, h = null, w = null;
|
28
|
-
g !== void 0 && (h = "" + g),
|
29
|
-
for (p in
|
30
|
-
r.call(
|
28
|
+
g !== void 0 && (h = "" + g), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (w = d.ref);
|
29
|
+
for (p in d)
|
30
|
+
r.call(d, p) && !l.hasOwnProperty(p) && (u[p] = d[p]);
|
31
31
|
if (i && i.defaultProps)
|
32
|
-
for (p in
|
33
|
-
u[p] === void 0 && (u[p] =
|
32
|
+
for (p in d = i.defaultProps, d)
|
33
|
+
u[p] === void 0 && (u[p] = d[p]);
|
34
34
|
return { $$typeof: o, type: i, key: h, ref: w, props: u, _owner: t.current };
|
35
35
|
}
|
36
36
|
return Ce.Fragment = n, Ce.jsx = c, Ce.jsxs = c, Ce;
|
@@ -48,8 +48,8 @@ var Me = {};
|
|
48
48
|
var tn;
|
49
49
|
function Wr() {
|
50
50
|
return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
|
51
|
-
var e = Ve, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), i = Symbol.for("react.context"),
|
52
|
-
function
|
51
|
+
var e = Ve, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), i = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), v = Symbol.iterator, m = "@@iterator";
|
52
|
+
function s(a) {
|
53
53
|
if (a === null || typeof a != "object")
|
54
54
|
return null;
|
55
55
|
var b = v && a[v] || a[m];
|
@@ -76,7 +76,7 @@ function Wr() {
|
|
76
76
|
var O = !1, _ = !1, ee = !1, ce = !1, ue = !1, ie;
|
77
77
|
ie = Symbol.for("react.module.reference");
|
78
78
|
function ge(a) {
|
79
|
-
return !!(typeof a == "string" || typeof a == "function" || a === r || a === l || ue || a === t || a === g || a === p || ce || a === w || O || _ || ee || typeof a == "object" && a !== null && (a.$$typeof === h || a.$$typeof === u || a.$$typeof === c || a.$$typeof === i || a.$$typeof ===
|
79
|
+
return !!(typeof a == "string" || typeof a == "function" || a === r || a === l || ue || a === t || a === g || a === p || ce || a === w || O || _ || ee || typeof a == "object" && a !== null && (a.$$typeof === h || a.$$typeof === u || a.$$typeof === c || a.$$typeof === i || a.$$typeof === d || // This needs to include all possible module reference object
|
80
80
|
// types supported by any Flight configuration anywhere since
|
81
81
|
// we don't know which Flight build this will end up being used
|
82
82
|
// with.
|
@@ -121,7 +121,7 @@ function Wr() {
|
|
121
121
|
case c:
|
122
122
|
var k = a;
|
123
123
|
return se(k._context) + ".Provider";
|
124
|
-
case
|
124
|
+
case d:
|
125
125
|
return pe(a, a.render, "ForwardRef");
|
126
126
|
case u:
|
127
127
|
var A = a.displayName || null;
|
@@ -311,7 +311,7 @@ function Wr() {
|
|
311
311
|
}
|
312
312
|
if (typeof a == "object")
|
313
313
|
switch (a.$$typeof) {
|
314
|
-
case
|
314
|
+
case d:
|
315
315
|
return no(a.render);
|
316
316
|
case u:
|
317
317
|
return ae(a.type, b, k);
|
@@ -548,7 +548,7 @@ Check the top-level render call using <` + k + ">.");
|
|
548
548
|
else if (co(a))
|
549
549
|
a._store && (a._store.validated = !0);
|
550
550
|
else if (a) {
|
551
|
-
var R =
|
551
|
+
var R = s(a);
|
552
552
|
if (typeof R == "function" && R !== a.entries)
|
553
553
|
for (var B = R.call(a), E; !(E = B.next()).done; )
|
554
554
|
co(E.value) && en(E.value, b);
|
@@ -563,7 +563,7 @@ Check the top-level render call using <` + k + ">.");
|
|
563
563
|
var k;
|
564
564
|
if (typeof b == "function")
|
565
565
|
k = b.propTypes;
|
566
|
-
else if (typeof b == "object" && (b.$$typeof ===
|
566
|
+
else if (typeof b == "object" && (b.$$typeof === d || // Note: Memo only checks outer props here.
|
567
567
|
// Inner props are checked in the reconciler.
|
568
568
|
b.$$typeof === u))
|
569
569
|
k = b.propTypes;
|
@@ -10693,12 +10693,12 @@ function Oo(e) {
|
|
10693
10693
|
function h(w) {
|
10694
10694
|
if (!(!w || typeof w == "string"))
|
10695
10695
|
for (var v = 0, m = w.length; v < m; v++) {
|
10696
|
-
var
|
10697
|
-
if (
|
10698
|
-
h(
|
10696
|
+
var s = w[v];
|
10697
|
+
if (s.type !== "code") {
|
10698
|
+
h(s.content);
|
10699
10699
|
continue;
|
10700
10700
|
}
|
10701
|
-
var y =
|
10701
|
+
var y = s.content[1], S = s.content[3];
|
10702
10702
|
if (y && S && y.type === "code-language" && S.type === "code-block" && typeof y.content == "string") {
|
10703
10703
|
var z = y.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
10704
10704
|
z = (/[a-z][\w-]*/i.exec(z) || [""])[0].toLowerCase();
|
@@ -10711,9 +10711,9 @@ function Oo(e) {
|
|
10711
10711
|
}), o.hooks.add("wrap", function(u) {
|
10712
10712
|
if (u.type === "code-block") {
|
10713
10713
|
for (var h = "", w = 0, v = u.classes.length; w < v; w++) {
|
10714
|
-
var m = u.classes[w],
|
10715
|
-
if (
|
10716
|
-
h =
|
10714
|
+
var m = u.classes[w], s = /language-(.+)/.exec(m);
|
10715
|
+
if (s) {
|
10716
|
+
h = s[1];
|
10717
10717
|
break;
|
10718
10718
|
}
|
10719
10719
|
}
|
@@ -10737,7 +10737,7 @@ function Oo(e) {
|
|
10737
10737
|
}
|
10738
10738
|
}
|
10739
10739
|
});
|
10740
|
-
var i = RegExp(o.languages.markup.tag.pattern.source, "gi"),
|
10740
|
+
var i = RegExp(o.languages.markup.tag.pattern.source, "gi"), d = {
|
10741
10741
|
amp: "&",
|
10742
10742
|
lt: "<",
|
10743
10743
|
gt: ">",
|
@@ -10750,8 +10750,8 @@ function Oo(e) {
|
|
10750
10750
|
var m;
|
10751
10751
|
return v[1] === "x" ? m = parseInt(v.slice(2), 16) : m = Number(v.slice(1)), g(m);
|
10752
10752
|
} else {
|
10753
|
-
var
|
10754
|
-
return
|
10753
|
+
var s = d[v];
|
10754
|
+
return s || w;
|
10755
10755
|
}
|
10756
10756
|
}), h;
|
10757
10757
|
}
|
@@ -11008,12 +11008,12 @@ function Wo(e) {
|
|
11008
11008
|
value: function(r, t, l, c) {
|
11009
11009
|
if (r.language === t) {
|
11010
11010
|
var i = r.tokenStack = [];
|
11011
|
-
r.code = r.code.replace(l, function(
|
11012
|
-
if (typeof c == "function" && !c(
|
11013
|
-
return
|
11011
|
+
r.code = r.code.replace(l, function(d) {
|
11012
|
+
if (typeof c == "function" && !c(d))
|
11013
|
+
return d;
|
11014
11014
|
for (var g = i.length, p; r.code.indexOf(p = n(t, g)) !== -1; )
|
11015
11015
|
++g;
|
11016
|
-
return i[g] =
|
11016
|
+
return i[g] = d, p;
|
11017
11017
|
}), r.grammar = o.languages.markup;
|
11018
11018
|
}
|
11019
11019
|
}
|
@@ -11030,25 +11030,25 @@ function Wo(e) {
|
|
11030
11030
|
return;
|
11031
11031
|
r.grammar = o.languages[t];
|
11032
11032
|
var l = 0, c = Object.keys(r.tokenStack);
|
11033
|
-
function i(
|
11034
|
-
for (var g = 0; g <
|
11035
|
-
var p =
|
11033
|
+
function i(d) {
|
11034
|
+
for (var g = 0; g < d.length && !(l >= c.length); g++) {
|
11035
|
+
var p = d[g];
|
11036
11036
|
if (typeof p == "string" || p.content && typeof p.content == "string") {
|
11037
11037
|
var u = c[l], h = r.tokenStack[u], w = typeof p == "string" ? p : p.content, v = n(t, u), m = w.indexOf(v);
|
11038
11038
|
if (m > -1) {
|
11039
11039
|
++l;
|
11040
|
-
var
|
11040
|
+
var s = w.substring(0, m), y = new o.Token(
|
11041
11041
|
t,
|
11042
11042
|
o.tokenize(h, r.grammar),
|
11043
11043
|
"language-" + t,
|
11044
11044
|
h
|
11045
11045
|
), S = w.substring(m + v.length), z = [];
|
11046
|
-
|
11046
|
+
s && z.push.apply(z, i([s])), z.push(y), S && z.push.apply(z, i([S])), typeof p == "string" ? d.splice.apply(d, [g, 1].concat(z)) : p.content = z;
|
11047
11047
|
}
|
11048
11048
|
} else
|
11049
11049
|
p.content && i(p.content);
|
11050
11050
|
}
|
11051
|
-
return
|
11051
|
+
return d;
|
11052
11052
|
}
|
11053
11053
|
i(r.tokens);
|
11054
11054
|
}
|
@@ -11276,7 +11276,7 @@ function Do(e) {
|
|
11276
11276
|
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
11277
11277
|
lookbehind: !0,
|
11278
11278
|
inside: o.languages.php
|
11279
|
-
},
|
11279
|
+
}, d = [
|
11280
11280
|
{
|
11281
11281
|
pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
|
11282
11282
|
alias: "nowdoc-string",
|
@@ -11326,7 +11326,7 @@ function Do(e) {
|
|
11326
11326
|
}
|
11327
11327
|
];
|
11328
11328
|
o.languages.insertBefore("php", "variable", {
|
11329
|
-
string:
|
11329
|
+
string: d,
|
11330
11330
|
attribute: {
|
11331
11331
|
pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
|
11332
11332
|
greedy: !0,
|
@@ -11337,7 +11337,7 @@ function Do(e) {
|
|
11337
11337
|
// inside can appear subset of php
|
11338
11338
|
inside: {
|
11339
11339
|
comment: n,
|
11340
|
-
string:
|
11340
|
+
string: d,
|
11341
11341
|
"attribute-class-name": [
|
11342
11342
|
{
|
11343
11343
|
pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
|
@@ -11537,20 +11537,20 @@ function at(e) {
|
|
11537
11537
|
function tt(e, o) {
|
11538
11538
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
11539
11539
|
if (n != null) {
|
11540
|
-
var r, t, l, c, i = [],
|
11540
|
+
var r, t, l, c, i = [], d = !0, g = !1;
|
11541
11541
|
try {
|
11542
11542
|
if (l = (n = n.call(e)).next, o === 0) {
|
11543
11543
|
if (Object(n) !== n)
|
11544
11544
|
return;
|
11545
|
-
|
11545
|
+
d = !1;
|
11546
11546
|
} else
|
11547
|
-
for (; !(
|
11547
|
+
for (; !(d = (r = l.call(n)).done) && (i.push(r.value), i.length !== o); d = !0)
|
11548
11548
|
;
|
11549
11549
|
} catch (p) {
|
11550
11550
|
g = !0, t = p;
|
11551
11551
|
} finally {
|
11552
11552
|
try {
|
11553
|
-
if (!
|
11553
|
+
if (!d && n.return != null && (c = n.return(), Object(c) !== c))
|
11554
11554
|
return;
|
11555
11555
|
} finally {
|
11556
11556
|
if (g)
|
@@ -11719,7 +11719,7 @@ function ht(e, o, n) {
|
|
11719
11719
|
}
|
11720
11720
|
function mt(e, o, n) {
|
11721
11721
|
e = G(e, 255), o = G(o, 255), n = G(n, 255);
|
11722
|
-
var r = Math.max(e, o, n), t = Math.min(e, o, n), l = 0, c = r, i = r - t,
|
11722
|
+
var r = Math.max(e, o, n), t = Math.min(e, o, n), l = 0, c = r, i = r - t, d = r === 0 ? 0 : i / r;
|
11723
11723
|
if (r === t)
|
11724
11724
|
l = 0;
|
11725
11725
|
else {
|
@@ -11736,11 +11736,11 @@ function mt(e, o, n) {
|
|
11736
11736
|
}
|
11737
11737
|
l /= 6;
|
11738
11738
|
}
|
11739
|
-
return { h: l, s, v: c };
|
11739
|
+
return { h: l, s: d, v: c };
|
11740
11740
|
}
|
11741
11741
|
function kt(e, o, n) {
|
11742
11742
|
e = G(e, 360) * 6, o = G(o, 100), n = G(n, 100);
|
11743
|
-
var r = Math.floor(e), t = e - r, l = n * (1 - o), c = n * (1 - t * o), i = n * (1 - (1 - t) * o),
|
11743
|
+
var r = Math.floor(e), t = e - r, l = n * (1 - o), c = n * (1 - t * o), i = n * (1 - (1 - t) * o), d = r % 6, g = [n, c, l, l, i, n][d], p = [i, n, n, c, l, l][d], u = [l, l, i, n, n, c][d];
|
11744
11744
|
return { r: g * 255, g: p * 255, b: u * 255 };
|
11745
11745
|
}
|
11746
11746
|
function yt(e, o, n, r) {
|
@@ -12043,10 +12043,10 @@ function wo(e) {
|
|
12043
12043
|
}
|
12044
12044
|
n.push(Pe(r));
|
12045
12045
|
for (var i = 1; i <= _n; i += 1) {
|
12046
|
-
var
|
12047
|
-
h: gn(
|
12048
|
-
s: pn(
|
12049
|
-
v: bn(
|
12046
|
+
var d = un(r), g = Pe(Te({
|
12047
|
+
h: gn(d, i),
|
12048
|
+
s: pn(d, i),
|
12049
|
+
v: bn(d, i)
|
12050
12050
|
}));
|
12051
12051
|
n.push(g);
|
12052
12052
|
}
|
@@ -12136,8 +12136,8 @@ function jn(e) {
|
|
12136
12136
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
12137
12137
|
if (!Wn())
|
12138
12138
|
return null;
|
12139
|
-
var n = o.csp, r = o.prepend, t = o.priority, l = t === void 0 ? 0 : t, c = Ft(r), i = c === "prependQueue",
|
12140
|
-
|
12139
|
+
var n = o.csp, r = o.prepend, t = o.priority, l = t === void 0 ? 0 : t, c = Ft(r), i = c === "prependQueue", d = document.createElement("style");
|
12140
|
+
d.setAttribute(hn, c), i && l && d.setAttribute(mn, "".concat(l)), n != null && n.nonce && (d.nonce = n == null ? void 0 : n.nonce), d.innerHTML = e;
|
12141
12141
|
var g = No(o), p = g.firstChild;
|
12142
12142
|
if (r) {
|
12143
12143
|
if (i) {
|
@@ -12148,12 +12148,12 @@ function jn(e) {
|
|
12148
12148
|
return l >= w;
|
12149
12149
|
});
|
12150
12150
|
if (u.length)
|
12151
|
-
return g.insertBefore(
|
12151
|
+
return g.insertBefore(d, u[u.length - 1].nextSibling), d;
|
12152
12152
|
}
|
12153
|
-
g.insertBefore(
|
12153
|
+
g.insertBefore(d, p);
|
12154
12154
|
} else
|
12155
|
-
g.appendChild(
|
12156
|
-
return
|
12155
|
+
g.appendChild(d);
|
12156
|
+
return d;
|
12157
12157
|
}
|
12158
12158
|
function Ht(e) {
|
12159
12159
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = No(o);
|
@@ -12175,8 +12175,8 @@ function Bt(e, o) {
|
|
12175
12175
|
Ot(r, l);
|
12176
12176
|
var c = Ht(o, l);
|
12177
12177
|
if (c) {
|
12178
|
-
var i,
|
12179
|
-
if ((i = l.csp) !== null && i !== void 0 && i.nonce && c.nonce !== ((
|
12178
|
+
var i, d;
|
12179
|
+
if ((i = l.csp) !== null && i !== void 0 && i.nonce && c.nonce !== ((d = l.csp) === null || d === void 0 ? void 0 : d.nonce)) {
|
12180
12180
|
var g;
|
12181
12181
|
c.nonce = (g = l.csp) === null || g === void 0 ? void 0 : g.nonce;
|
12182
12182
|
}
|
@@ -12355,7 +12355,7 @@ function Gt() {
|
|
12355
12355
|
return Y({}, Ee);
|
12356
12356
|
}
|
12357
12357
|
var Qe = function(o) {
|
12358
|
-
var n = o.icon, r = o.className, t = o.onClick, l = o.style, c = o.primaryColor, i = o.secondaryColor,
|
12358
|
+
var n = o.icon, r = o.className, t = o.onClick, l = o.style, c = o.primaryColor, i = o.secondaryColor, d = Io(o, Vt), g = M.useRef(), p = Ee;
|
12359
12359
|
if (c && (p = {
|
12360
12360
|
primaryColor: c,
|
12361
12361
|
secondaryColor: i || In(c)
|
@@ -12373,7 +12373,7 @@ var Qe = function(o) {
|
|
12373
12373
|
height: "1em",
|
12374
12374
|
fill: "currentColor",
|
12375
12375
|
"aria-hidden": "true"
|
12376
|
-
},
|
12376
|
+
}, d), {}, {
|
12377
12377
|
ref: g
|
12378
12378
|
}));
|
12379
12379
|
};
|
@@ -12395,12 +12395,12 @@ function Kt() {
|
|
12395
12395
|
var qt = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
12396
12396
|
Un(Tt.primary);
|
12397
12397
|
var Je = /* @__PURE__ */ M.forwardRef(function(e, o) {
|
12398
|
-
var n = e.className, r = e.icon, t = e.spin, l = e.rotate, c = e.tabIndex, i = e.onClick,
|
12398
|
+
var n = e.className, r = e.icon, t = e.spin, l = e.rotate, c = e.tabIndex, i = e.onClick, d = e.twoToneColor, g = Io(e, qt), p = M.useContext(Lo), u = p.prefixCls, h = u === void 0 ? "anticon" : u, w = p.rootClassName, v = yo(w, h, Ye(Ye({}, "".concat(h, "-").concat(r.name), !!r.name), "".concat(h, "-spin"), !!t || r.name === "loading"), n), m = c;
|
12399
12399
|
m === void 0 && i && (m = -1);
|
12400
|
-
var
|
12400
|
+
var s = l ? {
|
12401
12401
|
msTransform: "rotate(".concat(l, "deg)"),
|
12402
12402
|
transform: "rotate(".concat(l, "deg)")
|
12403
|
-
} : void 0, y = Nn(
|
12403
|
+
} : void 0, y = Nn(d), S = Re(y, 2), z = S[0], O = S[1];
|
12404
12404
|
return /* @__PURE__ */ M.createElement("span", Z({
|
12405
12405
|
role: "img",
|
12406
12406
|
"aria-label": r.name
|
@@ -12413,7 +12413,7 @@ var Je = /* @__PURE__ */ M.forwardRef(function(e, o) {
|
|
12413
12413
|
icon: r,
|
12414
12414
|
primaryColor: z,
|
12415
12415
|
secondaryColor: O,
|
12416
|
-
style:
|
12416
|
+
style: s
|
12417
12417
|
}));
|
12418
12418
|
});
|
12419
12419
|
Je.displayName = "AntdIcon";
|
@@ -12485,29 +12485,29 @@ function hl() {
|
|
12485
12485
|
if (wn)
|
12486
12486
|
return F;
|
12487
12487
|
wn = 1;
|
12488
|
-
var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), i = Symbol.for("react.server_context"),
|
12488
|
+
var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), i = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), v;
|
12489
12489
|
v = Symbol.for("react.module.reference");
|
12490
|
-
function m(
|
12491
|
-
if (typeof
|
12492
|
-
var y =
|
12490
|
+
function m(s) {
|
12491
|
+
if (typeof s == "object" && s !== null) {
|
12492
|
+
var y = s.$$typeof;
|
12493
12493
|
switch (y) {
|
12494
12494
|
case e:
|
12495
|
-
switch (
|
12495
|
+
switch (s = s.type, s) {
|
12496
12496
|
case n:
|
12497
12497
|
case t:
|
12498
12498
|
case r:
|
12499
12499
|
case g:
|
12500
12500
|
case p:
|
12501
|
-
return
|
12501
|
+
return s;
|
12502
12502
|
default:
|
12503
|
-
switch (
|
12503
|
+
switch (s = s && s.$$typeof, s) {
|
12504
12504
|
case i:
|
12505
12505
|
case c:
|
12506
|
-
case
|
12506
|
+
case d:
|
12507
12507
|
case h:
|
12508
12508
|
case u:
|
12509
12509
|
case l:
|
12510
|
-
return
|
12510
|
+
return s;
|
12511
12511
|
default:
|
12512
12512
|
return y;
|
12513
12513
|
}
|
@@ -12517,36 +12517,36 @@ function hl() {
|
|
12517
12517
|
}
|
12518
12518
|
}
|
12519
12519
|
}
|
12520
|
-
return F.ContextConsumer = c, F.ContextProvider = l, F.Element = e, F.ForwardRef =
|
12520
|
+
return F.ContextConsumer = c, F.ContextProvider = l, F.Element = e, F.ForwardRef = d, F.Fragment = n, F.Lazy = h, F.Memo = u, F.Portal = o, F.Profiler = t, F.StrictMode = r, F.Suspense = g, F.SuspenseList = p, F.isAsyncMode = function() {
|
12521
12521
|
return !1;
|
12522
12522
|
}, F.isConcurrentMode = function() {
|
12523
12523
|
return !1;
|
12524
|
-
}, F.isContextConsumer = function(
|
12525
|
-
return m(
|
12526
|
-
}, F.isContextProvider = function(
|
12527
|
-
return m(
|
12528
|
-
}, F.isElement = function(
|
12529
|
-
return typeof
|
12530
|
-
}, F.isForwardRef = function(
|
12531
|
-
return m(
|
12532
|
-
}, F.isFragment = function(
|
12533
|
-
return m(
|
12534
|
-
}, F.isLazy = function(
|
12535
|
-
return m(
|
12536
|
-
}, F.isMemo = function(
|
12537
|
-
return m(
|
12538
|
-
}, F.isPortal = function(
|
12539
|
-
return m(
|
12540
|
-
}, F.isProfiler = function(
|
12541
|
-
return m(
|
12542
|
-
}, F.isStrictMode = function(
|
12543
|
-
return m(
|
12544
|
-
}, F.isSuspense = function(
|
12545
|
-
return m(
|
12546
|
-
}, F.isSuspenseList = function(
|
12547
|
-
return m(
|
12548
|
-
}, F.isValidElementType = function(
|
12549
|
-
return typeof
|
12524
|
+
}, F.isContextConsumer = function(s) {
|
12525
|
+
return m(s) === c;
|
12526
|
+
}, F.isContextProvider = function(s) {
|
12527
|
+
return m(s) === l;
|
12528
|
+
}, F.isElement = function(s) {
|
12529
|
+
return typeof s == "object" && s !== null && s.$$typeof === e;
|
12530
|
+
}, F.isForwardRef = function(s) {
|
12531
|
+
return m(s) === d;
|
12532
|
+
}, F.isFragment = function(s) {
|
12533
|
+
return m(s) === n;
|
12534
|
+
}, F.isLazy = function(s) {
|
12535
|
+
return m(s) === h;
|
12536
|
+
}, F.isMemo = function(s) {
|
12537
|
+
return m(s) === u;
|
12538
|
+
}, F.isPortal = function(s) {
|
12539
|
+
return m(s) === o;
|
12540
|
+
}, F.isProfiler = function(s) {
|
12541
|
+
return m(s) === t;
|
12542
|
+
}, F.isStrictMode = function(s) {
|
12543
|
+
return m(s) === r;
|
12544
|
+
}, F.isSuspense = function(s) {
|
12545
|
+
return m(s) === g;
|
12546
|
+
}, F.isSuspenseList = function(s) {
|
12547
|
+
return m(s) === p;
|
12548
|
+
}, F.isValidElementType = function(s) {
|
12549
|
+
return typeof s == "string" || typeof s == "function" || s === n || s === t || s === r || s === g || s === p || s === w || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === u || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || s.$$typeof === v || s.getModuleId !== void 0);
|
12550
12550
|
}, F.typeOf = m, F;
|
12551
12551
|
}
|
12552
12552
|
var H = {};
|
@@ -12562,10 +12562,10 @@ var H = {};
|
|
12562
12562
|
var Sn;
|
12563
12563
|
function ml() {
|
12564
12564
|
return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
|
12565
|
-
var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), i = Symbol.for("react.server_context"),
|
12565
|
+
var e = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), t = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), i = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), v = !1, m = !1, s = !1, y = !1, S = !1, z;
|
12566
12566
|
z = Symbol.for("react.module.reference");
|
12567
12567
|
function O(x) {
|
12568
|
-
return !!(typeof x == "string" || typeof x == "function" || x === n || x === t || S || x === r || x === g || x === p || y || x === w || v || m ||
|
12568
|
+
return !!(typeof x == "string" || typeof x == "function" || x === n || x === t || S || x === r || x === g || x === p || y || x === w || v || m || s || typeof x == "object" && x !== null && (x.$$typeof === h || x.$$typeof === u || x.$$typeof === l || x.$$typeof === c || x.$$typeof === d || // This needs to include all possible module reference object
|
12569
12569
|
// types supported by any Flight configuration anywhere since
|
12570
12570
|
// we don't know which Flight build this will end up being used
|
12571
12571
|
// with.
|
@@ -12589,7 +12589,7 @@ function ml() {
|
|
12589
12589
|
switch (Ae) {
|
12590
12590
|
case i:
|
12591
12591
|
case c:
|
12592
|
-
case
|
12592
|
+
case d:
|
12593
12593
|
case h:
|
12594
12594
|
case u:
|
12595
12595
|
case l:
|
@@ -12603,7 +12603,7 @@ function ml() {
|
|
12603
12603
|
}
|
12604
12604
|
}
|
12605
12605
|
}
|
12606
|
-
var ee = c, ce = l, ue = e, ie =
|
12606
|
+
var ee = c, ce = l, ue = e, ie = d, ge = n, pe = h, se = u, L = o, P = t, X = r, Oe = g, Be = p, ye = !1, we = !1;
|
12607
12607
|
function _e(x) {
|
12608
12608
|
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
12609
12609
|
}
|
@@ -12620,7 +12620,7 @@ function ml() {
|
|
12620
12620
|
return typeof x == "object" && x !== null && x.$$typeof === e;
|
12621
12621
|
}
|
12622
12622
|
function eo(x) {
|
12623
|
-
return _(x) ===
|
12623
|
+
return _(x) === d;
|
12624
12624
|
}
|
12625
12625
|
function Se(x) {
|
12626
12626
|
return _(x) === n;
|
@@ -12676,9 +12676,9 @@ var yl = function(o, n) {
|
|
12676
12676
|
});
|
12677
12677
|
});
|
12678
12678
|
}, vl = ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"], Qn = /* @__PURE__ */ M.forwardRef(function(e, o) {
|
12679
|
-
var n = e.className, r = e.component, t = e.viewBox, l = e.spin, c = e.rotate, i = e.tabIndex,
|
12679
|
+
var n = e.className, r = e.component, t = e.viewBox, l = e.spin, c = e.rotate, i = e.tabIndex, d = e.onClick, g = e.children, p = Io(e, vl), u = M.useRef(), h = Sl(u, o);
|
12680
12680
|
xo(!!(r || g), "Should have `component` prop or `children`."), Pn(u);
|
12681
|
-
var w = M.useContext(Lo), v = w.prefixCls, m = v === void 0 ? "anticon" : v,
|
12681
|
+
var w = M.useContext(Lo), v = w.prefixCls, m = v === void 0 ? "anticon" : v, s = w.rootClassName, y = yo(s, m, n), S = yo(Ye({}, "".concat(m, "-spin"), !!l)), z = c ? {
|
12682
12682
|
msTransform: "rotate(".concat(c, "deg)"),
|
12683
12683
|
transform: "rotate(".concat(c, "deg)")
|
12684
12684
|
} : void 0, O = Y(Y({}, Pt), {}, {
|
@@ -12692,12 +12692,12 @@ var yl = function(o, n) {
|
|
12692
12692
|
viewBox: t
|
12693
12693
|
}), g)) : null;
|
12694
12694
|
}, ee = i;
|
12695
|
-
return ee === void 0 &&
|
12695
|
+
return ee === void 0 && d && (ee = -1), /* @__PURE__ */ M.createElement("span", Z({
|
12696
12696
|
role: "img"
|
12697
12697
|
}, p, {
|
12698
12698
|
ref: h,
|
12699
12699
|
tabIndex: ee,
|
12700
|
-
onClick:
|
12700
|
+
onClick: d,
|
12701
12701
|
className: y
|
12702
12702
|
}), _());
|
12703
12703
|
});
|
@@ -12740,10 +12740,10 @@ const xl = Qn, Jn = Co`
|
|
12740
12740
|
const [t, l] = K(0), c = de(() => t > 0 ? /* @__PURE__ */ f.jsx(Zt, {}) : t < 0 ? /* @__PURE__ */ f.jsx(rl, {}) : typeof (o == null ? void 0 : o.icon) > "u" ? /* @__PURE__ */ f.jsx(xl, { component: Ml }) : o.icon, [o == null ? void 0 : o.icon, t]), i = typeof (o == null ? void 0 : o.text) > "u" ? "Copy" : o.text;
|
12741
12741
|
if (!e)
|
12742
12742
|
return null;
|
12743
|
-
const
|
12743
|
+
const d = (...g) => {
|
12744
12744
|
g[1] === !0 ? l(1) : l(-1), setTimeout(l, 500, 0), r == null || r(...g);
|
12745
12745
|
};
|
12746
|
-
return /* @__PURE__ */ f.jsx(Br, { text: n, onCopy:
|
12746
|
+
return /* @__PURE__ */ f.jsx(Br, { text: n || "", onCopy: d, children: /* @__PURE__ */ f.jsx(Mo, { icon: c, iconPosition: "end", type: "primary", size: "small", children: i }) });
|
12747
12747
|
};
|
12748
12748
|
Object.entries(nt).forEach(([e, o]) => {
|
12749
12749
|
En.registerLanguage(e, o);
|
@@ -12759,7 +12759,7 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12759
12759
|
code: l,
|
12760
12760
|
copyConfig: c,
|
12761
12761
|
onCopy: i,
|
12762
|
-
style:
|
12762
|
+
style: d,
|
12763
12763
|
filename: g,
|
12764
12764
|
heading: p
|
12765
12765
|
}, u) => {
|
@@ -12774,7 +12774,7 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12774
12774
|
return y;
|
12775
12775
|
}
|
12776
12776
|
}, [e, h]), v = de(() => {
|
12777
|
-
if (!r)
|
12777
|
+
if (!(r && l))
|
12778
12778
|
return "";
|
12779
12779
|
if (t === "shellSession") {
|
12780
12780
|
const y = l.split(`
|
@@ -12787,20 +12787,20 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12787
12787
|
return S.join(`
|
12788
12788
|
`);
|
12789
12789
|
}
|
12790
|
-
return l;
|
12791
|
-
}, [r, l, t]), { background: m, border:
|
12790
|
+
return l || "";
|
12791
|
+
}, [r, l, t]), { background: m, border: s } = de(() => {
|
12792
12792
|
if (!io[w])
|
12793
12793
|
return { background: "", border: "" };
|
12794
12794
|
const y = io[w]['pre[class*="language-"]'], S = y.background || y.backgroundColor || "", z = y.border;
|
12795
12795
|
return { background: S, border: z };
|
12796
12796
|
}, [w]);
|
12797
|
-
return /* @__PURE__ */ f.jsxs(Hl, { ref: u, style: { background: m, ...
|
12797
|
+
return /* @__PURE__ */ f.jsxs(Hl, { ref: u, style: { background: m, ...d }, children: [
|
12798
12798
|
/* @__PURE__ */ f.jsx(
|
12799
12799
|
Cl,
|
12800
12800
|
{
|
12801
12801
|
filename: g,
|
12802
12802
|
heading: p,
|
12803
|
-
border:
|
12803
|
+
border: s,
|
12804
12804
|
headerExtra: /* @__PURE__ */ f.jsx(Tl, { showCopy: r, copyConfig: c, text: v, onCopy: i })
|
12805
12805
|
}
|
12806
12806
|
),
|
@@ -12812,7 +12812,7 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12812
12812
|
showLineNumbers: n,
|
12813
12813
|
style: io[w],
|
12814
12814
|
language: t || "markdown",
|
12815
|
-
children: l
|
12815
|
+
children: l || ""
|
12816
12816
|
}
|
12817
12817
|
)
|
12818
12818
|
] });
|
@@ -12853,26 +12853,26 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12853
12853
|
style: l,
|
12854
12854
|
width: c,
|
12855
12855
|
children: i
|
12856
|
-
},
|
12856
|
+
}, d) => {
|
12857
12857
|
const { token: g } = j.useToken(), [p, u] = K(0), [h, w] = K(!1), v = Ke(null), m = () => {
|
12858
12858
|
var z;
|
12859
|
-
return u((z = v.current) == null ? void 0 : z.offsetHeight);
|
12859
|
+
return u(((z = v.current) == null ? void 0 : z.offsetHeight) || 0);
|
12860
12860
|
};
|
12861
|
-
Cn(
|
12861
|
+
Cn(d, () => ({
|
12862
12862
|
calculateHeight: m
|
12863
12863
|
}));
|
12864
|
-
const
|
12864
|
+
const s = mo(() => {
|
12865
12865
|
m(), w(!0), o == null || o(!0);
|
12866
12866
|
}, [o]), y = mo(() => {
|
12867
12867
|
w(!1), o == null || o(!1);
|
12868
12868
|
}, [o]), S = () => {
|
12869
|
-
e === void 0 ? h ? y() :
|
12869
|
+
e === void 0 ? h ? y() : s() : o == null || o(!h);
|
12870
12870
|
};
|
12871
12871
|
return V(() => {
|
12872
|
-
typeof e == "boolean" && (e ?
|
12873
|
-
}, [e, y,
|
12874
|
-
n &&
|
12875
|
-
}, [n,
|
12872
|
+
typeof e == "boolean" && (e ? s() : y());
|
12873
|
+
}, [e, y, s]), V(() => {
|
12874
|
+
n && s();
|
12875
|
+
}, [n, s]), /* @__PURE__ */ f.jsxs("div", { style: { width: c }, children: [
|
12876
12876
|
/* @__PURE__ */ f.jsx(_l, { onClick: S, children: r }),
|
12877
12877
|
/* @__PURE__ */ f.jsx(Wl, { style: Object.assign({}, l, { height: h ? p : 0 }), children: /* @__PURE__ */ f.jsx(Dl, { ref: v, $open: h, $border: t ? `1px solid ${g.colorBorder}` : "unset", children: i }) })
|
12878
12878
|
] });
|
@@ -12905,14 +12905,14 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12905
12905
|
rightText: l,
|
12906
12906
|
activeColor: c,
|
12907
12907
|
inactiveColor: i,
|
12908
|
-
border:
|
12908
|
+
border: d,
|
12909
12909
|
style: g,
|
12910
12910
|
width: p,
|
12911
12911
|
children: u
|
12912
12912
|
}, h) => {
|
12913
12913
|
const { token: w } = j.useToken(), [v, m] = K(!1);
|
12914
12914
|
c || (c = w.colorFill), i || (i = w.colorFillSecondary);
|
12915
|
-
const
|
12915
|
+
const s = (z) => {
|
12916
12916
|
m(z), o == null || o(z);
|
12917
12917
|
}, y = () => t ? /* @__PURE__ */ f.jsx("img", { src: t, style: { height: 18 }, alt: "dropdown" }) : /* @__PURE__ */ f.jsx(Ll, { rotate: v ? 90 : 0, color: w.colorPrimary }), S = Object.assign({
|
12918
12918
|
borderEndStartRadius: 6,
|
@@ -12933,10 +12933,10 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12933
12933
|
y()
|
12934
12934
|
] })
|
12935
12935
|
] }),
|
12936
|
-
border:
|
12936
|
+
border: d,
|
12937
12937
|
defaultOpen: n,
|
12938
12938
|
open: e,
|
12939
|
-
onChange:
|
12939
|
+
onChange: s,
|
12940
12940
|
style: S,
|
12941
12941
|
width: p,
|
12942
12942
|
children: u
|
@@ -12944,14 +12944,15 @@ const El = new RegExp("^\\s*\\$\\s"), Rl = new RegExp("\\\\\\s*$"), Fl = new Reg
|
|
12944
12944
|
);
|
12945
12945
|
}), Nl = C.div`
|
12946
12946
|
padding: 12px;
|
12947
|
-
`, Pl = Q(({ children: e,
|
12947
|
+
`, Pl = Q(({ children: e, style: o }, n) => {
|
12948
12948
|
const { token: { colorFillSecondary: r } } = j.useToken();
|
12949
12949
|
return /* @__PURE__ */ f.jsx(
|
12950
12950
|
Nl,
|
12951
12951
|
{
|
12952
12952
|
ref: n,
|
12953
12953
|
style: {
|
12954
|
-
background:
|
12954
|
+
background: `linear-gradient(150deg, transparent 30%, ${r})`,
|
12955
|
+
...o
|
12955
12956
|
},
|
12956
12957
|
children: e
|
12957
12958
|
}
|
@@ -12988,23 +12989,26 @@ const Ge = C.div`
|
|
12988
12989
|
background-color: ${(e) => e.$colorActiveBg};
|
12989
12990
|
}
|
12990
12991
|
`, or = ({ item: e, onClick: o, active: n, parentKey: r, itemRender: t }) => {
|
12991
|
-
const { token: { colorBorder: l, colorPrimary: c } } = j.useToken(), i = t || ((p) => p)
|
12992
|
-
|
12992
|
+
const { token: { colorBorder: l, colorPrimary: c } } = j.useToken(), i = t || ((p) => p);
|
12993
|
+
if (!e)
|
12994
|
+
return null;
|
12995
|
+
const d = [e.key];
|
12996
|
+
r && d.unshift(r);
|
12993
12997
|
const g = (p) => {
|
12994
|
-
o == null || o({
|
12998
|
+
e && (o == null || o({
|
12995
12999
|
item: e,
|
12996
13000
|
key: e.key,
|
12997
|
-
keyPath:
|
13001
|
+
keyPath: d,
|
12998
13002
|
domEvent: p
|
12999
|
-
});
|
13003
|
+
}));
|
13000
13004
|
};
|
13001
13005
|
return i(
|
13002
|
-
/* @__PURE__ */ f.jsxs(Ul, { onClick: g, className: n && "active", $colorBorder: l, $colorActiveBg: c, children: [
|
13006
|
+
/* @__PURE__ */ f.jsxs(Ul, { onClick: g, className: n && "active" || void 0, $colorBorder: l, $colorActiveBg: c, children: [
|
13003
13007
|
/* @__PURE__ */ f.jsx(er, { children: e.label }),
|
13004
13008
|
e.icon,
|
13005
13009
|
" "
|
13006
13010
|
] }),
|
13007
|
-
{ item: e, keyPath:
|
13011
|
+
{ item: e, keyPath: d, key: e.key }
|
13008
13012
|
);
|
13009
13013
|
}, Vl = ({
|
13010
13014
|
item: e,
|
@@ -13012,24 +13016,28 @@ const Ge = C.div`
|
|
13012
13016
|
itemRender: n,
|
13013
13017
|
open: r
|
13014
13018
|
}) => {
|
13015
|
-
const { token: { colorPrimary: t, colorBorder: l } } = j.useToken(), [c, i] = K(!1),
|
13019
|
+
const { token: { colorPrimary: t, colorBorder: l } } = j.useToken(), [c, i] = K(!1), d = Ke(null), g = n || ((h) => h), p = mo(async (h) => {
|
13016
13020
|
i(!!(typeof h == "boolean" ? h : !c));
|
13017
|
-
}, [c])
|
13018
|
-
|
13021
|
+
}, [c]);
|
13022
|
+
if (V(() => {
|
13023
|
+
typeof r == "boolean" && p(r);
|
13024
|
+
}, [r, p]), V(() => {
|
13025
|
+
var h;
|
13026
|
+
(h = d.current) == null || h.calculateHeight();
|
13027
|
+
}, [e]), !e)
|
13028
|
+
return null;
|
13029
|
+
const u = (h) => {
|
13030
|
+
r === void 0 && p(), e && (o == null || o({
|
13019
13031
|
item: e,
|
13020
13032
|
key: e.key,
|
13021
13033
|
keyPath: [e.key],
|
13022
13034
|
domEvent: h
|
13023
|
-
});
|
13035
|
+
}));
|
13024
13036
|
};
|
13025
|
-
return
|
13026
|
-
typeof r == "boolean" && p(r);
|
13027
|
-
}, [r, p]), V(() => {
|
13028
|
-
s.current.calculateHeight();
|
13029
|
-
}, [e.children]), /* @__PURE__ */ f.jsx(
|
13037
|
+
return /* @__PURE__ */ f.jsx(
|
13030
13038
|
Xe.Base,
|
13031
13039
|
{
|
13032
|
-
ref:
|
13040
|
+
ref: d,
|
13033
13041
|
header: g(
|
13034
13042
|
/* @__PURE__ */ f.jsxs(
|
13035
13043
|
Ge,
|
@@ -13038,8 +13046,8 @@ const Ge = C.div`
|
|
13038
13046
|
style: { backgroundColor: c ? t : void 0 },
|
13039
13047
|
$colorBorder: c ? "transparent" : l,
|
13040
13048
|
children: [
|
13041
|
-
/* @__PURE__ */ f.jsx(er, { children: e
|
13042
|
-
e
|
13049
|
+
/* @__PURE__ */ f.jsx(er, { children: e.label }),
|
13050
|
+
e.icon
|
13043
13051
|
]
|
13044
13052
|
}
|
13045
13053
|
),
|
@@ -13084,14 +13092,14 @@ const Ge = C.div`
|
|
13084
13092
|
bottomAddon: l,
|
13085
13093
|
search: c,
|
13086
13094
|
onSearchChange: i,
|
13087
|
-
itemRender:
|
13095
|
+
itemRender: d
|
13088
13096
|
}, g) => {
|
13089
13097
|
const [p, u] = K([]), { token: { colorBorder: h } } = j.useToken();
|
13090
13098
|
V(() => {
|
13091
13099
|
Array.isArray(t) && u(t);
|
13092
13100
|
}, [t]);
|
13093
13101
|
const w = (m) => {
|
13094
|
-
t === void 0 && m.keyPath.length === 1 && ("children" in m.item ? p.some((
|
13102
|
+
t === void 0 && m.keyPath.length === 1 && ("children" in m.item ? p.some((s) => s === m.key) ? u(p.filter((s) => s !== m.key)) : u(p.concat(m.key)) : u([m.item.key])), n == null || n(m);
|
13095
13103
|
}, v = () => r ? /* @__PURE__ */ f.jsx(Ge, { $colorBorder: h, children: /* @__PURE__ */ f.jsx(N.Text, { children: /* @__PURE__ */ f.jsxs(To, { children: [
|
13096
13104
|
typeof r == "string" ? r : "Loading items...",
|
13097
13105
|
/* @__PURE__ */ f.jsx(ul, {})
|
@@ -13105,7 +13113,7 @@ const Ge = C.div`
|
|
13105
13113
|
item: m,
|
13106
13114
|
onClick: w,
|
13107
13115
|
open: p.includes(m.key),
|
13108
|
-
itemRender:
|
13116
|
+
itemRender: d
|
13109
13117
|
},
|
13110
13118
|
m.key
|
13111
13119
|
);
|
@@ -13116,13 +13124,13 @@ const Ge = C.div`
|
|
13116
13124
|
item: m,
|
13117
13125
|
onClick: w,
|
13118
13126
|
active: p.includes(m.key),
|
13119
|
-
itemRender:
|
13127
|
+
itemRender: d
|
13120
13128
|
},
|
13121
13129
|
m.key
|
13122
13130
|
);
|
13123
13131
|
}) : /* @__PURE__ */ f.jsx(Ge, { $colorBorder: h, children: /* @__PURE__ */ f.jsx(N.Text, { children: o || "No items found" }) });
|
13124
13132
|
return /* @__PURE__ */ f.jsxs(Yl, { ref: g, children: [
|
13125
|
-
/* @__PURE__ */ f.jsx(nr, { children: /* @__PURE__ */ f.jsx(Tn.Search, { addonBefore: (e == null ? void 0 : e.length) || "0", onChange: (m) => i(m.target.value), value: c, allowClear: !0, enterButton: "Search" }) }),
|
13133
|
+
/* @__PURE__ */ f.jsx(nr, { children: /* @__PURE__ */ f.jsx(Tn.Search, { addonBefore: (e == null ? void 0 : e.length) || "0", onChange: (m) => i == null ? void 0 : i(m.target.value), value: c, allowClear: !0, enterButton: "Search" }) }),
|
13126
13134
|
/* @__PURE__ */ f.jsx(Gl, { children: v() }),
|
13127
13135
|
/* @__PURE__ */ f.jsx(Kl, { children: l })
|
13128
13136
|
] });
|
@@ -13210,13 +13218,13 @@ const Ge = C.div`
|
|
13210
13218
|
return null;
|
13211
13219
|
const l = t || ((c) => c);
|
13212
13220
|
return o.children.map((c) => {
|
13213
|
-
const i = (
|
13214
|
-
n == null || n(
|
13221
|
+
const i = (d) => {
|
13222
|
+
n == null || n(d, { item: c, key: c.key });
|
13215
13223
|
};
|
13216
13224
|
return /* @__PURE__ */ f.jsx(
|
13217
13225
|
Jl,
|
13218
13226
|
{
|
13219
|
-
className: r === c.key && "active",
|
13227
|
+
className: r === c.key && "active" || void 0,
|
13220
13228
|
onClick: i,
|
13221
13229
|
children: l(
|
13222
13230
|
c.label,
|
@@ -13231,16 +13239,16 @@ const Ge = C.div`
|
|
13231
13239
|
);
|
13232
13240
|
});
|
13233
13241
|
}, Zl = (e) => {
|
13234
|
-
const { item: o, activeKey: n, onClick: r } = e, [t, l] = K(!1), c = (
|
13235
|
-
g ? (l(!1), r == null || r(
|
13242
|
+
const { item: o, activeKey: n, onClick: r } = e, [t, l] = K(!1), c = (d, g) => {
|
13243
|
+
g ? (l(!1), r == null || r(d, g)) : (l(!t), o && (r == null || r(d, {
|
13236
13244
|
key: o == null ? void 0 : o.key,
|
13237
13245
|
item: o
|
13238
|
-
}));
|
13239
|
-
}, i = de(() => n === (o == null ? void 0 : o.key) || (o == null ? void 0 : o.children.some((
|
13246
|
+
})));
|
13247
|
+
}, i = de(() => n === (o == null ? void 0 : o.key) || (o == null ? void 0 : o.children.some((d) => d.key === n)), [n, o]);
|
13240
13248
|
return /* @__PURE__ */ f.jsxs(
|
13241
13249
|
rr,
|
13242
13250
|
{
|
13243
|
-
className: i && "active",
|
13251
|
+
className: i && "active" || void 0,
|
13244
13252
|
onClick: c,
|
13245
13253
|
onMouseEnter: () => {
|
13246
13254
|
l(!0);
|
@@ -13404,12 +13412,12 @@ const Ge = C.div`
|
|
13404
13412
|
`, cc = (e) => {
|
13405
13413
|
const { items: o, activeKey: n, onClick: r, itemRender: t } = e, l = t || ((c) => c);
|
13406
13414
|
return Array.isArray(o) ? o.map((c) => {
|
13407
|
-
const i = (
|
13415
|
+
const i = (d, g) => {
|
13408
13416
|
const p = {
|
13409
13417
|
item: c,
|
13410
13418
|
key: c.key,
|
13411
13419
|
keyPath: [c.key],
|
13412
|
-
domEvent:
|
13420
|
+
domEvent: d
|
13413
13421
|
};
|
13414
13422
|
g && (p.keyPath.push(g.key), p.key = g.key, p.item = g.item), r == null || r(p);
|
13415
13423
|
};
|
@@ -13421,7 +13429,7 @@ const Ge = C.div`
|
|
13421
13429
|
return /* @__PURE__ */ f.jsx(
|
13422
13430
|
rr,
|
13423
13431
|
{
|
13424
|
-
className: n === c.key && "active",
|
13432
|
+
className: n === c.key && "active" || void 0,
|
13425
13433
|
onClick: i,
|
13426
13434
|
children: l(
|
13427
13435
|
/* @__PURE__ */ f.jsx(ar, { children: c.label }),
|
@@ -13436,20 +13444,18 @@ const Ge = C.div`
|
|
13436
13444
|
);
|
13437
13445
|
}) : null;
|
13438
13446
|
}, Fc = Q((e, o) => {
|
13439
|
-
const { height: n, textColor: r, activeColor: t, logo: l, toggleColor: c, onClick: i, ...
|
13440
|
-
/** @type {HTMLInputElement} */
|
13441
|
-
null
|
13442
|
-
);
|
13447
|
+
const { height: n, textColor: r, activeColor: t, logo: l, toggleColor: c, onClick: i, ...d } = e, { token: { colorPrimary: g } } = j.useToken(), [p, u] = K({}), [h, w] = K({}), v = Ke(null);
|
13443
13448
|
V(() => {
|
13444
13449
|
typeof n == "number" && n >= 48 ? document.documentElement.style.setProperty("--navbar-height", `${Math.round(n)}px`) : document.documentElement.style.setProperty("--navbar-height", `${ec}px`);
|
13445
13450
|
}, [n]);
|
13446
13451
|
const m = () => {
|
13447
|
-
|
13452
|
+
var y;
|
13453
|
+
(y = v.current) != null && y.checked ? (u({ transform: "scale(1,1)" }), w({
|
13448
13454
|
opacity: 1,
|
13449
13455
|
transition: "opacity 150ms ease-in-out 250ms"
|
13450
13456
|
})) : (w({}), u({}));
|
13451
|
-
},
|
13452
|
-
y.domEvent.stopPropagation(), "children" in y.item || (v.current.checked = !1, m()), i == null || i(y);
|
13457
|
+
}, s = (y) => {
|
13458
|
+
y.domEvent.stopPropagation(), "children" in y.item || (v.current && (v.current.checked = !1), m()), i == null || i(y);
|
13453
13459
|
};
|
13454
13460
|
return /* @__PURE__ */ f.jsxs(oc, { ref: o, style: { borderBottomColor: r || g }, children: [
|
13455
13461
|
/* @__PURE__ */ f.jsx(nc, { children: l }),
|
@@ -13459,7 +13465,7 @@ const Ge = C.div`
|
|
13459
13465
|
$activeColor: t || g,
|
13460
13466
|
$textColor: r,
|
13461
13467
|
style: h,
|
13462
|
-
children: /* @__PURE__ */ f.jsx(cc, { ...
|
13468
|
+
children: /* @__PURE__ */ f.jsx(cc, { ...d, onClick: s })
|
13463
13469
|
}
|
13464
13470
|
) }),
|
13465
13471
|
/* @__PURE__ */ f.jsx(tc, { htmlFor: "nav-toggle", children: /* @__PURE__ */ f.jsx(
|
@@ -13530,8 +13536,8 @@ const Ge = C.div`
|
|
13530
13536
|
}
|
13531
13537
|
`, dc = Q(({ children: e }, o) => {
|
13532
13538
|
const { theme: { id: n }, token: { colorBgBase: r, colorBgContainer: t, colorBgElevated: l, colorBgLayout: c } } = j.useToken();
|
13533
|
-
let i = l,
|
13534
|
-
return n === 1 && (i = r,
|
13539
|
+
let i = l, d = c;
|
13540
|
+
return n === 1 && (i = r, d = t), /* @__PURE__ */ f.jsx(ic, { ref: o, $bgDark: i, $bgLight: d, children: /* @__PURE__ */ f.jsx(sc, { children: e }) });
|
13535
13541
|
});
|
13536
13542
|
function vn(e) {
|
13537
13543
|
var o = M.useRef();
|
@@ -13565,8 +13571,8 @@ function zn(e) {
|
|
13565
13571
|
o.current = !0;
|
13566
13572
|
};
|
13567
13573
|
}, []);
|
13568
|
-
function c(i,
|
13569
|
-
|
13574
|
+
function c(i, d) {
|
13575
|
+
d && o.current || l(i);
|
13570
13576
|
}
|
13571
13577
|
return [t, c];
|
13572
13578
|
}
|
@@ -13576,11 +13582,11 @@ function ho(e) {
|
|
13576
13582
|
function gc(e, o) {
|
13577
13583
|
var n = o || {}, r = n.defaultValue, t = n.value, l = n.onChange, c = n.postState, i = zn(function() {
|
13578
13584
|
return ho(t) ? t : ho(r) ? typeof r == "function" ? r() : r : typeof e == "function" ? e() : e;
|
13579
|
-
}),
|
13585
|
+
}), d = Re(i, 2), g = d[0], p = d[1], u = t !== void 0 ? t : g, h = c ? c(u) : u, w = vn(l), v = zn([u]), m = Re(v, 2), s = m[0], y = m[1];
|
13580
13586
|
An(function() {
|
13581
|
-
var z =
|
13587
|
+
var z = s[0];
|
13582
13588
|
g !== z && w(g, z);
|
13583
|
-
}, [
|
13589
|
+
}, [s]), An(function() {
|
13584
13590
|
ho(t) || p(t);
|
13585
13591
|
}, [t]);
|
13586
13592
|
var S = vn(function(z, O) {
|
@@ -13608,8 +13614,8 @@ const zo = 36, pc = Rr`
|
|
13608
13614
|
height: calc(var(--main-height) - ${zo}px)
|
13609
13615
|
}
|
13610
13616
|
`, fc = Q(({ title: e, children: o, collapseOpen: n, onChange: r }, t) => {
|
13611
|
-
const { theme: { id: l }, token: { colorBgBase: c, colorBgContainer: i, colorBgLayout:
|
13612
|
-
let w = c, v =
|
13617
|
+
const { theme: { id: l }, token: { colorBgBase: c, colorBgContainer: i, colorBgLayout: d } } = j.useToken(), [g, p] = K(1280), [u, h] = gc(!1, { value: n });
|
13618
|
+
let w = c, v = d;
|
13613
13619
|
l === 1 && (w = c, v = i);
|
13614
13620
|
const m = (y) => {
|
13615
13621
|
h(y), r == null || r(y);
|
@@ -13622,7 +13628,7 @@ const zo = 36, pc = Rr`
|
|
13622
13628
|
window.removeEventListener("resize", y);
|
13623
13629
|
};
|
13624
13630
|
}, []);
|
13625
|
-
const
|
13631
|
+
const s = /* @__PURE__ */ f.jsxs(
|
13626
13632
|
bc,
|
13627
13633
|
{
|
13628
13634
|
ref: t,
|
@@ -13645,9 +13651,9 @@ const zo = 36, pc = Rr`
|
|
13645
13651
|
},
|
13646
13652
|
onChange: m,
|
13647
13653
|
open: u,
|
13648
|
-
children:
|
13654
|
+
children: s
|
13649
13655
|
}
|
13650
|
-
) }) :
|
13656
|
+
) }) : s;
|
13651
13657
|
}), hc = C.div`
|
13652
13658
|
--main-margin-v: 0px;
|
13653
13659
|
--site-selector-width: 280px;
|
@@ -13734,50 +13740,53 @@ const lr = C(Mo)`
|
|
13734
13740
|
z-index: 10;
|
13735
13741
|
cursor: text;
|
13736
13742
|
`, Bc = Q((e, o) => {
|
13737
|
-
const { name: n, size: r, children: t, colorText: l, colorTextActive: c } = e, [i,
|
13743
|
+
const { name: n, size: r, children: t, colorText: l, colorTextActive: c } = e, [i, d] = K({}), g = Ke(null), p = Fr.useWatch(n), { token: u } = j.useToken(), [h, w] = K({ display: "none" }), [v, m] = de(() => [
|
13738
13744
|
{},
|
13739
13745
|
{ left: 0, top: 0, color: c || u.colorPrimary, cursor: "default" }
|
13740
13746
|
], [c, u]);
|
13741
13747
|
return Cn(o, () => g.current), V(() => {
|
13742
13748
|
var S;
|
13743
|
-
const
|
13744
|
-
|
13749
|
+
const s = (S = g.current) == null ? void 0 : S.parentNode, y = s.parentNode;
|
13750
|
+
s.style.width = "100%", y.style.overflow = "visible";
|
13745
13751
|
}, []), V(() => {
|
13752
|
+
var s;
|
13746
13753
|
if (p)
|
13747
|
-
return
|
13748
|
-
document.activeElement.id !== n &&
|
13754
|
+
return d(m);
|
13755
|
+
((s = document.activeElement) == null ? void 0 : s.id) !== n && d(v);
|
13749
13756
|
}, [p, n, v, m]), V(() => {
|
13750
13757
|
var ce, ue, ie, ge, pe, se, L, P, X;
|
13751
|
-
let
|
13752
|
-
g.current || w({ display: "none" }), typeof n != "string"
|
13758
|
+
let s, y, S;
|
13759
|
+
if (g.current || w({ display: "none" }), typeof n != "string")
|
13760
|
+
return w({});
|
13753
13761
|
const z = document.getElementById(n);
|
13754
|
-
|
13762
|
+
if (!z)
|
13763
|
+
return w({});
|
13755
13764
|
const O = z.previousElementSibling, _ = z.offsetLeft, ee = O == null ? void 0 : O.classList.contains("ant-input-prefix");
|
13756
13765
|
switch (r) {
|
13757
13766
|
case "small":
|
13758
|
-
y = (((ce = u.Input) == null ? void 0 : ce.paddingInlineSM) || u.paddingXS) + _,
|
13767
|
+
y = (((ce = u.Input) == null ? void 0 : ce.paddingInlineSM) || u.paddingXS) + _, s = `calc(100% + ${((ue = u.Input) == null ? void 0 : ue.paddingBlockSM) || 0}px + 9px)`, S = ((ie = u.Input) == null ? void 0 : ie.inputFontSizeSM) || u.fontSize;
|
13759
13768
|
break;
|
13760
13769
|
case "large":
|
13761
|
-
y = (((ge = u.Input) == null ? void 0 : ge.paddingInlineLG) || u.paddingSM) + _,
|
13770
|
+
y = (((ge = u.Input) == null ? void 0 : ge.paddingInlineLG) || u.paddingSM) + _, s = `calc(100% + ${((pe = u.Input) == null ? void 0 : pe.paddingBlock) || 7}px + 8px)`, S = ((se = u.Input) == null ? void 0 : se.inputFontSizeLG) || u.fontSizeLG;
|
13762
13771
|
break;
|
13763
13772
|
default:
|
13764
|
-
y = (((L = u.Input) == null ? void 0 : L.paddingInline) || u.paddingSM) + _,
|
13773
|
+
y = (((L = u.Input) == null ? void 0 : L.paddingInline) || u.paddingSM) + _, s = `calc(100% + ${((P = u.Input) == null ? void 0 : P.paddingBlock) || 4}px + 9px)`, S = ((X = u.Input) == null ? void 0 : X.inputFontSize) || u.fontSize;
|
13765
13774
|
break;
|
13766
13775
|
}
|
13767
|
-
ee && (y = _), w({ top:
|
13776
|
+
ee && (y = _), w({ top: s, left: y, fontSize: S });
|
13768
13777
|
}, [r, n, u]), V(() => {
|
13769
13778
|
if (typeof n != "string")
|
13770
13779
|
return;
|
13771
|
-
const
|
13772
|
-
if (!
|
13780
|
+
const s = document.getElementById(n);
|
13781
|
+
if (!s)
|
13773
13782
|
return;
|
13774
13783
|
const y = () => {
|
13775
|
-
|
13784
|
+
d(m), s.classList.remove("no-placeholder");
|
13776
13785
|
}, S = () => {
|
13777
|
-
|
13786
|
+
s.value.length === 0 && d(v), s.value || s.classList.add("no-placeholder");
|
13778
13787
|
};
|
13779
|
-
return
|
13780
|
-
|
13788
|
+
return s.value || s.classList.add("no-placeholder"), s.addEventListener("focus", y), s.addEventListener("blur", S), () => {
|
13789
|
+
s.removeEventListener("focus", y), s.removeEventListener("blur", S);
|
13781
13790
|
};
|
13782
13791
|
}, [n, v, m]), /* @__PURE__ */ f.jsx(
|
13783
13792
|
kc,
|