const e=require("../../style/index.js"),t=require("../../theme/util/genComponentStyleHook.js"),n=require("../../input/style/index.js");var r=t=>{let{componentCls:r,colorTextDisabled:i,controlItemBgHover:a,controlPaddingHorizontal:o,colorText:s,motionDurationSlow:c,lineHeight:l,controlHeight:u,inputPaddingHorizontal:d,inputPaddingVertical:f,fontSize:p,colorBgElevated:m,borderRadiusLG:h,boxShadowSecondary:g}=t,_=Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2);return{[r]:{...e.resetComponent(t),...n.genBasicInputStyle(t),position:`relative`,display:`inline-block`,height:`auto`,padding:0,overflow:`hidden`,lineHeight:l,whiteSpace:`pre-wrap`,verticalAlign:`bottom`,...n.genStatusStyle(t,r),"&-disabled":{"> textarea":{...n.genDisabledStyle(t)}},"&-focused":{...n.genActiveStyle(t)},[`&-affix-wrapper ${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:d,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`},[`> textarea, ${r}-measure`]:{color:s,boxSizing:`border-box`,minHeight:u-2,margin:0,padding:`${f}px ${d}px`,overflow:`inherit`,overflowX:`hidden`,overflowY:`auto`,fontWeight:`inherit`,fontSize:`inherit`,fontFamily:`inherit`,fontStyle:`inherit`,fontVariant:`inherit`,fontSizeAdjust:`inherit`,fontStretch:`inherit`,lineHeight:`inherit`,direction:`inherit`,letterSpacing:`inherit`,whiteSpace:`inherit`,textAlign:`inherit`,verticalAlign:`top`,wordWrap:`break-word`,wordBreak:`inherit`,tabSize:`inherit`},"> textarea":{width:`100%`,border:`none`,outline:`none`,resize:`none`,backgroundColor:`inherit`,...n.genPlaceholderStyle(t.colorTextPlaceholder)},[`${r}-measure`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:`transparent`,pointerEvents:`none`,"> span":{display:`inline-block`,minHeight:`1em`}},"&-dropdown":{...e.resetComponent(t),position:`absolute`,top:-9999,insetInlineStart:-9999,zIndex:t.zIndexPopup,boxSizing:`border-box`,fontSize:p,fontVariant:`initial`,backgroundColor:m,borderRadius:h,outline:`none`,boxShadow:g,"&-hidden":{display:`none`},[`${r}-dropdown-menu`]:{maxHeight:t.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:`auto`,listStyle:`none`,outline:`none`,"&-item":{...e.textEllipsis,position:`relative`,display:`block`,minWidth:t.controlItemWidth,padding:`${_}px ${o}px`,color:s,fontWeight:`normal`,lineHeight:l,cursor:`pointer`,transition:`background ${c} ease`,"&:hover":{backgroundColor:a},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&-disabled":{color:i,cursor:`not-allowed`,"&:hover":{color:i,backgroundColor:a,cursor:`not-allowed`}},"&-selected":{color:s,fontWeight:t.fontWeightStrong,backgroundColor:a},"&-active":{backgroundColor:a}}}}}}},i=t.default(`Mentions`,e=>[r(n.initInputToken(e))],e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));exports.default=i;