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
14 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[551],{9914:function(et,I,s){s.r(I),s.d(I,{default:function(){return je}});var x=s(1413),o=s(67294),Y={icon:function(a,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:a}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4zm-24-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:a}}]}},name:"smile",theme:"twotone"},J=Y,L=s(91146),R=function(a,t){return o.createElement(L.Z,(0,x.Z)((0,x.Z)({},a),{},{ref:t,icon:J}))};R.displayName="SmileTwoTone";var Q=o.forwardRef(R),U={icon:function(a,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z",fill:a}},{tag:"path",attrs:{d:"M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z",fill:t}}]}},name:"heart",theme:"twotone"},q=U,A=function(a,t){return o.createElement(L.Z,(0,x.Z)((0,x.Z)({},a),{},{ref:t,icon:q}))};A.displayName="HeartTwoTone";var _=o.forwardRef(A),k=s(90930),ee=s(35312),te=s(93967),b=s.n(te),ae=s(98423),E=s(53124),re=s(98675),ne=s(99559),oe=s(11941),ie=function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)a.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]]);return t},W=e=>{var{prefixCls:a,className:t,hoverable:r=!0}=e,n=ie(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(E.E_),m=c("card",a),y=b()(`${m}-grid`,t,{[`${m}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},n,{className:y}))},i=s(54548),v=s(14747),se=s(91945),le=s(45503);const de=e=>{const{antCls:a,componentCls:t,headerHeight:r,cardPaddingBase:n,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,i.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 0`},(0,v.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},v.vS),{[`
> ${t}-typography,
> ${t}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ce=e=>{const{cardPaddingBase:a,colorBorderSecondary:t,cardShadow:r,lineWidth:n}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:`
${(0,i.bf)(n)} 0 0 0 ${t},
0 ${(0,i.bf)(n)} 0 0 ${t},
${(0,i.bf)(n)} ${(0,i.bf)(n)} 0 0 ${t},
${(0,i.bf)(n)} 0 0 0 ${t} inset,
0 ${(0,i.bf)(n)} 0 0 ${t} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ge=e=>{const{componentCls:a,iconCls:t,actionsLiMargin:r,cardActionsIconSize:n,colorBorderSecondary:c,actionsBg:m}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:m,borderTop:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)}`},(0,v.dF)()),{"& > li":{margin:r,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(${a}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,i.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:n,lineHeight:(0,i.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},me=e=>Object.assign(Object.assign({margin:`${(0,i.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,v.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},v.vS),"&-description":{color:e.colorTextDescription}}),fe=e=>{const{componentCls:a,cardPaddingBase:t,colorFillAlter:r}=e;return{[`${a}-head`]:{padding:`0 ${(0,i.bf)(t)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${(0,i.bf)(e.padding)} ${(0,i.bf)(t)}`}}},be=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},he=e=>{const{antCls:a,componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:c,boxShadowTertiary:m,cardPaddingBase:y,extraColor:h}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:m},[`${t}-head`]:de(e),[`${t}-extra`]:{marginInlineStart:"auto",color:h,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:y,borderRadius:` 0 0 ${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)}`},(0,v.dF)()),[`${t}-grid`]:ce(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${a}-image-mask`]:{borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ge(e),[`${t}-meta`]:me(e)}),[`${t}-bordered`]:{border:`${(0,i.bf)(e.lineWidth)} ${e.lineType} ${c}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,i.bf)(e.borderRadiusLG)} ${(0,i.bf)(e.borderRadiusLG)} 0 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`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:fe(e),[`${t}-loading`]:be(e),[`${t}-rtl`]:{direction:"rtl"}}},ue=e=>{const{componentCls:a,cardPaddingSM:t,headerHeightSM:r,headerFontSizeSM:n}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:r,padding:`0 ${(0,i.bf)(t)}`,fontSize:n,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:t}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ve=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var ye=(0,se.I$)("Card",e=>{const a=(0,le.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[he(a),ue(a)]},ve),D=function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)a.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]]);return t};const pe=e=>{const{actionClasses:a,actions:t=[],actionStyle:r}=e;return o.createElement("ul",{className:a,style:r},t.map((n,c)=>{const m=`action-${c}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:m},o.createElement("span",null,n))}))};var $e=o.forwardRef((e,a)=>{const{prefixCls:t,className:r,rootClassName:n,style:c,extra:m,headStyle:y={},bodyStyle:h={},title:S,loading:T,bordered:O=!0,size:z,type:j,cover:Z,actions:B,tabList:w,children:M,activeTabKey:F,defaultActiveTabKey:we,tabBarExtraContent:Me,hoverable:Ee,tabProps:Pe={},classNames:H,styles:N}=e,Be=D(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:He,direction:Ne,card:f}=o.useContext(E.E_),Ge=g=>{var l;(l=e.onTabChange)===null||l===void 0||l.call(e,g)},p=g=>{var l;return b()((l=f==null?void 0:f.classNames)===null||l===void 0?void 0:l[g],H==null?void 0:H[g])},$=g=>{var l;return Object.assign(Object.assign({},(l=f==null?void 0:f.styles)===null||l===void 0?void 0:l[g]),N==null?void 0:N[g])},Ie=o.useMemo(()=>{let g=!1;return o.Children.forEach(M,l=>{l&&l.type&&l.type===W&&(g=!0)}),g},[M]),d=He("card",t),[Le,Re,Ae]=ye(d),We=o.createElement(ne.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),K=F!==void 0,De=Object.assign(Object.assign({},Pe),{[K?"activeKey":"defaultActiveKey"]:K?F:we,tabBarExtraContent:Me});let X;const C=(0,re.Z)(z),Ze=!C||C==="default"?"large":C,V=w?o.createElement(oe.Z,Object.assign({size:Ze},De,{className:`${d}-head-tabs`,onChange:Ge,items:w.map(g=>{var{tab:l}=g,G=D(g,["tab"]);return Object.assign({label:l},G)})})):null;if(S||m||V){const g=b()(`${d}-head`,p("header")),l=b()(`${d}-head-title`,p("title")),G=b()(`${d}-extra`,p("extra")),ke=Object.assign(Object.assign({},y),$("header"));X=o.createElement("div",{className:g,style:ke},o.createElement("div",{className:`${d}-head-wrapper`},S&&o.createElement("div",{className:l,style:$("title")},S),m&&o.createElement("div",{className:G,style:$("extra")},m)),V)}const Fe=b()(`${d}-cover`,p("cover")),Ke=Z?o.createElement("div",{className:Fe,style:$("cover")},Z):null,Xe=b()(`${d}-body`,p("body")),Ve=Object.assign(Object.assign({},h),$("body")),Ye=o.createElement("div",{className:Xe,style:Ve},T?We:M),Je=b()(`${d}-actions`,p("actions")),Qe=B&&B.length?o.createElement(pe,{actionClasses:Je,actionStyle:$("actions"),actions:B}):null,Ue=(0,ae.Z)(Be,["onTabChange"]),qe=b()(d,f==null?void 0:f.className,{[`${d}-loading`]:T,[`${d}-bordered`]:O,[`${d}-hoverable`]:Ee,[`${d}-contain-grid`]:Ie,[`${d}-contain-tabs`]:w&&w.length,[`${d}-${C}`]:C,[`${d}-type-${j}`]:!!j,[`${d}-rtl`]:Ne==="rtl"},r,n,Re,Ae),_e=Object.assign(Object.assign({},f==null?void 0:f.style),c);return Le(o.createElement("div",Object.assign({ref:a},Ue,{className:qe,style:_e}),X,Ke,Ye,Qe))}),Se=function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)a.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]]);return t},Ce=e=>{const{prefixCls:a,className:t,avatar:r,title:n,description:c}=e,m=Se(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:y}=o.useContext(E.E_),h=y("card",a),S=b()(`${h}-meta`,t),T=r?o.createElement("div",{className:`${h}-meta-avatar`},r):null,O=n?o.createElement("div",{className:`${h}-meta-title`},n):null,z=c?o.createElement("div",{className:`${h}-meta-description`},c):null,j=O||z?o.createElement("div",{className:`${h}-meta-detail`},O,z):null;return o.createElement("div",Object.assign({},m,{className:S}),T,j)};const P=$e;P.Grid=W,P.Meta=Ce;var xe=P,Te=s(38925),Oe=s(31064),u=s(85893),ze=function(){var a=(0,ee.useIntl)();return(0,u.jsxs)(k._z,{content:a.formatMessage({id:"pages.admin.subPage.title",defaultMessage:"This page can only be viewed by admin"}),children:[(0,u.jsxs)(xe,{children:[(0,u.jsx)(Te.Z,{message:a.formatMessage({id:"pages.welcome.alertMessage",defaultMessage:"Faster and stronger heavy-duty components have been released."}),type:"success",showIcon:!0,banner:!0,style:{margin:-12,marginBottom:48}}),(0,u.jsxs)(Oe.Z.Title,{level:2,style:{textAlign:"center"},children:[(0,u.jsx)(Q,{})," Ant Design Pro ",(0,u.jsx)(_,{twoToneColor:"#eb2f96"})," You"]})]}),(0,u.jsxs)("p",{style:{textAlign:"center",marginTop:24},children:["Want to add more pages? Please refer to"," ",(0,u.jsx)("a",{href:"https://pro.ant.design/docs/block-cn",target:"_blank",rel:"noopener noreferrer",children:"use block"}),"\u3002"]})]})},je=ze}}]);