import e from"../../_util/cssinjs/hooks/useStyleRegister/index.mjs";import{useConfigContextInject as t}from"../../config-provider/context.mjs";import{genCommonStyle as n,genLinkStyle as r}from"../../style/index.mjs";import i,{merge as a}from"./statistic.mjs";import{useToken as o}from"../internal.mjs";import{computed as s}from"vue";function c(c,l,u){return d=>{let f=s(()=>d?.value),[p,m,h]=o(),{getPrefixCls:g,iconPrefixCls:_}=t(),v=s(()=>g());return e(s(()=>({theme:p.value,token:m.value,hashId:h.value,path:[`Shared`,v.value]})),()=>[{"&":r(m.value)}]),[e(s(()=>({theme:p.value,token:m.value,hashId:h.value,path:[c,f.value,_.value]})),()=>{let{token:e,flush:t}=i(m.value),r={...typeof u==`function`?u(e):u,...m.value[c]},o=l(a(e,{componentCls:`.${f.value}`,prefixCls:f.value,iconCls:`.${_.value}`,antCls:`.${v.value}`},r),{hashId:h.value,prefixCls:f.value,rootPrefixCls:v.value,iconPrefixCls:_.value,overrideComponentToken:m.value[c]});return t(c,r),[n(m.value,f.value),o]}),h]}}export{c as default};