import { __exports as n } from "../../../../../../../_virtual/hover.js";
import w from "react";
var s;
function E() {
  if (s) return n;
  s = 1, Object.defineProperty(n, "__esModule", {
    value: !0
  }), n.hover = void 0;
  var d = Object.assign || function(t) {
    for (var e = 1; e < arguments.length; e++) {
      var o = arguments[e];
      for (var u in o)
        Object.prototype.hasOwnProperty.call(o, u) && (t[u] = o[u]);
    }
    return t;
  }, m = w, i = O(m);
  function O(t) {
    return t && t.__esModule ? t : { default: t };
  }
  function g(t, e) {
    if (!(t instanceof e))
      throw new TypeError("Cannot call a class as a function");
  }
  function c(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 b = n.hover = function(e) {
    var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "span";
    return function(u) {
      y(a, u);
      function a() {
        var h, p, r, v;
        g(this, a);
        for (var l = arguments.length, _ = Array(l), f = 0; f < l; f++)
          _[f] = arguments[f];
        return v = (p = (r = c(this, (h = a.__proto__ || Object.getPrototypeOf(a)).call.apply(h, [this].concat(_))), r), r.state = { hover: !1 }, r.handleMouseOver = function() {
          return r.setState({ hover: !0 });
        }, r.handleMouseOut = function() {
          return r.setState({ hover: !1 });
        }, r.render = function() {
          return i.default.createElement(
            o,
            { onMouseOver: r.handleMouseOver, onMouseOut: r.handleMouseOut },
            i.default.createElement(e, d({}, r.props, r.state))
          );
        }, p), c(r, v);
      }
      return a;
    }(i.default.Component);
  };
  return n.default = b, n;
}
export {
  E as __require
};
//# sourceMappingURL=hover.js.map
