"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),a=e=>{const{componentCls:r}=e,i=`${r}-wrapper`,l=`${r}-inner-wrapper`;return{[i]:{textWrap:"nowrap",whiteSpace:"nowrap",display:"inline-flex",maxWidth:"100%",[l]:{borderRadius:e.borderRadius,boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",width:"100%","&--large":{padding:e.spaceSM,lineHeight:e.lineHeightLG,fontSize:e.fontSizeLG},"&--middle":{lineHeight:e.lineHeight,paddingInline:e.spaceSM,paddingBlock:e.calc(e.spaceSM).div(2).equal(),fontSize:e.fontSize},"&--small":{paddingInline:e.spaceXS,paddingBlock:0,lineHeight:e.lineHeight,fontSize:e.fontSize,borderRadius:e.borderRadiusSM}}},[`${i}-purely`]:{"& > *":{backgroundColor:"var(--tag-main-color-background)",color:e.textColor1},[`${l}--disabled`]:{backgroundColor:e.calc(e.textColor3).colorMix(15,"white")}},[`${i}-border`]:{"& > *":{outline:`${e.lineWidth} ${e.lineType} var(--tag-main-color)`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:"var(--tag-main-color-opacity)",color:"var(--tag-main-color)"},[`${l}--disabled`]:{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`,outlineOffset:e.calc(e.lineWidth).mul(-1).equal(),backgroundColor:e.calc(e.textColor2).colorMix(6,"white"),color:e.textColor2}}}},d=o.genComponentStyleHook("ApTag",e=>[a(e)]);exports.default=d;exports.genApTagStyle=a;
