const e=require("../../theme/internal.js");let t=require("vue");function n(n,r){let i=(0,t.computed)(()=>n?.value||{}),a=(0,t.computed)(()=>i.value.inherit===!1||!r?.value?e.defaultConfig:r.value);return(0,t.computed)(()=>{if(!n?.value)return r?.value;let e={...a.value.components};return Object.keys(n.value.components||{}).forEach(t=>{e[t]={...e[t],...n.value.components[t]}}),{...a.value,...i.value,token:{...a.value.token,...i.value.token},components:e}})}exports.default=n;