@infinilabs/entity-ui 0.0.5 → 0.0.6

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.
@@ -1,5 +1,5 @@
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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react"),F=require("antd"),xe=require("lucide-react");function xt(t){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(f,a,c.get?c:{enumerable:!0,get:()=>t[a]})}}return f.default=t,Object.freeze(f)}const Ue=xt(xe);var _e={exports:{}},H={};/**
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("react"),F=require("antd"),be=require("lucide-react");function _t(t){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(f,a,c.get?c:{enumerable:!0,get:()=>t[a]})}}return f.default=t,Object.freeze(f)}const Ve=_t(be);var we={exports:{}},G={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var $e;function _t(){if($e)return H;$e=1;var t=re,f=Symbol.for("react.element"),a=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};function y(w,p,j){var _,T={},S=null,k=null;j!==void 0&&(S=""+j),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(k=p.ref);for(_ in p)c.call(p,_)&&!g.hasOwnProperty(_)&&(T[_]=p[_]);if(w&&w.defaultProps)for(_ in p=w.defaultProps,p)T[_]===void 0&&(T[_]=p[_]);return{$$typeof:f,type:w,key:S,ref:k,props:T,_owner:s.current}}return H.Fragment=a,H.jsx=y,H.jsxs=y,H}var G={};/**
10
+ */var $e;function bt(){if($e)return G;$e=1;var t=ne,f=Symbol.for("react.element"),a=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};function y(w,p,R){var _,T={},S=null,O=null;R!==void 0&&(S=""+R),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(O=p.ref);for(_ in p)c.call(p,_)&&!g.hasOwnProperty(_)&&(T[_]=p[_]);if(w&&w.defaultProps)for(_ in p=w.defaultProps,p)T[_]===void 0&&(T[_]=p[_]);return{$$typeof:f,type:w,key:S,ref:O,props:T,_owner:s.current}}return G.Fragment=a,G.jsx=y,G.jsxs=y,G}var X={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,17 +15,17 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var We;function bt(){return We||(We=1,process.env.NODE_ENV!=="production"&&function(){var t=re,f=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),w=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),W=Symbol.iterator,ne="@@iterator";function ie(e){if(e===null||typeof e!="object")return null;var r=W&&e[W]||e[ne];return typeof r=="function"?r:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];be("error",e,i)}}function be(e,r,i){{var o=D.ReactDebugCurrentFrame,v=o.getStackAddendum();v!==""&&(r+="%s",i=i.concat([v]));var m=i.map(function(u){return String(u)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var oe=!1,U=!1,se=!1,le=!1,ae=!1,V;V=Symbol.for("react.module.reference");function ce(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===g||ae||e===s||e===j||e===_||le||e===k||oe||U||se||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===y||e.$$typeof===w||e.$$typeof===p||e.$$typeof===V||e.getModuleId!==void 0))}function ue(e,r,i){var o=e.displayName;if(o)return o;var v=r.displayName||r.name||"";return v!==""?i+"("+v+")":i}function d(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case g:return"Profiler";case s:return"StrictMode";case j:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return d(r)+".Consumer";case y:var i=e;return d(i._context)+".Provider";case p:return ue(e,e.render,"ForwardRef");case T:var o=e.displayName||null;return o!==null?o:O(e.type)||"Memo";case S:{var v=e,m=v._payload,u=v._init;try{return O(u(m))}catch{return null}}}return null}var I=Object.assign,N=0,X,Y,z,q,J,A,L;function we(){}we.__reactDisabledLog=!0;function qe(){{if(N===0){X=console.log,Y=console.info,z=console.warn,q=console.error,J=console.group,A=console.groupCollapsed,L=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function Je(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:X}),info:I({},e,{value:Y}),warn:I({},e,{value:z}),error:I({},e,{value:q}),group:I({},e,{value:J}),groupCollapsed:I({},e,{value:A}),groupEnd:I({},e,{value:L})})}N<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=D.ReactCurrentDispatcher,pe;function Z(e,r,i){{if(pe===void 0)try{throw Error()}catch(v){var o=v.stack.trim().match(/\n( *(at )?)/);pe=o&&o[1]||""}return`
19
- `+pe+e}}var ve=!1,Q;{var Ke=typeof WeakMap=="function"?WeakMap:Map;Q=new Ke}function je(e,r){if(!e||ve)return"";{var i=Q.get(e);if(i!==void 0)return i}var o;ve=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=fe.current,fe.current=null,qe();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(C){o=C}Reflect.construct(e,[],u)}else{try{u.call()}catch(C){o=C}e.call(u.prototype)}}else{try{throw Error()}catch(C){o=C}e()}}catch(C){if(C&&o&&typeof C.stack=="string"){for(var l=C.stack.split(`
18
+ */var Me;function wt(){return Me||(Me=1,process.env.NODE_ENV!=="production"&&function(){var t=ne,f=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),w=Symbol.for("react.context"),p=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"),O=Symbol.for("react.offscreen"),$=Symbol.iterator,ie="@@iterator";function oe(e){if(e===null||typeof e!="object")return null;var r=$&&e[$]||e[ie];return typeof r=="function"?r:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];je("error",e,i)}}function je(e,r,i){{var o=D.ReactDebugCurrentFrame,h=o.getStackAddendum();h!==""&&(r+="%s",i=i.concat([h]));var m=i.map(function(u){return String(u)});m.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,m)}}var se=!1,U=!1,le=!1,ae=!1,ce=!1,V;V=Symbol.for("react.module.reference");function ue(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===g||ce||e===s||e===R||e===_||ae||e===O||se||U||le||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===y||e.$$typeof===w||e.$$typeof===p||e.$$typeof===V||e.getModuleId!==void 0))}function fe(e,r,i){var o=e.displayName;if(o)return o;var h=r.displayName||r.name||"";return h!==""?i+"("+h+")":i}function d(e){return e.displayName||"Context"}function P(e){if(e==null)return null;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")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case g:return"Profiler";case s:return"StrictMode";case R:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return d(r)+".Consumer";case y:var i=e;return d(i._context)+".Provider";case p:return fe(e,e.render,"ForwardRef");case T:var o=e.displayName||null;return o!==null?o:P(e.type)||"Memo";case S:{var h=e,m=h._payload,u=h._init;try{return P(u(m))}catch{return null}}}return null}var I=Object.assign,N=0,Z,Y,z,q,J,A,L;function Re(){}Re.__reactDisabledLog=!0;function Je(){{if(N===0){Z=console.log,Y=console.info,z=console.warn,q=console.error,J=console.group,A=console.groupCollapsed,L=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function Ke(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Z}),info:I({},e,{value:Y}),warn:I({},e,{value:z}),error:I({},e,{value:q}),group:I({},e,{value:J}),groupCollapsed:I({},e,{value:A}),groupEnd:I({},e,{value:L})})}N<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=D.ReactCurrentDispatcher,he;function Q(e,r,i){{if(he===void 0)try{throw Error()}catch(h){var o=h.stack.trim().match(/\n( *(at )?)/);he=o&&o[1]||""}return`
19
+ `+he+e}}var ve=!1,ee;{var He=typeof WeakMap=="function"?WeakMap:Map;ee=new He}function Ee(e,r){if(!e||ve)return"";{var i=ee.get(e);if(i!==void 0)return i}var o;ve=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=pe.current,pe.current=null,Je();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(C){o=C}Reflect.construct(e,[],u)}else{try{u.call()}catch(C){o=C}e.call(u.prototype)}}else{try{throw Error()}catch(C){o=C}e()}}catch(C){if(C&&o&&typeof C.stack=="string"){for(var l=C.stack.split(`
20
20
  `),E=o.stack.split(`
21
- `),x=l.length-1,b=E.length-1;x>=1&&b>=0&&l[x]!==E[b];)b--;for(;x>=1&&b>=0;x--,b--)if(l[x]!==E[b]){if(x!==1||b!==1)do if(x--,b--,b<0||l[x]!==E[b]){var P=`
22
- `+l[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(x>=1&&b>=0);break}}}finally{ve=!1,fe.current=m,Je(),Error.prepareStackTrace=v}var B=e?e.displayName||e.name:"",$=B?Z(B):"";return typeof e=="function"&&Q.set(e,$),$}function He(e,r,i){return je(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ee(e,r,i){if(e==null)return"";if(typeof e=="function")return je(e,Ge(e));if(typeof e=="string")return Z(e);switch(e){case j:return Z("Suspense");case _:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return He(e.render);case T:return ee(e.type,r,i);case S:{var o=e,v=o._payload,m=o._init;try{return ee(m(v),r,i)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,i=ee(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(i)}else Ee.setExtraStackFrame(null)}function Xe(e,r,i,o,v){{var m=Function.call.bind(K);for(var u in e)if(m(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var E=Error((o||"React class")+": "+i+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}l=e[u](r,u,o,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){l=x}l&&!(l instanceof Error)&&(te(v),R("%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,u,typeof l),te(null)),l instanceof Error&&!(l.message in Re)&&(Re[l.message]=!0,te(v),R("Failed %s type: %s",i,l.message),te(null))}}}var Ze=Array.isArray;function he(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function et(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Te(e){if(et(e))return R("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)}var Se=D.ReactCurrentOwner,tt={key:!0,ref:!0,__self:!0,__source:!0},Pe,ke;function rt(e){if(K.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nt(e){if(K.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function it(e,r){typeof e.ref=="string"&&Se.current}function ot(e,r){{var i=function(){Pe||(Pe=!0,R("%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))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function st(e,r){{var i=function(){ke||(ke=!0,R("%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))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var lt=function(e,r,i,o,v,m,u){var l={$$typeof:f,type:e,key:r,ref:i,props:u,_owner:m};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function at(e,r,i,o,v){{var m,u={},l=null,E=null;i!==void 0&&(Te(i),l=""+i),nt(r)&&(Te(r.key),l=""+r.key),rt(r)&&(E=r.ref,it(r,v));for(m in r)K.call(r,m)&&!tt.hasOwnProperty(m)&&(u[m]=r[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)u[m]===void 0&&(u[m]=x[m])}if(l||E){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&ot(u,b),E&&st(u,b)}return lt(e,l,E,v,o,Se.current,u)}}var ge=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,i=ee(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(i)}else Oe.setExtraStackFrame(null)}var ye;ye=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ie(){{if(ge.current){var e=O(ge.current.type);if(e)return`
21
+ `),x=l.length-1,b=E.length-1;x>=1&&b>=0&&l[x]!==E[b];)b--;for(;x>=1&&b>=0;x--,b--)if(l[x]!==E[b]){if(x!==1||b!==1)do if(x--,b--,b<0||l[x]!==E[b]){var k=`
22
+ `+l[x].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,k),k}while(x>=1&&b>=0);break}}}finally{ve=!1,pe.current=m,Ke(),Error.prepareStackTrace=h}var B=e?e.displayName||e.name:"",W=B?Q(B):"";return typeof e=="function"&&ee.set(e,W),W}function Ge(e,r,i){return Ee(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function te(e,r,i){if(e==null)return"";if(typeof e=="function")return Ee(e,Xe(e));if(typeof e=="string")return Q(e);switch(e){case R:return Q("Suspense");case _:return Q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ge(e.render);case T:return te(e.type,r,i);case S:{var o=e,h=o._payload,m=o._init;try{return te(m(h),r,i)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Ce={},Te=D.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,i=te(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(i)}else Te.setExtraStackFrame(null)}function Ze(e,r,i,o,h){{var m=Function.call.bind(K);for(var u in e)if(m(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var E=Error((o||"React class")+": "+i+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}l=e[u](r,u,o,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){l=x}l&&!(l instanceof Error)&&(re(h),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,u,typeof l),re(null)),l instanceof Error&&!(l.message in Ce)&&(Ce[l.message]=!0,re(h),j("Failed %s type: %s",i,l.message),re(null))}}}var Qe=Array.isArray;function ge(e){return Qe(e)}function et(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function tt(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Pe(e){if(tt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(e)),Se(e)}var H=D.ReactCurrentOwner,rt={key:!0,ref:!0,__self:!0,__source:!0},ke,Oe,ye;ye={};function nt(e){if(K.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function it(e){if(K.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ot(e,r){if(typeof e.ref=="string"&&H.current&&r&&H.current.stateNode!==r){var i=P(H.current.type);ye[i]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(H.current.type),e.ref),ye[i]=!0)}}function st(e,r){{var i=function(){ke||(ke=!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))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function lt(e,r){{var i=function(){Oe||(Oe=!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))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var at=function(e,r,i,o,h,m,u){var l={$$typeof:f,type:e,key:r,ref:i,props:u,_owner:m};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ct(e,r,i,o,h){{var m,u={},l=null,E=null;i!==void 0&&(Pe(i),l=""+i),it(r)&&(Pe(r.key),l=""+r.key),nt(r)&&(E=r.ref,ot(r,h));for(m in r)K.call(r,m)&&!rt.hasOwnProperty(m)&&(u[m]=r[m]);if(e&&e.defaultProps){var x=e.defaultProps;for(m in x)u[m]===void 0&&(u[m]=x[m])}if(l||E){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&st(u,b),E&&lt(u,b)}return at(e,l,E,h,o,H.current,u)}}var me=D.ReactCurrentOwner,Ie=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,i=te(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(i)}else Ie.setExtraStackFrame(null)}var de;de=!1;function xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function Ae(){{if(me.current){var e=P(me.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function ct(e){return""}var Ae={};function ut(e){{var r=Ie();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
24
+ Check the render method of \``+e+"`."}return""}}function ut(e){return""}var Fe={};function ft(e){{var r=Ae();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
25
25
 
26
- Check the top-level render call using <`+i+">.")}return r}}function Fe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=ut(r);if(Ae[i])return;Ae[i]=!0;var o="";e&&e._owner&&e._owner!==ge.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),M(e),R('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),M(null)}}function De(e,r){{if(typeof e!="object")return;if(he(e))for(var i=0;i<e.length;i++){var o=e[i];me(o)&&Fe(o,r)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var v=ie(e);if(typeof v=="function"&&v!==e.entries)for(var m=v.call(e),u;!(u=m.next()).done;)me(u.value)&&Fe(u.value,r)}}}function ft(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===T))i=r.propTypes;else return;if(i){var o=O(r);Xe(i,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!ye){ye=!0;var v=O(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pt(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var o=r[i];if(o!=="children"&&o!=="key"){M(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),M(null);break}}e.ref!==null&&(M(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Ne={};function Le(e,r,i,o,v,m){{var u=ce(e);if(!u){var l="";(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.");var E=ct();E?l+=E:l+=Ie();var x;e===null?x="null":he(e)?x="array":e!==void 0&&e.$$typeof===f?(x="<"+(O(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,R("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)}var b=at(e,r,i,v,m);if(b==null)return b;if(u){var P=r.children;if(P!==void 0)if(o)if(he(P)){for(var B=0;B<P.length;B++)De(P[B],e);Object.freeze&&Object.freeze(P)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(P,e)}if(K.call(r,"key")){var $=O(e),C=Object.keys(r).filter(function(dt){return dt!=="key"}),de=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ne[$+de]){var mt=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+i+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=ft(r);if(Fe[i])return;Fe[i]=!0;var o="";e&&e._owner&&e._owner!==me.current&&(o=" It was passed a child from "+P(e._owner.type)+"."),M(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),M(null)}}function Ne(e,r){{if(typeof e!="object")return;if(ge(e))for(var i=0;i<e.length;i++){var o=e[i];xe(o)&&De(o,r)}else if(xe(e))e._store&&(e._store.validated=!0);else if(e){var h=oe(e);if(typeof h=="function"&&h!==e.entries)for(var m=h.call(e),u;!(u=m.next()).done;)xe(u.value)&&De(u.value,r)}}}function pt(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===T))i=r.propTypes;else return;if(i){var o=P(r);Ze(i,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!de){de=!0;var h=P(r);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ht(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var o=r[i];if(o!=="children"&&o!=="key"){M(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),M(null);break}}e.ref!==null&&(M(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}var Le={};function We(e,r,i,o,h,m){{var u=ue(e);if(!u){var l="";(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.");var E=ut();E?l+=E:l+=Ae();var x;e===null?x="null":ge(e)?x="array":e!==void 0&&e.$$typeof===f?(x="<"+(P(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)}var b=ct(e,r,i,h,m);if(b==null)return b;if(u){var k=r.children;if(k!==void 0)if(o)if(ge(k)){for(var B=0;B<k.length;B++)Ne(k[B],e);Object.freeze&&Object.freeze(k)}else 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.");else Ne(k,e)}if(K.call(r,"key")){var W=P(e),C=Object.keys(r).filter(function(xt){return xt!=="key"}),_e=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Le[W+_e]){var dt=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,de,$,mt,$),Ne[$+de]=!0}}return e===c?pt(b):ft(b),b}}function vt(e,r,i){return Le(e,r,i,!0)}function ht(e,r,i){return Le(e,r,i,!1)}var gt=ht,yt=vt;G.Fragment=c,G.jsx=gt,G.jsxs=yt}()),G}process.env.NODE_ENV==="production"?_e.exports=_t():_e.exports=bt();var n=_e.exports;const wt="_entityCard_1xtgw_1",jt="_pcCover_1xtgw_15",Rt="_pcSection_1xtgw_31",Et="_pcBreadcrumbSep_1xtgw_38",Ct="_pcBasic_1xtgw_43",Tt="_pcBasicRow_1xtgw_49",St="_pcBasicRowLeft_1xtgw_56",Pt="_pcLinkIconRight_1xtgw_61",kt="_pcColorSwatch_1xtgw_72",Ot="_pcTitleText_1xtgw_99",It="_pcSubTitleText_1xtgw_106",At="_pcProperties_1xtgw_119",Ft="_pcProperty_1xtgw_127",Dt="_pcTagsRow_1xtgw_138",Nt="_pcDetails_1xtgw_151",Lt="_pcRow_1xtgw_157",$t="_pcCol_1xtgw_72",Wt="_pcColLabel_1xtgw_179",Mt="_pcColValue_1xtgw_183",Bt="_pcProgressText_1xtgw_188",Ut="_entityLabel_1xtgw_194",h={entityCard:wt,pcCover:jt,pcSection:Rt,pcBreadcrumbSep:Et,pcBasic:Ct,pcBasicRow:Tt,pcBasicRowLeft:St,pcLinkIconRight:Pt,pcColorSwatch:kt,pcTitleText:Ot,pcSubTitleText:It,pcProperties:At,pcProperty:Ft,pcTagsRow:Dt,pcDetails:Nt,pcRow:Lt,pcCol:$t,pcColLabel:Wt,pcColValue:Mt,pcProgressText:Bt,entityLabel:Ut},Me=t=>{if(!t)return null;const f=t.trim(),s={user:"User",email:"Mail",mail:"Mail",phone:"Phone",datetime:"Calendar",date:"Calendar",time:"Clock",tags:"Tag"}[f]??f.replace(/(^\w|-\w)/g,y=>y.replace("-","").toUpperCase());return Ue[s]||null},Vt=(t,f)=>{const a=typeof t=="number"?t:typeof t=="string"?parseFloat(t):NaN,c=isFinite(a)?a<=1?Math.max(0,Math.min(1,a))*100:Math.max(0,Math.min(100,a)):0;return n.jsxs("div",{className:h.pcProgress,children:[n.jsx(F.Progress,{percent:c,showInfo:!1,strokeColor:"#027ffe",size:{height:12}}),(f==null?void 0:f.text)&&n.jsx("div",{className:h.pcProgressText,children:f.text})]})},Ve=t=>!Array.isArray(t)||t.length===0?null:n.jsx("div",{className:h.pcTagsRow,children:t.map((f,a)=>n.jsx(F.Tag,{color:"default",style:{display:"inline-flex",alignItems:"center",border:"none",backgroundColor:"#E8E8E8",color:"#027FFE"},children:String(f)},`${f}-${a}`))}),Yt=t=>{const{view:f,value:a,payload:c}=t;return f==="percent_bar"?Vt(a,c):f==="tags"?Ve(Array.isArray(a)?a:[]):n.jsx("div",{className:h.pcColValue,children:String(a??"")})},Ye=({data:t})=>{var f,a,c;return n.jsxs(n.Fragment,{children:[(t==null?void 0:t.cover)&&n.jsx("div",{className:h.pcCover,style:{height:(f=t==null?void 0:t.style)==null?void 0:f.cover_max_height},children:n.jsx("img",{src:t.cover,alt:"cover"})}),Array.isArray(t==null?void 0:t.categories)&&t.categories.length>0&&n.jsx("div",{className:h.pcSection,children:n.jsx(F.Breadcrumb,{items:t.categories.map((s,g)=>({key:`${s}-${g}`,title:s})),separator:n.jsx("span",{className:h.pcBreadcrumbSep,children:"/"})})}),((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))&&n.jsx("div",{className:h.pcBasic,children:n.jsxs("div",{className:h.pcBasicRow,children:[n.jsxs("div",{className:h.pcBasicRowLeft,children:[(t==null?void 0:t.color)&&n.jsx("span",{className:h.pcColorSwatch,style:{backgroundColor:t.color},"aria-label":`color ${t.color}`,title:`color: ${t.color}`}),(()=>{var y;const s=(y=t==null?void 0:t.icon)==null?void 0:y.trim();if(s&&/^https?:\/\/+/i.test(s))return n.jsx("img",{src:s,alt:"icon",className:h.pcIcon,width:18,height:18,style:{objectFit:"contain"}});const g=Me(s);return g?n.jsx(g,{className:h.pcIcon,size:18,strokeWidth:2}):null})(),(t==null?void 0:t.title)&&n.jsx("span",{className:h.pcTitleText,title:t.title,children:t.title}),(t==null?void 0:t.subtitle)&&n.jsxs("span",{className:h.pcSubTitleText,title:t.subtitle,children:["| ",t.subtitle]})]}),(t==null?void 0:t.url)&&n.jsx("a",{href:t.url,target:"_blank",rel:"noreferrer","aria-label":"open link",title:t.url,className:h.pcLinkIconRight,children:n.jsx(xe.ExternalLink,{style:{width:12,height:12,color:"#027FFE"}})})]})}),Array.isArray(t==null?void 0:t.properties)&&t.properties.length>0&&n.jsx("div",{className:h.pcSection,style:{paddingTop:25},children:n.jsx("div",{className:h.pcProperties,children:t.properties.map((s,g)=>{const y=Me(s.icon),w=()=>{if(s.view==="tags")return Ve(Array.isArray(s.value)?s.value:[]);if(s.view==="datetime_with_time_zone"){const p=String(s.value??"");return n.jsx("span",{className:h.pcPropertyValue,children:p})}return n.jsx("span",{className:h.pcPropertyValue,children:String(s.value??"")})};return n.jsxs("div",{className:h.pcProperty,children:[y&&n.jsx(y,{className:h.pcPropertyIcon,size:16,strokeWidth:2}),w()]},g)})})}),Array.isArray((c=(a=t==null?void 0:t.details)==null?void 0:a.table)==null?void 0:c.rows)&&t.details.table.rows.length>0&&n.jsx("div",{className:h.pcSection,children:n.jsx("div",{className:h.pcDetails,children:t.details.table.rows.map((s,g)=>{const y=Array.isArray(s.columns)?s.columns.filter(p=>p&&(p.label!==void 0||p.value!==void 0)):[],w=y.length;return n.jsx("div",{className:h.pcRow,style:{gridTemplateColumns:w<=1?"1fr":"repeat(2, minmax(0, 1fr))"},children:y.map((p,j)=>n.jsxs("div",{className:h.pcCol,children:[Yt(p),p.label&&n.jsx("div",{className:h.pcColLabel,children:p.label})]},j))},g)})})}),Array.isArray(t==null?void 0:t.tags)&&t.tags.length>0&&n.jsx("div",{className:h.pcSection,children:t.tags.map((s,g)=>n.jsx(F.Tag,{style:{display:"inline-flex",alignItems:"center",gap:4,color:"#027FFE",border:"none"},icon:n.jsx(xe.Tags,{style:{width:12,height:12}}),color:"default",children:s},g))})]})},zt=({title:t,subtitle:f,description:a,imageUrl:c,actions:s=[],footer:g,triggerType:y="hover",popupMode:w="modal",trigger:p,open:j,onOpenChange:_,modalTitle:T,width:S,placement:k="right",data:W,hoverOpenDelay:ne=500,closeDelay:ie=200,autoPlacement:D=!1,hoverAutoClose:R=!1,hoverAutoCloseDelay:be=2e3,getPopupContainer:oe,viewportPadding:U=16,zIndex:se})=>{var Y,z,q,J;const[le,ae]=re.useState(!1),V=typeof j=="boolean",ce=V?j:le,ue=A=>{V?_==null||_(A):ae(A)},d=W,O=re.useRef(null),I=n.jsx(F.Button,{type:"default",children:`打开:${(d==null?void 0:d.title)??t??"详情"}`}),N=n.jsx("span",{ref:O,style:{display:"inline-block"},children:p??I}),X=n.jsx(F.Popover,{content:n.jsx("div",{className:h.entityCard,style:{width:(Y=d==null?void 0:d.style)==null?void 0:Y.width,height:(z=d==null?void 0:d.style)==null?void 0:z.height,maxWidth:(q=d==null?void 0:d.style)==null?void 0:q.max_width,maxHeight:(J=d==null?void 0:d.style)==null?void 0:J.max_height},children:d!=null&&d.id?n.jsx(Ye,{data:d}):n.jsx(F.Skeleton,{active:!0,title:!1,avatar:{shape:"circle",size:24},paragraph:{rows:3}})}),open:ce,onOpenChange:A=>{ue(!!A)},trigger:y,placement:k,align:function(){const A=k,L=U;switch(A){case"top":return{offset:[0,L]};case"bottom":return{offset:[0,-L]};case"left":return{offset:[L,0]};case"right":return{offset:[-L,0]};default:return}}(),mouseEnterDelay:y==="hover"?ne/1e3:0,mouseLeaveDelay:y==="hover"?ie/1e3:0,autoAdjustOverflow:!0,zIndex:se,getPopupContainer:oe??(()=>document.body),overlayStyle:{maxHeight:`calc(100vh - 24px - ${U*2}px)`,overflowY:"auto",margin:U},overlayInnerStyle:{padding:0},children:N});return n.jsx(n.Fragment,{children:X})},qt=t=>{const f=t.trim(),c={user:"User",email:"Mail",mail:"Mail",phone:"Phone",datetime:"Calendar",date:"Calendar",time:"Clock",tags:"Tag"}[f]??f.replace(/(^\w|-\w)/g,g=>g.replace("-","").toUpperCase());return Ue[c]||null},Jt=t=>{if(t){if(/^mailto:/i.test(t))try{return decodeURIComponent(t.slice(7))}catch{return t.slice(7)}return t}},Be=()=>n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,verticalAlign:"middle"},"aria-label":"entity user skeleton",children:[n.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:"#e9e9e9",flex:"0 0 auto"}}),n.jsx("span",{style:{width:160,height:20,borderRadius:6,backgroundColor:"#e9e9e9",flex:"0 0 auto"}})]}),ze=({data:t})=>{var _,T;if(!t||!t.title&&!t.icon&&!t.subtitle&&!t.color&&!t.url)return n.jsx(Be,{});const a=(_=t==null?void 0:t.icon)==null?void 0:_.trim(),c=(T=t==null?void 0:t.title)==null?void 0:T.trim(),s=Jt(t==null?void 0:t.url),g=!!a,y=!!c,w=!!s,p=!!(t!=null&&t.color)||!!(t!=null&&t.subtitle),j=(S=20)=>{if(a&&/^https?:\/\//i.test(a))return n.jsx(F.Avatar,{size:S,src:a});const k=qt(a||"user"),W=Math.max(8,S-4);return n.jsx(F.Avatar,{size:S,icon:k?n.jsx(k,{size:W}):void 0})};return g&&y&&!w&&!p?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[j(),n.jsx("span",{style:{color:"#027FFE",fontWeight:500,lineHeight:"20px"},title:c,children:c})]}):g&&!y&&!w&&!p?n.jsx("span",{style:{display:"inline-flex"},children:j()}):!g&&y&&!w&&!p?n.jsx("span",{style:{display:"inline-block",color:"#027FFE",fontWeight:500},title:c,children:c}):g&&y&&w?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[j(40),n.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",justifyContent:"space-between"},children:[n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}),n.jsx("span",{style:{color:"#888",fontSize:12},title:s,children:s})]})]}):g&&y&&p?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[j(40),n.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",justifyContent:"space-between"},children:[n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}),n.jsxs("span",{style:{marginTop:4,display:"inline-flex",alignItems:"center",gap:6,fontSize:12,color:"#666"},title:t==null?void 0:t.subtitle,children:[(t==null?void 0:t.color)&&n.jsx("span",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:t.color}}),t==null?void 0:t.subtitle]})]})]}):y?n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}):n.jsx(Be,{})};function Kt({data:t}){var a,c,s,g;const f=((t==null?void 0:t.type)??"").toLowerCase()==="user";return n.jsx("div",{className:h.entityLabel,style:{width:(a=t==null?void 0:t.style)==null?void 0:a.width,height:(c=t==null?void 0:t.style)==null?void 0:c.height,maxWidth:(s=t==null?void 0:t.style)==null?void 0:s.max_width,maxHeight:(g=t==null?void 0:t.style)==null?void 0:g.max_height},children:t!=null&&t.id?f?n.jsx(ze,{data:t}):n.jsx(Ye,{data:t}):n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10,verticalAlign:"middle"},"aria-label":"entity label skeleton",children:[n.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:"#e9e9e9",flex:"0 0 auto"}}),n.jsx("span",{style:{width:160,height:20,borderRadius:6,backgroundColor:"#e9e9e9",flex:"0 0 auto"}})]})})}exports.EntityCard=zt;exports.EntityLabel=Kt;exports.EntityUser=ze;
31
+ <%s key={someKey} {...props} />`,_e,W,dt,W),Le[W+_e]=!0}}return e===c?ht(b):pt(b),b}}function vt(e,r,i){return We(e,r,i,!0)}function gt(e,r,i){return We(e,r,i,!1)}var yt=gt,mt=vt;X.Fragment=c,X.jsx=yt,X.jsxs=mt}()),X}process.env.NODE_ENV==="production"?we.exports=bt():we.exports=wt();var n=we.exports;const jt="_entityCard_1xtgw_1",Rt="_pcCover_1xtgw_15",Et="_pcSection_1xtgw_31",Ct="_pcBreadcrumbSep_1xtgw_38",Tt="_pcBasic_1xtgw_43",St="_pcBasicRow_1xtgw_49",Pt="_pcBasicRowLeft_1xtgw_56",kt="_pcLinkIconRight_1xtgw_61",Ot="_pcColorSwatch_1xtgw_72",It="_pcIconDot_1xtgw_77",At="_pcTitleLink_1xtgw_82",Ft="_pcTitleText_1xtgw_99",Dt="_pcSubTitleText_1xtgw_106",Nt="_pcExternalIcon_1xtgw_113",Lt="_pcProperties_1xtgw_119",Wt="_pcProperty_1xtgw_127",$t="_pcTagsRow_1xtgw_138",Mt="_pcTag_1xtgw_138",Bt="_pcDetails_1xtgw_151",Ut="_pcRow_1xtgw_157",Vt="_pcCol_1xtgw_72",Yt="_pcColLabel_1xtgw_179",zt="_pcColValue_1xtgw_183",qt="_pcProgressText_1xtgw_188",Jt="_entityLabel_1xtgw_194",v={entityCard:jt,pcCover:Rt,pcSection:Et,pcBreadcrumbSep:Ct,pcBasic:Tt,pcBasicRow:St,pcBasicRowLeft:Pt,pcLinkIconRight:kt,pcColorSwatch:Ot,pcIconDot:It,pcTitleLink:At,pcTitleText:Ft,pcSubTitleText:Dt,pcExternalIcon:Nt,pcProperties:Lt,pcProperty:Wt,pcTagsRow:$t,pcTag:Mt,pcDetails:Bt,pcRow:Ut,pcCol:Vt,pcColLabel:Yt,pcColValue:zt,pcProgressText:qt,entityLabel:Jt},Be=t=>{if(!t)return null;const f=t.trim(),s={user:"User",email:"Mail",mail:"Mail",phone:"Phone",datetime:"Calendar",date:"Calendar",time:"Clock",tags:"Tag"}[f]??f.replace(/(^\w|-\w)/g,y=>y.replace("-","").toUpperCase());return Ve[s]||null},Kt=(t,f)=>{const a=typeof t=="number"?t:typeof t=="string"?parseFloat(t):NaN,c=isFinite(a)?a<=1?Math.max(0,Math.min(1,a))*100:Math.max(0,Math.min(100,a)):0;return n.jsxs("div",{className:v.pcProgress,children:[n.jsx(F.Progress,{percent:c,showInfo:!1,strokeColor:"#027ffe",size:{height:12}}),(f==null?void 0:f.text)&&n.jsx("div",{className:v.pcProgressText,children:f.text})]})},Ye=t=>!Array.isArray(t)||t.length===0?null:n.jsx("div",{className:v.pcTagsRow,children:t.map((f,a)=>n.jsx(F.Tag,{color:"default",style:{display:"inline-flex",alignItems:"center",border:"none",backgroundColor:"#E8E8E8",color:"#027FFE"},children:String(f)},`${f}-${a}`))}),Ht=t=>{const{view:f,value:a,payload:c}=t;return f==="percent_bar"?Kt(a,c):f==="tags"?Ye(Array.isArray(a)?a:[]):n.jsx("div",{className:v.pcColValue,children:String(a??"")})},ze=({data:t})=>{var f,a,c;return n.jsxs(n.Fragment,{children:[(t==null?void 0:t.cover)&&n.jsx("div",{className:v.pcCover,style:{height:(f=t==null?void 0:t.style)==null?void 0:f.cover_max_height},children:n.jsx("img",{src:t.cover,alt:"cover"})}),Array.isArray(t==null?void 0:t.categories)&&t.categories.length>0&&n.jsx("div",{className:v.pcSection,children:n.jsx(F.Breadcrumb,{items:t.categories.map((s,g)=>({key:`${s}-${g}`,title:s})),separator:n.jsx("span",{className:v.pcBreadcrumbSep,children:"/"})})}),((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))&&n.jsx("div",{className:v.pcBasic,children:n.jsxs("div",{className:v.pcBasicRow,children:[n.jsxs("div",{className:v.pcBasicRowLeft,children:[(t==null?void 0:t.color)&&n.jsx("span",{className:v.pcColorSwatch,style:{backgroundColor:t.color},"aria-label":`color ${t.color}`,title:`color: ${t.color}`}),(()=>{var y;const s=(y=t==null?void 0:t.icon)==null?void 0:y.trim();if(s&&/^https?:\/\/+/i.test(s))return n.jsx("img",{src:s,alt:"icon",className:v.pcIcon,width:18,height:18,style:{objectFit:"contain"}});const g=Be(s);return g?n.jsx(g,{className:v.pcIcon,size:18,strokeWidth:2}):null})(),(t==null?void 0:t.title)&&n.jsx("span",{className:v.pcTitleText,title:t.title,children:t.title}),(t==null?void 0:t.subtitle)&&n.jsxs("span",{className:v.pcSubTitleText,title:t.subtitle,children:["| ",t.subtitle]})]}),(t==null?void 0:t.url)&&n.jsx("a",{href:t.url,target:"_blank",rel:"noreferrer","aria-label":"open link",title:t.url,className:v.pcLinkIconRight,children:n.jsx(be.ExternalLink,{style:{width:12,height:12,color:"#027FFE"}})})]})}),Array.isArray(t==null?void 0:t.properties)&&t.properties.length>0&&n.jsx("div",{className:v.pcSection,style:{paddingTop:25},children:n.jsx("div",{className:v.pcProperties,children:t.properties.map((s,g)=>{const y=Be(s.icon),w=()=>{if(s.view==="tags")return Ye(Array.isArray(s.value)?s.value:[]);if(s.view==="datetime_with_time_zone"){const p=String(s.value??"");return n.jsx("span",{className:v.pcPropertyValue,children:p})}return n.jsx("span",{className:v.pcPropertyValue,children:String(s.value??"")})};return n.jsxs("div",{className:v.pcProperty,children:[y&&n.jsx(y,{className:v.pcPropertyIcon,size:16,strokeWidth:2}),w()]},g)})})}),Array.isArray((c=(a=t==null?void 0:t.details)==null?void 0:a.table)==null?void 0:c.rows)&&t.details.table.rows.length>0&&n.jsx("div",{className:v.pcSection,children:n.jsx("div",{className:v.pcDetails,children:t.details.table.rows.map((s,g)=>{const y=Array.isArray(s.columns)?s.columns.filter(p=>p&&(p.label!==void 0||p.value!==void 0)):[],w=y.length;return n.jsx("div",{className:v.pcRow,style:{gridTemplateColumns:w<=1?"1fr":"repeat(2, minmax(0, 1fr))"},children:y.map((p,R)=>n.jsxs("div",{className:v.pcCol,children:[Ht(p),p.label&&n.jsx("div",{className:v.pcColLabel,children:p.label})]},R))},g)})})}),Array.isArray(t==null?void 0:t.tags)&&t.tags.length>0&&n.jsx("div",{className:v.pcSection,children:t.tags.map((s,g)=>n.jsx(F.Tag,{style:{display:"inline-flex",alignItems:"center",gap:4,color:"#027FFE",border:"none"},icon:n.jsx(be.Tags,{style:{width:12,height:12}}),color:"default",children:s},g))})]})},Gt=({title:t,subtitle:f,description:a,imageUrl:c,actions:s=[],footer:g,triggerType:y="hover",popupMode:w="modal",trigger:p,open:R,onOpenChange:_,modalTitle:T,width:S,placement:O="right",data:$,hoverOpenDelay:ie=500,closeDelay:oe=200,autoPlacement:D=!1,hoverAutoClose:j=!1,hoverAutoCloseDelay:je=2e3,getPopupContainer:se,viewportPadding:U=16,zIndex:le})=>{var Y,z,q,J;const[ae,ce]=ne.useState(!1),V=typeof R=="boolean",ue=V?R:ae,fe=A=>{V?_==null||_(A):ce(A)},d=$,P=ne.useRef(null),I=n.jsx(F.Button,{type:"default",children:`打开:${(d==null?void 0:d.title)??t??"详情"}`}),N=n.jsx("span",{ref:P,style:{display:"inline-block"},children:p??I}),Z=n.jsx(F.Popover,{content:n.jsx("div",{className:v.entityCard,style:{width:(Y=d==null?void 0:d.style)==null?void 0:Y.width,height:(z=d==null?void 0:d.style)==null?void 0:z.height,maxWidth:(q=d==null?void 0:d.style)==null?void 0:q.max_width,maxHeight:(J=d==null?void 0:d.style)==null?void 0:J.max_height},children:d!=null&&d.id?n.jsx(ze,{data:d}):n.jsx(F.Skeleton,{active:!0,title:!1,avatar:{shape:"circle",size:24},paragraph:{rows:3}})}),open:ue,onOpenChange:A=>{fe(!!A)},trigger:y,placement:O,align:function(){const A=O,L=U;switch(A){case"top":return{offset:[0,L]};case"bottom":return{offset:[0,-L]};case"left":return{offset:[L,0]};case"right":return{offset:[-L,0]};default:return}}(),mouseEnterDelay:y==="hover"?ie/1e3:0,mouseLeaveDelay:y==="hover"?oe/1e3:0,autoAdjustOverflow:!0,zIndex:le,getPopupContainer:se??(()=>document.body),overlayStyle:{maxHeight:`calc(100vh - 24px - ${U*2}px)`,overflowY:"auto",margin:U},overlayInnerStyle:{padding:0},children:N});return n.jsx(n.Fragment,{children:Z})},Xt=t=>{if(!t)return null;const f=t.trim(),c={user:"User",email:"Mail",mail:"Mail",phone:"Phone",datetime:"Calendar",date:"Calendar",time:"Clock",tags:"Tag"}[f]??f.replace(/(^\w|-\w)/g,g=>g.replace("-","").toUpperCase());return Ve[c]||null},Zt=t=>{if(t){if(/^mailto:/i.test(t))try{return decodeURIComponent(t.slice(7))}catch{return t.slice(7)}return t}},Ue=()=>n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,verticalAlign:"middle"},"aria-label":"entity user skeleton",children:[n.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:"#e9e9e9",flex:"0 0 auto"}}),n.jsx("span",{style:{width:160,height:20,borderRadius:6,backgroundColor:"#e9e9e9",flex:"0 0 auto"}})]}),qe=({data:t})=>{var _,T;if(!t||!t.title&&!t.icon&&!t.subtitle&&!t.color&&!t.url)return n.jsx(Ue,{});const a=(_=t==null?void 0:t.icon)==null?void 0:_.trim(),c=(T=t==null?void 0:t.title)==null?void 0:T.trim(),s=Zt(t==null?void 0:t.url),g=!!a,y=!!c,w=!!s,p=!!(t!=null&&t.color)||!!(t!=null&&t.subtitle),R=(S=20)=>{if(a&&/^https?:\/\//i.test(a))return n.jsx(F.Avatar,{size:S,src:a});const O=Xt(a||"user"),$=Math.max(8,S-4);return n.jsx(F.Avatar,{size:S,icon:O?n.jsx(O,{size:$}):void 0})};return g&&y&&!w&&!p?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[R(),n.jsx("span",{style:{color:"#027FFE",fontWeight:500,lineHeight:"20px"},title:c,children:c})]}):g&&!y&&!w&&!p?n.jsx("span",{style:{display:"inline-flex"},children:R()}):!g&&y&&!w&&!p?n.jsx("span",{style:{display:"inline-block",color:"#027FFE",fontWeight:500},title:c,children:c}):g&&y&&w?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[R(40),n.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",justifyContent:"space-between"},children:[n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}),n.jsx("span",{style:{color:"#888",fontSize:12},title:s,children:s})]})]}):g&&y&&p?n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[R(40),n.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",justifyContent:"space-between"},children:[n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}),n.jsxs("span",{style:{marginTop:4,display:"inline-flex",alignItems:"center",gap:6,fontSize:12,color:"#666"},title:t==null?void 0:t.subtitle,children:[(t==null?void 0:t.color)&&n.jsx("span",{style:{width:12,height:12,borderRadius:"50%",backgroundColor:t.color}}),t==null?void 0:t.subtitle]})]})]}):y?n.jsx("span",{style:{color:"#027FFE",fontWeight:500},title:c,children:c}):n.jsx(Ue,{})};function Qt({data:t}){var a,c,s,g;const f=((t==null?void 0:t.type)??"").toLowerCase()==="user";return n.jsx("div",{className:v.entityLabel,style:{width:(a=t==null?void 0:t.style)==null?void 0:a.width,height:(c=t==null?void 0:t.style)==null?void 0:c.height,maxWidth:(s=t==null?void 0:t.style)==null?void 0:s.max_width,maxHeight:(g=t==null?void 0:t.style)==null?void 0:g.max_height},children:t!=null&&t.id?f?n.jsx(qe,{data:t}):n.jsx(ze,{data:t}):n.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:10,verticalAlign:"middle"},"aria-label":"entity label skeleton",children:[n.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:"#e9e9e9",flex:"0 0 auto"}}),n.jsx("span",{style:{width:160,height:20,borderRadius:6,backgroundColor:"#e9e9e9",flex:"0 0 auto"}})]})})}exports.EntityCard=Gt;exports.EntityLabel=Qt;exports.EntityUser=qe;
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 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 = {};
2
+ import Me, { useState as dr, useRef as _r } from "react";
3
+ import { Breadcrumb as br, Tag as Ue, Progress as wr, Button as Rr, Popover as jr, Skeleton as Er, Avatar as Ne } from "antd";
4
+ import * as Ve from "lucide-react";
5
+ import { ExternalLink as Cr, Tags as Tr } from "lucide-react";
6
+ var de = { exports: {} }, H = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,21 +13,21 @@ var ye = { exports: {} }, K = {};
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 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
- function m(w, u, R) {
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);
16
+ var Le;
17
+ function Sr() {
18
+ if (Le) return H;
19
+ Le = 1;
20
+ var r = Me, 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
+ function m(w, u, j) {
22
+ var _, T = {}, S = null, O = null;
23
+ j !== void 0 && (S = "" + j), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (O = u.ref);
24
24
  for (_ in u) c.call(u, _) && !g.hasOwnProperty(_) && (T[_] = u[_]);
25
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
+ return { $$typeof: v, type: w, key: S, ref: O, props: T, _owner: s.current };
27
27
  }
28
- return K.Fragment = f, K.jsx = m, K.jsxs = m, K;
28
+ return H.Fragment = f, H.jsx = m, H.jsxs = m, H;
29
29
  }
30
- var H = {};
30
+ var G = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,27 +37,27 @@ var H = {};
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 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) {
40
+ var We;
41
+ function Pr() {
42
+ return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var r = Me, 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"), j = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), W = Symbol.iterator, te = "@@iterator";
44
+ function ne(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var t = $ && e[$] || e[re];
47
+ var t = W && e[W] || e[te];
48
48
  return typeof t == "function" ? t : null;
49
49
  }
50
- var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function j(e) {
50
+ var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function R(e) {
52
52
  {
53
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
- xe("error", e, i);
55
+ _e("error", e, i);
56
56
  }
57
57
  }
58
- function xe(e, t, i) {
58
+ function _e(e, t, i) {
59
59
  {
60
- var o = A.ReactDebugCurrentFrame, p = o.getStackAddendum();
60
+ var o = F.ReactDebugCurrentFrame, p = o.getStackAddendum();
61
61
  p !== "" && (t += "%s", i = i.concat([p]));
62
62
  var y = i.map(function(a) {
63
63
  return String(a);
@@ -65,16 +65,16 @@ function Sr() {
65
65
  y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
66
66
  }
67
67
  }
68
- var ne = !1, M = !1, ie = !1, oe = !1, se = !1, U;
68
+ var ie = !1, M = !1, oe = !1, se = !1, le = !1, U;
69
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
70
+ function ae(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === g || le || e === s || e === j || e === _ || se || e === O || ie || M || oe || 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
75
  e.$$typeof === U || e.getModuleId !== void 0));
76
76
  }
77
- function ae(e, t, i) {
77
+ function ce(e, t, i) {
78
78
  var o = e.displayName;
79
79
  if (o)
80
80
  return o;
@@ -84,10 +84,10 @@ function Sr() {
84
84
  function x(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function O(e) {
87
+ function P(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
@@ -100,7 +100,7 @@ function Sr() {
100
100
  return "Profiler";
101
101
  case s:
102
102
  return "StrictMode";
103
- case R:
103
+ case j:
104
104
  return "Suspense";
105
105
  case _:
106
106
  return "SuspenseList";
@@ -114,14 +114,14 @@ function Sr() {
114
114
  var i = e;
115
115
  return x(i._context) + ".Provider";
116
116
  case u:
117
- return ae(e, e.render, "ForwardRef");
117
+ return ce(e, e.render, "ForwardRef");
118
118
  case T:
119
119
  var o = e.displayName || null;
120
- return o !== null ? o : O(e.type) || "Memo";
120
+ return o !== null ? o : P(e.type) || "Memo";
121
121
  case S: {
122
122
  var p = e, y = p._payload, a = p._init;
123
123
  try {
124
- return O(a(y));
124
+ return P(a(y));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function Sr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var I = Object.assign, N = 0, G, V, Y, z, J, F, D;
133
- function de() {
132
+ var I = Object.assign, D = 0, X, V, Y, z, J, A, N;
133
+ function be() {
134
134
  }
135
- de.__reactDisabledLog = !0;
136
- function ze() {
135
+ be.__reactDisabledLog = !0;
136
+ function Je() {
137
137
  {
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;
138
+ if (D === 0) {
139
+ X = console.log, V = console.info, Y = console.warn, z = console.error, J = console.group, A = console.groupCollapsed, N = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: de,
143
+ value: be,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,12 +153,12 @@ function Sr() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- N++;
156
+ D++;
157
157
  }
158
158
  }
159
- function Je() {
159
+ function qe() {
160
160
  {
161
- if (N--, N === 0) {
161
+ if (D--, D === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -166,7 +166,7 @@ function Sr() {
166
166
  };
167
167
  Object.defineProperties(console, {
168
168
  log: I({}, e, {
169
- value: G
169
+ value: X
170
170
  }),
171
171
  info: I({}, e, {
172
172
  value: V
@@ -181,49 +181,49 @@ function Sr() {
181
181
  value: J
182
182
  }),
183
183
  groupCollapsed: I({}, e, {
184
- value: F
184
+ value: A
185
185
  }),
186
186
  groupEnd: I({}, e, {
187
- value: D
187
+ value: N
188
188
  })
189
189
  });
190
190
  }
191
- N < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ D < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var ce = A.ReactCurrentDispatcher, ue;
195
- function X(e, t, i) {
194
+ var ue = F.ReactCurrentDispatcher, fe;
195
+ function Z(e, t, i) {
196
196
  {
197
- if (ue === void 0)
197
+ if (fe === void 0)
198
198
  try {
199
199
  throw Error();
200
200
  } catch (p) {
201
201
  var o = p.stack.trim().match(/\n( *(at )?)/);
202
- ue = o && o[1] || "";
202
+ fe = o && o[1] || "";
203
203
  }
204
204
  return `
205
- ` + ue + e;
205
+ ` + fe + e;
206
206
  }
207
207
  }
208
- var fe = !1, Z;
208
+ var pe = !1, Q;
209
209
  {
210
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
211
- Z = new qe();
210
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Q = new Ke();
212
212
  }
213
- function _e(e, t) {
214
- if (!e || fe)
213
+ function we(e, t) {
214
+ if (!e || pe)
215
215
  return "";
216
216
  {
217
- var i = Z.get(e);
217
+ var i = Q.get(e);
218
218
  if (i !== void 0)
219
219
  return i;
220
220
  }
221
221
  var o;
222
- fe = !0;
222
+ pe = !0;
223
223
  var p = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var y;
226
- y = ce.current, ce.current = null, ze();
226
+ y = ue.current, ue.current = null, Je();
227
227
  try {
228
228
  if (t) {
229
229
  var a = function() {
@@ -267,65 +267,65 @@ function Sr() {
267
267
  if (d !== 1 || b !== 1)
268
268
  do
269
269
  if (d--, b--, b < 0 || l[d] !== E[b]) {
270
- var P = `
270
+ var k = `
271
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
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, k), k;
273
273
  }
274
274
  while (d >= 1 && b >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- fe = !1, ce.current = y, Je(), Error.prepareStackTrace = p;
279
+ pe = !1, ue.current = y, qe(), Error.prepareStackTrace = p;
280
280
  }
281
- var B = e ? e.displayName || e.name : "", L = B ? X(B) : "";
282
- return typeof e == "function" && Z.set(e, L), L;
281
+ var B = e ? e.displayName || e.name : "", L = B ? Z(B) : "";
282
+ return typeof e == "function" && Q.set(e, L), L;
283
283
  }
284
- function Ke(e, t, i) {
285
- return _e(e, !1);
284
+ function He(e, t, i) {
285
+ return we(e, !1);
286
286
  }
287
- function He(e) {
287
+ function Ge(e) {
288
288
  var t = e.prototype;
289
289
  return !!(t && t.isReactComponent);
290
290
  }
291
- function Q(e, t, i) {
291
+ function ee(e, t, i) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return _e(e, He(e));
295
+ return we(e, Ge(e));
296
296
  if (typeof e == "string")
297
- return X(e);
297
+ return Z(e);
298
298
  switch (e) {
299
- case R:
300
- return X("Suspense");
299
+ case j:
300
+ return Z("Suspense");
301
301
  case _:
302
- return X("SuspenseList");
302
+ return Z("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case u:
307
- return Ke(e.render);
307
+ return He(e.render);
308
308
  case T:
309
- return Q(e.type, t, i);
309
+ return ee(e.type, t, i);
310
310
  case S: {
311
311
  var o = e, p = o._payload, y = o._init;
312
312
  try {
313
- return Q(y(p), t, i);
313
+ return ee(y(p), t, i);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var q = Object.prototype.hasOwnProperty, be = {}, we = A.ReactDebugCurrentFrame;
321
- function ee(e) {
320
+ var q = Object.prototype.hasOwnProperty, Re = {}, je = F.ReactDebugCurrentFrame;
321
+ function re(e) {
322
322
  if (e) {
323
- var t = e._owner, i = Q(e.type, e._source, t ? t.type : null);
324
- we.setExtraStackFrame(i);
323
+ var t = e._owner, i = ee(e.type, e._source, t ? t.type : null);
324
+ je.setExtraStackFrame(i);
325
325
  } else
326
- we.setExtraStackFrame(null);
326
+ je.setExtraStackFrame(null);
327
327
  }
328
- function Ge(e, t, i, o, p) {
328
+ function Xe(e, t, i, o, p) {
329
329
  {
330
330
  var y = Function.call.bind(q);
331
331
  for (var a in e)
@@ -340,41 +340,42 @@ function Sr() {
340
340
  } catch (d) {
341
341
  l = d;
342
342
  }
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
+ l && !(l instanceof Error) && (re(p), R("%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), re(null)), l instanceof Error && !(l.message in Re) && (Re[l.message] = !0, re(p), R("Failed %s type: %s", i, l.message), re(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Xe = Array.isArray;
348
- function pe(e) {
349
- return Xe(e);
347
+ var Ze = Array.isArray;
348
+ function he(e) {
349
+ return Ze(e);
350
350
  }
351
- function Ze(e) {
351
+ function Qe(e) {
352
352
  {
353
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 Qe(e) {
357
+ function er(e) {
358
358
  try {
359
- return Re(e), !1;
359
+ return Ee(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function Re(e) {
364
+ function Ee(e) {
365
365
  return "" + e;
366
366
  }
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);
367
+ function Ce(e) {
368
+ if (er(e))
369
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Ee(e);
370
370
  }
371
- var Ee = A.ReactCurrentOwner, er = {
371
+ var K = F.ReactCurrentOwner, rr = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, Ce, Te;
377
- function rr(e) {
376
+ }, Te, Se, ve;
377
+ ve = {};
378
+ function tr(e) {
378
379
  if (q.call(e, "ref")) {
379
380
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
380
381
  if (t && t.isReactWarning)
@@ -382,7 +383,7 @@ function Sr() {
382
383
  }
383
384
  return e.ref !== void 0;
384
385
  }
385
- function tr(e) {
386
+ function nr(e) {
386
387
  if (q.call(e, "key")) {
387
388
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
388
389
  if (t && t.isReactWarning)
@@ -390,13 +391,16 @@ function Sr() {
390
391
  }
391
392
  return e.key !== void 0;
392
393
  }
393
- function nr(e, t) {
394
- typeof e.ref == "string" && Ee.current;
395
- }
396
394
  function ir(e, t) {
395
+ if (typeof e.ref == "string" && K.current && t && K.current.stateNode !== t) {
396
+ var i = P(K.current.type);
397
+ ve[i] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(K.current.type), e.ref), ve[i] = !0);
398
+ }
399
+ }
400
+ function or(e, t) {
397
401
  {
398
402
  var i = function() {
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));
403
+ Te || (Te = !0, R("%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
404
  };
401
405
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
402
406
  get: i,
@@ -404,10 +408,10 @@ function Sr() {
404
408
  });
405
409
  }
406
410
  }
407
- function or(e, t) {
411
+ function sr(e, t) {
408
412
  {
409
413
  var i = function() {
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));
414
+ Se || (Se = !0, R("%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
415
  };
412
416
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
417
  get: i,
@@ -415,7 +419,7 @@ function Sr() {
415
419
  });
416
420
  }
417
421
  }
418
- var sr = function(e, t, i, o, p, y, a) {
422
+ var lr = function(e, t, i, o, p, y, a) {
419
423
  var l = {
420
424
  // This tag allows us to uniquely identify this as a React Element
421
425
  $$typeof: v,
@@ -444,12 +448,12 @@ function Sr() {
444
448
  value: p
445
449
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
446
450
  };
447
- function lr(e, t, i, o, p) {
451
+ function ar(e, t, i, o, p) {
448
452
  {
449
453
  var y, a = {}, l = null, E = null;
450
- i !== void 0 && (je(i), l = "" + i), tr(t) && (je(t.key), l = "" + t.key), rr(t) && (E = t.ref, nr(t, p));
454
+ i !== void 0 && (Ce(i), l = "" + i), nr(t) && (Ce(t.key), l = "" + t.key), tr(t) && (E = t.ref, ir(t, p));
451
455
  for (y in t)
452
- q.call(t, y) && !er.hasOwnProperty(y) && (a[y] = t[y]);
456
+ q.call(t, y) && !rr.hasOwnProperty(y) && (a[y] = t[y]);
453
457
  if (e && e.defaultProps) {
454
458
  var d = e.defaultProps;
455
459
  for (y in d)
@@ -457,28 +461,28 @@ function Sr() {
457
461
  }
458
462
  if (l || E) {
459
463
  var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- l && ir(a, b), E && or(a, b);
464
+ l && or(a, b), E && sr(a, b);
461
465
  }
462
- return sr(e, l, E, p, o, Ee.current, a);
466
+ return lr(e, l, E, p, o, K.current, a);
463
467
  }
464
468
  }
465
- var he = A.ReactCurrentOwner, Se = A.ReactDebugCurrentFrame;
466
- function W(e) {
469
+ var ge = F.ReactCurrentOwner, Pe = F.ReactDebugCurrentFrame;
470
+ function $(e) {
467
471
  if (e) {
468
- var t = e._owner, i = Q(e.type, e._source, t ? t.type : null);
469
- Se.setExtraStackFrame(i);
472
+ var t = e._owner, i = ee(e.type, e._source, t ? t.type : null);
473
+ Pe.setExtraStackFrame(i);
470
474
  } else
471
- Se.setExtraStackFrame(null);
475
+ Pe.setExtraStackFrame(null);
472
476
  }
473
- var ve;
474
- ve = !1;
475
- function ge(e) {
477
+ var me;
478
+ me = !1;
479
+ function ye(e) {
476
480
  return typeof e == "object" && e !== null && e.$$typeof === v;
477
481
  }
478
- function Pe() {
482
+ function ke() {
479
483
  {
480
- if (he.current) {
481
- var e = O(he.current.type);
484
+ if (ge.current) {
485
+ var e = P(ge.current.type);
482
486
  if (e)
483
487
  return `
484
488
 
@@ -487,13 +491,13 @@ Check the render method of \`` + e + "`.";
487
491
  return "";
488
492
  }
489
493
  }
490
- function ar(e) {
494
+ function cr(e) {
491
495
  return "";
492
496
  }
493
- var ke = {};
494
- function cr(e) {
497
+ var Oe = {};
498
+ function ur(e) {
495
499
  {
496
- var t = Pe();
500
+ var t = ke();
497
501
  if (!t) {
498
502
  var i = typeof e == "string" ? e : e.displayName || e.name;
499
503
  i && (t = `
@@ -503,39 +507,39 @@ Check the top-level render call using <` + i + ">.");
503
507
  return t;
504
508
  }
505
509
  }
506
- function Oe(e, t) {
510
+ function Ie(e, t) {
507
511
  {
508
512
  if (!e._store || e._store.validated || e.key != null)
509
513
  return;
510
514
  e._store.validated = !0;
511
- var i = cr(t);
512
- if (ke[i])
515
+ var i = ur(t);
516
+ if (Oe[i])
513
517
  return;
514
- ke[i] = !0;
518
+ Oe[i] = !0;
515
519
  var o = "";
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);
520
+ e && e._owner && e._owner !== ge.current && (o = " It was passed a child from " + P(e._owner.type) + "."), $(e), R('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), $(null);
517
521
  }
518
522
  }
519
- function Ie(e, t) {
523
+ function Ae(e, t) {
520
524
  {
521
525
  if (typeof e != "object")
522
526
  return;
523
- if (pe(e))
527
+ if (he(e))
524
528
  for (var i = 0; i < e.length; i++) {
525
529
  var o = e[i];
526
- ge(o) && Oe(o, t);
530
+ ye(o) && Ie(o, t);
527
531
  }
528
- else if (ge(e))
532
+ else if (ye(e))
529
533
  e._store && (e._store.validated = !0);
530
534
  else if (e) {
531
- var p = te(e);
535
+ var p = ne(e);
532
536
  if (typeof p == "function" && p !== e.entries)
533
537
  for (var y = p.call(e), a; !(a = y.next()).done; )
534
- ge(a.value) && Oe(a.value, t);
538
+ ye(a.value) && Ie(a.value, t);
535
539
  }
536
540
  }
537
541
  }
538
- function ur(e) {
542
+ function fr(e) {
539
543
  {
540
544
  var t = e.type;
541
545
  if (t == null || typeof t == "string")
@@ -550,107 +554,111 @@ Check the top-level render call using <` + i + ">.");
550
554
  else
551
555
  return;
552
556
  if (i) {
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
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
557
+ var o = P(t);
558
+ Xe(i, e.props, "prop", o, e);
559
+ } else if (t.PropTypes !== void 0 && !me) {
560
+ me = !0;
561
+ var p = P(t);
562
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
559
563
  }
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.");
564
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
565
  }
562
566
  }
563
- function fr(e) {
567
+ function pr(e) {
564
568
  {
565
569
  for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
566
570
  var o = t[i];
567
571
  if (o !== "children" && o !== "key") {
568
- W(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), W(null);
572
+ $(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null);
569
573
  break;
570
574
  }
571
575
  }
572
- e.ref !== null && (W(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
576
+ e.ref !== null && ($(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
573
577
  }
574
578
  }
575
579
  var Fe = {};
576
- function Ae(e, t, i, o, p, y) {
580
+ function De(e, t, i, o, p, y) {
577
581
  {
578
- var a = le(e);
582
+ var a = ae(e);
579
583
  if (!a) {
580
584
  var l = "";
581
585
  (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 = ar();
583
- E ? l += E : l += Pe();
586
+ var E = cr();
587
+ E ? l += E : l += ke();
584
588
  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);
589
+ e === null ? d = "null" : he(e) ? d = "array" : e !== void 0 && e.$$typeof === v ? (d = "<" + (P(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, R("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
590
  }
587
- var b = lr(e, t, i, p, y);
591
+ var b = ar(e, t, i, p, y);
588
592
  if (b == null)
589
593
  return b;
590
594
  if (a) {
591
- var P = t.children;
592
- if (P !== void 0)
595
+ var k = t.children;
596
+ if (k !== void 0)
593
597
  if (o)
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
+ if (he(k)) {
599
+ for (var B = 0; B < k.length; B++)
600
+ Ae(k[B], e);
601
+ Object.freeze && Object.freeze(k);
598
602
  } else
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.");
603
+ R("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
604
  else
601
- Ie(P, e);
605
+ Ae(k, e);
602
606
  }
603
607
  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
- j(`A props object containing a "key" prop is being spread into JSX:
608
+ var L = P(e), C = Object.keys(t).filter(function(xr) {
609
+ return xr !== "key";
610
+ }), xe = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!Fe[L + xe]) {
612
+ var yr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
613
+ R(`A props object containing a "key" prop is being spread into JSX:
610
614
  let props = %s;
611
615
  <%s {...props} />
612
616
  React keys must be passed directly to JSX without using spread:
613
617
  let props = %s;
614
- <%s key={someKey} {...props} />`, me, L, mr, L), Fe[L + me] = !0;
618
+ <%s key={someKey} {...props} />`, xe, L, yr, L), Fe[L + xe] = !0;
615
619
  }
616
620
  }
617
- return e === c ? fr(b) : ur(b), b;
621
+ return e === c ? pr(b) : fr(b), b;
618
622
  }
619
623
  }
620
- function pr(e, t, i) {
621
- return Ae(e, t, i, !0);
622
- }
623
624
  function hr(e, t, i) {
624
- return Ae(e, t, i, !1);
625
+ return De(e, t, i, !0);
626
+ }
627
+ function vr(e, t, i) {
628
+ return De(e, t, i, !1);
625
629
  }
626
- var vr = hr, gr = pr;
627
- H.Fragment = c, H.jsx = vr, H.jsxs = gr;
628
- }()), H;
630
+ var gr = vr, mr = hr;
631
+ G.Fragment = c, G.jsx = gr, G.jsxs = mr;
632
+ }()), G;
629
633
  }
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,
634
+ process.env.NODE_ENV === "production" ? de.exports = Sr() : de.exports = Pr();
635
+ var n = de.exports;
636
+ const kr = "_entityCard_1xtgw_1", Or = "_pcCover_1xtgw_15", Ir = "_pcSection_1xtgw_31", Ar = "_pcBreadcrumbSep_1xtgw_38", Fr = "_pcBasic_1xtgw_43", Dr = "_pcBasicRow_1xtgw_49", Nr = "_pcBasicRowLeft_1xtgw_56", Lr = "_pcLinkIconRight_1xtgw_61", Wr = "_pcColorSwatch_1xtgw_72", $r = "_pcIconDot_1xtgw_77", Br = "_pcTitleLink_1xtgw_82", Mr = "_pcTitleText_1xtgw_99", Ur = "_pcSubTitleText_1xtgw_106", Vr = "_pcExternalIcon_1xtgw_113", Yr = "_pcProperties_1xtgw_119", zr = "_pcProperty_1xtgw_127", Jr = "_pcTagsRow_1xtgw_138", qr = "_pcTag_1xtgw_138", Kr = "_pcDetails_1xtgw_151", Hr = "_pcRow_1xtgw_157", Gr = "_pcCol_1xtgw_72", Xr = "_pcColLabel_1xtgw_179", Zr = "_pcColValue_1xtgw_183", Qr = "_pcProgressText_1xtgw_188", et = "_entityLabel_1xtgw_194", h = {
637
+ entityCard: kr,
638
+ pcCover: Or,
639
+ pcSection: Ir,
640
+ pcBreadcrumbSep: Ar,
637
641
  pcBasic: Fr,
638
- pcBasicRow: Ar,
642
+ pcBasicRow: Dr,
639
643
  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
644
+ pcLinkIconRight: Lr,
645
+ pcColorSwatch: Wr,
646
+ pcIconDot: $r,
647
+ pcTitleLink: Br,
648
+ pcTitleText: Mr,
649
+ pcSubTitleText: Ur,
650
+ pcExternalIcon: Vr,
651
+ pcProperties: Yr,
652
+ pcProperty: zr,
653
+ pcTagsRow: Jr,
654
+ pcTag: qr,
655
+ pcDetails: Kr,
656
+ pcRow: Hr,
657
+ pcCol: Gr,
658
+ pcColLabel: Xr,
659
+ pcColValue: Zr,
660
+ pcProgressText: Qr,
661
+ entityLabel: et
654
662
  }, $e = (r) => {
655
663
  if (!r) return null;
656
664
  const v = r.trim(), s = {
@@ -663,12 +671,12 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
663
671
  time: "Clock",
664
672
  tags: "Tag"
665
673
  }[v] ?? v.replace(/(^\w|-\w)/g, (m) => m.replace("-", "").toUpperCase());
666
- return Ue[s] || null;
667
- }, Gr = (r, v) => {
674
+ return Ve[s] || null;
675
+ }, rt = (r, v) => {
668
676
  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
677
  return /* @__PURE__ */ n.jsxs("div", { className: h.pcProgress, children: [
670
678
  /* @__PURE__ */ n.jsx(
671
- br,
679
+ wr,
672
680
  {
673
681
  percent: c,
674
682
  showInfo: !1,
@@ -678,8 +686,8 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
678
686
  ),
679
687
  (v == null ? void 0 : v.text) && /* @__PURE__ */ n.jsx("div", { className: h.pcProgressText, children: v.text })
680
688
  ] });
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,
689
+ }, Ye = (r) => !Array.isArray(r) || r.length === 0 ? null : /* @__PURE__ */ n.jsx("div", { className: h.pcTagsRow, children: r.map((v, f) => /* @__PURE__ */ n.jsx(
690
+ Ue,
683
691
  {
684
692
  color: "default",
685
693
  style: {
@@ -692,10 +700,10 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
692
700
  children: String(v)
693
701
  },
694
702
  `${v}-${f}`
695
- )) }), Xr = (r) => {
703
+ )) }), tt = (r) => {
696
704
  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 = ({
705
+ return v === "percent_bar" ? rt(f, c) : v === "tags" ? Ye(Array.isArray(f) ? f : []) : /* @__PURE__ */ n.jsx("div", { className: h.pcColValue, children: String(f ?? "") });
706
+ }, ze = ({
699
707
  data: r
700
708
  }) => {
701
709
  var v, f, c;
@@ -709,7 +717,7 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
709
717
  }
710
718
  ),
711
719
  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,
720
+ br,
713
721
  {
714
722
  items: r.categories.map((s, g) => ({
715
723
  key: `${s}-${g}`,
@@ -763,7 +771,7 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
763
771
  title: r.url,
764
772
  className: h.pcLinkIconRight,
765
773
  children: /* @__PURE__ */ n.jsx(
766
- Er,
774
+ Cr,
767
775
  {
768
776
  style: { width: 12, height: 12, color: "#027FFE" }
769
777
  }
@@ -774,7 +782,7 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
774
782
  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
783
  const m = $e(s.icon), w = () => {
776
784
  if (s.view === "tags")
777
- return Ve(Array.isArray(s.value) ? s.value : []);
785
+ return Ye(Array.isArray(s.value) ? s.value : []);
778
786
  if (s.view === "datetime_with_time_zone") {
779
787
  const u = String(s.value ?? "");
780
788
  return /* @__PURE__ */ n.jsx("span", { className: h.pcPropertyValue, children: u });
@@ -804,16 +812,16 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
804
812
  style: {
805
813
  gridTemplateColumns: w <= 1 ? "1fr" : "repeat(2, minmax(0, 1fr))"
806
814
  },
807
- children: m.map((u, R) => /* @__PURE__ */ n.jsxs("div", { className: h.pcCol, children: [
808
- Xr(u),
815
+ children: m.map((u, j) => /* @__PURE__ */ n.jsxs("div", { className: h.pcCol, children: [
816
+ tt(u),
809
817
  u.label && /* @__PURE__ */ n.jsx("div", { className: h.pcColLabel, children: u.label })
810
- ] }, R))
818
+ ] }, j))
811
819
  },
812
820
  g
813
821
  );
814
822
  }) }) }),
815
823
  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,
824
+ Ue,
817
825
  {
818
826
  style: {
819
827
  display: "inline-flex",
@@ -822,14 +830,14 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
822
830
  color: "#027FFE",
823
831
  border: "none"
824
832
  },
825
- icon: /* @__PURE__ */ n.jsx(Cr, { style: { width: 12, height: 12 } }),
833
+ icon: /* @__PURE__ */ n.jsx(Tr, { style: { width: 12, height: 12 } }),
826
834
  color: "default",
827
835
  children: s
828
836
  },
829
837
  g
830
838
  )) })
831
839
  ] });
832
- }, it = ({
840
+ }, ct = ({
833
841
  title: r,
834
842
  subtitle: v,
835
843
  description: f,
@@ -839,26 +847,26 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
839
847
  triggerType: m = "hover",
840
848
  popupMode: w = "modal",
841
849
  trigger: u,
842
- open: R,
850
+ open: j,
843
851
  onOpenChange: _,
844
852
  modalTitle: T,
845
853
  width: S,
846
- placement: k = "right",
847
- data: $,
848
- hoverOpenDelay: re = 500,
849
- closeDelay: te = 200,
850
- autoPlacement: A = !1,
851
- hoverAutoClose: j = !1,
852
- hoverAutoCloseDelay: xe = 2e3,
853
- getPopupContainer: ne,
854
+ placement: O = "right",
855
+ data: W,
856
+ hoverOpenDelay: te = 500,
857
+ closeDelay: ne = 200,
858
+ autoPlacement: F = !1,
859
+ hoverAutoClose: R = !1,
860
+ hoverAutoCloseDelay: _e = 2e3,
861
+ getPopupContainer: ie,
854
862
  viewportPadding: M = 16,
855
- zIndex: ie
863
+ zIndex: oe
856
864
  }) => {
857
865
  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,
866
+ const [se, le] = dr(!1), U = typeof j == "boolean", ae = U ? j : se, ce = (A) => {
867
+ U ? _ == null || _(A) : le(A);
868
+ }, x = W, P = _r(null), I = /* @__PURE__ */ n.jsx(Rr, { type: "default", children: `打开:${(x == null ? void 0 : x.title) ?? r ?? "详情"}` }), D = /* @__PURE__ */ n.jsx("span", { ref: P, style: { display: "inline-block" }, children: u ?? I }), X = /* @__PURE__ */ n.jsx(
869
+ jr,
862
870
  {
863
871
  content: /* @__PURE__ */ n.jsx(
864
872
  "div",
@@ -870,8 +878,8 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
870
878
  maxWidth: (z = x == null ? void 0 : x.style) == null ? void 0 : z.max_width,
871
879
  maxHeight: (J = x == null ? void 0 : x.style) == null ? void 0 : J.max_height
872
880
  },
873
- children: x != null && x.id ? /* @__PURE__ */ n.jsx(Ye, { data: x }) : /* @__PURE__ */ n.jsx(
874
- jr,
881
+ children: x != null && x.id ? /* @__PURE__ */ n.jsx(ze, { data: x }) : /* @__PURE__ */ n.jsx(
882
+ Er,
875
883
  {
876
884
  active: !0,
877
885
  title: !1,
@@ -881,43 +889,44 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
881
889
  )
882
890
  }
883
891
  ),
884
- open: le,
885
- onOpenChange: (F) => {
886
- ae(!!F);
892
+ open: ae,
893
+ onOpenChange: (A) => {
894
+ ce(!!A);
887
895
  },
888
896
  trigger: m,
889
- placement: k,
897
+ placement: O,
890
898
  align: function() {
891
- const F = k, D = M;
892
- switch (F) {
899
+ const A = O, N = M;
900
+ switch (A) {
893
901
  case "top":
894
- return { offset: [0, D] };
902
+ return { offset: [0, N] };
895
903
  case "bottom":
896
- return { offset: [0, -D] };
904
+ return { offset: [0, -N] };
897
905
  case "left":
898
- return { offset: [D, 0] };
906
+ return { offset: [N, 0] };
899
907
  case "right":
900
- return { offset: [-D, 0] };
908
+ return { offset: [-N, 0] };
901
909
  default:
902
910
  return;
903
911
  }
904
912
  }(),
905
- mouseEnterDelay: m === "hover" ? re / 1e3 : 0,
906
- mouseLeaveDelay: m === "hover" ? te / 1e3 : 0,
913
+ mouseEnterDelay: m === "hover" ? te / 1e3 : 0,
914
+ mouseLeaveDelay: m === "hover" ? ne / 1e3 : 0,
907
915
  autoAdjustOverflow: !0,
908
- zIndex: ie,
909
- getPopupContainer: ne ?? (() => document.body),
916
+ zIndex: oe,
917
+ getPopupContainer: ie ?? (() => document.body),
910
918
  overlayStyle: {
911
919
  maxHeight: `calc(100vh - 24px - ${M * 2}px)`,
912
920
  overflowY: "auto",
913
921
  margin: M
914
922
  },
915
923
  overlayInnerStyle: { padding: 0 },
916
- children: N
924
+ children: D
917
925
  }
918
926
  );
919
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: G });
920
- }, Zr = (r) => {
927
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: X });
928
+ }, nt = (r) => {
929
+ if (!r) return null;
921
930
  const v = r.trim(), c = {
922
931
  user: "User",
923
932
  email: "Mail",
@@ -928,8 +937,8 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
928
937
  time: "Clock",
929
938
  tags: "Tag"
930
939
  }[v] ?? v.replace(/(^\w|-\w)/g, (g) => g.replace("-", "").toUpperCase());
931
- return Ue[c] || null;
932
- }, Qr = (r) => {
940
+ return Ve[c] || null;
941
+ }, it = (r) => {
933
942
  if (r) {
934
943
  if (/^mailto:/i.test(r))
935
944
  try {
@@ -939,7 +948,7 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
939
948
  }
940
949
  return r;
941
950
  }
942
- }, We = () => /* @__PURE__ */ n.jsxs(
951
+ }, Be = () => /* @__PURE__ */ n.jsxs(
943
952
  "span",
944
953
  {
945
954
  style: {
@@ -976,19 +985,19 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
976
985
  )
977
986
  ]
978
987
  }
979
- ), et = ({ data: r }) => {
988
+ ), ot = ({ data: r }) => {
980
989
  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) => {
990
+ if (!r || !r.title && !r.icon && !r.subtitle && !r.color && !r.url) return /* @__PURE__ */ n.jsx(Be, {});
991
+ 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 = it(r == null ? void 0 : r.url), g = !!f, m = !!c, w = !!s, u = !!(r != null && r.color) || !!(r != null && r.subtitle), j = (S = 20) => {
983
992
  if (f && /^https?:\/\//i.test(f))
984
993
  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 });
994
+ const O = nt(f || "user"), W = Math.max(8, S - 4);
995
+ return /* @__PURE__ */ n.jsx(Ne, { size: S, icon: O ? /* @__PURE__ */ n.jsx(O, { size: W }) : void 0 });
987
996
  };
988
997
  return g && m && !w && !u ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
989
- R(),
998
+ j(),
990
999
  /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500, lineHeight: "20px" }, title: c, children: c })
991
- ] }) : g && !m && !w && !u ? /* @__PURE__ */ n.jsx("span", { style: { display: "inline-flex" }, children: R() }) : !g && m && !w && !u ? /* @__PURE__ */ n.jsx(
1000
+ ] }) : g && !m && !w && !u ? /* @__PURE__ */ n.jsx("span", { style: { display: "inline-flex" }, children: j() }) : !g && m && !w && !u ? /* @__PURE__ */ n.jsx(
992
1001
  "span",
993
1002
  {
994
1003
  style: { display: "inline-block", color: "#027FFE", fontWeight: 500 },
@@ -996,13 +1005,13 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
996
1005
  children: c
997
1006
  }
998
1007
  ) : g && m && w ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
999
- R(40),
1008
+ j(40),
1000
1009
  /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", flexDirection: "column", justifyContent: "space-between" }, children: [
1001
1010
  /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }),
1002
1011
  /* @__PURE__ */ n.jsx("span", { style: { color: "#888", fontSize: 12 }, title: s, children: s })
1003
1012
  ] })
1004
1013
  ] }) : g && m && u ? /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 8 }, children: [
1005
- R(40),
1014
+ j(40),
1006
1015
  /* @__PURE__ */ n.jsxs("span", { style: { display: "inline-flex", flexDirection: "column", justifyContent: "space-between" }, children: [
1007
1016
  /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }),
1008
1017
  /* @__PURE__ */ n.jsxs(
@@ -1034,9 +1043,9 @@ const Pr = "_entityCard_1xtgw_1", kr = "_pcCover_1xtgw_15", Or = "_pcSection_1xt
1034
1043
  }
1035
1044
  )
1036
1045
  ] })
1037
- ] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(We, {});
1046
+ ] }) : m ? /* @__PURE__ */ n.jsx("span", { style: { color: "#027FFE", fontWeight: 500 }, title: c, children: c }) : /* @__PURE__ */ n.jsx(Be, {});
1038
1047
  };
1039
- function ot({ data: r }) {
1048
+ function ut({ data: r }) {
1040
1049
  var f, c, s, g;
1041
1050
  const v = ((r == null ? void 0 : r.type) ?? "").toLowerCase() === "user";
1042
1051
  return /* @__PURE__ */ n.jsx(
@@ -1049,7 +1058,7 @@ function ot({ data: r }) {
1049
1058
  maxWidth: (s = r == null ? void 0 : r.style) == null ? void 0 : s.max_width,
1050
1059
  maxHeight: (g = r == null ? void 0 : r.style) == null ? void 0 : g.max_height
1051
1060
  },
1052
- children: r != null && r.id ? v ? /* @__PURE__ */ n.jsx(et, { data: r }) : /* @__PURE__ */ n.jsx(Ye, { data: r }) : /* @__PURE__ */ n.jsxs(
1061
+ children: r != null && r.id ? v ? /* @__PURE__ */ n.jsx(ot, { data: r }) : /* @__PURE__ */ n.jsx(ze, { data: r }) : /* @__PURE__ */ n.jsxs(
1053
1062
  "span",
1054
1063
  {
1055
1064
  style: {
@@ -1091,7 +1100,7 @@ function ot({ data: r }) {
1091
1100
  );
1092
1101
  }
1093
1102
  export {
1094
- it as EntityCard,
1095
- ot as EntityLabel,
1096
- et as EntityUser
1103
+ ct as EntityCard,
1104
+ ut as EntityLabel,
1105
+ ot as EntityUser
1097
1106
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinilabs/entity-ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -46,5 +46,9 @@
46
46
  "vite": "^5.4.1",
47
47
  "vite-plugin-css-injected-by-js": "^3.5.1",
48
48
  "vite-plugin-dts": "^3.9.0"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/infinilabs/ci"
49
53
  }
50
54
  }