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