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