import { genCompactItemStyle as i } from "../../style/compact-item.mjs";
import "../../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "react";
import "../../../../@ant-design/cssinjs/es/StyleContext.mjs";
import "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import { genStyleHooks as e } from "../../theme/util/genComponentStyleHook.mjs";
import n from "./columns.mjs";
const p = (t) => {
  const {
    componentCls: o,
    antCls: r
  } = t;
  return [
    // =====================================================
    // ==                     Control                     ==
    // =====================================================
    {
      [o]: {
        width: t.controlWidth
      }
    },
    // =====================================================
    // ==                      Popup                      ==
    // =====================================================
    {
      [`${o}-dropdown`]: [{
        [`&${r}-select-dropdown`]: {
          padding: 0
        }
      }, n(t)]
    },
    // =====================================================
    // ==                       RTL                       ==
    // =====================================================
    {
      [`${o}-dropdown-rtl`]: {
        direction: "rtl"
      }
    },
    // =====================================================
    // ==             Space Compact                       ==
    // =====================================================
    i(t)
  ];
}, d = (t) => {
  const o = Math.round((t.controlHeight - t.fontSize * t.lineHeight) / 2);
  return {
    controlWidth: 184,
    controlItemWidth: 111,
    dropdownHeight: 180,
    optionSelectedBg: t.controlItemBgActive,
    optionSelectedFontWeight: t.fontWeightStrong,
    optionPadding: `${o}px ${t.paddingSM}px`,
    menuPadding: t.paddingXXS
  };
}, $ = e("Cascader", (t) => [p(t)], d);
export {
  $ as default,
  d as prepareComponentToken
};
