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