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
16 KiB
10 lines
16 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:r,error:n,retry:l,...o})=>(0,i.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,i.jsx)(t.Spin,{size:"large",...o})})])},106555,e=>{"use strict";var t=e.i(379049),i=e.i(56206),a=e.i(191788),r=e.i(814432),n=e.i(889590),l=e.i(391398);e.s(["GridContent",0,e=>{let o=(0,a.useContext)(r.RouteContext),{children:d,contentWidth:s,className:c,style:u}=e,{getPrefixCls:g}=(0,a.useContext)(t.ConfigProvider.ConfigContext),p=e.prefixCls||g("pro"),m=s||o.contentWidth,f=`${p}-grid-content`,{wrapSSR:h,hashId:$}=(0,n.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${f}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),x="Fixed"===m&&"top"===o.layout;return h((0,l.jsx)("div",{className:(0,i.clsx)(f,$,c,{[`${f}-wide`]:x}),style:u,"data-testid":"pro-grid-content",children:(0,l.jsx)("div",{className:(0,i.clsx)(`${p}-grid-content-children`,$),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])},309999,e=>{"use strict";e.i(495059);var t=e.i(191788),i=e.i(56206),a=e.i(851581),r=e.i(578461),n=e.i(510122);function l(){return(l=Object.assign.bind()).apply(this,arguments)}let o=t.forwardRef((e,o)=>{let{className:d,component:s,viewBox:c,spin:u,rotate:g,tabIndex:p,onClick:m,children:f,...h}=e,$=t.useRef(null),x=(0,a.useComposeRef)($,o);(0,n.warning)(!!(s||f),"Should have `component` prop or `children`."),(0,n.useInsertStyles)($);let{prefixCls:b="anticon",rootClassName:v}=t.useContext(r.default),y=(0,i.clsx)(v,b,{[`${b}-spin`]:!!u&&!!s},d),S=(0,i.clsx)({[`${b}-spin`]:!!u}),w=g?{msTransform:`rotate(${g}deg)`,transform:`rotate(${g}deg)`}:void 0,C={...n.svgBaseProps,className:S,style:w,viewBox:c};c||delete C.viewBox;let E=p;return void 0===E&&m&&(E=-1),t.createElement("span",l({role:"img"},h,{ref:x,tabIndex:E,onClick:m,className:y}),s?t.createElement(s,C,f):f?((0,n.warning)(!!c||1===t.Children.count(f)&&t.isValidElement(f)&&"use"===t.Children.only(f).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),t.createElement("svg",l({},C,{viewBox:c}),f)):null)});e.s(["default",()=>o])},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},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 r(){return(r=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(a.default,r({},e,{ref:n,icon:i})));e.s(["default",()=>n],439214)},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},473657,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:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},a=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(a.default,r({},e,{ref:n,icon:i})));e.s(["ArrowUpOutlined",()=>n],473657)},686111,e=>{"use strict";var t=e.i(571246);e.s(["RightOutlined",()=>t.default])},700907,e=>{"use strict";var t=e.i(191788),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},a=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(a.default,r({},e,{ref:n,icon:i})));e.s(["default",()=>n],700907)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},825310,e=>{"use strict";var t=e.i(191788),i=e.i(708876),a=e.i(117716);function r(){return(r=Object.assign.bind()).apply(this,arguments)}let n=t.forwardRef((e,n)=>t.createElement(a.default,r({},e,{ref:n,icon:i.default})));e.s(["UserOutlined",()=>n],825310)},900195,e=>{"use strict";var t=e.i(191788);e.i(957562);var i=e.i(191248),a=e.i(56206),r=e.i(239988),n=e.i(497630),l=e.i(934854),o=e.i(993175),d=e.i(352050),s=e.i(104616);let c=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],g=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var p=(0,d.genStyleHooks)("Flex",e=>{let{paddingXS:t,padding:i,paddingLG:a}=e,r=(0,s.mergeToken)(e,{flexGapSM:t,flexGap:i,flexGapLG:a});return[(e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}})(r),(e=>{let{componentCls:t}=e,i={};return c.forEach(e=>{i[`${t}-wrap-${e}`]={flexWrap:e}}),i})(r),(e=>{let{componentCls:t}=e,i={};return g.forEach(e=>{i[`${t}-align-${e}`]={alignItems:e}}),i})(r),(e=>{let{componentCls:t}=e,i={};return u.forEach(e=>{i[`${t}-justify-${e}`]={justifyContent:e}}),i})(r)]},()=>({}),{resetStyle:!1});let m=t.default.forwardRef((e,d)=>{var s;let m,f,h,{prefixCls:$,rootClassName:x,className:b,style:v,flex:y,gap:S,vertical:w,orientation:C,component:E="div",children:z,...R}=e,{flex:N,direction:G,getPrefixCls:L}=t.default.useContext(o.ConfigContext),B=L("flex",$),[T,M]=p(B),[,k]=(0,n.useOrientation)(C,w??N?.vertical),H=(0,a.clsx)(b,x,N?.className,B,T,M,(s={...e,vertical:k},(0,a.clsx)({...(m=!0===s.wrap?"wrap":s.wrap,{[`${B}-wrap-${m}`]:m&&c.includes(m)}),...(f={},g.forEach(e=>{f[`${B}-align-${e}`]=s.align===e}),f[`${B}-align-stretch`]=!s.align&&!!s.vertical,f),...(h={},u.forEach(e=>{h[`${B}-justify-${e}`]=s.justify===e}),h)})),{[`${B}-rtl`]:"rtl"===G,[`${B}-gap-${S}`]:(0,r.isPresetSize)(S),[`${B}-vertical`]:k}),W={...N?.style,...v};return(0,l.isNonNullable)(y)&&(W.flex=y),(0,l.isNonNullable)(S)&&!(0,r.isPresetSize)(S)&&(W.gap=S),t.default.createElement(E,{ref:d,className:H,style:W,...(0,i.omit)(R,["justify","wrap","align"])},z)});e.s(["Flex",()=>m],900195)},946077,e=>{"use strict";var t=e.i(191788);e.i(957562);var i=e.i(191248),a=e.i(531983),r=e.i(56206),n=e.i(430898),l=e.i(993175),o=e.i(625263),d=e.i(536995),s=e.i(106422),c=e.i(267226),u=({prefixCls:e,className:i,hoverable:a=!0,...n})=>{let{getPrefixCls:o}=t.useContext(l.ConfigContext),d=o("card",e),s=(0,r.clsx)(`${d}-grid`,i,{[`${d}-grid-hoverable`]:a});return t.createElement("div",{...n,className:s})};e.i(290586);var g=e.i(774778),p=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:i,cardHeadPadding:a,colorBorderSecondary:r,boxShadowTertiary:n,bodyPadding:l,extraColor:o,motionDurationMid:d}=e;return{[t]:{...(0,p.resetComponent)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:n},[`${t}-head`]:(e=>{let{antCls:t,componentCls:i,headerHeight:a,headerPadding:r,tabsMarginBottom:n}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,g.unit)(r)}`,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,p.clearFix)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...p.textEllipsis,[`
|
|
> ${i}-typography,
|
|
> ${i}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:n,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}})(e),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,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:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
${(0,g.unit)(r)} 0 0 0 ${i},
|
|
0 ${(0,g.unit)(r)} 0 0 ${i},
|
|
${(0,g.unit)(r)} ${(0,g.unit)(r)} 0 0 ${i},
|
|
${(0,g.unit)(r)} 0 0 0 ${i} inset,
|
|
0 ${(0,g.unit)(r)} 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:r,colorBorderSecondary:n,actionsBg:l}=e;return{margin:0,padding:0,listStyle:"none",background:l,borderTop:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${n}`,display:"flex",borderRadius:`0 0 ${(0,g.unit)(e.borderRadiusLG)} ${(0,g.unit)(e.borderRadiusLG)}`,...(0,p.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:r,lineHeight:(0,g.unit)(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,g.unit)(e.lineWidth)} ${e.lineType} ${n}`}}}})(e),[`${t}-meta`]:{margin:`${(0,g.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,g.unit)(e.lineWidth)} ${e.lineType} ${r}`,[`${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:r}=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)(r)}`}}})(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:r,headerFontSizeSM:n}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,g.unit)(a)}`,fontSize:n,[`> ${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 $=e=>{let{actionClasses:i,actions:a=[],actionStyle:r}=e;return t.createElement("ul",{className:i,style:r},a.map((e,i)=>{let r=`action-${i}`;return t.createElement("li",{style:{width:`${100/a.length}%`},key:r},t.createElement("span",null,e))}))},x=t.forwardRef((e,g)=>{let p,{prefixCls:m,className:f,rootClassName:x,style:b,extra:v,headStyle:y={},bodyStyle:S={},title:w,loading:C,bordered:E,variant:z,size:R,type:N,cover:G,actions:L,tabList:B,children:T,activeTabKey:M,defaultActiveTabKey:k,tabBarExtraContent:H,hoverable:W,tabProps:j={},classNames:P,styles:I,...q}=e,{getPrefixCls:O,direction:A,className:F,style:D,classNames:_,styles:V}=(0,l.useComponentConfig)("card"),[X]=(0,d.default)("card",z,E),K=(0,o.default)(R),U={...e,size:K,variant:X},[J,Q]=(0,n.useMergeSemantic)([_,P],[V,I],{props:U}),Y=t.useMemo(()=>(0,a.toArray)(T),[T]),Z=t.useMemo(()=>Y.some(e=>t.isValidElement(e)&&e.type===u),[Y]),ee=O("card",m),[et,ei]=h(ee),ea=t.createElement(s.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),er=void 0!==M,en={...j,[er?"activeKey":"defaultActiveKey"]:er?M:k,tabBarExtraContent:H},el=B?t.createElement(c.default,{size:"small"!==K?"large":K,...en,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:B.map(({tab:e,...t})=>({label:e,...t}))}):null;if(w||v||el){let e=(0,r.clsx)(`${ee}-head`,J.header),i=(0,r.clsx)(`${ee}-head-title`,J.title),a=(0,r.clsx)(`${ee}-extra`,J.extra),n={...y,...Q.header};p=t.createElement("div",{className:e,style:n},t.createElement("div",{className:`${ee}-head-wrapper`},w&&t.createElement("div",{className:i,style:Q.title},w),v&&t.createElement("div",{className:a,style:Q.extra},v)),el)}let eo=(0,r.clsx)(`${ee}-cover`,J.cover),ed=G?t.createElement("div",{className:eo,style:Q.cover},G):null,es=(0,r.clsx)(`${ee}-body`,J.body),ec={...S,...Q.body},eu=C||Y.length?t.createElement("div",{className:es,style:ec},C?ea:T):null,eg=(0,r.clsx)(`${ee}-actions`,J.actions),ep=L?.length?t.createElement($,{actionClasses:eg,actionStyle:Q.actions,actions:L}):null,em=(0,i.omit)(q,["onTabChange"]),ef=(0,r.clsx)(ee,F,{[`${ee}-loading`]:C,[`${ee}-bordered`]:"borderless"!==X,[`${ee}-hoverable`]:W,[`${ee}-contain-grid`]:Z,[`${ee}-contain-tabs`]:B?.length,[`${ee}-small`]:"small"===K,[`${ee}-type-${N}`]:!!N,[`${ee}-rtl`]:"rtl"===A},f,x,et,ei,J.root),eh={...Q.root,...D,...b};return t.createElement("div",{ref:g,...em,className:ef,style:eh},p,ed,eu,ep)});x.Grid=u,x.Meta=e=>{let{prefixCls:i,className:a,avatar:o,title:d,description:s,style:c,classNames:u,styles:g,...p}=e,{getPrefixCls:m,className:f,style:h,classNames:$,styles:x}=(0,l.useComponentConfig)("cardMeta"),b=m("card",i),v=`${b}-meta`,[y,S]=(0,n.useMergeSemantic)([$,u],[x,g],{props:e}),w=(0,r.clsx)(v,a,f,y.root),C={...h,...S.root,...c},E=(0,r.clsx)(`${v}-avatar`,y.avatar),z=(0,r.clsx)(`${v}-title`,y.title),R=(0,r.clsx)(`${v}-description`,y.description),N=(0,r.clsx)(`${v}-section`,y.section),G=o?t.createElement("div",{className:E,style:S.avatar},o):null,L=d?t.createElement("div",{className:z,style:S.title},d):null,B=s?t.createElement("div",{className:R,style:S.description},s):null,T=L||B?t.createElement("div",{className:N,style:S.section},L,B):null;return t.createElement("div",{...p,className:w,style:C},G,T)},e.s(["Card",()=>x],946077)},977892,e=>{"use strict";var t=e.i(677057);e.s(["LoadingOutlined",()=>t.default])},995746,e=>{"use strict";var t=e.i(436612);e.s(["EllipsisOutlined",()=>t.default])}]);
|