import { p as a, H as i, c as e, h as l, t } from './p-BfLQgzDX.js';
import { c as d } from './p-D7YaJBkB.js';
import { g as n } from './p-Dpaq_7dX.js';
import { f as o, a as s } from './p-BiHzhysf.js';
import { r } from './p-_JFHEL-E.js';
import { d as p } from './p-f9tCETeY.js';
import { d as h } from './p-BpML1w-i.js';
import { d as k } from './p-CE6EHX9u.js';
import { d as u } from './p-C6qt54JA.js';
import { v as b } from './p-CK3_k8jD.js';
const m = [
    { label: 'Afghanistan', id: 'AF', dialCode: '+93', mask: '999 99 999 9999' },
    { label: 'Åland Islands', id: 'AX', dialCode: '+358', mask: '99 999 99 99' },
    { label: 'Albania', id: 'AL', dialCode: '+355', mask: '999 999 999' },
    { label: 'Algeria', id: 'DZ', dialCode: '+213', mask: '99 999 99 99' },
    { label: 'American Samoa', id: 'AS', dialCode: '+1684', mask: '(999) 999-9999' },
    { label: 'Andorra', id: 'AD', dialCode: '+376', mask: '999 999' },
    { label: 'Angola', id: 'AO', dialCode: '+244', mask: '999 999 999' },
    { label: 'Anguilla', id: 'AI', dialCode: '+1264', mask: '(999) 999-9999' },
    { label: 'Antarctica', id: 'AQ', dialCode: '+672', mask: '99 999999' },
    { label: 'Antigua and Barbuda', id: 'AG', dialCode: '+1268', mask: '(999) 999-9999' },
    { label: 'Argentina', id: 'AR', dialCode: '+54', mask: '(999) 9999-9999' },
    { label: 'Armenia', id: 'AM', dialCode: '+374', mask: '99 999-9999' },
    { label: 'Aruba', id: 'AW', dialCode: '+297', mask: '999 9999' },
    { label: 'Australia', id: 'AU', dialCode: '+61', mask: '(99) 9999 9999' },
    { label: 'Austria', id: 'AT', dialCode: '+43', mask: '9999 99999999' },
    { label: 'Azerbaijan', id: 'AZ', dialCode: '+994', mask: '99 999 99 99' },
    { label: 'Bahamas', id: 'BS', dialCode: '+1242', mask: '(999) 999-9999' },
    { label: 'Bahrain', id: 'BH', dialCode: '+973', mask: '9999 9999' },
    { label: 'Bangladesh', id: 'BD', dialCode: '+880', mask: '9999-999999' },
    { label: 'Barbados', id: 'BB', dialCode: '+1246', mask: '(999) 999-9999' },
    { label: 'Belarus', id: 'BY', dialCode: '+375', mask: '(99) 999-99-99' },
    { label: 'Belgium', id: 'BE', dialCode: '+32', mask: '999 99 99 99' },
    { label: 'Belize', id: 'BZ', dialCode: '+501', mask: '999-9999' },
    { label: 'Benin', id: 'BJ', dialCode: '+229', mask: '99 99 99 99' },
    { label: 'Bermuda', id: 'BM', dialCode: '+1441', mask: '(999) 999-9999' },
    { label: 'Bhutan', id: 'BT', dialCode: '+975', mask: '99 999 999' },
    { label: 'Bolivia', id: 'BO', dialCode: '+591', mask: '99999999' },
    { label: 'Bonaire, Sint Eustatius and Saba', id: 'BQ', dialCode: '+599', mask: '999 9999' },
    { label: 'Bosnia and Herzegovina', id: 'BA', dialCode: '+387', mask: '99 999-999' },
    { label: 'Botswana', id: 'BW', dialCode: '+267', mask: '99 999 999' },
    { label: 'Bouvet Island', id: 'BV', dialCode: '+47', mask: '999 99 999' },
    { label: 'Brazil', id: 'BR', dialCode: '+55', mask: '(99) 99999-9999' },
    { label: 'British Indian Ocean Territory', id: 'IO', dialCode: '+246', mask: '999 9999' },
    { label: 'Brunei Darussalam', id: 'BN', dialCode: '+673', mask: '999-9999' },
    { label: 'Bulgaria', id: 'BG', dialCode: '+359', mask: '99 999 999' },
    { label: 'Burkina Faso', id: 'BF', dialCode: '+226', mask: '99 99 99 99' },
    { label: 'Burundi', id: 'BI', dialCode: '+257', mask: '99 99 9999' },
    { label: 'Cambodia', id: 'KH', dialCode: '+855', mask: '99 999 999' },
    { label: 'Cameroon', id: 'CM', dialCode: '+237', mask: '9999 9999' },
    { label: 'Canada', id: 'CA', dialCode: '+1', mask: '(999) 999-9999' },
    { label: 'Cape Verde', id: 'CV', dialCode: '+238', mask: '999 99 99' },
    { label: 'Cayman Islands', id: 'KY', dialCode: '+1345', mask: '(999) 999-9999' },
    { label: 'Central African Republic', id: 'CF', dialCode: '+236', mask: '99 99 99 99' },
    { label: 'Chad', id: 'TD', dialCode: '+235', mask: '99 99 99 99' },
    { label: 'Chile', id: 'CL', dialCode: '+56', mask: '9 9999 9999' },
    { label: 'China', id: 'CN', dialCode: '+86', mask: '999-99999999' },
    { label: 'Christmas Island', id: 'CX', dialCode: '+61', mask: '(99) 9999 9999' },
    { label: 'Cocos (Keeling) Islands', id: 'CC', dialCode: '+61', mask: '(99) 9999 9999' },
    { label: 'Colombia', id: 'CO', dialCode: '+57', mask: '999 999 9999' },
    { label: 'Comoros', id: 'KM', dialCode: '+269', mask: '99 99999' },
    { label: 'Congo', id: 'CG', dialCode: '+242', mask: '99 999 9999' },
    { label: 'Congo, Democratic Republic of the', id: 'CD', dialCode: '+243', mask: '99 999 9999' },
    { label: 'Cook Islands', id: 'CK', dialCode: '+682', mask: '99 999' },
    { label: 'Costa Rica', id: 'CR', dialCode: '+506', mask: '9999-9999' },
    { label: "Côte d'Ivoire", id: 'CI', dialCode: '+225', mask: '99 99 99 99' },
    { label: 'Croatia', id: 'HR', dialCode: '+385', mask: '99 999 9999' },
    { label: 'Cuba', id: 'CU', dialCode: '+53', mask: '9 9999999' },
    { label: 'Curaçao', id: 'CW', dialCode: '+599', mask: '999 9999' },
    { label: 'Cyprus', id: 'CY', dialCode: '+357', mask: '99 999 999' },
    { label: 'Czech Republic', id: 'CZ', dialCode: '+420', mask: '999 999 999' },
    { label: 'Denmark', id: 'DK', dialCode: '+45', mask: '99 99 99 99' },
    { label: 'Djibouti', id: 'DJ', dialCode: '+253', mask: '99 99 99 99' },
    { label: 'Dominica', id: 'DM', dialCode: '+1767', mask: '(999) 999-9999' },
    { label: 'Dominican Republic', id: 'DO', dialCode: '+1', mask: '(999) 999-9999' },
    { label: 'Ecuador', id: 'EC', dialCode: '+593', mask: '99 999-9999' },
    { label: 'Egypt', id: 'EG', dialCode: '+20', mask: '999 999 9999' },
    { label: 'El Salvador', id: 'SV', dialCode: '+503', mask: '9999-9999' },
    { label: 'Equatorial Guinea', id: 'GQ', dialCode: '+240', mask: '99 999 9999' },
    { label: 'Eritrea', id: 'ER', dialCode: '+291', mask: '9 999 999' },
    { label: 'Estonia', id: 'EE', dialCode: '+372', mask: '9999 9999' },
    { label: 'Eswatini', id: 'SZ', dialCode: '+268', mask: '99 99 9999' },
    { label: 'Ethiopia', id: 'ET', dialCode: '+251', mask: '99 999 9999' },
    { label: 'Falkland Islands (Malvinas)', id: 'FK', dialCode: '+500', mask: '99999' },
    { label: 'Faroe Islands', id: 'FO', dialCode: '+298', mask: '999999' },
    { label: 'Fiji', id: 'FJ', dialCode: '+679', mask: '99 99999' },
    { label: 'Finland', id: 'FI', dialCode: '+358', mask: '99 999 99 99' },
    { label: 'France', id: 'FR', dialCode: '+33', mask: '9 99 99 99 99' },
    { label: 'French Guiana', id: 'GF', dialCode: '+594', mask: '99999-9999' },
    { label: 'French Polynesia', id: 'PF', dialCode: '+689', mask: '99 99 99' },
    { label: 'French Southern Territories', id: 'TF', dialCode: '+262', mask: '99999-9999' },
    { label: 'Gabon', id: 'GA', dialCode: '+241', mask: '9 99 99 99' },
    { label: 'Gambia', id: 'GM', dialCode: '+220', mask: '999-9999' },
    { label: 'Georgia', id: 'GE', dialCode: '+995', mask: '999 99 99 99' },
    { label: 'Germany', id: 'DE', dialCode: '+49', mask: '9999 99999999' },
    { label: 'Ghana', id: 'GH', dialCode: '+233', mask: '99 999 9999' },
    { label: 'Gibraltar', id: 'GI', dialCode: '+350', mask: '999 99999' },
    { label: 'Greece', id: 'GR', dialCode: '+30', mask: '999 999 9999' },
    { label: 'Greenland', id: 'GL', dialCode: '+299', mask: '99 99 99' },
    { label: 'Grenada', id: 'GD', dialCode: '+1473', mask: '(999) 999-9999' },
    { label: 'Guadeloupe', id: 'GP', dialCode: '+590', mask: '999999999' },
    { label: 'Guam', id: 'GU', dialCode: '+1671', mask: '(999) 999-9999' },
    { label: 'Guatemala', id: 'GT', dialCode: '+502', mask: '9999-9999' },
    { label: 'Guernsey', id: 'GG', dialCode: '+44', mask: '99999 999999' },
    { label: 'Guinea', id: 'GN', dialCode: '+224', mask: '99 999 999' },
    { label: 'Guinea-Bissau', id: 'GW', dialCode: '+245', mask: '9 999999' },
    { label: 'Guyana', id: 'GY', dialCode: '+592', mask: '999-9999' },
    { label: 'Haiti', id: 'HT', dialCode: '+509', mask: '99 99-9999' },
    { label: 'Heard Island and McDonald Islands', id: 'HM', dialCode: '+672', mask: '' },
    { label: 'Holy See (Vatican City State)', id: 'VA', dialCode: '+39', mask: '99 9999 9999' },
    { label: 'Honduras', id: 'HN', dialCode: '+504', mask: '9999-9999' },
    { label: 'Hong Kong', id: 'HK', dialCode: '+852', mask: '9999 9999' },
    { label: 'Hungary', id: 'HU', dialCode: '+36', mask: '(99) 999-9999' },
    { label: 'Iceland', id: 'IS', dialCode: '+354', mask: '999-9999' },
    { label: 'India', id: 'IN', dialCode: '+91', mask: '99999-99999' },
    { label: 'Indonesia', id: 'ID', dialCode: '+62', mask: '999-9999-9999' },
    { label: 'Iran, Islamic Republic of', id: 'IR', dialCode: '+98', mask: '999 999 9999' },
    { label: 'Iraq', id: 'IQ', dialCode: '+964', mask: '999 999 9999' },
    { label: 'Ireland', id: 'IE', dialCode: '+353', mask: '99 999 9999' },
    { label: 'Isle of Man', id: 'IM', dialCode: '+44', mask: '99999 999999' },
    { label: 'Israel', id: 'IL', dialCode: '+972', mask: '999 999-9999' },
    { label: 'Italy', id: 'IT', dialCode: '+39', mask: '999 9999 9999' },
    { label: 'Jamaica', id: 'JM', dialCode: '+1876', mask: '(999) 999-9999' },
    { label: 'Japan', id: 'JP', dialCode: '+81', mask: '99-9999-9999' },
    { label: 'Jersey', id: 'JE', dialCode: '+44', mask: '99999 999999' },
    { label: 'Jordan', id: 'JO', dialCode: '+962', mask: '9 9999-9999' },
    { label: 'Kazakhstan', id: 'KZ', dialCode: '+7', mask: '(999) 999-99-99' },
    { label: 'Kenya', id: 'KE', dialCode: '+254', mask: '999 999999' },
    { label: 'Kiribati', id: 'KI', dialCode: '+686', mask: '99 999' },
    { label: "Korea (Democratic People's Republic of)", id: 'KP', dialCode: '+850', mask: '999 999-9999' },
    { label: 'Korea, Republic of', id: 'KR', dialCode: '+82', mask: '999-9999-9999' },
    { label: 'Kosovo', id: 'XK', dialCode: '+383', mask: '999 999 999' },
    { label: 'Kuwait', id: 'KW', dialCode: '+965', mask: '9999 9999' },
    { label: 'Kyrgyzstan', id: 'KG', dialCode: '+996', mask: '999 999-9999' },
    { label: "Lao People's Democratic Republic", id: 'LA', dialCode: '+856', mask: '99 999 999' },
    { label: 'Latvia', id: 'LV', dialCode: '+371', mask: '99 999 999' },
    { label: 'Lebanon', id: 'LB', dialCode: '+961', mask: '99 999 999' },
    { label: 'Lesotho', id: 'LS', dialCode: '+266', mask: '99 999 999' },
    { label: 'Liberia', id: 'LR', dialCode: '+231', mask: '99 999 999' },
    { label: 'Libya', id: 'LY', dialCode: '+218', mask: '99-9999999' },
    { label: 'Liechtenstein', id: 'LI', dialCode: '+423', mask: '999 99 99' },
    { label: 'Lithuania', id: 'LT', dialCode: '+370', mask: '(999) 99999' },
    { label: 'Luxembourg', id: 'LU', dialCode: '+352', mask: '999 99 99 99' },
    { label: 'Macau', id: 'MO', dialCode: '+853', mask: '9999 9999' },
    { label: 'Republic of North Macedonia', id: 'MK', dialCode: '+389', mask: '99 999 999' },
    { label: 'Madagascar', id: 'MG', dialCode: '+261', mask: '99 99 999 99' },
    { label: 'Malawi', id: 'MW', dialCode: '+265', mask: '9 9999 9999' },
    { label: 'Malaysia', id: 'MY', dialCode: '+60', mask: '99-9999-9999' },
    { label: 'Maldives', id: 'MV', dialCode: '+960', mask: '999-9999' },
    { label: 'Mali', id: 'ML', dialCode: '+223', mask: '99 99 99 99' },
    { label: 'Malta', id: 'MT', dialCode: '+356', mask: '9999 9999' },
    { label: 'Marshall Islands', id: 'MH', dialCode: '+692', mask: '999-9999' },
    { label: 'Martinique', id: 'MQ', dialCode: '+596', mask: '999999999' },
    { label: 'Mauritania', id: 'MR', dialCode: '+222', mask: '99 99 99 99' },
    { label: 'Mauritius', id: 'MU', dialCode: '+230', mask: '9999-9999' },
    { label: 'Mayotte', id: 'YT', dialCode: '+262', mask: '99999-9999' },
    { label: 'Mexico', id: 'MX', dialCode: '+52', mask: '999 999 9999' },
    { label: 'Micronesia (Federated States of)', id: 'FM', dialCode: '+691', mask: '999-9999' },
    { label: 'Republic of Moldova', id: 'MD', dialCode: '+373', mask: '9999 99999' },
    { label: 'Monaco', id: 'MC', dialCode: '+377', mask: '99 99 99 99' },
    { label: 'Mongolia', id: 'MN', dialCode: '+976', mask: '9999-9999' },
    { label: 'Montenegro', id: 'ME', dialCode: '+382', mask: '99 999 999' },
    { label: 'Montserrat', id: 'MS', dialCode: '+1664', mask: '(999) 999-9999' },
    { label: 'Morocco', id: 'MA', dialCode: '+212', mask: '99-9999999' },
    { label: 'Mozambique', id: 'MZ', dialCode: '+258', mask: '99 999 9999' },
    { label: 'Myanmar', id: 'MM', dialCode: '+95', mask: '99 999 9999' },
    { label: 'Namibia', id: 'NA', dialCode: '+264', mask: '99 999 9999' },
    { label: 'Nauru', id: 'NR', dialCode: '+674', mask: '999-9999' },
    { label: 'Nepal', id: 'NP', dialCode: '+977', mask: '999-9999999' },
    { label: 'Netherlands', id: 'NL', dialCode: '+31', mask: '9 99999999' },
    { label: 'Netherlands Antilles', id: 'AN', dialCode: '+599', mask: '999 9999' },
    { label: 'New Caledonia', id: 'NC', dialCode: '+687', mask: '999999' },
    { label: 'New Zealand', id: 'NZ', dialCode: '+64', mask: '999 999 9999' },
    { label: 'Nicaragua', id: 'NI', dialCode: '+505', mask: '9999-9999' },
    { label: 'Niger', id: 'NE', dialCode: '+227', mask: '99 99 99 99' },
    { label: 'Nigeria', id: 'NG', dialCode: '+234', mask: '999 999 9999' },
    { label: 'Niue', id: 'NU', dialCode: '+683', mask: '9999' },
    { label: 'Norfolk Island', id: 'NF', dialCode: '+672', mask: '999999' },
    { label: 'Northern Mariana Islands', id: 'MP', dialCode: '+1670', mask: '(999) 999-9999' },
    { label: 'Norway', id: 'NO', dialCode: '+47', mask: '999 99 999' },
    { label: 'Oman', id: 'OM', dialCode: '+968', mask: '9999 9999' },
    { label: 'Pakistan', id: 'PK', dialCode: '+92', mask: '999-9999999' },
    { label: 'Palau', id: 'PW', dialCode: '+680', mask: '999-9999' },
    { label: 'State of Palestine', id: 'PS', dialCode: '+970', mask: '99 999-9999' },
    { label: 'Panama', id: 'PA', dialCode: '+507', mask: '9999-9999' },
    { label: 'Papua New Guinea', id: 'PG', dialCode: '+675', mask: '999-9999' },
    { label: 'Paraguay', id: 'PY', dialCode: '+595', mask: '999 999-9999' },
    { label: 'Peru', id: 'PE', dialCode: '+51', mask: '999 999 999' },
    { label: 'Philippines', id: 'PH', dialCode: '+63', mask: '9999 9999999' },
    { label: 'Pitcairn', id: 'PN', dialCode: '+64', mask: '99999999' },
    { label: 'Poland', id: 'PL', dialCode: '+48', mask: '999-999-999' },
    { label: 'Portugal', id: 'PT', dialCode: '+351', mask: '999 999 999' },
    { label: 'Puerto Rico', id: 'PR', dialCode: '+1', mask: '(999) 999-9999' },
    { label: 'Qatar', id: 'QA', dialCode: '+974', mask: '9999 9999' },
    { label: 'Réunion', id: 'RE', dialCode: '+262', mask: '99999-9999' },
    { label: 'Romania', id: 'RO', dialCode: '+40', mask: '99 999-9999' },
    { label: 'Russian Federation', id: 'RU', dialCode: '+7', mask: '(999) 999-9999' },
    { label: 'Rwanda', id: 'RW', dialCode: '+250', mask: '999 999 999' },
    { label: 'Saint Barthélemy', id: 'BL', dialCode: '+590', mask: '999 99 99 99' },
    { label: 'Saint Helena', id: 'SH', dialCode: '+290', mask: '99999' },
    { label: 'Saint Kitts and Nevis', id: 'KN', dialCode: '+1869', mask: '(999) 999-9999' },
    { label: 'Saint Lucia', id: 'LC', dialCode: '+1758', mask: '(999) 999-9999' },
    { label: 'Sint Maarten', id: 'SX', dialCode: '+1721', mask: '(999) 999-9999' },
    { label: 'Saint Martin', id: 'MF', dialCode: '+590', mask: '999 99 99 99' },
    { label: 'Saint Pierre and Miquelon', id: 'PM', dialCode: '+508', mask: '99-9999' },
    { label: 'Saint Vincent and the Grenadines', id: 'VC', dialCode: '+1784', mask: '(999) 999-9999' },
    { label: 'Samoa', id: 'WS', dialCode: '+685', mask: '99-9999' },
    { label: 'San Marino', id: 'SM', dialCode: '+378', mask: '9999 999999' },
    { label: 'São Tomé and Príncipe', id: 'ST', dialCode: '+239', mask: '9 999999' },
    { label: 'Saudi Arabia', id: 'SA', dialCode: '+966', mask: '99 999 9999' },
    { label: 'Senegal', id: 'SN', dialCode: '+221', mask: '99 999 99 99' },
    { label: 'Serbia', id: 'RS', dialCode: '+381', mask: '99 999-9999' },
    { label: 'Seychelles', id: 'SC', dialCode: '+248', mask: '9 999 999' },
    { label: 'Sierra Leone', id: 'SL', dialCode: '+232', mask: '99 999999' },
    { label: 'Singapore', id: 'SG', dialCode: '+65', mask: '9999 9999' },
    { label: 'Slovakia', id: 'SK', dialCode: '+421', mask: '999 999 999' },
    { label: 'Slovenia', id: 'SI', dialCode: '+386', mask: '99 999 999' },
    { label: 'Solomon Islands', id: 'SB', dialCode: '+677', mask: '99999' },
    { label: 'Somalia', id: 'SO', dialCode: '+252', mask: '99 999-99' },
    { label: 'South Africa', id: 'ZA', dialCode: '+27', mask: '99 999 9999' },
    { label: 'South Georgia and the South Sandwich Islands', id: 'GS', dialCode: '+500', mask: '99999' },
    { label: 'South Sudan', id: 'SS', dialCode: '+211', mask: '99 999 9999' },
    { label: 'Spain', id: 'ES', dialCode: '+34', mask: '999 99 99 99' },
    { label: 'Sri Lanka', id: 'LK', dialCode: '+94', mask: '99 999 9999' },
    { label: 'Sudan', id: 'SD', dialCode: '+249', mask: '99 999-9999' },
    { label: 'Suriname', id: 'SR', dialCode: '+597', mask: '999-9999' },
    { label: 'Svalbard and Jan Mayen', id: 'SJ', dialCode: '+47', mask: '999 99 999' },
    { label: 'Sweden', id: 'SE', dialCode: '+46', mask: '99-9999999' },
    { label: 'Switzerland', id: 'CH', dialCode: '+41', mask: '99 999 99 99' },
    { label: 'Syrian Arab Republic', id: 'SY', dialCode: '+963', mask: '99 9999-9999' },
    { label: 'Taiwan, Province of China', id: 'TW', dialCode: '+886', mask: '9999-9999' },
    { label: 'Tajikistan', id: 'TJ', dialCode: '+992', mask: '99 999-9999' },
    { label: 'Tanzania, United Republic of', id: 'TZ', dialCode: '+255', mask: '99 999 9999' },
    { label: 'Thailand', id: 'TH', dialCode: '+66', mask: '99 999 9999' },
    { label: 'Timor-Leste', id: 'TL', dialCode: '+670', mask: '999-9999' },
    { label: 'Togo', id: 'TG', dialCode: '+228', mask: '99 99 99 99' },
    { label: 'Tokelau', id: 'TK', dialCode: '+690', mask: '9999' },
    { label: 'Tonga', id: 'TO', dialCode: '+676', mask: '99999' },
    { label: 'Trinidad and Tobago', id: 'TT', dialCode: '+1868', mask: '(999) 999-9999' },
    { label: 'Tunisia', id: 'TN', dialCode: '+216', mask: '99 999 999' },
    { label: 'Turkey', id: 'TR', dialCode: '+90', mask: '(999) 999 9999' },
    { label: 'Turkmenistan', id: 'TM', dialCode: '+993', mask: '99 999999' },
    { label: 'Turks and Caicos Islands', id: 'TC', dialCode: '+1649', mask: '(999) 999-9999' },
    { label: 'Tuvalu', id: 'TV', dialCode: '+688', mask: '99999' },
    { label: 'Uganda', id: 'UG', dialCode: '+256', mask: '99 999-9999' },
    { label: 'Ukraine', id: 'UA', dialCode: '+380', mask: '(99) 999 99 99' },
    { label: 'United Arab Emirates', id: 'AE', dialCode: '+971', mask: '99 999 9999' },
    { label: 'United Kingdom', id: 'GB', dialCode: '+44', mask: '9999 999999' },
    { label: 'United States', id: 'US', dialCode: '+1', mask: '(999) 999-9999' },
    { label: 'United States Minor Outlying Islands', id: 'UM', dialCode: '+1', mask: '(999) 999-9999' },
    { label: 'Uruguay', id: 'UY', dialCode: '+598', mask: '9999 9999' },
    { label: 'Uzbekistan', id: 'UZ', dialCode: '+998', mask: '99 999-9999' },
    { label: 'Vanuatu', id: 'VU', dialCode: '+678', mask: '99999' },
    { label: 'Venezuela', id: 'VE', dialCode: '+58', mask: '999-9999999' },
    { label: 'Viet Nam', id: 'VN', dialCode: '+84', mask: '999 99 99-99' },
    { label: 'Virgin Islands, British', id: 'VG', dialCode: '+1284', mask: '(999) 999-9999' },
    { label: 'Virgin Islands, U.S.', id: 'VI', dialCode: '+1340', mask: '(999) 999-9999' },
    { label: 'Wallis and Futuna', id: 'WF', dialCode: '+681', mask: '99-9999' },
    { label: 'Western Sahara', id: 'EH', dialCode: '+212', mask: '99-9999999' },
    { label: 'Yemen', id: 'YE', dialCode: '+967', mask: '999 999 999' },
    { label: 'Zambia', id: 'ZM', dialCode: '+260', mask: '99-9999999' },
    { label: 'Zimbabwe', id: 'ZW', dialCode: '+263', mask: '99 999-9999' },
  ],
  c = a(
    class extends i {
      constructor(a) {
        (super(),
          !1 !== a && this.__registerHost(),
          (this.tkChange = e(this, 'tk-change', 5)),
          (this.tkBlur = e(this, 'tk-blur', 7)),
          (this.tkFocus = e(this, 'tk-focus', 7)),
          (this.uniqueId = b()),
          (this.countries = []),
          (this.inputValue = ''),
          (this.hasFocus = !1),
          (this.isDropdownOpen = !1),
          (this.searchTerm = ''),
          (this.disabled = !1),
          (this.readonly = !1),
          (this.invalid = !1),
          (this.defaultCountry = 'TR'),
          (this.showAsterisk = !1),
          (this.size = 'base'),
          (this.hideFlag = !1),
          (this.dropdownWidthMode = 'match-parent'),
          (this.toggleDropdown = () => {
            var a;
            this.disabled || ((this.isDropdownOpen = !this.isDropdownOpen), this.isDropdownOpen && (null === (a = this.searchInput) || void 0 === a || a.focus()));
          }),
          (this.handleCountrySelect = a => {
            var i;
            (this.setSelectedCountry(a.id),
              (this.value = {
                rawValue: '',
                maskedValue: '',
                country: {
                  id: this.selectedCountry.id,
                  label: this.selectedCountry.label,
                  dialCode: this.selectedCountry.dialCode,
                  mask: this.selectedCountry.mask,
                  placeholder: this.selectedCountry.placeholder,
                },
              }),
              this.tkChange.emit(this.value),
              (this.inputValue = ''),
              (this.isDropdownOpen = !1),
              (this.searchTerm = ''),
              null === (i = this.inputRef) || void 0 === i || i.focus());
          }),
          (this.handleClickOutside = a => {
            this.el.contains(a.target) || (this.isDropdownOpen = !1);
          }),
          (this.handleSearchChange = a => {
            this.searchTerm = a.target.value;
          }),
          (this.handleInput = a => {
            var i;
            const e = a.target,
              l = e.value.replace(/\D/g, '');
            if (!(null === (i = this.selectedCountry.mask) || void 0 === i ? void 0 : i.length))
              return (
                (this.inputValue = l),
                (this.inputRef.value = this.inputValue),
                (this.value = {
                  rawValue: l,
                  maskedValue: l,
                  country: {
                    id: this.selectedCountry.id,
                    label: this.selectedCountry.label,
                    dialCode: this.selectedCountry.dialCode,
                    placeholder: this.selectedCountry.placeholder,
                  },
                }),
                void this.tkChange.emit(this.value)
              );
            const t = this.selectedCountry.mask,
              d = (t.match(/9/g) || []).length;
            if (l.length > d || /[^\d() -]/.test(e.value)) return (this.inputRef.value = this.inputValue);
            ((this.hasFocus = !1),
              (this.inputValue = this.applyMask(l, t)),
              (this.inputRef.value = this.inputValue),
              (this.value = {
                rawValue: l,
                maskedValue: this.inputValue,
                country: {
                  id: this.selectedCountry.id,
                  label: this.selectedCountry.label,
                  dialCode: this.selectedCountry.dialCode,
                  mask: t,
                  placeholder: this.selectedCountry.placeholder,
                },
              }),
              this.tkChange.emit(this.value));
          }),
          (this.handleInputBlur = () => {
            ((this.hasFocus = !1), this.tkBlur.emit());
          }),
          (this.handleInputFocus = () => {
            ((this.hasFocus = !0), this.tkFocus.emit());
          }),
          (this.handleFormReset = () => {
            var a;
            ((this.value = {
              rawValue: '',
              maskedValue: '',
              country: {
                id: this.selectedCountry.id,
                label: this.selectedCountry.label,
                dialCode: this.selectedCountry.dialCode,
                mask: this.selectedCountry.mask,
                placeholder: this.selectedCountry.placeholder,
              },
            }),
              this.tkChange.emit(this.value),
              (this.isDropdownOpen = !1),
              (this.inputValue = ''),
              (this.inputRef.value = ''),
              (this.searchTerm = ''),
              null === (a = this.inputRef) || void 0 === a || a.focus());
          }));
      }
      valueChanged(a) {
        var i, e;
        ((!a || ('object' == typeof a && 0 === Object.keys(a).length)) && this.handleFormReset(),
          a.rawValue || a.maskedValue || (this.inputValue = ''),
          a &&
            ((null === (i = null == a ? void 0 : a.country) || void 0 === i ? void 0 : i.id) &&
              this.setSelectedCountry(null === (e = null == a ? void 0 : a.country) || void 0 === e ? void 0 : e.id),
            (this.inputValue = this.applyMask(a.rawValue, this.selectedCountry.mask))));
      }
      disabledChanged(a) {
        a && (this.isDropdownOpen = !1);
      }
      connectedCallback() {
        document.addEventListener('click', this.handleClickOutside);
      }
      disconnectedCallback() {
        var a;
        (null === (a = this.cleanup) || void 0 === a || a.call(this), (this.cleanup = null), document.removeEventListener('click', this.handleClickOutside));
      }
      componentWillLoad() {
        var a, i, e, l;
        (this.initializeCountries(),
          (null == this ? void 0 : this.value) && (null === (a = Object.keys(null == this ? void 0 : this.value)) || void 0 === a ? void 0 : a.length)
            ? ((null === (e = null === (i = this.value) || void 0 === i ? void 0 : i.country) || void 0 === e ? void 0 : e.id) && this.setSelectedCountry(this.value.country.id),
              (this.inputValue = this.applyMask(
                null === (l = null == this ? void 0 : this.value) || void 0 === l ? void 0 : l.rawValue,
                null == this ? void 0 : this.selectedCountry.mask,
              )))
            : this.setSelectedCountry(this.defaultCountry));
      }
      componentDidUpdate() {
        var a, i, e;
        this.isDropdownOpen
          ? (null === (a = this.cleanup) || void 0 === a || a.call(this), this.updatePosition())
          : (null === (i = this.cleanup) || void 0 === i || i.call(this), (this.cleanup = null), null === (e = this.panelRef) || void 0 === e || e.remove());
      }
      formResetCallback() {
        this.handleFormReset();
      }
      updatePosition() {
        const a = this.dropdownWidthMode,
          i = this.el.querySelector('.tk-phone-input-wrapper');
        this.cleanup = o(i, this.panelRef, void 0, {
          placement: 'bottom-start',
          size: {
            apply({ rects: i, elements: e }) {
              'match-parent' === a ? s(e.floating, { width: i.reference.width + 'px' }) : 'auto' !== a && a.length > 0 && s(e.floating, { width: a });
            },
          },
        });
      }
      initializeCountries() {
        this.countries = this.countryList ? this.countryList : m;
      }
      setSelectedCountry(a) {
        const i = this.countries.find(i => i.id.toUpperCase() === a.toUpperCase());
        this.selectedCountry = i || this.countries[0];
      }
      applyMask(a, i) {
        if (!(null == i ? void 0 : i.length) || !(null == a ? void 0 : a.length)) return a;
        let e = '',
          l = 0;
        for (let t = 0; t < i.length && l < a.length; t++) e += '9' === i[t] ? a[l++] : i[t];
        return e;
      }
      getFilteredCountries() {
        const a = this.searchTerm.toLowerCase();
        return a
          ? this.countries.filter(i => {
              var e;
              return i.label.toLowerCase().includes(a) || (null === (e = i.dialCode) || void 0 === e ? void 0 : e.includes(a));
            })
          : this.countries;
      }
      getFlagClass(a) {
        return d('flag', (null == a ? void 0 : a.dialCode) ? 'flag-' + (null == a ? void 0 : a.id.toLowerCase()) : 'flag-none');
      }
      renderLabel() {
        var a;
        let i;
        if ((null === (a = this.label) || void 0 === a ? void 0 : a.length) > 0) {
          const a = l('span', { class: 'tk-phone-input-asterisk' }, '*');
          i = l('label', { htmlFor: this.uniqueId, class: 'tk-phone-input-label' }, this.label, this.showAsterisk ? a : '');
        }
        return i;
      }
      renderCountrySelector() {
        return l(
          'div',
          { class: 'tk-phone-input-dropdown' },
          this.createDropdownButton(),
          this.isDropdownOpen &&
            l('div', { class: 'tk-phone-input-dropdown-menu', role: 'listbox', ref: a => (this.panelRef = a) }, this.createDropdownSearch(), this.createDropdownList()),
        );
      }
      createDropdownButton() {
        const a = d('tk-phone-input-dropdown-button-selected', { 'tk-phone-input-no-dial-code': !this.selectedCountry.dialCode });
        return l(
          'button',
          { class: 'tk-phone-input-dropdown-button', onClick: this.toggleDropdown, type: 'button' },
          l(
            'div',
            { class: a },
            l('tk-icon', Object.assign({}, n('stat_minus_1', { variant: null, size: 'large' }, 'rounded', 'span'))),
            !this.hideFlag && this.renderFlag(this.selectedCountry),
            this.selectedCountry.dialCode && l('span', { class: 'tk-phone-input-dial-code' }, this.selectedCountry.dialCode),
          ),
        );
      }
      createDropdownSearch() {
        return l('tk-input', {
          'class': 'tk-phone-input-dropdown-menu-search',
          'size': this.size,
          'placeholder': 'Search',
          'value': this.searchTerm,
          'onTk-change': this.handleSearchChange,
          'ref': a => (this.searchInput = a),
          'icon': 'search',
          'iconPosition': 'right',
          'onClick': a => a.stopPropagation(),
        });
      }
      createDropdownList() {
        return l(
          'ul',
          { class: 'tk-phone-input-menu' },
          this.getFilteredCountries().map(a =>
            l(
              'li',
              {
                'class': 'tk-phone-input-menu-item',
                'onClick': () => this.handleCountrySelect(a),
                'key': a.id,
                'role': 'option',
                'aria-selected': a.id === this.selectedCountry.id,
              },
              !this.hideFlag && this.renderFlag(a),
              a.label && l('span', { class: 'tk-phone-input-menu-country-label' }, a.label),
              a.dialCode && l('span', { class: 'tk-phone-input-menu-dial-id' }, a.dialCode),
            ),
          ),
        );
      }
      renderPhoneInput() {
        var a, i;
        return l('input', {
          id: this.uniqueId,
          type: 'tel',
          class: 'tk-phone-input-input',
          autoComplete: 'off',
          placeholder:
            (null === (a = this.selectedCountry) || void 0 === a ? void 0 : a.placeholder) ||
            this.placeholder ||
            (null === (i = this.selectedCountry.mask) || void 0 === i ? void 0 : i.replace(/9/g, '9')),
          value: this.inputValue,
          onInput: this.handleInput,
          onBlur: this.handleInputBlur,
          onFocus: this.handleInputFocus,
          disabled: this.disabled,
          ref: a => (this.inputRef = a),
        });
      }
      renderFlag(a) {
        const i = this.getFlagClass(a);
        return a.dialCode
          ? l('div', { 'class': i, 'aria-label': a.label + ' flag' })
          : l('div', { class: i }, l('tk-icon', Object.assign({}, n('close', { color: 'var(--static-white)' }))));
      }
      render() {
        return l(
          'div',
          {
            'key': '7622740fa83a9e25aca50bed39634dfe9f12b578',
            'class': d('tk-phone-input-container', 'tk-phone-input-container-' + this.size),
            'aria-invalid': this.invalid,
            'aria-disabled': this.disabled,
            'aria-readonly': this.readonly,
          },
          this.renderLabel(),
          l('div', { key: '86a1c6d319cea43d53824732efb1095244c247bb', class: 'tk-phone-input-wrapper' }, this.renderCountrySelector(), this.renderPhoneInput()),
          r(this.hint, this.error, this.invalid),
        );
      }
      static get formAssociated() {
        return !0;
      }
      get el() {
        return this;
      }
      static get watchers() {
        return { value: [{ valueChanged: 0 }], disabled: [{ disabledChanged: 0 }] };
      }
      static get style() {
        return '@font-face{font-family:"Material Symbols Outlined";src:url("./assets/fonts/material-symbols/Material-Symbols-Outlined.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}.material-symbols-outlined{font-family:"Material Symbols Outlined";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.material-symbols-outlined{font-variation-settings:"FILL" 0}.material-symbols-outlined.fill{font-variation-settings:"FILL" 1}@font-face{font-family:"Material Symbols Rounded";src:url("./assets/fonts/material-symbols/Material-Symbols-Rounded.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}.material-symbols-rounded{font-family:"Material Symbols Rounded";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.material-symbols-rounded{font-variation-settings:"FILL" 0}.material-symbols-rounded.fill{font-variation-settings:"FILL" 1}@font-face{font-family:"Material Symbols Sharp";src:url("./assets/fonts/material-symbols/Material-Symbols-Sharp.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}.material-symbols-sharp{font-family:"Material Symbols Sharp";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.material-symbols-sharp{font-variation-settings:"FILL" 0}.material-symbols-sharp.fill{font-variation-settings:"FILL" 1}:host{display:block;min-width:0}.tk-phone-input-container{display:flex;flex-direction:column;align-items:flex-start;color:var(--text-darkest);font-family:var(--family-body);gap:var(--input-external-label-small-container-gap);min-width:0}.tk-phone-input-container .tk-phone-input-label{font-weight:var(--weight-regular);gap:var(--input-external-label-small-container-gap)}.tk-phone-input-container .tk-phone-input-wrapper{display:flex;align-items:center;gap:var(--input-external-label-small-container-gap);align-self:stretch;border-radius:var(--button-sizes-large-radius);border:var(--spacing-px) solid var(--border-light);background:var(--static-light);overflow:hidden}.tk-phone-input-container .tk-phone-input-wrapper:focus{border:var(--spacing-px) solid var(--states-info-base)}.tk-phone-input-container .tk-phone-input-wrapper:hover{background-color:var(--background-lightest)}.tk-phone-input-container .tk-phone-input-dropdown{flex-shrink:0}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-button{cursor:pointer;display:flex;align-items:center;border:none;background-color:transparent;padding:0}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-button .tk-phone-input-dropdown-button-selected{display:flex;align-items:center;gap:var(--spacing-xs);border-right:var(--spacing-px) solid var(--border-light)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-button .tk-phone-input-dropdown-button-selected .tk-phone-input-dial-code{padding-right:var(--input-external-label-large-label-h-padding)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-button .tk-phone-input-dropdown-button-selected.tk-phone-input-no-dial-code{padding-right:var(--input-external-label-large-label-h-padding)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu{position:fixed;z-index:800;background:var(--static-light);border:var(--spacing-px) solid var(--border-light);border-radius:var(--button-sizes-large-radius);box-shadow:var(--effect-1-default-sm);display:flex;flex-direction:column;overflow:hidden}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-dropdown-menu-search{padding:var(--spacing-m-base)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu{list-style:none;overflow-y:auto;margin:var(--spacing-m-base)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu::-webkit-scrollbar{width:4px;height:4px}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu::-webkit-scrollbar-track{background:var(--background-lightest);border-radius:2px}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu::-webkit-scrollbar-thumb{border-radius:3px;background:var(--secondary-sub-base)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu::-webkit-scrollbar-thumb:hover{background:var(--secondary-dark)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu::-webkit-scrollbar-corner{background:var(--background-lightest)}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu .tk-phone-input-menu-item{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--input-external-label-base-input-v-padding) var(--spacing-4xl);cursor:pointer;transition:background-color 0.2s}.tk-phone-input-container .tk-phone-input-dropdown .tk-phone-input-dropdown-menu .tk-phone-input-menu .tk-phone-input-menu-item:hover{background-color:var(--background-lightest)}.tk-phone-input-container .tk-phone-input-input{flex:1;min-width:0;border:none;background-color:transparent;outline:none}.tk-phone-input-container .tk-phone-input-input::placeholder{color:var(--text-sub-base)}.tk-phone-input-container[aria-invalid] .tk-phone-input-wrapper{border-color:var(--states-danger-base)}.tk-phone-input-container[aria-disabled],.tk-phone-input-container[aria-readonly]{pointer-events:none}.tk-phone-input-container[aria-disabled] .tk-phone-input-wrapper,.tk-phone-input-container[aria-readonly] .tk-phone-input-wrapper{background-color:var(--background-lightest)}.tk-phone-input-container[aria-disabled] .tk-phone-input-label,.tk-phone-input-container[aria-disabled] .tk-phone-input-label-asterisk,.tk-phone-input-container[aria-disabled] .tk-phone-input-dropdown-button,.tk-phone-input-container[aria-readonly] .tk-phone-input-label,.tk-phone-input-container[aria-readonly] .tk-phone-input-label-asterisk,.tk-phone-input-container[aria-readonly] .tk-phone-input-dropdown-button{color:var(--text-sub-base)}.tk-phone-input-container[aria-disabled] .tk-phone-input-input{color:var(--text-sub-base)}.tk-phone-input-container.tk-phone-input-container-large{font-size:var(--desktop-label-l-size);line-height:var(--desktop-label-l-line-height)}.tk-phone-input-container.tk-phone-input-container-large .tk-phone-input-wrapper{height:var(--spacing-12xl);padding:var(--input-external-label-large-input-v-padding) var(--input-external-label-large-input-h-padding)}.tk-phone-input-container.tk-phone-input-container-large .tk-phone-input-wrapper .tk-phone-input-dropdown-button,.tk-phone-input-container.tk-phone-input-container-large .tk-phone-input-wrapper .tk-phone-input-input{font-size:var(--desktop-label-l-size)}.tk-phone-input-container.tk-phone-input-container-large .tk-phone-input-label{padding:var(--input-external-label-large-label-v-padding) var(--input-external-label-large-label-h-padding)}.tk-phone-input-container.tk-phone-input-container-large .tk-phone-input-menu{max-height:288px}.tk-phone-input-container.tk-phone-input-container-base{font-size:var(--desktop-label-m-base-size);line-height:var(--desktop-label-m-base-line-height)}.tk-phone-input-container.tk-phone-input-container-base .tk-phone-input-wrapper{height:var(--spacing-10xl);padding:var(--input-external-label-base-input-v-padding) var(--input-external-label-base-input-h-padding)}.tk-phone-input-container.tk-phone-input-container-base .tk-phone-input-wrapper .tk-phone-input-dropdown-button,.tk-phone-input-container.tk-phone-input-container-base .tk-phone-input-wrapper .tk-phone-input-input{font-size:var(--desktop-label-m-base-size)}.tk-phone-input-container.tk-phone-input-container-base .tk-phone-input-label{padding:var(--input-external-label-base-label-v-padding) var(--input-external-label-base-label-h-padding)}.tk-phone-input-container.tk-phone-input-container-base .tk-phone-input-menu{max-height:276px}.tk-phone-input-container.tk-phone-input-container-small{font-size:var(--desktop-label-s-size);line-height:var(--desktop-label-s-line-height)}.tk-phone-input-container.tk-phone-input-container-small .tk-phone-input-wrapper{height:var(--spacing-8xl);padding:var(--input-external-label-small-input-v-padding) var(--input-external-label-small-input-h-padding)}.tk-phone-input-container.tk-phone-input-container-small .tk-phone-input-wrapper .tk-phone-input-dropdown-button,.tk-phone-input-container.tk-phone-input-container-small .tk-phone-input-wrapper .tk-phone-input-input{font-size:var(--desktop-label-s-size)}.tk-phone-input-container.tk-phone-input-container-small .tk-phone-input-label{padding:var(--input-external-label-small-label-v-padding) var(--input-external-label-small-label-h-padding)}.tk-phone-input-container.tk-phone-input-container-small .tk-phone-input-menu{max-height:264px}.tk-phone-input-container .tk-phone-input-asterisk{color:var(--states-danger-base);font-size:var(--desktop-label-s-size);line-height:var(--desktop-label-s-line-height);font-weight:var(--weight-light)}';
      }
    },
    [
      64,
      'tk-phone-input',
      {
        value: [1032],
        label: [1],
        countryList: [16],
        disabled: [4],
        readonly: [4],
        invalid: [4],
        defaultCountry: [1, 'default-country'],
        placeholder: [1],
        showAsterisk: [4, 'show-asterisk'],
        hint: [1],
        error: [1],
        size: [1],
        hideFlag: [4, 'hide-flag'],
        dropdownWidthMode: [1, 'dropdown-width-mode'],
        countries: [32],
        selectedCountry: [32],
        inputValue: [32],
        hasFocus: [32],
        isDropdownOpen: [32],
        searchTerm: [32],
      },
      void 0,
      { value: [{ valueChanged: 0 }], disabled: [{ disabledChanged: 0 }] },
    ],
  ),
  C = c,
  g = function () {
    'undefined' != typeof customElements &&
      ['tk-phone-input', 'tk-chips', 'tk-icon', 'tk-input', 'tk-spinner'].forEach(a => {
        switch (a) {
          case 'tk-phone-input':
            customElements.get(t(a)) || customElements.define(t(a), c);
            break;
          case 'tk-chips':
            customElements.get(t(a)) || p();
            break;
          case 'tk-icon':
            customElements.get(t(a)) || h();
            break;
          case 'tk-input':
            customElements.get(t(a)) || k();
            break;
          case 'tk-spinner':
            customElements.get(t(a)) || u();
        }
      });
  };
export { C as TkPhoneInput, g as defineCustomElement };
