👨🏻‍💻👩🏻‍💻 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
25 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,98826,e=>{"use strict";var t=e.i(353944);e.i(191788);var r=e.i(391398);e.s(["PageLoading",0,({isLoading:e,pastDelay:i,timedOut:n,error:a,retry:o,...l})=>(0,r.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,r.jsx)(t.Spin,{size:"large",...l})})])},106555,e=>{"use strict";var t=e.i(379049),r=e.i(56206),i=e.i(191788),n=e.i(814432),a=e.i(889590),o=e.i(391398);e.s(["GridContent",0,e=>{let l=(0,i.useContext)(n.RouteContext),{children:s,contentWidth:d,className:c,style:u}=e,{getPrefixCls:m}=(0,i.useContext)(t.ConfigProvider.ConfigContext),p=e.prefixCls||m("pro"),g=d||l.contentWidth,f=`${p}-grid-content`,{wrapSSR:$,hashId:h}=(0,a.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${f}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),v="Fixed"===g&&"top"===l.layout;return $((0,o.jsx)("div",{className:(0,r.clsx)(f,h,c,{[`${f}-wide`]:v}),style:u,"data-testid":"pro-grid-content",children:(0,o.jsx)("div",{className:(0,r.clsx)(`${p}-grid-content-children`,h),children:s})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},154165,e=>{"use strict";var t=e.i(708176);e.s(["default",0,(e,r={})=>!(0,t.default)(e)&&r?.skipEmpty?[]:Array.isArray(e)?e:[e]])},397591,e=>{"use strict";e.i(495059);var t=e.i(191788),r=e.i(259165),i=e.i(851581),n=e.i(56206),a=e.i(219324),o=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),m=e.i(307441),p=e.i(352050),g=e.i(104616),f=(0,p.genStyleHooks)("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:r}=e,i=(0,g.mergeToken)(e,{avatarBg:r,avatarColor:t});return[(e=>{let{antCls:t,componentCls:r,iconCls:i,avatarBg:n,avatarColor:a,containerSize:o,containerSizeLG:l,containerSizeSM:s,textFontSize:d,textFontSizeLG:c,textFontSizeSM:p,iconFontSize:g,iconFontSizeLG:f,iconFontSizeSM:$,borderRadius:h,borderRadiusLG:v,borderRadiusSM:x,lineWidth:y,lineType:b}=e,S=(e,t,n,a)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${r}-square`]:{borderRadius:a},[`&${r}-icon`]:{fontSize:n,[`> ${i}`]:{margin:0}}});return{[r]:{...(0,m.resetComponent)(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${(0,u.unit)(y)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...S(o,d,g,h),"&-lg":{...S(l,c,f,v)},"&-sm":{...S(s,p,$,x)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}})(i),(e=>{let{componentCls:t,groupBorderColor:r,groupOverlapping:i,groupSpace:n}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:i}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}})(i)]},e=>{let{controlHeight:t,controlHeightLG:r,controlHeightSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:l,marginXS:s,marginXXS:d,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:i,textFontSize:n,textFontSizeLG:n,textFontSizeSM:n,iconFontSize:Math.round((a+o)/2),iconFontSizeLG:l,iconFontSizeSM:n,groupSpace:d,groupOverlapping:-s,groupBorderColor:c}});let $=t.forwardRef((e,u)=>{let m,{prefixCls:p,shape:g,size:$,src:h,srcSet:v,icon:x,className:y,rootClassName:b,style:S,alt:C,draggable:E,children:w,crossOrigin:z,gap:N=4,onError:k,...R}=e,[M,T]=t.useState(1),[W,B]=t.useState(!1),[L,G]=t.useState(!0),H=t.useRef(null),I=t.useRef(null),P=(0,i.composeRef)(u,H),{getPrefixCls:A,className:F,style:j}=(0,o.useComponentConfig)("avatar"),q=t.useContext(c),D=()=>{if(!I.current||!H.current)return;let e=I.current.offsetWidth,t=H.current.offsetWidth;0!==e&&0!==t&&2*N<t&&T(t-2*N<e?(t-2*N)/e:1)};t.useEffect(()=>{B(!0)},[]),t.useEffect(()=>{G(!0),T(1)},[h]),t.useEffect(D,[N]);let O=(0,s.default)(e=>$??q?.size??e??"medium"),_=Object.keys("object"==typeof O&&O||{}).some(e=>a.responsiveArray.includes(e)),V=(0,d.default)(_),X=t.useMemo(()=>{if("object"!=typeof O)return{};let e=O[a.responsiveArray.find(e=>V[e])];return e?{width:e,height:e,fontSize:e&&(x||w)?e/2:18}:{}},[V,O,x,w]),K=A("avatar",p),Y=(0,l.default)(K),[U,Z]=f(K,Y),J=(0,n.clsx)({[`${K}-lg`]:"large"===O,[`${K}-sm`]:"small"===O}),Q=t.isValidElement(h),ee=g||q?.shape||"circle",et=(0,n.clsx)(K,J,F,`${K}-${ee}`,{[`${K}-image`]:Q||h&&L,[`${K}-icon`]:!!x},Z,Y,y,b,U),er="number"==typeof O?{width:O,height:O,fontSize:x?O/2:18}:{};if("string"==typeof h&&L)m=t.createElement("img",{src:h,draggable:E,srcSet:v,onError:()=>{!1!==k?.()&&G(!1)},alt:C,crossOrigin:z});else if(Q)m=h;else if(x)m=x;else if(W||1!==M){let e=`scale(${M})`;m=t.createElement(r.default,{onResize:D},t.createElement("span",{className:`${K}-string`,ref:I,style:{msTransform:e,WebkitTransform:e,transform:e}},w))}else m=t.createElement("span",{className:`${K}-string`,style:{opacity:0},ref:I},w);return t.createElement("span",{...R,style:{...er,...X,...j,...S},className:et,ref:P},m)});e.i(957562);var h=e.i(531983),v=e.i(663032),x=e.i(790731);let y=e=>{let{size:r,shape:i}=t.useContext(c),n=t.useMemo(()=>({size:e.size||r,shape:e.shape||i}),[e.size,e.shape,r,i]);return t.createElement(c.Provider,{value:n},e.children)};$.Group=e=>{let{getPrefixCls:r,direction:i}=t.useContext(o.ConfigContext),{prefixCls:a,className:s,rootClassName:d,style:c,maxCount:u,maxStyle:m,size:p,shape:g,maxPopoverPlacement:b,maxPopoverTrigger:S,children:C,max:E}=e,w=r("avatar",a),z=`${w}-group`,N=(0,l.default)(w),[k,R]=f(w,N),M=(0,n.clsx)(z,{[`${z}-rtl`]:"rtl"===i},R,N,s,d,k),T=(0,h.toArray)(C).map((e,t)=>(0,v.cloneElement)(e,{key:`avatar-key-${t}`})),W=E?.count||u,B=T.length;if(W&&W<B){let e=T.slice(0,W),r=T.slice(W,B),i=E?.style||m,a=E?.popover?.trigger||S||"hover",o=E?.popover?.placement||b||"top",l={content:r,...E?.popover,placement:o,trigger:a,rootClassName:(0,n.clsx)(`${z}-popover`,E?.popover?.rootClassName)};return e.push(t.createElement(x.default,{key:"avatar-popover-key",destroyOnHidden:!0,...l},t.createElement($,{style:i},`+${B-W}`))),t.createElement(y,{shape:g,size:p},t.createElement("div",{className:M,style:c},e))}return t.createElement(y,{shape:g,size:p},t.createElement("div",{className:M,style:c},T))},e.s(["Avatar",0,$],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 n(){return(n=Object.assign.bind()).apply(this,arguments)}let a=t.forwardRef((e,a)=>t.createElement(i.default,n({},e,{ref:a,icon:r})));e.s(["default",0,a],439214)},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},678485,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var r=e.i(27593),i=e.i(663032),n=e.i(624200),a=e.i(56206),o=e.i(430898),l=e.i(993175),s=e.i(106422),d=e=>{let r,{value:i,formatter:n,precision:a,decimalSeparator:o,groupSeparator:l="",prefixCls:s}=e;if("function"==typeof n)r=n(i);else{let e=String(i),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){let e=n[1],i=n[2]||"0",d=n[4]||"";i=i.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof a&&(d=d.padEnd(a,"0").slice(0,a>0?a:0)),d&&(d=`${o}${d}`),r=[t.createElement("span",{key:"int",className:`${s}-content-value-int`},e,i),d&&t.createElement("span",{key:"decimal",className:`${s}-content-value-decimal`},d)]}else r=e}return t.createElement("span",{className:`${s}-content-value`},r)},c=e.i(307441),u=e.i(352050),m=e.i(104616),p=(0,u.genStyleHooks)("Statistic",e=>(e=>{let{componentCls:t,marginXXS:r,padding:i,colorTextDescription:n,titleFontSize:a,colorTextHeading:o,contentFontSize:l,fontFamily:s}=e;return{[t]:{...(0,c.resetComponent)(e),[`${t}-header`]:{paddingBottom:r,[`${t}-title`]:{color:n,fontSize:a}},[`${t}-skeleton`]:{paddingTop:i},[`${t}-content`]:{color:o,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}}}})((0,m.mergeToken)(e,{})),e=>{let{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}});let g=t.forwardRef((e,r)=>{let{prefixCls:i,className:c,rootClassName:u,style:m,valueStyle:g,value:f=0,title:$,valueRender:h,prefix:v,suffix:x,loading:y=!1,formatter:b,precision:S,decimalSeparator:C=".",groupSeparator:E=",",onMouseEnter:w,onMouseLeave:z,styles:N,classNames:k,...R}=e,{getPrefixCls:M,direction:T,className:W,style:B,classNames:L,styles:G}=(0,l.useComponentConfig)("statistic"),H=M("statistic",i),[I,P]=p(H),A={...e,decimalSeparator:C,groupSeparator:E,loading:y,value:f},[F,j]=(0,o.useMergeSemantic)([L,k],[G,N],{props:A}),q=t.createElement(d,{decimalSeparator:C,groupSeparator:E,prefixCls:H,formatter:b,precision:S,value:f}),D=(0,a.clsx)(H,{[`${H}-rtl`]:"rtl"===T},W,c,u,F.root,I,P),O=(0,a.clsx)(`${H}-header`,F.header),_=(0,a.clsx)(`${H}-title`,F.title),V=(0,a.clsx)(`${H}-content`,F.content),X=(0,a.clsx)(`${H}-content-prefix`,F.prefix),K=(0,a.clsx)(`${H}-content-suffix`,F.suffix),Y=t.useRef(null);t.useImperativeHandle(r,()=>({nativeElement:Y.current}));let U=(0,n.default)(R,{aria:!0,data:!0});return t.createElement("div",{...U,className:D,style:{...j.root,...B,...m},ref:Y,onMouseEnter:w,onMouseLeave:z},$&&t.createElement("div",{className:O,style:j.header},t.createElement("div",{className:_,style:j.title},$)),t.createElement(s.default,{paragraph:!1,loading:y,className:`${H}-skeleton`,active:!0},t.createElement("div",{className:V,style:{...g,...j.content}},v&&t.createElement("span",{className:X,style:j.prefix},v),h?h(q):q,x&&t.createElement("span",{className:K,style:j.suffix},x))))}),f=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],$=1e3/60;var h=e=>{let{value:n,format:a="HH:mm:ss",onChange:o,onFinish:l,type:s,...d}=e,c="countdown"===s,[u,m]=t.useState(null),p=(0,r.useEvent)(()=>{let e=Date.now(),t=new Date(n).getTime();m({});let r=c?t-e:e-t;return o?.(r),!c||!(t<e)||(l?.(),!1)});return t.useEffect(()=>{let e;return e=window.setInterval(()=>{p()||window.clearInterval(e)},$),()=>{window.clearInterval(e)}},[n,c]),t.useEffect(()=>{m({})},[]),t.createElement(g,{...d,value:n,valueRender:e=>(0,i.cloneElement)(e,{title:void 0}),formatter:(e,t)=>u?function(e,t,r){let i,n,a,o,l,s,{format:d=""}=t,c=new Date(e).getTime(),u=Date.now();return i=r?Math.max(c-u,0):Math.max(u-c,0),n=/\[[^\]]*]/g,a=(d.match(n)||[]).map(e=>e.slice(1,-1)),o=d.replace(n,"[]"),l=f.reduce((e,[t,r])=>{if(e.includes(t)){let n=Math.floor(i/r);return i-=n*r,e.replace(RegExp(`${t}+`,"g"),e=>{let t=e.length;return n.toString().padStart(t,"0")})}return e},o),s=0,l.replace(n,()=>{let e=a[s];return s+=1,e})}(e,{...t,format:a},c):"-"})},v=t.memo(e=>t.createElement(h,{...e,type:"countdown"}));g.Timer=h,g.Countdown=v,e.s(["Statistic",0,g],678485)},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 n=e=>e?"function"==typeof e?e():e:null;e.s(["getRenderPropValue",0,n],37132);var a=e.i(430898),o=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),m=e.i(394739),p=e.i(770371),g=e.i(840665),f=e.i(352050),$=e.i(104616),h=e.i(678251),v=(0,f.genStyleHooks)("Popover",e=>{let{colorBgElevated:t,colorText:r}=e,i=(0,$.mergeToken)(e,{popoverBg:t,popoverColor:r});return[(e=>{let{componentCls:t,popoverColor:r,titleMinWidth:i,fontWeightStrong:n,innerPadding:a,boxShadowSecondary:o,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:d,titleMarginBottom:c,colorBgElevated:m,popoverBg:g,titleBorderBottom:$,innerContentPadding:h,titlePadding:v,antCls:x}=e,[y,b]=(0,f.genCssVar)(x,"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")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[y("arrow-background-color")]:m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:s,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:i,marginBottom:c,color:l,fontWeight:n,borderBottom:$,padding:v},[`${t}-content`]:{color:r,padding:h}}},(0,p.default)(e,b("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]:h.PresetColors.map(r=>{let n=e[`${r}6`];return{[`&${t}-${r}`]:{[i("arrow-background-color")]:n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}})(i),(0,m.initZoomMotion)(i,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:r,fontHeight:i,padding:n,wireframe:a,zIndexPopupBase:o,borderRadiusLG:l,marginXS:s,lineType:d,colorSplit:c,paddingSM:u}=e,m=r-i;return{titleMinWidth:177,zIndexPopup:o+30,...(0,g.getArrowToken)(e),...(0,p.getArrowOffsetToken)({contentRadius:l,limitVerticalRadius:!0}),innerPadding:12*!a,titleMarginBottom:a?0:s,titlePadding:a?`${m/2}px ${n}px ${m/2-t}px`:0,titleBorderBottom:a?`${t}px ${d} ${c}`:"none",innerContentPadding:a?`${u}px ${n}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let x=e=>{let{title:r,content:n,prefixCls:a,classNames:o,styles:l}=e;return r||n?t.createElement(t.Fragment,null,r&&t.createElement("div",{className:(0,i.clsx)(`${a}-title`,o?.title),style:l?.title},r),n&&t.createElement("div",{className:(0,i.clsx)(`${a}-content`,o?.content),style:l?.content},n)):null},y=e=>{let{hashId:r,prefixCls:o,className:l,style:s,placement:d="top",title:u,content:m,children:p,classNames:g,styles:f}=e,$=n(u),h=n(m),v={...e,placement:d},[y,b]=(0,a.useMergeSemantic)([g],[f],{props:v}),S=(0,i.clsx)(r,o,`${o}-pure`,`${o}-placement-${d}`,l);return t.createElement("div",{className:S,style:s},t.createElement("div",{className:`${o}-arrow`}),t.createElement(c.Popup,{...e,className:r,prefixCls:o,classNames:y,styles:b},p||t.createElement(x,{prefixCls:o,title:$,content:h,classNames:y,styles:b})))};var b=e=>{let{prefixCls:r,className:n,...a}=e,{getPrefixCls:o}=t.useContext(l.ConfigContext),s=o("popover",r),[d,c]=v(s);return t.createElement(y,{...a,prefixCls:s,hashId:d,className:(0,i.clsx)(n,c)})};e.s(["Overlay",0,x,"default",0,b],21567);let S=t.forwardRef((e,c)=>{let{prefixCls:u,title:m,content:p,overlayClassName:g,placement:f="top",trigger:$,children:h,mouseEnterDelay:y=.1,mouseLeaveDelay:b=.1,onOpenChange:S,overlayStyle:C={},styles:E,classNames:w,motion:z,arrow:N,...k}=e,{getPrefixCls:R,className:M,style:T,classNames:W,styles:B,arrow:L,trigger:G}=(0,l.useComponentConfig)("popover"),H=R("popover",u),[I,P]=v(H),A=R(),F=(0,d.default)(N,L),j=$||G||"hover",q={...e,placement:f,trigger:j,mouseEnterDelay:y,mouseLeaveDelay:b,overlayStyle:C,styles:E,classNames:w},[D,O]=(0,a.useMergeSemantic)([W,w],[B,E],{props:q}),_=(0,i.clsx)(g,I,P,M,D.root),[V,X]=(0,r.useControlledState)(e.defaultOpen??!1,e.open),K=n(m),Y=n(p);return t.createElement(s.default,{unique:!1,arrow:F,placement:f,trigger:j,mouseEnterDelay:y,mouseLeaveDelay:b,...k,prefixCls:H,classNames:{root:_,container:D.container,arrow:D.arrow},styles:{root:{...O.root,...T,...C},container:O.container,arrow:O.arrow},ref:c,open:V,onOpenChange:e=>{X(e),S?.(e)},overlay:K||Y?t.createElement(x,{prefixCls:H,title:K,content:Y,classNames:D,styles:O}):null,motion:{motionName:(0,o.getTransitionName)(A,"zoom-big","string"==typeof z?.motionName?z?.motionName:void 0)},"data-popover-inject":!0},h)});S._InternalPanelDoNotUseOrYouWillBeFired=b,e.s(["default",0,S],790731)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},946077,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(531983),n=e.i(56206),a=e.i(430898),o=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,...a})=>{let{getPrefixCls:l}=t.useContext(o.ConfigContext),s=l("card",e),d=(0,n.clsx)(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return t.createElement("div",{...a,className:d})};e.i(290586);var m=e.i(774778),p=e.i(307441),g=e.i(352050),f=e.i(104616),$=(0,g.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:n,boxShadowTertiary:a,bodyPadding:o,extraColor:l,motionDurationMid:s}=e;return{[t]:{...(0,p.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:(e=>{let{antCls:t,componentCls:r,headerHeight:i,headerPadding:n,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,m.unit)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,m.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,m.unit)(e.borderRadiusLG)} ${(0,m.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:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,m.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${(0,m.unit)(e.borderRadiusLG)} ${(0,m.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:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${(0,m.unit)(n)} 0 0 0 ${r},
0 ${(0,m.unit)(n)} 0 0 ${r},
${(0,m.unit)(n)} ${(0,m.unit)(n)} 0 0 ${r},
${(0,m.unit)(n)} 0 0 0 ${r} inset,
0 ${(0,m.unit)(n)} 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,m.unit)(e.borderRadiusLG)} ${(0,m.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:n,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:"none",background:o,borderTop:`${(0,m.unit)(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${(0,m.unit)(e.borderRadiusLG)} ${(0,m.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,m.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:(0,m.unit)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,m.unit)(e.lineWidth)} ${e.lineType} ${a}`}}}})(e),[`${t}-meta`]:{margin:`${(0,m.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,m.unit)(e.lineWidth)} ${e.lineType} ${n}`,[`${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,m.unit)(e.borderRadiusLG)} ${(0,m.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:n}=e;return{[`${t}-head`]:{padding:`0 ${(0,m.unit)(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,m.unit)(e.padding)} ${(0,m.unit)(n)}`}}})(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:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${(0,m.unit)(i)}`,fontSize:a,[`> ${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 h=e=>{let{actionClasses:r,actions:i=[],actionStyle:n}=e;return t.createElement("ul",{className:r,style:n},i.map((e,r)=>{let n=`action-${r}`;return t.createElement("li",{style:{width:`${100/i.length}%`},key:n},t.createElement("span",null,e))}))},v=t.forwardRef((e,m)=>{let p,{prefixCls:g,className:f,rootClassName:v,style:x,extra:y,headStyle:b={},bodyStyle:S={},title:C,loading:E,bordered:w,variant:z,size:N,type:k,cover:R,actions:M,tabList:T,children:W,activeTabKey:B,defaultActiveTabKey:L,tabBarExtraContent:G,hoverable:H,tabProps:I={},classNames:P,styles:A,...F}=e,{getPrefixCls:j,direction:q,className:D,style:O,classNames:_,styles:V}=(0,o.useComponentConfig)("card"),[X]=(0,s.default)("card",z,w),K=(0,l.default)(N),Y={...e,size:K,variant:X},[U,Z]=(0,a.useMergeSemantic)([_,P],[V,A],{props:Y}),J=t.useMemo(()=>(0,i.toArray)(W).some(e=>t.isValidElement(e)&&e.type===u),[W]),Q=j("card",g),[ee,et]=$(Q),er=t.createElement(d.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},W),ei=void 0!==B,en={...I,[ei?"activeKey":"defaultActiveKey"]:ei?B:L,tabBarExtraContent:G},ea=T?t.createElement(c.default,{size:"small"!==K?"large":K,...en,className:`${Q}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:T.map(({tab:e,...t})=>({label:e,...t}))}):null;if(C||y||ea){let e=(0,n.clsx)(`${Q}-head`,U.header),r=(0,n.clsx)(`${Q}-head-title`,U.title),i=(0,n.clsx)(`${Q}-extra`,U.extra),a={...b,...Z.header};p=t.createElement("div",{className:e,style:a},t.createElement("div",{className:`${Q}-head-wrapper`},C&&t.createElement("div",{className:r,style:Z.title},C),y&&t.createElement("div",{className:i,style:Z.extra},y)),ea)}let eo=(0,n.clsx)(`${Q}-cover`,U.cover),el=R?t.createElement("div",{className:eo,style:Z.cover},R):null,es=(0,n.clsx)(`${Q}-body`,U.body),ed={...S,...Z.body},ec=t.createElement("div",{className:es,style:ed},E?er:W),eu=(0,n.clsx)(`${Q}-actions`,U.actions),em=M?.length?t.createElement(h,{actionClasses:eu,actionStyle:Z.actions,actions:M}):null,ep=(0,r.omit)(F,["onTabChange"]),eg=(0,n.clsx)(Q,D,{[`${Q}-loading`]:E,[`${Q}-bordered`]:"borderless"!==X,[`${Q}-hoverable`]:H,[`${Q}-contain-grid`]:J,[`${Q}-contain-tabs`]:T?.length,[`${Q}-small`]:"small"===K,[`${Q}-type-${k}`]:!!k,[`${Q}-rtl`]:"rtl"===q},f,v,ee,et,U.root),ef={...Z.root,...O,...x};return t.createElement("div",{ref:m,...ep,className:eg,style:ef},p,el,ec,em)});v.Grid=u,v.Meta=e=>{let{prefixCls:r,className:i,avatar:l,title:s,description:d,style:c,classNames:u,styles:m,...p}=e,{getPrefixCls:g,className:f,style:$,classNames:h,styles:v}=(0,o.useComponentConfig)("cardMeta"),x=g("card",r),y=`${x}-meta`,[b,S]=(0,a.useMergeSemantic)([h,u],[v,m],{props:e}),C=(0,n.clsx)(y,i,f,b.root),E={...$,...S.root,...c},w=(0,n.clsx)(`${y}-avatar`,b.avatar),z=(0,n.clsx)(`${y}-title`,b.title),N=(0,n.clsx)(`${y}-description`,b.description),k=(0,n.clsx)(`${y}-section`,b.section),R=l?t.createElement("div",{className:w,style:S.avatar},l):null,M=s?t.createElement("div",{className:z,style:S.title},s):null,T=d?t.createElement("div",{className:N,style:S.description},d):null,W=M||T?t.createElement("div",{className:k,style:S.section},M,T):null;return t.createElement("div",{...p,className:C,style:E},R,W)},e.s(["Card",0,v],946077)}]);