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] = "4674c3f2-e753-470c-b7ad-b1289ea22a26", e._sentryDebugIdIdentifier = "sentry-dbid-4674c3f2-e753-470c-b7ad-b1289ea22a26");
} catch (e) {}
import { C as isValidMinLength, E as standardKatakanaValidator, T as standardKanjiValidator, _ as hasText, a as NO_ALPHABET_REGEX, g as hasRepeatedCharacters, i as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, n as EMOJI_REGEX, s as OTHER_ENTITIES_VALID_CHAR_REGEX, w as matchesRegex, x as isInvalidName, y as isEmpty } from "./validatorUtils-Dz6AklT-.js";
//#region src/utils/regex/patternValidators.ts
var validateNotEmptyOnBlur = {
	modes: ["blur"],
	validate: (val) => !isEmpty(val),
	errorMessage: "fieldIsRequired"
};
var 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"
	}
];
var 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"
	}
];
var validateJaKanaLegalCompanyName = [
	{
		modes: ["blur"],
		validate: hasText,
		errorMessage: "fieldIsRequired"
	},
	{
		modes: ["blur"],
		validate: (input) => standardKatakanaValidator(input),
		errorMessage: "ensureValidFullWidthKatakana"
	},
	{
		modes: ["blur"],
		validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
		errorMessage: "checkForTypos"
	}
];
var validateLatinSpaceMarkPunctuationNumbersOnlyOnBlur = {
	modes: ["blur"],
	validate: (input) => matchesRegex(LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, input),
	errorMessage: "kanjiAndKanaCharactersAreNotAllowed"
};
var validatePatternOnBlur = (pattern) => ({
	modes: ["blur"],
	validate: (val) => !!val && pattern.test(val)
});
//#endregion
export { validateNotEmptyOnBlur as a, validateLegalCompanyName as i, validateJaKanaLegalCompanyName as n, validatePatternOnBlur as o, validateLatinSpaceMarkPunctuationNumbersOnlyOnBlur as r, validateJaHaniLegalCompanyName as t };
