const n = () => ({
  height: 0,
  opacity: 0
}), r = (t) => {
  const {
    scrollHeight: e
  } = t;
  return {
    height: e,
    opacity: 1
  };
}, a = (t) => ({
  height: t ? t.offsetHeight : 0
}), o = (t, e) => (e == null ? void 0 : e.deadline) === !0 || e.propertyName === "height", s = function() {
  return {
    motionName: `${arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant"}-motion-collapse`,
    onAppearStart: n,
    onEnterStart: n,
    onAppearActive: r,
    onEnterActive: r,
    onLeaveStart: a,
    onLeaveActive: n,
    onAppearEnd: o,
    onEnterEnd: o,
    onLeaveEnd: o,
    motionDeadline: 500
  };
}, l = (t, e, i) => i !== void 0 ? i : `${t}-${e}`;
export {
  s as default,
  l as getTransitionName
};
