"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),q=require("../_util/classNames.js"),j=require("../_util/props-util/initDefaultProps.js"),u=require("../_util/type.js"),N=require("../config-provider/hooks/useConfigInject.js"),P=require("../message/useMessage.js"),M=require("../modal/useModal/index.js"),S=require("../notification/useNotification.js"),n=require("./context.js"),b=require("./style/index.js"),c=()=>({rootClassName:String,message:u.objectType(),notification:u.objectType()}),y=()=>n.useInjectAppContext(),o=t.defineComponent({name:"AApp",props:j.default(c(),{}),setup(e,{slots:r}){const{prefixCls:i}=N.default("app",e),[p,l]=b.default(i),d=t.computed(()=>q.default(l.value,i.value,e.rootClassName)),a=n.useInjectAppConfigContext(),s=t.computed(()=>({message:{...a.message,...e.message},notification:{...a.notification,...e.notification}}));n.useProvideAppConfigContext(s.value);const[f,m]=P.default(s.value.message),[g,C]=S.default(s.value.notification),[A,v]=M.default(),x=t.computed(()=>({message:f,notification:g,modal:A}));return n.useProvideAppContext(x.value),()=>p(t.createVNode("div",{class:d.value},[v(),m(),C(),r.default?.()]))}});o.useApp=y;o.install=function(e){e.component(o.name,o)};exports.AppProps=c;exports.default=o;
