"use strict";

exports.__esModule = true;
exports.default = void 0;
var _recompose = require("recompose");
(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;
};
var withInitialLoad = function withInitialLoad(loader, test) {
  if (test === void 0) {
    test = function test() {
      return false;
    };
  }
  return (0, _recompose.lifecycle)({
    componentDidMount: function componentDidMount() {
      console.warn("Higher order component withInitialLoad has been deprecated in favor of React hook useLoader");
      if (test(this.props)) {
        this.props[loader]();
      }
    }
  });
};
var _default = withInitialLoad;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(withInitialLoad, "withInitialLoad", "/home/vsts/work/1/s/src/hocs/withInitialLoad.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withInitialLoad.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(withInitialLoad, "withInitialLoad", "/home/vsts/work/1/s/src/hocs/withInitialLoad.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withInitialLoad.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();