import i from "../../@babel/runtime/helpers/esm/defineProperty.mjs";
import * as b from "react";
import v from "../../classnames/index.mjs";
import w from "../../@rc-component/trigger/es/index.mjs";
var C = {
  bottomLeft: {
    points: ["tl", "bl"],
    offset: [0, 4],
    overflow: {
      adjustX: 1,
      adjustY: 1
    }
  },
  bottomRight: {
    points: ["tr", "br"],
    offset: [0, 4],
    overflow: {
      adjustX: 1,
      adjustY: 1
    }
  },
  topLeft: {
    points: ["bl", "tl"],
    offset: [0, -4],
    overflow: {
      adjustX: 0,
      adjustY: 1
    }
  },
  topRight: {
    points: ["br", "tr"],
    offset: [0, -4],
    overflow: {
      adjustX: 0,
      adjustY: 1
    }
  }
};
function x(t) {
  var o, r = t.prefixCls, a = t.popupElement, l = t.popupStyle, s = t.visible, u = t.dropdownClassName, d = t.dropdownAlign, m = t.transitionName, c = t.getPopupContainer, f = t.children, g = t.range, e = t.popupPlacement, n = t.direction, p = "".concat(r, "-dropdown"), P = function() {
    return e !== void 0 ? e : n === "rtl" ? "bottomRight" : "bottomLeft";
  };
  return /* @__PURE__ */ b.createElement(w, {
    showAction: [],
    hideAction: [],
    popupPlacement: P(),
    builtinPlacements: C,
    prefixCls: p,
    popupTransitionName: m,
    popup: a,
    popupAlign: d,
    popupVisible: s,
    popupClassName: v(u, (o = {}, i(o, "".concat(p, "-range"), g), i(o, "".concat(p, "-rtl"), n === "rtl"), o)),
    popupStyle: l,
    getPopupContainer: c
  }, f);
}
export {
  x as default
};
