"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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

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

var _excluded = ["booleanDefault"];
var booleanDefault = (0, _utilDeprecate["default"])(function (_ref) {
  var booleanDefault = _ref.booleanDefault,
      other = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
  (0, _legacyMode.setLegacyMode)();
  return (0, _objectSpread2["default"])({
    "default": booleanDefault
  }, other);
}, 'config.booleanDefault is deprecated. Use config.default instead.');

var _default = function _default(config) {
  if (config.type === 'boolean') {
    if (config.booleanDefault !== undefined) {
      config = booleanDefault(config);
    }
  }

  return config;
};

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