//#region src/components/pisellPhone/constants/countryCodes.ts
/**
* 预设的国家码列表（24个常见国家）
* flag 使用正常文本（ISO 3166-1 alpha-2 两字母代码，如 CN、US）
*
* 包含：
* - 亚洲：中国、香港、澳门、台湾、日本、韩国、新加坡、马来西亚、泰国、印度
* - 欧洲：英国、法国、德国、意大利、西班牙、俄罗斯
* - 美洲：美国、加拿大、墨西哥、巴西
* - 大洋洲：澳大利亚、新西兰
* - 中东：阿联酋、沙特阿拉伯
*/
const PRESET_COUNTRY_CODES = [
	{
		code: "+86",
		name: "中国",
		flag: "CN",
		format: "XXX XXXX XXXX",
		maxLength: 11,
		pattern: /^1[3-9]\d{9}$/
	},
	{
		code: "+852",
		name: "香港",
		flag: "HK",
		format: "XXXX XXXX",
		maxLength: 8,
		pattern: /^\d{8}$/
	},
	{
		code: "+853",
		name: "澳门",
		flag: "MO",
		format: "XXXX XXXX",
		maxLength: 8,
		pattern: /^\d{8}$/
	},
	{
		code: "+886",
		name: "台湾",
		flag: "TW",
		format: "XXXX XXX XXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+81",
		name: "日本",
		flag: "JP",
		format: "XX-XXXX-XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+82",
		name: "韩国",
		flag: "KR",
		format: "XX-XXXX-XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+65",
		name: "新加坡",
		flag: "SG",
		format: "XXXX XXXX",
		maxLength: 8,
		pattern: /^\d{8}$/
	},
	{
		code: "+60",
		name: "马来西亚",
		flag: "MY",
		format: "XX-XXXX XXXX",
		maxLength: 10,
		pattern: /^\d{9,10}$/
	},
	{
		code: "+66",
		name: "泰国",
		flag: "TH",
		format: "XX-XXX-XXXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+91",
		name: "印度",
		flag: "IN",
		format: "XXXXX XXXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+44",
		name: "英国",
		flag: "GB",
		format: "XXXX XXX XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+33",
		name: "法国",
		flag: "FR",
		format: "X XX XX XX XX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+49",
		name: "德国",
		flag: "DE",
		format: "XXX XXXXXXX",
		maxLength: 11,
		pattern: /^\d{10,11}$/
	},
	{
		code: "+39",
		name: "意大利",
		flag: "IT",
		format: "XXX XXX XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+34",
		name: "西班牙",
		flag: "ES",
		format: "XXX XX XX XX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+7",
		name: "俄罗斯",
		flag: "RU",
		format: "XXX XXX-XX-XX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+1",
		name: "美国",
		flag: "US",
		format: "(XXX) XXX-XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+1",
		name: "加拿大",
		flag: "CA",
		format: "(XXX) XXX-XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+52",
		name: "墨西哥",
		flag: "MX",
		format: "XX XXXX XXXX",
		maxLength: 10,
		pattern: /^\d{10}$/
	},
	{
		code: "+55",
		name: "巴西",
		flag: "BR",
		format: "XX XXXXX-XXXX",
		maxLength: 11,
		pattern: /^\d{10,11}$/
	},
	{
		code: "+61",
		name: "澳大利亚",
		flag: "AU",
		format: "XXX XXX XXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+64",
		name: "新西兰",
		flag: "NZ",
		format: "XX XXX XXXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+971",
		name: "阿联酋",
		flag: "AE",
		format: "XX XXX XXXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	},
	{
		code: "+966",
		name: "沙特阿拉伯",
		flag: "SA",
		format: "XX XXX XXXX",
		maxLength: 9,
		pattern: /^\d{9}$/
	}
];
//#endregion
export { PRESET_COUNTRY_CODES };
