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