import n from "../../../@babel/runtime/helpers/esm/defineProperty.mjs";
import { isInRange as f } from "../utils/dateUtil.mjs";
import { getValue as m } from "../utils/miscUtil.mjs";
function q(g) {
  var a = g.cellPrefixCls, l = g.generateConfig, p = g.rangedValue, R = g.hoverRangedValue, E = g.isInView, r = g.isSameCell, H = g.offsetCell, I = g.today, P = g.value;
  function N(o) {
    var e, t = H(o, -1), v = H(o, 1), d = m(p, 0), c = m(p, 1), i = m(R, 0), s = m(R, 1), S = f(l, i, s, o);
    function h(V) {
      return r(d, V);
    }
    function C(V) {
      return r(c, V);
    }
    var x = r(i, o), y = r(s, o), u = (S || y) && (!E(t) || C(t)), w = (S || x) && (!E(v) || h(v));
    return e = {}, n(e, "".concat(a, "-in-view"), E(o)), n(e, "".concat(a, "-in-range"), f(l, d, c, o)), n(e, "".concat(a, "-range-start"), h(o)), n(e, "".concat(a, "-range-end"), C(o)), n(e, "".concat(a, "-range-start-single"), h(o) && !c), n(e, "".concat(a, "-range-end-single"), C(o) && !d), n(e, "".concat(a, "-range-start-near-hover"), h(o) && (r(t, i) || f(l, i, s, t))), n(e, "".concat(a, "-range-end-near-hover"), C(o) && (r(v, s) || f(l, i, s, v))), n(e, "".concat(a, "-range-hover"), S), n(e, "".concat(a, "-range-hover-start"), x), n(e, "".concat(a, "-range-hover-end"), y), n(e, "".concat(a, "-range-hover-edge-start"), u), n(e, "".concat(a, "-range-hover-edge-end"), w), n(e, "".concat(a, "-range-hover-edge-start-near-range"), u && r(t, c)), n(e, "".concat(a, "-range-hover-edge-end-near-range"), w && r(v, d)), n(e, "".concat(a, "-today"), r(I, o)), n(e, "".concat(a, "-selected"), r(P, o)), e;
  }
  return N;
}
export {
  q as default
};
