import { warningOnce as p } from "../../../rc-util/es/warning.mjs";
function s(n) {
  var e = n.onPopupVisibleChange, a = n.popupVisible, i = n.popupClassName, u = n.popupPlacement;
  p(!e, "`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."), p(a === void 0, "`popupVisible` is deprecated. Please use `open` instead."), p(i === void 0, "`popupClassName` is deprecated. Please use `dropdownClassName` instead."), p(u === void 0, "`popupPlacement` is deprecated. Please use `placement` instead.");
}
function d(n, e) {
  if (n) {
    var a = function i(u) {
      for (var l = 0; l < u.length; l++) {
        var o = u[l];
        if (o[e == null ? void 0 : e.value] === null)
          return p(!1, "`value` in Cascader options should not be `null`."), !0;
        if (Array.isArray(o[e == null ? void 0 : e.children]) && i(o[e == null ? void 0 : e.children]))
          return !0;
      }
    };
    a(n);
  }
}
export {
  s as default,
  d as warningNullOptions
};
