UNPKG

@data-driven-forms/react-form-renderer

Version:

React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.

42 lines (30 loc) 2.1 kB
import _createClass from "@babel/runtime/helpers/createClass"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper"; function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } var DefaultSchemaError = /*#__PURE__*/function (_Error) { _inherits(DefaultSchemaError, _Error); var _super = _createSuper(DefaultSchemaError); function DefaultSchemaError() { var _this; _classCallCheck(this, DefaultSchemaError); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _super.call.apply(_super, [this].concat(args)); _this.name = 'DefaultSchemaError'; if (typeof Error.captureStackTrace === 'function') { Error.captureStackTrace(_assertThisInitialized(_this), _this.constructor); } else { _this.stack = new Error(args[0]).stack; } return _this; } return _createClass(DefaultSchemaError); }( /*#__PURE__*/_wrapNativeSuper(Error)); export default DefaultSchemaError;