"use strict";

exports.__esModule = true;
exports.isReadMode = exports.isMutationMode = exports.isEditMode = exports.isCreateMode = void 0;
var _constants = require("../constants");
(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 isReadMode = exports.isReadMode = function isReadMode(modeToCheck) {
  return modeToCheck === _constants.displayMode.read;
};
var isEditMode = exports.isEditMode = function isEditMode(modeToCheck) {
  return modeToCheck === _constants.displayMode.edit;
};
var isCreateMode = exports.isCreateMode = function isCreateMode(modeToCheck) {
  return modeToCheck === _constants.displayMode.create;
};
var isMutationMode = exports.isMutationMode = function isMutationMode(modeToCheck) {
  return isEditMode(modeToCheck) || isCreateMode(modeToCheck);
};
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(isReadMode, "isReadMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isEditMode, "isEditMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isCreateMode, "isCreateMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isMutationMode, "isMutationMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.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(isReadMode, "isReadMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isEditMode, "isEditMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isCreateMode, "isCreateMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
  reactHotLoader.register(isMutationMode, "isMutationMode", "/home/vsts/work/1/s/src/utils/displayModeHelper.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();