import { __exports as a } from "../../../../../../_virtual/arrows.js";
import N from "react";
import { __require as R } from "../../../../classnames@2.5.1/node_modules/classnames/index.js";
import { __require as q } from "./utils/innerSliderUtils.js";
var k;
function K() {
  if (k) return a;
  k = 1;
  function s(e) {
    "@babel/helpers - typeof";
    return s = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
      return typeof r;
    } : function(r) {
      return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
    }, s(e);
  }
  Object.defineProperty(a, "__esModule", {
    value: !0
  }), a.PrevArrow = a.NextArrow = void 0;
  var c = m(N), b = m(R()), S = q();
  function m(e) {
    return e && e.__esModule ? e : { default: e };
  }
  function f() {
    return f = Object.assign ? Object.assign.bind() : function(e) {
      for (var r = 1; r < arguments.length; r++) {
        var t = arguments[r];
        for (var n in t)
          Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
      }
      return e;
    }, f.apply(this, arguments);
  }
  function h(e, r) {
    var t = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var n = Object.getOwnPropertySymbols(e);
      r && (n = n.filter(function(o) {
        return Object.getOwnPropertyDescriptor(e, o).enumerable;
      })), t.push.apply(t, n);
    }
    return t;
  }
  function p(e) {
    for (var r = 1; r < arguments.length; r++) {
      var t = arguments[r] != null ? arguments[r] : {};
      r % 2 ? h(Object(t), !0).forEach(function(n) {
        x(e, n, t[n]);
      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : h(Object(t)).forEach(function(n) {
        Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
      });
    }
    return e;
  }
  function x(e, r, t) {
    return r = O(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
  }
  function _(e, r) {
    if (!(e instanceof r))
      throw new TypeError("Cannot call a class as a function");
  }
  function A(e, r) {
    for (var t = 0; t < r.length; t++) {
      var n = r[t];
      n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, O(n.key), n);
    }
  }
  function w(e, r, t) {
    return r && A(e.prototype, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
  }
  function O(e) {
    var r = E(e, "string");
    return s(r) == "symbol" ? r : String(r);
  }
  function E(e, r) {
    if (s(e) != "object" || !e) return e;
    var t = e[Symbol.toPrimitive];
    if (t !== void 0) {
      var n = t.call(e, r);
      if (s(n) != "object") return n;
      throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return String(e);
  }
  function P(e, r) {
    if (typeof r != "function" && r !== null)
      throw new TypeError("Super expression must either be null or a function");
    e.prototype = Object.create(r && r.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), r && d(e, r);
  }
  function d(e, r) {
    return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
      return n.__proto__ = o, n;
    }, d(e, r);
  }
  function g(e) {
    var r = j();
    return function() {
      var n = y(e), o;
      if (r) {
        var i = y(this).constructor;
        o = Reflect.construct(n, arguments, i);
      } else
        o = n.apply(this, arguments);
      return C(this, o);
    };
  }
  function C(e, r) {
    if (r && (s(r) === "object" || typeof r == "function"))
      return r;
    if (r !== void 0)
      throw new TypeError("Derived constructors may only return object or undefined");
    return H(e);
  }
  function H(e) {
    if (e === void 0)
      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
    return e;
  }
  function j() {
    try {
      var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
      }));
    } catch {
    }
    return (j = function() {
      return !!e;
    })();
  }
  function y(e) {
    return y = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
      return t.__proto__ || Object.getPrototypeOf(t);
    }, y(e);
  }
  return a.PrevArrow = /* @__PURE__ */ function(e) {
    P(t, e);
    var r = g(t);
    function t() {
      return _(this, t), r.apply(this, arguments);
    }
    return w(t, [{
      key: "clickHandler",
      value: function(o, i) {
        i && i.preventDefault(), this.props.clickHandler(o, i);
      }
    }, {
      key: "render",
      value: function() {
        var o = {
          "slick-arrow": !0,
          "slick-prev": !0
        }, i = this.clickHandler.bind(this, {
          message: "previous"
        });
        !this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (o["slick-disabled"] = !0, i = null);
        var l = {
          key: "0",
          "data-role": "none",
          className: (0, b.default)(o),
          style: {
            display: "block"
          },
          onClick: i
        }, v = {
          currentSlide: this.props.currentSlide,
          slideCount: this.props.slideCount
        }, u;
        return this.props.prevArrow ? u = /* @__PURE__ */ c.default.cloneElement(this.props.prevArrow, p(p({}, l), v)) : u = /* @__PURE__ */ c.default.createElement("button", f({
          key: "0",
          type: "button"
        }, l), " ", "Previous"), u;
      }
    }]), t;
  }(c.default.PureComponent), a.NextArrow = /* @__PURE__ */ function(e) {
    P(t, e);
    var r = g(t);
    function t() {
      return _(this, t), r.apply(this, arguments);
    }
    return w(t, [{
      key: "clickHandler",
      value: function(o, i) {
        i && i.preventDefault(), this.props.clickHandler(o, i);
      }
    }, {
      key: "render",
      value: function() {
        var o = {
          "slick-arrow": !0,
          "slick-next": !0
        }, i = this.clickHandler.bind(this, {
          message: "next"
        });
        (0, S.canGoNext)(this.props) || (o["slick-disabled"] = !0, i = null);
        var l = {
          key: "1",
          "data-role": "none",
          className: (0, b.default)(o),
          style: {
            display: "block"
          },
          onClick: i
        }, v = {
          currentSlide: this.props.currentSlide,
          slideCount: this.props.slideCount
        }, u;
        return this.props.nextArrow ? u = /* @__PURE__ */ c.default.cloneElement(this.props.nextArrow, p(p({}, l), v)) : u = /* @__PURE__ */ c.default.createElement("button", f({
          key: "1",
          type: "button"
        }, l), " ", "Next"), u;
      }
    }]), t;
  }(c.default.PureComponent), a;
}
export {
  K as __require
};
//# sourceMappingURL=arrows.js.map
