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
25 KiB
10 lines
25 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",0,t],76820);var r=e.i(247699).Row;e.s(["Row",0,r],245538)},397591,e=>{"use strict";e.i(495059);var t=e.i(191788),r=e.i(259165),i=e.i(851581),o=e.i(56206),n=e.i(219324),a=e.i(993175),l=e.i(749919),s=e.i(625263),d=e.i(885283);let c=t.createContext({});e.i(290586);var u=e.i(774778),p=e.i(307441),g=e.i(352050),m=e.i(104616),f=(0,g.genStyleHooks)("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:r}=e,i=(0,m.mergeToken)(e,{avatarBg:r,avatarColor:t});return[(e=>{let{antCls:t,componentCls:r,iconCls:i,avatarBg:o,avatarColor:n,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:d,textFontSizeLG:c,textFontSizeSM:g,iconFontSize:m,iconFontSizeLG:f,iconFontSizeSM:h,borderRadius:$,borderRadiusLG:b,borderRadiusSM:v,lineWidth:y,lineType:x}=e,S=(e,t,o,n)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${r}-square`]:{borderRadius:n},[`&${r}-icon`]:{fontSize:o,[`> ${i}`]:{margin:0}}});return{[r]:{...(0,p.resetComponent)(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:n,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,u.unit)(y)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...S(a,d,m,$),"&-lg":{...S(l,c,f,b)},"&-sm":{...S(s,g,h,v)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}})(i),(e=>{let{componentCls:t,groupBorderColor:r,groupOverlapping:i,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:i}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}})(i)]},e=>{let{controlHeight:t,controlHeightLG:r,controlHeightSM:i,fontSize:o,fontSizeLG:n,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:d,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:i,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((n+a)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:d,groupOverlapping:-s,groupBorderColor:c}});let h=t.forwardRef((e,u)=>{let p,{prefixCls:g,shape:m,size:h,src:$,srcSet:b,icon:v,className:y,rootClassName:x,style:S,alt:w,draggable:C,children:E,crossOrigin:N,gap:z=4,onError:R,...k}=e,[M,W]=t.useState(1),[T,H]=t.useState(!1),[B,I]=t.useState(!0),L=t.useRef(null),F=t.useRef(null),G=(0,i.composeRef)(u,L),{getPrefixCls:_,className:P,style:A}=(0,a.useComponentConfig)("avatar"),j=t.useContext(c),O=()=>{if(!F.current||!L.current)return;let e=F.current.offsetWidth,t=L.current.offsetWidth;0!==e&&0!==t&&2*z<t&&W(t-2*z<e?(t-2*z)/e:1)};t.useEffect(()=>{H(!0)},[]),t.useEffect(()=>{I(!0),W(1)},[$]),t.useEffect(O,[z]);let q=(0,s.default)(e=>h??j?.size??e??"medium"),D=Object.keys("object"==typeof q&&q||{}).some(e=>n.responsiveArray.includes(e)),V=(0,d.default)(D),X=t.useMemo(()=>{if("object"!=typeof q)return{};let e=q[n.responsiveArray.find(e=>V[e])];return e?{width:e,height:e,fontSize:e&&(v||E)?e/2:18}:{}},[V,q,v,E]),Y=_("avatar",g),K=(0,l.default)(Y),[U,Z]=f(Y,K),J=(0,o.clsx)({[`${Y}-lg`]:"large"===q,[`${Y}-sm`]:"small"===q}),Q=t.isValidElement($),ee=m||j?.shape||"circle",et=(0,o.clsx)(Y,J,P,`${Y}-${ee}`,{[`${Y}-image`]:Q||$&&B,[`${Y}-icon`]:!!v},Z,K,y,x,U),er="number"==typeof q?{width:q,height:q,fontSize:v?q/2:18}:{};if("string"==typeof $&&B)p=t.createElement("img",{src:$,draggable:C,srcSet:b,onError:()=>{!1!==R?.()&&I(!1)},alt:w,crossOrigin:N});else if(Q)p=$;else if(v)p=v;else if(T||1!==M){let e=`scale(${M})`;p=t.createElement(r.default,{onResize:O},t.createElement("span",{className:`${Y}-string`,ref:F,style:{msTransform:e,WebkitTransform:e,transform:e}},E))}else p=t.createElement("span",{className:`${Y}-string`,style:{opacity:0},ref:F},E);return t.createElement("span",{...k,style:{...er,...X,...A,...S},className:et,ref:G},p)});e.i(957562);var $=e.i(531983),b=e.i(663032),v=e.i(790731);let y=e=>{let{size:r,shape:i}=t.useContext(c),o=t.useMemo(()=>({size:e.size||r,shape:e.shape||i}),[e.size,e.shape,r,i]);return t.createElement(c.Provider,{value:o},e.children)};h.Group=e=>{let{getPrefixCls:r,direction:i}=t.useContext(a.ConfigContext),{prefixCls:n,className:s,rootClassName:d,style:c,maxCount:u,maxStyle:p,size:g,shape:m,maxPopoverPlacement:x,maxPopoverTrigger:S,children:w,max:C}=e,E=r("avatar",n),N=`${E}-group`,z=(0,l.default)(E),[R,k]=f(E,z),M=(0,o.clsx)(N,{[`${N}-rtl`]:"rtl"===i},k,z,s,d,R),W=(0,$.toArray)(w).map((e,t)=>(0,b.cloneElement)(e,{key:`avatar-key-${t}`})),T=C?.count||u,H=W.length;if(T&&T<H){let e=W.slice(0,T),r=W.slice(T,H),i=C?.style||p,n=C?.popover?.trigger||S||"hover",a=C?.popover?.placement||x||"top",l={content:r,...C?.popover,placement:a,trigger:n,rootClassName:(0,o.clsx)(`${N}-popover`,C?.popover?.rootClassName)};return e.push(t.createElement(v.default,{key:"avatar-popover-key",destroyOnHidden:!0,...l},t.createElement(h,{style:i},`+${H-T}`))),t.createElement(y,{shape:m,size:g},t.createElement("div",{className:M,style:c},e))}return t.createElement(y,{shape:m,size:g},t.createElement("div",{className:M,style:c},W))},e.s(["Avatar",0,h],397591)},439214,e=>{"use strict";e.i(495059);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 o(){return(o=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(i.default,o({},e,{ref:n,icon:r})));e.s(["default",0,n],439214)},749344,236107,e=>{"use strict";var t=e.i(191788);e.i(117327);var r=e.i(226150),r=r,i=e.i(938667);let o=e=>"object"==typeof e&&null!=e&&1===e.nodeType,n=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,a=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r,i=getComputedStyle(e,null);return n(i.overflowY,t)||n(i.overflowX,t)||!!(r=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1},l=(e,t,r,i,o,n,a,l)=>n<e&&a>t||n>e&&a<t?0:n<=e&&l<=r||a>=t&&l>=r?n-e-i:a>t&&l<r||n<e&&l>r?a-t+o:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},d=(e,t)=>{var r,i,n,d;let c;if("u"<typeof document)return[];let{scrollMode:u,block:p,inline:g,boundary:m,skipOverflowHiddenElements:f}=t,h="function"==typeof m?m:e=>e!==m;if(!o(e))throw TypeError("Invalid target");let $=document.scrollingElement||document.documentElement,b=[],v=e;for(;o(v)&&h(v);){if((v=s(v))===$){b.push(v);break}null!=v&&v===document.body&&a(v)&&!a(document.documentElement)||null!=v&&a(v,f)&&b.push(v)}let y=null!=(i=null==(r=window.visualViewport)?void 0:r.width)?i:innerWidth,x=null!=(d=null==(n=window.visualViewport)?void 0:n.height)?d:innerHeight,{scrollX:S,scrollY:w}=window,{height:C,width:E,top:N,right:z,bottom:R,left:k}=e.getBoundingClientRect(),{top:M,right:W,bottom:T,left:H}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},B="start"===p||"nearest"===p?N-M:"end"===p?R+T:N+C/2-M+T,I="center"===g?k+E/2-H+W:"end"===g?z+W:k-H,L=[];for(let e=0;e<b.length;e++){let t=b[e],{height:r,width:i,top:o,right:n,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===u&&N>=0&&k>=0&&R<=x&&z<=y&&(t===$&&!a(t)||N>=o&&R<=s&&k>=d&&z<=n))break;let c=getComputedStyle(t),m=parseInt(c.borderLeftWidth,10),f=parseInt(c.borderTopWidth,10),h=parseInt(c.borderRightWidth,10),v=parseInt(c.borderBottomWidth,10),M=0,W=0,T="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-h:0,H="offsetHeight"in t?t.offsetHeight-t.clientHeight-f-v:0,F="offsetWidth"in t?0===t.offsetWidth?0:i/t.offsetWidth:0,G="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if($===t)M="start"===p?B:"end"===p?B-x:"nearest"===p?l(w,w+x,x,f,v,w+B,w+B+C,C):B-x/2,W="start"===g?I:"center"===g?I-y/2:"end"===g?I-y:l(S,S+y,y,m,h,S+I,S+I+E,E),M=Math.max(0,M+w),W=Math.max(0,W+S);else{M="start"===p?B-o-f:"end"===p?B-s+v+H:"nearest"===p?l(o,s,r,f,v+H,B,B+C,C):B-(o+r/2)+H/2,W="start"===g?I-d-m:"center"===g?I-(d+i/2)+T/2:"end"===g?I-n+h+T:l(d,n,i,m,h+T,I,I+E,E);let{scrollLeft:e,scrollTop:a}=t;M=0===G?0:Math.max(0,Math.min(a+M/G,t.scrollHeight-r/G+H)),W=0===F?0:Math.max(0,Math.min(e+W/F,t.scrollWidth-i/F+T)),B+=a-M,I+=e-W}L.push({el:t,top:M,left:W})}return L},c=["parentNode"];function u(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function p(e,t){if(!e.length)return;let r=e.join("_");return t?`${t}_${r}`:c.includes(r)?`form_item_${r}`:r}function g(e){return u(e).join("_")}function m(e,t){let r=t.getFieldInstance(e),o=(0,i.getDOM)(r);if(o)return o;let n=p(u(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}e.s(["getFieldId",0,p,"getStatus",0,function(e,t,r,i,o,n){let a=i;return void 0!==n?a=n:r.validating?a="validating":e.length?a="error":t.length?a="warning":(r.touched||o&&r.validated)&&(a="success"),a},"toArray",0,u],236107),e.s(["default",0,function(e){let[i]=(0,r.default)(),o=t.useRef({}),n=t.useMemo(()=>e??{...i,__INTERNAL__:{itemRef:e=>t=>{let r=g(e);t?o.current[r]=t:delete o.current[r]}},scrollToField:(e,t={})=>{let{focus:r,...i}=t,o=m(e,n);o&&(!function(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let i={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(d(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:n,left:a}of d(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=n-i.top+i.bottom,t=a-i.left+i.right;r.scroll({top:e,left:t,behavior:o})}}(o,{scrollMode:"if-needed",block:"nearest",...i}),r&&n.focusField(e))},focusField:e=>{let t=n.getFieldInstance(e);"function"==typeof t?.focus?t.focus():m(e,n)?.focus?.()},getFieldInstance:e=>{let t=g(e);return o.current[t]}},[e,i]);return[n]},"toNamePathStr",0,g],749344)},790731,37132,21567,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var r=e.i(617796),i=e.i(56206);let o=e=>e?"function"==typeof e?e():e:null;e.s(["getRenderPropValue",0,o],37132);var n=e.i(430898),a=e.i(47472),l=e.i(993175),s=e.i(188304),d=e.i(783831);e.i(215747);var c=e.i(208081),u=e.i(307441),p=e.i(394739),g=e.i(770371),m=e.i(840665),f=e.i(352050),h=e.i(104616),$=e.i(678251),b=(0,f.genStyleHooks)("Popover",e=>{let{colorBgElevated:t,colorText:r}=e,i=(0,h.mergeToken)(e,{popoverBg:t,popoverColor:r});return[(e=>{let{componentCls:t,popoverColor:r,titleMinWidth:i,fontWeightStrong:o,innerPadding:n,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:d,titleMarginBottom:c,colorBgElevated:p,popoverBg:m,titleBorderBottom:h,innerContentPadding:$,titlePadding:b,antCls:v}=e,[y,x]=(0,f.genCssVar)(v,"tooltip");return[{[t]:{...(0,u.resetComponent)(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[y("valid-offset-x")]:x("arrow-offset-x","var(--arrow-x)"),transformOrigin:[x("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[y("arrow-background-color")]:p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:n},[`${t}-title`]:{minWidth:i,marginBottom:c,color:l,fontWeight:o,borderBottom:h,padding:b},[`${t}-content`]:{color:r,padding:$}}},(0,g.default)(e,x("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]})(i),(e=>{let{componentCls:t,antCls:r}=e,[i]=(0,f.genCssVar)(r,"tooltip");return{[t]:$.PresetColors.map(r=>{let o=e[`${r}6`];return{[`&${t}-${r}`]:{[i("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}})(i),(0,p.initZoomMotion)(i,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:r,fontHeight:i,padding:o,wireframe:n,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:d,colorSplit:c,paddingSM:u}=e,p=r-i;return{titleMinWidth:177,zIndexPopup:a+30,...(0,m.getArrowToken)(e),...(0,g.getArrowOffsetToken)({contentRadius:l,limitVerticalRadius:!0}),innerPadding:12*!n,titleMarginBottom:n?0:s,titlePadding:n?`${p/2}px ${o}px ${p/2-t}px`:0,titleBorderBottom:n?`${t}px ${d} ${c}`:"none",innerContentPadding:n?`${u}px ${o}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let v=e=>{let{title:r,content:o,prefixCls:n,classNames:a,styles:l}=e;return r||o?t.createElement(t.Fragment,null,r&&t.createElement("div",{className:(0,i.clsx)(`${n}-title`,a?.title),style:l?.title},r),o&&t.createElement("div",{className:(0,i.clsx)(`${n}-content`,a?.content),style:l?.content},o)):null},y=e=>{let{hashId:r,prefixCls:a,className:l,style:s,placement:d="top",title:u,content:p,children:g,classNames:m,styles:f}=e,h=o(u),$=o(p),b={...e,placement:d},[y,x]=(0,n.useMergeSemantic)([m],[f],{props:b}),S=(0,i.clsx)(r,a,`${a}-pure`,`${a}-placement-${d}`,l);return t.createElement("div",{className:S,style:s},t.createElement("div",{className:`${a}-arrow`}),t.createElement(c.Popup,{...e,className:r,prefixCls:a,classNames:y,styles:x},g||t.createElement(v,{prefixCls:a,title:h,content:$,classNames:y,styles:x})))};var x=e=>{let{prefixCls:r,className:o,...n}=e,{getPrefixCls:a}=t.useContext(l.ConfigContext),s=a("popover",r),[d,c]=b(s);return t.createElement(y,{...n,prefixCls:s,hashId:d,className:(0,i.clsx)(o,c)})};e.s(["Overlay",0,v,"default",0,x],21567);let S=t.forwardRef((e,c)=>{let{prefixCls:u,title:p,content:g,overlayClassName:m,placement:f="top",trigger:h,children:$,mouseEnterDelay:y=.1,mouseLeaveDelay:x=.1,onOpenChange:S,overlayStyle:w={},styles:C,classNames:E,motion:N,arrow:z,...R}=e,{getPrefixCls:k,className:M,style:W,classNames:T,styles:H,arrow:B,trigger:I}=(0,l.useComponentConfig)("popover"),L=k("popover",u),[F,G]=b(L),_=k(),P=(0,d.default)(z,B),A=h||I||"hover",j={...e,placement:f,trigger:A,mouseEnterDelay:y,mouseLeaveDelay:x,overlayStyle:w,styles:C,classNames:E},[O,q]=(0,n.useMergeSemantic)([T,E],[H,C],{props:j}),D=(0,i.clsx)(m,F,G,M,O.root),[V,X]=(0,r.useControlledState)(e.defaultOpen??!1,e.open),Y=o(p),K=o(g);return t.createElement(s.default,{unique:!1,arrow:P,placement:f,trigger:A,mouseEnterDelay:y,mouseLeaveDelay:x,...R,prefixCls:L,classNames:{root:D,container:O.container,arrow:O.arrow},styles:{root:{...q.root,...W,...w},container:q.container,arrow:q.arrow},ref:c,open:V,onOpenChange:e=>{X(e),S?.(e)},overlay:Y||K?t.createElement(v,{prefixCls:L,title:Y,content:K,classNames:O,styles:q}):null,motion:{motionName:(0,a.getTransitionName)(_,"zoom-big","string"==typeof N?.motionName?N?.motionName:void 0)},"data-popover-inject":!0},$)});S._InternalPanelDoNotUseOrYouWillBeFired=x,e.s(["default",0,S],790731)},946077,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(531983),o=e.i(56206),n=e.i(430898),a=e.i(993175),l=e.i(625263),s=e.i(536995),d=e.i(106422),c=e.i(267226),u=({prefixCls:e,className:r,hoverable:i=!0,...n})=>{let{getPrefixCls:l}=t.useContext(a.ConfigContext),s=l("card",e),d=(0,o.clsx)(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return t.createElement("div",{...n,className:d})};e.i(290586);var p=e.i(774778),g=e.i(307441),m=e.i(352050),f=e.i(104616),h=(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:o,boxShadowTertiary:n,bodyPadding:a,extraColor:l,motionDurationMid:s}=e;return{[t]:{...(0,g.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:n},[`${t}-head`]:(e=>{let{antCls:t,componentCls:r,headerHeight:i,headerPadding:o,tabsMarginBottom:n}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,p.unit)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,p.unit)(e.borderRadiusLG)} ${(0,p.unit)(e.borderRadiusLG)} 0 0`,...(0,g.clearFix)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...g.textEllipsis,[`
|
|
> ${r}-typography,
|
|
> ${r}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:n,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${(0,p.unit)(e.borderRadiusLG)} ${(0,p.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:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
${(0,p.unit)(o)} 0 0 0 ${r},
|
|
0 ${(0,p.unit)(o)} 0 0 ${r},
|
|
${(0,p.unit)(o)} ${(0,p.unit)(o)} 0 0 ${r},
|
|
${(0,p.unit)(o)} 0 0 0 ${r} inset,
|
|
0 ${(0,p.unit)(o)} 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,p.unit)(e.borderRadiusLG)} ${(0,p.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:o,colorBorderSecondary:n,actionsBg:a}=e;return{margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${n}`,display:"flex",borderRadius:`0 0 ${(0,p.unit)(e.borderRadiusLG)} ${(0,p.unit)(e.borderRadiusLG)}`,...(0,g.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,p.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:(0,p.unit)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${n}`}}}})(e),[`${t}-meta`]:{margin:`${(0,p.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,g.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,...g.textEllipsis},"&-description":{color:e.colorTextDescription}}},[`${t}-bordered`]:{border:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${s}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,p.unit)(e.borderRadiusLG)} ${(0,p.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:o}=e;return{[`${t}-head`]:{padding:`0 ${(0,p.unit)(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,p.unit)(e.padding)} ${(0,p.unit)(o)}`}}})(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:o,headerFontSizeSM:n}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${(0,p.unit)(i)}`,fontSize:n,[`> ${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 $=e=>{let{actionClasses:r,actions:i=[],actionStyle:o}=e;return t.createElement("ul",{className:r,style:o},i.map((e,r)=>{let o=`action-${r}`;return t.createElement("li",{style:{width:`${100/i.length}%`},key:o},t.createElement("span",null,e))}))},b=t.forwardRef((e,p)=>{let g,{prefixCls:m,className:f,rootClassName:b,style:v,extra:y,headStyle:x={},bodyStyle:S={},title:w,loading:C,bordered:E,variant:N,size:z,type:R,cover:k,actions:M,tabList:W,children:T,activeTabKey:H,defaultActiveTabKey:B,tabBarExtraContent:I,hoverable:L,tabProps:F={},classNames:G,styles:_,...P}=e,{getPrefixCls:A,direction:j,className:O,style:q,classNames:D,styles:V}=(0,a.useComponentConfig)("card"),[X]=(0,s.default)("card",N,E),Y=(0,l.default)(z),K={...e,size:Y,variant:X},[U,Z]=(0,n.useMergeSemantic)([D,G],[V,_],{props:K}),J=t.useMemo(()=>(0,i.toArray)(T).some(e=>t.isValidElement(e)&&e.type===u),[T]),Q=A("card",m),[ee,et]=h(Q),er=t.createElement(d.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),ei=void 0!==H,eo={...F,[ei?"activeKey":"defaultActiveKey"]:ei?H:B,tabBarExtraContent:I},en=W?t.createElement(c.default,{size:"small"!==Y?"large":Y,...eo,className:`${Q}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:W.map(({tab:e,...t})=>({label:e,...t}))}):null;if(w||y||en){let e=(0,o.clsx)(`${Q}-head`,U.header),r=(0,o.clsx)(`${Q}-head-title`,U.title),i=(0,o.clsx)(`${Q}-extra`,U.extra),n={...x,...Z.header};g=t.createElement("div",{className:e,style:n},t.createElement("div",{className:`${Q}-head-wrapper`},w&&t.createElement("div",{className:r,style:Z.title},w),y&&t.createElement("div",{className:i,style:Z.extra},y)),en)}let ea=(0,o.clsx)(`${Q}-cover`,U.cover),el=k?t.createElement("div",{className:ea,style:Z.cover},k):null,es=(0,o.clsx)(`${Q}-body`,U.body),ed={...S,...Z.body},ec=t.createElement("div",{className:es,style:ed},C?er:T),eu=(0,o.clsx)(`${Q}-actions`,U.actions),ep=M?.length?t.createElement($,{actionClasses:eu,actionStyle:Z.actions,actions:M}):null,eg=(0,r.omit)(P,["onTabChange"]),em=(0,o.clsx)(Q,O,{[`${Q}-loading`]:C,[`${Q}-bordered`]:"borderless"!==X,[`${Q}-hoverable`]:L,[`${Q}-contain-grid`]:J,[`${Q}-contain-tabs`]:W?.length,[`${Q}-small`]:"small"===Y,[`${Q}-type-${R}`]:!!R,[`${Q}-rtl`]:"rtl"===j},f,b,ee,et,U.root),ef={...Z.root,...q,...v};return t.createElement("div",{ref:p,...eg,className:em,style:ef},g,el,ec,ep)});b.Grid=u,b.Meta=e=>{let{prefixCls:r,className:i,avatar:l,title:s,description:d,style:c,classNames:u,styles:p,...g}=e,{getPrefixCls:m,className:f,style:h,classNames:$,styles:b}=(0,a.useComponentConfig)("cardMeta"),v=m("card",r),y=`${v}-meta`,[x,S]=(0,n.useMergeSemantic)([$,u],[b,p],{props:e}),w=(0,o.clsx)(y,i,f,x.root),C={...h,...S.root,...c},E=(0,o.clsx)(`${y}-avatar`,x.avatar),N=(0,o.clsx)(`${y}-title`,x.title),z=(0,o.clsx)(`${y}-description`,x.description),R=(0,o.clsx)(`${y}-section`,x.section),k=l?t.createElement("div",{className:E,style:S.avatar},l):null,M=s?t.createElement("div",{className:N,style:S.title},s):null,W=d?t.createElement("div",{className:z,style:S.description},d):null,T=M||W?t.createElement("div",{className:R,style:S.section},M,W):null;return t.createElement("div",{...g,className:w,style:C},k,T)},e.s(["Card",0,b],946077)},954942,e=>{"use strict";var t=e.i(881428);e.s(["DownOutlined",()=>t.default])}]);
|