import{defineComponent as v,computed as n,createVNode as x}from"vue";import N from"../_util/classNames.mjs";import j from"../_util/props-util/initDefaultProps.mjs";import{objectType as a}from"../_util/type.mjs";import I from"../config-provider/hooks/useConfigInject.mjs";import M from"../message/useMessage.mjs";import P from"../modal/useModal/index.mjs";import S from"../notification/useNotification.mjs";import{useInjectAppConfigContext as H,useProvideAppConfigContext as h,useProvideAppContext as y,useInjectAppContext as V}from"./context.mjs";import b from"./style/index.mjs";const w=()=>({rootClassName:String,message:a(),notification:a()}),z=()=>V(),e=v({name:"AApp",props:j(w(),{}),setup(o,{slots:p}){const{prefixCls:s}=I("app",o),[r,m]=b(s),c=n(()=>N(m.value,s.value,o.rootClassName)),i=H(),t=n(()=>({message:{...i.message,...o.message},notification:{...i.notification,...o.notification}}));h(t.value);const[u,f]=M(t.value.message),[l,d]=S(t.value.notification),[C,g]=P(),A=n(()=>({message:u,notification:l,modal:C}));return y(A.value),()=>r(x("div",{class:c.value},[g(),f(),d(),p.default?.()]))}});e.useApp=z;e.install=function(o){o.component(e.name,e)};export{w as AppProps,e as default};
