import { __exports as c } from "../../../../../../_virtual/dots.js";
import Q from "react";
import { __require as V } from "../../../../classnames@2.5.1/node_modules/classnames/index.js";
import { __require as W } from "./utils/innerSliderUtils.js";
var D;
function ee() {
  if (D) return c;
  D = 1;
  function i(t) {
    "@babel/helpers - typeof";
    return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
      return typeof e;
    } : function(e) {
      return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
    }, i(t);
  }
  Object.defineProperty(c, "__esModule", {
    value: !0
  }), c.Dots = void 0;
  var s = _(Q), T = _(V()), m = W();
  function _(t) {
    return t && t.__esModule ? t : { default: t };
  }
  function O(t, e) {
    var r = Object.keys(t);
    if (Object.getOwnPropertySymbols) {
      var n = Object.getOwnPropertySymbols(t);
      e && (n = n.filter(function(o) {
        return Object.getOwnPropertyDescriptor(t, o).enumerable;
      })), r.push.apply(r, n);
    }
    return r;
  }
  function E(t) {
    for (var e = 1; e < arguments.length; e++) {
      var r = arguments[e] != null ? arguments[e] : {};
      e % 2 ? O(Object(r), !0).forEach(function(n) {
        M(t, n, r[n]);
      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : O(Object(r)).forEach(function(n) {
        Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
      });
    }
    return t;
  }
  function M(t, e, r) {
    return e = h(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
  }
  function C(t, e) {
    if (!(t instanceof e))
      throw new TypeError("Cannot call a class as a function");
  }
  function R(t, e) {
    for (var r = 0; r < e.length; r++) {
      var n = e[r];
      n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, h(n.key), n);
    }
  }
  function k(t, e, r) {
    return e && R(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
  }
  function h(t) {
    var e = q(t, "string");
    return i(e) == "symbol" ? e : String(e);
  }
  function q(t, e) {
    if (i(t) != "object" || !t) return t;
    var r = t[Symbol.toPrimitive];
    if (r !== void 0) {
      var n = r.call(t, e);
      if (i(n) != "object") return n;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return String(t);
  }
  function N(t, e) {
    if (typeof e != "function" && e !== null)
      throw new TypeError("Super expression must either be null or a function");
    t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && v(t, e);
  }
  function v(t, e) {
    return v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
      return n.__proto__ = o, n;
    }, v(t, e);
  }
  function x(t) {
    var e = P();
    return function() {
      var n = l(t), o;
      if (e) {
        var a = l(this).constructor;
        o = Reflect.construct(n, arguments, a);
      } else
        o = n.apply(this, arguments);
      return H(this, o);
    };
  }
  function H(t, e) {
    if (e && (i(e) === "object" || typeof e == "function"))
      return e;
    if (e !== void 0)
      throw new TypeError("Derived constructors may only return object or undefined");
    return I(t);
  }
  function I(t) {
    if (t === void 0)
      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
    return t;
  }
  function P() {
    try {
      var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
      }));
    } catch {
    }
    return (P = function() {
      return !!t;
    })();
  }
  function l(t) {
    return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
      return r.__proto__ || Object.getPrototypeOf(r);
    }, l(t);
  }
  var L = function(e) {
    var r;
    return e.infinite ? r = Math.ceil(e.slideCount / e.slidesToScroll) : r = Math.ceil((e.slideCount - e.slidesToShow) / e.slidesToScroll) + 1, r;
  };
  return c.Dots = /* @__PURE__ */ function(t) {
    N(r, t);
    var e = x(r);
    function r() {
      return C(this, r), e.apply(this, arguments);
    }
    return k(r, [{
      key: "clickHandler",
      value: function(o, a) {
        a.preventDefault(), this.props.clickHandler(o);
      }
    }, {
      key: "render",
      value: function() {
        for (var o = this.props, a = o.onMouseEnter, K = o.onMouseOver, U = o.onMouseLeave, f = o.infinite, p = o.slidesToScroll, z = o.slidesToShow, d = o.slideCount, y = o.currentSlide, $ = L({
          slideCount: d,
          slidesToScroll: p,
          slidesToShow: z,
          infinite: f
        }), A = {
          onMouseEnter: a,
          onMouseOver: K,
          onMouseLeave: U
        }, b = [], u = 0; u < $; u++) {
          var S = (u + 1) * p - 1, g = f ? S : (0, m.clamp)(S, 0, d - 1), w = g - (p - 1), j = f ? w : (0, m.clamp)(w, 0, d - 1), F = (0, T.default)({
            "slick-active": f ? y >= j && y <= g : y === j
          }), G = {
            message: "dots",
            index: u,
            slidesToScroll: p,
            currentSlide: y
          }, J = this.clickHandler.bind(this, G);
          b = b.concat(/* @__PURE__ */ s.default.createElement("li", {
            key: u,
            className: F
          }, /* @__PURE__ */ s.default.cloneElement(this.props.customPaging(u), {
            onClick: J
          })));
        }
        return /* @__PURE__ */ s.default.cloneElement(this.props.appendDots(b), E({
          className: this.props.dotsClass
        }, A));
      }
    }]), r;
  }(s.default.PureComponent), c;
}
export {
  ee as __require
};
//# sourceMappingURL=dots.js.map
