👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
40 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,76820,245538,e=>{"use strict";var t=e.i(84443).Col;e.s(["Col",()=>t],76820);var r=e.i(247699).Row;e.s(["Row",()=>r],245538)},82275,e=>{"use strict";let t;var r=e.i(879971),i=e.i(114070),a=e.i(465235),s=e.i(84813),n=e.i(895564),l=e.i(492363),o=e.i(456298),c=e.i(974233),d=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#i=void 0;#a=void 0;#s=void 0;#n;#l;#r;#t;#o;#c;#d;#u;#h;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#i.addObserver(this),u(this.#i,this.options)?this.#f():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#i,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#i,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#x(),this.#i.removeObserver(this)}setOptions(e){let t=this.options,r=this.#i;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveQueryBoolean)(this.options.enabled,this.#i))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#y(),this.#i.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#i,observer:this});let i=this.hasListeners();i&&p(this.#i,r,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#i!==r||(0,o.resolveQueryBoolean)(this.options.enabled,this.#i)!==(0,o.resolveQueryBoolean)(t.enabled,this.#i)||(0,o.resolveStaleTime)(this.options.staleTime,this.#i)!==(0,o.resolveStaleTime)(t.staleTime,this.#i))&&this.#b();let a=this.#$();i&&(this.#i!==r||(0,o.resolveQueryBoolean)(this.options.enabled,this.#i)!==(0,o.resolveQueryBoolean)(t.enabled,this.#i)||a!==this.#p)&&this.#S(a)}getOptimisticResult(e){var t,r;let i=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(i,e);return t=this,r=a,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#s=a,this.#l=this.options,this.#n=this.#i.state),a}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#i}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#f(e){this.#y();let t=this.#i.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#b(){this.#v();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#i);if(i.environmentManager.isServer()||this.#s.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#s.dataUpdatedAt,e);this.#u=c.timeoutManager.setTimeout(()=>{this.#s.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#S(e){this.#x(),this.#p=e,!i.environmentManager.isServer()&&!1!==(0,o.resolveQueryBoolean)(this.options.enabled,this.#i)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#h=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#f()},this.#p))}#g(){this.#b(),this.#S(this.#$())}#v(){void 0!==this.#u&&(c.timeoutManager.clearTimeout(this.#u),this.#u=void 0)}#x(){void 0!==this.#h&&(c.timeoutManager.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,i=this.#i,a=this.options,n=this.#s,c=this.#n,d=this.#l,h=e!==i?e.state:this.#a,{state:f}=e,g={...f},v=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&u(e,t),l=r&&p(e,i,t,a);(n||l)&&(g={...g,...(0,s.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:y,status:b}=g;r=g.data;let $=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===b){let e;n?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=n.data,$=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,void 0!==e&&(b="success",r=(0,o.replaceData)(n?.data,e,t),v=!0)}if(t.select&&void 0!==r&&!$)if(n&&r===c?.data&&t.select===this.#o)r=this.#c;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(n?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(x=this.#t,r=this.#c,y=Date.now(),b="error");let S="fetching"===g.fetchStatus,R="pending"===b,j="error"===b,w=R&&S,C=void 0!==r,T={status:b,fetchStatus:g.fetchStatus,isPending:R,isSuccess:"success"===b,isError:j,isInitialLoading:w,isLoading:w,data:r,dataUpdatedAt:g.dataUpdatedAt,error:x,errorUpdatedAt:y,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&!R,isLoadingError:j&&!C,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:j&&C,isStale:m(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,r="error"===T.status&&!t,a=e=>{r?e.reject(T.error):t&&e.resolve(T.data)},s=()=>{a(this.#r=T.promise=(0,l.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===i.queryHash&&a(n);break;case"fulfilled":(r||T.data!==n.value)&&s();break;case"rejected":r&&T.error===n.reason||s()}}return T}updateResult(){let e=this.#s,t=this.createResult(this.#i,this.options);if(this.#n=this.#i.state,this.#l=this.options,void 0!==this.#n.data&&(this.#d=this.#i),(0,o.shallowEqualObjects)(t,e))return;this.#s=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#m.size)return!0;let i=new Set(r??this.#m);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(t=>this.#s[t]!==e[t]&&i.has(t))};this.#R({listeners:r()})}#y(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#i)return;let t=this.#i;this.#i=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#R(e){a.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#i,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==(0,o.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,o.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==(0,o.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&m(e,t)}return!1}function p(e,t,r,i){return(e!==t||!1===(0,o.resolveQueryBoolean)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,o.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}var f=e.i(191788),g=e.i(755224);e.i(391398);var v=f.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),x=f.createContext(!1);x.Provider;var y=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){var s,n,l,c;let d,u=f.useContext(x),h=f.useContext(v),p=(0,g.useQueryClient)(r),m=p.defaultQueryOptions(e);null==(n=null==(s=p.getDefaultOptions().queries)?void 0:s._experimental_beforeQuery)||n.call(s,m);let b=p.getQueryCache().get(m.queryHash);if(m._optimisticResults=u?"isRestoring":"optimistic",m.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=m.staleTime;m.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof m.gcTime&&(m.gcTime=Math.max(m.gcTime,1e3))}d=(null==b?void 0:b.state.error)&&"function"==typeof m.throwOnError?(0,o.shouldThrowError)(m.throwOnError,[b.state.error,b]):m.throwOnError,(m.suspense||m.experimental_prefetchInRender||d)&&!h.isReset()&&(m.retryOnMount=!1),f.useEffect(()=>{h.clearReset()},[h]);let $=!p.getQueryCache().get(m.queryHash),[S]=f.useState(()=>new t(p,m)),R=S.getOptimisticResult(m),j=!u&&!1!==e.subscribed;if(f.useSyncExternalStore(f.useCallback(e=>{let t=j?S.subscribe(a.notifyManager.batchCalls(e)):o.noop;return S.updateResult(),t},[S,j]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),f.useEffect(()=>{S.setOptions(m)},[m,S]),(null==m?void 0:m.suspense)&&R.isPending)throw y(m,S,h);if((({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(a&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,i])))({result:R,errorResetBoundary:h,throwOnError:m.throwOnError,query:b,suspense:m.suspense}))throw R.error;if(null==(c=null==(l=p.getDefaultOptions().queries)?void 0:l._experimental_afterQuery)||c.call(l,m,R),m.experimental_prefetchInRender&&!i.environmentManager.isServer()&&R.isLoading&&R.isFetching&&!u){let e=$?y(m,S,h):null==b?void 0:b.promise;null==e||e.catch(o.noop).finally(()=>{S.updateResult()})}return m.notifyOnChangeProps?R:S.trackResult(R)}(e,d,t)}],82275)},100264,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},i=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let s=t.forwardRef((e,s)=>t.createElement(i.default,a({},e,{ref:s,icon:r})));e.s(["default",()=>s],100264)},106555,e=>{"use strict";var t=e.i(379049),r=e.i(56206),i=e.i(191788),a=e.i(814432),s=e.i(889590),n=e.i(391398);e.s(["GridContent",0,e=>{let l=(0,i.useContext)(a.RouteContext),{children:o,contentWidth:c,className:d,style:u}=e,{getPrefixCls:h}=(0,i.useContext)(t.ConfigProvider.ConfigContext),p=e.prefixCls||h("pro"),m=c||l.contentWidth,f=`${p}-grid-content`,{wrapSSR:g,hashId:v}=(0,s.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${f}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),x="Fixed"===m&&"top"===l.layout;return g((0,n.jsx)("div",{className:(0,r.clsx)(f,v,d,{[`${f}-wide`]:x}),style:u,"data-testid":"pro-grid-content",children:(0,n.jsx)("div",{className:(0,r.clsx)(`${p}-grid-content-children`,v),children:o})}))}],106555)},198968,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},i=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let s=t.forwardRef((e,s)=>t.createElement(i.default,a({},e,{ref:s,icon:r})));e.s(["default",()=>s],198968)},265992,e=>{"use strict";var t=e.i(100264);e.s(["EditOutlined",()=>t.default])},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},400056,e=>{"use strict";let t=new Intl.NumberFormat("en-US"),r=e=>{let r=Number(e);return Number.isFinite(r)?t.format(r):""};e.s(["formatNumber",0,r,"formatYuan",0,e=>`\xa5 ${r(e)}`])},439214,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},i=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let s=t.forwardRef((e,s)=>t.createElement(i.default,a({},e,{ref:s,icon:r})));e.s(["default",()=>s],439214)},460744,e=>{"use strict";var t=e.i(391398),r=e.i(191788),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},a=e.i(117716);function s(){return(s=Object.assign.bind()).apply(this,arguments)}let n=r.forwardRef((e,t)=>r.createElement(a.default,s({},e,{ref:t,icon:i})));var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"};function o(){return(o=Object.assign.bind()).apply(this,arguments)}let c=r.forwardRef((e,t)=>r.createElement(a.default,o({},e,{ref:t,icon:l})));var d=e.i(849945);function u(){return(u=Object.assign.bind()).apply(this,arguments)}let h=r.forwardRef((e,t)=>r.createElement(a.default,u({},e,{ref:t,icon:d.default})));var p=e.i(360618),m=e.i(106555),f=e.i(82275),g=e.i(397591),v=e.i(946077),x=e.i(76820),y=e.i(914173),b=e.i(900195),$=e.i(146601),S=e.i(245538),R=e.i(543330),j=e.i(827830);let w=(0,j.createStyles)(({token:e})=>({avatarHolder:{marginBottom:"24px",textAlign:"center","& > img":{width:"104px",height:"104px",marginBottom:"20px"}},name:{marginBottom:"4px",color:e.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},detail:{p:{position:"relative",marginBottom:"8px",paddingLeft:"26px","&:last-child":{marginBottom:"0"}},i:{position:"absolute",top:"4px",left:"0",width:"14px",height:"14px"}},tagsTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},teamTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},tags:{},team:{".ant-avatar":{marginRight:"12px"},a:{display:"block",marginBottom:"24px",overflow:"hidden",color:e.colorText,whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",transition:"color 0.3s","&:hover":{color:e.colorPrimary}}},tabsCard:{".ant-card-head":{padding:"0 16px"}}}));var C=e.i(770042),T=e.i(265992),z=e.i(995746),E=e.i(241818),I=e.i(807073),Q=e.i(326440),L=e.i(3287),O=e.i(400056);e.i(113297);var M=e.i(134124);async function B(){return(0,M.request)("/api/currentUserDetail")}async function N(e){return(0,M.request)("/api/fake_list_Detail",{params:e})}let H=(0,j.createStyles)(({token:e})=>({filterCardList:{marginBottom:"-24px",".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:e.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}})),k=({activeUser:e,newUser:r})=>{let{styles:i}=H();return(0,t.jsxs)("div",{className:i.cardInfo,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"活跃用户"}),(0,t.jsx)("p",{children:e})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"新增用户"}),(0,t.jsx)("p",{children:r})]})]})};var F=()=>{let{styles:e}=H(),{data:r}=(0,f.useQuery)({queryKey:["applications-list",30],queryFn:()=>N({count:30}).then(e=>e.data)});return(0,t.jsx)(Q.List,{rowKey:"id",className:e.filterCardList,grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:r?.list||[],renderItem:e=>(0,t.jsx)(Q.List.Item,{children:(0,t.jsxs)(v.Card,{hoverable:!0,styles:{body:{paddingBottom:20}},actions:[(0,t.jsx)(L.Tooltip,{title:"下载",children:(0,t.jsx)(C.DownloadOutlined,{})},"download"),(0,t.jsx)(L.Tooltip,{title:"编辑",children:(0,t.jsx)(T.EditOutlined,{})},"edit"),(0,t.jsx)(L.Tooltip,{title:"分享",children:(0,t.jsx)(E.ShareAltOutlined,{})},"share"),(0,t.jsx)(I.Dropdown,{menu:{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2nd menu item"}]},children:(0,t.jsx)(z.EllipsisOutlined,{})},"ellipsis")],children:[(0,t.jsx)(v.Card.Meta,{avatar:(0,t.jsx)(g.Avatar,{size:"small",src:e.avatar}),title:e.title}),(0,t.jsx)("div",{children:(0,t.jsx)(k,{activeUser:function(e){let r=+e;if(!r||Number.isNaN(r))return"";let i=e;return e>1e4&&(i=(0,t.jsxs)("span",{children:[Math.floor(e/1e4),(0,t.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"万"})]})),i}(e.activeUser),newUser:(0,O.formatNumber)(e.newUser)})})]})},e.id)})},D=e.i(927494),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"};function G(){return(G=Object.assign.bind()).apply(this,arguments)}let P=r.forwardRef((e,t)=>r.createElement(a.default,G({},e,{ref:t,icon:q})));var W={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:t}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:e}}]}},name:"star",theme:"twotone"};function A(){return(A=Object.assign.bind()).apply(this,arguments)}let _=r.forwardRef((e,t)=>r.createElement(a.default,A({},e,{ref:t,icon:W})));e.i(49949);var U=e.i(760705);let V=(0,j.createStyles)(({token:e})=>({articleList:{".ant-list-item:first-child":{paddingTop:"0"}},listItemMetaTitle:{color:e.colorTextHeading}})),K=({icon:e,text:r})=>(0,t.jsxs)("span",{children:[e," ",r]});var X=()=>{let{styles:e}=V(),{data:r}=(0,f.useQuery)({queryKey:["articles-list",30],queryFn:()=>N({count:30}).then(e=>e.data)});return(0,t.jsx)(Q.List,{size:"large",className:e.articleList,rowKey:"id",itemLayout:"vertical",dataSource:r?.list||[],style:{margin:"0 -24px"},renderItem:r=>(0,t.jsxs)(Q.List.Item,{actions:[(0,t.jsx)(K,{icon:(0,t.jsx)(_,{}),text:r.star},"star"),(0,t.jsx)(K,{icon:(0,t.jsx)(D.LikeOutlined,{}),text:r.like},"like"),(0,t.jsx)(K,{icon:(0,t.jsx)(P,{}),text:r.message},"message")],children:[(0,t.jsx)(Q.List.Item.Meta,{title:(0,t.jsx)("a",{className:e.listItemMetaTitle,href:r.href,children:r.title}),description:(0,t.jsxs)(b.Flex,{wrap:!0,gap:"small",children:[(0,t.jsx)(R.Tag,{children:"Ant Design"}),(0,t.jsx)(R.Tag,{children:"设计语言"}),(0,t.jsx)(R.Tag,{children:"蚂蚁集团"})]})}),(0,t.jsx)(U.ArticleListContent,{data:r})]},r.id)})},Y=e.i(494834),J=e.i(812673);let Z=(0,j.createStyles)(({token:e})=>({card:{".ant-card-meta-title":{marginBottom:"4px","& > a":{display:"inline-block",maxWidth:"100%",color:e.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:e.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:e.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}));var ee=()=>{let{styles:e}=Z(),{data:r}=(0,f.useQuery)({queryKey:["projects-list",30],queryFn:()=>N({count:30}).then(e=>e.data)});return(0,t.jsx)(Q.List,{className:e.coverCardList,rowKey:"id",grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:r?.list||[],renderItem:r=>(0,t.jsx)(Q.List.Item,{children:(0,t.jsxs)(v.Card,{className:e.card,hoverable:!0,cover:(0,t.jsx)("img",{alt:r.title,src:r.cover}),children:[(0,t.jsx)(v.Card.Meta,{title:(0,t.jsx)("a",{children:r.title}),description:r.subDescription}),(0,t.jsxs)("div",{className:e.cardItemContent,children:[(0,t.jsx)("span",{children:(0,Y.default)(r.updatedAt).fromNow()}),(0,t.jsx)("div",{className:e.avatarList,children:(0,t.jsx)(J.AvatarList,{size:"small",children:r.members.map(e=>(0,t.jsx)(J.AvatarList.Item,{src:e.avatar,tips:e.name},`${r.id}-avatar-${e.id}`))})})]})]})})})};let et=[{key:"articles",tab:(0,t.jsxs)("span",{children:["文章"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"applications",tab:(0,t.jsxs)("span",{children:["应用"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"projects",tab:(0,t.jsxs)("span",{children:["项目"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})}],er=({tags:e})=>{let{styles:i}=w(),a=(0,r.useRef)(null),[s,n]=(0,r.useState)([]),[l,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),u=()=>{let e=[...s];c&&0===e.filter(e=>e.label===c).length&&(e=[...e,{key:`new-${e.length}`,label:c}]),n(e),o(!1),d("")};return(0,t.jsxs)("div",{className:i.tags,children:[(0,t.jsx)("div",{className:i.tagsTitle,children:"标签"}),(0,t.jsxs)(b.Flex,{wrap:!0,gap:"small",children:[(e||[]).concat(s).map(e=>(0,t.jsx)(R.Tag,{children:e.label},e.key)),l&&(0,t.jsx)($.Input,{ref:a,size:"small",style:{width:78},value:c,onChange:e=>{d(e.target.value)},onBlur:u,onPressEnter:u}),!l&&(0,t.jsx)(R.Tag,{onClick:()=>{o(!0),a.current&&a.current?.focus()},style:{borderStyle:"dashed"},children:(0,t.jsx)(p.PlusOutlined,{})})]})]})};var ei=()=>{let{styles:e}=w(),[i,a]=(0,r.useState)("articles"),{data:s,isLoading:l}=(0,f.useQuery)({queryKey:["current-user"],queryFn:()=>B().then(e=>e.data)});return(0,t.jsx)(m.GridContent,{children:(0,t.jsxs)(S.Row,{gutter:24,children:[(0,t.jsx)(x.Col,{lg:7,md:24,children:(0,t.jsx)(v.Card,{variant:"borderless",style:{marginBottom:24},loading:l,children:!l&&s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:e.avatarHolder,children:[(0,t.jsx)("img",{alt:"",src:s.avatar}),(0,t.jsx)("div",{className:e.name,children:s.name}),(0,t.jsx)("div",{children:s?.signature})]}),(({title:r,group:i,geographic:a})=>(0,t.jsxs)("div",{className:e.detail,children:[(0,t.jsxs)("p",{children:[(0,t.jsx)(c,{style:{marginRight:8}}),r]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(n,{style:{marginRight:8}}),i]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(h,{style:{marginRight:8}}),(a||{province:{label:""}}).province.label,(a||{city:{label:""}}).city.label]})]}))(s),(0,t.jsx)(y.Divider,{dashed:!0}),(0,t.jsx)(er,{tags:s.tags||[]}),(0,t.jsx)(y.Divider,{style:{marginTop:16},dashed:!0}),(0,t.jsxs)("div",{className:e.team,children:[(0,t.jsx)("div",{className:e.teamTitle,children:"团队"}),(0,t.jsx)(S.Row,{gutter:36,children:s.notice?.map(e=>(0,t.jsx)(x.Col,{lg:24,xl:12,children:(0,t.jsxs)("a",{href:e.href,children:[(0,t.jsx)(g.Avatar,{size:"small",src:e.logo}),e.member]})},e.id))})]})]})})}),(0,t.jsx)(x.Col,{lg:17,md:24,children:(0,t.jsx)(v.Card,{className:e.tabsCard,variant:"borderless",tabList:et,activeTabKey:i,onTabChange:e=>{a(e)},children:"projects"===i?(0,t.jsx)(ee,{}):"applications"===i?(0,t.jsx)(F,{}):"articles"===i?(0,t.jsx)(X,{}):null})})]})})};e.s(["default",()=>ei],460744)},770042,241818,e=>{"use strict";var t=e.i(198968);e.s(["DownloadOutlined",()=>t.default],770042);var r=e.i(191788),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},a=e.i(117716);function s(){return(s=Object.assign.bind()).apply(this,arguments)}let n=r.forwardRef((e,t)=>r.createElement(a.default,s({},e,{ref:t,icon:i})));e.s(["ShareAltOutlined",()=>n],241818)},812673,e=>{"use strict";var t=e.i(549824);e.s(["AvatarList",()=>t.default])},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},900195,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(56206),a=e.i(239988),s=e.i(497630),n=e.i(934854),l=e.i(993175),o=e.i(352050),c=e.i(104616);let d=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],h=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var p=(0,o.genStyleHooks)("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:i}=e,a=(0,c.mergeToken)(e,{flexGapSM:t,flexGap:r,flexGapLG:i});return[(e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}})(a),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}})(a),(e=>{let{componentCls:t}=e,r={};return d.forEach(e=>{r[`${t}-wrap-${e}`]={flexWrap:e}}),r})(a),(e=>{let{componentCls:t}=e,r={};return h.forEach(e=>{r[`${t}-align-${e}`]={alignItems:e}}),r})(a),(e=>{let{componentCls:t}=e,r={};return u.forEach(e=>{r[`${t}-justify-${e}`]={justifyContent:e}}),r})(a)]},()=>({}),{resetStyle:!1});let m=t.default.forwardRef((e,o)=>{var c;let m,f,g,{prefixCls:v,rootClassName:x,className:y,style:b,flex:$,gap:S,vertical:R,orientation:j,component:w="div",children:C,...T}=e,{flex:z,direction:E,getPrefixCls:I}=t.default.useContext(l.ConfigContext),Q=I("flex",v),[L,O]=p(Q),[,M]=(0,s.useOrientation)(j,R??z?.vertical),B=(0,i.clsx)(y,x,z?.className,Q,L,O,(c={...e,vertical:M},(0,i.clsx)({...(m=!0===c.wrap?"wrap":c.wrap,{[`${Q}-wrap-${m}`]:m&&d.includes(m)}),...(f={},h.forEach(e=>{f[`${Q}-align-${e}`]=c.align===e}),f[`${Q}-align-stretch`]=!c.align&&!!c.vertical,f),...(g={},u.forEach(e=>{g[`${Q}-justify-${e}`]=c.justify===e}),g)})),{[`${Q}-rtl`]:"rtl"===E,[`${Q}-gap-${S}`]:(0,a.isPresetSize)(S),[`${Q}-vertical`]:M}),N={...z?.style,...b};return(0,n.isNonNullable)($)&&(N.flex=$),(0,n.isNonNullable)(S)&&!(0,a.isPresetSize)(S)&&(N.gap=S),t.default.createElement(w,{ref:o,className:B,style:N,...(0,r.omit)(T,["justify","wrap","align"])},C)});e.s(["Flex",()=>m],900195)},927494,760705,e=>{"use strict";var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},i=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let s=t.forwardRef((e,s)=>t.createElement(i.default,a({},e,{ref:s,icon:r})));e.s(["LikeOutlined",()=>s],927494);var n=e.i(377572);e.s(["ArticleListContent",()=>n.default],760705)},946077,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(531983),a=e.i(56206),s=e.i(430898),n=e.i(993175),l=e.i(625263),o=e.i(536995),c=e.i(106422),d=e.i(267226),u=({prefixCls:e,className:r,hoverable:i=!0,...s})=>{let{getPrefixCls:l}=t.useContext(n.ConfigContext),o=l("card",e),c=(0,a.clsx)(`${o}-grid`,r,{[`${o}-grid-hoverable`]:i});return t.createElement("div",{...s,className:c})};e.i(290586);var h=e.i(774778),p=e.i(307441),m=e.i(352050),f=e.i(104616),g=(0,m.genStyleHooks)("Card",e=>{let t=(0,f.mergeToken)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:a,boxShadowTertiary:s,bodyPadding:n,extraColor:l,motionDurationMid:o}=e;return{[t]:{...(0,p.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:(e=>{let{antCls:t,componentCls:r,headerHeight:i,headerPadding:a,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,h.unit)(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0`,...(0,p.clearFix)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...p.textEllipsis,[`
> ${r}-typography,
> ${r}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:n,borderRadius:`0 0 ${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:(e=>{let{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:i,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${(0,h.unit)(a)} 0 0 0 ${r},
0 ${(0,h.unit)(a)} 0 0 ${r},
${(0,h.unit)(a)} ${(0,h.unit)(a)} 0 0 ${r},
${(0,h.unit)(a)} 0 0 0 ${r} inset,
0 ${(0,h.unit)(a)} 0 0 ${r} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}})(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:a,colorBorderSecondary:s,actionsBg:n}=e;return{margin:0,padding:0,listStyle:"none",background:n,borderTop:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)}`,...(0,p.clearFix)(),"& > li":{margin:i,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,h.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:(0,h.unit)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${s}`}}}})(e),[`${t}-meta`]:{margin:`${(0,h.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,p.clearFix)(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...p.textEllipsis},"&-description":{color:e.colorTextDescription}}},[`${t}-bordered`]:{border:`${(0,h.unit)(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${o}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,h.unit)(e.borderRadiusLG)} ${(0,h.unit)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:i}}},[`${t}-type-inner`]:(e=>{let{componentCls:t,colorFillAlter:r,headerPadding:i,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${(0,h.unit)(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,h.unit)(e.padding)} ${(0,h.unit)(a)}`}}})(e),[`${t}-loading`]:(e=>{let{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}})(e),[`${t}-rtl`]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t,bodyPaddingSM:r,headerPaddingSM:i,headerHeightSM:a,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${(0,h.unit)(i)}`,fontSize:s,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}})(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}));let v=e=>{let{actionClasses:r,actions:i=[],actionStyle:a}=e;return t.createElement("ul",{className:r,style:a},i.map((e,r)=>{let a=`action-${r}`;return t.createElement("li",{style:{width:`${100/i.length}%`},key:a},t.createElement("span",null,e))}))},x=t.forwardRef((e,h)=>{let p,{prefixCls:m,className:f,rootClassName:x,style:y,extra:b,headStyle:$={},bodyStyle:S={},title:R,loading:j,bordered:w,variant:C,size:T,type:z,cover:E,actions:I,tabList:Q,children:L,activeTabKey:O,defaultActiveTabKey:M,tabBarExtraContent:B,hoverable:N,tabProps:H={},classNames:k,styles:F,...D}=e,{getPrefixCls:q,direction:G,className:P,style:W,classNames:A,styles:_}=(0,n.useComponentConfig)("card"),[U]=(0,o.default)("card",C,w),V=(0,l.default)(T),K={...e,size:V,variant:U},[X,Y]=(0,s.useMergeSemantic)([A,k],[_,F],{props:K}),J=t.useMemo(()=>(0,i.toArray)(L),[L]),Z=t.useMemo(()=>J.some(e=>t.isValidElement(e)&&e.type===u),[J]),ee=q("card",m),[et,er]=g(ee),ei=t.createElement(c.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},L),ea=void 0!==O,es={...H,[ea?"activeKey":"defaultActiveKey"]:ea?O:M,tabBarExtraContent:B},en=Q?t.createElement(d.default,{size:"small"!==V?"large":V,...es,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:Q.map(({tab:e,...t})=>({label:e,...t}))}):null;if(R||b||en){let e=(0,a.clsx)(`${ee}-head`,X.header),r=(0,a.clsx)(`${ee}-head-title`,X.title),i=(0,a.clsx)(`${ee}-extra`,X.extra),s={...$,...Y.header};p=t.createElement("div",{className:e,style:s},t.createElement("div",{className:`${ee}-head-wrapper`},R&&t.createElement("div",{className:r,style:Y.title},R),b&&t.createElement("div",{className:i,style:Y.extra},b)),en)}let el=(0,a.clsx)(`${ee}-cover`,X.cover),eo=E?t.createElement("div",{className:el,style:Y.cover},E):null,ec=(0,a.clsx)(`${ee}-body`,X.body),ed={...S,...Y.body},eu=j||J.length?t.createElement("div",{className:ec,style:ed},j?ei:L):null,eh=(0,a.clsx)(`${ee}-actions`,X.actions),ep=I?.length?t.createElement(v,{actionClasses:eh,actionStyle:Y.actions,actions:I}):null,em=(0,r.omit)(D,["onTabChange"]),ef=(0,a.clsx)(ee,P,{[`${ee}-loading`]:j,[`${ee}-bordered`]:"borderless"!==U,[`${ee}-hoverable`]:N,[`${ee}-contain-grid`]:Z,[`${ee}-contain-tabs`]:Q?.length,[`${ee}-small`]:"small"===V,[`${ee}-type-${z}`]:!!z,[`${ee}-rtl`]:"rtl"===G},f,x,et,er,X.root),eg={...Y.root,...W,...y};return t.createElement("div",{ref:h,...em,className:ef,style:eg},p,eo,eu,ep)});x.Grid=u,x.Meta=e=>{let{prefixCls:r,className:i,avatar:l,title:o,description:c,style:d,classNames:u,styles:h,...p}=e,{getPrefixCls:m,className:f,style:g,classNames:v,styles:x}=(0,n.useComponentConfig)("cardMeta"),y=m("card",r),b=`${y}-meta`,[$,S]=(0,s.useMergeSemantic)([v,u],[x,h],{props:e}),R=(0,a.clsx)(b,i,f,$.root),j={...g,...S.root,...d},w=(0,a.clsx)(`${b}-avatar`,$.avatar),C=(0,a.clsx)(`${b}-title`,$.title),T=(0,a.clsx)(`${b}-description`,$.description),z=(0,a.clsx)(`${b}-section`,$.section),E=l?t.createElement("div",{className:w,style:S.avatar},l):null,I=o?t.createElement("div",{className:C,style:S.title},o):null,Q=c?t.createElement("div",{className:T,style:S.description},c):null,L=I||Q?t.createElement("div",{className:z,style:S.section},I,Q):null;return t.createElement("div",{...p,className:R,style:j},E,L)},e.s(["Card",()=>x],946077)},995746,e=>{"use strict";var t=e.i(436612);e.s(["EllipsisOutlined",()=>t.default])}]);