"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("../../_util/cssinjs/StyleContext.js");const v=require("../../_util/cssinjs/hooks/useStyleRegister/index.js");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const y=require("../../config-provider/context.js"),d=require("../../style/index.js"),P=require("../internal.js"),f=require("./statistic.js");function S(n,C,l){return m=>{const t=u.computed(()=>m?.value),[a,e,o]=P.useToken(),{getPrefixCls:p,iconPrefixCls:r}=y.useConfigContextInject(),s=u.computed(()=>p()),h=u.computed(()=>({theme:a.value,token:e.value,hashId:o.value,path:["Shared",s.value]}));v.default(h,()=>[{"&":d.genLinkStyle(e.value)}]);const x=u.computed(()=>({theme:a.value,token:e.value,hashId:o.value,path:[n,t.value,r.value]}));return[v.default(x,()=>{const{token:i,flush:k}=f.default(e.value),c={...typeof l=="function"?l(i):l,...e.value[n]},g=`.${t.value}`,q=f.merge(i,{componentCls:g,prefixCls:t.value,iconCls:`.${r.value}`,antCls:`.${s.value}`},c),I=C(q,{hashId:o.value,prefixCls:t.value,rootPrefixCls:s.value,iconPrefixCls:r.value,overrideComponentToken:e.value[n]});return k(n,c),[d.genCommonStyle(e.value,t.value),I]}),o]}}exports.default=S;
