"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useDefaultValidationValues = exports.VALIDATION_RULE_TYPES = exports.MESSAGE_DISPLAY_LOCATION = exports.INPUT_TYPES = exports.ICON_POSITION = void 0;
var _useTranslation = require("../hooks/use-translation");
// Have to stay identical to MESSAGE_TYPES from Message component
// or additional adapters should be introduced
const VALIDATION_RULE_TYPES = exports.VALIDATION_RULE_TYPES = {
  ERROR: 'error',
  SUCCESS: 'success',
  WARNING: 'warning',
  INFO: 'info',
  SUCCESS_INFO: 'success-info',
  IN_PROGRESS: 'in-progress',
  EXPIRED: 'expired',
  DISABLED: 'disabled',
  THINKING: 'thinking'
};
const MESSAGE_DISPLAY_LOCATION = exports.MESSAGE_DISPLAY_LOCATION = {
  INLINE: 'inline',
  SUMMARY: 'summary'
};
const ICON_POSITION = exports.ICON_POSITION = {
  LEFT: 'left',
  RIGHT: 'right',
  CENTER_RIGHT: 'center-right'
};
const useDefaultValidationValues = () => {
  const {
    t
  } = (0, _useTranslation.useTranslation)();
  return {
    [VALIDATION_RULE_TYPES.ERROR]: t('Invalid field'),
    [VALIDATION_RULE_TYPES.SUCCESS]: t('Validated')
  };
};
exports.useDefaultValidationValues = useDefaultValidationValues;
const INPUT_TYPES = exports.INPUT_TYPES = {
  PASSWORD: 'password',
  TEXT: 'text',
  NUMBER: 'number',
  TIME: 'time'
};