import{createVNode as l}from"vue";import{LoadingOutlined as $,ExclamationCircleFilled as r,CloseCircleFilled as s,CheckCircleFilled as t,InfoCircleFilled as u,CloseOutlined as g}from"@antsoo-lib/icons";import p from"../_util/classNames.mjs";import{renderHelper as f}from"../_util/util.mjs";import"../config-provider/context.mjs";import"../empty/index.mjs";import"../_util/cssinjs/StyleContext.mjs";import"../_util/cssinjs/transformers/legacyLogicalProperties.mjs";import"../theme/internal.mjs";function H(n,o){return o||l("span",{class:`${n}-close-x`},[l(g,{class:`${n}-close-icon`},null)])}l(u,null,null),l(t,null,null),l(s,null,null),l(r,null,null),l($,null,null);const v={success:t,info:u,error:s,warning:r};function L({prefixCls:n,icon:o,type:e,message:a,description:d,btn:i}){let c=null;if(o)c=l("span",{class:`${n}-icon`},[f(o)]);else if(e){const m=v[e];c=l(m,{class:`${n}-icon ${n}-icon-${e}`},null)}return l("div",{class:p({[`${n}-with-icon`]:c}),role:"alert"},[c,l("div",{class:`${n}-message`},[a]),l("div",{class:`${n}-description`},[d]),i&&l("div",{class:`${n}-btn`},[i])])}export{L as PureContent,H as getCloseIcon};
