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