const e=require("../_util/type.js"),t=require("../_util/classNames.js"),n=require("../_util/props-util/initDefaultProps.js"),r=require("../config-provider/hooks/useConfigInject.js"),i=require("../message/useMessage.js"),a=require("../notification/useNotification.js"),o=require("../modal/useModal/index.js"),s=require("./context.js"),c=require("./style/index.js");let l=require("vue");var u=()=>({rootClassName:String,message:e.objectType(),notification:e.objectType()}),d=()=>s.useInjectAppContext(),f=(0,l.defineComponent)({name:`AApp`,props:n.default(u(),{}),setup(e,{slots:n}){let{prefixCls:u}=r.default(`app`,e),[d,f]=c.default(u),p=(0,l.computed)(()=>t.default(f.value,u.value,e.rootClassName)),m=s.useInjectAppConfigContext(),h=(0,l.computed)(()=>({message:{...m.message,...e.message},notification:{...m.notification,...e.notification}}));s.useProvideAppConfigContext(h.value);let[g,_]=i.default(h.value.message),[v,y]=a.default(h.value.notification),[b,x]=o.default();return s.useProvideAppContext((0,l.computed)(()=>({message:g,notification:v,modal:b})).value),()=>d((0,l.createVNode)(`div`,{class:p.value},[x(),_(),y(),n.default?.()]))}});f.useApp=d,f.install=function(e){e.component(f.name,f)},exports.AppProps=u,exports.default=f;