"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),a=require("../../theme/internal.js");function s(e,u){const o=r.computed(()=>e?.value||{}),t=r.computed(()=>o.value.inherit===!1||!u?.value?a.defaultConfig:u.value);return r.computed(()=>{if(!e?.value)return u?.value;const n={...t.value.components};return Object.keys(e.value.components||{}).forEach(l=>{n[l]={...n[l],...e.value.components[l]}}),{...t.value,...o.value,token:{...t.value.token,...o.value.token},components:n}})}exports.default=s;
