import{resetComponent as e}from"../../style/index.mjs";import{merge as t}from"../../theme/util/statistic.mjs";function n(t,n){let{componentCls:r,inputPaddingHorizontalBase:i,borderRadius:a}=t,o=t.controlHeight-t.lineWidth*2,s=Math.ceil(t.fontSize*1.25);return{[`${r}-single${n?`${r}-${n}`:``}`]:{fontSize:t.fontSize,[`${r}-selector`]:{...e(t),display:`flex`,borderRadius:a,[`${r}-selection-search`]:{position:`absolute`,top:0,insetInlineStart:i,insetInlineEnd:i,bottom:0,"&-input":{width:`100%`}},[`
          ${r}-selection-item,
          ${r}-selection-placeholder
        `]:{padding:0,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${r}-selection-item`]:{position:`relative`,userSelect:`none`},[`${r}-selection-placeholder`]:{transition:`none`,pointerEvents:`none`},[[`&:after`,`${r}-selection-item:after`,`${r}-selection-placeholder:after`].join(`,`)]:{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`}},[`
        &${r}-show-arrow ${r}-selection-item,
        &${r}-show-arrow ${r}-selection-placeholder
      `]:{paddingInlineEnd:s},[`&${r}-open ${r}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:`100%`,height:t.controlHeight,padding:`0 ${i}px`,[`${r}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:`none`},[`${r}-selection-search`]:{position:`static`,width:`100%`},[`${r}-selection-placeholder`]:{position:`absolute`,insetInlineStart:0,insetInlineEnd:0,padding:`0 ${i}px`,"&:after":{display:`none`}}}}}}}function r(e){let{componentCls:r}=e,i=e.controlPaddingHorizontalSM-e.lineWidth;return[n(e),n(t(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),`sm`),{[`${r}-single${r}-sm`]:{[`&:not(${r}-customize-input)`]:{[`${r}-selection-search`]:{insetInlineStart:i,insetInlineEnd:i},[`${r}-selector`]:{padding:`0 ${i}px`},[`&${r}-show-arrow ${r}-selection-search`]:{insetInlineEnd:i+e.fontSize*1.5},[`
            &${r}-show-arrow ${r}-selection-item,
            &${r}-show-arrow ${r}-selection-placeholder
          `]:{paddingInlineEnd:e.fontSize*1.5}}}},n(t(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}export{r as default};