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