react-toolkits 0.8.19 → 0.8.21
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/CHANGELOG.md +12 -0
- package/lib/{index-JZRxxXqr.chunk.js → index-2I_COrHX.chunk.js} +75 -70
- package/lib/{index-BzJDxXZf.chunk.js → index-EAawrEpf.chunk.js} +1 -1
- package/lib/{index-HxOmeZUb.chunk.js → index-MzGlzyfE.chunk.js} +3 -3
- package/lib/{index-1L06pj23.chunk.js → index-ZQhZn-uq.chunk.js} +3 -3
- package/lib/{index-yDECAYYl.chunk.js → index-_CFeMHGZ.chunk.js} +2 -2
- package/lib/{index-QROzXF9r.chunk.js → index-iAvVdN4q.chunk.js} +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@ var kc = Object.defineProperty;
|
|
|
2
2
|
var $c = (e, t, r) => t in e ? kc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var pr = (e, t, r) => ($c(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import * as Te from "react";
|
|
5
|
-
import Ce, { createContext as nn, useContext as an, useEffect as je, useState as Le, useRef as _e, useLayoutEffect as Vc, useMemo as Qt, useCallback as De, useDebugValue as Wc, memo as Hc, Suspense as Yc, forwardRef as Qc, useImperativeHandle as qc, lazy as
|
|
5
|
+
import Ce, { createContext as nn, useContext as an, useEffect as je, useState as Le, useRef as _e, useLayoutEffect as Vc, useMemo as Qt, useCallback as De, useDebugValue as Wc, memo as Hc, Suspense as Yc, forwardRef as Qc, useImperativeHandle as qc, lazy as ot } from "react";
|
|
6
6
|
import * as qt from "antd";
|
|
7
7
|
import { theme as qa, Space as nt, Input as rt, Tag as Ln, Button as ze, Select as sn, Typography as cn, Form as ye, Spin as on, Result as Zt, Table as Ka, Menu as Kc, Card as Xa, Empty as zn, Dropdown as Xc, Divider as Za, Tooltip as Zc, Modal as Jc, Row as e2, Col as Nt, Alert as t2 } from "antd";
|
|
8
8
|
import r2, { flushSync as n2 } from "react-dom";
|
|
@@ -262,7 +262,7 @@ function o2() {
|
|
|
262
262
|
} finally {
|
|
263
263
|
fe = !1, ae.current = Z, k(), Error.prepareStackTrace = X;
|
|
264
264
|
}
|
|
265
|
-
var
|
|
265
|
+
var pt = i ? i.displayName || i.name : "", Gn = pt ? pe(pt) : "";
|
|
266
266
|
return typeof i == "function" && ee.set(i, Gn), Gn;
|
|
267
267
|
}
|
|
268
268
|
function q(i, S, O) {
|
|
@@ -329,7 +329,7 @@ function o2() {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
var Ft = Array.isArray;
|
|
332
|
-
function
|
|
332
|
+
function ut(i) {
|
|
333
333
|
return Ft(i);
|
|
334
334
|
}
|
|
335
335
|
function Bt(i) {
|
|
@@ -348,7 +348,7 @@ function o2() {
|
|
|
348
348
|
function be(i) {
|
|
349
349
|
return "" + i;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ft(i) {
|
|
352
352
|
if (ge(i))
|
|
353
353
|
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(i)), be(i);
|
|
354
354
|
}
|
|
@@ -435,7 +435,7 @@ function o2() {
|
|
|
435
435
|
function jc(i, S, O, z, X) {
|
|
436
436
|
{
|
|
437
437
|
var Z, Q = {}, H = null, Ae = null;
|
|
438
|
-
O !== void 0 && (
|
|
438
|
+
O !== void 0 && (ft(O), H = "" + O), Tc(S) && (ft(S.key), H = "" + S.key), Oc(S) && (Ae = S.ref, Rc(S, X));
|
|
439
439
|
for (Z in S)
|
|
440
440
|
he.call(S, Z) && !mt.hasOwnProperty(Z) && (Q[Z] = S[Z]);
|
|
441
441
|
if (i && i.defaultProps) {
|
|
@@ -451,7 +451,7 @@ function o2() {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
var ur = v.ReactCurrentOwner, Mn = v.ReactDebugCurrentFrame;
|
|
454
|
-
function
|
|
454
|
+
function dt(i) {
|
|
455
455
|
if (i) {
|
|
456
456
|
var S = i._owner, O = J(i.type, i._source, S ? S.type : null);
|
|
457
457
|
Mn.setExtraStackFrame(O);
|
|
@@ -509,14 +509,14 @@ Check the top-level render call using <` + O + ">.");
|
|
|
509
509
|
return;
|
|
510
510
|
Pn[O] = !0;
|
|
511
511
|
var z = "";
|
|
512
|
-
i && i._owner && i._owner !== ur.current && (z = " It was passed a child from " + $(i._owner.type) + "."),
|
|
512
|
+
i && i._owner && i._owner !== ur.current && (z = " It was passed a child from " + $(i._owner.type) + "."), dt(i), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, z), dt(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Bn(i, S) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof i != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (ut(i))
|
|
520
520
|
for (var O = 0; O < i.length; O++) {
|
|
521
521
|
var z = i[O];
|
|
522
522
|
dr(z) && Fn(z, S);
|
|
@@ -561,11 +561,11 @@ Check the top-level render call using <` + O + ">.");
|
|
|
561
561
|
for (var S = Object.keys(i.props), O = 0; O < S.length; O++) {
|
|
562
562
|
var z = S[O];
|
|
563
563
|
if (z !== "children" && z !== "key") {
|
|
564
|
-
|
|
564
|
+
dt(i), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), dt(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
i.ref !== null && (
|
|
568
|
+
i.ref !== null && (dt(i), _("Invalid attribute `ref` supplied to `React.Fragment`."), dt(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
function Nn(i, S, O, z, X, Z) {
|
|
@@ -577,7 +577,7 @@ Check the top-level render call using <` + O + ">.");
|
|
|
577
577
|
var Ae = Pc(X);
|
|
578
578
|
Ae ? H += Ae : H += jn();
|
|
579
579
|
var ne;
|
|
580
|
-
i === null ? ne = "null" :
|
|
580
|
+
i === null ? ne = "null" : ut(i) ? ne = "array" : i !== void 0 && i.$$typeof === t ? (ne = "<" + ($(i.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof i, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, H);
|
|
581
581
|
}
|
|
582
582
|
var oe = jc(i, S, O, X, Z);
|
|
583
583
|
if (oe == null)
|
|
@@ -586,9 +586,9 @@ Check the top-level render call using <` + O + ">.");
|
|
|
586
586
|
var Se = S.children;
|
|
587
587
|
if (Se !== void 0)
|
|
588
588
|
if (z)
|
|
589
|
-
if (
|
|
590
|
-
for (var
|
|
591
|
-
Bn(Se[
|
|
589
|
+
if (ut(Se)) {
|
|
590
|
+
for (var pt = 0; pt < Se.length; pt++)
|
|
591
|
+
Bn(Se[pt], i);
|
|
592
592
|
Object.freeze && Object.freeze(Se);
|
|
593
593
|
} else
|
|
594
594
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -938,15 +938,15 @@ cs.displayName = "ToolkitsContextProvider";
|
|
|
938
938
|
const v2 = cs;
|
|
939
939
|
var _2 = /* @__PURE__ */ nn({});
|
|
940
940
|
const os = _2;
|
|
941
|
-
function
|
|
942
|
-
return
|
|
941
|
+
function ht() {
|
|
942
|
+
return ht = Object.assign ? Object.assign.bind() : function(e) {
|
|
943
943
|
for (var t = 1; t < arguments.length; t++) {
|
|
944
944
|
var r = arguments[t];
|
|
945
945
|
for (var n in r)
|
|
946
946
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
947
947
|
}
|
|
948
948
|
return e;
|
|
949
|
-
},
|
|
949
|
+
}, ht.apply(this, arguments);
|
|
950
950
|
}
|
|
951
951
|
function b2(e) {
|
|
952
952
|
if (Array.isArray(e))
|
|
@@ -1806,7 +1806,7 @@ var nr = /* @__PURE__ */ Te.forwardRef(function(e, t) {
|
|
|
1806
1806
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
1807
1807
|
transform: "rotate(".concat(c, "deg)")
|
|
1808
1808
|
} : void 0, _ = vs(f), R = is(_, 2), T = R[0], j = R[1];
|
|
1809
|
-
return /* @__PURE__ */ Te.createElement("span",
|
|
1809
|
+
return /* @__PURE__ */ Te.createElement("span", ht({
|
|
1810
1810
|
role: "img",
|
|
1811
1811
|
"aria-label": a.name
|
|
1812
1812
|
}, p, {
|
|
@@ -1828,7 +1828,7 @@ const pn = nr;
|
|
|
1828
1828
|
var yo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, name: "logout", theme: "outlined" };
|
|
1829
1829
|
const mo = yo;
|
|
1830
1830
|
var bs = function(t, r) {
|
|
1831
|
-
return /* @__PURE__ */ Te.createElement(pn,
|
|
1831
|
+
return /* @__PURE__ */ Te.createElement(pn, ht({}, t, {
|
|
1832
1832
|
ref: r,
|
|
1833
1833
|
icon: mo
|
|
1834
1834
|
}));
|
|
@@ -1838,7 +1838,7 @@ const vo = /* @__PURE__ */ Te.forwardRef(bs);
|
|
|
1838
1838
|
var _o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
|
|
1839
1839
|
const bo = _o;
|
|
1840
1840
|
var Ss = function(t, r) {
|
|
1841
|
-
return /* @__PURE__ */ Te.createElement(pn,
|
|
1841
|
+
return /* @__PURE__ */ Te.createElement(pn, ht({}, t, {
|
|
1842
1842
|
ref: r,
|
|
1843
1843
|
icon: bo
|
|
1844
1844
|
}));
|
|
@@ -1848,7 +1848,7 @@ const So = /* @__PURE__ */ Te.forwardRef(Ss);
|
|
|
1848
1848
|
var xo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" } }] }, name: "user", theme: "outlined" };
|
|
1849
1849
|
const Co = xo;
|
|
1850
1850
|
var xs = function(t, r) {
|
|
1851
|
-
return /* @__PURE__ */ Te.createElement(pn,
|
|
1851
|
+
return /* @__PURE__ */ Te.createElement(pn, ht({}, t, {
|
|
1852
1852
|
ref: r,
|
|
1853
1853
|
icon: Co
|
|
1854
1854
|
}));
|
|
@@ -1905,7 +1905,7 @@ function Os(e) {
|
|
|
1905
1905
|
var t = e + "";
|
|
1906
1906
|
return t == "0" && 1 / e == -zo ? "-0" : t;
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function At(e) {
|
|
1909
1909
|
var t = typeof e;
|
|
1910
1910
|
return e != null && (t == "object" || t == "function");
|
|
1911
1911
|
}
|
|
@@ -1914,7 +1914,7 @@ function Ts(e) {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
var Uo = "[object AsyncFunction]", ko = "[object Function]", $o = "[object GeneratorFunction]", Vo = "[object Proxy]";
|
|
1916
1916
|
function Rs(e) {
|
|
1917
|
-
if (!
|
|
1917
|
+
if (!At(e))
|
|
1918
1918
|
return !1;
|
|
1919
1919
|
var t = Je(e);
|
|
1920
1920
|
return t == ko || t == $o || t == Uo || t == Vo;
|
|
@@ -1929,7 +1929,7 @@ function Ho(e) {
|
|
|
1929
1929
|
return !!da && da in e;
|
|
1930
1930
|
}
|
|
1931
1931
|
var Yo = Function.prototype, Qo = Yo.toString;
|
|
1932
|
-
function
|
|
1932
|
+
function it(e) {
|
|
1933
1933
|
if (e != null) {
|
|
1934
1934
|
try {
|
|
1935
1935
|
return Qo.call(e);
|
|
@@ -1946,19 +1946,19 @@ var qo = /[\\^$.*+?()[\]{}|]/g, Ko = /^\[object .+?Constructor\]$/, Xo = Functio
|
|
|
1946
1946
|
"^" + Jo.call(ei).replace(qo, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1947
1947
|
);
|
|
1948
1948
|
function ri(e) {
|
|
1949
|
-
if (!
|
|
1949
|
+
if (!At(e) || Ho(e))
|
|
1950
1950
|
return !1;
|
|
1951
1951
|
var t = Rs(e) ? ti : Ko;
|
|
1952
|
-
return t.test(
|
|
1952
|
+
return t.test(it(e));
|
|
1953
1953
|
}
|
|
1954
1954
|
function ni(e, t) {
|
|
1955
1955
|
return e == null ? void 0 : e[t];
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function lt(e, t) {
|
|
1958
1958
|
var r = ni(e, t);
|
|
1959
1959
|
return ri(r) ? r : void 0;
|
|
1960
1960
|
}
|
|
1961
|
-
var ai =
|
|
1961
|
+
var ai = lt(ke, "WeakMap");
|
|
1962
1962
|
const kr = ai;
|
|
1963
1963
|
function Ds(e, t, r) {
|
|
1964
1964
|
switch (r.length) {
|
|
@@ -1993,7 +1993,7 @@ function li(e) {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
var ui = function() {
|
|
1995
1995
|
try {
|
|
1996
|
-
var e =
|
|
1996
|
+
var e = lt(Object, "defineProperty");
|
|
1997
1997
|
return e({}, "", {}), e;
|
|
1998
1998
|
} catch {
|
|
1999
1999
|
}
|
|
@@ -2062,7 +2062,7 @@ function gn(e) {
|
|
|
2062
2062
|
return e != null && An(e.length) && !Rs(e);
|
|
2063
2063
|
}
|
|
2064
2064
|
function Bs(e, t, r) {
|
|
2065
|
-
if (!
|
|
2065
|
+
if (!At(r))
|
|
2066
2066
|
return !1;
|
|
2067
2067
|
var n = typeof t;
|
|
2068
2068
|
return (n == "number" ? gn(r) && ar(t, r.length) : n == "string" && t in r) ? jt(r[t], e) : !1;
|
|
@@ -2162,7 +2162,7 @@ function p1(e) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
var h1 = Object.prototype, A1 = h1.hasOwnProperty;
|
|
2164
2164
|
function g1(e) {
|
|
2165
|
-
if (!
|
|
2165
|
+
if (!At(e))
|
|
2166
2166
|
return p1(e);
|
|
2167
2167
|
var t = Ns(e), r = [];
|
|
2168
2168
|
for (var n in e)
|
|
@@ -2183,7 +2183,7 @@ function b1(e, t) {
|
|
|
2183
2183
|
var r = typeof e;
|
|
2184
2184
|
return r == "number" || r == "symbol" || r == "boolean" || e == null || hn(e) ? !0 : _1.test(e) || !v1.test(e) || t != null && e in Object(t);
|
|
2185
2185
|
}
|
|
2186
|
-
var S1 =
|
|
2186
|
+
var S1 = lt(Object, "create");
|
|
2187
2187
|
const Tt = S1;
|
|
2188
2188
|
function x1() {
|
|
2189
2189
|
this.__data__ = Tt ? Tt(null) : {}, this.size = 0;
|
|
@@ -2263,7 +2263,7 @@ $e.prototype.delete = N1;
|
|
|
2263
2263
|
$e.prototype.get = G1;
|
|
2264
2264
|
$e.prototype.has = L1;
|
|
2265
2265
|
$e.prototype.set = z1;
|
|
2266
|
-
var U1 =
|
|
2266
|
+
var U1 = lt(ke, "Map");
|
|
2267
2267
|
const Rt = U1;
|
|
2268
2268
|
function k1() {
|
|
2269
2269
|
this.size = 0, this.__data__ = {
|
|
@@ -2469,15 +2469,15 @@ function I3(e, t, r) {
|
|
|
2469
2469
|
function Sa(e) {
|
|
2470
2470
|
return I3(e, Vs, D3);
|
|
2471
2471
|
}
|
|
2472
|
-
var M3 =
|
|
2472
|
+
var M3 = lt(ke, "DataView");
|
|
2473
2473
|
const Vr = M3;
|
|
2474
|
-
var j3 =
|
|
2474
|
+
var j3 = lt(ke, "Promise");
|
|
2475
2475
|
const Wr = j3;
|
|
2476
|
-
var P3 =
|
|
2476
|
+
var P3 = lt(ke, "Set");
|
|
2477
2477
|
const Hr = P3;
|
|
2478
|
-
var xa = "[object Map]", F3 = "[object Object]", Ca = "[object Promise]", Ea = "[object Set]", wa = "[object WeakMap]", Oa = "[object DataView]", B3 =
|
|
2478
|
+
var xa = "[object Map]", F3 = "[object Object]", Ca = "[object Promise]", Ea = "[object Set]", wa = "[object WeakMap]", Oa = "[object DataView]", B3 = it(Vr), N3 = it(Rt), G3 = it(Wr), L3 = it(Hr), z3 = it(kr), tt = Je;
|
|
2479
2479
|
(Vr && tt(new Vr(new ArrayBuffer(1))) != Oa || Rt && tt(new Rt()) != xa || Wr && tt(Wr.resolve()) != Ca || Hr && tt(new Hr()) != Ea || kr && tt(new kr()) != wa) && (tt = function(e) {
|
|
2480
|
-
var t = Je(e), r = t == F3 ? e.constructor : void 0, n = r ?
|
|
2480
|
+
var t = Je(e), r = t == F3 ? e.constructor : void 0, n = r ? it(r) : "";
|
|
2481
2481
|
if (n)
|
|
2482
2482
|
switch (n) {
|
|
2483
2483
|
case B3:
|
|
@@ -2701,7 +2701,7 @@ function D0(e, t) {
|
|
|
2701
2701
|
return Xs(e, t);
|
|
2702
2702
|
}
|
|
2703
2703
|
function I0(e, t, r, n) {
|
|
2704
|
-
if (!
|
|
2704
|
+
if (!At(e))
|
|
2705
2705
|
return e;
|
|
2706
2706
|
t = or(t, e);
|
|
2707
2707
|
for (var a = -1, s = t.length, c = s - 1, o = e; o != null && ++a < s; ) {
|
|
@@ -2710,7 +2710,7 @@ function I0(e, t, r, n) {
|
|
|
2710
2710
|
return e;
|
|
2711
2711
|
if (a != c) {
|
|
2712
2712
|
var p = o[l];
|
|
2713
|
-
f = n ? n(p, l, o) : void 0, f === void 0 && (f =
|
|
2713
|
+
f = n ? n(p, l, o) : void 0, f === void 0 && (f = At(p) ? p : ar(t[a + 1]) ? [] : {});
|
|
2714
2714
|
}
|
|
2715
2715
|
js(o, l, f), o = o[l];
|
|
2716
2716
|
}
|
|
@@ -3114,7 +3114,7 @@ const ol = () => Qr, [qr, Kr] = ir && window.addEventListener ? [
|
|
|
3114
3114
|
}, Na = !Ce.useId, It = !ir || "Deno" in window, pl = (e) => cl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Yt = It ? je : Vc, Rr = typeof navigator < "u" && navigator.connection, Ga = !It && Rr && ([
|
|
3115
3115
|
"slow-2g",
|
|
3116
3116
|
"2g"
|
|
3117
|
-
].includes(Rr.effectiveType) || Rr.saveData),
|
|
3117
|
+
].includes(Rr.effectiveType) || Rr.saveData), gt = (e) => {
|
|
3118
3118
|
if (Me(e))
|
|
3119
3119
|
try {
|
|
3120
3120
|
e = e();
|
|
@@ -3156,7 +3156,7 @@ async function cc(...e) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
return A(r);
|
|
3158
3158
|
async function A(h) {
|
|
3159
|
-
const [m] =
|
|
3159
|
+
const [m] = gt(h);
|
|
3160
3160
|
if (!m)
|
|
3161
3161
|
return;
|
|
3162
3162
|
const [g, b] = We(t, m), [v, _, R, T] = Ie.get(t), j = () => {
|
|
@@ -3310,7 +3310,7 @@ const La = (e, t) => {
|
|
|
3310
3310
|
null,
|
|
3311
3311
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
3312
3312
|
], uc = () => Ze(vl, an(bl)), Cl = (e) => (t, r, n) => e(t, r && ((...s) => {
|
|
3313
|
-
const [c] =
|
|
3313
|
+
const [c] = gt(t), [, , , o] = Ie.get(Sn);
|
|
3314
3314
|
if (c.startsWith(oc))
|
|
3315
3315
|
return r(...s);
|
|
3316
3316
|
const l = o[c];
|
|
@@ -3349,7 +3349,7 @@ const za = Ce.use || ((e) => {
|
|
|
3349
3349
|
}), Dr = {
|
|
3350
3350
|
dedupe: !0
|
|
3351
3351
|
}, Tl = (e, t, r) => {
|
|
3352
|
-
const { cache: n, compare: a, suspense: s, fallbackData: c, revalidateOnMount: o, revalidateIfStale: l, refreshInterval: f, refreshWhenHidden: p, refreshWhenOffline: u, keepPreviousData: A } = r, [h, m, g, b] = Ie.get(n), [v, _] =
|
|
3352
|
+
const { cache: n, compare: a, suspense: s, fallbackData: c, revalidateOnMount: o, revalidateIfStale: l, refreshInterval: f, refreshWhenHidden: p, refreshWhenOffline: u, keepPreviousData: A } = r, [h, m, g, b] = Ie.get(n), [v, _] = gt(e), R = _e(!1), T = _e(!1), j = _e(v), D = _e(t), G = _e(r), P = () => G.current, U = () => P().isVisible() && P().isOnline(), [M, I, B, $] = We(n, v), x = _e({}).current, C = V(c) ? r.fallback[v] : c, y = (Y, q) => {
|
|
3353
3353
|
for (const le in x) {
|
|
3354
3354
|
const J = le;
|
|
3355
3355
|
if (J === "data") {
|
|
@@ -3399,7 +3399,7 @@ const za = Ce.use || ((e) => {
|
|
|
3399
3399
|
isLoading: !1
|
|
3400
3400
|
}, Ft = () => {
|
|
3401
3401
|
I(we);
|
|
3402
|
-
},
|
|
3402
|
+
}, ut = () => {
|
|
3403
3403
|
const ge = g[v];
|
|
3404
3404
|
ge && ge[1] === J && delete g[v];
|
|
3405
3405
|
}, Bt = {
|
|
@@ -3412,7 +3412,7 @@ const za = Ce.use || ((e) => {
|
|
|
3412
3412
|
}, r.loadingTimeout), g[v] = [
|
|
3413
3413
|
q(_),
|
|
3414
3414
|
Xr()
|
|
3415
|
-
]), [le, J] = g[v], le = await le, se && setTimeout(
|
|
3415
|
+
]), [le, J] = g[v], le = await le, se && setTimeout(ut, r.dedupingInterval), !g[v] || g[v][1] !== J)
|
|
3416
3416
|
return se && ce() && P().onDiscarded(v), !1;
|
|
3417
3417
|
we.error = de;
|
|
3418
3418
|
const ge = m[v];
|
|
@@ -3424,9 +3424,9 @@ const za = Ce.use || ((e) => {
|
|
|
3424
3424
|
const be = M().data;
|
|
3425
3425
|
we.data = a(be, le) ? be : le, se && ce() && P().onSuccess(le, v, r);
|
|
3426
3426
|
} catch (ge) {
|
|
3427
|
-
|
|
3428
|
-
const be = P(), { shouldRetryOnError:
|
|
3429
|
-
be.isPaused() || (we.error = ge, se && ce() && (be.onError(ge, v, be), (
|
|
3427
|
+
ut();
|
|
3428
|
+
const be = P(), { shouldRetryOnError: ft } = be;
|
|
3429
|
+
be.isPaused() || (we.error = ge, se && ce() && (be.onError(ge, v, be), (ft === !0 || Me(ft) && ft(ge)) && U() && be.onErrorRetry(ge, v, be, (et) => {
|
|
3430
3430
|
const mt = h[v];
|
|
3431
3431
|
mt && mt[0] && mt[0](xt.ERROR_REVALIDATE_EVENT, et);
|
|
3432
3432
|
}, {
|
|
@@ -4100,7 +4100,7 @@ function kl(e, t, r) {
|
|
|
4100
4100
|
const n = Array.isArray(t) ? (a) => !t.includes(a) : (a, s) => !t(a, s);
|
|
4101
4101
|
return _c(e, n, r);
|
|
4102
4102
|
}
|
|
4103
|
-
const
|
|
4103
|
+
const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4104
4104
|
__proto__: null,
|
|
4105
4105
|
exclude: kl,
|
|
4106
4106
|
extract: En,
|
|
@@ -4184,7 +4184,7 @@ function tf(e = !1) {
|
|
|
4184
4184
|
const { usePermissionApiV2: t } = Re();
|
|
4185
4185
|
Pt(
|
|
4186
4186
|
e ? null : t ? "/api/usystem/user/checkV2" : "/api/usystem/user/check",
|
|
4187
|
-
(r) =>
|
|
4187
|
+
(r) => ct(r, {
|
|
4188
4188
|
method: "POST",
|
|
4189
4189
|
body: {
|
|
4190
4190
|
permissions: ["100001"]
|
|
@@ -4204,15 +4204,15 @@ class Va extends Error {
|
|
|
4204
4204
|
this.status = r.status, this.code = r.code;
|
|
4205
4205
|
}
|
|
4206
4206
|
}
|
|
4207
|
-
async function
|
|
4207
|
+
async function ct(e, t) {
|
|
4208
4208
|
var v;
|
|
4209
4209
|
let { body: r, params: n, headers: a, responseType: s = "json", isGlobalNS: c, ...o } = t ?? {};
|
|
4210
|
-
const l =
|
|
4210
|
+
const l = yt.parseUrl(e), f = Object.assign({}, l.query, n), p = {
|
|
4211
4211
|
skipNull: !0,
|
|
4212
4212
|
skipEmptyString: !0,
|
|
4213
4213
|
strict: !0,
|
|
4214
4214
|
encode: !0
|
|
4215
|
-
}, u =
|
|
4215
|
+
}, u = yt.stringify(f, p);
|
|
4216
4216
|
e = u ? `${l.url}?${u}` : e, a = new Headers(a);
|
|
4217
4217
|
const A = (v = Ot == null ? void 0 : Ot.getState()) == null ? void 0 : v.token;
|
|
4218
4218
|
if (A && a.set("Authorization", `Bearer ${A}`), Br.getState().usePermissionApiV2) {
|
|
@@ -4276,6 +4276,11 @@ const Hl = {
|
|
|
4276
4276
|
},
|
|
4277
4277
|
setIsLoading: (r) => {
|
|
4278
4278
|
e({ isLoading: r });
|
|
4279
|
+
},
|
|
4280
|
+
refreshGames() {
|
|
4281
|
+
ct("/api/usystem/game/all", { isGlobalNS: !0 }).then((r) => {
|
|
4282
|
+
t().setGames(r.data), t().setIsLoading(!1);
|
|
4283
|
+
});
|
|
4279
4284
|
}
|
|
4280
4285
|
}),
|
|
4281
4286
|
{
|
|
@@ -4284,7 +4289,7 @@ const Hl = {
|
|
|
4284
4289
|
partialize: (e) => ({ game: e.game }),
|
|
4285
4290
|
onRehydrateStorage: () => (console.log("Game store hydration starts"), (e, t) => {
|
|
4286
4291
|
e && !t && setTimeout(() => {
|
|
4287
|
-
|
|
4292
|
+
ct("/api/usystem/game/all", { isGlobalNS: !0 }).then((r) => {
|
|
4288
4293
|
e.setGames(r.data), e.setIsLoading(!1);
|
|
4289
4294
|
});
|
|
4290
4295
|
}, 800);
|
|
@@ -4367,7 +4372,7 @@ const Zl = (e) => {
|
|
|
4367
4372
|
a(c.join(""));
|
|
4368
4373
|
});
|
|
4369
4374
|
}, [r, t]), /* @__PURE__ */ d.jsx("p", { dangerouslySetInnerHTML: { __html: n } });
|
|
4370
|
-
}, rf = Zl, Jl = (e) =>
|
|
4375
|
+
}, rf = Zl, Jl = (e) => gt(e ? e(0, null) : null)[0], Ir = Promise.resolve(), eu = (e) => (t, r, n) => {
|
|
4371
4376
|
const a = _e(!1), { cache: s, initialSize: c = 1, revalidateAll: o = !1, persistSize: l = !1, revalidateFirstPage: f = !0, revalidateOnMount: p = !1, parallel: u = !1 } = n, [, , , A] = Ie.get(Sn);
|
|
4372
4377
|
let h;
|
|
4373
4378
|
try {
|
|
@@ -4413,7 +4418,7 @@ const Zl = (e) => {
|
|
|
4413
4418
|
const U = m()._i, M = [], I = _(), [B] = We(s, P), $ = B().data, x = [];
|
|
4414
4419
|
let C = null;
|
|
4415
4420
|
for (let y = 0; y < I; ++y) {
|
|
4416
|
-
const [w, E] =
|
|
4421
|
+
const [w, E] = gt(t(y, u ? null : C));
|
|
4417
4422
|
if (!w)
|
|
4418
4423
|
break;
|
|
4419
4424
|
const [F, N] = We(s, w);
|
|
@@ -4475,7 +4480,7 @@ const Zl = (e) => {
|
|
|
4475
4480
|
const I = [], [B] = We(s, h);
|
|
4476
4481
|
let $ = null;
|
|
4477
4482
|
for (let x = 0; x < M; ++x) {
|
|
4478
|
-
const [C] =
|
|
4483
|
+
const [C] = gt(t(x, $)), [y] = We(s, C), w = C ? y().data : de;
|
|
4479
4484
|
if (V(w))
|
|
4480
4485
|
return D(B().data);
|
|
4481
4486
|
I.push(w), $ = w;
|
|
@@ -4512,7 +4517,7 @@ const Zl = (e) => {
|
|
|
4512
4517
|
function Tn(e, t, r) {
|
|
4513
4518
|
const { usePermissionApiV2: n } = Re(), { data: a, isValidating: s, isLoading: c } = Pt(
|
|
4514
4519
|
e.length > 0 ? [n ? "/api/usystem/user/checkV2" : "/api/usystem/user/check", e] : null,
|
|
4515
|
-
([o]) =>
|
|
4520
|
+
([o]) => ct(o, {
|
|
4516
4521
|
method: "POST",
|
|
4517
4522
|
body: {
|
|
4518
4523
|
permissions: e
|
|
@@ -4567,7 +4572,7 @@ const ru = (e) => {
|
|
|
4567
4572
|
if (!b)
|
|
4568
4573
|
return null;
|
|
4569
4574
|
const E = p(_, y !== 0 ? c(w) : void 0);
|
|
4570
|
-
return
|
|
4575
|
+
return yt.stringify(E) ? `${r}?${yt.stringify(E)}` : r;
|
|
4571
4576
|
}, {
|
|
4572
4577
|
data: j,
|
|
4573
4578
|
size: D,
|
|
@@ -4575,7 +4580,7 @@ const ru = (e) => {
|
|
|
4575
4580
|
isValidating: P
|
|
4576
4581
|
} = tu(
|
|
4577
4582
|
T,
|
|
4578
|
-
(y) =>
|
|
4583
|
+
(y) => ct(y, {
|
|
4579
4584
|
headers: typeof a == "function" ? a(h) : a,
|
|
4580
4585
|
isGlobalNS: s
|
|
4581
4586
|
}).then((w) => w.data),
|
|
@@ -4875,14 +4880,14 @@ const su = Cc, cu = (e) => {
|
|
|
4875
4880
|
}));
|
|
4876
4881
|
var _u = /* @__PURE__ */ ((e) => (e.Confirm = "confirm", e.Reset = "reset", e.Jump = "jump", e.Init = "init", e))(_u || {});
|
|
4877
4882
|
function Ec(e, t, r, n) {
|
|
4878
|
-
const { url: a, query: s } =
|
|
4883
|
+
const { url: a, query: s } = yt.parseUrl(e), { page: c, size: o, arg: l = {} } = t ?? {}, f = Object.assign(
|
|
4879
4884
|
s,
|
|
4880
4885
|
typeof r == "function" ? r == null ? void 0 : r({ page: c, size: o, arg: l }) : n ? r : {
|
|
4881
4886
|
...l,
|
|
4882
4887
|
page: c,
|
|
4883
4888
|
size: o
|
|
4884
4889
|
}
|
|
4885
|
-
), p =
|
|
4890
|
+
), p = yt.stringify(f);
|
|
4886
4891
|
return p ? `${a}?${p}` : a;
|
|
4887
4892
|
}
|
|
4888
4893
|
const bu = (e, t) => {
|
|
@@ -4916,7 +4921,7 @@ const bu = (e, t) => {
|
|
|
4916
4921
|
} = Pt(
|
|
4917
4922
|
C,
|
|
4918
4923
|
async (k) => {
|
|
4919
|
-
const { page: ae = 1, size: ue = p, arg: pe = {} } = I ?? {}, fe = await
|
|
4924
|
+
const { page: ae = 1, size: ue = p, arg: pe = {} } = I ?? {}, fe = await ct(k, {
|
|
4920
4925
|
method: o,
|
|
4921
4926
|
headers: typeof a == "function" ? a({ page: ae, size: ue, arg: pe }) : a,
|
|
4922
4927
|
body: typeof l == "function" ? l({ page: ae, size: ue, arg: pe }) : l,
|
|
@@ -5442,7 +5447,7 @@ const Tu = /* @__PURE__ */ ln(Ou), { Option: Ha } = sn, { Paragraph: Ya } = cn,
|
|
|
5442
5447
|
const [e] = s2(), t = Ja(), { token: r, setToken: n } = Ot(), a = Ee(), { signInPageTitle: s, localeDropdownMenu: c, signInSuccessRedirectUrl: o, idaasRedirectUrl: l } = Re();
|
|
5443
5448
|
return ju(
|
|
5444
5449
|
e.has("ticket") ? `/api/usystem/user/login?ticket=${e.get("ticket")}` : null,
|
|
5445
|
-
(p) =>
|
|
5450
|
+
(p) => ct(p),
|
|
5446
5451
|
{
|
|
5447
5452
|
suspense: !0,
|
|
5448
5453
|
onSuccess: (p) => {
|
|
@@ -5474,7 +5479,7 @@ const Tu = /* @__PURE__ */ ln(Ou), { Option: Ha } = sn, { Paragraph: Ya } = cn,
|
|
|
5474
5479
|
}, Nu = Bu, Gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5475
5480
|
__proto__: null,
|
|
5476
5481
|
default: Nu
|
|
5477
|
-
}, Symbol.toStringTag, { value: "Module" })), Lu =
|
|
5482
|
+
}, Symbol.toStringTag, { value: "Module" })), Lu = ot(() => import("./index-iAvVdN4q.chunk.js")), zu = ot(() => import("./index-MzGlzyfE.chunk.js")), Uu = ot(() => import("./index-ZQhZn-uq.chunk.js")), ku = () => /* @__PURE__ */ d.jsxs(ts, { children: [
|
|
5478
5483
|
/* @__PURE__ */ d.jsx(He, { index: !0, element: /* @__PURE__ */ d.jsx(Mr, { to: "user" }) }),
|
|
5479
5484
|
/* @__PURE__ */ d.jsx(He, { path: "user", element: /* @__PURE__ */ d.jsx(Lu, {}) }),
|
|
5480
5485
|
/* @__PURE__ */ d.jsx(He, { path: "role", element: /* @__PURE__ */ d.jsx(zu, {}) }),
|
|
@@ -5482,7 +5487,7 @@ const Tu = /* @__PURE__ */ ln(Ou), { Option: Ha } = sn, { Paragraph: Ya } = cn,
|
|
|
5482
5487
|
] }), $u = ku, Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5483
5488
|
__proto__: null,
|
|
5484
5489
|
default: $u
|
|
5485
|
-
}, Symbol.toStringTag, { value: "Module" })), Wu =
|
|
5490
|
+
}, Symbol.toStringTag, { value: "Module" })), Wu = ot(() => Promise.resolve().then(() => wu)), Hu = ot(() => Promise.resolve().then(() => Iu)), Yu = ot(() => Promise.resolve().then(() => Gu)), Qu = ot(() => Promise.resolve().then(() => Vu)), Qa = (e, t) => () => /* @__PURE__ */ d.jsx(v2, { ...t, children: /* @__PURE__ */ d.jsx(gu, { children: /* @__PURE__ */ d.jsx(e, {}) }) });
|
|
5486
5491
|
function of(e, t) {
|
|
5487
5492
|
return () => {
|
|
5488
5493
|
const n = Object.assign({}, t, { hideGameSelect: !0 });
|
|
@@ -5514,7 +5519,7 @@ export {
|
|
|
5514
5519
|
Va as R,
|
|
5515
5520
|
Nu as S,
|
|
5516
5521
|
de as U,
|
|
5517
|
-
|
|
5522
|
+
ht as _,
|
|
5518
5523
|
Ee as a,
|
|
5519
5524
|
cf as b,
|
|
5520
5525
|
Rn as c,
|
|
@@ -5532,8 +5537,8 @@ export {
|
|
|
5532
5537
|
_u as o,
|
|
5533
5538
|
ou as p,
|
|
5534
5539
|
lu as q,
|
|
5535
|
-
|
|
5536
|
-
|
|
5540
|
+
ct as r,
|
|
5541
|
+
gt as s,
|
|
5537
5542
|
Br as t,
|
|
5538
5543
|
vu as u,
|
|
5539
5544
|
Hl as v,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as O, w as W, e as h, f as x, s as z, m as w, g as V, U as R, h as U, d as G, r as n, c as K } from "./index-
|
|
1
|
+
import { I as O, w as W, e as h, f as x, s as z, m as w, g as V, U as R, h as U, d as G, r as n, c as K } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import L, { useRef as o, useCallback as N, useState as $ } from "react";
|
|
3
3
|
const P = O ? (e) => {
|
|
4
4
|
e();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as T, _, c as M, d as N, u as b, a as f, j as e, P as j, r as z, H as P, Q as $, b as L } from "./index-
|
|
1
|
+
import { A as T, _, c as M, d as N, u as b, a as f, j as e, P as j, r as z, H as P, Q as $, b as L } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import { App as w, Space as H, Card as G, Form as m, Input as A } from "antd";
|
|
3
3
|
import { p as k } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as B } from "react-router-dom";
|
|
5
|
-
import { P as v } from "./index-
|
|
6
|
-
import { d as E, e as V, f as q } from "./index-
|
|
5
|
+
import { P as v } from "./index-_CFeMHGZ.chunk.js";
|
|
6
|
+
import { d as E, e as V, f as q } from "./index-EAawrEpf.chunk.js";
|
|
7
7
|
import * as I from "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var D = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z" } }] }, name: "usergroup-add", theme: "outlined" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as t, j as i } from "./index-
|
|
1
|
+
import { a as t, j as i } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as l } from "antd";
|
|
3
3
|
import { useParams as c, Link as x } from "react-router-dom";
|
|
4
|
-
import { P as j } from "./index-
|
|
5
|
-
import { g as p } from "./index-
|
|
4
|
+
import { P as j } from "./index-_CFeMHGZ.chunk.js";
|
|
5
|
+
import { g as p } from "./index-EAawrEpf.chunk.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const k = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as S, j as e, d as $ } from "./index-
|
|
1
|
+
import { a as S, j as e, d as $ } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import { Collapse as D, Checkbox as k, Row as G, Col as _, Skeleton as T, Typography as A, Divider as w, Card as K, Space as M, Select as E, Button as N, Empty as O } from "antd";
|
|
3
|
-
import { h as R, i as B } from "./index-
|
|
3
|
+
import { h as R, i as B } from "./index-EAawrEpf.chunk.js";
|
|
4
4
|
import { useState as P, useCallback as F, useEffect as b } from "react";
|
|
5
5
|
const q = (x) => {
|
|
6
6
|
const { permissions: l, readonly: t, expand: d, value: a, onChange: r } = x, [m, p] = P([]), [g, u] = P({}), [c, f] = P(a ?? []), C = S(), h = F((s) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as M, _ as N, u as b, a as U, j as e, P as j, H as z, Q as H, b as A } from "./index-
|
|
1
|
+
import { A as M, _ as N, u as b, a as U, j as e, P as j, H as z, Q as H, b as A } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import { App as y, Row as R, Col as E, Tag as w, Space as G, Card as _, Form as u, Input as L, Select as C } from "antd";
|
|
3
3
|
import { p as I } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as D } from "react-router-dom";
|
|
5
|
-
import { u as P, a as Q, b as k, c as V } from "./index-
|
|
5
|
+
import { u as P, a as Q, b as k, c as V } from "./index-EAawrEpf.chunk.js";
|
|
6
6
|
import * as O from "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var $ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "user-add", theme: "outlined" };
|
package/lib/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare interface GameState {
|
|
|
82
82
|
setGames: (games: Game[]) => void;
|
|
83
83
|
clearGame: () => void;
|
|
84
84
|
setIsLoading: (isLoading: boolean) => void;
|
|
85
|
+
refreshGames: () => void;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
export declare const Highlight: (props: HighlightTextsProps) => JSX_2.Element;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, D as n, F as u, G as m, H as p, i as L, L as d, N as l, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as T, S as h, q as k, t as q, v as Q, r as R, b as v, x as B, c as C, y as N, u as f, z as w, B as D, d as E, a as H, E as I, J as M } from "./index-
|
|
1
|
+
import { C as r, D as n, F as u, G as m, H as p, i as L, L as d, N as l, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as T, S as h, q as k, t as q, v as Q, r as R, b as v, x as B, c as C, y as N, u as f, z as w, B as D, d as E, a as H, E as I, J as M } from "./index-2I_COrHX.chunk.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "react-dom";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-toolkits",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.21",
|
|
4
4
|
"packageManager": "^pnpm@8.7.5",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"typescript": "^5.3.3",
|
|
70
70
|
"vite": "^5.0.10",
|
|
71
71
|
"vite-plugin-dts": "^3.6.4",
|
|
72
|
+
"@flow97/eslint-config-mono": "0.0.4",
|
|
72
73
|
"tailwind-config": "0.1.1",
|
|
73
|
-
"tsconfig": "0.0.5"
|
|
74
|
-
"@flow97/eslint-config-mono": "0.0.4"
|
|
74
|
+
"tsconfig": "0.0.5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"antd": "^5.12.2",
|