//#region src/shared/utils/requiredLabelHint/requiredLabelHint.ts
function getRequiredHintMode(requiredFlags) {
	if (requiredFlags.length < 2) return null;
	let required = 0;
	for (const flag of requiredFlags) if (flag) required++;
	const optional = requiredFlags.length - required;
	if (required === 0 || optional === 0) return null;
	if (required === optional) return null;
	return required > optional ? "mark-optional" : "mark-required";
}
function getFieldHint(mode, required) {
	if (!mode) return null;
	if (mode === "mark-optional") return required ? null : "optional";
	return required ? "required" : null;
}
//#endregion
export { getRequiredHintMode as n, getFieldHint as t };
