"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../input/style/index.js"),d=require("../../style/index.js");require("../../theme/internal.js");const x=require("../../theme/util/genComponentStyleHook.js"),f=e=>{const{componentCls:t,colorTextDisabled:a,controlItemBgHover:n,controlPaddingHorizontal:u,colorText:r,motionDurationSlow:c,lineHeight:l,controlHeight:p,inputPaddingHorizontal:s,inputPaddingVertical:g,fontSize:h,colorBgElevated:b,borderRadiusLG:i,boxShadowSecondary:S}=e,m=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:{...d.resetComponent(e),...o.genBasicInputStyle(e),position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom",...o.genStatusStyle(e,t),"&-disabled":{"> textarea":{...o.genDisabledStyle(e)}},"&-focused":{...o.genActiveStyle(e)},[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:s,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:r,boxSizing:"border-box",minHeight:p-2,margin:0,padding:`${g}px ${s}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",...o.genPlaceholderStyle(e.colorTextPlaceholder)},[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":{...d.resetComponent(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:h,fontVariant:"initial",backgroundColor:b,borderRadius:i,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...d.textEllipsis,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${m}px ${u}px`,color:r,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${c} ease`,"&:hover":{backgroundColor:n},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:i,borderEndEndRadius:i},"&-disabled":{color:a,cursor:"not-allowed","&:hover":{color:a,backgroundColor:n,cursor:"not-allowed"}},"&-selected":{color:r,fontWeight:e.fontWeightStrong,backgroundColor:n},"&-active":{backgroundColor:n}}}}}}},w=x.default("Mentions",e=>{const t=o.initInputToken(e);return[f(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));exports.default=w;
