xmirror-components 1.0.4 → 1.0.5
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/build/dist/xmirror-components.js +141 -186
- package/build/dist/xmirror-components.umd.cjs +9 -9
- package/build/es/components/IconFont/index.d.ts +1 -1
- package/build/es/components/index.d.ts +1 -4
- package/build/es/components/index.js +1 -4
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +2 -0
- package/build/lib/components/index.js +3 -9
- package/build/lib/index.js +18 -0
- package/build/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { message as Yr, notification as Hr, Modal as Ur, App as zr, Button as Dr, Tooltip as Vr } from "antd";
|
|
2
|
+
import Pr, { useRef as j, useMemo as he, useEffect as J, useState as Ar, useCallback as Jr, forwardRef as Xr, Fragment as Zr } from "react";
|
|
3
|
+
let Cr = Yr, Qr = Hr, Kr = Ur;
|
|
4
|
+
function Tn({ children: e }) {
|
|
5
|
+
const t = zr.useApp();
|
|
6
|
+
return Cr = t.message, Kr = t.modal, Qr = t.notification, e;
|
|
7
|
+
}
|
|
3
8
|
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
9
|
function Ye(e) {
|
|
5
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -55,13 +60,13 @@ function rt() {
|
|
|
55
60
|
return n.$$typeof === Ir ? null : n.displayName || n.name || null;
|
|
56
61
|
if (typeof n == "string") return n;
|
|
57
62
|
switch (n) {
|
|
58
|
-
case
|
|
63
|
+
case I:
|
|
59
64
|
return "Fragment";
|
|
60
65
|
case Y:
|
|
61
66
|
return "Portal";
|
|
62
67
|
case P:
|
|
63
68
|
return "Profiler";
|
|
64
|
-
case
|
|
69
|
+
case W:
|
|
65
70
|
return "StrictMode";
|
|
66
71
|
case H:
|
|
67
72
|
return "Suspense";
|
|
@@ -81,7 +86,7 @@ function rt() {
|
|
|
81
86
|
return n = n.displayName, n || (n = v.displayName || v.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
82
87
|
case A:
|
|
83
88
|
return v = n.displayName || null, v !== null ? v : e(n.type) || "Memo";
|
|
84
|
-
case
|
|
89
|
+
case $:
|
|
85
90
|
v = n._payload, n = n._init;
|
|
86
91
|
try {
|
|
87
92
|
return e(n(v));
|
|
@@ -170,61 +175,61 @@ function rt() {
|
|
|
170
175
|
var y = null;
|
|
171
176
|
y = U.H, U.H = null, i();
|
|
172
177
|
try {
|
|
173
|
-
var
|
|
178
|
+
var O = {
|
|
174
179
|
DetermineComponentFrameRoot: function() {
|
|
175
180
|
try {
|
|
176
181
|
if (v) {
|
|
177
|
-
var
|
|
182
|
+
var B = function() {
|
|
178
183
|
throw Error();
|
|
179
184
|
};
|
|
180
|
-
if (Object.defineProperty(
|
|
185
|
+
if (Object.defineProperty(B.prototype, "props", {
|
|
181
186
|
set: function() {
|
|
182
187
|
throw Error();
|
|
183
188
|
}
|
|
184
189
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
185
190
|
try {
|
|
186
|
-
Reflect.construct(
|
|
187
|
-
} catch (
|
|
188
|
-
var le =
|
|
191
|
+
Reflect.construct(B, []);
|
|
192
|
+
} catch (F) {
|
|
193
|
+
var le = F;
|
|
189
194
|
}
|
|
190
|
-
Reflect.construct(n, [],
|
|
195
|
+
Reflect.construct(n, [], B);
|
|
191
196
|
} else {
|
|
192
197
|
try {
|
|
193
|
-
|
|
194
|
-
} catch (
|
|
195
|
-
le =
|
|
198
|
+
B.call();
|
|
199
|
+
} catch (F) {
|
|
200
|
+
le = F;
|
|
196
201
|
}
|
|
197
|
-
n.call(
|
|
202
|
+
n.call(B.prototype);
|
|
198
203
|
}
|
|
199
204
|
} else {
|
|
200
205
|
try {
|
|
201
206
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
le =
|
|
207
|
+
} catch (F) {
|
|
208
|
+
le = F;
|
|
204
209
|
}
|
|
205
|
-
(
|
|
210
|
+
(B = n()) && typeof B.catch == "function" && B.catch(function() {
|
|
206
211
|
});
|
|
207
212
|
}
|
|
208
|
-
} catch (
|
|
209
|
-
if (
|
|
210
|
-
return [
|
|
213
|
+
} catch (F) {
|
|
214
|
+
if (F && le && typeof F.stack == "string")
|
|
215
|
+
return [F.stack, le.stack];
|
|
211
216
|
}
|
|
212
217
|
return [null, null];
|
|
213
218
|
}
|
|
214
219
|
};
|
|
215
|
-
|
|
220
|
+
O.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
216
221
|
var w = Object.getOwnPropertyDescriptor(
|
|
217
|
-
|
|
222
|
+
O.DetermineComponentFrameRoot,
|
|
218
223
|
"name"
|
|
219
224
|
);
|
|
220
225
|
w && w.configurable && Object.defineProperty(
|
|
221
|
-
|
|
226
|
+
O.DetermineComponentFrameRoot,
|
|
222
227
|
"name",
|
|
223
228
|
{ value: "DetermineComponentFrameRoot" }
|
|
224
229
|
);
|
|
225
|
-
var h =
|
|
226
|
-
if (
|
|
227
|
-
var R =
|
|
230
|
+
var h = O.DetermineComponentFrameRoot(), L = h[0], X = h[1];
|
|
231
|
+
if (L && X) {
|
|
232
|
+
var R = L.split(`
|
|
228
233
|
`), D = X.split(`
|
|
229
234
|
`);
|
|
230
235
|
for (h = w = 0; w < R.length && !R[w].includes(
|
|
@@ -281,7 +286,7 @@ function rt() {
|
|
|
281
286
|
return n = s(n.render, !1), n;
|
|
282
287
|
case A:
|
|
283
288
|
return f(n.type);
|
|
284
|
-
case
|
|
289
|
+
case $:
|
|
285
290
|
v = n._payload, n = n._init;
|
|
286
291
|
try {
|
|
287
292
|
return f(n(v));
|
|
@@ -319,13 +324,13 @@ function rt() {
|
|
|
319
324
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
320
325
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
321
326
|
}
|
|
322
|
-
function m(n, v, g, y,
|
|
327
|
+
function m(n, v, g, y, O, w) {
|
|
323
328
|
return g = w.ref, n = {
|
|
324
329
|
$$typeof: k,
|
|
325
330
|
type: n,
|
|
326
331
|
key: v,
|
|
327
332
|
props: w,
|
|
328
|
-
_owner:
|
|
333
|
+
_owner: O
|
|
329
334
|
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(n, "ref", {
|
|
330
335
|
enumerable: !1,
|
|
331
336
|
get: p
|
|
@@ -341,8 +346,8 @@ function rt() {
|
|
|
341
346
|
value: null
|
|
342
347
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
343
348
|
}
|
|
344
|
-
function b(n, v, g, y,
|
|
345
|
-
if (typeof n == "string" || typeof n == "function" || n ===
|
|
349
|
+
function b(n, v, g, y, O, w) {
|
|
350
|
+
if (typeof n == "string" || typeof n == "function" || n === I || n === P || n === W || n === H || n === T || n === fe || typeof n == "object" && n !== null && (n.$$typeof === $ || n.$$typeof === A || n.$$typeof === se || n.$$typeof === Q || n.$$typeof === K || n.$$typeof === Br || n.getModuleId !== void 0)) {
|
|
346
351
|
var h = v.children;
|
|
347
352
|
if (h !== void 0)
|
|
348
353
|
if (y)
|
|
@@ -363,10 +368,10 @@ function rt() {
|
|
|
363
368
|
);
|
|
364
369
|
if (Ve.call(v, "key")) {
|
|
365
370
|
h = e(n);
|
|
366
|
-
var
|
|
371
|
+
var L = Object.keys(v).filter(function(R) {
|
|
367
372
|
return R !== "key";
|
|
368
373
|
});
|
|
369
|
-
y = 0 <
|
|
374
|
+
y = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
370
375
|
`A props object containing a "key" prop is being spread into JSX:
|
|
371
376
|
let props = %s;
|
|
372
377
|
<%s {...props} />
|
|
@@ -375,7 +380,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
375
380
|
<%s key={someKey} {...props} />`,
|
|
376
381
|
y,
|
|
377
382
|
h,
|
|
378
|
-
|
|
383
|
+
L,
|
|
379
384
|
h
|
|
380
385
|
), or[h + y] = !0);
|
|
381
386
|
}
|
|
@@ -387,34 +392,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
387
392
|
return h && l(
|
|
388
393
|
g,
|
|
389
394
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
390
|
-
), m(n, h, w,
|
|
395
|
+
), m(n, h, w, O, u(), g);
|
|
391
396
|
}
|
|
392
397
|
function E(n, v) {
|
|
393
398
|
if (typeof n == "object" && n && n.$$typeof !== Gr) {
|
|
394
399
|
if (Ee(n))
|
|
395
400
|
for (var g = 0; g < n.length; g++) {
|
|
396
401
|
var y = n[g];
|
|
397
|
-
x(y) &&
|
|
402
|
+
x(y) && q(y, v);
|
|
398
403
|
}
|
|
399
404
|
else if (x(n))
|
|
400
405
|
n._store && (n._store.validated = 1);
|
|
401
406
|
else if (n === null || typeof n != "object" ? g = null : (g = De && n[De] || n["@@iterator"], g = typeof g == "function" ? g : null), typeof g == "function" && g !== n.entries && (g = g.call(n), g !== n))
|
|
402
407
|
for (; !(n = g.next()).done; )
|
|
403
|
-
x(n.value) &&
|
|
408
|
+
x(n.value) && q(n.value, v);
|
|
404
409
|
}
|
|
405
410
|
}
|
|
406
411
|
function x(n) {
|
|
407
412
|
return typeof n == "object" && n !== null && n.$$typeof === k;
|
|
408
413
|
}
|
|
409
|
-
function
|
|
414
|
+
function q(n, v) {
|
|
410
415
|
if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, v = N(v), !ir[v])) {
|
|
411
416
|
ir[v] = !0;
|
|
412
417
|
var g = "";
|
|
413
418
|
n && n._owner != null && n._owner !== u() && (g = null, typeof n._owner.tag == "number" ? g = e(n._owner.type) : typeof n._owner.name == "string" && (g = n._owner.name), g = " It was passed a child from " + g + ".");
|
|
414
419
|
var y = U.getCurrentStack;
|
|
415
420
|
U.getCurrentStack = function() {
|
|
416
|
-
var
|
|
417
|
-
return y && (
|
|
421
|
+
var O = f(n.type);
|
|
422
|
+
return y && (O += y() || ""), O;
|
|
418
423
|
}, console.error(
|
|
419
424
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
420
425
|
v,
|
|
@@ -430,13 +435,13 @@ Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
|
|
|
430
435
|
|
|
431
436
|
Check the top-level render call using <` + n + ">."), v;
|
|
432
437
|
}
|
|
433
|
-
var
|
|
438
|
+
var M = Pr, k = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), I = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), se = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), De = Symbol.iterator, Ir = Symbol.for("react.client.reference"), U = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ve = Object.prototype.hasOwnProperty, z = Object.assign, Br = Symbol.for("react.client.reference"), Ee = Array.isArray, ee = 0, Je, Xe, Ze, Qe, Ke, er, rr;
|
|
434
439
|
a.__reactDisabledLog = !0;
|
|
435
440
|
var Te, tr, we = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Gr = Symbol.for("react.client.reference"), nr, ar = {}, or = {}, ir = {};
|
|
436
|
-
ne.Fragment =
|
|
437
|
-
return b(n, v, g, !1, y,
|
|
438
|
-
}, ne.jsxs = function(n, v, g, y,
|
|
439
|
-
return b(n, v, g, !0, y,
|
|
441
|
+
ne.Fragment = I, ne.jsx = function(n, v, g, y, O) {
|
|
442
|
+
return b(n, v, g, !1, y, O);
|
|
443
|
+
}, ne.jsxs = function(n, v, g, y, O) {
|
|
444
|
+
return b(n, v, g, !0, y, O);
|
|
440
445
|
};
|
|
441
446
|
}()), ne;
|
|
442
447
|
}
|
|
@@ -444,31 +449,7 @@ var sr;
|
|
|
444
449
|
function tt() {
|
|
445
450
|
return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
|
|
446
451
|
}
|
|
447
|
-
var
|
|
448
|
-
const jn = ({
|
|
449
|
-
checked: e,
|
|
450
|
-
onChange: t,
|
|
451
|
-
trueValue: r = !0,
|
|
452
|
-
falseValue: a = !1,
|
|
453
|
-
trueLabel: i = "",
|
|
454
|
-
falseLabel: o = "",
|
|
455
|
-
children: c,
|
|
456
|
-
...s
|
|
457
|
-
}) => {
|
|
458
|
-
const f = e === r, u = (d) => {
|
|
459
|
-
t == null || t(d.target.checked ? r : a, d);
|
|
460
|
-
};
|
|
461
|
-
return /* @__PURE__ */ q.jsx(
|
|
462
|
-
zr,
|
|
463
|
-
{
|
|
464
|
-
checked: f,
|
|
465
|
-
onChange: u,
|
|
466
|
-
...s,
|
|
467
|
-
children: c || (f ? i : o)
|
|
468
|
-
}
|
|
469
|
-
);
|
|
470
|
-
};
|
|
471
|
-
var nt = typeof global == "object" && global && global.Object === Object && global, at = typeof self == "object" && self && self.Object === Object && self, ot = nt || at || Function("return this")(), me = ot.Symbol, Cr = Object.prototype, it = Cr.hasOwnProperty, ut = Cr.toString, ae = me ? me.toStringTag : void 0;
|
|
452
|
+
var G = tt(), nt = typeof global == "object" && global && global.Object === Object && global, at = typeof self == "object" && self && self.Object === Object && self, ot = nt || at || Function("return this")(), me = ot.Symbol, Nr = Object.prototype, it = Nr.hasOwnProperty, ut = Nr.toString, ae = me ? me.toStringTag : void 0;
|
|
472
453
|
function ct(e) {
|
|
473
454
|
var t = it.call(e, ae), r = e[ae];
|
|
474
455
|
try {
|
|
@@ -561,7 +542,7 @@ var jt = function(e) {
|
|
|
561
542
|
return t;
|
|
562
543
|
}, C.apply(this, arguments);
|
|
563
544
|
};
|
|
564
|
-
function
|
|
545
|
+
function kr(e, t) {
|
|
565
546
|
var r = {};
|
|
566
547
|
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
567
548
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -596,7 +577,7 @@ function _t(e, t, r, a) {
|
|
|
596
577
|
u((a = a.apply(e, t || [])).next());
|
|
597
578
|
});
|
|
598
579
|
}
|
|
599
|
-
function
|
|
580
|
+
function Ot(e, t) {
|
|
600
581
|
var r = { label: 0, sent: function() {
|
|
601
582
|
if (o[0] & 1) throw o[1];
|
|
602
583
|
return o[1];
|
|
@@ -673,7 +654,7 @@ function _(e, t) {
|
|
|
673
654
|
}
|
|
674
655
|
return o;
|
|
675
656
|
}
|
|
676
|
-
function
|
|
657
|
+
function S(e, t, r) {
|
|
677
658
|
if (r || arguments.length === 2) for (var a = 0, i = t.length, o; a < i; a++)
|
|
678
659
|
(o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
|
|
679
660
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -695,13 +676,13 @@ function Z(e) {
|
|
|
695
676
|
}), r.current;
|
|
696
677
|
}
|
|
697
678
|
const Be = jt(J);
|
|
698
|
-
var
|
|
679
|
+
var qr = function(e, t) {
|
|
699
680
|
var r = t.manual, a = t.ready, i = a === void 0 ? !0 : a, o = t.defaultParams, c = o === void 0 ? [] : o, s = t.refreshDeps, f = s === void 0 ? [] : s, u = t.refreshDepsAction, d = j(!1);
|
|
700
681
|
return d.current = !1, Be(function() {
|
|
701
|
-
!r && i && (d.current = !0, e.run.apply(e,
|
|
682
|
+
!r && i && (d.current = !0, e.run.apply(e, S([], _(c), !1)));
|
|
702
683
|
}, [i]), Be(function() {
|
|
703
684
|
d.current || r || (d.current = !0, u ? u() : e.refresh());
|
|
704
|
-
},
|
|
685
|
+
}, S([], _(f), !1)), {
|
|
705
686
|
onBefore: function() {
|
|
706
687
|
if (!i)
|
|
707
688
|
return {
|
|
@@ -710,7 +691,7 @@ var kr = function(e, t) {
|
|
|
710
691
|
}
|
|
711
692
|
};
|
|
712
693
|
};
|
|
713
|
-
|
|
694
|
+
qr.onInit = function(e) {
|
|
714
695
|
var t = e.ready, r = t === void 0 ? !0 : t, a = e.manual;
|
|
715
696
|
return {
|
|
716
697
|
loading: !a && r
|
|
@@ -722,7 +703,7 @@ function Ge(e, t) {
|
|
|
722
703
|
if (!Object.is(e[r], t[r])) return !1;
|
|
723
704
|
return !0;
|
|
724
705
|
}
|
|
725
|
-
function
|
|
706
|
+
function Mr(e, t) {
|
|
726
707
|
var r = j({
|
|
727
708
|
deps: t,
|
|
728
709
|
obj: void 0,
|
|
@@ -742,7 +723,7 @@ var ye = function(e) {
|
|
|
742
723
|
t.current();
|
|
743
724
|
};
|
|
744
725
|
}, []);
|
|
745
|
-
}, ge = /* @__PURE__ */ new Map(),
|
|
726
|
+
}, ge = /* @__PURE__ */ new Map(), St = function(e, t, r) {
|
|
746
727
|
var a = ge.get(e);
|
|
747
728
|
a != null && a.timer && clearTimeout(a.timer);
|
|
748
729
|
var i = void 0;
|
|
@@ -765,21 +746,21 @@ var ye = function(e) {
|
|
|
765
746
|
V[e] && V[e].forEach(function(r) {
|
|
766
747
|
return r(t);
|
|
767
748
|
});
|
|
768
|
-
},
|
|
749
|
+
}, Oe = function(e, t) {
|
|
769
750
|
return V[e] || (V[e] = []), V[e].push(t), function() {
|
|
770
751
|
var a = V[e].indexOf(t);
|
|
771
752
|
V[e].splice(a, 1);
|
|
772
753
|
};
|
|
773
754
|
}, Ct = function(e, t) {
|
|
774
755
|
var r = t.cacheKey, a = t.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = t.staleTime, c = o === void 0 ? 0 : o, s = t.setCache, f = t.getCache, u = j(), d = j(), l = function(m, b) {
|
|
775
|
-
s ? s(b) :
|
|
756
|
+
s ? s(b) : St(m, i, b), At(m, b.data);
|
|
776
757
|
}, p = function(m, b) {
|
|
777
758
|
return b === void 0 && (b = []), f ? f(b) : Rt(m);
|
|
778
759
|
};
|
|
779
|
-
return
|
|
760
|
+
return Mr(function() {
|
|
780
761
|
if (r) {
|
|
781
762
|
var m = p(r);
|
|
782
|
-
m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current =
|
|
763
|
+
m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current = Oe(r, function(b) {
|
|
783
764
|
e.setState({
|
|
784
765
|
data: b
|
|
785
766
|
});
|
|
@@ -805,7 +786,7 @@ var ye = function(e) {
|
|
|
805
786
|
var E = xt(r);
|
|
806
787
|
return E && E !== d.current ? {
|
|
807
788
|
servicePromise: E
|
|
808
|
-
} : (E = m.apply(void 0,
|
|
789
|
+
} : (E = m.apply(void 0, S([], _(b), !1)), d.current = E, Pt(r, E), {
|
|
809
790
|
servicePromise: E
|
|
810
791
|
});
|
|
811
792
|
},
|
|
@@ -815,7 +796,7 @@ var ye = function(e) {
|
|
|
815
796
|
data: m,
|
|
816
797
|
params: b,
|
|
817
798
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
818
|
-
}), u.current =
|
|
799
|
+
}), u.current = Oe(r, function(x) {
|
|
819
800
|
e.setState({
|
|
820
801
|
data: x
|
|
821
802
|
});
|
|
@@ -827,22 +808,22 @@ var ye = function(e) {
|
|
|
827
808
|
data: m,
|
|
828
809
|
params: e.state.params,
|
|
829
810
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
830
|
-
}), u.current =
|
|
811
|
+
}), u.current = Oe(r, function(E) {
|
|
831
812
|
e.setState({
|
|
832
813
|
data: E
|
|
833
814
|
});
|
|
834
815
|
}));
|
|
835
816
|
}
|
|
836
817
|
} : {};
|
|
837
|
-
},
|
|
818
|
+
}, Se, dr;
|
|
838
819
|
function Ue() {
|
|
839
|
-
if (dr) return
|
|
820
|
+
if (dr) return Se;
|
|
840
821
|
dr = 1;
|
|
841
822
|
function e(t) {
|
|
842
823
|
var r = typeof t;
|
|
843
824
|
return t != null && (r == "object" || r == "function");
|
|
844
825
|
}
|
|
845
|
-
return
|
|
826
|
+
return Se = e, Se;
|
|
846
827
|
}
|
|
847
828
|
var Re, vr;
|
|
848
829
|
function Nt() {
|
|
@@ -852,7 +833,7 @@ function Nt() {
|
|
|
852
833
|
return Re = e, Re;
|
|
853
834
|
}
|
|
854
835
|
var xe, gr;
|
|
855
|
-
function
|
|
836
|
+
function Wr() {
|
|
856
837
|
if (gr) return xe;
|
|
857
838
|
gr = 1;
|
|
858
839
|
var e = Nt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
|
|
@@ -862,7 +843,7 @@ var Pe, br;
|
|
|
862
843
|
function kt() {
|
|
863
844
|
if (br) return Pe;
|
|
864
845
|
br = 1;
|
|
865
|
-
var e =
|
|
846
|
+
var e = Wr(), t = function() {
|
|
866
847
|
return e.Date.now();
|
|
867
848
|
};
|
|
868
849
|
return Pe = t, Pe;
|
|
@@ -890,17 +871,17 @@ function Mt() {
|
|
|
890
871
|
return Ce = r, Ce;
|
|
891
872
|
}
|
|
892
873
|
var Ne, pr;
|
|
893
|
-
function
|
|
874
|
+
function $r() {
|
|
894
875
|
if (pr) return Ne;
|
|
895
876
|
pr = 1;
|
|
896
|
-
var e =
|
|
877
|
+
var e = Wr(), t = e.Symbol;
|
|
897
878
|
return Ne = t, Ne;
|
|
898
879
|
}
|
|
899
880
|
var ke, yr;
|
|
900
881
|
function Wt() {
|
|
901
882
|
if (yr) return ke;
|
|
902
883
|
yr = 1;
|
|
903
|
-
var e =
|
|
884
|
+
var e = $r(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, i = e ? e.toStringTag : void 0;
|
|
904
885
|
function o(c) {
|
|
905
886
|
var s = r.call(c, i), f = c[i];
|
|
906
887
|
try {
|
|
@@ -927,7 +908,7 @@ var Me, Tr;
|
|
|
927
908
|
function Lt() {
|
|
928
909
|
if (Tr) return Me;
|
|
929
910
|
Tr = 1;
|
|
930
|
-
var e =
|
|
911
|
+
var e = $r(), t = Wt(), r = $t(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
931
912
|
function c(s) {
|
|
932
913
|
return s == null ? s === void 0 ? i : a : o && o in Object(s) ? t(s) : r(s);
|
|
933
914
|
}
|
|
@@ -974,39 +955,39 @@ function Bt() {
|
|
|
974
955
|
}
|
|
975
956
|
return Le = f, Le;
|
|
976
957
|
}
|
|
977
|
-
var Fe,
|
|
978
|
-
function
|
|
979
|
-
if (
|
|
980
|
-
|
|
958
|
+
var Fe, Or;
|
|
959
|
+
function Lr() {
|
|
960
|
+
if (Or) return Fe;
|
|
961
|
+
Or = 1;
|
|
981
962
|
var e = Ue(), t = kt(), r = Bt(), a = "Expected a function", i = Math.max, o = Math.min;
|
|
982
963
|
function c(s, f, u) {
|
|
983
|
-
var d, l, p, m, b, E, x = 0,
|
|
964
|
+
var d, l, p, m, b, E, x = 0, q = !1, N = !1, M = !0;
|
|
984
965
|
if (typeof s != "function")
|
|
985
966
|
throw new TypeError(a);
|
|
986
|
-
f = r(f) || 0, e(u) && (
|
|
967
|
+
f = r(f) || 0, e(u) && (q = !!u.leading, N = "maxWait" in u, p = N ? i(r(u.maxWait) || 0, f) : p, M = "trailing" in u ? !!u.trailing : M);
|
|
987
968
|
function k(T) {
|
|
988
|
-
var A = d,
|
|
989
|
-
return d = l = void 0, x = T, m = s.apply(
|
|
969
|
+
var A = d, $ = l;
|
|
970
|
+
return d = l = void 0, x = T, m = s.apply($, A), m;
|
|
990
971
|
}
|
|
991
972
|
function Y(T) {
|
|
992
|
-
return x = T, b = setTimeout(P, f),
|
|
973
|
+
return x = T, b = setTimeout(P, f), q ? k(T) : m;
|
|
993
974
|
}
|
|
994
|
-
function
|
|
995
|
-
var A = T - E,
|
|
996
|
-
return N ? o(fe, p -
|
|
975
|
+
function I(T) {
|
|
976
|
+
var A = T - E, $ = T - x, fe = f - A;
|
|
977
|
+
return N ? o(fe, p - $) : fe;
|
|
997
978
|
}
|
|
998
|
-
function
|
|
999
|
-
var A = T - E,
|
|
1000
|
-
return E === void 0 || A >= f || A < 0 || N &&
|
|
979
|
+
function W(T) {
|
|
980
|
+
var A = T - E, $ = T - x;
|
|
981
|
+
return E === void 0 || A >= f || A < 0 || N && $ >= p;
|
|
1001
982
|
}
|
|
1002
983
|
function P() {
|
|
1003
984
|
var T = t();
|
|
1004
|
-
if (
|
|
985
|
+
if (W(T))
|
|
1005
986
|
return Q(T);
|
|
1006
|
-
b = setTimeout(P,
|
|
987
|
+
b = setTimeout(P, I(T));
|
|
1007
988
|
}
|
|
1008
989
|
function Q(T) {
|
|
1009
|
-
return b = void 0,
|
|
990
|
+
return b = void 0, M && d ? k(T) : (d = l = void 0, m);
|
|
1010
991
|
}
|
|
1011
992
|
function se() {
|
|
1012
993
|
b !== void 0 && clearTimeout(b), x = 0, d = E = l = b = void 0;
|
|
@@ -1015,7 +996,7 @@ function $r() {
|
|
|
1015
996
|
return b === void 0 ? m : Q(t());
|
|
1016
997
|
}
|
|
1017
998
|
function H() {
|
|
1018
|
-
var T = t(), A =
|
|
999
|
+
var T = t(), A = W(T);
|
|
1019
1000
|
if (d = arguments, l = this, E = T, A) {
|
|
1020
1001
|
if (b === void 0)
|
|
1021
1002
|
return Y(E);
|
|
@@ -1028,7 +1009,7 @@ function $r() {
|
|
|
1028
1009
|
}
|
|
1029
1010
|
return Fe = c, Fe;
|
|
1030
1011
|
}
|
|
1031
|
-
var Gt =
|
|
1012
|
+
var Gt = Lr();
|
|
1032
1013
|
const Yt = /* @__PURE__ */ Ye(Gt);
|
|
1033
1014
|
var Ht = function(e, t) {
|
|
1034
1015
|
var r = t.debounceWait, a = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, c = j(), s = he(function() {
|
|
@@ -1046,7 +1027,7 @@ var Ht = function(e, t) {
|
|
|
1046
1027
|
return new Promise(function(l, p) {
|
|
1047
1028
|
var m;
|
|
1048
1029
|
(m = c.current) === null || m === void 0 || m.call(c, function() {
|
|
1049
|
-
f.apply(void 0,
|
|
1030
|
+
f.apply(void 0, S([], _(u), !1)).then(l).catch(p);
|
|
1050
1031
|
});
|
|
1051
1032
|
});
|
|
1052
1033
|
}, function() {
|
|
@@ -1140,7 +1121,7 @@ function Jt(e, t) {
|
|
|
1140
1121
|
return function() {
|
|
1141
1122
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
1142
1123
|
a[i] = arguments[i];
|
|
1143
|
-
r || (r = !0, e.apply(void 0,
|
|
1124
|
+
r || (r = !0, e.apply(void 0, S([], _(a), !1)), setTimeout(function() {
|
|
1144
1125
|
r = !1;
|
|
1145
1126
|
}, t));
|
|
1146
1127
|
};
|
|
@@ -1156,14 +1137,14 @@ function Zt(e) {
|
|
|
1156
1137
|
};
|
|
1157
1138
|
}
|
|
1158
1139
|
if (ce) {
|
|
1159
|
-
var
|
|
1140
|
+
var Sr = function() {
|
|
1160
1141
|
if (!(!ze() || !Xt()))
|
|
1161
1142
|
for (var e = 0; e < ie.length; e++) {
|
|
1162
1143
|
var t = ie[e];
|
|
1163
1144
|
t();
|
|
1164
1145
|
}
|
|
1165
1146
|
};
|
|
1166
|
-
window.addEventListener("visibilitychange",
|
|
1147
|
+
window.addEventListener("visibilitychange", Sr, !1), window.addEventListener("focus", Sr, !1);
|
|
1167
1148
|
}
|
|
1168
1149
|
var Qt = function(e, t) {
|
|
1169
1150
|
var r = t.refreshOnWindowFocus, a = t.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
|
|
@@ -1209,7 +1190,7 @@ var Qt = function(e, t) {
|
|
|
1209
1190
|
function en() {
|
|
1210
1191
|
if (Rr) return Ie;
|
|
1211
1192
|
Rr = 1;
|
|
1212
|
-
var e =
|
|
1193
|
+
var e = Lr(), t = Ue(), r = "Expected a function";
|
|
1213
1194
|
function a(i, o, c) {
|
|
1214
1195
|
var s = !0, f = !0;
|
|
1215
1196
|
if (typeof i != "function")
|
|
@@ -1237,7 +1218,7 @@ var nn = function(e, t) {
|
|
|
1237
1218
|
return new Promise(function(d, l) {
|
|
1238
1219
|
var p;
|
|
1239
1220
|
(p = o.current) === null || p === void 0 || p.call(o, function() {
|
|
1240
|
-
s.apply(void 0,
|
|
1221
|
+
s.apply(void 0, S([], _(f), !1)).then(d).catch(l);
|
|
1241
1222
|
});
|
|
1242
1223
|
});
|
|
1243
1224
|
}, function() {
|
|
@@ -1257,7 +1238,7 @@ var nn = function(e, t) {
|
|
|
1257
1238
|
}, []);
|
|
1258
1239
|
}, on = function() {
|
|
1259
1240
|
var e = _(Ar({}), 2), t = e[1];
|
|
1260
|
-
return
|
|
1241
|
+
return Jr(function() {
|
|
1261
1242
|
return t({});
|
|
1262
1243
|
}, []);
|
|
1263
1244
|
}, un = (
|
|
@@ -1280,18 +1261,18 @@ var nn = function(e, t) {
|
|
|
1280
1261
|
r[a - 1] = arguments[a];
|
|
1281
1262
|
var i = this.pluginImpls.map(function(o) {
|
|
1282
1263
|
var c;
|
|
1283
|
-
return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c,
|
|
1264
|
+
return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c, S([o], _(r), !1));
|
|
1284
1265
|
}).filter(Boolean);
|
|
1285
|
-
return Object.assign.apply(Object,
|
|
1266
|
+
return Object.assign.apply(Object, S([{}], _(i), !1));
|
|
1286
1267
|
}, e.prototype.runAsync = function() {
|
|
1287
1268
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1288
1269
|
t[r] = arguments[r];
|
|
1289
1270
|
return _t(this, void 0, void 0, function() {
|
|
1290
|
-
var a, i, o, c, s, f, u, d, l, p, m, b, E, x,
|
|
1291
|
-
return
|
|
1271
|
+
var a, i, o, c, s, f, u, d, l, p, m, b, E, x, q, N, M, k, Y, I, W;
|
|
1272
|
+
return Ot(this, function(P) {
|
|
1292
1273
|
switch (P.label) {
|
|
1293
1274
|
case 0:
|
|
1294
|
-
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u =
|
|
1275
|
+
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u = kr(i, ["stopNow", "returnNow"]), c)
|
|
1295
1276
|
return [2, new Promise(function() {
|
|
1296
1277
|
})];
|
|
1297
1278
|
if (this.setState(C({
|
|
@@ -1301,14 +1282,14 @@ var nn = function(e, t) {
|
|
|
1301
1282
|
return [2, Promise.resolve(u.data)];
|
|
1302
1283
|
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, t), P.label = 1;
|
|
1303
1284
|
case 1:
|
|
1304
|
-
return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m,
|
|
1285
|
+
return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m, S([], _(t), !1))), [4, d];
|
|
1305
1286
|
case 2:
|
|
1306
1287
|
return l = P.sent(), a !== this.count ? [2, new Promise(function() {
|
|
1307
1288
|
})] : (this.setState({
|
|
1308
1289
|
data: l,
|
|
1309
1290
|
error: void 0,
|
|
1310
1291
|
loading: !1
|
|
1311
|
-
}), (
|
|
1292
|
+
}), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, l, t), this.runPluginHandler("onSuccess", l, t), (M = (N = this.options).onFinally) === null || M === void 0 || M.call(N, t, l, void 0), a === this.count && this.runPluginHandler("onFinally", t, l, void 0), [2, l]);
|
|
1312
1293
|
case 3:
|
|
1313
1294
|
if (p = P.sent(), a !== this.count)
|
|
1314
1295
|
return [2, new Promise(function() {
|
|
@@ -1316,7 +1297,7 @@ var nn = function(e, t) {
|
|
|
1316
1297
|
throw this.setState({
|
|
1317
1298
|
error: p,
|
|
1318
1299
|
loading: !1
|
|
1319
|
-
}), (Y = (k = this.options).onError) === null || Y === void 0 || Y.call(k, p, t), this.runPluginHandler("onError", p, t), (
|
|
1300
|
+
}), (Y = (k = this.options).onError) === null || Y === void 0 || Y.call(k, p, t), this.runPluginHandler("onError", p, t), (W = (I = this.options).onFinally) === null || W === void 0 || W.call(I, t, void 0, p), a === this.count && this.runPluginHandler("onFinally", t, void 0, p), p;
|
|
1320
1301
|
case 4:
|
|
1321
1302
|
return [
|
|
1322
1303
|
2
|
|
@@ -1328,7 +1309,7 @@ var nn = function(e, t) {
|
|
|
1328
1309
|
}, e.prototype.run = function() {
|
|
1329
1310
|
for (var t = this, r = [], a = 0; a < arguments.length; a++)
|
|
1330
1311
|
r[a] = arguments[a];
|
|
1331
|
-
this.runAsync.apply(this,
|
|
1312
|
+
this.runAsync.apply(this, S([], _(r), !1)).catch(function(i) {
|
|
1332
1313
|
t.options.onError || console.error(i);
|
|
1333
1314
|
});
|
|
1334
1315
|
}, e.prototype.cancel = function() {
|
|
@@ -1336,9 +1317,9 @@ var nn = function(e, t) {
|
|
|
1336
1317
|
loading: !1
|
|
1337
1318
|
}), this.runPluginHandler("onCancel");
|
|
1338
1319
|
}, e.prototype.refresh = function() {
|
|
1339
|
-
this.run.apply(this,
|
|
1320
|
+
this.run.apply(this, S([], _(this.state.params || []), !1));
|
|
1340
1321
|
}, e.prototype.refreshAsync = function() {
|
|
1341
|
-
return this.runAsync.apply(this,
|
|
1322
|
+
return this.runAsync.apply(this, S([], _(this.state.params || []), !1));
|
|
1342
1323
|
}, e.prototype.mutate = function(t) {
|
|
1343
1324
|
var r = ue(t) ? t(this.state.data) : t;
|
|
1344
1325
|
this.runPluginHandler("onMutate", r), this.setState({
|
|
@@ -1349,24 +1330,24 @@ var nn = function(e, t) {
|
|
|
1349
1330
|
);
|
|
1350
1331
|
function cn(e, t, r) {
|
|
1351
1332
|
t === void 0 && (t = {}), r === void 0 && (r = []);
|
|
1352
|
-
var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s =
|
|
1333
|
+
var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s = kr(t, ["manual", "ready"]);
|
|
1353
1334
|
pe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
|
|
1354
1335
|
var f = C({
|
|
1355
1336
|
manual: i,
|
|
1356
1337
|
ready: c
|
|
1357
|
-
}, s), u = He(e), d = on(), l =
|
|
1338
|
+
}, s), u = He(e), d = on(), l = Mr(function() {
|
|
1358
1339
|
var p = r.map(function(m) {
|
|
1359
1340
|
var b;
|
|
1360
1341
|
return (b = m == null ? void 0 : m.onInit) === null || b === void 0 ? void 0 : b.call(m, f);
|
|
1361
1342
|
}).filter(Boolean);
|
|
1362
|
-
return new un(u, f, d, Object.assign.apply(Object,
|
|
1343
|
+
return new un(u, f, d, Object.assign.apply(Object, S([{}], _(p), !1)));
|
|
1363
1344
|
}, []);
|
|
1364
1345
|
return l.options = f, l.pluginImpls = r.map(function(p) {
|
|
1365
1346
|
return p(l, f);
|
|
1366
1347
|
}), an(function() {
|
|
1367
1348
|
if (!i && c) {
|
|
1368
1349
|
var p = l.state.params || t.defaultParams || [];
|
|
1369
|
-
l.run.apply(l,
|
|
1350
|
+
l.run.apply(l, S([], _(p), !1));
|
|
1370
1351
|
}
|
|
1371
1352
|
}), ye(function() {
|
|
1372
1353
|
l.cancel();
|
|
@@ -1384,7 +1365,7 @@ function cn(e, t, r) {
|
|
|
1384
1365
|
};
|
|
1385
1366
|
}
|
|
1386
1367
|
function sn(e, t, r) {
|
|
1387
|
-
return cn(e, t,
|
|
1368
|
+
return cn(e, t, S(S([], _(r || []), !1), [Ht, Ut, Vt, Qt, nn, qr, Ct, Kt], !1));
|
|
1388
1369
|
}
|
|
1389
1370
|
function fn(e, t) {
|
|
1390
1371
|
var r = _(Ar(e), 2), a = r[0], i = r[1], o = he(function() {
|
|
@@ -1426,7 +1407,7 @@ function ln(e) {
|
|
|
1426
1407
|
}, []);
|
|
1427
1408
|
return [r, c];
|
|
1428
1409
|
}
|
|
1429
|
-
function
|
|
1410
|
+
function Fr(e, t) {
|
|
1430
1411
|
if (ce) {
|
|
1431
1412
|
if (!e)
|
|
1432
1413
|
return t;
|
|
@@ -1439,7 +1420,7 @@ var dn = function(e) {
|
|
|
1439
1420
|
var o = j(!1), c = j([]), s = j([]), f = j();
|
|
1440
1421
|
e(function() {
|
|
1441
1422
|
var u, d = Array.isArray(i) ? i : [i], l = d.map(function(p) {
|
|
1442
|
-
return
|
|
1423
|
+
return Fr(p);
|
|
1443
1424
|
});
|
|
1444
1425
|
if (!o.current) {
|
|
1445
1426
|
o.current = !0, c.current = l, s.current = a, f.current = r();
|
|
@@ -1458,7 +1439,7 @@ function xr(e, t, r) {
|
|
|
1458
1439
|
var a = r.enable, i = a === void 0 ? !0 : a, o = He(t);
|
|
1459
1440
|
vn(function() {
|
|
1460
1441
|
if (i) {
|
|
1461
|
-
var c =
|
|
1442
|
+
var c = Fr(r.target, window);
|
|
1462
1443
|
if (c != null && c.addEventListener) {
|
|
1463
1444
|
var s = function(u) {
|
|
1464
1445
|
return o.current(u);
|
|
@@ -1491,17 +1472,17 @@ const gn = function(e, t) {
|
|
|
1491
1472
|
}, {
|
|
1492
1473
|
target: e
|
|
1493
1474
|
}), s;
|
|
1494
|
-
}, bn =
|
|
1495
|
-
({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */
|
|
1475
|
+
}, bn = Xr(
|
|
1476
|
+
({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ G.jsx(
|
|
1496
1477
|
"svg",
|
|
1497
1478
|
{
|
|
1498
1479
|
className: `iconfont-symbol ${e} ${t}`,
|
|
1499
1480
|
"aria-hidden": "true",
|
|
1500
1481
|
ref: i,
|
|
1501
1482
|
...a,
|
|
1502
|
-
children: /* @__PURE__ */
|
|
1483
|
+
children: /* @__PURE__ */ G.jsx("use", { xlinkHref: `#${e}` })
|
|
1503
1484
|
}
|
|
1504
|
-
) : /* @__PURE__ */
|
|
1485
|
+
) : /* @__PURE__ */ G.jsx(
|
|
1505
1486
|
"i",
|
|
1506
1487
|
{
|
|
1507
1488
|
className: `iconfont ${e} ${t}`,
|
|
@@ -1522,7 +1503,7 @@ const gn = function(e, t) {
|
|
|
1522
1503
|
className: u,
|
|
1523
1504
|
loading: d = !1,
|
|
1524
1505
|
...l
|
|
1525
|
-
} = e, p = gn(r), m = () => yt(a) && a.includes("icon-") ? /* @__PURE__ */
|
|
1506
|
+
} = e, p = gn(r), m = () => yt(a) && a.includes("icon-") ? /* @__PURE__ */ G.jsx(bn, { type: a }) : a, b = /* @__PURE__ */ G.jsx(
|
|
1526
1507
|
Dr,
|
|
1527
1508
|
{
|
|
1528
1509
|
onClick: o,
|
|
@@ -1537,16 +1518,16 @@ const gn = function(e, t) {
|
|
|
1537
1518
|
);
|
|
1538
1519
|
if (!a)
|
|
1539
1520
|
throw new Error("IconButton 组件必须传入 icon 属性");
|
|
1540
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ G.jsxs(Zr, { children: [
|
|
1541
1522
|
i && b,
|
|
1542
|
-
!i && /* @__PURE__ */
|
|
1523
|
+
!i && /* @__PURE__ */ G.jsx(
|
|
1543
1524
|
Vr,
|
|
1544
1525
|
{
|
|
1545
1526
|
open: p,
|
|
1546
1527
|
trigger: "contextMenu",
|
|
1547
1528
|
destroyTooltipOnHide: !0,
|
|
1548
1529
|
...l,
|
|
1549
|
-
children: /* @__PURE__ */
|
|
1530
|
+
children: /* @__PURE__ */ G.jsx(
|
|
1550
1531
|
"span",
|
|
1551
1532
|
{
|
|
1552
1533
|
ref: r,
|
|
@@ -1558,36 +1539,13 @@ const gn = function(e, t) {
|
|
|
1558
1539
|
}
|
|
1559
1540
|
)
|
|
1560
1541
|
] });
|
|
1561
|
-
},
|
|
1562
|
-
|
|
1563
|
-
onChange: t,
|
|
1564
|
-
trueValue: r = !0,
|
|
1565
|
-
falseValue: a = !1,
|
|
1566
|
-
...i
|
|
1567
|
-
}) => {
|
|
1568
|
-
const o = e === r, c = (s, f) => {
|
|
1569
|
-
t == null || t(s ? r : a, f);
|
|
1570
|
-
};
|
|
1571
|
-
return /* @__PURE__ */ q.jsx(
|
|
1572
|
-
Jr,
|
|
1573
|
-
{
|
|
1574
|
-
checked: o,
|
|
1575
|
-
onChange: c,
|
|
1576
|
-
...i
|
|
1577
|
-
}
|
|
1578
|
-
);
|
|
1579
|
-
};
|
|
1580
|
-
let Fr = Xr, yn = Zr, En = Qr;
|
|
1581
|
-
function On({ children: e }) {
|
|
1582
|
-
const t = Kr.useApp();
|
|
1583
|
-
return Fr = t.message, En = t.modal, yn = t.notification, e;
|
|
1584
|
-
}
|
|
1585
|
-
function Rn(e, t, r) {
|
|
1542
|
+
}, wn = Pr.forwardRef(pn);
|
|
1543
|
+
function jn(e, t, r) {
|
|
1586
1544
|
const a = sn(e, {
|
|
1587
1545
|
...t,
|
|
1588
1546
|
onError(o, c) {
|
|
1589
1547
|
var s;
|
|
1590
|
-
((t == null ? void 0 : t.errorMessage) ?? !0) &&
|
|
1548
|
+
((t == null ? void 0 : t.errorMessage) ?? !0) && Cr.error(o.message), (s = t == null ? void 0 : t.onError) == null || s.call(t, o, c);
|
|
1591
1549
|
}
|
|
1592
1550
|
}, r), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
|
|
1593
1551
|
return {
|
|
@@ -1596,13 +1554,10 @@ function Rn(e, t, r) {
|
|
|
1596
1554
|
};
|
|
1597
1555
|
}
|
|
1598
1556
|
export {
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
En as modal,
|
|
1606
|
-
yn as notification,
|
|
1607
|
-
Rn as useRequest
|
|
1557
|
+
Tn as App,
|
|
1558
|
+
wn as IconButton,
|
|
1559
|
+
Cr as message,
|
|
1560
|
+
Kr as modal,
|
|
1561
|
+
Qr as notification,
|
|
1562
|
+
jn as useRequest
|
|
1608
1563
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("antd"),require("react")):typeof define=="function"&&define.amd?define(["exports","antd","react"],k):(_=typeof globalThis<"u"?globalThis:_||self,k(_.XMirrorComponents={},_.antd,_.React))})(this,function(_,k,h){"use strict";_.message=k.message,_.notification=k.notification,_.modal=k.Modal;function Fr({children:e}){const t=k.App.useApp();return _.message=t.message,_.modal=t.modal,_.notification=t.notification,e}var fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var le={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Xe;function Br(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===
|
|
18
|
-
at`)?" (<anonymous>)":-1<
|
|
19
|
-
`+ze+n+
|
|
17
|
+
*/var Xe;function Br(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===nn?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case U:return"Fragment";case V:return"Portal";case C:return"Profiler";case I:return"StrictMode";case J:return"Suspense";case w:return"SuspenseList"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case he:return(n.displayName||"Context")+".Provider";case ie:return(n._context.displayName||"Context")+".Consumer";case ue:var v=n.render;return n=n.displayName,n||(n=v.displayName||v.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case A:return v=n.displayName||null,v!==null?v:e(n.type)||"Memo";case B:v=n._payload,n=n._init;try{return e(n(v))}catch{}}return null}function t(n){return""+n}function r(n){try{t(n);var v=!1}catch{v=!0}if(v){v=console;var g=v.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return g.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),t(n)}}function a(){}function i(){if(ce===0){_r=console.log,Sr=console.info,Or=console.warn,xr=console.error,Pr=console.group,Cr=console.groupCollapsed,Ar=console.groupEnd;var n={configurable:!0,enumerable:!0,value:a,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}ce++}function o(){if(ce--,ce===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},n,{value:_r}),info:q({},n,{value:Sr}),warn:q({},n,{value:Or}),error:q({},n,{value:xr}),group:q({},n,{value:Pr}),groupCollapsed:q({},n,{value:Cr}),groupEnd:q({},n,{value:Ar})})}0>ce&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function c(n){if(ze===void 0)try{throw Error()}catch(g){var v=g.stack.trim().match(/\n( *(at )?)/);ze=v&&v[1]||"",Nr=-1<g.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+ze+n+Nr}function s(n,v){if(!n||De)return"";var g=Ve.get(n);if(g!==void 0)return g;De=!0,g=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var E=null;E=X.H,X.H=null,i();try{var O={DetermineComponentFrameRoot:function(){try{if(v){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(Y){var pe=Y}Reflect.construct(n,[],z)}else{try{z.call()}catch(Y){pe=Y}n.call(z.prototype)}}else{try{throw Error()}catch(Y){pe=Y}(z=n())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(Y){if(Y&&pe&&typeof Y.stack=="string")return[Y.stack,pe.stack]}return[null,null]}};O.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(O.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(O.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=O.DetermineComponentFrameRoot(),G=y[0],K=y[1];if(G&&K){var x=G.split(`
|
|
20
20
|
`),Z=K.split(`
|
|
21
21
|
`);for(y=R=0;R<x.length&&!x[R].includes("DetermineComponentFrameRoot");)R++;for(;y<Z.length&&!Z[y].includes("DetermineComponentFrameRoot");)y++;if(R===x.length||y===Z.length)for(R=x.length-1,y=Z.length-1;1<=R&&0<=y&&x[R]!==Z[y];)y--;for(;1<=R&&0<=y;R--,y--)if(x[R]!==Z[y]){if(R!==1||y!==1)do if(R--,y--,0>y||x[R]!==Z[y]){var se=`
|
|
22
|
-
`+x[R].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ve.set(n,se),se}while(1<=R&&0<=y);break}}}finally{De=!1,X.H=E,o(),Error.prepareStackTrace=
|
|
22
|
+
`+x[R].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ve.set(n,se),se}while(1<=R&&0<=y);break}}}finally{De=!1,X.H=E,o(),Error.prepareStackTrace=g}return x=(x=n?n.displayName||n.name:"")?c(x):"",typeof n=="function"&&Ve.set(n,x),x}function f(n){if(n==null)return"";if(typeof n=="function"){var v=n.prototype;return s(n,!(!v||!v.isReactComponent))}if(typeof n=="string")return c(n);switch(n){case J:return c("Suspense");case w:return c("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case ue:return n=s(n.render,!1),n;case A:return f(n.type);case B:v=n._payload,n=n._init;try{return f(n(v))}catch{}}return""}function u(){var n=X.A;return n===null?null:n.getOwner()}function d(n){if(jr.call(n,"key")){var v=Object.getOwnPropertyDescriptor(n,"key").get;if(v&&v.isReactWarning)return!1}return n.key!==void 0}function l(n,v){function g(){kr||(kr=!0,console.error("%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://react.dev/link/special-props)",v))}g.isReactWarning=!0,Object.defineProperty(n,"key",{get:g,configurable:!0})}function p(){var n=e(this.type);return Mr[n]||(Mr[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function m(n,v,g,E,O,R){return g=R.ref,n={$$typeof:W,type:n,key:v,props:R,_owner:O},(g!==void 0?g:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:p}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function b(n,v,g,E,O,R){if(typeof n=="string"||typeof n=="function"||n===U||n===C||n===I||n===J||n===w||n===ye||typeof n=="object"&&n!==null&&(n.$$typeof===B||n.$$typeof===A||n.$$typeof===he||n.$$typeof===ie||n.$$typeof===ue||n.$$typeof===an||n.getModuleId!==void 0)){var y=v.children;if(y!==void 0)if(E)if(Ue(y)){for(E=0;E<y.length;E++)T(y[E],n);Object.freeze&&Object.freeze(y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(y,n)}else y="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).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."),n===null?E="null":Ue(n)?E="array":n!==void 0&&n.$$typeof===W?(E="<"+(e(n.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):E=typeof n,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,y);if(jr.call(v,"key")){y=e(n);var G=Object.keys(v).filter(function(x){return x!=="key"});E=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",Wr[y+E]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,E,y,G,y),
|
|
27
|
+
<%s key={someKey} {...props} />`,E,y,G,y),Wr[y+E]=!0)}if(y=null,g!==void 0&&(r(g),y=""+g),d(v)&&(r(v.key),y=""+v.key),"key"in v){g={};for(var K in v)K!=="key"&&(g[K]=v[K])}else g=v;return y&&l(g,typeof n=="function"?n.displayName||n.name||"Unknown":n),m(n,y,R,O,u(),g)}function T(n,v){if(typeof n=="object"&&n&&n.$$typeof!==on){if(Ue(n))for(var g=0;g<n.length;g++){var E=n[g];P(E)&&L(E,v)}else if(P(n))n._store&&(n._store.validated=1);else if(n===null||typeof n!="object"?g=null:(g=Rr&&n[Rr]||n["@@iterator"],g=typeof g=="function"?g:null),typeof g=="function"&&g!==n.entries&&(g=g.call(n),g!==n))for(;!(n=g.next()).done;)P(n.value)&&L(n.value,v)}}function P(n){return typeof n=="object"&&n!==null&&n.$$typeof===W}function L(n,v){if(n._store&&!n._store.validated&&n.key==null&&(n._store.validated=1,v=M(v),!Lr[v])){Lr[v]=!0;var g="";n&&n._owner!=null&&n._owner!==u()&&(g=null,typeof n._owner.tag=="number"?g=e(n._owner.type):typeof n._owner.name=="string"&&(g=n._owner.name),g=" It was passed a child from "+g+".");var E=X.getCurrentStack;X.getCurrentStack=function(){var O=f(n.type);return E&&(O+=E()||""),O},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',v,g),X.getCurrentStack=E}}function M(n){var v="",g=u();return g&&(g=e(g.type))&&(v=`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+
|
|
29
|
+
Check the render method of \``+g+"`."),v||(n=e(n))&&(v=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+n+">."),v}var F=
|
|
31
|
+
Check the top-level render call using <`+n+">."),v}var F=h,W=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),he=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),Rr=Symbol.iterator,nn=Symbol.for("react.client.reference"),X=F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jr=Object.prototype.hasOwnProperty,q=Object.assign,an=Symbol.for("react.client.reference"),Ue=Array.isArray,ce=0,_r,Sr,Or,xr,Pr,Cr,Ar;a.__reactDisabledLog=!0;var ze,Nr,De=!1,Ve=new(typeof WeakMap=="function"?WeakMap:Map),on=Symbol.for("react.client.reference"),kr,Mr={},Wr={},Lr={};ee.Fragment=U,ee.jsx=function(n,v,g,E,O){return b(n,v,g,!1,E,O)},ee.jsxs=function(n,v,g,E,O){return b(n,v,g,!0,E,O)}}()),ee}var qe;function Gr(){return qe||(qe=1,process.env.NODE_ENV==="production"?le.exports=Ir():le.exports=Br()),le.exports}var H=Gr(),Yr=typeof global=="object"&&global&&global.Object===Object&&global,Hr=typeof self=="object"&&self&&self.Object===Object&&self,Ur=Yr||Hr||Function("return this")(),de=Ur.Symbol,Ze=Object.prototype,zr=Ze.hasOwnProperty,Dr=Ze.toString,re=de?de.toStringTag:void 0;function Vr(e){var t=zr.call(e,re),r=e[re];try{e[re]=void 0;var a=!0}catch{}var i=Dr.call(e);return a&&(t?e[re]=r:delete e[re]),i}var Jr=Object.prototype,Xr=Jr.toString;function qr(e){return Xr.call(e)}var Zr="[object Null]",Qr="[object Undefined]",Qe=de?de.toStringTag:void 0;function Kr(e){return e==null?e===void 0?Qr:Zr:Qe&&Qe in Object(e)?Vr(e):qr(e)}function $r(e){return e!=null&&typeof e=="object"}var et=Array.isArray;function rt(){}var tt="[object String]";function nt(e){return typeof e=="string"||!et(e)&&$r(e)&&Kr(e)==tt}var Te={exports:{}};/*!
|
|
32
32
|
Copyright (c) 2018 Jed Watson.
|
|
33
33
|
Licensed under the MIT License (MIT), see
|
|
34
34
|
http://jedwatson.github.io/classnames
|
|
35
|
-
*/var Ke;function ot(){return Ke||(Ke=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",c=0;c<arguments.length;c++){var s=arguments[c];s&&(o=i(o,a(s)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var s in o)t.call(o,s)&&o[s]&&(c=i(c,s));return c}function i(o,c){return c?o?o+" "+c:o+c:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Te)),Te.exports}var it=ot();const ut=Ee(it);var ct=function(e){return function(t,r){var a=m.useRef(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(!a.current)a.current=!0;else return t()},r)}},N=function(){return N=Object.assign||function(t){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},N.apply(this,arguments)};function $e(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r}function st(e,t,r,a){function i(o){return o instanceof r?o:new r(function(c){c(o)})}return new(r||(r=Promise))(function(o,c){function s(d){try{u(a.next(d))}catch(l){c(l)}}function f(d){try{u(a.throw(d))}catch(l){c(l)}}function u(d){d.done?o(d.value):i(d.value).then(s,f)}u((a=a.apply(e,t||[])).next())})}function ft(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=s(0),c.throw=s(1),c.return=s(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(u){return function(d){return f([u,d])}}function f(u){if(a)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(r=0)),r;)try{if(a=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],i=0}finally{a=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function _(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),i,o=[],c;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){c={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(c)throw c.error}}return o}function S(e,t,r){if(r||arguments.length===2)for(var a=0,i=t.length,o;a<i;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var te=function(e){return typeof e=="function"},ve=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Q(e){ve&&(te(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var r=m.useRef();return r.current||(r.current=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return t.current.apply(this,a)}),r.current}const we=ct(m.useEffect);var er=function(e,t){var r=t.manual,a=t.ready,i=a===void 0?!0:a,o=t.defaultParams,c=o===void 0?[]:o,s=t.refreshDeps,f=s===void 0?[]:s,u=t.refreshDepsAction,d=m.useRef(!1);return d.current=!1,we(function(){!r&&i&&(d.current=!0,e.run.apply(e,S([],_(c),!1)))},[i]),we(function(){d.current||r||(d.current=!0,u?u():e.refresh())},S([],_(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};er.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,a=e.manual;return{loading:!a&&r}};function Re(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function rr(e,t){var r=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Re(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function je(e){var t=m.useRef(e);return t.current=e,t}var be=function(e){ve&&(te(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=je(e);m.useEffect(function(){return function(){t.current()}},[])},ge=new Map,lt=function(e,t,r){var a=ge.get(e);a!=null&&a.timer&&clearTimeout(a.timer);var i=void 0;t>-1&&(i=setTimeout(function(){ge.delete(e)},t)),ge.set(e,N(N({},r),{timer:i}))},dt=function(e){return ge.get(e)},me=new Map,vt=function(e){return me.get(e)},bt=function(e,t){me.set(e,t),t.then(function(r){return me.delete(e),r}).catch(function(){me.delete(e)})},D={},gt=function(e,t){D[e]&&D[e].forEach(function(r){return r(t)})},_e=function(e,t){return D[e]||(D[e]=[]),D[e].push(t),function(){var a=D[e].indexOf(t);D[e].splice(a,1)}},mt=function(e,t){var r=t.cacheKey,a=t.cacheTime,i=a===void 0?5*60*1e3:a,o=t.staleTime,c=o===void 0?0:o,s=t.setCache,f=t.getCache,u=m.useRef(),d=m.useRef(),l=function(h,g){s?s(g):lt(h,i,g),gt(h,g.data)},p=function(h,g){return g===void 0&&(g=[]),f?f(g):dt(h)};return rr(function(){if(r){var h=p(r);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(c===-1||new Date().getTime()-h.time<=c)&&(e.state.loading=!1)),u.current=_e(r,function(g){e.setState({data:g})})}},[]),be(function(){var h;(h=u.current)===null||h===void 0||h.call(u)}),r?{onBefore:function(h){var g=p(r,h);return!g||!Object.hasOwnProperty.call(g,"data")?{}:c===-1||new Date().getTime()-g.time<=c?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var T=vt(r);return T&&T!==d.current?{servicePromise:T}:(T=h.apply(void 0,S([],_(g),!1)),d.current=T,bt(r,T),{servicePromise:T})},onSuccess:function(h,g){var T;r&&((T=u.current)===null||T===void 0||T.call(u),l(r,{data:h,params:g,time:new Date().getTime()}),u.current=_e(r,function(P){e.setState({data:P})}))},onMutate:function(h){var g;r&&((g=u.current)===null||g===void 0||g.call(u),l(r,{data:h,params:e.state.params,time:new Date().getTime()}),u.current=_e(r,function(T){e.setState({data:T})}))}}:{}},Se,tr;function Oe(){if(tr)return Se;tr=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Se=e,Se}var xe,nr;function ht(){if(nr)return xe;nr=1;var e=typeof fe=="object"&&fe&&fe.Object===Object&&fe;return xe=e,xe}var Pe,ar;function or(){if(ar)return Pe;ar=1;var e=ht(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Pe=r,Pe}var Ae,ir;function yt(){if(ir)return Ae;ir=1;var e=or(),t=function(){return e.Date.now()};return Ae=t,Ae}var Ce,ur;function pt(){if(ur)return Ce;ur=1;var e=/\s/;function t(r){for(var a=r.length;a--&&e.test(r.charAt(a)););return a}return Ce=t,Ce}var Ne,cr;function Et(){if(cr)return Ne;cr=1;var e=pt(),t=/^\s+/;function r(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return Ne=r,Ne}var ke,sr;function fr(){if(sr)return ke;sr=1;var e=or(),t=e.Symbol;return ke=t,ke}var Me,lr;function Tt(){if(lr)return Me;lr=1;var e=fr(),t=Object.prototype,r=t.hasOwnProperty,a=t.toString,i=e?e.toStringTag:void 0;function o(c){var s=r.call(c,i),f=c[i];try{c[i]=void 0;var u=!0}catch{}var d=a.call(c);return u&&(s?c[i]=f:delete c[i]),d}return Me=o,Me}var We,dr;function wt(){if(dr)return We;dr=1;var e=Object.prototype,t=e.toString;function r(a){return t.call(a)}return We=r,We}var Le,vr;function Rt(){if(vr)return Le;vr=1;var e=fr(),t=Tt(),r=wt(),a="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function c(s){return s==null?s===void 0?i:a:o&&o in Object(s)?t(s):r(s)}return Le=c,Le}var Fe,br;function jt(){if(br)return Fe;br=1;function e(t){return t!=null&&typeof t=="object"}return Fe=e,Fe}var Ie,gr;function _t(){if(gr)return Ie;gr=1;var e=Rt(),t=jt(),r="[object Symbol]";function a(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ie=a,Ie}var Be,mr;function St(){if(mr)return Be;mr=1;var e=Et(),t=Oe(),r=_t(),a=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;function f(u){if(typeof u=="number")return u;if(r(u))return a;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var l=o.test(u);return l||c.test(u)?s(u.slice(2),l?2:8):i.test(u)?a:+u}return Be=f,Be}var Ge,hr;function yr(){if(hr)return Ge;hr=1;var e=Oe(),t=yt(),r=St(),a="Expected a function",i=Math.max,o=Math.min;function c(s,f,u){var d,l,p,h,g,T,P=0,L=!1,M=!1,F=!0;if(typeof s!="function")throw new TypeError(a);f=r(f)||0,e(u)&&(L=!!u.leading,M="maxWait"in u,p=M?i(r(u.maxWait)||0,f):p,F="trailing"in u?!!u.trailing:F);function W(w){var C=d,B=l;return d=l=void 0,P=w,h=s.apply(B,C),h}function V(w){return P=w,g=setTimeout(A,f),L?W(w):h}function U(w){var C=w-T,B=w-P,ye=f-C;return M?o(ye,p-B):ye}function I(w){var C=w-T,B=w-P;return T===void 0||C>=f||C<0||M&&B>=p}function A(){var w=t();if(I(w))return ie(w);g=setTimeout(A,U(w))}function ie(w){return g=void 0,F&&d?W(w):(d=l=void 0,h)}function he(){g!==void 0&&clearTimeout(g),P=0,d=T=l=g=void 0}function ue(){return g===void 0?h:ie(t())}function J(){var w=t(),C=I(w);if(d=arguments,l=this,T=w,C){if(g===void 0)return V(T);if(M)return clearTimeout(g),g=setTimeout(A,f),W(T)}return g===void 0&&(g=setTimeout(A,f)),h}return J.cancel=he,J.flush=ue,J}return Ge=c,Ge}var Ot=yr();const xt=Ee(Ot);var Pt=function(e,t){var r=t.debounceWait,a=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,c=m.useRef(),s=m.useMemo(function(){var f={};return a!==void 0&&(f.leading=a),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[a,i,o]);return m.useEffect(function(){if(r){var f=e.runAsync.bind(e);return c.current=xt(function(u){u()},r,s),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(l,p){var h;(h=c.current)===null||h===void 0||h.call(c,function(){f.apply(void 0,S([],_(u),!1)).then(l).catch(p)})})},function(){var u;(u=c.current)===null||u===void 0||u.cancel(),e.runAsync=f}}},[r,s]),r?{onCancel:function(){var f;(f=c.current)===null||f===void 0||f.cancel()}}:{}},At=function(e,t){var r=t.loadingDelay,a=t.ready,i=m.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),a!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},ne=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ye(){return ne?document.visibilityState!=="hidden":!0}var ae=[];function Ct(e){return ae.push(e),function(){var r=ae.indexOf(e);ae.splice(r,1)}}if(ne){var Nt=function(){if(Ye())for(var e=0;e<ae.length;e++){var t=ae[e];t()}};window.addEventListener("visibilitychange",Nt,!1)}var kt=function(e,t){var r=t.pollingInterval,a=t.pollingWhenHidden,i=a===void 0?!0:a,o=t.pollingErrorRetryCount,c=o===void 0?-1:o,s=m.useRef(),f=m.useRef(),u=m.useRef(0),d=function(){var l;s.current&&clearTimeout(s.current),(l=f.current)===null||l===void 0||l.call(f)};return we(function(){r||d()},[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){c===-1||c!==-1&&u.current<=c?s.current=setTimeout(function(){!i&&!Ye()?f.current=Ct(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){d()}}:{}};function Mt(e,t){var r=!1;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r||(r=!0,e.apply(void 0,S([],_(a),!1)),setTimeout(function(){r=!1},t))}}function Wt(){return ne&&typeof navigator.onLine<"u"?navigator.onLine:!0}var oe=[];function Lt(e){return oe.push(e),function(){var r=oe.indexOf(e);r>-1&&oe.splice(r,1)}}if(ne){var pr=function(){if(!(!Ye()||!Wt()))for(var e=0;e<oe.length;e++){var t=oe[e];t()}};window.addEventListener("visibilitychange",pr,!1),window.addEventListener("focus",pr,!1)}var Ft=function(e,t){var r=t.refreshOnWindowFocus,a=t.focusTimespan,i=a===void 0?5e3:a,o=m.useRef(),c=function(){var s;(s=o.current)===null||s===void 0||s.call(o)};return m.useEffect(function(){if(r){var s=Mt(e.refresh.bind(e),i);o.current=Lt(function(){s()})}return function(){c()}},[r,i]),be(function(){c()}),{}},It=function(e,t){var r=t.retryInterval,a=t.retryCount,i=m.useRef(),o=m.useRef(0),c=m.useRef(!1);return a?{onBefore:function(){c.current||(o.current=0),c.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,a===-1||o.current<=a){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){c.current=!0,e.refresh()},s)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},He,Er;function Bt(){if(Er)return He;Er=1;var e=yr(),t=Oe(),r="Expected a function";function a(i,o,c){var s=!0,f=!0;if(typeof i!="function")throw new TypeError(r);return t(c)&&(s="leading"in c?!!c.leading:s,f="trailing"in c?!!c.trailing:f),e(i,o,{leading:s,maxWait:o,trailing:f})}return He=a,He}var Gt=Bt();const Yt=Ee(Gt);var Ht=function(e,t){var r=t.throttleWait,a=t.throttleLeading,i=t.throttleTrailing,o=m.useRef(),c={};return a!==void 0&&(c.leading=a),i!==void 0&&(c.trailing=i),m.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=Yt(function(f){f()},r,c),e.runAsync=function(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];return new Promise(function(d,l){var p;(p=o.current)===null||p===void 0||p.call(o,function(){s.apply(void 0,S([],_(f),!1)).then(d).catch(l)})})},function(){var f;e.runAsync=s,(f=o.current)===null||f===void 0||f.cancel()}}},[r,a,i]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Ut=function(e){ve&&(te(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),m.useEffect(function(){e==null||e()},[])},zt=function(){var e=_(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])},Dt=function(){function e(t,r,a,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=a,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=N(N(N({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=N(N({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var i=this.pluginImpls.map(function(o){var c;return(c=o[t])===null||c===void 0?void 0:c.call.apply(c,S([o],_(r),!1))}).filter(Boolean);return Object.assign.apply(Object,S([{}],_(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return st(this,void 0,void 0,function(){var a,i,o,c,s,f,u,d,l,p,h,g,T,P,L,M,F,W,V,U,I;return ft(this,function(A){switch(A.label){case 0:if(this.count+=1,a=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,c=o===void 0?!1:o,s=i.returnNow,f=s===void 0?!1:s,u=$e(i,["stopNow","returnNow"]),c)return[2,new Promise(function(){})];if(this.setState(N({loading:!0,params:t},u)),f)return[2,Promise.resolve(u.data)];(T=(g=this.options).onBefore)===null||T===void 0||T.call(g,t),A.label=1;case 1:return A.trys.push([1,3,,4]),d=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,d||(d=(h=this.serviceRef).current.apply(h,S([],_(t),!1))),[4,d];case 2:return l=A.sent(),a!==this.count?[2,new Promise(function(){})]:(this.setState({data:l,error:void 0,loading:!1}),(L=(P=this.options).onSuccess)===null||L===void 0||L.call(P,l,t),this.runPluginHandler("onSuccess",l,t),(F=(M=this.options).onFinally)===null||F===void 0||F.call(M,t,l,void 0),a===this.count&&this.runPluginHandler("onFinally",t,l,void 0),[2,l]);case 3:if(p=A.sent(),a!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(V=(W=this.options).onError)===null||V===void 0||V.call(W,p,t),this.runPluginHandler("onError",p,t),(I=(U=this.options).onFinally)===null||I===void 0||I.call(U,t,void 0,p),a===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];this.runAsync.apply(this,S([],_(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,S([],_(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,S([],_(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=te(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function Vt(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var a=t.manual,i=a===void 0?!1:a,o=t.ready,c=o===void 0?!0:o,s=$e(t,["manual","ready"]);ve&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var f=N({manual:i,ready:c},s),u=je(e),d=zt(),l=rr(function(){var p=r.map(function(h){var g;return(g=h==null?void 0:h.onInit)===null||g===void 0?void 0:g.call(h,f)}).filter(Boolean);return new Dt(u,f,d,Object.assign.apply(Object,S([{}],_(p),!1)))},[]);return l.options=f,l.pluginImpls=r.map(function(p){return p(l,f)}),Ut(function(){if(!i&&c){var p=l.state.params||t.defaultParams||[];l.run.apply(l,S([],_(p),!1))}}),be(function(){l.cancel()}),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:Q(l.cancel.bind(l)),refresh:Q(l.refresh.bind(l)),refreshAsync:Q(l.refreshAsync.bind(l)),run:Q(l.run.bind(l)),runAsync:Q(l.runAsync.bind(l)),mutate:Q(l.mutate.bind(l))}}function Jt(e,t,r){return Vt(e,t,S(S([],_(r||[]),!1),[Pt,At,kt,Ft,Ht,er,mt,It],!1))}function Xt(e,t){var r=_(m.useState(e),2),a=r[0],i=r[1],o=m.useMemo(function(){var c=!0,s=function(){return i(function(l){return l===e?c:e})},f=function(l){return i(l)},u=function(){return i(e)},d=function(){return i(c)};return{toggle:s,set:f,setLeft:u,setRight:d}},[]);return[a,o]}function qt(e){var t=_(Xt(!1),2),r=t[0],a=t[1],i=a.toggle,o=a.set,c=m.useMemo(function(){var s=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(u){return o(!!u)},setTrue:s,setFalse:f}},[]);return[r,c]}function Tr(e,t){if(ne){if(!e)return t;var r;return te(e)?r=e():"current"in e?r=e.current:r=e,r}}var Zt=function(e){var t=function(r,a,i){var o=m.useRef(!1),c=m.useRef([]),s=m.useRef([]),f=m.useRef();e(function(){var u,d=Array.isArray(i)?i:[i],l=d.map(function(p){return Tr(p)});if(!o.current){o.current=!0,c.current=l,s.current=a,f.current=r();return}(l.length!==c.current.length||!Re(c.current,l)||!Re(s.current,a))&&((u=f.current)===null||u===void 0||u.call(f),c.current=l,s.current=a,f.current=r())}),be(function(){var u;(u=f.current)===null||u===void 0||u.call(f),o.current=!1})};return t},Qt=Zt(m.useEffect);function wr(e,t,r){r===void 0&&(r={});var a=r.enable,i=a===void 0?!0:a,o=je(t);Qt(function(){if(i){var c=Tr(r.target,window);if(c!=null&&c.addEventListener){var s=function(u){return o.current(u)},f=Array.isArray(e)?e:[e];return f.forEach(function(u){c.addEventListener(u,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(u){c.removeEventListener(u,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}const Kt=function(e,t){var r={},a=r.onEnter,i=r.onLeave,o=r.onChange,c=_(qt(),2),s=c[0],f=c[1],u=f.setTrue,d=f.setFalse;return wr("mouseenter",function(){a==null||a(),u(),o==null||o(!0)},{target:e}),wr("mouseleave",function(){i==null||i(),d(),o==null||o(!1)},{target:e}),s},Rr=m.forwardRef(({type:e="",className:t="",symbol:r=!1,...a},i)=>r?k.jsx("svg",{className:`iconfont-symbol ${e} ${t}`,"aria-hidden":"true",ref:i,...a,children:k.jsx("use",{xlinkHref:`#${e}`})}):k.jsx("i",{className:`iconfont ${e} ${t}`,ref:i,...a})),$t={btn_icon__warp:"_btn_icon__warp_ay6he_1"},en=(e,t)=>{const r=m.useRef(null),{icon:a,tooltipDisabled:i=!1,onClick:o=tt,disabled:c,size:s="middle",style:f={},className:u,loading:d=!1,...l}=e,p=Kt(r),h=()=>at(a)&&a.includes("icon-")?k.jsx(Rr,{type:a}):a,g=k.jsx(H.Button,{onClick:o,size:s,disabled:c,style:f,ref:t,loading:d,className:ut([u,$t.btn_icon__warp]),icon:h()});if(!a)throw new Error("IconButton 组件必须传入 icon 属性");return k.jsxs(m.Fragment,{children:[i&&g,!i&&k.jsx(H.Tooltip,{open:p,trigger:"contextMenu",destroyTooltipOnHide:!0,...l,children:k.jsx("span",{ref:r,style:{display:"inline-block"},className:"icon-button-box",children:g})})]})},rn=m.forwardRef(en),tn=({checked:e,onChange:t,trueValue:r=!0,falseValue:a=!1,...i})=>{const o=e===r,c=(s,f)=>{t==null||t(s?r:a,f)};return k.jsx(H.Switch,{checked:o,onChange:c,...i})};j.message=H.message,j.notification=H.notification,j.modal=H.Modal;function nn({children:e}){const t=H.App.useApp();return j.message=t.message,j.modal=t.modal,j.notification=t.notification,e}function an(e,t,r){const a=Jt(e,{...t,onError(o,c){var s;((t==null?void 0:t.errorMessage)??!0)&&j.message.error(o.message),(s=t==null?void 0:t.onError)==null||s.call(t,o,c)}},r),i=a.data&&typeof a.data=="object"&&"data"in a.data?a.data.data:a.data;return{...a,data:i}}j.App=nn,j.CheckboxValue=Yr,j.IconButton=rn,j.IconFont=Rr,j.SwitchValue=tn,j.useRequest=an,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
35
|
+
*/var Ke;function at(){return Ke||(Ke=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",c=0;c<arguments.length;c++){var s=arguments[c];s&&(o=i(o,a(s)))}return o}function a(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var s in o)t.call(o,s)&&o[s]&&(c=i(c,s));return c}function i(o,c){return c?o?o+" "+c:o+c:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Te)),Te.exports}var ot=at();const it=Ee(ot);var ut=function(e){return function(t,r){var a=h.useRef(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(!a.current)a.current=!0;else return t()},r)}},N=function(){return N=Object.assign||function(t){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},N.apply(this,arguments)};function $e(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r}function ct(e,t,r,a){function i(o){return o instanceof r?o:new r(function(c){c(o)})}return new(r||(r=Promise))(function(o,c){function s(d){try{u(a.next(d))}catch(l){c(l)}}function f(d){try{u(a.throw(d))}catch(l){c(l)}}function u(d){d.done?o(d.value):i(d.value).then(s,f)}u((a=a.apply(e,t||[])).next())})}function st(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=s(0),c.throw=s(1),c.return=s(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(u){return function(d){return f([u,d])}}function f(u){if(a)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(r=0)),r;)try{if(a=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(d){u=[6,d],i=0}finally{a=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function j(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),i,o=[],c;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){c={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(c)throw c.error}}return o}function S(e,t,r){if(r||arguments.length===2)for(var a=0,i=t.length,o;a<i;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var te=function(e){return typeof e=="function"},ve=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Q(e){ve&&(te(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=h.useRef(e);t.current=h.useMemo(function(){return e},[e]);var r=h.useRef();return r.current||(r.current=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return t.current.apply(this,a)}),r.current}const we=ut(h.useEffect);var er=function(e,t){var r=t.manual,a=t.ready,i=a===void 0?!0:a,o=t.defaultParams,c=o===void 0?[]:o,s=t.refreshDeps,f=s===void 0?[]:s,u=t.refreshDepsAction,d=h.useRef(!1);return d.current=!1,we(function(){!r&&i&&(d.current=!0,e.run.apply(e,S([],j(c),!1)))},[i]),we(function(){d.current||r||(d.current=!0,u?u():e.refresh())},S([],j(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};er.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,a=e.manual;return{loading:!a&&r}};function Re(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function rr(e,t){var r=h.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Re(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function je(e){var t=h.useRef(e);return t.current=e,t}var ge=function(e){ve&&(te(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=je(e);h.useEffect(function(){return function(){t.current()}},[])},be=new Map,ft=function(e,t,r){var a=be.get(e);a!=null&&a.timer&&clearTimeout(a.timer);var i=void 0;t>-1&&(i=setTimeout(function(){be.delete(e)},t)),be.set(e,N(N({},r),{timer:i}))},lt=function(e){return be.get(e)},me=new Map,dt=function(e){return me.get(e)},vt=function(e,t){me.set(e,t),t.then(function(r){return me.delete(e),r}).catch(function(){me.delete(e)})},D={},gt=function(e,t){D[e]&&D[e].forEach(function(r){return r(t)})},_e=function(e,t){return D[e]||(D[e]=[]),D[e].push(t),function(){var a=D[e].indexOf(t);D[e].splice(a,1)}},bt=function(e,t){var r=t.cacheKey,a=t.cacheTime,i=a===void 0?5*60*1e3:a,o=t.staleTime,c=o===void 0?0:o,s=t.setCache,f=t.getCache,u=h.useRef(),d=h.useRef(),l=function(m,b){s?s(b):ft(m,i,b),gt(m,b.data)},p=function(m,b){return b===void 0&&(b=[]),f?f(b):lt(m)};return rr(function(){if(r){var m=p(r);m&&Object.hasOwnProperty.call(m,"data")&&(e.state.data=m.data,e.state.params=m.params,(c===-1||new Date().getTime()-m.time<=c)&&(e.state.loading=!1)),u.current=_e(r,function(b){e.setState({data:b})})}},[]),ge(function(){var m;(m=u.current)===null||m===void 0||m.call(u)}),r?{onBefore:function(m){var b=p(r,m);return!b||!Object.hasOwnProperty.call(b,"data")?{}:c===-1||new Date().getTime()-b.time<=c?{loading:!1,data:b==null?void 0:b.data,error:void 0,returnNow:!0}:{data:b==null?void 0:b.data,error:void 0}},onRequest:function(m,b){var T=dt(r);return T&&T!==d.current?{servicePromise:T}:(T=m.apply(void 0,S([],j(b),!1)),d.current=T,vt(r,T),{servicePromise:T})},onSuccess:function(m,b){var T;r&&((T=u.current)===null||T===void 0||T.call(u),l(r,{data:m,params:b,time:new Date().getTime()}),u.current=_e(r,function(P){e.setState({data:P})}))},onMutate:function(m){var b;r&&((b=u.current)===null||b===void 0||b.call(u),l(r,{data:m,params:e.state.params,time:new Date().getTime()}),u.current=_e(r,function(T){e.setState({data:T})}))}}:{}},Se,tr;function Oe(){if(tr)return Se;tr=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Se=e,Se}var xe,nr;function mt(){if(nr)return xe;nr=1;var e=typeof fe=="object"&&fe&&fe.Object===Object&&fe;return xe=e,xe}var Pe,ar;function or(){if(ar)return Pe;ar=1;var e=mt(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Pe=r,Pe}var Ce,ir;function ht(){if(ir)return Ce;ir=1;var e=or(),t=function(){return e.Date.now()};return Ce=t,Ce}var Ae,ur;function yt(){if(ur)return Ae;ur=1;var e=/\s/;function t(r){for(var a=r.length;a--&&e.test(r.charAt(a)););return a}return Ae=t,Ae}var Ne,cr;function pt(){if(cr)return Ne;cr=1;var e=yt(),t=/^\s+/;function r(a){return a&&a.slice(0,e(a)+1).replace(t,"")}return Ne=r,Ne}var ke,sr;function fr(){if(sr)return ke;sr=1;var e=or(),t=e.Symbol;return ke=t,ke}var Me,lr;function Et(){if(lr)return Me;lr=1;var e=fr(),t=Object.prototype,r=t.hasOwnProperty,a=t.toString,i=e?e.toStringTag:void 0;function o(c){var s=r.call(c,i),f=c[i];try{c[i]=void 0;var u=!0}catch{}var d=a.call(c);return u&&(s?c[i]=f:delete c[i]),d}return Me=o,Me}var We,dr;function Tt(){if(dr)return We;dr=1;var e=Object.prototype,t=e.toString;function r(a){return t.call(a)}return We=r,We}var Le,vr;function wt(){if(vr)return Le;vr=1;var e=fr(),t=Et(),r=Tt(),a="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function c(s){return s==null?s===void 0?i:a:o&&o in Object(s)?t(s):r(s)}return Le=c,Le}var Fe,gr;function Rt(){if(gr)return Fe;gr=1;function e(t){return t!=null&&typeof t=="object"}return Fe=e,Fe}var Ie,br;function jt(){if(br)return Ie;br=1;var e=wt(),t=Rt(),r="[object Symbol]";function a(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ie=a,Ie}var Be,mr;function _t(){if(mr)return Be;mr=1;var e=pt(),t=Oe(),r=jt(),a=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;function f(u){if(typeof u=="number")return u;if(r(u))return a;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var l=o.test(u);return l||c.test(u)?s(u.slice(2),l?2:8):i.test(u)?a:+u}return Be=f,Be}var Ge,hr;function yr(){if(hr)return Ge;hr=1;var e=Oe(),t=ht(),r=_t(),a="Expected a function",i=Math.max,o=Math.min;function c(s,f,u){var d,l,p,m,b,T,P=0,L=!1,M=!1,F=!0;if(typeof s!="function")throw new TypeError(a);f=r(f)||0,e(u)&&(L=!!u.leading,M="maxWait"in u,p=M?i(r(u.maxWait)||0,f):p,F="trailing"in u?!!u.trailing:F);function W(w){var A=d,B=l;return d=l=void 0,P=w,m=s.apply(B,A),m}function V(w){return P=w,b=setTimeout(C,f),L?W(w):m}function U(w){var A=w-T,B=w-P,ye=f-A;return M?o(ye,p-B):ye}function I(w){var A=w-T,B=w-P;return T===void 0||A>=f||A<0||M&&B>=p}function C(){var w=t();if(I(w))return ie(w);b=setTimeout(C,U(w))}function ie(w){return b=void 0,F&&d?W(w):(d=l=void 0,m)}function he(){b!==void 0&&clearTimeout(b),P=0,d=T=l=b=void 0}function ue(){return b===void 0?m:ie(t())}function J(){var w=t(),A=I(w);if(d=arguments,l=this,T=w,A){if(b===void 0)return V(T);if(M)return clearTimeout(b),b=setTimeout(C,f),W(T)}return b===void 0&&(b=setTimeout(C,f)),m}return J.cancel=he,J.flush=ue,J}return Ge=c,Ge}var St=yr();const Ot=Ee(St);var xt=function(e,t){var r=t.debounceWait,a=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,c=h.useRef(),s=h.useMemo(function(){var f={};return a!==void 0&&(f.leading=a),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[a,i,o]);return h.useEffect(function(){if(r){var f=e.runAsync.bind(e);return c.current=Ot(function(u){u()},r,s),e.runAsync=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return new Promise(function(l,p){var m;(m=c.current)===null||m===void 0||m.call(c,function(){f.apply(void 0,S([],j(u),!1)).then(l).catch(p)})})},function(){var u;(u=c.current)===null||u===void 0||u.cancel(),e.runAsync=f}}},[r,s]),r?{onCancel:function(){var f;(f=c.current)===null||f===void 0||f.cancel()}}:{}},Pt=function(e,t){var r=t.loadingDelay,a=t.ready,i=h.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),a!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},ne=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ye(){return ne?document.visibilityState!=="hidden":!0}var ae=[];function Ct(e){return ae.push(e),function(){var r=ae.indexOf(e);ae.splice(r,1)}}if(ne){var At=function(){if(Ye())for(var e=0;e<ae.length;e++){var t=ae[e];t()}};window.addEventListener("visibilitychange",At,!1)}var Nt=function(e,t){var r=t.pollingInterval,a=t.pollingWhenHidden,i=a===void 0?!0:a,o=t.pollingErrorRetryCount,c=o===void 0?-1:o,s=h.useRef(),f=h.useRef(),u=h.useRef(0),d=function(){var l;s.current&&clearTimeout(s.current),(l=f.current)===null||l===void 0||l.call(f)};return we(function(){r||d()},[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){c===-1||c!==-1&&u.current<=c?s.current=setTimeout(function(){!i&&!Ye()?f.current=Ct(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){d()}}:{}};function kt(e,t){var r=!1;return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];r||(r=!0,e.apply(void 0,S([],j(a),!1)),setTimeout(function(){r=!1},t))}}function Mt(){return ne&&typeof navigator.onLine<"u"?navigator.onLine:!0}var oe=[];function Wt(e){return oe.push(e),function(){var r=oe.indexOf(e);r>-1&&oe.splice(r,1)}}if(ne){var pr=function(){if(!(!Ye()||!Mt()))for(var e=0;e<oe.length;e++){var t=oe[e];t()}};window.addEventListener("visibilitychange",pr,!1),window.addEventListener("focus",pr,!1)}var Lt=function(e,t){var r=t.refreshOnWindowFocus,a=t.focusTimespan,i=a===void 0?5e3:a,o=h.useRef(),c=function(){var s;(s=o.current)===null||s===void 0||s.call(o)};return h.useEffect(function(){if(r){var s=kt(e.refresh.bind(e),i);o.current=Wt(function(){s()})}return function(){c()}},[r,i]),ge(function(){c()}),{}},Ft=function(e,t){var r=t.retryInterval,a=t.retryCount,i=h.useRef(),o=h.useRef(0),c=h.useRef(!1);return a?{onBefore:function(){c.current||(o.current=0),c.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,a===-1||o.current<=a){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){c.current=!0,e.refresh()},s)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},He,Er;function It(){if(Er)return He;Er=1;var e=yr(),t=Oe(),r="Expected a function";function a(i,o,c){var s=!0,f=!0;if(typeof i!="function")throw new TypeError(r);return t(c)&&(s="leading"in c?!!c.leading:s,f="trailing"in c?!!c.trailing:f),e(i,o,{leading:s,maxWait:o,trailing:f})}return He=a,He}var Bt=It();const Gt=Ee(Bt);var Yt=function(e,t){var r=t.throttleWait,a=t.throttleLeading,i=t.throttleTrailing,o=h.useRef(),c={};return a!==void 0&&(c.leading=a),i!==void 0&&(c.trailing=i),h.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=Gt(function(f){f()},r,c),e.runAsync=function(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];return new Promise(function(d,l){var p;(p=o.current)===null||p===void 0||p.call(o,function(){s.apply(void 0,S([],j(f),!1)).then(d).catch(l)})})},function(){var f;e.runAsync=s,(f=o.current)===null||f===void 0||f.cancel()}}},[r,a,i]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Ht=function(e){ve&&(te(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),h.useEffect(function(){e==null||e()},[])},Ut=function(){var e=j(h.useState({}),2),t=e[1];return h.useCallback(function(){return t({})},[])},zt=function(){function e(t,r,a,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=a,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=N(N(N({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=N(N({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var i=this.pluginImpls.map(function(o){var c;return(c=o[t])===null||c===void 0?void 0:c.call.apply(c,S([o],j(r),!1))}).filter(Boolean);return Object.assign.apply(Object,S([{}],j(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ct(this,void 0,void 0,function(){var a,i,o,c,s,f,u,d,l,p,m,b,T,P,L,M,F,W,V,U,I;return st(this,function(C){switch(C.label){case 0:if(this.count+=1,a=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,c=o===void 0?!1:o,s=i.returnNow,f=s===void 0?!1:s,u=$e(i,["stopNow","returnNow"]),c)return[2,new Promise(function(){})];if(this.setState(N({loading:!0,params:t},u)),f)return[2,Promise.resolve(u.data)];(T=(b=this.options).onBefore)===null||T===void 0||T.call(b,t),C.label=1;case 1:return C.trys.push([1,3,,4]),d=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,d||(d=(m=this.serviceRef).current.apply(m,S([],j(t),!1))),[4,d];case 2:return l=C.sent(),a!==this.count?[2,new Promise(function(){})]:(this.setState({data:l,error:void 0,loading:!1}),(L=(P=this.options).onSuccess)===null||L===void 0||L.call(P,l,t),this.runPluginHandler("onSuccess",l,t),(F=(M=this.options).onFinally)===null||F===void 0||F.call(M,t,l,void 0),a===this.count&&this.runPluginHandler("onFinally",t,l,void 0),[2,l]);case 3:if(p=C.sent(),a!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(V=(W=this.options).onError)===null||V===void 0||V.call(W,p,t),this.runPluginHandler("onError",p,t),(I=(U=this.options).onFinally)===null||I===void 0||I.call(U,t,void 0,p),a===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];this.runAsync.apply(this,S([],j(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,S([],j(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,S([],j(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=te(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function Dt(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var a=t.manual,i=a===void 0?!1:a,o=t.ready,c=o===void 0?!0:o,s=$e(t,["manual","ready"]);ve&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var f=N({manual:i,ready:c},s),u=je(e),d=Ut(),l=rr(function(){var p=r.map(function(m){var b;return(b=m==null?void 0:m.onInit)===null||b===void 0?void 0:b.call(m,f)}).filter(Boolean);return new zt(u,f,d,Object.assign.apply(Object,S([{}],j(p),!1)))},[]);return l.options=f,l.pluginImpls=r.map(function(p){return p(l,f)}),Ht(function(){if(!i&&c){var p=l.state.params||t.defaultParams||[];l.run.apply(l,S([],j(p),!1))}}),ge(function(){l.cancel()}),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:Q(l.cancel.bind(l)),refresh:Q(l.refresh.bind(l)),refreshAsync:Q(l.refreshAsync.bind(l)),run:Q(l.run.bind(l)),runAsync:Q(l.runAsync.bind(l)),mutate:Q(l.mutate.bind(l))}}function Vt(e,t,r){return Dt(e,t,S(S([],j(r||[]),!1),[xt,Pt,Nt,Lt,Yt,er,bt,Ft],!1))}function Jt(e,t){var r=j(h.useState(e),2),a=r[0],i=r[1],o=h.useMemo(function(){var c=!0,s=function(){return i(function(l){return l===e?c:e})},f=function(l){return i(l)},u=function(){return i(e)},d=function(){return i(c)};return{toggle:s,set:f,setLeft:u,setRight:d}},[]);return[a,o]}function Xt(e){var t=j(Jt(!1),2),r=t[0],a=t[1],i=a.toggle,o=a.set,c=h.useMemo(function(){var s=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(u){return o(!!u)},setTrue:s,setFalse:f}},[]);return[r,c]}function Tr(e,t){if(ne){if(!e)return t;var r;return te(e)?r=e():"current"in e?r=e.current:r=e,r}}var qt=function(e){var t=function(r,a,i){var o=h.useRef(!1),c=h.useRef([]),s=h.useRef([]),f=h.useRef();e(function(){var u,d=Array.isArray(i)?i:[i],l=d.map(function(p){return Tr(p)});if(!o.current){o.current=!0,c.current=l,s.current=a,f.current=r();return}(l.length!==c.current.length||!Re(c.current,l)||!Re(s.current,a))&&((u=f.current)===null||u===void 0||u.call(f),c.current=l,s.current=a,f.current=r())}),ge(function(){var u;(u=f.current)===null||u===void 0||u.call(f),o.current=!1})};return t},Zt=qt(h.useEffect);function wr(e,t,r){r===void 0&&(r={});var a=r.enable,i=a===void 0?!0:a,o=je(t);Zt(function(){if(i){var c=Tr(r.target,window);if(c!=null&&c.addEventListener){var s=function(u){return o.current(u)},f=Array.isArray(e)?e:[e];return f.forEach(function(u){c.addEventListener(u,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(u){c.removeEventListener(u,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}const Qt=function(e,t){var r={},a=r.onEnter,i=r.onLeave,o=r.onChange,c=j(Xt(),2),s=c[0],f=c[1],u=f.setTrue,d=f.setFalse;return wr("mouseenter",function(){a==null||a(),u(),o==null||o(!0)},{target:e}),wr("mouseleave",function(){i==null||i(),d(),o==null||o(!1)},{target:e}),s},Kt=h.forwardRef(({type:e="",className:t="",symbol:r=!1,...a},i)=>r?H.jsx("svg",{className:`iconfont-symbol ${e} ${t}`,"aria-hidden":"true",ref:i,...a,children:H.jsx("use",{xlinkHref:`#${e}`})}):H.jsx("i",{className:`iconfont ${e} ${t}`,ref:i,...a})),$t={btn_icon__warp:"_btn_icon__warp_ay6he_1"},en=(e,t)=>{const r=h.useRef(null),{icon:a,tooltipDisabled:i=!1,onClick:o=rt,disabled:c,size:s="middle",style:f={},className:u,loading:d=!1,...l}=e,p=Qt(r),m=()=>nt(a)&&a.includes("icon-")?H.jsx(Kt,{type:a}):a,b=H.jsx(k.Button,{onClick:o,size:s,disabled:c,style:f,ref:t,loading:d,className:it([u,$t.btn_icon__warp]),icon:m()});if(!a)throw new Error("IconButton 组件必须传入 icon 属性");return H.jsxs(h.Fragment,{children:[i&&b,!i&&H.jsx(k.Tooltip,{open:p,trigger:"contextMenu",destroyTooltipOnHide:!0,...l,children:H.jsx("span",{ref:r,style:{display:"inline-block"},className:"icon-button-box",children:b})})]})},rn=h.forwardRef(en);function tn(e,t,r){const a=Vt(e,{...t,onError(o,c){var s;((t==null?void 0:t.errorMessage)??!0)&&_.message.error(o.message),(s=t==null?void 0:t.onError)==null||s.call(t,o,c)}},r),i=a.data&&typeof a.data=="object"&&"data"in a.data?a.data.data:a.data;return{...a,data:i}}_.App=Fr,_.IconButton=rn,_.useRequest=tn,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -17,5 +17,5 @@ declare const IconFont: React.ForwardRefExoticComponent<((IconFontCommonProps &
|
|
|
17
17
|
symbol?: false;
|
|
18
18
|
}) | Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
|
|
19
19
|
symbol: true;
|
|
20
|
-
}, "ref">) & React.RefAttributes<
|
|
20
|
+
}, "ref">) & React.RefAttributes<SVGSVGElement | HTMLElement>>;
|
|
21
21
|
export default IconFont;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export { default as CheckboxValue } from './CheckboxValue';
|
|
2
|
-
export { default as IconButton } from './IconButton';
|
|
3
|
-
export { default as IconFont } from './IconFont';
|
|
4
|
-
export { default as SwitchValue } from './SwitchValue';
|
|
5
1
|
export { default as App, message, notification, modal } from './AntdApp';
|
|
2
|
+
export { default as IconButton } from './IconButton';
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export { default as CheckboxValue } from './CheckboxValue';
|
|
2
|
-
export { default as IconButton } from './IconButton';
|
|
3
|
-
export { default as IconFont } from './IconFont';
|
|
4
|
-
export { default as SwitchValue } from './SwitchValue';
|
|
5
1
|
export { default as App, message, notification, modal } from './AntdApp';
|
|
2
|
+
export { default as IconButton } from './IconButton';
|
|
@@ -3,17 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
var CheckboxValue_1 = require("./CheckboxValue");
|
|
8
|
-
Object.defineProperty(exports, "CheckboxValue", { enumerable: true, get: function () { return __importDefault(CheckboxValue_1).default; } });
|
|
9
|
-
var IconButton_1 = require("./IconButton");
|
|
10
|
-
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
|
|
11
|
-
var IconFont_1 = require("./IconFont");
|
|
12
|
-
Object.defineProperty(exports, "IconFont", { enumerable: true, get: function () { return __importDefault(IconFont_1).default; } });
|
|
13
|
-
var SwitchValue_1 = require("./SwitchValue");
|
|
14
|
-
Object.defineProperty(exports, "SwitchValue", { enumerable: true, get: function () { return __importDefault(SwitchValue_1).default; } });
|
|
6
|
+
exports.IconButton = exports.modal = exports.notification = exports.message = exports.App = void 0;
|
|
15
7
|
var AntdApp_1 = require("./AntdApp");
|
|
16
8
|
Object.defineProperty(exports, "App", { enumerable: true, get: function () { return __importDefault(AntdApp_1).default; } });
|
|
17
9
|
Object.defineProperty(exports, "message", { enumerable: true, get: function () { return AntdApp_1.message; } });
|
|
18
10
|
Object.defineProperty(exports, "notification", { enumerable: true, get: function () { return AntdApp_1.notification; } });
|
|
19
11
|
Object.defineProperty(exports, "modal", { enumerable: true, get: function () { return AntdApp_1.modal; } });
|
|
12
|
+
var IconButton_1 = require("./IconButton");
|
|
13
|
+
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./components"), exports);
|
|
18
|
+
__exportStar(require("./hooks"), exports);
|
package/build/package.json
CHANGED