import * as s from "react";
import E from "../../../classnames/index.mjs";
import "../../../rc-cascader/es/Cascader.mjs";
import P from "../../../rc-cascader/es/Panel.mjs";
import b from "../config-provider/defaultRenderEmpty.mjs";
import y from "../config-provider/hooks/useCSSVarCls.mjs";
import k from "./hooks/useBase.mjs";
import F from "./hooks/useCheckable.mjs";
import R from "./hooks/useColumnIcons.mjs";
import V from "./style/index.mjs";
import v from "./style/panel.mjs";
function J(t) {
  const {
    prefixCls: a,
    className: c,
    multiple: m,
    rootClassName: l,
    notFoundContent: i,
    direction: d,
    expandIcon: p
  } = t, [C, e, r, o] = k(a, d), n = y(e), [f, u, x] = V(e, n);
  v(e);
  const I = r === "rtl", [g, N] = R(C, I, p), S = i || (o == null ? void 0 : o("Cascader")) || /* @__PURE__ */ s.createElement(b, {
    componentName: "Cascader"
  }), h = F(e, m);
  return f(/* @__PURE__ */ s.createElement(P, Object.assign({}, t, {
    checkable: h,
    prefixCls: e,
    className: E(c, u, l, x, n),
    notFoundContent: S,
    direction: r,
    expandIcon: g,
    loadingIcon: N
  })));
}
export {
  J as default
};
