;
{
  try {
    let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
    n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "35c71877-81d4-4c13-8ddc-6e87fd419eee", e._sentryDebugIdIdentifier = "sentry-dbid-35c71877-81d4-4c13-8ddc-6e87fd419eee");
  } catch (e) {
  }
}
;
import { au as hasText, ai as isEmpty, am as matchesRegex, an as NO_ALPHABET_REGEX, ao as EMOJI_REGEX, ap as hasRepeatedCharacters, b0 as isValidMinLength, aq as isInvalidName, bk as OTHER_ENTITIES_VALID_CHAR_REGEX, bl as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, av as standardKatakanaValidator, aw as standardKanjiValidator } from "./StoreProvider-CqQrndhS.js";
const validateNotEmptyOnBlur = {
  modes: ["blur"],
  validate: (val) => !isEmpty(val),
  errorMessage: "fieldIsRequired"
};
const validateLegalCompanyName = [
  {
    modes: ["blur"],
    validate: hasText,
    errorMessage: "fieldIsRequired"
  },
  {
    modes: ["blur"],
    validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
    errorMessage: "nameMustContainLetters"
  },
  {
    modes: ["blur"],
    validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
    errorMessage: "checkForTypos"
  }
];
const validateJaHaniLegalCompanyName = [
  {
    modes: ["blur"],
    validate: hasText,
    errorMessage: "fieldIsRequired"
  },
  {
    modes: ["blur"],
    validate: (input) => standardKanjiValidator(input),
    errorMessage: "nameMustContainLetters"
  },
  {
    modes: ["blur"],
    validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
    errorMessage: "checkForTypos"
  }
];
const validateJaKanaLegalCompanyName = [
  {
    modes: ["blur"],
    validate: hasText,
    errorMessage: "fieldIsRequired"
  },
  {
    modes: ["blur"],
    validate: (input) => standardKatakanaValidator(input),
    errorMessage: "nameMustContainLetters"
  },
  {
    modes: ["blur"],
    validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
    errorMessage: "checkForTypos"
  }
];
const validateLatinSpaceMarkPunctuationNumbersOnlyOnBlur = {
  modes: ["blur"],
  validate: (input) => matchesRegex(LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, input),
  errorMessage: "kanjiAndKanaCharactersAreNotAllowed"
};
const validatePatternOnBlur = (pattern) => ({
  modes: ["blur"],
  validate: (val) => !!val && pattern.test(val)
});
export {
  validateNotEmptyOnBlur as a,
  validateJaKanaLegalCompanyName as b,
  validateJaHaniLegalCompanyName as c,
  validateLegalCompanyName as d,
  validateLatinSpaceMarkPunctuationNumbersOnlyOnBlur as e,
  validatePatternOnBlur as v
};
