👨🏻‍💻👩🏻‍💻 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,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)},283949,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:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},i=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let o=t.forwardRef((e,o)=>t.createElement(i.default,n({},e,{ref:o,icon:r})));e.s(["default",0,o],283949)},397591,e=>{"use strict";e.i(495059);var t=e.i(191788),r=e.i(259165),i=e.i(851581),n=e.i(56206),o=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:n,avatarColor:o,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,n,o)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${r}-square`]:{borderRadius:o},[`&${r}-icon`]:{fontSize:n,[`> ${i}`]:{margin:0}}});return{[r]:{...(0,p.resetComponent)(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,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: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:o,fontSizeXL:a,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((o+a)/2),iconFontSizeLG:l,iconFontSizeSM:n,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:z,gap:N=4,onError:R,...k}=e,[M,W]=t.useState(1),[T,L]=t.useState(!1),[H,B]=t.useState(!0),I=t.useRef(null),F=t.useRef(null),G=(0,i.composeRef)(u,I),{getPrefixCls:_,className:A,style:P}=(0,a.useComponentConfig)("avatar"),j=t.useContext(c),O=()=>{if(!F.current||!I.current)return;let e=F.current.offsetWidth,t=I.current.offsetWidth;0!==e&&0!==t&&2*N<t&&W(t-2*N<e?(t-2*N)/e:1)};t.useEffect(()=>{L(!0)},[]),t.useEffect(()=>{B(!0),W(1)},[$]),t.useEffect(O,[N]);let q=(0,s.default)(e=>h??j?.size??e??"medium"),D=Object.keys("object"==typeof q&&q||{}).some(e=>o.responsiveArray.includes(e)),V=(0,d.default)(D),X=t.useMemo(()=>{if("object"!=typeof q)return{};let e=q[o.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,n.clsx)({[`${Y}-lg`]:"large"===q,[`${Y}-sm`]:"small"===q}),Q=t.isValidElement($),ee=m||j?.shape||"circle",et=(0,n.clsx)(Y,J,A,`${Y}-${ee}`,{[`${Y}-image`]:Q||$&&H,[`${Y}-icon`]:!!v},Z,K,y,x,U),er="number"==typeof q?{width:q,height:q,fontSize:v?q/2:18}:{};if("string"==typeof $&&H)p=t.createElement("img",{src:$,draggable:C,srcSet:b,onError:()=>{!1!==R?.()&&B(!1)},alt:w,crossOrigin:z});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,...P,...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),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)};h.Group=e=>{let{getPrefixCls:r,direction:i}=t.useContext(a.ConfigContext),{prefixCls:o,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",o),z=`${E}-group`,N=(0,l.default)(E),[R,k]=f(E,N),M=(0,n.clsx)(z,{[`${z}-rtl`]:"rtl"===i},k,N,s,d,R),W=(0,$.toArray)(w).map((e,t)=>(0,b.cloneElement)(e,{key:`avatar-key-${t}`})),T=C?.count||u,L=W.length;if(T&&T<L){let e=W.slice(0,T),r=W.slice(T,L),i=C?.style||p,o=C?.popover?.trigger||S||"hover",a=C?.popover?.placement||x||"top",l={content:r,...C?.popover,placement:a,trigger:o,rootClassName:(0,n.clsx)(`${z}-popover`,C?.popover?.rootClassName)};return e.push(t.createElement(v.default,{key:"avatar-popover-key",destroyOnHidden:!0,...l},t.createElement(h,{style:i},`+${L-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 n(){return(n=Object.assign.bind()).apply(this,arguments)}let o=t.forwardRef((e,o)=>t.createElement(i.default,n({},e,{ref:o,icon:r})));e.s(["default",0,o],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 n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(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 o(i.overflowY,t)||o(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,n,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=r||a>=t&&l>=r?o-e-i:a>t&&l<r||o<e&&l>r?a-t+n:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},d=(e,t)=>{var r,i,o,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(!n(e))throw TypeError("Invalid target");let $=document.scrollingElement||document.documentElement,b=[],v=e;for(;n(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==(o=window.visualViewport)?void 0:o.height)?d:innerHeight,{scrollX:S,scrollY:w}=window,{height:C,width:E,top:z,right:N,bottom:R,left:k}=e.getBoundingClientRect(),{top:M,right:W,bottom:T,left:L}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},H="start"===p||"nearest"===p?z-M:"end"===p?R+T:z+C/2-M+T,B="center"===g?k+E/2-L+W:"end"===g?N+W:k-L,I=[];for(let e=0;e<b.length;e++){let t=b[e],{height:r,width:i,top:n,right:o,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===u&&z>=0&&k>=0&&R<=x&&N<=y&&(t===$&&!a(t)||z>=n&&R<=s&&k>=d&&N<=o))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,L="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?H:"end"===p?H-x:"nearest"===p?l(w,w+x,x,f,v,w+H,w+H+C,C):H-x/2,W="start"===g?B:"center"===g?B-y/2:"end"===g?B-y:l(S,S+y,y,m,h,S+B,S+B+E,E),M=Math.max(0,M+w),W=Math.max(0,W+S);else{M="start"===p?H-n-f:"end"===p?H-s+v+L:"nearest"===p?l(n,s,r,f,v+L,H,H+C,C):H-(n+r/2)+L/2,W="start"===g?B-d-m:"center"===g?B-(d+i/2)+T/2:"end"===g?B-o+h+T:l(d,o,i,m,h+T,B,B+E,E);let{scrollLeft:e,scrollTop:a}=t;M=0===G?0:Math.max(0,Math.min(a+M/G,t.scrollHeight-r/G+L)),W=0===F?0:Math.max(0,Math.min(e+W/F,t.scrollWidth-i/F+T)),H+=a-M,B+=e-W}I.push({el:t,top:M,left:W})}return I},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),n=(0,i.getDOM)(r);if(n)return n;let o=p(u(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}e.s(["getFieldId",0,p,"getStatus",0,function(e,t,r,i,n,o){let a=i;return void 0!==o?a=o:r.validating?a="validating":e.length?a="error":t.length?a="warning":(r.touched||n&&r.validated)&&(a="success"),a},"toArray",0,u],236107),e.s(["default",0,function(e){let[i]=(0,r.default)(),n=t.useRef({}),o=t.useMemo(()=>e??{...i,__INTERNAL__:{itemRef:e=>t=>{let r=g(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:r,...i}=t,n=m(e,o);n&&(!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 n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:o,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=o-i.top+i.bottom,t=a-i.left+i.right;r.scroll({top:e,left:t,behavior:n})}}(n,{scrollMode:"if-needed",block:"nearest",...i}),r&&o.focusField(e))},focusField:e=>{let t=o.getFieldInstance(e);"function"==typeof t?.focus?t.focus():m(e,o)?.focus?.()},getFieldInstance:e=>{let t=g(e);return n.current[t]}},[e,i]);return[o]},"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 n=e=>e?"function"==typeof e?e():e:null;e.s(["getRenderPropValue",0,n],37132);var o=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:n,innerPadding:o,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:o},[`${t}-title`]:{minWidth:i,marginBottom:c,color:l,fontWeight:n,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 n=e[`${r}6`];return{[`&${t}-${r}`]:{[i("arrow-background-color")]:n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}})(i),(0,p.initZoomMotion)(i,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:r,fontHeight:i,padding:n,wireframe:o,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*!o,titleMarginBottom:o?0:s,titlePadding:o?`${p/2}px ${n}px ${p/2-t}px`:0,titleBorderBottom:o?`${t}px ${d} ${c}`:"none",innerContentPadding:o?`${u}px ${n}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let v=e=>{let{title:r,content:n,prefixCls:o,classNames:a,styles:l}=e;return r||n?t.createElement(t.Fragment,null,r&&t.createElement("div",{className:(0,i.clsx)(`${o}-title`,a?.title),style:l?.title},r),n&&t.createElement("div",{className:(0,i.clsx)(`${o}-content`,a?.content),style:l?.content},n)):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=n(u),$=n(p),b={...e,placement:d},[y,x]=(0,o.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:n,...o}=e,{getPrefixCls:a}=t.useContext(l.ConfigContext),s=a("popover",r),[d,c]=b(s);return t.createElement(y,{...o,prefixCls:s,hashId:d,className:(0,i.clsx)(n,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:z,arrow:N,...R}=e,{getPrefixCls:k,className:M,style:W,classNames:T,styles:L,arrow:H,trigger:B}=(0,l.useComponentConfig)("popover"),I=k("popover",u),[F,G]=b(I),_=k(),A=(0,d.default)(N,H),P=h||B||"hover",j={...e,placement:f,trigger:P,mouseEnterDelay:y,mouseLeaveDelay:x,overlayStyle:w,styles:C,classNames:E},[O,q]=(0,o.useMergeSemantic)([T,E],[L,C],{props:j}),D=(0,i.clsx)(m,F,G,M,O.root),[V,X]=(0,r.useControlledState)(e.defaultOpen??!1,e.open),Y=n(p),K=n(g);return t.createElement(s.default,{unique:!1,arrow:A,placement:f,trigger:P,mouseEnterDelay:y,mouseLeaveDelay:x,...R,prefixCls:I,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:I,title:Y,content:K,classNames:O,styles:q}):null,motion:{motionName:(0,a.getTransitionName)(_,"zoom-big","string"==typeof z?.motionName?z?.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),n=e.i(56206),o=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,...o})=>{let{getPrefixCls:l}=t.useContext(a.ConfigContext),s=l("card",e),d=(0,n.clsx)(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return t.createElement("div",{...o,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:n,boxShadowTertiary:o,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:o},[`${t}-head`]:(e=>{let{antCls:t,componentCls:r,headerHeight:i,headerPadding:n,tabsMarginBottom:o}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,p.unit)(n)}`,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:o,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:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${(0,p.unit)(n)} 0 0 0 ${r},
0 ${(0,p.unit)(n)} 0 0 ${r},
${(0,p.unit)(n)} ${(0,p.unit)(n)} 0 0 ${r},
${(0,p.unit)(n)} 0 0 0 ${r} inset,
0 ${(0,p.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,p.unit)(e.borderRadiusLG)} ${(0,p.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:n,colorBorderSecondary:o,actionsBg:a}=e;return{margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${o}`,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:n,lineHeight:(0,p.unit)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,p.unit)(e.lineWidth)} ${e.lineType} ${o}`}}}})(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} ${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,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:n}=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)(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:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${(0,p.unit)(i)}`,fontSize:o,[`> ${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: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))}))},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:z,size:N,type:R,cover:k,actions:M,tabList:W,children:T,activeTabKey:L,defaultActiveTabKey:H,tabBarExtraContent:B,hoverable:I,tabProps:F={},classNames:G,styles:_,...A}=e,{getPrefixCls:P,direction:j,className:O,style:q,classNames:D,styles:V}=(0,a.useComponentConfig)("card"),[X]=(0,s.default)("card",z,E),Y=(0,l.default)(N),K={...e,size:Y,variant:X},[U,Z]=(0,o.useMergeSemantic)([D,G],[V,_],{props:K}),J=t.useMemo(()=>(0,i.toArray)(T).some(e=>t.isValidElement(e)&&e.type===u),[T]),Q=P("card",m),[ee,et]=h(Q),er=t.createElement(d.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),ei=void 0!==L,en={...F,[ei?"activeKey":"defaultActiveKey"]:ei?L:H,tabBarExtraContent:B},eo=W?t.createElement(c.default,{size:"small"!==Y?"large":Y,...en,className:`${Q}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:W.map(({tab:e,...t})=>({label:e,...t}))}):null;if(w||y||eo){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),o={...x,...Z.header};g=t.createElement("div",{className:e,style:o},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)),eo)}let ea=(0,n.clsx)(`${Q}-cover`,U.cover),el=k?t.createElement("div",{className:ea,style:Z.cover},k):null,es=(0,n.clsx)(`${Q}-body`,U.body),ed={...S,...Z.body},ec=t.createElement("div",{className:es,style:ed},C?er:T),eu=(0,n.clsx)(`${Q}-actions`,U.actions),ep=M?.length?t.createElement($,{actionClasses:eu,actionStyle:Z.actions,actions:M}):null,eg=(0,r.omit)(A,["onTabChange"]),em=(0,n.clsx)(Q,O,{[`${Q}-loading`]:C,[`${Q}-bordered`]:"borderless"!==X,[`${Q}-hoverable`]:I,[`${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,o.useMergeSemantic)([$,u],[b,p],{props:e}),w=(0,n.clsx)(y,i,f,x.root),C={...h,...S.root,...c},E=(0,n.clsx)(`${y}-avatar`,x.avatar),z=(0,n.clsx)(`${y}-title`,x.title),N=(0,n.clsx)(`${y}-description`,x.description),R=(0,n.clsx)(`${y}-section`,x.section),k=l?t.createElement("div",{className:E,style:S.avatar},l):null,M=s?t.createElement("div",{className:z,style:S.title},s):null,W=d?t.createElement("div",{className:N,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])},977892,e=>{"use strict";var t=e.i(677057);e.s(["LoadingOutlined",()=>t.default])}]);