import"../../theme/internal.mjs";import a from"../../theme/util/genComponentStyleHook.mjs";import{merge as u}from"../../theme/util/statistic.mjs";const $=o=>{const{componentCls:n,lineHeightHeading3:t,iconCls:e,padding:i,paddingXL:l,paddingXS:c,paddingLG:r,marginXS:s,lineHeight:g}=o;return{[n]:{padding:`${r*2}px ${l}px`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:o.imageWidth,height:o.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:r,textAlign:"center",[`& > ${e}`]:{fontSize:o.resultIconFontSize}},[`${n} ${n}-title`]:{color:o.colorTextHeading,fontSize:o.resultTitleFontSize,lineHeight:t,marginBlock:s,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:o.colorTextDescription,fontSize:o.resultSubtitleFontSize,lineHeight:g,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:r,padding:`${r}px ${i*2.5}px`,backgroundColor:o.colorFillAlter},[`${n} ${n}-extra`]:{margin:o.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:c,"&:last-child":{marginInlineEnd:0}}}}},d=o=>{const{componentCls:n,iconCls:t}=o;return{[`${n}-success ${n}-icon > ${t}`]:{color:o.resultSuccessIconColor},[`${n}-error ${n}-icon > ${t}`]:{color:o.resultErrorIconColor},[`${n}-info ${n}-icon > ${t}`]:{color:o.resultInfoIconColor},[`${n}-warning ${n}-icon > ${t}`]:{color:o.resultWarningIconColor}}},S=o=>[$(o),d(o)],m=o=>S(o),C=a("Result",o=>{const{paddingLG:n,fontSizeHeading3:t}=o,e=o.fontSize,i=`${n}px 0 0 0`,l=o.colorInfo,c=o.colorError,r=o.colorSuccess,s=o.colorWarning,g=u(o,{resultTitleFontSize:t,resultSubtitleFontSize:e,resultIconFontSize:t*3,resultExtraMargin:i,resultInfoIconColor:l,resultErrorIconColor:c,resultSuccessIconColor:r,resultWarningIconColor:s});return[m(g)]},{imageWidth:250,imageHeight:295});export{C as default};
