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