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.
 
 
 

8 lines
11 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[630],{83832:function(W,P,g){g.d(P,{S:function(){return k}});var y=g(1413),d=g(91),r=g(75081),f=g(67294),S=g(85893),F=["isLoading","pastDelay","timedOut","error","retry"],k=function(v){var Z=v.isLoading,G=v.pastDelay,N=v.timedOut,O=v.error,K=v.retry,I=(0,d.Z)(v,F);return(0,S.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,S.jsx)(r.Z,(0,y.Z)({size:"large"},I))})}},76509:function(W,P,g){g.d(P,{X:function(){return d}});var y=g(67294),d=(0,y.createContext)({})},99559:function(W,P,g){g.d(P,{Z:function(){return Se}});var y=g(93967),d=g.n(y),r=g(67294),f=g(53124),S=g(98423),k=e=>{const{prefixCls:t,className:n,style:s,size:a,shape:i}=e,c=d()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),o=d()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=r.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return r.createElement("span",{className:d()(t,c,o,n),style:Object.assign(Object.assign({},l),s)})},R=g(54548),v=g(91945),Z=g(45503);const G=new R.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),N=e=>({height:e,lineHeight:(0,R.bf)(e)}),O=e=>Object.assign({width:e},N(e)),K=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:G,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},N(e)),Q=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:s,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},O(s)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},O(a)),[`${t}${t}-sm`]:Object.assign({},O(i))}},Y=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:s,controlHeightLG:a,controlHeightSM:i,gradientFromColor:c,calc:o}=e;return{[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},I(t,o)),[`${s}-lg`]:Object.assign({},I(a,o)),[`${s}-sm`]:Object.assign({},I(i,o))}},U=e=>Object.assign({width:e},N(e)),_=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:s,borderRadiusSM:a,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:s,borderRadius:a},U(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},U(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},z=(e,t,n)=>{const{skeletonButtonCls:s}=e;return{[`${n}${s}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${s}-round`]:{borderRadius:t}}},H=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},N(e)),ee=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:s,controlHeightLG:a,controlHeightSM:i,gradientFromColor:c,calc:o}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:o(s).mul(2).equal(),minWidth:o(s).mul(2).equal()},H(s,o))},z(e,s,n)),{[`${n}-lg`]:Object.assign({},H(a,o))}),z(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},H(i,o))}),z(e,i,`${n}-sm`))},te=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:s,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:o,controlHeight:l,controlHeightLG:u,controlHeightSM:h,gradientFromColor:m,padding:p,marginSM:$,borderRadius:b,titleHeight:C,blockRadius:B,paragraphLiHeight:L,controlHeightXS:T,paragraphMarginTop:j}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},O(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},O(u)),[`${n}-sm`]:Object.assign({},O(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${s}`]:{width:"100%",height:C,background:m,borderRadius:B,[`+ ${a}`]:{marginBlockStart:h}},[`${a}`]:{padding:0,"> li":{width:"100%",height:L,listStyle:"none",background:m,borderRadius:B,"+ li":{marginBlockStart:T}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${s}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${s}`]:{marginBlockStart:$,[`+ ${a}`]:{marginBlockStart:j}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ee(e)),Q(e)),Y(e)),_(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${s},
${a} > li,
${n},
${i},
${c},
${o}
`]:Object.assign({},K(e))}}},ne=e=>{const{colorFillContent:t,colorFill:n}=e,s=t,a=n;return{color:s,colorGradientEnd:a,gradientFromColor:s,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var E=(0,v.I$)("Skeleton",e=>{const{componentCls:t,calc:n}=e,s=(0,Z.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[te(s)]},ne,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),se=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,shape:i="circle",size:c="default"}=e,{getPrefixCls:o}=r.useContext(f.E_),l=o("skeleton",t),[u,h,m]=E(l),p=(0,S.Z)(e,["prefixCls","className"]),$=d()(l,`${l}-element`,{[`${l}-active`]:a},n,s,h,m);return u(r.createElement("div",{className:$},r.createElement(k,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:c},p))))},ae=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:i=!1,size:c="default"}=e,{getPrefixCls:o}=r.useContext(f.E_),l=o("skeleton",t),[u,h,m]=E(l),p=(0,S.Z)(e,["prefixCls"]),$=d()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,s,h,m);return u(r.createElement("div",{className:$},r.createElement(k,Object.assign({prefixCls:`${l}-button`,size:c},p))))};const le="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var oe=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:i}=e,{getPrefixCls:c}=r.useContext(f.E_),o=c("skeleton",t),[l,u,h]=E(o),m=d()(o,`${o}-element`,{[`${o}-active`]:i},n,s,u,h);return l(r.createElement("div",{className:m},r.createElement("div",{className:d()(`${o}-image`,n),style:a},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},r.createElement("path",{d:le,className:`${o}-image-path`})))))},re=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:i,size:c="default"}=e,{getPrefixCls:o}=r.useContext(f.E_),l=o("skeleton",t),[u,h,m]=E(l),p=(0,S.Z)(e,["prefixCls"]),$=d()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,s,h,m);return u(r.createElement("div",{className:$},r.createElement(k,Object.assign({prefixCls:`${l}-input`,size:c},p))))},ie=g(87462),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ge=ce,de=g(93771),ue=function(t,n){return r.createElement(de.Z,(0,ie.Z)({},t,{ref:n,icon:ge}))},me=r.forwardRef(ue),he=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:i,children:c}=e,{getPrefixCls:o}=r.useContext(f.E_),l=o("skeleton",t),[u,h,m]=E(l),p=d()(l,`${l}-element`,{[`${l}-active`]:i},h,n,s,m),$=c!=null?c:r.createElement(me,null);return u(r.createElement("div",{className:p},r.createElement("div",{className:d()(`${l}-image`,n),style:a},$)))},Ce=g(74902),pe=e=>{const t=o=>{const{width:l,rows:u=2}=e;if(Array.isArray(l))return l[o];if(u-1===o)return l},{prefixCls:n,className:s,style:a,rows:i}=e,c=(0,Ce.Z)(Array(i)).map((o,l)=>r.createElement("li",{key:l,style:{width:t(l)}}));return r.createElement("ul",{className:d()(n,s),style:a},c)},$e=e=>{let{prefixCls:t,className:n,width:s,style:a}=e;return r.createElement("h3",{className:d()(t,n),style:Object.assign({width:s},a)})};function D(e){return e&&typeof e=="object"?e:{}}function ve(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function be(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function fe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const x=e=>{const{prefixCls:t,loading:n,className:s,rootClassName:a,style:i,children:c,avatar:o=!1,title:l=!0,paragraph:u=!0,active:h,round:m}=e,{getPrefixCls:p,direction:$,skeleton:b}=r.useContext(f.E_),C=p("skeleton",t),[B,L,T]=E(C);if(n||!("loading"in e)){const j=!!o,M=!!l,w=!!u;let q;if(j){const A=Object.assign(Object.assign({prefixCls:`${C}-avatar`},ve(M,w)),D(o));q=r.createElement("div",{className:`${C}-header`},r.createElement(k,Object.assign({},A)))}let X;if(M||w){let A;if(M){const V=Object.assign(Object.assign({prefixCls:`${C}-title`},be(j,w)),D(l));A=r.createElement($e,Object.assign({},V))}let J;if(w){const V=Object.assign(Object.assign({prefixCls:`${C}-paragraph`},fe(j,M)),D(u));J=r.createElement(pe,Object.assign({},V))}X=r.createElement("div",{className:`${C}-content`},A,J)}const ke=d()(C,{[`${C}-with-avatar`]:j,[`${C}-active`]:h,[`${C}-rtl`]:$==="rtl",[`${C}-round`]:m},b==null?void 0:b.className,s,a,L,T);return B(r.createElement("div",{className:ke,style:Object.assign(Object.assign({},b==null?void 0:b.style),i)},q,X))}return typeof c!="undefined"?c:null};x.Button=ae,x.Avatar=se,x.Input=re,x.Image=oe,x.Node=he;var Oe=x,Se=Oe}}]);