"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _immer = _interopRequireDefault(require("immer"));

var _lodash = require("lodash");

var _base = _interopRequireDefault(require("./base"));

var _fieldTitleSupport = _interopRequireDefault(require("./fieldTitleSupport"));

var _repeatableFieldSupport = _interopRequireDefault(require("./repeatableFieldSupport"));

var converters = [_base["default"], _fieldTitleSupport["default"], _repeatableFieldSupport["default"]];

var _default = function _default(config) {
  return (0, _lodash.flow)(converters.map(function (converter) {
    var _ref, _config;

    return _ref = (_config = config, converter(_config)), (0, _immer["default"])(_ref);
  }));
};

exports["default"] = _default;
//# sourceMappingURL=index.cjs.map