import e from"./en_US.mjs";import{computed as t,defineComponent as n,inject as r,unref as i}from"vue";var a=n({compatConfig:{MODE:3},name:`LocaleReceiver`,props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(n,{slots:i}){let a=r(`localeData`,{}),o=t(()=>{let{componentName:t=`global`,defaultLocale:r}=n,i=r||e[t||`global`],{antLocale:o}=a,s=t&&o?o[t]:{};return{...typeof i==`function`?i():i,...s||{}}}),s=t(()=>{let{antLocale:t}=a,n=t&&t.locale;return t&&t.exist&&!n?e.locale:n});return()=>{let e=n.children||i.default,{antLocale:t}=a;return e?.(o.value,s.value,t)}}});function o(n,a,o){let s=r(`localeData`,{});return[t(()=>{let{antLocale:t}=s,r=i(a)||e[n||`global`],c=n&&t?t[n]:{};return{...typeof r==`function`?r():r,...c||{},...i(o)||{}}})]}export{a as default,o as useLocaleReceiver};