"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Formula = exports.Form = void 0;

var _rjsfMaterialUi = _interopRequireDefault(require("@visma/rjsf-material-ui"));

var _configToSchemas = _interopRequireDefault(require("./configToSchemas"));

var _Context = require("./Context");

var _noHtml5Validate = _interopRequireDefault(require("./noHtml5Validate"));

var _omitExtraData = _interopRequireDefault(require("./omitExtraData"));

var _useDynamicElements = _interopRequireDefault(require("./useDynamicElements"));

var _useFields = _interopRequireDefault(require("./useFields"));

var _useLocalizeErrors = _interopRequireDefault(require("./useLocalizeErrors"));

var _useNormalizeConfig = require("./useNormalizeConfig");

var _utils = require("./utils");

var _withConfirmSubmit = _interopRequireDefault(require("./withConfirmSubmit"));

var _withFormConfigLoader = _interopRequireDefault(require("./withFormConfigLoader"));

var _withLiveValidateOnError = _interopRequireDefault(require("./withLiveValidateOnError"));

var _withPrefill = _interopRequireDefault(require("./withPrefill"));

var _withReview = _interopRequireDefault(require("./withReview"));

var _withSteps = _interopRequireDefault(require("./withSteps"));

var _withDraftSave = _interopRequireDefault(require("./withDraftSave"));

var _withSnackbar = _interopRequireDefault(require("./withSnackbar"));

var _withFormulaErrorBoundary = _interopRequireDefault(require("./withFormulaErrorBoundary"));

var _withCustomValidation = _interopRequireDefault(require("./withCustomValidation"));

var _withScrollToError = _interopRequireDefault(require("./withScrollToError"));

var _withFillActions = _interopRequireDefault(require("./withFillActions"));

var _withRecaptcha = _interopRequireDefault(require("./withRecaptcha"));

var _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _RJSFForm, _Form;

/**
 * RJSFForm is extended with these higher-order components. Extensions are
 * added from top to bottom. Props get modified in the reversed order: bottom
 * to top.
 *
 *  - The topmost function is the most inner wrapper component of <RJSFForm>
 *  - The last function is the outmost wrapper. It gets the unmodified props
 *    from the user of <Form>.
 */
var Form = (_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_ref8 = (_ref9 = (_ref10 = (_ref11 = (_ref12 = (_ref13 = (_ref14 = (_ref15 = (_ref16 = (_ref17 = (_ref18 = (_ref19 = (_RJSFForm = _rjsfMaterialUi["default"], (0, _utils.withPropsUpdater)(_noHtml5Validate["default"])(_RJSFForm)), (0, _utils.withPropsUpdater)(_omitExtraData["default"])(_ref19)), (0, _utils.withPropsUpdater)(_useFields["default"])(_ref18)), (0, _utils.withPropsUpdater)(_useLocalizeErrors["default"])(_ref17)), (0, _withConfirmSubmit["default"])(_ref16)), (0, _withRecaptcha["default"])(_ref15)), (0, _withSteps["default"])(_ref14)), (0, _withReview["default"])(_ref13)), (0, _withFillActions["default"])(_ref12)), (0, _withDraftSave["default"])(_ref11)), (0, _utils.withPropsUpdater)(_configToSchemas["default"])(_ref10)), (0, _utils.withPropsUpdater)(_useDynamicElements["default"])(_ref9)), (0, _withPrefill["default"])(_ref8)), (0, _withCustomValidation["default"])(_ref7)), (0, _withLiveValidateOnError["default"])(_ref6)), (0, _utils.withPropsUpdater)(_useNormalizeConfig.useNormalizeConfigProp)(_ref5)), (0, _withFormConfigLoader["default"])(_ref4)), (0, _withSnackbar["default"])(_ref3)), (0, _withScrollToError["default"])(_ref2)), (0, _withFormulaErrorBoundary["default"])(_ref));
exports.Form = Form;
var Formula = (_Form = Form, (0, _Context.withFormulaProvider)(_Form));
exports.Formula = Formula;
//# sourceMappingURL=Formula.cjs.map