import{h as s,defineComponent as $,createVNode as o}from"vue";import h from"../_util/classNames.mjs";import{filterEmpty as A}from"../_util/props-util/index.mjs";import{withInstall as M,anyType as f,objectType as R}from"../_util/type.mjs";import T from"../config-provider/hooks/useConfigInject.mjs";import _ from"../locale/LocaleReceiver.mjs";import d from"./empty.mjs";import x from"./simple.mjs";import D from"./style/index.mjs";const L=()=>({prefixCls:String,imageStyle:R(),image:f(),description:f()}),p=$({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:L(),setup(a,{slots:i={},attrs:y}){const{direction:E,prefixCls:l}=T("empty",a),[u,g]=D(l);return()=>{const e=l.value,{image:m=i.image?.()||s(d),description:c=i.description?.()||void 0,imageStyle:S,class:I="",...N}={...a,...y},t=typeof m=="function"?m():m,v=typeof t=="object"&&"type"in t&&t.type.PRESENTED_IMAGE_SIMPLE;return u(o(_,{componentName:"Empty",children:C=>{const r=typeof c<"u"?c:C.description,P=typeof r=="string"?r:"empty";let n=null;return typeof t=="string"?n=o("img",{alt:P,src:t},null):n=t,o("div",{class:h(e,I,g.value,{[`${e}-normal`]:v,[`${e}-rtl`]:E.value==="rtl"}),...N},[o("div",{class:`${e}-image`,style:S},[n]),r&&o("p",{class:`${e}-description`},[r]),i.default&&o("div",{class:`${e}-footer`},[A(i.default())])])}},null))}}});p.PRESENTED_IMAGE_DEFAULT=()=>s(d);p.PRESENTED_IMAGE_SIMPLE=()=>s(x);const q=M(p);export{q as default,L as emptyProps};
