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