1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{R as t}from"./jsx-runtime-DWnYfvjf.js";import{D as n,St as r,Tt as i,_t as a,dt as o,ft as s,i as c,m as l,nt as u,p as d,rt as f,v as p,y as m}from"./AntdIcon-BYGQ6CTD.js";import{n as h,t as g}from"./clsx-Dd2GA7fj.js";var _=e(t());h();var v=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=g({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=g({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=_.useMemo(()=>p(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return _.createElement(`span`,{className:g(t,o,s,n),style:{...c,...r}})};o(),u();var y=new s(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),b=e=>({height:e,lineHeight:a(e)}),x=e=>({width:e,...b(e)}),S=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:y,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),C=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...b(e)}),w=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...x(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...x(i)},[`${t}${t}-sm`]:{...x(a)}}},T=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...C(t,s)},[`${r}-lg`]:{...C(i,s)},[`${r}-sm`]:{...C(a,s)}}},E=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...x(i(r).mul(2).equal())}},D=e=>({[e.skeletonNodeCls]:{...E(e)}}),O=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...E(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...x(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},k=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},A=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...b(e)}),j=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...A(r,s)},...k(e,r,n),[`${n}-lg`]:{...A(i,s)},...k(e,i,`${n}-lg`),[`${n}-sm`]:{...A(a,s)},...k(e,a,`${n}-sm`)}},M=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...x(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...x(u)},[`${n}-sm`]:{...x(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...j(e),...w(e),...T(e),...D(e),...O(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[` 2 ${r}, 3 ${i} > li, 4 ${n}, 5 ${a}, 6 ${o}, 7 ${s}, 8 ${c} 9 `]:{...S(e)}}}},N=n(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return M(f(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackgroun
9d:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]});h();var P=e=>{let{prefixCls:t,className:n,classNames:i,rootClassName:a,active:o,style:s,styles:l,shape:u=`circle`,size:d,...f}=e,{getPrefixCls:p}=_.useContext(r),m=p(`skeleton`,t),[h,y]=N(m),b=c(e=>d??e),x=g(m,`${m}-element`,{[`${m}-active`]:o},i?.root,n,a,h,y);return _.createElement(`div`,{className:x,style:l?.root},_.createElement(v,{prefixCls:`${m}-avatar`,className:i?.content,style:{...l?.content,...s},shape:u,size:b,...f}))};h();var F=e=>{let{prefixCls:t,className:n,rootClassName:i,classNames:a,active:o,style:s,styles:l,block:u=!1,size:d,...f}=e,{getPrefixCls:p}=_.useContext(r),m=p(`skeleton`,t),[h,y]=N(m),b=c(e=>d??e),x=g(m,`${m}-element`,{[`${m}-active`]:o,[`${m}-block`]:u},a?.root,n,i,h,y);return _.createElement(`div`,{className:x,style:l?.root},_.createElement(v,{prefixCls:`${m}-button`,className:a?.content,style:{...l?.content,...s},size:b,...f}))};h();var I=e=>{let{prefixCls:t,className:n,classNames:i,rootClassName:a,internalClassName:o,style:s,styles:c,active:l,children:u}=e,{getPrefixCls:d}=_.useContext(r),f=d(`skeleton`,t),[p,m]=N(f),h=g(f,`${f}-element`,{[`${f}-active`]:l},p,i?.root,n,a,m);return _.createElement(`div`,{className:h,style:c?.root},_.createElement(`div`,{className:g(i?.content,o||`${f}-node`),style:{...c?.content,...s}},u))},L=e=>{let{getPrefixCls:t}=_.useContext(r),n=t(`skeleton`,e.prefixCls);return _.createElement(I,{...e,internalClassName:`${n}-image`},_.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`,"aria-hidden":`true`,focusable:`false`},_.createElement(`title`,null,`Image placeholder`),_.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))};h();var R=e=>{let{prefixCls:t,className:n,classNames:i,rootClassName:a,active:o,block:s,style:l,styles:u,size:d,...f}=e,{getPrefixCls:p}=_.useContext(r),m=p(`skeleton`,t),[h,y]=N(m),b=c(e=>d??e),x=g(m,`${m}-element`,{[`${m}-active`]:o,[`${m}-block`]:s},i?.root,n,a,h,y);return _.createElement(`div`,{className:x,style:u?.root},_.createElement(v,{prefixCls:`${m}-input`,className:i?.content,style:{...u?.content,...l},size:b,...f}))};h();var z=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},B=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>_.createElement(`li`,{key:n,style:{width:z(n,e)}}));return _.createElement(`ul`,{className:g(t,n),style:r},a)};h();var V=({prefixCls:e,className:t,width:n,style:r})=>_.createElement(`h3`,{className:g(e,t),style:{width:n,...r}});h();function H(e){return m(e)?e:{}}function U(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function W(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function G(e,t){let n={};return(!e||!t)&&(n.width=`61%`),n.rows=!e&&t?3:2,n}var K=_.forwardRef((e,t)=>{let{prefixCls:n,loading:r,className:a,rootClassName:o,classNames:s,style:c,styles:u,children:f,avatar:p=!1,title:m=!0,paragraph:h=!0,active:y,round:b}=e,{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=i(`skeleton`),D=x(`skeleton`,n),[O,k]=N(D),A={...e,avatar:p,title:m,paragraph:h},j=l(w),M=l(c),[P,F]=d([T,s],[E,j,u,M],{props:A}),I=_.useRef(null);if(_.useImperativeHandle(t,()=>({nativeElement:I.current})),r||!(`loading`in e)){let e=!!p,t=!!m,n=!!h,r;if(e){let e={className:P.avatar,prefixCls:`${D}
9-avatar`,...U(t,n),...H(p),style:F.avatar};r=_.createElement(`div`,{className:g(P.header,`${D}-header`),style:F.header},_.createElement(v,{...e}))}let i;if(t||n){let r;if(t){let t={className:P.title,prefixCls:`${D}-title`,...W(e,n),...H(m),style:F.title};r=_.createElement(V,{...t})}let a;if(n){let n={className:P.paragraph,prefixCls:`${D}-paragraph`,...G(e,t),...H(h),style:F.paragraph};a=_.createElement(B,{...n})}i=_.createElement(`div`,{className:g(P.section,`${D}-section`),style:F.section},r,a)}let s=g(D,{[`${D}-with-avatar`]:e,[`${D}-active`]:y,[`${D}-rtl`]:S===`rtl`,[`${D}-round`]:b},P.root,C,a,o,O,k);return _.createElement(`div`,{ref:I,className:s,style:F.root},r,i)}return f??null});K.Button=F,K.Avatar=P,K.Input=R,K.Image=L,K.Node=I;var q=K;export{q as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.