import{renderHelper as e}from"../_util/util.mjs";import t from"../_util/classNames.mjs";import{createVNode as n}from"vue";import{CheckCircleFilled as r,CloseCircleFilled as i,CloseOutlined as a,ExclamationCircleFilled as o,InfoCircleFilled as s,LoadingOutlined as c}from"@antsoo-lib/icons";function l(e,t){return t||n(`span`,{class:`${e}-close-x`},[n(a,{class:`${e}-close-icon`},null)])}n(s,null,null),n(r,null,null),n(i,null,null),n(o,null,null),n(c,null,null);var u={success:r,info:s,error:i,warning:o};function d({prefixCls:r,icon:i,type:a,message:o,description:s,btn:c}){let l=null;if(i)l=n(`span`,{class:`${r}-icon`},[e(i)]);else if(a){let e=u[a];l=n(e,{class:`${r}-icon ${r}-icon-${a}`},null)}return n(`div`,{class:t({[`${r}-with-icon`]:l}),role:`alert`},[l,n(`div`,{class:`${r}-message`},[o]),n(`div`,{class:`${r}-description`},[s]),c&&n(`div`,{class:`${r}-btn`},[c])])}export{d as PureContent,l as getCloseIcon};