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