@infinilabs/entity-ui 0.0.4 → 0.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/dist/entity-ui.js CHANGED
@@ -1,9 +1,9 @@
1
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 = {};
2
+ import Be, { useState as xr, useRef as dr } from "react";
3
+ import { Breadcrumb as _r, Tag as Me, Progress as br, Button as wr, Popover as Rr, Skeleton as jr, Avatar as Ne } from "antd";
4
+ import * as Ue from "lucide-react";
5
+ import { ExternalLink as Er, Tags as Cr } from "lucide-react";
6
+ var ye = { exports: {} }, K = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,21 +13,21 @@ var be = { exports: {} }, X = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var Be;
17
- function Tt() {
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 };
16
+ var De;
17
+ function Tr() {
18
+ if (De) return K;
19
+ De = 1;
20
+ var r = Be, v = Symbol.for("react.element"), f = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
21
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 };
22
+ var _, T = {}, S = null, k = null;
23
+ R !== void 0 && (S = "" + R), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (k = u.ref);
24
+ for (_ in u) c.call(u, _) && !g.hasOwnProperty(_) && (T[_] = u[_]);
25
+ if (w && w.defaultProps) for (_ in u = w.defaultProps, u) T[_] === void 0 && (T[_] = u[_]);
26
+ return { $$typeof: v, type: w, key: S, ref: k, props: T, _owner: s.current };
27
27
  }
28
- return X.Fragment = f, X.jsx = m, X.jsxs = m, X;
28
+ return K.Fragment = f, K.jsx = m, K.jsxs = m, K;
29
29
  }
30
- var Z = {};
30
+ var H = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,54 +37,54 @@ var Z = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Me;
41
- function St() {
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";
44
- function ce(e) {
40
+ var Le;
41
+ function Sr() {
42
+ return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var r = Be, 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"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), $ = Symbol.iterator, re = "@@iterator";
44
+ function te(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var r = $ && e[$] || e[ae];
48
- return typeof r == "function" ? r : null;
47
+ var t = $ && e[$] || e[re];
48
+ return typeof t == "function" ? t : null;
49
49
  }
50
- var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function j(e) {
52
52
  {
53
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
53
+ for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
54
54
  i[o - 1] = arguments[o];
55
- we("error", e, i);
55
+ xe("error", e, i);
56
56
  }
57
57
  }
58
- function we(e, r, i) {
58
+ function xe(e, t, i) {
59
59
  {
60
60
  var o = A.ReactDebugCurrentFrame, p = o.getStackAddendum();
61
- p !== "" && (r += "%s", i = i.concat([p]));
61
+ p !== "" && (t += "%s", i = i.concat([p]));
62
62
  var y = i.map(function(a) {
63
63
  return String(a);
64
64
  });
65
- y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
65
+ y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
66
66
  }
67
67
  }
68
- var ue = !1, fe = !1, Q = !1, pe = !1, he = !1, d;
69
- d = Symbol.for("react.module.reference");
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
68
+ var ne = !1, M = !1, ie = !1, oe = !1, se = !1, U;
69
+ U = Symbol.for("react.module.reference");
70
+ function le(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === g || se || e === s || e === R || e === _ || oe || e === k || ne || M || ie || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === m || e.$$typeof === w || e.$$typeof === u || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === d || e.getModuleId !== void 0));
75
+ e.$$typeof === U || e.getModuleId !== void 0));
76
76
  }
