import x from "../../../@babel/runtime/helpers/esm/defineProperty.mjs";
import a from "../../../@babel/runtime/helpers/esm/objectSpread2.mjs";
import * as l from "react";
import S from "../../../classnames/index.mjs";
import { getDirectionStyle as C } from "../util.mjs";
import E from "../context.mjs";
function b(i) {
  var m = i.prefixCls, t = i.value, r = i.style, n = i.activeStyle, e = l.useContext(E), f = e.min, u = e.max, s = e.direction, v = e.included, y = e.includedStart, p = e.includedEnd, c = "".concat(m, "-dot"), d = v && y <= t && t <= p, o = a(a({}, C(s, t, f, u)), typeof r == "function" ? r(t) : r);
  return d && (o = a(a({}, o), typeof n == "function" ? n(t) : n)), /* @__PURE__ */ l.createElement("span", {
    className: S(c, x({}, "".concat(c, "-active"), d)),
    style: o
  });
}
export {
  b as default
};
