intl-tel-input 26.0.1 → 26.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +17 -7
- package/angular/build/IntlTelInputWithUtils.js +17 -7
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +18 -8
- package/build/js/intlTelInput.min.js +5 -5
- package/build/js/intlTelInputWithUtils.js +18 -8
- package/build/js/intlTelInputWithUtils.min.js +5 -5
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +17 -7
- package/react/build/IntlTelInput.js +17 -7
- package/react/build/IntlTelInputWithUtils.cjs +17 -7
- package/react/build/IntlTelInputWithUtils.js +17 -7
- package/svelte/README.md +1 -1
- package/svelte/build/IntlTelInput.mjs +298 -292
- package/svelte/build/IntlTelInputWithUtils.mjs +319 -313
- package/vue/README.md +1 -1
- package/vue/build/exports/IntlTelInput.mjs +1 -1
- package/vue/build/exports/IntlTelInputWithUtils.mjs +1 -1
- package/vue/build/{intl-tel-input-Bk5kP2Ot.mjs → intl-tel-input-A8ZXud5P.mjs} +49 -43
- package/build/img/globe.png +0 -0
- package/build/img/globe.webp +0 -0
- package/build/img/globe@2x.png +0 -0
- package/build/img/globe@2x.webp +0 -0
- package/build/img/globe_light.png +0 -0
- package/build/img/globe_light.webp +0 -0
- package/build/img/globe_light@2x.png +0 -0
- package/build/img/globe_light@2x.webp +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# International Telephone Input [](https://github.com/jackocnr/intl-tel-input/actions/workflows/ci.yml) <img src="https://img.shields.io/github/package-json/v/jackocnr/intl-tel-input.svg" alt="version"/> <img src="https://img.shields.io/npm/dm/intl-tel-input.svg" alt="downloads"/>
|
|
2
2
|
|
|
3
|
-
🗣️ NEWS: [v26.0.
|
|
3
|
+
🗣️ NEWS: [v26.0.1](https://github.com/jackocnr/intl-tel-input/releases/tag/v26.0.1) released, with support for:
|
|
4
4
|
- Autocomplete
|
|
5
5
|
- TypeScript types for the Vue component
|
|
6
6
|
- Country names now generated with `Intl.DisplayNames` (reduced bundle size)
|
|
@@ -83,16 +83,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
|
|
|
83
83
|
## Getting Started (Using a CDN)
|
|
84
84
|
1. Add the CSS
|
|
85
85
|
```html
|
|
86
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
86
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/css/intlTelInput.css">
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
2. Add the plugin script and initialise it on your input element
|
|
90
90
|
```html
|
|
91
|
-
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
91
|
+
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/intlTelInput.min.js"></script>
|
|
92
92
|
<script>
|
|
93
93
|
const input = document.querySelector("#phone");
|
|
94
94
|
window.intlTelInput(input, {
|
|
95
|
-
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
95
|
+
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js"),
|
|
96
96
|
});
|
|
97
97
|
</script>
|
|
98
98
|
```
|
|
@@ -189,7 +189,7 @@ The locale to pass to `Intl.DisplayNames` to generate the country names.
|
|
|
189
189
|
|
|
190
190
|
**countryOrder**
|
|
191
191
|
Type: `Array` Default: `null`
|
|
192
|
-
Specify the ordering for the country list with an array of iso2 country codes. Any omitted countries will appear after those specified, in alphabetical order, e.g. setting `countryOrder` to `["jp", "kr"]` will result in the list: Japan, South Korea, Afghanistan, Albania, Algeria etc
|
|
192
|
+
Specify the ordering for the country list with an array of iso2 country codes. Any omitted countries will appear after those specified, in alphabetical order, e.g. setting `countryOrder` to `["jp", "kr"]` will result in the list: Japan, South Korea, Afghanistan, Albania, Algeria, etc. _Note: this replaces the legacy `preferredCountries` option (now removed)._
|
|
193
193
|
|
|
194
194
|
**countrySearch**
|
|
195
195
|
Type: `Boolean` Default: `true`
|
|
@@ -219,7 +219,7 @@ Fix the dropdown width to the input width (rather than being as wide as the long
|
|
|
219
219
|
|
|
220
220
|
**formatAsYouType**
|
|
221
221
|
Type: `Boolean` Default: `true`
|
|
222
|
-
Automatically format the number as the user types. This feature will be disabled if the user types their own formatting characters. Requires the [utils script to be loaded](#loading-the-utilities-script).
|
|
222
|
+
Automatically format the number as the user types. This feature will be disabled if the user types their own formatting characters. Requires the [utils script to be loaded](#loading-the-utilities-script). _Note: previously named `autoFormat`._
|
|
223
223
|
|
|
224
224
|
**formatOnDisplay**
|
|
225
225
|
Type: `Boolean` Default: `true`
|
|
@@ -267,9 +267,9 @@ This will generate the following (hidden) elements, which will be automatically
|
|
|
267
267
|
|
|
268
268
|
**i18n**
|
|
269
269
|
Type: `Object` Default: `{}`
|
|
270
|
-
Allows you to specify translation strings for the user interface text (e.g. the placeholder text for the country search input)
|
|
270
|
+
Allows you to specify translation strings for the user interface text (e.g. the placeholder text for the country search input). Country names are now automatically generated with `Intl.DisplayNames` (see `countryNameLocale` option), but they can also be overridden with this option, using the iso2 code as the key name (see example below).
|
|
271
271
|
|
|
272
|
-
If we don't currently support a language you need, it's easy to [contribute this](https://github.com/jackocnr/intl-tel-input/blob/master/.github/CONTRIBUTING.md#adding-a-new-translation) yourself - you only need to provide a handful of UI translation strings.
|
|
272
|
+
The easiest way to handle translations is to import one of the [provided translation modules](https://github.com/jackocnr/intl-tel-input/tree/master/src/js/intl-tel-input/i18n) and set the `i18n` initialisation option to that value (see option 1 below). You can also override one or more individual keys this way. Alternatively, you can provide your own custom translations (see option 2 below). If providing your own, please see the required UI strings listed below. [See example](https://intl-tel-input.com/examples/localise-countries.html). If we don't currently support a language you need, it's easy to [contribute this](https://github.com/jackocnr/intl-tel-input/blob/master/.github/CONTRIBUTING.md#adding-a-new-translation) yourself - you only need to provide a handful of UI translation strings. _Note: previously named `localizedCountries`._
|
|
273
273
|
|
|
274
274
|
Option 1: import one of the provided translation modules
|
|
275
275
|
```js
|
|
@@ -284,6 +284,8 @@ intlTelInput(input, {
|
|
|
284
284
|
i18n: {
|
|
285
285
|
...fr,
|
|
286
286
|
searchPlaceholder: "Recherche de pays",
|
|
287
|
+
// or override a specific country name
|
|
288
|
+
us: "United States",
|
|
287
289
|
},
|
|
288
290
|
});
|
|
289
291
|
```
|
|
@@ -322,12 +324,12 @@ Set the initial country selection by specifying its country code, e.g. `"us"` fo
|
|
|
322
324
|
Type: `() => Promise<module>` Default: `null`
|
|
323
325
|
This is one way to lazy load the included utils.js (to enable formatting/validation, etc) - see [Loading The Utilities Script](#loading-the-utilities-script) for more options.
|
|
324
326
|
|
|
325
|
-
The `loadUtils` option takes a function that returns a Promise resolving to the utils module
|
|
327
|
+
The `loadUtils` option takes a function that returns a Promise resolving to the utils module. You can `import` the utils module in different ways (examples below): (A) from a CDN, (B) from your own hosted version of [utils.js](https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js), or (C) if you use a bundler like Webpack, Vite or Parcel, you can import it directly from the package. _Note: this replaces the `utilsScript` option (now removed)._
|
|
326
328
|
|
|
327
329
|
```js
|
|
328
330
|
// (A) import utils module from a CDN
|
|
329
331
|
intlTelInput(htmlInputElement, {
|
|
330
|
-
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
332
|
+
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js"),
|
|
331
333
|
});
|
|
332
334
|
|
|
333
335
|
// (B) import utils module from your own hosted version of utils.js
|
|
@@ -363,8 +365,7 @@ Set this to false to hide the flags, e.g. for political reasons. Instead, it wil
|
|
|
363
365
|
|
|
364
366
|
**separateDialCode**
|
|
365
367
|
Type: `Boolean` Default: `false`
|
|
366
|
-
Display the selected country's international dial code next to the input, so it looks like it's part of the typed number. Since the user cannot edit the displayed dial code, they may try to type a new one - in this case, to avoid having two dial codes next to each other, we automatically open the country dropdown and put the
|
|
367
|
-
__Note: if the user enters their number with autofill or by copying and pasting it, and their number includes the international dial code, then this will be shown twice__
|
|
368
|
+
Display the selected country's international dial code next to the input, so it looks like it's part of the typed number. Since the user cannot edit the displayed dial code, they may try to type a new one - in this case, to avoid having two dial codes next to each other, we automatically open the country dropdown and put the newly typed dial code in the search input instead. So if they type +54, then Argentina will be highlighted in the dropdown, and they can simply press Enter to select it, updating the displayed dial code (this feature requires `allowDropdown` and `countrySearch` to be enabled). Play with this option on [Storybook](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--separatedialcode) (using the React component). _Note: previously named `showSelectedDialCode`._
|
|
368
369
|
|
|
369
370
|
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/separate-dial-code4.png" width="267" height="51" alt="Separate Dial Code">
|
|
370
371
|
|
|
@@ -449,7 +450,7 @@ if (error === intlTelInput.utils.validationError.TOO_SHORT) {
|
|
|
449
450
|
|
|
450
451
|
**isValidNumber**
|
|
451
452
|
(Note: only returns `true` for valid <ins>mobile numbers</ins> by default - see `allowedNumberTypes`)
|
|
452
|
-
Check if the current number is valid based on its length - [see example](https://intl-tel-input.com/examples/validation-practical.html), which should be sufficient for most use cases. See `isValidNumberPrecise` (DANGEROUS) for more precise validation, but the advantage of `isValidNumber` is that it is much more future-proof, as while countries around the world regularly update their number rules, they rarely change their number lengths. If this method returns `false`, you can use `getValidationError` to get more information. Requires the [utils script to be loaded](#loading-the-utilities-script).
|
|
453
|
+
Check if the current number is valid based on its length - [see example](https://intl-tel-input.com/examples/validation-practical.html), which should be sufficient for most use cases. See `isValidNumberPrecise` (DANGEROUS) for more precise validation, but the advantage of `isValidNumber` is that it is much more future-proof, as while countries around the world regularly update their number rules, they rarely change their number lengths. If this method returns `false`, you can use `getValidationError` to get more information. Requires the [utils script to be loaded](#loading-the-utilities-script). _Note: previously named `isPossibleNumber`._
|
|
453
454
|
```js
|
|
454
455
|
const isValid = iti.isValidNumber();
|
|
455
456
|
```
|
package/angular/README.md
CHANGED
|
@@ -54,7 +54,7 @@ import "intl-tel-input/styles";
|
|
|
54
54
|
|
|
55
55
|
See the [validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation, or check out the [form demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/form/form.component.ts) for an alternative approach using `ReactiveFormsModule`.
|
|
56
56
|
|
|
57
|
-
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just `import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
57
|
+
A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just `import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.3/build/js/utils.js"`.
|
|
58
58
|
|
|
59
59
|
## Props
|
|
60
60
|
|
|
@@ -2375,12 +2375,22 @@ var processAllCountries = (options) => {
|
|
|
2375
2375
|
};
|
|
2376
2376
|
var generateCountryNames = (countries, options) => {
|
|
2377
2377
|
const { countryNameLocale, i18n } = options;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2378
|
+
let displayNames;
|
|
2379
|
+
try {
|
|
2380
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2381
|
+
if (hasDisplayNames) {
|
|
2382
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2383
|
+
type: "region"
|
|
2384
|
+
});
|
|
2385
|
+
} else {
|
|
2386
|
+
displayNames = null;
|
|
2387
|
+
}
|
|
2388
|
+
} catch (e) {
|
|
2389
|
+
console.error(e);
|
|
2390
|
+
displayNames = null;
|
|
2391
|
+
}
|
|
2382
2392
|
for (const c of countries) {
|
|
2383
|
-
c.name = i18n[c.iso2] || (displayNames === null || displayNames === void 0 ? void 0 : displayNames.of(c.iso2.toUpperCase()));
|
|
2393
|
+
c.name = i18n[c.iso2] || (displayNames === null || displayNames === void 0 ? void 0 : displayNames.of(c.iso2.toUpperCase())) || "";
|
|
2384
2394
|
}
|
|
2385
2395
|
};
|
|
2386
2396
|
var processDialCodes = (countries) => {
|
|
@@ -3232,7 +3242,7 @@ var Iti = class _Iti {
|
|
|
3232
3242
|
const { name, dialCode } = this.selectedCountryData;
|
|
3233
3243
|
title = name;
|
|
3234
3244
|
ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
|
|
3235
|
-
selectedCountryInner = "";
|
|
3245
|
+
selectedCountryInner = showFlags ? "" : buildGlobeIcon();
|
|
3236
3246
|
} else {
|
|
3237
3247
|
title = i18n.noCountrySelected;
|
|
3238
3248
|
ariaLabel = i18n.noCountrySelected;
|
|
@@ -3629,7 +3639,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
3629
3639
|
attachUtils,
|
|
3630
3640
|
startedLoadingUtilsScript: false,
|
|
3631
3641
|
startedLoadingAutoCountry: false,
|
|
3632
|
-
version: "26.0.
|
|
3642
|
+
version: "26.0.3"
|
|
3633
3643
|
});
|
|
3634
3644
|
var intl_tel_input_default = intlTelInput;
|
|
3635
3645
|
|
|
@@ -2375,12 +2375,22 @@ var processAllCountries = (options) => {
|
|
|
2375
2375
|
};
|
|
2376
2376
|
var generateCountryNames = (countries, options) => {
|
|
2377
2377
|
const { countryNameLocale, i18n } = options;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2378
|
+
let displayNames;
|
|
2379
|
+
try {
|
|
2380
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2381
|
+
if (hasDisplayNames) {
|
|
2382
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2383
|
+
type: "region"
|
|
2384
|
+
});
|
|
2385
|
+
} else {
|
|
2386
|
+
displayNames = null;
|
|
2387
|
+
}
|
|
2388
|
+
} catch (e) {
|
|
2389
|
+
console.error(e);
|
|
2390
|
+
displayNames = null;
|
|
2391
|
+
}
|
|
2382
2392
|
for (const c of countries) {
|
|
2383
|
-
c.name = i18n[c.iso2] || (displayNames === null || displayNames === void 0 ? void 0 : displayNames.of(c.iso2.toUpperCase()));
|
|
2393
|
+
c.name = i18n[c.iso2] || (displayNames === null || displayNames === void 0 ? void 0 : displayNames.of(c.iso2.toUpperCase())) || "";
|
|
2384
2394
|
}
|
|
2385
2395
|
};
|
|
2386
2396
|
var processDialCodes = (countries) => {
|
|
@@ -3232,7 +3242,7 @@ var Iti = class _Iti {
|
|
|
3232
3242
|
const { name, dialCode } = this.selectedCountryData;
|
|
3233
3243
|
title = name;
|
|
3234
3244
|
ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
|
|
3235
|
-
selectedCountryInner = "";
|
|
3245
|
+
selectedCountryInner = showFlags ? "" : buildGlobeIcon();
|
|
3236
3246
|
} else {
|
|
3237
3247
|
title = i18n.noCountrySelected;
|
|
3238
3248
|
ariaLabel = i18n.noCountrySelected;
|
|
@@ -3629,7 +3639,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
3629
3639
|
attachUtils,
|
|
3630
3640
|
startedLoadingUtilsScript: false,
|
|
3631
3641
|
startedLoadingAutoCountry: false,
|
|
3632
|
-
version: "26.0.
|
|
3642
|
+
version: "26.0.3"
|
|
3633
3643
|
});
|
|
3634
3644
|
var intl_tel_input_default = intlTelInput;
|
|
3635
3645
|
|
package/build/js/data.js
CHANGED
package/build/js/data.min.js
CHANGED
package/build/js/intlTelInput.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v26.0.
|
|
2
|
+
* International Telephone Input v26.0.3
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -2494,12 +2494,22 @@ var factoryOutput = (() => {
|
|
|
2494
2494
|
};
|
|
2495
2495
|
var generateCountryNames = (countries, options) => {
|
|
2496
2496
|
const { countryNameLocale, i18n } = options;
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2497
|
+
let displayNames;
|
|
2498
|
+
try {
|
|
2499
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2500
|
+
if (hasDisplayNames) {
|
|
2501
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2502
|
+
type: "region"
|
|
2503
|
+
});
|
|
2504
|
+
} else {
|
|
2505
|
+
displayNames = null;
|
|
2506
|
+
}
|
|
2507
|
+
} catch (e) {
|
|
2508
|
+
console.error(e);
|
|
2509
|
+
displayNames = null;
|
|
2510
|
+
}
|
|
2501
2511
|
for (const c of countries) {
|
|
2502
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2512
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2503
2513
|
}
|
|
2504
2514
|
};
|
|
2505
2515
|
var processDialCodes = (countries) => {
|
|
@@ -3415,7 +3425,7 @@ var factoryOutput = (() => {
|
|
|
3415
3425
|
const { name, dialCode } = this.selectedCountryData;
|
|
3416
3426
|
title = name;
|
|
3417
3427
|
ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
|
|
3418
|
-
selectedCountryInner = "";
|
|
3428
|
+
selectedCountryInner = showFlags ? "" : buildGlobeIcon();
|
|
3419
3429
|
} else {
|
|
3420
3430
|
title = i18n.noCountrySelected;
|
|
3421
3431
|
ariaLabel = i18n.noCountrySelected;
|
|
@@ -3861,7 +3871,7 @@ var factoryOutput = (() => {
|
|
|
3861
3871
|
attachUtils,
|
|
3862
3872
|
startedLoadingUtilsScript: false,
|
|
3863
3873
|
startedLoadingAutoCountry: false,
|
|
3864
|
-
version: "26.0.
|
|
3874
|
+
version: "26.0.3"
|
|
3865
3875
|
}
|
|
3866
3876
|
);
|
|
3867
3877
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v26.0.
|
|
2
|
+
* International Telephone Input v26.0.3
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
}
|
|
14
14
|
}(() => {
|
|
15
15
|
|
|
16
|
-
var factoryOutput=(()=>{var F=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var yt=Object.prototype.hasOwnProperty;var ft=(r,t)=>{for(var e in t)F(r,e,{get:t[e],enumerable:!0})},gt=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of mt(t))!yt.call(r,s)&&s!==e&&F(r,s,{get:()=>t[s],enumerable:!(i=Ct(t,s))||i.enumerable});return r};var It=r=>gt(F({},"__esModule",{value:!0}),r);var Tt={};ft(Tt,{Iti:()=>B,default:()=>wt});var _t=[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]],
|
|
16
|
+
var factoryOutput=(()=>{var F=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var yt=Object.prototype.hasOwnProperty;var ft=(r,t)=>{for(var e in t)F(r,e,{get:t[e],enumerable:!0})},gt=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of mt(t))!yt.call(r,s)&&s!==e&&F(r,s,{get:()=>t[s],enumerable:!(i=Ct(t,s))||i.enumerable});return r};var It=r=>gt(F({},"__esModule",{value:!0}),r);var Tt={};ft(Tt,{Iti:()=>B,default:()=>wt});var _t=[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]],Q=[];for(let r of _t)Q.push({name:"",iso2:r[0],dialCode:r[1],priority:r[2]||0,areaCodes:r[3]||null,nodeById:{},nationalPrefix:r[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var w=Q;var A={OPEN_COUNTRY_DROPDOWN:"open:countrydropdown",CLOSE_COUNTRY_DROPDOWN:"close:countrydropdown",COUNTRY_CHANGE:"countrychange",INPUT:"input"},h={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight"},f={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"},V={PASTE:"insertFromPaste",DELETE_FWD:"deleteContentForward"},N={ALPHA_UNICODE:/\p{L}/u,NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÀ-ÿа-яА-Я ]$/},Z={SEARCH_DEBOUNCE_MS:100,HIDDEN_SEARCH_RESET_MS:1e3,NEXT_TICK:0},$={UNKNOWN_NUMBER_TYPE:-99,UNKNOWN_VALIDATION_ERROR:-99},x={SANE_SELECTED_WITH_DIAL_WIDTH:78,SANE_SELECTED_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6},M={PLUS:"+",NANP:"1"},H={ISO2:"gb",DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},J={ISO2:"us",DIAL_CODE:"1"},S={AGGRESSIVE:"aggressive",POLITE:"polite",OFF:"off"},R={AUTO:"auto"},K={COUNTRY_CODE:"countryCode",DIAL_CODE:"dialCode"},p={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"};var bt={selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria(r){return r===0?"No results found":r===1?"1 result found":`${r} results found`}},tt=bt;var G=r=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(r).matches,Et=()=>{if(typeof navigator<"u"&&typeof window<"u"){let r=G("(max-width: 500px)"),t=G("(max-height: 600px)"),e=G("(pointer: coarse)");return r||e&&t}return!1},Y={allowDropdown:!0,allowNumberExtensions:!1,allowPhonewords:!1,autoPlaceholder:S.POLITE,containerClass:"",countryNameLocale:"en",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:Et(),allowedNumberTypes:["MOBILE","FIXED_LINE"]},et=r=>{r.useFullscreenPopup&&(r.fixDropdownWidth=!1),r.onlyCountries.length===1&&(r.initialCountry=r.onlyCountries[0]),r.separateDialCode&&(r.nationalMode=!1),r.allowDropdown&&!r.showFlags&&!r.separateDialCode&&(r.nationalMode=!1),r.useFullscreenPopup&&!r.dropdownContainer&&(r.dropdownContainer=document.body),r.i18n={...tt,...r.i18n}};var T=r=>r.replace(/\D/g,""),U=(r="")=>r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var it=(r,t)=>{let e=U(t),i=[],s=[],n=[],o=[],l=[],a=[];for(let c of r)c.iso2===e?i.push(c):c.normalisedName.startsWith(e)?s.push(c):c.normalisedName.includes(e)?n.push(c):e===c.dialCode||e===c.dialCodePlus?o.push(c):c.dialCodePlus.includes(e)?l.push(c):c.initials.includes(e)&&a.push(c);let d=(c,m)=>c.priority-m.priority;return[...i.sort(d),...s.sort(d),...n.sort(d),...o.sort(d),...l.sort(d),...a.sort(d)]},st=(r,t)=>{let e=t.toLowerCase();for(let i of r)if(i.name.toLowerCase().startsWith(e))return i;return null};var k=r=>Object.keys(r).filter(t=>!!r[t]).join(" "),C=(r,t,e)=>{let i=document.createElement(r);return t&&Object.entries(t).forEach(([s,n])=>i.setAttribute(s,n)),e&&e.appendChild(i),i};var nt=()=>`
|
|
17
17
|
<svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${p.HIDDEN}="true">
|
|
18
18
|
<circle cx="11" cy="11" r="7" />
|
|
19
19
|
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
20
|
-
</svg>`,
|
|
20
|
+
</svg>`,ot=r=>{let t=`iti-${r}-clear-mask`;return`
|
|
21
21
|
<svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${p.HIDDEN}="true" focusable="false">
|
|
22
22
|
<mask id="${t}" maskUnits="userSpaceOnUse">
|
|
23
23
|
<rect width="16" height="16" fill="white" />
|
|
24
24
|
<path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
|
|
25
25
|
</mask>
|
|
26
26
|
<circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${t})" />
|
|
27
|
-
</svg>`},
|
|
27
|
+
</svg>`},j=()=>`
|
|
28
28
|
<svg width="256" height="256" viewBox="0 0 512 512" class="iti__globe-svg">
|
|
29
29
|
<path d="M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"/>
|
|
30
30
|
<path d="m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"/>
|
|
31
|
-
</svg>`;var P=class{constructor(t,e,i){this.highlightedItem=null;this.selectedItem=null;t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.a=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.o=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this.telInput.classList.add("iti__tel-input");let e=this._au();this._av(e),e.appendChild(this.telInput),this._ay(),this._az(e)}_au(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,o=k({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i}),n=C("div",{class:o});return this.isRTL&&n.setAttribute("dir","ltr"),this.telInput.before(n),n}_av(t){let{allowDropdown:e,separateDialCode:i,showFlags:s}=this.options;if(e||s||i){this.countryContainer=C("div",{class:`iti__country-container ${h.V_HIDE}`},t),e?(this.selectedCountry=C("button",{type:"button",class:"iti__selected-country",[p.EXPANDED]:"false",[p.LABEL]:this.options.i18n.noCountrySelected,[p.HASPOPUP]:"dialog",[p.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=C("div",{class:"iti__selected-country"},this.countryContainer);let o=C("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=C("div",{class:h.FLAG},o),e&&(this.dropdownArrow=C("div",{class:"iti__arrow",[p.HIDDEN]:"true"},o)),i&&(this.selectedDialCode=C("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._aw()}}_aw(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:o,containerClass:n}=this.options,l=t?"":"iti--flexible-dropdown-width";if(this.dropdownContent=C("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${h.HIDE} ${l}`,role:"dialog",[p.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._ax(),this.countryList=C("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[p.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._ba(),i&&this.updateSearchResultsA11yText(),o){let a=k({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[n]:!!n});this.dropdown=C("div",{class:a}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_ax(){let{i18n:t}=this.options,e=C("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=C("span",{class:"iti__search-icon",[p.HIDDEN]:"true"},e),this.searchIcon.innerHTML=st(),this.searchInput=C("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[p.EXPANDED]:"true",[p.LABEL]:t.searchPlaceholder,[p.CONTROLS]:`iti-${this.id}__country-listbox`,[p.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.k=C("button",{type:"button",class:`iti__search-clear ${h.HIDE}`,[p.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.k.innerHTML=nt(this.id),this.l=C("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=C("div",{class:`iti__no-results ${h.HIDE}`,[p.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.searchEmptyState}_ay(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(h.V_HIDE))}_az(t){let{hiddenInput:e}=this.options;if(e){let i=this.telInput.getAttribute("name")||"",s=e(i);if(s.phone){let o=this.telInput.form?.querySelector(`input[name="${s.phone}"]`);o?this.hiddenInput=o:(this.hiddenInput=C("input",{type:"hidden",name:s.phone}),t.appendChild(this.hiddenInput))}if(s.country){let o=this.telInput.form?.querySelector(`input[name="${s.country}"]`);o?this.m=o:(this.m=C("input",{type:"hidden",name:s.country}),t.appendChild(this.m))}}}_ba(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=k({[h.COUNTRY_ITEM]:!0}),o=C("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[p.SELECTED]:"false"});o.dataset.dialCode=i.dialCode,o.dataset.countryCode=i.iso2,i.nodeById[this.id]=o,this.options.showFlags&&C("div",{class:`${h.FLAG} iti__${i.iso2}`},o);let n=C("span",{class:"iti__country-name"},o);n.textContent=i.name;let l=C("span",{class:"iti__dial-code"},o);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(o)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?x.SANE_SELECTED_WITH_DIAL_WIDTH:x.SANE_SELECTED_NO_DIAL_WIDTH,i=(this.selectedCountry.offsetWidth||this._bb()||t)+x.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${i}px`}}_bb(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch{t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let o=s.offsetWidth;return t.removeChild(e),o}return 0}updateSearchResultsA11yText(){let{i18n:t}=this.options,e=this.countryList.childElementCount;this.l.textContent=t.searchSummaryAria(e)}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,o=e.getBoundingClientRect().top+i,n=o+s,l=t.offsetHeight,a=t.getBoundingClientRect().top+i,d=a+l,c=a-o+e.scrollTop;if(a<o)e.scrollTop=c;else if(d>n){let m=s-l;e.scrollTop=c-m}}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(h.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(h.HIGHLIGHT),this.options.countrySearch)){let s=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(p.ACTIVE_DESCENDANT,s)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(p.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(p.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let s=i.nodeById[this.id];s&&(this.countryList.appendChild(s),e&&(this.highlightListItem(s,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(h.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(h.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.o);let t=this.telInput.parentNode;t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.k=null,this.searchNoResults=null,this.l=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.m=null,this.highlightedItem=null,this.selectedItem=null;for(let e of this.countries)delete e.nodeById[this.id];this.countries=null}};var rt=r=>{let{onlyCountries:t,excludeCountries:e}=r;if(t.length){let i=t.map(s=>s.toLowerCase());return w.filter(s=>i.includes(s.iso2))}else if(e.length){let i=e.map(s=>s.toLowerCase());return w.filter(s=>!i.includes(s.iso2))}return w},lt=(r,t)=>{let{countryNameLocale:e,i18n:i}=t,o=typeof Intl<"u"&&typeof Intl.DisplayNames=="function"?new Intl.DisplayNames(e,{type:"region"}):null;for(let n of r)n.name=i[n.iso2]||o?.of(n.iso2.toUpperCase())},at=r=>{let t=new Set,e=0,i={},s=(n,l)=>{if(!n||!l)return;l.length>e&&(e=l.length),i.hasOwnProperty(l)||(i[l]=[]);let a=i[l];a.includes(n)||a.push(n)},o=[...r].sort((n,l)=>n.priority-l.priority);for(let n of o){t.has(n.dialCode)||t.add(n.dialCode);for(let l=1;l<n.dialCode.length;l++){let a=n.dialCode.substring(0,l);s(n.iso2,a)}if(s(n.iso2,n.dialCode),n.areaCodes){let l=i[n.dialCode][0];for(let a of n.areaCodes){for(let d=1;d<a.length;d++){let c=a.substring(0,d),m=n.dialCode+c;s(l,m),s(n.iso2,m)}s(n.iso2,n.dialCode+a)}}}return{dialCodes:t,dialCodeMaxLen:e,dialCodeToIso2Map:i}},ut=(r,t)=>{t.countryOrder&&(t.countryOrder=t.countryOrder.map(e=>e.toLowerCase())),r.sort((e,i)=>{let{countryOrder:s}=t;if(s){let o=s.indexOf(e.iso2),n=s.indexOf(i.iso2),l=o>-1,a=n>-1;if(l||a)return l&&a?o-n:l?-1:1}return e.name.localeCompare(i.name)})},dt=r=>{for(let t of r)t.normalisedName=U(t.name),t.initials=t.normalisedName.split(/[^a-z]/).map(e=>e[0]).join(""),t.dialCodePlus=`+${t.dialCode}`};var j=(r,t,e,i)=>{let s=r;if(e&&t){let o=`+${i.dialCode}`,n=s[o.length]===" "||s[o.length]==="-"?o.length+1:o.length;s=s.substring(n)}return s},ct=(r,t,e,i,s)=>{let o=e?e.formatNumberAsYouType(r,i.iso2):r,{dialCode:n}=i;return s&&t.charAt(0)!=="+"&&o.includes(`+${n}`)?(o.split(`+${n}`)[1]||"").trim():o};var ht=(r,t,e,i)=>{if(e===0&&!i)return 0;let s=0;for(let o=0;o<t.length;o++){if(/[+0-9]/.test(t[o])&&s++,s===r&&!i)return o+1;if(i&&s===r+1)return o}return t.length};var Lt=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],z=r=>{let t=T(r);if(t.startsWith(M.NANP)&&t.length>=4){let e=t.substring(1,4);return Lt.includes(e)}return!1};var vt=0,Nt=new Set(w.map(r=>r.iso2)),X=r=>Nt.has(r),B=class r{constructor(t,e={}){this.id=vt++,this.options={...Y,...e},tt(this.options),this.ui=new P(t,this.options,this.id),this.i=r._b(),this.promise=this._c(),this.countries=rt(this.options);let{dialCodes:i,dialCodeMaxLen:s,dialCodeToIso2Map:o}=at(this.countries);this.dialCodes=i,this.dialCodeMaxLen=s,this.dialCodeToIso2Map=o,this.j=new Map(this.countries.map(n=>[n.iso2,n])),this._init()}static _b(){return typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),this.userNumeralSet==="ascii")return t;let e=this.userNumeralSet==="arabic-indic"?1632:1776;return t.replace(/[0-9]/g,i=>String.fromCharCode(e+Number(i)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),this.userNumeralSet==="ascii")return t;let e=this.userNumeralSet==="arabic-indic"?1632:1776,i=this.userNumeralSet==="arabic-indic"?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,s=>String.fromCharCode(48+(s.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_c(){let t=new Promise((i,s)=>{this.b=i,this.c=s}),e=new Promise((i,s)=>{this.d=i,this.e=s});return Promise.all([t,e])}_init(){this.selectedCountryData={},this.g=new AbortController,this._a(),this.ui.generateMarkup(this.countries),this._d(),this._e(),this._h()}_a(){lt(this.countries,this.options),ut(this.countries,this.options),dt(this.countries)}_d(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),n=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._ao(n),a=z(n),{initialCountry:d,geoIpLookup:c}=this.options,m=d===R.AUTO&&c;if(l&&!a)this._ai(n);else if(!m||t){let I=d?d.toLowerCase():"";X(I)?this._aj(I):l&&a?this._aj(Z.ISO2):this._aj("")}n&&this._ah(n)}_e(){this._j(),this.options.allowDropdown&&this._g(),(this.ui.hiddenInput||this.ui.m)&&this.ui.telInput.form&&this._f()}_f(){let t=()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.m&&(this.ui.m.value=this.selectedCountryData.iso2||"")};this.ui.telInput.form?.addEventListener("submit",t,{signal:this.g.signal})}_g(){let t=this.g.signal,e=n=>{this.ui.dropdownContent.classList.contains(h.HIDE)?this.ui.telInput.focus():n.preventDefault()},i=this.ui.telInput.closest("label");i&&i.addEventListener("click",e,{signal:t});let s=()=>{this.ui.dropdownContent.classList.contains(h.HIDE)&&!this.ui.telInput.disabled&&!this.ui.telInput.readOnly&&this._l()};this.ui.selectedCountry.addEventListener("click",s,{signal:t});let o=n=>{this.ui.dropdownContent.classList.contains(h.HIDE)&&[f.ARROW_UP,f.ARROW_DOWN,f.SPACE,f.ENTER].includes(n.key)&&(n.preventDefault(),n.stopPropagation(),this._l()),n.key===f.TAB&&this._am()};this.ui.countryContainer.addEventListener("keydown",o,{signal:t})}_h(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!u.utils){let o=()=>{u.attachUtils(t)?.catch(()=>{})};if(u.documentReady())o();else{let n=()=>{o()};window.addEventListener("load",n,{signal:this.g.signal})}}else this.d();e===R.AUTO&&i&&!this.selectedCountryData.iso2?this._i():this.b()}_i(){u.autoCountry?this.handleAutoCountry():u.startedLoadingAutoCountry||(u.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();X(e)?(u.autoCountry=e,setTimeout(()=>O("handleAutoCountry"))):(this._d(!0),O("rejectAutoCountryPromise"))},()=>{this._d(!0),O("rejectAutoCountryPromise")}))}_m(){this._l(),this.ui.searchInput.value="+",this._ae("")}_j(){this._p(),this._n(),this._o()}_p(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:o}=this.options,n=!1;N.ALPHA_UNICODE.test(this._getTelInputValue())&&(n=!0);let l=a=>{let d=this._getTelInputValue();if(this.i&&a?.data==="+"&&i&&s&&o){let g=this.ui.telInput.selectionStart||0,E=d.substring(0,g-1),_=d.substring(g);this._setTelInputValue(E+_),this._m();return}this._ai(d)&&this._ar();let c=a?.data&&N.NON_PLUS_NUMERIC.test(a.data),m=a?.inputType===V.PASTE&&d;c||m&&!t?n=!0:N.NON_PLUS_NUMERIC.test(d)||(n=!1);let I=a?.detail&&a.detail.isSetNumber,D=this.userNumeralSet==="ascii";if(e&&!n&&!I&&D){let g=this.ui.telInput.selectionStart||0,_=d.substring(0,g).replace(N.NON_PLUS_NUMERIC_GLOBAL,"").length,L=a?.inputType===V.DELETE_FWD,y=this._ap(),v=ct(y,d,u.utils,this.selectedCountryData,i),b=ht(_,v,g,L);this._setTelInputValue(v),this.ui.telInput.setSelectionRange(b,b)}if(i&&d.startsWith("+")&&this.selectedCountryData.dialCode){let g=j(d,!0,i,this.selectedCountryData);this._setTelInputValue(g)}};this.ui.telInput.addEventListener("input",l,{signal:this.g.signal})}_n(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;if(t||e){let o=n=>{if(n.key&&n.key.length===1&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(e&&i&&s&&n.key==="+"){n.preventDefault(),this._m();return}if(t){let l=this._getTelInputValue(),d=!l.startsWith("+")&&this.ui.telInput.selectionStart===0&&n.key==="+",c=this._normaliseNumerals(n.key),m=/^[0-9]$/.test(c),I=e?m:d||m,D=this.ui.telInput,g=D.selectionStart,E=D.selectionEnd,_=l.slice(0,g),L=l.slice(E),y=_+n.key+L,v=this._ap(y),b=u.utils.getCoreNumber(v,this.selectedCountryData.iso2),W=this.n&&b.length>this.n,pt=this._s(v)!==null;(!I||W&&!pt&&!d)&&n.preventDefault()}}};this.ui.telInput.addEventListener("keydown",o,{signal:this.g.signal})}}_o(){if(this.options.strictMode){let t=e=>{e.preventDefault();let i=this.ui.telInput,s=i.selectionStart,o=i.selectionEnd,n=this._getTelInputValue(),l=n.slice(0,s),a=n.slice(o),d=this.selectedCountryData.iso2,c=e.clipboardData.getData("text"),m=this._normaliseNumerals(c),I=s===0&&o>0,D=!n.startsWith("+")||I,g=m.replace(N.NON_PLUS_NUMERIC_GLOBAL,""),E=g.startsWith("+"),_=g.replace(/\+/g,""),L=E&&D?`+${_}`:_,y=l+L+a;if(y.length>5){let b=u.utils.getCoreNumber(y,d);for(;b.length===0&&y.length>0;)y=y.slice(0,-1),b=u.utils.getCoreNumber(y,d);if(!b)return;if(this.n&&b.length>this.n)if(i.selectionEnd===n.length){let W=b.length-this.n;y=y.slice(0,y.length-W)}else return}this._setTelInputValue(y);let v=s+L.length;i.setSelectionRange(v,v),i.dispatchEvent(new InputEvent("input",{bubbles:!0}))};this.ui.telInput.addEventListener("paste",t,{signal:this.g.signal})}}_k(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_as(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_l(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.h=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(h.HIDE),this.ui.selectedCountry.setAttribute(p.EXPANDED,"true"),this._x(),e){let i=this.ui.countryList.firstElementChild;i&&(this.ui.highlightListItem(i,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._y(),this.ui.dropdownArrow.classList.add(h.ARROW_UP),this._as(A.OPEN_COUNTRY_DROPDOWN)}_x(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;if(this.options.dropdownContainer){this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`;let i=()=>this._am();window.addEventListener("scroll",i,{signal:this.h.signal})}}}_y(){let t=this.h.signal;this._z(t),this._aa(t),this._ab(t),this._ac(t),this.options.countrySearch&&this._ad(t)}_z(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.ui.highlightListItem(s,!1)};this.ui.countryList.addEventListener("mouseover",e,{signal:t})}_aa(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this._al(s)};this.ui.countryList.addEventListener("click",e,{signal:t})}_ab(t){let e=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this._am()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_ac(t){let e="",i=null,s=o=>{[f.ARROW_UP,f.ARROW_DOWN,f.ENTER,f.ESC].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),o.key===f.ARROW_UP||o.key===f.ARROW_DOWN?this._af(o.key):o.key===f.ENTER?this._ag():o.key===f.ESC&&(this._am(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&N.HIDDEN_SEARCH_CHAR.test(o.key)&&(o.stopPropagation(),i&&clearTimeout(i),e+=o.key.toLowerCase(),this._q(e),i=setTimeout(()=>{e=""},Q.HIDDEN_SEARCH_RESET_MS))};document.addEventListener("keydown",s,{signal:t})}_ad(t){let e=()=>{let n=this.ui.searchInput.value.trim();this._ae(n),this.ui.searchInput.value?this.ui.k.classList.remove(h.HIDE):this.ui.k.classList.add(h.HIDE)},i=null,s=()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)};this.ui.searchInput.addEventListener("input",s,{signal:t});let o=()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()};this.ui.k.addEventListener("click",o,{signal:t})}_q(t){let e=it(this.countries,t);if(e){let i=e.nodeById[this.id];this.ui.highlightListItem(i,!1),this.ui.scrollTo(i)}}_ae(t){let e;t===""?e=this.countries:e=et(this.countries,t),this.ui.filterCountries(e)}_af(t){let e=t===f.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===f.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_ag(){this.ui.highlightedItem&&this._al(this.ui.highlightedItem)}_ah(t){let e=t;if(this.options.formatOnDisplay&&u.utils&&this.selectedCountryData){let i=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:s,INTERNATIONAL:o}=u.utils.numberFormat,n=i?s:o;e=u.utils.formatNumber(e,this.selectedCountryData.iso2,n)}e=this._aq(e),this._setTelInputValue(e)}_ai(t){let e=this._s(t);return e!==null?this._aj(e):!1}_r(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let n=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${n}`}_s(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,o=this.selectedCountryData.dialCode;i=this._r(i);let n=this._ao(i,!0),l=T(i);if(n){let a=T(n),d=this.dialCodeToIso2Map[a];if(d.length===1)return d[0]===s?null:d[0];if(!s&&this.f&&d.includes(this.f))return this.f;if(o===M.NANP&&z(l))return null;let{areaCodes:m,priority:I}=this.selectedCountryData;if(m){let L=m.map(y=>`${o}${y}`);for(let y of L)if(l.startsWith(y))return null}let g=m&&!(I===0)&&l.length>a.length,E=s&&d.includes(s)&&!g,_=s===d[0];if(!E&&!_)return d[0]}else if(i.startsWith("+")&&l.length){let a=this.selectedCountryData.dialCode||"";return a&&a.startsWith(l)?null:""}else if((!i||i==="+")&&!s)return this.f;return null}_aj(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:o}=this.options,n=this.selectedCountryData.iso2||"";if(o&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.j.get(t):{},this.selectedCountryData.iso2&&(this.f=this.selectedCountryData.iso2),this.ui.selectedCountry){let l=t&&i?`${h.FLAG} iti__${t}`:`${h.FLAG} ${h.GLOBE}`,a,d,c;if(t){let{name:m,dialCode:I}=this.selectedCountryData;d=m,a=s.selectedCountryAriaLabel.replace("${countryName}",m).replace("${dialCode}",`+${I}`),c=""}else d=s.noCountrySelected,a=s.noCountrySelected,c=ot();this.ui.selectedCountryInner.className=l,this.ui.selectedCountry.setAttribute("title",d),this.ui.selectedCountry.setAttribute(p.LABEL,a),this.ui.selectedCountryInner.innerHTML=c}if(e){let l=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=l,this.ui.updateInputPadding()}return this._ak(),this._t(),n!==t}_t(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&u.utils)if(s){let o=u.utils.numberType[e],n=u.utils.getExampleNumber(s,!1,o,!0),l=n;for(;u.utils.isPossibleNumber(n,s,i);)l=n,n+="0";let a=u.utils.getCoreNumber(l,s);this.n=a.length,s==="by"&&(this.n=a.length+1)}else this.n=null}_ak(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,o=t===S.AGGRESSIVE||!this.ui.a&&t===S.POLITE;if(u.utils&&o){let n=u.utils.numberType[e],l=this.selectedCountryData.iso2?u.utils.getExampleNumber(this.selectedCountryData.iso2,i,n):"";l=this._aq(l),typeof s=="function"&&(l=s(l,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",l)}}_al(t){let e=t.dataset[K.COUNTRY_CODE],i=this._aj(e);this._am();let s=t.dataset[K.DIAL_CODE];if(this._an(s),this.options.formatOnDisplay){let o=this._getTelInputValue();this._ah(o)}this.ui.telInput.focus(),i&&this._ar()}_am(){this.ui.dropdownContent.classList.contains(h.HIDE)||(this.ui.dropdownContent.classList.add(h.HIDE),this.ui.selectedCountry.setAttribute(p.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(p.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(h.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(h.ARROW_UP),this.h.abort(),this.h=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._as(A.CLOSE_COUNTRY_DROPDOWN))}_an(t){let e=this._getTelInputValue(),i=`+${t}`,s;if(e.startsWith("+")){let o=this._ao(e);o?s=e.replace(o,i):s=i,this._setTelInputValue(s)}}_ao(t,e){let i="";if(t.startsWith("+")){let s="",o=!1;for(let n=0;n<t.length;n++){let l=t.charAt(n);if(/[0-9]/.test(l)){if(s+=l,!!!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,n+1),o=!0,!e)break}else e&&o&&(i=t.substring(0,n+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_ap(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,s,o=T(e);return this.options.separateDialCode&&!e.startsWith("+")&&i&&o?s=`+${i}`:s="",s+e}_aq(t){let e=!!this._ao(t),i=j(t,e,this.options.separateDialCode,this.selectedCountryData);return this._k(i)}_ar(){this._as(A.COUNTRY_CHANGE)}handleAutoCountry(){this.options.initialCountry===R.AUTO&&u.autoCountry&&(this.f=u.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(h.GLOBE)||this.setCountry(this.f),this.b())}handleUtils(){if(u.utils){let t=this._getTelInputValue();t&&this._ah(t),this.selectedCountryData.iso2&&(this._ak(),this._t())}this.d()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._am(),this.g.abort(),this.g=null,this.ui.destroy(),u.instances instanceof Map?u.instances.delete(this.id):delete u.instances[this.id])}getExtension(){return u.utils?u.utils.getExtension(this._ap(),this.selectedCountryData.iso2):""}getNumber(t){if(u.utils){let{iso2:e}=this.selectedCountryData,i=this._ap(),s=u.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return u.utils?u.utils.getNumberType(this._ap(),this.selectedCountryData.iso2):$.UNKNOWN_NUMBER_TYPE}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(u.utils){let{iso2:t}=this.selectedCountryData;return u.utils.getValidationError(this._ap(),t)}return $.UNKNOWN_VALIDATION_ERROR}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===H.DIAL_CODE&&u.utils){let i=this._ap(),s=u.utils.getCoreNumber(i,e);if(s[0]===H.MOBILE_PREFIX&&s.length!==H.MOBILE_CORE_LENGTH)return!1}return this._v(!1)}isValidNumberPrecise(){return this._v(!0)}_u(t){return u.utils?u.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}_v(t){if(!u.utils)return null;if(!this.selectedCountryData.iso2)return!1;let{allowNumberExtensions:e,allowPhonewords:i}=this.options,s=a=>t?this._w(a):this._u(a),o=this._ap();if(!s(o))return!1;if(o.search(N.ALPHA_UNICODE)>-1){let a=this.selectedCountryData.iso2;return u.utils.getExtension(o,a)?e:i}return!0}_w(t){return u.utils?u.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!X(e))throw new Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._aj(e),this._an(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let o=this._getTelInputValue();this._ah(o)}this._ar()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._ai(e);this._ah(e),i&&this._ar(),this._as(A.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._ak()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},Dt=r=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof r=="function")try{t=Promise.resolve(r())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof r}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,O("handleUtils"),!0}).catch(e=>{throw O("rejectUtilsScriptPromise",e),e})}return null},O=(r,...t)=>{Object.values(u.instances).forEach(e=>{let i=e[r];typeof i=="function"&&i.apply(e,t)})},u=Object.assign((r,t)=>{let e=new B(r,t);return u.instances[e.id]=e,r.iti=e,e},{defaults:Y,documentReady:()=>document.readyState==="complete",getCountryData:()=>w,getInstance:r=>{let t=r.dataset.intlTelInputId;return t?u.instances[t]:null},instances:{},attachUtils:Dt,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"26.0.1"}),wt=u;return It(Tt);})();
|
|
31
|
+
</svg>`;var P=class{constructor(t,e,i){this.highlightedItem=null;this.selectedItem=null;t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.a=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.o=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this.telInput.classList.add("iti__tel-input");let e=this._au();this._av(e),e.appendChild(this.telInput),this._ay(),this._az(e)}_au(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,n=k({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i}),o=C("div",{class:n});return this.isRTL&&o.setAttribute("dir","ltr"),this.telInput.before(o),o}_av(t){let{allowDropdown:e,separateDialCode:i,showFlags:s}=this.options;if(e||s||i){this.countryContainer=C("div",{class:`iti__country-container ${h.V_HIDE}`},t),e?(this.selectedCountry=C("button",{type:"button",class:"iti__selected-country",[p.EXPANDED]:"false",[p.LABEL]:this.options.i18n.noCountrySelected,[p.HASPOPUP]:"dialog",[p.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=C("div",{class:"iti__selected-country"},this.countryContainer);let n=C("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=C("div",{class:h.FLAG},n),e&&(this.dropdownArrow=C("div",{class:"iti__arrow",[p.HIDDEN]:"true"},n)),i&&(this.selectedDialCode=C("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._aw()}}_aw(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:n,containerClass:o}=this.options,l=t?"":"iti--flexible-dropdown-width";if(this.dropdownContent=C("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${h.HIDE} ${l}`,role:"dialog",[p.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._ax(),this.countryList=C("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[p.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._ba(),i&&this.updateSearchResultsA11yText(),n){let a=k({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[o]:!!o});this.dropdown=C("div",{class:a}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_ax(){let{i18n:t}=this.options,e=C("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=C("span",{class:"iti__search-icon",[p.HIDDEN]:"true"},e),this.searchIcon.innerHTML=nt(),this.searchInput=C("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[p.EXPANDED]:"true",[p.LABEL]:t.searchPlaceholder,[p.CONTROLS]:`iti-${this.id}__country-listbox`,[p.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.k=C("button",{type:"button",class:`iti__search-clear ${h.HIDE}`,[p.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.k.innerHTML=ot(this.id),this.l=C("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=C("div",{class:`iti__no-results ${h.HIDE}`,[p.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.searchEmptyState}_ay(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(h.V_HIDE))}_az(t){let{hiddenInput:e}=this.options;if(e){let i=this.telInput.getAttribute("name")||"",s=e(i);if(s.phone){let n=this.telInput.form?.querySelector(`input[name="${s.phone}"]`);n?this.hiddenInput=n:(this.hiddenInput=C("input",{type:"hidden",name:s.phone}),t.appendChild(this.hiddenInput))}if(s.country){let n=this.telInput.form?.querySelector(`input[name="${s.country}"]`);n?this.m=n:(this.m=C("input",{type:"hidden",name:s.country}),t.appendChild(this.m))}}}_ba(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=k({[h.COUNTRY_ITEM]:!0}),n=C("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[p.SELECTED]:"false"});n.dataset.dialCode=i.dialCode,n.dataset.countryCode=i.iso2,i.nodeById[this.id]=n,this.options.showFlags&&C("div",{class:`${h.FLAG} iti__${i.iso2}`},n);let o=C("span",{class:"iti__country-name"},n);o.textContent=i.name;let l=C("span",{class:"iti__dial-code"},n);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(n)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?x.SANE_SELECTED_WITH_DIAL_WIDTH:x.SANE_SELECTED_NO_DIAL_WIDTH,i=(this.selectedCountry.offsetWidth||this._bb()||t)+x.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${i}px`}}_bb(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch{t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let n=s.offsetWidth;return t.removeChild(e),n}return 0}updateSearchResultsA11yText(){let{i18n:t}=this.options,e=this.countryList.childElementCount;this.l.textContent=t.searchSummaryAria(e)}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,n=e.getBoundingClientRect().top+i,o=n+s,l=t.offsetHeight,a=t.getBoundingClientRect().top+i,d=a+l,c=a-n+e.scrollTop;if(a<n)e.scrollTop=c;else if(d>o){let m=s-l;e.scrollTop=c-m}}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(h.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(h.HIGHLIGHT),this.options.countrySearch)){let s=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(p.ACTIVE_DESCENDANT,s)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(p.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(p.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let s=i.nodeById[this.id];s&&(this.countryList.appendChild(s),e&&(this.highlightListItem(s,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(h.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(h.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.o);let t=this.telInput.parentNode;t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.k=null,this.searchNoResults=null,this.l=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.m=null,this.highlightedItem=null,this.selectedItem=null;for(let e of this.countries)delete e.nodeById[this.id];this.countries=null}};var rt=r=>{let{onlyCountries:t,excludeCountries:e}=r;if(t.length){let i=t.map(s=>s.toLowerCase());return w.filter(s=>i.includes(s.iso2))}else if(e.length){let i=e.map(s=>s.toLowerCase());return w.filter(s=>!i.includes(s.iso2))}return w},lt=(r,t)=>{let{countryNameLocale:e,i18n:i}=t,s;try{typeof Intl<"u"&&typeof Intl.DisplayNames=="function"?s=new Intl.DisplayNames(e,{type:"region"}):s=null}catch(n){console.error(n),s=null}for(let n of r)n.name=i[n.iso2]||s?.of(n.iso2.toUpperCase())||""},at=r=>{let t=new Set,e=0,i={},s=(o,l)=>{if(!o||!l)return;l.length>e&&(e=l.length),i.hasOwnProperty(l)||(i[l]=[]);let a=i[l];a.includes(o)||a.push(o)},n=[...r].sort((o,l)=>o.priority-l.priority);for(let o of n){t.has(o.dialCode)||t.add(o.dialCode);for(let l=1;l<o.dialCode.length;l++){let a=o.dialCode.substring(0,l);s(o.iso2,a)}if(s(o.iso2,o.dialCode),o.areaCodes){let l=i[o.dialCode][0];for(let a of o.areaCodes){for(let d=1;d<a.length;d++){let c=a.substring(0,d),m=o.dialCode+c;s(l,m),s(o.iso2,m)}s(o.iso2,o.dialCode+a)}}}return{dialCodes:t,dialCodeMaxLen:e,dialCodeToIso2Map:i}},ut=(r,t)=>{t.countryOrder&&(t.countryOrder=t.countryOrder.map(e=>e.toLowerCase())),r.sort((e,i)=>{let{countryOrder:s}=t;if(s){let n=s.indexOf(e.iso2),o=s.indexOf(i.iso2),l=n>-1,a=o>-1;if(l||a)return l&&a?n-o:l?-1:1}return e.name.localeCompare(i.name)})},dt=r=>{for(let t of r)t.normalisedName=U(t.name),t.initials=t.normalisedName.split(/[^a-z]/).map(e=>e[0]).join(""),t.dialCodePlus=`+${t.dialCode}`};var z=(r,t,e,i)=>{let s=r;if(e&&t){let n=`+${i.dialCode}`,o=s[n.length]===" "||s[n.length]==="-"?n.length+1:n.length;s=s.substring(o)}return s},ct=(r,t,e,i,s)=>{let n=e?e.formatNumberAsYouType(r,i.iso2):r,{dialCode:o}=i;return s&&t.charAt(0)!=="+"&&n.includes(`+${o}`)?(n.split(`+${o}`)[1]||"").trim():n};var ht=(r,t,e,i)=>{if(e===0&&!i)return 0;let s=0;for(let n=0;n<t.length;n++){if(/[+0-9]/.test(t[n])&&s++,s===r&&!i)return n+1;if(i&&s===r+1)return n}return t.length};var Lt=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],X=r=>{let t=T(r);if(t.startsWith(M.NANP)&&t.length>=4){let e=t.substring(1,4);return Lt.includes(e)}return!1};var vt=0,Nt=new Set(w.map(r=>r.iso2)),q=r=>Nt.has(r),B=class r{constructor(t,e={}){this.id=vt++,this.options={...Y,...e},et(this.options),this.ui=new P(t,this.options,this.id),this.i=r._b(),this.promise=this._c(),this.countries=rt(this.options);let{dialCodes:i,dialCodeMaxLen:s,dialCodeToIso2Map:n}=at(this.countries);this.dialCodes=i,this.dialCodeMaxLen=s,this.dialCodeToIso2Map=n,this.j=new Map(this.countries.map(o=>[o.iso2,o])),this._init()}static _b(){return typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),this.userNumeralSet==="ascii")return t;let e=this.userNumeralSet==="arabic-indic"?1632:1776;return t.replace(/[0-9]/g,i=>String.fromCharCode(e+Number(i)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),this.userNumeralSet==="ascii")return t;let e=this.userNumeralSet==="arabic-indic"?1632:1776,i=this.userNumeralSet==="arabic-indic"?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,s=>String.fromCharCode(48+(s.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_c(){let t=new Promise((i,s)=>{this.b=i,this.c=s}),e=new Promise((i,s)=>{this.d=i,this.e=s});return Promise.all([t,e])}_init(){this.selectedCountryData={},this.g=new AbortController,this._a(),this.ui.generateMarkup(this.countries),this._d(),this._e(),this._h()}_a(){lt(this.countries,this.options),ut(this.countries,this.options),dt(this.countries)}_d(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),o=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._ao(o),a=X(o),{initialCountry:d,geoIpLookup:c}=this.options,m=d===R.AUTO&&c;if(l&&!a)this._ai(o);else if(!m||t){let I=d?d.toLowerCase():"";q(I)?this._aj(I):l&&a?this._aj(J.ISO2):this._aj("")}o&&this._ah(o)}_e(){this._j(),this.options.allowDropdown&&this._g(),(this.ui.hiddenInput||this.ui.m)&&this.ui.telInput.form&&this._f()}_f(){let t=()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.m&&(this.ui.m.value=this.selectedCountryData.iso2||"")};this.ui.telInput.form?.addEventListener("submit",t,{signal:this.g.signal})}_g(){let t=this.g.signal,e=o=>{this.ui.dropdownContent.classList.contains(h.HIDE)?this.ui.telInput.focus():o.preventDefault()},i=this.ui.telInput.closest("label");i&&i.addEventListener("click",e,{signal:t});let s=()=>{this.ui.dropdownContent.classList.contains(h.HIDE)&&!this.ui.telInput.disabled&&!this.ui.telInput.readOnly&&this._l()};this.ui.selectedCountry.addEventListener("click",s,{signal:t});let n=o=>{this.ui.dropdownContent.classList.contains(h.HIDE)&&[f.ARROW_UP,f.ARROW_DOWN,f.SPACE,f.ENTER].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),this._l()),o.key===f.TAB&&this._am()};this.ui.countryContainer.addEventListener("keydown",n,{signal:t})}_h(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!u.utils){let n=()=>{u.attachUtils(t)?.catch(()=>{})};if(u.documentReady())n();else{let o=()=>{n()};window.addEventListener("load",o,{signal:this.g.signal})}}else this.d();e===R.AUTO&&i&&!this.selectedCountryData.iso2?this._i():this.b()}_i(){u.autoCountry?this.handleAutoCountry():u.startedLoadingAutoCountry||(u.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();q(e)?(u.autoCountry=e,setTimeout(()=>O("handleAutoCountry"))):(this._d(!0),O("rejectAutoCountryPromise"))},()=>{this._d(!0),O("rejectAutoCountryPromise")}))}_m(){this._l(),this.ui.searchInput.value="+",this._ae("")}_j(){this._p(),this._n(),this._o()}_p(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:n}=this.options,o=!1;N.ALPHA_UNICODE.test(this._getTelInputValue())&&(o=!0);let l=a=>{let d=this._getTelInputValue();if(this.i&&a?.data==="+"&&i&&s&&n){let g=this.ui.telInput.selectionStart||0,E=d.substring(0,g-1),_=d.substring(g);this._setTelInputValue(E+_),this._m();return}this._ai(d)&&this._ar();let c=a?.data&&N.NON_PLUS_NUMERIC.test(a.data),m=a?.inputType===V.PASTE&&d;c||m&&!t?o=!0:N.NON_PLUS_NUMERIC.test(d)||(o=!1);let I=a?.detail&&a.detail.isSetNumber,D=this.userNumeralSet==="ascii";if(e&&!o&&!I&&D){let g=this.ui.telInput.selectionStart||0,_=d.substring(0,g).replace(N.NON_PLUS_NUMERIC_GLOBAL,"").length,L=a?.inputType===V.DELETE_FWD,y=this._ap(),v=ct(y,d,u.utils,this.selectedCountryData,i),b=ht(_,v,g,L);this._setTelInputValue(v),this.ui.telInput.setSelectionRange(b,b)}if(i&&d.startsWith("+")&&this.selectedCountryData.dialCode){let g=z(d,!0,i,this.selectedCountryData);this._setTelInputValue(g)}};this.ui.telInput.addEventListener("input",l,{signal:this.g.signal})}_n(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;if(t||e){let n=o=>{if(o.key&&o.key.length===1&&!o.altKey&&!o.ctrlKey&&!o.metaKey){if(e&&i&&s&&o.key==="+"){o.preventDefault(),this._m();return}if(t){let l=this._getTelInputValue(),d=!l.startsWith("+")&&this.ui.telInput.selectionStart===0&&o.key==="+",c=this._normaliseNumerals(o.key),m=/^[0-9]$/.test(c),I=e?m:d||m,D=this.ui.telInput,g=D.selectionStart,E=D.selectionEnd,_=l.slice(0,g),L=l.slice(E),y=_+o.key+L,v=this._ap(y),b=u.utils.getCoreNumber(v,this.selectedCountryData.iso2),W=this.n&&b.length>this.n,pt=this._s(v)!==null;(!I||W&&!pt&&!d)&&o.preventDefault()}}};this.ui.telInput.addEventListener("keydown",n,{signal:this.g.signal})}}_o(){if(this.options.strictMode){let t=e=>{e.preventDefault();let i=this.ui.telInput,s=i.selectionStart,n=i.selectionEnd,o=this._getTelInputValue(),l=o.slice(0,s),a=o.slice(n),d=this.selectedCountryData.iso2,c=e.clipboardData.getData("text"),m=this._normaliseNumerals(c),I=s===0&&n>0,D=!o.startsWith("+")||I,g=m.replace(N.NON_PLUS_NUMERIC_GLOBAL,""),E=g.startsWith("+"),_=g.replace(/\+/g,""),L=E&&D?`+${_}`:_,y=l+L+a;if(y.length>5){let b=u.utils.getCoreNumber(y,d);for(;b.length===0&&y.length>0;)y=y.slice(0,-1),b=u.utils.getCoreNumber(y,d);if(!b)return;if(this.n&&b.length>this.n)if(i.selectionEnd===o.length){let W=b.length-this.n;y=y.slice(0,y.length-W)}else return}this._setTelInputValue(y);let v=s+L.length;i.setSelectionRange(v,v),i.dispatchEvent(new InputEvent("input",{bubbles:!0}))};this.ui.telInput.addEventListener("paste",t,{signal:this.g.signal})}}_k(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_as(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_l(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.h=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(h.HIDE),this.ui.selectedCountry.setAttribute(p.EXPANDED,"true"),this._x(),e){let i=this.ui.countryList.firstElementChild;i&&(this.ui.highlightListItem(i,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._y(),this.ui.dropdownArrow.classList.add(h.ARROW_UP),this._as(A.OPEN_COUNTRY_DROPDOWN)}_x(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;if(this.options.dropdownContainer){this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`;let i=()=>this._am();window.addEventListener("scroll",i,{signal:this.h.signal})}}}_y(){let t=this.h.signal;this._z(t),this._aa(t),this._ab(t),this._ac(t),this.options.countrySearch&&this._ad(t)}_z(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.ui.highlightListItem(s,!1)};this.ui.countryList.addEventListener("mouseover",e,{signal:t})}_aa(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this._al(s)};this.ui.countryList.addEventListener("click",e,{signal:t})}_ab(t){let e=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this._am()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_ac(t){let e="",i=null,s=n=>{[f.ARROW_UP,f.ARROW_DOWN,f.ENTER,f.ESC].includes(n.key)&&(n.preventDefault(),n.stopPropagation(),n.key===f.ARROW_UP||n.key===f.ARROW_DOWN?this._af(n.key):n.key===f.ENTER?this._ag():n.key===f.ESC&&(this._am(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&N.HIDDEN_SEARCH_CHAR.test(n.key)&&(n.stopPropagation(),i&&clearTimeout(i),e+=n.key.toLowerCase(),this._q(e),i=setTimeout(()=>{e=""},Z.HIDDEN_SEARCH_RESET_MS))};document.addEventListener("keydown",s,{signal:t})}_ad(t){let e=()=>{let o=this.ui.searchInput.value.trim();this._ae(o),this.ui.searchInput.value?this.ui.k.classList.remove(h.HIDE):this.ui.k.classList.add(h.HIDE)},i=null,s=()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)};this.ui.searchInput.addEventListener("input",s,{signal:t});let n=()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()};this.ui.k.addEventListener("click",n,{signal:t})}_q(t){let e=st(this.countries,t);if(e){let i=e.nodeById[this.id];this.ui.highlightListItem(i,!1),this.ui.scrollTo(i)}}_ae(t){let e;t===""?e=this.countries:e=it(this.countries,t),this.ui.filterCountries(e)}_af(t){let e=t===f.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===f.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_ag(){this.ui.highlightedItem&&this._al(this.ui.highlightedItem)}_ah(t){let e=t;if(this.options.formatOnDisplay&&u.utils&&this.selectedCountryData){let i=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:s,INTERNATIONAL:n}=u.utils.numberFormat,o=i?s:n;e=u.utils.formatNumber(e,this.selectedCountryData.iso2,o)}e=this._aq(e),this._setTelInputValue(e)}_ai(t){let e=this._s(t);return e!==null?this._aj(e):!1}_r(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let o=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${o}`}_s(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,n=this.selectedCountryData.dialCode;i=this._r(i);let o=this._ao(i,!0),l=T(i);if(o){let a=T(o),d=this.dialCodeToIso2Map[a];if(d.length===1)return d[0]===s?null:d[0];if(!s&&this.f&&d.includes(this.f))return this.f;if(n===M.NANP&&X(l))return null;let{areaCodes:m,priority:I}=this.selectedCountryData;if(m){let L=m.map(y=>`${n}${y}`);for(let y of L)if(l.startsWith(y))return null}let g=m&&!(I===0)&&l.length>a.length,E=s&&d.includes(s)&&!g,_=s===d[0];if(!E&&!_)return d[0]}else if(i.startsWith("+")&&l.length){let a=this.selectedCountryData.dialCode||"";return a&&a.startsWith(l)?null:""}else if((!i||i==="+")&&!s)return this.f;return null}_aj(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:n}=this.options,o=this.selectedCountryData.iso2||"";if(n&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.j.get(t):{},this.selectedCountryData.iso2&&(this.f=this.selectedCountryData.iso2),this.ui.selectedCountry){let l=t&&i?`${h.FLAG} iti__${t}`:`${h.FLAG} ${h.GLOBE}`,a,d,c;if(t){let{name:m,dialCode:I}=this.selectedCountryData;d=m,a=s.selectedCountryAriaLabel.replace("${countryName}",m).replace("${dialCode}",`+${I}`),c=i?"":j()}else d=s.noCountrySelected,a=s.noCountrySelected,c=j();this.ui.selectedCountryInner.className=l,this.ui.selectedCountry.setAttribute("title",d),this.ui.selectedCountry.setAttribute(p.LABEL,a),this.ui.selectedCountryInner.innerHTML=c}if(e){let l=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=l,this.ui.updateInputPadding()}return this._ak(),this._t(),o!==t}_t(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&u.utils)if(s){let n=u.utils.numberType[e],o=u.utils.getExampleNumber(s,!1,n,!0),l=o;for(;u.utils.isPossibleNumber(o,s,i);)l=o,o+="0";let a=u.utils.getCoreNumber(l,s);this.n=a.length,s==="by"&&(this.n=a.length+1)}else this.n=null}_ak(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,n=t===S.AGGRESSIVE||!this.ui.a&&t===S.POLITE;if(u.utils&&n){let o=u.utils.numberType[e],l=this.selectedCountryData.iso2?u.utils.getExampleNumber(this.selectedCountryData.iso2,i,o):"";l=this._aq(l),typeof s=="function"&&(l=s(l,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",l)}}_al(t){let e=t.dataset[K.COUNTRY_CODE],i=this._aj(e);this._am();let s=t.dataset[K.DIAL_CODE];if(this._an(s),this.options.formatOnDisplay){let n=this._getTelInputValue();this._ah(n)}this.ui.telInput.focus(),i&&this._ar()}_am(){this.ui.dropdownContent.classList.contains(h.HIDE)||(this.ui.dropdownContent.classList.add(h.HIDE),this.ui.selectedCountry.setAttribute(p.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(p.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(h.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(h.ARROW_UP),this.h.abort(),this.h=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._as(A.CLOSE_COUNTRY_DROPDOWN))}_an(t){let e=this._getTelInputValue(),i=`+${t}`,s;if(e.startsWith("+")){let n=this._ao(e);n?s=e.replace(n,i):s=i,this._setTelInputValue(s)}}_ao(t,e){let i="";if(t.startsWith("+")){let s="",n=!1;for(let o=0;o<t.length;o++){let l=t.charAt(o);if(/[0-9]/.test(l)){if(s+=l,!!!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,o+1),n=!0,!e)break}else e&&n&&(i=t.substring(0,o+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_ap(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,s,n=T(e);return this.options.separateDialCode&&!e.startsWith("+")&&i&&n?s=`+${i}`:s="",s+e}_aq(t){let e=!!this._ao(t),i=z(t,e,this.options.separateDialCode,this.selectedCountryData);return this._k(i)}_ar(){this._as(A.COUNTRY_CHANGE)}handleAutoCountry(){this.options.initialCountry===R.AUTO&&u.autoCountry&&(this.f=u.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(h.GLOBE)||this.setCountry(this.f),this.b())}handleUtils(){if(u.utils){let t=this._getTelInputValue();t&&this._ah(t),this.selectedCountryData.iso2&&(this._ak(),this._t())}this.d()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._am(),this.g.abort(),this.g=null,this.ui.destroy(),u.instances instanceof Map?u.instances.delete(this.id):delete u.instances[this.id])}getExtension(){return u.utils?u.utils.getExtension(this._ap(),this.selectedCountryData.iso2):""}getNumber(t){if(u.utils){let{iso2:e}=this.selectedCountryData,i=this._ap(),s=u.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return u.utils?u.utils.getNumberType(this._ap(),this.selectedCountryData.iso2):$.UNKNOWN_NUMBER_TYPE}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(u.utils){let{iso2:t}=this.selectedCountryData;return u.utils.getValidationError(this._ap(),t)}return $.UNKNOWN_VALIDATION_ERROR}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===H.DIAL_CODE&&u.utils){let i=this._ap(),s=u.utils.getCoreNumber(i,e);if(s[0]===H.MOBILE_PREFIX&&s.length!==H.MOBILE_CORE_LENGTH)return!1}return this._v(!1)}isValidNumberPrecise(){return this._v(!0)}_u(t){return u.utils?u.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}_v(t){if(!u.utils)return null;if(!this.selectedCountryData.iso2)return!1;let{allowNumberExtensions:e,allowPhonewords:i}=this.options,s=a=>t?this._w(a):this._u(a),n=this._ap();if(!s(n))return!1;if(n.search(N.ALPHA_UNICODE)>-1){let a=this.selectedCountryData.iso2;return u.utils.getExtension(n,a)?e:i}return!0}_w(t){return u.utils?u.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.allowedNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!q(e))throw new Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._aj(e),this._an(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let n=this._getTelInputValue();this._ah(n)}this._ar()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._ai(e);this._ah(e),i&&this._ar(),this._as(A.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._ak()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},Dt=r=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof r=="function")try{t=Promise.resolve(r())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof r}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,O("handleUtils"),!0}).catch(e=>{throw O("rejectUtilsScriptPromise",e),e})}return null},O=(r,...t)=>{Object.values(u.instances).forEach(e=>{let i=e[r];typeof i=="function"&&i.apply(e,t)})},u=Object.assign((r,t)=>{let e=new B(r,t);return u.instances[e.id]=e,r.iti=e,e},{defaults:Y,documentReady:()=>document.readyState==="complete",getCountryData:()=>w,getInstance:r=>{let t=r.dataset.intlTelInputId;return t?u.instances[t]:null},instances:{},attachUtils:Dt,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"26.0.3"}),wt=u;return It(Tt);})();
|
|
32
32
|
|
|
33
33
|
// UMD
|
|
34
34
|
return factoryOutput.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v26.0.
|
|
2
|
+
* International Telephone Input v26.0.3
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -2493,12 +2493,22 @@ var factoryOutput = (() => {
|
|
|
2493
2493
|
};
|
|
2494
2494
|
var generateCountryNames = (countries, options) => {
|
|
2495
2495
|
const { countryNameLocale, i18n } = options;
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2496
|
+
let displayNames;
|
|
2497
|
+
try {
|
|
2498
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2499
|
+
if (hasDisplayNames) {
|
|
2500
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2501
|
+
type: "region"
|
|
2502
|
+
});
|
|
2503
|
+
} else {
|
|
2504
|
+
displayNames = null;
|
|
2505
|
+
}
|
|
2506
|
+
} catch (e) {
|
|
2507
|
+
console.error(e);
|
|
2508
|
+
displayNames = null;
|
|
2509
|
+
}
|
|
2500
2510
|
for (const c of countries) {
|
|
2501
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2511
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2502
2512
|
}
|
|
2503
2513
|
};
|
|
2504
2514
|
var processDialCodes = (countries) => {
|
|
@@ -3414,7 +3424,7 @@ var factoryOutput = (() => {
|
|
|
3414
3424
|
const { name, dialCode } = this.selectedCountryData;
|
|
3415
3425
|
title = name;
|
|
3416
3426
|
ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
|
|
3417
|
-
selectedCountryInner = "";
|
|
3427
|
+
selectedCountryInner = showFlags ? "" : buildGlobeIcon();
|
|
3418
3428
|
} else {
|
|
3419
3429
|
title = i18n.noCountrySelected;
|
|
3420
3430
|
ariaLabel = i18n.noCountrySelected;
|
|
@@ -3860,7 +3870,7 @@ var factoryOutput = (() => {
|
|
|
3860
3870
|
attachUtils,
|
|
3861
3871
|
startedLoadingUtilsScript: false,
|
|
3862
3872
|
startedLoadingAutoCountry: false,
|
|
3863
|
-
version: "26.0.
|
|
3873
|
+
version: "26.0.3"
|
|
3864
3874
|
}
|
|
3865
3875
|
);
|
|
3866
3876
|
var intl_tel_input_default = intlTelInput;
|