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.
13 lines
41 KiB
13 lines
41 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:o,error:a,retry:n,...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),o=e.i(814432),a=e.i(889590),n=e.i(391398);e.s(["GridContent",0,e=>{let l=(0,i.useContext)(o.RouteContext),{children:s,contentWidth:d,className:c,style:u}=e,{getPrefixCls:m}=(0,i.useContext)(t.ConfigProvider.ConfigContext),g=e.prefixCls||m("pro"),p=d||l.contentWidth,f=`${g}-grid-content`,{wrapSSR:h,hashId:$}=(0,a.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${f}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),b="Fixed"===p&&"top"===l.layout;return h((0,n.jsx)("div",{className:(0,r.clsx)(f,$,c,{[`${f}-wide`]:b}),style:u,"data-testid":"pro-grid-content",children:(0,n.jsx)("div",{className:(0,r.clsx)(`${g}-grid-content-children`,$),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(934854),r=(e,r={})=>!(0,t.isNonNullable)(e)&&r?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>r])},201962,e=>{"use strict";e.i(957562);var t=e.i(191248),r=e.i(146601),i=e.i(191788),o=e.i(440656),a=e.i(379049),n=e.i(56206),l=e.i(889590),s=e.i(391398),d=i.default.forwardRef(({text:e,fieldProps:r},o)=>{let{getPrefixCls:d}=(0,i.useContext)(a.ConfigProvider.ConfigContext),c=d("pro-field-readonly"),u=`${c}-textarea`,{wrapSSR:m,hashId:g}=(0,l.useStyle)("TextArea",()=>({[`.${u}`]:{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"}}));return m((0,s.jsx)("span",{ref:o,className:(0,n.clsx)(g,c,u),...(0,t.omit)(r,["autoSize","classNames","styles"]),children:e??"-"}))}),c=i.default.forwardRef((e,i)=>{let{text:a,mode:n,render:l,formItemRender:c,fieldProps:u}=e,m=(0,o.useIntl)();if("read"===n){let r=(0,s.jsx)(d,{...e,ref:i});return l?l(a,{mode:n,...(0,t.omit)(u,["showCount"])},r):r}if("edit"===n||"update"===n){let e=(0,s.jsx)(r.Input.TextArea,{ref:i,rows:3,onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},placeholder:m.getMessage("tableForm.inputPlaceholder","请输入"),...u});return c?c(a,{mode:n,...u},e):e}return null});e.s(["default",()=>c],201962)},204275,685986,e=>{"use strict";var t=e.i(191788),r=e.i(75907),i=e.i(56926),o=e.i(77682),a=e.i(851581),n=e.i(56206),l=e.i(186762),s=e.i(351212);let d=(e,t)=>{if(!e)return null;let r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},c=e=>void 0!==e?`${e}px`:void 0;function u(e){let{prefixCls:r,containerRef:i,value:o,getValueIndex:u,motionName:m,onMotionStart:g,onMotionEnd:p,direction:f,vertical:h=!1}=e,$=t.useRef(null),[b,y]=t.useState(o),v=e=>{let t=u(e),o=i.current?.querySelectorAll(`.${r}-item`)[t];return o?.offsetParent&&o},[x,S]=t.useState(null),[k,C]=t.useState(null);(0,s.default)(()=>{if(b!==o){let e=v(b),t=v(o),r=d(e,h),i=d(t,h);y(o),S(r),C(i),e&&t?g():p()}},[o]);let w=t.useMemo(()=>h?c(x?.top??0):"rtl"===f?c(-x?.right):c(x?.left),[h,f,x]),E=t.useMemo(()=>h?c(k?.top??0):"rtl"===f?c(-k?.right):c(k?.left),[h,f,k]);return x&&k?t.createElement(l.default,{visible:!0,motionName:m,motionAppear:!0,onAppearStart:()=>h?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>h?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{S(null),C(null),p()}},({className:e,style:i},o)=>{let l={...i,"--thumb-start-left":w,"--thumb-start-width":c(x?.width),"--thumb-active-left":E,"--thumb-active-width":c(k?.width),"--thumb-start-top":w,"--thumb-start-height":c(x?.height),"--thumb-active-top":E,"--thumb-active-height":c(k?.height)},s={ref:(0,a.composeRef)($,o),style:l,className:(0,n.clsx)(`${r}-thumb`,e)};return t.createElement("div",s)}):null}let m=({prefixCls:e,className:r,style:i,styles:o,classNames:a,data:l,disabled:s,checked:d,label:c,title:u,value:m,name:g,onChange:p,onFocus:f,onBlur:h,onKeyDown:$,onKeyUp:b,onMouseDown:y,itemRender:v=e=>e})=>v(t.createElement("label",{className:(0,n.clsx)(r,{[`${e}-item-disabled`]:s}),style:i,onMouseDown:y},t.createElement("input",{name:g,className:`${e}-item-input`,type:"radio",disabled:s,checked:d,onChange:e=>{s||p(e,m)},onFocus:f,onBlur:h,onKeyDown:$,onKeyUp:b}),t.createElement("div",{className:(0,n.clsx)(`${e}-item-label`,a?.label),title:u,style:o?.label},c)),{item:l}),g=t.forwardRef((e,l)=>{let{prefixCls:s="rc-segmented",direction:d,vertical:c,options:g=[],disabled:p,defaultValue:f,value:h,name:$,onChange:b,className:y="",style:v,styles:x,classNames:S,motionName:k="thumb-motion",itemRender:C,...w}=e,E=t.useRef(null),R=t.useMemo(()=>(0,a.composeRef)(E,l),[E,l]),N=t.useMemo(()=>g.map(e=>{if("object"==typeof e&&null!==e){let t=void 0!==e.title?e.title:"object"!=typeof e.label?e.label?.toString():void 0;return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}}),[g]),[M,z]=(0,i.default)(f??N[0]?.value,h),[T,P]=t.useState(!1),j=(e,t)=>{z(t),b?.(t)},H=(0,o.default)(w,["children"]),[A,I]=t.useState(!1),[D,F]=t.useState(!1),W=()=>{F(!0)},B=()=>{F(!1)},L=()=>{I(!1)},G=e=>{"Tab"===e.key&&I(!0)},O=e=>{let t=N.findIndex(e=>e.value===M),r=N.length,i=N[(t+e+r)%r];i&&(z(i.value),b?.(i.value))},X=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":O(-1);break;case"ArrowRight":case"ArrowDown":O(1)}};return t.createElement("div",(0,r.default)({role:"radiogroup","aria-label":"segmented control",tabIndex:p?void 0:0,"aria-orientation":c?"vertical":"horizontal",style:v},H,{className:(0,n.clsx)(s,{[`${s}-rtl`]:"rtl"===d,[`${s}-disabled`]:p,[`${s}-vertical`]:c},y),ref:R}),t.createElement("div",{className:`${s}-group`},t.createElement(u,{vertical:c,prefixCls:s,value:M,containerRef:E,motionName:`${s}-${k}`,direction:d,getValueIndex:e=>N.findIndex(t=>t.value===e),onMotionStart:()=>{P(!0)},onMotionEnd:()=>{P(!1)}}),N.map(e=>{let{value:i,disabled:o}=e;return t.createElement(m,(0,r.default)({},e,{name:$,data:e,itemRender:C,key:i,prefixCls:s,className:(0,n.clsx)(e.className,`${s}-item`,S?.item,{[`${s}-item-selected`]:i===M&&!T,[`${s}-item-focused`]:D&&A&&i===M}),style:x?.item,classNames:S,styles:x,checked:i===M,onChange:j,onFocus:W,onBlur:B,onKeyDown:X,onKeyUp:G,onMouseDown:L,disabled:!!p||!!o}))})))});var p=e.i(572353),f=e.i(430898),h=e.i(497630),$=e.i(934854),b=e.i(993175),y=e.i(625263),v=e.i(188304);e.i(290586);var x=e.i(774778),S=e.i(307441),k=e.i(352050),C=e.i(104616);function w(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}let E=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),R={overflow:"hidden",...S.textEllipsis};var N=(0,k.genStyleHooks)("Segmented",e=>{let{lineWidth:t,calc:r}=e;return(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:i,motionDurationMid:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...(0,S.resetComponent)(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...(0,S.genFocusStyle)(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,x.unit)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...E(e),color:e.itemSelectedColor},"&-focused":(0,S.genFocusOutline)(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>`${e} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:(0,x.unit)(a),padding:`0 ${(0,x.unit)(e.segmentedPaddingHorizontal)}`,...R},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...E(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,x.unit)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:n,lineHeight:(0,x.unit)(n),padding:`0 ${(0,x.unit)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:(0,x.unit)(l),padding:`0 ${(0,x.unit)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...w(`&-disabled ${t}-item`,e),...w(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${r} ${i}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}})((0,C.mergeToken)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:r,colorFillSecondary:i,colorBgElevated:o,colorFill:a,lineWidthBold:n,colorBgLayout:l}=e;return{trackPadding:n,trackBg:l,itemColor:t,itemHoverColor:r,itemHoverBg:i,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:r}});let M=t.forwardRef((e,r)=>{let i=(0,p.default)(),{prefixCls:o,className:a,rootClassName:l,block:s,options:d=[],size:c,style:u,vertical:m,orientation:x,shape:S="default",name:k=i,styles:C,classNames:w,...E}=e,{getPrefixCls:R,direction:M,className:z,style:T,classNames:P,styles:j}=(0,b.useComponentConfig)("segmented"),H={...e,options:d,size:c,shape:S},[A,I]=(0,f.useMergeSemantic)([P,w],[j,C],{props:H}),D=R("segmented",o),[F,W]=N(D),B=(0,y.default)(c),L=t.useMemo(()=>d.map(e=>{if((0,$.isPlainObject)(e)&&e?.icon){let{icon:r,label:i,...o}=e;return{...o,label:t.createElement(t.Fragment,null,t.createElement("span",{className:(0,n.clsx)(`${D}-item-icon`,A.icon),style:I.icon},r),i&&t.createElement("span",null,i))}}return e}),[d,D,A.icon,I.icon]),[,G]=(0,h.useOrientation)(x,m),O=(0,n.clsx)(a,l,z,A.root,{[`${D}-block`]:s,[`${D}-sm`]:"small"===B,[`${D}-lg`]:"large"===B,[`${D}-vertical`]:G,[`${D}-shape-${S}`]:"round"===S},F,W),X={...I.root,...T,...u};return t.createElement(g,{...E,name:k,className:O,style:X,classNames:A,styles:I,itemRender:(e,{item:r})=>{if(!r.tooltip)return e;let i=(0,$.isPlainObject)(r.tooltip)?r.tooltip:{title:r.tooltip};return t.createElement(v.default,{...i},e)},options:L,ref:r,prefixCls:D,direction:M,vertical:G})});e.s(["default",()=>M],685986),e.s(["Segmented",()=>M],204275)},229068,e=>{"use strict";var t=e.i(461550);e.s(["Progress",()=>t.default])},343275,e=>{"use strict";e.i(957562);var t=e.i(617796),r=e.i(557584),i=e.i(379049),o=e.i(865372),a=e.i(854583),n=e.i(191788),l=e.i(730943),s=e.i(56742),d=e.i(683276),c=e.i(391398);let{noteOnce:u}=r.warning;e.s(["ModalForm",0,function({children:e,trigger:r,onOpenChange:m,modalProps:g,onFinish:p,submitTimeout:f,title:h,width:$,open:b,...y}){u(!y.footer||!g?.footer,"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");let v=(0,n.useContext)(i.ConfigProvider.ConfigContext),[,x]=(0,n.useState)([]),[S,k]=(0,n.useState)(!1),[C,w]=(0,t.useControlledState)(!1,b),E=(0,s.useRefFunction)(e=>{m?.(e)}),R=(0,n.useCallback)(e=>{w(t=>{let r="function"==typeof e?e(t):e;return queueMicrotask(()=>{E(r)}),r})},[E]),N=(0,n.useRef)(null),M=(0,n.useCallback)(e=>{null===N.current&&e&&x([]),N.current=e},[]),z=(0,n.useRef)(),T=(0,n.useCallback)(()=>{let e=y.form??y.formRef?.current??z.current;e&&g?.destroyOnHidden&&"function"==typeof e.resetFields&&e.resetFields()},[g?.destroyOnHidden,y.form,y.formRef]);(0,n.useImperativeHandle)(y.formRef,()=>z.current,[z.current]),(0,n.useEffect)(()=>{b&&m?.(!0)},[b]);let P=(0,n.useMemo)(()=>r?n.default.cloneElement(r,{key:"trigger",...r.props,onClick:async e=>{R(!C),r.props?.onClick?.(e)}}):null,[R,r,C]),j=(0,n.useMemo)(()=>!1!==y.submitter&&(0,a.merge)({searchConfig:{submitText:g?.okText??v.locale?.Modal?.okText??"确认",resetText:g?.cancelText??v.locale?.Modal?.cancelText??"取消"},resetButtonProps:{preventDefault:!0,disabled:f&&S,onClick:e=>{R(!1),g?.onCancel?.(e)}}},y.submitter??{}),[v.locale?.Modal?.cancelText,v.locale?.Modal?.okText,g,y.submitter,R,S,f]),H=(0,n.useCallback)((e,t)=>(0,c.jsxs)(c.Fragment,{children:[e,N.current&&t?(0,c.jsx)(n.default.Fragment,{children:(0,l.createPortal)(t,N.current)},"submitter"):t]}),[]),A=(0,n.useCallback)(async e=>{let t=p?.(e);if(f&&t instanceof Promise||f){k(!0);let e=setTimeout(()=>k(!1),f);try{let r=await t;return clearTimeout(e),k(!1),r&&R(!1),r}catch(t){throw clearTimeout(e),k(!1),t}}let r=await t;return r&&R(!1),r},[p,R,f]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.Modal,{title:h,width:$||800,...g,open:C,onCancel:e=>{f&&S||(R(!1),g?.onCancel?.(e))},afterClose:()=>{g?.destroyOnHidden&&T(),C&&R(!1),g?.afterClose?.()},footer:!1!==y.submitter?(0,c.jsx)("div",{ref:M,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,c.jsx)(d.BaseForm,{formComponentType:"ModalForm",layout:"vertical",...y,onInit:(e,t)=>{y.formRef&&(y.formRef.current=t),y?.onInit?.(e,t),z.current=t},formRef:z,submitter:j,onFinish:async e=>await A(e),contentRender:H,children:e})}),P]})}])},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 o(){return(o=Object.assign.bind()).apply(this,arguments)}let a=t.forwardRef((e,a)=>t.createElement(i.default,o({},e,{ref:a,icon:r})));e.s(["default",()=>a],439214)},444455,e=>{"use strict";var t=e.i(494834),r=e.i(224263),i=e.i(734316);t.default.extend(r.default);let o=e=>!!e?._isAMomentObject,a=(e,r)=>(0,i.isNil)(e)||t.default.isDayjs(e)||o(e)?o(e)?(0,t.default)(e):e:Array.isArray(e)?e.map(e=>a(e,r)):"number"==typeof e?(0,t.default)(e):(0,t.default)(e,r);e.s(["parseValueToDay",0,a])},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},461550,e=>{"use strict";var t=e.i(191788);e.i(644038);var r=e.i(839904),i=e.i(202917),o=e.i(146025),a=e.i(876352),n=e.i(449995);e.i(957562);var l=e.i(191248),s=e.i(56206),d=e.i(430898),c=e.i(934854),u=e.i(993175);let m={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1};var g=e.i(572353);let p=({bg:e,children:r})=>t.createElement("div",{style:{width:"100%",height:"100%",background:e}},r);function f(e,t){return Object.keys(e).map(r=>{let i=parseFloat(r),o=`${Math.floor(i*t)}%`;return`${e[r]} ${o}`})}let h=t.forwardRef((e,r)=>{let{prefixCls:i,color:o,gradientId:a,radius:n,className:l,style:d,ptg:c,strokeLinecap:u,strokeWidth:m,size:g,gapDegree:h}=e,$=o&&"object"==typeof o,b=g/2,y=t.createElement("circle",{className:(0,s.clsx)(`${i}-circle-path`,l),r:n,cx:b,cy:b,stroke:$?"#FFF":void 0,strokeLinecap:u,strokeWidth:m,opacity:+(0!==c),style:d,ref:r});if(!$)return y;let v=`${a}-conic`,x=h?`${180+h/2}deg`:"0deg",S=f(o,(360-h)/360),k=f(o,1),C=`conic-gradient(from ${x}, ${S.join(", ")})`,w=`linear-gradient(to ${h?"bottom":"top"}, ${k.join(", ")})`;return t.createElement(t.Fragment,null,t.createElement("mask",{id:v},y),t.createElement("foreignObject",{x:0,y:0,width:g,height:g,mask:`url(#${v})`},t.createElement(p,{bg:w},t.createElement(p,{bg:C}))))}),$=(e,t,r,i,o,a,n,l,s,d,c=0)=>{let u=(100-i)/100*t;return"round"===s&&100!==i&&(u+=d/2)>=t&&(u=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:u+c,transform:`rotate(${o+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[n])}deg)`,transformOrigin:"50px 50px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};function b(){return(b=Object.assign.bind()).apply(this,arguments)}function y(e){let t=e??[];return Array.isArray(t)?t:[t]}var v=e=>{let r,i,o,a,n,l,{id:d,prefixCls:c,classNames:u={},styles:p={},steps:f,strokeWidth:v,railWidth:x,gapDegree:S=0,gapPosition:k,railColor:C,strokeLinecap:w,style:E,className:R,strokeColor:N,percent:M,loading:z,...T}={...m,...e},P=(0,g.default)(d),j=`${P}-gradient`,H=50-v/2,A=2*Math.PI*H,I=S>0?90+S/2:-90,D=(360-S)/360*A,{count:F,gap:W}="object"==typeof f?f:{count:f,gap:2},B=y(M),L=y(N),G=L.find(e=>e&&"object"==typeof e),O=G&&"object"==typeof G?"butt":w,{indeterminateStyleProps:X,indeterminateStyleAnimation:q}=(({id:e,loading:r})=>{if(!r)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let i=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${i} 1s linear infinite`},indeterminateStyleAnimation:t.default.createElement("style",null,`@keyframes ${i} {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}`)}})({id:P,loading:z}),Y=$(A,D,0,100,I,S,k,C,O,v),K=(r=(0,t.useRef)([]),i=(0,t.useRef)(null),(0,t.useEffect)(()=>{let e=Date.now(),t=!1;r.current.forEach(r=>{if(!r)return;t=!0;let o=r.style;o.transitionDuration=".3s, .3s, .3s, .06s",i.current&&e-i.current<100&&(o.transitionDuration="0s, 0s")}),t&&(i.current=Date.now())}),r.current);return t.createElement("svg",b({className:(0,s.clsx)(`${c}-circle`,u.root,R),viewBox:"0 0 100 100",style:{...p.root,...E},id:d,role:"presentation"},T),!F&&t.createElement("circle",{className:(0,s.clsx)(`${c}-circle-rail`,u.rail),r:H,cx:50,cy:50,stroke:C,strokeLinecap:O,strokeWidth:x||v,style:{...Y,...p.rail}}),F?(o=Math.round(F*(B[0]/100)),a=100/F,n=0,Array(F).fill(null).map((e,r)=>{let i=r<=o-1?L[0]:C,l=i&&"object"==typeof i?`url(#${j})`:void 0,d=$(A,D,n,a,I,S,k,i,"butt",v,W);return n+=(D-d.strokeDashoffset+W)*100/D,t.createElement("circle",{key:r,className:(0,s.clsx)(`${c}-circle-path`,u.track),r:H,cx:50,cy:50,stroke:l,strokeWidth:v,opacity:1,style:{...d,...p.track},ref:e=>{K[r]=e}})})):(l=0,B.map((e,r)=>{let i=L[r]||L[L.length-1],o=$(A,D,l,e,I,S,k,i,O,v);return l+=e,t.createElement(h,{key:r,color:i,ptg:e,radius:H,prefixCls:c,gradientId:j,className:u.track,style:{...o,...X,...p.track},strokeLinecap:O,strokeWidth:v,gapDegree:S,ref:e=>{K[r]=e},size:100})}).reverse()),q)},x=e.i(188304);e.i(797652);var S=e.i(435187);function k(e){return!e||e<0?0:e>100?100:e}function C({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}let w=(e,t,r)=>{let i=-1,o=-1;if("step"===t){let t=r.steps,a=r.strokeWidth;"string"==typeof e||void 0===e?(i="small"===e?2:14,o=a??8):(0,c.isNumber)(e)?[i,o]=[e,e]:[i=14,o=8]=Array.isArray(e)?e:[e.width,e.height],i*=t}else if("line"===t){let t=r?.strokeWidth;"string"==typeof e||void 0===e?o=t||("small"===e?6:8):(0,c.isNumber)(e)?[i,o]=[e,e]:[i=-1,o=8]=Array.isArray(e)?e:[e.width,e.height]}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[i,o]="small"===e?[60,60]:[120,120]:(0,c.isNumber)(e)?[i,o]=[e,e]:Array.isArray(e)&&(i=e[0]??e[1]??120,o=e[0]??e[1]??120));return[i,o]},E=["root","body","indicator"];var R=e=>{let{prefixCls:r,classNames:i,styles:o,railColor:a,trailColor:n,strokeLinecap:d="round",gapPosition:c,gapPlacement:m,gapDegree:g,width:p=120,type:f,children:h,success:$,size:b=p,steps:y}=e,{direction:R}=(0,u.useComponentConfig)("progress"),[N,M]=w(b,"circle"),{strokeWidth:z}=e;void 0===z&&(z=Math.max(3/N*100,6));let T=t.useMemo(()=>g||0===g?g:"dashboard"===f?75:void 0,[g,f]),P=(({percent:e,success:t})=>{let r=k(C({success:t}));return[r,k(k(e)-r)]})(e),j=t.useMemo(()=>{let e=(m??c)||"dashboard"===f&&"bottom"||void 0,t="rtl"===R;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[R,m,c,f]),H="[object Object]"===Object.prototype.toString.call(e.strokeColor),A=(({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||S.presetPrimaryColors.green,t||null]})({success:$,strokeColor:e.strokeColor}),I=(0,s.clsx)(`${r}-body`,{[`${r}-circle-gradient`]:H},i.body),D=t.createElement(v,{steps:y,percent:y?P[1]:P,strokeWidth:z,railWidth:z,strokeColor:y?A[1]:A,strokeLinecap:d,railColor:a??n,prefixCls:r,gapDegree:T,gapPosition:j,classNames:(0,l.omit)(i,E),styles:(0,l.omit)(o,E)}),F=N<=20,W=t.createElement("div",{className:I,style:{width:N,height:M,fontSize:.15*N+6,...o.body}},D,!F&&h);return F?t.createElement(x.default,{title:h},W):W};e.i(290586);var N=e.i(456161),M=e.i(307441),z=e.i(352050),T=e.i(104616);let P="--progress-line-stroke-color";var j=(0,z.genStyleHooks)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=(0,T.mergeToken)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{...(0,M.resetComponent)(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}})(r),(e=>{var t;let r,{componentCls:i}=e;return{[`${i}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${i}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${i}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${i}-status-active`]:{[`${i}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:(r=t?"100%":"-100%",new N.Keyframes(`antProgress${t?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${r}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${r}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${i}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${i}-status-exception`]:{[`${i}-track`]:{background:e.colorError}},[`&${i}-status-success`]:{[`${i}-track`]:{background:e.colorSuccess}},[`${i}-indicator-outer`]:{[`&${i}-indicator-start`]:{order:-1}},[`${i}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${i}-indicator${i}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${i}-indicator-end`]:{justifyContent:"end"},[`&${i}-indicator-start`]:{justifyContent:"start"},[`&${i}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}})(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),H=e=>{let{prefixCls:r,classNames:i,styles:o,direction:a,percent:n,size:l,strokeWidth:d,strokeColor:c,strokeLinecap:u="round",children:m,railColor:g,trailColor:p,percentPosition:f,success:h}=e,{align:$,type:b}=f,y="square"===u||"butt"===u?0:void 0,[v,x]=w(l??[-1,d||("small"===l?6:8)],"line",{strokeWidth:d}),E=`${r}-track`,R=c&&"string"!=typeof c?((e,t)=>{let{from:r=S.presetPrimaryColors.blue,to:i=S.presetPrimaryColors.blue,direction:o="rtl"===t?"to left":"to right",...a}=e;if(0!==Object.keys(a).length){let e,t=(e=[],Object.keys(a).forEach(t=>{let r=Number.parseFloat(t.replace(/%/g,""));Number.isNaN(r)||e.push({key:r,value:a[t]})}),(e=e.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>`${t} ${e}%`).join(", ")),r=`linear-gradient(${o}, ${t})`;return{background:r,[P]:r}}let n=`linear-gradient(${o}, ${r}, ${i})`;return{background:n,[P]:n}})(c,a):{[P]:c,background:c},N={width:`${k(n)}%`,height:x,borderRadius:y,...R},M=C(e),z={width:`${k(M)}%`,height:x,borderRadius:y,backgroundColor:h?.strokeColor};return t.createElement("div",{className:(0,s.clsx)(`${r}-body`,i.body,{[`${r}-body-layout-bottom`]:"center"===$&&"outer"===b}),style:{width:v>0?v:"100%",...o.body}},t.createElement("div",{className:(0,s.clsx)(`${r}-rail`,i.rail),style:{backgroundColor:(g??p)||void 0,borderRadius:y,height:x,...o.rail}},t.createElement("div",{className:(0,s.clsx)(E,i.track),style:{...N,...o.track}},"inner"===b&&m),void 0!==M&&t.createElement("div",{className:(0,s.clsx)(E,`${E}-success`,i.track),style:{...z,...o.track}})),"outer"===b&&m)},A=e=>{let{classNames:r,styles:i,size:o,steps:a,rounding:n=Math.round,percent:l=0,strokeWidth:d=8,strokeColor:c,railColor:u,trailColor:m,prefixCls:g,children:p}=e,f=n(l/100*a),[h,$]=w(o??["small"===o?2:14,d],"step",{steps:a,strokeWidth:d}),b=h/a,y=Array.from({length:a}),v=u??m;for(let e=0;e<a;e++){let o=Array.isArray(c)?c[e]:c;y[e]=t.createElement("div",{key:e,className:(0,s.clsx)(`${g}-steps-item`,{[`${g}-steps-item-active`]:e<=f-1},r.track),style:{backgroundColor:e<=f-1?o:v,width:b,height:$,...i.track}})}return t.createElement("div",{className:(0,s.clsx)(`${g}-steps-body`,r.body),style:i.body},y,p)};let I=["normal","exception","active","success"],D=t.forwardRef((e,m)=>{let g,{prefixCls:p,className:f,rootClassName:h,classNames:$,styles:b,steps:y,strokeColor:v,percent:x=0,size:S="medium",showInfo:E=!0,type:N="line",status:M,format:z,style:T,percentPosition:P={},...D}=e,{align:F="end",type:W="outer"}=P,B=Array.isArray(v)?v[0]:v,L="string"==typeof v||Array.isArray(v)?v:void 0,G=t.useMemo(()=>{if(B){let e="string"==typeof B?B:Object.values(B)[0];return new r.FastColor(e).isLight()}return!1},[v]),O=t.useMemo(()=>{let t=C(e);return Number.parseInt(void 0!==t?(t??0)?.toString():(x??0)?.toString(),10)},[x,e.success]),X=t.useMemo(()=>!I.includes(M)&&O>=100?"success":M||"normal",[M,O]),{getPrefixCls:q,direction:Y,className:K,style:_,classNames:V,styles:U}=(0,u.useComponentConfig)("progress"),Q=q("progress",p),[Z,J]=j(Q),ee={...e,percent:x,type:N,size:S,showInfo:E,percentPosition:P},[et,er]=(0,d.useMergeSemantic)([V,$],[U,b],{props:ee}),ei="line"===N,eo=ei&&!y,ea=t.useMemo(()=>{let r;if(!E)return null;let l=C(e),d=z||(e=>`${e}%`),c=ei&&G&&"inner"===W;return"inner"===W||z||"exception"!==X&&"success"!==X?r=d(k(x),k(l)):"exception"===X?r=ei?t.createElement(a.default,null):t.createElement(n.default,null):"success"===X&&(r=ei?t.createElement(i.default,null):t.createElement(o.default,null)),t.createElement("span",{className:(0,s.clsx)(`${Q}-indicator`,{[`${Q}-indicator-bright`]:c,[`${Q}-indicator-${F}`]:eo,[`${Q}-indicator-${W}`]:eo},et.indicator),style:er.indicator,title:"string"==typeof r?r:void 0},r)},[E,x,O,X,N,Q,z,ei,G,W,F,eo,et.indicator,er.indicator]),en={...e,classNames:et,styles:er};"line"===N?g=y?t.createElement(A,{...en,strokeColor:L,prefixCls:Q,steps:(0,c.isPlainObject)(y)?y.count:y},ea):t.createElement(H,{...en,strokeColor:B,prefixCls:Q,direction:Y,percentPosition:{align:F,type:W}},ea):("circle"===N||"dashboard"===N)&&(g=t.createElement(R,{...en,strokeColor:B,prefixCls:Q,progressStatus:X},ea));let el=(0,s.clsx)(Q,`${Q}-status-${X}`,{[`${Q}-${"dashboard"===N&&"circle"||N}`]:"line"!==N,[`${Q}-inline-circle`]:"circle"===N&&w(S,"circle")[0]<=20,[`${Q}-line`]:eo,[`${Q}-line-align-${F}`]:eo,[`${Q}-line-position-${W}`]:eo,[`${Q}-steps`]:y,[`${Q}-show-info`]:E,[`${Q}-small`]:"small"===S,[`${Q}-rtl`]:"rtl"===Y},K,f,h,et.root,Z,J);return t.createElement("div",{ref:m,style:{..._,...er.root,...T},className:el,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...(0,l.omit)(D,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},g)});e.s(["default",()=>D],461550)},638885,e=>{"use strict";var t=e.i(430077),r=e.i(494834),i=e.i(371713),o=e.i(191788),a=e.i(440656),n=e.i(79615),l=e.i(444455),s=e.i(391398);r.default.extend(i.default);var d=o.default.forwardRef(({text:e,mode:i,format:d="YYYY-MM-DD",label:c,light:u,render:m,formItemRender:g,showTime:p,fieldProps:f,picker:h,lightLabel:$,variant:b},y)=>{let v=(0,a.useIntl)(),[x,S]=(0,o.useState)(!1);if("read"===i){var k;let t=(k=f.format||d,e?"function"==typeof k?k((0,r.default)(e)):(0,r.default)(e).format((Array.isArray(k)?k[0]:k)||"YYYY-MM-DD"):"-");return m?m(e,{mode:i,...f},(0,s.jsx)(s.Fragment,{children:t})):(0,s.jsx)(s.Fragment,{children:t})}if("edit"===i||"update"===i){let r,{disabled:o,value:a,placeholder:m=v.getMessage("tableForm.selectPlaceholder","请选择")}=f,k=(0,l.parseValueToDay)(a);return(r=u?(0,s.jsx)(n.FieldLabel,{label:c,onClick:()=>{f?.onOpenChange?.(!0),S(!0)},style:k?{paddingInlineEnd:0}:void 0,disabled:o,value:k||x?(0,s.jsx)(t.DatePicker,{picker:h,showTime:p,format:d,ref:y,...f,value:k,onOpenChange:e=>{S(e),f?.onOpenChange?.(e)},open:x}):void 0,allowClear:!1,downIcon:!k&&!x&&void 0,variant:b,ref:$}):(0,s.jsx)(t.DatePicker,{picker:h,showTime:p,format:d,placeholder:m,variant:b,ref:y,...f,value:k}),g)?g(e,{mode:i,...f},r):r}return null});e.s(["default",()=>d])},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},946077,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(191248),i=e.i(531983),o=e.i(56206),a=e.i(430898),n=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(n.ConfigContext),s=l("card",e),d=(0,o.clsx)(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return t.createElement("div",{...a,className:d})};e.i(290586);var m=e.i(774778),g=e.i(307441),p=e.i(352050),f=e.i(104616),h=(0,p.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:a,bodyPadding:n,extraColor:l,motionDurationMid:s}=e;return{[t]:{...(0,g.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:o,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${(0,m.unit)(o)}`,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,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: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:n,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:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
${(0,m.unit)(o)} 0 0 0 ${r},
|
|
0 ${(0,m.unit)(o)} 0 0 ${r},
|
|
${(0,m.unit)(o)} ${(0,m.unit)(o)} 0 0 ${r},
|
|
${(0,m.unit)(o)} 0 0 0 ${r} inset,
|
|
0 ${(0,m.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,m.unit)(e.borderRadiusLG)} ${(0,m.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:r,actionsLiMargin:i,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:n}=e;return{margin:0,padding:0,listStyle:"none",background:n,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,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,m.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:(0,m.unit)(e.calc(o).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,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,m.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,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:o}=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)(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:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,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 $=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,m)=>{let g,{prefixCls:p,className:f,rootClassName:b,style:y,extra:v,headStyle:x={},bodyStyle:S={},title:k,loading:C,bordered:w,variant:E,size:R,type:N,cover:M,actions:z,tabList:T,children:P,activeTabKey:j,defaultActiveTabKey:H,tabBarExtraContent:A,hoverable:I,tabProps:D={},classNames:F,styles:W,...B}=e,{getPrefixCls:L,direction:G,className:O,style:X,classNames:q,styles:Y}=(0,n.useComponentConfig)("card"),[K]=(0,s.default)("card",E,w),_=(0,l.default)(R),V={...e,size:_,variant:K},[U,Q]=(0,a.useMergeSemantic)([q,F],[Y,W],{props:V}),Z=t.useMemo(()=>(0,i.toArray)(P),[P]),J=t.useMemo(()=>Z.some(e=>t.isValidElement(e)&&e.type===u),[Z]),ee=L("card",p),[et,er]=h(ee),ei=t.createElement(d.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},P),eo=void 0!==j,ea={...D,[eo?"activeKey":"defaultActiveKey"]:eo?j:H,tabBarExtraContent:A},en=T?t.createElement(c.default,{size:"small"!==_?"large":_,...ea,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:T.map(({tab:e,...t})=>({label:e,...t}))}):null;if(k||v||en){let e=(0,o.clsx)(`${ee}-head`,U.header),r=(0,o.clsx)(`${ee}-head-title`,U.title),i=(0,o.clsx)(`${ee}-extra`,U.extra),a={...x,...Q.header};g=t.createElement("div",{className:e,style:a},t.createElement("div",{className:`${ee}-head-wrapper`},k&&t.createElement("div",{className:r,style:Q.title},k),v&&t.createElement("div",{className:i,style:Q.extra},v)),en)}let el=(0,o.clsx)(`${ee}-cover`,U.cover),es=M?t.createElement("div",{className:el,style:Q.cover},M):null,ed=(0,o.clsx)(`${ee}-body`,U.body),ec={...S,...Q.body},eu=C||Z.length?t.createElement("div",{className:ed,style:ec},C?ei:P):null,em=(0,o.clsx)(`${ee}-actions`,U.actions),eg=z?.length?t.createElement($,{actionClasses:em,actionStyle:Q.actions,actions:z}):null,ep=(0,r.omit)(B,["onTabChange"]),ef=(0,o.clsx)(ee,O,{[`${ee}-loading`]:C,[`${ee}-bordered`]:"borderless"!==K,[`${ee}-hoverable`]:I,[`${ee}-contain-grid`]:J,[`${ee}-contain-tabs`]:T?.length,[`${ee}-small`]:"small"===_,[`${ee}-type-${N}`]:!!N,[`${ee}-rtl`]:"rtl"===G},f,b,et,er,U.root),eh={...Q.root,...X,...y};return t.createElement("div",{ref:m,...ep,className:ef,style:eh},g,es,eu,eg)});b.Grid=u,b.Meta=e=>{let{prefixCls:r,className:i,avatar:l,title:s,description:d,style:c,classNames:u,styles:m,...g}=e,{getPrefixCls:p,className:f,style:h,classNames:$,styles:b}=(0,n.useComponentConfig)("cardMeta"),y=p("card",r),v=`${y}-meta`,[x,S]=(0,a.useMergeSemantic)([$,u],[b,m],{props:e}),k=(0,o.clsx)(v,i,f,x.root),C={...h,...S.root,...c},w=(0,o.clsx)(`${v}-avatar`,x.avatar),E=(0,o.clsx)(`${v}-title`,x.title),R=(0,o.clsx)(`${v}-description`,x.description),N=(0,o.clsx)(`${v}-section`,x.section),M=l?t.createElement("div",{className:w,style:S.avatar},l):null,z=s?t.createElement("div",{className:E,style:S.title},s):null,T=d?t.createElement("div",{className:R,style:S.description},d):null,P=z||T?t.createElement("div",{className:N,style:S.section},z,T):null;return t.createElement("div",{...g,className:k,style:C},M,P)},e.s(["Card",()=>b],946077)}]);
|