var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/pisellPhone/constants/countryCodes.ts
var countryCodes_exports = {};
__export(countryCodes_exports, {
  COMMON_COUNTRY_CODES: () => COMMON_COUNTRY_CODES,
  DEFAULT_COUNTRY_CODE: () => DEFAULT_COUNTRY_CODE,
  PRESET_COUNTRY_CODES: () => PRESET_COUNTRY_CODES
});
module.exports = __toCommonJS(countryCodes_exports);
var PRESET_COUNTRY_CODES = [
  // 亚洲
  {
    code: "+86",
    name: "中国",
    flag: "🇨🇳",
    format: "XXX XXXX XXXX",
    maxLength: 11,
    pattern: /^1[3-9]\d{9}$/
  },
  {
    code: "+852",
    name: "香港",
    flag: "🇭🇰",
    format: "XXXX XXXX",
    maxLength: 8,
    pattern: /^\d{8}$/
  },
  {
    code: "+853",
    name: "澳门",
    flag: "🇲🇴",
    format: "XXXX XXXX",
    maxLength: 8,
    pattern: /^\d{8}$/
  },
  {
    code: "+886",
    name: "台湾",
    flag: "🇹🇼",
    format: "XXXX XXX XXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+81",
    name: "日本",
    flag: "🇯🇵",
    format: "XX-XXXX-XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+82",
    name: "韩国",
    flag: "🇰🇷",
    format: "XX-XXXX-XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+65",
    name: "新加坡",
    flag: "🇸🇬",
    format: "XXXX XXXX",
    maxLength: 8,
    pattern: /^\d{8}$/
  },
  {
    code: "+60",
    name: "马来西亚",
    flag: "🇲🇾",
    format: "XX-XXXX XXXX",
    maxLength: 10,
    pattern: /^\d{9,10}$/
  },
  {
    code: "+66",
    name: "泰国",
    flag: "🇹🇭",
    format: "XX-XXX-XXXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+91",
    name: "印度",
    flag: "🇮🇳",
    format: "XXXXX XXXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  // 欧洲
  {
    code: "+44",
    name: "英国",
    flag: "🇬🇧",
    format: "XXXX XXX XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+33",
    name: "法国",
    flag: "🇫🇷",
    format: "X XX XX XX XX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+49",
    name: "德国",
    flag: "🇩🇪",
    format: "XXX XXXXXXX",
    maxLength: 11,
    pattern: /^\d{10,11}$/
  },
  {
    code: "+39",
    name: "意大利",
    flag: "🇮🇹",
    format: "XXX XXX XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+34",
    name: "西班牙",
    flag: "🇪🇸",
    format: "XXX XX XX XX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+7",
    name: "俄罗斯",
    flag: "🇷🇺",
    format: "XXX XXX-XX-XX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  // 美洲
  {
    code: "+1",
    name: "美国",
    flag: "🇺🇸",
    format: "(XXX) XXX-XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+1",
    name: "加拿大",
    flag: "🇨🇦",
    format: "(XXX) XXX-XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+52",
    name: "墨西哥",
    flag: "🇲🇽",
    format: "XX XXXX XXXX",
    maxLength: 10,
    pattern: /^\d{10}$/
  },
  {
    code: "+55",
    name: "巴西",
    flag: "🇧🇷",
    format: "XX XXXXX-XXXX",
    maxLength: 11,
    pattern: /^\d{10,11}$/
  },
  // 大洋洲
  {
    code: "+61",
    name: "澳大利亚",
    flag: "🇦🇺",
    format: "XXX XXX XXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+64",
    name: "新西兰",
    flag: "🇳🇿",
    format: "XX XXX XXXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  // 中东
  {
    code: "+971",
    name: "阿联酋",
    flag: "🇦🇪",
    format: "XX XXX XXXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  },
  {
    code: "+966",
    name: "沙特阿拉伯",
    flag: "🇸🇦",
    format: "XX XXX XXXX",
    maxLength: 9,
    pattern: /^\d{9}$/
  }
];
var DEFAULT_COUNTRY_CODE = "+86";
var COMMON_COUNTRY_CODES = ["+86", "+1", "+44"];
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  COMMON_COUNTRY_CODES,
  DEFAULT_COUNTRY_CODE,
  PRESET_COUNTRY_CODES
});
