"use strict";

exports.__esModule = true;
exports.default = exports.unwrapImmutable = void 0;

var _immutable = _interopRequireDefault(require("immutable4"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(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;
};

/* Immutable values are unwrapped to JS objects/arrays.
   Non-immutable values are returned unchanged. */
var unwrapImmutable = function unwrapImmutable(maybe) {
  return _immutable.default.isImmutable(maybe) ? maybe.toJS() : maybe;
};

exports.unwrapImmutable = unwrapImmutable;
var _default = unwrapImmutable;
var _default2 = _default;
var _default3 = _default2;
exports.default = _default3;
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(unwrapImmutable, "unwrapImmutable", "/home/vsts/work/1/s/src/utils/unwrapImmutable.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/utils/unwrapImmutable.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(unwrapImmutable, "unwrapImmutable", "/home/vsts/work/1/s/src/utils/unwrapImmutable.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/utils/unwrapImmutable.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();