import{createVNode as o}from"vue";import e from"@ant-design/icons-vue/CheckCircleFilled";import s from"@ant-design/icons-vue/CloseCircleFilled";import p from"@ant-design/icons-vue/CloseOutlined";import t from"@ant-design/icons-vue/ExclamationCircleFilled";import m from"@ant-design/icons-vue/InfoCircleFilled";import $ from"@ant-design/icons-vue/LoadingOutlined";import f from"../_util/classNames.mjs";import{renderHelper as g}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 b(l,n){return n||o("span",{class:`${l}-close-x`},[o(p,{class:`${l}-close-icon`},null)])}o(m,null,null),o(e,null,null),o(s,null,null),o(t,null,null),o($,null,null);const v={success:e,info:m,error:s,warning:t};function j({prefixCls:l,icon:n,type:i,message:u,description:a,btn:c}){let r=null;if(n)r=o("span",{class:`${l}-icon`},[g(n)]);else if(i){const d=v[i];r=o(d,{class:`${l}-icon ${l}-icon-${i}`},null)}return o("div",{class:f({[`${l}-with-icon`]:r}),role:"alert"},[r,o("div",{class:`${l}-message`},[u]),o("div",{class:`${l}-description`},[a]),c&&o("div",{class:`${l}-btn`},[c])])}export{j as PureContent,b as getCloseIcon};
