"use strict";

exports.__esModule = true;
exports.taskLogs = exports.taskInfo = void 0;
var _immutable = _interopRequireDefault(require("immutable"));
var _reselect = require("reselect");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(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 tasksData = function tasksData(state) {
  return state.get("tasks");
};
var taskInfo = exports.taskInfo = function taskInfo(taskId) {
  return (0, _reselect.createSelector)(tasksData, function (tasks) {
    return tasks.getIn(["taskInfos", taskId]) || null;
  });
};
var taskLogs = exports.taskLogs = function taskLogs(taskId) {
  return (0, _reselect.createSelector)(tasksData, function (tasks) {
    return tasks.getIn(["logs", taskId]) || _immutable.default.List();
  });
};
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(tasksData, "tasksData", "/home/vsts/work/1/s/src/selectors/tasks.js");
  reactHotLoader.register(taskInfo, "taskInfo", "/home/vsts/work/1/s/src/selectors/tasks.js");
  reactHotLoader.register(taskLogs, "taskLogs", "/home/vsts/work/1/s/src/selectors/tasks.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(tasksData, "tasksData", "/home/vsts/work/1/s/src/selectors/tasks.js");
  reactHotLoader.register(taskInfo, "taskInfo", "/home/vsts/work/1/s/src/selectors/tasks.js");
  reactHotLoader.register(taskLogs, "taskLogs", "/home/vsts/work/1/s/src/selectors/tasks.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();