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