import { __exports as r } from "../../../../../../../_virtual/active.js";
import b from "react";
var d;
function E() {
  if (d) return r;
  d = 1, Object.defineProperty(r, "__esModule", {
    value: !0
  }), r.active = void 0;
  var h = Object.assign || function(t) {
    for (var e = 1; e < arguments.length; e++) {
      var o = arguments[e];
      for (var a in o)
        Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]);
    }
    return t;
  }, m = b, c = g(m);
  function g(t) {
    return t && t.__esModule ? t : { default: t };
  }
  function w(t, e) {
    if (!(t instanceof e))
      throw new TypeError("Cannot call a class as a function");
  }
  function f(t, e) {
    if (!t)
      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
    return e && (typeof e == "object" || typeof e == "function") ? e : t;
  }
  function y(t, e) {
    if (typeof e != "function" && e !== null)
      throw new TypeError("Super expression must either be null or a function, not " + typeof e);
    t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
  }
  var O = r.active = function(e) {
    var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "span";
    return function(a) {
      y(i, a);
      function i() {
        var p, l, n, v;
        w(this, i);
        for (var _ = arguments.length, s = Array(_), u = 0; u < _; u++)
          s[u] = arguments[u];
        return v = (l = (n = f(this, (p = i.__proto__ || Object.getPrototypeOf(i)).call.apply(p, [this].concat(s))), n), n.state = { active: !1 }, n.handleMouseDown = function() {
          return n.setState({ active: !0 });
        }, n.handleMouseUp = function() {
          return n.setState({ active: !1 });
        }, n.render = function() {
          return c.default.createElement(
            o,
            { onMouseDown: n.handleMouseDown, onMouseUp: n.handleMouseUp },
            c.default.createElement(e, h({}, n.props, n.state))
          );
        }, l), f(n, v);
      }
      return i;
    }(c.default.Component);
  };
  return r.default = O, r;
}
export {
  E as __require
};
//# sourceMappingURL=active.js.map
