intl-tel-input 25.4.7 → 25.4.8
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 +5 -5
- package/angular/build/IntlTelInput.cjs +9 -9
- package/angular/build/IntlTelInput.d.ts +1 -1
- package/angular/build/IntlTelInput.js +9 -9
- package/angular/build/IntlTelInputWithUtils.cjs +9 -9
- package/angular/build/IntlTelInputWithUtils.js +9 -9
- package/angular/build/intl-tel-input/angular.js +205 -0
- package/angular/build/intl-tel-input/angularWithUtils.js +206 -0
- package/angular/build/intl-tel-input/data.js +1096 -0
- package/angular/build/intl-tel-input/i18n/ar/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ar/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ar/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/bg/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/bg/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/bg/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/bn/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/bn/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/bn/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/bs/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/bs/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/bs/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ca/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ca/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ca/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/cs/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/cs/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/cs/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/da/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/da/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/da/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/de/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/de/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/de/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ee/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ee/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ee/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/el/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/el/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/el/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/en/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/en/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/en/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/es/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/es/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/es/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/fa/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/fa/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/fa/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/fi/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/fi/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/fi/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/fr/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/fr/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/fr/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/hi/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/hi/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/hi/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/hr/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/hr/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/hr/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/hu/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/hu/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/hu/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/id/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/id/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/id/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/index.js +40 -0
- package/angular/build/intl-tel-input/i18n/it/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/it/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/it/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ja/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ja/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ja/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ko/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ko/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ko/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/mr/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/mr/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/mr/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/nl/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/nl/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/nl/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/no/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/no/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/no/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/pl/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/pl/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/pl/interface.js +24 -0
- package/angular/build/intl-tel-input/i18n/pt/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/pt/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/pt/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ro/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ro/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ro/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ru/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ru/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ru/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/sk/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/sk/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/sk/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/sv/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/sv/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/sv/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/te/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/te/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/te/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/th/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/th/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/th/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/tr/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/tr/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/tr/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/types.js +1 -0
- package/angular/build/intl-tel-input/i18n/uk/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/uk/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/uk/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/ur/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/ur/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/ur/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/uz/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/uz/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/uz/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/vi/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/vi/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/vi/interface.js +13 -0
- package/angular/build/intl-tel-input/i18n/zh/countries.js +245 -0
- package/angular/build/intl-tel-input/i18n/zh/index.js +5 -0
- package/angular/build/intl-tel-input/i18n/zh/interface.js +13 -0
- package/angular/build/intl-tel-input/intlTelInputWithUtils.js +4 -0
- package/angular/build/intl-tel-input/utils.js +1341 -0
- package/angular/build/intl-tel-input.js +1780 -0
- package/angular/build/types/intl-tel-input/angular.d.ts +40 -0
- package/angular/build/types/intl-tel-input/angularWithUtils.d.ts +40 -0
- package/angular/build/types/intl-tel-input/data.d.ts +11 -0
- package/angular/build/types/intl-tel-input/i18n/ar/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ar/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ar/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bg/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bg/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/bg/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bn/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bn/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/bn/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bs/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/bs/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/bs/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ca/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ca/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ca/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/cs/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/cs/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/cs/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/da/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/da/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/da/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/de/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/de/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/de/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ee/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ee/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ee/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/el/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/el/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/el/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/en/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/en/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/en/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/es/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/es/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/es/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fa/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fa/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/fa/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fi/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fi/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/fi/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fr/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/fr/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/fr/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hi/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hi/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/hi/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hr/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hr/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/hr/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hu/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/hu/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/hu/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/id/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/id/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/id/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/index.d.ts +39 -0
- package/angular/build/types/intl-tel-input/i18n/it/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/it/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/it/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ja/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ja/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ja/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ko/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ko/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ko/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/mr/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/mr/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/mr/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/nl/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/nl/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/nl/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/no/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/no/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/no/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/pl/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/pl/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/pl/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/pt/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/pt/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/pt/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ro/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ro/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ro/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ru/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ru/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ru/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/sk/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/sk/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/sk/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/sv/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/sv/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/sv/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/te/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/te/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/te/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/th/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/th/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/th/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/tr/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/tr/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/tr/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/types.d.ts +254 -0
- package/angular/build/types/intl-tel-input/i18n/uk/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/uk/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/uk/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ur/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/ur/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/ur/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/uz/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/uz/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/uz/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/vi/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/vi/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/vi/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/zh/countries.d.ts +3 -0
- package/angular/build/types/intl-tel-input/i18n/zh/index.d.ts +6 -0
- package/angular/build/types/intl-tel-input/i18n/zh/interface.d.ts +3 -0
- package/angular/build/types/intl-tel-input/intlTelInputWithUtils.d.ts +2 -0
- package/angular/build/types/intl-tel-input/utils.d.ts +2 -0
- package/angular/build/types/intl-tel-input.d.ts +199 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.d.ts +1 -1
- package/build/js/intlTelInput.js +11 -11
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +11 -11
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +5 -7
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +10 -10
- package/react/build/IntlTelInput.d.ts +1 -1
- package/react/build/IntlTelInput.js +10 -10
- package/react/build/IntlTelInputWithUtils.cjs +10 -10
- package/react/build/IntlTelInputWithUtils.js +10 -10
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +70 -72
- package/vue/build/IntlTelInputWithUtils.mjs +271 -273
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mergeModels as
|
|
2
|
-
const
|
|
1
|
+
import { mergeModels as i2, useModel as D2, ref as I1, onMounted as M2, watch as P2, onUnmounted as x2, withDirectives as R2, createElementBlock as B2, openBlock as k2, mergeProps as O2, vModelText as G2 } from "vue";
|
|
2
|
+
const s2 = [
|
|
3
3
|
[
|
|
4
4
|
"af",
|
|
5
5
|
// Afghanistan
|
|
@@ -1323,8 +1323,8 @@ const r2 = [
|
|
|
1323
1323
|
"263"
|
|
1324
1324
|
]
|
|
1325
1325
|
], W = [];
|
|
1326
|
-
for (let y = 0; y <
|
|
1327
|
-
const e =
|
|
1326
|
+
for (let y = 0; y < s2.length; y++) {
|
|
1327
|
+
const e = s2[y];
|
|
1328
1328
|
W[y] = {
|
|
1329
1329
|
name: "",
|
|
1330
1330
|
// this is now populated in the plugin
|
|
@@ -1590,11 +1590,11 @@ const F2 = {
|
|
|
1590
1590
|
// additional countries (not supported by country-list library)
|
|
1591
1591
|
ac: "Ascension Island",
|
|
1592
1592
|
xk: "Kosovo"
|
|
1593
|
-
},
|
|
1593
|
+
}, u2 = { ...F2, ...U2 };
|
|
1594
1594
|
for (let y = 0; y < W.length; y++)
|
|
1595
|
-
W[y].name =
|
|
1595
|
+
W[y].name = u2[W[y].iso2];
|
|
1596
1596
|
let V2 = 0;
|
|
1597
|
-
const
|
|
1597
|
+
const l2 = {
|
|
1598
1598
|
//* Whether or not to allow the dropdown.
|
|
1599
1599
|
allowDropdown: !0,
|
|
1600
1600
|
//* Add a placeholder in the input with an example number for the selected country.
|
|
@@ -1667,7 +1667,7 @@ const a2 = {
|
|
|
1667
1667
|
"887",
|
|
1668
1668
|
"888",
|
|
1669
1669
|
"889"
|
|
1670
|
-
], c1 = (y) => y.replace(/\D/g, ""),
|
|
1670
|
+
], c1 = (y) => y.replace(/\D/g, ""), r2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), o2 = (y) => {
|
|
1671
1671
|
const e = c1(y);
|
|
1672
1672
|
if (e.charAt(0) === "1") {
|
|
1673
1673
|
const n = e.substr(1, 3);
|
|
@@ -1694,13 +1694,13 @@ const a2 = {
|
|
|
1694
1694
|
};
|
|
1695
1695
|
class j2 {
|
|
1696
1696
|
constructor(e, n = {}) {
|
|
1697
|
-
this.id = V2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({},
|
|
1697
|
+
this.id = V2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, l2, n), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
|
|
1698
1698
|
}
|
|
1699
1699
|
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1700
1700
|
_init() {
|
|
1701
1701
|
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1702
1702
|
const e = this.options.allowDropdown || this.options.separateDialCode;
|
|
1703
|
-
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...
|
|
1703
|
+
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...u2, ...this.options.i18n };
|
|
1704
1704
|
const n = new Promise((o, a) => {
|
|
1705
1705
|
this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = a;
|
|
1706
1706
|
}), s = new Promise((o, a) => {
|
|
@@ -1787,7 +1787,7 @@ class j2 {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
//* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
|
|
1789
1789
|
_generateMarkup() {
|
|
1790
|
-
var
|
|
1790
|
+
var _, A, G;
|
|
1791
1791
|
this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
|
|
1792
1792
|
const {
|
|
1793
1793
|
allowDropdown: e,
|
|
@@ -1798,17 +1798,17 @@ class j2 {
|
|
|
1798
1798
|
dropdownContainer: c,
|
|
1799
1799
|
fixDropdownWidth: g,
|
|
1800
1800
|
useFullscreenPopup: f,
|
|
1801
|
-
countrySearch:
|
|
1802
|
-
i18n:
|
|
1801
|
+
countrySearch: v,
|
|
1802
|
+
i18n: S
|
|
1803
1803
|
} = this.options;
|
|
1804
|
-
let
|
|
1805
|
-
e && (
|
|
1806
|
-
const
|
|
1807
|
-
if ((
|
|
1804
|
+
let w = "iti";
|
|
1805
|
+
e && (w += " iti--allow-dropdown"), s && (w += " iti--show-flags"), o && (w += ` ${o}`), f || (w += " iti--inline-dropdown");
|
|
1806
|
+
const L = T("div", { class: w });
|
|
1807
|
+
if ((_ = this.telInput.parentNode) == null || _.insertBefore(L, this.telInput), e || s || n) {
|
|
1808
1808
|
this.countryContainer = T(
|
|
1809
1809
|
"div",
|
|
1810
1810
|
{ class: "iti__country-container" },
|
|
1811
|
-
|
|
1811
|
+
L
|
|
1812
1812
|
), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = T(
|
|
1813
1813
|
"button",
|
|
1814
1814
|
{
|
|
@@ -1844,15 +1844,15 @@ class j2 {
|
|
|
1844
1844
|
if (this.dropdownContent = T("div", {
|
|
1845
1845
|
id: `iti-${this.id}__dropdown-content`,
|
|
1846
1846
|
class: `iti__dropdown-content iti__hide ${M}`
|
|
1847
|
-
}),
|
|
1847
|
+
}), v && (this.searchInput = T(
|
|
1848
1848
|
"input",
|
|
1849
1849
|
{
|
|
1850
1850
|
type: "text",
|
|
1851
1851
|
class: "iti__search-input",
|
|
1852
|
-
placeholder:
|
|
1852
|
+
placeholder: S.searchPlaceholder,
|
|
1853
1853
|
role: "combobox",
|
|
1854
1854
|
"aria-expanded": "true",
|
|
1855
|
-
"aria-label":
|
|
1855
|
+
"aria-label": S.searchPlaceholder,
|
|
1856
1856
|
"aria-controls": `iti-${this.id}__country-listbox`,
|
|
1857
1857
|
"aria-autocomplete": "list",
|
|
1858
1858
|
autocomplete: "off"
|
|
@@ -1868,31 +1868,31 @@ class j2 {
|
|
|
1868
1868
|
class: "iti__country-list",
|
|
1869
1869
|
id: `iti-${this.id}__country-listbox`,
|
|
1870
1870
|
role: "listbox",
|
|
1871
|
-
"aria-label":
|
|
1871
|
+
"aria-label": S.countryListAriaLabel
|
|
1872
1872
|
},
|
|
1873
1873
|
this.dropdownContent
|
|
1874
|
-
), this._appendListItems(),
|
|
1875
|
-
let
|
|
1876
|
-
o && (
|
|
1874
|
+
), this._appendListItems(), v && this._updateSearchResultsText(), c) {
|
|
1875
|
+
let k = "iti iti--container";
|
|
1876
|
+
o && (k += ` ${o}`), f ? k += " iti--fullscreen-popup" : k += " iti--inline-dropdown", this.dropdown = T("div", { class: k }), this.dropdown.appendChild(this.dropdownContent);
|
|
1877
1877
|
} else
|
|
1878
1878
|
this.countryContainer.appendChild(this.dropdownContent);
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
if (
|
|
1881
|
+
if (L.appendChild(this.telInput), this._updateInputPadding(), a) {
|
|
1882
1882
|
const F = this.telInput.getAttribute("name") || "", M = a(F);
|
|
1883
1883
|
if (M.phone) {
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1884
|
+
const k = (A = this.telInput.form) == null ? void 0 : A.querySelector(`input[name="${M.phone}"]`);
|
|
1885
|
+
k ? this.hiddenInput = k : (this.hiddenInput = T("input", {
|
|
1886
1886
|
type: "hidden",
|
|
1887
1887
|
name: M.phone
|
|
1888
|
-
}),
|
|
1888
|
+
}), L.appendChild(this.hiddenInput));
|
|
1889
1889
|
}
|
|
1890
1890
|
if (M.country) {
|
|
1891
|
-
const
|
|
1892
|
-
|
|
1891
|
+
const k = (G = this.telInput.form) == null ? void 0 : G.querySelector(`input[name="${M.country}"]`);
|
|
1892
|
+
k ? this.hiddenInputCountry = k : (this.hiddenInputCountry = T("input", {
|
|
1893
1893
|
type: "hidden",
|
|
1894
1894
|
name: M.country
|
|
1895
|
-
}),
|
|
1895
|
+
}), L.appendChild(this.hiddenInputCountry));
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
@@ -1921,12 +1921,12 @@ class j2 {
|
|
|
1921
1921
|
//* 1. Extracting a dial code from the given number
|
|
1922
1922
|
//* 2. Using explicit initialCountry
|
|
1923
1923
|
_setInitialState(e = !1) {
|
|
1924
|
-
const n = this.telInput.getAttribute("value"), s = this.telInput.value, a = n && n.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? n : s, c = this._getDialCode(a), g =
|
|
1924
|
+
const n = this.telInput.getAttribute("value"), s = this.telInput.value, a = n && n.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? n : s, c = this._getDialCode(a), g = o2(a), { initialCountry: f, geoIpLookup: v } = this.options, S = f === "auto" && v;
|
|
1925
1925
|
if (c && !g)
|
|
1926
1926
|
this._updateCountryFromNumber(a);
|
|
1927
|
-
else if (!
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1927
|
+
else if (!S || e) {
|
|
1928
|
+
const w = f ? f.toLowerCase() : "";
|
|
1929
|
+
w && this._getCountryData(w, !0) ? this._setCountry(w) : c && g ? this._setCountry("us") : this._setCountry();
|
|
1930
1930
|
}
|
|
1931
1931
|
a && this._updateValFromNumber(a);
|
|
1932
1932
|
}
|
|
@@ -1989,16 +1989,16 @@ class j2 {
|
|
|
1989
1989
|
let g = !1;
|
|
1990
1990
|
new RegExp("\\p{L}", "u").test(this.telInput.value) && (g = !0), this._handleInputEvent = (f) => {
|
|
1991
1991
|
if (this.isAndroid && (f == null ? void 0 : f.data) === "+" && s && a && c) {
|
|
1992
|
-
const
|
|
1993
|
-
this.telInput.value =
|
|
1992
|
+
const L = this.telInput.selectionStart || 0, _ = this.telInput.value.substring(0, L - 1), A = this.telInput.value.substring(L);
|
|
1993
|
+
this.telInput.value = _ + A, this._openDropdownWithPlus();
|
|
1994
1994
|
return;
|
|
1995
1995
|
}
|
|
1996
1996
|
this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1999
|
-
const
|
|
2000
|
-
if (n && !g && !
|
|
2001
|
-
const
|
|
1997
|
+
const v = (f == null ? void 0 : f.data) && /[^+0-9]/.test(f.data), S = (f == null ? void 0 : f.inputType) === "insertFromPaste" && this.telInput.value;
|
|
1998
|
+
v || S && !e ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
|
|
1999
|
+
const w = (f == null ? void 0 : f.detail) && f.detail.isSetNumber && !o;
|
|
2000
|
+
if (n && !g && !w) {
|
|
2001
|
+
const L = this.telInput.selectionStart || 0, A = this.telInput.value.substring(0, L).replace(/[^+0-9]/g, "").length, G = (f == null ? void 0 : f.inputType) === "deleteContentForward", F = this._formatNumberAsYouType(), M = H2(A, F, L, G);
|
|
2002
2002
|
this.telInput.value = F, this.telInput.setSelectionRange(M, M);
|
|
2003
2003
|
}
|
|
2004
2004
|
}, this.telInput.addEventListener("input", this._handleInputEvent), (e || s) && (this._handleKeydownEvent = (f) => {
|
|
@@ -2008,13 +2008,8 @@ class j2 {
|
|
|
2008
2008
|
return;
|
|
2009
2009
|
}
|
|
2010
2010
|
if (e) {
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2013
|
-
if (_) {
|
|
2014
|
-
const f1 = this.selectedCountryData.iso2;
|
|
2015
|
-
P = this._getCountryFromNumber(G) !== f1;
|
|
2016
|
-
}
|
|
2017
|
-
(!I || M && !P && !b) && f.preventDefault();
|
|
2011
|
+
const v = this.telInput.value, w = !(v.charAt(0) === "+") && this.telInput.selectionStart === 0 && f.key === "+", L = /^[0-9]$/.test(f.key), _ = s ? L : w || L, A = v.slice(0, this.telInput.selectionStart) + f.key + v.slice(this.telInput.selectionEnd), G = this._getFullNumber(A), F = C.utils.getCoreNumber(G, this.selectedCountryData.iso2), M = this.maxCoreNumberLength && F.length > this.maxCoreNumberLength, f1 = this._getNewCountryFromNumber(G) !== null;
|
|
2012
|
+
(!_ || M && !f1 && !w) && f.preventDefault();
|
|
2018
2013
|
}
|
|
2019
2014
|
}
|
|
2020
2015
|
}, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
|
|
@@ -2103,12 +2098,12 @@ class j2 {
|
|
|
2103
2098
|
_filterCountries(e, n = !1) {
|
|
2104
2099
|
let s = !0;
|
|
2105
2100
|
this.countryList.innerHTML = "";
|
|
2106
|
-
const o =
|
|
2101
|
+
const o = r2(e);
|
|
2107
2102
|
for (let a = 0; a < this.countries.length; a++) {
|
|
2108
|
-
const c = this.countries[a], g =
|
|
2109
|
-
if (n || g.includes(o) ||
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2103
|
+
const c = this.countries[a], g = r2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((S) => S[0]).join("").toLowerCase(), v = `+${c.dialCode}`;
|
|
2104
|
+
if (n || g.includes(o) || v.includes(o) || c.iso2.includes(o) || f.includes(o)) {
|
|
2105
|
+
const S = c.nodeById[this.id];
|
|
2106
|
+
S && this.countryList.appendChild(S), s && (this._highlightListItem(S, !1), s = !1);
|
|
2112
2107
|
}
|
|
2113
2108
|
}
|
|
2114
2109
|
s && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
|
|
@@ -2146,7 +2141,7 @@ class j2 {
|
|
|
2146
2141
|
//* Check if need to select a new country based on the given number
|
|
2147
2142
|
//* Note: called from _setInitialState, keyup handler, setNumber.
|
|
2148
2143
|
_updateCountryFromNumber(e) {
|
|
2149
|
-
const n = this.
|
|
2144
|
+
const n = this._getNewCountryFromNumber(e);
|
|
2150
2145
|
return n !== null ? this._setCountry(n) : !1;
|
|
2151
2146
|
}
|
|
2152
2147
|
_ensureHasDialCode(e) {
|
|
@@ -2156,21 +2151,24 @@ class j2 {
|
|
|
2156
2151
|
const c = s && e.charAt(0) === s && !this.options.separateDialCode ? e.substring(1) : e;
|
|
2157
2152
|
return `+${n}${c}`;
|
|
2158
2153
|
}
|
|
2159
|
-
|
|
2154
|
+
// Get the country ISO2 code from the given number
|
|
2155
|
+
// BUT ONLY IF ITS CHANGED FROM THE CURRENTLY SELECTED COUNTRY
|
|
2156
|
+
// NOTE: consider refactoring this to be more clear
|
|
2157
|
+
_getNewCountryFromNumber(e) {
|
|
2160
2158
|
const n = e.indexOf("+");
|
|
2161
2159
|
let s = n ? e.substring(n) : e;
|
|
2162
2160
|
const o = this.selectedCountryData.iso2, a = this.selectedCountryData.dialCode;
|
|
2163
2161
|
s = this._ensureHasDialCode(s);
|
|
2164
2162
|
const c = this._getDialCode(s, !0), g = c1(s);
|
|
2165
2163
|
if (c) {
|
|
2166
|
-
const f = c1(c),
|
|
2167
|
-
if (!o && this.defaultCountry &&
|
|
2164
|
+
const f = c1(c), v = this.dialCodeToIso2Map[f];
|
|
2165
|
+
if (!o && this.defaultCountry && v.includes(this.defaultCountry))
|
|
2168
2166
|
return this.defaultCountry;
|
|
2169
|
-
const
|
|
2170
|
-
if (!(a === "1" &&
|
|
2171
|
-
for (let
|
|
2172
|
-
if (
|
|
2173
|
-
return
|
|
2167
|
+
const S = this.selectedCountryData.areaCodes && g.length > f.length, w = o && v.includes(o) && !S;
|
|
2168
|
+
if (!(a === "1" && o2(g)) && !w) {
|
|
2169
|
+
for (let _ = 0; _ < v.length; _++)
|
|
2170
|
+
if (v[_])
|
|
2171
|
+
return v[_];
|
|
2174
2172
|
}
|
|
2175
2173
|
} else {
|
|
2176
2174
|
if (s.charAt(0) === "+" && g.length)
|
|
@@ -2300,12 +2298,12 @@ class j2 {
|
|
|
2300
2298
|
}
|
|
2301
2299
|
//* Check if an element is visible within it's container, else scroll until it is.
|
|
2302
2300
|
_scrollTo(e) {
|
|
2303
|
-
const n = this.countryList, s = document.documentElement.scrollTop, o = n.offsetHeight, a = n.getBoundingClientRect().top + s, c = a + o, g = e.offsetHeight, f = e.getBoundingClientRect().top + s,
|
|
2301
|
+
const n = this.countryList, s = document.documentElement.scrollTop, o = n.offsetHeight, a = n.getBoundingClientRect().top + s, c = a + o, g = e.offsetHeight, f = e.getBoundingClientRect().top + s, v = f + g, S = f - a + n.scrollTop;
|
|
2304
2302
|
if (f < a)
|
|
2305
|
-
n.scrollTop =
|
|
2306
|
-
else if (
|
|
2307
|
-
const
|
|
2308
|
-
n.scrollTop =
|
|
2303
|
+
n.scrollTop = S;
|
|
2304
|
+
else if (v > c) {
|
|
2305
|
+
const w = o - g;
|
|
2306
|
+
n.scrollTop = S - w;
|
|
2309
2307
|
}
|
|
2310
2308
|
}
|
|
2311
2309
|
//* Replace any existing dial code with the new one
|
|
@@ -2515,7 +2513,7 @@ const W2 = (y) => {
|
|
|
2515
2513
|
return n._init(), y.setAttribute("data-intl-tel-input-id", n.id.toString()), C.instances[n.id] = n, y.iti = n, n;
|
|
2516
2514
|
},
|
|
2517
2515
|
{
|
|
2518
|
-
defaults:
|
|
2516
|
+
defaults: l2,
|
|
2519
2517
|
//* Using a static var like this allows us to mock it in the tests.
|
|
2520
2518
|
documentReady: () => document.readyState === "complete",
|
|
2521
2519
|
//* Get the country data object.
|
|
@@ -2530,7 +2528,7 @@ const W2 = (y) => {
|
|
|
2530
2528
|
attachUtils: W2,
|
|
2531
2529
|
startedLoadingUtilsScript: !1,
|
|
2532
2530
|
startedLoadingAutoCountry: !1,
|
|
2533
|
-
version: "25.4.
|
|
2531
|
+
version: "25.4.8"
|
|
2534
2532
|
}
|
|
2535
2533
|
);
|
|
2536
2534
|
(function() {
|
|
@@ -2576,7 +2574,7 @@ const W2 = (y) => {
|
|
|
2576
2574
|
}
|
|
2577
2575
|
new g();
|
|
2578
2576
|
const f = {};
|
|
2579
|
-
class
|
|
2577
|
+
class v {
|
|
2580
2578
|
constructor() {
|
|
2581
2579
|
if (f !== f) throw Error("SafeStyleSheet is not meant to be built directly");
|
|
2582
2580
|
}
|
|
@@ -2584,34 +2582,34 @@ const W2 = (y) => {
|
|
|
2584
2582
|
return "";
|
|
2585
2583
|
}
|
|
2586
2584
|
}
|
|
2587
|
-
new
|
|
2588
|
-
const
|
|
2589
|
-
class
|
|
2585
|
+
new v();
|
|
2586
|
+
const S = {};
|
|
2587
|
+
class w {
|
|
2590
2588
|
constructor() {
|
|
2591
2589
|
var t = y.trustedTypes && y.trustedTypes.emptyHTML || "";
|
|
2592
|
-
if (
|
|
2590
|
+
if (S !== S) throw Error("SafeHtml is not meant to be built directly");
|
|
2593
2591
|
this.g = t;
|
|
2594
2592
|
}
|
|
2595
2593
|
toString() {
|
|
2596
2594
|
return this.g.toString();
|
|
2597
2595
|
}
|
|
2598
2596
|
}
|
|
2599
|
-
new
|
|
2600
|
-
function
|
|
2597
|
+
new w();
|
|
2598
|
+
function L(d, t) {
|
|
2601
2599
|
switch (this.g = d, this.l = !!t.aa, this.h = t.i, this.s = t.type, this.o = !1, this.h) {
|
|
2602
2600
|
case G:
|
|
2603
2601
|
case F:
|
|
2604
2602
|
case M:
|
|
2605
|
-
case
|
|
2603
|
+
case k:
|
|
2606
2604
|
case f1:
|
|
2607
2605
|
case A:
|
|
2608
|
-
case
|
|
2606
|
+
case _:
|
|
2609
2607
|
this.o = !0;
|
|
2610
2608
|
}
|
|
2611
2609
|
this.j = t.defaultValue;
|
|
2612
2610
|
}
|
|
2613
|
-
var
|
|
2614
|
-
function
|
|
2611
|
+
var _ = 1, A = 2, G = 3, F = 4, M = 6, k = 16, f1 = 18;
|
|
2612
|
+
function h2(d, t) {
|
|
2615
2613
|
for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
|
|
2616
2614
|
var $ = t[d];
|
|
2617
2615
|
this.g[$.g] = $;
|
|
@@ -2622,36 +2620,36 @@ const W2 = (y) => {
|
|
|
2622
2620
|
return t.g - $.g;
|
|
2623
2621
|
}), d;
|
|
2624
2622
|
}
|
|
2625
|
-
function
|
|
2623
|
+
function x() {
|
|
2626
2624
|
this.h = {}, this.j = this.m().g, this.g = this.l = null;
|
|
2627
2625
|
}
|
|
2628
|
-
|
|
2629
|
-
return
|
|
2630
|
-
},
|
|
2626
|
+
x.prototype.has = function(d) {
|
|
2627
|
+
return R(this, d.g);
|
|
2628
|
+
}, x.prototype.get = function(d, t) {
|
|
2631
2629
|
return p(this, d.g, t);
|
|
2632
|
-
},
|
|
2630
|
+
}, x.prototype.set = function(d, t) {
|
|
2633
2631
|
E(this, d.g, t);
|
|
2634
|
-
},
|
|
2635
|
-
|
|
2632
|
+
}, x.prototype.add = function(d, t) {
|
|
2633
|
+
S1(this, d.g, t);
|
|
2636
2634
|
};
|
|
2637
|
-
function
|
|
2635
|
+
function v1(d, t) {
|
|
2638
2636
|
for (var $ = c2(d.m()), i = 0; i < $.length; i++) {
|
|
2639
2637
|
var r = $[i], u = r.g;
|
|
2640
|
-
if (
|
|
2638
|
+
if (R(t, u)) {
|
|
2641
2639
|
d.g && delete d.g[r.g];
|
|
2642
2640
|
var l = r.h == 11 || r.h == 10;
|
|
2643
2641
|
if (r.l) {
|
|
2644
|
-
r =
|
|
2645
|
-
for (var h = 0; h < r.length; h++)
|
|
2646
|
-
} else r = n1(t, u), l ? (l = n1(d, u)) ?
|
|
2642
|
+
r = P(t, u);
|
|
2643
|
+
for (var h = 0; h < r.length; h++) S1(d, u, l ? r[h].clone() : r[h]);
|
|
2644
|
+
} else r = n1(t, u), l ? (l = n1(d, u)) ? v1(l, r) : E(d, u, r.clone()) : E(d, u, r);
|
|
2647
2645
|
}
|
|
2648
2646
|
}
|
|
2649
2647
|
}
|
|
2650
|
-
|
|
2648
|
+
x.prototype.clone = function() {
|
|
2651
2649
|
var d = new this.constructor();
|
|
2652
|
-
return d != this && (d.h = {}, d.g && (d.g = {}),
|
|
2650
|
+
return d != this && (d.h = {}, d.g && (d.g = {}), v1(d, this)), d;
|
|
2653
2651
|
};
|
|
2654
|
-
function
|
|
2652
|
+
function R(d, t) {
|
|
2655
2653
|
return d.h[t] != null;
|
|
2656
2654
|
}
|
|
2657
2655
|
function n1(d, t) {
|
|
@@ -2674,8 +2672,8 @@ const W2 = (y) => {
|
|
|
2674
2672
|
var i = n1(d, t);
|
|
2675
2673
|
return d.j[t].l ? i[$ || 0] : i;
|
|
2676
2674
|
}
|
|
2677
|
-
function
|
|
2678
|
-
if (
|
|
2675
|
+
function I(d, t) {
|
|
2676
|
+
if (R(d, t)) d = p(d, t);
|
|
2679
2677
|
else d: {
|
|
2680
2678
|
if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
|
|
2681
2679
|
else if (t === Number) d.j = 0;
|
|
@@ -2688,37 +2686,37 @@ const W2 = (y) => {
|
|
|
2688
2686
|
}
|
|
2689
2687
|
return d;
|
|
2690
2688
|
}
|
|
2691
|
-
function
|
|
2689
|
+
function P(d, t) {
|
|
2692
2690
|
return n1(d, t) || [];
|
|
2693
2691
|
}
|
|
2694
2692
|
function K(d, t) {
|
|
2695
|
-
return d.j[t].l ?
|
|
2693
|
+
return d.j[t].l ? R(d, t) ? d.h[t].length : 0 : R(d, t) ? 1 : 0;
|
|
2696
2694
|
}
|
|
2697
2695
|
function E(d, t, $) {
|
|
2698
2696
|
d.h[t] = $, d.g && (d.g[t] = $);
|
|
2699
2697
|
}
|
|
2700
|
-
function
|
|
2698
|
+
function S1(d, t, $) {
|
|
2701
2699
|
d.h[t] || (d.h[t] = []), d.h[t].push($), d.g && delete d.g[t];
|
|
2702
2700
|
}
|
|
2703
2701
|
function i1(d, t) {
|
|
2704
2702
|
var $ = [], i;
|
|
2705
|
-
for (i in t) i != 0 && $.push(new
|
|
2706
|
-
return new
|
|
2703
|
+
for (i in t) i != 0 && $.push(new L(i, t[i]));
|
|
2704
|
+
return new h2(d, $);
|
|
2707
2705
|
}
|
|
2708
2706
|
function s1() {
|
|
2709
2707
|
}
|
|
2710
2708
|
s1.prototype.g = function(d) {
|
|
2711
2709
|
throw new d.h(), Error("Unimplemented");
|
|
2712
2710
|
}, s1.prototype.h = function(d, t) {
|
|
2713
|
-
if (d.h == 11 || d.h == 10) return t instanceof
|
|
2714
|
-
if (d.h == 14) return typeof t == "string" &&
|
|
2711
|
+
if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
|
|
2712
|
+
if (d.h == 14) return typeof t == "string" && w1.test(t) && (d = Number(t), 0 < d) ? d : t;
|
|
2715
2713
|
if (!d.o) return t;
|
|
2716
2714
|
if (d = d.s, d === String) {
|
|
2717
2715
|
if (typeof t == "number") return String(t);
|
|
2718
|
-
} else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" ||
|
|
2716
|
+
} else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || w1.test(t))) return Number(t);
|
|
2719
2717
|
return t;
|
|
2720
2718
|
};
|
|
2721
|
-
var
|
|
2719
|
+
var w1 = /^-?[0-9]+$/;
|
|
2722
2720
|
function p1() {
|
|
2723
2721
|
}
|
|
2724
2722
|
n(p1, s1), p1.prototype.g = function(d, t) {
|
|
@@ -2740,54 +2738,54 @@ const W2 = (y) => {
|
|
|
2740
2738
|
if (this.h += String(d), t != null) for (let i = 1; i < arguments.length; i++) this.h += arguments[i];
|
|
2741
2739
|
return this;
|
|
2742
2740
|
};
|
|
2743
|
-
function
|
|
2741
|
+
function B(d) {
|
|
2744
2742
|
d.h = "";
|
|
2745
2743
|
}
|
|
2746
2744
|
N.prototype.toString = function() {
|
|
2747
2745
|
return this.h;
|
|
2748
2746
|
};
|
|
2749
2747
|
function z() {
|
|
2750
|
-
|
|
2748
|
+
x.call(this);
|
|
2751
2749
|
}
|
|
2752
|
-
n(z,
|
|
2753
|
-
var
|
|
2754
|
-
function
|
|
2755
|
-
|
|
2750
|
+
n(z, x);
|
|
2751
|
+
var b1 = null;
|
|
2752
|
+
function b() {
|
|
2753
|
+
x.call(this);
|
|
2756
2754
|
}
|
|
2757
|
-
n(
|
|
2758
|
-
var
|
|
2755
|
+
n(b, x);
|
|
2756
|
+
var L1 = null;
|
|
2759
2757
|
function Z() {
|
|
2760
|
-
|
|
2758
|
+
x.call(this);
|
|
2761
2759
|
}
|
|
2762
|
-
n(Z,
|
|
2763
|
-
var
|
|
2760
|
+
n(Z, x);
|
|
2761
|
+
var N1 = null;
|
|
2764
2762
|
z.prototype.m = function() {
|
|
2763
|
+
var d = b1;
|
|
2764
|
+
return d || (b1 = d = i1(z, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
|
|
2765
|
+
}, z.m = z.prototype.m, b.prototype.m = function() {
|
|
2765
2766
|
var d = L1;
|
|
2766
|
-
return d || (L1 = d = i1(
|
|
2767
|
-
},
|
|
2767
|
+
return d || (L1 = d = i1(b, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
|
|
2768
|
+
}, b.m = b.prototype.m, Z.prototype.m = function() {
|
|
2768
2769
|
var d = N1;
|
|
2769
|
-
return d || (N1 = d = i1(
|
|
2770
|
-
}, L.m = L.prototype.m, Z.prototype.m = function() {
|
|
2771
|
-
var d = T1;
|
|
2772
|
-
return d || (T1 = d = i1(Z, {
|
|
2770
|
+
return d || (N1 = d = i1(Z, {
|
|
2773
2771
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
2774
|
-
1: { name: "general_desc", i: 11, type:
|
|
2775
|
-
2: { name: "fixed_line", i: 11, type:
|
|
2776
|
-
3: { name: "mobile", i: 11, type:
|
|
2777
|
-
4: { name: "toll_free", i: 11, type:
|
|
2778
|
-
5: { name: "premium_rate", i: 11, type:
|
|
2779
|
-
6: { name: "shared_cost", i: 11, type:
|
|
2780
|
-
7: { name: "personal_number", i: 11, type:
|
|
2781
|
-
8: { name: "voip", i: 11, type:
|
|
2782
|
-
21: { name: "pager", i: 11, type:
|
|
2783
|
-
25: { name: "uan", i: 11, type:
|
|
2784
|
-
27: { name: "emergency", i: 11, type:
|
|
2785
|
-
28: { name: "voicemail", i: 11, type:
|
|
2786
|
-
29: { name: "short_code", i: 11, type:
|
|
2787
|
-
30: { name: "standard_rate", i: 11, type:
|
|
2788
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
2789
|
-
33: { name: "sms_services", i: 11, type:
|
|
2790
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
2772
|
+
1: { name: "general_desc", i: 11, type: b },
|
|
2773
|
+
2: { name: "fixed_line", i: 11, type: b },
|
|
2774
|
+
3: { name: "mobile", i: 11, type: b },
|
|
2775
|
+
4: { name: "toll_free", i: 11, type: b },
|
|
2776
|
+
5: { name: "premium_rate", i: 11, type: b },
|
|
2777
|
+
6: { name: "shared_cost", i: 11, type: b },
|
|
2778
|
+
7: { name: "personal_number", i: 11, type: b },
|
|
2779
|
+
8: { name: "voip", i: 11, type: b },
|
|
2780
|
+
21: { name: "pager", i: 11, type: b },
|
|
2781
|
+
25: { name: "uan", i: 11, type: b },
|
|
2782
|
+
27: { name: "emergency", i: 11, type: b },
|
|
2783
|
+
28: { name: "voicemail", i: 11, type: b },
|
|
2784
|
+
29: { name: "short_code", i: 11, type: b },
|
|
2785
|
+
30: { name: "standard_rate", i: 11, type: b },
|
|
2786
|
+
31: { name: "carrier_specific", i: 11, type: b },
|
|
2787
|
+
33: { name: "sms_services", i: 11, type: b },
|
|
2788
|
+
24: { name: "no_international_dialling", i: 11, type: b },
|
|
2791
2789
|
9: { name: "id", required: !0, i: 9, type: String },
|
|
2792
2790
|
10: { name: "country_code", i: 5, type: Number },
|
|
2793
2791
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -2808,13 +2806,13 @@ const W2 = (y) => {
|
|
|
2808
2806
|
})), d;
|
|
2809
2807
|
}, Z.m = Z.prototype.m;
|
|
2810
2808
|
function H() {
|
|
2811
|
-
|
|
2809
|
+
x.call(this);
|
|
2812
2810
|
}
|
|
2813
|
-
n(H,
|
|
2814
|
-
var
|
|
2811
|
+
n(H, x);
|
|
2812
|
+
var T1 = null, f2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
2815
2813
|
H.prototype.m = function() {
|
|
2816
|
-
var d =
|
|
2817
|
-
return d || (
|
|
2814
|
+
var d = T1;
|
|
2815
|
+
return d || (T1 = d = i1(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: f2 }, 7: {
|
|
2818
2816
|
name: "preferred_domestic_carrier_code",
|
|
2819
2817
|
i: 9,
|
|
2820
2818
|
type: String
|
|
@@ -3036,7 +3034,7 @@ const W2 = (y) => {
|
|
|
3036
3034
|
995: ["GE"],
|
|
3037
3035
|
996: ["KG"],
|
|
3038
3036
|
998: ["UZ"]
|
|
3039
|
-
},
|
|
3037
|
+
}, A1 = {
|
|
3040
3038
|
AC: [, [
|
|
3041
3039
|
,
|
|
3042
3040
|
,
|
|
@@ -8250,50 +8248,50 @@ const W2 = (y) => {
|
|
|
8250
8248
|
X: "9",
|
|
8251
8249
|
Y: "9",
|
|
8252
8250
|
Z: "9"
|
|
8253
|
-
}, C2 = RegExp("[++]+"), Q = RegExp("^[++]+"),
|
|
8251
|
+
}, C2 = RegExp("[++]+"), Q = RegExp("^[++]+"), E1 = RegExp("([0-90-9٠-٩۰-۹])"), m2 = RegExp("[++0-90-9٠-٩۰-۹]"), y2 = /[\\\/] *x/, _2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), I2 = /(?:.*?[A-Za-z]){3}.*/, v2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), S2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
|
|
8254
8252
|
function J(d) {
|
|
8255
8253
|
return "([0-90-9٠-٩۰-۹]{1," + d + "})";
|
|
8256
8254
|
}
|
|
8257
|
-
function
|
|
8255
|
+
function D1() {
|
|
8258
8256
|
return ";ext=" + J("20") + "|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[ \\t,-]*" + (J("20") + "#?|[ \\t,]*(?:[xx##~~]|int|int)[:\\..]?[ \\t,-]*") + (J("9") + "#?|[- ]+") + (J("6") + "#|[ \\t]*(?:,{2}|;)[:\\..]?[ \\t,-]*") + (J("15") + "#?|[ \\t]*(?:,)+[:\\..]?[ \\t,-]*") + (J("9") + "#?");
|
|
8259
8257
|
}
|
|
8260
|
-
var
|
|
8261
|
-
function
|
|
8258
|
+
var M1 = new RegExp("(?:" + D1() + ")$", "i"), w2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + D1() + ")?$", "i"), b2 = /(\$\d)/, L2 = /^\(?\$1\)?$/;
|
|
8259
|
+
function P1(d) {
|
|
8262
8260
|
return 2 > d.length ? !1 : U(w2, d);
|
|
8263
8261
|
}
|
|
8264
|
-
function
|
|
8262
|
+
function x1(d) {
|
|
8265
8263
|
return U(I2, d) ? r1(d, g2) : r1(d, g1);
|
|
8266
8264
|
}
|
|
8267
|
-
function
|
|
8268
|
-
var t =
|
|
8269
|
-
|
|
8265
|
+
function R1(d) {
|
|
8266
|
+
var t = x1(d.toString());
|
|
8267
|
+
B(d), d.g(t);
|
|
8270
8268
|
}
|
|
8271
|
-
function
|
|
8272
|
-
return d != null && (K(d, 9) != 1 ||
|
|
8269
|
+
function B1(d) {
|
|
8270
|
+
return d != null && (K(d, 9) != 1 || P(d, 9)[0] != -1);
|
|
8273
8271
|
}
|
|
8274
8272
|
function r1(d, t) {
|
|
8275
8273
|
for (var $ = new N(), i, r = d.length, u = 0; u < r; ++u) i = d.charAt(u), i = t[i.toUpperCase()], i != null && $.g(i);
|
|
8276
8274
|
return $.toString();
|
|
8277
8275
|
}
|
|
8278
|
-
function
|
|
8276
|
+
function k1(d) {
|
|
8279
8277
|
return d.length == 0 || L2.test(d);
|
|
8280
8278
|
}
|
|
8281
8279
|
function o1(d) {
|
|
8282
|
-
return d != null && isNaN(d) && d.toUpperCase() in
|
|
8280
|
+
return d != null && isNaN(d) && d.toUpperCase() in A1;
|
|
8283
8281
|
}
|
|
8284
8282
|
D.prototype.format = function(d, t) {
|
|
8285
|
-
if (p(d, 2) == 0 &&
|
|
8286
|
-
var $ =
|
|
8283
|
+
if (p(d, 2) == 0 && R(d, 5)) {
|
|
8284
|
+
var $ = I(d, 5);
|
|
8287
8285
|
if (0 < $.length) return $;
|
|
8288
8286
|
}
|
|
8289
|
-
$ =
|
|
8287
|
+
$ = I(d, 1);
|
|
8290
8288
|
var i = t1(d);
|
|
8291
|
-
if (t == 0) return
|
|
8289
|
+
if (t == 0) return O1($, 0, i, "");
|
|
8292
8290
|
if (!($ in X)) return i;
|
|
8293
8291
|
var r = d1(this, $, e1($));
|
|
8294
|
-
d =
|
|
8292
|
+
d = R(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : R(r, 13) ? p(r, 13) + I(d, 3) : " ext. " + I(d, 3) : "";
|
|
8295
8293
|
d: {
|
|
8296
|
-
r =
|
|
8294
|
+
r = P(r, 20).length == 0 || t == 2 ? P(r, 19) : P(r, 20);
|
|
8297
8295
|
for (var u, l = r.length, h = 0; h < l; ++h) {
|
|
8298
8296
|
u = r[h];
|
|
8299
8297
|
var m = K(u, 3);
|
|
@@ -8304,20 +8302,20 @@ const W2 = (y) => {
|
|
|
8304
8302
|
}
|
|
8305
8303
|
r = null;
|
|
8306
8304
|
}
|
|
8307
|
-
return r != null && (l = r, r =
|
|
8305
|
+
return r != null && (l = r, r = I(l, 2), u = new RegExp(p(l, 1)), I(
|
|
8308
8306
|
l,
|
|
8309
8307
|
5
|
|
8310
|
-
), l =
|
|
8308
|
+
), l = I(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u, r.replace(b2, l)) : i.replace(u, r), t == 3 && (i = i.replace(RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), i = i.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), O1($, t, i, d);
|
|
8311
8309
|
};
|
|
8312
8310
|
function d1(d, t, $) {
|
|
8313
8311
|
return $ == "001" ? j(d, "" + t) : j(d, $);
|
|
8314
8312
|
}
|
|
8315
8313
|
function t1(d) {
|
|
8316
|
-
if (!
|
|
8314
|
+
if (!R(d, 2)) return "";
|
|
8317
8315
|
var t = "" + p(d, 2);
|
|
8318
|
-
return
|
|
8316
|
+
return R(d, 4) && p(d, 4) && 0 < I(d, 8) ? Array(I(d, 8) + 1).join("0") + t : t;
|
|
8319
8317
|
}
|
|
8320
|
-
function
|
|
8318
|
+
function O1(d, t, $, i) {
|
|
8321
8319
|
switch (t) {
|
|
8322
8320
|
case 0:
|
|
8323
8321
|
return "+" + d + $ + i;
|
|
@@ -8356,9 +8354,9 @@ const W2 = (y) => {
|
|
|
8356
8354
|
return p(d, 1);
|
|
8357
8355
|
}
|
|
8358
8356
|
}
|
|
8359
|
-
function
|
|
8360
|
-
var $ =
|
|
8361
|
-
return d = d1(d,
|
|
8357
|
+
function G1(d, t) {
|
|
8358
|
+
var $ = F1(d, t);
|
|
8359
|
+
return d = d1(d, I(t, 1), $), d == null ? -1 : (t = t1(t), C1(t, d));
|
|
8362
8360
|
}
|
|
8363
8361
|
function C1(d, t) {
|
|
8364
8362
|
return O(d, p(t, 1)) ? O(d, p(t, 5)) ? 4 : O(d, p(t, 4)) ? 3 : O(d, p(t, 6)) ? 5 : O(d, p(t, 8)) ? 6 : O(d, p(t, 7)) ? 7 : O(d, p(t, 21)) ? 8 : O(d, p(t, 25)) ? 9 : O(d, p(t, 28)) ? 10 : O(d, p(t, 2)) ? p(t, 18) || O(d, p(t, 3)) ? 2 : 0 : !p(t, 18) && O(d, p(t, 3)) ? 1 : -1 : -1;
|
|
@@ -8368,22 +8366,22 @@ const W2 = (y) => {
|
|
|
8368
8366
|
t = t.toUpperCase();
|
|
8369
8367
|
var $ = d.g[t];
|
|
8370
8368
|
if ($ == null) {
|
|
8371
|
-
if ($ =
|
|
8369
|
+
if ($ = A1[t], $ == null) return null;
|
|
8372
8370
|
$ = new q().g(Z.m(), $), d.g[t] = $;
|
|
8373
8371
|
}
|
|
8374
8372
|
return $;
|
|
8375
8373
|
}
|
|
8376
8374
|
function O(d, t) {
|
|
8377
8375
|
var $ = d.length;
|
|
8378
|
-
return 0 < K(t, 9) &&
|
|
8376
|
+
return 0 < K(t, 9) && P(t, 9).indexOf($) == -1 ? !1 : U(I(t, 2), d);
|
|
8379
8377
|
}
|
|
8380
8378
|
function N2(d, t) {
|
|
8381
|
-
var $ =
|
|
8382
|
-
return r == null || $ != "001" && i !=
|
|
8379
|
+
var $ = F1(d, t), i = I(t, 1), r = d1(d, i, $);
|
|
8380
|
+
return r == null || $ != "001" && i != U1(d, $) ? r = !1 : (d = t1(t), r = C1(d, r) != -1), r;
|
|
8383
8381
|
}
|
|
8384
|
-
function
|
|
8382
|
+
function F1(d, t) {
|
|
8385
8383
|
if (t == null) return null;
|
|
8386
|
-
var $ =
|
|
8384
|
+
var $ = I(t, 1);
|
|
8387
8385
|
if ($ = X[$], $ == null) d = null;
|
|
8388
8386
|
else if ($.length == 1) d = $[0];
|
|
8389
8387
|
else d: {
|
|
@@ -8391,7 +8389,7 @@ const W2 = (y) => {
|
|
|
8391
8389
|
for (var i, r = $.length, u = 0; u < r; u++) {
|
|
8392
8390
|
i = $[u];
|
|
8393
8391
|
var l = j(d, i);
|
|
8394
|
-
if (
|
|
8392
|
+
if (R(l, 23)) {
|
|
8395
8393
|
if (t.search(p(l, 23)) == 0) {
|
|
8396
8394
|
d = i;
|
|
8397
8395
|
break d;
|
|
@@ -8408,54 +8406,54 @@ const W2 = (y) => {
|
|
|
8408
8406
|
function e1(d) {
|
|
8409
8407
|
return d = X[d], d == null ? "ZZ" : d[0];
|
|
8410
8408
|
}
|
|
8411
|
-
function
|
|
8409
|
+
function U1(d, t) {
|
|
8412
8410
|
if (d = j(d, t), d == null) throw Error("Invalid region code: " + t);
|
|
8413
|
-
return
|
|
8411
|
+
return I(d, 10);
|
|
8414
8412
|
}
|
|
8415
8413
|
function l1(d, t, $, i) {
|
|
8416
|
-
var r = u1($, i), u = K(r, 9) == 0 ?
|
|
8417
|
-
if (r =
|
|
8414
|
+
var r = u1($, i), u = K(r, 9) == 0 ? P(p($, 1), 9) : P(r, 9);
|
|
8415
|
+
if (r = P(r, 10), i == 2) if (B1(u1($, 0))) d = u1($, 1), B1(d) && (u = u.concat(K(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), u.sort(), r.length == 0 ? r = P(d, 10) : (r = r.concat(P(d, 10)), r.sort()));
|
|
8418
8416
|
else return l1(d, t, $, 1);
|
|
8419
8417
|
return u[0] == -1 ? 5 : (t = t.length, -1 < r.indexOf(t) ? 4 : ($ = u[0], $ == t ? 0 : $ > t ? 2 : u[u.length - 1] < t ? 3 : -1 < u.indexOf(t, 1) ? 0 : 5));
|
|
8420
8418
|
}
|
|
8421
8419
|
function a1(d, t, $) {
|
|
8422
8420
|
var i = t1(t);
|
|
8423
|
-
return t =
|
|
8421
|
+
return t = I(t, 1), t in X ? (t = d1(d, t, e1(t)), l1(d, i, t, $)) : 1;
|
|
8424
8422
|
}
|
|
8425
|
-
function
|
|
8423
|
+
function V1(d, t) {
|
|
8426
8424
|
if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
|
|
8427
8425
|
for (var $, i = d.length, r = 1; 3 >= r && r <= i; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in X) return t.g(d.substring(r)), $;
|
|
8428
8426
|
return 0;
|
|
8429
8427
|
}
|
|
8430
|
-
function
|
|
8428
|
+
function K1(d, t, $, i, r, u) {
|
|
8431
8429
|
if (t.length == 0) return 0;
|
|
8432
8430
|
t = new N(t);
|
|
8433
8431
|
var l;
|
|
8434
8432
|
$ != null && (l = p($, 11)), l == null && (l = "NonMatch");
|
|
8435
8433
|
var h = t.toString();
|
|
8436
8434
|
if (h.length == 0) l = 20;
|
|
8437
|
-
else if (Q.test(h)) h = h.replace(Q, ""),
|
|
8435
|
+
else if (Q.test(h)) h = h.replace(Q, ""), B(t), t.g(x1(h)), l = 1;
|
|
8438
8436
|
else {
|
|
8439
|
-
if (h = new RegExp(l),
|
|
8437
|
+
if (h = new RegExp(l), R1(t), l = t.toString(), l.search(h) == 0) {
|
|
8440
8438
|
h = l.match(h)[0].length;
|
|
8441
|
-
var m = l.substring(h).match(
|
|
8442
|
-
m && m[1] != null && 0 < m[1].length && r1(m[1], g1) == "0" ? l = !1 : (
|
|
8439
|
+
var m = l.substring(h).match(E1);
|
|
8440
|
+
m && m[1] != null && 0 < m[1].length && r1(m[1], g1) == "0" ? l = !1 : (B(t), t.g(l.substring(h)), l = !0);
|
|
8443
8441
|
} else l = !1;
|
|
8444
8442
|
l = l ? 5 : 20;
|
|
8445
8443
|
}
|
|
8446
8444
|
if (r && E(u, 6, l), l != 20) {
|
|
8447
8445
|
if (2 >= t.h.length) throw Error("Phone number too short after IDD");
|
|
8448
|
-
if (d =
|
|
8446
|
+
if (d = V1(t, i), d != 0) return E(u, 1, d), d;
|
|
8449
8447
|
throw Error("Invalid country calling code");
|
|
8450
8448
|
}
|
|
8451
|
-
return $ != null && (l =
|
|
8449
|
+
return $ != null && (l = I($, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new N(m.substring(h.length)), m = p($, 1), m = new RegExp(I(m, 2)), H1(h, $, null), h = h.toString(), !U(m, t.toString()) && U(m, h) || l1(d, t.toString(), $, -1) == 3)) ? (i.g(h), r && E(u, 6, 10), E(u, 1, l), l) : (E(u, 1, 0), 0);
|
|
8452
8450
|
}
|
|
8453
|
-
function
|
|
8451
|
+
function H1(d, t, $) {
|
|
8454
8452
|
var i = d.toString(), r = i.length, u = p(t, 15);
|
|
8455
8453
|
if (r != 0 && u != null && u.length != 0) {
|
|
8456
8454
|
var l = new RegExp("^(?:" + u + ")");
|
|
8457
8455
|
if (r = l.exec(i)) {
|
|
8458
|
-
u = new RegExp(
|
|
8456
|
+
u = new RegExp(I(p(t, 1), 2));
|
|
8459
8457
|
var h = U(u, i), m = r.length - 1;
|
|
8460
8458
|
t = p(t, 16), t == null || t.length == 0 || r[m] == null || r[m].length == 0 ? (!h || U(u, i.substring(r[0].length))) && ($ != null && 0 < m && r[m] != null && $.g(r[1]), d.set(i.substring(r[0].length))) : (i = i.replace(l, t), (!h || U(u, i)) && ($ != null && 0 < m && $.g(r[1]), d.set(i)));
|
|
8461
8459
|
}
|
|
@@ -8463,9 +8461,9 @@ const W2 = (y) => {
|
|
|
8463
8461
|
}
|
|
8464
8462
|
function Y(d, t, $) {
|
|
8465
8463
|
if (!o1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
|
|
8466
|
-
return
|
|
8464
|
+
return j1(d, t, $, !0);
|
|
8467
8465
|
}
|
|
8468
|
-
function
|
|
8466
|
+
function j1(d, t, $, i) {
|
|
8469
8467
|
if (t == null) throw Error("The string supplied did not seem to be a phone number");
|
|
8470
8468
|
if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
|
|
8471
8469
|
var r = new N(), u = t.indexOf(";phone-context=");
|
|
@@ -8476,14 +8474,14 @@ const W2 = (y) => {
|
|
|
8476
8474
|
u = l !== -1 ? t.substring(u, l) : t.substring(u);
|
|
8477
8475
|
}
|
|
8478
8476
|
var h = u;
|
|
8479
|
-
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = v2.exec(h), h = S2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && r.g(u), u = t.indexOf("tel:"), r.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = r.g, l = t ?? "", h = l.search(m2), 0 <= h ? (l = l.substring(h), l = l.replace(_2, ""), h = l.search(y2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(r, l)), u = r.toString(), l = u.indexOf(";isub="), 0 < l && (
|
|
8477
|
+
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = v2.exec(h), h = S2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && r.g(u), u = t.indexOf("tel:"), r.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = r.g, l = t ?? "", h = l.search(m2), 0 <= h ? (l = l.substring(h), l = l.replace(_2, ""), h = l.search(y2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(r, l)), u = r.toString(), l = u.indexOf(";isub="), 0 < l && (B(r), r.g(u.substring(0, l))), !P1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
|
|
8480
8478
|
if (u = r.toString(), !(o1($) || u != null && 0 < u.length && Q.test(u))) throw Error("Invalid country calling code");
|
|
8481
8479
|
u = new H(), i && E(u, 5, t);
|
|
8482
8480
|
d: {
|
|
8483
|
-
if (t = r.toString(), l = t.search(
|
|
8484
|
-
h = t.match(
|
|
8481
|
+
if (t = r.toString(), l = t.search(M1), 0 <= l && P1(t.substring(0, l))) {
|
|
8482
|
+
h = t.match(M1);
|
|
8485
8483
|
for (var m = h.length, V = 1; V < m; ++V) if (h[V] != null && 0 < h[V].length) {
|
|
8486
|
-
|
|
8484
|
+
B(r), r.g(t.substring(0, l)), t = h[V];
|
|
8487
8485
|
break d;
|
|
8488
8486
|
}
|
|
8489
8487
|
}
|
|
@@ -8491,17 +8489,17 @@ const W2 = (y) => {
|
|
|
8491
8489
|
}
|
|
8492
8490
|
0 < t.length && E(u, 3, t), l = j(d, $), t = new N(), h = 0, m = r.toString();
|
|
8493
8491
|
try {
|
|
8494
|
-
h =
|
|
8492
|
+
h = K1(d, m, l, t, i, u);
|
|
8495
8493
|
} catch (_1) {
|
|
8496
8494
|
if (_1.message == "Invalid country calling code" && Q.test(m)) {
|
|
8497
|
-
if (m = m.replace(Q, ""), h =
|
|
8495
|
+
if (m = m.replace(Q, ""), h = K1(d, m, l, t, i, u), h == 0) throw _1;
|
|
8498
8496
|
} else throw _1;
|
|
8499
8497
|
}
|
|
8500
|
-
if (h != 0 ? (r = e1(h), r != $ && (l = d1(d, h, r))) : (
|
|
8498
|
+
if (h != 0 ? (r = e1(h), r != $ && (l = d1(d, h, r))) : (R1(r), t.g(r.toString()), $ != null ? (h = I(l, 10), E(
|
|
8501
8499
|
u,
|
|
8502
8500
|
1,
|
|
8503
8501
|
h
|
|
8504
|
-
)) : i && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new N(), r = new N(t.toString()),
|
|
8502
|
+
)) : i && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new N(), r = new N(t.toString()), H1(r, l, $), d = l1(d, r.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = r, i && 0 < $.toString().length && E(u, 7, $.toString()))), i = t.toString(), d = i.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
|
|
8505
8503
|
if (17 < d) throw Error("The string supplied is too long to be a phone number");
|
|
8506
8504
|
if (1 < i.length && i.charAt(0) == "0") {
|
|
8507
8505
|
for (E(u, 4, !0), d = 1; d < i.length - 1 && i.charAt(d) == "0"; ) d++;
|
|
@@ -8513,29 +8511,29 @@ const W2 = (y) => {
|
|
|
8513
8511
|
return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
|
|
8514
8512
|
}
|
|
8515
8513
|
function T2(d) {
|
|
8516
|
-
this.fa = RegExp(" "), this.ja = "", this.v = new N(), this.da = "", this.s = new N(), this.ba = new N(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new N(), this.ha = !1, this.o = "", this.g = new N(), this.j = [], this.ka = d, this.l =
|
|
8514
|
+
this.fa = RegExp(" "), this.ja = "", this.v = new N(), this.da = "", this.s = new N(), this.ba = new N(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new N(), this.ha = !1, this.o = "", this.g = new N(), this.j = [], this.ka = d, this.l = Z1(this, this.ka);
|
|
8517
8515
|
}
|
|
8518
|
-
var
|
|
8519
|
-
E(
|
|
8520
|
-
var A2 = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"),
|
|
8521
|
-
function
|
|
8516
|
+
var W1 = new Z();
|
|
8517
|
+
E(W1, 11, "NA");
|
|
8518
|
+
var A2 = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"), z1 = /[- ]/;
|
|
8519
|
+
function Z1(d, t) {
|
|
8522
8520
|
var $ = d.ga;
|
|
8523
|
-
return t = o1(t) ?
|
|
8521
|
+
return t = o1(t) ? U1($, t) : 0, d = j(d.ga, e1(t)), d ?? W1;
|
|
8524
8522
|
}
|
|
8525
|
-
function
|
|
8523
|
+
function Y1(d) {
|
|
8526
8524
|
for (var t = d.j.length, $ = 0; $ < t; ++$) {
|
|
8527
|
-
var i = d.j[$], r =
|
|
8525
|
+
var i = d.j[$], r = I(i, 1);
|
|
8528
8526
|
if (d.da == r) return !1;
|
|
8529
|
-
var u = d, l = i, h =
|
|
8530
|
-
|
|
8527
|
+
var u = d, l = i, h = I(l, 1);
|
|
8528
|
+
B(u.v);
|
|
8531
8529
|
var m = u;
|
|
8532
|
-
l =
|
|
8530
|
+
l = I(l, 2);
|
|
8533
8531
|
var V = "999999999999999".match(h)[0];
|
|
8534
|
-
if (V.length < m.g.h.length ? m = "" : (m = V.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da = r, d.ha =
|
|
8532
|
+
if (V.length < m.g.h.length ? m = "" : (m = V.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da = r, d.ha = z1.test(p(i, 4)), d.$ = 0, !0;
|
|
8535
8533
|
}
|
|
8536
8534
|
return d.u = !1;
|
|
8537
8535
|
}
|
|
8538
|
-
function
|
|
8536
|
+
function J1(d, t) {
|
|
8539
8537
|
for (var $ = [], i = t.length - 3, r = d.j.length, u = 0; u < r; ++u) {
|
|
8540
8538
|
var l = d.j[u];
|
|
8541
8539
|
K(l, 3) == 0 ? $.push(d.j[u]) : (l = p(l, 3, Math.min(i, K(l, 3) - 1)), t.search(l) == 0 && $.push(d.j[u]));
|
|
@@ -8545,11 +8543,11 @@ const W2 = (y) => {
|
|
|
8545
8543
|
function E2(d, t) {
|
|
8546
8544
|
d.s.g(t);
|
|
8547
8545
|
var $ = t;
|
|
8548
|
-
if (
|
|
8546
|
+
if (E1.test($) || d.s.h.length == 1 && C2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = g1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
|
|
8549
8547
|
if (!d.la) {
|
|
8550
|
-
if (
|
|
8551
|
-
if (
|
|
8552
|
-
} else if (0 < d.o.length && (t = d.g.toString(),
|
|
8548
|
+
if (t2(d)) {
|
|
8549
|
+
if (e2(d)) return q1(d);
|
|
8550
|
+
} else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, $))), d.o != d2(d)) return d.h.g(" "), q1(d);
|
|
8553
8551
|
}
|
|
8554
8552
|
return d.s.toString();
|
|
8555
8553
|
}
|
|
@@ -8559,19 +8557,19 @@ const W2 = (y) => {
|
|
|
8559
8557
|
case 2:
|
|
8560
8558
|
return d.s.toString();
|
|
8561
8559
|
case 3:
|
|
8562
|
-
if (
|
|
8563
|
-
else return d.o =
|
|
8560
|
+
if (t2(d)) d.ea = !0;
|
|
8561
|
+
else return d.o = d2(d), m1(d);
|
|
8564
8562
|
default:
|
|
8565
|
-
return d.ea ? (
|
|
8563
|
+
return d.ea ? (e2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = $2(d, t), $ = X1(d), 0 < $.length ? $ : (J1(d, d.g.toString()), Y1(d) ? Q1(d) : d.u ? h1(d, t) : d.s.toString())) : m1(d);
|
|
8566
8564
|
}
|
|
8567
8565
|
}
|
|
8568
|
-
function
|
|
8569
|
-
return d.u = !0, d.ea = !1, d.j = [], d.$ = 0,
|
|
8566
|
+
function q1(d) {
|
|
8567
|
+
return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", m1(d);
|
|
8570
8568
|
}
|
|
8571
|
-
function
|
|
8569
|
+
function X1(d) {
|
|
8572
8570
|
for (var t = d.g.toString(), $ = d.j.length, i = 0; i < $; ++i) {
|
|
8573
|
-
var r = d.j[i], u =
|
|
8574
|
-
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha =
|
|
8571
|
+
var r = d.j[i], u = I(r, 1);
|
|
8572
|
+
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = z1.test(p(r, 4)), r = t.replace(new RegExp(u, "g"), p(r, 2)), r = h1(d, r), r1(r, p2) == d.ba)) return r;
|
|
8575
8573
|
}
|
|
8576
8574
|
return "";
|
|
8577
8575
|
}
|
|
@@ -8582,46 +8580,46 @@ const W2 = (y) => {
|
|
|
8582
8580
|
function m1(d) {
|
|
8583
8581
|
var t = d.g.toString();
|
|
8584
8582
|
if (3 <= t.length) {
|
|
8585
|
-
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ?
|
|
8583
|
+
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), i = $.length, r = 0; r < i; ++r) {
|
|
8586
8584
|
var u = $[r];
|
|
8587
|
-
0 < d.o.length &&
|
|
8585
|
+
0 < d.o.length && k1(I(u, 4)) && !p(u, 6) && !R(u, 5) || (d.o.length != 0 || d.ca || k1(I(u, 4)) || p(u, 6)) && A2.test(I(u, 2)) && d.j.push(u);
|
|
8588
8586
|
}
|
|
8589
|
-
return
|
|
8587
|
+
return J1(d, t), t = X1(d), 0 < t.length ? t : Y1(d) ? Q1(d) : d.s.toString();
|
|
8590
8588
|
}
|
|
8591
8589
|
return h1(d, t);
|
|
8592
8590
|
}
|
|
8593
|
-
function
|
|
8591
|
+
function Q1(d) {
|
|
8594
8592
|
var t = d.g.toString(), $ = t.length;
|
|
8595
8593
|
if (0 < $) {
|
|
8596
|
-
for (var i = "", r = 0; r < $; r++) i =
|
|
8594
|
+
for (var i = "", r = 0; r < $; r++) i = $2(d, t.charAt(r));
|
|
8597
8595
|
return d.u ? h1(d, i) : d.s.toString();
|
|
8598
8596
|
}
|
|
8599
8597
|
return d.h.toString();
|
|
8600
8598
|
}
|
|
8601
|
-
function
|
|
8599
|
+
function d2(d) {
|
|
8602
8600
|
var t = d.g.toString(), $ = 0;
|
|
8603
8601
|
if (p(d.l, 10) != 1) var i = !1;
|
|
8604
8602
|
else i = d.g.toString(), i = i.charAt(0) == "1" && i.charAt(1) != "0" && i.charAt(1) != "1";
|
|
8605
|
-
return i ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) :
|
|
8603
|
+
return i ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (i = new RegExp("^(?:" + p(d.l, 15) + ")"), i = t.match(i), i != null && i[0] != null && 0 < i[0].length && (d.ca = !0, $ = i[0].length, d.h.g(t.substring(0, $)))), B(d.g), d.g.g(t.substring($)), t.substring(0, $);
|
|
8606
8604
|
}
|
|
8607
|
-
function
|
|
8605
|
+
function t2(d) {
|
|
8608
8606
|
var t = d.ba.toString(), $ = new RegExp("^(?:\\+|" + p(d.l, 11) + ")");
|
|
8609
|
-
return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length,
|
|
8607
|
+
return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length, B(d.g), d.g.g(t.substring($)), B(d.h), d.h.g(t.substring(0, $)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
|
|
8610
8608
|
}
|
|
8611
|
-
function
|
|
8609
|
+
function e2(d) {
|
|
8612
8610
|
if (d.g.h.length == 0) return !1;
|
|
8613
|
-
var t = new N(), $ =
|
|
8614
|
-
return $ == 0 ? !1 : (
|
|
8611
|
+
var t = new N(), $ = V1(d.g, t);
|
|
8612
|
+
return $ == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = e1($), t == "001" ? d.l = j(d.ga, "" + $) : t != d.ka && (d.l = Z1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
|
|
8615
8613
|
}
|
|
8616
|
-
function
|
|
8614
|
+
function $2(d, t) {
|
|
8617
8615
|
var $ = d.v.toString();
|
|
8618
8616
|
if (0 <= $.substring(d.$).search(d.fa)) {
|
|
8619
8617
|
var i = $.search(d.fa);
|
|
8620
|
-
return t = $.replace(d.fa, t),
|
|
8618
|
+
return t = $.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = i, t.substring(0, d.$ + 1);
|
|
8621
8619
|
}
|
|
8622
8620
|
return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
|
|
8623
8621
|
}
|
|
8624
|
-
const
|
|
8622
|
+
const n2 = (d) => {
|
|
8625
8623
|
d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || d.push("MOBILE"), d.includes("FIXED_LINE") || d.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && d.push("FIXED_LINE_OR_MOBILE");
|
|
8626
8624
|
}, y1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
|
|
8627
8625
|
e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
|
|
@@ -8649,8 +8647,8 @@ const W2 = (y) => {
|
|
|
8649
8647
|
if (o1(d)) {
|
|
8650
8648
|
var u = u1(j(r, d), $);
|
|
8651
8649
|
try {
|
|
8652
|
-
if (
|
|
8653
|
-
var l = p(u, 6), h =
|
|
8650
|
+
if (R(u, 6)) {
|
|
8651
|
+
var l = p(u, 6), h = j1(r, l, d, !1);
|
|
8654
8652
|
break d;
|
|
8655
8653
|
}
|
|
8656
8654
|
} catch {
|
|
@@ -8671,7 +8669,7 @@ const W2 = (y) => {
|
|
|
8671
8669
|
}), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
|
|
8672
8670
|
try {
|
|
8673
8671
|
const $ = D.g(), i = Y($, d, t);
|
|
8674
|
-
return
|
|
8672
|
+
return G1($, i);
|
|
8675
8673
|
} catch {
|
|
8676
8674
|
return -99;
|
|
8677
8675
|
}
|
|
@@ -8687,9 +8685,9 @@ const W2 = (y) => {
|
|
|
8687
8685
|
try {
|
|
8688
8686
|
const i = D.g(), r = Y(i, d, t), u = N2(i, r);
|
|
8689
8687
|
if ($) {
|
|
8690
|
-
|
|
8688
|
+
n2($);
|
|
8691
8689
|
const l = $.map((h) => y1[h]);
|
|
8692
|
-
return u && l.includes(
|
|
8690
|
+
return u && l.includes(G1(i, r));
|
|
8693
8691
|
}
|
|
8694
8692
|
return u;
|
|
8695
8693
|
} catch {
|
|
@@ -8699,7 +8697,7 @@ const W2 = (y) => {
|
|
|
8699
8697
|
try {
|
|
8700
8698
|
const i = D.g(), r = Y(i, d, t);
|
|
8701
8699
|
if ($) {
|
|
8702
|
-
|
|
8700
|
+
n2($);
|
|
8703
8701
|
for (let u of $) if (a1(i, r, y1[u]) === 0) return !0;
|
|
8704
8702
|
return !1;
|
|
8705
8703
|
}
|
|
@@ -8715,12 +8713,12 @@ const W2 = (y) => {
|
|
|
8715
8713
|
}
|
|
8716
8714
|
}), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", y1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
8717
8715
|
})();
|
|
8718
|
-
const
|
|
8719
|
-
delete
|
|
8716
|
+
const a2 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, z2 = a2.intlTelInputUtilsTemp;
|
|
8717
|
+
delete a2.intlTelInputUtilsTemp;
|
|
8720
8718
|
C.utils = z2;
|
|
8721
8719
|
const Y2 = {
|
|
8722
8720
|
__name: "IntlTelInputWithUtils",
|
|
8723
|
-
props: /* @__PURE__ */
|
|
8721
|
+
props: /* @__PURE__ */ i2({
|
|
8724
8722
|
disabled: {
|
|
8725
8723
|
type: Boolean,
|
|
8726
8724
|
default: !1
|
|
@@ -8744,44 +8742,44 @@ const Y2 = {
|
|
|
8744
8742
|
},
|
|
8745
8743
|
modelModifiers: {}
|
|
8746
8744
|
}),
|
|
8747
|
-
emits: /* @__PURE__ */
|
|
8745
|
+
emits: /* @__PURE__ */ i2([
|
|
8748
8746
|
"changeNumber",
|
|
8749
8747
|
"changeCountry",
|
|
8750
8748
|
"changeValidity",
|
|
8751
8749
|
"changeErrorCode"
|
|
8752
8750
|
], ["update:modelValue"]),
|
|
8753
8751
|
setup(y, { expose: e, emit: n }) {
|
|
8754
|
-
const s = D2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1),
|
|
8755
|
-
let
|
|
8756
|
-
f.value !==
|
|
8752
|
+
const s = D2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1), v = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, S = () => {
|
|
8753
|
+
let _ = v();
|
|
8754
|
+
f.value !== _ && (f.value = _, a("changeValidity", !!_), a(
|
|
8757
8755
|
"changeErrorCode",
|
|
8758
|
-
|
|
8756
|
+
_ ? null : g.value.getValidationError()
|
|
8759
8757
|
));
|
|
8760
|
-
}, b = () => {
|
|
8761
|
-
var I;
|
|
8762
|
-
a("changeNumber", ((I = g.value) == null ? void 0 : I.getNumber()) ?? ""), _();
|
|
8763
8758
|
}, w = () => {
|
|
8764
|
-
var
|
|
8765
|
-
a("
|
|
8759
|
+
var _;
|
|
8760
|
+
a("changeNumber", ((_ = g.value) == null ? void 0 : _.getNumber()) ?? ""), S();
|
|
8761
|
+
}, L = () => {
|
|
8762
|
+
var _;
|
|
8763
|
+
a("changeCountry", ((_ = g.value) == null ? void 0 : _.getSelectedCountryData().iso2) ?? ""), w(), S();
|
|
8766
8764
|
};
|
|
8767
8765
|
return M2(() => {
|
|
8768
|
-
c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled), f.value =
|
|
8766
|
+
c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled), f.value = v());
|
|
8769
8767
|
}), P2(
|
|
8770
8768
|
() => o.disabled,
|
|
8771
|
-
(
|
|
8769
|
+
(_) => {
|
|
8772
8770
|
var A;
|
|
8773
|
-
return (A = g.value) == null ? void 0 : A.setDisabled(
|
|
8771
|
+
return (A = g.value) == null ? void 0 : A.setDisabled(_);
|
|
8774
8772
|
}
|
|
8775
8773
|
), x2(() => {
|
|
8776
|
-
var
|
|
8777
|
-
return (
|
|
8778
|
-
}), e({ instance: g, input: c }), (
|
|
8774
|
+
var _;
|
|
8775
|
+
return (_ = g.value) == null ? void 0 : _.destroy();
|
|
8776
|
+
}), e({ instance: g, input: c }), (_, A) => R2((k2(), B2("input", O2({
|
|
8779
8777
|
ref_key: "input",
|
|
8780
8778
|
ref: c,
|
|
8781
8779
|
"onUpdate:modelValue": A[0] || (A[0] = (G) => s.value = G),
|
|
8782
8780
|
type: "tel",
|
|
8783
|
-
onCountrychange:
|
|
8784
|
-
onInput:
|
|
8781
|
+
onCountrychange: L,
|
|
8782
|
+
onInput: w
|
|
8785
8783
|
}, y.inputProps), null, 16)), [
|
|
8786
8784
|
[
|
|
8787
8785
|
G2,
|