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.
1 line
10 KiB
1 line
10 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[61621],{61621:function(e,t,a){a.d(t,{Z:function(){return T}});var n=a(92310),s=a.n(n),i=a(59301),r=a(36355),l=a(2738);var o=e=>{const{prefixCls:t,className:a,style:n,size:r,shape:l}=e,o=s()({[`${t}-lg`]:"large"===r,[`${t}-sm`]:"small"===r}),c=s()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),g=i.useMemo((()=>"number"==typeof r?{width:r,height:r,lineHeight:`${r}px`}:{}),[r]);return i.createElement("span",{className:s()(t,o,c,a),style:Object.assign(Object.assign({},g),n)})},c=a(36237),g=a(83116),d=a(37613);const m=new c.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),u=e=>({height:e,lineHeight:`${e}px`}),$=e=>Object.assign({width:e},u(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),h=e=>Object.assign({width:5*e,minWidth:5*e},u(e)),p=e=>{const{skeletonAvatarCls:t,gradientFromColor:a,controlHeight:n,controlHeightLG:s,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a},$(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$(s)),[`${t}${t}-sm`]:Object.assign({},$(i))}},C=e=>{const{controlHeight:t,borderRadiusSM:a,skeletonInputCls:n,controlHeightLG:s,controlHeightSM:i,gradientFromColor:r}=e;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:r,borderRadius:a},h(t)),[`${n}-lg`]:Object.assign({},h(s)),[`${n}-sm`]:Object.assign({},h(i))}},v=e=>Object.assign({width:e},u(e)),k=e=>{const{skeletonImageCls:t,imageSizeBase:a,gradientFromColor:n,borderRadiusSM:s}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:s},v(2*a)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},v(a)),{maxWidth:4*a,maxHeight:4*a}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},f=(e,t,a)=>{const{skeletonButtonCls:n}=e;return{[`${a}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${a}${n}-round`]:{borderRadius:t}}},j=e=>Object.assign({width:2*e,minWidth:2*e},u(e)),O=e=>{const{borderRadiusSM:t,skeletonButtonCls:a,controlHeight:n,controlHeightLG:s,controlHeightSM:i,gradientFromColor:r}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:r,borderRadius:t,width:2*n,minWidth:2*n},j(n))},f(e,n,a)),{[`${a}-lg`]:Object.assign({},j(s))}),f(e,s,`${a}-lg`)),{[`${a}-sm`]:Object.assign({},j(i))}),f(e,i,`${a}-sm`))},w=e=>{const{componentCls:t,skeletonAvatarCls:a,skeletonTitleCls:n,skeletonParagraphCls:s,skeletonButtonCls:i,skeletonInputCls:r,skeletonImageCls:l,controlHeight:o,controlHeightLG:c,controlHeightSM:g,gradientFromColor:d,padding:m,marginSM:u,borderRadius:h,titleHeight:v,blockRadius:f,paragraphLiHeight:j,controlHeightXS:w,paragraphMarginTop:x}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},$(o)),[`${a}-circle`]:{borderRadius:"50%"},[`${a}-lg`]:Object.assign({},$(c)),[`${a}-sm`]:Object.assign({},$(g))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:v,background:d,borderRadius:f,[`+ ${s}`]:{marginBlockStart:g}},[`${s}`]:{padding:0,"> li":{width:"100%",height:j,listStyle:"none",background:d,borderRadius:f,"+ li":{marginBlockStart:w}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${s} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${n}`]:{marginBlockStart:u,[`+ ${s}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},O(e)),p(e)),C(e)),k(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${r}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${n},\n ${s} > li,\n ${a},\n ${i},\n ${r},\n ${l}\n `]:Object.assign({},b(e))}}};var x=(0,g.Z)("Skeleton",(e=>{const{componentCls:t}=e,a=(0,d.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[w(a)]}),(e=>{const{colorFillContent:t,colorFill:a}=e;return{color:t,colorGradientEnd:a,gradientFromColor:t,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var N=e=>{const{prefixCls:t,className:a,rootClassName:n,active:c,shape:g="circle",size:d="default"}=e,{getPrefixCls:m}=i.useContext(r.E_),u=m("skeleton",t),[$,b]=x(u),h=(0,l.Z)(e,["prefixCls","className"]),p=s()(u,`${u}-element`,{[`${u}-active`]:c},a,n,b);return $(i.createElement("div",{className:p},i.createElement(o,Object.assign({prefixCls:`${u}-avatar`,shape:g,size:d},h))))};var E=e=>{const{prefixCls:t,className:a,rootClassName:n,active:c,block:g=!1,size:d="default"}=e,{getPrefixCls:m}=i.useContext(r.E_),u=m("skeleton",t),[$,b]=x(u),h=(0,l.Z)(e,["prefixCls"]),p=s()(u,`${u}-element`,{[`${u}-active`]:c,[`${u}-block`]:g},a,n,b);return $(i.createElement("div",{className:p},i.createElement(o,Object.assign({prefixCls:`${u}-button`,size:d},h))))};var y=e=>{const{prefixCls:t,className:a,rootClassName:n,style:l,active:o}=e,{getPrefixCls:c}=i.useContext(r.E_),g=c("skeleton",t),[d,m]=x(g),u=s()(g,`${g}-element`,{[`${g}-active`]:o},a,n,m);return d(i.createElement("div",{className:u},i.createElement("div",{className:s()(`${g}-image`,a),style:l},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${g}-image-svg`},i.createElement("path",{d:"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",className:`${g}-image-path`})))))};var H=e=>{const{prefixCls:t,className:a,rootClassName:n,active:c,block:g,size:d="default"}=e,{getPrefixCls:m}=i.useContext(r.E_),u=m("skeleton",t),[$,b]=x(u),h=(0,l.Z)(e,["prefixCls"]),p=s()(u,`${u}-element`,{[`${u}-active`]:c,[`${u}-block`]:g},a,n,b);return $(i.createElement("div",{className:p},i.createElement(o,Object.assign({prefixCls:`${u}-input`,size:d},h))))},z=a(54476),R={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"},S=a(7657),M=function(e,t){return i.createElement(S.Z,(0,z.Z)({},e,{ref:t,icon:R}))};var B=i.forwardRef(M);var A=e=>{const{prefixCls:t,className:a,rootClassName:n,style:l,active:o,children:c}=e,{getPrefixCls:g}=i.useContext(r.E_),d=g("skeleton",t),[m,u]=x(d),$=s()(d,`${d}-element`,{[`${d}-active`]:o},u,a,n),b=null!=c?c:i.createElement(B,null);return m(i.createElement("div",{className:$},i.createElement("div",{className:s()(`${d}-image`,a),style:l},b)))},q=a(94480);var F=e=>{const t=t=>{const{width:a,rows:n=2}=e;return Array.isArray(a)?a[t]:n-1===t?a:void 0},{prefixCls:a,className:n,style:r,rows:l}=e,o=(0,q.Z)(Array(l)).map(((e,a)=>i.createElement("li",{key:a,style:{width:t(a)}})));return i.createElement("ul",{className:s()(a,n),style:r},o)};var I=e=>{let{prefixCls:t,className:a,width:n,style:r}=e;return i.createElement("h3",{className:s()(t,a),style:Object.assign({width:n},r)})};function L(e){return e&&"object"==typeof e?e:{}}const P=e=>{const{prefixCls:t,loading:a,className:n,rootClassName:l,style:c,children:g,avatar:d=!1,title:m=!0,paragraph:u=!0,active:$,round:b}=e,{getPrefixCls:h,direction:p,skeleton:C}=i.useContext(r.E_),v=h("skeleton",t),[k,f]=x(v);if(a||!("loading"in e)){const e=!!d,t=!!m,a=!!u;let r,g;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,a)),L(d));r=i.createElement("div",{className:`${v}-header`},i.createElement(o,Object.assign({},e)))}if(t||a){let n,s;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,a)),L(m));n=i.createElement(I,Object.assign({},t))}if(a){const a=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const a={};return e&&t||(a.width="61%"),a.rows=!e&&t?3:2,a}(e,t)),L(u));s=i.createElement(F,Object.assign({},a))}g=i.createElement("div",{className:`${v}-content`},n,s)}const h=s()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:$,[`${v}-rtl`]:"rtl"===p,[`${v}-round`]:b},null==C?void 0:C.className,n,l,f);return k(i.createElement("div",{className:h,style:Object.assign(Object.assign({},null==C?void 0:C.style),c)},r,g))}return void 0!==g?g:null};P.Button=E,P.Avatar=N,P.Input=H,P.Image=y,P.Node=A;var T=P}}]); |