const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_types = require("./types.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let _ant_design_icons = require("@ant-design/icons");
//#region src/components/authentication/admin/AuthMethods/constants.tsx
/**
* 获取默认的认证方法列表（支持多语言）
* 每次调用都会根据当前语言设置返回对应的文本
* @returns 认证方法数组
*/
const getDefaultAuthMethods = () => [
	{
		id: "email",
		type: require_types.AuthMethodType.EMAIL,
		title: _pisell_utils.locales.getText("auth.method.email.title") || "Email",
		category: require_types.AuthMethodCategory.GENERAL,
		description: _pisell_utils.locales.getText("auth.method.email.description") || "Register and log in via email",
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.MailOutlined, { style: {
			fontSize: 20,
			color: "#4096ff"
		} }),
		enabled: false,
		hasSettings: true
	},
	{
		id: "phone",
		type: require_types.AuthMethodType.PHONE,
		title: _pisell_utils.locales.getText("auth.method.phone.title") || "Phone Number",
		category: require_types.AuthMethodCategory.GENERAL,
		description: _pisell_utils.locales.getText("auth.method.phone.description") || "Register and log in via phone number",
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.PhoneOutlined, { style: {
			fontSize: 20,
			color: "#4096ff"
		} }),
		enabled: false,
		hasSettings: true
	},
	{
		id: "facebook",
		type: require_types.AuthMethodType.FACEBOOK,
		title: _pisell_utils.locales.getText("auth.method.facebook.title") || "Facebook",
		category: require_types.AuthMethodCategory.OAUTH,
		description: _pisell_utils.locales.getText("auth.method.facebook.description") || "Log in with Facebook account",
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.FacebookOutlined, { style: {
			fontSize: 20,
			color: "#1877f2"
		} }),
		enabled: false,
		hasSettings: false,
		requiresOAuthConfig: true,
		configLink: "auth.oauth.config.message"
	},
	{
		id: "apple",
		type: require_types.AuthMethodType.APPLE,
		title: _pisell_utils.locales.getText("auth.method.apple.title") || "Apple",
		category: require_types.AuthMethodCategory.OAUTH,
		description: _pisell_utils.locales.getText("auth.method.apple.description") || "Log in with Apple ID",
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.AppleOutlined, { style: {
			fontSize: 20,
			color: "#000000"
		} }),
		enabled: false,
		hasSettings: false,
		requiresOAuthConfig: true,
		configLink: "auth.oauth.config.message"
	},
	{
		id: "guest",
		type: require_types.AuthMethodType.GUEST,
		title: _pisell_utils.locales.getText("auth.method.guest.title") || "Guest",
		category: require_types.AuthMethodCategory.AUTH_FREE,
		description: _pisell_utils.locales.getText("auth.method.guest.description") || "Allow guests to access without registration process",
		icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.UserOutlined, { style: {
			fontSize: 20,
			color: "#8c8c8c"
		} }),
		enabled: false,
		hasSettings: false
	}
];
getDefaultAuthMethods();
/**
* 获取密码规则设置项（支持多语言）
* 每次调用都会根据当前语言设置返回对应的文本
* @param id - 密码规则的唯一标识符，用于区分不同场景下的密码规则
* @returns 密码规则设置数组
*/
const getPasswordRulesSetting = (id = "password_rules") => [{
	id,
	type: require_types.AuthMethodType.PASSWORD_RULES,
	title: _pisell_utils.locales.getText("auth.password.rules.title") || "Password Rules",
	category: require_types.AuthMethodCategory.GENERAL,
	description: _pisell_utils.locales.getText("auth.password.rules.description") || "Define password complexity requirements for accounts",
	icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.LockOutlined, { style: {
		fontSize: 20,
		color: "#4096ff"
	} }),
	enabled: true,
	hasSettings: true
}];
//#endregion
exports.getDefaultAuthMethods = getDefaultAuthMethods;
exports.getPasswordRulesSetting = getPasswordRulesSetting;