77
- function ve(e, r, i) {
77
+ function ae(e, t, i) {
78
78
  var o = e.displayName;
79
79
  if (o)
80
80
  return o;
81
- var p = r.displayName || r.name || "";
81
+ var p = t.displayName || t.name || "";
82
82
  return p !== "" ? i + "(" + p + ")" : i;
83
83
  }
84
- function ee(e) {
84
+ function x(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function I(e) {
87
+ function O(e) {
88
88
  if (e == null)
89
89
  return null;
90
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")
@@ -108,20 +108,20 @@ function St() {
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
110
  case w:
111
- var r = e;
112
- return ee(r) + ".Consumer";
111
+ var t = e;
112
+ return x(t) + ".Consumer";
113
113
  case m:
114
114
  var i = e;
115
- return ee(i._context) + ".Provider";
115
+ return x(i._context) + ".Provider";
116
116
  case u:
117
- return ve(e, e.render, "ForwardRef");
118
- case S:
117
+ return ae(e, e.render, "ForwardRef");
118
+ case T:
119
119
  var o = e.displayName || null;
120
- return o !== null ? o : I(e.type) || "Memo";
121
- case C: {
120
+ return o !== null ? o : O(e.type) || "Memo";
121
+ case S: {
122
122
  var p = e, y = p._payload, a = p._init;
123
123
  try {
124
- return I(a(y));
124
+ return O(a(y));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function St() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var F = Object.assign, L = 0, te, Y, z, J, q, P, re;
133
- function ne() {
132
+ var I = Object.assign, N = 0, G, V, Y, z, J, F, D;
133
+ function de() {
134
134
  }
135
- ne.__reactDisabledLog = !0;
136
- function ie() {
135
+ de.__reactDisabledLog = !0;
136
+ function ze() {
137
137
  {
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;
138
+ if (N === 0) {
139
+ G = console.log, V = console.info, Y = console.warn, z = console.error, J = console.group, F = console.groupCollapsed, D = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: ne,
143
+ value: de,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,79 +153,79 @@ function St() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- L++;
156
+ N++;
157
157
  }
158
158
  }
159
- function ge() {
159
+ function Je() {
160
160
  {
161
- if (L--, L === 0) {
161
+ if (N--, N === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: F({}, e, {
169
- value: te
168
+ log: I({}, e, {
169
+ value: G
170
+ }),
171
+ info: I({}, e, {
172
+ value: V
170
173
  }),
171
- info: F({}, e, {
174
+ warn: I({}, e, {
172
175
  value: Y
173
176
  }),
174
- warn: F({}, e, {
177
+ error: I({}, e, {
175
178
  value: z
176
179
  }),
177
- error: F({}, e, {
180
+ group: I({}, e, {
178
181
  value: J
179
182
  }),
180
- group: F({}, e, {
181
- value: q
183
+ groupCollapsed: I({}, e, {
184
+ value: F
182
185
  }),
183
- groupCollapsed: F({}, e, {
184
- value: P
185
- }),
186
- groupEnd: F({}, e, {
187
- value: re
186
+ groupEnd: I({}, e, {
187
+ value: D
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
+ N < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var H = A.ReactCurrentDispatcher, K;
195
- function M(e, r, i) {
194
+ var ce = A.ReactCurrentDispatcher, ue;
195
+ function X(e, t, i) {
196
196
  {
197
- if (K === void 0)
197
+ if (ue === void 0)
198
198
  try {
199
199
  throw Error();
200
200
  } catch (p) {
201
201
  var o = p.stack.trim().match(/\n( *(at )?)/);
202
- K = o && o[1] || "";
202
+ ue = o && o[1] || "";
203
203
  }
204
204
  return `
205
- ` + K + e;
205
+ ` + ue + e;
206
206
  }
207
207
  }
208
- var N = !1, D;
208
+ var fe = !1, Z;
209
209
  {
210
- var oe = typeof WeakMap == "function" ? WeakMap : Map;
211
- D = new oe();
210
+ var qe = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Z = new qe();
212
212
  }
213
- function Re(e, r) {
214
- if (!e || N)
213
+ function _e(e, t) {
214
+ if (!e || fe)
215
215
  return "";
216
216
  {
217
- var i = D.get(e);
217
+ var i = Z.get(e);
218
218
  if (i !== void 0)
219
219
  return i;
220
220
  }
221
221
  var o;
222
- N = !0;
222
+ fe = !0;
223
223
  var p = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var y;
226
- y = H.current, H.current = null, ie();
226
+ y = ce.current, ce.current = null, ze();
227
227
  try {
228
- if (r) {
228
+ if (t) {
229
229
  var a = function() {
230
230
  throw Error();
231
231
  };
@@ -236,98 +236,98 @@ function St() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(a, []);
239
- } catch (T) {
240
- o = T;
239
+ } catch (C) {
240
+ o = C;
241
241
  }
242
242
  Reflect.construct(e, [], a);
243
243
  } else {
244
244
  try {
245
245
  a.call();
246
- } catch (T) {
247
- o = T;
246
+ } catch (C) {
247
+ o = C;
248
248
  }
249
249
  e.call(a.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (T) {
255
- o = T;
254
+ } catch (C) {
255
+ o = C;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (T) {
260
- if (T && o && typeof T.stack == "string") {
261
- for (var l = T.stack.split(`
259
+ } catch (C) {
260
+ if (C && o && typeof C.stack == "string") {
261
+ for (var l = C.stack.split(`
262
262
  `), E = o.stack.split(`
263
- `), x = l.length - 1, b = E.length - 1; x >= 1 && b >= 0 && l[x] !== E[b]; )
263
+ `), d = l.length - 1, b = E.length - 1; d >= 1 && b >= 0 && l[d] !== E[b]; )
264
264
  b--;
265
- for (; x >= 1 && b >= 0; x--, b--)
266
- if (l[x] !== E[b]) {
267
- if (x !== 1 || b !== 1)
265
+ for (; d >= 1 && b >= 0; d--, b--)
266
+ if (l[d] !== E[b]) {
267
+ if (d !== 1 || b !== 1)
268
268
  do
269
- if (x--, b--, b < 0 || l[x] !== E[b]) {
270
- var k = `
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;
269
+ if (d--, b--, b < 0 || l[d] !== E[b]) {
270
+ var P = `
271
+ ` + l[d].replace(" at new ", " at ");
272
+ return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, P), P;
273
273
  }
274
- while (x >= 1 && b >= 0);
274
+ while (d >= 1 && b >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- N = !1, H.current = y, ge(), Error.prepareStackTrace = p;
279
+ fe = !1, ce.current = y, Je(), Error.prepareStackTrace = p;
280
280
  }
281
- var V = e ? e.displayName || e.name : "", W = V ? M(V) : "";
282
- return typeof e == "function" && D.set(e, W), W;
281
+ var B = e ? e.displayName || e.name : "", L = B ? X(B) : "";
282
+ return typeof e == "function" && Z.set(e, L), L;
283
283
  }
284
- function Ke(e, r, i) {
285
- return Re(e, !1);
284
+ function Ke(e, t, i) {
285
+ return _e(e, !1);
286
286
  }
287
- function Ge(e) {
288
- var r = e.prototype;
289
- return !!(r && r.isReactComponent);
287
+ function He(e) {
288
+ var t = e.prototype;
289
+ return !!(t && t.isReactComponent);
290
290
  }
291
- function se(e, r, i) {
291
+ function Q(e, t, i) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return Re(e, Ge(e));
295
+ return _e(e, He(e));
296
296
  if (typeof e == "string")
297
- return M(e);
297
+ return X(e);
298
298
  switch (e) {
299
299
  case R:
300
- return M("Suspense");
300
+ return X("Suspense");
301
301
  case _:
302
- return M("SuspenseList");
302
+ return X("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case u:
307
307
  return Ke(e.render);
308
- case S:
309
- return se(e.type, r, i);
310
- case C: {
308
+ case T:
309
+ return Q(e.type, t, i);
310
+ case S: {
311
311
  var o = e, p = o._payload, y = o._init;
312
312
  try {
313
- return se(y(p), r, i);
313
+ return Q(y(p), t, i);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var G = Object.prototype.hasOwnProperty, je = {}, Ee = A.ReactDebugCurrentFrame;
321
- function le(e) {
320
+ var q = Object.prototype.hasOwnProperty, be = {}, we = A.ReactDebugCurrentFrame;
321
+ function ee(e) {
322
322
  if (e) {
323
- var r = e._owner, i = se(e.type, e._source, r ? r.type : null);
324
- Ee.setExtraStackFrame(i);
323
+ var t = e._owner, i = Q(e.type, e._source, t ? t.type : null);
324
+ we.setExtraStackFrame(i);
325
325
  } else
326
- Ee.setExtraStackFrame(null);
326
+ we.setExtraStackFrame(null);
327
327
  }
328
- function Xe(e, r, i, o, p) {
328
+ function Ge(e, t, i, o, p) {
329
329
  {
330
- var y = Function.call.bind(G);
330
+ var y = Function.call.bind(q);
331
331
  for (var a in e)
332
332
  if (y(e, a)) {
333
333
  var l = void 0;
@@ -336,67 +336,67 @@ function St() {
336
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
337
  throw E.name = "Invariant Violation", E;
338
338
  }
339
- l = e[a](r, a, o, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (x) {
341
- l = x;
339
+ l = e[a](t, a, o, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (d) {
341
+ l = d;
342
342
  }
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
+ l && !(l instanceof Error) && (ee(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), ee(null)), l instanceof Error && !(l.message in be) && (be[l.message] = !0, ee(p), j("Failed %s type: %s", i, l.message), ee(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Ze = Array.isArray;
348
- function me(e) {
349
- return Ze(e);
347
+ var Xe = Array.isArray;
348
+ function pe(e) {
349
+ return Xe(e);
350
350
  }
351
- function Qe(e) {
351
+ function Ze(e) {
352
352
  {
353
- var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
+ var t = typeof Symbol == "function" && Symbol.toStringTag, i = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return i;
355
355
  }
356
356
  }
357
- function et(e) {
357
+ function Qe(e) {
358
358
  try {
359
- return Ce(e), !1;
359
+ return Re(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function Ce(e) {
364
+ function Re(e) {
365
365
  return "" + e;
366
366
  }
367
- function Te(e) {
368
- if (et(e))
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);
367
+ function je(e) {
368
+ if (Qe(e))
369
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), Re(e);
370
370
  }
371
- var Se = A.ReactCurrentOwner, tt = {
371
+ var Ee = A.ReactCurrentOwner, er = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, Pe, ke;
377
- function rt(e) {
378
- if (G.call(e, "ref")) {
379
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
380
- if (r && r.isReactWarning)
376
+ }, Ce, Te;
377
+ function rr(e) {
378
+ if (q.call(e, "ref")) {
379
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
380
+ if (t && t.isReactWarning)
381
381
  return !1;
382
382
  }
383
383
  return e.ref !== void 0;
384
384
  }
385
- function nt(e) {
386
- if (G.call(e, "key")) {
387
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
388
- if (r && r.isReactWarning)
385
+ function tr(e) {
386
+ if (q.call(e, "key")) {
387
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
388
+ if (t && t.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return e.key !== void 0;
392
392
  }
393
- function it(e, r) {
394
- typeof e.ref == "string" && Se.current;
393
+ function nr(e, t) {
394
+ typeof e.ref == "string" && Ee.current;
395
395
  }
396
- function ot(e, r) {
396
+ function ir(e, t) {
397
397
  {
398
398
  var i = function() {
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
+ Ce || (Ce = !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)", t));
400
400
  };
401
401
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
402
402
  get: i,
@@ -404,10 +404,10 @@ function St() {
404
404
  });
405
405
  }
406
406
  }
407
- function st(e, r) {
407
+ function or(e, t) {
408
408
  {
409
409
  var i = function() {
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
+ Te || (Te = !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)", t));
411
411
  };
412
412
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
413
  get: i,
@@ -415,13 +415,13 @@ function St() {
415
415
  });
416
416
  }
417
417
  }
418
- var lt = function(e, r, i, o, p, y, a) {
418
+ var sr = function(e, t, i, o, p, y, a) {
419
419
  var l = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: v,
422
422
  // Built-in properties that belong on the element
423
423
  type: e,
424
- key: r,
424
+ key: t,
425
425
  ref: i,
426
426
  props: a,
427
427
  // Record the component responsible for creating this element.
@@ -444,41 +444,41 @@ function St() {
444
444
  value: p
445
445
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
446
446
  };
447
- function at(e, r, i, o, p) {
447
+ function lr(e, t, i, o, p) {
448
448
  {
449
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));
451
- for (y in r)
452
- G.call(r, y) && !tt.hasOwnProperty(y) && (a[y] = r[y]);
450
+ i !== void 0 && (je(i), l = "" + i), tr(t) && (je(t.key), l = "" + t.key), rr(t) && (E = t.ref, nr(t, p));
451
+ for (y in t)
452
+ q.call(t, y) && !er.hasOwnProperty(y) && (a[y] = t[y]);
453
453
  if (e && e.defaultProps) {
454
- var x = e.defaultProps;
455
- for (y in x)
456
- a[y] === void 0 && (a[y] = x[y]);
454
+ var d = e.defaultProps;
455
+ for (y in d)
456
+ a[y] === void 0 && (a[y] = d[y]);
457
457
  }
458
458
  if (l || E) {
459
459
  var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- l && ot(a, b), E && st(a, b);
460
+ l && ir(a, b), E && or(a, b);
461
461
  }
462
- return lt(e, l, E, p, o, Se.current, a);
462
+ return sr(e, l, E, p, o, Ee.current, a);
463
463
  }
464
464
  }
465
- var ye = A.ReactCurrentOwner, Oe = A.ReactDebugCurrentFrame;
466
- function U(e) {
465
+ var he = A.ReactCurrentOwner, Se = A.ReactDebugCurrentFrame;
466
+ function W(e) {
467
467
  if (e) {
468
- var r = e._owner, i = se(e.type, e._source, r ? r.type : null);
469
- Oe.setExtraStackFrame(i);
468
+ var t = e._owner, i = Q(e.type, e._source, t ? t.type : null);
469
+ Se.setExtraStackFrame(i);
470
470
  } else
471
- Oe.setExtraStackFrame(null);
471
+ Se.setExtraStackFrame(null);
472
472
  }
473
- var de;
474
- de = !1;
475
- function xe(e) {
473
+ var ve;
474
+ ve = !1;
475
+ function ge(e) {
476
476
  return typeof e == "object" && e !== null && e.$$typeof === v;
477
477
  }
478
- function Ie() {
478
+ function Pe() {
479
479
  {
480
- if (ye.current) {
481
- var e = I(ye.current.type);
480
+ if (he.current) {
481
+ var e = O(he.current.type);
482
482
  if (e)
483
483
  return `
484
484
 
@@ -487,173 +487,173 @@ Check the render method of \`` + e + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function ct(e) {
490
+ function ar(e) {
491
491
  return "";
492
492
  }
493
- var Ae = {};
494
- function ut(e) {
493
+ var ke = {};
494
+ function cr(e) {
495
495
  {
496
- var r = Ie();
497
- if (!r) {
496
+ var t = Pe();
497
+ if (!t) {
498
498
  var i = typeof e == "string" ? e : e.displayName || e.name;
499
- i && (r = `
499
+ i && (t = `
500
500
 
501
501
  Check the top-level render call using <` + i + ">.");
502
502
  }
503
- return r;
503
+ return t;
504
504
  }
505
505
  }
506
- function Fe(e, r) {
506
+ function Oe(e, t) {
507
507
  {
508
508
  if (!e._store || e._store.validated || e.key != null)
509
509
  return;
510
510
  e._store.validated = !0;
511
- var i = ut(r);
512
- if (Ae[i])
511
+ var i = cr(t);
512
+ if (ke[i])
513
513
  return;
514
- Ae[i] = !0;
514
+ ke[i] = !0;
515
515
  var o = "";
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
+ e && e._owner && e._owner !== he.current && (o = " It was passed a child from " + O(e._owner.type) + "."), W(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), W(null);
517
517
  }
518
518
  }
519
- function Ne(e, r) {
519
+ function Ie(e, t) {
520
520
  {
521
521
  if (typeof e != "object")
522
522
  return;
523
- if (me(e))
523
+ if (pe(e))
524
524
  for (var i = 0; i < e.length; i++) {
525
525
  var o = e[i];
526
- xe(o) && Fe(o, r);
526
+ ge(o) && Oe(o, t);
527
527
  }
528
- else if (xe(e))
528
+ else if (ge(e))
529
529
  e._store && (e._store.validated = !0);
530
530
  else if (e) {
531
- var p = ce(e);
531
+ var p = te(e);
532
532
  if (typeof p == "function" && p !== e.entries)
533
533
  for (var y = p.call(e), a; !(a = y.next()).done; )
534
- xe(a.value) && Fe(a.value, r);
534
+ ge(a.value) && Oe(a.value, t);
535
535
  }
536
536
  }
537
537
  }
538
- function ft(e) {
538
+ function ur(e) {
539
539
  {
540
- var r = e.type;
541
- if (r == null || typeof r == "string")
540
+ var t = e.type;
541
+ if (t == null || typeof t == "string")
542
542
  return;
543
543
  var i;
544
- if (typeof r == "function")
545
- i = r.propTypes;
546
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
544
+ if (typeof t == "function")
545
+ i = t.propTypes;
546
+ else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- r.$$typeof === S))
549
- i = r.propTypes;
548
+ t.$$typeof === T))
549
+ i = t.propTypes;
550
550
  else
551
551
  return;
552
552
  if (i) {
553
- var o = I(r);
554
- Xe(i, e.props, "prop", o, e);
555
- } else if (r.PropTypes !== void 0 && !de) {
556
- de = !0;
557
- var p = I(r);
553
+ var o = O(t);
554
+ Ge(i, e.props, "prop", o, e);
555
+ } else if (t.PropTypes !== void 0 && !ve) {
556
+ ve = !0;
557
+ var p = O(t);
558
558
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
559
559
  }
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
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function pt(e) {
563
+ function fr(e) {
564
564
  {
565
- for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
566
- var o = r[i];
565
+ for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
566
+ var o = t[i];
567
567
  if (o !== "children" && o !== "key") {
568
- U(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), U(null);
568
+ W(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), W(null);
569
569
  break;
570
570
  }
571
571
  }
572
- e.ref !== null && (U(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
572
+ e.ref !== null && (W(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
573
573
  }
574
574
  }
575
- var De = {};
576
- function Le(e, r, i, o, p, y) {
575
+ var Fe = {};
576
+ function Ae(e, t, i, o, p, y) {
577
577
  {
578
- var a = B(e);
578
+ var a = le(e);
579
579
  if (!a) {
580
580
  var l = "";
581
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.");
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);
582
+ var E = ar();
583
+ E ? l += E : l += Pe();
584
+ var d;
585
+ e === null ? d = "null" : pe(e) ? d = "array" : e !== void 0 && e.$$typeof === v ? (d = "<" + (O(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = 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", d, l);
586
586
  }
587
- var b = at(e, r, i, p, y);
587
+ var b = lr(e, t, i, p, y);
588
588
  if (b == null)
589
589
  return b;
590
590
  if (a) {
591
- var k = r.children;
592
- if (k !== void 0)
591
+ var P = t.children;
592
+ if (P !== void 0)
593
593
  if (o)
594
- if (me(k)) {
595
- for (var V = 0; V < k.length; V++)
596
- Ne(k[V], e);
597
- Object.freeze && Object.freeze(k);
594
+ if (pe(P)) {
595
+ for (var B = 0; B < P.length; B++)
596
+ Ie(P[B], e);
597
+ Object.freeze && Object.freeze(P);
598
598
  } else
599
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.");
600
600
  else
601
- Ne(k, e);
601
+ Ie(P, e);
602
602
  }
603
- if (G.call(r, "key")) {
604
- var W = I(e), T = Object.keys(r).filter(function(dt) {
605
- return dt !== "key";
606
- }), _e = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!De[W + _e]) {
608
- var yt = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
603
+ if (q.call(t, "key")) {
604
+ var L = O(e), C = Object.keys(t).filter(function(yr) {
605
+ return yr !== "key";
606
+ }), me = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!Fe[L + me]) {
608
+ var mr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
609
609
  j(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, _e, W, yt, W), De[W + _e] = !0;
614
+ <%s key={someKey} {...props} />`, me, L, mr, L), Fe[L + me] = !0;
615
615
  }
616
616
  }
617
- return e === c ? pt(b) : ft(b), b;
617
+ return e === c ? fr(b) : ur(b), b;
618
618
  }
619
619
  }
620
- function ht(e, r, i) {
621
- return Le(e, r, i, !0);
620
+ function pr(e, t, i) {
621
+ return Ae(e, t, i, !0);
622
622
  }
623
- function vt(e, r, i) {
624
- return Le(e, r, i, !1);
623
+ function hr(e, t, i) {
624
+ return Ae(e, t, i, !1);
625
625
  }
626
- var gt = vt, mt = ht;
627
- Z.Fragment = c, Z.jsx = gt, Z.jsxs = mt;
628
- }()), Z;
626
+ var vr = hr, gr = pr;
627
+ H.Fragment = c, H.jsx = vr, H.jsxs = gr;
628
+ }()), H;
629
629
  }
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 = {
633
- entityCard: Pt,
634
- pcCover: kt,
635
- pcSection: Ot,
636
- pcBreadcrumbSep: It,
637
- pcBasic: At,
638
- pcBasicRow: Ft,
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,
652
- pcProgressText: Ht,
653
- entityLabel: Kt
654
- }, Ue = (t) => {
655
- if (!t) return null;
656
- const v = t.trim(), s = {
630
+ process.env.NODE_ENV === "production" ? ye.exports = Tr() : ye.exports = Sr();
631
+ var n = ye.exports;
632
+ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xtgw_31", Ir = "_pcBreadcrumbSep_1xtgw_38", Fr = "_pcBasic_1xtgw_43", Ar = "_pcBasicRow_1xtgw_49", Nr = "_pcBasicRowLeft_1xtgw_56", Dr = "_pcLinkIconRight_1xtgw_61", Lr = "_pcColorSwatch_1xtgw_72", $r = "_pcTitleText_1xtgw_99", Wr = "_pcSubTitleText_1xtgw_106", Br = "_pcProperties_1xtgw_119", Mr = "_pcProperty_1xtgw_127", Ur = "_pcTagsRow_1xtgw_138", Vr = "_pcDetails_1xtgw_151", Yr = "_pcRow_1xtgw_157", zr = "_pcCol_1xtgw_72", Jr = "_pcColLabel_1xtgw_179", qr = "_pcColValue_1xtgw_183", Kr = "_pcProgressText_1xtgw_188", Hr = "_entityLabel_1xtgw_194", h = {
633
+ entityCard: Pr,
634
+ pcCover: kr,
635
+ pcSection: Or,
636
+ pcBreadcrumbSep: Ir,
637
+ pcBasic: Fr,
638
+ pcBasicRow: Ar,
639
+ pcBasicRowLeft: Nr,
640
+ pcLinkIconRight: Dr,
641
+ pcColorSwatch: Lr,
642
+ pcTitleText: $r,
643
+ pcSubTitleText: Wr,
644
+ pcProperties: Br,
645
+ pcProperty: Mr,
646
+ pcTagsRow: Ur,
647
+ pcDetails: Vr,
648
+ pcRow: Yr,
649
+ pcCol: zr,
650
+ pcColLabel: Jr,
651
+ pcColValue: qr,
652
+ pcProgressText: Kr,
653
+ entityLabel: Hr
654
+ }, $e = (r) => {
655
+ if (!r) return null;
656
+ const v = r.trim(), s = {
657
657
  user: "User",
658
658
  email: "Mail",
659
659
  mail: "Mail",
@@ -663,12 +663,12 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
663
663
  time: "Clock",
664
664
  tags: "Tag"
665
665
  }[v] ?? v.replace(/(^\w|-\w)/g, (m) => m.replace("-", "").toUpperCase());
666
- return Je[s] || null;
667
- }, Gt = (t, v) => {
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;
666
+ return Ue[s] || null;
667
+ }, Gr = (r, v) => {
668
+ const f = typeof r == "number" ? r : typeof r == "string" ? parseFloat(r) : NaN, c = isFinite(f) ? f <= 1 ? Math.max(0, Math.min(1, f)) * 100 : Math.max(0, Math.min(100, f)) : 0;
669
669
  return /* @__PURE__ */ n.jsxs("div", { className: h.pcProgress, children: [
670
670
  /* @__PURE__ */ n.jsx(
671
- bt,
671
+ br,
672
672
  {
673
673
  percent: c,
674
674
  showInfo: !1,
@@ -678,8 +678,8 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
678
678
  ),
679
679
  (v == null ? void 0 : v.text) && /* @__PURE__ */ n.jsx("div", { className: h.pcProgressText, children: v.text })
680
680
  ] });
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,
681
+ }, Ve = (r) => !Array.isArray(r) || r.length === 0 ? null : /* @__PURE__ */ n.jsx("div", { className: h.pcTagsRow, children: r.map((v, f) => /* @__PURE__ */ n.jsx(
682
+ Me,
683
683
  {
684
684
  color: "default",
685
685
  style: {
@@ -692,46 +692,46 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
692
692
  children: String(v)
693
693
  },
694
694
  `${v}-${f}`
695
- )) }), Xt = (t) => {
696
- const { view: v, value: f, payload: c } = t;
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 ?? "") });
698
- }, He = ({
699
- data: t
695
+ )) }), Xr = (r) => {
696
+ const { view: v, value: f, payload: c } = r;
697
+ return v === "percent_bar" ? Gr(f, c) : v === "tags" ? Ve(Array.isArray(f) ? f : []) : /* @__PURE__ */ n.jsx("div", { className: h.pcColValue, children: String(f ?? "") });
698
+ }, Ye = ({
699
+ data: r
700
700
  }) => {
701
701
  var v, f, c;
702
702
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
703
- (t == null ? void 0 : t.cover) && /* @__PURE__ */ n.jsx(
703
+ (r == null ? void 0 : r.cover) && /* @__PURE__ */ n.jsx(
704
704
  "div",
705
705
  {
706
706
  className: h.pcCover,
707
- style: { height: (v = t == null ? void 0 : t.style) == null ? void 0 : v.cover_max_height },
708
- children: /* @__PURE__ */ n.jsx("img", { src: t.cover, alt: "cover" })
707
+ style: { height: (v = r == null ? void 0 : r.style) == null ? void 0 : v.cover_max_height },
708
+ children: /* @__PURE__ */ n.jsx("img", { src: r.cover, alt: "cover" })
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(
712
- _t,
711
+ Array.isArray(r == null ? void 0 : r.categories) && r.categories.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: /* @__PURE__ */ n.jsx(
712
+ _r,
713
713
  {
714
- items: t.categories.map((s, g) => ({
714
+ items: r.categories.map((s, g) => ({
715
715
  key: `${s}-${g}`,
716
716
  title: s
717
717
  })),
718
718
  separator: /* @__PURE__ */ n.jsx("span", { className: h.pcBreadcrumbSep, children: "/" })
719
719
  }
720
720
  ) }),
721
- ((t == null ? void 0 : t.color) || (t == null ? void 0 : t.icon) || (t == null ? void 0 : t.title) || (t == null ? void 0 : t.subtitle) || (t == null ? void 0 : t.url)) && /* @__PURE__ */ n.jsx("div", { className: h.pcBasic, children: /* @__PURE__ */ n.jsxs("div", { className: h.pcBasicRow, children: [
721
+ ((r == null ? void 0 : r.color) || (r == null ? void 0 : r.icon) || (r == null ? void 0 : r.title) || (r == null ? void 0 : r.subtitle) || (r == null ? void 0 : r.url)) && /* @__PURE__ */ n.jsx("div", { className: h.pcBasic, children: /* @__PURE__ */ n.jsxs("div", { className: h.pcBasicRow, children: [
722
722
  /* @__PURE__ */ n.jsxs("div", { className: h.pcBasicRowLeft, children: [
723
- (t == null ? void 0 : t.color) && /* @__PURE__ */ n.jsx(
723
+ (r == null ? void 0 : r.color) && /* @__PURE__ */ n.jsx(
724
724
  "span",
725
725
  {
726
726
  className: h.pcColorSwatch,
727
- style: { backgroundColor: t.color },
728
- "aria-label": `color ${t.color}`,
729
- title: `color: ${t.color}`
727
+ style: { backgroundColor: r.color },
728
+ "aria-label": `color ${r.color}`,
729
+ title: `color: ${r.color}`
730
730
  }
731
731
  ),
732
732
  (() => {
733
733
  var m;
734
- const s = (m = t == null ? void 0 : t.icon) == null ? void 0 : m.trim();
734
+ const s = (m = r == null ? void 0 : r.icon) == null ? void 0 : m.trim();
735
735
  if (s && /^https?:\/\/+/i.test(s))
736
736
  return /* @__PURE__ */ n.jsx(
737
737
  "img",
@@ -744,26 +744,26 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
744
744
  style: { objectFit: "contain" }
745
745
  }
746
746
  );
747
- const g = Ue(s);
747
+ const g = $e(s);
748
748
  return g ? /* @__PURE__ */ n.jsx(g, { className: h.pcIcon, size: 18, strokeWidth: 2 }) : null;
749
749
  })(),
750
- (t == null ? void 0 : t.title) && /* @__PURE__ */ n.jsx("span", { className: h.pcTitleText, title: t.title, children: t.title }),
751
- (t == null ? void 0 : t.subtitle) && /* @__PURE__ */ n.jsxs("span", { className: h.pcSubTitleText, title: t.subtitle, children: [
750
+ (r == null ? void 0 : r.title) && /* @__PURE__ */ n.jsx("span", { className: h.pcTitleText, title: r.title, children: r.title }),
751
+ (r == null ? void 0 : r.subtitle) && /* @__PURE__ */ n.jsxs("span", { className: h.pcSubTitleText, title: r.subtitle, children: [
752
752
  "| ",
753
- t.subtitle
753
+ r.subtitle
754
754
  ] })
755
755
  ] }),
756
- (t == null ? void 0 : t.url) && /* @__PURE__ */ n.jsx(
756
+ (r == null ? void 0 : r.url) && /* @__PURE__ */ n.jsx(
757
757
  "a",
758
758
  {
759
- href: t.url,
759
+ href: r.url,
760
760
  target: "_blank",
761
761
  rel: "noreferrer",
762
762
  "aria-label": "open link",
763
- title: t.url,
763
+ title: r.url,
764
764
  className: h.pcLinkIconRight,
765
765
  children: /* @__PURE__ */ n.jsx(
766
- Et,
766
+ Er,
767
767
  {
768
768
  style: { width: 12, height: 12, color: "#027FFE" }
769
769
  }
@@ -771,10 +771,10 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
771
771
  }
772
772
  )
773
773
  ] }) }),
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 = () => {
774
+ Array.isArray(r == null ? void 0 : r.properties) && r.properties.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, style: { paddingTop: 25 }, children: /* @__PURE__ */ n.jsx("div", { className: h.pcProperties, children: r.properties.map((s, g) => {
775
+ const m = $e(s.icon), w = () => {
776
776
  if (s.view === "tags")
777
- return qe(Array.isArray(s.value) ? s.value : []);
777
+ return Ve(Array.isArray(s.value) ? s.value : []);
778
778
  if (s.view === "datetime_with_time_zone") {
779
779
  const u = String(s.value ?? "");
780
780
  return /* @__PURE__ */ n.jsx("span", { className: h.pcPropertyValue, children: u });
@@ -793,7 +793,7 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
793
793
  w()
794
794
  ] }, g);
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
+ Array.isArray((c = (f = r == null ? void 0 : r.details) == null ? void 0 : f.table) == null ? void 0 : c.rows) && r.details.table.rows.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: /* @__PURE__ */ n.jsx("div", { className: h.pcDetails, children: r.details.table.rows.map((s, g) => {
797
797
  const m = Array.isArray(s.columns) ? s.columns.filter(
798
798
  (u) => u && (u.label !== void 0 || u.value !== void 0)
799
799
  ) : [], w = m.length;
@@ -805,15 +805,15 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
805
805
  gridTemplateColumns: w <= 1 ? "1fr" : "repeat(2, minmax(0, 1fr))"
806
806
  },
807
807
  children: m.map((u, R) => /* @__PURE__ */ n.jsxs("div", { className: h.pcCol, children: [
808
- Xt(u),
808
+ Xr(u),
809
809
  u.label && /* @__PURE__ */ n.jsx("div", { className: h.pcColLabel, children: u.label })
810
810
  ] }, R))
811
811
  },
812
812
  g
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(
816
- ze,
815
+ Array.isArray(r == null ? void 0 : r.tags) && r.tags.length > 0 && /* @__PURE__ */ n.jsx("div", { className: h.pcSection, children: r.tags.map((s, g) => /* @__PURE__ */ n.jsx(
816
+ Me,
817
817
  {
818
818
  style: {
819
819
  display: "inline-flex",
@@ -822,15 +822,15 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
822
822
  color: "#027FFE",
823
823
  border: "none"
824
824
  },
825
- icon: /* @__PURE__ */ n.jsx(Ct, { style: { width: 12, height: 12 } }),
825
+ icon: /* @__PURE__ */ n.jsx(Cr, { style: { width: 12, height: 12 } }),
826
826
  color: "default",
827
827
  children: s
828
828
  },
829
829
  g
830
830
  )) })
831
831
  ] });
832
- }, ir = ({
833
- title: t,
832
+ }, it = ({
833
+ title: r,
834
834
  subtitle: v,
835
835
  description: f,
836
836
  imageUrl: c,
@@ -841,44 +841,37 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
841
841
  trigger: u,
842
842
  open: R,
843
843
  onOpenChange: _,
844
- modalTitle: S,
845
- width: C,
846
- placement: O = "right",
844
+ modalTitle: T,
845
+ width: S,
846
+ placement: k = "right",
847
847
  data: $,
848
- hoverOpenDelay: ae = 500,
849
- closeDelay: ce = 200,
848
+ hoverOpenDelay: re = 500,
849
+ closeDelay: te = 200,
850
850
  autoPlacement: A = !1,
851
851
  hoverAutoClose: j = !1,
852
- hoverAutoCloseDelay: we = 2e3
852
+ hoverAutoCloseDelay: xe = 2e3,
853
+ getPopupContainer: ne,
854
+ viewportPadding: M = 16,
855
+ zIndex: ie
853
856
  }) => {
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 = (() => {
860
- var oe;
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;
864
- P.top;
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,
857
+ var V, Y, z, J;
858
+ const [oe, se] = xr(!1), U = typeof R == "boolean", le = U ? R : oe, ae = (F) => {
859
+ U ? _ == null || _(F) : se(F);
860
+ }, x = $, O = dr(null), I = /* @__PURE__ */ n.jsx(wr, { type: "default", children: `打开:${(x == null ? void 0 : x.title) ?? r ?? "详情"}` }), N = /* @__PURE__ */ n.jsx("span", { ref: O, style: { display: "inline-block" }, children: u ?? I }), G = /* @__PURE__ */ n.jsx(
861
+ Rr,
869
862
  {
870
863
  content: /* @__PURE__ */ n.jsx(
871
864
  "div",
872
865
  {
873
866
  className: h.entityCard,
874
867
  style: {
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
868
+ width: (V = x == null ? void 0 : x.style) == null ? void 0 : V.width,
869
+ height: (Y = x == null ? void 0 : x.style) == null ? void 0 : Y.height,
870
+ maxWidth: (z = x == null ? void 0 : x.style) == null ? void 0 : z.max_width,
871
+ maxHeight: (J = x == null ? void 0 : x.style) == null ? void 0 : J.max_height
879
872
  },
880
- children: d != null && d.id ? /* @__PURE__ */ n.jsx(He, { data: d }) : /* @__PURE__ */ n.jsx(
881
- jt,
873
+ children: x != null && x.id ? /* @__PURE__ */ n.jsx(Ye, { data: x }) : /* @__PURE__ */ n.jsx(
874
+ jr,
882
875
  {
883
876
  active: !0,
884
877
  title: !1,
@@ -888,23 +881,44 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
888
881
  )
889
882
  }
890
883
  ),
891
- open: pe,
892
- onOpenChange: (P) => {
893
- P && A && I(), he(!!P);
884
+ open: le,
885
+ onOpenChange: (F) => {
886
+ ae(!!F);
894
887
  },
895
888
  trigger: m,
896
- placement: A ? ve : O,
897
- mouseEnterDelay: m === "hover" ? ae / 1e3 : 0,
898
- mouseLeaveDelay: m === "hover" ? ce / 1e3 : 0,
889
+ placement: k,
890
+ align: function() {
891
+ const F = k, D = M;
892
+ switch (F) {
893
+ case "top":
894
+ return { offset: [0, D] };
895
+ case "bottom":
896
+ return { offset: [0, -D] };
897
+ case "left":
898
+ return { offset: [D, 0] };
899
+ case "right":
900
+ return { offset: [-D, 0] };
901
+ default:
902
+ return;
903
+ }
904
+ }(),
905
+ mouseEnterDelay: m === "hover" ? re / 1e3 : 0,
906
+ mouseLeaveDelay: m === "hover" ? te / 1e3 : 0,
899
907
  autoAdjustOverflow: !0,
900
- getPopupContainer: () => B.current || document.body,
908
+ zIndex: ie,
909
+ getPopupContainer: ne ?? (() => document.body),
910
+ overlayStyle: {
911
+ maxHeight: `calc(100vh - 24px - ${M * 2}px)`,
912
+ overflowY: "auto",
913
+ margin: M
914
+ },
901
915
  overlayInnerStyle: { padding: 0 },
902
- children: L
916
+ children: N
903
917
  }
904
918
  );
905
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: te });
906
- }, Zt = (t) => {
907
- const v = t.trim(), c = {
919
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: G });
920
+ }, Zr = (r) => {
921
+ const v = r.trim(), c = {
908
922
  user: "User",
909
923
  email: "Mail",
910
924
  mail: "Mail",
@@ -914,18 +928,18 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
914
928
  time: "Clock",
915
929
  tags: "Tag"
916
930
  }[v] ?? v.replace(/(^\w|-\w)/g, (g) => g.replace("-", "").toUpperCase());
917
- return Je[c] || null;
918
- }, Qt = (t) => {
919
- if (t) {
920
- if (/^mailto:/i.test(t))
931
+ return Ue[c] || null;
932
+ }, Qr = (r) => {
933
+ if (r) {
934
+ if (/^mailto:/i.test(r))
921
935
  try {
922
- return decodeURIComponent(t.slice(7));
936
+ return decodeURIComponent(r.slice(7));
923
937
  } catch {
924
- return t.slice(7);
938
+ return r.slice(7);
925
939
  }
926
- return t;
940
+ return r;
927
941
  }
928
- }, Ve = () => /* @__PURE__ */ n.jsxs(
942
+ }, We = () => /* @__PURE__ */ n.jsxs(
929
943
  "span",
930
944
  {
931
945
  style: {
@@ -962,14 +976,14 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
962
976
  )
963
977
  ]
964
978
  }
965
- ), er = ({ data: t }) => {
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) => {
979
+ ), et = ({ data: r }) => {
980
+ var _, T;
981
+ if (!r || !r.title && !r.icon && !r.subtitle && !r.color && !r.url) return /* @__PURE__ */ n.jsx(We, {});
982
+ const f = (_ = r == null ? void 0 : r.icon) == null ? void 0 : _.trim(), c = (T = r == null ? void 0 : r.title) == null ? void 0 : T.trim(), s = Qr(r == null ? void 0 : r.url), g = !!f, m = !!c, w = !!s, u = !!(r != null && r.color) || !!(r != null && r.subtitle), R = (S = 20) => {
969
983
  if (f && /^https?:\/\//i.test(f))
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 });
984
+ return /* @__PURE__ */ n.jsx(Ne, { size: S, src: f });
985
+ const k = Zr(f || "user"), $ = Math.max(8, S - 4);
986
+ return /* @__PURE__ */ n.jsx(Ne, { size: S, icon: k ? /* @__PURE__ */ n.jsx(k, { size: $ }) : void 0 });
973
987
  };
974
988
  return g && m && !w && !u ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
975
989
  R(),
@@ -1002,40 +1016,40 @@ const Pt = "_entityCard_1xtgw_1", kt = "_pcCover_1xtgw_15", Ot = "_pcSection_1xt
1002
1016
  fontSize: 12,
1003
1017
  color: "#666"
1004
1018
  },
1005
- title: t == null ? void 0 : t.subtitle,
1019
+ title: r == null ? void 0 : r.subtitle,
1006
1020
  children: [
1007
- (t == null ? void 0 : t.color) && /* @__PURE__ */ n.jsx(
1021
+ (r == null ? void 0 : r.color) && /* @__PURE__ */ n.jsx(
1008
1022
  "span",
1009
1023
  {
1010
1024
  style: {
1011
1025
  width: 12,
1012
1026
  height: 12,
1013
1027
  borderRadius: "50%",
1014
- backgroundColor: t.color
1028
+ backgroundColor: r.color
1015
1029
  }
1016
1030
  }
1017
1031
  ),
1018
- t == null ? void 0 : t.subtitle
1032
+ r == null ? void 0 : r.subtitle
1019
1033
  ]
1020
1034
  }
1021
1035
  )
1022
1036
  ] })
1023
- ] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(Ve, {});
1037
+ ] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(We, {});
1024
1038
  };
1025
- function or({ data: t }) {
1039
+ function ot({ data: r }) {
1026
1040
  var f, c, s, g;
1027
- const v = ((t == null ? void 0 : t.type) ?? "").toLowerCase() === "user";
1041
+ const v = ((r == null ? void 0 : r.type) ?? "").toLowerCase() === "user";
1028
1042
  return /* @__PURE__ */ n.jsx(
1029
1043
  "div",
1030
1044
  {
1031
1045
  className: h.entityLabel,
1032
1046
  style: {
1033
- width: (f = t == null ? void 0 : t.style) == null ? void 0 : f.width,
1034
- height: (c = t == null ? void 0 : t.style) == null ? void 0 : c.height,
1035
- maxWidth: (s = t == null ? void 0 : t.style) == null ? void 0 : s.max_width,
1036
- maxHeight: (g = t == null ? void 0 : t.style) == null ? void 0 : g.max_height
1047
+ width: (f = r == null ? void 0 : r.style) == null ? void 0 : f.width,
1048
+ height: (c = r == null ? void 0 : r.style) == null ? void 0 : c.height,
1049
+ maxWidth: (s = r == null ? void 0 : r.style) == null ? void 0 : s.max_width,
1050
+ maxHeight: (g = r == null ? void 0 : r.style) == null ? void 0 : g.max_height
1037
1051
  },
1038
- children: t != null && t.id ? v ? /* @__PURE__ */ n.jsx(er, { data: t }) : /* @__PURE__ */ n.jsx(He, { data: t }) : /* @__PURE__ */ n.jsxs(
1052
+ children: r != null && r.id ? v ? /* @__PURE__ */ n.jsx(et, { data: r }) : /* @__PURE__ */ n.jsx(Ye, { data: r }) : /* @__PURE__ */ n.jsxs(
1039
1053
  "span",
1040
1054
  {
1041
1055
  style: {
@@ -1077,7 +1091,7 @@ function or({ data: t }) {
1077
1091
  );
1078
1092
  }
1079
1093
  export {
1080
- ir as EntityCard,
1081
- or as EntityLabel,
1082
- er as EntityUser
1094
+ it as EntityCard,
1095
+ ot as EntityLabel,
1096
+ et as EntityUser
1083
1097
  };