@infinilabs/entity-ui 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -119
- package/dist/entity-ui.cjs +11 -10
- package/dist/entity-ui.js +194 -193
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/style.css +0 -1
package/dist/entity-ui.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._entityCard_1xtgw_1{width:400px;padding:16px;overflow:auto;border-radius:5px;background-color:#fff;color:#101010;font-size:14px;text-align:center;box-shadow:0 0 10px #0000004d;font-family:-regular}._pcCover_1xtgw_15{display:flex;align-items:center;justify-content:center;margin-bottom:25px;overflow:hidden;border-radius:3px;background-color:#bbbbbbb0}._pcCover_1xtgw_15 img{width:100%;height:auto;display:block}._pcSection_1xtgw_31{width:100%;padding-bottom:16px;display:flex;align-items:center}._pcBreadcrumbSep_1xtgw_38{font-size:12px;color:#999}._pcBasic_1xtgw_43{display:flex;gap:8px;flex-wrap:wrap}._pcBasicRow_1xtgw_49{width:100%;display:flex;align-items:center;justify-content:space-between}._pcBasicRowLeft_1xtgw_56{display:flex;align-items:center;gap:8px}._pcLinkIconRight_1xtgw_61{display:flex;align-items:center;justify-content:center;width:30px;height:20px;text-decoration:none;background-color:#fafafa;border-radius:4px}._pcColorSwatch_1xtgw_72{width:7px;height:16px}._pcIconDot_1xtgw_77{width:18px;height:18px}._pcTitleLink_1xtgw_82{display:inline-flex;align-items:center;gap:8px;padding:2px 8px;border:2px solid #027ffe;border-radius:4px;color:#027ffe;font-weight:500;text-decoration:none;line-height:1.6}._pcTitleLink_1xtgw_82:hover{background:#1677ff0f}._pcTitleText_1xtgw_99{display:inline-flex;align-items:center;color:#027ffe;font-size:16px}._pcSubTitleText_1xtgw_106{display:inline-flex;align-items:center;color:#999;font-size:16px}._pcExternalIcon_1xtgw_113{font-size:12px;color:#027ffe;margin-left:2px}._pcProperties_1xtgw_119{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;row-gap:12px;align-items:start}._pcProperty_1xtgw_127{display:flex;align-items:center;gap:4px;min-height:24px;min-width:0;box-sizing:border-box;font-size:12px;color:#999}._pcTagsRow_1xtgw_138{display:inline-flex;flex-wrap:wrap;gap:4px}._pcTag_1xtgw_138{padding:2px 6px;border-radius:4px;background:#f2f3f5;color:#555;font-size:12px}._pcDetails_1xtgw_151{width:100%;display:flex;flex-direction:column;gap:12px}._pcRow_1xtgw_157{display:grid;column-gap:8px;row-gap:12px;width:100%}._pcCol_1xtgw_72{width:100%;padding:10px 8px;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left;border-radius:5px;background-color:#fafafa;color:#101010;font-size:14px;font-family:-regular;border:1px solid rgba(245,245,245,1)}._pcColLabel_1xtgw_179{color:#999;font-size:12px}._pcColValue_1xtgw_183{font-size:16px;color:#027ffe}._pcProgressText_1xtgw_188{font-size:10px;color:#027ffe}._entityLabel_1xtgw_194{width:100%;overflow:hidden}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import Ye, { useState as We, useRef as xt } from "react";
|
|
3
|
+
import { Breadcrumb as _t, Tag as ze, Progress as bt, Button as wt, Popover as Rt, Skeleton as jt, Avatar as $e } from "antd";
|
|
4
|
+
import * as Je from "lucide-react";
|
|
5
|
+
import { ExternalLink as Et, Tags as Ct } from "lucide-react";
|
|
6
|
+
var be = { exports: {} }, X = {};
|
|
6
7
|
/**
|
|
7
8
|
* @license React
|
|
8
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,17 +13,17 @@ var xe = { exports: {} }, X = {};
|
|
|
12
13
|
* This source code is licensed under the MIT license found in the
|
|
13
14
|
* LICENSE file in the root directory of this source tree.
|
|
14
15
|
*/
|
|
15
|
-
var
|
|
16
|
+
var Be;
|
|
16
17
|
function Tt() {
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
var t =
|
|
20
|
-
function m(
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
for (
|
|
24
|
-
if (
|
|
25
|
-
return { $$typeof: v, type:
|
|
18
|
+
if (Be) return X;
|
|
19
|
+
Be = 1;
|
|
20
|
+
var t = Ye, v = Symbol.for("react.element"), f = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function m(w, u, R) {
|
|
22
|
+
var _, S = {}, C = null, O = null;
|
|
23
|
+
R !== void 0 && (C = "" + R), u.key !== void 0 && (C = "" + u.key), u.ref !== void 0 && (O = u.ref);
|
|
24
|
+
for (_ in u) c.call(u, _) && !g.hasOwnProperty(_) && (S[_] = u[_]);
|
|
25
|
+
if (w && w.defaultProps) for (_ in u = w.defaultProps, u) S[_] === void 0 && (S[_] = u[_]);
|
|
26
|
+
return { $$typeof: v, type: w, key: C, ref: O, props: S, _owner: s.current };
|
|
26
27
|
}
|
|
27
28
|
return X.Fragment = f, X.jsx = m, X.jsxs = m, X;
|
|
28
29
|
}
|
|
@@ -36,25 +37,25 @@ var Z = {};
|
|
|
36
37
|
* This source code is licensed under the MIT license found in the
|
|
37
38
|
* LICENSE file in the root directory of this source tree.
|
|
38
39
|
*/
|
|
39
|
-
var
|
|
40
|
+
var Me;
|
|
40
41
|
function St() {
|
|
41
|
-
return
|
|
42
|
-
var t =
|
|
42
|
+
return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var t = Ye, v = Symbol.for("react.element"), f = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), w = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), $ = Symbol.iterator, ae = "@@iterator";
|
|
43
44
|
function ce(e) {
|
|
44
45
|
if (e === null || typeof e != "object")
|
|
45
46
|
return null;
|
|
46
|
-
var r =
|
|
47
|
+
var r = $ && e[$] || e[ae];
|
|
47
48
|
return typeof r == "function" ? r : null;
|
|
48
49
|
}
|
|
49
50
|
var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
-
function
|
|
51
|
+
function j(e) {
|
|
51
52
|
{
|
|
52
53
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
53
54
|
i[o - 1] = arguments[o];
|
|
54
|
-
|
|
55
|
+
we("error", e, i);
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function we(e, r, i) {
|
|
58
59
|
{
|
|
59
60
|
var o = A.ReactDebugCurrentFrame, p = o.getStackAddendum();
|
|
60
61
|
p !== "" && (r += "%s", i = i.concat([p]));
|
|
@@ -66,8 +67,8 @@ function St() {
|
|
|
66
67
|
}
|
|
67
68
|
var ue = !1, fe = !1, Q = !1, pe = !1, he = !1, d;
|
|
68
69
|
d = Symbol.for("react.module.reference");
|
|
69
|
-
function
|
|
70
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === g || he || e === s || e ===
|
|
70
|
+
function B(e) {
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === g || he || e === s || e === R || e === _ || pe || e === O || ue || fe || Q || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === S || e.$$typeof === m || e.$$typeof === w || e.$$typeof === u || // This needs to include all possible module reference object
|
|
71
72
|
// types supported by any Flight configuration anywhere since
|
|
72
73
|
// we don't know which Flight build this will end up being used
|
|
73
74
|
// with.
|
|
@@ -86,7 +87,7 @@ function St() {
|
|
|
86
87
|
function I(e) {
|
|
87
88
|
if (e == null)
|
|
88
89
|
return null;
|
|
89
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
90
91
|
return e.displayName || e.name || null;
|
|
91
92
|
if (typeof e == "string")
|
|
92
93
|
return e;
|
|
@@ -99,14 +100,14 @@ function St() {
|
|
|
99
100
|
return "Profiler";
|
|
100
101
|
case s:
|
|
101
102
|
return "StrictMode";
|
|
102
|
-
case
|
|
103
|
+
case R:
|
|
103
104
|
return "Suspense";
|
|
104
|
-
case
|
|
105
|
+
case _:
|
|
105
106
|
return "SuspenseList";
|
|
106
107
|
}
|
|
107
108
|
if (typeof e == "object")
|
|
108
109
|
switch (e.$$typeof) {
|
|
109
|
-
case
|
|
110
|
+
case w:
|
|
110
111
|
var r = e;
|
|
111
112
|
return ee(r) + ".Consumer";
|
|
112
113
|
case m:
|
|
@@ -128,14 +129,14 @@ function St() {
|
|
|
128
129
|
}
|
|
129
130
|
return null;
|
|
130
131
|
}
|
|
131
|
-
var F = Object.assign,
|
|
132
|
+
var F = Object.assign, L = 0, te, Y, z, J, q, P, re;
|
|
132
133
|
function ne() {
|
|
133
134
|
}
|
|
134
135
|
ne.__reactDisabledLog = !0;
|
|
135
136
|
function ie() {
|
|
136
137
|
{
|
|
137
|
-
if (
|
|
138
|
-
te = console.log,
|
|
138
|
+
if (L === 0) {
|
|
139
|
+
te = console.log, Y = console.info, z = console.warn, J = console.error, q = console.group, P = console.groupCollapsed, re = console.groupEnd;
|
|
139
140
|
var e = {
|
|
140
141
|
configurable: !0,
|
|
141
142
|
enumerable: !0,
|
|
@@ -152,12 +153,12 @@ function St() {
|
|
|
152
153
|
groupEnd: e
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
+
L++;
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
function ge() {
|
|
159
160
|
{
|
|
160
|
-
if (
|
|
161
|
+
if (L--, L === 0) {
|
|
161
162
|
var e = {
|
|
162
163
|
configurable: !0,
|
|
163
164
|
enumerable: !0,
|
|
@@ -168,16 +169,16 @@ function St() {
|
|
|
168
169
|
value: te
|
|
169
170
|
}),
|
|
170
171
|
info: F({}, e, {
|
|
171
|
-
value:
|
|
172
|
+
value: Y
|
|
172
173
|
}),
|
|
173
174
|
warn: F({}, e, {
|
|
174
|
-
value:
|
|
175
|
+
value: z
|
|
175
176
|
}),
|
|
176
177
|
error: F({}, e, {
|
|
177
|
-
value:
|
|
178
|
+
value: J
|
|
178
179
|
}),
|
|
179
180
|
group: F({}, e, {
|
|
180
|
-
value:
|
|
181
|
+
value: q
|
|
181
182
|
}),
|
|
182
183
|
groupCollapsed: F({}, e, {
|
|
183
184
|
value: P
|
|
@@ -187,11 +188,11 @@ function St() {
|
|
|
187
188
|
})
|
|
188
189
|
});
|
|
189
190
|
}
|
|
190
|
-
|
|
191
|
+
L < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
var H = A.ReactCurrentDispatcher, K;
|
|
194
|
-
function
|
|
195
|
+
function M(e, r, i) {
|
|
195
196
|
{
|
|
196
197
|
if (K === void 0)
|
|
197
198
|
try {
|
|
@@ -204,21 +205,21 @@ function St() {
|
|
|
204
205
|
` + K + e;
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
|
-
var
|
|
208
|
+
var N = !1, D;
|
|
208
209
|
{
|
|
209
210
|
var oe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
-
|
|
211
|
+
D = new oe();
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
-
if (!e ||
|
|
213
|
+
function Re(e, r) {
|
|
214
|
+
if (!e || N)
|
|
214
215
|
return "";
|
|
215
216
|
{
|
|
216
|
-
var i =
|
|
217
|
+
var i = D.get(e);
|
|
217
218
|
if (i !== void 0)
|
|
218
219
|
return i;
|
|
219
220
|
}
|
|
220
221
|
var o;
|
|
221
|
-
|
|
222
|
+
N = !0;
|
|
222
223
|
var p = Error.prepareStackTrace;
|
|
223
224
|
Error.prepareStackTrace = void 0;
|
|
224
225
|
var y;
|
|
@@ -258,30 +259,30 @@ function St() {
|
|
|
258
259
|
} catch (T) {
|
|
259
260
|
if (T && o && typeof T.stack == "string") {
|
|
260
261
|
for (var l = T.stack.split(`
|
|
261
|
-
`),
|
|
262
|
-
`),
|
|
263
|
-
|
|
264
|
-
for (;
|
|
265
|
-
if (l[
|
|
266
|
-
if (
|
|
262
|
+
`), E = o.stack.split(`
|
|
263
|
+
`), x = l.length - 1, b = E.length - 1; x >= 1 && b >= 0 && l[x] !== E[b]; )
|
|
264
|
+
b--;
|
|
265
|
+
for (; x >= 1 && b >= 0; x--, b--)
|
|
266
|
+
if (l[x] !== E[b]) {
|
|
267
|
+
if (x !== 1 || b !== 1)
|
|
267
268
|
do
|
|
268
|
-
if (
|
|
269
|
+
if (x--, b--, b < 0 || l[x] !== E[b]) {
|
|
269
270
|
var k = `
|
|
270
|
-
` + l[
|
|
271
|
-
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
271
|
+
` + l[x].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && D.set(e, k), k;
|
|
272
273
|
}
|
|
273
|
-
while (
|
|
274
|
+
while (x >= 1 && b >= 0);
|
|
274
275
|
break;
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
278
|
} finally {
|
|
278
|
-
|
|
279
|
+
N = !1, H.current = y, ge(), Error.prepareStackTrace = p;
|
|
279
280
|
}
|
|
280
|
-
var
|
|
281
|
-
return typeof e == "function" &&
|
|
281
|
+
var V = e ? e.displayName || e.name : "", W = V ? M(V) : "";
|
|
282
|
+
return typeof e == "function" && D.set(e, W), W;
|
|
282
283
|
}
|
|
283
284
|
function Ke(e, r, i) {
|
|
284
|
-
return
|
|
285
|
+
return Re(e, !1);
|
|
285
286
|
}
|
|
286
287
|
function Ge(e) {
|
|
287
288
|
var r = e.prototype;
|
|
@@ -291,14 +292,14 @@ function St() {
|
|
|
291
292
|
if (e == null)
|
|
292
293
|
return "";
|
|
293
294
|
if (typeof e == "function")
|
|
294
|
-
return
|
|
295
|
+
return Re(e, Ge(e));
|
|
295
296
|
if (typeof e == "string")
|
|
296
|
-
return
|
|
297
|
+
return M(e);
|
|
297
298
|
switch (e) {
|
|
298
|
-
case
|
|
299
|
-
return
|
|
300
|
-
case
|
|
301
|
-
return
|
|
299
|
+
case R:
|
|
300
|
+
return M("Suspense");
|
|
301
|
+
case _:
|
|
302
|
+
return M("SuspenseList");
|
|
302
303
|
}
|
|
303
304
|
if (typeof e == "object")
|
|
304
305
|
switch (e.$$typeof) {
|
|
@@ -316,13 +317,13 @@ function St() {
|
|
|
316
317
|
}
|
|
317
318
|
return "";
|
|
318
319
|
}
|
|
319
|
-
var G = Object.prototype.hasOwnProperty,
|
|
320
|
+
var G = Object.prototype.hasOwnProperty, je = {}, Ee = A.ReactDebugCurrentFrame;
|
|
320
321
|
function le(e) {
|
|
321
322
|
if (e) {
|
|
322
323
|
var r = e._owner, i = se(e.type, e._source, r ? r.type : null);
|
|
323
|
-
|
|
324
|
+
Ee.setExtraStackFrame(i);
|
|
324
325
|
} else
|
|
325
|
-
|
|
326
|
+
Ee.setExtraStackFrame(null);
|
|
326
327
|
}
|
|
327
328
|
function Xe(e, r, i, o, p) {
|
|
328
329
|
{
|
|
@@ -332,14 +333,14 @@ function St() {
|
|
|
332
333
|
var l = void 0;
|
|
333
334
|
try {
|
|
334
335
|
if (typeof e[a] != "function") {
|
|
335
|
-
var
|
|
336
|
-
throw
|
|
336
|
+
var E = Error((o || "React class") + ": " + i + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw E.name = "Invariant Violation", E;
|
|
337
338
|
}
|
|
338
339
|
l = e[a](r, a, o, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
|
-
} catch (
|
|
340
|
-
l =
|
|
340
|
+
} catch (x) {
|
|
341
|
+
l = x;
|
|
341
342
|
}
|
|
342
|
-
l && !(l instanceof Error) && (le(p),
|
|
343
|
+
l && !(l instanceof Error) && (le(p), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", i, a, typeof l), le(null)), l instanceof Error && !(l.message in je) && (je[l.message] = !0, le(p), j("Failed %s type: %s", i, l.message), le(null));
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
}
|
|
@@ -365,7 +366,7 @@ function St() {
|
|
|
365
366
|
}
|
|
366
367
|
function Te(e) {
|
|
367
368
|
if (et(e))
|
|
368
|
-
return
|
|
369
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Ce(e);
|
|
369
370
|
}
|
|
370
371
|
var Se = A.ReactCurrentOwner, tt = {
|
|
371
372
|
key: !0,
|
|
@@ -395,7 +396,7 @@ function St() {
|
|
|
395
396
|
function ot(e, r) {
|
|
396
397
|
{
|
|
397
398
|
var i = function() {
|
|
398
|
-
Pe || (Pe = !0,
|
|
399
|
+
Pe || (Pe = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
399
400
|
};
|
|
400
401
|
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
401
402
|
get: i,
|
|
@@ -406,7 +407,7 @@ function St() {
|
|
|
406
407
|
function st(e, r) {
|
|
407
408
|
{
|
|
408
409
|
var i = function() {
|
|
409
|
-
ke || (ke = !0,
|
|
410
|
+
ke || (ke = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
410
411
|
};
|
|
411
412
|
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
412
413
|
get: i,
|
|
@@ -445,24 +446,24 @@ function St() {
|
|
|
445
446
|
};
|
|
446
447
|
function at(e, r, i, o, p) {
|
|
447
448
|
{
|
|
448
|
-
var y, a = {}, l = null,
|
|
449
|
-
i !== void 0 && (Te(i), l = "" + i), nt(r) && (Te(r.key), l = "" + r.key), rt(r) && (
|
|
449
|
+
var y, a = {}, l = null, E = null;
|
|
450
|
+
i !== void 0 && (Te(i), l = "" + i), nt(r) && (Te(r.key), l = "" + r.key), rt(r) && (E = r.ref, it(r, p));
|
|
450
451
|
for (y in r)
|
|
451
452
|
G.call(r, y) && !tt.hasOwnProperty(y) && (a[y] = r[y]);
|
|
452
453
|
if (e && e.defaultProps) {
|
|
453
|
-
var
|
|
454
|
-
for (y in
|
|
455
|
-
a[y] === void 0 && (a[y] =
|
|
454
|
+
var x = e.defaultProps;
|
|
455
|
+
for (y in x)
|
|
456
|
+
a[y] === void 0 && (a[y] = x[y]);
|
|
456
457
|
}
|
|
457
|
-
if (l ||
|
|
458
|
-
var
|
|
459
|
-
l && ot(a,
|
|
458
|
+
if (l || E) {
|
|
459
|
+
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
+
l && ot(a, b), E && st(a, b);
|
|
460
461
|
}
|
|
461
|
-
return lt(e, l,
|
|
462
|
+
return lt(e, l, E, p, o, Se.current, a);
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
var ye = A.ReactCurrentOwner, Oe = A.ReactDebugCurrentFrame;
|
|
465
|
-
function
|
|
466
|
+
function U(e) {
|
|
466
467
|
if (e) {
|
|
467
468
|
var r = e._owner, i = se(e.type, e._source, r ? r.type : null);
|
|
468
469
|
Oe.setExtraStackFrame(i);
|
|
@@ -471,7 +472,7 @@ function St() {
|
|
|
471
472
|
}
|
|
472
473
|
var de;
|
|
473
474
|
de = !1;
|
|
474
|
-
function
|
|
475
|
+
function xe(e) {
|
|
475
476
|
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
476
477
|
}
|
|
477
478
|
function Ie() {
|
|
@@ -512,25 +513,25 @@ Check the top-level render call using <` + i + ">.");
|
|
|
512
513
|
return;
|
|
513
514
|
Ae[i] = !0;
|
|
514
515
|
var o = "";
|
|
515
|
-
e && e._owner && e._owner !== ye.current && (o = " It was passed a child from " + I(e._owner.type) + "."),
|
|
516
|
+
e && e._owner && e._owner !== ye.current && (o = " It was passed a child from " + I(e._owner.type) + "."), U(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, o), U(null);
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
|
-
function
|
|
519
|
+
function Ne(e, r) {
|
|
519
520
|
{
|
|
520
521
|
if (typeof e != "object")
|
|
521
522
|
return;
|
|
522
523
|
if (me(e))
|
|
523
524
|
for (var i = 0; i < e.length; i++) {
|
|
524
525
|
var o = e[i];
|
|
525
|
-
|
|
526
|
+
xe(o) && Fe(o, r);
|
|
526
527
|
}
|
|
527
|
-
else if (
|
|
528
|
+
else if (xe(e))
|
|
528
529
|
e._store && (e._store.validated = !0);
|
|
529
530
|
else if (e) {
|
|
530
531
|
var p = ce(e);
|
|
531
532
|
if (typeof p == "function" && p !== e.entries)
|
|
532
533
|
for (var y = p.call(e), a; !(a = y.next()).done; )
|
|
533
|
-
|
|
534
|
+
xe(a.value) && Fe(a.value, r);
|
|
534
535
|
}
|
|
535
536
|
}
|
|
536
537
|
}
|
|
@@ -554,9 +555,9 @@ Check the top-level render call using <` + i + ">.");
|
|
|
554
555
|
} else if (r.PropTypes !== void 0 && !de) {
|
|
555
556
|
de = !0;
|
|
556
557
|
var p = I(r);
|
|
557
|
-
|
|
558
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
558
559
|
}
|
|
559
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
561
|
}
|
|
561
562
|
}
|
|
562
563
|
function pt(e) {
|
|
@@ -564,93 +565,93 @@ Check the top-level render call using <` + i + ">.");
|
|
|
564
565
|
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
565
566
|
var o = r[i];
|
|
566
567
|
if (o !== "children" && o !== "key") {
|
|
567
|
-
|
|
568
|
+
U(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), U(null);
|
|
568
569
|
break;
|
|
569
570
|
}
|
|
570
571
|
}
|
|
571
|
-
e.ref !== null && (
|
|
572
|
+
e.ref !== null && (U(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
572
573
|
}
|
|
573
574
|
}
|
|
574
|
-
var
|
|
575
|
-
function
|
|
575
|
+
var De = {};
|
|
576
|
+
function Le(e, r, i, o, p, y) {
|
|
576
577
|
{
|
|
577
|
-
var a =
|
|
578
|
+
var a = B(e);
|
|
578
579
|
if (!a) {
|
|
579
580
|
var l = "";
|
|
580
581
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
-
var
|
|
582
|
-
|
|
583
|
-
var
|
|
584
|
-
e === null ?
|
|
582
|
+
var E = ct();
|
|
583
|
+
E ? l += E : l += Ie();
|
|
584
|
+
var x;
|
|
585
|
+
e === null ? x = "null" : me(e) ? x = "array" : e !== void 0 && e.$$typeof === v ? (x = "<" + (I(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : x = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", x, l);
|
|
585
586
|
}
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
return
|
|
587
|
+
var b = at(e, r, i, p, y);
|
|
588
|
+
if (b == null)
|
|
589
|
+
return b;
|
|
589
590
|
if (a) {
|
|
590
591
|
var k = r.children;
|
|
591
592
|
if (k !== void 0)
|
|
592
593
|
if (o)
|
|
593
594
|
if (me(k)) {
|
|
594
|
-
for (var
|
|
595
|
-
|
|
595
|
+
for (var V = 0; V < k.length; V++)
|
|
596
|
+
Ne(k[V], e);
|
|
596
597
|
Object.freeze && Object.freeze(k);
|
|
597
598
|
} else
|
|
598
|
-
|
|
599
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
600
|
else
|
|
600
|
-
|
|
601
|
+
Ne(k, e);
|
|
601
602
|
}
|
|
602
603
|
if (G.call(r, "key")) {
|
|
603
|
-
var
|
|
604
|
+
var W = I(e), T = Object.keys(r).filter(function(dt) {
|
|
604
605
|
return dt !== "key";
|
|
605
|
-
}),
|
|
606
|
-
if (!
|
|
606
|
+
}), _e = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!De[W + _e]) {
|
|
607
608
|
var yt = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
608
|
-
|
|
609
|
+
j(`A props object containing a "key" prop is being spread into JSX:
|
|
609
610
|
let props = %s;
|
|
610
611
|
<%s {...props} />
|
|
611
612
|
React keys must be passed directly to JSX without using spread:
|
|
612
613
|
let props = %s;
|
|
613
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, _e, W, yt, W), De[W + _e] = !0;
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
return e === c ? pt(
|
|
617
|
+
return e === c ? pt(b) : ft(b), b;
|
|
617
618
|
}
|
|
618
619
|
}
|
|
619
620
|
function ht(e, r, i) {
|
|
620
|
-
return
|
|
621
|
+
return Le(e, r, i, !0);
|
|
621
622
|
}
|
|
622
623
|
function vt(e, r, i) {
|
|
623
|
-
return
|
|
624
|
+
return Le(e, r, i, !1);
|
|
624
625
|
}
|
|
625
626
|
var gt = vt, mt = ht;
|
|
626
627
|
Z.Fragment = c, Z.jsx = gt, Z.jsxs = mt;
|
|
627
628
|
}()), Z;
|
|
628
629
|
}
|
|
629
|
-
process.env.NODE_ENV === "production" ?
|
|
630
|
-
var n =
|
|
631
|
-
const Pt = "
|
|
630
|
+
process.env.NODE_ENV === "production" ? be.exports = Tt() : be.exports = St();
|
|
631
|
+
var n = be.exports;
|
|
632
|
+
const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xtgw_31", It = "_pcBreadcrumbSep_1xtgw_38", At = "_pcBasic_1xtgw_43", Ft = "_pcBasicRow_1xtgw_49", Nt = "_pcBasicRowLeft_1xtgw_56", Dt = "_pcLinkIconRight_1xtgw_61", Lt = "_pcColorSwatch_1xtgw_72", Wt = "_pcTitleText_1xtgw_99", $t = "_pcSubTitleText_1xtgw_106", Bt = "_pcProperties_1xtgw_119", Mt = "_pcProperty_1xtgw_127", Ut = "_pcTagsRow_1xtgw_138", Vt = "_pcDetails_1xtgw_151", Yt = "_pcRow_1xtgw_157", zt = "_pcCol_1xtgw_72", Jt = "_pcColLabel_1xtgw_179", qt = "_pcColValue_1xtgw_183", Ht = "_pcProgressText_1xtgw_188", Kt = "_entityLabel_1xtgw_194", h = {
|
|
632
633
|
entityCard: Pt,
|
|
633
634
|
pcCover: kt,
|
|
634
635
|
pcSection: Ot,
|
|
635
636
|
pcBreadcrumbSep: It,
|
|
636
637
|
pcBasic: At,
|
|
637
638
|
pcBasicRow: Ft,
|
|
638
|
-
pcBasicRowLeft:
|
|
639
|
-
pcLinkIconRight:
|
|
640
|
-
pcColorSwatch:
|
|
641
|
-
pcTitleText:
|
|
642
|
-
pcSubTitleText:
|
|
643
|
-
pcProperties:
|
|
644
|
-
pcProperty:
|
|
645
|
-
pcTagsRow:
|
|
646
|
-
pcDetails:
|
|
647
|
-
pcRow:
|
|
648
|
-
pcCol:
|
|
649
|
-
pcColLabel:
|
|
650
|
-
pcColValue:
|
|
639
|
+
pcBasicRowLeft: Nt,
|
|
640
|
+
pcLinkIconRight: Dt,
|
|
641
|
+
pcColorSwatch: Lt,
|
|
642
|
+
pcTitleText: Wt,
|
|
643
|
+
pcSubTitleText: $t,
|
|
644
|
+
pcProperties: Bt,
|
|
645
|
+
pcProperty: Mt,
|
|
646
|
+
pcTagsRow: Ut,
|
|
647
|
+
pcDetails: Vt,
|
|
648
|
+
pcRow: Yt,
|
|
649
|
+
pcCol: zt,
|
|
650
|
+
pcColLabel: Jt,
|
|
651
|
+
pcColValue: qt,
|
|
651
652
|
pcProgressText: Ht,
|
|
652
653
|
entityLabel: Kt
|
|
653
|
-
},
|
|
654
|
+
}, Ue = (t) => {
|
|
654
655
|
if (!t) return null;
|
|
655
656
|
const v = t.trim(), s = {
|
|
656
657
|
user: "User",
|
|
@@ -662,12 +663,12 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
662
663
|
time: "Clock",
|
|
663
664
|
tags: "Tag"
|
|
664
665
|
}[v] ?? v.replace(/(^\w|-\w)/g, (m) => m.replace("-", "").toUpperCase());
|
|
665
|
-
return
|
|
666
|
+
return Je[s] || null;
|
|
666
667
|
}, Gt = (t, v) => {
|
|
667
668
|
const f = typeof t == "number" ? t : typeof t == "string" ? parseFloat(t) : NaN, c = isFinite(f) ? f <= 1 ? Math.max(0, Math.min(1, f)) * 100 : Math.max(0, Math.min(100, f)) : 0;
|
|
668
669
|
return /* @__PURE__ */ n.jsxs("div", { className: h.pcProgress, children: [
|
|
669
670
|
/* @__PURE__ */ n.jsx(
|
|
670
|
-
|
|
671
|
+
bt,
|
|
671
672
|
{
|
|
672
673
|
percent: c,
|
|
673
674
|
showInfo: !1,
|
|
@@ -677,8 +678,8 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
677
678
|
),
|
|
678
679
|
(v == null ? void 0 : v.text) && /* @__PURE__ */ n.jsx("div", { className: h.pcProgressText, children: v.text })
|
|
679
680
|
] });
|
|
680
|
-
},
|
|
681
|
-
|
|
681
|
+
}, qe = (t) => !Array.isArray(t) || t.length === 0 ? null : /* @__PURE__ */ n.jsx("div", { className: h.pcTagsRow, children: t.map((v, f) => /* @__PURE__ */ n.jsx(
|
|
682
|
+
ze,
|
|
682
683
|
{
|
|
683
684
|
color: "default",
|
|
684
685
|
style: {
|
|
@@ -693,7 +694,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
693
694
|
`${v}-${f}`
|
|
694
695
|
)) }), Xt = (t) => {
|
|
695
696
|
const { view: v, value: f, payload: c } = t;
|
|
696
|
-
return v === "percent_bar" ? Gt(f, c) : v === "tags" ?
|
|
697
|
+
return v === "percent_bar" ? Gt(f, c) : v === "tags" ? qe(Array.isArray(f) ? f : []) : /* @__PURE__ */ n.jsx("div", { className: h.pcColValue, children: String(f ?? "") });
|
|
697
698
|
}, He = ({
|
|
698
699
|
data: t
|
|
699
700
|
}) => {
|
|
@@ -708,7 +709,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
708
709
|
}
|
|
709
710
|
),
|
|
710
711
|
Array.isArray(t == null ? void 0 : t.categories) && t.categories.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: /* @__PURE__ */ n.jsx(
|
|
711
|
-
|
|
712
|
+
_t,
|
|
712
713
|
{
|
|
713
714
|
items: t.categories.map((s, g) => ({
|
|
714
715
|
key: `${s}-${g}`,
|
|
@@ -743,7 +744,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
743
744
|
style: { objectFit: "contain" }
|
|
744
745
|
}
|
|
745
746
|
);
|
|
746
|
-
const g =
|
|
747
|
+
const g = Ue(s);
|
|
747
748
|
return g ? /* @__PURE__ */ n.jsx(g, { className: h.pcIcon, size: 18, strokeWidth: 2 }) : null;
|
|
748
749
|
})(),
|
|
749
750
|
(t == null ? void 0 : t.title) && /* @__PURE__ */ n.jsx("span", { className: h.pcTitleText, title: t.title, children: t.title }),
|
|
@@ -762,7 +763,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
762
763
|
title: t.url,
|
|
763
764
|
className: h.pcLinkIconRight,
|
|
764
765
|
children: /* @__PURE__ */ n.jsx(
|
|
765
|
-
|
|
766
|
+
Et,
|
|
766
767
|
{
|
|
767
768
|
style: { width: 12, height: 12, color: "#027FFE" }
|
|
768
769
|
}
|
|
@@ -770,10 +771,10 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
770
771
|
}
|
|
771
772
|
)
|
|
772
773
|
] }) }),
|
|
773
|
-
Array.isArray(t == null ? void 0 : t.properties) && t.properties.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: /* @__PURE__ */ n.jsx("div", { className: h.pcProperties, children: t.properties.map((s, g) => {
|
|
774
|
-
const m =
|
|
774
|
+
Array.isArray(t == null ? void 0 : t.properties) && t.properties.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, style: { paddingTop: 25 }, children: /* @__PURE__ */ n.jsx("div", { className: h.pcProperties, children: t.properties.map((s, g) => {
|
|
775
|
+
const m = Ue(s.icon), w = () => {
|
|
775
776
|
if (s.view === "tags")
|
|
776
|
-
return
|
|
777
|
+
return qe(Array.isArray(s.value) ? s.value : []);
|
|
777
778
|
if (s.view === "datetime_with_time_zone") {
|
|
778
779
|
const u = String(s.value ?? "");
|
|
779
780
|
return /* @__PURE__ */ n.jsx("span", { className: h.pcPropertyValue, children: u });
|
|
@@ -789,30 +790,30 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
789
790
|
strokeWidth: 2
|
|
790
791
|
}
|
|
791
792
|
),
|
|
792
|
-
|
|
793
|
+
w()
|
|
793
794
|
] }, g);
|
|
794
795
|
}) }) }),
|
|
795
796
|
Array.isArray((c = (f = t == null ? void 0 : t.details) == null ? void 0 : f.table) == null ? void 0 : c.rows) && t.details.table.rows.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: /* @__PURE__ */ n.jsx("div", { className: h.pcDetails, children: t.details.table.rows.map((s, g) => {
|
|
796
797
|
const m = Array.isArray(s.columns) ? s.columns.filter(
|
|
797
798
|
(u) => u && (u.label !== void 0 || u.value !== void 0)
|
|
798
|
-
) : [],
|
|
799
|
+
) : [], w = m.length;
|
|
799
800
|
return /* @__PURE__ */ n.jsx(
|
|
800
801
|
"div",
|
|
801
802
|
{
|
|
802
803
|
className: h.pcRow,
|
|
803
804
|
style: {
|
|
804
|
-
gridTemplateColumns:
|
|
805
|
+
gridTemplateColumns: w <= 1 ? "1fr" : "repeat(2, minmax(0, 1fr))"
|
|
805
806
|
},
|
|
806
|
-
children: m.map((u,
|
|
807
|
+
children: m.map((u, R) => /* @__PURE__ */ n.jsxs("div", { className: h.pcCol, children: [
|
|
807
808
|
Xt(u),
|
|
808
809
|
u.label && /* @__PURE__ */ n.jsx("div", { className: h.pcColLabel, children: u.label })
|
|
809
|
-
] },
|
|
810
|
+
] }, R))
|
|
810
811
|
},
|
|
811
812
|
g
|
|
812
813
|
);
|
|
813
814
|
}) }) }),
|
|
814
815
|
Array.isArray(t == null ? void 0 : t.tags) && t.tags.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: t.tags.map((s, g) => /* @__PURE__ */ n.jsx(
|
|
815
|
-
|
|
816
|
+
ze,
|
|
816
817
|
{
|
|
817
818
|
style: {
|
|
818
819
|
display: "inline-flex",
|
|
@@ -836,48 +837,48 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
836
837
|
actions: s = [],
|
|
837
838
|
footer: g,
|
|
838
839
|
triggerType: m = "hover",
|
|
839
|
-
popupMode:
|
|
840
|
+
popupMode: w = "modal",
|
|
840
841
|
trigger: u,
|
|
841
|
-
open:
|
|
842
|
-
onOpenChange:
|
|
842
|
+
open: R,
|
|
843
|
+
onOpenChange: _,
|
|
843
844
|
modalTitle: S,
|
|
844
845
|
width: C,
|
|
845
846
|
placement: O = "right",
|
|
846
|
-
data:
|
|
847
|
+
data: $,
|
|
847
848
|
hoverOpenDelay: ae = 500,
|
|
848
849
|
closeDelay: ce = 200,
|
|
849
850
|
autoPlacement: A = !1,
|
|
850
|
-
hoverAutoClose:
|
|
851
|
-
hoverAutoCloseDelay:
|
|
851
|
+
hoverAutoClose: j = !1,
|
|
852
|
+
hoverAutoCloseDelay: we = 2e3
|
|
852
853
|
}) => {
|
|
853
|
-
var
|
|
854
|
-
const [ue, fe] =
|
|
855
|
-
Q ?
|
|
856
|
-
}, d =
|
|
857
|
-
if (
|
|
858
|
-
const P =
|
|
854
|
+
var Y, z, J, q;
|
|
855
|
+
const [ue, fe] = We(!1), Q = typeof R == "boolean", pe = Q ? R : ue, he = (P) => {
|
|
856
|
+
Q ? _ == null || _(P) : fe(P);
|
|
857
|
+
}, d = $, B = xt(null), [ve, ee] = We(O), I = () => {
|
|
858
|
+
if (!B.current) return;
|
|
859
|
+
const P = B.current.getBoundingClientRect(), re = window.innerWidth, ne = window.innerHeight, ie = (() => {
|
|
859
860
|
var oe;
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
})(), ge = 300, H = re - P.right, K = P.left,
|
|
861
|
+
const D = (typeof C == "number" ? C : void 0) ?? ((oe = d == null ? void 0 : d.style) == null ? void 0 : oe.width);
|
|
862
|
+
return D ? typeof D == "string" ? parseInt(D, 10) || 376 : D : 376;
|
|
863
|
+
})(), ge = 300, H = re - P.right, K = P.left, M = ne - P.bottom;
|
|
863
864
|
P.top;
|
|
864
|
-
let
|
|
865
|
-
H >= ie ?
|
|
866
|
-
}, F = /* @__PURE__ */ n.jsx(
|
|
867
|
-
|
|
865
|
+
let N = O;
|
|
866
|
+
H >= ie ? N = "right" : K >= ie ? N = "left" : M >= ge ? N = "bottom" : N = "top", ee(N);
|
|
867
|
+
}, F = /* @__PURE__ */ n.jsx(wt, { type: "default", children: `打开:${(d == null ? void 0 : d.title) ?? t ?? "详情"}` }), L = /* @__PURE__ */ n.jsx("span", { ref: B, style: { display: "inline-block" }, children: u ?? F }), te = /* @__PURE__ */ n.jsx(
|
|
868
|
+
Rt,
|
|
868
869
|
{
|
|
869
870
|
content: /* @__PURE__ */ n.jsx(
|
|
870
871
|
"div",
|
|
871
872
|
{
|
|
872
873
|
className: h.entityCard,
|
|
873
874
|
style: {
|
|
874
|
-
width: (
|
|
875
|
-
height: (
|
|
876
|
-
maxWidth: (
|
|
877
|
-
maxHeight: (
|
|
875
|
+
width: (Y = d == null ? void 0 : d.style) == null ? void 0 : Y.width,
|
|
876
|
+
height: (z = d == null ? void 0 : d.style) == null ? void 0 : z.height,
|
|
877
|
+
maxWidth: (J = d == null ? void 0 : d.style) == null ? void 0 : J.max_width,
|
|
878
|
+
maxHeight: (q = d == null ? void 0 : d.style) == null ? void 0 : q.max_height
|
|
878
879
|
},
|
|
879
880
|
children: d != null && d.id ? /* @__PURE__ */ n.jsx(He, { data: d }) : /* @__PURE__ */ n.jsx(
|
|
880
|
-
|
|
881
|
+
jt,
|
|
881
882
|
{
|
|
882
883
|
active: !0,
|
|
883
884
|
title: !1,
|
|
@@ -896,9 +897,9 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
896
897
|
mouseEnterDelay: m === "hover" ? ae / 1e3 : 0,
|
|
897
898
|
mouseLeaveDelay: m === "hover" ? ce / 1e3 : 0,
|
|
898
899
|
autoAdjustOverflow: !0,
|
|
899
|
-
getPopupContainer: () =>
|
|
900
|
+
getPopupContainer: () => B.current || document.body,
|
|
900
901
|
overlayInnerStyle: { padding: 0 },
|
|
901
|
-
children:
|
|
902
|
+
children: L
|
|
902
903
|
}
|
|
903
904
|
);
|
|
904
905
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: te });
|
|
@@ -913,7 +914,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
913
914
|
time: "Clock",
|
|
914
915
|
tags: "Tag"
|
|
915
916
|
}[v] ?? v.replace(/(^\w|-\w)/g, (g) => g.replace("-", "").toUpperCase());
|
|
916
|
-
return
|
|
917
|
+
return Je[c] || null;
|
|
917
918
|
}, Qt = (t) => {
|
|
918
919
|
if (t) {
|
|
919
920
|
if (/^mailto:/i.test(t))
|
|
@@ -924,7 +925,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
924
925
|
}
|
|
925
926
|
return t;
|
|
926
927
|
}
|
|
927
|
-
},
|
|
928
|
+
}, Ve = () => /* @__PURE__ */ n.jsxs(
|
|
928
929
|
"span",
|
|
929
930
|
{
|
|
930
931
|
style: {
|
|
@@ -962,32 +963,32 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
962
963
|
]
|
|
963
964
|
}
|
|
964
965
|
), er = ({ data: t }) => {
|
|
965
|
-
var
|
|
966
|
-
if (!t || !t.title && !t.icon && !t.subtitle && !t.color && !t.url) return /* @__PURE__ */ n.jsx(
|
|
967
|
-
const f = (
|
|
966
|
+
var _, S;
|
|
967
|
+
if (!t || !t.title && !t.icon && !t.subtitle && !t.color && !t.url) return /* @__PURE__ */ n.jsx(Ve, {});
|
|
968
|
+
const f = (_ = t == null ? void 0 : t.icon) == null ? void 0 : _.trim(), c = (S = t == null ? void 0 : t.title) == null ? void 0 : S.trim(), s = Qt(t == null ? void 0 : t.url), g = !!f, m = !!c, w = !!s, u = !!(t != null && t.color) || !!(t != null && t.subtitle), R = (C = 20) => {
|
|
968
969
|
if (f && /^https?:\/\//i.test(f))
|
|
969
|
-
return /* @__PURE__ */ n.jsx(
|
|
970
|
-
const O = Zt(f || "user"),
|
|
971
|
-
return /* @__PURE__ */ n.jsx(
|
|
970
|
+
return /* @__PURE__ */ n.jsx($e, { size: C, src: f });
|
|
971
|
+
const O = Zt(f || "user"), $ = Math.max(8, C - 4);
|
|
972
|
+
return /* @__PURE__ */ n.jsx($e, { size: C, icon: O ? /* @__PURE__ */ n.jsx(O, { size: $ }) : void 0 });
|
|
972
973
|
};
|
|
973
|
-
return g && m && !
|
|
974
|
-
|
|
974
|
+
return g && m && !w && !u ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
|
|
975
|
+
R(),
|
|
975
976
|
/* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500, lineHeight: "20px" }, title: c, children: c })
|
|
976
|
-
] }) : g && !m && !
|
|
977
|
+
] }) : g && !m && !w && !u ? /* @__PURE__ */ n.jsx("span", { style: { display: "inline-flex" }, children: R() }) : !g && m && !w && !u ? /* @__PURE__ */ n.jsx(
|
|
977
978
|
"span",
|
|
978
979
|
{
|
|
979
980
|
style: { display: "inline-block", color: "#027FFE", fontWeight: 500 },
|
|
980
981
|
title: c,
|
|
981
982
|
children: c
|
|
982
983
|
}
|
|
983
|
-
) : g && m &&
|
|
984
|
-
|
|
984
|
+
) : g && m && w ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
|
|
985
|
+
R(40),
|
|
985
986
|
/* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", flexDirection: "column", justifyContent: "space-between" }, children: [
|
|
986
987
|
/* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }),
|
|
987
988
|
/* @__PURE__ */ n.jsx("span", { style: { color: "#888", fontSize: 12 }, title: s, children: s })
|
|
988
989
|
] })
|
|
989
990
|
] }) : g && m && u ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
|
|
990
|
-
|
|
991
|
+
R(40),
|
|
991
992
|
/* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", flexDirection: "column", justifyContent: "space-between" }, children: [
|
|
992
993
|
/* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }),
|
|
993
994
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -1019,7 +1020,7 @@ const Pt = "_entityCard_qqftp_1", kt = "_pcCover_qqftp_15", Ot = "_pcSection_qqf
|
|
|
1019
1020
|
}
|
|
1020
1021
|
)
|
|
1021
1022
|
] })
|
|
1022
|
-
] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(
|
|
1023
|
+
] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(Ve, {});
|
|
1023
1024
|
};
|
|
1024
1025
|
function or({ data: t }) {
|
|
1025
1026
|
var f, c, s, g;
|