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 { unit as o } from "../../../../@ant-design/cssinjs/es/util/index.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 "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import { resetComponent as W } from "../../style/index.mjs";
const X = (a) => {
  const {
    componentCls: l,
    antCls: t,
    iconCls: b,
    tableFilterDropdownWidth: $,
    tableFilterDropdownSearchWidth: u,
    paddingXXS: n,
    paddingXS: e,
    colorText: h,
    lineWidth: p,
    lineType: w,
    tableBorderColor: f,
    headerIconColor: x,
    fontSizeSM: c,
    tablePaddingHorizontal: S,
    borderRadius: s,
    motionDurationSlow: v,
    colorTextDescription: C,
    colorPrimary: y,
    tableHeaderFilterActiveBg: k,
    colorTextDisabled: m,
    tableFilterDropdownBg: B,
    tableFilterDropdownHeight: D,
    controlItemBgHover: F,
    controlItemBgActive: I,
    boxShadowSecondary: H,
    filterDropdownMenuBg: P,
    calc: d
  } = a, T = `${t}-dropdown`, r = `${l}-filter-dropdown`, i = `${t}-tree`, g = `${o(p)} ${w} ${f}`;
  return [
    {
      [`${l}-wrapper`]: {
        [`${l}-filter-column`]: {
          display: "flex",
          justifyContent: "space-between"
        },
        [`${l}-filter-trigger`]: {
          position: "relative",
          display: "flex",
          alignItems: "center",
          marginBlock: d(n).mul(-1).equal(),
          marginInline: `${o(n)} ${o(d(S).div(2).mul(-1).equal())}`,
          padding: `0 ${o(n)}`,
          color: x,
          fontSize: c,
          borderRadius: s,
          cursor: "pointer",
          transition: `all ${v}`,
          "&:hover": {
            color: C,
            background: k
          },
          "&.active": {
            color: y
          }
        }
      }
    },
    {
      // Dropdown
      [`${t}-dropdown`]: {
        [r]: Object.assign(Object.assign({}, W(a)), {
          minWidth: $,
          backgroundColor: B,
          borderRadius: s,
          boxShadow: H,
          overflow: "hidden",
          // Reset menu
          [`${T}-menu`]: {
            // https://github.com/ant-design/ant-design/issues/4916
            // https://github.com/ant-design/ant-design/issues/19542
            maxHeight: D,
            overflowX: "hidden",
            border: 0,
            boxShadow: "none",
            borderRadius: "unset",
            backgroundColor: P,
            "&:empty::after": {
              display: "block",
              padding: `${o(e)} 0`,
              color: m,
              fontSize: c,
              textAlign: "center",
              content: '"Not Found"'
            }
          },
          [`${r}-tree`]: {
            paddingBlock: `${o(e)} 0`,
            paddingInline: e,
            [i]: {
              padding: 0
            },
            [`${i}-treenode ${i}-node-content-wrapper:hover`]: {
              backgroundColor: F
            },
            [`${i}-treenode-checkbox-checked ${i}-node-content-wrapper`]: {
              "&, &:hover": {
                backgroundColor: I
              }
            }
          },
          [`${r}-search`]: {
            padding: e,
            borderBottom: g,
            "&-input": {
              input: {
                minWidth: u
              },
              [b]: {
                color: m
              }
            }
          },
          [`${r}-checkall`]: {
            width: "100%",
            marginBottom: n,
            marginInlineStart: n
          },
          // Operation
          [`${r}-btns`]: {
            display: "flex",
            justifyContent: "space-between",
            padding: `${o(d(e).sub(p).equal())} ${o(e)}`,
            overflow: "hidden",
            borderTop: g
          }
        })
      }
    },
    // Dropdown Menu & SubMenu
    {
      // submenu of table filter dropdown
      [`${t}-dropdown ${r}, ${r}-submenu`]: {
        // Checkbox
        [`${t}-checkbox-wrapper + span`]: {
          paddingInlineStart: e,
          color: h
        },
        "> ul": {
          maxHeight: "calc(100vh - 130px)",
          overflowX: "hidden",
          overflowY: "auto"
        }
      }
    }
  ];
}, L = X;
export {
  L as default
};
