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
11 KiB
10 lines
11 KiB
8 months ago
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[91],{99559:function(w,Z,m){"use strict";m.d(Z,{Z:function(){return Se}});var M=m(93967),u=m.n(M),s=m(67294),v=m(53124),p=m(98423),x=e=>{const{prefixCls:t,className:n,style:a,size:l,shape:i}=e,c=u()({[`${t}-lg`]:l==="large",[`${t}-sm`]:l==="small"}),o=u()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),r=s.useMemo(()=>typeof l=="number"?{width:l,height:l,lineHeight:`${l}px`}:{},[l]);return s.createElement("span",{className:u()(t,c,o,n),style:Object.assign(Object.assign({},r),a)})},N=m(54548),I=m(91945),P=m(45503);const k=new N.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),C=e=>({height:e,lineHeight:(0,N.bf)(e)}),O=e=>Object.assign({width:e},C(e)),Q=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:k,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},C(e)),U=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:l,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},O(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},O(l)),[`${t}${t}-sm`]:Object.assign({},O(i))}},Y=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:l,controlHeightSM:i,gradientFromColor:c,calc:o}=e;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},T(t,o)),[`${a}-lg`]:Object.assign({},T(l,o)),[`${a}-sm`]:Object.assign({},T(i,o))}},W=e=>Object.assign({width:e},C(e)),_=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:l,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:l},W(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},W(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%"}}},F=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},L=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},C(e)),ee=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:l,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(a).mul(2).equal(),minWidth:o(a).mul(2).equal()},L(a,o))},F(e,a,n)),{[`${n}-lg`]:Object.assign({},L(l,o))}),F(e,l,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},L(i,o))}),F(e,i,`${n}-sm`))},te=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:l,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:o,controlHeight:r,controlHeightLG:g,controlHeightSM:h,gradientFromColor:d,padding:$,marginSM:b,borderRadius:S,titleHeight:f,blockRadius:H,paragraphLiHeight:q,controlHeightXS:D,paragraphMarginTop:E}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},O(r)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},O(g)),[`${n}-sm`]:Object.assign({},O(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:f,background:d,borderRadius:H,[`+ ${l}`]:{marginBlockStart:h}},[`${l}`]:{padding:0,"> li":{width:"100%",height:q,listStyle:"none",background:d,borderRadius:H,"+ li":{marginBlockStart:D}}},[`${l}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a},
|
||
|
${a},
|
||
|
${l} > li,
|
||
|
${n},
|
||
|
${i},
|
||
|
${c},
|
||
|
${o}
|
||
|
`]:Object.assign({},Q(e))}}},ne=e=>{const{colorFillContent:t,colorFill:n}=e,a=t,l=n;return{color:a,colorGradientEnd:l,gradientFromColor:a,gradientToColor:l,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var j=(0,I.I$)("Skeleton",e=>{const{componentCls:t,calc:n}=e,a=(0,P.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(a)]},ne,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),se=e=>{const{prefixCls:t,className:n,rootClassName:a,active:l,shape:i="circle",size:c="default"}=e,{getPrefixCls:o}=s.useContext(v.E_),r=o("skeleton",t),[g,h,d]=j(r),$=(0,p.Z)(e,["prefixCls","className"]),b=u()(r,`${r}-element`,{[`${r}-active`]:l},n,a,h,d);return g(s.createElement("div",{className:b},s.createElement(x,Object.assign({prefixCls:`${r}-avatar`,shape:i,size:c},$))))},ae=e=>{const{prefixCls:t,className:n,rootClassName:a,active:l,block:i=!1,size:c="default"}=e,{getPrefixCls:o}=s.useContext(v.E_),r=o("skeleton",t),[g,h,d]=j(r),$=(0,p.Z)(e,["prefixCls"]),b=u()(r,`${r}-element`,{[`${r}-active`]:l,[`${r}-block`]:i},n,a,h,d);return g(s.createElement("div",{className:b},s.createElement(x,Object.assign({prefixCls:`${r}-button`,size:c},$))))};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 re=e=>{const{prefixCls:t,className:n,rootClassName:a,style:l,active:i}=e,{getPrefixCls:c}=s.useContext(v.E_),o=c("skeleton",t),[r,g,h]=j(o),d=u()(o,`${o}-element`,{[`${o}-active`]:i},n,a,g,h);return r(s.createElement("div",{className:d},s.createElement("div",{className:u()(`${o}-image`,n),style:l},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},s.createElement("path",{d:le,className:`${o}-image-path`})))))},oe=e=>{const{prefixCls:t,className:n,rootClassName:a,active:l,block:i,size:c="default"}=e,{getPrefixCls:o}=s.useContext(v.E_),r=o("skeleton",t),[g,h,d]=j(r),$=(0,p.Z)(e,["prefixCls"]),b=u()(r,`${r}-element`,{[`${r}-active`]:l,[`${r}-block`]:i},n,a,h,d);return g(s.createElement("div",{className:b},s.createElement(x,Object.assign({prefixCls:`${r}-input`,size:c},$))))},ie=m(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,ue=m(93771),de=function(t,n){return s.createElement(ue.Z,(0,ie.Z)({},t,{ref:n,icon:ge}))},me=s.forwardRef(de),he=e=>{const{prefixCls:t,className:n,rootClassName:a,style:l,active:i,children:c}=e,{getPrefixCls:o}=s.useContext(v.E_),r=o("skeleton",t
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,I=!1,P;return{s:function(){p=p.call(s)},n:function(){var C=p.next();return N=C.done,C},e:function(C){I=!0,P=C},f:function(){try{!N&&p.return!=null&&p.return()}finally{if(I)throw P}}}}w.exports=u,w.exports.__esModule=!0,w.exports.default=w.exports}}]);
|