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
12 KiB
10 lines
12 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 i=e.i(391398);e.s(["PageLoading",0,({isLoading:e,pastDelay:a,timedOut:n,error:r,retry:o,...l})=>(0,i.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,i.jsx)(t.Spin,{size:"large",...l})})])},106555,e=>{"use strict";var t=e.i(379049),i=e.i(56206),a=e.i(191788),n=e.i(814432),r=e.i(889590),o=e.i(391398);e.s(["GridContent",0,e=>{let l=(0,a.useContext)(n.RouteContext),{children:d,contentWidth:s,className:c,style:u}=e,{getPrefixCls:g}=(0,a.useContext)(t.ConfigProvider.ConfigContext),$=e.prefixCls||g("pro"),m=s||l.contentWidth,h=`${$}-grid-content`,{wrapSSR:p,hashId:b}=(0,r.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${h}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),x="Fixed"===m&&"top"===l.layout;return p((0,o.jsx)("div",{className:(0,i.clsx)(h,b,c,{[`${h}-wide`]:x}),style:u,"data-testid":"pro-grid-content",children:(0,o.jsx)("div",{className:(0,i.clsx)(`${$}-grid-content-children`,b),children:d})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},154165,e=>{"use strict";var t=e.i(934854),i=(e,i={})=>!(0,t.isNonNullable)(e)&&i?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>i])},439214,e=>{"use strict";var t=e.i(191788),i={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"},a=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let r=t.forwardRef((e,r)=>t.createElement(a.default,n({},e,{ref:r,icon:i})));e.s(["default",()=>r],439214)},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},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 i=e.i(191248),a=e.i(531983),n=e.i(56206),r=e.i(430898),o=e.i(993175),l=e.i(625263),d=e.i(536995),s=e.i(106422),c=e.i(267226),u=({prefixCls:e,className:i,hoverable:a=!0,...r})=>{let{getPrefixCls:l}=t.useContext(o.ConfigContext),d=l("card",e),s=(0,n.clsx)(`${d}-grid`,i,{[`${d}-grid-hoverable`]:a});return t.createElement("div",{...r,className:s})};e.i(290586);var g=e.i(774778),$=e.i(307441),m=e.i(352050),h=e.i(104616),p=(0,m.genStyleHooks)("Card",e=>{let t=(0,h.mergeToken)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[(e=>{let{componentCls:t,cardShadow:i,cardHeadPadding:a,colorBorderSecondary:n,boxShadowTertiary:r,bodyPadding:o,extraColor:l,motionDurationMid:d}=e;return{[t]:{...(0,$.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:r},[`${t}-head`]:(e=>{let{antCls:t,componentCls:i,headerHeight:a,headerPadding:n,tabsMarginBottom:r}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,g.unit)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,g.unit)(e.borderRadiusLG)} ${(0,g.unit)(e.borderRadiusLG)} 0 0`,...(0,$.clearFix)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...$.textEllipsis,[`
|
|
> ${i}-typography,
|
|
> ${i}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:r,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,g.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,g.unit)(e.borderRadiusLG)} ${(0,g.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:i,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
${(0,g.unit)(n)} 0 0 0 ${i},
|
|
0 ${(0,g.unit)(n)} 0 0 ${i},
|
|
${(0,g.unit)(n)} ${(0,g.unit)(n)} 0 0 ${i},
|
|
${(0,g.unit)(n)} 0 0 0 ${i} inset,
|
|
0 ${(0,g.unit)(n)} 0 0 ${i} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}})(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,g.unit)(e.borderRadiusLG)} ${(0,g.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:(e=>{let{componentCls:t,iconCls:i,actionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:r,actionsBg:o}=e;return{margin:0,padding:0,listStyle:"none",background:o,borderTop:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${r}`,display:"flex",borderRadius:`0 0 ${(0,g.unit)(e.borderRadiusLG)} ${(0,g.unit)(e.borderRadiusLG)}`,...(0,$.clearFix)(),"& > li":{margin:a,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), > ${i}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,g.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${i}`]:{fontSize:n,lineHeight:(0,g.unit)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${r}`}}}})(e),[`${t}-meta`]:{margin:`${(0,g.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,$.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,...$.textEllipsis},"&-description":{color:e.colorTextDescription}}},[`${t}-bordered`]:{border:`${(0,g.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} ${d}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:i}},[`${t}-contain-grid`]:{borderRadius:`${(0,g.unit)(e.borderRadiusLG)} ${(0,g.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:a}}},[`${t}-type-inner`]:(e=>{let{componentCls:t,colorFillAlter:i,headerPadding:a,bodyPadding:n}=e;return{[`${t}-head`]:{padding:`0 ${(0,g.unit)(a)}`,background:i,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,g.unit)(e.padding)} ${(0,g.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:i,headerPaddingSM:a,headerHeightSM:n,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${(0,g.unit)(a)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:i}},[`${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 b=e=>{let{actionClasses:i,actions:a=[],actionStyle:n}=e;return t.createElement("ul",{className:i,style:n},a.map((e,i)=>{let n=`action-${i}`;return t.createElement("li",{style:{width:`${100/a.length}%`},key:n},t.createElement("span",null,e))}))},x=t.forwardRef((e,g)=>{let $,{prefixCls:m,className:h,rootClassName:x,style:y,extra:f,headStyle:S={},bodyStyle:v={},title:C,loading:z,bordered:E,variant:R,size:w,type:N,cover:G,actions:L,tabList:T,children:W,activeTabKey:B,defaultActiveTabKey:H,tabBarExtraContent:M,hoverable:k,tabProps:q={},classNames:I,styles:P,...j}=e,{getPrefixCls:A,direction:F,className:D,style:_,classNames:X,styles:K}=(0,o.useComponentConfig)("card"),[V]=(0,d.default)("card",R,E),O=(0,l.default)(w),J={...e,size:O,variant:V},[Q,U]=(0,r.useMergeSemantic)([X,I],[K,P],{props:J}),Y=t.useMemo(()=>(0,a.toArray)(W),[W]),Z=t.useMemo(()=>Y.some(e=>t.isValidElement(e)&&e.type===u),[Y]),ee=A("card",m),[et,ei]=p(ee),ea=t.createElement(s.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},W),en=void 0!==B,er={...q,[en?"activeKey":"defaultActiveKey"]:en?B:H,tabBarExtraContent:M},eo=T?t.createElement(c.default,{size:"small"!==O?"large":O,...er,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:T.map(({tab:e,...t})=>({label:e,...t}))}):null;if(C||f||eo){let e=(0,n.clsx)(`${ee}-head`,Q.header),i=(0,n.clsx)(`${ee}-head-title`,Q.title),a=(0,n.clsx)(`${ee}-extra`,Q.extra),r={...S,...U.header};$=t.createElement("div",{className:e,style:r},t.createElement("div",{className:`${ee}-head-wrapper`},C&&t.createElement("div",{className:i,style:U.title},C),f&&t.createElement("div",{className:a,style:U.extra},f)),eo)}let el=(0,n.clsx)(`${ee}-cover`,Q.cover),ed=G?t.createElement("div",{className:el,style:U.cover},G):null,es=(0,n.clsx)(`${ee}-body`,Q.body),ec={...v,...U.body},eu=z||Y.length?t.createElement("div",{className:es,style:ec},z?ea:W):null,eg=(0,n.clsx)(`${ee}-actions`,Q.actions),e$=L?.length?t.createElement(b,{actionClasses:eg,actionStyle:U.actions,actions:L}):null,em=(0,i.omit)(j,["onTabChange"]),eh=(0,n.clsx)(ee,D,{[`${ee}-loading`]:z,[`${ee}-bordered`]:"borderless"!==V,[`${ee}-hoverable`]:k,[`${ee}-contain-grid`]:Z,[`${ee}-contain-tabs`]:T?.length,[`${ee}-small`]:"small"===O,[`${ee}-type-${N}`]:!!N,[`${ee}-rtl`]:"rtl"===F},h,x,et,ei,Q.root),ep={...U.root,..._,...y};return t.createElement("div",{ref:g,...em,className:eh,style:ep},$,ed,eu,e$)});x.Grid=u,x.Meta=e=>{let{prefixCls:i,className:a,avatar:l,title:d,description:s,style:c,classNames:u,styles:g,...$}=e,{getPrefixCls:m,className:h,style:p,classNames:b,styles:x}=(0,o.useComponentConfig)("cardMeta"),y=m("card",i),f=`${y}-meta`,[S,v]=(0,r.useMergeSemantic)([b,u],[x,g],{props:e}),C=(0,n.clsx)(f,a,h,S.root),z={...p,...v.root,...c},E=(0,n.clsx)(`${f}-avatar`,S.avatar),R=(0,n.clsx)(`${f}-title`,S.title),w=(0,n.clsx)(`${f}-description`,S.description),N=(0,n.clsx)(`${f}-section`,S.section),G=l?t.createElement("div",{className:E,style:v.avatar},l):null,L=d?t.createElement("div",{className:R,style:v.title},d):null,T=s?t.createElement("div",{className:w,style:v.description},s):null,W=L||T?t.createElement("div",{className:N,style:v.section},L,T):null;return t.createElement("div",{...$,className:C,style:z},G,W)},e.s(["Card",()=>x],946077)}]);
|