"use strict";

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

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

var _fp = require("lodash/fp");

var _booleanDefault = _interopRequireDefault(require("./booleanDefault"));

var _booleanWidget = _interopRequireDefault(require("./booleanWidget"));

var _filter = _interopRequireDefault(require("./filter"));

var _formgroupType = _interopRequireDefault(require("./formgroupType"));

var _multiselectWidget = _interopRequireDefault(require("./multiselectWidget"));

var _nameAsTitle = _interopRequireDefault(require("./nameAsTitle"));

var _selectWidget = _interopRequireDefault(require("./selectWidget"));

var _textDefault = _interopRequireDefault(require("./textDefault"));

function legacyConfigSupport(config) {
  var _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _config;

  return _ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_ref8 = (_config = config, (0, _booleanDefault["default"])(_config)), (0, _booleanWidget["default"])(_ref8)), (0, _formgroupType["default"])(_ref7)), (0, _multiselectWidget["default"])(_ref6)), (0, _nameAsTitle["default"])(_ref5)), (0, _selectWidget["default"])(_ref4)), (0, _textDefault["default"])(_ref3)), (0, _filter["default"])(_ref2)), (0, _fp.update)('elements', (0, _fp.map)(legacyConfigSupport))(_ref);
}
//# sourceMappingURL=index.cjs.map