import{getStyle as i}from"../../checkbox/style/index.mjs";import"../../theme/internal.mjs";import{genTreeStyle as c}from"../../tree/style/index.mjs";import s from"../../theme/util/genComponentStyleHook.mjs";import{merge as l}from"../../theme/util/statistic.mjs";const d=e=>{const{componentCls:o,treePrefixCls:t,colorBgElevated:n}=e,r=`.${t}`;return[{[`${o}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},c(t,l(e,{colorBgContainer:n})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},i(`${t}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function S(e,o){return s("TreeSelect",t=>{const n=l(t,{treePrefixCls:o.value});return[d(n)]})(e)}export{S as default};
