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