intl-tel-input 25.10.12 → 25.11.1
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 +62 -59
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +887 -688
- package/angular/build/IntlTelInputWithUtils.js +891 -692
- package/angular/build/types/intl-tel-input/data.d.ts +3 -3
- package/angular/build/types/intl-tel-input.d.ts +22 -70
- package/angular/build/types/modules/constants.d.ts +84 -0
- package/angular/build/types/modules/core/countrySearch.d.ts +17 -0
- package/angular/build/types/modules/core/icons.d.ts +7 -0
- package/angular/build/types/modules/core/options.d.ts +2 -1
- package/angular/build/types/modules/core/ui.d.ts +44 -0
- package/angular/build/types/modules/data/country-data.d.ts +5 -5
- package/angular/build/types/modules/format/caret.d.ts +1 -1
- package/angular/build/types/modules/format/formatting.d.ts +3 -3
- package/angular/build/types/modules/types/events.d.ts +9 -0
- package/angular/build/types/modules/types/public-api.d.ts +3 -0
- package/angular/build/types/modules/utils/dom.d.ts +5 -0
- package/build/js/data.js +8 -2
- package/build/js/data.min.js +2 -2
- package/build/js/intlTelInput.d.ts +214 -83
- package/build/js/intlTelInput.js +1034 -770
- package/build/js/intlTelInput.min.js +13 -13
- package/build/js/intlTelInputWithUtils.js +1038 -774
- package/build/js/intlTelInputWithUtils.min.js +13 -13
- package/build/js/utils.js +4 -4
- package/package.json +3 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +1033 -769
- package/react/build/IntlTelInput.d.ts +214 -83
- package/react/build/IntlTelInput.js +1033 -769
- package/react/build/IntlTelInputWithUtils.cjs +1037 -773
- package/react/build/IntlTelInputWithUtils.js +1037 -773
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +967 -739
- package/vue/build/IntlTelInputWithUtils.mjs +1279 -1051
|
@@ -10,9 +10,9 @@ export type Country = {
|
|
|
10
10
|
nodeById: {
|
|
11
11
|
[instanceId: number]: HTMLElement;
|
|
12
12
|
};
|
|
13
|
-
normalisedName
|
|
14
|
-
initials
|
|
15
|
-
dialCodePlus
|
|
13
|
+
normalisedName: string;
|
|
14
|
+
initials: string;
|
|
15
|
+
dialCodePlus: string;
|
|
16
16
|
};
|
|
17
17
|
declare const allCountries: Country[];
|
|
18
18
|
export default allCountries;
|
|
@@ -1,82 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { NumberType, SomeOptions, IntlTelInputInterface } from "./modules/types/public-api";
|
|
1
|
+
import { Iso2 } from "./intl-tel-input/data";
|
|
2
|
+
import type { NumberType, SomeOptions, IntlTelInputInterface, SelectedCountryData } from "./modules/types/public-api";
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLInputElement {
|
|
5
5
|
iti?: Iti;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export declare class Iti {
|
|
9
|
-
id: number;
|
|
10
|
-
promise: Promise<[unknown, unknown]>;
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
9
|
+
readonly id: number;
|
|
10
|
+
readonly promise: Promise<[unknown, unknown]>;
|
|
11
|
+
private readonly ui;
|
|
12
|
+
private readonly options;
|
|
13
|
+
private readonly isAndroid;
|
|
14
|
+
private readonly countries;
|
|
15
|
+
private readonly dialCodeMaxLen;
|
|
16
|
+
private readonly dialCodeToIso2Map;
|
|
17
|
+
private readonly dialCodes;
|
|
18
|
+
private readonly countryByIso2;
|
|
17
19
|
private selectedCountryData;
|
|
18
|
-
private countries;
|
|
19
|
-
private dialCodeMaxLen;
|
|
20
|
-
private dialCodeToIso2Map;
|
|
21
|
-
private dialCodes;
|
|
22
|
-
private countryByIso2;
|
|
23
|
-
private countryContainer;
|
|
24
|
-
private selectedCountry;
|
|
25
|
-
private selectedCountryInner;
|
|
26
|
-
private selectedDialCode;
|
|
27
|
-
private dropdownArrow;
|
|
28
|
-
private dropdownContent;
|
|
29
|
-
private searchInput;
|
|
30
|
-
private searchIcon;
|
|
31
|
-
private searchClearButton;
|
|
32
|
-
private searchNoResults;
|
|
33
|
-
private searchResultsA11yText;
|
|
34
|
-
private countryList;
|
|
35
|
-
private dropdown;
|
|
36
|
-
private hiddenInput;
|
|
37
|
-
private hiddenInputCountry;
|
|
38
20
|
private maxCoreNumberLength;
|
|
39
21
|
private defaultCountry;
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private _handleLabelClick;
|
|
43
|
-
private _handleClickSelectedCountry;
|
|
44
|
-
private _handleCountryContainerKeydown;
|
|
45
|
-
private _handleInputEvent;
|
|
46
|
-
private _handleKeydownEvent;
|
|
47
|
-
private _handlePasteEvent;
|
|
48
|
-
private _handleWindowScroll;
|
|
49
|
-
private _handleMouseoverCountryList;
|
|
50
|
-
private _handleClickCountryList;
|
|
51
|
-
private _handleClickOffToClose;
|
|
52
|
-
private _handleKeydownOnDropdown;
|
|
53
|
-
private _handleSearchChange;
|
|
54
|
-
private _handleSearchClear;
|
|
55
|
-
private _handlePageLoad;
|
|
56
|
-
private _doAttachUtils;
|
|
22
|
+
private abortController;
|
|
23
|
+
private dropdownAbortController;
|
|
57
24
|
private resolveAutoCountryPromise;
|
|
58
25
|
private rejectAutoCountryPromise;
|
|
59
26
|
private resolveUtilsScriptPromise;
|
|
60
27
|
private rejectUtilsScriptPromise;
|
|
61
|
-
/**
|
|
62
|
-
* Build a space-delimited class string from an object map of className -> truthy/falsey.
|
|
63
|
-
* Only keys with truthy values are included.
|
|
64
|
-
*/
|
|
65
|
-
private static _buildClassNames;
|
|
66
28
|
constructor(input: HTMLInputElement, customOptions?: SomeOptions);
|
|
67
|
-
private
|
|
29
|
+
private static _getIsAndroid;
|
|
68
30
|
private _createInitPromises;
|
|
69
31
|
_init(): void;
|
|
70
32
|
private _processCountryData;
|
|
71
|
-
private _generateMarkup;
|
|
72
|
-
private _prepareTelInput;
|
|
73
|
-
private _createWrapperAndInsert;
|
|
74
|
-
private _maybeBuildCountryContainer;
|
|
75
|
-
private _buildDropdownContent;
|
|
76
|
-
private _buildSearchUI;
|
|
77
|
-
private _maybeUpdateInputPaddingAndReveal;
|
|
78
|
-
private _maybeBuildHiddenInputs;
|
|
79
|
-
private _appendListItems;
|
|
80
33
|
private _setInitialState;
|
|
81
34
|
private _initListeners;
|
|
82
35
|
private _initHiddenInputListener;
|
|
@@ -93,25 +46,24 @@ export declare class Iti {
|
|
|
93
46
|
private _openDropdown;
|
|
94
47
|
private _setDropdownPosition;
|
|
95
48
|
private _bindDropdownListeners;
|
|
49
|
+
private _bindDropdownMouseoverListener;
|
|
50
|
+
private _bindDropdownCountryClickListener;
|
|
51
|
+
private _bindDropdownClickOffListener;
|
|
52
|
+
private _bindDropdownKeydownListener;
|
|
53
|
+
private _bindDropdownSearchListeners;
|
|
96
54
|
private _searchForCountry;
|
|
97
|
-
private
|
|
98
|
-
private _getMatchedCountries;
|
|
99
|
-
private _updateSearchResultsA11yText;
|
|
55
|
+
private _filterCountriesByQuery;
|
|
100
56
|
private _handleUpDownKey;
|
|
101
57
|
private _handleEnterKey;
|
|
102
58
|
private _updateValFromNumber;
|
|
103
59
|
private _updateCountryFromNumber;
|
|
104
60
|
private _ensureHasDialCode;
|
|
105
61
|
private _getNewCountryFromNumber;
|
|
106
|
-
private _highlightListItem;
|
|
107
62
|
private _setCountry;
|
|
108
|
-
private _updateInputPadding;
|
|
109
63
|
private _updateMaxLength;
|
|
110
|
-
private _getHiddenSelectedCountryWidth;
|
|
111
64
|
private _updatePlaceholder;
|
|
112
65
|
private _selectListItem;
|
|
113
66
|
private _closeDropdown;
|
|
114
|
-
private _scrollTo;
|
|
115
67
|
private _updateDialCode;
|
|
116
68
|
private _getDialCode;
|
|
117
69
|
private _getFullNumber;
|
|
@@ -123,7 +75,7 @@ export declare class Iti {
|
|
|
123
75
|
getExtension(): string;
|
|
124
76
|
getNumber(format?: number): string;
|
|
125
77
|
getNumberType(): number;
|
|
126
|
-
getSelectedCountryData():
|
|
78
|
+
getSelectedCountryData(): SelectedCountryData;
|
|
127
79
|
getValidationError(): number;
|
|
128
80
|
isValidNumber(): boolean | null;
|
|
129
81
|
isValidNumberPrecise(): boolean | null;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Iso2 } from "../intl-tel-input/data";
|
|
2
|
+
export declare const EVENTS: {
|
|
3
|
+
readonly OPEN_COUNTRY_DROPDOWN: "open:countrydropdown";
|
|
4
|
+
readonly CLOSE_COUNTRY_DROPDOWN: "close:countrydropdown";
|
|
5
|
+
readonly COUNTRY_CHANGE: "countrychange";
|
|
6
|
+
readonly INPUT: "input";
|
|
7
|
+
};
|
|
8
|
+
export declare const CLASSES: {
|
|
9
|
+
readonly HIDE: "iti__hide";
|
|
10
|
+
readonly V_HIDE: "iti__v-hide";
|
|
11
|
+
readonly ARROW_UP: "iti__arrow--up";
|
|
12
|
+
readonly GLOBE: "iti__globe";
|
|
13
|
+
readonly FLAG: "iti__flag";
|
|
14
|
+
readonly COUNTRY_ITEM: "iti__country";
|
|
15
|
+
readonly HIGHLIGHT: "iti__highlight";
|
|
16
|
+
};
|
|
17
|
+
export declare const KEYS: {
|
|
18
|
+
readonly ARROW_UP: "ArrowUp";
|
|
19
|
+
readonly ARROW_DOWN: "ArrowDown";
|
|
20
|
+
readonly SPACE: " ";
|
|
21
|
+
readonly ENTER: "Enter";
|
|
22
|
+
readonly ESC: "Escape";
|
|
23
|
+
readonly TAB: "Tab";
|
|
24
|
+
};
|
|
25
|
+
export declare const INPUT_TYPES: {
|
|
26
|
+
readonly PASTE: "insertFromPaste";
|
|
27
|
+
readonly DELETE_FWD: "deleteContentForward";
|
|
28
|
+
};
|
|
29
|
+
export declare const REGEX: {
|
|
30
|
+
readonly ALPHA_UNICODE: RegExp;
|
|
31
|
+
readonly NON_PLUS_NUMERIC: RegExp;
|
|
32
|
+
readonly NON_PLUS_NUMERIC_GLOBAL: RegExp;
|
|
33
|
+
readonly HIDDEN_SEARCH_CHAR: RegExp;
|
|
34
|
+
};
|
|
35
|
+
export declare const TIMINGS: {
|
|
36
|
+
readonly SEARCH_DEBOUNCE_MS: 100;
|
|
37
|
+
readonly HIDDEN_SEARCH_RESET_MS: 1000;
|
|
38
|
+
readonly NEXT_TICK: 0;
|
|
39
|
+
};
|
|
40
|
+
export declare const SENTINELS: {
|
|
41
|
+
readonly UNKNOWN_NUMBER_TYPE: -99;
|
|
42
|
+
readonly UNKNOWN_VALIDATION_ERROR: -99;
|
|
43
|
+
};
|
|
44
|
+
export declare const LAYOUT: {
|
|
45
|
+
readonly SANE_SELECTED_WITH_DIAL_WIDTH: 78;
|
|
46
|
+
readonly SANE_SELECTED_NO_DIAL_WIDTH: 42;
|
|
47
|
+
readonly INPUT_PADDING_EXTRA_LEFT: 6;
|
|
48
|
+
};
|
|
49
|
+
export declare const DIAL: {
|
|
50
|
+
readonly PLUS: "+";
|
|
51
|
+
readonly NANP: "1";
|
|
52
|
+
};
|
|
53
|
+
export declare const UK: {
|
|
54
|
+
readonly ISO2: Iso2;
|
|
55
|
+
readonly DIAL_CODE: "44";
|
|
56
|
+
readonly MOBILE_PREFIX: "7";
|
|
57
|
+
readonly MOBILE_CORE_LENGTH: 10;
|
|
58
|
+
};
|
|
59
|
+
export declare const US: {
|
|
60
|
+
ISO2: Iso2;
|
|
61
|
+
DIAL_CODE: string;
|
|
62
|
+
};
|
|
63
|
+
export declare const PLACEHOLDER_MODES: {
|
|
64
|
+
readonly AGGRESSIVE: "aggressive";
|
|
65
|
+
readonly POLITE: "polite";
|
|
66
|
+
};
|
|
67
|
+
export declare const INITIAL_COUNTRY: {
|
|
68
|
+
readonly AUTO: "auto";
|
|
69
|
+
};
|
|
70
|
+
export declare const DATA_KEYS: {
|
|
71
|
+
readonly COUNTRY_CODE: "countryCode";
|
|
72
|
+
readonly DIAL_CODE: "dialCode";
|
|
73
|
+
};
|
|
74
|
+
export declare const ARIA: {
|
|
75
|
+
readonly EXPANDED: "aria-expanded";
|
|
76
|
+
readonly LABEL: "aria-label";
|
|
77
|
+
readonly SELECTED: "aria-selected";
|
|
78
|
+
readonly ACTIVE_DESCENDANT: "aria-activedescendant";
|
|
79
|
+
readonly HASPOPUP: "aria-haspopup";
|
|
80
|
+
readonly CONTROLS: "aria-controls";
|
|
81
|
+
readonly HIDDEN: "aria-hidden";
|
|
82
|
+
readonly AUTOCOMPLETE: "aria-autocomplete";
|
|
83
|
+
readonly MODAL: "aria-modal";
|
|
84
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Country } from "../../intl-tel-input/data";
|
|
2
|
+
/**
|
|
3
|
+
* Country search: Given raw query, return ordered list of countries by priority buckets.
|
|
4
|
+
* Buckets (in order):
|
|
5
|
+
* 1. exact ISO2 matches
|
|
6
|
+
* 2. name starts with
|
|
7
|
+
* 3. name contains
|
|
8
|
+
* 4. dial code exact match (bare or with plus)
|
|
9
|
+
* 5. dial code contains (with plus form)
|
|
10
|
+
* 6. initials match
|
|
11
|
+
* Each bucket preserves country.priority ordering.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getMatchedCountries: (countries: Country[], query: string) => Country[];
|
|
14
|
+
/**
|
|
15
|
+
* Hidden search (when countrySearch disabled): find first whose name starts with query (case-insensitive).
|
|
16
|
+
*/
|
|
17
|
+
export declare const findFirstCountryStartingWith: (countries: Country[], query: string) => Country | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { I18n } from "../../intl-tel-input/i18n/types";
|
|
1
2
|
import type { AllOptions } from "../types/public-api";
|
|
2
3
|
export declare const defaults: AllOptions;
|
|
3
|
-
export declare
|
|
4
|
+
export declare const applyOptionSideEffects: (o: AllOptions, defaultEnglishStrings: I18n) => void;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Country } from "../../intl-tel-input/data";
|
|
2
|
+
import { AllOptions } from "../types/public-api";
|
|
3
|
+
export default class UI {
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly id;
|
|
6
|
+
private readonly isRTL;
|
|
7
|
+
private readonly originalPaddingLeft;
|
|
8
|
+
private countries;
|
|
9
|
+
telInput: HTMLInputElement;
|
|
10
|
+
countryContainer: HTMLElement;
|
|
11
|
+
selectedCountry: HTMLElement;
|
|
12
|
+
selectedCountryInner: HTMLElement;
|
|
13
|
+
selectedDialCode: HTMLElement;
|
|
14
|
+
dropdownArrow: HTMLElement;
|
|
15
|
+
dropdownContent: HTMLElement;
|
|
16
|
+
searchInput: HTMLInputElement;
|
|
17
|
+
searchIcon: HTMLElement;
|
|
18
|
+
searchClearButton: HTMLButtonElement;
|
|
19
|
+
searchNoResults: HTMLElement;
|
|
20
|
+
searchResultsA11yText: HTMLElement;
|
|
21
|
+
countryList: HTMLElement;
|
|
22
|
+
dropdown: HTMLElement;
|
|
23
|
+
hiddenInput: HTMLInputElement;
|
|
24
|
+
hiddenInputCountry: HTMLInputElement;
|
|
25
|
+
highlightedItem: HTMLElement | null;
|
|
26
|
+
readonly hadInitialPlaceholder: boolean;
|
|
27
|
+
constructor(input: HTMLInputElement, options: AllOptions, id: number);
|
|
28
|
+
generateMarkup(countries: Country[]): void;
|
|
29
|
+
private _prepareTelInput;
|
|
30
|
+
private _createWrapperAndInsert;
|
|
31
|
+
private _maybeBuildCountryContainer;
|
|
32
|
+
private _buildDropdownContent;
|
|
33
|
+
private _buildSearchUI;
|
|
34
|
+
private _maybeUpdateInputPaddingAndReveal;
|
|
35
|
+
private _maybeBuildHiddenInputs;
|
|
36
|
+
private _appendListItems;
|
|
37
|
+
updateInputPadding(): void;
|
|
38
|
+
private _getHiddenSelectedCountryWidth;
|
|
39
|
+
updateSearchResultsA11yText(): void;
|
|
40
|
+
scrollTo(element: HTMLElement): void;
|
|
41
|
+
highlightListItem(listItem: HTMLElement | null, shouldFocus: boolean): void;
|
|
42
|
+
filterCountries(matchedCountries: Country[]): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
}
|
|
@@ -5,8 +5,8 @@ export interface DialCodeProcessingResult {
|
|
|
5
5
|
dialCodeMaxLen: number;
|
|
6
6
|
dialCodeToIso2Map: Record<string, Iso2[]>;
|
|
7
7
|
}
|
|
8
|
-
export declare
|
|
9
|
-
export declare
|
|
10
|
-
export declare
|
|
11
|
-
export declare
|
|
12
|
-
export declare
|
|
8
|
+
export declare const processAllCountries: (options: AllOptions) => Country[];
|
|
9
|
+
export declare const translateCountryNames: (countries: Country[], options: AllOptions) => void;
|
|
10
|
+
export declare const processDialCodes: (countries: Country[], options: AllOptions) => DialCodeProcessingResult;
|
|
11
|
+
export declare const sortCountries: (countries: Country[], options: AllOptions) => void;
|
|
12
|
+
export declare const cacheSearchTokens: (countries: Country[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const translateCursorPosition: (relevantChars: number, formattedValue: string, prevCaretPos: number, isDeleteForwards: boolean) => number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
1
|
+
import { SelectedCountryData } from "../types/public-api";
|
|
2
|
+
export declare const beforeSetNumber: (fullNumber: string, dialCode: string, separateDialCode: boolean, selectedCountryData: SelectedCountryData) => string;
|
|
3
|
+
export declare const formatNumberAsYouType: (fullNumber: string, telInputValue: string, utils: any, selectedCountryData: SelectedCountryData, separateDialCode: boolean) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EVENTS } from "../constants";
|
|
2
|
+
export type ItiEventMap = {
|
|
3
|
+
[EVENTS.COUNTRY_CHANGE]: Record<string, never>;
|
|
4
|
+
[EVENTS.OPEN_COUNTRY_DROPDOWN]: Record<string, never>;
|
|
5
|
+
[EVENTS.CLOSE_COUNTRY_DROPDOWN]: Record<string, never>;
|
|
6
|
+
[EVENTS.INPUT]: {
|
|
7
|
+
isSetNumber?: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a space-delimited class string from an object map of className -> truthy/falsey.
|
|
3
|
+
* Only keys with truthy values are included.
|
|
4
|
+
*/
|
|
5
|
+
export declare const buildClassNames: (flags: Record<string, unknown>) => string;
|
|
1
6
|
export declare const createEl: (tagName: string, attrs?: object | null, container?: HTMLElement) => HTMLElement;
|
package/build/js/data.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v25.
|
|
2
|
+
* International Telephone Input v25.11.1
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -1727,7 +1727,13 @@ var factoryOutput = (() => {
|
|
|
1727
1727
|
areaCodes: c[3] || null,
|
|
1728
1728
|
nodeById: {},
|
|
1729
1729
|
// populated by the plugin
|
|
1730
|
-
nationalPrefix: c[4] || null
|
|
1730
|
+
nationalPrefix: c[4] || null,
|
|
1731
|
+
normalisedName: "",
|
|
1732
|
+
// populated in the plugin
|
|
1733
|
+
initials: "",
|
|
1734
|
+
// populated in the plugin
|
|
1735
|
+
dialCodePlus: ""
|
|
1736
|
+
// populated in the plugin
|
|
1731
1737
|
});
|
|
1732
1738
|
}
|
|
1733
1739
|
var data_default = allCountries;
|
package/build/js/data.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v25.
|
|
2
|
+
* International Telephone Input v25.11.1
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}(() => {
|
|
15
15
|
|
|
16
|
-
var factoryOutput=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(l,n)=>{for(var t in n)s(l,t,{get:n[t],enumerable:!0})},c=(l,n,t,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of m(n))!o.call(l,u)&&u!==t&&s(l,u,{get:()=>n[u],enumerable:!(a=i(n,u))||a.enumerable});return l};var d=l=>c(s({},"__esModule",{value:!0}),l);var b={};g(b,{default:()=>p,rawCountryData:()=>e});var e=[["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"]],r=[];for(let l of e)r.push({name:"",iso2:l[0],dialCode:l[1],priority:l[2]||0,areaCodes:l[3]||null,nodeById:{},nationalPrefix:l[4]||null});var p=r;return d(b);})();
|
|
16
|
+
var factoryOutput=(()=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(l,n)=>{for(var t in n)s(l,t,{get:n[t],enumerable:!0})},c=(l,n,t,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of m(n))!o.call(l,u)&&u!==t&&s(l,u,{get:()=>n[u],enumerable:!(a=i(n,u))||a.enumerable});return l};var d=l=>c(s({},"__esModule",{value:!0}),l);var b={};g(b,{default:()=>p,rawCountryData:()=>e});var e=[["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"]],r=[];for(let l of e)r.push({name:"",iso2:l[0],dialCode:l[1],priority:l[2]||0,areaCodes:l[3]||null,nodeById:{},nationalPrefix:l[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var p=r;return d(b);})();
|
|
17
17
|
|
|
18
18
|
// UMD
|
|
19
19
|
return factoryOutput.default;
|