"use strict";

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

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

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

var _reactIntl = require("react-intl");

var _form2 = _interopRequireDefault(require("./form"));

var _default = function _default(props) {
  var _props$config, _props$config2;

  var _form = (0, _form2["default"])(props),
      schema = _form.schema,
      uiSchema = _form.uiSchema;

  return {
    schema: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, schema), {}, {
      requireAtLeastOne: props === null || props === void 0 ? void 0 : (_props$config = props.config) === null || _props$config === void 0 ? void 0 : _props$config.requireAtLeastOne,
      handleFalseAsUndefined: props === null || props === void 0 ? void 0 : (_props$config2 = props.config) === null || _props$config2 === void 0 ? void 0 : _props$config2.handleFalseAsUndefined,
      originalConfig: props === null || props === void 0 ? void 0 : props.config
    }),
    uiSchema: uiSchema
  };
};

exports["default"] = _default;
var name = (0, _reactIntl.defineMessage)({
  id: "G2ZRgz",
  defaultMessage: [{
    "type": 0,
    "value": "Kysymysryhmä"
  }]
});
exports.name = name;
var elementType = 'element';
exports.elementType = elementType;
//# sourceMappingURL=formGroup.cjs.map