"use strict";

exports.__esModule = true;
exports.default = void 0;
var _recompose = require("recompose");
var _reactRedux = require("react-redux");
var _requests = require("../selectors/requests");
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
console.warn("withRequestActivity has been deprecated");
var withRequestActivity = function withRequestActivity(requestName) {
  return (0, _recompose.withProps)(__signature__(__signature__(function () {
    return {
      active: !!(0, _reactRedux.useSelector)((0, _requests.selectActivity)(requestName))
    };
  }, "useSelector{}", function () {
    return [_reactRedux.useSelector];
  }), "useSelector{}", function () {
    return [_reactRedux.useSelector];
  }));
};
var _default = withRequestActivity;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(withRequestActivity, "withRequestActivity", "/home/vsts/work/1/s/src/hocs/withRequestActivity.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withRequestActivity.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(withRequestActivity, "withRequestActivity", "/home/vsts/work/1/s/src/hocs/withRequestActivity.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withRequestActivity.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();