@taiga-ui/kit 2.98.0 → 2.99.0
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/bundles/taiga-ui-kit-components-input-phone-international.umd.js +25 -516
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +275 -4
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +339 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.min.js +2 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +361 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.min.js +2 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-pipes.umd.js +20 -4
- package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +9 -4
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +27 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.min.js +2 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-utils.umd.js +12 -4
- package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils.umd.min.js +1 -1
- package/components/input-phone-international/index.d.ts +0 -4
- package/components/input-phone-international/input-phone-international.component.d.ts +7 -3
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
- package/{components/input-phone-international/const → constants}/countries.d.ts +1 -2
- package/constants/index.d.ts +2 -0
- package/constants/mask-after-code-regexp.d.ts +1 -0
- package/constants/taiga-ui-kit-constants.metadata.json +1 -1
- package/esm2015/components/input-phone-international/index.js +1 -4
- package/esm2015/components/input-phone-international/input-phone-international.component.js +24 -30
- package/esm2015/constants/countries.js +264 -0
- package/esm2015/constants/index.js +3 -1
- package/esm2015/constants/mask-after-code-regexp.js +2 -0
- package/esm2015/interfaces/country.js +1 -0
- package/esm2015/interfaces/index.js +1 -1
- package/esm2015/pipes/index.js +3 -1
- package/esm2015/pipes/iso-to-country-code/index.js +3 -0
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.module.js +13 -0
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +24 -0
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +5 -0
- package/esm2015/pipes/to-country-code/index.js +3 -0
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +5 -0
- package/esm2015/pipes/to-country-code/to-country-code.module.js +13 -0
- package/esm2015/pipes/to-country-code/to-country-code.pipe.js +47 -0
- package/esm2015/tokens/countries-masks.js +6 -0
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/phone/get-max-allowed-phone-length.js +4 -0
- package/esm2015/utils/phone/index.js +4 -0
- package/esm2015/utils/phone/iso-to-country-code.js +5 -0
- package/esm2015/utils/phone/not-kz-region.js +5 -0
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +5 -0
- package/esm5/components/input-phone-international/index.js +1 -4
- package/esm5/components/input-phone-international/input-phone-international.component.js +24 -31
- package/esm5/constants/countries.js +267 -0
- package/esm5/constants/index.js +3 -1
- package/esm5/constants/mask-after-code-regexp.js +2 -0
- package/esm5/interfaces/country.js +1 -0
- package/esm5/interfaces/index.js +1 -1
- package/esm5/pipes/index.js +3 -1
- package/esm5/pipes/iso-to-country-code/index.js +3 -0
- package/esm5/pipes/iso-to-country-code/iso-to-country-code.module.js +16 -0
- package/esm5/pipes/iso-to-country-code/iso-to-country-code.pipe.js +25 -0
- package/esm5/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +5 -0
- package/esm5/pipes/to-country-code/index.js +3 -0
- package/esm5/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +5 -0
- package/esm5/pipes/to-country-code/to-country-code.module.js +16 -0
- package/esm5/pipes/to-country-code/to-country-code.pipe.js +49 -0
- package/esm5/tokens/countries-masks.js +6 -0
- package/esm5/tokens/index.js +2 -1
- package/esm5/utils/index.js +2 -1
- package/esm5/utils/phone/get-max-allowed-phone-length.js +4 -0
- package/esm5/utils/phone/index.js +4 -0
- package/esm5/utils/phone/iso-to-country-code.js +5 -0
- package/esm5/utils/phone/not-kz-region.js +5 -0
- package/esm5/utils/phone/taiga-ui-kit-utils-phone.js +5 -0
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +26 -507
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +267 -1
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +39 -0
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +62 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -0
- package/fesm2015/taiga-ui-kit-pipes.js +2 -0
- package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +6 -1
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +21 -0
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -0
- package/fesm2015/taiga-ui-kit-utils.js +1 -0
- package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +27 -511
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-constants.js +270 -2
- package/fesm5/taiga-ui-kit-constants.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-iso-to-country-code.js +43 -0
- package/fesm5/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -0
- package/fesm5/taiga-ui-kit-pipes-to-country-code.js +67 -0
- package/fesm5/taiga-ui-kit-pipes-to-country-code.js.map +1 -0
- package/fesm5/taiga-ui-kit-pipes.js +2 -0
- package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +6 -1
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-phone.js +21 -0
- package/fesm5/taiga-ui-kit-utils-phone.js.map +1 -0
- package/fesm5/taiga-ui-kit-utils.js +1 -0
- package/fesm5/taiga-ui-kit-utils.js.map +1 -1
- package/interfaces/index.d.ts +1 -0
- package/interfaces/taiga-ui-kit-interfaces.metadata.json +1 -1
- package/package.json +4 -4
- package/pipes/index.d.ts +2 -0
- package/pipes/iso-to-country-code/index.d.ts +2 -0
- package/pipes/iso-to-country-code/iso-to-country-code.module.d.ts +2 -0
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +7 -0
- package/pipes/iso-to-country-code/package.json +13 -0
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +4 -0
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.metadata.json +1 -0
- package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
- package/pipes/to-country-code/index.d.ts +2 -0
- package/pipes/to-country-code/package.json +13 -0
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +4 -0
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.metadata.json +1 -0
- package/pipes/to-country-code/to-country-code.module.d.ts +2 -0
- package/pipes/to-country-code/to-country-code.pipe.d.ts +7 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/phone/get-max-allowed-phone-length.d.ts +2 -0
- package/utils/phone/index.d.ts +3 -0
- package/utils/phone/iso-to-country-code.d.ts +2 -0
- package/utils/phone/not-kz-region.d.ts +1 -0
- package/utils/phone/package.json +13 -0
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +4 -0
- package/utils/phone/taiga-ui-kit-utils-phone.metadata.json +1 -0
- package/utils/taiga-ui-kit-utils.metadata.json +1 -1
- package/components/input-phone-international/country-iso-code.d.ts +0 -207
- package/esm2015/components/input-phone-international/const/countries.js +0 -265
- package/esm2015/components/input-phone-international/country-iso-code.js +0 -209
- package/esm2015/components/input-phone-international/interfaces/country.js +0 -1
- package/esm2015/components/input-phone-international/tokens/countries-masks.js +0 -6
- package/esm5/components/input-phone-international/const/countries.js +0 -268
- package/esm5/components/input-phone-international/country-iso-code.js +0 -209
- package/esm5/components/input-phone-international/interfaces/country.js +0 -1
- package/esm5/components/input-phone-international/tokens/countries-masks.js +0 -6
- /package/{components/input-phone-international/interfaces → interfaces}/country.d.ts +0 -0
- /package/{components/input-phone-international/tokens → tokens}/countries-masks.d.ts +0 -0
|
@@ -1,495 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TuiCountryIsoCode as TuiCountryIsoCode$1 } from '@taiga-ui/i18n';
|
|
1
|
+
import { __assign, __extends, __decorate, __param } from 'tslib';
|
|
3
2
|
import { InjectionToken, EventEmitter, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, Output, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
4
3
|
import { NgControl, FormsModule } from '@angular/forms';
|
|
5
4
|
import { getClipboardDataText, CHAR_PLUS, setNativeFocused, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiControl, TuiMapperPipeModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
|
|
6
5
|
import { TUI_NON_DIGITS_REGEXP, TUI_MASK_SYMBOLS_REGEXP, TuiFlagPipe, TuiPrimitiveTextfieldComponent, TuiSvgModule, TuiGroupModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiHintControllerModule, TuiHostedDropdownModule, TuiDataListModule, TuiFlagPipeModule } from '@taiga-ui/core';
|
|
6
|
+
import { TuiCountryIsoCode } from '@taiga-ui/i18n';
|
|
7
7
|
import { TUI_ARROW, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
|
|
8
8
|
import { TuiInputPhoneComponent, TuiInputPhoneModule } from '@taiga-ui/kit/components/input-phone';
|
|
9
|
+
import { TuiToCountryCodePipe } from '@taiga-ui/kit/pipes';
|
|
9
10
|
import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
|
|
10
|
-
import { TUI_COUNTRIES } from '@taiga-ui/kit/tokens';
|
|
11
|
+
import { TUI_COUNTRIES, TUI_COUNTRIES_MASKS } from '@taiga-ui/kit/tokens';
|
|
12
|
+
import { tuiIsoToCountryCode, tuiGetMaxAllowedPhoneLength } from '@taiga-ui/kit/utils';
|
|
11
13
|
import { Observable } from 'rxjs';
|
|
12
14
|
import { CommonModule } from '@angular/common';
|
|
13
15
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
14
16
|
|
|
15
|
-
var _a;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Dont use it (will be deleted soon).
|
|
18
|
-
* - Use token `TUI_COUNTRIES_MASKS` to get phone mask by country iso code
|
|
19
|
-
* - Use token `TUI_COUNTRIES` to get localized country name by its iso code
|
|
20
|
-
* @example
|
|
21
|
-
* import {TUI_COUNTRIES, TUI_COUNTRIES_MASKS} from '@taiga-ui/kit';
|
|
22
|
-
*
|
|
23
|
-
* @todo TODO: remove it in 3.0
|
|
24
|
-
*/
|
|
25
|
-
var COUNTRIES = (_a = {},
|
|
26
|
-
_a[TuiCountryIsoCode$1.AD] = { mask: "+376###-###", name: "\u0410\u043D\u0434\u043E\u0440\u0440\u0430" },
|
|
27
|
-
_a[TuiCountryIsoCode$1.AE] = {
|
|
28
|
-
mask: "+971-##-###-####",
|
|
29
|
-
name: "\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0435\u043D\u043D\u044B\u0435 \u0410\u0440\u0430\u0431\u0441\u043A\u0438\u0435 \u042D\u043C\u0438\u0440\u0430\u0442\u044B",
|
|
30
|
-
},
|
|
31
|
-
_a[TuiCountryIsoCode$1.AF] = { mask: "+93##-###-####", name: "\u0410\u0444\u0433\u0430\u043D\u0438\u0441\u0442\u0430\u043D" },
|
|
32
|
-
_a[TuiCountryIsoCode$1.AG] = { mask: "+1(268) ###-####", name: "\u0410\u043D\u0442\u0438\u0433\u0443\u0430 \u0438 \u0411\u0430\u0440\u0431\u0443\u0434\u0430" },
|
|
33
|
-
_a[TuiCountryIsoCode$1.AI] = { mask: "+1(264) ###-####", name: "\u0410\u043D\u0433\u0438\u043B\u044C\u044F" },
|
|
34
|
-
_a[TuiCountryIsoCode$1.AL] = { mask: "+355(###) ###-###", name: "\u0410\u043B\u0431\u0430\u043D\u0438\u044F" },
|
|
35
|
-
_a[TuiCountryIsoCode$1.AM] = { mask: "+374##-###-###", name: "\u0410\u0440\u043C\u0435\u043D\u0438\u044F" },
|
|
36
|
-
_a[TuiCountryIsoCode$1.AO] = { mask: "+244(###) ###-###", name: "\u0410\u043D\u0433\u043E\u043B\u0430" },
|
|
37
|
-
_a[TuiCountryIsoCode$1.AR] = { mask: "+54(###) ###-####", name: "\u0410\u0440\u0433\u0435\u043D\u0442\u0438\u043D\u0430" },
|
|
38
|
-
_a[TuiCountryIsoCode$1.AT] = { mask: "+43(###) ###-####", name: "\u0410\u0432\u0441\u0442\u0440\u0438\u044F" },
|
|
39
|
-
_a[TuiCountryIsoCode$1.AU] = { mask: "+61#-####-####", name: "\u0410\u0432\u0441\u0442\u0440\u0430\u043B\u0438\u044F" },
|
|
40
|
-
_a[TuiCountryIsoCode$1.AW] = { mask: "+297###-####", name: "\u0410\u0440\u0443\u0431\u0430" },
|
|
41
|
-
_a[TuiCountryIsoCode$1.AZ] = { mask: "+994##-###-##-##", name: "\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043D" },
|
|
42
|
-
_a[TuiCountryIsoCode$1.BA] = { mask: "+387 ###-####-#", name: "\u0411\u043E\u0441\u043D\u0438\u044F \u0438 \u0413\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430" },
|
|
43
|
-
_a[TuiCountryIsoCode$1.BB] = { mask: "+1(246) ###-####", name: "\u0411\u0430\u0440\u0431\u0430\u0434\u043E\u0441" },
|
|
44
|
-
_a[TuiCountryIsoCode$1.BD] = { mask: "+880##-###-###", name: "\u0411\u0430\u043D\u0433\u043B\u0430\u0434\u0435\u0448" },
|
|
45
|
-
_a[TuiCountryIsoCode$1.BE] = { mask: "+32(###) ###-###", name: "\u0411\u0435\u043B\u044C\u0433\u0438\u044F" },
|
|
46
|
-
_a[TuiCountryIsoCode$1.BF] = { mask: "+226##-##-####", name: "\u0411\u0443\u0440\u043A\u0438\u043D\u0430 \u0424\u0430\u0441\u043E" },
|
|
47
|
-
_a[TuiCountryIsoCode$1.BG] = { mask: "+359(###) ###-###", name: "\u0411\u043E\u043B\u0433\u0430\u0440\u0438\u044F" },
|
|
48
|
-
_a[TuiCountryIsoCode$1.BH] = { mask: "+973####-####", name: "\u0411\u0430\u0445\u0440\u0435\u0439\u043D" },
|
|
49
|
-
_a[TuiCountryIsoCode$1.BI] = { mask: "+257##-##-####", name: "\u0411\u0443\u0440\u0443\u043D\u0434\u0438" },
|
|
50
|
-
_a[TuiCountryIsoCode$1.BJ] = { mask: "+229##-##-####", name: "\u0411\u0435\u043D\u0438\u043D" },
|
|
51
|
-
_a[TuiCountryIsoCode$1.BL] = { mask: "+590 ## ## ## ## ##", name: "\u0421\u0435\u043D-\u0411\u0430\u0440\u0442\u0435\u043B\u044C\u043C\u0438" },
|
|
52
|
-
_a[TuiCountryIsoCode$1.BM] = { mask: "+1(441) ###-####", name: "\u0411\u0435\u0440\u043C\u0443\u0434\u0441\u043A\u0438\u0435 \u043E\u0441\u0442\u0440\u043E\u0432\u0430" },
|
|
53
|
-
_a[TuiCountryIsoCode$1.BN] = { mask: "+673###-####", name: "\u0411\u0440\u0443\u043D\u0435\u0439-\u0414\u0430\u0440\u0443\u0441\u0441\u0430\u043B\u0430\u043C" },
|
|
54
|
-
_a[TuiCountryIsoCode$1.BO] = { mask: "+591#-###-####", name: "\u0411\u043E\u043B\u0438\u0432\u0438\u044F" },
|
|
55
|
-
_a[TuiCountryIsoCode$1.BQ] = {
|
|
56
|
-
mask: "+599-###-####",
|
|
57
|
-
name: "\u0411\u043E\u043D\u0430\u0439\u0440\u0435, \u0421\u0438\u043D\u0442-\u042D\u0441\u0442\u0430\u0442\u0438\u0443\u0441 \u0438 \u0421\u0430\u0431\u0430",
|
|
58
|
-
},
|
|
59
|
-
_a[TuiCountryIsoCode$1.BR] = { mask: "+55(##) ####-####", name: "\u0411\u0440\u0430\u0437\u0438\u043B\u0438\u044F" },
|
|
60
|
-
_a[TuiCountryIsoCode$1.BS] = { mask: "+1(242) ###-####", name: "\u0411\u0430\u0433\u0430\u043C\u0441\u043A\u0438\u0435 \u041E\u0441\u0442\u0440\u043E\u0432\u0430" },
|
|
61
|
-
_a[TuiCountryIsoCode$1.BT] = { mask: "+975#-###-###", name: "\u0411\u0443\u0442\u0430\u043D" },
|
|
62
|
-
_a[TuiCountryIsoCode$1.BW] = { mask: "+267##-###-###", name: "\u0411\u043E\u0442\u0441\u0432\u0430\u043D\u0430" },
|
|
63
|
-
_a[TuiCountryIsoCode$1.BY] = { mask: "+375(##) ###-##-##", name: "\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C (\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F)" },
|
|
64
|
-
_a[TuiCountryIsoCode$1.BZ] = { mask: "+501###-####", name: "\u0411\u0435\u043B\u0438\u0437" },
|
|
65
|
-
_a[TuiCountryIsoCode$1.CA] = { mask: "+1(###) ###-####", name: "\u041A\u0430\u043D\u0430\u0434\u0430" },
|
|
66
|
-
_a[TuiCountryIsoCode$1.CD] = {
|
|
67
|
-
mask: "+243(###) ###-###",
|
|
68
|
-
name: "\u0414\u0435\u043C. \u0420\u0435\u0441\u043F. \u041A\u043E\u043D\u0433\u043E (\u041A\u0438\u043D\u0448\u0430\u0441\u0430)",
|
|
69
|
-
},
|
|
70
|
-
_a[TuiCountryIsoCode$1.CF] = {
|
|
71
|
-
mask: "+236-##-##-####",
|
|
72
|
-
name: "\u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0430\u0444\u0440\u0438\u043A\u0430\u043D\u0441\u043A\u0430\u044F \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430",
|
|
73
|
-
},
|
|
74
|
-
_a[TuiCountryIsoCode$1.CG] = { mask: "+242##-###-####", name: "\u041A\u043E\u043D\u0433\u043E (\u0411\u0440\u0430\u0437\u0437\u0430\u0432\u0438\u043B\u044C)" },
|
|
75
|
-
_a[TuiCountryIsoCode$1.CH] = { mask: "+41##-###-####", name: "\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044F" },
|
|
76
|
-
_a[TuiCountryIsoCode$1.CI] = { mask: "+225##-###-###", name: "\u041A\u043E\u0442-\u0434\u2019\u0418\u0432\u0443\u0430\u0440" },
|
|
77
|
-
_a[TuiCountryIsoCode$1.CL] = { mask: "+56#-####-####", name: "\u0427\u0438\u043B\u0438" },
|
|
78
|
-
_a[TuiCountryIsoCode$1.CM] = { mask: "+237####-####", name: "\u041A\u0430\u043C\u0435\u0440\u0443\u043D" },
|
|
79
|
-
_a[TuiCountryIsoCode$1.CN] = { mask: "+86(###) ####-####", name: "\u041A\u0438\u0442\u0430\u0439\u0441\u043A\u0430\u044F \u041D.\u0420." },
|
|
80
|
-
_a[TuiCountryIsoCode$1.CO] = { mask: "+57(###) ###-####", name: "\u041A\u043E\u043B\u0443\u043C\u0431\u0438\u044F" },
|
|
81
|
-
_a[TuiCountryIsoCode$1.CR] = { mask: "+506####-####", name: "\u041A\u043E\u0441\u0442\u0430-\u0420\u0438\u043A\u0430" },
|
|
82
|
-
_a[TuiCountryIsoCode$1.CU] = { mask: "+53#-###-####", name: "\u041A\u0443\u0431\u0430" },
|
|
83
|
-
_a[TuiCountryIsoCode$1.CV] = { mask: "+238(###) ##-##", name: "\u041A\u0430\u0431\u043E-\u0412\u0435\u0440\u0434\u0435" },
|
|
84
|
-
_a[TuiCountryIsoCode$1.CW] = { mask: "+5999-###-####", name: "\u041A\u044E\u0440\u0430\u0441\u0430\u043E" },
|
|
85
|
-
_a[TuiCountryIsoCode$1.CY] = { mask: "+357##-###-###", name: "\u041A\u0438\u043F\u0440" },
|
|
86
|
-
_a[TuiCountryIsoCode$1.CZ] = { mask: "+420(###) ###-###", name: "\u0427\u0435\u0445\u0438\u044F" },
|
|
87
|
-
_a[TuiCountryIsoCode$1.DE] = { mask: "+49(###) ###-###-##", name: "\u0413\u0435\u0440\u043C\u0430\u043D\u0438\u044F" },
|
|
88
|
-
_a[TuiCountryIsoCode$1.DJ] = { mask: "+253##-##-##-##", name: "\u0414\u0436\u0438\u0431\u0443\u0442\u0438" },
|
|
89
|
-
_a[TuiCountryIsoCode$1.DK] = { mask: "+45##-##-##-##", name: "\u0414\u0430\u043D\u0438\u044F" },
|
|
90
|
-
_a[TuiCountryIsoCode$1.DM] = { mask: "+1(767) ###-####", name: "\u0414\u043E\u043C\u0438\u043D\u0438\u043A\u0430" },
|
|
91
|
-
_a[TuiCountryIsoCode$1.DO] = { mask: "+1(###) ###-####", name: "\u0414\u043E\u043C\u0438\u043D\u0438\u043A\u0430\u043D\u0441\u043A\u0430\u044F \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430" },
|
|
92
|
-
_a[TuiCountryIsoCode$1.DZ] = { mask: "+213##-###-####", name: "\u0410\u043B\u0436\u0438\u0440" },
|
|
93
|
-
_a[TuiCountryIsoCode$1.EC] = { mask: "+593##-###-####", name: "\u042D\u043A\u0432\u0430\u0434\u043E\u0440 " },
|
|
94
|
-
_a[TuiCountryIsoCode$1.EE] = { mask: "+372####-####", name: "\u042D\u0441\u0442\u043E\u043D\u0438\u044F " },
|
|
95
|
-
_a[TuiCountryIsoCode$1.EG] = { mask: "+20(###) ###-####", name: "\u0415\u0433\u0438\u043F\u0435\u0442" },
|
|
96
|
-
_a[TuiCountryIsoCode$1.ER] = { mask: "+291#-###-###", name: "\u042D\u0440\u0438\u0442\u0440\u0435\u044F" },
|
|
97
|
-
_a[TuiCountryIsoCode$1.ES] = { mask: "+34(###) ###-###", name: "\u0418\u0441\u043F\u0430\u043D\u0438\u044F" },
|
|
98
|
-
_a[TuiCountryIsoCode$1.ET] = { mask: "+251##-###-####", name: "\u042D\u0444\u0438\u043E\u043F\u0438\u044F" },
|
|
99
|
-
_a[TuiCountryIsoCode$1.FI] = { mask: "+358(###) ###-##-##", name: "\u0424\u0438\u043D\u043B\u044F\u043D\u0434\u0438\u044F" },
|
|
100
|
-
_a[TuiCountryIsoCode$1.FJ] = { mask: "+679##-#####", name: "\u0424\u0438\u0434\u0436\u0438" },
|
|
101
|
-
_a[TuiCountryIsoCode$1.FK] = { mask: "+500#####", name: "\u0424\u043E\u043B\u043A\u043B\u0435\u043D\u0434\u0441\u043A\u0438\u0435 \u043E\u0441\u0442\u0440\u043E\u0432\u0430" },
|
|
102
|
-
_a[TuiCountryIsoCode$1.FM] = { mask: "+691###-####", name: "\u0424.\u0428. \u041C\u0438\u043A\u0440\u043E\u043D\u0435\u0437\u0438\u0438" },
|
|
103
|
-
_a[TuiCountryIsoCode$1.FR] = { mask: "+33 ## ## ## ## ##", name: "\u0424\u0440\u0430\u043D\u0446\u0438\u044F" },
|
|
104
|
-
_a[TuiCountryIsoCode$1.GA] = { mask: "+241#-##-##-##", name: "\u0413\u0430\u0431\u043E\u043D" },
|
|
105
|
-
_a[TuiCountryIsoCode$1.GB] = { mask: "+44##-####-####", name: "\u0412\u0435\u043B\u0438\u043A\u043E\u0431\u0440\u0438\u0442\u0430\u043D\u0438\u044F" },
|
|
106
|
-
_a[TuiCountryIsoCode$1.GD] = { mask: "+1(473) ###-####", name: "\u0413\u0440\u0435\u043D\u0430\u0434\u0430" },
|
|
107
|
-
_a[TuiCountryIsoCode$1.GE] = { mask: "+995(###) ###-###", name: "\u0413\u0440\u0443\u0437\u0438\u044F" },
|
|
108
|
-
_a[TuiCountryIsoCode$1.GF] = { mask: "+594 ## ## ## ## ##", name: "\u0413\u0430\u0439\u0430\u043D\u0430" },
|
|
109
|
-
_a[TuiCountryIsoCode$1.GH] = { mask: "+233(###) ###-###", name: "\u0413\u0430\u043D\u0430" },
|
|
110
|
-
_a[TuiCountryIsoCode$1.GI] = { mask: "+350###-#####", name: "\u0413\u0438\u0431\u0440\u0430\u043B\u0442\u0430\u0440" },
|
|
111
|
-
_a[TuiCountryIsoCode$1.GL] = { mask: "+299##-##-##", name: "\u0413\u0440\u0435\u043D\u043B\u0430\u043D\u0434\u0438\u044F" },
|
|
112
|
-
_a[TuiCountryIsoCode$1.GM] = { mask: "+220(###) ##-##", name: "\u0413\u0430\u043C\u0431\u0438\u044F" },
|
|
113
|
-
_a[TuiCountryIsoCode$1.GN] = { mask: "+224##-###-###", name: "\u0413\u0432\u0438\u043D\u0435\u044F" },
|
|
114
|
-
_a[TuiCountryIsoCode$1.GP] = { mask: "+590 ## ## ## ## ##", name: "\u0413\u0432\u0430\u0434\u0435\u043B\u0443\u043F\u0430" },
|
|
115
|
-
_a[TuiCountryIsoCode$1.GQ] = { mask: "+240##-###-####", name: "\u042D\u043A\u0432\u0430\u0442\u043E\u0440\u0438\u0430\u043B\u044C\u043D\u0430\u044F \u0413\u0432\u0438\u043D\u0435\u044F" },
|
|
116
|
-
_a[TuiCountryIsoCode$1.GR] = { mask: "+30(###) ###-####", name: "\u0413\u0440\u0435\u0446\u0438\u044F" },
|
|
117
|
-
_a[TuiCountryIsoCode$1.GT] = { mask: "+502#-###-####", name: "\u0413\u0432\u0430\u0442\u0435\u043C\u0430\u043B\u0430" },
|
|
118
|
-
_a[TuiCountryIsoCode$1.GW] = { mask: "+245#-######", name: "\u0413\u0432\u0438\u043D\u0435\u044F-\u0411\u0438\u0441\u0430\u0443" },
|
|
119
|
-
_a[TuiCountryIsoCode$1.GY] = { mask: "+592###-####", name: "\u0413\u0430\u0439\u0430\u043D\u0430" },
|
|
120
|
-
_a[TuiCountryIsoCode$1.HK] = { mask: "+852####-####", name: "\u0413\u043E\u043D\u043A\u043E\u043D\u0433" },
|
|
121
|
-
_a[TuiCountryIsoCode$1.HN] = { mask: "+504####-####", name: "\u0413\u043E\u043D\u0434\u0443\u0440\u0430\u0441" },
|
|
122
|
-
_a[TuiCountryIsoCode$1.HR] = { mask: "+385##-###-###", name: "\u0425\u043E\u0440\u0432\u0430\u0442\u0438\u044F" },
|
|
123
|
-
_a[TuiCountryIsoCode$1.HT] = { mask: "+509##-##-####", name: "\u0413\u0430\u0438\u0442\u0438" },
|
|
124
|
-
_a[TuiCountryIsoCode$1.HU] = { mask: "+36(###) ###-###", name: "\u0412\u0435\u043D\u0433\u0440\u0438\u044F" },
|
|
125
|
-
_a[TuiCountryIsoCode$1.ID] = { mask: "+62(###) ###-##-###", name: "\u0418\u043D\u0434\u043E\u043D\u0435\u0437\u0438\u044F " },
|
|
126
|
-
_a[TuiCountryIsoCode$1.IE] = { mask: "+353(###) ###-###", name: "\u0418\u0440\u043B\u0430\u043D\u0434\u0438\u044F" },
|
|
127
|
-
_a[TuiCountryIsoCode$1.IL] = { mask: "+972##-###-####", name: "\u0418\u0437\u0440\u0430\u0438\u043B\u044C" },
|
|
128
|
-
_a[TuiCountryIsoCode$1.IN] = { mask: "+91(####) ###-###", name: "\u0418\u043D\u0434\u0438\u044F" },
|
|
129
|
-
_a[TuiCountryIsoCode$1.IQ] = { mask: "+964(###) ###-####", name: "\u0418\u0440\u0430\u043A" },
|
|
130
|
-
_a[TuiCountryIsoCode$1.IR] = { mask: "+98(###) ###-####", name: "\u0418\u0440\u0430\u043D" },
|
|
131
|
-
_a[TuiCountryIsoCode$1.IS] = { mask: "+354###-####", name: "\u0418\u0441\u043B\u0430\u043D\u0434\u0438\u044F" },
|
|
132
|
-
_a[TuiCountryIsoCode$1.IT] = { mask: "+39(###) ####-###", name: "\u0418\u0442\u0430\u043B\u0438\u044F" },
|
|
133
|
-
_a[TuiCountryIsoCode$1.JM] = { mask: "+1(876) ###-####", name: "\u042F\u043C\u0430\u0439\u043A\u0430" },
|
|
134
|
-
_a[TuiCountryIsoCode$1.JO] = { mask: "+962#-####-####", name: "\u0418\u043E\u0440\u0434\u0430\u043D\u0438\u044F" },
|
|
135
|
-
_a[TuiCountryIsoCode$1.JP] = { mask: "+81-##-####-####", name: "\u042F\u043F\u043E\u043D\u0438\u044F " },
|
|
136
|
-
_a[TuiCountryIsoCode$1.KE] = { mask: "+254###-######", name: "\u041A\u0435\u043D\u0438\u044F" },
|
|
137
|
-
_a[TuiCountryIsoCode$1.KG] = { mask: "+996(###) ###-###", name: "\u041A\u0438\u0440\u0433\u0438\u0437\u0438\u044F" },
|
|
138
|
-
_a[TuiCountryIsoCode$1.KH] = { mask: "+855##-###-###", name: "\u041A\u0430\u043C\u0431\u043E\u0434\u0436\u0430" },
|
|
139
|
-
_a[TuiCountryIsoCode$1.KM] = { mask: "+269##-#####", name: "\u041A\u043E\u043C\u043E\u0440\u044B" },
|
|
140
|
-
_a[TuiCountryIsoCode$1.KN] = { mask: "+1(869) ###-####", name: "\u0421\u0435\u043D\u0442-\u041A\u0438\u0442\u0441 \u0438 \u041D\u0435\u0432\u0438\u0441" },
|
|
141
|
-
_a[TuiCountryIsoCode$1.KP] = { mask: "+850####-#############", name: "\u041A\u043E\u0440\u0435\u0439\u0441\u043A\u0430\u044F \u041D\u0414\u0420" },
|
|
142
|
-
_a[TuiCountryIsoCode$1.KR] = { mask: "+82##-###-####", name: "\u0420\u0435\u0441\u043F. \u041A\u043E\u0440\u0435\u044F" },
|
|
143
|
-
_a[TuiCountryIsoCode$1.KW] = { mask: "+965####-####", name: "\u041A\u0443\u0432\u0435\u0439\u0442" },
|
|
144
|
-
_a[TuiCountryIsoCode$1.KY] = { mask: "+1(345) ###-####", name: "\u041A\u0430\u0439\u043C\u0430\u043D\u043E\u0432\u044B \u043E\u0441\u0442\u0440\u043E\u0432\u0430" },
|
|
145
|
-
_a[TuiCountryIsoCode$1.KZ] = { mask: "+7(###) ###-##-##", name: "\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D" },
|
|
146
|
-
_a[TuiCountryIsoCode$1.LA] = { mask: "+856##-##-###-###", name: "\u041B\u0430\u043E\u0441" },
|
|
147
|
-
_a[TuiCountryIsoCode$1.LB] = { mask: "+961##-###-###", name: "\u041B\u0438\u0432\u0430\u043D " },
|
|
148
|
-
_a[TuiCountryIsoCode$1.LC] = { mask: "+1(758) ###-####", name: "\u0421\u0435\u043D\u0442-\u041B\u044E\u0441\u0438\u044F" },
|
|
149
|
-
_a[TuiCountryIsoCode$1.LI] = { mask: "+423(###) ###-####", name: "\u041B\u0438\u0445\u0442\u0435\u043D\u0448\u0442\u0435\u0439\u043D" },
|
|
150
|
-
_a[TuiCountryIsoCode$1.LK] = { mask: "+94##-###-####", name: "\u0428\u0440\u0438-\u041B\u0430\u043D\u043A\u0430" },
|
|
151
|
-
_a[TuiCountryIsoCode$1.LR] = { mask: "+231##-###-###", name: "\u041B\u0438\u0431\u0435\u0440\u0438\u044F" },
|
|
152
|
-
_a[TuiCountryIsoCode$1.LS] = { mask: "+266#-###-####", name: "\u041B\u0435\u0441\u043E\u0442\u043E" },
|
|
153
|
-
_a[TuiCountryIsoCode$1.LT] = { mask: "+370(###) ##-###", name: "\u041B\u0438\u0442\u0432\u0430" },
|
|
154
|
-
_a[TuiCountryIsoCode$1.LU] = { mask: "+352(###) ###-###", name: "\u041B\u044E\u043A\u0441\u0435\u043C\u0431\u0443\u0440\u0433" },
|
|
155
|
-
_a[TuiCountryIsoCode$1.LV] = { mask: "+371##-###-###", name: "\u041B\u0430\u0442\u0432\u0438\u044F" },
|
|
156
|
-
_a[TuiCountryIsoCode$1.LY] = { mask: "+218##-###-####", name: "\u041B\u0438\u0432\u0438\u044F" },
|
|
157
|
-
_a[TuiCountryIsoCode$1.MA] = { mask: "+212##-####-###", name: "\u041C\u0430\u0440\u043E\u043A\u043A\u043E" },
|
|
158
|
-
_a[TuiCountryIsoCode$1.MC] = { mask: "+377###-###-###", name: "\u041C\u043E\u043D\u0430\u043A\u043E" },
|
|
159
|
-
_a[TuiCountryIsoCode$1.MD] = { mask: "+373####-####", name: "\u041C\u043E\u043B\u0434\u043E\u0432\u0430" },
|
|
160
|
-
_a[TuiCountryIsoCode$1.ME] = { mask: "+382##-###-###", name: "\u0427\u0435\u0440\u043D\u043E\u0433\u043E\u0440\u0438\u044F" },
|
|
161
|
-
_a[TuiCountryIsoCode$1.MF] = { mask: "+590 ## ## ## ## ##", name: "\u0421\u0435\u043D-\u041C\u0430\u0440\u0442\u0435\u043D" },
|
|
162
|
-
_a[TuiCountryIsoCode$1.MG] = { mask: "+261##-##-#####", name: "\u041C\u0430\u0434\u0430\u0433\u0430\u0441\u043A\u0430\u0440" },
|
|
163
|
-
_a[TuiCountryIsoCode$1.MK] = { mask: "+389##-###-###", name: "\u0420\u0435\u0441\u043F. \u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u044F" },
|
|
164
|
-
_a[TuiCountryIsoCode$1.ML] = { mask: "+223##-##-####", name: "\u041C\u0430\u043B\u0438" },
|
|
165
|
-
_a[TuiCountryIsoCode$1.MM] = { mask: "+95##-###-###", name: "\u0411\u0438\u0440\u043C\u0430 (\u041C\u044C\u044F\u043D\u043C\u0430)" },
|
|
166
|
-
_a[TuiCountryIsoCode$1.MN] = { mask: "+976##-##-####", name: "\u041C\u043E\u043D\u0433\u043E\u043B\u0438\u044F" },
|
|
167
|
-
_a[TuiCountryIsoCode$1.MO] = { mask: "+853####-####", name: "\u041C\u0430\u043A\u0430\u043E" },
|
|
168
|
-
_a[TuiCountryIsoCode$1.MQ] = { mask: "+596 ## ## ## ## ##", name: "\u041C\u0430\u0440\u0442\u0438\u043D\u0438\u043A\u0430" },
|
|
169
|
-
_a[TuiCountryIsoCode$1.MR] = { mask: "+222##-##-####", name: "\u041C\u0430\u0432\u0440\u0438\u0442\u0430\u043D\u0438\u044F" },
|
|
170
|
-
_a[TuiCountryIsoCode$1.MS] = { mask: "+1(664) ###-####", name: "\u041C\u043E\u043D\u0442\u0441\u0435\u0440\u0440\u0430\u0442" },
|
|
171
|
-
_a[TuiCountryIsoCode$1.MT] = { mask: "+356####-####", name: "\u041C\u0430\u043B\u044C\u0442\u0430" },
|
|
172
|
-
_a[TuiCountryIsoCode$1.MU] = { mask: "+230###-####", name: "\u041C\u0430\u0432\u0440\u0438\u043A\u0438\u0439" },
|
|
173
|
-
_a[TuiCountryIsoCode$1.MV] = { mask: "+960###-####", name: "\u041C\u0430\u043B\u044C\u0434\u0438\u0432\u0441\u043A\u0438\u0435 \u043E\u0441\u0442\u0440\u043E\u0432\u0430" },
|
|
174
|
-
_a[TuiCountryIsoCode$1.MW] = { mask: "+265#-####-####", name: "\u041C\u0430\u043B\u0430\u0432\u0438" },
|
|
175
|
-
_a[TuiCountryIsoCode$1.MX] = { mask: "+52(###) ###-####", name: "\u041C\u0435\u043A\u0441\u0438\u043A\u0430" },
|
|
176
|
-
_a[TuiCountryIsoCode$1.MY] = { mask: "+60(###) ###-###", name: "\u041C\u0430\u043B\u0430\u0439\u0437\u0438\u044F" },
|
|
177
|
-
_a[TuiCountryIsoCode$1.MZ] = { mask: "+258##-###-###", name: "\u041C\u043E\u0437\u0430\u043C\u0431\u0438\u043A" },
|
|
178
|
-
_a[TuiCountryIsoCode$1.NA] = { mask: "+264##-###-####", name: "\u041D\u0430\u043C\u0438\u0431\u0438\u044F" },
|
|
179
|
-
_a[TuiCountryIsoCode$1.NC] = { mask: "+687 ### ###", name: "\u041A\u0430\u043B\u0435\u0434\u043E\u043D\u0438\u044F" },
|
|
180
|
-
_a[TuiCountryIsoCode$1.NE] = { mask: "+227##-##-####", name: "\u041D\u0438\u0433\u0435\u0440" },
|
|
181
|
-
_a[TuiCountryIsoCode$1.NG] = { mask: "+234(###) ###-####", name: "\u041D\u0438\u0433\u0435\u0440\u0438\u044F" },
|
|
182
|
-
_a[TuiCountryIsoCode$1.NI] = { mask: "+505####-####", name: "\u041D\u0438\u043A\u0430\u0440\u0430\u0433\u0443\u0430" },
|
|
183
|
-
_a[TuiCountryIsoCode$1.NL] = { mask: "+31##-###-####", name: "\u041D\u0438\u0434\u0435\u0440\u043B\u0430\u043D\u0434\u044B" },
|
|
184
|
-
_a[TuiCountryIsoCode$1.NO] = { mask: "+47(###) ##-###", name: "\u041D\u043E\u0440\u0432\u0435\u0433\u0438\u044F" },
|
|
185
|
-
_a[TuiCountryIsoCode$1.NP] = { mask: "+977##-###-###", name: "\u041D\u0435\u043F\u0430\u043B" },
|
|
186
|
-
_a[TuiCountryIsoCode$1.NZ] = { mask: "+64(###) ###-####", name: "\u041D\u043E\u0432\u0430\u044F \u0417\u0435\u043B\u0430\u043D\u0434\u0438\u044F" },
|
|
187
|
-
_a[TuiCountryIsoCode$1.OM] = { mask: "+968##-###-###", name: "\u041E\u043C\u0430\u043D" },
|
|
188
|
-
_a[TuiCountryIsoCode$1.PA] = { mask: "+507###-####", name: "\u041F\u0430\u043D\u0430\u043C\u0430" },
|
|
189
|
-
_a[TuiCountryIsoCode$1.PE] = { mask: "+51(###) ###-###", name: "\u041F\u0435\u0440\u0443" },
|
|
190
|
-
_a[TuiCountryIsoCode$1.PF] = {
|
|
191
|
-
mask: "+689##-##-##",
|
|
192
|
-
name: "\u0424\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u0430\u044F \u041F\u043E\u043B\u0438\u043D\u0435\u0437\u0438\u044F (\u0422\u0430\u0438\u0442\u0438)",
|
|
193
|
-
},
|
|
194
|
-
_a[TuiCountryIsoCode$1.PG] = { mask: "+675(###) ##-###", name: "\u041F\u0430\u043F\u0443\u0430-\u041D\u043E\u0432\u0430\u044F \u0413\u0432\u0438\u043D\u0435\u044F" },
|
|
195
|
-
_a[TuiCountryIsoCode$1.PH] = { mask: "+63(###) ###-####", name: "\u0424\u0438\u043B\u0438\u043F\u043F\u0438\u043D\u044B" },
|
|
196
|
-
_a[TuiCountryIsoCode$1.PK] = { mask: "+92(###) ###-####", name: "\u041F\u0430\u043A\u0438\u0441\u0442\u0430\u043D" },
|
|
197
|
-
_a[TuiCountryIsoCode$1.PL] = { mask: "+48(###) ###-###", name: "\u041F\u043E\u043B\u044C\u0448\u0430" },
|
|
198
|
-
_a[TuiCountryIsoCode$1.PT] = { mask: "+351##-###-####", name: "\u041F\u043E\u0440\u0442\u0443\u0433\u0430\u043B\u0438\u044F" },
|
|
199
|
-
_a[TuiCountryIsoCode$1.PW] = { mask: "+680###-####", name: "\u041F\u0430\u043B\u0430\u0443" },
|
|
200
|
-
_a[TuiCountryIsoCode$1.PY] = { mask: "+595(###) ###-###", name: "\u041F\u0430\u0440\u0430\u0433\u0432\u0430\u0439" },
|
|
201
|
-
_a[TuiCountryIsoCode$1.QA] = { mask: "+974####-####", name: "\u041A\u0430\u0442\u0430\u0440" },
|
|
202
|
-
_a[TuiCountryIsoCode$1.RE] = { mask: "+262 ## ## ## ## ##", name: "\u0420\u0435\u044E\u043D\u044C\u043E\u043D" },
|
|
203
|
-
_a[TuiCountryIsoCode$1.RO] = { mask: "+40##-###-####", name: "\u0420\u0443\u043C\u044B\u043D\u0438\u044F" },
|
|
204
|
-
_a[TuiCountryIsoCode$1.RS] = { mask: "+381##-###-####", name: "\u0421\u0435\u0440\u0431\u0438\u044F" },
|
|
205
|
-
_a[TuiCountryIsoCode$1.RU] = { mask: "+7### ###-##-##", name: "\u0420\u043E\u0441\u0441\u0438\u044F" },
|
|
206
|
-
_a[TuiCountryIsoCode$1.RW] = { mask: "+250(###) ###-###", name: "\u0420\u0443\u0430\u043D\u0434\u0430" },
|
|
207
|
-
_a[TuiCountryIsoCode$1.SA] = { mask: "+966#-####-####", name: "\u0421\u0430\u0443\u0434\u043E\u0432\u0441\u043A\u0430\u044F \u0410\u0440\u0430\u0432\u0438\u044F " },
|
|
208
|
-
_a[TuiCountryIsoCode$1.SB] = { mask: "+677###-####", name: "\u0421\u043E\u043B\u043E\u043C\u043E\u043D\u043E\u0432\u044B \u041E\u0441\u0442\u0440\u043E\u0432\u0430 " },
|
|
209
|
-
_a[TuiCountryIsoCode$1.SC] = { mask: "+248#-###-###", name: "\u0421\u0435\u0439\u0448\u0435\u043B\u044B" },
|
|
210
|
-
_a[TuiCountryIsoCode$1.SD] = { mask: "+249##-###-####", name: "\u0421\u0443\u0434\u0430\u043D" },
|
|
211
|
-
_a[TuiCountryIsoCode$1.SE] = { mask: "+46##-###-####", name: "\u0428\u0432\u0435\u0446\u0438\u044F" },
|
|
212
|
-
_a[TuiCountryIsoCode$1.SG] = { mask: "+65####-####", name: "\u0421\u0438\u043D\u0433\u0430\u043F\u0443\u0440" },
|
|
213
|
-
_a[TuiCountryIsoCode$1.SH] = { mask: "+290####", name: "\u041E\u0441\u0442\u0440\u043E\u0432 \u0421\u0432\u044F\u0442\u043E\u0439 \u0415\u043B\u0435\u043D\u044B" },
|
|
214
|
-
_a[TuiCountryIsoCode$1.SI] = { mask: "+386##-###-###", name: "\u0421\u043B\u043E\u0432\u0435\u043D\u0438\u044F" },
|
|
215
|
-
_a[TuiCountryIsoCode$1.SK] = { mask: "+421(###) ###-###", name: "\u0421\u043B\u043E\u0432\u0430\u043A\u0438\u044F" },
|
|
216
|
-
_a[TuiCountryIsoCode$1.SL] = { mask: "+232##-######", name: "\u0421\u044C\u0435\u0440\u0440\u0430-\u041B\u0435\u043E\u043D\u0435" },
|
|
217
|
-
_a[TuiCountryIsoCode$1.SM] = { mask: "+378####-######", name: "\u0421\u0430\u043D-\u041C\u0430\u0440\u0438\u043D\u043E" },
|
|
218
|
-
_a[TuiCountryIsoCode$1.SN] = { mask: "+221##-###-####", name: "\u0421\u0435\u043D\u0435\u0433\u0430\u043B" },
|
|
219
|
-
_a[TuiCountryIsoCode$1.SO] = { mask: "+252##-###-###", name: "\u0421\u043E\u043C\u0430\u043B\u0438" },
|
|
220
|
-
_a[TuiCountryIsoCode$1.SR] = { mask: "+597###-####", name: "\u0421\u0443\u0440\u0438\u043D\u0430\u043C " },
|
|
221
|
-
_a[TuiCountryIsoCode$1.ST] = { mask: "+239##-#####", name: "\u0421\u0430\u043D-\u0422\u043E\u043C\u0435 \u0438 \u041F\u0440\u0438\u043D\u0441\u0438\u043F\u0438" },
|
|
222
|
-
_a[TuiCountryIsoCode$1.SV] = { mask: "+503##-##-####", name: "\u0421\u0430\u043B\u044C\u0432\u0430\u0434\u043E\u0440" },
|
|
223
|
-
_a[TuiCountryIsoCode$1.SX] = { mask: "+1(721) ###-####", name: "\u0421\u0438\u043D\u0442-\u041C\u0430\u0440\u0442\u0435\u043D" },
|
|
224
|
-
_a[TuiCountryIsoCode$1.SY] = {
|
|
225
|
-
mask: "+963##-####-###",
|
|
226
|
-
name: "\u0421\u0438\u0440\u0438\u0439\u0441\u043A\u0430\u044F \u0430\u0440\u0430\u0431\u0441\u043A\u0430\u044F \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430",
|
|
227
|
-
},
|
|
228
|
-
_a[TuiCountryIsoCode$1.SZ] = { mask: "+268##-##-####", name: "\u0421\u0432\u0430\u0437\u0438\u043B\u0435\u043D\u0434" },
|
|
229
|
-
_a[TuiCountryIsoCode$1.TC] = { mask: "+1(649) ###-####", name: "\u0422\u0451\u0440\u043A\u0441 \u0438 \u041A\u0430\u0439\u043A\u043E\u0441" },
|
|
230
|
-
_a[TuiCountryIsoCode$1.TD] = { mask: "+235##-##-##-##", name: "\u0427\u0430\u0434" },
|
|
231
|
-
_a[TuiCountryIsoCode$1.TG] = { mask: "+228##-###-###", name: "\u0422\u043E\u0433\u043E" },
|
|
232
|
-
_a[TuiCountryIsoCode$1.TH] = { mask: "+66##-###-####", name: "\u0422\u0430\u0438\u043B\u0430\u043D\u0434 " },
|
|
233
|
-
_a[TuiCountryIsoCode$1.TJ] = { mask: "+992##-###-####", name: "\u0422\u0430\u0434\u0436\u0438\u043A\u0438\u0441\u0442\u0430\u043D" },
|
|
234
|
-
_a[TuiCountryIsoCode$1.TL] = { mask: "+670###-#####", name: "\u0412\u043E\u0441\u0442\u043E\u0447\u043D\u044B\u0439 \u0422\u0438\u043C\u043E\u0440" },
|
|
235
|
-
_a[TuiCountryIsoCode$1.TM] = { mask: "+993#-###-####", name: "\u0422\u0443\u0440\u043A\u043C\u0435\u043D\u0438\u0441\u0442\u0430\u043D" },
|
|
236
|
-
_a[TuiCountryIsoCode$1.TN] = { mask: "+216##-###-###", name: "\u0422\u0443\u043D\u0438\u0441" },
|
|
237
|
-
_a[TuiCountryIsoCode$1.TO] = { mask: "+676#####", name: "\u0422\u043E\u043D\u0433\u0430" },
|
|
238
|
-
_a[TuiCountryIsoCode$1.TR] = { mask: "+90(###) ###-####", name: "\u0422\u0443\u0440\u0446\u0438\u044F" },
|
|
239
|
-
_a[TuiCountryIsoCode$1.TT] = { mask: "+1(868) ###-####", name: "\u0422\u0440\u0438\u043D\u0438\u0434\u0430\u0434 \u0438 \u0422\u043E\u0431\u0430\u0433\u043E" },
|
|
240
|
-
_a[TuiCountryIsoCode$1.TW] = { mask: "+886#-####-####", name: "\u0422\u0430\u0439\u0432\u0430\u043D\u044C" },
|
|
241
|
-
_a[TuiCountryIsoCode$1.TZ] = { mask: "+255##-###-####", name: "\u0422\u0430\u043D\u0437\u0430\u043D\u0438\u044F" },
|
|
242
|
-
_a[TuiCountryIsoCode$1.UA] = { mask: "+380(##) ###-##-##", name: "\u0423\u043A\u0440\u0430\u0438\u043D\u0430" },
|
|
243
|
-
_a[TuiCountryIsoCode$1.UG] = { mask: "+256(###) ###-###", name: "\u0423\u0433\u0430\u043D\u0434\u0430" },
|
|
244
|
-
_a[TuiCountryIsoCode$1.US] = { mask: "+1(###) ###-####", name: "\u0421\u0428\u0410" },
|
|
245
|
-
_a[TuiCountryIsoCode$1.UY] = { mask: "+598#-###-##-##", name: "\u0423\u0440\u0443\u0433\u0432\u0430\u0439" },
|
|
246
|
-
_a[TuiCountryIsoCode$1.UZ] = { mask: "+998##-###-####", name: "\u0423\u0437\u0431\u0435\u043A\u0438\u0441\u0442\u0430\u043D" },
|
|
247
|
-
_a[TuiCountryIsoCode$1.VC] = { mask: "+1(784) ###-####", name: "\u0421\u0435\u043D\u0442-\u0412\u0438\u043D\u0441\u0435\u043D\u0442 \u0438 \u0413\u0440\u0435\u043D\u0430\u0434\u0438\u043D\u044B" },
|
|
248
|
-
_a[TuiCountryIsoCode$1.VE] = { mask: "+58(###) ###-####", name: "\u0412\u0435\u043D\u0435\u0441\u0443\u044D\u043B\u0430" },
|
|
249
|
-
_a[TuiCountryIsoCode$1.VG] = {
|
|
250
|
-
mask: "+1(284)###-####",
|
|
251
|
-
name: "\u0411\u0440\u0438\u0442\u0430\u043D\u0441\u043A\u0438\u0435 \u0412\u0438\u0440\u0433\u0438\u043D\u0441\u043A\u0438\u0435 \u043E\u0441\u0442\u0440\u043E\u0432\u0430",
|
|
252
|
-
},
|
|
253
|
-
_a[TuiCountryIsoCode$1.VN] = { mask: "+84(###) ####-###", name: "\u0412\u044C\u0435\u0442\u043D\u0430\u043C" },
|
|
254
|
-
_a[TuiCountryIsoCode$1.VU] = { mask: "+678##-#####", name: "\u0412\u0430\u043D\u0443\u0430\u0442\u0443 " },
|
|
255
|
-
_a[TuiCountryIsoCode$1.WS] = { mask: "+685##-####", name: "\u0421\u0430\u043C\u043E\u0430" },
|
|
256
|
-
_a[TuiCountryIsoCode$1.XK] = { mask: "+383##-###-###", name: "\u041A\u043E\u0441\u043E\u0432\u043E" },
|
|
257
|
-
_a[TuiCountryIsoCode$1.YE] = { mask: "+967###-###-###", name: "\u0419\u0435\u043C\u0435\u043D " },
|
|
258
|
-
_a[TuiCountryIsoCode$1.YT] = { mask: "+262 ## ## ## ## ##", name: "\u041C\u0430\u0439\u043E\u0442\u0442\u0430" },
|
|
259
|
-
_a[TuiCountryIsoCode$1.ZA] = { mask: "+27##-###-####", name: "\u042E\u0436\u043D\u043E-\u0410\u0444\u0440\u0438\u043A\u0430\u043D\u0441\u043A\u0430\u044F \u0420\u0435\u0441\u043F." },
|
|
260
|
-
_a[TuiCountryIsoCode$1.ZM] = { mask: "+260##-###-####", name: "\u0417\u0430\u043C\u0431\u0438\u044F" },
|
|
261
|
-
_a[TuiCountryIsoCode$1.ZW] = { mask: "+263#-######", name: "\u0417\u0438\u043C\u0431\u0430\u0431\u0432\u0435" },
|
|
262
|
-
_a);
|
|
263
|
-
/**
|
|
264
|
-
* @deprecated will be deleted soon
|
|
265
|
-
* TODO: remove in 3.0 (in ivy compilation)
|
|
266
|
-
*/
|
|
267
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
268
|
-
function countriesMasksReducer(acc, _a) {
|
|
269
|
-
var _b = __read(_a, 2), countryIsoCode = _b[0], mask = _b[1].mask;
|
|
270
|
-
acc[countryIsoCode] = mask;
|
|
271
|
-
return acc;
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* @deprecated will be deleted soon
|
|
275
|
-
* Use token `TUI_COUNTRIES_MASKS`
|
|
276
|
-
* TODO: remove in 3.0
|
|
277
|
-
*/
|
|
278
|
-
var COUNTRIES_MASKS = Object.entries(COUNTRIES).reduce(countriesMasksReducer, {});
|
|
279
|
-
var MASK_AFTER_CODE_REGEXP = /\([#]+\)|[#\- ]/g;
|
|
280
|
-
|
|
281
|
-
/** @deprecated use `import {TuiCountryIsoCode} from '@taiga-ui/i18n'` */
|
|
282
|
-
var TuiCountryIsoCode;
|
|
283
|
-
(function (TuiCountryIsoCode) {
|
|
284
|
-
TuiCountryIsoCode["AD"] = "AD";
|
|
285
|
-
TuiCountryIsoCode["AE"] = "AE";
|
|
286
|
-
TuiCountryIsoCode["AF"] = "AF";
|
|
287
|
-
TuiCountryIsoCode["AG"] = "AG";
|
|
288
|
-
TuiCountryIsoCode["AI"] = "AI";
|
|
289
|
-
TuiCountryIsoCode["AL"] = "AL";
|
|
290
|
-
TuiCountryIsoCode["AM"] = "AM";
|
|
291
|
-
TuiCountryIsoCode["AN"] = "AN";
|
|
292
|
-
TuiCountryIsoCode["AO"] = "AO";
|
|
293
|
-
TuiCountryIsoCode["AR"] = "AR";
|
|
294
|
-
TuiCountryIsoCode["AT"] = "AT";
|
|
295
|
-
TuiCountryIsoCode["AU"] = "AU";
|
|
296
|
-
TuiCountryIsoCode["AW"] = "AW";
|
|
297
|
-
TuiCountryIsoCode["AZ"] = "AZ";
|
|
298
|
-
TuiCountryIsoCode["BA"] = "BA";
|
|
299
|
-
TuiCountryIsoCode["BB"] = "BB";
|
|
300
|
-
TuiCountryIsoCode["BD"] = "BD";
|
|
301
|
-
TuiCountryIsoCode["BE"] = "BE";
|
|
302
|
-
TuiCountryIsoCode["BF"] = "BF";
|
|
303
|
-
TuiCountryIsoCode["BG"] = "BG";
|
|
304
|
-
TuiCountryIsoCode["BH"] = "BH";
|
|
305
|
-
TuiCountryIsoCode["BI"] = "BI";
|
|
306
|
-
TuiCountryIsoCode["BJ"] = "BJ";
|
|
307
|
-
TuiCountryIsoCode["BM"] = "BM";
|
|
308
|
-
TuiCountryIsoCode["BN"] = "BN";
|
|
309
|
-
TuiCountryIsoCode["BO"] = "BO";
|
|
310
|
-
TuiCountryIsoCode["BR"] = "BR";
|
|
311
|
-
TuiCountryIsoCode["BS"] = "BS";
|
|
312
|
-
TuiCountryIsoCode["BT"] = "BT";
|
|
313
|
-
TuiCountryIsoCode["BW"] = "BW";
|
|
314
|
-
TuiCountryIsoCode["BY"] = "BY";
|
|
315
|
-
TuiCountryIsoCode["BZ"] = "BZ";
|
|
316
|
-
TuiCountryIsoCode["CD"] = "CD";
|
|
317
|
-
TuiCountryIsoCode["CF"] = "CF";
|
|
318
|
-
TuiCountryIsoCode["CG"] = "CG";
|
|
319
|
-
TuiCountryIsoCode["CH"] = "CH";
|
|
320
|
-
TuiCountryIsoCode["CI"] = "CI";
|
|
321
|
-
TuiCountryIsoCode["CL"] = "CL";
|
|
322
|
-
TuiCountryIsoCode["CM"] = "CM";
|
|
323
|
-
TuiCountryIsoCode["CN"] = "CN";
|
|
324
|
-
TuiCountryIsoCode["CO"] = "CO";
|
|
325
|
-
TuiCountryIsoCode["CR"] = "CR";
|
|
326
|
-
TuiCountryIsoCode["CU"] = "CU";
|
|
327
|
-
TuiCountryIsoCode["CV"] = "CV";
|
|
328
|
-
TuiCountryIsoCode["CY"] = "CY";
|
|
329
|
-
TuiCountryIsoCode["CZ"] = "CZ";
|
|
330
|
-
TuiCountryIsoCode["DE"] = "DE";
|
|
331
|
-
TuiCountryIsoCode["DJ"] = "DJ";
|
|
332
|
-
TuiCountryIsoCode["DK"] = "DK";
|
|
333
|
-
TuiCountryIsoCode["DM"] = "DM";
|
|
334
|
-
TuiCountryIsoCode["DO"] = "DO";
|
|
335
|
-
TuiCountryIsoCode["DZ"] = "DZ";
|
|
336
|
-
TuiCountryIsoCode["EC"] = "EC";
|
|
337
|
-
TuiCountryIsoCode["EE"] = "EE";
|
|
338
|
-
TuiCountryIsoCode["EG"] = "EG";
|
|
339
|
-
TuiCountryIsoCode["ER"] = "ER";
|
|
340
|
-
TuiCountryIsoCode["ES"] = "ES";
|
|
341
|
-
TuiCountryIsoCode["ET"] = "ET";
|
|
342
|
-
TuiCountryIsoCode["FI"] = "FI";
|
|
343
|
-
TuiCountryIsoCode["FJ"] = "FJ";
|
|
344
|
-
TuiCountryIsoCode["FK"] = "FK";
|
|
345
|
-
TuiCountryIsoCode["FM"] = "FM";
|
|
346
|
-
TuiCountryIsoCode["FR"] = "FR";
|
|
347
|
-
TuiCountryIsoCode["GA"] = "GA";
|
|
348
|
-
TuiCountryIsoCode["GB"] = "GB";
|
|
349
|
-
TuiCountryIsoCode["GD"] = "GD";
|
|
350
|
-
TuiCountryIsoCode["GE"] = "GE";
|
|
351
|
-
TuiCountryIsoCode["GH"] = "GH";
|
|
352
|
-
TuiCountryIsoCode["GI"] = "GI";
|
|
353
|
-
TuiCountryIsoCode["GL"] = "GL";
|
|
354
|
-
TuiCountryIsoCode["GM"] = "GM";
|
|
355
|
-
TuiCountryIsoCode["GN"] = "GN";
|
|
356
|
-
TuiCountryIsoCode["GQ"] = "GQ";
|
|
357
|
-
TuiCountryIsoCode["GR"] = "GR";
|
|
358
|
-
TuiCountryIsoCode["GT"] = "GT";
|
|
359
|
-
TuiCountryIsoCode["GW"] = "GW";
|
|
360
|
-
TuiCountryIsoCode["GY"] = "GY";
|
|
361
|
-
TuiCountryIsoCode["HK"] = "HK";
|
|
362
|
-
TuiCountryIsoCode["HN"] = "HN";
|
|
363
|
-
TuiCountryIsoCode["HR"] = "HR";
|
|
364
|
-
TuiCountryIsoCode["HT"] = "HT";
|
|
365
|
-
TuiCountryIsoCode["HU"] = "HU";
|
|
366
|
-
TuiCountryIsoCode["ID"] = "ID";
|
|
367
|
-
TuiCountryIsoCode["IE"] = "IE";
|
|
368
|
-
TuiCountryIsoCode["IL"] = "IL";
|
|
369
|
-
TuiCountryIsoCode["IN"] = "IN";
|
|
370
|
-
TuiCountryIsoCode["IQ"] = "IQ";
|
|
371
|
-
TuiCountryIsoCode["IR"] = "IR";
|
|
372
|
-
TuiCountryIsoCode["IS"] = "IS";
|
|
373
|
-
TuiCountryIsoCode["IT"] = "IT";
|
|
374
|
-
TuiCountryIsoCode["JM"] = "JM";
|
|
375
|
-
TuiCountryIsoCode["JO"] = "JO";
|
|
376
|
-
TuiCountryIsoCode["JP"] = "JP";
|
|
377
|
-
TuiCountryIsoCode["KE"] = "KE";
|
|
378
|
-
TuiCountryIsoCode["KG"] = "KG";
|
|
379
|
-
TuiCountryIsoCode["KH"] = "KH";
|
|
380
|
-
TuiCountryIsoCode["KM"] = "KM";
|
|
381
|
-
TuiCountryIsoCode["KN"] = "KN";
|
|
382
|
-
TuiCountryIsoCode["KP"] = "KP";
|
|
383
|
-
TuiCountryIsoCode["KR"] = "KR";
|
|
384
|
-
TuiCountryIsoCode["KW"] = "KW";
|
|
385
|
-
TuiCountryIsoCode["KY"] = "KY";
|
|
386
|
-
TuiCountryIsoCode["KZ"] = "KZ";
|
|
387
|
-
TuiCountryIsoCode["LA"] = "LA";
|
|
388
|
-
TuiCountryIsoCode["LB"] = "LB";
|
|
389
|
-
TuiCountryIsoCode["LC"] = "LC";
|
|
390
|
-
TuiCountryIsoCode["LI"] = "LI";
|
|
391
|
-
TuiCountryIsoCode["LK"] = "LK";
|
|
392
|
-
TuiCountryIsoCode["LR"] = "LR";
|
|
393
|
-
TuiCountryIsoCode["LS"] = "LS";
|
|
394
|
-
TuiCountryIsoCode["LT"] = "LT";
|
|
395
|
-
TuiCountryIsoCode["LU"] = "LU";
|
|
396
|
-
TuiCountryIsoCode["LV"] = "LV";
|
|
397
|
-
TuiCountryIsoCode["LY"] = "LY";
|
|
398
|
-
TuiCountryIsoCode["MA"] = "MA";
|
|
399
|
-
TuiCountryIsoCode["MC"] = "MC";
|
|
400
|
-
TuiCountryIsoCode["MD"] = "MD";
|
|
401
|
-
TuiCountryIsoCode["ME"] = "ME";
|
|
402
|
-
TuiCountryIsoCode["MG"] = "MG";
|
|
403
|
-
TuiCountryIsoCode["MK"] = "MK";
|
|
404
|
-
TuiCountryIsoCode["ML"] = "ML";
|
|
405
|
-
TuiCountryIsoCode["MM"] = "MM";
|
|
406
|
-
TuiCountryIsoCode["MN"] = "MN";
|
|
407
|
-
TuiCountryIsoCode["MO"] = "MO";
|
|
408
|
-
TuiCountryIsoCode["MR"] = "MR";
|
|
409
|
-
TuiCountryIsoCode["MS"] = "MS";
|
|
410
|
-
TuiCountryIsoCode["MT"] = "MT";
|
|
411
|
-
TuiCountryIsoCode["MU"] = "MU";
|
|
412
|
-
TuiCountryIsoCode["MV"] = "MV";
|
|
413
|
-
TuiCountryIsoCode["MW"] = "MW";
|
|
414
|
-
TuiCountryIsoCode["MX"] = "MX";
|
|
415
|
-
TuiCountryIsoCode["MY"] = "MY";
|
|
416
|
-
TuiCountryIsoCode["MZ"] = "MZ";
|
|
417
|
-
TuiCountryIsoCode["NA"] = "NA";
|
|
418
|
-
TuiCountryIsoCode["NE"] = "NE";
|
|
419
|
-
TuiCountryIsoCode["NG"] = "NG";
|
|
420
|
-
TuiCountryIsoCode["NI"] = "NI";
|
|
421
|
-
TuiCountryIsoCode["NL"] = "NL";
|
|
422
|
-
TuiCountryIsoCode["NO"] = "NO";
|
|
423
|
-
TuiCountryIsoCode["NP"] = "NP";
|
|
424
|
-
TuiCountryIsoCode["NZ"] = "NZ";
|
|
425
|
-
TuiCountryIsoCode["OM"] = "OM";
|
|
426
|
-
TuiCountryIsoCode["PA"] = "PA";
|
|
427
|
-
TuiCountryIsoCode["PE"] = "PE";
|
|
428
|
-
TuiCountryIsoCode["PF"] = "PF";
|
|
429
|
-
TuiCountryIsoCode["PG"] = "PG";
|
|
430
|
-
TuiCountryIsoCode["PH"] = "PH";
|
|
431
|
-
TuiCountryIsoCode["PK"] = "PK";
|
|
432
|
-
TuiCountryIsoCode["PL"] = "PL";
|
|
433
|
-
TuiCountryIsoCode["PT"] = "PT";
|
|
434
|
-
TuiCountryIsoCode["PW"] = "PW";
|
|
435
|
-
TuiCountryIsoCode["PY"] = "PY";
|
|
436
|
-
TuiCountryIsoCode["QA"] = "QA";
|
|
437
|
-
TuiCountryIsoCode["RO"] = "RO";
|
|
438
|
-
TuiCountryIsoCode["RS"] = "RS";
|
|
439
|
-
TuiCountryIsoCode["RU"] = "RU";
|
|
440
|
-
TuiCountryIsoCode["RW"] = "RW";
|
|
441
|
-
TuiCountryIsoCode["SA"] = "SA";
|
|
442
|
-
TuiCountryIsoCode["SB"] = "SB";
|
|
443
|
-
TuiCountryIsoCode["SC"] = "SC";
|
|
444
|
-
TuiCountryIsoCode["SD"] = "SD";
|
|
445
|
-
TuiCountryIsoCode["SE"] = "SE";
|
|
446
|
-
TuiCountryIsoCode["SG"] = "SG";
|
|
447
|
-
TuiCountryIsoCode["SH"] = "SH";
|
|
448
|
-
TuiCountryIsoCode["SI"] = "SI";
|
|
449
|
-
TuiCountryIsoCode["SK"] = "SK";
|
|
450
|
-
TuiCountryIsoCode["SL"] = "SL";
|
|
451
|
-
TuiCountryIsoCode["SM"] = "SM";
|
|
452
|
-
TuiCountryIsoCode["SN"] = "SN";
|
|
453
|
-
TuiCountryIsoCode["SO"] = "SO";
|
|
454
|
-
TuiCountryIsoCode["SR"] = "SR";
|
|
455
|
-
TuiCountryIsoCode["ST"] = "ST";
|
|
456
|
-
TuiCountryIsoCode["SV"] = "SV";
|
|
457
|
-
TuiCountryIsoCode["SY"] = "SY";
|
|
458
|
-
TuiCountryIsoCode["SZ"] = "SZ";
|
|
459
|
-
TuiCountryIsoCode["TC"] = "TC";
|
|
460
|
-
TuiCountryIsoCode["TD"] = "TD";
|
|
461
|
-
TuiCountryIsoCode["TG"] = "TG";
|
|
462
|
-
TuiCountryIsoCode["TH"] = "TH";
|
|
463
|
-
TuiCountryIsoCode["TJ"] = "TJ";
|
|
464
|
-
TuiCountryIsoCode["TL"] = "TL";
|
|
465
|
-
TuiCountryIsoCode["TM"] = "TM";
|
|
466
|
-
TuiCountryIsoCode["TN"] = "TN";
|
|
467
|
-
TuiCountryIsoCode["TO"] = "TO";
|
|
468
|
-
TuiCountryIsoCode["TR"] = "TR";
|
|
469
|
-
TuiCountryIsoCode["TT"] = "TT";
|
|
470
|
-
TuiCountryIsoCode["TW"] = "TW";
|
|
471
|
-
TuiCountryIsoCode["TZ"] = "TZ";
|
|
472
|
-
TuiCountryIsoCode["UA"] = "UA";
|
|
473
|
-
TuiCountryIsoCode["UG"] = "UG";
|
|
474
|
-
TuiCountryIsoCode["UY"] = "UY";
|
|
475
|
-
TuiCountryIsoCode["UZ"] = "UZ";
|
|
476
|
-
TuiCountryIsoCode["VC"] = "VC";
|
|
477
|
-
TuiCountryIsoCode["VE"] = "VE";
|
|
478
|
-
TuiCountryIsoCode["VG"] = "VG";
|
|
479
|
-
TuiCountryIsoCode["VN"] = "VN";
|
|
480
|
-
TuiCountryIsoCode["VU"] = "VU";
|
|
481
|
-
TuiCountryIsoCode["WS"] = "WS";
|
|
482
|
-
TuiCountryIsoCode["YE"] = "YE";
|
|
483
|
-
TuiCountryIsoCode["ZA"] = "ZA";
|
|
484
|
-
TuiCountryIsoCode["ZM"] = "ZM";
|
|
485
|
-
TuiCountryIsoCode["ZW"] = "ZW";
|
|
486
|
-
TuiCountryIsoCode["US"] = "US";
|
|
487
|
-
TuiCountryIsoCode["CA"] = "CA";
|
|
488
|
-
})(TuiCountryIsoCode || (TuiCountryIsoCode = {}));
|
|
489
|
-
|
|
490
17
|
var TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS = {
|
|
491
18
|
countries: [],
|
|
492
|
-
countryIsoCode: TuiCountryIsoCode
|
|
19
|
+
countryIsoCode: TuiCountryIsoCode.RU,
|
|
493
20
|
};
|
|
494
21
|
var TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS = new InjectionToken("Default parameters for input phone international component", {
|
|
495
22
|
factory: function () { return TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS; },
|
|
@@ -499,10 +26,6 @@ var tuiInputPhoneInternationalOptionsProvider = function (options) { return ({
|
|
|
499
26
|
useValue: __assign(__assign({}, TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS), options),
|
|
500
27
|
}); };
|
|
501
28
|
|
|
502
|
-
var TUI_COUNTRIES_MASKS = new InjectionToken("Countries masks", {
|
|
503
|
-
factory: function () { return COUNTRIES_MASKS; },
|
|
504
|
-
});
|
|
505
|
-
|
|
506
29
|
/**
|
|
507
30
|
* @deprecated: use {@link tuiExtractValueFromEvent} instead
|
|
508
31
|
*/
|
|
@@ -519,19 +42,20 @@ var tuiExtractValueFromEvent = extractValueFromEvent;
|
|
|
519
42
|
// @dynamic
|
|
520
43
|
var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
521
44
|
__extends(TuiInputPhoneInternationalComponent, _super);
|
|
522
|
-
function TuiInputPhoneInternationalComponent(control, changeDetectorRef, countriesNames$, countriesMasks, options, flagPipe) {
|
|
45
|
+
function TuiInputPhoneInternationalComponent(control, changeDetectorRef, countriesNames$, countriesMasks, options, flagPipe, extractCountryCodePipe) {
|
|
523
46
|
var _this = _super.call(this, control, changeDetectorRef) || this;
|
|
524
47
|
_this.countriesNames$ = countriesNames$;
|
|
525
48
|
_this.countriesMasks = countriesMasks;
|
|
526
49
|
_this.options = options;
|
|
527
50
|
_this.flagPipe = flagPipe;
|
|
51
|
+
_this.extractCountryCodePipe = extractCountryCodePipe;
|
|
528
52
|
_this.countries = _this.options.countries;
|
|
529
53
|
_this.countryIsoCodeChange = new EventEmitter();
|
|
530
54
|
_this.countryIsoCode = _this.options.countryIsoCode;
|
|
531
55
|
_this.open = false;
|
|
532
56
|
_this.arrow = TUI_ARROW;
|
|
533
57
|
_this.isoToCountryCodeMapper = function (item) {
|
|
534
|
-
return _this.
|
|
58
|
+
return tuiIsoToCountryCode(_this.countriesMasks, item);
|
|
535
59
|
};
|
|
536
60
|
return _this;
|
|
537
61
|
}
|
|
@@ -564,14 +88,14 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
564
88
|
});
|
|
565
89
|
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "inputPhoneCountryCode", {
|
|
566
90
|
get: function () {
|
|
567
|
-
return this.
|
|
91
|
+
return tuiIsoToCountryCode(this.countriesMasks, this.countryIsoCode);
|
|
568
92
|
},
|
|
569
93
|
enumerable: true,
|
|
570
94
|
configurable: true
|
|
571
95
|
});
|
|
572
96
|
Object.defineProperty(TuiInputPhoneInternationalComponent.prototype, "phoneMaskAfterCountryCode", {
|
|
573
97
|
get: function () {
|
|
574
|
-
var countryCode = this.
|
|
98
|
+
var countryCode = this.inputPhoneCountryCode;
|
|
575
99
|
return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode], countryCode);
|
|
576
100
|
},
|
|
577
101
|
enumerable: true,
|
|
@@ -589,15 +113,15 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
589
113
|
configurable: true
|
|
590
114
|
});
|
|
591
115
|
TuiInputPhoneInternationalComponent.prototype.onPaste = function (event) {
|
|
592
|
-
var value =
|
|
593
|
-
var countryIsoCode = this.
|
|
116
|
+
var value = tuiExtractValueFromEvent(event).replace(TUI_NON_DIGITS_REGEXP, '');
|
|
117
|
+
var countryIsoCode = this.extractCountryCodePipe.transform(value, this.countries);
|
|
594
118
|
if (!countryIsoCode) {
|
|
595
119
|
this.updateValue(("" + this.inputPhoneCountryCode + value)
|
|
596
120
|
.replace(TUI_MASK_SYMBOLS_REGEXP, '')
|
|
597
|
-
.slice(0, this.
|
|
121
|
+
.slice(0, tuiGetMaxAllowedPhoneLength(this.countriesMasks, this.countryIsoCode)));
|
|
598
122
|
return;
|
|
599
123
|
}
|
|
600
|
-
if (countryIsoCode === TuiCountryIsoCode
|
|
124
|
+
if (countryIsoCode === TuiCountryIsoCode.RU) {
|
|
601
125
|
value = value.replace(/^8/, '7');
|
|
602
126
|
}
|
|
603
127
|
this.updateCountryIsoCode(countryIsoCode);
|
|
@@ -615,7 +139,7 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
615
139
|
this.updateCountryIsoCode(isoCode);
|
|
616
140
|
// recalculates mask inside inputPhone to prevent isoCode conflict
|
|
617
141
|
this.changeDetectorRef.detectChanges();
|
|
618
|
-
var maxLength = this.
|
|
142
|
+
var maxLength = tuiGetMaxAllowedPhoneLength(this.countriesMasks, isoCode);
|
|
619
143
|
if (this.value.length > maxLength) {
|
|
620
144
|
this.updateValue(this.value.slice(0, maxLength));
|
|
621
145
|
}
|
|
@@ -627,8 +151,12 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
627
151
|
_super.prototype.setDisabledState.call(this);
|
|
628
152
|
this.close();
|
|
629
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated use `{{ countryIsoCode | tuiIsoToCountryCode }}`
|
|
156
|
+
* TODO drop in v4.0
|
|
157
|
+
*/
|
|
630
158
|
TuiInputPhoneInternationalComponent.prototype.isoToCountryCode = function (isoCode) {
|
|
631
|
-
return this.countriesMasks
|
|
159
|
+
return tuiIsoToCountryCode(this.countriesMasks, isoCode);
|
|
632
160
|
};
|
|
633
161
|
TuiInputPhoneInternationalComponent.prototype.onModelChange = function (value) {
|
|
634
162
|
this.updateValue(value);
|
|
@@ -645,25 +173,10 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
645
173
|
TuiInputPhoneInternationalComponent.prototype.close = function () {
|
|
646
174
|
this.open = false;
|
|
647
175
|
};
|
|
648
|
-
TuiInputPhoneInternationalComponent.prototype.getMaxAllowedLength = function (isoCode) {
|
|
649
|
-
return this.countriesMasks[isoCode].replace(/[()\- ]/g, '').length;
|
|
650
|
-
};
|
|
651
176
|
TuiInputPhoneInternationalComponent.prototype.updateCountryIsoCode = function (code) {
|
|
652
177
|
this.countryIsoCode = code;
|
|
653
178
|
this.countryIsoCodeChange.emit(code);
|
|
654
179
|
};
|
|
655
|
-
TuiInputPhoneInternationalComponent.prototype.extractCountryCode = function (value) {
|
|
656
|
-
var _this = this;
|
|
657
|
-
return this.countries.find(function (countryIsoCode) {
|
|
658
|
-
var ruCodeTest = countryIsoCode === TuiCountryIsoCode$1.RU &&
|
|
659
|
-
/^[7 | 8]/.test(value) &&
|
|
660
|
-
/^(?!880[1-9 ])/.test(value) &&
|
|
661
|
-
value.length + 1 === _this.getMaxAllowedLength(TuiCountryIsoCode$1.RU);
|
|
662
|
-
return (ruCodeTest ||
|
|
663
|
-
(value.startsWith(_this.isoToCountryCode(countryIsoCode).replace(CHAR_PLUS, '')) &&
|
|
664
|
-
value.length + 1 === _this.getMaxAllowedLength(countryIsoCode)));
|
|
665
|
-
});
|
|
666
|
-
};
|
|
667
180
|
var TuiInputPhoneInternationalComponent_1;
|
|
668
181
|
TuiInputPhoneInternationalComponent.ctorParameters = function () { return [
|
|
669
182
|
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
|
|
@@ -671,7 +184,8 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
671
184
|
{ type: Observable, decorators: [{ type: Inject, args: [TUI_COUNTRIES,] }] },
|
|
672
185
|
{ type: undefined, decorators: [{ type: Inject, args: [TUI_COUNTRIES_MASKS,] }] },
|
|
673
186
|
{ type: undefined, decorators: [{ type: Inject, args: [TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS,] }] },
|
|
674
|
-
{ type: TuiFlagPipe, decorators: [{ type: Inject, args: [TuiFlagPipe,] }] }
|
|
187
|
+
{ type: TuiFlagPipe, decorators: [{ type: Inject, args: [TuiFlagPipe,] }] },
|
|
188
|
+
{ type: TuiToCountryCodePipe, decorators: [{ type: Inject, args: [TuiToCountryCodePipe,] }] }
|
|
675
189
|
]; };
|
|
676
190
|
__decorate([
|
|
677
191
|
ViewChild(TuiInputPhoneComponent)
|
|
@@ -709,6 +223,7 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
709
223
|
FIXED_DROPDOWN_CONTROLLER_PROVIDER,
|
|
710
224
|
// TODO: for backward compatibility only. Drop in v4.0
|
|
711
225
|
TuiFlagPipe,
|
|
226
|
+
TuiToCountryCodePipe,
|
|
712
227
|
],
|
|
713
228
|
styles: [":host{display:block}:host._disabled{pointer-events:none}.t-hosted-dropdown{display:block}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-arrow-icon{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-arrow-icon:hover{color:var(--tui-text-02)}:host._disabled .t-arrow-icon,:host._readonly .t-arrow-icon{pointer-events:none}:host[data-mode=onDark] .t-arrow-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-arrow-icon:hover{color:var(--tui-text-01-night)}.t-arrow-icon_open{transform:rotate(180deg)}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag{width:1.75rem;height:1.25rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-02);margin-right:.25rem}"]
|
|
714
229
|
}),
|
|
@@ -719,7 +234,8 @@ var TuiInputPhoneInternationalComponent = /** @class */ (function (_super) {
|
|
|
719
234
|
__param(2, Inject(TUI_COUNTRIES)),
|
|
720
235
|
__param(3, Inject(TUI_COUNTRIES_MASKS)),
|
|
721
236
|
__param(4, Inject(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS)),
|
|
722
|
-
__param(5, Inject(TuiFlagPipe))
|
|
237
|
+
__param(5, Inject(TuiFlagPipe)),
|
|
238
|
+
__param(6, Inject(TuiToCountryCodePipe))
|
|
723
239
|
], TuiInputPhoneInternationalComponent);
|
|
724
240
|
return TuiInputPhoneInternationalComponent;
|
|
725
241
|
}(AbstractTuiControl));
|
|
@@ -757,5 +273,5 @@ var TuiInputPhoneInternationalModule = /** @class */ (function () {
|
|
|
757
273
|
* Generated bundle index. Do not edit.
|
|
758
274
|
*/
|
|
759
275
|
|
|
760
|
-
export {
|
|
276
|
+
export { TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS, TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS, TuiInputPhoneInternationalComponent, TuiInputPhoneInternationalModule, extractValueFromEvent, tuiExtractValueFromEvent, tuiInputPhoneInternationalOptionsProvider };
|
|
761
277
|
//# sourceMappingURL=taiga-ui-kit-components-input-phone-international.js.map
|