const e=require("../../_util/cssinjs/Keyframes.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../theme/util/statistic.js");var r=new e.default(`ant-skeleton-loading`,{"0%":{transform:`translateX(-37.5%)`},"100%":{transform:`translateX(37.5%)`}}),i=e=>({height:e,lineHeight:`${e}px`}),a=e=>({width:e,...i(e)}),o=e=>({position:`relative`,zIndex:0,overflow:`hidden`,background:`transparent`,"&::after":{position:`absolute`,top:0,insetInlineEnd:`-150%`,bottom:0,insetInlineStart:`-150%`,background:e.skeletonLoadingBackground,animationName:r,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`,content:`""`}}),s=e=>({width:e*5,minWidth:e*5,...i(e)}),c=e=>{let{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:{display:`inline-block`,verticalAlign:`top`,background:n,...a(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...a(i)},[`${t}${t}-sm`]:{...a(o)}}},l=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return{[`${r}`]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...s(t)},[`${r}-lg`]:{...s(i)},[`${r}-sm`]:{...s(a)}}},u=e=>({width:e,...i(e)}),d=e=>{let{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:i}=e;return{[`${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`top`,background:r,borderRadius:i,...u(n*2),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...u(n),maxWidth:n*4,maxHeight:n*4},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},f=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},p=e=>({width:e*2,minWidth:e*2,...i(e)}),m=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return{[`${n}`]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:r*2,minWidth:r*2,...p(r)},...f(e,r,n),[`${n}-lg`]:{...p(i)},...f(e,i,`${n}-lg`),[`${n}-sm`]:{...p(a)},...f(e,a,`${n}-sm`)}},h=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:u,skeletonImageCls:f,controlHeight:p,controlHeightLG:h,controlHeightSM:g,color:_,padding:v,marginSM:y,borderRadius:b,skeletonTitleHeight:x,skeletonBlockRadius:S,skeletonParagraphLineHeight:C,controlHeightXS:w,skeletonParagraphMarginTop:T}=e;return{[`${t}`]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:v,verticalAlign:`top`,[`${n}`]:{display:`inline-block`,verticalAlign:`top`,background:_,...a(p)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...a(h)},[`${n}-sm`]:{...a(g)}},[`${t}-content`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[`${r}`]:{width:`100%`,height:x,background:_,borderRadius:S,[`+ ${i}`]:{marginBlockStart:g}},[`${i}`]:{padding:0,"> li":{width:`100%`,height:C,listStyle:`none`,background:_,borderRadius:S,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:y,[`+ ${i}`]:{marginBlockStart:T}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...m(e),...c(e),...l(e),...d(e)},[`${t}${t}-block`]:{width:`100%`,[`${s}`]:{width:`100%`},[`${u}`]:{width:`100%`}},[`${t}${t}-active`]:{[`
        ${r},
        ${i} > li,
        ${n},
        ${s},
        ${u},
        ${f}
      `]:{...o(e)}}}},g=t.default(`Skeleton`,e=>{let{componentCls:t}=e;return[h(n.merge(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}});exports.default=g;