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