"use strict";

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

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

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

var _utilDeprecate = _interopRequireDefault(require("util-deprecate"));

var _legacyMode = require("../../legacyMode");

var formgroupType = (0, _utilDeprecate["default"])(function (config) {
  (0, _legacyMode.setLegacyMode)();
  return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, config), {}, {
    type: 'formGroup'
  });
}, 'type "formgroup" is deprecated. Use "formGroup" instead.');

var _default = function _default(config) {
  if (config.type === 'formgroup') {
    config = formgroupType(config);
  }

  return config;
};

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