import { defineMessage } from 'react-intl';
export default (function (_ref) {
  var _ref$config = _ref.config,
      defaultValue = _ref$config.numberDefault,
      maximum = _ref$config.maximum,
      minimum = _ref$config.minimum,
      multipleOf = _ref$config.multipleOf,
      numberOfDecimals = _ref$config.numberOfDecimals;
  return {
    schema: {
      "default": defaultValue < minimum || defaultValue > maximum ? undefined : defaultValue !== null && defaultValue !== void 0 ? defaultValue : undefined,
      maximum: maximum,
      minimum: minimum,
      multipleOf: multipleOf,
      type: ['number', 'null'],
      allowedCharacters: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.'],
      numberOfDecimals: numberOfDecimals
    }
  };
});
export var name = defineMessage({
  id: "H98CMI",
  defaultMessage: [{
    "type": 0,
    "value": "Numero"
  }]
});
export var elementType = 'field';
//# sourceMappingURL=number.js.map